audits

package
v0.0.0-...-f94dac8 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 10 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 audits API

func (*Client) GetAudits

func (a *Client) GetAudits(params *GetAuditsParams, opts ...ClientOption) (*GetAuditsOK, error)

GetAudits retrieves audits

func (*Client) PostAudits

func (a *Client) PostAudits(params *PostAuditsParams, opts ...ClientOption) (*PostAuditsOK, error)

PostAudits posts a new audit log

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 {
	GetAudits(params *GetAuditsParams, opts ...ClientOption) (*GetAuditsOK, error)

	PostAudits(params *PostAuditsParams, opts ...ClientOption) (*PostAuditsOK, 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 audits API client.

type GetAuditsOK

type GetAuditsOK struct {
	Payload []*ModelAudit
}
GetAuditsOK describes a response with status code 200, with default header values.

OK

func NewGetAuditsOK

func NewGetAuditsOK() *GetAuditsOK

NewGetAuditsOK creates a GetAuditsOK with default headers values

func (*GetAuditsOK) Error

func (o *GetAuditsOK) Error() string

func (*GetAuditsOK) GetPayload

func (o *GetAuditsOK) GetPayload() []*ModelAudit

type GetAuditsParams

type GetAuditsParams struct {

	/* ActionType.

	   actionType
	*/
	ActionType *string

	/* ActivityEnd.

	   activityEnd
	*/
	ActivityEnd *string

	/* ActivityStart.

	   activityStart
	*/
	ActivityStart *string

	/* AppID.

	   appID
	*/
	AppID string

	/* EntityID.

	   entityID
	*/
	EntityID *string

	/* EntityName.

	   entityName
	*/
	EntityName *string

	/* UserID.

	   userID
	*/
	UserID *string

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

GetAuditsParams contains all the parameters to send to the API endpoint

for the get audits operation.

Typically these are written to a http.Request.

func NewGetAuditsParams

func NewGetAuditsParams() *GetAuditsParams

NewGetAuditsParams creates a new GetAuditsParams 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 NewGetAuditsParamsWithContext

func NewGetAuditsParamsWithContext(ctx context.Context) *GetAuditsParams

NewGetAuditsParamsWithContext creates a new GetAuditsParams object with the ability to set a context for a request.

func NewGetAuditsParamsWithHTTPClient

func NewGetAuditsParamsWithHTTPClient(client *http.Client) *GetAuditsParams

NewGetAuditsParamsWithHTTPClient creates a new GetAuditsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAuditsParamsWithTimeout

func NewGetAuditsParamsWithTimeout(timeout time.Duration) *GetAuditsParams

NewGetAuditsParamsWithTimeout creates a new GetAuditsParams object with the ability to set a timeout on a request.

func (*GetAuditsParams) SetActionType

func (o *GetAuditsParams) SetActionType(actionType *string)

SetActionType adds the actionType to the get audits params

func (*GetAuditsParams) SetActivityEnd

func (o *GetAuditsParams) SetActivityEnd(activityEnd *string)

SetActivityEnd adds the activityEnd to the get audits params

func (*GetAuditsParams) SetActivityStart

func (o *GetAuditsParams) SetActivityStart(activityStart *string)

SetActivityStart adds the activityStart to the get audits params

func (*GetAuditsParams) SetAppID

func (o *GetAuditsParams) SetAppID(appID string)

SetAppID adds the appId to the get audits params

func (*GetAuditsParams) SetContext

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

SetContext adds the context to the get audits params

func (*GetAuditsParams) SetDefaults

func (o *GetAuditsParams) SetDefaults()

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

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

func (*GetAuditsParams) SetEntityID

func (o *GetAuditsParams) SetEntityID(entityID *string)

SetEntityID adds the entityId to the get audits params

func (*GetAuditsParams) SetEntityName

func (o *GetAuditsParams) SetEntityName(entityName *string)

SetEntityName adds the entityName to the get audits params

func (*GetAuditsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get audits params

func (*GetAuditsParams) SetTimeout

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

SetTimeout adds the timeout to the get audits params

func (*GetAuditsParams) SetUserID

func (o *GetAuditsParams) SetUserID(userID *string)

SetUserID adds the userId to the get audits params

func (*GetAuditsParams) WithActionType

func (o *GetAuditsParams) WithActionType(actionType *string) *GetAuditsParams

WithActionType adds the actionType to the get audits params

func (*GetAuditsParams) WithActivityEnd

func (o *GetAuditsParams) WithActivityEnd(activityEnd *string) *GetAuditsParams

WithActivityEnd adds the activityEnd to the get audits params

func (*GetAuditsParams) WithActivityStart

func (o *GetAuditsParams) WithActivityStart(activityStart *string) *GetAuditsParams

WithActivityStart adds the activityStart to the get audits params

func (*GetAuditsParams) WithAppID

func (o *GetAuditsParams) WithAppID(appID string) *GetAuditsParams

WithAppID adds the appID to the get audits params

func (*GetAuditsParams) WithContext

func (o *GetAuditsParams) WithContext(ctx context.Context) *GetAuditsParams

WithContext adds the context to the get audits params

func (*GetAuditsParams) WithDefaults

func (o *GetAuditsParams) WithDefaults() *GetAuditsParams

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

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

func (*GetAuditsParams) WithEntityID

func (o *GetAuditsParams) WithEntityID(entityID *string) *GetAuditsParams

WithEntityID adds the entityID to the get audits params

func (*GetAuditsParams) WithEntityName

func (o *GetAuditsParams) WithEntityName(entityName *string) *GetAuditsParams

WithEntityName adds the entityName to the get audits params

func (*GetAuditsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get audits params

func (*GetAuditsParams) WithTimeout

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

WithTimeout adds the timeout to the get audits params

func (*GetAuditsParams) WithUserID

func (o *GetAuditsParams) WithUserID(userID *string) *GetAuditsParams

WithUserID adds the userID to the get audits params

func (*GetAuditsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAuditsReader

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

GetAuditsReader is a Reader for the GetAudits structure.

func (*GetAuditsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ModelAudit

type ModelAudit struct {

	// action type
	ActionType string `json:"actionType,omitempty"`

	// activity at
	ActivityAt string `json:"activityAt,omitempty"`

	// additional data
	AdditionalData string `json:"additionalData,omitempty"`

	// app Id
	AppID string `json:"appId,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// entity detail
	EntityDetail string `json:"entityDetail,omitempty"`

	// entity Id
	EntityID string `json:"entityId,omitempty"`

	// entity name
	EntityName string `json:"entityName,omitempty"`

	// user Id
	UserID string `json:"userId,omitempty"`
}

ModelAudit model audit

swagger:model model.Audit

func (*ModelAudit) ContextValidate

func (m *ModelAudit) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this model audit based on context it is used

func (*ModelAudit) MarshalBinary

func (m *ModelAudit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ModelAudit) UnmarshalBinary

func (m *ModelAudit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ModelAudit) Validate

func (m *ModelAudit) Validate(formats strfmt.Registry) error

Validate validates this model audit

type PostAuditsOK

type PostAuditsOK struct {
	Payload *ModelAudit
}
PostAuditsOK describes a response with status code 200, with default header values.

OK

func NewPostAuditsOK

func NewPostAuditsOK() *PostAuditsOK

NewPostAuditsOK creates a PostAuditsOK with default headers values

func (*PostAuditsOK) Error

func (o *PostAuditsOK) Error() string

func (*PostAuditsOK) GetPayload

func (o *PostAuditsOK) GetPayload() *ModelAudit

type PostAuditsParams

type PostAuditsParams struct {

	/* Audit.

	   audit
	*/
	Audit *ModelAudit

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

PostAuditsParams contains all the parameters to send to the API endpoint

for the post audits operation.

Typically these are written to a http.Request.

func NewPostAuditsParams

func NewPostAuditsParams() *PostAuditsParams

NewPostAuditsParams creates a new PostAuditsParams 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 NewPostAuditsParamsWithContext

func NewPostAuditsParamsWithContext(ctx context.Context) *PostAuditsParams

NewPostAuditsParamsWithContext creates a new PostAuditsParams object with the ability to set a context for a request.

func NewPostAuditsParamsWithHTTPClient

func NewPostAuditsParamsWithHTTPClient(client *http.Client) *PostAuditsParams

NewPostAuditsParamsWithHTTPClient creates a new PostAuditsParams object with the ability to set a custom HTTPClient for a request.

func NewPostAuditsParamsWithTimeout

func NewPostAuditsParamsWithTimeout(timeout time.Duration) *PostAuditsParams

NewPostAuditsParamsWithTimeout creates a new PostAuditsParams object with the ability to set a timeout on a request.

func (*PostAuditsParams) SetAudit

func (o *PostAuditsParams) SetAudit(audit *ModelAudit)

SetAudit adds the audit to the post audits params

func (*PostAuditsParams) SetContext

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

SetContext adds the context to the post audits params

func (*PostAuditsParams) SetDefaults

func (o *PostAuditsParams) SetDefaults()

SetDefaults hydrates default values in the post audits params (not the query body).

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

func (*PostAuditsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post audits params

func (*PostAuditsParams) SetTimeout

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

SetTimeout adds the timeout to the post audits params

func (*PostAuditsParams) WithAudit

func (o *PostAuditsParams) WithAudit(audit *ModelAudit) *PostAuditsParams

WithAudit adds the audit to the post audits params

func (*PostAuditsParams) WithContext

func (o *PostAuditsParams) WithContext(ctx context.Context) *PostAuditsParams

WithContext adds the context to the post audits params

func (*PostAuditsParams) WithDefaults

func (o *PostAuditsParams) WithDefaults() *PostAuditsParams

WithDefaults hydrates default values in the post audits params (not the query body).

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

func (*PostAuditsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post audits params

func (*PostAuditsParams) WithTimeout

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

WithTimeout adds the timeout to the post audits params

func (*PostAuditsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostAuditsReader

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

PostAuditsReader is a Reader for the PostAudits structure.

func (*PostAuditsReader) ReadResponse

func (o *PostAuditsReader) 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