audit_log

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT 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 audit log API

func (*Client) GetAuditlogs

func (a *Client) GetAuditlogs(params *GetAuditlogsParams, authInfo runtime.ClientAuthInfoWriter) (*GetAuditlogsOK, error)

GetAuditlogs retrieves the audit history for all changes made in device42

Get Audit Logs

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	GetAuditlogs(params *GetAuditlogsParams, authInfo runtime.ClientAuthInfoWriter) (*GetAuditlogsOK, 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 audit log API client.

type GetAuditlogsBadRequest

type GetAuditlogsBadRequest struct {
}

GetAuditlogsBadRequest handles this case with default header values.

Bad Request (A validation exception has occurred.)

func NewGetAuditlogsBadRequest

func NewGetAuditlogsBadRequest() *GetAuditlogsBadRequest

NewGetAuditlogsBadRequest creates a GetAuditlogsBadRequest with default headers values

func (*GetAuditlogsBadRequest) Error

func (o *GetAuditlogsBadRequest) Error() string

type GetAuditlogsForbidden

type GetAuditlogsForbidden struct {
}

GetAuditlogsForbidden handles this case with default header values.

Forbidden (The resource requested is hidden)

func NewGetAuditlogsForbidden

func NewGetAuditlogsForbidden() *GetAuditlogsForbidden

NewGetAuditlogsForbidden creates a GetAuditlogsForbidden with default headers values

func (*GetAuditlogsForbidden) Error

func (o *GetAuditlogsForbidden) Error() string

type GetAuditlogsGone

type GetAuditlogsGone struct {
}

GetAuditlogsGone handles this case with default header values.

Gone (The resource requested has been removed from our servers)

func NewGetAuditlogsGone

func NewGetAuditlogsGone() *GetAuditlogsGone

NewGetAuditlogsGone creates a GetAuditlogsGone with default headers values

func (*GetAuditlogsGone) Error

func (o *GetAuditlogsGone) Error() string

type GetAuditlogsInternalServerError

type GetAuditlogsInternalServerError struct {
}

GetAuditlogsInternalServerError handles this case with default header values.

Internal Server Error (Some parameter missing or issue with the server. Check with returned “msg” from the call.)

func NewGetAuditlogsInternalServerError

func NewGetAuditlogsInternalServerError() *GetAuditlogsInternalServerError

NewGetAuditlogsInternalServerError creates a GetAuditlogsInternalServerError with default headers values

func (*GetAuditlogsInternalServerError) Error

type GetAuditlogsMethodNotAllowed

type GetAuditlogsMethodNotAllowed struct {
}

GetAuditlogsMethodNotAllowed handles this case with default header values.

Method Not Allowed (You tried to access a resource with an invalid method)

func NewGetAuditlogsMethodNotAllowed

func NewGetAuditlogsMethodNotAllowed() *GetAuditlogsMethodNotAllowed

NewGetAuditlogsMethodNotAllowed creates a GetAuditlogsMethodNotAllowed with default headers values

func (*GetAuditlogsMethodNotAllowed) Error

type GetAuditlogsNotFound

type GetAuditlogsNotFound struct {
}

GetAuditlogsNotFound handles this case with default header values.

Not Found (The specified resource could not be found)

func NewGetAuditlogsNotFound

func NewGetAuditlogsNotFound() *GetAuditlogsNotFound

NewGetAuditlogsNotFound creates a GetAuditlogsNotFound with default headers values

func (*GetAuditlogsNotFound) Error

func (o *GetAuditlogsNotFound) Error() string

type GetAuditlogsOK

type GetAuditlogsOK struct {
	Payload *models.GetAuditLogs
}

GetAuditlogsOK handles this case with default header values.

The above command returns results like this:

func NewGetAuditlogsOK

func NewGetAuditlogsOK() *GetAuditlogsOK

NewGetAuditlogsOK creates a GetAuditlogsOK with default headers values

func (*GetAuditlogsOK) Error

func (o *GetAuditlogsOK) Error() string

func (*GetAuditlogsOK) GetPayload

func (o *GetAuditlogsOK) GetPayload() *models.GetAuditLogs

type GetAuditlogsParams

type GetAuditlogsParams struct {

	/*ActionTimeGt
	  Filters actions that have happened past the time entered (ie, greater than 2 weeks) in YYYY-MM-DDTHH:MM:ss.uuuuuu (ie 2016-10-27T13:52:01.213416)

	*/
	ActionTimeGt *string
	/*ActionTimeLt
	  Returns actions within the last X amount of days in YYYY-MM-DDTHH:MM:ss.uuuuuu (ie 2016-10-27T13:52:01.213416)

	*/
	ActionTimeLt *string
	/*ContentType
	  Returns changes done to a particular content type

	*/
	ContentType *string
	/*ObjectID
	  Filters by object ID (ie, device ID, asset ID)

	*/
	ObjectID *string

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

GetAuditlogsParams contains all the parameters to send to the API endpoint for the get auditlogs operation typically these are written to a http.Request

func NewGetAuditlogsParams

func NewGetAuditlogsParams() *GetAuditlogsParams

NewGetAuditlogsParams creates a new GetAuditlogsParams object with the default values initialized.

func NewGetAuditlogsParamsWithContext

func NewGetAuditlogsParamsWithContext(ctx context.Context) *GetAuditlogsParams

NewGetAuditlogsParamsWithContext creates a new GetAuditlogsParams object with the default values initialized, and the ability to set a context for a request

func NewGetAuditlogsParamsWithHTTPClient

func NewGetAuditlogsParamsWithHTTPClient(client *http.Client) *GetAuditlogsParams

NewGetAuditlogsParamsWithHTTPClient creates a new GetAuditlogsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetAuditlogsParamsWithTimeout

func NewGetAuditlogsParamsWithTimeout(timeout time.Duration) *GetAuditlogsParams

NewGetAuditlogsParamsWithTimeout creates a new GetAuditlogsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetAuditlogsParams) SetActionTimeGt

func (o *GetAuditlogsParams) SetActionTimeGt(actionTimeGt *string)

SetActionTimeGt adds the actionTimeGt to the get auditlogs params

func (*GetAuditlogsParams) SetActionTimeLt

func (o *GetAuditlogsParams) SetActionTimeLt(actionTimeLt *string)

SetActionTimeLt adds the actionTimeLt to the get auditlogs params

func (*GetAuditlogsParams) SetContentType

func (o *GetAuditlogsParams) SetContentType(contentType *string)

SetContentType adds the contentType to the get auditlogs params

func (*GetAuditlogsParams) SetContext

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

SetContext adds the context to the get auditlogs params

func (*GetAuditlogsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get auditlogs params

func (*GetAuditlogsParams) SetObjectID

func (o *GetAuditlogsParams) SetObjectID(objectID *string)

SetObjectID adds the objectId to the get auditlogs params

func (*GetAuditlogsParams) SetTimeout

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

SetTimeout adds the timeout to the get auditlogs params

func (*GetAuditlogsParams) WithActionTimeGt

func (o *GetAuditlogsParams) WithActionTimeGt(actionTimeGt *string) *GetAuditlogsParams

WithActionTimeGt adds the actionTimeGt to the get auditlogs params

func (*GetAuditlogsParams) WithActionTimeLt

func (o *GetAuditlogsParams) WithActionTimeLt(actionTimeLt *string) *GetAuditlogsParams

WithActionTimeLt adds the actionTimeLt to the get auditlogs params

func (*GetAuditlogsParams) WithContentType

func (o *GetAuditlogsParams) WithContentType(contentType *string) *GetAuditlogsParams

WithContentType adds the contentType to the get auditlogs params

func (*GetAuditlogsParams) WithContext

WithContext adds the context to the get auditlogs params

func (*GetAuditlogsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get auditlogs params

func (*GetAuditlogsParams) WithObjectID

func (o *GetAuditlogsParams) WithObjectID(objectID *string) *GetAuditlogsParams

WithObjectID adds the objectID to the get auditlogs params

func (*GetAuditlogsParams) WithTimeout

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

WithTimeout adds the timeout to the get auditlogs params

func (*GetAuditlogsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAuditlogsReader

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

GetAuditlogsReader is a Reader for the GetAuditlogs structure.

func (*GetAuditlogsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAuditlogsServiceUnavailable

type GetAuditlogsServiceUnavailable struct {
}

GetAuditlogsServiceUnavailable handles this case with default header values.

Service Unavailable (Please check if your Device42 instance is working normally.)

func NewGetAuditlogsServiceUnavailable

func NewGetAuditlogsServiceUnavailable() *GetAuditlogsServiceUnavailable

NewGetAuditlogsServiceUnavailable creates a GetAuditlogsServiceUnavailable with default headers values

func (*GetAuditlogsServiceUnavailable) Error

type GetAuditlogsUnauthorized

type GetAuditlogsUnauthorized struct {
}

GetAuditlogsUnauthorized handles this case with default header values.

Unauthorized (Your credentials suck)

func NewGetAuditlogsUnauthorized

func NewGetAuditlogsUnauthorized() *GetAuditlogsUnauthorized

NewGetAuditlogsUnauthorized creates a GetAuditlogsUnauthorized with default headers values

func (*GetAuditlogsUnauthorized) Error

func (o *GetAuditlogsUnauthorized) Error() string

Jump to

Keyboard shortcuts

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