bucket

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 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 bucket API

func (*Client) CreateBucket

func (a *Client) CreateBucket(params *CreateBucketParams, opts ...ClientOption) (*CreateBucketOK, error)

CreateBucket create bucket API

func (*Client) DeleteBucket

func (a *Client) DeleteBucket(params *DeleteBucketParams, opts ...ClientOption) (*DeleteBucketOK, error)

DeleteBucket delete bucket API

func (*Client) ListBuckets

func (a *Client) ListBuckets(params *ListBucketsParams, opts ...ClientOption) (*ListBucketsOK, error)

ListBuckets list buckets API

func (*Client) ReadBucket

func (a *Client) ReadBucket(params *ReadBucketParams, opts ...ClientOption) (*ReadBucketOK, error)

ReadBucket read bucket API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateBucket

func (a *Client) UpdateBucket(params *UpdateBucketParams, opts ...ClientOption) (*UpdateBucketOK, error)

UpdateBucket update bucket API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateBucket(params *CreateBucketParams, opts ...ClientOption) (*CreateBucketOK, error)

	DeleteBucket(params *DeleteBucketParams, opts ...ClientOption) (*DeleteBucketOK, error)

	ListBuckets(params *ListBucketsParams, opts ...ClientOption) (*ListBucketsOK, error)

	ReadBucket(params *ReadBucketParams, opts ...ClientOption) (*ReadBucketOK, error)

	UpdateBucket(params *UpdateBucketParams, opts ...ClientOption) (*UpdateBucketOK, 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 bucket API client.

type CreateBucketBadRequest

type CreateBucketBadRequest struct {
	Payload *models.APIError
}

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

Cannot create the Bucket because the request is invalid.

func NewCreateBucketBadRequest

func NewCreateBucketBadRequest() *CreateBucketBadRequest

NewCreateBucketBadRequest creates a CreateBucketBadRequest with default headers values

func (*CreateBucketBadRequest) Code

func (o *CreateBucketBadRequest) Code() int

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

func (*CreateBucketBadRequest) Error

func (o *CreateBucketBadRequest) Error() string

func (*CreateBucketBadRequest) GetPayload

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

func (*CreateBucketBadRequest) IsClientError

func (o *CreateBucketBadRequest) IsClientError() bool

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

func (*CreateBucketBadRequest) IsCode

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

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

func (*CreateBucketBadRequest) IsRedirect

func (o *CreateBucketBadRequest) IsRedirect() bool

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

func (*CreateBucketBadRequest) IsServerError

func (o *CreateBucketBadRequest) IsServerError() bool

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

func (*CreateBucketBadRequest) IsSuccess

func (o *CreateBucketBadRequest) IsSuccess() bool

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

func (*CreateBucketBadRequest) String

func (o *CreateBucketBadRequest) String() string

type CreateBucketConflict

type CreateBucketConflict struct {
	Payload *models.APIError
}

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

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

func NewCreateBucketConflict

func NewCreateBucketConflict() *CreateBucketConflict

NewCreateBucketConflict creates a CreateBucketConflict with default headers values

func (*CreateBucketConflict) Code

func (o *CreateBucketConflict) Code() int

Code gets the status code for the create bucket conflict response

func (*CreateBucketConflict) Error

func (o *CreateBucketConflict) Error() string

func (*CreateBucketConflict) GetPayload

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

func (*CreateBucketConflict) IsClientError

func (o *CreateBucketConflict) IsClientError() bool

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

func (*CreateBucketConflict) IsCode

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

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

func (*CreateBucketConflict) IsRedirect

func (o *CreateBucketConflict) IsRedirect() bool

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

func (*CreateBucketConflict) IsServerError

func (o *CreateBucketConflict) IsServerError() bool

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

func (*CreateBucketConflict) IsSuccess

func (o *CreateBucketConflict) IsSuccess() bool

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

func (*CreateBucketConflict) String

func (o *CreateBucketConflict) String() string

type CreateBucketDefault

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

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

An undefined error response.

func NewCreateBucketDefault

func NewCreateBucketDefault(code int) *CreateBucketDefault

NewCreateBucketDefault creates a CreateBucketDefault with default headers values

func (*CreateBucketDefault) Code

func (o *CreateBucketDefault) Code() int

Code gets the status code for the create bucket default response

func (*CreateBucketDefault) Error

func (o *CreateBucketDefault) Error() string

func (*CreateBucketDefault) GetPayload

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

func (*CreateBucketDefault) IsClientError

func (o *CreateBucketDefault) IsClientError() bool

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

func (*CreateBucketDefault) IsCode

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

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

func (*CreateBucketDefault) IsRedirect

func (o *CreateBucketDefault) IsRedirect() bool

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

func (*CreateBucketDefault) IsServerError

func (o *CreateBucketDefault) IsServerError() bool

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

func (*CreateBucketDefault) IsSuccess

func (o *CreateBucketDefault) IsSuccess() bool

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

func (*CreateBucketDefault) String

func (o *CreateBucketDefault) String() string

type CreateBucketInternalServerError

type CreateBucketInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewCreateBucketInternalServerError

func NewCreateBucketInternalServerError() *CreateBucketInternalServerError

NewCreateBucketInternalServerError creates a CreateBucketInternalServerError with default headers values

func (*CreateBucketInternalServerError) Code

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

func (*CreateBucketInternalServerError) Error

func (*CreateBucketInternalServerError) GetPayload

func (*CreateBucketInternalServerError) IsClientError

func (o *CreateBucketInternalServerError) IsClientError() bool

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

func (*CreateBucketInternalServerError) IsCode

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

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

func (*CreateBucketInternalServerError) IsRedirect

func (o *CreateBucketInternalServerError) IsRedirect() bool

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

func (*CreateBucketInternalServerError) IsServerError

func (o *CreateBucketInternalServerError) IsServerError() bool

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

func (*CreateBucketInternalServerError) IsSuccess

func (o *CreateBucketInternalServerError) IsSuccess() bool

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

func (*CreateBucketInternalServerError) String

type CreateBucketOK

type CreateBucketOK struct {
	Payload *models.Configv1CreateBucketResponse
}

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

A successful response containing the created Bucket.

func NewCreateBucketOK

func NewCreateBucketOK() *CreateBucketOK

NewCreateBucketOK creates a CreateBucketOK with default headers values

func (*CreateBucketOK) Code

func (o *CreateBucketOK) Code() int

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

func (*CreateBucketOK) Error

func (o *CreateBucketOK) Error() string

func (*CreateBucketOK) GetPayload

func (*CreateBucketOK) IsClientError

func (o *CreateBucketOK) IsClientError() bool

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

func (*CreateBucketOK) IsCode

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

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

func (*CreateBucketOK) IsRedirect

func (o *CreateBucketOK) IsRedirect() bool

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

func (*CreateBucketOK) IsServerError

func (o *CreateBucketOK) IsServerError() bool

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

func (*CreateBucketOK) IsSuccess

func (o *CreateBucketOK) IsSuccess() bool

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

func (*CreateBucketOK) String

func (o *CreateBucketOK) String() string

type CreateBucketParams

type CreateBucketParams struct {

	// Body.
	Body *models.Configv1CreateBucketRequest

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

CreateBucketParams contains all the parameters to send to the API endpoint

for the create bucket operation.

Typically these are written to a http.Request.

func NewCreateBucketParams

func NewCreateBucketParams() *CreateBucketParams

NewCreateBucketParams creates a new CreateBucketParams 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 NewCreateBucketParamsWithContext

func NewCreateBucketParamsWithContext(ctx context.Context) *CreateBucketParams

NewCreateBucketParamsWithContext creates a new CreateBucketParams object with the ability to set a context for a request.

func NewCreateBucketParamsWithHTTPClient

func NewCreateBucketParamsWithHTTPClient(client *http.Client) *CreateBucketParams

NewCreateBucketParamsWithHTTPClient creates a new CreateBucketParams object with the ability to set a custom HTTPClient for a request.

func NewCreateBucketParamsWithTimeout

func NewCreateBucketParamsWithTimeout(timeout time.Duration) *CreateBucketParams

NewCreateBucketParamsWithTimeout creates a new CreateBucketParams object with the ability to set a timeout on a request.

func (*CreateBucketParams) SetBody

SetBody adds the body to the create bucket params

func (*CreateBucketParams) SetContext

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

SetContext adds the context to the create bucket params

func (*CreateBucketParams) SetDefaults

func (o *CreateBucketParams) SetDefaults()

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

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

func (*CreateBucketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create bucket params

func (*CreateBucketParams) SetTimeout

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

SetTimeout adds the timeout to the create bucket params

func (*CreateBucketParams) WithBody

WithBody adds the body to the create bucket params

func (*CreateBucketParams) WithContext

WithContext adds the context to the create bucket params

func (*CreateBucketParams) WithDefaults

func (o *CreateBucketParams) WithDefaults() *CreateBucketParams

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

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

func (*CreateBucketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create bucket params

func (*CreateBucketParams) WithTimeout

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

WithTimeout adds the timeout to the create bucket params

func (*CreateBucketParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateBucketReader

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

CreateBucketReader is a Reader for the CreateBucket structure.

func (*CreateBucketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteBucketBadRequest

type DeleteBucketBadRequest struct {
	Payload *models.APIError
}

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

Cannot delete the Bucket because it is in use.

func NewDeleteBucketBadRequest

func NewDeleteBucketBadRequest() *DeleteBucketBadRequest

NewDeleteBucketBadRequest creates a DeleteBucketBadRequest with default headers values

func (*DeleteBucketBadRequest) Code

func (o *DeleteBucketBadRequest) Code() int

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

func (*DeleteBucketBadRequest) Error

func (o *DeleteBucketBadRequest) Error() string

func (*DeleteBucketBadRequest) GetPayload

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

func (*DeleteBucketBadRequest) IsClientError

func (o *DeleteBucketBadRequest) IsClientError() bool

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

func (*DeleteBucketBadRequest) IsCode

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

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

func (*DeleteBucketBadRequest) IsRedirect

func (o *DeleteBucketBadRequest) IsRedirect() bool

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

func (*DeleteBucketBadRequest) IsServerError

func (o *DeleteBucketBadRequest) IsServerError() bool

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

func (*DeleteBucketBadRequest) IsSuccess

func (o *DeleteBucketBadRequest) IsSuccess() bool

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

func (*DeleteBucketBadRequest) String

func (o *DeleteBucketBadRequest) String() string

type DeleteBucketDefault

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

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

An undefined error response.

func NewDeleteBucketDefault

func NewDeleteBucketDefault(code int) *DeleteBucketDefault

NewDeleteBucketDefault creates a DeleteBucketDefault with default headers values

func (*DeleteBucketDefault) Code

func (o *DeleteBucketDefault) Code() int

Code gets the status code for the delete bucket default response

func (*DeleteBucketDefault) Error

func (o *DeleteBucketDefault) Error() string

func (*DeleteBucketDefault) GetPayload

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

func (*DeleteBucketDefault) IsClientError

func (o *DeleteBucketDefault) IsClientError() bool

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

func (*DeleteBucketDefault) IsCode

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

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

func (*DeleteBucketDefault) IsRedirect

func (o *DeleteBucketDefault) IsRedirect() bool

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

func (*DeleteBucketDefault) IsServerError

func (o *DeleteBucketDefault) IsServerError() bool

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

func (*DeleteBucketDefault) IsSuccess

func (o *DeleteBucketDefault) IsSuccess() bool

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

func (*DeleteBucketDefault) String

func (o *DeleteBucketDefault) String() string

type DeleteBucketInternalServerError

type DeleteBucketInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewDeleteBucketInternalServerError

func NewDeleteBucketInternalServerError() *DeleteBucketInternalServerError

NewDeleteBucketInternalServerError creates a DeleteBucketInternalServerError with default headers values

func (*DeleteBucketInternalServerError) Code

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

func (*DeleteBucketInternalServerError) Error

func (*DeleteBucketInternalServerError) GetPayload

func (*DeleteBucketInternalServerError) IsClientError

func (o *DeleteBucketInternalServerError) IsClientError() bool

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

func (*DeleteBucketInternalServerError) IsCode

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

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

func (*DeleteBucketInternalServerError) IsRedirect

func (o *DeleteBucketInternalServerError) IsRedirect() bool

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

func (*DeleteBucketInternalServerError) IsServerError

func (o *DeleteBucketInternalServerError) IsServerError() bool

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

func (*DeleteBucketInternalServerError) IsSuccess

func (o *DeleteBucketInternalServerError) IsSuccess() bool

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

func (*DeleteBucketInternalServerError) String

type DeleteBucketNotFound

type DeleteBucketNotFound struct {
	Payload *models.APIError
}

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

Cannot delete the Bucket because the slug does not exist.

func NewDeleteBucketNotFound

func NewDeleteBucketNotFound() *DeleteBucketNotFound

NewDeleteBucketNotFound creates a DeleteBucketNotFound with default headers values

func (*DeleteBucketNotFound) Code

func (o *DeleteBucketNotFound) Code() int

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

func (*DeleteBucketNotFound) Error

func (o *DeleteBucketNotFound) Error() string

func (*DeleteBucketNotFound) GetPayload

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

func (*DeleteBucketNotFound) IsClientError

func (o *DeleteBucketNotFound) IsClientError() bool

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

func (*DeleteBucketNotFound) IsCode

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

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

func (*DeleteBucketNotFound) IsRedirect

func (o *DeleteBucketNotFound) IsRedirect() bool

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

func (*DeleteBucketNotFound) IsServerError

func (o *DeleteBucketNotFound) IsServerError() bool

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

func (*DeleteBucketNotFound) IsSuccess

func (o *DeleteBucketNotFound) IsSuccess() bool

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

func (*DeleteBucketNotFound) String

func (o *DeleteBucketNotFound) String() string

type DeleteBucketOK

type DeleteBucketOK struct {
	Payload *models.Configv1DeleteBucketResponse
}

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

A successful response.

func NewDeleteBucketOK

func NewDeleteBucketOK() *DeleteBucketOK

NewDeleteBucketOK creates a DeleteBucketOK with default headers values

func (*DeleteBucketOK) Code

func (o *DeleteBucketOK) Code() int

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

func (*DeleteBucketOK) Error

func (o *DeleteBucketOK) Error() string

func (*DeleteBucketOK) GetPayload

func (*DeleteBucketOK) IsClientError

func (o *DeleteBucketOK) IsClientError() bool

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

func (*DeleteBucketOK) IsCode

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

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

func (*DeleteBucketOK) IsRedirect

func (o *DeleteBucketOK) IsRedirect() bool

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

func (*DeleteBucketOK) IsServerError

func (o *DeleteBucketOK) IsServerError() bool

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

func (*DeleteBucketOK) IsSuccess

func (o *DeleteBucketOK) IsSuccess() bool

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

func (*DeleteBucketOK) String

func (o *DeleteBucketOK) String() string

type DeleteBucketParams

type DeleteBucketParams struct {

	/* ForceDelete.

	     force_delete indicates deletion of the bucket and all resources that reference the bucket.
	This includes monitors, dashboards, notification policies, recording rules, and alerts.
	*/
	ForceDelete *bool

	// Slug.
	Slug string

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

DeleteBucketParams contains all the parameters to send to the API endpoint

for the delete bucket operation.

Typically these are written to a http.Request.

func NewDeleteBucketParams

func NewDeleteBucketParams() *DeleteBucketParams

NewDeleteBucketParams creates a new DeleteBucketParams 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 NewDeleteBucketParamsWithContext

func NewDeleteBucketParamsWithContext(ctx context.Context) *DeleteBucketParams

NewDeleteBucketParamsWithContext creates a new DeleteBucketParams object with the ability to set a context for a request.

func NewDeleteBucketParamsWithHTTPClient

func NewDeleteBucketParamsWithHTTPClient(client *http.Client) *DeleteBucketParams

NewDeleteBucketParamsWithHTTPClient creates a new DeleteBucketParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteBucketParamsWithTimeout

func NewDeleteBucketParamsWithTimeout(timeout time.Duration) *DeleteBucketParams

NewDeleteBucketParamsWithTimeout creates a new DeleteBucketParams object with the ability to set a timeout on a request.

func (*DeleteBucketParams) SetContext

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

SetContext adds the context to the delete bucket params

func (*DeleteBucketParams) SetDefaults

func (o *DeleteBucketParams) SetDefaults()

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

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

func (*DeleteBucketParams) SetForceDelete

func (o *DeleteBucketParams) SetForceDelete(forceDelete *bool)

SetForceDelete adds the forceDelete to the delete bucket params

func (*DeleteBucketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete bucket params

func (*DeleteBucketParams) SetSlug

func (o *DeleteBucketParams) SetSlug(slug string)

SetSlug adds the slug to the delete bucket params

func (*DeleteBucketParams) SetTimeout

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

SetTimeout adds the timeout to the delete bucket params

func (*DeleteBucketParams) WithContext

WithContext adds the context to the delete bucket params

func (*DeleteBucketParams) WithDefaults

func (o *DeleteBucketParams) WithDefaults() *DeleteBucketParams

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

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

func (*DeleteBucketParams) WithForceDelete

func (o *DeleteBucketParams) WithForceDelete(forceDelete *bool) *DeleteBucketParams

WithForceDelete adds the forceDelete to the delete bucket params

func (*DeleteBucketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete bucket params

func (*DeleteBucketParams) WithSlug

func (o *DeleteBucketParams) WithSlug(slug string) *DeleteBucketParams

WithSlug adds the slug to the delete bucket params

func (*DeleteBucketParams) WithTimeout

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

WithTimeout adds the timeout to the delete bucket params

func (*DeleteBucketParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteBucketReader

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

DeleteBucketReader is a Reader for the DeleteBucket structure.

func (*DeleteBucketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListBucketsDefault

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

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

An undefined error response.

func NewListBucketsDefault

func NewListBucketsDefault(code int) *ListBucketsDefault

NewListBucketsDefault creates a ListBucketsDefault with default headers values

func (*ListBucketsDefault) Code

func (o *ListBucketsDefault) Code() int

Code gets the status code for the list buckets default response

func (*ListBucketsDefault) Error

func (o *ListBucketsDefault) Error() string

func (*ListBucketsDefault) GetPayload

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

func (*ListBucketsDefault) IsClientError

func (o *ListBucketsDefault) IsClientError() bool

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

func (*ListBucketsDefault) IsCode

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

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

func (*ListBucketsDefault) IsRedirect

func (o *ListBucketsDefault) IsRedirect() bool

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

func (*ListBucketsDefault) IsServerError

func (o *ListBucketsDefault) IsServerError() bool

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

func (*ListBucketsDefault) IsSuccess

func (o *ListBucketsDefault) IsSuccess() bool

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

func (*ListBucketsDefault) String

func (o *ListBucketsDefault) String() string

type ListBucketsInternalServerError

type ListBucketsInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewListBucketsInternalServerError

func NewListBucketsInternalServerError() *ListBucketsInternalServerError

NewListBucketsInternalServerError creates a ListBucketsInternalServerError with default headers values

func (*ListBucketsInternalServerError) Code

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

func (*ListBucketsInternalServerError) Error

func (*ListBucketsInternalServerError) GetPayload

func (*ListBucketsInternalServerError) IsClientError

func (o *ListBucketsInternalServerError) IsClientError() bool

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

func (*ListBucketsInternalServerError) IsCode

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

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

func (*ListBucketsInternalServerError) IsRedirect

func (o *ListBucketsInternalServerError) IsRedirect() bool

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

func (*ListBucketsInternalServerError) IsServerError

func (o *ListBucketsInternalServerError) IsServerError() bool

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

func (*ListBucketsInternalServerError) IsSuccess

func (o *ListBucketsInternalServerError) IsSuccess() bool

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

func (*ListBucketsInternalServerError) String

type ListBucketsOK

type ListBucketsOK struct {
	Payload *models.Configv1ListBucketsResponse
}

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

A successful response.

func NewListBucketsOK

func NewListBucketsOK() *ListBucketsOK

NewListBucketsOK creates a ListBucketsOK with default headers values

func (*ListBucketsOK) Code

func (o *ListBucketsOK) Code() int

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

func (*ListBucketsOK) Error

func (o *ListBucketsOK) Error() string

func (*ListBucketsOK) GetPayload

func (*ListBucketsOK) IsClientError

func (o *ListBucketsOK) IsClientError() bool

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

func (*ListBucketsOK) IsCode

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

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

func (*ListBucketsOK) IsRedirect

func (o *ListBucketsOK) IsRedirect() bool

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

func (*ListBucketsOK) IsServerError

func (o *ListBucketsOK) IsServerError() bool

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

func (*ListBucketsOK) IsSuccess

func (o *ListBucketsOK) IsSuccess() bool

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

func (*ListBucketsOK) String

func (o *ListBucketsOK) String() string

type ListBucketsParams

type ListBucketsParams struct {

	/* Names.

	   Filters results by name, where any Bucket with a matching name in the given list (and matches all other filters) is returned.
	*/
	Names []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 Bucket with a matching slug in the given list (and matches all other filters) is returned.
	*/
	Slugs []string

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

ListBucketsParams contains all the parameters to send to the API endpoint

for the list buckets operation.

Typically these are written to a http.Request.

func NewListBucketsParams

func NewListBucketsParams() *ListBucketsParams

NewListBucketsParams creates a new ListBucketsParams 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 NewListBucketsParamsWithContext

func NewListBucketsParamsWithContext(ctx context.Context) *ListBucketsParams

NewListBucketsParamsWithContext creates a new ListBucketsParams object with the ability to set a context for a request.

func NewListBucketsParamsWithHTTPClient

func NewListBucketsParamsWithHTTPClient(client *http.Client) *ListBucketsParams

NewListBucketsParamsWithHTTPClient creates a new ListBucketsParams object with the ability to set a custom HTTPClient for a request.

func NewListBucketsParamsWithTimeout

func NewListBucketsParamsWithTimeout(timeout time.Duration) *ListBucketsParams

NewListBucketsParamsWithTimeout creates a new ListBucketsParams object with the ability to set a timeout on a request.

func (*ListBucketsParams) SetContext

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

SetContext adds the context to the list buckets params

func (*ListBucketsParams) SetDefaults

func (o *ListBucketsParams) SetDefaults()

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

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

func (*ListBucketsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list buckets params

func (*ListBucketsParams) SetNames

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

SetNames adds the names to the list buckets params

func (*ListBucketsParams) SetPageMaxSize

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

SetPageMaxSize adds the pageMaxSize to the list buckets params

func (*ListBucketsParams) SetPageToken

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

SetPageToken adds the pageToken to the list buckets params

func (*ListBucketsParams) SetSlugs

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

SetSlugs adds the slugs to the list buckets params

func (*ListBucketsParams) SetTimeout

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

SetTimeout adds the timeout to the list buckets params

func (*ListBucketsParams) WithContext

func (o *ListBucketsParams) WithContext(ctx context.Context) *ListBucketsParams

WithContext adds the context to the list buckets params

func (*ListBucketsParams) WithDefaults

func (o *ListBucketsParams) WithDefaults() *ListBucketsParams

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

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

func (*ListBucketsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list buckets params

func (*ListBucketsParams) WithNames

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

WithNames adds the names to the list buckets params

func (*ListBucketsParams) WithPageMaxSize

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

WithPageMaxSize adds the pageMaxSize to the list buckets params

func (*ListBucketsParams) WithPageToken

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

WithPageToken adds the pageToken to the list buckets params

func (*ListBucketsParams) WithSlugs

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

WithSlugs adds the slugs to the list buckets params

func (*ListBucketsParams) WithTimeout

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

WithTimeout adds the timeout to the list buckets params

func (*ListBucketsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListBucketsReader

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

ListBucketsReader is a Reader for the ListBuckets structure.

func (*ListBucketsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReadBucketDefault

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

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

An undefined error response.

func NewReadBucketDefault

func NewReadBucketDefault(code int) *ReadBucketDefault

NewReadBucketDefault creates a ReadBucketDefault with default headers values

func (*ReadBucketDefault) Code

func (o *ReadBucketDefault) Code() int

Code gets the status code for the read bucket default response

func (*ReadBucketDefault) Error

func (o *ReadBucketDefault) Error() string

func (*ReadBucketDefault) GetPayload

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

func (*ReadBucketDefault) IsClientError

func (o *ReadBucketDefault) IsClientError() bool

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

func (*ReadBucketDefault) IsCode

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

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

func (*ReadBucketDefault) IsRedirect

func (o *ReadBucketDefault) IsRedirect() bool

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

func (*ReadBucketDefault) IsServerError

func (o *ReadBucketDefault) IsServerError() bool

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

func (*ReadBucketDefault) IsSuccess

func (o *ReadBucketDefault) IsSuccess() bool

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

func (*ReadBucketDefault) String

func (o *ReadBucketDefault) String() string

type ReadBucketInternalServerError

type ReadBucketInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewReadBucketInternalServerError

func NewReadBucketInternalServerError() *ReadBucketInternalServerError

NewReadBucketInternalServerError creates a ReadBucketInternalServerError with default headers values

func (*ReadBucketInternalServerError) Code

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

func (*ReadBucketInternalServerError) Error

func (*ReadBucketInternalServerError) GetPayload

func (*ReadBucketInternalServerError) IsClientError

func (o *ReadBucketInternalServerError) IsClientError() bool

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

func (*ReadBucketInternalServerError) IsCode

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

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

func (*ReadBucketInternalServerError) IsRedirect

func (o *ReadBucketInternalServerError) IsRedirect() bool

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

func (*ReadBucketInternalServerError) IsServerError

func (o *ReadBucketInternalServerError) IsServerError() bool

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

func (*ReadBucketInternalServerError) IsSuccess

func (o *ReadBucketInternalServerError) IsSuccess() bool

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

func (*ReadBucketInternalServerError) String

type ReadBucketNotFound

type ReadBucketNotFound struct {
	Payload *models.APIError
}

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

Cannot read the Bucket because the slug does not exist.

func NewReadBucketNotFound

func NewReadBucketNotFound() *ReadBucketNotFound

NewReadBucketNotFound creates a ReadBucketNotFound with default headers values

func (*ReadBucketNotFound) Code

func (o *ReadBucketNotFound) Code() int

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

func (*ReadBucketNotFound) Error

func (o *ReadBucketNotFound) Error() string

func (*ReadBucketNotFound) GetPayload

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

func (*ReadBucketNotFound) IsClientError

func (o *ReadBucketNotFound) IsClientError() bool

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

func (*ReadBucketNotFound) IsCode

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

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

func (*ReadBucketNotFound) IsRedirect

func (o *ReadBucketNotFound) IsRedirect() bool

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

func (*ReadBucketNotFound) IsServerError

func (o *ReadBucketNotFound) IsServerError() bool

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

func (*ReadBucketNotFound) IsSuccess

func (o *ReadBucketNotFound) IsSuccess() bool

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

func (*ReadBucketNotFound) String

func (o *ReadBucketNotFound) String() string

type ReadBucketOK

type ReadBucketOK struct {
	Payload *models.Configv1ReadBucketResponse
}

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

A successful response.

func NewReadBucketOK

func NewReadBucketOK() *ReadBucketOK

NewReadBucketOK creates a ReadBucketOK with default headers values

func (*ReadBucketOK) Code

func (o *ReadBucketOK) Code() int

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

func (*ReadBucketOK) Error

func (o *ReadBucketOK) Error() string

func (*ReadBucketOK) GetPayload

func (*ReadBucketOK) IsClientError

func (o *ReadBucketOK) IsClientError() bool

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

func (*ReadBucketOK) IsCode

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

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

func (*ReadBucketOK) IsRedirect

func (o *ReadBucketOK) IsRedirect() bool

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

func (*ReadBucketOK) IsServerError

func (o *ReadBucketOK) IsServerError() bool

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

func (*ReadBucketOK) IsSuccess

func (o *ReadBucketOK) IsSuccess() bool

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

func (*ReadBucketOK) String

func (o *ReadBucketOK) String() string

type ReadBucketParams

type ReadBucketParams struct {

	// Slug.
	Slug string

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

ReadBucketParams contains all the parameters to send to the API endpoint

for the read bucket operation.

Typically these are written to a http.Request.

func NewReadBucketParams

func NewReadBucketParams() *ReadBucketParams

NewReadBucketParams creates a new ReadBucketParams 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 NewReadBucketParamsWithContext

func NewReadBucketParamsWithContext(ctx context.Context) *ReadBucketParams

NewReadBucketParamsWithContext creates a new ReadBucketParams object with the ability to set a context for a request.

func NewReadBucketParamsWithHTTPClient

func NewReadBucketParamsWithHTTPClient(client *http.Client) *ReadBucketParams

NewReadBucketParamsWithHTTPClient creates a new ReadBucketParams object with the ability to set a custom HTTPClient for a request.

func NewReadBucketParamsWithTimeout

func NewReadBucketParamsWithTimeout(timeout time.Duration) *ReadBucketParams

NewReadBucketParamsWithTimeout creates a new ReadBucketParams object with the ability to set a timeout on a request.

func (*ReadBucketParams) SetContext

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

SetContext adds the context to the read bucket params

func (*ReadBucketParams) SetDefaults

func (o *ReadBucketParams) SetDefaults()

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

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

func (*ReadBucketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the read bucket params

func (*ReadBucketParams) SetSlug

func (o *ReadBucketParams) SetSlug(slug string)

SetSlug adds the slug to the read bucket params

func (*ReadBucketParams) SetTimeout

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

SetTimeout adds the timeout to the read bucket params

func (*ReadBucketParams) WithContext

func (o *ReadBucketParams) WithContext(ctx context.Context) *ReadBucketParams

WithContext adds the context to the read bucket params

func (*ReadBucketParams) WithDefaults

func (o *ReadBucketParams) WithDefaults() *ReadBucketParams

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

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

func (*ReadBucketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the read bucket params

func (*ReadBucketParams) WithSlug

func (o *ReadBucketParams) WithSlug(slug string) *ReadBucketParams

WithSlug adds the slug to the read bucket params

func (*ReadBucketParams) WithTimeout

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

WithTimeout adds the timeout to the read bucket params

func (*ReadBucketParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ReadBucketReader

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

ReadBucketReader is a Reader for the ReadBucket structure.

func (*ReadBucketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateBucketBadRequest

type UpdateBucketBadRequest struct {
	Payload *models.APIError
}

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

Cannot update the Bucket because the request is invalid.

func NewUpdateBucketBadRequest

func NewUpdateBucketBadRequest() *UpdateBucketBadRequest

NewUpdateBucketBadRequest creates a UpdateBucketBadRequest with default headers values

func (*UpdateBucketBadRequest) Code

func (o *UpdateBucketBadRequest) Code() int

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

func (*UpdateBucketBadRequest) Error

func (o *UpdateBucketBadRequest) Error() string

func (*UpdateBucketBadRequest) GetPayload

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

func (*UpdateBucketBadRequest) IsClientError

func (o *UpdateBucketBadRequest) IsClientError() bool

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

func (*UpdateBucketBadRequest) IsCode

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

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

func (*UpdateBucketBadRequest) IsRedirect

func (o *UpdateBucketBadRequest) IsRedirect() bool

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

func (*UpdateBucketBadRequest) IsServerError

func (o *UpdateBucketBadRequest) IsServerError() bool

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

func (*UpdateBucketBadRequest) IsSuccess

func (o *UpdateBucketBadRequest) IsSuccess() bool

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

func (*UpdateBucketBadRequest) String

func (o *UpdateBucketBadRequest) String() string

type UpdateBucketConflict

type UpdateBucketConflict struct {
	Payload *models.APIError
}

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

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

func NewUpdateBucketConflict

func NewUpdateBucketConflict() *UpdateBucketConflict

NewUpdateBucketConflict creates a UpdateBucketConflict with default headers values

func (*UpdateBucketConflict) Code

func (o *UpdateBucketConflict) Code() int

Code gets the status code for the update bucket conflict response

func (*UpdateBucketConflict) Error

func (o *UpdateBucketConflict) Error() string

func (*UpdateBucketConflict) GetPayload

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

func (*UpdateBucketConflict) IsClientError

func (o *UpdateBucketConflict) IsClientError() bool

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

func (*UpdateBucketConflict) IsCode

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

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

func (*UpdateBucketConflict) IsRedirect

func (o *UpdateBucketConflict) IsRedirect() bool

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

func (*UpdateBucketConflict) IsServerError

func (o *UpdateBucketConflict) IsServerError() bool

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

func (*UpdateBucketConflict) IsSuccess

func (o *UpdateBucketConflict) IsSuccess() bool

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

func (*UpdateBucketConflict) String

func (o *UpdateBucketConflict) String() string

type UpdateBucketDefault

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

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

An undefined error response.

func NewUpdateBucketDefault

func NewUpdateBucketDefault(code int) *UpdateBucketDefault

NewUpdateBucketDefault creates a UpdateBucketDefault with default headers values

func (*UpdateBucketDefault) Code

func (o *UpdateBucketDefault) Code() int

Code gets the status code for the update bucket default response

func (*UpdateBucketDefault) Error

func (o *UpdateBucketDefault) Error() string

func (*UpdateBucketDefault) GetPayload

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

func (*UpdateBucketDefault) IsClientError

func (o *UpdateBucketDefault) IsClientError() bool

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

func (*UpdateBucketDefault) IsCode

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

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

func (*UpdateBucketDefault) IsRedirect

func (o *UpdateBucketDefault) IsRedirect() bool

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

func (*UpdateBucketDefault) IsServerError

func (o *UpdateBucketDefault) IsServerError() bool

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

func (*UpdateBucketDefault) IsSuccess

func (o *UpdateBucketDefault) IsSuccess() bool

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

func (*UpdateBucketDefault) String

func (o *UpdateBucketDefault) String() string

type UpdateBucketInternalServerError

type UpdateBucketInternalServerError struct {
	Payload *models.APIError
}

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

An unexpected error response.

func NewUpdateBucketInternalServerError

func NewUpdateBucketInternalServerError() *UpdateBucketInternalServerError

NewUpdateBucketInternalServerError creates a UpdateBucketInternalServerError with default headers values

func (*UpdateBucketInternalServerError) Code

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

func (*UpdateBucketInternalServerError) Error

func (*UpdateBucketInternalServerError) GetPayload

func (*UpdateBucketInternalServerError) IsClientError

func (o *UpdateBucketInternalServerError) IsClientError() bool

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

func (*UpdateBucketInternalServerError) IsCode

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

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

func (*UpdateBucketInternalServerError) IsRedirect

func (o *UpdateBucketInternalServerError) IsRedirect() bool

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

func (*UpdateBucketInternalServerError) IsServerError

func (o *UpdateBucketInternalServerError) IsServerError() bool

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

func (*UpdateBucketInternalServerError) IsSuccess

func (o *UpdateBucketInternalServerError) IsSuccess() bool

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

func (*UpdateBucketInternalServerError) String

type UpdateBucketNotFound

type UpdateBucketNotFound struct {
	Payload *models.APIError
}

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

Cannot update the Bucket because the slug does not exist.

func NewUpdateBucketNotFound

func NewUpdateBucketNotFound() *UpdateBucketNotFound

NewUpdateBucketNotFound creates a UpdateBucketNotFound with default headers values

func (*UpdateBucketNotFound) Code

func (o *UpdateBucketNotFound) Code() int

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

func (*UpdateBucketNotFound) Error

func (o *UpdateBucketNotFound) Error() string

func (*UpdateBucketNotFound) GetPayload

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

func (*UpdateBucketNotFound) IsClientError

func (o *UpdateBucketNotFound) IsClientError() bool

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

func (*UpdateBucketNotFound) IsCode

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

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

func (*UpdateBucketNotFound) IsRedirect

func (o *UpdateBucketNotFound) IsRedirect() bool

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

func (*UpdateBucketNotFound) IsServerError

func (o *UpdateBucketNotFound) IsServerError() bool

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

func (*UpdateBucketNotFound) IsSuccess

func (o *UpdateBucketNotFound) IsSuccess() bool

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

func (*UpdateBucketNotFound) String

func (o *UpdateBucketNotFound) String() string

type UpdateBucketOK

type UpdateBucketOK struct {
	Payload *models.Configv1UpdateBucketResponse
}

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

A successful response containing the updated Bucket.

func NewUpdateBucketOK

func NewUpdateBucketOK() *UpdateBucketOK

NewUpdateBucketOK creates a UpdateBucketOK with default headers values

func (*UpdateBucketOK) Code

func (o *UpdateBucketOK) Code() int

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

func (*UpdateBucketOK) Error

func (o *UpdateBucketOK) Error() string

func (*UpdateBucketOK) GetPayload

func (*UpdateBucketOK) IsClientError

func (o *UpdateBucketOK) IsClientError() bool

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

func (*UpdateBucketOK) IsCode

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

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

func (*UpdateBucketOK) IsRedirect

func (o *UpdateBucketOK) IsRedirect() bool

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

func (*UpdateBucketOK) IsServerError

func (o *UpdateBucketOK) IsServerError() bool

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

func (*UpdateBucketOK) IsSuccess

func (o *UpdateBucketOK) IsSuccess() bool

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

func (*UpdateBucketOK) String

func (o *UpdateBucketOK) String() string

type UpdateBucketParams

type UpdateBucketParams struct {

	// Body.
	Body *models.ConfigV1UpdateBucketBody

	// Slug.
	Slug string

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

UpdateBucketParams contains all the parameters to send to the API endpoint

for the update bucket operation.

Typically these are written to a http.Request.

func NewUpdateBucketParams

func NewUpdateBucketParams() *UpdateBucketParams

NewUpdateBucketParams creates a new UpdateBucketParams 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 NewUpdateBucketParamsWithContext

func NewUpdateBucketParamsWithContext(ctx context.Context) *UpdateBucketParams

NewUpdateBucketParamsWithContext creates a new UpdateBucketParams object with the ability to set a context for a request.

func NewUpdateBucketParamsWithHTTPClient

func NewUpdateBucketParamsWithHTTPClient(client *http.Client) *UpdateBucketParams

NewUpdateBucketParamsWithHTTPClient creates a new UpdateBucketParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateBucketParamsWithTimeout

func NewUpdateBucketParamsWithTimeout(timeout time.Duration) *UpdateBucketParams

NewUpdateBucketParamsWithTimeout creates a new UpdateBucketParams object with the ability to set a timeout on a request.

func (*UpdateBucketParams) SetBody

SetBody adds the body to the update bucket params

func (*UpdateBucketParams) SetContext

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

SetContext adds the context to the update bucket params

func (*UpdateBucketParams) SetDefaults

func (o *UpdateBucketParams) SetDefaults()

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

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

func (*UpdateBucketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update bucket params

func (*UpdateBucketParams) SetSlug

func (o *UpdateBucketParams) SetSlug(slug string)

SetSlug adds the slug to the update bucket params

func (*UpdateBucketParams) SetTimeout

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

SetTimeout adds the timeout to the update bucket params

func (*UpdateBucketParams) WithBody

WithBody adds the body to the update bucket params

func (*UpdateBucketParams) WithContext

WithContext adds the context to the update bucket params

func (*UpdateBucketParams) WithDefaults

func (o *UpdateBucketParams) WithDefaults() *UpdateBucketParams

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

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

func (*UpdateBucketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update bucket params

func (*UpdateBucketParams) WithSlug

func (o *UpdateBucketParams) WithSlug(slug string) *UpdateBucketParams

WithSlug adds the slug to the update bucket params

func (*UpdateBucketParams) WithTimeout

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

WithTimeout adds the timeout to the update bucket params

func (*UpdateBucketParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateBucketReader

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

UpdateBucketReader is a Reader for the UpdateBucket structure.

func (*UpdateBucketReader) ReadResponse

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