resource_change

package
v2.19.1-beta.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2025 License: ISC 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 resource change API

func (*Client) GetResourceChanges

func (a *Client) GetResourceChanges(params *GetResourceChangesParams, opts ...ClientOption) (*GetResourceChangesOK, error)

GetResourceChanges get resource changes 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 {
	GetResourceChanges(params *GetResourceChangesParams, opts ...ClientOption) (*GetResourceChangesOK, 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 resource change API client.

type GetResourceChangesBadRequest

type GetResourceChangesBadRequest struct {
	Payload *models.ErrorBody
}
GetResourceChangesBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetResourceChangesBadRequest

func NewGetResourceChangesBadRequest() *GetResourceChangesBadRequest

NewGetResourceChangesBadRequest creates a GetResourceChangesBadRequest with default headers values

func (*GetResourceChangesBadRequest) Error

func (*GetResourceChangesBadRequest) GetPayload

type GetResourceChangesInternalServerError

type GetResourceChangesInternalServerError struct {
	Payload *models.ErrorBody
}
GetResourceChangesInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetResourceChangesInternalServerError

func NewGetResourceChangesInternalServerError() *GetResourceChangesInternalServerError

NewGetResourceChangesInternalServerError creates a GetResourceChangesInternalServerError with default headers values

func (*GetResourceChangesInternalServerError) Error

func (*GetResourceChangesInternalServerError) GetPayload

type GetResourceChangesNotFound

type GetResourceChangesNotFound struct {
	Payload *models.ErrorBody
}
GetResourceChangesNotFound describes a response with status code 404, with default header values.

Not found

func NewGetResourceChangesNotFound

func NewGetResourceChangesNotFound() *GetResourceChangesNotFound

NewGetResourceChangesNotFound creates a GetResourceChangesNotFound with default headers values

func (*GetResourceChangesNotFound) Error

func (*GetResourceChangesNotFound) GetPayload

func (o *GetResourceChangesNotFound) GetPayload() *models.ErrorBody

type GetResourceChangesOK

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

GetResourceChangesOK get resource changes o k

func NewGetResourceChangesOK

func NewGetResourceChangesOK() *GetResourceChangesOK

NewGetResourceChangesOK creates a GetResourceChangesOK with default headers values

func (*GetResourceChangesOK) Error

func (o *GetResourceChangesOK) Error() string

func (*GetResourceChangesOK) GetPayload

type GetResourceChangesParams

type GetResourceChangesParams struct {

	// Action.
	Action *string

	// Limit.
	//
	// Format: int32
	Limit *int32

	// ResourceID.
	ResourceID *string

	// ResourceType.
	ResourceType *string

	// StartRevision.
	StartRevision *string

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

GetResourceChangesParams contains all the parameters to send to the API endpoint

for the get resource changes operation.

Typically these are written to a http.Request.

func NewGetResourceChangesParams

func NewGetResourceChangesParams() *GetResourceChangesParams

NewGetResourceChangesParams creates a new GetResourceChangesParams 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 NewGetResourceChangesParamsWithContext

func NewGetResourceChangesParamsWithContext(ctx context.Context) *GetResourceChangesParams

NewGetResourceChangesParamsWithContext creates a new GetResourceChangesParams object with the ability to set a context for a request.

func NewGetResourceChangesParamsWithHTTPClient

func NewGetResourceChangesParamsWithHTTPClient(client *http.Client) *GetResourceChangesParams

NewGetResourceChangesParamsWithHTTPClient creates a new GetResourceChangesParams object with the ability to set a custom HTTPClient for a request.

func NewGetResourceChangesParamsWithTimeout

func NewGetResourceChangesParamsWithTimeout(timeout time.Duration) *GetResourceChangesParams

NewGetResourceChangesParamsWithTimeout creates a new GetResourceChangesParams object with the ability to set a timeout on a request.

func (*GetResourceChangesParams) SetAction

func (o *GetResourceChangesParams) SetAction(action *string)

SetAction adds the action to the get resource changes params

func (*GetResourceChangesParams) SetContext

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

SetContext adds the context to the get resource changes params

func (*GetResourceChangesParams) SetDefaults

func (o *GetResourceChangesParams) SetDefaults()

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

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

func (*GetResourceChangesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get resource changes params

func (*GetResourceChangesParams) SetLimit

func (o *GetResourceChangesParams) SetLimit(limit *int32)

SetLimit adds the limit to the get resource changes params

func (*GetResourceChangesParams) SetResourceID

func (o *GetResourceChangesParams) SetResourceID(resourceID *string)

SetResourceID adds the resourceId to the get resource changes params

func (*GetResourceChangesParams) SetResourceType

func (o *GetResourceChangesParams) SetResourceType(resourceType *string)

SetResourceType adds the resourceType to the get resource changes params

func (*GetResourceChangesParams) SetStartRevision

func (o *GetResourceChangesParams) SetStartRevision(startRevision *string)

SetStartRevision adds the startRevision to the get resource changes params

func (*GetResourceChangesParams) SetTimeout

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

SetTimeout adds the timeout to the get resource changes params

func (*GetResourceChangesParams) WithAction

WithAction adds the action to the get resource changes params

func (*GetResourceChangesParams) WithContext

WithContext adds the context to the get resource changes params

func (*GetResourceChangesParams) WithDefaults

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

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

func (*GetResourceChangesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get resource changes params

func (*GetResourceChangesParams) WithLimit

WithLimit adds the limit to the get resource changes params

func (*GetResourceChangesParams) WithResourceID

func (o *GetResourceChangesParams) WithResourceID(resourceID *string) *GetResourceChangesParams

WithResourceID adds the resourceID to the get resource changes params

func (*GetResourceChangesParams) WithResourceType

func (o *GetResourceChangesParams) WithResourceType(resourceType *string) *GetResourceChangesParams

WithResourceType adds the resourceType to the get resource changes params

func (*GetResourceChangesParams) WithStartRevision

func (o *GetResourceChangesParams) WithStartRevision(startRevision *string) *GetResourceChangesParams

WithStartRevision adds the startRevision to the get resource changes params

func (*GetResourceChangesParams) WithTimeout

WithTimeout adds the timeout to the get resource changes params

func (*GetResourceChangesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetResourceChangesReader

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

GetResourceChangesReader is a Reader for the GetResourceChanges structure.

func (*GetResourceChangesReader) ReadResponse

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