Documentation ¶
Index ¶
- Constants
- type Client
- func (a *Client) PublicListItemTypes(params *PublicListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListItemTypesOK, *PublicListItemTypesBadRequest, ...)deprecated
- func (a *Client) PublicListItemTypesShort(params *PublicListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListItemTypesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type PublicListItemTypesBadRequest
- type PublicListItemTypesInternalServerError
- type PublicListItemTypesOK
- type PublicListItemTypesParams
- func NewPublicListItemTypesParams() *PublicListItemTypesParams
- func NewPublicListItemTypesParamsWithContext(ctx context.Context) *PublicListItemTypesParams
- func NewPublicListItemTypesParamsWithHTTPClient(client *http.Client) *PublicListItemTypesParams
- func NewPublicListItemTypesParamsWithTimeout(timeout time.Duration) *PublicListItemTypesParams
- func (o *PublicListItemTypesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *PublicListItemTypesParams) SetContext(ctx context.Context)
- func (o *PublicListItemTypesParams) SetFlightId(flightId string)
- func (o *PublicListItemTypesParams) SetHTTPClient(client *http.Client)
- func (o *PublicListItemTypesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *PublicListItemTypesParams) SetLimit(limit *int64)
- func (o *PublicListItemTypesParams) SetNamespace(namespace string)
- func (o *PublicListItemTypesParams) SetOffset(offset *int64)
- func (o *PublicListItemTypesParams) SetSortBy(sortBy *string)
- func (o *PublicListItemTypesParams) SetTimeout(timeout time.Duration)
- func (o *PublicListItemTypesParams) WithContext(ctx context.Context) *PublicListItemTypesParams
- func (o *PublicListItemTypesParams) WithHTTPClient(client *http.Client) *PublicListItemTypesParams
- func (o *PublicListItemTypesParams) WithLimit(limit *int64) *PublicListItemTypesParams
- func (o *PublicListItemTypesParams) WithNamespace(namespace string) *PublicListItemTypesParams
- func (o *PublicListItemTypesParams) WithOffset(offset *int64) *PublicListItemTypesParams
- func (o *PublicListItemTypesParams) WithSortBy(sortBy *string) *PublicListItemTypesParams
- func (o *PublicListItemTypesParams) WithTimeout(timeout time.Duration) *PublicListItemTypesParams
- func (o *PublicListItemTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PublicListItemTypesReader
Constants ¶
const ( PublicListItemTypesCreatedAtConstant = "createdAt" PublicListItemTypesCreatedAtAscConstant = "createdAt:asc" PublicListItemTypesCreatedAtDescConstant = "createdAt:desc" PublicListItemTypesNameConstant = "name" PublicListItemTypesNameAscConstant = "name:asc" PublicListItemTypesNameDescConstant = "name:desc" )
Get the enum in PublicListItemTypesParams
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for public item types API
func (*Client) PublicListItemTypes
deprecated
func (a *Client) PublicListItemTypes(params *PublicListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListItemTypesOK, *PublicListItemTypesBadRequest, *PublicListItemTypesInternalServerError, error)
Deprecated: 2022-08-10 - Use PublicListItemTypesShort instead.
PublicListItemTypes to list item types ¶
This endpoint will list all item types in a namespace. The response body will be in the form of standard pagination.
func (*Client) PublicListItemTypesShort ¶
func (a *Client) PublicListItemTypesShort(params *PublicListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListItemTypesOK, error)
PublicListItemTypesShort to list item types
This endpoint will list all item types 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 { PublicListItemTypes(params *PublicListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListItemTypesOK, *PublicListItemTypesBadRequest, *PublicListItemTypesInternalServerError, error) PublicListItemTypesShort(params *PublicListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*PublicListItemTypesOK, 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 item types API client.
type PublicListItemTypesBadRequest ¶
type PublicListItemTypesBadRequest struct {
Payload *inventoryclientmodels.ApimodelsErrorResponse
}
PublicListItemTypesBadRequest handles this case with default header values.
Bad Request
func NewPublicListItemTypesBadRequest ¶
func NewPublicListItemTypesBadRequest() *PublicListItemTypesBadRequest
NewPublicListItemTypesBadRequest creates a PublicListItemTypesBadRequest with default headers values
func (*PublicListItemTypesBadRequest) Error ¶
func (o *PublicListItemTypesBadRequest) Error() string
func (*PublicListItemTypesBadRequest) GetPayload ¶
func (o *PublicListItemTypesBadRequest) GetPayload() *inventoryclientmodels.ApimodelsErrorResponse
func (*PublicListItemTypesBadRequest) ToJSONString ¶
func (o *PublicListItemTypesBadRequest) ToJSONString() string
type PublicListItemTypesInternalServerError ¶
type PublicListItemTypesInternalServerError struct {
Payload *inventoryclientmodels.ApimodelsErrorResponse
}
PublicListItemTypesInternalServerError handles this case with default header values.
Internal Server Error
func NewPublicListItemTypesInternalServerError ¶
func NewPublicListItemTypesInternalServerError() *PublicListItemTypesInternalServerError
NewPublicListItemTypesInternalServerError creates a PublicListItemTypesInternalServerError with default headers values
func (*PublicListItemTypesInternalServerError) Error ¶
func (o *PublicListItemTypesInternalServerError) Error() string
func (*PublicListItemTypesInternalServerError) GetPayload ¶
func (o *PublicListItemTypesInternalServerError) GetPayload() *inventoryclientmodels.ApimodelsErrorResponse
func (*PublicListItemTypesInternalServerError) ToJSONString ¶
func (o *PublicListItemTypesInternalServerError) ToJSONString() string
type PublicListItemTypesOK ¶
type PublicListItemTypesOK struct {
Payload *inventoryclientmodels.ApimodelsListItemTypesResp
}
PublicListItemTypesOK handles this case with default header values.
OK
func NewPublicListItemTypesOK ¶
func NewPublicListItemTypesOK() *PublicListItemTypesOK
NewPublicListItemTypesOK creates a PublicListItemTypesOK with default headers values
func (*PublicListItemTypesOK) Error ¶
func (o *PublicListItemTypesOK) Error() string
func (*PublicListItemTypesOK) GetPayload ¶
func (o *PublicListItemTypesOK) GetPayload() *inventoryclientmodels.ApimodelsListItemTypesResp
func (*PublicListItemTypesOK) ToJSONString ¶
func (o *PublicListItemTypesOK) ToJSONString() string
type PublicListItemTypesParams ¶
type PublicListItemTypesParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Namespace Namespace */ Namespace 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 // XFlightId is an optional parameter from this SDK XFlightId *string // contains filtered or unexported fields }
PublicListItemTypesParams contains all the parameters to send to the API endpoint for the public list item types operation typically these are written to a http.Request
func NewPublicListItemTypesParams ¶
func NewPublicListItemTypesParams() *PublicListItemTypesParams
NewPublicListItemTypesParams creates a new PublicListItemTypesParams object with the default values initialized.
func NewPublicListItemTypesParamsWithContext ¶
func NewPublicListItemTypesParamsWithContext(ctx context.Context) *PublicListItemTypesParams
NewPublicListItemTypesParamsWithContext creates a new PublicListItemTypesParams object with the default values initialized, and the ability to set a context for a request
func NewPublicListItemTypesParamsWithHTTPClient ¶
func NewPublicListItemTypesParamsWithHTTPClient(client *http.Client) *PublicListItemTypesParams
NewPublicListItemTypesParamsWithHTTPClient creates a new PublicListItemTypesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPublicListItemTypesParamsWithTimeout ¶
func NewPublicListItemTypesParamsWithTimeout(timeout time.Duration) *PublicListItemTypesParams
NewPublicListItemTypesParamsWithTimeout creates a new PublicListItemTypesParams object with the default values initialized, and the ability to set a timeout on a request
func (*PublicListItemTypesParams) SetAuthInfoWriter ¶
func (o *PublicListItemTypesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the public list item types params
func (*PublicListItemTypesParams) SetContext ¶
func (o *PublicListItemTypesParams) SetContext(ctx context.Context)
SetContext adds the context to the public list item types params
func (*PublicListItemTypesParams) SetFlightId ¶ added in v0.63.0
func (o *PublicListItemTypesParams) SetFlightId(flightId string)
SetFlightId adds the flightId as the header value for this specific endpoint
func (*PublicListItemTypesParams) SetHTTPClient ¶
func (o *PublicListItemTypesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the public list item types params
func (*PublicListItemTypesParams) SetHTTPClientTransport ¶
func (o *PublicListItemTypesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the public list item types params
func (*PublicListItemTypesParams) SetLimit ¶
func (o *PublicListItemTypesParams) SetLimit(limit *int64)
SetLimit adds the limit to the public list item types params
func (*PublicListItemTypesParams) SetNamespace ¶
func (o *PublicListItemTypesParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the public list item types params
func (*PublicListItemTypesParams) SetOffset ¶
func (o *PublicListItemTypesParams) SetOffset(offset *int64)
SetOffset adds the offset to the public list item types params
func (*PublicListItemTypesParams) SetSortBy ¶
func (o *PublicListItemTypesParams) SetSortBy(sortBy *string)
SetSortBy adds the sortBy to the public list item types params
func (*PublicListItemTypesParams) SetTimeout ¶
func (o *PublicListItemTypesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the public list item types params
func (*PublicListItemTypesParams) WithContext ¶
func (o *PublicListItemTypesParams) WithContext(ctx context.Context) *PublicListItemTypesParams
WithContext adds the context to the public list item types params
func (*PublicListItemTypesParams) WithHTTPClient ¶
func (o *PublicListItemTypesParams) WithHTTPClient(client *http.Client) *PublicListItemTypesParams
WithHTTPClient adds the HTTPClient to the public list item types params
func (*PublicListItemTypesParams) WithLimit ¶
func (o *PublicListItemTypesParams) WithLimit(limit *int64) *PublicListItemTypesParams
WithLimit adds the limit to the public list item types params
func (*PublicListItemTypesParams) WithNamespace ¶
func (o *PublicListItemTypesParams) WithNamespace(namespace string) *PublicListItemTypesParams
WithNamespace adds the namespace to the public list item types params
func (*PublicListItemTypesParams) WithOffset ¶
func (o *PublicListItemTypesParams) WithOffset(offset *int64) *PublicListItemTypesParams
WithOffset adds the offset to the public list item types params
func (*PublicListItemTypesParams) WithSortBy ¶
func (o *PublicListItemTypesParams) WithSortBy(sortBy *string) *PublicListItemTypesParams
WithSortBy adds the sortBy to the public list item types params
func (*PublicListItemTypesParams) WithTimeout ¶
func (o *PublicListItemTypesParams) WithTimeout(timeout time.Duration) *PublicListItemTypesParams
WithTimeout adds the timeout to the public list item types params
func (*PublicListItemTypesParams) WriteToRequest ¶
func (o *PublicListItemTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PublicListItemTypesReader ¶
type PublicListItemTypesReader struct {
// contains filtered or unexported fields
}
PublicListItemTypesReader is a Reader for the PublicListItemTypes structure.
func (*PublicListItemTypesReader) ReadResponse ¶
func (o *PublicListItemTypesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.