admin_inventories

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AdminListInventoriesCreatedAtConstant                      = "createdAt"
	AdminListInventoriesCreatedAtAscConstant                   = "createdAt:asc"
	AdminListInventoriesCreatedAtDescConstant                  = "createdAt:desc"
	AdminListInventoriesInventoryConfigurationCodeConstant     = "inventoryConfigurationCode"
	AdminListInventoriesInventoryConfigurationCodeAscConstant  = "inventoryConfigurationCode:asc"
	AdminListInventoriesInventoryConfigurationCodeDescConstant = "inventoryConfigurationCode:desc"
	AdminListInventoriesUpdatedAtConstant                      = "updatedAt"
	AdminListInventoriesUpdatedAtAscConstant                   = "updatedAt:asc"
	AdminListInventoriesUpdatedAtDescConstant                  = "updatedAt:desc"
)

Get the enum in AdminListInventoriesParams

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminCreateInventoryBadRequest

type AdminCreateInventoryBadRequest struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

AdminCreateInventoryBadRequest handles this case with default header values.

Bad Request

func NewAdminCreateInventoryBadRequest

func NewAdminCreateInventoryBadRequest() *AdminCreateInventoryBadRequest

NewAdminCreateInventoryBadRequest creates a AdminCreateInventoryBadRequest with default headers values

func (*AdminCreateInventoryBadRequest) Error

func (*AdminCreateInventoryBadRequest) GetPayload

func (*AdminCreateInventoryBadRequest) ToJSONString

func (o *AdminCreateInventoryBadRequest) ToJSONString() string

type AdminCreateInventoryCreated

type AdminCreateInventoryCreated struct {
	Payload *inventoryclientmodels.ApimodelsInventoryResp
}

AdminCreateInventoryCreated handles this case with default header values.

Created

func NewAdminCreateInventoryCreated

func NewAdminCreateInventoryCreated() *AdminCreateInventoryCreated

NewAdminCreateInventoryCreated creates a AdminCreateInventoryCreated with default headers values

func (*AdminCreateInventoryCreated) Error

func (*AdminCreateInventoryCreated) GetPayload

func (*AdminCreateInventoryCreated) ToJSONString

func (o *AdminCreateInventoryCreated) ToJSONString() string

type AdminCreateInventoryInternalServerError

type AdminCreateInventoryInternalServerError struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

AdminCreateInventoryInternalServerError handles this case with default header values.

Internal Server Error

func NewAdminCreateInventoryInternalServerError

func NewAdminCreateInventoryInternalServerError() *AdminCreateInventoryInternalServerError

NewAdminCreateInventoryInternalServerError creates a AdminCreateInventoryInternalServerError with default headers values

func (*AdminCreateInventoryInternalServerError) Error

func (*AdminCreateInventoryInternalServerError) GetPayload

func (*AdminCreateInventoryInternalServerError) ToJSONString

type AdminCreateInventoryParams

type AdminCreateInventoryParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *inventoryclientmodels.ApimodelsCreateInventoryReq
	/*Namespace
	  Namespace

	*/
	Namespace string

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

AdminCreateInventoryParams contains all the parameters to send to the API endpoint for the admin create inventory operation typically these are written to a http.Request

func NewAdminCreateInventoryParams

func NewAdminCreateInventoryParams() *AdminCreateInventoryParams

NewAdminCreateInventoryParams creates a new AdminCreateInventoryParams object with the default values initialized.

func NewAdminCreateInventoryParamsWithContext

func NewAdminCreateInventoryParamsWithContext(ctx context.Context) *AdminCreateInventoryParams

NewAdminCreateInventoryParamsWithContext creates a new AdminCreateInventoryParams object with the default values initialized, and the ability to set a context for a request

func NewAdminCreateInventoryParamsWithHTTPClient

func NewAdminCreateInventoryParamsWithHTTPClient(client *http.Client) *AdminCreateInventoryParams

NewAdminCreateInventoryParamsWithHTTPClient creates a new AdminCreateInventoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAdminCreateInventoryParamsWithTimeout

func NewAdminCreateInventoryParamsWithTimeout(timeout time.Duration) *AdminCreateInventoryParams

NewAdminCreateInventoryParamsWithTimeout creates a new AdminCreateInventoryParams object with the default values initialized, and the ability to set a timeout on a request

func (*AdminCreateInventoryParams) SetAuthInfoWriter

func (o *AdminCreateInventoryParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the admin create inventory params

func (*AdminCreateInventoryParams) SetBody

SetBody adds the body to the admin create inventory params

func (*AdminCreateInventoryParams) SetContext

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

SetContext adds the context to the admin create inventory params

func (*AdminCreateInventoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin create inventory params

func (*AdminCreateInventoryParams) SetHTTPClientTransport

func (o *AdminCreateInventoryParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the admin create inventory params

func (*AdminCreateInventoryParams) SetNamespace

func (o *AdminCreateInventoryParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin create inventory params

func (*AdminCreateInventoryParams) SetTimeout

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

SetTimeout adds the timeout to the admin create inventory params

func (*AdminCreateInventoryParams) WithBody

WithBody adds the body to the admin create inventory params

func (*AdminCreateInventoryParams) WithContext

WithContext adds the context to the admin create inventory params

func (*AdminCreateInventoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin create inventory params

func (*AdminCreateInventoryParams) WithNamespace

func (o *AdminCreateInventoryParams) WithNamespace(namespace string) *AdminCreateInventoryParams

WithNamespace adds the namespace to the admin create inventory params

func (*AdminCreateInventoryParams) WithTimeout

WithTimeout adds the timeout to the admin create inventory params

func (*AdminCreateInventoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminCreateInventoryReader

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

AdminCreateInventoryReader is a Reader for the AdminCreateInventory structure.

func (*AdminCreateInventoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminGetInventoryBadRequest

type AdminGetInventoryBadRequest struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

AdminGetInventoryBadRequest handles this case with default header values.

Bad Request

func NewAdminGetInventoryBadRequest

func NewAdminGetInventoryBadRequest() *AdminGetInventoryBadRequest

NewAdminGetInventoryBadRequest creates a AdminGetInventoryBadRequest with default headers values

func (*AdminGetInventoryBadRequest) Error

func (*AdminGetInventoryBadRequest) GetPayload

func (*AdminGetInventoryBadRequest) ToJSONString

func (o *AdminGetInventoryBadRequest) ToJSONString() string

type AdminGetInventoryInternalServerError

type AdminGetInventoryInternalServerError struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

AdminGetInventoryInternalServerError handles this case with default header values.

Internal Server Error

func NewAdminGetInventoryInternalServerError

func NewAdminGetInventoryInternalServerError() *AdminGetInventoryInternalServerError

NewAdminGetInventoryInternalServerError creates a AdminGetInventoryInternalServerError with default headers values

func (*AdminGetInventoryInternalServerError) Error

func (*AdminGetInventoryInternalServerError) GetPayload

func (*AdminGetInventoryInternalServerError) ToJSONString

func (o *AdminGetInventoryInternalServerError) ToJSONString() string

type AdminGetInventoryNotFound

type AdminGetInventoryNotFound struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

AdminGetInventoryNotFound handles this case with default header values.

Not Found

func NewAdminGetInventoryNotFound

func NewAdminGetInventoryNotFound() *AdminGetInventoryNotFound

NewAdminGetInventoryNotFound creates a AdminGetInventoryNotFound with default headers values

func (*AdminGetInventoryNotFound) Error

func (o *AdminGetInventoryNotFound) Error() string

func (*AdminGetInventoryNotFound) GetPayload

func (*AdminGetInventoryNotFound) ToJSONString

func (o *AdminGetInventoryNotFound) ToJSONString() string

type AdminGetInventoryOK

type AdminGetInventoryOK struct {
	Payload *inventoryclientmodels.ApimodelsInventoryResp
}

AdminGetInventoryOK handles this case with default header values.

OK

func NewAdminGetInventoryOK

func NewAdminGetInventoryOK() *AdminGetInventoryOK

NewAdminGetInventoryOK creates a AdminGetInventoryOK with default headers values

func (*AdminGetInventoryOK) Error

func (o *AdminGetInventoryOK) Error() string

func (*AdminGetInventoryOK) GetPayload

func (*AdminGetInventoryOK) ToJSONString

func (o *AdminGetInventoryOK) ToJSONString() string

type AdminGetInventoryParams

type AdminGetInventoryParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*InventoryID
	  InventoryID

	*/
	InventoryID string
	/*Namespace
	  Namespace

	*/
	Namespace string

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

AdminGetInventoryParams contains all the parameters to send to the API endpoint for the admin get inventory operation typically these are written to a http.Request

func NewAdminGetInventoryParams

func NewAdminGetInventoryParams() *AdminGetInventoryParams

NewAdminGetInventoryParams creates a new AdminGetInventoryParams object with the default values initialized.

func NewAdminGetInventoryParamsWithContext

func NewAdminGetInventoryParamsWithContext(ctx context.Context) *AdminGetInventoryParams

NewAdminGetInventoryParamsWithContext creates a new AdminGetInventoryParams object with the default values initialized, and the ability to set a context for a request

func NewAdminGetInventoryParamsWithHTTPClient

func NewAdminGetInventoryParamsWithHTTPClient(client *http.Client) *AdminGetInventoryParams

NewAdminGetInventoryParamsWithHTTPClient creates a new AdminGetInventoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAdminGetInventoryParamsWithTimeout

func NewAdminGetInventoryParamsWithTimeout(timeout time.Duration) *AdminGetInventoryParams

NewAdminGetInventoryParamsWithTimeout creates a new AdminGetInventoryParams object with the default values initialized, and the ability to set a timeout on a request

func (*AdminGetInventoryParams) SetAuthInfoWriter

func (o *AdminGetInventoryParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the admin get inventory params

func (*AdminGetInventoryParams) SetContext

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

SetContext adds the context to the admin get inventory params

func (*AdminGetInventoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin get inventory params

func (*AdminGetInventoryParams) SetHTTPClientTransport

func (o *AdminGetInventoryParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the admin get inventory params

func (*AdminGetInventoryParams) SetInventoryID

func (o *AdminGetInventoryParams) SetInventoryID(inventoryID string)

SetInventoryID adds the inventoryId to the admin get inventory params

func (*AdminGetInventoryParams) SetNamespace

func (o *AdminGetInventoryParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin get inventory params

func (*AdminGetInventoryParams) SetTimeout

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

SetTimeout adds the timeout to the admin get inventory params

func (*AdminGetInventoryParams) WithContext

WithContext adds the context to the admin get inventory params

func (*AdminGetInventoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the admin get inventory params

func (*AdminGetInventoryParams) WithInventoryID

func (o *AdminGetInventoryParams) WithInventoryID(inventoryID string) *AdminGetInventoryParams

WithInventoryID adds the inventoryID to the admin get inventory params

func (*AdminGetInventoryParams) WithNamespace

func (o *AdminGetInventoryParams) WithNamespace(namespace string) *AdminGetInventoryParams

WithNamespace adds the namespace to the admin get inventory params

func (*AdminGetInventoryParams) WithTimeout

WithTimeout adds the timeout to the admin get inventory params

func (*AdminGetInventoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminGetInventoryReader

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

AdminGetInventoryReader is a Reader for the AdminGetInventory structure.

func (*AdminGetInventoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminListInventoriesBadRequest

type AdminListInventoriesBadRequest struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

AdminListInventoriesBadRequest handles this case with default header values.

Bad Request

func NewAdminListInventoriesBadRequest

func NewAdminListInventoriesBadRequest() *AdminListInventoriesBadRequest

NewAdminListInventoriesBadRequest creates a AdminListInventoriesBadRequest with default headers values

func (*AdminListInventoriesBadRequest) Error

func (*AdminListInventoriesBadRequest) GetPayload

func (*AdminListInventoriesBadRequest) ToJSONString

func (o *AdminListInventoriesBadRequest) ToJSONString() string

type AdminListInventoriesInternalServerError

type AdminListInventoriesInternalServerError struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

AdminListInventoriesInternalServerError handles this case with default header values.

Internal Server Error

func NewAdminListInventoriesInternalServerError

func NewAdminListInventoriesInternalServerError() *AdminListInventoriesInternalServerError

NewAdminListInventoriesInternalServerError creates a AdminListInventoriesInternalServerError with default headers values

func (*AdminListInventoriesInternalServerError) Error

func (*AdminListInventoriesInternalServerError) GetPayload

func (*AdminListInventoriesInternalServerError) ToJSONString

type AdminListInventoriesOK

type AdminListInventoriesOK struct {
	Payload *inventoryclientmodels.ApimodelsListInventoryResp
}

AdminListInventoriesOK handles this case with default header values.

OK

func NewAdminListInventoriesOK

func NewAdminListInventoriesOK() *AdminListInventoriesOK

NewAdminListInventoriesOK creates a AdminListInventoriesOK with default headers values

func (*AdminListInventoriesOK) Error

func (o *AdminListInventoriesOK) Error() string

func (*AdminListInventoriesOK) GetPayload

func (*AdminListInventoriesOK) ToJSONString

func (o *AdminListInventoriesOK) ToJSONString() string

type AdminListInventoriesParams

type AdminListInventoriesParams 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
	/*UserID
	  UserID

	*/
	UserID *string

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

AdminListInventoriesParams contains all the parameters to send to the API endpoint for the admin list inventories operation typically these are written to a http.Request

func NewAdminListInventoriesParams

func NewAdminListInventoriesParams() *AdminListInventoriesParams

NewAdminListInventoriesParams creates a new AdminListInventoriesParams object with the default values initialized.

func NewAdminListInventoriesParamsWithContext

func NewAdminListInventoriesParamsWithContext(ctx context.Context) *AdminListInventoriesParams

NewAdminListInventoriesParamsWithContext creates a new AdminListInventoriesParams object with the default values initialized, and the ability to set a context for a request

func NewAdminListInventoriesParamsWithHTTPClient

func NewAdminListInventoriesParamsWithHTTPClient(client *http.Client) *AdminListInventoriesParams

NewAdminListInventoriesParamsWithHTTPClient creates a new AdminListInventoriesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAdminListInventoriesParamsWithTimeout

func NewAdminListInventoriesParamsWithTimeout(timeout time.Duration) *AdminListInventoriesParams

NewAdminListInventoriesParamsWithTimeout creates a new AdminListInventoriesParams object with the default values initialized, and the ability to set a timeout on a request

func (*AdminListInventoriesParams) SetAuthInfoWriter

func (o *AdminListInventoriesParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the admin list inventories params

func (*AdminListInventoriesParams) SetContext

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

SetContext adds the context to the admin list inventories params

func (*AdminListInventoriesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin list inventories params

func (*AdminListInventoriesParams) SetHTTPClientTransport

func (o *AdminListInventoriesParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the admin list inventories params

func (*AdminListInventoriesParams) SetInventoryConfigurationCode

func (o *AdminListInventoriesParams) SetInventoryConfigurationCode(inventoryConfigurationCode *string)

SetInventoryConfigurationCode adds the inventoryConfigurationCode to the admin list inventories params

func (*AdminListInventoriesParams) SetLimit

func (o *AdminListInventoriesParams) SetLimit(limit *int64)

SetLimit adds the limit to the admin list inventories params

func (*AdminListInventoriesParams) SetNamespace

func (o *AdminListInventoriesParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin list inventories params

func (*AdminListInventoriesParams) SetOffset

func (o *AdminListInventoriesParams) SetOffset(offset *int64)

SetOffset adds the offset to the admin list inventories params

func (*AdminListInventoriesParams) SetSortBy

func (o *AdminListInventoriesParams) SetSortBy(sortBy *string)

SetSortBy adds the sortBy to the admin list inventories params

func (*AdminListInventoriesParams) SetTimeout

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

SetTimeout adds the timeout to the admin list inventories params

func (*AdminListInventoriesParams) SetUserID

func (o *AdminListInventoriesParams) SetUserID(userID *string)

SetUserID adds the userId to the admin list inventories params

func (*AdminListInventoriesParams) WithContext

WithContext adds the context to the admin list inventories params

func (*AdminListInventoriesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin list inventories params

func (*AdminListInventoriesParams) WithInventoryConfigurationCode

func (o *AdminListInventoriesParams) WithInventoryConfigurationCode(inventoryConfigurationCode *string) *AdminListInventoriesParams

WithInventoryConfigurationCode adds the inventoryConfigurationCode to the admin list inventories params

func (*AdminListInventoriesParams) WithLimit

WithLimit adds the limit to the admin list inventories params

func (*AdminListInventoriesParams) WithNamespace

func (o *AdminListInventoriesParams) WithNamespace(namespace string) *AdminListInventoriesParams

WithNamespace adds the namespace to the admin list inventories params

func (*AdminListInventoriesParams) WithOffset

WithOffset adds the offset to the admin list inventories params

func (*AdminListInventoriesParams) WithSortBy

WithSortBy adds the sortBy to the admin list inventories params

func (*AdminListInventoriesParams) WithTimeout

WithTimeout adds the timeout to the admin list inventories params

func (*AdminListInventoriesParams) WithUserID

WithUserID adds the userID to the admin list inventories params

func (*AdminListInventoriesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminListInventoriesReader

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

AdminListInventoriesReader is a Reader for the AdminListInventories structure.

func (*AdminListInventoriesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdminUpdateInventoryBadRequest

type AdminUpdateInventoryBadRequest struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

AdminUpdateInventoryBadRequest handles this case with default header values.

Bad Request

func NewAdminUpdateInventoryBadRequest

func NewAdminUpdateInventoryBadRequest() *AdminUpdateInventoryBadRequest

NewAdminUpdateInventoryBadRequest creates a AdminUpdateInventoryBadRequest with default headers values

func (*AdminUpdateInventoryBadRequest) Error

func (*AdminUpdateInventoryBadRequest) GetPayload

func (*AdminUpdateInventoryBadRequest) ToJSONString

func (o *AdminUpdateInventoryBadRequest) ToJSONString() string

type AdminUpdateInventoryInternalServerError

type AdminUpdateInventoryInternalServerError struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

AdminUpdateInventoryInternalServerError handles this case with default header values.

Internal Server Error

func NewAdminUpdateInventoryInternalServerError

func NewAdminUpdateInventoryInternalServerError() *AdminUpdateInventoryInternalServerError

NewAdminUpdateInventoryInternalServerError creates a AdminUpdateInventoryInternalServerError with default headers values

func (*AdminUpdateInventoryInternalServerError) Error

func (*AdminUpdateInventoryInternalServerError) GetPayload

func (*AdminUpdateInventoryInternalServerError) ToJSONString

type AdminUpdateInventoryNotFound

type AdminUpdateInventoryNotFound struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

AdminUpdateInventoryNotFound handles this case with default header values.

Not Found

func NewAdminUpdateInventoryNotFound

func NewAdminUpdateInventoryNotFound() *AdminUpdateInventoryNotFound

NewAdminUpdateInventoryNotFound creates a AdminUpdateInventoryNotFound with default headers values

func (*AdminUpdateInventoryNotFound) Error

func (*AdminUpdateInventoryNotFound) GetPayload

func (*AdminUpdateInventoryNotFound) ToJSONString

func (o *AdminUpdateInventoryNotFound) ToJSONString() string

type AdminUpdateInventoryOK

type AdminUpdateInventoryOK struct {
	Payload *inventoryclientmodels.ApimodelsInventoryResp
}

AdminUpdateInventoryOK handles this case with default header values.

OK

func NewAdminUpdateInventoryOK

func NewAdminUpdateInventoryOK() *AdminUpdateInventoryOK

NewAdminUpdateInventoryOK creates a AdminUpdateInventoryOK with default headers values

func (*AdminUpdateInventoryOK) Error

func (o *AdminUpdateInventoryOK) Error() string

func (*AdminUpdateInventoryOK) GetPayload

func (*AdminUpdateInventoryOK) ToJSONString

func (o *AdminUpdateInventoryOK) ToJSONString() string

type AdminUpdateInventoryParams

type AdminUpdateInventoryParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *inventoryclientmodels.ApimodelsUpdateInventoryReq
	/*InventoryID
	  InventoryID

	*/
	InventoryID string
	/*Namespace
	  Namespace

	*/
	Namespace string

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

AdminUpdateInventoryParams contains all the parameters to send to the API endpoint for the admin update inventory operation typically these are written to a http.Request

func NewAdminUpdateInventoryParams

func NewAdminUpdateInventoryParams() *AdminUpdateInventoryParams

NewAdminUpdateInventoryParams creates a new AdminUpdateInventoryParams object with the default values initialized.

func NewAdminUpdateInventoryParamsWithContext

func NewAdminUpdateInventoryParamsWithContext(ctx context.Context) *AdminUpdateInventoryParams

NewAdminUpdateInventoryParamsWithContext creates a new AdminUpdateInventoryParams object with the default values initialized, and the ability to set a context for a request

func NewAdminUpdateInventoryParamsWithHTTPClient

func NewAdminUpdateInventoryParamsWithHTTPClient(client *http.Client) *AdminUpdateInventoryParams

NewAdminUpdateInventoryParamsWithHTTPClient creates a new AdminUpdateInventoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAdminUpdateInventoryParamsWithTimeout

func NewAdminUpdateInventoryParamsWithTimeout(timeout time.Duration) *AdminUpdateInventoryParams

NewAdminUpdateInventoryParamsWithTimeout creates a new AdminUpdateInventoryParams object with the default values initialized, and the ability to set a timeout on a request

func (*AdminUpdateInventoryParams) SetAuthInfoWriter

func (o *AdminUpdateInventoryParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the admin update inventory params

func (*AdminUpdateInventoryParams) SetBody

SetBody adds the body to the admin update inventory params

func (*AdminUpdateInventoryParams) SetContext

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

SetContext adds the context to the admin update inventory params

func (*AdminUpdateInventoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the admin update inventory params

func (*AdminUpdateInventoryParams) SetHTTPClientTransport

func (o *AdminUpdateInventoryParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the admin update inventory params

func (*AdminUpdateInventoryParams) SetInventoryID

func (o *AdminUpdateInventoryParams) SetInventoryID(inventoryID string)

SetInventoryID adds the inventoryId to the admin update inventory params

func (*AdminUpdateInventoryParams) SetNamespace

func (o *AdminUpdateInventoryParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the admin update inventory params

func (*AdminUpdateInventoryParams) SetTimeout

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

SetTimeout adds the timeout to the admin update inventory params

func (*AdminUpdateInventoryParams) WithBody

WithBody adds the body to the admin update inventory params

func (*AdminUpdateInventoryParams) WithContext

WithContext adds the context to the admin update inventory params

func (*AdminUpdateInventoryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the admin update inventory params

func (*AdminUpdateInventoryParams) WithInventoryID

func (o *AdminUpdateInventoryParams) WithInventoryID(inventoryID string) *AdminUpdateInventoryParams

WithInventoryID adds the inventoryID to the admin update inventory params

func (*AdminUpdateInventoryParams) WithNamespace

func (o *AdminUpdateInventoryParams) WithNamespace(namespace string) *AdminUpdateInventoryParams

WithNamespace adds the namespace to the admin update inventory params

func (*AdminUpdateInventoryParams) WithTimeout

WithTimeout adds the timeout to the admin update inventory params

func (*AdminUpdateInventoryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdminUpdateInventoryReader

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

AdminUpdateInventoryReader is a Reader for the AdminUpdateInventory structure.

func (*AdminUpdateInventoryReader) ReadResponse

func (o *AdminUpdateInventoryReader) 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 inventories API

func (*Client) AdminCreateInventory deprecated

Deprecated: 2022-08-10 - Use AdminCreateInventoryShort instead.

AdminCreateInventory to create inventory

Creating an inventory. The inventory configuration must exists otherwise it will fail. The max slots and max upgrade slots of an inventory will be initialized according to the inventory configuration it used, but it can be changed later when using AdminUpdateInventory endpoint.

Permission: ADMIN:NAMESPACE:{namespace}:USER:{userId}:INVENTORY [CREATE]

func (*Client) AdminCreateInventoryShort

func (a *Client) AdminCreateInventoryShort(params *AdminCreateInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateInventoryCreated, error)

AdminCreateInventoryShort to create inventory

Creating an inventory. The inventory configuration must exists otherwise it will fail. The max slots and max upgrade slots of an inventory will be initialized according to the inventory configuration it used, but it can be changed later when using AdminUpdateInventory endpoint.

Permission: ADMIN:NAMESPACE:{namespace}:USER:{userId}:INVENTORY [CREATE]

func (*Client) AdminGetInventory deprecated

Deprecated: 2022-08-10 - Use AdminGetInventoryShort instead.

AdminGetInventory to get an inventory

Getting an inventory info.

Permission: ADMIN:NAMESPACE:{namespace}:USER:{userId}:INVENTORY [READ]

func (*Client) AdminGetInventoryShort

func (a *Client) AdminGetInventoryShort(params *AdminGetInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetInventoryOK, error)

AdminGetInventoryShort to get an inventory

Getting an inventory info.

Permission: ADMIN:NAMESPACE:{namespace}:USER:{userId}:INVENTORY [READ]

func (*Client) AdminListInventories deprecated

Deprecated: 2022-08-10 - Use AdminListInventoriesShort instead.

AdminListInventories to list all inventories

Listing all inventories in a namespace. The response body will be in the form of standard pagination.

Permission: ADMIN:NAMESPACE:{namespace}:USER:{userId}:INVENTORY [READ]

func (*Client) AdminListInventoriesShort

func (a *Client) AdminListInventoriesShort(params *AdminListInventoriesParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListInventoriesOK, error)

AdminListInventoriesShort to list all inventories

Listing all inventories in a namespace. The response body will be in the form of standard pagination.

Permission: ADMIN:NAMESPACE:{namespace}:USER:{userId}:INVENTORY [READ]

func (*Client) AdminUpdateInventory deprecated

Deprecated: 2022-08-10 - Use AdminUpdateInventoryShort instead.

AdminUpdateInventory to update inventory

Updating an inventory. MaxSlots will be increased from existing value

Permission: ADMIN:NAMESPACE:{namespace}:USER:{userId}:INVENTORY [UPDATE]

func (*Client) AdminUpdateInventoryShort

func (a *Client) AdminUpdateInventoryShort(params *AdminUpdateInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUpdateInventoryOK, error)

AdminUpdateInventoryShort to update inventory

Updating an inventory. MaxSlots will be increased from existing value

Permission: ADMIN:NAMESPACE:{namespace}:USER:{userId}:INVENTORY [UPDATE]

func (*Client) DeleteInventory deprecated

Deprecated: 2022-08-10 - Use DeleteInventoryShort instead.

DeleteInventory to delete inventory

Deleting an inventory. If an inventory still has items, it cannot be deleted.

ADMIN:NAMESPACE:{namespace}:USER:{userId}:INVENTORY [DELETE]

func (*Client) DeleteInventoryShort

func (a *Client) DeleteInventoryShort(params *DeleteInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteInventoryNoContent, error)

DeleteInventoryShort to delete inventory

Deleting an inventory. If an inventory still has items, it cannot be deleted.

ADMIN:NAMESPACE:{namespace}:USER:{userId}:INVENTORY [DELETE]

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	AdminListInventories(params *AdminListInventoriesParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListInventoriesOK, *AdminListInventoriesBadRequest, *AdminListInventoriesInternalServerError, error)
	AdminListInventoriesShort(params *AdminListInventoriesParams, authInfo runtime.ClientAuthInfoWriter) (*AdminListInventoriesOK, error)
	AdminCreateInventory(params *AdminCreateInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateInventoryCreated, *AdminCreateInventoryBadRequest, *AdminCreateInventoryInternalServerError, error)
	AdminCreateInventoryShort(params *AdminCreateInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*AdminCreateInventoryCreated, error)
	AdminGetInventory(params *AdminGetInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetInventoryOK, *AdminGetInventoryBadRequest, *AdminGetInventoryNotFound, *AdminGetInventoryInternalServerError, error)
	AdminGetInventoryShort(params *AdminGetInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*AdminGetInventoryOK, error)
	AdminUpdateInventory(params *AdminUpdateInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUpdateInventoryOK, *AdminUpdateInventoryBadRequest, *AdminUpdateInventoryNotFound, *AdminUpdateInventoryInternalServerError, error)
	AdminUpdateInventoryShort(params *AdminUpdateInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*AdminUpdateInventoryOK, error)
	DeleteInventory(params *DeleteInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteInventoryNoContent, *DeleteInventoryBadRequest, *DeleteInventoryNotFound, *DeleteInventoryInternalServerError, error)
	DeleteInventoryShort(params *DeleteInventoryParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteInventoryNoContent, 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 inventories API client.

type DeleteInventoryBadRequest

type DeleteInventoryBadRequest struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

DeleteInventoryBadRequest handles this case with default header values.

Bad Request

func NewDeleteInventoryBadRequest

func NewDeleteInventoryBadRequest() *DeleteInventoryBadRequest

NewDeleteInventoryBadRequest creates a DeleteInventoryBadRequest with default headers values

func (*DeleteInventoryBadRequest) Error

func (o *DeleteInventoryBadRequest) Error() string

func (*DeleteInventoryBadRequest) GetPayload

func (*DeleteInventoryBadRequest) ToJSONString

func (o *DeleteInventoryBadRequest) ToJSONString() string

type DeleteInventoryInternalServerError

type DeleteInventoryInternalServerError struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

DeleteInventoryInternalServerError handles this case with default header values.

Internal Server Error

func NewDeleteInventoryInternalServerError

func NewDeleteInventoryInternalServerError() *DeleteInventoryInternalServerError

NewDeleteInventoryInternalServerError creates a DeleteInventoryInternalServerError with default headers values

func (*DeleteInventoryInternalServerError) Error

func (*DeleteInventoryInternalServerError) GetPayload

func (*DeleteInventoryInternalServerError) ToJSONString

func (o *DeleteInventoryInternalServerError) ToJSONString() string

type DeleteInventoryNoContent

type DeleteInventoryNoContent struct {
}

DeleteInventoryNoContent handles this case with default header values.

No Content

func NewDeleteInventoryNoContent

func NewDeleteInventoryNoContent() *DeleteInventoryNoContent

NewDeleteInventoryNoContent creates a DeleteInventoryNoContent with default headers values

func (*DeleteInventoryNoContent) Error

func (o *DeleteInventoryNoContent) Error() string

type DeleteInventoryNotFound

type DeleteInventoryNotFound struct {
	Payload *inventoryclientmodels.ApimodelsErrorResponse
}

DeleteInventoryNotFound handles this case with default header values.

Not Found

func NewDeleteInventoryNotFound

func NewDeleteInventoryNotFound() *DeleteInventoryNotFound

NewDeleteInventoryNotFound creates a DeleteInventoryNotFound with default headers values

func (*DeleteInventoryNotFound) Error

func (o *DeleteInventoryNotFound) Error() string

func (*DeleteInventoryNotFound) GetPayload

func (*DeleteInventoryNotFound) ToJSONString

func (o *DeleteInventoryNotFound) ToJSONString() string

type DeleteInventoryParams

type DeleteInventoryParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Body*/
	Body *inventoryclientmodels.ApimodelsDeleteInventoryReq
	/*InventoryID
	  InventoryID

	*/
	InventoryID string
	/*Namespace
	  Namespace

	*/
	Namespace string

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

DeleteInventoryParams contains all the parameters to send to the API endpoint for the delete inventory operation typically these are written to a http.Request

func NewDeleteInventoryParams

func NewDeleteInventoryParams() *DeleteInventoryParams

NewDeleteInventoryParams creates a new DeleteInventoryParams object with the default values initialized.

func NewDeleteInventoryParamsWithContext

func NewDeleteInventoryParamsWithContext(ctx context.Context) *DeleteInventoryParams

NewDeleteInventoryParamsWithContext creates a new DeleteInventoryParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteInventoryParamsWithHTTPClient

func NewDeleteInventoryParamsWithHTTPClient(client *http.Client) *DeleteInventoryParams

NewDeleteInventoryParamsWithHTTPClient creates a new DeleteInventoryParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteInventoryParamsWithTimeout

func NewDeleteInventoryParamsWithTimeout(timeout time.Duration) *DeleteInventoryParams

NewDeleteInventoryParamsWithTimeout creates a new DeleteInventoryParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteInventoryParams) SetAuthInfoWriter

func (o *DeleteInventoryParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the delete inventory params

func (*DeleteInventoryParams) SetBody

SetBody adds the body to the delete inventory params

func (*DeleteInventoryParams) SetContext

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

SetContext adds the context to the delete inventory params

func (*DeleteInventoryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete inventory params

func (*DeleteInventoryParams) SetHTTPClientTransport

func (o *DeleteInventoryParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the delete inventory params

func (*DeleteInventoryParams) SetInventoryID

func (o *DeleteInventoryParams) SetInventoryID(inventoryID string)

SetInventoryID adds the inventoryId to the delete inventory params

func (*DeleteInventoryParams) SetNamespace

func (o *DeleteInventoryParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the delete inventory params

func (*DeleteInventoryParams) SetTimeout

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

SetTimeout adds the timeout to the delete inventory params

func (*DeleteInventoryParams) WithBody

WithBody adds the body to the delete inventory params

func (*DeleteInventoryParams) WithContext

WithContext adds the context to the delete inventory params

func (*DeleteInventoryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete inventory params

func (*DeleteInventoryParams) WithInventoryID

func (o *DeleteInventoryParams) WithInventoryID(inventoryID string) *DeleteInventoryParams

WithInventoryID adds the inventoryID to the delete inventory params

func (*DeleteInventoryParams) WithNamespace

func (o *DeleteInventoryParams) WithNamespace(namespace string) *DeleteInventoryParams

WithNamespace adds the namespace to the delete inventory params

func (*DeleteInventoryParams) WithTimeout

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

WithTimeout adds the timeout to the delete inventory params

func (*DeleteInventoryParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteInventoryReader

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

DeleteInventoryReader is a Reader for the DeleteInventory structure.

func (*DeleteInventoryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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