collection

package
v1.0.0-pre.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for collection API

func (*Client) CreateCollection

func (a *Client) CreateCollection(params *CreateCollectionParams, opts ...ClientOption) (*CreateCollectionOK, error)

CreateCollection create collection API

func (*Client) DeleteCollection

func (a *Client) DeleteCollection(params *DeleteCollectionParams, opts ...ClientOption) (*DeleteCollectionOK, error)

DeleteCollection delete collection API

func (*Client) ListCollections

func (a *Client) ListCollections(params *ListCollectionsParams, opts ...ClientOption) (*ListCollectionsOK, error)

ListCollections list collections API

func (*Client) ReadCollection

func (a *Client) ReadCollection(params *ReadCollectionParams, opts ...ClientOption) (*ReadCollectionOK, error)

ReadCollection read collection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateCollection

func (a *Client) UpdateCollection(params *UpdateCollectionParams, opts ...ClientOption) (*UpdateCollectionOK, error)

UpdateCollection update collection API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateCollection(params *CreateCollectionParams, opts ...ClientOption) (*CreateCollectionOK, error)

	DeleteCollection(params *DeleteCollectionParams, opts ...ClientOption) (*DeleteCollectionOK, error)

	ListCollections(params *ListCollectionsParams, opts ...ClientOption) (*ListCollectionsOK, error)

	ReadCollection(params *ReadCollectionParams, opts ...ClientOption) (*ReadCollectionOK, error)

	UpdateCollection(params *UpdateCollectionParams, opts ...ClientOption) (*UpdateCollectionOK, 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 collection API client.

type CreateCollectionBadRequest

type CreateCollectionBadRequest struct {
	Payload *models.APIError
}

CreateCollectionBadRequest describes a response with status code 400, with default header values.

Cannot create the Collection because the request is invalid.

func NewCreateCollectionBadRequest

func NewCreateCollectionBadRequest() *CreateCollectionBadRequest

NewCreateCollectionBadRequest creates a CreateCollectionBadRequest with default headers values

func (*CreateCollectionBadRequest) Code

func (o *CreateCollectionBadRequest) Code() int

Code gets the status code for the create collection bad request response

func (*CreateCollectionBadRequest) Error

func (*CreateCollectionBadRequest) GetPayload

func (o *CreateCollectionBadRequest) GetPayload() *models.APIError

func (*CreateCollectionBadRequest) IsClientError

func (o *CreateCollectionBadRequest) IsClientError() bool

IsClientError returns true when this create collection bad request response has a 4xx status code

func (*CreateCollectionBadRequest) IsCode

func (o *CreateCollectionBadRequest) IsCode(code int) bool

IsCode returns true when this create collection bad request response a status code equal to that given

func (*CreateCollectionBadRequest) IsRedirect

func (o *CreateCollectionBadRequest) IsRedirect() bool

IsRedirect returns true when this create collection bad request response has a 3xx status code

func (*CreateCollectionBadRequest) IsServerError

func (o *CreateCollectionBadRequest) IsServerError() bool

IsServerError returns true when this create collection bad request response has a 5xx status code

func (*CreateCollectionBadRequest) IsSuccess

func (o *CreateCollectionBadRequest) IsSuccess() bool

IsSuccess returns true when this create collection bad request response has a 2xx status code

func (*CreateCollectionBadRequest) String

func (o *CreateCollectionBadRequest) String() string

type CreateCollectionConflict

type CreateCollectionConflict struct {
	Payload *models.APIError
}

CreateCollectionConflict describes a response with status code 409, with default header values.

Cannot create the Collection because there is a conflict with an existing Collection.

func NewCreateCollectionConflict

func NewCreateCollectionConflict() *CreateCollectionConflict

NewCreateCollectionConflict creates a CreateCollectionConflict with default headers values

func (*CreateCollectionConflict) Code

func (o *CreateCollectionConflict) Code() int

Code gets the status code for the create collection conflict response

func (*CreateCollectionConflict) Error

func (o *CreateCollectionConflict) Error() string

func (*CreateCollectionConflict) GetPayload

func (o *CreateCollectionConflict) GetPayload() *models.APIError

func (*CreateCollectionConflict) IsClientError

func (o *CreateCollectionConflict) IsClientError() bool

IsClientError returns true when this create collection conflict response has a 4xx status code

func (*CreateCollectionConflict) IsCode

func (o *CreateCollectionConflict) IsCode(code int) bool

IsCode returns true when this create collection conflict response a status code equal to that given

func (*CreateCollectionConflict) IsRedirect

func (o *CreateCollectionConflict) IsRedirect() bool

IsRedirect returns true when this create collection conflict response has a 3xx status code

func (*CreateCollectionConflict) IsServerError

func (o *CreateCollectionConflict) IsServerError() bool

IsServerError returns true when this create collection conflict response has a 5xx status code

func (*CreateCollectionConflict) IsSuccess

func (o *CreateCollectionConflict) IsSuccess() bool

IsSuccess returns true when this create collection conflict response has a 2xx status code

func (*CreateCollectionConflict) String

func (o *CreateCollectionConflict) String() string

type CreateCollectionDefault

type CreateCollectionDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

CreateCollectionDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewCreateCollectionDefault

func NewCreateCollectionDefault(code int) *CreateCollectionDefault

NewCreateCollectionDefault creates a CreateCollectionDefault with default headers values

func (*CreateCollectionDefault) Code

func (o *CreateCollectionDefault) Code() int

Code gets the status code for the create collection default response

func (*CreateCollectionDefault) Error

func (o *CreateCollectionDefault) Error() string

func (*CreateCollectionDefault) GetPayload

func (*CreateCollectionDefault) IsClientError

func (o *CreateCollectionDefault) IsClientError() bool

IsClientError returns true when this create collection default response has a 4xx status code

func (*CreateCollectionDefault) IsCode

func (o *CreateCollectionDefault) IsCode(code int) bool

IsCode returns true when this create collection default response a status code equal to that given

func (*CreateCollectionDefault) IsRedirect

func (o *CreateCollectionDefault) IsRedirect() bool

IsRedirect returns true when this create collection default response has a 3xx status code

func (*CreateCollectionDefault) IsServerError

func (o *CreateCollectionDefault) IsServerError() bool

IsServerError returns true when this create collection default response has a 5xx status code

func (*CreateCollectionDefault) IsSuccess

func (o *CreateCollectionDefault) IsSuccess() bool

IsSuccess returns true when this create collection default response has a 2xx status code

func (*CreateCollectionDefault) String

func (o *CreateCollectionDefault) String() string

type CreateCollectionInternalServerError

type CreateCollectionInternalServerError struct {
	Payload *models.APIError
}

CreateCollectionInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewCreateCollectionInternalServerError

func NewCreateCollectionInternalServerError() *CreateCollectionInternalServerError

NewCreateCollectionInternalServerError creates a CreateCollectionInternalServerError with default headers values

func (*CreateCollectionInternalServerError) Code

Code gets the status code for the create collection internal server error response

func (*CreateCollectionInternalServerError) Error

func (*CreateCollectionInternalServerError) GetPayload

func (*CreateCollectionInternalServerError) IsClientError

func (o *CreateCollectionInternalServerError) IsClientError() bool

IsClientError returns true when this create collection internal server error response has a 4xx status code

func (*CreateCollectionInternalServerError) IsCode

IsCode returns true when this create collection internal server error response a status code equal to that given

func (*CreateCollectionInternalServerError) IsRedirect

func (o *CreateCollectionInternalServerError) IsRedirect() bool

IsRedirect returns true when this create collection internal server error response has a 3xx status code

func (*CreateCollectionInternalServerError) IsServerError

func (o *CreateCollectionInternalServerError) IsServerError() bool

IsServerError returns true when this create collection internal server error response has a 5xx status code

func (*CreateCollectionInternalServerError) IsSuccess

IsSuccess returns true when this create collection internal server error response has a 2xx status code

func (*CreateCollectionInternalServerError) String

type CreateCollectionOK

type CreateCollectionOK struct {
	Payload *models.Configv1CreateCollectionResponse
}

CreateCollectionOK describes a response with status code 200, with default header values.

A successful response containing the created Collection.

func NewCreateCollectionOK

func NewCreateCollectionOK() *CreateCollectionOK

NewCreateCollectionOK creates a CreateCollectionOK with default headers values

func (*CreateCollectionOK) Code

func (o *CreateCollectionOK) Code() int

Code gets the status code for the create collection o k response

func (*CreateCollectionOK) Error

func (o *CreateCollectionOK) Error() string

func (*CreateCollectionOK) GetPayload

func (*CreateCollectionOK) IsClientError

func (o *CreateCollectionOK) IsClientError() bool

IsClientError returns true when this create collection o k response has a 4xx status code

func (*CreateCollectionOK) IsCode

func (o *CreateCollectionOK) IsCode(code int) bool

IsCode returns true when this create collection o k response a status code equal to that given

func (*CreateCollectionOK) IsRedirect

func (o *CreateCollectionOK) IsRedirect() bool

IsRedirect returns true when this create collection o k response has a 3xx status code

func (*CreateCollectionOK) IsServerError

func (o *CreateCollectionOK) IsServerError() bool

IsServerError returns true when this create collection o k response has a 5xx status code

func (*CreateCollectionOK) IsSuccess

func (o *CreateCollectionOK) IsSuccess() bool

IsSuccess returns true when this create collection o k response has a 2xx status code

func (*CreateCollectionOK) String

func (o *CreateCollectionOK) String() string

type CreateCollectionParams

type CreateCollectionParams struct {

	// Body.
	Body *models.Configv1CreateCollectionRequest

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

CreateCollectionParams contains all the parameters to send to the API endpoint

for the create collection operation.

Typically these are written to a http.Request.

func NewCreateCollectionParams

func NewCreateCollectionParams() *CreateCollectionParams

NewCreateCollectionParams creates a new CreateCollectionParams 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 NewCreateCollectionParamsWithContext

func NewCreateCollectionParamsWithContext(ctx context.Context) *CreateCollectionParams

NewCreateCollectionParamsWithContext creates a new CreateCollectionParams object with the ability to set a context for a request.

func NewCreateCollectionParamsWithHTTPClient

func NewCreateCollectionParamsWithHTTPClient(client *http.Client) *CreateCollectionParams

NewCreateCollectionParamsWithHTTPClient creates a new CreateCollectionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateCollectionParamsWithTimeout

func NewCreateCollectionParamsWithTimeout(timeout time.Duration) *CreateCollectionParams

NewCreateCollectionParamsWithTimeout creates a new CreateCollectionParams object with the ability to set a timeout on a request.

func (*CreateCollectionParams) SetBody

SetBody adds the body to the create collection params

func (*CreateCollectionParams) SetContext

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

SetContext adds the context to the create collection params

func (*CreateCollectionParams) SetDefaults

func (o *CreateCollectionParams) SetDefaults()

SetDefaults hydrates default values in the create collection params (not the query body).

All values with no default are reset to their zero value.

func (*CreateCollectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create collection params

func (*CreateCollectionParams) SetTimeout

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

SetTimeout adds the timeout to the create collection params

func (*CreateCollectionParams) WithBody

WithBody adds the body to the create collection params

func (*CreateCollectionParams) WithContext

WithContext adds the context to the create collection params

func (*CreateCollectionParams) WithDefaults

WithDefaults hydrates default values in the create collection params (not the query body).

All values with no default are reset to their zero value.

func (*CreateCollectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create collection params

func (*CreateCollectionParams) WithTimeout

WithTimeout adds the timeout to the create collection params

func (*CreateCollectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateCollectionReader

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

CreateCollectionReader is a Reader for the CreateCollection structure.

func (*CreateCollectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteCollectionBadRequest

type DeleteCollectionBadRequest struct {
	Payload *models.APIError
}

DeleteCollectionBadRequest describes a response with status code 400, with default header values.

Cannot delete the Collection because it is in use.

func NewDeleteCollectionBadRequest

func NewDeleteCollectionBadRequest() *DeleteCollectionBadRequest

NewDeleteCollectionBadRequest creates a DeleteCollectionBadRequest with default headers values

func (*DeleteCollectionBadRequest) Code

func (o *DeleteCollectionBadRequest) Code() int

Code gets the status code for the delete collection bad request response

func (*DeleteCollectionBadRequest) Error

func (*DeleteCollectionBadRequest) GetPayload

func (o *DeleteCollectionBadRequest) GetPayload() *models.APIError

func (*DeleteCollectionBadRequest) IsClientError

func (o *DeleteCollectionBadRequest) IsClientError() bool

IsClientError returns true when this delete collection bad request response has a 4xx status code

func (*DeleteCollectionBadRequest) IsCode

func (o *DeleteCollectionBadRequest) IsCode(code int) bool

IsCode returns true when this delete collection bad request response a status code equal to that given

func (*DeleteCollectionBadRequest) IsRedirect

func (o *DeleteCollectionBadRequest) IsRedirect() bool

IsRedirect returns true when this delete collection bad request response has a 3xx status code

func (*DeleteCollectionBadRequest) IsServerError

func (o *DeleteCollectionBadRequest) IsServerError() bool

IsServerError returns true when this delete collection bad request response has a 5xx status code

func (*DeleteCollectionBadRequest) IsSuccess

func (o *DeleteCollectionBadRequest) IsSuccess() bool

IsSuccess returns true when this delete collection bad request response has a 2xx status code

func (*DeleteCollectionBadRequest) String

func (o *DeleteCollectionBadRequest) String() string

type DeleteCollectionDefault

type DeleteCollectionDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

DeleteCollectionDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewDeleteCollectionDefault

func NewDeleteCollectionDefault(code int) *DeleteCollectionDefault

NewDeleteCollectionDefault creates a DeleteCollectionDefault with default headers values

func (*DeleteCollectionDefault) Code

func (o *DeleteCollectionDefault) Code() int

Code gets the status code for the delete collection default response

func (*DeleteCollectionDefault) Error

func (o *DeleteCollectionDefault) Error() string

func (*DeleteCollectionDefault) GetPayload

func (*DeleteCollectionDefault) IsClientError

func (o *DeleteCollectionDefault) IsClientError() bool

IsClientError returns true when this delete collection default response has a 4xx status code

func (*DeleteCollectionDefault) IsCode

func (o *DeleteCollectionDefault) IsCode(code int) bool

IsCode returns true when this delete collection default response a status code equal to that given

func (*DeleteCollectionDefault) IsRedirect

func (o *DeleteCollectionDefault) IsRedirect() bool

IsRedirect returns true when this delete collection default response has a 3xx status code

func (*DeleteCollectionDefault) IsServerError

func (o *DeleteCollectionDefault) IsServerError() bool

IsServerError returns true when this delete collection default response has a 5xx status code

func (*DeleteCollectionDefault) IsSuccess

func (o *DeleteCollectionDefault) IsSuccess() bool

IsSuccess returns true when this delete collection default response has a 2xx status code

func (*DeleteCollectionDefault) String

func (o *DeleteCollectionDefault) String() string

type DeleteCollectionInternalServerError

type DeleteCollectionInternalServerError struct {
	Payload *models.APIError
}

DeleteCollectionInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewDeleteCollectionInternalServerError

func NewDeleteCollectionInternalServerError() *DeleteCollectionInternalServerError

NewDeleteCollectionInternalServerError creates a DeleteCollectionInternalServerError with default headers values

func (*DeleteCollectionInternalServerError) Code

Code gets the status code for the delete collection internal server error response

func (*DeleteCollectionInternalServerError) Error

func (*DeleteCollectionInternalServerError) GetPayload

func (*DeleteCollectionInternalServerError) IsClientError

func (o *DeleteCollectionInternalServerError) IsClientError() bool

IsClientError returns true when this delete collection internal server error response has a 4xx status code

func (*DeleteCollectionInternalServerError) IsCode

IsCode returns true when this delete collection internal server error response a status code equal to that given

func (*DeleteCollectionInternalServerError) IsRedirect

func (o *DeleteCollectionInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete collection internal server error response has a 3xx status code

func (*DeleteCollectionInternalServerError) IsServerError

func (o *DeleteCollectionInternalServerError) IsServerError() bool

IsServerError returns true when this delete collection internal server error response has a 5xx status code

func (*DeleteCollectionInternalServerError) IsSuccess

IsSuccess returns true when this delete collection internal server error response has a 2xx status code

func (*DeleteCollectionInternalServerError) String

type DeleteCollectionNotFound

type DeleteCollectionNotFound struct {
	Payload *models.APIError
}

DeleteCollectionNotFound describes a response with status code 404, with default header values.

Cannot delete the Collection because the slug does not exist.

func NewDeleteCollectionNotFound

func NewDeleteCollectionNotFound() *DeleteCollectionNotFound

NewDeleteCollectionNotFound creates a DeleteCollectionNotFound with default headers values

func (*DeleteCollectionNotFound) Code

func (o *DeleteCollectionNotFound) Code() int

Code gets the status code for the delete collection not found response

func (*DeleteCollectionNotFound) Error

func (o *DeleteCollectionNotFound) Error() string

func (*DeleteCollectionNotFound) GetPayload

func (o *DeleteCollectionNotFound) GetPayload() *models.APIError

func (*DeleteCollectionNotFound) IsClientError

func (o *DeleteCollectionNotFound) IsClientError() bool

IsClientError returns true when this delete collection not found response has a 4xx status code

func (*DeleteCollectionNotFound) IsCode

func (o *DeleteCollectionNotFound) IsCode(code int) bool

IsCode returns true when this delete collection not found response a status code equal to that given

func (*DeleteCollectionNotFound) IsRedirect

func (o *DeleteCollectionNotFound) IsRedirect() bool

IsRedirect returns true when this delete collection not found response has a 3xx status code

func (*DeleteCollectionNotFound) IsServerError

func (o *DeleteCollectionNotFound) IsServerError() bool

IsServerError returns true when this delete collection not found response has a 5xx status code

func (*DeleteCollectionNotFound) IsSuccess

func (o *DeleteCollectionNotFound) IsSuccess() bool

IsSuccess returns true when this delete collection not found response has a 2xx status code

func (*DeleteCollectionNotFound) String

func (o *DeleteCollectionNotFound) String() string

type DeleteCollectionOK

type DeleteCollectionOK struct {
	Payload models.Configv1DeleteCollectionResponse
}

DeleteCollectionOK describes a response with status code 200, with default header values.

A successful response.

func NewDeleteCollectionOK

func NewDeleteCollectionOK() *DeleteCollectionOK

NewDeleteCollectionOK creates a DeleteCollectionOK with default headers values

func (*DeleteCollectionOK) Code

func (o *DeleteCollectionOK) Code() int

Code gets the status code for the delete collection o k response

func (*DeleteCollectionOK) Error

func (o *DeleteCollectionOK) Error() string

func (*DeleteCollectionOK) GetPayload

func (*DeleteCollectionOK) IsClientError

func (o *DeleteCollectionOK) IsClientError() bool

IsClientError returns true when this delete collection o k response has a 4xx status code

func (*DeleteCollectionOK) IsCode

func (o *DeleteCollectionOK) IsCode(code int) bool

IsCode returns true when this delete collection o k response a status code equal to that given

func (*DeleteCollectionOK) IsRedirect

func (o *DeleteCollectionOK) IsRedirect() bool

IsRedirect returns true when this delete collection o k response has a 3xx status code

func (*DeleteCollectionOK) IsServerError

func (o *DeleteCollectionOK) IsServerError() bool

IsServerError returns true when this delete collection o k response has a 5xx status code

func (*DeleteCollectionOK) IsSuccess

func (o *DeleteCollectionOK) IsSuccess() bool

IsSuccess returns true when this delete collection o k response has a 2xx status code

func (*DeleteCollectionOK) String

func (o *DeleteCollectionOK) String() string

type DeleteCollectionParams

type DeleteCollectionParams struct {

	// Slug.
	Slug string

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

DeleteCollectionParams contains all the parameters to send to the API endpoint

for the delete collection operation.

Typically these are written to a http.Request.

func NewDeleteCollectionParams

func NewDeleteCollectionParams() *DeleteCollectionParams

NewDeleteCollectionParams creates a new DeleteCollectionParams 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 NewDeleteCollectionParamsWithContext

func NewDeleteCollectionParamsWithContext(ctx context.Context) *DeleteCollectionParams

NewDeleteCollectionParamsWithContext creates a new DeleteCollectionParams object with the ability to set a context for a request.

func NewDeleteCollectionParamsWithHTTPClient

func NewDeleteCollectionParamsWithHTTPClient(client *http.Client) *DeleteCollectionParams

NewDeleteCollectionParamsWithHTTPClient creates a new DeleteCollectionParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteCollectionParamsWithTimeout

func NewDeleteCollectionParamsWithTimeout(timeout time.Duration) *DeleteCollectionParams

NewDeleteCollectionParamsWithTimeout creates a new DeleteCollectionParams object with the ability to set a timeout on a request.

func (*DeleteCollectionParams) SetContext

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

SetContext adds the context to the delete collection params

func (*DeleteCollectionParams) SetDefaults

func (o *DeleteCollectionParams) SetDefaults()

SetDefaults hydrates default values in the delete collection params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteCollectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete collection params

func (*DeleteCollectionParams) SetSlug

func (o *DeleteCollectionParams) SetSlug(slug string)

SetSlug adds the slug to the delete collection params

func (*DeleteCollectionParams) SetTimeout

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

SetTimeout adds the timeout to the delete collection params

func (*DeleteCollectionParams) WithContext

WithContext adds the context to the delete collection params

func (*DeleteCollectionParams) WithDefaults

WithDefaults hydrates default values in the delete collection params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteCollectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete collection params

func (*DeleteCollectionParams) WithSlug

WithSlug adds the slug to the delete collection params

func (*DeleteCollectionParams) WithTimeout

WithTimeout adds the timeout to the delete collection params

func (*DeleteCollectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteCollectionReader

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

DeleteCollectionReader is a Reader for the DeleteCollection structure.

func (*DeleteCollectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListCollectionsDefault

type ListCollectionsDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ListCollectionsDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewListCollectionsDefault

func NewListCollectionsDefault(code int) *ListCollectionsDefault

NewListCollectionsDefault creates a ListCollectionsDefault with default headers values

func (*ListCollectionsDefault) Code

func (o *ListCollectionsDefault) Code() int

Code gets the status code for the list collections default response

func (*ListCollectionsDefault) Error

func (o *ListCollectionsDefault) Error() string

func (*ListCollectionsDefault) GetPayload

func (o *ListCollectionsDefault) GetPayload() models.GenericError

func (*ListCollectionsDefault) IsClientError

func (o *ListCollectionsDefault) IsClientError() bool

IsClientError returns true when this list collections default response has a 4xx status code

func (*ListCollectionsDefault) IsCode

func (o *ListCollectionsDefault) IsCode(code int) bool

IsCode returns true when this list collections default response a status code equal to that given

func (*ListCollectionsDefault) IsRedirect

func (o *ListCollectionsDefault) IsRedirect() bool

IsRedirect returns true when this list collections default response has a 3xx status code

func (*ListCollectionsDefault) IsServerError

func (o *ListCollectionsDefault) IsServerError() bool

IsServerError returns true when this list collections default response has a 5xx status code

func (*ListCollectionsDefault) IsSuccess

func (o *ListCollectionsDefault) IsSuccess() bool

IsSuccess returns true when this list collections default response has a 2xx status code

func (*ListCollectionsDefault) String

func (o *ListCollectionsDefault) String() string

type ListCollectionsInternalServerError

type ListCollectionsInternalServerError struct {
	Payload *models.APIError
}

ListCollectionsInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewListCollectionsInternalServerError

func NewListCollectionsInternalServerError() *ListCollectionsInternalServerError

NewListCollectionsInternalServerError creates a ListCollectionsInternalServerError with default headers values

func (*ListCollectionsInternalServerError) Code

Code gets the status code for the list collections internal server error response

func (*ListCollectionsInternalServerError) Error

func (*ListCollectionsInternalServerError) GetPayload

func (*ListCollectionsInternalServerError) IsClientError

func (o *ListCollectionsInternalServerError) IsClientError() bool

IsClientError returns true when this list collections internal server error response has a 4xx status code

func (*ListCollectionsInternalServerError) IsCode

IsCode returns true when this list collections internal server error response a status code equal to that given

func (*ListCollectionsInternalServerError) IsRedirect

func (o *ListCollectionsInternalServerError) IsRedirect() bool

IsRedirect returns true when this list collections internal server error response has a 3xx status code

func (*ListCollectionsInternalServerError) IsServerError

func (o *ListCollectionsInternalServerError) IsServerError() bool

IsServerError returns true when this list collections internal server error response has a 5xx status code

func (*ListCollectionsInternalServerError) IsSuccess

IsSuccess returns true when this list collections internal server error response has a 2xx status code

func (*ListCollectionsInternalServerError) String

type ListCollectionsOK

type ListCollectionsOK struct {
	Payload *models.Configv1ListCollectionsResponse
}

ListCollectionsOK describes a response with status code 200, with default header values.

A successful response.

func NewListCollectionsOK

func NewListCollectionsOK() *ListCollectionsOK

NewListCollectionsOK creates a ListCollectionsOK with default headers values

func (*ListCollectionsOK) Code

func (o *ListCollectionsOK) Code() int

Code gets the status code for the list collections o k response

func (*ListCollectionsOK) Error

func (o *ListCollectionsOK) Error() string

func (*ListCollectionsOK) GetPayload

func (*ListCollectionsOK) IsClientError

func (o *ListCollectionsOK) IsClientError() bool

IsClientError returns true when this list collections o k response has a 4xx status code

func (*ListCollectionsOK) IsCode

func (o *ListCollectionsOK) IsCode(code int) bool

IsCode returns true when this list collections o k response a status code equal to that given

func (*ListCollectionsOK) IsRedirect

func (o *ListCollectionsOK) IsRedirect() bool

IsRedirect returns true when this list collections o k response has a 3xx status code

func (*ListCollectionsOK) IsServerError

func (o *ListCollectionsOK) IsServerError() bool

IsServerError returns true when this list collections o k response has a 5xx status code

func (*ListCollectionsOK) IsSuccess

func (o *ListCollectionsOK) IsSuccess() bool

IsSuccess returns true when this list collections o k response has a 2xx status code

func (*ListCollectionsOK) String

func (o *ListCollectionsOK) String() string

type ListCollectionsParams

type ListCollectionsParams struct {

	/* Names.

	   Filters results by name, where any Collection with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []string

	/* NotificationPolicySlugs.

	   Get collections that directly reference notifications policies by the referenced policy slugs.
	*/
	NotificationPolicySlugs []string

	/* PageMaxSize.

	     Page size preference (i.e. how many items are returned in the next
	page). If zero, the server will use a default. Regardless of what size
	is given, clients must never assume how many items will be returned.

	     Format: int64
	*/
	PageMaxSize *int64

	/* PageToken.

	     Opaque page token identifying which page to request. An empty token
	identifies the first page.
	*/
	PageToken *string

	/* Slugs.

	   Filters results by slug, where any Collection with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

	/* TeamSlugs.

	   Filters results by team_slug, where any Collection with a matching team_slug in the given list (and matches all other filters) is returned.
	*/
	TeamSlugs []string

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

ListCollectionsParams contains all the parameters to send to the API endpoint

for the list collections operation.

Typically these are written to a http.Request.

func NewListCollectionsParams

func NewListCollectionsParams() *ListCollectionsParams

NewListCollectionsParams creates a new ListCollectionsParams 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 NewListCollectionsParamsWithContext

func NewListCollectionsParamsWithContext(ctx context.Context) *ListCollectionsParams

NewListCollectionsParamsWithContext creates a new ListCollectionsParams object with the ability to set a context for a request.

func NewListCollectionsParamsWithHTTPClient

func NewListCollectionsParamsWithHTTPClient(client *http.Client) *ListCollectionsParams

NewListCollectionsParamsWithHTTPClient creates a new ListCollectionsParams object with the ability to set a custom HTTPClient for a request.

func NewListCollectionsParamsWithTimeout

func NewListCollectionsParamsWithTimeout(timeout time.Duration) *ListCollectionsParams

NewListCollectionsParamsWithTimeout creates a new ListCollectionsParams object with the ability to set a timeout on a request.

func (*ListCollectionsParams) SetContext

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

SetContext adds the context to the list collections params

func (*ListCollectionsParams) SetDefaults

func (o *ListCollectionsParams) SetDefaults()

SetDefaults hydrates default values in the list collections params (not the query body).

All values with no default are reset to their zero value.

func (*ListCollectionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list collections params

func (*ListCollectionsParams) SetNames

func (o *ListCollectionsParams) SetNames(names []string)

SetNames adds the names to the list collections params

func (*ListCollectionsParams) SetNotificationPolicySlugs

func (o *ListCollectionsParams) SetNotificationPolicySlugs(notificationPolicySlugs []string)

SetNotificationPolicySlugs adds the notificationPolicySlugs to the list collections params

func (*ListCollectionsParams) SetPageMaxSize

func (o *ListCollectionsParams) SetPageMaxSize(pageMaxSize *int64)

SetPageMaxSize adds the pageMaxSize to the list collections params

func (*ListCollectionsParams) SetPageToken

func (o *ListCollectionsParams) SetPageToken(pageToken *string)

SetPageToken adds the pageToken to the list collections params

func (*ListCollectionsParams) SetSlugs

func (o *ListCollectionsParams) SetSlugs(slugs []string)

SetSlugs adds the slugs to the list collections params

func (*ListCollectionsParams) SetTeamSlugs

func (o *ListCollectionsParams) SetTeamSlugs(teamSlugs []string)

SetTeamSlugs adds the teamSlugs to the list collections params

func (*ListCollectionsParams) SetTimeout

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

SetTimeout adds the timeout to the list collections params

func (*ListCollectionsParams) WithContext

WithContext adds the context to the list collections params

func (*ListCollectionsParams) WithDefaults

func (o *ListCollectionsParams) WithDefaults() *ListCollectionsParams

WithDefaults hydrates default values in the list collections params (not the query body).

All values with no default are reset to their zero value.

func (*ListCollectionsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list collections params

func (*ListCollectionsParams) WithNames

func (o *ListCollectionsParams) WithNames(names []string) *ListCollectionsParams

WithNames adds the names to the list collections params

func (*ListCollectionsParams) WithNotificationPolicySlugs

func (o *ListCollectionsParams) WithNotificationPolicySlugs(notificationPolicySlugs []string) *ListCollectionsParams

WithNotificationPolicySlugs adds the notificationPolicySlugs to the list collections params

func (*ListCollectionsParams) WithPageMaxSize

func (o *ListCollectionsParams) WithPageMaxSize(pageMaxSize *int64) *ListCollectionsParams

WithPageMaxSize adds the pageMaxSize to the list collections params

func (*ListCollectionsParams) WithPageToken

func (o *ListCollectionsParams) WithPageToken(pageToken *string) *ListCollectionsParams

WithPageToken adds the pageToken to the list collections params

func (*ListCollectionsParams) WithSlugs

func (o *ListCollectionsParams) WithSlugs(slugs []string) *ListCollectionsParams

WithSlugs adds the slugs to the list collections params

func (*ListCollectionsParams) WithTeamSlugs

func (o *ListCollectionsParams) WithTeamSlugs(teamSlugs []string) *ListCollectionsParams

WithTeamSlugs adds the teamSlugs to the list collections params

func (*ListCollectionsParams) WithTimeout

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

WithTimeout adds the timeout to the list collections params

func (*ListCollectionsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListCollectionsReader

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

ListCollectionsReader is a Reader for the ListCollections structure.

func (*ListCollectionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadCollectionDefault

type ReadCollectionDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

ReadCollectionDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewReadCollectionDefault

func NewReadCollectionDefault(code int) *ReadCollectionDefault

NewReadCollectionDefault creates a ReadCollectionDefault with default headers values

func (*ReadCollectionDefault) Code

func (o *ReadCollectionDefault) Code() int

Code gets the status code for the read collection default response

func (*ReadCollectionDefault) Error

func (o *ReadCollectionDefault) Error() string

func (*ReadCollectionDefault) GetPayload

func (o *ReadCollectionDefault) GetPayload() models.GenericError

func (*ReadCollectionDefault) IsClientError

func (o *ReadCollectionDefault) IsClientError() bool

IsClientError returns true when this read collection default response has a 4xx status code

func (*ReadCollectionDefault) IsCode

func (o *ReadCollectionDefault) IsCode(code int) bool

IsCode returns true when this read collection default response a status code equal to that given

func (*ReadCollectionDefault) IsRedirect

func (o *ReadCollectionDefault) IsRedirect() bool

IsRedirect returns true when this read collection default response has a 3xx status code

func (*ReadCollectionDefault) IsServerError

func (o *ReadCollectionDefault) IsServerError() bool

IsServerError returns true when this read collection default response has a 5xx status code

func (*ReadCollectionDefault) IsSuccess

func (o *ReadCollectionDefault) IsSuccess() bool

IsSuccess returns true when this read collection default response has a 2xx status code

func (*ReadCollectionDefault) String

func (o *ReadCollectionDefault) String() string

type ReadCollectionInternalServerError

type ReadCollectionInternalServerError struct {
	Payload *models.APIError
}

ReadCollectionInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewReadCollectionInternalServerError

func NewReadCollectionInternalServerError() *ReadCollectionInternalServerError

NewReadCollectionInternalServerError creates a ReadCollectionInternalServerError with default headers values

func (*ReadCollectionInternalServerError) Code

Code gets the status code for the read collection internal server error response

func (*ReadCollectionInternalServerError) Error

func (*ReadCollectionInternalServerError) GetPayload

func (*ReadCollectionInternalServerError) IsClientError

func (o *ReadCollectionInternalServerError) IsClientError() bool

IsClientError returns true when this read collection internal server error response has a 4xx status code

func (*ReadCollectionInternalServerError) IsCode

func (o *ReadCollectionInternalServerError) IsCode(code int) bool

IsCode returns true when this read collection internal server error response a status code equal to that given

func (*ReadCollectionInternalServerError) IsRedirect

func (o *ReadCollectionInternalServerError) IsRedirect() bool

IsRedirect returns true when this read collection internal server error response has a 3xx status code

func (*ReadCollectionInternalServerError) IsServerError

func (o *ReadCollectionInternalServerError) IsServerError() bool

IsServerError returns true when this read collection internal server error response has a 5xx status code

func (*ReadCollectionInternalServerError) IsSuccess

func (o *ReadCollectionInternalServerError) IsSuccess() bool

IsSuccess returns true when this read collection internal server error response has a 2xx status code

func (*ReadCollectionInternalServerError) String

type ReadCollectionNotFound

type ReadCollectionNotFound struct {
	Payload *models.APIError
}

ReadCollectionNotFound describes a response with status code 404, with default header values.

Cannot read the Collection because the slug does not exist.

func NewReadCollectionNotFound

func NewReadCollectionNotFound() *ReadCollectionNotFound

NewReadCollectionNotFound creates a ReadCollectionNotFound with default headers values

func (*ReadCollectionNotFound) Code

func (o *ReadCollectionNotFound) Code() int

Code gets the status code for the read collection not found response

func (*ReadCollectionNotFound) Error

func (o *ReadCollectionNotFound) Error() string

func (*ReadCollectionNotFound) GetPayload

func (o *ReadCollectionNotFound) GetPayload() *models.APIError

func (*ReadCollectionNotFound) IsClientError

func (o *ReadCollectionNotFound) IsClientError() bool

IsClientError returns true when this read collection not found response has a 4xx status code

func (*ReadCollectionNotFound) IsCode

func (o *ReadCollectionNotFound) IsCode(code int) bool

IsCode returns true when this read collection not found response a status code equal to that given

func (*ReadCollectionNotFound) IsRedirect

func (o *ReadCollectionNotFound) IsRedirect() bool

IsRedirect returns true when this read collection not found response has a 3xx status code

func (*ReadCollectionNotFound) IsServerError

func (o *ReadCollectionNotFound) IsServerError() bool

IsServerError returns true when this read collection not found response has a 5xx status code

func (*ReadCollectionNotFound) IsSuccess

func (o *ReadCollectionNotFound) IsSuccess() bool

IsSuccess returns true when this read collection not found response has a 2xx status code

func (*ReadCollectionNotFound) String

func (o *ReadCollectionNotFound) String() string

type ReadCollectionOK

type ReadCollectionOK struct {
	Payload *models.Configv1ReadCollectionResponse
}

ReadCollectionOK describes a response with status code 200, with default header values.

A successful response.

func NewReadCollectionOK

func NewReadCollectionOK() *ReadCollectionOK

NewReadCollectionOK creates a ReadCollectionOK with default headers values

func (*ReadCollectionOK) Code

func (o *ReadCollectionOK) Code() int

Code gets the status code for the read collection o k response

func (*ReadCollectionOK) Error

func (o *ReadCollectionOK) Error() string

func (*ReadCollectionOK) GetPayload

func (*ReadCollectionOK) IsClientError

func (o *ReadCollectionOK) IsClientError() bool

IsClientError returns true when this read collection o k response has a 4xx status code

func (*ReadCollectionOK) IsCode

func (o *ReadCollectionOK) IsCode(code int) bool

IsCode returns true when this read collection o k response a status code equal to that given

func (*ReadCollectionOK) IsRedirect

func (o *ReadCollectionOK) IsRedirect() bool

IsRedirect returns true when this read collection o k response has a 3xx status code

func (*ReadCollectionOK) IsServerError

func (o *ReadCollectionOK) IsServerError() bool

IsServerError returns true when this read collection o k response has a 5xx status code

func (*ReadCollectionOK) IsSuccess

func (o *ReadCollectionOK) IsSuccess() bool

IsSuccess returns true when this read collection o k response has a 2xx status code

func (*ReadCollectionOK) String

func (o *ReadCollectionOK) String() string

type ReadCollectionParams

type ReadCollectionParams struct {

	// Slug.
	Slug string

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

ReadCollectionParams contains all the parameters to send to the API endpoint

for the read collection operation.

Typically these are written to a http.Request.

func NewReadCollectionParams

func NewReadCollectionParams() *ReadCollectionParams

NewReadCollectionParams creates a new ReadCollectionParams 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 NewReadCollectionParamsWithContext

func NewReadCollectionParamsWithContext(ctx context.Context) *ReadCollectionParams

NewReadCollectionParamsWithContext creates a new ReadCollectionParams object with the ability to set a context for a request.

func NewReadCollectionParamsWithHTTPClient

func NewReadCollectionParamsWithHTTPClient(client *http.Client) *ReadCollectionParams

NewReadCollectionParamsWithHTTPClient creates a new ReadCollectionParams object with the ability to set a custom HTTPClient for a request.

func NewReadCollectionParamsWithTimeout

func NewReadCollectionParamsWithTimeout(timeout time.Duration) *ReadCollectionParams

NewReadCollectionParamsWithTimeout creates a new ReadCollectionParams object with the ability to set a timeout on a request.

func (*ReadCollectionParams) SetContext

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

SetContext adds the context to the read collection params

func (*ReadCollectionParams) SetDefaults

func (o *ReadCollectionParams) SetDefaults()

SetDefaults hydrates default values in the read collection params (not the query body).

All values with no default are reset to their zero value.

func (*ReadCollectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read collection params

func (*ReadCollectionParams) SetSlug

func (o *ReadCollectionParams) SetSlug(slug string)

SetSlug adds the slug to the read collection params

func (*ReadCollectionParams) SetTimeout

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

SetTimeout adds the timeout to the read collection params

func (*ReadCollectionParams) WithContext

WithContext adds the context to the read collection params

func (*ReadCollectionParams) WithDefaults

func (o *ReadCollectionParams) WithDefaults() *ReadCollectionParams

WithDefaults hydrates default values in the read collection params (not the query body).

All values with no default are reset to their zero value.

func (*ReadCollectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read collection params

func (*ReadCollectionParams) WithSlug

WithSlug adds the slug to the read collection params

func (*ReadCollectionParams) WithTimeout

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

WithTimeout adds the timeout to the read collection params

func (*ReadCollectionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadCollectionReader

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

ReadCollectionReader is a Reader for the ReadCollection structure.

func (*ReadCollectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCollectionBadRequest

type UpdateCollectionBadRequest struct {
	Payload *models.APIError
}

UpdateCollectionBadRequest describes a response with status code 400, with default header values.

Cannot update the Collection because the request is invalid.

func NewUpdateCollectionBadRequest

func NewUpdateCollectionBadRequest() *UpdateCollectionBadRequest

NewUpdateCollectionBadRequest creates a UpdateCollectionBadRequest with default headers values

func (*UpdateCollectionBadRequest) Code

func (o *UpdateCollectionBadRequest) Code() int

Code gets the status code for the update collection bad request response

func (*UpdateCollectionBadRequest) Error

func (*UpdateCollectionBadRequest) GetPayload

func (o *UpdateCollectionBadRequest) GetPayload() *models.APIError

func (*UpdateCollectionBadRequest) IsClientError

func (o *UpdateCollectionBadRequest) IsClientError() bool

IsClientError returns true when this update collection bad request response has a 4xx status code

func (*UpdateCollectionBadRequest) IsCode

func (o *UpdateCollectionBadRequest) IsCode(code int) bool

IsCode returns true when this update collection bad request response a status code equal to that given

func (*UpdateCollectionBadRequest) IsRedirect

func (o *UpdateCollectionBadRequest) IsRedirect() bool

IsRedirect returns true when this update collection bad request response has a 3xx status code

func (*UpdateCollectionBadRequest) IsServerError

func (o *UpdateCollectionBadRequest) IsServerError() bool

IsServerError returns true when this update collection bad request response has a 5xx status code

func (*UpdateCollectionBadRequest) IsSuccess

func (o *UpdateCollectionBadRequest) IsSuccess() bool

IsSuccess returns true when this update collection bad request response has a 2xx status code

func (*UpdateCollectionBadRequest) String

func (o *UpdateCollectionBadRequest) String() string

type UpdateCollectionBody

type UpdateCollectionBody struct {

	// collection
	Collection *models.Configv1Collection `json:"collection,omitempty"`

	// If true, the Collection will be created if it does not already exist, identified by slug. If false, an error will be returned if the Collection does not already exist.
	CreateIfMissing bool `json:"create_if_missing,omitempty"`

	// If true, the Collection will not be created nor updated, and no response Collection will be returned. The response will return an error if the given Collection is invalid.
	DryRun bool `json:"dry_run,omitempty"`
}

UpdateCollectionBody update collection body swagger:model UpdateCollectionBody

func (*UpdateCollectionBody) ContextValidate

func (o *UpdateCollectionBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this update collection body based on the context it is used

func (*UpdateCollectionBody) MarshalBinary

func (o *UpdateCollectionBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UpdateCollectionBody) UnmarshalBinary

func (o *UpdateCollectionBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UpdateCollectionBody) Validate

func (o *UpdateCollectionBody) Validate(formats strfmt.Registry) error

Validate validates this update collection body

type UpdateCollectionConflict

type UpdateCollectionConflict struct {
	Payload *models.APIError
}

UpdateCollectionConflict describes a response with status code 409, with default header values.

Cannot update the Collection because there is a conflict with an existing Collection.

func NewUpdateCollectionConflict

func NewUpdateCollectionConflict() *UpdateCollectionConflict

NewUpdateCollectionConflict creates a UpdateCollectionConflict with default headers values

func (*UpdateCollectionConflict) Code

func (o *UpdateCollectionConflict) Code() int

Code gets the status code for the update collection conflict response

func (*UpdateCollectionConflict) Error

func (o *UpdateCollectionConflict) Error() string

func (*UpdateCollectionConflict) GetPayload

func (o *UpdateCollectionConflict) GetPayload() *models.APIError

func (*UpdateCollectionConflict) IsClientError

func (o *UpdateCollectionConflict) IsClientError() bool

IsClientError returns true when this update collection conflict response has a 4xx status code

func (*UpdateCollectionConflict) IsCode

func (o *UpdateCollectionConflict) IsCode(code int) bool

IsCode returns true when this update collection conflict response a status code equal to that given

func (*UpdateCollectionConflict) IsRedirect

func (o *UpdateCollectionConflict) IsRedirect() bool

IsRedirect returns true when this update collection conflict response has a 3xx status code

func (*UpdateCollectionConflict) IsServerError

func (o *UpdateCollectionConflict) IsServerError() bool

IsServerError returns true when this update collection conflict response has a 5xx status code

func (*UpdateCollectionConflict) IsSuccess

func (o *UpdateCollectionConflict) IsSuccess() bool

IsSuccess returns true when this update collection conflict response has a 2xx status code

func (*UpdateCollectionConflict) String

func (o *UpdateCollectionConflict) String() string

type UpdateCollectionDefault

type UpdateCollectionDefault struct {
	Payload models.GenericError
	// contains filtered or unexported fields
}

UpdateCollectionDefault describes a response with status code -1, with default header values.

An undefined error response.

func NewUpdateCollectionDefault

func NewUpdateCollectionDefault(code int) *UpdateCollectionDefault

NewUpdateCollectionDefault creates a UpdateCollectionDefault with default headers values

func (*UpdateCollectionDefault) Code

func (o *UpdateCollectionDefault) Code() int

Code gets the status code for the update collection default response

func (*UpdateCollectionDefault) Error

func (o *UpdateCollectionDefault) Error() string

func (*UpdateCollectionDefault) GetPayload

func (*UpdateCollectionDefault) IsClientError

func (o *UpdateCollectionDefault) IsClientError() bool

IsClientError returns true when this update collection default response has a 4xx status code

func (*UpdateCollectionDefault) IsCode

func (o *UpdateCollectionDefault) IsCode(code int) bool

IsCode returns true when this update collection default response a status code equal to that given

func (*UpdateCollectionDefault) IsRedirect

func (o *UpdateCollectionDefault) IsRedirect() bool

IsRedirect returns true when this update collection default response has a 3xx status code

func (*UpdateCollectionDefault) IsServerError

func (o *UpdateCollectionDefault) IsServerError() bool

IsServerError returns true when this update collection default response has a 5xx status code

func (*UpdateCollectionDefault) IsSuccess

func (o *UpdateCollectionDefault) IsSuccess() bool

IsSuccess returns true when this update collection default response has a 2xx status code

func (*UpdateCollectionDefault) String

func (o *UpdateCollectionDefault) String() string

type UpdateCollectionInternalServerError

type UpdateCollectionInternalServerError struct {
	Payload *models.APIError
}

UpdateCollectionInternalServerError describes a response with status code 500, with default header values.

An unexpected error response.

func NewUpdateCollectionInternalServerError

func NewUpdateCollectionInternalServerError() *UpdateCollectionInternalServerError

NewUpdateCollectionInternalServerError creates a UpdateCollectionInternalServerError with default headers values

func (*UpdateCollectionInternalServerError) Code

Code gets the status code for the update collection internal server error response

func (*UpdateCollectionInternalServerError) Error

func (*UpdateCollectionInternalServerError) GetPayload

func (*UpdateCollectionInternalServerError) IsClientError

func (o *UpdateCollectionInternalServerError) IsClientError() bool

IsClientError returns true when this update collection internal server error response has a 4xx status code

func (*UpdateCollectionInternalServerError) IsCode

IsCode returns true when this update collection internal server error response a status code equal to that given

func (*UpdateCollectionInternalServerError) IsRedirect

func (o *UpdateCollectionInternalServerError) IsRedirect() bool

IsRedirect returns true when this update collection internal server error response has a 3xx status code

func (*UpdateCollectionInternalServerError) IsServerError

func (o *UpdateCollectionInternalServerError) IsServerError() bool

IsServerError returns true when this update collection internal server error response has a 5xx status code

func (*UpdateCollectionInternalServerError) IsSuccess

IsSuccess returns true when this update collection internal server error response has a 2xx status code

func (*UpdateCollectionInternalServerError) String

type UpdateCollectionNotFound

type UpdateCollectionNotFound struct {
	Payload *models.APIError
}

UpdateCollectionNotFound describes a response with status code 404, with default header values.

Cannot update the Collection because the slug does not exist.

func NewUpdateCollectionNotFound

func NewUpdateCollectionNotFound() *UpdateCollectionNotFound

NewUpdateCollectionNotFound creates a UpdateCollectionNotFound with default headers values

func (*UpdateCollectionNotFound) Code

func (o *UpdateCollectionNotFound) Code() int

Code gets the status code for the update collection not found response

func (*UpdateCollectionNotFound) Error

func (o *UpdateCollectionNotFound) Error() string

func (*UpdateCollectionNotFound) GetPayload

func (o *UpdateCollectionNotFound) GetPayload() *models.APIError

func (*UpdateCollectionNotFound) IsClientError

func (o *UpdateCollectionNotFound) IsClientError() bool

IsClientError returns true when this update collection not found response has a 4xx status code

func (*UpdateCollectionNotFound) IsCode

func (o *UpdateCollectionNotFound) IsCode(code int) bool

IsCode returns true when this update collection not found response a status code equal to that given

func (*UpdateCollectionNotFound) IsRedirect

func (o *UpdateCollectionNotFound) IsRedirect() bool

IsRedirect returns true when this update collection not found response has a 3xx status code

func (*UpdateCollectionNotFound) IsServerError

func (o *UpdateCollectionNotFound) IsServerError() bool

IsServerError returns true when this update collection not found response has a 5xx status code

func (*UpdateCollectionNotFound) IsSuccess

func (o *UpdateCollectionNotFound) IsSuccess() bool

IsSuccess returns true when this update collection not found response has a 2xx status code

func (*UpdateCollectionNotFound) String

func (o *UpdateCollectionNotFound) String() string

type UpdateCollectionOK

type UpdateCollectionOK struct {
	Payload *models.Configv1UpdateCollectionResponse
}

UpdateCollectionOK describes a response with status code 200, with default header values.

A successful response containing the updated Collection.

func NewUpdateCollectionOK

func NewUpdateCollectionOK() *UpdateCollectionOK

NewUpdateCollectionOK creates a UpdateCollectionOK with default headers values

func (*UpdateCollectionOK) Code

func (o *UpdateCollectionOK) Code() int

Code gets the status code for the update collection o k response

func (*UpdateCollectionOK) Error

func (o *UpdateCollectionOK) Error() string

func (*UpdateCollectionOK) GetPayload

func (*UpdateCollectionOK) IsClientError

func (o *UpdateCollectionOK) IsClientError() bool

IsClientError returns true when this update collection o k response has a 4xx status code

func (*UpdateCollectionOK) IsCode

func (o *UpdateCollectionOK) IsCode(code int) bool

IsCode returns true when this update collection o k response a status code equal to that given

func (*UpdateCollectionOK) IsRedirect

func (o *UpdateCollectionOK) IsRedirect() bool

IsRedirect returns true when this update collection o k response has a 3xx status code

func (*UpdateCollectionOK) IsServerError

func (o *UpdateCollectionOK) IsServerError() bool

IsServerError returns true when this update collection o k response has a 5xx status code

func (*UpdateCollectionOK) IsSuccess

func (o *UpdateCollectionOK) IsSuccess() bool

IsSuccess returns true when this update collection o k response has a 2xx status code

func (*UpdateCollectionOK) String

func (o *UpdateCollectionOK) String() string

type UpdateCollectionParams

type UpdateCollectionParams struct {

	// Body.
	Body UpdateCollectionBody

	// Slug.
	Slug string

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

UpdateCollectionParams contains all the parameters to send to the API endpoint

for the update collection operation.

Typically these are written to a http.Request.

func NewUpdateCollectionParams

func NewUpdateCollectionParams() *UpdateCollectionParams

NewUpdateCollectionParams creates a new UpdateCollectionParams 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 NewUpdateCollectionParamsWithContext

func NewUpdateCollectionParamsWithContext(ctx context.Context) *UpdateCollectionParams

NewUpdateCollectionParamsWithContext creates a new UpdateCollectionParams object with the ability to set a context for a request.

func NewUpdateCollectionParamsWithHTTPClient

func NewUpdateCollectionParamsWithHTTPClient(client *http.Client) *UpdateCollectionParams

NewUpdateCollectionParamsWithHTTPClient creates a new UpdateCollectionParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateCollectionParamsWithTimeout

func NewUpdateCollectionParamsWithTimeout(timeout time.Duration) *UpdateCollectionParams

NewUpdateCollectionParamsWithTimeout creates a new UpdateCollectionParams object with the ability to set a timeout on a request.

func (*UpdateCollectionParams) SetBody

SetBody adds the body to the update collection params

func (*UpdateCollectionParams) SetContext

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

SetContext adds the context to the update collection params

func (*UpdateCollectionParams) SetDefaults

func (o *UpdateCollectionParams) SetDefaults()

SetDefaults hydrates default values in the update collection params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateCollectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update collection params

func (*UpdateCollectionParams) SetSlug

func (o *UpdateCollectionParams) SetSlug(slug string)

SetSlug adds the slug to the update collection params

func (*UpdateCollectionParams) SetTimeout

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

SetTimeout adds the timeout to the update collection params

func (*UpdateCollectionParams) WithBody

WithBody adds the body to the update collection params

func (*UpdateCollectionParams) WithContext

WithContext adds the context to the update collection params

func (*UpdateCollectionParams) WithDefaults

WithDefaults hydrates default values in the update collection params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateCollectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update collection params

func (*UpdateCollectionParams) WithSlug

WithSlug adds the slug to the update collection params

func (*UpdateCollectionParams) WithTimeout

WithTimeout adds the timeout to the update collection params

func (*UpdateCollectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCollectionReader

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

UpdateCollectionReader is a Reader for the UpdateCollection structure.

func (*UpdateCollectionReader) ReadResponse

func (o *UpdateCollectionReader) 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