buckets

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: MPL-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 buckets API

func (*Client) CreateBucket

func (a *Client) CreateBucket(params *CreateBucketParams, authInfo runtime.ClientAuthInfoWriter) (*CreateBucketOK, error)

CreateBucket creates a bucket under a stack

func (*Client) DeleteBucket

func (a *Client) DeleteBucket(params *DeleteBucketParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteBucketNoContent, error)

DeleteBucket deletes a given bucket

func (*Client) GetBucket

func (a *Client) GetBucket(params *GetBucketParams, authInfo runtime.ClientAuthInfoWriter) (*GetBucketOK, error)

GetBucket retrieves a bucket in the storage provider for a given stack

func (*Client) GetBuckets

func (a *Client) GetBuckets(params *GetBucketsParams, authInfo runtime.ClientAuthInfoWriter) (*GetBucketsOK, error)

GetBuckets retrieves all buckets in the storage provider for a given stack

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, authInfo runtime.ClientAuthInfoWriter) (*UpdateBucketOK, error)

UpdateBucket updates the name of a bucket

type ClientService

type ClientService interface {
	CreateBucket(params *CreateBucketParams, authInfo runtime.ClientAuthInfoWriter) (*CreateBucketOK, error)

	DeleteBucket(params *DeleteBucketParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteBucketNoContent, error)

	GetBucket(params *GetBucketParams, authInfo runtime.ClientAuthInfoWriter) (*GetBucketOK, error)

	GetBuckets(params *GetBucketsParams, authInfo runtime.ClientAuthInfoWriter) (*GetBucketsOK, error)

	UpdateBucket(params *UpdateBucketParams, authInfo runtime.ClientAuthInfoWriter) (*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 buckets API client.

type CreateBucketDefault

type CreateBucketDefault struct {
	Payload *storage_models.StackpathapiStatus
	// contains filtered or unexported fields
}

CreateBucketDefault handles this case with default header values.

Default error structure.

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

type CreateBucketInternalServerError

type CreateBucketInternalServerError struct {
	Payload *storage_models.StackpathapiStatus
}

CreateBucketInternalServerError handles this case with default header values.

Internal server error.

func NewCreateBucketInternalServerError

func NewCreateBucketInternalServerError() *CreateBucketInternalServerError

NewCreateBucketInternalServerError creates a CreateBucketInternalServerError with default headers values

func (*CreateBucketInternalServerError) Error

func (*CreateBucketInternalServerError) GetPayload

type CreateBucketOK

type CreateBucketOK struct {
	Payload *storage_models.StorageCreateBucketResponse
}

CreateBucketOK handles this case with default header values.

CreateBucketOK create bucket o k

func NewCreateBucketOK

func NewCreateBucketOK() *CreateBucketOK

NewCreateBucketOK creates a CreateBucketOK with default headers values

func (*CreateBucketOK) Error

func (o *CreateBucketOK) Error() string

func (*CreateBucketOK) GetPayload

type CreateBucketParams

type CreateBucketParams struct {

	/*Body*/
	Body *storage_models.StorageCreateBucketRequest
	/*StackID
	  The ID for the stack on which the bucket will be created

	*/
	StackID string

	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 values initialized.

func NewCreateBucketParamsWithContext

func NewCreateBucketParamsWithContext(ctx context.Context) *CreateBucketParams

NewCreateBucketParamsWithContext creates a new CreateBucketParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create bucket params

func (*CreateBucketParams) SetStackID

func (o *CreateBucketParams) SetStackID(stackID string)

SetStackID adds the stackId 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create bucket params

func (*CreateBucketParams) WithStackID

func (o *CreateBucketParams) WithStackID(stackID string) *CreateBucketParams

WithStackID adds the stackID 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 CreateBucketUnauthorized

type CreateBucketUnauthorized struct {
	Payload *storage_models.StackpathapiStatus
}

CreateBucketUnauthorized handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewCreateBucketUnauthorized

func NewCreateBucketUnauthorized() *CreateBucketUnauthorized

NewCreateBucketUnauthorized creates a CreateBucketUnauthorized with default headers values

func (*CreateBucketUnauthorized) Error

func (o *CreateBucketUnauthorized) Error() string

func (*CreateBucketUnauthorized) GetPayload

type DeleteBucketDefault

type DeleteBucketDefault struct {
	Payload *storage_models.StackpathapiStatus
	// contains filtered or unexported fields
}

DeleteBucketDefault handles this case with default header values.

Default error structure.

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

type DeleteBucketInternalServerError

type DeleteBucketInternalServerError struct {
	Payload *storage_models.StackpathapiStatus
}

DeleteBucketInternalServerError handles this case with default header values.

Internal server error.

func NewDeleteBucketInternalServerError

func NewDeleteBucketInternalServerError() *DeleteBucketInternalServerError

NewDeleteBucketInternalServerError creates a DeleteBucketInternalServerError with default headers values

func (*DeleteBucketInternalServerError) Error

func (*DeleteBucketInternalServerError) GetPayload

type DeleteBucketNoContent

type DeleteBucketNoContent struct {
}

DeleteBucketNoContent handles this case with default header values.

No content

func NewDeleteBucketNoContent

func NewDeleteBucketNoContent() *DeleteBucketNoContent

NewDeleteBucketNoContent creates a DeleteBucketNoContent with default headers values

func (*DeleteBucketNoContent) Error

func (o *DeleteBucketNoContent) Error() string

type DeleteBucketParams

type DeleteBucketParams struct {

	/*BucketID
	  The ID for the bucket to delete

	*/
	BucketID string
	/*ForceDelete
	  Force bucket deletion even if there is contents inside it.

	*/
	ForceDelete *bool
	/*StackID
	  The ID for the stack in which the bucket belongs

	*/
	StackID 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 values initialized.

func NewDeleteBucketParamsWithContext

func NewDeleteBucketParamsWithContext(ctx context.Context) *DeleteBucketParams

NewDeleteBucketParamsWithContext creates a new DeleteBucketParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*DeleteBucketParams) SetBucketID

func (o *DeleteBucketParams) SetBucketID(bucketID string)

SetBucketID adds the bucketId to the delete bucket params

func (*DeleteBucketParams) SetContext

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

SetContext adds the context to the delete bucket params

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) SetStackID

func (o *DeleteBucketParams) SetStackID(stackID string)

SetStackID adds the stackId 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) WithBucketID

func (o *DeleteBucketParams) WithBucketID(bucketID string) *DeleteBucketParams

WithBucketID adds the bucketID to the delete bucket params

func (*DeleteBucketParams) WithContext

WithContext adds the context to the delete bucket params

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) WithStackID

