Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateCollection(params *CreateCollectionParams, opts ...ClientOption) (*CreateCollectionOK, error)
- func (a *Client) DeleteCollection(params *DeleteCollectionParams, opts ...ClientOption) (*DeleteCollectionOK, error)
- func (a *Client) ListCollections(params *ListCollectionsParams, opts ...ClientOption) (*ListCollectionsOK, error)
- func (a *Client) ReadCollection(params *ReadCollectionParams, opts ...ClientOption) (*ReadCollectionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateCollection(params *UpdateCollectionParams, opts ...ClientOption) (*UpdateCollectionOK, error)
- type ClientOption
- type ClientService
- type CreateCollectionBadRequest
- func (o *CreateCollectionBadRequest) Code() int
- func (o *CreateCollectionBadRequest) Error() string
- func (o *CreateCollectionBadRequest) GetPayload() *models.APIError
- func (o *CreateCollectionBadRequest) IsClientError() bool
- func (o *CreateCollectionBadRequest) IsCode(code int) bool
- func (o *CreateCollectionBadRequest) IsRedirect() bool
- func (o *CreateCollectionBadRequest) IsServerError() bool
- func (o *CreateCollectionBadRequest) IsSuccess() bool
- func (o *CreateCollectionBadRequest) String() string
- type CreateCollectionConflict
- func (o *CreateCollectionConflict) Code() int
- func (o *CreateCollectionConflict) Error() string
- func (o *CreateCollectionConflict) GetPayload() *models.APIError
- func (o *CreateCollectionConflict) IsClientError() bool
- func (o *CreateCollectionConflict) IsCode(code int) bool
- func (o *CreateCollectionConflict) IsRedirect() bool
- func (o *CreateCollectionConflict) IsServerError() bool
- func (o *CreateCollectionConflict) IsSuccess() bool
- func (o *CreateCollectionConflict) String() string
- type CreateCollectionDefault
- func (o *CreateCollectionDefault) Code() int
- func (o *CreateCollectionDefault) Error() string
- func (o *CreateCollectionDefault) GetPayload() models.GenericError
- func (o *CreateCollectionDefault) IsClientError() bool
- func (o *CreateCollectionDefault) IsCode(code int) bool
- func (o *CreateCollectionDefault) IsRedirect() bool
- func (o *CreateCollectionDefault) IsServerError() bool
- func (o *CreateCollectionDefault) IsSuccess() bool
- func (o *CreateCollectionDefault) String() string
- type CreateCollectionInternalServerError
- func (o *CreateCollectionInternalServerError) Code() int
- func (o *CreateCollectionInternalServerError) Error() string
- func (o *CreateCollectionInternalServerError) GetPayload() *models.APIError
- func (o *CreateCollectionInternalServerError) IsClientError() bool
- func (o *CreateCollectionInternalServerError) IsCode(code int) bool
- func (o *CreateCollectionInternalServerError) IsRedirect() bool
- func (o *CreateCollectionInternalServerError) IsServerError() bool
- func (o *CreateCollectionInternalServerError) IsSuccess() bool
- func (o *CreateCollectionInternalServerError) String() string
- type CreateCollectionOK
- func (o *CreateCollectionOK) Code() int
- func (o *CreateCollectionOK) Error() string
- func (o *CreateCollectionOK) GetPayload() *models.Configv1CreateCollectionResponse
- func (o *CreateCollectionOK) IsClientError() bool
- func (o *CreateCollectionOK) IsCode(code int) bool
- func (o *CreateCollectionOK) IsRedirect() bool
- func (o *CreateCollectionOK) IsServerError() bool
- func (o *CreateCollectionOK) IsSuccess() bool
- func (o *CreateCollectionOK) String() string
- type CreateCollectionParams
- func NewCreateCollectionParams() *CreateCollectionParams
- func NewCreateCollectionParamsWithContext(ctx context.Context) *CreateCollectionParams
- func NewCreateCollectionParamsWithHTTPClient(client *http.Client) *CreateCollectionParams
- func NewCreateCollectionParamsWithTimeout(timeout time.Duration) *CreateCollectionParams
- func (o *CreateCollectionParams) SetBody(body *models.Configv1CreateCollectionRequest)
- func (o *CreateCollectionParams) SetContext(ctx context.Context)
- func (o *CreateCollectionParams) SetDefaults()
- func (o *CreateCollectionParams) SetHTTPClient(client *http.Client)
- func (o *CreateCollectionParams) SetTimeout(timeout time.Duration)
- func (o *CreateCollectionParams) WithBody(body *models.Configv1CreateCollectionRequest) *CreateCollectionParams
- func (o *CreateCollectionParams) WithContext(ctx context.Context) *CreateCollectionParams
- func (o *CreateCollectionParams) WithDefaults() *CreateCollectionParams
- func (o *CreateCollectionParams) WithHTTPClient(client *http.Client) *CreateCollectionParams
- func (o *CreateCollectionParams) WithTimeout(timeout time.Duration) *CreateCollectionParams
- func (o *CreateCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateCollectionReader
- type DeleteCollectionBadRequest
- func (o *DeleteCollectionBadRequest) Code() int
- func (o *DeleteCollectionBadRequest) Error() string
- func (o *DeleteCollectionBadRequest) GetPayload() *models.APIError
- func (o *DeleteCollectionBadRequest) IsClientError() bool
- func (o *DeleteCollectionBadRequest) IsCode(code int) bool
- func (o *DeleteCollectionBadRequest) IsRedirect() bool
- func (o *DeleteCollectionBadRequest) IsServerError() bool
- func (o *DeleteCollectionBadRequest) IsSuccess() bool
- func (o *DeleteCollectionBadRequest) String() string
- type DeleteCollectionDefault
- func (o *DeleteCollectionDefault) Code() int
- func (o *DeleteCollectionDefault) Error() string
- func (o *DeleteCollectionDefault) GetPayload() models.GenericError
- func (o *DeleteCollectionDefault) IsClientError() bool
- func (o *DeleteCollectionDefault) IsCode(code int) bool
- func (o *DeleteCollectionDefault) IsRedirect() bool
- func (o *DeleteCollectionDefault) IsServerError() bool
- func (o *DeleteCollectionDefault) IsSuccess() bool
- func (o *DeleteCollectionDefault) String() string
- type DeleteCollectionInternalServerError
- func (o *DeleteCollectionInternalServerError) Code() int
- func (o *DeleteCollectionInternalServerError) Error() string
- func (o *DeleteCollectionInternalServerError) GetPayload() *models.APIError
- func (o *DeleteCollectionInternalServerError) IsClientError() bool
- func (o *DeleteCollectionInternalServerError) IsCode(code int) bool
- func (o *DeleteCollectionInternalServerError) IsRedirect() bool
- func (o *DeleteCollectionInternalServerError) IsServerError() bool
- func (o *DeleteCollectionInternalServerError) IsSuccess() bool
- func (o *DeleteCollectionInternalServerError) String() string
- type DeleteCollectionNotFound
- func (o *DeleteCollectionNotFound) Code() int
- func (o *DeleteCollectionNotFound) Error() string
- func (o *DeleteCollectionNotFound) GetPayload() *models.APIError
- func (o *DeleteCollectionNotFound) IsClientError() bool
- func (o *DeleteCollectionNotFound) IsCode(code int) bool
- func (o *DeleteCollectionNotFound) IsRedirect() bool
- func (o *DeleteCollectionNotFound) IsServerError() bool
- func (o *DeleteCollectionNotFound) IsSuccess() bool
- func (o *DeleteCollectionNotFound) String() string
- type DeleteCollectionOK
- func (o *DeleteCollectionOK) Code() int
- func (o *DeleteCollectionOK) Error() string
- func (o *DeleteCollectionOK) GetPayload() models.Configv1DeleteCollectionResponse
- func (o *DeleteCollectionOK) IsClientError() bool
- func (o *DeleteCollectionOK) IsCode(code int) bool
- func (o *DeleteCollectionOK) IsRedirect() bool
- func (o *DeleteCollectionOK) IsServerError() bool
- func (o *DeleteCollectionOK) IsSuccess() bool
- func (o *DeleteCollectionOK) String() string
- type DeleteCollectionParams
- func NewDeleteCollectionParams() *DeleteCollectionParams
- func NewDeleteCollectionParamsWithContext(ctx context.Context) *DeleteCollectionParams
- func NewDeleteCollectionParamsWithHTTPClient(client *http.Client) *DeleteCollectionParams
- func NewDeleteCollectionParamsWithTimeout(timeout time.Duration) *DeleteCollectionParams
- func (o *DeleteCollectionParams) SetContext(ctx context.Context)
- func (o *DeleteCollectionParams) SetDefaults()
- func (o *DeleteCollectionParams) SetHTTPClient(client *http.Client)
- func (o *DeleteCollectionParams) SetSlug(slug string)
- func (o *DeleteCollectionParams) SetTimeout(timeout time.Duration)
- func (o *DeleteCollectionParams) WithContext(ctx context.Context) *DeleteCollectionParams
- func (o *DeleteCollectionParams) WithDefaults() *DeleteCollectionParams
- func (o *DeleteCollectionParams) WithHTTPClient(client *http.Client) *DeleteCollectionParams
- func (o *DeleteCollectionParams) WithSlug(slug string) *DeleteCollectionParams
- func (o *DeleteCollectionParams) WithTimeout(timeout time.Duration) *DeleteCollectionParams
- func (o *DeleteCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteCollectionReader
- type ListCollectionsDefault
- func (o *ListCollectionsDefault) Code() int
- func (o *ListCollectionsDefault) Error() string
- func (o *ListCollectionsDefault) GetPayload() models.GenericError
- func (o *ListCollectionsDefault) IsClientError() bool
- func (o *ListCollectionsDefault) IsCode(code int) bool
- func (o *ListCollectionsDefault) IsRedirect() bool
- func (o *ListCollectionsDefault) IsServerError() bool
- func (o *ListCollectionsDefault) IsSuccess() bool
- func (o *ListCollectionsDefault) String() string
- type ListCollectionsInternalServerError
- func (o *ListCollectionsInternalServerError) Code() int
- func (o *ListCollectionsInternalServerError) Error() string
- func (o *ListCollectionsInternalServerError) GetPayload() *models.APIError
- func (o *ListCollectionsInternalServerError) IsClientError() bool
- func (o *ListCollectionsInternalServerError) IsCode(code int) bool
- func (o *ListCollectionsInternalServerError) IsRedirect() bool
- func (o *ListCollectionsInternalServerError) IsServerError() bool
- func (o *ListCollectionsInternalServerError) IsSuccess() bool
- func (o *ListCollectionsInternalServerError) String() string
- type ListCollectionsOK
- func (o *ListCollectionsOK) Code() int
- func (o *ListCollectionsOK) Error() string
- func (o *ListCollectionsOK) GetPayload() *models.Configv1ListCollectionsResponse
- func (o *ListCollectionsOK) IsClientError() bool
- func (o *ListCollectionsOK) IsCode(code int) bool
- func (o *ListCollectionsOK) IsRedirect() bool
- func (o *ListCollectionsOK) IsServerError() bool
- func (o *ListCollectionsOK) IsSuccess() bool
- func (o *ListCollectionsOK) String() string
- type ListCollectionsParams
- func NewListCollectionsParams() *ListCollectionsParams
- func NewListCollectionsParamsWithContext(ctx context.Context) *ListCollectionsParams
- func NewListCollectionsParamsWithHTTPClient(client *http.Client) *ListCollectionsParams
- func NewListCollectionsParamsWithTimeout(timeout time.Duration) *ListCollectionsParams
- func (o *ListCollectionsParams) SetContext(ctx context.Context)
- func (o *ListCollectionsParams) SetDefaults()
- func (o *ListCollectionsParams) SetHTTPClient(client *http.Client)
- func (o *ListCollectionsParams) SetNames(names []string)
- func (o *ListCollectionsParams) SetNotificationPolicySlugs(notificationPolicySlugs []string)
- func (o *ListCollectionsParams) SetPageMaxSize(pageMaxSize *int64)
- func (o *ListCollectionsParams) SetPageToken(pageToken *string)
- func (o *ListCollectionsParams) SetSlugs(slugs []string)
- func (o *ListCollectionsParams) SetTeamSlugs(teamSlugs []string)
- func (o *ListCollectionsParams) SetTimeout(timeout time.Duration)
- func (o *ListCollectionsParams) WithContext(ctx context.Context) *ListCollectionsParams
- func (o *ListCollectionsParams) WithDefaults() *ListCollectionsParams
- func (o *ListCollectionsParams) WithHTTPClient(client *http.Client) *ListCollectionsParams
- func (o *ListCollectionsParams) WithNames(names []string) *ListCollectionsParams
- func (o *ListCollectionsParams) WithNotificationPolicySlugs(notificationPolicySlugs []string) *ListCollectionsParams
- func (o *ListCollectionsParams) WithPageMaxSize(pageMaxSize *int64) *ListCollectionsParams
- func (o *ListCollectionsParams) WithPageToken(pageToken *string) *ListCollectionsParams
- func (o *ListCollectionsParams) WithSlugs(slugs []string) *ListCollectionsParams
- func (o *ListCollectionsParams) WithTeamSlugs(teamSlugs []string) *ListCollectionsParams
- func (o *ListCollectionsParams) WithTimeout(timeout time.Duration) *ListCollectionsParams
- func (o *ListCollectionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListCollectionsReader
- type ReadCollectionDefault
- func (o *ReadCollectionDefault) Code() int
- func (o *ReadCollectionDefault) Error() string
- func (o *ReadCollectionDefault) GetPayload() models.GenericError
- func (o *ReadCollectionDefault) IsClientError() bool
- func (o *ReadCollectionDefault) IsCode(code int) bool
- func (o *ReadCollectionDefault) IsRedirect() bool
- func (o *ReadCollectionDefault) IsServerError() bool
- func (o *ReadCollectionDefault) IsSuccess() bool
- func (o *ReadCollectionDefault) String() string
- type ReadCollectionInternalServerError
- func (o *ReadCollectionInternalServerError) Code() int
- func (o *ReadCollectionInternalServerError) Error() string
- func (o *ReadCollectionInternalServerError) GetPayload() *models.APIError
- func (o *ReadCollectionInternalServerError) IsClientError() bool
- func (o *ReadCollectionInternalServerError) IsCode(code int) bool
- func (o *ReadCollectionInternalServerError) IsRedirect() bool
- func (o *ReadCollectionInternalServerError) IsServerError() bool
- func (o *ReadCollectionInternalServerError) IsSuccess() bool
- func (o *ReadCollectionInternalServerError) String() string
- type ReadCollectionNotFound
- func (o *ReadCollectionNotFound) Code() int
- func (o *ReadCollectionNotFound) Error() string
- func (o *ReadCollectionNotFound) GetPayload() *models.APIError
- func (o *ReadCollectionNotFound) IsClientError() bool
- func (o *ReadCollectionNotFound) IsCode(code int) bool
- func (o *ReadCollectionNotFound) IsRedirect() bool
- func (o *ReadCollectionNotFound) IsServerError() bool
- func (o *ReadCollectionNotFound) IsSuccess() bool
- func (o *ReadCollectionNotFound) String() string
- type ReadCollectionOK
- func (o *ReadCollectionOK) Code() int
- func (o *ReadCollectionOK) Error() string
- func (o *ReadCollectionOK) GetPayload() *models.Configv1ReadCollectionResponse
- func (o *ReadCollectionOK) IsClientError() bool
- func (o *ReadCollectionOK) IsCode(code int) bool
- func (o *ReadCollectionOK) IsRedirect() bool
- func (o *ReadCollectionOK) IsServerError() bool
- func (o *ReadCollectionOK) IsSuccess() bool
- func (o *ReadCollectionOK) String() string
- type ReadCollectionParams
- func NewReadCollectionParams() *ReadCollectionParams
- func NewReadCollectionParamsWithContext(ctx context.Context) *ReadCollectionParams
- func NewReadCollectionParamsWithHTTPClient(client *http.Client) *ReadCollectionParams
- func NewReadCollectionParamsWithTimeout(timeout time.Duration) *ReadCollectionParams
- func (o *ReadCollectionParams) SetContext(ctx context.Context)
- func (o *ReadCollectionParams) SetDefaults()
- func (o *ReadCollectionParams) SetHTTPClient(client *http.Client)
- func (o *ReadCollectionParams) SetSlug(slug string)
- func (o *ReadCollectionParams) SetTimeout(timeout time.Duration)
- func (o *ReadCollectionParams) WithContext(ctx context.Context) *ReadCollectionParams
- func (o *ReadCollectionParams) WithDefaults() *ReadCollectionParams
- func (o *ReadCollectionParams) WithHTTPClient(client *http.Client) *ReadCollectionParams
- func (o *ReadCollectionParams) WithSlug(slug string) *ReadCollectionParams
- func (o *ReadCollectionParams) WithTimeout(timeout time.Duration) *ReadCollectionParams
- func (o *ReadCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReadCollectionReader
- type UpdateCollectionBadRequest
- func (o *UpdateCollectionBadRequest) Code() int
- func (o *UpdateCollectionBadRequest) Error() string
- func (o *UpdateCollectionBadRequest) GetPayload() *models.APIError
- func (o *UpdateCollectionBadRequest) IsClientError() bool
- func (o *UpdateCollectionBadRequest) IsCode(code int) bool
- func (o *UpdateCollectionBadRequest) IsRedirect() bool
- func (o *UpdateCollectionBadRequest) IsServerError() bool
- func (o *UpdateCollectionBadRequest) IsSuccess() bool
- func (o *UpdateCollectionBadRequest) String() string
- type UpdateCollectionBody
- type UpdateCollectionConflict
- func (o *UpdateCollectionConflict) Code() int
- func (o *UpdateCollectionConflict) Error() string
- func (o *UpdateCollectionConflict) GetPayload() *models.APIError
- func (o *UpdateCollectionConflict) IsClientError() bool
- func (o *UpdateCollectionConflict) IsCode(code int) bool
- func (o *UpdateCollectionConflict) IsRedirect() bool
- func (o *UpdateCollectionConflict) IsServerError() bool
- func (o *UpdateCollectionConflict) IsSuccess() bool
- func (o *UpdateCollectionConflict) String() string
- type UpdateCollectionDefault
- func (o *UpdateCollectionDefault) Code() int
- func (o *UpdateCollectionDefault) Error() string
- func (o *UpdateCollectionDefault) GetPayload() models.GenericError
- func (o *UpdateCollectionDefault) IsClientError() bool
- func (o *UpdateCollectionDefault) IsCode(code int) bool
- func (o *UpdateCollectionDefault) IsRedirect() bool
- func (o *UpdateCollectionDefault) IsServerError() bool
- func (o *UpdateCollectionDefault) IsSuccess() bool
- func (o *UpdateCollectionDefault) String() string
- type UpdateCollectionInternalServerError
- func (o *UpdateCollectionInternalServerError) Code() int
- func (o *UpdateCollectionInternalServerError) Error() string
- func (o *UpdateCollectionInternalServerError) GetPayload() *models.APIError
- func (o *UpdateCollectionInternalServerError) IsClientError() bool
- func (o *UpdateCollectionInternalServerError) IsCode(code int) bool
- func (o *UpdateCollectionInternalServerError) IsRedirect() bool
- func (o *UpdateCollectionInternalServerError) IsServerError() bool
- func (o *UpdateCollectionInternalServerError) IsSuccess() bool
- func (o *UpdateCollectionInternalServerError) String() string
- type UpdateCollectionNotFound
- func (o *UpdateCollectionNotFound) Code() int
- func (o *UpdateCollectionNotFound) Error() string
- func (o *UpdateCollectionNotFound) GetPayload() *models.APIError
- func (o *UpdateCollectionNotFound) IsClientError() bool
- func (o *UpdateCollectionNotFound) IsCode(code int) bool
- func (o *UpdateCollectionNotFound) IsRedirect() bool
- func (o *UpdateCollectionNotFound) IsServerError() bool
- func (o *UpdateCollectionNotFound) IsSuccess() bool
- func (o *UpdateCollectionNotFound) String() string
- type UpdateCollectionOK
- func (o *UpdateCollectionOK) Code() int
- func (o *UpdateCollectionOK) Error() string
- func (o *UpdateCollectionOK) GetPayload() *models.Configv1UpdateCollectionResponse
- func (o *UpdateCollectionOK) IsClientError() bool
- func (o *UpdateCollectionOK) IsCode(code int) bool
- func (o *UpdateCollectionOK) IsRedirect() bool
- func (o *UpdateCollectionOK) IsServerError() bool
- func (o *UpdateCollectionOK) IsSuccess() bool
- func (o *UpdateCollectionOK) String() string
- type UpdateCollectionParams
- func NewUpdateCollectionParams() *UpdateCollectionParams
- func NewUpdateCollectionParamsWithContext(ctx context.Context) *UpdateCollectionParams
- func NewUpdateCollectionParamsWithHTTPClient(client *http.Client) *UpdateCollectionParams
- func NewUpdateCollectionParamsWithTimeout(timeout time.Duration) *UpdateCollectionParams
- func (o *UpdateCollectionParams) SetBody(body UpdateCollectionBody)
- func (o *UpdateCollectionParams) SetContext(ctx context.Context)
- func (o *UpdateCollectionParams) SetDefaults()
- func (o *UpdateCollectionParams) SetHTTPClient(client *http.Client)
- func (o *UpdateCollectionParams) SetSlug(slug string)
- func (o *UpdateCollectionParams) SetTimeout(timeout time.Duration)
- func (o *UpdateCollectionParams) WithBody(body UpdateCollectionBody) *UpdateCollectionParams
- func (o *UpdateCollectionParams) WithContext(ctx context.Context) *UpdateCollectionParams
- func (o *UpdateCollectionParams) WithDefaults() *UpdateCollectionParams
- func (o *UpdateCollectionParams) WithHTTPClient(client *http.Client) *UpdateCollectionParams
- func (o *UpdateCollectionParams) WithSlug(slug string) *UpdateCollectionParams
- func (o *UpdateCollectionParams) WithTimeout(timeout time.Duration) *UpdateCollectionParams
- func (o *UpdateCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateCollectionReader
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 ¶
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 (o *CreateCollectionBadRequest) Error() string
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 ¶
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 (o *CreateCollectionDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *CreateCollectionInternalServerError) Code() int
Code gets the status code for the create collection internal server error response
func (*CreateCollectionInternalServerError) Error ¶
func (o *CreateCollectionInternalServerError) Error() string
func (*CreateCollectionInternalServerError) GetPayload ¶
func (o *CreateCollectionInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *CreateCollectionInternalServerError) IsCode(code int) bool
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 ¶
func (o *CreateCollectionInternalServerError) IsSuccess() bool
IsSuccess returns true when this create collection internal server error response has a 2xx status code
func (*CreateCollectionInternalServerError) String ¶
func (o *CreateCollectionInternalServerError) String() 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 (o *CreateCollectionOK) GetPayload() *models.Configv1CreateCollectionResponse
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 ¶
func (o *CreateCollectionParams) SetBody(body *models.Configv1CreateCollectionRequest)
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 ¶
func (o *CreateCollectionParams) WithBody(body *models.Configv1CreateCollectionRequest) *CreateCollectionParams
WithBody adds the body to the create collection params
func (*CreateCollectionParams) WithContext ¶
func (o *CreateCollectionParams) WithContext(ctx context.Context) *CreateCollectionParams
WithContext adds the context to the create collection params
func (*CreateCollectionParams) WithDefaults ¶
func (o *CreateCollectionParams) WithDefaults() *CreateCollectionParams
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 ¶
func (o *CreateCollectionParams) WithTimeout(timeout time.Duration) *CreateCollectionParams
WithTimeout adds the timeout to the create collection params
func (*CreateCollectionParams) WriteToRequest ¶
func (o *CreateCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 (o *DeleteCollectionBadRequest) Error() string
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 (o *DeleteCollectionDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *DeleteCollectionInternalServerError) Code() int
Code gets the status code for the delete collection internal server error response
func (*DeleteCollectionInternalServerError) Error ¶
func (o *DeleteCollectionInternalServerError) Error() string
func (*DeleteCollectionInternalServerError) GetPayload ¶
func (o *DeleteCollectionInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *DeleteCollectionInternalServerError) IsCode(code int) bool
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 ¶
func (o *DeleteCollectionInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete collection internal server error response has a 2xx status code
func (*DeleteCollectionInternalServerError) String ¶
func (o *DeleteCollectionInternalServerError) String() string
type DeleteCollectionNotFound ¶
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 (o *DeleteCollectionOK) GetPayload() models.Configv1DeleteCollectionResponse
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 ¶
func (o *DeleteCollectionParams) WithContext(ctx context.Context) *DeleteCollectionParams
WithContext adds the context to the delete collection params
func (*DeleteCollectionParams) WithDefaults ¶
func (o *DeleteCollectionParams) WithDefaults() *DeleteCollectionParams
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 ¶
func (o *DeleteCollectionParams) WithSlug(slug string) *DeleteCollectionParams
WithSlug adds the slug to the delete collection params
func (*DeleteCollectionParams) WithTimeout ¶
func (o *DeleteCollectionParams) WithTimeout(timeout time.Duration) *DeleteCollectionParams
WithTimeout adds the timeout to the delete collection params
func (*DeleteCollectionParams) WriteToRequest ¶
func (o *DeleteCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
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 ¶
func (o *ListCollectionsInternalServerError) Code() int
Code gets the status code for the list collections internal server error response
func (*ListCollectionsInternalServerError) Error ¶
func (o *ListCollectionsInternalServerError) Error() string
func (*ListCollectionsInternalServerError) GetPayload ¶
func (o *ListCollectionsInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *ListCollectionsInternalServerError) IsCode(code int) bool
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 ¶
func (o *ListCollectionsInternalServerError) IsSuccess() bool
IsSuccess returns true when this list collections internal server error response has a 2xx status code
func (*ListCollectionsInternalServerError) String ¶
func (o *ListCollectionsInternalServerError) String() 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 (o *ListCollectionsOK) GetPayload() *models.Configv1ListCollectionsResponse
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 ¶
func (o *ListCollectionsParams) WithContext(ctx context.Context) *ListCollectionsParams
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 ¶
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 ¶
func (o *ReadCollectionInternalServerError) Code() int
Code gets the status code for the read collection internal server error response
func (*ReadCollectionInternalServerError) Error ¶
func (o *ReadCollectionInternalServerError) Error() string
func (*ReadCollectionInternalServerError) GetPayload ¶
func (o *ReadCollectionInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *ReadCollectionInternalServerError) String() string
type ReadCollectionNotFound ¶
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 (o *ReadCollectionOK) GetPayload() *models.Configv1ReadCollectionResponse
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 ¶
func (o *ReadCollectionParams) WithContext(ctx context.Context) *ReadCollectionParams
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 ¶
func (o *ReadCollectionParams) WithSlug(slug string) *ReadCollectionParams
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 ¶
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 (o *UpdateCollectionBadRequest) Error() string
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 ¶
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
type UpdateCollectionConflict ¶
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 (o *UpdateCollectionDefault) GetPayload() models.GenericError
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 ¶
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 ¶
func (o *UpdateCollectionInternalServerError) Code() int
Code gets the status code for the update collection internal server error response
func (*UpdateCollectionInternalServerError) Error ¶
func (o *UpdateCollectionInternalServerError) Error() string
func (*UpdateCollectionInternalServerError) GetPayload ¶
func (o *UpdateCollectionInternalServerError) GetPayload() *models.APIError
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 ¶
func (o *UpdateCollectionInternalServerError) IsCode(code int) bool
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 ¶
func (o *UpdateCollectionInternalServerError) IsSuccess() bool
IsSuccess returns true when this update collection internal server error response has a 2xx status code
func (*UpdateCollectionInternalServerError) String ¶
func (o *UpdateCollectionInternalServerError) String() string
type UpdateCollectionNotFound ¶
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 (o *UpdateCollectionOK) GetPayload() *models.Configv1UpdateCollectionResponse
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 ¶
func (o *UpdateCollectionParams) SetBody(body UpdateCollectionBody)
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 ¶
func (o *UpdateCollectionParams) WithBody(body UpdateCollectionBody) *UpdateCollectionParams
WithBody adds the body to the update collection params
func (*UpdateCollectionParams) WithContext ¶
func (o *UpdateCollectionParams) WithContext(ctx context.Context) *UpdateCollectionParams
WithContext adds the context to the update collection params
func (*UpdateCollectionParams) WithDefaults ¶
func (o *UpdateCollectionParams) WithDefaults() *UpdateCollectionParams
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 ¶
func (o *UpdateCollectionParams) WithSlug(slug string) *UpdateCollectionParams
WithSlug adds the slug to the update collection params
func (*UpdateCollectionParams) WithTimeout ¶
func (o *UpdateCollectionParams) WithTimeout(timeout time.Duration) *UpdateCollectionParams
WithTimeout adds the timeout to the update collection params
func (*UpdateCollectionParams) WriteToRequest ¶
func (o *UpdateCollectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- collection_client.go
- create_collection_parameters.go
- create_collection_responses.go
- delete_collection_parameters.go
- delete_collection_responses.go
- list_collections_parameters.go
- list_collections_responses.go
- read_collection_parameters.go
- read_collection_responses.go
- update_collection_parameters.go
- update_collection_responses.go