Documentation ¶
Index ¶
- Constants
- type AdminCreateItemTypeBadRequest
- type AdminCreateItemTypeConflict
- type AdminCreateItemTypeCreated
- type AdminCreateItemTypeInternalServerError
- type AdminCreateItemTypeParams
- func NewAdminCreateItemTypeParams() *AdminCreateItemTypeParams
- func NewAdminCreateItemTypeParamsWithContext(ctx context.Context) *AdminCreateItemTypeParams
- func NewAdminCreateItemTypeParamsWithHTTPClient(client *http.Client) *AdminCreateItemTypeParams
- func NewAdminCreateItemTypeParamsWithTimeout(timeout time.Duration) *AdminCreateItemTypeParams
- func (o *AdminCreateItemTypeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *AdminCreateItemTypeParams) SetBody(body *inventoryclientmodels.ApimodelsCreateItemTypeReq)
- func (o *AdminCreateItemTypeParams) SetContext(ctx context.Context)
- func (o *AdminCreateItemTypeParams) SetHTTPClient(client *http.Client)
- func (o *AdminCreateItemTypeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *AdminCreateItemTypeParams) SetNamespace(namespace string)
- func (o *AdminCreateItemTypeParams) SetTimeout(timeout time.Duration)
- func (o *AdminCreateItemTypeParams) WithBody(body *inventoryclientmodels.ApimodelsCreateItemTypeReq) *AdminCreateItemTypeParams
- func (o *AdminCreateItemTypeParams) WithContext(ctx context.Context) *AdminCreateItemTypeParams
- func (o *AdminCreateItemTypeParams) WithHTTPClient(client *http.Client) *AdminCreateItemTypeParams
- func (o *AdminCreateItemTypeParams) WithNamespace(namespace string) *AdminCreateItemTypeParams
- func (o *AdminCreateItemTypeParams) WithTimeout(timeout time.Duration) *AdminCreateItemTypeParams
- func (o *AdminCreateItemTypeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AdminCreateItemTypeReader
- type AdminDeleteItemTypeInternalServerError
- type AdminDeleteItemTypeNoContent
- type AdminDeleteItemTypeNotFound
- type AdminDeleteItemTypeParams
- func NewAdminDeleteItemTypeParams() *AdminDeleteItemTypeParams
- func NewAdminDeleteItemTypeParamsWithContext(ctx context.Context) *AdminDeleteItemTypeParams
- func NewAdminDeleteItemTypeParamsWithHTTPClient(client *http.Client) *AdminDeleteItemTypeParams
- func NewAdminDeleteItemTypeParamsWithTimeout(timeout time.Duration) *AdminDeleteItemTypeParams
- func (o *AdminDeleteItemTypeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *AdminDeleteItemTypeParams) SetContext(ctx context.Context)
- func (o *AdminDeleteItemTypeParams) SetHTTPClient(client *http.Client)
- func (o *AdminDeleteItemTypeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *AdminDeleteItemTypeParams) SetItemTypeName(itemTypeName string)
- func (o *AdminDeleteItemTypeParams) SetNamespace(namespace string)
- func (o *AdminDeleteItemTypeParams) SetTimeout(timeout time.Duration)
- func (o *AdminDeleteItemTypeParams) WithContext(ctx context.Context) *AdminDeleteItemTypeParams
- func (o *AdminDeleteItemTypeParams) WithHTTPClient(client *http.Client) *AdminDeleteItemTypeParams
- func (o *AdminDeleteItemTypeParams) WithItemTypeName(itemTypeName string) *AdminDeleteItemTypeParams
- func (o *AdminDeleteItemTypeParams) WithNamespace(namespace string) *AdminDeleteItemTypeParams
- func (o *AdminDeleteItemTypeParams) WithTimeout(timeout time.Duration) *AdminDeleteItemTypeParams
- func (o *AdminDeleteItemTypeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AdminDeleteItemTypeReader
- type AdminListItemTypesBadRequest
- type AdminListItemTypesInternalServerError
- type AdminListItemTypesOK
- type AdminListItemTypesParams
- func NewAdminListItemTypesParams() *AdminListItemTypesParams
- func NewAdminListItemTypesParamsWithContext(ctx context.Context) *AdminListItemTypesParams
- func NewAdminListItemTypesParamsWithHTTPClient(client *http.Client) *AdminListItemTypesParams
- func NewAdminListItemTypesParamsWithTimeout(timeout time.Duration) *AdminListItemTypesParams
- func (o *AdminListItemTypesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *AdminListItemTypesParams) SetContext(ctx context.Context)
- func (o *AdminListItemTypesParams) SetHTTPClient(client *http.Client)
- func (o *AdminListItemTypesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *AdminListItemTypesParams) SetLimit(limit *int64)
- func (o *AdminListItemTypesParams) SetNamespace(namespace string)
- func (o *AdminListItemTypesParams) SetOffset(offset *int64)
- func (o *AdminListItemTypesParams) SetSortBy(sortBy *string)
- func (o *AdminListItemTypesParams) SetTimeout(timeout time.Duration)
- func (o *AdminListItemTypesParams) WithContext(ctx context.Context) *AdminListItemTypesParams
- func (o *AdminListItemTypesParams) WithHTTPClient(client *http.Client) *AdminListItemTypesParams
- func (o *AdminListItemTypesParams) WithLimit(limit *int64) *AdminListItemTypesParams
- func (o *AdminListItemTypesParams) WithNamespace(namespace string) *AdminListItemTypesParams
- func (o *AdminListItemTypesParams) WithOffset(offset *int64) *AdminListItemTypesParams
- func (o *AdminListItemTypesParams) WithSortBy(sortBy *string) *AdminListItemTypesParams
- func (o *AdminListItemTypesParams) WithTimeout(timeout time.Duration) *AdminListItemTypesParams
- func (o *AdminListItemTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AdminListItemTypesReader
- type Client
- func (a *Client) AdminCreateItemType(params *AdminCreateItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateItemTypeCreated, *AdminCreateItemTypeBadRequest, ...)deprecated
- func (a *Client) AdminCreateItemTypeShort(params *AdminCreateItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateItemTypeCreated, error)
- func (a *Client) AdminDeleteItemType(params *AdminDeleteItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteItemTypeNoContent, *AdminDeleteItemTypeNotFound, ...)deprecated
- func (a *Client) AdminDeleteItemTypeShort(params *AdminDeleteItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteItemTypeNoContent, error)
- func (a *Client) AdminListItemTypes(params *AdminListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListItemTypesOK, *AdminListItemTypesBadRequest, ...)deprecated
- func (a *Client) AdminListItemTypesShort(params *AdminListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListItemTypesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
Constants ¶
const ( AdminListItemTypesCreatedAtConstant = "createdAt" AdminListItemTypesCreatedAtAscConstant = "createdAt:asc" AdminListItemTypesCreatedAtDescConstant = "createdAt:desc" AdminListItemTypesNameConstant = "name" AdminListItemTypesNameAscConstant = "name:asc" AdminListItemTypesNameDescConstant = "name:desc" )
Get the enum in AdminListItemTypesParams
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminCreateItemTypeBadRequest ¶
type AdminCreateItemTypeBadRequest struct {
Payload *inventoryclientmodels.ApimodelsErrorResponse
}
AdminCreateItemTypeBadRequest handles this case with default header values.
Bad Request
func NewAdminCreateItemTypeBadRequest ¶
func NewAdminCreateItemTypeBadRequest() *AdminCreateItemTypeBadRequest
NewAdminCreateItemTypeBadRequest creates a AdminCreateItemTypeBadRequest with default headers values
func (*AdminCreateItemTypeBadRequest) Error ¶
func (o *AdminCreateItemTypeBadRequest) Error() string
func (*AdminCreateItemTypeBadRequest) GetPayload ¶
func (o *AdminCreateItemTypeBadRequest) GetPayload() *inventoryclientmodels.ApimodelsErrorResponse
func (*AdminCreateItemTypeBadRequest) ToJSONString ¶
func (o *AdminCreateItemTypeBadRequest) ToJSONString() string
type AdminCreateItemTypeConflict ¶
type AdminCreateItemTypeConflict struct {
Payload *inventoryclientmodels.ApimodelsErrorResponse
}
AdminCreateItemTypeConflict handles this case with default header values.
Conflict
func NewAdminCreateItemTypeConflict ¶
func NewAdminCreateItemTypeConflict() *AdminCreateItemTypeConflict
NewAdminCreateItemTypeConflict creates a AdminCreateItemTypeConflict with default headers values
func (*AdminCreateItemTypeConflict) Error ¶
func (o *AdminCreateItemTypeConflict) Error() string
func (*AdminCreateItemTypeConflict) GetPayload ¶
func (o *AdminCreateItemTypeConflict) GetPayload() *inventoryclientmodels.ApimodelsErrorResponse
func (*AdminCreateItemTypeConflict) ToJSONString ¶
func (o *AdminCreateItemTypeConflict) ToJSONString() string
type AdminCreateItemTypeCreated ¶
type AdminCreateItemTypeCreated struct {
Payload *inventoryclientmodels.ApimodelsCreateItemTypeResp
}
AdminCreateItemTypeCreated handles this case with default header values.
Created
func NewAdminCreateItemTypeCreated ¶
func NewAdminCreateItemTypeCreated() *AdminCreateItemTypeCreated
NewAdminCreateItemTypeCreated creates a AdminCreateItemTypeCreated with default headers values
func (*AdminCreateItemTypeCreated) Error ¶
func (o *AdminCreateItemTypeCreated) Error() string
func (*AdminCreateItemTypeCreated) GetPayload ¶
func (o *AdminCreateItemTypeCreated) GetPayload() *inventoryclientmodels.ApimodelsCreateItemTypeResp
func (*AdminCreateItemTypeCreated) ToJSONString ¶
func (o *AdminCreateItemTypeCreated) ToJSONString() string
type AdminCreateItemTypeInternalServerError ¶
type AdminCreateItemTypeInternalServerError struct {
Payload *inventoryclientmodels.ApimodelsErrorResponse
}
AdminCreateItemTypeInternalServerError handles this case with default header values.
Internal Server Error
func NewAdminCreateItemTypeInternalServerError ¶
func NewAdminCreateItemTypeInternalServerError() *AdminCreateItemTypeInternalServerError
NewAdminCreateItemTypeInternalServerError creates a AdminCreateItemTypeInternalServerError with default headers values
func (*AdminCreateItemTypeInternalServerError) Error ¶
func (o *AdminCreateItemTypeInternalServerError) Error() string
func (*AdminCreateItemTypeInternalServerError) GetPayload ¶
func (o *AdminCreateItemTypeInternalServerError) GetPayload() *inventoryclientmodels.ApimodelsErrorResponse
func (*AdminCreateItemTypeInternalServerError) ToJSONString ¶
func (o *AdminCreateItemTypeInternalServerError) ToJSONString() string
type AdminCreateItemTypeParams ¶
type AdminCreateItemTypeParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*Body*/ Body *inventoryclientmodels.ApimodelsCreateItemTypeReq /*Namespace Namespace */ Namespace string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AdminCreateItemTypeParams contains all the parameters to send to the API endpoint for the admin create item type operation typically these are written to a http.Request
func NewAdminCreateItemTypeParams ¶
func NewAdminCreateItemTypeParams() *AdminCreateItemTypeParams
NewAdminCreateItemTypeParams creates a new AdminCreateItemTypeParams object with the default values initialized.
func NewAdminCreateItemTypeParamsWithContext ¶
func NewAdminCreateItemTypeParamsWithContext(ctx context.Context) *AdminCreateItemTypeParams
NewAdminCreateItemTypeParamsWithContext creates a new AdminCreateItemTypeParams object with the default values initialized, and the ability to set a context for a request
func NewAdminCreateItemTypeParamsWithHTTPClient ¶
func NewAdminCreateItemTypeParamsWithHTTPClient(client *http.Client) *AdminCreateItemTypeParams
NewAdminCreateItemTypeParamsWithHTTPClient creates a new AdminCreateItemTypeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAdminCreateItemTypeParamsWithTimeout ¶
func NewAdminCreateItemTypeParamsWithTimeout(timeout time.Duration) *AdminCreateItemTypeParams
NewAdminCreateItemTypeParamsWithTimeout creates a new AdminCreateItemTypeParams object with the default values initialized, and the ability to set a timeout on a request
func (*AdminCreateItemTypeParams) SetAuthInfoWriter ¶
func (o *AdminCreateItemTypeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the admin create item type params
func (*AdminCreateItemTypeParams) SetBody ¶
func (o *AdminCreateItemTypeParams) SetBody(body *inventoryclientmodels.ApimodelsCreateItemTypeReq)
SetBody adds the body to the admin create item type params
func (*AdminCreateItemTypeParams) SetContext ¶
func (o *AdminCreateItemTypeParams) SetContext(ctx context.Context)
SetContext adds the context to the admin create item type params
func (*AdminCreateItemTypeParams) SetHTTPClient ¶
func (o *AdminCreateItemTypeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the admin create item type params
func (*AdminCreateItemTypeParams) SetHTTPClientTransport ¶
func (o *AdminCreateItemTypeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the admin create item type params
func (*AdminCreateItemTypeParams) SetNamespace ¶
func (o *AdminCreateItemTypeParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the admin create item type params
func (*AdminCreateItemTypeParams) SetTimeout ¶
func (o *AdminCreateItemTypeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the admin create item type params
func (*AdminCreateItemTypeParams) WithBody ¶
func (o *AdminCreateItemTypeParams) WithBody(body *inventoryclientmodels.ApimodelsCreateItemTypeReq) *AdminCreateItemTypeParams
WithBody adds the body to the admin create item type params
func (*AdminCreateItemTypeParams) WithContext ¶
func (o *AdminCreateItemTypeParams) WithContext(ctx context.Context) *AdminCreateItemTypeParams
WithContext adds the context to the admin create item type params
func (*AdminCreateItemTypeParams) WithHTTPClient ¶
func (o *AdminCreateItemTypeParams) WithHTTPClient(client *http.Client) *AdminCreateItemTypeParams
WithHTTPClient adds the HTTPClient to the admin create item type params
func (*AdminCreateItemTypeParams) WithNamespace ¶
func (o *AdminCreateItemTypeParams) WithNamespace(namespace string) *AdminCreateItemTypeParams
WithNamespace adds the namespace to the admin create item type params
func (*AdminCreateItemTypeParams) WithTimeout ¶
func (o *AdminCreateItemTypeParams) WithTimeout(timeout time.Duration) *AdminCreateItemTypeParams
WithTimeout adds the timeout to the admin create item type params
func (*AdminCreateItemTypeParams) WriteToRequest ¶
func (o *AdminCreateItemTypeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AdminCreateItemTypeReader ¶
type AdminCreateItemTypeReader struct {
// contains filtered or unexported fields
}
AdminCreateItemTypeReader is a Reader for the AdminCreateItemType structure.
func (*AdminCreateItemTypeReader) ReadResponse ¶
func (o *AdminCreateItemTypeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AdminDeleteItemTypeInternalServerError ¶
type AdminDeleteItemTypeInternalServerError struct {
Payload *inventoryclientmodels.ApimodelsErrorResponse
}
AdminDeleteItemTypeInternalServerError handles this case with default header values.
Internal Server Error
func NewAdminDeleteItemTypeInternalServerError ¶
func NewAdminDeleteItemTypeInternalServerError() *AdminDeleteItemTypeInternalServerError
NewAdminDeleteItemTypeInternalServerError creates a AdminDeleteItemTypeInternalServerError with default headers values
func (*AdminDeleteItemTypeInternalServerError) Error ¶
func (o *AdminDeleteItemTypeInternalServerError) Error() string
func (*AdminDeleteItemTypeInternalServerError) GetPayload ¶
func (o *AdminDeleteItemTypeInternalServerError) GetPayload() *inventoryclientmodels.ApimodelsErrorResponse
func (*AdminDeleteItemTypeInternalServerError) ToJSONString ¶
func (o *AdminDeleteItemTypeInternalServerError) ToJSONString() string
type AdminDeleteItemTypeNoContent ¶
type AdminDeleteItemTypeNoContent struct { }
AdminDeleteItemTypeNoContent handles this case with default header values.
No Content
func NewAdminDeleteItemTypeNoContent ¶
func NewAdminDeleteItemTypeNoContent() *AdminDeleteItemTypeNoContent
NewAdminDeleteItemTypeNoContent creates a AdminDeleteItemTypeNoContent with default headers values
func (*AdminDeleteItemTypeNoContent) Error ¶
func (o *AdminDeleteItemTypeNoContent) Error() string
type AdminDeleteItemTypeNotFound ¶
type AdminDeleteItemTypeNotFound struct {
Payload *inventoryclientmodels.ApimodelsErrorResponse
}
AdminDeleteItemTypeNotFound handles this case with default header values.
Not Found
func NewAdminDeleteItemTypeNotFound ¶
func NewAdminDeleteItemTypeNotFound() *AdminDeleteItemTypeNotFound
NewAdminDeleteItemTypeNotFound creates a AdminDeleteItemTypeNotFound with default headers values
func (*AdminDeleteItemTypeNotFound) Error ¶
func (o *AdminDeleteItemTypeNotFound) Error() string
func (*AdminDeleteItemTypeNotFound) GetPayload ¶
func (o *AdminDeleteItemTypeNotFound) GetPayload() *inventoryclientmodels.ApimodelsErrorResponse
func (*AdminDeleteItemTypeNotFound) ToJSONString ¶
func (o *AdminDeleteItemTypeNotFound) ToJSONString() string
type AdminDeleteItemTypeParams ¶
type AdminDeleteItemTypeParams struct { /*RetryPolicy*/ RetryPolicy *utils.Retry /*ItemTypeName ItemTypeName */ ItemTypeName string /*Namespace Namespace */ Namespace string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AdminDeleteItemTypeParams contains all the parameters to send to the API endpoint for the admin delete item type operation typically these are written to a http.Request
func NewAdminDeleteItemTypeParams ¶
func NewAdminDeleteItemTypeParams() *AdminDeleteItemTypeParams
NewAdminDeleteItemTypeParams creates a new AdminDeleteItemTypeParams object with the default values initialized.
func NewAdminDeleteItemTypeParamsWithContext ¶
func NewAdminDeleteItemTypeParamsWithContext(ctx context.Context) *AdminDeleteItemTypeParams
NewAdminDeleteItemTypeParamsWithContext creates a new AdminDeleteItemTypeParams object with the default values initialized, and the ability to set a context for a request
func NewAdminDeleteItemTypeParamsWithHTTPClient ¶
func NewAdminDeleteItemTypeParamsWithHTTPClient(client *http.Client) *AdminDeleteItemTypeParams
NewAdminDeleteItemTypeParamsWithHTTPClient creates a new AdminDeleteItemTypeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAdminDeleteItemTypeParamsWithTimeout ¶
func NewAdminDeleteItemTypeParamsWithTimeout(timeout time.Duration) *AdminDeleteItemTypeParams
NewAdminDeleteItemTypeParamsWithTimeout creates a new AdminDeleteItemTypeParams object with the default values initialized, and the ability to set a timeout on a request
func (*AdminDeleteItemTypeParams) SetAuthInfoWriter ¶
func (o *AdminDeleteItemTypeParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the admin delete item type params
func (*AdminDeleteItemTypeParams) SetContext ¶
func (o *AdminDeleteItemTypeParams) SetContext(ctx context.Context)
SetContext adds the context to the admin delete item type params
func (*AdminDeleteItemTypeParams) SetHTTPClient ¶
func (o *AdminDeleteItemTypeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the admin delete item type params
func (*AdminDeleteItemTypeParams) SetHTTPClientTransport ¶
func (o *AdminDeleteItemTypeParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the admin delete item type params
func (*AdminDeleteItemTypeParams) SetItemTypeName ¶
func (o *AdminDeleteItemTypeParams) SetItemTypeName(itemTypeName string)
SetItemTypeName adds the itemTypeName to the admin delete item type params
func (*AdminDeleteItemTypeParams) SetNamespace ¶
func (o *AdminDeleteItemTypeParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the admin delete item type params
func (*AdminDeleteItemTypeParams) SetTimeout ¶
func (o *AdminDeleteItemTypeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the admin delete item type params
func (*AdminDeleteItemTypeParams) WithContext ¶
func (o *AdminDeleteItemTypeParams) WithContext(ctx context.Context) *AdminDeleteItemTypeParams
WithContext adds the context to the admin delete item type params
func (*AdminDeleteItemTypeParams) WithHTTPClient ¶
func (o *AdminDeleteItemTypeParams) WithHTTPClient(client *http.Client) *AdminDeleteItemTypeParams
WithHTTPClient adds the HTTPClient to the admin delete item type params
func (*AdminDeleteItemTypeParams) WithItemTypeName ¶
func (o *AdminDeleteItemTypeParams) WithItemTypeName(itemTypeName string) *AdminDeleteItemTypeParams
WithItemTypeName adds the itemTypeName to the admin delete item type params
func (*AdminDeleteItemTypeParams) WithNamespace ¶
func (o *AdminDeleteItemTypeParams) WithNamespace(namespace string) *AdminDeleteItemTypeParams
WithNamespace adds the namespace to the admin delete item type params
func (*AdminDeleteItemTypeParams) WithTimeout ¶
func (o *AdminDeleteItemTypeParams) WithTimeout(timeout time.Duration) *AdminDeleteItemTypeParams
WithTimeout adds the timeout to the admin delete item type params
func (*AdminDeleteItemTypeParams) WriteToRequest ¶
func (o *AdminDeleteItemTypeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AdminDeleteItemTypeReader ¶
type AdminDeleteItemTypeReader struct {
// contains filtered or unexported fields
}
AdminDeleteItemTypeReader is a Reader for the AdminDeleteItemType structure.
func (*AdminDeleteItemTypeReader) ReadResponse ¶
func (o *AdminDeleteItemTypeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AdminListItemTypesBadRequest ¶
type AdminListItemTypesBadRequest struct {
Payload *inventoryclientmodels.ApimodelsErrorResponse
}
AdminListItemTypesBadRequest handles this case with default header values.
Bad Request
func NewAdminListItemTypesBadRequest ¶
func NewAdminListItemTypesBadRequest() *AdminListItemTypesBadRequest
NewAdminListItemTypesBadRequest creates a AdminListItemTypesBadRequest with default headers values
func (*AdminListItemTypesBadRequest) Error ¶
func (o *AdminListItemTypesBadRequest) Error() string
func (*AdminListItemTypesBadRequest) GetPayload ¶
func (o *AdminListItemTypesBadRequest) GetPayload() *inventoryclientmodels.ApimodelsErrorResponse
func (*AdminListItemTypesBadRequest) ToJSONString ¶
func (o *AdminListItemTypesBadRequest) ToJSONString() string
type AdminListItemTypesInternalServerError ¶
type AdminListItemTypesInternalServerError struct {
Payload *inventoryclientmodels.ApimodelsErrorResponse
}
AdminListItemTypesInternalServerError handles this case with default header values.
Internal Server Error
func NewAdminListItemTypesInternalServerError ¶
func NewAdminListItemTypesInternalServerError() *AdminListItemTypesInternalServerError
NewAdminListItemTypesInternalServerError creates a AdminListItemTypesInternalServerError with default headers values
func (*AdminListItemTypesInternalServerError) Error ¶
func (o *AdminListItemTypesInternalServerError) Error() string
func (*AdminListItemTypesInternalServerError) GetPayload ¶
func (o *AdminListItemTypesInternalServerError) GetPayload() *inventoryclientmodels.ApimodelsErrorResponse
func (*AdminListItemTypesInternalServerError) ToJSONString ¶
func (o *AdminListItemTypesInternalServerError) ToJSONString() string
type AdminListItemTypesOK ¶
type AdminListItemTypesOK struct {
Payload *inventoryclientmodels.ApimodelsListItemTypesResp
}
AdminListItemTypesOK handles this case with default header values.
OK
func NewAdminListItemTypesOK ¶
func NewAdminListItemTypesOK() *AdminListItemTypesOK
NewAdminListItemTypesOK creates a AdminListItemTypesOK with default headers values
func (*AdminListItemTypesOK) Error ¶
func (o *AdminListItemTypesOK) Error() string
func (*AdminListItemTypesOK) GetPayload ¶
func (o *AdminListItemTypesOK) GetPayload() *inventoryclientmodels.ApimodelsListItemTypesResp
func (*AdminListItemTypesOK) ToJSONString ¶
func (o *AdminListItemTypesOK) ToJSONString() string
type AdminListItemTypesParams ¶
type AdminListItemTypesParams 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 // contains filtered or unexported fields }
AdminListItemTypesParams contains all the parameters to send to the API endpoint for the admin list item types operation typically these are written to a http.Request
func NewAdminListItemTypesParams ¶
func NewAdminListItemTypesParams() *AdminListItemTypesParams
NewAdminListItemTypesParams creates a new AdminListItemTypesParams object with the default values initialized.
func NewAdminListItemTypesParamsWithContext ¶
func NewAdminListItemTypesParamsWithContext(ctx context.Context) *AdminListItemTypesParams
NewAdminListItemTypesParamsWithContext creates a new AdminListItemTypesParams object with the default values initialized, and the ability to set a context for a request
func NewAdminListItemTypesParamsWithHTTPClient ¶
func NewAdminListItemTypesParamsWithHTTPClient(client *http.Client) *AdminListItemTypesParams
NewAdminListItemTypesParamsWithHTTPClient creates a new AdminListItemTypesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAdminListItemTypesParamsWithTimeout ¶
func NewAdminListItemTypesParamsWithTimeout(timeout time.Duration) *AdminListItemTypesParams
NewAdminListItemTypesParamsWithTimeout creates a new AdminListItemTypesParams object with the default values initialized, and the ability to set a timeout on a request
func (*AdminListItemTypesParams) SetAuthInfoWriter ¶
func (o *AdminListItemTypesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the admin list item types params
func (*AdminListItemTypesParams) SetContext ¶
func (o *AdminListItemTypesParams) SetContext(ctx context.Context)
SetContext adds the context to the admin list item types params
func (*AdminListItemTypesParams) SetHTTPClient ¶
func (o *AdminListItemTypesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the admin list item types params
func (*AdminListItemTypesParams) SetHTTPClientTransport ¶
func (o *AdminListItemTypesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
SetHTTPClient adds the HTTPClient Transport to the admin list item types params
func (*AdminListItemTypesParams) SetLimit ¶
func (o *AdminListItemTypesParams) SetLimit(limit *int64)
SetLimit adds the limit to the admin list item types params
func (*AdminListItemTypesParams) SetNamespace ¶
func (o *AdminListItemTypesParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the admin list item types params
func (*AdminListItemTypesParams) SetOffset ¶
func (o *AdminListItemTypesParams) SetOffset(offset *int64)
SetOffset adds the offset to the admin list item types params
func (*AdminListItemTypesParams) SetSortBy ¶
func (o *AdminListItemTypesParams) SetSortBy(sortBy *string)
SetSortBy adds the sortBy to the admin list item types params
func (*AdminListItemTypesParams) SetTimeout ¶
func (o *AdminListItemTypesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the admin list item types params
func (*AdminListItemTypesParams) WithContext ¶
func (o *AdminListItemTypesParams) WithContext(ctx context.Context) *AdminListItemTypesParams
WithContext adds the context to the admin list item types params
func (*AdminListItemTypesParams) WithHTTPClient ¶
func (o *AdminListItemTypesParams) WithHTTPClient(client *http.Client) *AdminListItemTypesParams
WithHTTPClient adds the HTTPClient to the admin list item types params
func (*AdminListItemTypesParams) WithLimit ¶
func (o *AdminListItemTypesParams) WithLimit(limit *int64) *AdminListItemTypesParams
WithLimit adds the limit to the admin list item types params
func (*AdminListItemTypesParams) WithNamespace ¶
func (o *AdminListItemTypesParams) WithNamespace(namespace string) *AdminListItemTypesParams
WithNamespace adds the namespace to the admin list item types params
func (*AdminListItemTypesParams) WithOffset ¶
func (o *AdminListItemTypesParams) WithOffset(offset *int64) *AdminListItemTypesParams
WithOffset adds the offset to the admin list item types params
func (*AdminListItemTypesParams) WithSortBy ¶
func (o *AdminListItemTypesParams) WithSortBy(sortBy *string) *AdminListItemTypesParams
WithSortBy adds the sortBy to the admin list item types params
func (*AdminListItemTypesParams) WithTimeout ¶
func (o *AdminListItemTypesParams) WithTimeout(timeout time.Duration) *AdminListItemTypesParams
WithTimeout adds the timeout to the admin list item types params
func (*AdminListItemTypesParams) WriteToRequest ¶
func (o *AdminListItemTypesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AdminListItemTypesReader ¶
type AdminListItemTypesReader struct {
// contains filtered or unexported fields
}
AdminListItemTypesReader is a Reader for the AdminListItemTypes structure.
func (*AdminListItemTypesReader) ReadResponse ¶
func (o *AdminListItemTypesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for admin item types API
func (*Client) AdminCreateItemType
deprecated
func (a *Client) AdminCreateItemType(params *AdminCreateItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateItemTypeCreated, *AdminCreateItemTypeBadRequest, *AdminCreateItemTypeConflict, *AdminCreateItemTypeInternalServerError, error)
Deprecated: 2022-08-10 - Use AdminCreateItemTypeShort instead.
AdminCreateItemType to create an itemtype ¶
This endpoint will create a new itemtype. The itemtype name must be unique per namespace. It is safe to call this endpoint even if the itemtype already exists.
Permission: ADMIN:NAMESPACE:{namespace}:INVENTORY:ITEMTYPE [CREATE]
func (*Client) AdminCreateItemTypeShort ¶
func (a *Client) AdminCreateItemTypeShort(params *AdminCreateItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateItemTypeCreated, error)
AdminCreateItemTypeShort to create an itemtype
This endpoint will create a new itemtype. The itemtype name must be unique per namespace. It is safe to call this endpoint even if the itemtype already exists.
Permission: ADMIN:NAMESPACE:{namespace}:INVENTORY:ITEMTYPE [CREATE]
func (*Client) AdminDeleteItemType
deprecated
func (a *Client) AdminDeleteItemType(params *AdminDeleteItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteItemTypeNoContent, *AdminDeleteItemTypeNotFound, *AdminDeleteItemTypeInternalServerError, error)
Deprecated: 2022-08-10 - Use AdminDeleteItemTypeShort instead.
AdminDeleteItemType to delete an item type ¶
This endpoint will delete a item type by itemtypeName in a specified namespace. If the itemtypeName doesn't exist in a namespace, it'll return not found.
Permission: ADMIN:NAMESPACE:{namespace}:INVENTORY:ITEMTYPE [DELETE]
func (*Client) AdminDeleteItemTypeShort ¶
func (a *Client) AdminDeleteItemTypeShort(params *AdminDeleteItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteItemTypeNoContent, error)
AdminDeleteItemTypeShort to delete an item type
This endpoint will delete a item type by itemtypeName in a specified namespace. If the itemtypeName doesn't exist in a namespace, it'll return not found.
Permission: ADMIN:NAMESPACE:{namespace}:INVENTORY:ITEMTYPE [DELETE]
func (*Client) AdminListItemTypes
deprecated
func (a *Client) AdminListItemTypes(params *AdminListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListItemTypesOK, *AdminListItemTypesBadRequest, *AdminListItemTypesInternalServerError, error)
Deprecated: 2022-08-10 - Use AdminListItemTypesShort instead.
AdminListItemTypes to list itemtypes ¶
This endpoint will list all item types in a namespace. The response body will be in the form of standard pagination.
Permission: ADMIN:NAMESPACE:{namespace}:INVENTORY:ITEMTYPE [READ]
func (*Client) AdminListItemTypesShort ¶
func (a *Client) AdminListItemTypesShort(params *AdminListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListItemTypesOK, error)
AdminListItemTypesShort to list itemtypes
This endpoint will list all item types in a namespace. The response body will be in the form of standard pagination.
Permission: ADMIN:NAMESPACE:{namespace}:INVENTORY:ITEMTYPE [READ]
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { AdminListItemTypes(params *AdminListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListItemTypesOK, *AdminListItemTypesBadRequest, *AdminListItemTypesInternalServerError, error) AdminListItemTypesShort(params *AdminListItemTypesParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListItemTypesOK, error) AdminCreateItemType(params *AdminCreateItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateItemTypeCreated, *AdminCreateItemTypeBadRequest, *AdminCreateItemTypeConflict, *AdminCreateItemTypeInternalServerError, error) AdminCreateItemTypeShort(params *AdminCreateItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateItemTypeCreated, error) AdminDeleteItemType(params *AdminDeleteItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteItemTypeNoContent, *AdminDeleteItemTypeNotFound, *AdminDeleteItemTypeInternalServerError, error) AdminDeleteItemTypeShort(params *AdminDeleteItemTypeParams, authInfo runtime.ClientAuthInfoWriter) (*AdminDeleteItemTypeNoContent, 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 admin item types API client.