Documentation ¶
Index ¶
- Constants
- type Client
- func (a *Client) PublicListInventories(params *PublicListInventoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListInventoriesOK, *PublicListInventoriesBadRequest, ...)deprecated
- func (a *Client) PublicListInventoriesShort(params *PublicListInventoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListInventoriesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type PublicListInventoriesBadRequest
- type PublicListInventoriesInternalServerError
- type PublicListInventoriesOK
- type PublicListInventoriesParams
- func NewPublicListInventoriesParams() *PublicListInventoriesParams
- func NewPublicListInventoriesParamsWithContext(ctx context.Context) *PublicListInventoriesParams
- func NewPublicListInventoriesParamsWithHTTPClient(client *http.Client) *PublicListInventoriesParams
- func NewPublicListInventoriesParamsWithTimeout(timeout time.Duration) *PublicListInventoriesParams
- func (o *PublicListInventoriesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicListInventoriesParams) SetContext(ctx context.Context)
- func (o *PublicListInventoriesParams) SetHTTPClient(client *http.Client)
- func (o *PublicListInventoriesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicListInventoriesParams) SetInventoryConfigurationCode(inventoryConfigurationCode *string)
- func (o *PublicListInventoriesParams) SetLimit(limit *int64)
- func (o *PublicListInventoriesParams) SetNamespace(namespace string)
- func (o *PublicListInventoriesParams) SetOffset(offset *int64)
- func (o *PublicListInventoriesParams) SetSortBy(sortBy *string)
- func (o *PublicListInventoriesParams) SetTimeout(timeout time.Duration)
- func (o *PublicListInventoriesParams) WithContext(ctx context.Context) *PublicListInventoriesParams
- func (o *PublicListInventoriesParams) WithHTTPClient(client *http.Client) *PublicListInventoriesParams
- func (o *PublicListInventoriesParams) WithInventoryConfigurationCode(inventoryConfigurationCode *string) *PublicListInventoriesParams
- func (o *PublicListInventoriesParams) WithLimit(limit *int64) *PublicListInventoriesParams
- func (o *PublicListInventoriesParams) WithNamespace(namespace string) *PublicListInventoriesParams
- func (o *PublicListInventoriesParams) WithOffset(offset *int64) *PublicListInventoriesParams
- func (o *PublicListInventoriesParams) WithSortBy(sortBy *string) *PublicListInventoriesParams
- func (o *PublicListInventoriesParams) WithTimeout(timeout time.Duration) *PublicListInventoriesParams
- func (o *PublicListInventoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicListInventoriesReader
Constants ¶
const ( PublicListInventoriesCreatedAtConstant = "createdAt" PublicListInventoriesCreatedAtAscConstant = "createdAt:asc" PublicListInventoriesCreatedAtDescConstant = "createdAt:desc" PublicListInventoriesUpdatedAtConstant = "updatedAt" PublicListInventoriesUpdatedAtAscConstant = "updatedAt:asc" PublicListInventoriesUpdatedAtDescConstant = "updatedAt:desc" )
Get the enum in PublicListInventoriesParams
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for public inventories API
func (*Client) PublicListInventories
deprecated
func (a *Client) PublicListInventories(params *PublicListInventoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListInventoriesOK, *PublicListInventoriesBadRequest, *PublicListInventoriesInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicListInventoriesShort instead.
PublicListInventories to list all my inventories ¶
Listing all my inventories in a namespace. The response body will be in the form of standard pagination.
func (*Client) PublicListInventoriesShort ¶
func (a *Client) PublicListInventoriesShort(params *PublicListInventoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListInventoriesOK, error)
PublicListInventoriesShort to list all my inventories
Listing all my inventories in a namespace. The response body will be in the form of standard pagination.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { PublicListInventories(params *PublicListInventoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListInventoriesOK, *PublicListInventoriesBadRequest, *PublicListInventoriesInternalServerError, error) PublicListInventoriesShort(params *PublicListInventoriesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListInventoriesOK, 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 public inventories API client.
type PublicListInventoriesBadRequest ¶
type PublicListInventoriesBadRequest struct {
Payload *inventoryclientmodels.ApimodelsErrorResponse
}
PublicListInventoriesBadRequest handles this case with default header values.
Bad Request
func NewPublicListInventoriesBadRequest ¶
func NewPublicListInventoriesBadRequest() *PublicListInventoriesBadRequest
NewPublicListInventoriesBadRequest creates a PublicListInventoriesBadRequest with default headers values
func (*PublicListInventoriesBadRequest) Error ¶
func (o *PublicListInventoriesBadRequest) Error() string
func (*PublicListInventoriesBadRequest) GetPayload ¶
func (o *PublicListInventoriesBadRequest) GetPayload() *inventoryclientmodels.ApimodelsErrorResponse
func (*PublicListInventoriesBadRequest) ToJSONString ¶
func (o *PublicListInventoriesBadRequest) ToJSONString() string
type PublicListInventoriesInternalServerError ¶
type PublicListInventoriesInternalServerError struct {
Payload *inventoryclientmodels.ApimodelsErrorResponse
}
PublicListInventoriesInternalServerError handles this case with default header values.
Internal Server Error
func NewPublicListInventoriesInternalServerError ¶
func NewPublicListInventoriesInternalServerError() *PublicListInventoriesInternalServerError
NewPublicListInventoriesInternalServerError creates a PublicListInventoriesInternalServerError with default headers values
func (*PublicListInventoriesInternalServerError) Error ¶
func (o *PublicListInventoriesInternalServerError) Error() string
func (*PublicListInventoriesInternalServerError) GetPayload ¶
func (o *PublicListInventoriesInternalServerError) GetPayload() *inventoryclientmodels.ApimodelsErrorResponse
func (*PublicListInventoriesInternalServerError) ToJSONString ¶
func (o *PublicListInventoriesInternalServerError) ToJSONString() string
type PublicListInventoriesOK ¶
type PublicListInventoriesOK struct {
Payload *inventoryclientmodels.ApimodelsListInventoryResp
}
PublicListInventoriesOK handles this case with default header values.
OK
func NewPublicListInventoriesOK ¶
func NewPublicListInventoriesOK() *PublicListInventoriesOK
NewPublicListInventoriesOK creates a PublicListInventoriesOK with default headers values
func (*PublicListInventoriesOK) Error ¶
func (o *PublicListInventoriesOK) Error() string
func (*PublicListInventoriesOK) GetPayload ¶
func (o *PublicListInventoriesOK) GetPayload() *inventoryclientmodels.ApimodelsListInventoryResp
func (*PublicListInventoriesOK) ToJSONString ¶
func (o *PublicListInventoriesOK) ToJSONString() string
type PublicListInventoriesParams ¶
type PublicListInventoriesParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace Namespace */ Namespace string /*InventoryConfigurationCode InventoryConfigurationCode */ InventoryConfigurationCode *string /*Limit default 25 */ Limit *int64 /*Offset*/ Offset *int64 /*SortBy Only support one level of sortBy; default createdAt */ SortBy *string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PublicListInventoriesParams contains all the parameters to send to the API endpoint for the public list inventories operation typically these are written to a http.Request
func NewPublicListInventoriesParams ¶
func NewPublicListInventoriesParams() *PublicListInventoriesParams
NewPublicListInventoriesParams creates a new PublicListInventoriesParams object with the default values initialized.
func NewPublicListInventoriesParamsWithContext ¶
func NewPublicListInventoriesParamsWithContext(ctx context.Context) *PublicListInventoriesParams
NewPublicListInventoriesParamsWithContext creates a new PublicListInventoriesParams object with the default values initialized, and the ability to set a context for a request
func NewPublicListInventoriesParamsWithHTTPClient ¶
func NewPublicListInventoriesParamsWithHTTPClient(client *http.Client) *PublicListInventoriesParams
NewPublicListInventoriesParamsWithHTTPClient creates a new PublicListInventoriesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicListInventoriesParamsWithTimeout ¶
func NewPublicListInventoriesParamsWithTimeout(timeout time.Duration) *PublicListInventoriesParams
NewPublicListInventoriesParamsWithTimeout creates a new PublicListInventoriesParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicListInventoriesParams) SetAuthInfoWriter ¶
func (o *PublicListInventoriesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public list inventories params
func (*PublicListInventoriesParams) SetContext ¶
func (o *PublicListInventoriesParams) SetContext(ctx context.Context)
SetContext adds the context to the public list inventories params
func (*PublicListInventoriesParams) SetHTTPClient ¶
func (o *PublicListInventoriesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public list inventories params
func (*PublicListInventoriesParams) SetHTTPClientTransport ¶
func (o *PublicListInventoriesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public list inventories params
func (*PublicListInventoriesParams) SetInventoryConfigurationCode ¶
func (o *PublicListInventoriesParams) SetInventoryConfigurationCode(inventoryConfigurationCode *string)
SetInventoryConfigurationCode adds the inventoryConfigurationCode to the public list inventories params
func (*PublicListInventoriesParams) SetLimit ¶
func (o *PublicListInventoriesParams) SetLimit(limit *int64)
SetLimit adds the limit to the public list inventories params
func (*PublicListInventoriesParams) SetNamespace ¶
func (o *PublicListInventoriesParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public list inventories params
func (*PublicListInventoriesParams) SetOffset ¶
func (o *PublicListInventoriesParams) SetOffset(offset *int64)
SetOffset adds the offset to the public list inventories params
func (*PublicListInventoriesParams) SetSortBy ¶
func (o *PublicListInventoriesParams) SetSortBy(sortBy *string)
SetSortBy adds the sortBy to the public list inventories params
func (*PublicListInventoriesParams) SetTimeout ¶
func (o *PublicListInventoriesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public list inventories params
func (*PublicListInventoriesParams) WithContext ¶
func (o *PublicListInventoriesParams) WithContext(ctx context.Context) *PublicListInventoriesParams
WithContext adds the context to the public list inventories params
func (*PublicListInventoriesParams) WithHTTPClient ¶
func (o *PublicListInventoriesParams) WithHTTPClient(client *http.Client) *PublicListInventoriesParams
WithHTTPClient adds the HTTPClient to the public list inventories params
func (*PublicListInventoriesParams) WithInventoryConfigurationCode ¶
func (o *PublicListInventoriesParams) WithInventoryConfigurationCode(inventoryConfigurationCode *string) *PublicListInventoriesParams
WithInventoryConfigurationCode adds the inventoryConfigurationCode to the public list inventories params
func (*PublicListInventoriesParams) WithLimit ¶
func (o *PublicListInventoriesParams) WithLimit(limit *int64) *PublicListInventoriesParams
WithLimit adds the limit to the public list inventories params
func (*PublicListInventoriesParams) WithNamespace ¶
func (o *PublicListInventoriesParams) WithNamespace(namespace string) *PublicListInventoriesParams
WithNamespace adds the namespace to the public list inventories params
func (*PublicListInventoriesParams) WithOffset ¶
func (o *PublicListInventoriesParams) WithOffset(offset *int64) *PublicListInventoriesParams
WithOffset adds the offset to the public list inventories params
func (*PublicListInventoriesParams) WithSortBy ¶
func (o *PublicListInventoriesParams) WithSortBy(sortBy *string) *PublicListInventoriesParams
WithSortBy adds the sortBy to the public list inventories params
func (*PublicListInventoriesParams) WithTimeout ¶
func (o *PublicListInventoriesParams) WithTimeout(timeout time.Duration) *PublicListInventoriesParams
WithTimeout adds the timeout to the public list inventories params
func (*PublicListInventoriesParams) WriteToRequest ¶
func (o *PublicListInventoriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicListInventoriesReader ¶
type PublicListInventoriesReader struct {
// contains filtered or unexported fields
}
PublicListInventoriesReader is a Reader for the PublicListInventories structure.
func (*PublicListInventoriesReader) ReadResponse ¶
func (o *PublicListInventoriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.