recent_activities

package
v0.0.0-...-7b99a6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for recent activities API

func (*Client) GetRecentActivities

func (a *Client) GetRecentActivities(params *GetRecentActivitiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRecentActivitiesOK, error)

GetRecentActivities gets recent activities

Get recent activities

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetRecentActivities(params *GetRecentActivitiesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetRecentActivitiesOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new recent activities API client.

type GetRecentActivitiesForbidden

type GetRecentActivitiesForbidden struct {
	Payload *models.Error
}

GetRecentActivitiesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetRecentActivitiesForbidden

func NewGetRecentActivitiesForbidden() *GetRecentActivitiesForbidden

NewGetRecentActivitiesForbidden creates a GetRecentActivitiesForbidden with default headers values

func (*GetRecentActivitiesForbidden) Code

Code gets the status code for the get recent activities forbidden response

func (*GetRecentActivitiesForbidden) Error

func (*GetRecentActivitiesForbidden) GetPayload

func (o *GetRecentActivitiesForbidden) GetPayload() *models.Error

func (*GetRecentActivitiesForbidden) IsClientError

func (o *GetRecentActivitiesForbidden) IsClientError() bool

IsClientError returns true when this get recent activities forbidden response has a 4xx status code

func (*GetRecentActivitiesForbidden) IsCode

func (o *GetRecentActivitiesForbidden) IsCode(code int) bool

IsCode returns true when this get recent activities forbidden response a status code equal to that given

func (*GetRecentActivitiesForbidden) IsRedirect

func (o *GetRecentActivitiesForbidden) IsRedirect() bool

IsRedirect returns true when this get recent activities forbidden response has a 3xx status code

func (*GetRecentActivitiesForbidden) IsServerError

func (o *GetRecentActivitiesForbidden) IsServerError() bool

IsServerError returns true when this get recent activities forbidden response has a 5xx status code

func (*GetRecentActivitiesForbidden) IsSuccess

func (o *GetRecentActivitiesForbidden) IsSuccess() bool

IsSuccess returns true when this get recent activities forbidden response has a 2xx status code

func (*GetRecentActivitiesForbidden) String

type GetRecentActivitiesOK

type GetRecentActivitiesOK struct {

	/* The ETag HTTP header is an identifier for a specific version of a resource

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.RecentActivities
}

GetRecentActivitiesOK describes a response with status code 200, with default header values.

Recent activities

func NewGetRecentActivitiesOK

func NewGetRecentActivitiesOK() *GetRecentActivitiesOK

NewGetRecentActivitiesOK creates a GetRecentActivitiesOK with default headers values

func (*GetRecentActivitiesOK) Code

func (o *GetRecentActivitiesOK) Code() int

Code gets the status code for the get recent activities o k response

func (*GetRecentActivitiesOK) Error

func (o *GetRecentActivitiesOK) Error() string

func (*GetRecentActivitiesOK) GetPayload

func (*GetRecentActivitiesOK) IsClientError

func (o *GetRecentActivitiesOK) IsClientError() bool

IsClientError returns true when this get recent activities o k response has a 4xx status code

func (*GetRecentActivitiesOK) IsCode

func (o *GetRecentActivitiesOK) IsCode(code int) bool

IsCode returns true when this get recent activities o k response a status code equal to that given

func (*GetRecentActivitiesOK) IsRedirect

func (o *GetRecentActivitiesOK) IsRedirect() bool

IsRedirect returns true when this get recent activities o k response has a 3xx status code

func (*GetRecentActivitiesOK) IsServerError

func (o *GetRecentActivitiesOK) IsServerError() bool

IsServerError returns true when this get recent activities o k response has a 5xx status code

func (*GetRecentActivitiesOK) IsSuccess

func (o *GetRecentActivitiesOK) IsSuccess() bool

IsSuccess returns true when this get recent activities o k response has a 2xx status code

func (*GetRecentActivitiesOK) String

func (o *GetRecentActivitiesOK) String() string

type GetRecentActivitiesParams

type GetRecentActivitiesParams struct {

	/* IfMatch.

	   A server will only return requested resources if the resource matches one of the listed ETag value

	   Format: etag
	*/
	IfMatch *string

	/* Limit.

	   Limit

	   Format: int64
	   Default: 10
	*/
	Limit *int64

	/* Wid.

	   Workspace id

	   Default: "default"
	*/
	Wid string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetRecentActivitiesParams contains all the parameters to send to the API endpoint

for the get recent activities operation.

Typically these are written to a http.Request.

func NewGetRecentActivitiesParams

func NewGetRecentActivitiesParams() *GetRecentActivitiesParams

NewGetRecentActivitiesParams creates a new GetRecentActivitiesParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetRecentActivitiesParamsWithContext

func NewGetRecentActivitiesParamsWithContext(ctx context.Context) *GetRecentActivitiesParams

NewGetRecentActivitiesParamsWithContext creates a new GetRecentActivitiesParams object with the ability to set a context for a request.

func NewGetRecentActivitiesParamsWithHTTPClient

func NewGetRecentActivitiesParamsWithHTTPClient(client *http.Client) *GetRecentActivitiesParams

NewGetRecentActivitiesParamsWithHTTPClient creates a new GetRecentActivitiesParams object with the ability to set a custom HTTPClient for a request.

func NewGetRecentActivitiesParamsWithTimeout

func NewGetRecentActivitiesParamsWithTimeout(timeout time.Duration) *GetRecentActivitiesParams

NewGetRecentActivitiesParamsWithTimeout creates a new GetRecentActivitiesParams object with the ability to set a timeout on a request.

func (*GetRecentActivitiesParams) SetContext

func (o *GetRecentActivitiesParams) SetContext(ctx context.Context)

SetContext adds the context to the get recent activities params

func (*GetRecentActivitiesParams) SetDefaults

func (o *GetRecentActivitiesParams) SetDefaults()

SetDefaults hydrates default values in the get recent activities params (not the query body).

All values with no default are reset to their zero value.

func (*GetRecentActivitiesParams) SetHTTPClient

func (o *GetRecentActivitiesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get recent activities params

func (*GetRecentActivitiesParams) SetIfMatch

func (o *GetRecentActivitiesParams) SetIfMatch(ifMatch *string)

SetIfMatch adds the ifMatch to the get recent activities params

func (*GetRecentActivitiesParams) SetLimit

func (o *GetRecentActivitiesParams) SetLimit(limit *int64)

SetLimit adds the limit to the get recent activities params

func (*GetRecentActivitiesParams) SetTimeout

func (o *GetRecentActivitiesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get recent activities params

func (*GetRecentActivitiesParams) SetWid

func (o *GetRecentActivitiesParams) SetWid(wid string)

SetWid adds the wid to the get recent activities params

func (*GetRecentActivitiesParams) WithContext

WithContext adds the context to the get recent activities params

func (*GetRecentActivitiesParams) WithDefaults

WithDefaults hydrates default values in the get recent activities params (not the query body).

All values with no default are reset to their zero value.

func (*GetRecentActivitiesParams) WithHTTPClient

func (o *GetRecentActivitiesParams) WithHTTPClient(client *http.Client) *GetRecentActivitiesParams

WithHTTPClient adds the HTTPClient to the get recent activities params

func (*GetRecentActivitiesParams) WithIfMatch

WithIfMatch adds the ifMatch to the get recent activities params

func (*GetRecentActivitiesParams) WithLimit

WithLimit adds the limit to the get recent activities params

func (*GetRecentActivitiesParams) WithTimeout

WithTimeout adds the timeout to the get recent activities params

func (*GetRecentActivitiesParams) WithWid

WithWid adds the wid to the get recent activities params

func (*GetRecentActivitiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetRecentActivitiesReader

type GetRecentActivitiesReader struct {
	// contains filtered or unexported fields
}

GetRecentActivitiesReader is a Reader for the GetRecentActivities structure.

func (*GetRecentActivitiesReader) ReadResponse

func (o *GetRecentActivitiesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetRecentActivitiesTooManyRequests

type GetRecentActivitiesTooManyRequests struct {
	Payload *models.Error
}

GetRecentActivitiesTooManyRequests describes a response with status code 429, with default header values.

Too many requests

func NewGetRecentActivitiesTooManyRequests

func NewGetRecentActivitiesTooManyRequests() *GetRecentActivitiesTooManyRequests

NewGetRecentActivitiesTooManyRequests creates a GetRecentActivitiesTooManyRequests with default headers values

func (*GetRecentActivitiesTooManyRequests) Code

Code gets the status code for the get recent activities too many requests response

func (*GetRecentActivitiesTooManyRequests) Error

func (*GetRecentActivitiesTooManyRequests) GetPayload

func (*GetRecentActivitiesTooManyRequests) IsClientError

func (o *GetRecentActivitiesTooManyRequests) IsClientError() bool

IsClientError returns true when this get recent activities too many requests response has a 4xx status code

func (*GetRecentActivitiesTooManyRequests) IsCode

IsCode returns true when this get recent activities too many requests response a status code equal to that given

func (*GetRecentActivitiesTooManyRequests) IsRedirect

func (o *GetRecentActivitiesTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get recent activities too many requests response has a 3xx status code

func (*GetRecentActivitiesTooManyRequests) IsServerError

func (o *GetRecentActivitiesTooManyRequests) IsServerError() bool

IsServerError returns true when this get recent activities too many requests response has a 5xx status code

func (*GetRecentActivitiesTooManyRequests) IsSuccess

IsSuccess returns true when this get recent activities too many requests response has a 2xx status code

func (*GetRecentActivitiesTooManyRequests) String

type GetRecentActivitiesUnauthorized

type GetRecentActivitiesUnauthorized struct {
	Payload *models.Error
}

GetRecentActivitiesUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetRecentActivitiesUnauthorized

func NewGetRecentActivitiesUnauthorized() *GetRecentActivitiesUnauthorized

NewGetRecentActivitiesUnauthorized creates a GetRecentActivitiesUnauthorized with default headers values

func (*GetRecentActivitiesUnauthorized) Code

Code gets the status code for the get recent activities unauthorized response

func (*GetRecentActivitiesUnauthorized) Error

func (*GetRecentActivitiesUnauthorized) GetPayload

func (o *GetRecentActivitiesUnauthorized) GetPayload() *models.Error

func (*GetRecentActivitiesUnauthorized) IsClientError

func (o *GetRecentActivitiesUnauthorized) IsClientError() bool

IsClientError returns true when this get recent activities unauthorized response has a 4xx status code

func (*GetRecentActivitiesUnauthorized) IsCode

func (o *GetRecentActivitiesUnauthorized) IsCode(code int) bool

IsCode returns true when this get recent activities unauthorized response a status code equal to that given

func (*GetRecentActivitiesUnauthorized) IsRedirect

func (o *GetRecentActivitiesUnauthorized) IsRedirect() bool

IsRedirect returns true when this get recent activities unauthorized response has a 3xx status code

func (*GetRecentActivitiesUnauthorized) IsServerError

func (o *GetRecentActivitiesUnauthorized) IsServerError() bool

IsServerError returns true when this get recent activities unauthorized response has a 5xx status code

func (*GetRecentActivitiesUnauthorized) IsSuccess

func (o *GetRecentActivitiesUnauthorized) IsSuccess() bool

IsSuccess returns true when this get recent activities unauthorized response has a 2xx status code

func (*GetRecentActivitiesUnauthorized) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL