Documentation
¶
Index ¶
- type AllColorCollectionsBadRequest
- type AllColorCollectionsNotFound
- type AllColorCollectionsOK
- type AllColorCollectionsParams
- func NewAllColorCollectionsParams() *AllColorCollectionsParams
- func NewAllColorCollectionsParamsWithContext(ctx context.Context) *AllColorCollectionsParams
- func NewAllColorCollectionsParamsWithHTTPClient(client *http.Client) *AllColorCollectionsParams
- func NewAllColorCollectionsParamsWithTimeout(timeout time.Duration) *AllColorCollectionsParams
- func (o *AllColorCollectionsParams) SetContext(ctx context.Context)
- func (o *AllColorCollectionsParams) SetDefaults()
- func (o *AllColorCollectionsParams) SetFields(fields *string)
- func (o *AllColorCollectionsParams) SetHTTPClient(client *http.Client)
- func (o *AllColorCollectionsParams) SetTimeout(timeout time.Duration)
- func (o *AllColorCollectionsParams) WithContext(ctx context.Context) *AllColorCollectionsParams
- func (o *AllColorCollectionsParams) WithDefaults() *AllColorCollectionsParams
- func (o *AllColorCollectionsParams) WithFields(fields *string) *AllColorCollectionsParams
- func (o *AllColorCollectionsParams) WithHTTPClient(client *http.Client) *AllColorCollectionsParams
- func (o *AllColorCollectionsParams) WithTimeout(timeout time.Duration) *AllColorCollectionsParams
- func (o *AllColorCollectionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AllColorCollectionsReader
- type Client
- func (a *Client) AllColorCollections(params *AllColorCollectionsParams, opts ...ClientOption) (*AllColorCollectionsOK, error)
- func (a *Client) ColorCollection(params *ColorCollectionParams, opts ...ClientOption) (*ColorCollectionOK, error)
- func (a *Client) ColorCollectionsCustom(params *ColorCollectionsCustomParams, opts ...ClientOption) (*ColorCollectionsCustomOK, error)
- func (a *Client) ColorCollectionsStandard(params *ColorCollectionsStandardParams, opts ...ClientOption) (*ColorCollectionsStandardOK, error)
- func (a *Client) CreateColorCollection(params *CreateColorCollectionParams, opts ...ClientOption) (*CreateColorCollectionOK, error)
- func (a *Client) DefaultColorCollection(params *DefaultColorCollectionParams, opts ...ClientOption) (*DefaultColorCollectionOK, error)
- func (a *Client) DeleteColorCollection(params *DeleteColorCollectionParams, opts ...ClientOption) (*DeleteColorCollectionOK, *DeleteColorCollectionNoContent, error)
- func (a *Client) SetDefaultColorCollection(params *SetDefaultColorCollectionParams, opts ...ClientOption) (*SetDefaultColorCollectionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateColorCollection(params *UpdateColorCollectionParams, opts ...ClientOption) (*UpdateColorCollectionOK, error)
- type ClientOption
- type ClientService
- type ColorCollectionBadRequest
- type ColorCollectionNotFound
- type ColorCollectionOK
- type ColorCollectionParams
- func NewColorCollectionParams() *ColorCollectionParams
- func NewColorCollectionParamsWithContext(ctx context.Context) *ColorCollectionParams
- func NewColorCollectionParamsWithHTTPClient(client *http.Client) *ColorCollectionParams
- func NewColorCollectionParamsWithTimeout(timeout time.Duration) *ColorCollectionParams
- func (o *ColorCollectionParams) SetCollectionID(collectionID string)
- func (o *ColorCollectionParams) SetContext(ctx context.Context)
- func (o *ColorCollectionParams) SetDefaults()
- func (o *ColorCollectionParams) SetFields(fields *string)
- func (o *ColorCollectionParams) SetHTTPClient(client *http.Client)
- func (o *ColorCollectionParams) SetTimeout(timeout time.Duration)
- func (o *ColorCollectionParams) WithCollectionID(collectionID string) *ColorCollectionParams
- func (o *ColorCollectionParams) WithContext(ctx context.Context) *ColorCollectionParams
- func (o *ColorCollectionParams) WithDefaults() *ColorCollectionParams
- func (o *ColorCollectionParams) WithFields(fields *string) *ColorCollectionParams
- func (o *ColorCollectionParams) WithHTTPClient(client *http.Client) *ColorCollectionParams
- func (o *ColorCollectionParams) WithTimeout(timeout time.Duration) *ColorCollectionParams
- func (o *ColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ColorCollectionReader
- type ColorCollectionsCustomBadRequest
- type ColorCollectionsCustomNotFound
- type ColorCollectionsCustomOK
- type ColorCollectionsCustomParams
- func NewColorCollectionsCustomParams() *ColorCollectionsCustomParams
- func NewColorCollectionsCustomParamsWithContext(ctx context.Context) *ColorCollectionsCustomParams
- func NewColorCollectionsCustomParamsWithHTTPClient(client *http.Client) *ColorCollectionsCustomParams
- func NewColorCollectionsCustomParamsWithTimeout(timeout time.Duration) *ColorCollectionsCustomParams
- func (o *ColorCollectionsCustomParams) SetContext(ctx context.Context)
- func (o *ColorCollectionsCustomParams) SetDefaults()
- func (o *ColorCollectionsCustomParams) SetFields(fields *string)
- func (o *ColorCollectionsCustomParams) SetHTTPClient(client *http.Client)
- func (o *ColorCollectionsCustomParams) SetTimeout(timeout time.Duration)
- func (o *ColorCollectionsCustomParams) WithContext(ctx context.Context) *ColorCollectionsCustomParams
- func (o *ColorCollectionsCustomParams) WithDefaults() *ColorCollectionsCustomParams
- func (o *ColorCollectionsCustomParams) WithFields(fields *string) *ColorCollectionsCustomParams
- func (o *ColorCollectionsCustomParams) WithHTTPClient(client *http.Client) *ColorCollectionsCustomParams
- func (o *ColorCollectionsCustomParams) WithTimeout(timeout time.Duration) *ColorCollectionsCustomParams
- func (o *ColorCollectionsCustomParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ColorCollectionsCustomReader
- type ColorCollectionsStandardBadRequest
- type ColorCollectionsStandardNotFound
- type ColorCollectionsStandardOK
- type ColorCollectionsStandardParams
- func NewColorCollectionsStandardParams() *ColorCollectionsStandardParams
- func NewColorCollectionsStandardParamsWithContext(ctx context.Context) *ColorCollectionsStandardParams
- func NewColorCollectionsStandardParamsWithHTTPClient(client *http.Client) *ColorCollectionsStandardParams
- func NewColorCollectionsStandardParamsWithTimeout(timeout time.Duration) *ColorCollectionsStandardParams
- func (o *ColorCollectionsStandardParams) SetContext(ctx context.Context)
- func (o *ColorCollectionsStandardParams) SetDefaults()
- func (o *ColorCollectionsStandardParams) SetFields(fields *string)
- func (o *ColorCollectionsStandardParams) SetHTTPClient(client *http.Client)
- func (o *ColorCollectionsStandardParams) SetTimeout(timeout time.Duration)
- func (o *ColorCollectionsStandardParams) WithContext(ctx context.Context) *ColorCollectionsStandardParams
- func (o *ColorCollectionsStandardParams) WithDefaults() *ColorCollectionsStandardParams
- func (o *ColorCollectionsStandardParams) WithFields(fields *string) *ColorCollectionsStandardParams
- func (o *ColorCollectionsStandardParams) WithHTTPClient(client *http.Client) *ColorCollectionsStandardParams
- func (o *ColorCollectionsStandardParams) WithTimeout(timeout time.Duration) *ColorCollectionsStandardParams
- func (o *ColorCollectionsStandardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ColorCollectionsStandardReader
- type CreateColorCollectionBadRequest
- type CreateColorCollectionConflict
- type CreateColorCollectionForbidden
- type CreateColorCollectionNotFound
- type CreateColorCollectionOK
- type CreateColorCollectionParams
- func NewCreateColorCollectionParams() *CreateColorCollectionParams
- func NewCreateColorCollectionParamsWithContext(ctx context.Context) *CreateColorCollectionParams
- func NewCreateColorCollectionParamsWithHTTPClient(client *http.Client) *CreateColorCollectionParams
- func NewCreateColorCollectionParamsWithTimeout(timeout time.Duration) *CreateColorCollectionParams
- func (o *CreateColorCollectionParams) SetBody(body *models.ColorCollection)
- func (o *CreateColorCollectionParams) SetContext(ctx context.Context)
- func (o *CreateColorCollectionParams) SetDefaults()
- func (o *CreateColorCollectionParams) SetHTTPClient(client *http.Client)
- func (o *CreateColorCollectionParams) SetTimeout(timeout time.Duration)
- func (o *CreateColorCollectionParams) WithBody(body *models.ColorCollection) *CreateColorCollectionParams
- func (o *CreateColorCollectionParams) WithContext(ctx context.Context) *CreateColorCollectionParams
- func (o *CreateColorCollectionParams) WithDefaults() *CreateColorCollectionParams
- func (o *CreateColorCollectionParams) WithHTTPClient(client *http.Client) *CreateColorCollectionParams
- func (o *CreateColorCollectionParams) WithTimeout(timeout time.Duration) *CreateColorCollectionParams
- func (o *CreateColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateColorCollectionReader
- type CreateColorCollectionTooManyRequests
- type CreateColorCollectionUnprocessableEntity
- type DefaultColorCollectionBadRequest
- type DefaultColorCollectionNotFound
- type DefaultColorCollectionOK
- type DefaultColorCollectionParams
- func NewDefaultColorCollectionParams() *DefaultColorCollectionParams
- func NewDefaultColorCollectionParamsWithContext(ctx context.Context) *DefaultColorCollectionParams
- func NewDefaultColorCollectionParamsWithHTTPClient(client *http.Client) *DefaultColorCollectionParams
- func NewDefaultColorCollectionParamsWithTimeout(timeout time.Duration) *DefaultColorCollectionParams
- func (o *DefaultColorCollectionParams) SetContext(ctx context.Context)
- func (o *DefaultColorCollectionParams) SetDefaults()
- func (o *DefaultColorCollectionParams) SetHTTPClient(client *http.Client)
- func (o *DefaultColorCollectionParams) SetTimeout(timeout time.Duration)
- func (o *DefaultColorCollectionParams) WithContext(ctx context.Context) *DefaultColorCollectionParams
- func (o *DefaultColorCollectionParams) WithDefaults() *DefaultColorCollectionParams
- func (o *DefaultColorCollectionParams) WithHTTPClient(client *http.Client) *DefaultColorCollectionParams
- func (o *DefaultColorCollectionParams) WithTimeout(timeout time.Duration) *DefaultColorCollectionParams
- func (o *DefaultColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DefaultColorCollectionReader
- type DeleteColorCollectionBadRequest
- type DeleteColorCollectionForbidden
- type DeleteColorCollectionNoContent
- type DeleteColorCollectionNotFound
- type DeleteColorCollectionOK
- type DeleteColorCollectionParams
- func NewDeleteColorCollectionParams() *DeleteColorCollectionParams
- func NewDeleteColorCollectionParamsWithContext(ctx context.Context) *DeleteColorCollectionParams
- func NewDeleteColorCollectionParamsWithHTTPClient(client *http.Client) *DeleteColorCollectionParams
- func NewDeleteColorCollectionParamsWithTimeout(timeout time.Duration) *DeleteColorCollectionParams
- func (o *DeleteColorCollectionParams) SetCollectionID(collectionID string)
- func (o *DeleteColorCollectionParams) SetContext(ctx context.Context)
- func (o *DeleteColorCollectionParams) SetDefaults()
- func (o *DeleteColorCollectionParams) SetHTTPClient(client *http.Client)
- func (o *DeleteColorCollectionParams) SetTimeout(timeout time.Duration)
- func (o *DeleteColorCollectionParams) WithCollectionID(collectionID string) *DeleteColorCollectionParams
- func (o *DeleteColorCollectionParams) WithContext(ctx context.Context) *DeleteColorCollectionParams
- func (o *DeleteColorCollectionParams) WithDefaults() *DeleteColorCollectionParams
- func (o *DeleteColorCollectionParams) WithHTTPClient(client *http.Client) *DeleteColorCollectionParams
- func (o *DeleteColorCollectionParams) WithTimeout(timeout time.Duration) *DeleteColorCollectionParams
- func (o *DeleteColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteColorCollectionReader
- type DeleteColorCollectionTooManyRequests
- type SetDefaultColorCollectionBadRequest
- type SetDefaultColorCollectionNotFound
- type SetDefaultColorCollectionOK
- type SetDefaultColorCollectionParams
- func NewSetDefaultColorCollectionParams() *SetDefaultColorCollectionParams
- func NewSetDefaultColorCollectionParamsWithContext(ctx context.Context) *SetDefaultColorCollectionParams
- func NewSetDefaultColorCollectionParamsWithHTTPClient(client *http.Client) *SetDefaultColorCollectionParams
- func NewSetDefaultColorCollectionParamsWithTimeout(timeout time.Duration) *SetDefaultColorCollectionParams
- func (o *SetDefaultColorCollectionParams) SetCollectionID(collectionID string)
- func (o *SetDefaultColorCollectionParams) SetContext(ctx context.Context)
- func (o *SetDefaultColorCollectionParams) SetDefaults()
- func (o *SetDefaultColorCollectionParams) SetHTTPClient(client *http.Client)
- func (o *SetDefaultColorCollectionParams) SetTimeout(timeout time.Duration)
- func (o *SetDefaultColorCollectionParams) WithCollectionID(collectionID string) *SetDefaultColorCollectionParams
- func (o *SetDefaultColorCollectionParams) WithContext(ctx context.Context) *SetDefaultColorCollectionParams
- func (o *SetDefaultColorCollectionParams) WithDefaults() *SetDefaultColorCollectionParams
- func (o *SetDefaultColorCollectionParams) WithHTTPClient(client *http.Client) *SetDefaultColorCollectionParams
- func (o *SetDefaultColorCollectionParams) WithTimeout(timeout time.Duration) *SetDefaultColorCollectionParams
- func (o *SetDefaultColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetDefaultColorCollectionReader
- type SetDefaultColorCollectionTooManyRequests
- type SetDefaultColorCollectionUnprocessableEntity
- type UpdateColorCollectionBadRequest
- type UpdateColorCollectionForbidden
- type UpdateColorCollectionNotFound
- type UpdateColorCollectionOK
- type UpdateColorCollectionParams
- func NewUpdateColorCollectionParams() *UpdateColorCollectionParams
- func NewUpdateColorCollectionParamsWithContext(ctx context.Context) *UpdateColorCollectionParams
- func NewUpdateColorCollectionParamsWithHTTPClient(client *http.Client) *UpdateColorCollectionParams
- func NewUpdateColorCollectionParamsWithTimeout(timeout time.Duration) *UpdateColorCollectionParams
- func (o *UpdateColorCollectionParams) SetBody(body *models.ColorCollection)
- func (o *UpdateColorCollectionParams) SetCollectionID(collectionID string)
- func (o *UpdateColorCollectionParams) SetContext(ctx context.Context)
- func (o *UpdateColorCollectionParams) SetDefaults()
- func (o *UpdateColorCollectionParams) SetHTTPClient(client *http.Client)
- func (o *UpdateColorCollectionParams) SetTimeout(timeout time.Duration)
- func (o *UpdateColorCollectionParams) WithBody(body *models.ColorCollection) *UpdateColorCollectionParams
- func (o *UpdateColorCollectionParams) WithCollectionID(collectionID string) *UpdateColorCollectionParams
- func (o *UpdateColorCollectionParams) WithContext(ctx context.Context) *UpdateColorCollectionParams
- func (o *UpdateColorCollectionParams) WithDefaults() *UpdateColorCollectionParams
- func (o *UpdateColorCollectionParams) WithHTTPClient(client *http.Client) *UpdateColorCollectionParams
- func (o *UpdateColorCollectionParams) WithTimeout(timeout time.Duration) *UpdateColorCollectionParams
- func (o *UpdateColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateColorCollectionReader
- type UpdateColorCollectionTooManyRequests
- type UpdateColorCollectionUnprocessableEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllColorCollectionsBadRequest ¶
AllColorCollectionsBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewAllColorCollectionsBadRequest ¶
func NewAllColorCollectionsBadRequest() *AllColorCollectionsBadRequest
NewAllColorCollectionsBadRequest creates a AllColorCollectionsBadRequest with default headers values
func (*AllColorCollectionsBadRequest) Error ¶
func (o *AllColorCollectionsBadRequest) Error() string
func (*AllColorCollectionsBadRequest) GetPayload ¶
func (o *AllColorCollectionsBadRequest) GetPayload() *models.Error
type AllColorCollectionsNotFound ¶
AllColorCollectionsNotFound describes a response with status code 404, with default header values.
Not Found
func NewAllColorCollectionsNotFound ¶
func NewAllColorCollectionsNotFound() *AllColorCollectionsNotFound
NewAllColorCollectionsNotFound creates a AllColorCollectionsNotFound with default headers values
func (*AllColorCollectionsNotFound) Error ¶
func (o *AllColorCollectionsNotFound) Error() string
func (*AllColorCollectionsNotFound) GetPayload ¶
func (o *AllColorCollectionsNotFound) GetPayload() *models.Error
type AllColorCollectionsOK ¶
type AllColorCollectionsOK struct {
Payload []*models.ColorCollection
}
AllColorCollectionsOK describes a response with status code 200, with default header values.
ColorCollections
func NewAllColorCollectionsOK ¶
func NewAllColorCollectionsOK() *AllColorCollectionsOK
NewAllColorCollectionsOK creates a AllColorCollectionsOK with default headers values
func (*AllColorCollectionsOK) Error ¶
func (o *AllColorCollectionsOK) Error() string
func (*AllColorCollectionsOK) GetPayload ¶
func (o *AllColorCollectionsOK) GetPayload() []*models.ColorCollection
type AllColorCollectionsParams ¶
type AllColorCollectionsParams struct { /* Fields. Requested fields. */ Fields *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AllColorCollectionsParams contains all the parameters to send to the API endpoint
for the all color collections operation. Typically these are written to a http.Request.
func NewAllColorCollectionsParams ¶
func NewAllColorCollectionsParams() *AllColorCollectionsParams
NewAllColorCollectionsParams creates a new AllColorCollectionsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewAllColorCollectionsParamsWithContext ¶
func NewAllColorCollectionsParamsWithContext(ctx context.Context) *AllColorCollectionsParams
NewAllColorCollectionsParamsWithContext creates a new AllColorCollectionsParams object with the ability to set a context for a request.
func NewAllColorCollectionsParamsWithHTTPClient ¶
func NewAllColorCollectionsParamsWithHTTPClient(client *http.Client) *AllColorCollectionsParams
NewAllColorCollectionsParamsWithHTTPClient creates a new AllColorCollectionsParams object with the ability to set a custom HTTPClient for a request.
func NewAllColorCollectionsParamsWithTimeout ¶
func NewAllColorCollectionsParamsWithTimeout(timeout time.Duration) *AllColorCollectionsParams
NewAllColorCollectionsParamsWithTimeout creates a new AllColorCollectionsParams object with the ability to set a timeout on a request.
func (*AllColorCollectionsParams) SetContext ¶
func (o *AllColorCollectionsParams) SetContext(ctx context.Context)
SetContext adds the context to the all color collections params
func (*AllColorCollectionsParams) SetDefaults ¶
func (o *AllColorCollectionsParams) SetDefaults()
SetDefaults hydrates default values in the all color collections params (not the query body).
All values with no default are reset to their zero value.
func (*AllColorCollectionsParams) SetFields ¶
func (o *AllColorCollectionsParams) SetFields(fields *string)
SetFields adds the fields to the all color collections params
func (*AllColorCollectionsParams) SetHTTPClient ¶
func (o *AllColorCollectionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the all color collections params
func (*AllColorCollectionsParams) SetTimeout ¶
func (o *AllColorCollectionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the all color collections params
func (*AllColorCollectionsParams) WithContext ¶
func (o *AllColorCollectionsParams) WithContext(ctx context.Context) *AllColorCollectionsParams
WithContext adds the context to the all color collections params
func (*AllColorCollectionsParams) WithDefaults ¶
func (o *AllColorCollectionsParams) WithDefaults() *AllColorCollectionsParams
WithDefaults hydrates default values in the all color collections params (not the query body).
All values with no default are reset to their zero value.
func (*AllColorCollectionsParams) WithFields ¶
func (o *AllColorCollectionsParams) WithFields(fields *string) *AllColorCollectionsParams
WithFields adds the fields to the all color collections params
func (*AllColorCollectionsParams) WithHTTPClient ¶
func (o *AllColorCollectionsParams) WithHTTPClient(client *http.Client) *AllColorCollectionsParams
WithHTTPClient adds the HTTPClient to the all color collections params
func (*AllColorCollectionsParams) WithTimeout ¶
func (o *AllColorCollectionsParams) WithTimeout(timeout time.Duration) *AllColorCollectionsParams
WithTimeout adds the timeout to the all color collections params
func (*AllColorCollectionsParams) WriteToRequest ¶
func (o *AllColorCollectionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AllColorCollectionsReader ¶
type AllColorCollectionsReader struct {
// contains filtered or unexported fields
}
AllColorCollectionsReader is a Reader for the AllColorCollections structure.
func (*AllColorCollectionsReader) ReadResponse ¶
func (o *AllColorCollectionsReader) 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 color collection API
func (*Client) AllColorCollections ¶
func (a *Client) AllColorCollections(params *AllColorCollectionsParams, opts ...ClientOption) (*AllColorCollectionsOK, error)
AllColorCollections gets all color collections ### Get an array of all existing Color Collections
Get a **single** color collection by id with [ColorCollection](#!/ColorCollection/color_collection)
Get all **standard** color collections with [ColorCollection](#!/ColorCollection/color_collections_standard)
Get all **custom** color collections with [ColorCollection](#!/ColorCollection/color_collections_custom)
**Note**: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
func (*Client) ColorCollection ¶
func (a *Client) ColorCollection(params *ColorCollectionParams, opts ...ClientOption) (*ColorCollectionOK, error)
ColorCollection gets color collection by ID ### Get a Color Collection by ID
Use this to retrieve a specific Color Collection. Get a **single** color collection by id with [ColorCollection](#!/ColorCollection/color_collection)
Get all **standard** color collections with [ColorCollection](#!/ColorCollection/color_collections_standard)
Get all **custom** color collections with [ColorCollection](#!/ColorCollection/color_collections_custom)
**Note**: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
func (*Client) ColorCollectionsCustom ¶
func (a *Client) ColorCollectionsCustom(params *ColorCollectionsCustomParams, opts ...ClientOption) (*ColorCollectionsCustomOK, error)
ColorCollectionsCustom gets all custom color collections ### Get an array of all existing **Custom** Color Collections
Get a **single** color collection by id with [ColorCollection](#!/ColorCollection/color_collection)
Get all **standard** color collections with [ColorCollection](#!/ColorCollection/color_collections_standard)
**Note**: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
func (*Client) ColorCollectionsStandard ¶
func (a *Client) ColorCollectionsStandard(params *ColorCollectionsStandardParams, opts ...ClientOption) (*ColorCollectionsStandardOK, error)
ColorCollectionsStandard gets all standard color collections ### Get an array of all existing **Standard** Color Collections
Get a **single** color collection by id with [ColorCollection](#!/ColorCollection/color_collection)
Get all **custom** color collections with [ColorCollection](#!/ColorCollection/color_collections_custom)
**Note**: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
func (*Client) CreateColorCollection ¶
func (a *Client) CreateColorCollection(params *CreateColorCollectionParams, opts ...ClientOption) (*CreateColorCollectionOK, error)
CreateColorCollection creates color collection ### Create a custom color collection with the specified information
Creates a new custom color collection object, returning the details, including the created id.
**Update** an existing color collection with [Update Color Collection](#!/ColorCollection/update_color_collection)
**Permanently delete** an existing custom color collection with [Delete Color Collection](#!/ColorCollection/delete_color_collection)
**Note**: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
func (*Client) DefaultColorCollection ¶
func (a *Client) DefaultColorCollection(params *DefaultColorCollectionParams, opts ...ClientOption) (*DefaultColorCollectionOK, error)
DefaultColorCollection gets default color collection ### Get the default color collection
Use this to retrieve the default Color Collection.
Set the default color collection with [ColorCollection](#!/ColorCollection/set_default_color_collection)
func (*Client) DeleteColorCollection ¶
func (a *Client) DeleteColorCollection(params *DeleteColorCollectionParams, opts ...ClientOption) (*DeleteColorCollectionOK, *DeleteColorCollectionNoContent, error)
DeleteColorCollection deletes color collection ### Delete a custom color collection by id
This operation permanently deletes the identified **Custom** color collection.
**Standard** color collections cannot be deleted
Because multiple color collections can have the same label, they must be deleted by ID, not name. **Note**: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
func (*Client) SetDefaultColorCollection ¶
func (a *Client) SetDefaultColorCollection(params *SetDefaultColorCollectionParams, opts ...ClientOption) (*SetDefaultColorCollectionOK, error)
SetDefaultColorCollection sets default color collection ### Set the global default Color Collection by ID
Returns the new specified default Color Collection object. **Note**: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateColorCollection ¶
func (a *Client) UpdateColorCollection(params *UpdateColorCollectionParams, opts ...ClientOption) (*UpdateColorCollectionOK, error)
UpdateColorCollection updates custom color collection ### Update a custom color collection by id.
**Note**: Only an API user with the Admin role can call this endpoint. Unauthorized requests will return `Not Found` (404) errors.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { AllColorCollections(params *AllColorCollectionsParams, opts ...ClientOption) (*AllColorCollectionsOK, error) ColorCollection(params *ColorCollectionParams, opts ...ClientOption) (*ColorCollectionOK, error) ColorCollectionsCustom(params *ColorCollectionsCustomParams, opts ...ClientOption) (*ColorCollectionsCustomOK, error) ColorCollectionsStandard(params *ColorCollectionsStandardParams, opts ...ClientOption) (*ColorCollectionsStandardOK, error) CreateColorCollection(params *CreateColorCollectionParams, opts ...ClientOption) (*CreateColorCollectionOK, error) DefaultColorCollection(params *DefaultColorCollectionParams, opts ...ClientOption) (*DefaultColorCollectionOK, error) DeleteColorCollection(params *DeleteColorCollectionParams, opts ...ClientOption) (*DeleteColorCollectionOK, *DeleteColorCollectionNoContent, error) SetDefaultColorCollection(params *SetDefaultColorCollectionParams, opts ...ClientOption) (*SetDefaultColorCollectionOK, error) UpdateColorCollection(params *UpdateColorCollectionParams, opts ...ClientOption) (*UpdateColorCollectionOK, 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 color collection API client.
type ColorCollectionBadRequest ¶
ColorCollectionBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewColorCollectionBadRequest ¶
func NewColorCollectionBadRequest() *ColorCollectionBadRequest
NewColorCollectionBadRequest creates a ColorCollectionBadRequest with default headers values
func (*ColorCollectionBadRequest) Error ¶
func (o *ColorCollectionBadRequest) Error() string
func (*ColorCollectionBadRequest) GetPayload ¶
func (o *ColorCollectionBadRequest) GetPayload() *models.Error
type ColorCollectionNotFound ¶
ColorCollectionNotFound describes a response with status code 404, with default header values.
Not Found
func NewColorCollectionNotFound ¶
func NewColorCollectionNotFound() *ColorCollectionNotFound
NewColorCollectionNotFound creates a ColorCollectionNotFound with default headers values
func (*ColorCollectionNotFound) Error ¶
func (o *ColorCollectionNotFound) Error() string
func (*ColorCollectionNotFound) GetPayload ¶
func (o *ColorCollectionNotFound) GetPayload() *models.Error
type ColorCollectionOK ¶
type ColorCollectionOK struct {
Payload *models.ColorCollection
}
ColorCollectionOK describes a response with status code 200, with default header values.
ColorCollection
func NewColorCollectionOK ¶
func NewColorCollectionOK() *ColorCollectionOK
NewColorCollectionOK creates a ColorCollectionOK with default headers values
func (*ColorCollectionOK) Error ¶
func (o *ColorCollectionOK) Error() string
func (*ColorCollectionOK) GetPayload ¶
func (o *ColorCollectionOK) GetPayload() *models.ColorCollection
type ColorCollectionParams ¶
type ColorCollectionParams struct { /* CollectionID. Id of Color Collection */ CollectionID string /* Fields. Requested fields. */ Fields *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ColorCollectionParams contains all the parameters to send to the API endpoint
for the color collection operation. Typically these are written to a http.Request.
func NewColorCollectionParams ¶
func NewColorCollectionParams() *ColorCollectionParams
NewColorCollectionParams creates a new ColorCollectionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewColorCollectionParamsWithContext ¶
func NewColorCollectionParamsWithContext(ctx context.Context) *ColorCollectionParams
NewColorCollectionParamsWithContext creates a new ColorCollectionParams object with the ability to set a context for a request.
func NewColorCollectionParamsWithHTTPClient ¶
func NewColorCollectionParamsWithHTTPClient(client *http.Client) *ColorCollectionParams
NewColorCollectionParamsWithHTTPClient creates a new ColorCollectionParams object with the ability to set a custom HTTPClient for a request.
func NewColorCollectionParamsWithTimeout ¶
func NewColorCollectionParamsWithTimeout(timeout time.Duration) *ColorCollectionParams
NewColorCollectionParamsWithTimeout creates a new ColorCollectionParams object with the ability to set a timeout on a request.
func (*ColorCollectionParams) SetCollectionID ¶
func (o *ColorCollectionParams) SetCollectionID(collectionID string)
SetCollectionID adds the collectionId to the color collection params
func (*ColorCollectionParams) SetContext ¶
func (o *ColorCollectionParams) SetContext(ctx context.Context)
SetContext adds the context to the color collection params
func (*ColorCollectionParams) SetDefaults ¶
func (o *ColorCollectionParams) SetDefaults()
SetDefaults hydrates default values in the color collection params (not the query body).
All values with no default are reset to their zero value.
func (*ColorCollectionParams) SetFields ¶
func (o *ColorCollectionParams) SetFields(fields *string)
SetFields adds the fields to the color collection params
func (*ColorCollectionParams) SetHTTPClient ¶
func (o *ColorCollectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the color collection params
func (*ColorCollectionParams) SetTimeout ¶
func (o *ColorCollectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the color collection params
func (*ColorCollectionParams) WithCollectionID ¶
func (o *ColorCollectionParams) WithCollectionID(collectionID string) *ColorCollectionParams
WithCollectionID adds the collectionID to the color collection params
func (*ColorCollectionParams) WithContext ¶
func (o *ColorCollectionParams) WithContext(ctx context.Context) *ColorCollectionParams
WithContext adds the context to the color collection params
func (*ColorCollectionParams) WithDefaults ¶
func (o *ColorCollectionParams) WithDefaults() *ColorCollectionParams
WithDefaults hydrates default values in the color collection params (not the query body).
All values with no default are reset to their zero value.
func (*ColorCollectionParams) WithFields ¶
func (o *ColorCollectionParams) WithFields(fields *string) *ColorCollectionParams
WithFields adds the fields to the color collection params
func (*ColorCollectionParams) WithHTTPClient ¶
func (o *ColorCollectionParams) WithHTTPClient(client *http.Client) *ColorCollectionParams
WithHTTPClient adds the HTTPClient to the color collection params
func (*ColorCollectionParams) WithTimeout ¶
func (o *ColorCollectionParams) WithTimeout(timeout time.Duration) *ColorCollectionParams
WithTimeout adds the timeout to the color collection params
func (*ColorCollectionParams) WriteToRequest ¶
func (o *ColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ColorCollectionReader ¶
type ColorCollectionReader struct {
// contains filtered or unexported fields
}
ColorCollectionReader is a Reader for the ColorCollection structure.
func (*ColorCollectionReader) ReadResponse ¶
func (o *ColorCollectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ColorCollectionsCustomBadRequest ¶
ColorCollectionsCustomBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewColorCollectionsCustomBadRequest ¶
func NewColorCollectionsCustomBadRequest() *ColorCollectionsCustomBadRequest
NewColorCollectionsCustomBadRequest creates a ColorCollectionsCustomBadRequest with default headers values
func (*ColorCollectionsCustomBadRequest) Error ¶
func (o *ColorCollectionsCustomBadRequest) Error() string
func (*ColorCollectionsCustomBadRequest) GetPayload ¶
func (o *ColorCollectionsCustomBadRequest) GetPayload() *models.Error
type ColorCollectionsCustomNotFound ¶
ColorCollectionsCustomNotFound describes a response with status code 404, with default header values.
Not Found
func NewColorCollectionsCustomNotFound ¶
func NewColorCollectionsCustomNotFound() *ColorCollectionsCustomNotFound
NewColorCollectionsCustomNotFound creates a ColorCollectionsCustomNotFound with default headers values
func (*ColorCollectionsCustomNotFound) Error ¶
func (o *ColorCollectionsCustomNotFound) Error() string
func (*ColorCollectionsCustomNotFound) GetPayload ¶
func (o *ColorCollectionsCustomNotFound) GetPayload() *models.Error
type ColorCollectionsCustomOK ¶
type ColorCollectionsCustomOK struct {
Payload []*models.ColorCollection
}
ColorCollectionsCustomOK describes a response with status code 200, with default header values.
ColorCollections
func NewColorCollectionsCustomOK ¶
func NewColorCollectionsCustomOK() *ColorCollectionsCustomOK
NewColorCollectionsCustomOK creates a ColorCollectionsCustomOK with default headers values
func (*ColorCollectionsCustomOK) Error ¶
func (o *ColorCollectionsCustomOK) Error() string
func (*ColorCollectionsCustomOK) GetPayload ¶
func (o *ColorCollectionsCustomOK) GetPayload() []*models.ColorCollection
type ColorCollectionsCustomParams ¶
type ColorCollectionsCustomParams struct { /* Fields. Requested fields. */ Fields *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ColorCollectionsCustomParams contains all the parameters to send to the API endpoint
for the color collections custom operation. Typically these are written to a http.Request.
func NewColorCollectionsCustomParams ¶
func NewColorCollectionsCustomParams() *ColorCollectionsCustomParams
NewColorCollectionsCustomParams creates a new ColorCollectionsCustomParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewColorCollectionsCustomParamsWithContext ¶
func NewColorCollectionsCustomParamsWithContext(ctx context.Context) *ColorCollectionsCustomParams
NewColorCollectionsCustomParamsWithContext creates a new ColorCollectionsCustomParams object with the ability to set a context for a request.
func NewColorCollectionsCustomParamsWithHTTPClient ¶
func NewColorCollectionsCustomParamsWithHTTPClient(client *http.Client) *ColorCollectionsCustomParams
NewColorCollectionsCustomParamsWithHTTPClient creates a new ColorCollectionsCustomParams object with the ability to set a custom HTTPClient for a request.
func NewColorCollectionsCustomParamsWithTimeout ¶
func NewColorCollectionsCustomParamsWithTimeout(timeout time.Duration) *ColorCollectionsCustomParams
NewColorCollectionsCustomParamsWithTimeout creates a new ColorCollectionsCustomParams object with the ability to set a timeout on a request.
func (*ColorCollectionsCustomParams) SetContext ¶
func (o *ColorCollectionsCustomParams) SetContext(ctx context.Context)
SetContext adds the context to the color collections custom params
func (*ColorCollectionsCustomParams) SetDefaults ¶
func (o *ColorCollectionsCustomParams) SetDefaults()
SetDefaults hydrates default values in the color collections custom params (not the query body).
All values with no default are reset to their zero value.
func (*ColorCollectionsCustomParams) SetFields ¶
func (o *ColorCollectionsCustomParams) SetFields(fields *string)
SetFields adds the fields to the color collections custom params
func (*ColorCollectionsCustomParams) SetHTTPClient ¶
func (o *ColorCollectionsCustomParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the color collections custom params
func (*ColorCollectionsCustomParams) SetTimeout ¶
func (o *ColorCollectionsCustomParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the color collections custom params
func (*ColorCollectionsCustomParams) WithContext ¶
func (o *ColorCollectionsCustomParams) WithContext(ctx context.Context) *ColorCollectionsCustomParams
WithContext adds the context to the color collections custom params
func (*ColorCollectionsCustomParams) WithDefaults ¶
func (o *ColorCollectionsCustomParams) WithDefaults() *ColorCollectionsCustomParams
WithDefaults hydrates default values in the color collections custom params (not the query body).
All values with no default are reset to their zero value.
func (*ColorCollectionsCustomParams) WithFields ¶
func (o *ColorCollectionsCustomParams) WithFields(fields *string) *ColorCollectionsCustomParams
WithFields adds the fields to the color collections custom params
func (*ColorCollectionsCustomParams) WithHTTPClient ¶
func (o *ColorCollectionsCustomParams) WithHTTPClient(client *http.Client) *ColorCollectionsCustomParams
WithHTTPClient adds the HTTPClient to the color collections custom params
func (*ColorCollectionsCustomParams) WithTimeout ¶
func (o *ColorCollectionsCustomParams) WithTimeout(timeout time.Duration) *ColorCollectionsCustomParams
WithTimeout adds the timeout to the color collections custom params
func (*ColorCollectionsCustomParams) WriteToRequest ¶
func (o *ColorCollectionsCustomParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ColorCollectionsCustomReader ¶
type ColorCollectionsCustomReader struct {
// contains filtered or unexported fields
}
ColorCollectionsCustomReader is a Reader for the ColorCollectionsCustom structure.
func (*ColorCollectionsCustomReader) ReadResponse ¶
func (o *ColorCollectionsCustomReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ColorCollectionsStandardBadRequest ¶
ColorCollectionsStandardBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewColorCollectionsStandardBadRequest ¶
func NewColorCollectionsStandardBadRequest() *ColorCollectionsStandardBadRequest
NewColorCollectionsStandardBadRequest creates a ColorCollectionsStandardBadRequest with default headers values
func (*ColorCollectionsStandardBadRequest) Error ¶
func (o *ColorCollectionsStandardBadRequest) Error() string
func (*ColorCollectionsStandardBadRequest) GetPayload ¶
func (o *ColorCollectionsStandardBadRequest) GetPayload() *models.Error
type ColorCollectionsStandardNotFound ¶
ColorCollectionsStandardNotFound describes a response with status code 404, with default header values.
Not Found
func NewColorCollectionsStandardNotFound ¶
func NewColorCollectionsStandardNotFound() *ColorCollectionsStandardNotFound
NewColorCollectionsStandardNotFound creates a ColorCollectionsStandardNotFound with default headers values
func (*ColorCollectionsStandardNotFound) Error ¶
func (o *ColorCollectionsStandardNotFound) Error() string
func (*ColorCollectionsStandardNotFound) GetPayload ¶
func (o *ColorCollectionsStandardNotFound) GetPayload() *models.Error
type ColorCollectionsStandardOK ¶
type ColorCollectionsStandardOK struct {
Payload []*models.ColorCollection
}
ColorCollectionsStandardOK describes a response with status code 200, with default header values.
ColorCollections
func NewColorCollectionsStandardOK ¶
func NewColorCollectionsStandardOK() *ColorCollectionsStandardOK
NewColorCollectionsStandardOK creates a ColorCollectionsStandardOK with default headers values
func (*ColorCollectionsStandardOK) Error ¶
func (o *ColorCollectionsStandardOK) Error() string
func (*ColorCollectionsStandardOK) GetPayload ¶
func (o *ColorCollectionsStandardOK) GetPayload() []*models.ColorCollection
type ColorCollectionsStandardParams ¶
type ColorCollectionsStandardParams struct { /* Fields. Requested fields. */ Fields *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ColorCollectionsStandardParams contains all the parameters to send to the API endpoint
for the color collections standard operation. Typically these are written to a http.Request.
func NewColorCollectionsStandardParams ¶
func NewColorCollectionsStandardParams() *ColorCollectionsStandardParams
NewColorCollectionsStandardParams creates a new ColorCollectionsStandardParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewColorCollectionsStandardParamsWithContext ¶
func NewColorCollectionsStandardParamsWithContext(ctx context.Context) *ColorCollectionsStandardParams
NewColorCollectionsStandardParamsWithContext creates a new ColorCollectionsStandardParams object with the ability to set a context for a request.
func NewColorCollectionsStandardParamsWithHTTPClient ¶
func NewColorCollectionsStandardParamsWithHTTPClient(client *http.Client) *ColorCollectionsStandardParams
NewColorCollectionsStandardParamsWithHTTPClient creates a new ColorCollectionsStandardParams object with the ability to set a custom HTTPClient for a request.
func NewColorCollectionsStandardParamsWithTimeout ¶
func NewColorCollectionsStandardParamsWithTimeout(timeout time.Duration) *ColorCollectionsStandardParams
NewColorCollectionsStandardParamsWithTimeout creates a new ColorCollectionsStandardParams object with the ability to set a timeout on a request.
func (*ColorCollectionsStandardParams) SetContext ¶
func (o *ColorCollectionsStandardParams) SetContext(ctx context.Context)
SetContext adds the context to the color collections standard params
func (*ColorCollectionsStandardParams) SetDefaults ¶
func (o *ColorCollectionsStandardParams) SetDefaults()
SetDefaults hydrates default values in the color collections standard params (not the query body).
All values with no default are reset to their zero value.
func (*ColorCollectionsStandardParams) SetFields ¶
func (o *ColorCollectionsStandardParams) SetFields(fields *string)
SetFields adds the fields to the color collections standard params
func (*ColorCollectionsStandardParams) SetHTTPClient ¶
func (o *ColorCollectionsStandardParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the color collections standard params
func (*ColorCollectionsStandardParams) SetTimeout ¶
func (o *ColorCollectionsStandardParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the color collections standard params
func (*ColorCollectionsStandardParams) WithContext ¶
func (o *ColorCollectionsStandardParams) WithContext(ctx context.Context) *ColorCollectionsStandardParams
WithContext adds the context to the color collections standard params
func (*ColorCollectionsStandardParams) WithDefaults ¶
func (o *ColorCollectionsStandardParams) WithDefaults() *ColorCollectionsStandardParams
WithDefaults hydrates default values in the color collections standard params (not the query body).
All values with no default are reset to their zero value.
func (*ColorCollectionsStandardParams) WithFields ¶
func (o *ColorCollectionsStandardParams) WithFields(fields *string) *ColorCollectionsStandardParams
WithFields adds the fields to the color collections standard params
func (*ColorCollectionsStandardParams) WithHTTPClient ¶
func (o *ColorCollectionsStandardParams) WithHTTPClient(client *http.Client) *ColorCollectionsStandardParams
WithHTTPClient adds the HTTPClient to the color collections standard params
func (*ColorCollectionsStandardParams) WithTimeout ¶
func (o *ColorCollectionsStandardParams) WithTimeout(timeout time.Duration) *ColorCollectionsStandardParams
WithTimeout adds the timeout to the color collections standard params
func (*ColorCollectionsStandardParams) WriteToRequest ¶
func (o *ColorCollectionsStandardParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ColorCollectionsStandardReader ¶
type ColorCollectionsStandardReader struct {
// contains filtered or unexported fields
}
ColorCollectionsStandardReader is a Reader for the ColorCollectionsStandard structure.
func (*ColorCollectionsStandardReader) ReadResponse ¶
func (o *ColorCollectionsStandardReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateColorCollectionBadRequest ¶
CreateColorCollectionBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewCreateColorCollectionBadRequest ¶
func NewCreateColorCollectionBadRequest() *CreateColorCollectionBadRequest
NewCreateColorCollectionBadRequest creates a CreateColorCollectionBadRequest with default headers values
func (*CreateColorCollectionBadRequest) Error ¶
func (o *CreateColorCollectionBadRequest) Error() string
func (*CreateColorCollectionBadRequest) GetPayload ¶
func (o *CreateColorCollectionBadRequest) GetPayload() *models.Error
type CreateColorCollectionConflict ¶
CreateColorCollectionConflict describes a response with status code 409, with default header values.
Resource Already Exists
func NewCreateColorCollectionConflict ¶
func NewCreateColorCollectionConflict() *CreateColorCollectionConflict
NewCreateColorCollectionConflict creates a CreateColorCollectionConflict with default headers values
func (*CreateColorCollectionConflict) Error ¶
func (o *CreateColorCollectionConflict) Error() string
func (*CreateColorCollectionConflict) GetPayload ¶
func (o *CreateColorCollectionConflict) GetPayload() *models.Error
type CreateColorCollectionForbidden ¶
CreateColorCollectionForbidden describes a response with status code 403, with default header values.
Permission Denied
func NewCreateColorCollectionForbidden ¶
func NewCreateColorCollectionForbidden() *CreateColorCollectionForbidden
NewCreateColorCollectionForbidden creates a CreateColorCollectionForbidden with default headers values
func (*CreateColorCollectionForbidden) Error ¶
func (o *CreateColorCollectionForbidden) Error() string
func (*CreateColorCollectionForbidden) GetPayload ¶
func (o *CreateColorCollectionForbidden) GetPayload() *models.Error
type CreateColorCollectionNotFound ¶
CreateColorCollectionNotFound describes a response with status code 404, with default header values.
Not Found
func NewCreateColorCollectionNotFound ¶
func NewCreateColorCollectionNotFound() *CreateColorCollectionNotFound
NewCreateColorCollectionNotFound creates a CreateColorCollectionNotFound with default headers values
func (*CreateColorCollectionNotFound) Error ¶
func (o *CreateColorCollectionNotFound) Error() string
func (*CreateColorCollectionNotFound) GetPayload ¶
func (o *CreateColorCollectionNotFound) GetPayload() *models.Error
type CreateColorCollectionOK ¶
type CreateColorCollectionOK struct {
Payload *models.ColorCollection
}
CreateColorCollectionOK describes a response with status code 200, with default header values.
ColorCollection
func NewCreateColorCollectionOK ¶
func NewCreateColorCollectionOK() *CreateColorCollectionOK
NewCreateColorCollectionOK creates a CreateColorCollectionOK with default headers values
func (*CreateColorCollectionOK) Error ¶
func (o *CreateColorCollectionOK) Error() string
func (*CreateColorCollectionOK) GetPayload ¶
func (o *CreateColorCollectionOK) GetPayload() *models.ColorCollection
type CreateColorCollectionParams ¶
type CreateColorCollectionParams struct { /* Body. ColorCollection */ Body *models.ColorCollection Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateColorCollectionParams contains all the parameters to send to the API endpoint
for the create color collection operation. Typically these are written to a http.Request.
func NewCreateColorCollectionParams ¶
func NewCreateColorCollectionParams() *CreateColorCollectionParams
NewCreateColorCollectionParams creates a new CreateColorCollectionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateColorCollectionParamsWithContext ¶
func NewCreateColorCollectionParamsWithContext(ctx context.Context) *CreateColorCollectionParams
NewCreateColorCollectionParamsWithContext creates a new CreateColorCollectionParams object with the ability to set a context for a request.
func NewCreateColorCollectionParamsWithHTTPClient ¶
func NewCreateColorCollectionParamsWithHTTPClient(client *http.Client) *CreateColorCollectionParams
NewCreateColorCollectionParamsWithHTTPClient creates a new CreateColorCollectionParams object with the ability to set a custom HTTPClient for a request.
func NewCreateColorCollectionParamsWithTimeout ¶
func NewCreateColorCollectionParamsWithTimeout(timeout time.Duration) *CreateColorCollectionParams
NewCreateColorCollectionParamsWithTimeout creates a new CreateColorCollectionParams object with the ability to set a timeout on a request.
func (*CreateColorCollectionParams) SetBody ¶
func (o *CreateColorCollectionParams) SetBody(body *models.ColorCollection)
SetBody adds the body to the create color collection params
func (*CreateColorCollectionParams) SetContext ¶
func (o *CreateColorCollectionParams) SetContext(ctx context.Context)
SetContext adds the context to the create color collection params
func (*CreateColorCollectionParams) SetDefaults ¶
func (o *CreateColorCollectionParams) SetDefaults()
SetDefaults hydrates default values in the create color collection params (not the query body).
All values with no default are reset to their zero value.
func (*CreateColorCollectionParams) SetHTTPClient ¶
func (o *CreateColorCollectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create color collection params
func (*CreateColorCollectionParams) SetTimeout ¶
func (o *CreateColorCollectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create color collection params
func (*CreateColorCollectionParams) WithBody ¶
func (o *CreateColorCollectionParams) WithBody(body *models.ColorCollection) *CreateColorCollectionParams
WithBody adds the body to the create color collection params
func (*CreateColorCollectionParams) WithContext ¶
func (o *CreateColorCollectionParams) WithContext(ctx context.Context) *CreateColorCollectionParams
WithContext adds the context to the create color collection params
func (*CreateColorCollectionParams) WithDefaults ¶
func (o *CreateColorCollectionParams) WithDefaults() *CreateColorCollectionParams
WithDefaults hydrates default values in the create color collection params (not the query body).
All values with no default are reset to their zero value.
func (*CreateColorCollectionParams) WithHTTPClient ¶
func (o *CreateColorCollectionParams) WithHTTPClient(client *http.Client) *CreateColorCollectionParams
WithHTTPClient adds the HTTPClient to the create color collection params
func (*CreateColorCollectionParams) WithTimeout ¶
func (o *CreateColorCollectionParams) WithTimeout(timeout time.Duration) *CreateColorCollectionParams
WithTimeout adds the timeout to the create color collection params
func (*CreateColorCollectionParams) WriteToRequest ¶
func (o *CreateColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateColorCollectionReader ¶
type CreateColorCollectionReader struct {
// contains filtered or unexported fields
}
CreateColorCollectionReader is a Reader for the CreateColorCollection structure.
func (*CreateColorCollectionReader) ReadResponse ¶
func (o *CreateColorCollectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateColorCollectionTooManyRequests ¶
CreateColorCollectionTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewCreateColorCollectionTooManyRequests ¶
func NewCreateColorCollectionTooManyRequests() *CreateColorCollectionTooManyRequests
NewCreateColorCollectionTooManyRequests creates a CreateColorCollectionTooManyRequests with default headers values
func (*CreateColorCollectionTooManyRequests) Error ¶
func (o *CreateColorCollectionTooManyRequests) Error() string
func (*CreateColorCollectionTooManyRequests) GetPayload ¶
func (o *CreateColorCollectionTooManyRequests) GetPayload() *models.Error
type CreateColorCollectionUnprocessableEntity ¶
type CreateColorCollectionUnprocessableEntity struct {
Payload *models.ValidationError
}
CreateColorCollectionUnprocessableEntity describes a response with status code 422, with default header values.
Validation Error
func NewCreateColorCollectionUnprocessableEntity ¶
func NewCreateColorCollectionUnprocessableEntity() *CreateColorCollectionUnprocessableEntity
NewCreateColorCollectionUnprocessableEntity creates a CreateColorCollectionUnprocessableEntity with default headers values
func (*CreateColorCollectionUnprocessableEntity) Error ¶
func (o *CreateColorCollectionUnprocessableEntity) Error() string
func (*CreateColorCollectionUnprocessableEntity) GetPayload ¶
func (o *CreateColorCollectionUnprocessableEntity) GetPayload() *models.ValidationError
type DefaultColorCollectionBadRequest ¶
DefaultColorCollectionBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDefaultColorCollectionBadRequest ¶
func NewDefaultColorCollectionBadRequest() *DefaultColorCollectionBadRequest
NewDefaultColorCollectionBadRequest creates a DefaultColorCollectionBadRequest with default headers values
func (*DefaultColorCollectionBadRequest) Error ¶
func (o *DefaultColorCollectionBadRequest) Error() string
func (*DefaultColorCollectionBadRequest) GetPayload ¶
func (o *DefaultColorCollectionBadRequest) GetPayload() *models.Error
type DefaultColorCollectionNotFound ¶
DefaultColorCollectionNotFound describes a response with status code 404, with default header values.
Not Found
func NewDefaultColorCollectionNotFound ¶
func NewDefaultColorCollectionNotFound() *DefaultColorCollectionNotFound
NewDefaultColorCollectionNotFound creates a DefaultColorCollectionNotFound with default headers values
func (*DefaultColorCollectionNotFound) Error ¶
func (o *DefaultColorCollectionNotFound) Error() string
func (*DefaultColorCollectionNotFound) GetPayload ¶
func (o *DefaultColorCollectionNotFound) GetPayload() *models.Error
type DefaultColorCollectionOK ¶
type DefaultColorCollectionOK struct {
Payload *models.ColorCollection
}
DefaultColorCollectionOK describes a response with status code 200, with default header values.
ColorCollection
func NewDefaultColorCollectionOK ¶
func NewDefaultColorCollectionOK() *DefaultColorCollectionOK
NewDefaultColorCollectionOK creates a DefaultColorCollectionOK with default headers values
func (*DefaultColorCollectionOK) Error ¶
func (o *DefaultColorCollectionOK) Error() string
func (*DefaultColorCollectionOK) GetPayload ¶
func (o *DefaultColorCollectionOK) GetPayload() *models.ColorCollection
type DefaultColorCollectionParams ¶
type DefaultColorCollectionParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DefaultColorCollectionParams contains all the parameters to send to the API endpoint
for the default color collection operation. Typically these are written to a http.Request.
func NewDefaultColorCollectionParams ¶
func NewDefaultColorCollectionParams() *DefaultColorCollectionParams
NewDefaultColorCollectionParams creates a new DefaultColorCollectionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDefaultColorCollectionParamsWithContext ¶
func NewDefaultColorCollectionParamsWithContext(ctx context.Context) *DefaultColorCollectionParams
NewDefaultColorCollectionParamsWithContext creates a new DefaultColorCollectionParams object with the ability to set a context for a request.
func NewDefaultColorCollectionParamsWithHTTPClient ¶
func NewDefaultColorCollectionParamsWithHTTPClient(client *http.Client) *DefaultColorCollectionParams
NewDefaultColorCollectionParamsWithHTTPClient creates a new DefaultColorCollectionParams object with the ability to set a custom HTTPClient for a request.
func NewDefaultColorCollectionParamsWithTimeout ¶
func NewDefaultColorCollectionParamsWithTimeout(timeout time.Duration) *DefaultColorCollectionParams
NewDefaultColorCollectionParamsWithTimeout creates a new DefaultColorCollectionParams object with the ability to set a timeout on a request.
func (*DefaultColorCollectionParams) SetContext ¶
func (o *DefaultColorCollectionParams) SetContext(ctx context.Context)
SetContext adds the context to the default color collection params
func (*DefaultColorCollectionParams) SetDefaults ¶
func (o *DefaultColorCollectionParams) SetDefaults()
SetDefaults hydrates default values in the default color collection params (not the query body).
All values with no default are reset to their zero value.
func (*DefaultColorCollectionParams) SetHTTPClient ¶
func (o *DefaultColorCollectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the default color collection params
func (*DefaultColorCollectionParams) SetTimeout ¶
func (o *DefaultColorCollectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the default color collection params
func (*DefaultColorCollectionParams) WithContext ¶
func (o *DefaultColorCollectionParams) WithContext(ctx context.Context) *DefaultColorCollectionParams
WithContext adds the context to the default color collection params
func (*DefaultColorCollectionParams) WithDefaults ¶
func (o *DefaultColorCollectionParams) WithDefaults() *DefaultColorCollectionParams
WithDefaults hydrates default values in the default color collection params (not the query body).
All values with no default are reset to their zero value.
func (*DefaultColorCollectionParams) WithHTTPClient ¶
func (o *DefaultColorCollectionParams) WithHTTPClient(client *http.Client) *DefaultColorCollectionParams
WithHTTPClient adds the HTTPClient to the default color collection params
func (*DefaultColorCollectionParams) WithTimeout ¶
func (o *DefaultColorCollectionParams) WithTimeout(timeout time.Duration) *DefaultColorCollectionParams
WithTimeout adds the timeout to the default color collection params
func (*DefaultColorCollectionParams) WriteToRequest ¶
func (o *DefaultColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DefaultColorCollectionReader ¶
type DefaultColorCollectionReader struct {
// contains filtered or unexported fields
}
DefaultColorCollectionReader is a Reader for the DefaultColorCollection structure.
func (*DefaultColorCollectionReader) ReadResponse ¶
func (o *DefaultColorCollectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteColorCollectionBadRequest ¶
DeleteColorCollectionBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDeleteColorCollectionBadRequest ¶
func NewDeleteColorCollectionBadRequest() *DeleteColorCollectionBadRequest
NewDeleteColorCollectionBadRequest creates a DeleteColorCollectionBadRequest with default headers values
func (*DeleteColorCollectionBadRequest) Error ¶
func (o *DeleteColorCollectionBadRequest) Error() string
func (*DeleteColorCollectionBadRequest) GetPayload ¶
func (o *DeleteColorCollectionBadRequest) GetPayload() *models.Error
type DeleteColorCollectionForbidden ¶
DeleteColorCollectionForbidden describes a response with status code 403, with default header values.
Permission Denied
func NewDeleteColorCollectionForbidden ¶
func NewDeleteColorCollectionForbidden() *DeleteColorCollectionForbidden
NewDeleteColorCollectionForbidden creates a DeleteColorCollectionForbidden with default headers values
func (*DeleteColorCollectionForbidden) Error ¶
func (o *DeleteColorCollectionForbidden) Error() string
func (*DeleteColorCollectionForbidden) GetPayload ¶
func (o *DeleteColorCollectionForbidden) GetPayload() *models.Error
type DeleteColorCollectionNoContent ¶
type DeleteColorCollectionNoContent struct {
Payload string
}
DeleteColorCollectionNoContent describes a response with status code 204, with default header values.
Successfully deleted.
func NewDeleteColorCollectionNoContent ¶
func NewDeleteColorCollectionNoContent() *DeleteColorCollectionNoContent
NewDeleteColorCollectionNoContent creates a DeleteColorCollectionNoContent with default headers values
func (*DeleteColorCollectionNoContent) Error ¶
func (o *DeleteColorCollectionNoContent) Error() string
func (*DeleteColorCollectionNoContent) GetPayload ¶
func (o *DeleteColorCollectionNoContent) GetPayload() string
type DeleteColorCollectionNotFound ¶
DeleteColorCollectionNotFound describes a response with status code 404, with default header values.
Not Found
func NewDeleteColorCollectionNotFound ¶
func NewDeleteColorCollectionNotFound() *DeleteColorCollectionNotFound
NewDeleteColorCollectionNotFound creates a DeleteColorCollectionNotFound with default headers values
func (*DeleteColorCollectionNotFound) Error ¶
func (o *DeleteColorCollectionNotFound) Error() string
func (*DeleteColorCollectionNotFound) GetPayload ¶
func (o *DeleteColorCollectionNotFound) GetPayload() *models.Error
type DeleteColorCollectionOK ¶
type DeleteColorCollectionOK struct { }
DeleteColorCollectionOK describes a response with status code 200, with default header values.
Success
func NewDeleteColorCollectionOK ¶
func NewDeleteColorCollectionOK() *DeleteColorCollectionOK
NewDeleteColorCollectionOK creates a DeleteColorCollectionOK with default headers values
func (*DeleteColorCollectionOK) Error ¶
func (o *DeleteColorCollectionOK) Error() string
type DeleteColorCollectionParams ¶
type DeleteColorCollectionParams struct { /* CollectionID. Id of Color Collection */ CollectionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteColorCollectionParams contains all the parameters to send to the API endpoint
for the delete color collection operation. Typically these are written to a http.Request.
func NewDeleteColorCollectionParams ¶
func NewDeleteColorCollectionParams() *DeleteColorCollectionParams
NewDeleteColorCollectionParams creates a new DeleteColorCollectionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteColorCollectionParamsWithContext ¶
func NewDeleteColorCollectionParamsWithContext(ctx context.Context) *DeleteColorCollectionParams
NewDeleteColorCollectionParamsWithContext creates a new DeleteColorCollectionParams object with the ability to set a context for a request.
func NewDeleteColorCollectionParamsWithHTTPClient ¶
func NewDeleteColorCollectionParamsWithHTTPClient(client *http.Client) *DeleteColorCollectionParams
NewDeleteColorCollectionParamsWithHTTPClient creates a new DeleteColorCollectionParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteColorCollectionParamsWithTimeout ¶
func NewDeleteColorCollectionParamsWithTimeout(timeout time.Duration) *DeleteColorCollectionParams
NewDeleteColorCollectionParamsWithTimeout creates a new DeleteColorCollectionParams object with the ability to set a timeout on a request.
func (*DeleteColorCollectionParams) SetCollectionID ¶
func (o *DeleteColorCollectionParams) SetCollectionID(collectionID string)
SetCollectionID adds the collectionId to the delete color collection params
func (*DeleteColorCollectionParams) SetContext ¶
func (o *DeleteColorCollectionParams) SetContext(ctx context.Context)
SetContext adds the context to the delete color collection params
func (*DeleteColorCollectionParams) SetDefaults ¶
func (o *DeleteColorCollectionParams) SetDefaults()
SetDefaults hydrates default values in the delete color collection params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteColorCollectionParams) SetHTTPClient ¶
func (o *DeleteColorCollectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete color collection params
func (*DeleteColorCollectionParams) SetTimeout ¶
func (o *DeleteColorCollectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete color collection params
func (*DeleteColorCollectionParams) WithCollectionID ¶
func (o *DeleteColorCollectionParams) WithCollectionID(collectionID string) *DeleteColorCollectionParams
WithCollectionID adds the collectionID to the delete color collection params
func (*DeleteColorCollectionParams) WithContext ¶
func (o *DeleteColorCollectionParams) WithContext(ctx context.Context) *DeleteColorCollectionParams
WithContext adds the context to the delete color collection params
func (*DeleteColorCollectionParams) WithDefaults ¶
func (o *DeleteColorCollectionParams) WithDefaults() *DeleteColorCollectionParams
WithDefaults hydrates default values in the delete color collection params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteColorCollectionParams) WithHTTPClient ¶
func (o *DeleteColorCollectionParams) WithHTTPClient(client *http.Client) *DeleteColorCollectionParams
WithHTTPClient adds the HTTPClient to the delete color collection params
func (*DeleteColorCollectionParams) WithTimeout ¶
func (o *DeleteColorCollectionParams) WithTimeout(timeout time.Duration) *DeleteColorCollectionParams
WithTimeout adds the timeout to the delete color collection params
func (*DeleteColorCollectionParams) WriteToRequest ¶
func (o *DeleteColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteColorCollectionReader ¶
type DeleteColorCollectionReader struct {
// contains filtered or unexported fields
}
DeleteColorCollectionReader is a Reader for the DeleteColorCollection structure.
func (*DeleteColorCollectionReader) ReadResponse ¶
func (o *DeleteColorCollectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteColorCollectionTooManyRequests ¶
DeleteColorCollectionTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewDeleteColorCollectionTooManyRequests ¶
func NewDeleteColorCollectionTooManyRequests() *DeleteColorCollectionTooManyRequests
NewDeleteColorCollectionTooManyRequests creates a DeleteColorCollectionTooManyRequests with default headers values
func (*DeleteColorCollectionTooManyRequests) Error ¶
func (o *DeleteColorCollectionTooManyRequests) Error() string
func (*DeleteColorCollectionTooManyRequests) GetPayload ¶
func (o *DeleteColorCollectionTooManyRequests) GetPayload() *models.Error
type SetDefaultColorCollectionBadRequest ¶
SetDefaultColorCollectionBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewSetDefaultColorCollectionBadRequest ¶
func NewSetDefaultColorCollectionBadRequest() *SetDefaultColorCollectionBadRequest
NewSetDefaultColorCollectionBadRequest creates a SetDefaultColorCollectionBadRequest with default headers values
func (*SetDefaultColorCollectionBadRequest) Error ¶
func (o *SetDefaultColorCollectionBadRequest) Error() string
func (*SetDefaultColorCollectionBadRequest) GetPayload ¶
func (o *SetDefaultColorCollectionBadRequest) GetPayload() *models.Error
type SetDefaultColorCollectionNotFound ¶
SetDefaultColorCollectionNotFound describes a response with status code 404, with default header values.
Not Found
func NewSetDefaultColorCollectionNotFound ¶
func NewSetDefaultColorCollectionNotFound() *SetDefaultColorCollectionNotFound
NewSetDefaultColorCollectionNotFound creates a SetDefaultColorCollectionNotFound with default headers values
func (*SetDefaultColorCollectionNotFound) Error ¶
func (o *SetDefaultColorCollectionNotFound) Error() string
func (*SetDefaultColorCollectionNotFound) GetPayload ¶
func (o *SetDefaultColorCollectionNotFound) GetPayload() *models.Error
type SetDefaultColorCollectionOK ¶
type SetDefaultColorCollectionOK struct {
Payload *models.ColorCollection
}
SetDefaultColorCollectionOK describes a response with status code 200, with default header values.
ColorCollection
func NewSetDefaultColorCollectionOK ¶
func NewSetDefaultColorCollectionOK() *SetDefaultColorCollectionOK
NewSetDefaultColorCollectionOK creates a SetDefaultColorCollectionOK with default headers values
func (*SetDefaultColorCollectionOK) Error ¶
func (o *SetDefaultColorCollectionOK) Error() string
func (*SetDefaultColorCollectionOK) GetPayload ¶
func (o *SetDefaultColorCollectionOK) GetPayload() *models.ColorCollection
type SetDefaultColorCollectionParams ¶
type SetDefaultColorCollectionParams struct { /* CollectionID. ID of color collection to set as default */ CollectionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetDefaultColorCollectionParams contains all the parameters to send to the API endpoint
for the set default color collection operation. Typically these are written to a http.Request.
func NewSetDefaultColorCollectionParams ¶
func NewSetDefaultColorCollectionParams() *SetDefaultColorCollectionParams
NewSetDefaultColorCollectionParams creates a new SetDefaultColorCollectionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSetDefaultColorCollectionParamsWithContext ¶
func NewSetDefaultColorCollectionParamsWithContext(ctx context.Context) *SetDefaultColorCollectionParams
NewSetDefaultColorCollectionParamsWithContext creates a new SetDefaultColorCollectionParams object with the ability to set a context for a request.
func NewSetDefaultColorCollectionParamsWithHTTPClient ¶
func NewSetDefaultColorCollectionParamsWithHTTPClient(client *http.Client) *SetDefaultColorCollectionParams
NewSetDefaultColorCollectionParamsWithHTTPClient creates a new SetDefaultColorCollectionParams object with the ability to set a custom HTTPClient for a request.
func NewSetDefaultColorCollectionParamsWithTimeout ¶
func NewSetDefaultColorCollectionParamsWithTimeout(timeout time.Duration) *SetDefaultColorCollectionParams
NewSetDefaultColorCollectionParamsWithTimeout creates a new SetDefaultColorCollectionParams object with the ability to set a timeout on a request.
func (*SetDefaultColorCollectionParams) SetCollectionID ¶
func (o *SetDefaultColorCollectionParams) SetCollectionID(collectionID string)
SetCollectionID adds the collectionId to the set default color collection params
func (*SetDefaultColorCollectionParams) SetContext ¶
func (o *SetDefaultColorCollectionParams) SetContext(ctx context.Context)
SetContext adds the context to the set default color collection params
func (*SetDefaultColorCollectionParams) SetDefaults ¶
func (o *SetDefaultColorCollectionParams) SetDefaults()
SetDefaults hydrates default values in the set default color collection params (not the query body).
All values with no default are reset to their zero value.
func (*SetDefaultColorCollectionParams) SetHTTPClient ¶
func (o *SetDefaultColorCollectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set default color collection params
func (*SetDefaultColorCollectionParams) SetTimeout ¶
func (o *SetDefaultColorCollectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set default color collection params
func (*SetDefaultColorCollectionParams) WithCollectionID ¶
func (o *SetDefaultColorCollectionParams) WithCollectionID(collectionID string) *SetDefaultColorCollectionParams
WithCollectionID adds the collectionID to the set default color collection params
func (*SetDefaultColorCollectionParams) WithContext ¶
func (o *SetDefaultColorCollectionParams) WithContext(ctx context.Context) *SetDefaultColorCollectionParams
WithContext adds the context to the set default color collection params
func (*SetDefaultColorCollectionParams) WithDefaults ¶
func (o *SetDefaultColorCollectionParams) WithDefaults() *SetDefaultColorCollectionParams
WithDefaults hydrates default values in the set default color collection params (not the query body).
All values with no default are reset to their zero value.
func (*SetDefaultColorCollectionParams) WithHTTPClient ¶
func (o *SetDefaultColorCollectionParams) WithHTTPClient(client *http.Client) *SetDefaultColorCollectionParams
WithHTTPClient adds the HTTPClient to the set default color collection params
func (*SetDefaultColorCollectionParams) WithTimeout ¶
func (o *SetDefaultColorCollectionParams) WithTimeout(timeout time.Duration) *SetDefaultColorCollectionParams
WithTimeout adds the timeout to the set default color collection params
func (*SetDefaultColorCollectionParams) WriteToRequest ¶
func (o *SetDefaultColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetDefaultColorCollectionReader ¶
type SetDefaultColorCollectionReader struct {
// contains filtered or unexported fields
}
SetDefaultColorCollectionReader is a Reader for the SetDefaultColorCollection structure.
func (*SetDefaultColorCollectionReader) ReadResponse ¶
func (o *SetDefaultColorCollectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetDefaultColorCollectionTooManyRequests ¶
SetDefaultColorCollectionTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewSetDefaultColorCollectionTooManyRequests ¶
func NewSetDefaultColorCollectionTooManyRequests() *SetDefaultColorCollectionTooManyRequests
NewSetDefaultColorCollectionTooManyRequests creates a SetDefaultColorCollectionTooManyRequests with default headers values
func (*SetDefaultColorCollectionTooManyRequests) Error ¶
func (o *SetDefaultColorCollectionTooManyRequests) Error() string
func (*SetDefaultColorCollectionTooManyRequests) GetPayload ¶
func (o *SetDefaultColorCollectionTooManyRequests) GetPayload() *models.Error
type SetDefaultColorCollectionUnprocessableEntity ¶
type SetDefaultColorCollectionUnprocessableEntity struct {
Payload *models.ValidationError
}
SetDefaultColorCollectionUnprocessableEntity describes a response with status code 422, with default header values.
Validation Error
func NewSetDefaultColorCollectionUnprocessableEntity ¶
func NewSetDefaultColorCollectionUnprocessableEntity() *SetDefaultColorCollectionUnprocessableEntity
NewSetDefaultColorCollectionUnprocessableEntity creates a SetDefaultColorCollectionUnprocessableEntity with default headers values
func (*SetDefaultColorCollectionUnprocessableEntity) Error ¶
func (o *SetDefaultColorCollectionUnprocessableEntity) Error() string
func (*SetDefaultColorCollectionUnprocessableEntity) GetPayload ¶
func (o *SetDefaultColorCollectionUnprocessableEntity) GetPayload() *models.ValidationError
type UpdateColorCollectionBadRequest ¶
UpdateColorCollectionBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewUpdateColorCollectionBadRequest ¶
func NewUpdateColorCollectionBadRequest() *UpdateColorCollectionBadRequest
NewUpdateColorCollectionBadRequest creates a UpdateColorCollectionBadRequest with default headers values
func (*UpdateColorCollectionBadRequest) Error ¶
func (o *UpdateColorCollectionBadRequest) Error() string
func (*UpdateColorCollectionBadRequest) GetPayload ¶
func (o *UpdateColorCollectionBadRequest) GetPayload() *models.Error
type UpdateColorCollectionForbidden ¶
UpdateColorCollectionForbidden describes a response with status code 403, with default header values.
Permission Denied
func NewUpdateColorCollectionForbidden ¶
func NewUpdateColorCollectionForbidden() *UpdateColorCollectionForbidden
NewUpdateColorCollectionForbidden creates a UpdateColorCollectionForbidden with default headers values
func (*UpdateColorCollectionForbidden) Error ¶
func (o *UpdateColorCollectionForbidden) Error() string
func (*UpdateColorCollectionForbidden) GetPayload ¶
func (o *UpdateColorCollectionForbidden) GetPayload() *models.Error
type UpdateColorCollectionNotFound ¶
UpdateColorCollectionNotFound describes a response with status code 404, with default header values.
Not Found
func NewUpdateColorCollectionNotFound ¶
func NewUpdateColorCollectionNotFound() *UpdateColorCollectionNotFound
NewUpdateColorCollectionNotFound creates a UpdateColorCollectionNotFound with default headers values
func (*UpdateColorCollectionNotFound) Error ¶
func (o *UpdateColorCollectionNotFound) Error() string
func (*UpdateColorCollectionNotFound) GetPayload ¶
func (o *UpdateColorCollectionNotFound) GetPayload() *models.Error
type UpdateColorCollectionOK ¶
type UpdateColorCollectionOK struct {
Payload *models.ColorCollection
}
UpdateColorCollectionOK describes a response with status code 200, with default header values.
ColorCollection
func NewUpdateColorCollectionOK ¶
func NewUpdateColorCollectionOK() *UpdateColorCollectionOK
NewUpdateColorCollectionOK creates a UpdateColorCollectionOK with default headers values
func (*UpdateColorCollectionOK) Error ¶
func (o *UpdateColorCollectionOK) Error() string
func (*UpdateColorCollectionOK) GetPayload ¶
func (o *UpdateColorCollectionOK) GetPayload() *models.ColorCollection
type UpdateColorCollectionParams ¶
type UpdateColorCollectionParams struct { /* Body. ColorCollection */ Body *models.ColorCollection /* CollectionID. Id of Custom Color Collection */ CollectionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateColorCollectionParams contains all the parameters to send to the API endpoint
for the update color collection operation. Typically these are written to a http.Request.
func NewUpdateColorCollectionParams ¶
func NewUpdateColorCollectionParams() *UpdateColorCollectionParams
NewUpdateColorCollectionParams creates a new UpdateColorCollectionParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateColorCollectionParamsWithContext ¶
func NewUpdateColorCollectionParamsWithContext(ctx context.Context) *UpdateColorCollectionParams
NewUpdateColorCollectionParamsWithContext creates a new UpdateColorCollectionParams object with the ability to set a context for a request.
func NewUpdateColorCollectionParamsWithHTTPClient ¶
func NewUpdateColorCollectionParamsWithHTTPClient(client *http.Client) *UpdateColorCollectionParams
NewUpdateColorCollectionParamsWithHTTPClient creates a new UpdateColorCollectionParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateColorCollectionParamsWithTimeout ¶
func NewUpdateColorCollectionParamsWithTimeout(timeout time.Duration) *UpdateColorCollectionParams
NewUpdateColorCollectionParamsWithTimeout creates a new UpdateColorCollectionParams object with the ability to set a timeout on a request.
func (*UpdateColorCollectionParams) SetBody ¶
func (o *UpdateColorCollectionParams) SetBody(body *models.ColorCollection)
SetBody adds the body to the update color collection params
func (*UpdateColorCollectionParams) SetCollectionID ¶
func (o *UpdateColorCollectionParams) SetCollectionID(collectionID string)
SetCollectionID adds the collectionId to the update color collection params
func (*UpdateColorCollectionParams) SetContext ¶
func (o *UpdateColorCollectionParams) SetContext(ctx context.Context)
SetContext adds the context to the update color collection params
func (*UpdateColorCollectionParams) SetDefaults ¶
func (o *UpdateColorCollectionParams) SetDefaults()
SetDefaults hydrates default values in the update color collection params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateColorCollectionParams) SetHTTPClient ¶
func (o *UpdateColorCollectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update color collection params
func (*UpdateColorCollectionParams) SetTimeout ¶
func (o *UpdateColorCollectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update color collection params
func (*UpdateColorCollectionParams) WithBody ¶
func (o *UpdateColorCollectionParams) WithBody(body *models.ColorCollection) *UpdateColorCollectionParams
WithBody adds the body to the update color collection params
func (*UpdateColorCollectionParams) WithCollectionID ¶
func (o *UpdateColorCollectionParams) WithCollectionID(collectionID string) *UpdateColorCollectionParams
WithCollectionID adds the collectionID to the update color collection params
func (*UpdateColorCollectionParams) WithContext ¶
func (o *UpdateColorCollectionParams) WithContext(ctx context.Context) *UpdateColorCollectionParams
WithContext adds the context to the update color collection params
func (*UpdateColorCollectionParams) WithDefaults ¶
func (o *UpdateColorCollectionParams) WithDefaults() *UpdateColorCollectionParams
WithDefaults hydrates default values in the update color collection params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateColorCollectionParams) WithHTTPClient ¶
func (o *UpdateColorCollectionParams) WithHTTPClient(client *http.Client) *UpdateColorCollectionParams
WithHTTPClient adds the HTTPClient to the update color collection params
func (*UpdateColorCollectionParams) WithTimeout ¶
func (o *UpdateColorCollectionParams) WithTimeout(timeout time.Duration) *UpdateColorCollectionParams
WithTimeout adds the timeout to the update color collection params
func (*UpdateColorCollectionParams) WriteToRequest ¶
func (o *UpdateColorCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateColorCollectionReader ¶
type UpdateColorCollectionReader struct {
// contains filtered or unexported fields
}
UpdateColorCollectionReader is a Reader for the UpdateColorCollection structure.
func (*UpdateColorCollectionReader) ReadResponse ¶
func (o *UpdateColorCollectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateColorCollectionTooManyRequests ¶
UpdateColorCollectionTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewUpdateColorCollectionTooManyRequests ¶
func NewUpdateColorCollectionTooManyRequests() *UpdateColorCollectionTooManyRequests
NewUpdateColorCollectionTooManyRequests creates a UpdateColorCollectionTooManyRequests with default headers values
func (*UpdateColorCollectionTooManyRequests) Error ¶
func (o *UpdateColorCollectionTooManyRequests) Error() string
func (*UpdateColorCollectionTooManyRequests) GetPayload ¶
func (o *UpdateColorCollectionTooManyRequests) GetPayload() *models.Error
type UpdateColorCollectionUnprocessableEntity ¶
type UpdateColorCollectionUnprocessableEntity struct {
Payload *models.ValidationError
}
UpdateColorCollectionUnprocessableEntity describes a response with status code 422, with default header values.
Validation Error
func NewUpdateColorCollectionUnprocessableEntity ¶
func NewUpdateColorCollectionUnprocessableEntity() *UpdateColorCollectionUnprocessableEntity
NewUpdateColorCollectionUnprocessableEntity creates a UpdateColorCollectionUnprocessableEntity with default headers values
func (*UpdateColorCollectionUnprocessableEntity) Error ¶
func (o *UpdateColorCollectionUnprocessableEntity) Error() string
func (*UpdateColorCollectionUnprocessableEntity) GetPayload ¶
func (o *UpdateColorCollectionUnprocessableEntity) GetPayload() *models.ValidationError
Source Files
¶
- all_color_collections_parameters.go
- all_color_collections_responses.go
- color_collection_client.go
- color_collection_parameters.go
- color_collection_responses.go
- color_collections_custom_parameters.go
- color_collections_custom_responses.go
- color_collections_standard_parameters.go
- color_collections_standard_responses.go
- create_color_collection_parameters.go
- create_color_collection_responses.go
- default_color_collection_parameters.go
- default_color_collection_responses.go
- delete_color_collection_parameters.go
- delete_color_collection_responses.go
- set_default_color_collection_parameters.go
- set_default_color_collection_responses.go
- update_color_collection_parameters.go
- update_color_collection_responses.go