func (o *DeleteBucketParams) WithStackID(stackID string) *DeleteBucketParams

WithStackID adds the stackID 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 DeleteBucketUnauthorized

type DeleteBucketUnauthorized struct {
	Payload *storage_models.StackpathapiStatus
}

DeleteBucketUnauthorized handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewDeleteBucketUnauthorized

func NewDeleteBucketUnauthorized() *DeleteBucketUnauthorized

NewDeleteBucketUnauthorized creates a DeleteBucketUnauthorized with default headers values

func (*DeleteBucketUnauthorized) Error

func (o *DeleteBucketUnauthorized) Error() string

func (*DeleteBucketUnauthorized) GetPayload

type GetBucketDefault

type GetBucketDefault struct {
	Payload *storage_models.StackpathapiStatus
	// contains filtered or unexported fields
}

GetBucketDefault handles this case with default header values.

Default error structure.

func NewGetBucketDefault

func NewGetBucketDefault(code int) *GetBucketDefault

NewGetBucketDefault creates a GetBucketDefault with default headers values

func (*GetBucketDefault) Code

func (o *GetBucketDefault) Code() int

Code gets the status code for the get bucket default response

func (*GetBucketDefault) Error

func (o *GetBucketDefault) Error() string

func (*GetBucketDefault) GetPayload

type GetBucketInternalServerError

type GetBucketInternalServerError struct {
	Payload *storage_models.StackpathapiStatus
}

GetBucketInternalServerError handles this case with default header values.

Internal server error.

func NewGetBucketInternalServerError

func NewGetBucketInternalServerError() *GetBucketInternalServerError

NewGetBucketInternalServerError creates a GetBucketInternalServerError with default headers values

func (*GetBucketInternalServerError) Error

func (*GetBucketInternalServerError) GetPayload

