audit_events

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 audit events API

func (*Client) ListAuditEvents

func (a *Client) ListAuditEvents(params *ListAuditEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAuditEventsOK, error)

ListAuditEvents lists audit events

Returns list of autit events.

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 {
	ListAuditEvents(params *ListAuditEventsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAuditEventsOK, 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 events API client.

type ListAuditEventsBadRequest

type ListAuditEventsBadRequest struct {
	Payload *models.Error
}

ListAuditEventsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewListAuditEventsBadRequest

func NewListAuditEventsBadRequest() *ListAuditEventsBadRequest

NewListAuditEventsBadRequest creates a ListAuditEventsBadRequest with default headers values

func (*ListAuditEventsBadRequest) Code

func (o *ListAuditEventsBadRequest) Code() int

Code gets the status code for the list audit events bad request response

func (*ListAuditEventsBadRequest) Error

func (o *ListAuditEventsBadRequest) Error() string

func (*ListAuditEventsBadRequest) GetPayload

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

func (*ListAuditEventsBadRequest) IsClientError

func (o *ListAuditEventsBadRequest) IsClientError() bool

IsClientError returns true when this list audit events bad request response has a 4xx status code

func (*ListAuditEventsBadRequest) IsCode

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

IsCode returns true when this list audit events bad request response a status code equal to that given

func (*ListAuditEventsBadRequest) IsRedirect

func (o *ListAuditEventsBadRequest) IsRedirect() bool

IsRedirect returns true when this list audit events bad request response has a 3xx status code

func (*ListAuditEventsBadRequest) IsServerError

func (o *ListAuditEventsBadRequest) IsServerError() bool

IsServerError returns true when this list audit events bad request response has a 5xx status code

func (*ListAuditEventsBadRequest) IsSuccess

func (o *ListAuditEventsBadRequest) IsSuccess() bool

IsSuccess returns true when this list audit events bad request response has a 2xx status code

func (*ListAuditEventsBadRequest) String

func (o *ListAuditEventsBadRequest) String() string

type ListAuditEventsForbidden

type ListAuditEventsForbidden struct {
	Payload *models.Error
}

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

Forbidden

func NewListAuditEventsForbidden

func NewListAuditEventsForbidden() *ListAuditEventsForbidden

NewListAuditEventsForbidden creates a ListAuditEventsForbidden with default headers values

func (*ListAuditEventsForbidden) Code

func (o *ListAuditEventsForbidden) Code() int

Code gets the status code for the list audit events forbidden response

func (*ListAuditEventsForbidden) Error

func (o *ListAuditEventsForbidden) Error() string

func (*ListAuditEventsForbidden) GetPayload

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

func (*ListAuditEventsForbidden) IsClientError

func (o *ListAuditEventsForbidden) IsClientError() bool

IsClientError returns true when this list audit events forbidden response has a 4xx status code

func (*ListAuditEventsForbidden) IsCode

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

IsCode returns true when this list audit events forbidden response a status code equal to that given

func (*ListAuditEventsForbidden) IsRedirect

func (o *ListAuditEventsForbidden) IsRedirect() bool

IsRedirect returns true when this list audit events forbidden response has a 3xx status code

func (*ListAuditEventsForbidden) IsServerError

func (o *ListAuditEventsForbidden) IsServerError() bool

IsServerError returns true when this list audit events forbidden response has a 5xx status code

func (*ListAuditEventsForbidden) IsSuccess

func (o *ListAuditEventsForbidden) IsSuccess() bool

IsSuccess returns true when this list audit events forbidden response has a 2xx status code

func (*ListAuditEventsForbidden) String

func (o *ListAuditEventsForbidden) String() string

type ListAuditEventsNotFound

type ListAuditEventsNotFound struct {
	Payload *models.Error
}

ListAuditEventsNotFound describes a response with status code 404, with default header values.

Not found

func NewListAuditEventsNotFound

func NewListAuditEventsNotFound() *ListAuditEventsNotFound

NewListAuditEventsNotFound creates a ListAuditEventsNotFound with default headers values

func (*ListAuditEventsNotFound) Code

func (o *ListAuditEventsNotFound) Code() int

Code gets the status code for the list audit events not found response

func (*ListAuditEventsNotFound) Error

func (o *ListAuditEventsNotFound) Error() string

func (*ListAuditEventsNotFound) GetPayload

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

func (*ListAuditEventsNotFound) IsClientError

func (o *ListAuditEventsNotFound) IsClientError() bool

IsClientError returns true when this list audit events not found response has a 4xx status code

func (*ListAuditEventsNotFound) IsCode

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

IsCode returns true when this list audit events not found response a status code equal to that given

func (*ListAuditEventsNotFound) IsRedirect

func (o *ListAuditEventsNotFound) IsRedirect() bool

IsRedirect returns true when this list audit events not found response has a 3xx status code

func (*ListAuditEventsNotFound) IsServerError

func (o *ListAuditEventsNotFound) IsServerError() bool

IsServerError returns true when this list audit events not found response has a 5xx status code

func (*ListAuditEventsNotFound) IsSuccess

func (o *ListAuditEventsNotFound) IsSuccess() bool

IsSuccess returns true when this list audit events not found response has a 2xx status code

func (*ListAuditEventsNotFound) String

func (o *ListAuditEventsNotFound) String() string

type ListAuditEventsOK

type ListAuditEventsOK struct {

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

	in:header

	     Format: etag
	*/
	Etag string

	Payload *models.AuditEvents
}

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

AuditEvents

func NewListAuditEventsOK

func NewListAuditEventsOK() *ListAuditEventsOK

NewListAuditEventsOK creates a ListAuditEventsOK with default headers values

func (*ListAuditEventsOK) Code

func (o *ListAuditEventsOK) Code() int

Code gets the status code for the list audit events o k response

func (*ListAuditEventsOK) Error

func (o *ListAuditEventsOK) Error() string

func (*ListAuditEventsOK) GetPayload

func (o *ListAuditEventsOK) GetPayload() *models.AuditEvents

func (*ListAuditEventsOK) IsClientError

func (o *ListAuditEventsOK) IsClientError() bool

IsClientError returns true when this list audit events o k response has a 4xx status code

func (*ListAuditEventsOK) IsCode

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

IsCode returns true when this list audit events o k response a status code equal to that given

func (*ListAuditEventsOK) IsRedirect

func (o *ListAuditEventsOK) IsRedirect() bool

IsRedirect returns true when this list audit events o k response has a 3xx status code

func (*ListAuditEventsOK) IsServerError

func (o *ListAuditEventsOK) IsServerError() bool

IsServerError returns true when this list audit events o k response has a 5xx status code

func (*ListAuditEventsOK) IsSuccess

func (o *ListAuditEventsOK) IsSuccess() bool

IsSuccess returns true when this list audit events o k response has a 2xx status code

func (*ListAuditEventsOK) String

func (o *ListAuditEventsOK) String() string

type ListAuditEventsParams

type ListAuditEventsParams struct {

	/* AfterEventID.

	     optional list audit events after a given event id
	AfterEventID
	*/
	AfterEventID *string

	/* BeforeEventID.

	     optional list events before a given event id
	BeforeEventID
	*/
	BeforeEventID *string

	/* ClientID.

	     optional list audit events with a given client id
	ClientID
	*/
	ClientID *string

	/* EventAction.

	     Optional list of event types, one of: authorized unauthorized created updated deleted requested accepted rejected issued denied granted attempted failed sent not_sent revoked
	EventType
	*/
	EventAction []string

	/* EventSubject.

	     Optional list of event subjects, one of: request client gateway_request policy consent authorization_code recovery login access_token scopes otp gateway_policy user credential dcr role jit tokens service server
	EventSubject
	*/
	EventSubject []string

	/* IfMatch.

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

	   Format: etag
	*/
	IfMatch *string

	/* IP.

	     optional list audit events with a given ip address
	IP
	*/
	IP *string

	/* Limit.

	     optional limit results, min 1, max 100
	Limit

	     Format: int64
	     Default: 20
	*/
	Limit *int64

	/* Order.

	     optional order audit events by given direction
	Order
	*/
	Order *string

	/* SessionID.

	     optional list audit events with a given session id

	it can be used as a correlation id for listing all login related audit events
	SessionID
	*/
	SessionID *string

	/* Sort.

	     optional sort audit events by a given field
	Sort
	*/
	Sort *string

	/* Subject.

	     optional list audit events with a given subject
	Subject
	*/
	Subject *string

	/* TimestampFrom.

	     list all events after a given time
	TimestampFrom

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

	/* TimestampTo.

	     list all events before a given time
	TimestampTo

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

	/* Wid.

	   Authorization server id

	   Default: "admin"
	*/
	Wid string

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

ListAuditEventsParams contains all the parameters to send to the API endpoint

for the list audit events operation.

Typically these are written to a http.Request.

func NewListAuditEventsParams

func NewListAuditEventsParams() *ListAuditEventsParams

NewListAuditEventsParams creates a new ListAuditEventsParams 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 NewListAuditEventsParamsWithContext

func NewListAuditEventsParamsWithContext(ctx context.Context) *ListAuditEventsParams

NewListAuditEventsParamsWithContext creates a new ListAuditEventsParams object with the ability to set a context for a request.

func NewListAuditEventsParamsWithHTTPClient

func NewListAuditEventsParamsWithHTTPClient(client *http.Client) *ListAuditEventsParams

NewListAuditEventsParamsWithHTTPClient creates a new ListAuditEventsParams object with the ability to set a custom HTTPClient for a request.

func NewListAuditEventsParamsWithTimeout

func NewListAuditEventsParamsWithTimeout(timeout time.Duration) *ListAuditEventsParams

NewListAuditEventsParamsWithTimeout creates a new ListAuditEventsParams object with the ability to set a timeout on a request.

func (*ListAuditEventsParams) SetAfterEventID

func (o *ListAuditEventsParams) SetAfterEventID(afterEventID *string)

SetAfterEventID adds the afterEventId to the list audit events params

func (*ListAuditEventsParams) SetBeforeEventID

func (o *ListAuditEventsParams) SetBeforeEventID(beforeEventID *string)

SetBeforeEventID adds the beforeEventId to the list audit events params

func (*ListAuditEventsParams) SetClientID

func (o *ListAuditEventsParams) SetClientID(clientID *string)

SetClientID adds the clientId to the list audit events params

func (*ListAuditEventsParams) SetContext

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

SetContext adds the context to the list audit events params

func (*ListAuditEventsParams) SetDefaults

func (o *ListAuditEventsParams) SetDefaults()

SetDefaults hydrates default values in the list audit events params (not the query body).

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

func (*ListAuditEventsParams) SetEventAction

func (o *ListAuditEventsParams) SetEventAction(eventAction []string)

SetEventAction adds the eventAction to the list audit events params

func (*ListAuditEventsParams) SetEventSubject

func (o *ListAuditEventsParams) SetEventSubject(eventSubject []string)

SetEventSubject adds the eventSubject to the list audit events params

func (*ListAuditEventsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list audit events params

func (*ListAuditEventsParams) SetIP

func (o *ListAuditEventsParams) SetIP(ip *string)

SetIP adds the ip to the list audit events params

func (*ListAuditEventsParams) SetIfMatch

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

SetIfMatch adds the ifMatch to the list audit events params

func (*ListAuditEventsParams) SetLimit

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

SetLimit adds the limit to the list audit events params

func (*ListAuditEventsParams) SetOrder

func (o *ListAuditEventsParams) SetOrder(order *string)

SetOrder adds the order to the list audit events params

func (*ListAuditEventsParams) SetSessionID

func (o *ListAuditEventsParams) SetSessionID(sessionID *string)

SetSessionID adds the sessionId to the list audit events params

func (*ListAuditEventsParams) SetSort

func (o *ListAuditEventsParams) SetSort(sort *string)

SetSort adds the sort to the list audit events params

func (*ListAuditEventsParams) SetSubject

func (o *ListAuditEventsParams) SetSubject(subject *string)

SetSubject adds the subject to the list audit events params

func (*ListAuditEventsParams) SetTimeout

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

SetTimeout adds the timeout to the list audit events params

func (*ListAuditEventsParams) SetTimestampFrom

func (o *ListAuditEventsParams) SetTimestampFrom(timestampFrom *strfmt.DateTime)

SetTimestampFrom adds the timestampFrom to the list audit events params

func (*ListAuditEventsParams) SetTimestampTo

func (o *ListAuditEventsParams) SetTimestampTo(timestampTo *strfmt.DateTime)

SetTimestampTo adds the timestampTo to the list audit events params

func (*ListAuditEventsParams) SetWid

func (o *ListAuditEventsParams) SetWid(wid string)

SetWid adds the wid to the list audit events params

func (*ListAuditEventsParams) WithAfterEventID

func (o *ListAuditEventsParams) WithAfterEventID(afterEventID *string) *ListAuditEventsParams

WithAfterEventID adds the afterEventID to the list audit events params

func (*ListAuditEventsParams) WithBeforeEventID

func (o *ListAuditEventsParams) WithBeforeEventID(beforeEventID *string) *ListAuditEventsParams

WithBeforeEventID adds the beforeEventID to the list audit events params

func (*ListAuditEventsParams) WithClientID

func (o *ListAuditEventsParams) WithClientID(clientID *string) *ListAuditEventsParams

WithClientID adds the clientID to the list audit events params

func (*ListAuditEventsParams) WithContext

WithContext adds the context to the list audit events params

func (*ListAuditEventsParams) WithDefaults

func (o *ListAuditEventsParams) WithDefaults() *ListAuditEventsParams

WithDefaults hydrates default values in the list audit events params (not the query body).

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

func (*ListAuditEventsParams) WithEventAction

func (o *ListAuditEventsParams) WithEventAction(eventAction []string) *ListAuditEventsParams

WithEventAction adds the eventAction to the list audit events params

func (*ListAuditEventsParams) WithEventSubject

func (o *ListAuditEventsParams) WithEventSubject(eventSubject []string) *ListAuditEventsParams

WithEventSubject adds the eventSubject to the list audit events params

func (*ListAuditEventsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list audit events params

func (*ListAuditEventsParams) WithIP

WithIP adds the ip to the list audit events params

func (*ListAuditEventsParams) WithIfMatch

func (o *ListAuditEventsParams) WithIfMatch(ifMatch *string) *ListAuditEventsParams

WithIfMatch adds the ifMatch to the list audit events params

func (*ListAuditEventsParams) WithLimit

func (o *ListAuditEventsParams) WithLimit(limit *int64) *ListAuditEventsParams

WithLimit adds the limit to the list audit events params

func (*ListAuditEventsParams) WithOrder

func (o *ListAuditEventsParams) WithOrder(order *string) *ListAuditEventsParams

WithOrder adds the order to the list audit events params

func (*ListAuditEventsParams) WithSessionID

func (o *ListAuditEventsParams) WithSessionID(sessionID *string) *ListAuditEventsParams

WithSessionID adds the sessionID to the list audit events params

func (*ListAuditEventsParams) WithSort

WithSort adds the sort to the list audit events params

func (*ListAuditEventsParams) WithSubject

func (o *ListAuditEventsParams) WithSubject(subject *string) *ListAuditEventsParams

WithSubject adds the subject to the list audit events params

func (*ListAuditEventsParams) WithTimeout

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

WithTimeout adds the timeout to the list audit events params

func (*ListAuditEventsParams) WithTimestampFrom

func (o *ListAuditEventsParams) WithTimestampFrom(timestampFrom *strfmt.DateTime) *ListAuditEventsParams

WithTimestampFrom adds the timestampFrom to the list audit events params

func (*ListAuditEventsParams) WithTimestampTo

func (o *ListAuditEventsParams) WithTimestampTo(timestampTo *strfmt.DateTime) *ListAuditEventsParams

WithTimestampTo adds the timestampTo to the list audit events params

func (*ListAuditEventsParams) WithWid

WithWid adds the wid to the list audit events params

func (*ListAuditEventsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListAuditEventsReader

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

ListAuditEventsReader is a Reader for the ListAuditEvents structure.

func (*ListAuditEventsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListAuditEventsTooManyRequests

type ListAuditEventsTooManyRequests struct {
	Payload *models.Error
}

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

Too many requests

func NewListAuditEventsTooManyRequests

func NewListAuditEventsTooManyRequests() *ListAuditEventsTooManyRequests

NewListAuditEventsTooManyRequests creates a ListAuditEventsTooManyRequests with default headers values

func (*ListAuditEventsTooManyRequests) Code

Code gets the status code for the list audit events too many requests response

func (*ListAuditEventsTooManyRequests) Error

func (*ListAuditEventsTooManyRequests) GetPayload

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

func (*ListAuditEventsTooManyRequests) IsClientError

func (o *ListAuditEventsTooManyRequests) IsClientError() bool

IsClientError returns true when this list audit events too many requests response has a 4xx status code

func (*ListAuditEventsTooManyRequests) IsCode

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

IsCode returns true when this list audit events too many requests response a status code equal to that given

func (*ListAuditEventsTooManyRequests) IsRedirect

func (o *ListAuditEventsTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list audit events too many requests response has a 3xx status code

func (*ListAuditEventsTooManyRequests) IsServerError

func (o *ListAuditEventsTooManyRequests) IsServerError() bool

IsServerError returns true when this list audit events too many requests response has a 5xx status code

func (*ListAuditEventsTooManyRequests) IsSuccess

func (o *ListAuditEventsTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list audit events too many requests response has a 2xx status code

func (*ListAuditEventsTooManyRequests) String

type ListAuditEventsUnauthorized

type ListAuditEventsUnauthorized struct {
	Payload *models.Error
}

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

Unauthorized

func NewListAuditEventsUnauthorized

func NewListAuditEventsUnauthorized() *ListAuditEventsUnauthorized

NewListAuditEventsUnauthorized creates a ListAuditEventsUnauthorized with default headers values

func (*ListAuditEventsUnauthorized) Code

func (o *ListAuditEventsUnauthorized) Code() int

Code gets the status code for the list audit events unauthorized response

func (*ListAuditEventsUnauthorized) Error

func (*ListAuditEventsUnauthorized) GetPayload

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

func (*ListAuditEventsUnauthorized) IsClientError

func (o *ListAuditEventsUnauthorized) IsClientError() bool

IsClientError returns true when this list audit events unauthorized response has a 4xx status code

func (*ListAuditEventsUnauthorized) IsCode

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

IsCode returns true when this list audit events unauthorized response a status code equal to that given

func (*ListAuditEventsUnauthorized) IsRedirect

func (o *ListAuditEventsUnauthorized) IsRedirect() bool

IsRedirect returns true when this list audit events unauthorized response has a 3xx status code

func (*ListAuditEventsUnauthorized) IsServerError

func (o *ListAuditEventsUnauthorized) IsServerError() bool

IsServerError returns true when this list audit events unauthorized response has a 5xx status code

func (*ListAuditEventsUnauthorized) IsSuccess

func (o *ListAuditEventsUnauthorized) IsSuccess() bool

IsSuccess returns true when this list audit events unauthorized response has a 2xx status code

func (*ListAuditEventsUnauthorized) String

func (o *ListAuditEventsUnauthorized) String() string

Jump to

Keyboard shortcuts

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