runbook_audits

package
v0.0.0-...-d3fc958 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 9 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 runbook audits API

func (*Client) GetV1RunbookAudits

func (a *Client) GetV1RunbookAudits(params *GetV1RunbookAuditsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1RunbookAuditsOK, error)

GetV1RunbookAudits lists runbook audits

Please contact support to enable audit logging for your account.

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 {
	GetV1RunbookAudits(params *GetV1RunbookAuditsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1RunbookAuditsOK, 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 runbook audits API client.

type GetV1RunbookAuditsOK

type GetV1RunbookAuditsOK struct {
}

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

List runbook audits

func NewGetV1RunbookAuditsOK

func NewGetV1RunbookAuditsOK() *GetV1RunbookAuditsOK

NewGetV1RunbookAuditsOK creates a GetV1RunbookAuditsOK with default headers values

func (*GetV1RunbookAuditsOK) Error

func (o *GetV1RunbookAuditsOK) Error() string

func (*GetV1RunbookAuditsOK) IsClientError

func (o *GetV1RunbookAuditsOK) IsClientError() bool

IsClientError returns true when this get v1 runbook audits o k response has a 4xx status code

func (*GetV1RunbookAuditsOK) IsCode

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

IsCode returns true when this get v1 runbook audits o k response a status code equal to that given

func (*GetV1RunbookAuditsOK) IsRedirect

func (o *GetV1RunbookAuditsOK) IsRedirect() bool

IsRedirect returns true when this get v1 runbook audits o k response has a 3xx status code

func (*GetV1RunbookAuditsOK) IsServerError

func (o *GetV1RunbookAuditsOK) IsServerError() bool

IsServerError returns true when this get v1 runbook audits o k response has a 5xx status code

func (*GetV1RunbookAuditsOK) IsSuccess

func (o *GetV1RunbookAuditsOK) IsSuccess() bool

IsSuccess returns true when this get v1 runbook audits o k response has a 2xx status code

func (*GetV1RunbookAuditsOK) String

func (o *GetV1RunbookAuditsOK) String() string

type GetV1RunbookAuditsParams

type GetV1RunbookAuditsParams struct {

	/* AuditableType.

	   A query to filter audits by type

	   Default: "Runbooks::Step"
	*/
	AuditableType *string

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

	// PerPage.
	//
	// Format: int32
	PerPage *int32

	/* Sort.

	   A query to sort audits by their created_at timestamp. Options are 'asc' or 'desc'
	*/
	Sort *string

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

GetV1RunbookAuditsParams contains all the parameters to send to the API endpoint

for the get v1 runbook audits operation.

Typically these are written to a http.Request.

func NewGetV1RunbookAuditsParams

func NewGetV1RunbookAuditsParams() *GetV1RunbookAuditsParams

NewGetV1RunbookAuditsParams creates a new GetV1RunbookAuditsParams 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 NewGetV1RunbookAuditsParamsWithContext

func NewGetV1RunbookAuditsParamsWithContext(ctx context.Context) *GetV1RunbookAuditsParams

NewGetV1RunbookAuditsParamsWithContext creates a new GetV1RunbookAuditsParams object with the ability to set a context for a request.

func NewGetV1RunbookAuditsParamsWithHTTPClient

func NewGetV1RunbookAuditsParamsWithHTTPClient(client *http.Client) *GetV1RunbookAuditsParams

NewGetV1RunbookAuditsParamsWithHTTPClient creates a new GetV1RunbookAuditsParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1RunbookAuditsParamsWithTimeout

func NewGetV1RunbookAuditsParamsWithTimeout(timeout time.Duration) *GetV1RunbookAuditsParams

NewGetV1RunbookAuditsParamsWithTimeout creates a new GetV1RunbookAuditsParams object with the ability to set a timeout on a request.

func (*GetV1RunbookAuditsParams) SetAuditableType

func (o *GetV1RunbookAuditsParams) SetAuditableType(auditableType *string)

SetAuditableType adds the auditableType to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) SetContext

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

SetContext adds the context to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) SetDefaults

func (o *GetV1RunbookAuditsParams) SetDefaults()

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

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

func (*GetV1RunbookAuditsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) SetPage

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

SetPage adds the page to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) SetPerPage

func (o *GetV1RunbookAuditsParams) SetPerPage(perPage *int32)

SetPerPage adds the perPage to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) SetSort

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

SetSort adds the sort to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) WithAuditableType

func (o *GetV1RunbookAuditsParams) WithAuditableType(auditableType *string) *GetV1RunbookAuditsParams

WithAuditableType adds the auditableType to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) WithContext

WithContext adds the context to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) WithDefaults

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

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

func (*GetV1RunbookAuditsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) WithPage

WithPage adds the page to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) WithPerPage

func (o *GetV1RunbookAuditsParams) WithPerPage(perPage *int32) *GetV1RunbookAuditsParams

WithPerPage adds the perPage to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) WithSort

WithSort adds the sort to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) WithTimeout

WithTimeout adds the timeout to the get v1 runbook audits params

func (*GetV1RunbookAuditsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1RunbookAuditsReader

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

GetV1RunbookAuditsReader is a Reader for the GetV1RunbookAudits structure.

func (*GetV1RunbookAuditsReader) ReadResponse

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