inventories

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT 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 inventories API

func (*Client) CreateInventory

func (a *Client) CreateInventory(params *CreateInventoryParams, opts ...ClientOption) (*CreateInventoryOK, error)

CreateInventory creates inventory from data received from snapshot

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 {
	CreateInventory(params *CreateInventoryParams, opts ...ClientOption) (*CreateInventoryOK, 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 inventories API client.

type CreateInventoryBadRequest

type CreateInventoryBadRequest struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaspecResponseFields
}

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

Bad Request

func NewCreateInventoryBadRequest

func NewCreateInventoryBadRequest() *CreateInventoryBadRequest

NewCreateInventoryBadRequest creates a CreateInventoryBadRequest with default headers values

func (*CreateInventoryBadRequest) Code

func (o *CreateInventoryBadRequest) Code() int

Code gets the status code for the create inventory bad request response

func (*CreateInventoryBadRequest) Error

func (o *CreateInventoryBadRequest) Error() string

func (*CreateInventoryBadRequest) GetPayload

func (*CreateInventoryBadRequest) IsClientError

func (o *CreateInventoryBadRequest) IsClientError() bool

IsClientError returns true when this create inventory bad request response has a 4xx status code

func (*CreateInventoryBadRequest) IsCode

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

IsCode returns true when this create inventory bad request response a status code equal to that given

func (*CreateInventoryBadRequest) IsRedirect

func (o *CreateInventoryBadRequest) IsRedirect() bool

IsRedirect returns true when this create inventory bad request response has a 3xx status code

func (*CreateInventoryBadRequest) IsServerError

func (o *CreateInventoryBadRequest) IsServerError() bool

IsServerError returns true when this create inventory bad request response has a 5xx status code

func (*CreateInventoryBadRequest) IsSuccess

func (o *CreateInventoryBadRequest) IsSuccess() bool

IsSuccess returns true when this create inventory bad request response has a 2xx status code

func (*CreateInventoryBadRequest) String

func (o *CreateInventoryBadRequest) String() string

type CreateInventoryForbidden

type CreateInventoryForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaspecResponseFields
}

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

Forbidden

func NewCreateInventoryForbidden

func NewCreateInventoryForbidden() *CreateInventoryForbidden

NewCreateInventoryForbidden creates a CreateInventoryForbidden with default headers values

func (*CreateInventoryForbidden) Code

func (o *CreateInventoryForbidden) Code() int

Code gets the status code for the create inventory forbidden response

func (*CreateInventoryForbidden) Error

func (o *CreateInventoryForbidden) Error() string

func (*CreateInventoryForbidden) GetPayload

func (*CreateInventoryForbidden) IsClientError

func (o *CreateInventoryForbidden) IsClientError() bool

IsClientError returns true when this create inventory forbidden response has a 4xx status code

func (*CreateInventoryForbidden) IsCode

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

IsCode returns true when this create inventory forbidden response a status code equal to that given

func (*CreateInventoryForbidden) IsRedirect

func (o *CreateInventoryForbidden) IsRedirect() bool

IsRedirect returns true when this create inventory forbidden response has a 3xx status code

func (*CreateInventoryForbidden) IsServerError

func (o *CreateInventoryForbidden) IsServerError() bool

IsServerError returns true when this create inventory forbidden response has a 5xx status code

func (*CreateInventoryForbidden) IsSuccess

func (o *CreateInventoryForbidden) IsSuccess() bool

IsSuccess returns true when this create inventory forbidden response has a 2xx status code

func (*CreateInventoryForbidden) String

func (o *CreateInventoryForbidden) String() string

type CreateInventoryInternalServerError

type CreateInventoryInternalServerError struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaspecResponseFields
}

CreateInventoryInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewCreateInventoryInternalServerError

func NewCreateInventoryInternalServerError() *CreateInventoryInternalServerError

NewCreateInventoryInternalServerError creates a CreateInventoryInternalServerError with default headers values

func (*CreateInventoryInternalServerError) Code

Code gets the status code for the create inventory internal server error response

func (*CreateInventoryInternalServerError) Error

func (*CreateInventoryInternalServerError) GetPayload

func (*CreateInventoryInternalServerError) IsClientError

func (o *CreateInventoryInternalServerError) IsClientError() bool

IsClientError returns true when this create inventory internal server error response has a 4xx status code

func (*CreateInventoryInternalServerError) IsCode

IsCode returns true when this create inventory internal server error response a status code equal to that given

func (*CreateInventoryInternalServerError) IsRedirect

func (o *CreateInventoryInternalServerError) IsRedirect() bool

IsRedirect returns true when this create inventory internal server error response has a 3xx status code

func (*CreateInventoryInternalServerError) IsServerError

func (o *CreateInventoryInternalServerError) IsServerError() bool

IsServerError returns true when this create inventory internal server error response has a 5xx status code

func (*CreateInventoryInternalServerError) IsSuccess

IsSuccess returns true when this create inventory internal server error response has a 2xx status code

func (*CreateInventoryInternalServerError) String

type CreateInventoryOK

type CreateInventoryOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.CommonEntitiesResponse
}

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

OK

func NewCreateInventoryOK

func NewCreateInventoryOK() *CreateInventoryOK