type GetBucketOK

type GetBucketOK struct {
	Payload *storage_models.StorageGetBucketResponse
}

GetBucketOK handles this case with default header values.

GetBucketOK get bucket o k

func NewGetBucketOK

func NewGetBucketOK() *GetBucketOK

NewGetBucketOK creates a GetBucketOK with default headers values

func (*GetBucketOK) Error

func (o *GetBucketOK) Error() string

func (*GetBucketOK) GetPayload

type GetBucketParams

type GetBucketParams struct {

	/*BucketID
	  The ID for the bucket to retrieve

	*/
	BucketID string
	/*StackID
	  The ID for the stack for which the buckets will be retrieved

	*/
	StackID string

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

GetBucketParams contains all the parameters to send to the API endpoint for the get bucket operation typically these are written to a http.Request

func NewGetBucketParams

func NewGetBucketParams() *GetBucketParams

NewGetBucketParams creates a new GetBucketParams object with the default values initialized.

func NewGetBucketParamsWithContext

func NewGetBucketParamsWithContext(ctx context.Context) *GetBucketParams

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

func NewGetBucketParamsWithHTTPClient

func NewGetBucketParamsWithHTTPClient(client *http.Client) *GetBucketParams

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

func NewGetBucketParamsWithTimeout

func NewGetBucketParamsWithTimeout(timeout time.Duration) *GetBucketParams

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

func (*GetBucketParams) SetBucketID

func (o *GetBucketParams) SetBucketID(bucketID string)

SetBucketID adds the bucketId to the get bucket params

func (*GetBucketParams) SetContext

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

SetContext adds the context to the get bucket params

func (*GetBucketParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get bucket params

func (*GetBucketParams) SetStackID

func (o *GetBucketParams) SetStackID(stackID string)

SetStackID adds the stackId to the get bucket params

func (*GetBucketParams) SetTimeout

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

SetTimeout adds the timeout to the get bucket params

func (*GetBucketParams) WithBucketID

func (o *GetBucketParams) WithBucketID(bucketID string) *GetBucketParams

WithBucketID adds the bucketID to the get bucket params

func (*GetBucketParams) WithContext

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

WithContext adds the context to the get bucket params

func (*GetBucketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get bucket params

func (*GetBucketParams) WithStackID

func (o *GetBucketParams) WithStackID(stackID string) *GetBucketParams

WithStackID adds the stackID to the get bucket params

func (*GetBucketParams) WithTimeout

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

WithTimeout adds the timeout to the get bucket params

func (*GetBucketParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBucketReader

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

GetBucketReader is a Reader for the GetBucket structure.

func (*GetBucketReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBucketUnauthorized

type GetBucketUnauthorized struct {
	Payload *storage_models.StackpathapiStatus
}

GetBucketUnauthorized handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewGetBucketUnauthorized

func NewGetBucketUnauthorized() *GetBucketUnauthorized

NewGetBucketUnauthorized creates a GetBucketUnauthorized with default headers values

func (*GetBucketUnauthorized) Error

func (o *GetBucketUnauthorized) Error() string

func (*GetBucketUnauthorized) GetPayload

type GetBucketsDefault

type GetBucketsDefault struct {
	Payload *storage_models.StackpathapiStatus
	// contains filtered or unexported fields
}

GetBucketsDefault handles this case with default header values.

Default error structure.

func NewGetBucketsDefault

func NewGetBucketsDefault(code int) *GetBucketsDefault

NewGetBucketsDefault creates a GetBucketsDefault with default headers values

func (*GetBucketsDefault) Code

func (o *GetBucketsDefault) Code() int

Code gets the status code for the get buckets default response

func (*GetBucketsDefault) Error

func (o *GetBucketsDefault) Error() string

func (*GetBucketsDefault) GetPayload

type GetBucketsInternalServerError

type GetBucketsInternalServerError struct {
	Payload *storage_models.StackpathapiStatus
}

GetBucketsInternalServerError handles this case with default header values.

Internal server error.

func NewGetBucketsInternalServerError

func NewGetBucketsInternalServerError() *GetBucketsInternalServerError

NewGetBucketsInternalServerError creates a GetBucketsInternalServerError with default headers values

func (*GetBucketsInternalServerError) Error

func (*GetBucketsInternalServerError) GetPayload

type GetBucketsOK

type GetBucketsOK struct {
	Payload *storage_models.StorageGetBucketsResponse
}

GetBucketsOK handles this case with default header values.

GetBucketsOK get buckets o k

func NewGetBucketsOK

func NewGetBucketsOK() *GetBucketsOK

NewGetBucketsOK creates a GetBucketsOK with default headers values

func (*GetBucketsOK) Error

func (o *GetBucketsOK) Error() string

func (*GetBucketsOK) GetPayload

type GetBucketsParams

type GetBucketsParams struct {

	/*PageRequestAfter
	  The cursor value after which data will be returned.

	*/
	PageRequestAfter *string
	/*PageRequestFilter
	  SQL-style constraint filters.

	*/
	PageRequestFilter *string
	/*PageRequestFirst
	  The number of items desired.

	*/
	PageRequestFirst *string
	/*PageRequestSortBy
	  Sort the response by the given field.

	*/
	PageRequestSortBy *string
	/*StackID
	  The ID for the stack for which the buckets will be retrieved

	*/
	StackID string

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

GetBucketsParams contains all the parameters to send to the API endpoint for the get buckets operation typically these are written to a http.Request

func NewGetBucketsParams

func NewGetBucketsParams() *GetBucketsParams

NewGetBucketsParams creates a new GetBucketsParams object with the default values initialized.

func NewGetBucketsParamsWithContext

func NewGetBucketsParamsWithContext(ctx context.Context) *GetBucketsParams

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

func NewGetBucketsParamsWithHTTPClient

func NewGetBucketsParamsWithHTTPClient(client *http.Client) *GetBucketsParams

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

func NewGetBucketsParamsWithTimeout

func NewGetBucketsParamsWithTimeout(timeout time.Duration) *GetBucketsParams

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

func (*GetBucketsParams) SetContext

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

SetContext adds the context to the get buckets params

func (*GetBucketsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get buckets params

func (*GetBucketsParams) SetPageRequestAfter

func (o *GetBucketsParams) SetPageRequestAfter(pageRequestAfter *string)

SetPageRequestAfter adds the pageRequestAfter to the get buckets params

func (*GetBucketsParams) SetPageRequestFilter

func (o *GetBucketsParams) SetPageRequestFilter(pageRequestFilter *string)

SetPageRequestFilter adds the pageRequestFilter to the get buckets params

func (*GetBucketsParams) SetPageRequestFirst

func (o *GetBucketsParams) SetPageRequestFirst(pageRequestFirst *string)

SetPageRequestFirst adds the pageRequestFirst to the get buckets params

func (*GetBucketsParams) SetPageRequestSortBy

func (o *GetBucketsParams) SetPageRequestSortBy(pageRequestSortBy *string)

SetPageRequestSortBy adds the pageRequestSortBy to the get buckets params

func (*GetBucketsParams) SetStackID

func (o *GetBucketsParams) SetStackID(stackID string)

SetStackID adds the stackId to the get buckets params

func (*GetBucketsParams) SetTimeout

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

SetTimeout adds the timeout to the get buckets params

func (*GetBucketsParams) WithContext

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

WithContext adds the context to the get buckets params

func (*GetBucketsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get buckets params

func (*GetBucketsParams) WithPageRequestAfter

func (o *GetBucketsParams) WithPageRequestAfter(pageRequestAfter *string) *GetBucketsParams

WithPageRequestAfter adds the pageRequestAfter to the get buckets params

func (*GetBucketsParams) WithPageRequestFilter

func (o *GetBucketsParams) WithPageRequestFilter(pageRequestFilter *string) *GetBucketsParams

WithPageRequestFilter adds the pageRequestFilter to the get buckets params

func (*GetBucketsParams) WithPageRequestFirst

func (o *GetBucketsParams) WithPageRequestFirst(pageRequestFirst *string) *GetBucketsParams

WithPageRequestFirst adds the pageRequestFirst to the get buckets params

func (*GetBucketsParams) WithPageRequestSortBy

func (o *GetBucketsParams) WithPageRequestSortBy(pageRequestSortBy *string) *GetBucketsParams

WithPageRequestSortBy adds the pageRequestSortBy to the get buckets params

func (*GetBucketsParams) WithStackID

func (o *GetBucketsParams) WithStackID(stackID string) *GetBucketsParams

WithStackID adds the stackID to the get buckets params

func (*GetBucketsParams) WithTimeout

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

WithTimeout adds the timeout to the get buckets params

func (*GetBucketsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetBucketsReader

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

GetBucketsReader is a Reader for the GetBuckets structure.

func (*GetBucketsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetBucketsUnauthorized

type GetBucketsUnauthorized struct {
	Payload *storage_models.StackpathapiStatus
}

GetBucketsUnauthorized handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewGetBucketsUnauthorized

func NewGetBucketsUnauthorized() *GetBucketsUnauthorized

NewGetBucketsUnauthorized creates a GetBucketsUnauthorized with default headers values

func (*GetBucketsUnauthorized) Error

func (o *GetBucketsUnauthorized) Error() string

func (*GetBucketsUnauthorized) GetPayload

type UpdateBucketDefault

type UpdateBucketDefault struct {
	Payload *storage_models.StackpathapiStatus
	// contains filtered or unexported fields
}

UpdateBucketDefault handles this case with default header values.

Default error structure.

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

type UpdateBucketInternalServerError

type UpdateBucketInternalServerError struct {
	Payload *storage_models.StackpathapiStatus
}

UpdateBucketInternalServerError handles this case with default header values.

Internal server error.

func NewUpdateBucketInternalServerError

func NewUpdateBucketInternalServerError() *UpdateBucketInternalServerError

NewUpdateBucketInternalServerError creates a UpdateBucketInternalServerError with default headers values

func (*UpdateBucketInternalServerError) Error

func (*UpdateBucketInternalServerError) GetPayload

type UpdateBucketOK

type UpdateBucketOK struct {
	Payload *storage_models.StorageUpdateBucketResponse
}

UpdateBucketOK handles this case with default header values.

UpdateBucketOK update bucket o k

func NewUpdateBucketOK

func NewUpdateBucketOK() *UpdateBucketOK

NewUpdateBucketOK creates a UpdateBucketOK with default headers values

func (*UpdateBucketOK) Error

func (o *UpdateBucketOK) Error() string

func (*UpdateBucketOK) GetPayload

type UpdateBucketParams

type UpdateBucketParams struct {

	/*Body*/
	Body *storage_models.StorageUpdateBucketRequest
	/*BucketID
	  The ID for the bucket to update

	*/
	BucketID string
	/*StackID
	  The ID for the stack on which the bucket belongs to

	*/
	StackID 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 values initialized.

func NewUpdateBucketParamsWithContext

func NewUpdateBucketParamsWithContext(ctx context.Context) *UpdateBucketParams

NewUpdateBucketParamsWithContext creates a new UpdateBucketParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*UpdateBucketParams) SetBody

SetBody adds the body to the update bucket params

func (*UpdateBucketParams) SetBucketID

func (o *UpdateBucketParams) SetBucketID(bucketID string)

SetBucketID adds the bucketId 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update bucket params

func (*UpdateBucketParams) SetStackID

func (o *UpdateBucketParams) SetStackID(stackID string)

SetStackID adds the stackId 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) WithBucketID

func (o *UpdateBucketParams) WithBucketID(bucketID string) *UpdateBucketParams

WithBucketID adds the bucketID to the update bucket params

func (*UpdateBucketParams) WithContext

WithContext adds the context to the update bucket params

func (*UpdateBucketParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update bucket params

func (*UpdateBucketParams) WithStackID

func (o *UpdateBucketParams) WithStackID(stackID string) *UpdateBucketParams

WithStackID adds the stackID 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.

type UpdateBucketUnauthorized

type UpdateBucketUnauthorized struct {
	Payload *storage_models.StackpathapiStatus
}

UpdateBucketUnauthorized handles this case with default header values.

Returned when an unauthorized request is attempted.

func NewUpdateBucketUnauthorized

func NewUpdateBucketUnauthorized() *UpdateBucketUnauthorized

NewUpdateBucketUnauthorized creates a UpdateBucketUnauthorized with default headers values

func (*UpdateBucketUnauthorized) Error

func (o *UpdateBucketUnauthorized) Error() string

func (*UpdateBucketUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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