activity_logs

package
v0.0.0-...-4ac4f36 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 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 activity logs API

func (*Client) GetActivityLog

func (a *Client) GetActivityLog(params *GetActivityLogParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetActivityLogOK, error)

GetActivityLog get activity log API

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 {
	GetActivityLog(params *GetActivityLogParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetActivityLogOK, 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 activity logs API client.

type GetActivityLogOK

type GetActivityLogOK struct {
	Payload *models.ActivityLog
}
GetActivityLogOK describes a response with status code 200, with default header values.

Success

func NewGetActivityLogOK

func NewGetActivityLogOK() *GetActivityLogOK

NewGetActivityLogOK creates a GetActivityLogOK with default headers values

func (*GetActivityLogOK) Error

func (o *GetActivityLogOK) Error() string

func (*GetActivityLogOK) GetPayload

func (o *GetActivityLogOK) GetPayload() *models.ActivityLog

type GetActivityLogParams

type GetActivityLogParams struct {

	// Entity.
	Entity *string

	// From.
	//
	// Format: date-time
	From *strfmt.DateTime

	// ID.
	//
	// Format: int32
	ID *int32

	// Ids.
	Ids []int32

	// Page.
	//
	// Format: int32
	Page *int32

	// PageSize.
	//
	// Format: int32
	PageSize *int32

	// SearchDate.
	//
	// Format: date-time
	SearchDate *strfmt.DateTime

	// To.
	//
	// Format: date-time
	To *strfmt.DateTime

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

GetActivityLogParams contains all the parameters to send to the API endpoint

for the get activity log operation.

Typically these are written to a http.Request.

func NewGetActivityLogParams

func NewGetActivityLogParams() *GetActivityLogParams

NewGetActivityLogParams creates a new GetActivityLogParams 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 NewGetActivityLogParamsWithContext

func NewGetActivityLogParamsWithContext(ctx context.Context) *GetActivityLogParams

NewGetActivityLogParamsWithContext creates a new GetActivityLogParams object with the ability to set a context for a request.

func NewGetActivityLogParamsWithHTTPClient

func NewGetActivityLogParamsWithHTTPClient(client *http.Client) *GetActivityLogParams

NewGetActivityLogParamsWithHTTPClient creates a new GetActivityLogParams object with the ability to set a custom HTTPClient for a request.

func NewGetActivityLogParamsWithTimeout

func NewGetActivityLogParamsWithTimeout(timeout time.Duration) *GetActivityLogParams

NewGetActivityLogParamsWithTimeout creates a new GetActivityLogParams object with the ability to set a timeout on a request.

func (*GetActivityLogParams) SetContext

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

SetContext adds the context to the get activity log params

func (*GetActivityLogParams) SetDefaults

func (o *GetActivityLogParams) SetDefaults()

SetDefaults hydrates default values in the get activity log params (not the query body).

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

func (*GetActivityLogParams) SetEntity

func (o *GetActivityLogParams) SetEntity(entity *string)

SetEntity adds the entity to the get activity log params

func (*GetActivityLogParams) SetFrom

func (o *GetActivityLogParams) SetFrom(from *strfmt.DateTime)

SetFrom adds the from to the get activity log params

func (*GetActivityLogParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get activity log params

func (*GetActivityLogParams) SetID

func (o *GetActivityLogParams) SetID(id *int32)

SetID adds the id to the get activity log params

func (*GetActivityLogParams) SetIds

func (o *GetActivityLogParams) SetIds(ids []int32)

SetIds adds the ids to the get activity log params

func (*GetActivityLogParams) SetPage

func (o *GetActivityLogParams) SetPage(page *int32)

SetPage adds the page to the get activity log params

func (*GetActivityLogParams) SetPageSize

func (o *GetActivityLogParams) SetPageSize(pageSize *int32)

SetPageSize adds the pageSize to the get activity log params

func (*GetActivityLogParams) SetSearchDate

func (o *GetActivityLogParams) SetSearchDate(searchDate *strfmt.DateTime)

SetSearchDate adds the searchDate to the get activity log params

func (*GetActivityLogParams) SetTimeout

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

SetTimeout adds the timeout to the get activity log params

func (*GetActivityLogParams) SetTo

func (o *GetActivityLogParams) SetTo(to *strfmt.DateTime)

SetTo adds the to to the get activity log params

func (*GetActivityLogParams) WithContext

WithContext adds the context to the get activity log params

func (*GetActivityLogParams) WithDefaults

func (o *GetActivityLogParams) WithDefaults() *GetActivityLogParams

WithDefaults hydrates default values in the get activity log params (not the query body).

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

func (*GetActivityLogParams) WithEntity

func (o *GetActivityLogParams) WithEntity(entity *string) *GetActivityLogParams

WithEntity adds the entity to the get activity log params

func (*GetActivityLogParams) WithFrom

WithFrom adds the from to the get activity log params

func (*GetActivityLogParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get activity log params

func (*GetActivityLogParams) WithID

WithID adds the id to the get activity log params

func (*GetActivityLogParams) WithIds

func (o *GetActivityLogParams) WithIds(ids []int32) *GetActivityLogParams

WithIds adds the ids to the get activity log params

func (*GetActivityLogParams) WithPage

func (o *GetActivityLogParams) WithPage(page *int32) *GetActivityLogParams

WithPage adds the page to the get activity log params

func (*GetActivityLogParams) WithPageSize

func (o *GetActivityLogParams) WithPageSize(pageSize *int32) *GetActivityLogParams

WithPageSize adds the pageSize to the get activity log params

func (*GetActivityLogParams) WithSearchDate

func (o *GetActivityLogParams) WithSearchDate(searchDate *strfmt.DateTime) *GetActivityLogParams

WithSearchDate adds the searchDate to the get activity log params

func (*GetActivityLogParams) WithTimeout

func (o *GetActivityLogParams) WithTimeout(timeout time.Duration) *GetActivityLogParams

WithTimeout adds the timeout to the get activity log params

func (*GetActivityLogParams) WithTo

WithTo adds the to to the get activity log params

func (*GetActivityLogParams) WriteToRequest

func (o *GetActivityLogParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetActivityLogReader

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

GetActivityLogReader is a Reader for the GetActivityLog structure.

func (*GetActivityLogReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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