Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type CreateInventoryBadRequest
- func (o *CreateInventoryBadRequest) Code() int
- func (o *CreateInventoryBadRequest) Error() string
- func (o *CreateInventoryBadRequest) GetPayload() *models.MsaspecResponseFields
- func (o *CreateInventoryBadRequest) IsClientError() bool
- func (o *CreateInventoryBadRequest) IsCode(code int) bool
- func (o *CreateInventoryBadRequest) IsRedirect() bool
- func (o *CreateInventoryBadRequest) IsServerError() bool
- func (o *CreateInventoryBadRequest) IsSuccess() bool
- func (o *CreateInventoryBadRequest) String() string
- type CreateInventoryForbidden
- func (o *CreateInventoryForbidden) Code() int
- func (o *CreateInventoryForbidden) Error() string
- func (o *CreateInventoryForbidden) GetPayload() *models.MsaspecResponseFields
- func (o *CreateInventoryForbidden) IsClientError() bool
- func (o *CreateInventoryForbidden) IsCode(code int) bool
- func (o *CreateInventoryForbidden) IsRedirect() bool
- func (o *CreateInventoryForbidden) IsServerError() bool
- func (o *CreateInventoryForbidden) IsSuccess() bool
- func (o *CreateInventoryForbidden) String() string
- type CreateInventoryInternalServerError
- func (o *CreateInventoryInternalServerError) Code() int
- func (o *CreateInventoryInternalServerError) Error() string
- func (o *CreateInventoryInternalServerError) GetPayload() *models.MsaspecResponseFields
- func (o *CreateInventoryInternalServerError) IsClientError() bool
- func (o *CreateInventoryInternalServerError) IsCode(code int) bool
- func (o *CreateInventoryInternalServerError) IsRedirect() bool
- func (o *CreateInventoryInternalServerError) IsServerError() bool
- func (o *CreateInventoryInternalServerError) IsSuccess() bool
- func (o *CreateInventoryInternalServerError) String() string
- type CreateInventoryOK
- func (o *CreateInventoryOK) Code() int
- func (o *CreateInventoryOK) Error() string
- func (o *CreateInventoryOK) GetPayload() *models.CommonEntitiesResponse
- func (o *CreateInventoryOK) IsClientError() bool
- func (o *CreateInventoryOK) IsCode(code int) bool
- func (o *CreateInventoryOK) IsRedirect() bool
- func (o *CreateInventoryOK) IsServerError() bool
- func (o *CreateInventoryOK) IsSuccess() bool
- func (o *CreateInventoryOK) String() string
- type CreateInventoryParams
- func NewCreateInventoryParams() *CreateInventoryParams
- func NewCreateInventoryParamsWithContext(ctx context.Context) *CreateInventoryParams
- func NewCreateInventoryParamsWithHTTPClient(client *http.Client) *CreateInventoryParams
- func NewCreateInventoryParamsWithTimeout(timeout time.Duration) *CreateInventoryParams
- func (o *CreateInventoryParams) SetBody(body *models.ModelsSnapshotInventoryPayload)
- func (o *CreateInventoryParams) SetContext(ctx context.Context)
- func (o *CreateInventoryParams) SetDefaults()
- func (o *CreateInventoryParams) SetHTTPClient(client *http.Client)
- func (o *CreateInventoryParams) SetTimeout(timeout time.Duration)
- func (o *CreateInventoryParams) WithBody(body *models.ModelsSnapshotInventoryPayload) *CreateInventoryParams
- func (o *CreateInventoryParams) WithContext(ctx context.Context) *CreateInventoryParams
- func (o *CreateInventoryParams) WithDefaults() *CreateInventoryParams
- func (o *CreateInventoryParams) WithHTTPClient(client *http.Client) *CreateInventoryParams
- func (o *CreateInventoryParams) WithTimeout(timeout time.Duration) *CreateInventoryParams
- func (o *CreateInventoryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateInventoryReader
- type CreateInventoryTooManyRequests
- func (o *CreateInventoryTooManyRequests) Code() int
- func (o *CreateInventoryTooManyRequests) Error() string
- func (o *CreateInventoryTooManyRequests) GetPayload() *models.MsaReplyMetaOnly
- func (o *CreateInventoryTooManyRequests) IsClientError() bool
- func (o *CreateInventoryTooManyRequests) IsCode(code int) bool
- func (o *CreateInventoryTooManyRequests) IsRedirect() bool
- func (o *CreateInventoryTooManyRequests) IsServerError() bool
- func (o *CreateInventoryTooManyRequests) IsSuccess() bool
- func (o *CreateInventoryTooManyRequests) String() string
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 (o *CreateInventoryBadRequest) GetPayload() *models.MsaspecResponseFields
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 (o *CreateInventoryForbidden) GetPayload() *models.MsaspecResponseFields
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 ¶
func (o *CreateInventoryInternalServerError) Code() int
Code gets the status code for the create inventory internal server error response
func (*CreateInventoryInternalServerError) Error ¶
func (o *CreateInventoryInternalServerError) Error() string
func (*CreateInventoryInternalServerError) GetPayload ¶
func (o *CreateInventoryInternalServerError) GetPayload() *models.MsaspecResponseFields
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 ¶
func (o *CreateInventoryInternalServerError) IsCode(code int) bool
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 ¶
func (o *CreateInventoryInternalServerError) IsSuccess() bool
IsSuccess returns true when this create inventory internal server error response has a 2xx status code
func (*CreateInventoryInternalServerError) String ¶
func (o *CreateInventoryInternalServerError) String() 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 (o *CreateInventoryOK) GetPayload() *models.CommonEntitiesResponse
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 ¶
func (o *CreateInventoryParams) SetBody(body *models.ModelsSnapshotInventoryPayload)
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 ¶
func (o *CreateInventoryParams) WithBody(body *models.ModelsSnapshotInventoryPayload) *CreateInventoryParams
WithBody adds the body to the create inventory params
func (*CreateInventoryParams) WithContext ¶
func (o *CreateInventoryParams) WithContext(ctx context.Context) *CreateInventoryParams
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 ¶
func (o *CreateInventoryTooManyRequests) Code() int
Code gets the status code for the create inventory too many requests response
func (*CreateInventoryTooManyRequests) Error ¶
func (o *CreateInventoryTooManyRequests) Error() string
func (*CreateInventoryTooManyRequests) GetPayload ¶
func (o *CreateInventoryTooManyRequests) GetPayload() *models.MsaReplyMetaOnly
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 ¶
func (o *CreateInventoryTooManyRequests) String() string