NewCreateInventoryOK creates a CreateInventoryOK with default headers values

func (*CreateInventoryOK) Code

func (o *CreateInventoryOK) Code() int

Code gets the status code for the create inventory o k response

func (*CreateInventoryOK) Error

func (o *CreateInventoryOK) Error() string

func (*CreateInventoryOK) GetPayload

func (*CreateInventoryOK) IsClientError

func (o *CreateInventoryOK) IsClientError() bool

IsClientError returns true when this create inventory o k response has a 4xx status code

func (*CreateInventoryOK) IsCode

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

IsCode returns true when this create inventory o k response a status code equal to that given

func (*CreateInventoryOK) IsRedirect

func (o *CreateInventoryOK) IsRedirect() bool

IsRedirect returns true when this create inventory o k response has a 3xx status code

func (*CreateInventoryOK) IsServerError

func (o *CreateInventoryOK) IsServerError() bool

IsServerError returns true when this create inventory o k response has a 5xx status code

func (*CreateInventoryOK) IsSuccess

func (o *CreateInventoryOK) IsSuccess() bool

IsSuccess returns true when this create inventory o k response has a 2xx status code

func (*CreateInventoryOK) String

func (o *CreateInventoryOK) String() string

type CreateInventoryParams

type CreateInventoryParams struct {

	// Body.
	Body *models.ModelsSnapshotInventoryPayload

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

CreateInventoryParams contains all the parameters to send to the API endpoint

for the create inventory operation.

Typically these are written to a http.Request.

func NewCreateInventoryParams

func NewCreateInventoryParams() *CreateInventoryParams

NewCreateInventoryParams creates a new CreateInventoryParams 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 NewCreateInventoryParamsWithContext

func NewCreateInventoryParamsWithContext(ctx context.Context) *CreateInventoryParams

NewCreateInventoryParamsWithContext creates a new CreateInventoryParams object with the ability to set a context for a request.

func NewCreateInventoryParamsWithHTTPClient

func NewCreateInventoryParamsWithHTTPClient(client *http.Client) *CreateInventoryParams

NewCreateInventoryParamsWithHTTPClient creates a new CreateInventoryParams object with the ability to set a custom HTTPClient for a request.

func NewCreateInventoryParamsWithTimeout

func NewCreateInventoryParamsWithTimeout(timeout time.Duration) *CreateInventoryParams

NewCreateInventoryParamsWithTimeout creates a new CreateInventoryParams object with the ability to set a timeout on a request.

func (*CreateInventoryParams) SetBody

SetBody adds the body to the create inventory params

func (*CreateInventoryParams) SetContext

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

SetContext adds the context to the create inventory params

func (*CreateInventoryParams) SetDefaults

func (o *CreateInventoryParams) SetDefaults()

SetDefaults hydrates default values in the create inventory params (not the query body).

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

func (*CreateInventoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create inventory params

func (*CreateInventoryParams) SetTimeout

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

SetTimeout adds the timeout to the create inventory params

func (*CreateInventoryParams) WithBody

WithBody adds the body to the create inventory params

func (*CreateInventoryParams) WithContext

WithContext adds the context to the create inventory params

func (*CreateInventoryParams) WithDefaults

func (o *CreateInventoryParams) WithDefaults() *CreateInventoryParams

WithDefaults hydrates default values in the create inventory params (not the query body).

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

func (*CreateInventoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create inventory params

func (*CreateInventoryParams) WithTimeout

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

WithTimeout adds the timeout to the create inventory params

func (*CreateInventoryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateInventoryReader

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

CreateInventoryReader is a Reader for the CreateInventory structure.

func (*CreateInventoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateInventoryTooManyRequests

type CreateInventoryTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

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

Too Many Requests

func NewCreateInventoryTooManyRequests

func NewCreateInventoryTooManyRequests() *CreateInventoryTooManyRequests

NewCreateInventoryTooManyRequests creates a CreateInventoryTooManyRequests with default headers values

func (*CreateInventoryTooManyRequests) Code

Code gets the status code for the create inventory too many requests response

func (*CreateInventoryTooManyRequests) Error

func (*CreateInventoryTooManyRequests) GetPayload

func (*CreateInventoryTooManyRequests) IsClientError

func (o *CreateInventoryTooManyRequests) IsClientError() bool

IsClientError returns true when this create inventory too many requests response has a 4xx status code

func (*CreateInventoryTooManyRequests) IsCode

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

IsCode returns true when this create inventory too many requests response a status code equal to that given

func (*CreateInventoryTooManyRequests) IsRedirect

func (o *CreateInventoryTooManyRequests) IsRedirect() bool

IsRedirect returns true when this create inventory too many requests response has a 3xx status code

func (*CreateInventoryTooManyRequests) IsServerError

func (o *CreateInventoryTooManyRequests) IsServerError() bool

IsServerError returns true when this create inventory too many requests response has a 5xx status code

func (*CreateInventoryTooManyRequests) IsSuccess

func (o *CreateInventoryTooManyRequests) IsSuccess() bool

IsSuccess returns true when this create inventory too many requests response has a 2xx status code

func (*CreateInventoryTooManyRequests) String

Jump to

Keyboard shortcuts

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