custom_storage

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT 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 custom storage API

func (*Client) Delete

func (a *Client) Delete(params *DeleteParams, opts ...ClientOption) (*DeleteOK, error)

Delete deletes the specified object

func (*Client) Get

func (a *Client) Get(params *GetParams, writer io.Writer, opts ...ClientOption) (*GetOK, error)

Get gets the bytes for the specified object

func (*Client) List

func (a *Client) List(params *ListParams, opts ...ClientOption) (*ListOK, error)

List lists the object keys in the specified collection in alphabetical order

func (*Client) Metadata

func (a *Client) Metadata(params *MetadataParams, opts ...ClientOption) (*MetadataOK, error)

Metadata gets the metadata for the specified object

func (*Client) Search

func (a *Client) Search(params *SearchParams, opts ...ClientOption) (*SearchOK, error)

Search searches for objects that match the specified filter criteria returns metadata not actual objects

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) Upload

func (a *Client) Upload(params *UploadParams, opts ...ClientOption) (*UploadOK, error)

Upload puts the specified new object at the given key or overwrite an existing object at the given key

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	Delete(params *DeleteParams, opts ...ClientOption) (*DeleteOK, error)

	Get(params *GetParams, writer io.Writer, opts ...ClientOption) (*GetOK, error)

	List(params *ListParams, opts ...ClientOption) (*ListOK, error)

	Metadata(params *MetadataParams, opts ...ClientOption) (*MetadataOK, error)

	Search(params *SearchParams, opts ...ClientOption) (*SearchOK, error)

	Upload(params *UploadParams, opts ...ClientOption) (*UploadOK, 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 custom storage API client.

type DeleteForbidden

type DeleteForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

DeleteForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteForbidden

func NewDeleteForbidden() *DeleteForbidden

NewDeleteForbidden creates a DeleteForbidden with default headers values

func (*DeleteForbidden) Code

func (o *DeleteForbidden) Code() int

Code gets the status code for the delete forbidden response

func (*DeleteForbidden) Error

func (o *DeleteForbidden) Error() string

func (*DeleteForbidden) GetPayload

func (o *DeleteForbidden) GetPayload() *models.MsaReplyMetaOnly

func (*DeleteForbidden) IsClientError

func (o *DeleteForbidden) IsClientError() bool

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

func (*DeleteForbidden) IsCode

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

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

func (*DeleteForbidden) IsRedirect

func (o *DeleteForbidden) IsRedirect() bool

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

func (*DeleteForbidden) IsServerError

func (o *DeleteForbidden) IsServerError() bool

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

func (*DeleteForbidden) IsSuccess

func (o *DeleteForbidden) IsSuccess() bool

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

func (*DeleteForbidden) String

func (o *DeleteForbidden) String() string

type DeleteOK

type DeleteOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.CustomStorageResponse
}

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

OK

func NewDeleteOK

func NewDeleteOK() *DeleteOK

NewDeleteOK creates a DeleteOK with default headers values

func (*DeleteOK) Code

func (o *DeleteOK) Code() int

Code gets the status code for the delete o k response

func (*DeleteOK) Error

func (o *DeleteOK) Error() string

func (*DeleteOK) GetPayload

func (o *DeleteOK) GetPayload() *models.CustomStorageResponse

func (*DeleteOK) IsClientError

func (o *DeleteOK) IsClientError() bool

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

func (*DeleteOK) IsCode

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

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

func (*DeleteOK) IsRedirect

func (o *DeleteOK) IsRedirect() bool

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

func (*DeleteOK) IsServerError

func (o *DeleteOK) IsServerError() bool

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

func (*DeleteOK) IsSuccess

func (o *DeleteOK) IsSuccess() bool

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

func (*DeleteOK) String

func (o *DeleteOK) String() string

type DeleteParams

type DeleteParams struct {

	/* CollectionName.

	   The name of the collection
	*/
	CollectionName string

	/* DryRun.

	   If false, run the operation as normal.  If true, validate that the request *would* succeed, but don't execute it.
	*/
	DryRun bool

	/* ObjectKey.

	   The object key
	*/
	ObjectKey string

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

DeleteParams contains all the parameters to send to the API endpoint

for the delete operation.

Typically these are written to a http.Request.

func NewDeleteParams

func NewDeleteParams() *DeleteParams

NewDeleteParams creates a new DeleteParams 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 NewDeleteParamsWithContext

func NewDeleteParamsWithContext(ctx context.Context) *DeleteParams

NewDeleteParamsWithContext creates a new DeleteParams object with the ability to set a context for a request.

func NewDeleteParamsWithHTTPClient

func NewDeleteParamsWithHTTPClient(client *http.Client) *DeleteParams

NewDeleteParamsWithHTTPClient creates a new DeleteParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteParamsWithTimeout

func NewDeleteParamsWithTimeout(timeout time.Duration) *DeleteParams

NewDeleteParamsWithTimeout creates a new DeleteParams object with the ability to set a timeout on a request.

func (*DeleteParams) SetCollectionName

func (o *DeleteParams) SetCollectionName(collectionName string)

SetCollectionName adds the collectionName to the delete params

func (*DeleteParams) SetContext

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

SetContext adds the context to the delete params

func (*DeleteParams) SetDefaults

func (o *DeleteParams) SetDefaults()

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

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

func (*DeleteParams) SetDryRun

func (o *DeleteParams) SetDryRun(dryRun bool)

SetDryRun adds the dryRun to the delete params

func (*DeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete params

func (*DeleteParams) SetObjectKey

func (o *DeleteParams) SetObjectKey(objectKey string)

SetObjectKey adds the objectKey to the delete params

func (*DeleteParams) SetTimeout

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

SetTimeout adds the timeout to the delete params

func (*DeleteParams) WithCollectionName

func (o *DeleteParams) WithCollectionName(collectionName string) *DeleteParams

WithCollectionName adds the collectionName to the delete params

func (*DeleteParams) WithContext

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

WithContext adds the context to the delete params

func (*DeleteParams) WithDefaults

func (o *DeleteParams) WithDefaults() *DeleteParams

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

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

func (*DeleteParams) WithDryRun

func (o *DeleteParams) WithDryRun(dryRun bool) *DeleteParams

WithDryRun adds the dryRun to the delete params

func (*DeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete params

func (*DeleteParams) WithObjectKey

func (o *DeleteParams) WithObjectKey(objectKey string) *DeleteParams

WithObjectKey adds the objectKey to the delete params

func (*DeleteParams) WithTimeout

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

WithTimeout adds the timeout to the delete params

func (*DeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteReader

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

DeleteReader is a Reader for the Delete structure.

func (*DeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTooManyRequests

type DeleteTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

DeleteTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewDeleteTooManyRequests

func NewDeleteTooManyRequests() *DeleteTooManyRequests

NewDeleteTooManyRequests creates a DeleteTooManyRequests with default headers values

func (*DeleteTooManyRequests) Code

func (o *DeleteTooManyRequests) Code() int

Code gets the status code for the delete too many requests response

func (*DeleteTooManyRequests) Error

func (o *DeleteTooManyRequests) Error() string

func (*DeleteTooManyRequests) GetPayload

func (*DeleteTooManyRequests) IsClientError

func (o *DeleteTooManyRequests) IsClientError() bool

IsClientError returns true when this delete too many requests response has a 4xx status code

func (*DeleteTooManyRequests) IsCode

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

IsCode returns true when this delete too many requests response a status code equal to that given

func (*DeleteTooManyRequests) IsRedirect

func (o *DeleteTooManyRequests) IsRedirect() bool

IsRedirect returns true when this delete too many requests response has a 3xx status code

func (*DeleteTooManyRequests) IsServerError

func (o *DeleteTooManyRequests) IsServerError() bool

IsServerError returns true when this delete too many requests response has a 5xx status code

func (*DeleteTooManyRequests) IsSuccess

func (o *DeleteTooManyRequests) IsSuccess() bool

IsSuccess returns true when this delete too many requests response has a 2xx status code

func (*DeleteTooManyRequests) String

func (o *DeleteTooManyRequests) String() string

type GetForbidden

type GetForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

GetForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetForbidden

func NewGetForbidden() *GetForbidden

NewGetForbidden creates a GetForbidden with default headers values

func (*GetForbidden) Code

func (o *GetForbidden) Code() int

Code gets the status code for the get forbidden response

func (*GetForbidden) Error

func (o *GetForbidden) Error() string

func (*GetForbidden) GetPayload

func (o *GetForbidden) GetPayload() *models.MsaReplyMetaOnly

func (*GetForbidden) IsClientError

func (o *GetForbidden) IsClientError() bool

IsClientError returns true when this get forbidden response has a 4xx status code

func (*GetForbidden) IsCode

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

IsCode returns true when this get forbidden response a status code equal to that given

func (*GetForbidden) IsRedirect

func (o *GetForbidden) IsRedirect() bool

IsRedirect returns true when this get forbidden response has a 3xx status code

func (*GetForbidden) IsServerError

func (o *GetForbidden) IsServerError() bool

IsServerError returns true when this get forbidden response has a 5xx status code

func (*GetForbidden) IsSuccess

func (o *GetForbidden) IsSuccess() bool

IsSuccess returns true when this get forbidden response has a 2xx status code

func (*GetForbidden) String

func (o *GetForbidden) String() string

type GetOK

type GetOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload io.Writer
}

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

OK

func NewGetOK

func NewGetOK(writer io.Writer) *GetOK

NewGetOK creates a GetOK with default headers values

func (*GetOK) Code

func (o *GetOK) Code() int

Code gets the status code for the get o k response

func (*GetOK) Error

func (o *GetOK) Error() string

func (*GetOK) GetPayload

func (o *GetOK) GetPayload() io.Writer

func (*GetOK) IsClientError

func (o *GetOK) IsClientError() bool

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

func (*GetOK) IsCode

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

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

func (*GetOK) IsRedirect

func (o *GetOK) IsRedirect() bool

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

func (*GetOK) IsServerError

func (o *GetOK) IsServerError() bool

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

func (*GetOK) IsSuccess

func (o *GetOK) IsSuccess() bool

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

func (*GetOK) String

func (o *GetOK) String() string

type GetParams

type GetParams struct {

	/* CollectionName.

	   The name of the collection
	*/
	CollectionName string

	/* ObjectKey.

	   The object key
	*/
	ObjectKey string

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

GetParams contains all the parameters to send to the API endpoint

for the get operation.

Typically these are written to a http.Request.

func NewGetParams

func NewGetParams() *GetParams

NewGetParams creates a new GetParams 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 NewGetParamsWithContext

func NewGetParamsWithContext(ctx context.Context) *GetParams

NewGetParamsWithContext creates a new GetParams object with the ability to set a context for a request.

func NewGetParamsWithHTTPClient

func NewGetParamsWithHTTPClient(client *http.Client) *GetParams

NewGetParamsWithHTTPClient creates a new GetParams object with the ability to set a custom HTTPClient for a request.

func NewGetParamsWithTimeout

func NewGetParamsWithTimeout(timeout time.Duration) *GetParams

NewGetParamsWithTimeout creates a new GetParams object with the ability to set a timeout on a request.

func (*GetParams) SetCollectionName

func (o *GetParams) SetCollectionName(collectionName string)

SetCollectionName adds the collectionName to the get params

func (*GetParams) SetContext

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

SetContext adds the context to the get params

func (*GetParams) SetDefaults

func (o *GetParams) SetDefaults()

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

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

func (*GetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get params

func (*GetParams) SetObjectKey

func (o *GetParams) SetObjectKey(objectKey string)

SetObjectKey adds the objectKey to the get params

func (*GetParams) SetTimeout

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

SetTimeout adds the timeout to the get params

func (*GetParams) WithCollectionName

func (o *GetParams) WithCollectionName(collectionName string) *GetParams

WithCollectionName adds the collectionName to the get params

func (*GetParams) WithContext

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

WithContext adds the context to the get params

func (*GetParams) WithDefaults

func (o *GetParams) WithDefaults() *GetParams

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

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

func (*GetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get params

func (*GetParams) WithObjectKey

func (o *GetParams) WithObjectKey(objectKey string) *GetParams

WithObjectKey adds the objectKey to the get params

func (*GetParams) WithTimeout

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

WithTimeout adds the timeout to the get params

func (*GetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReader

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

GetReader is a Reader for the Get structure.

func (*GetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTooManyRequests

type GetTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

GetTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetTooManyRequests

func NewGetTooManyRequests() *GetTooManyRequests

NewGetTooManyRequests creates a GetTooManyRequests with default headers values

func (*GetTooManyRequests) Code

func (o *GetTooManyRequests) Code() int

Code gets the status code for the get too many requests response

func (*GetTooManyRequests) Error

func (o *GetTooManyRequests) Error() string

func (*GetTooManyRequests) GetPayload

func (o *GetTooManyRequests) GetPayload() *models.MsaReplyMetaOnly

func (*GetTooManyRequests) IsClientError

func (o *GetTooManyRequests) IsClientError() bool

IsClientError returns true when this get too many requests response has a 4xx status code

func (*GetTooManyRequests) IsCode

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

IsCode returns true when this get too many requests response a status code equal to that given

func (*GetTooManyRequests) IsRedirect

func (o *GetTooManyRequests) IsRedirect() bool

IsRedirect returns true when this get too many requests response has a 3xx status code

func (*GetTooManyRequests) IsServerError

func (o *GetTooManyRequests) IsServerError() bool

IsServerError returns true when this get too many requests response has a 5xx status code

func (*GetTooManyRequests) IsSuccess

func (o *GetTooManyRequests) IsSuccess() bool

IsSuccess returns true when this get too many requests response has a 2xx status code

func (*GetTooManyRequests) String

func (o *GetTooManyRequests) String() string

type ListForbidden

type ListForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

ListForbidden describes a response with status code 403, with default header values.

Forbidden

func NewListForbidden

func NewListForbidden() *ListForbidden

NewListForbidden creates a ListForbidden with default headers values

func (*ListForbidden) Code

func (o *ListForbidden) Code() int

Code gets the status code for the list forbidden response

func (*ListForbidden) Error

func (o *ListForbidden) Error() string

func (*ListForbidden) GetPayload

func (o *ListForbidden) GetPayload() *models.MsaReplyMetaOnly

func (*ListForbidden) IsClientError

func (o *ListForbidden) IsClientError() bool

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

func (*ListForbidden) IsCode

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

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

func (*ListForbidden) IsRedirect

func (o *ListForbidden) IsRedirect() bool

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

func (*ListForbidden) IsServerError

func (o *ListForbidden) IsServerError() bool

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

func (*ListForbidden) IsSuccess

func (o *ListForbidden) IsSuccess() bool

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

func (*ListForbidden) String

func (o *ListForbidden) String() string

type ListOK

type ListOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.CustomStorageObjectKeys
}

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

OK

func NewListOK

func NewListOK() *ListOK

NewListOK creates a ListOK with default headers values

func (*ListOK) Code

func (o *ListOK) Code() int

Code gets the status code for the list o k response

func (*ListOK) Error

func (o *ListOK) Error() string

func (*ListOK) GetPayload

func (o *ListOK) GetPayload() *models.CustomStorageObjectKeys

func (*ListOK) IsClientError

func (o *ListOK) IsClientError() bool

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

func (*ListOK) IsCode

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

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

func (*ListOK) IsRedirect

func (o *ListOK) IsRedirect() bool

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

func (*ListOK) IsServerError

func (o *ListOK) IsServerError() bool

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

func (*ListOK) IsSuccess

func (o *ListOK) IsSuccess() bool

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

func (*ListOK) String

func (o *ListOK) String() string

type ListParams

type ListParams struct {

	/* CollectionName.

	   The name of the collection
	*/
	CollectionName string

	/* End.

	   The end key to end listing to
	*/
	End string

	/* Limit.

	   The limit of results to return
	*/
	Limit int64

	/* Start.

	   The start key to start listing from
	*/
	Start string

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

ListParams contains all the parameters to send to the API endpoint

for the list operation.

Typically these are written to a http.Request.

func NewListParams

func NewListParams() *ListParams

NewListParams creates a new ListParams 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 NewListParamsWithContext

func NewListParamsWithContext(ctx context.Context) *ListParams

NewListParamsWithContext creates a new ListParams object with the ability to set a context for a request.

func NewListParamsWithHTTPClient

func NewListParamsWithHTTPClient(client *http.Client) *ListParams

NewListParamsWithHTTPClient creates a new ListParams object with the ability to set a custom HTTPClient for a request.

func NewListParamsWithTimeout

func NewListParamsWithTimeout(timeout time.Duration) *ListParams

NewListParamsWithTimeout creates a new ListParams object with the ability to set a timeout on a request.

func (*ListParams) SetCollectionName

func (o *ListParams) SetCollectionName(collectionName string)

SetCollectionName adds the collectionName to the list params

func (*ListParams) SetContext

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

SetContext adds the context to the list params

func (*ListParams) SetDefaults

func (o *ListParams) SetDefaults()

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

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

func (*ListParams) SetEnd

func (o *ListParams) SetEnd(end string)

SetEnd adds the end to the list params

func (*ListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list params

func (*ListParams) SetLimit

func (o *ListParams) SetLimit(limit int64)

SetLimit adds the limit to the list params

func (*ListParams) SetStart

func (o *ListParams) SetStart(start string)

SetStart adds the start to the list params

func (*ListParams) SetTimeout

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

SetTimeout adds the timeout to the list params

func (*ListParams) WithCollectionName

func (o *ListParams) WithCollectionName(collectionName string) *ListParams

WithCollectionName adds the collectionName to the list params

func (*ListParams) WithContext

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

WithContext adds the context to the list params

func (*ListParams) WithDefaults

func (o *ListParams) WithDefaults() *ListParams

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

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

func (*ListParams) WithEnd

func (o *ListParams) WithEnd(end string) *ListParams

WithEnd adds the end to the list params

func (*ListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list params

func (*ListParams) WithLimit

func (o *ListParams) WithLimit(limit int64) *ListParams

WithLimit adds the limit to the list params

func (*ListParams) WithStart

func (o *ListParams) WithStart(start string) *ListParams

WithStart adds the start to the list params

func (*ListParams) WithTimeout

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

WithTimeout adds the timeout to the list params

func (*ListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListReader

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

ListReader is a Reader for the List structure.

func (*ListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTooManyRequests

type ListTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

ListTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewListTooManyRequests

func NewListTooManyRequests() *ListTooManyRequests

NewListTooManyRequests creates a ListTooManyRequests with default headers values

func (*ListTooManyRequests) Code

func (o *ListTooManyRequests) Code() int

Code gets the status code for the list too many requests response

func (*ListTooManyRequests) Error

func (o *ListTooManyRequests) Error() string

func (*ListTooManyRequests) GetPayload

func (o *ListTooManyRequests) GetPayload() *models.MsaReplyMetaOnly

func (*ListTooManyRequests) IsClientError

func (o *ListTooManyRequests) IsClientError() bool

IsClientError returns true when this list too many requests response has a 4xx status code

func (*ListTooManyRequests) IsCode

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

IsCode returns true when this list too many requests response a status code equal to that given

func (*ListTooManyRequests) IsRedirect

func (o *ListTooManyRequests) IsRedirect() bool

IsRedirect returns true when this list too many requests response has a 3xx status code

func (*ListTooManyRequests) IsServerError

func (o *ListTooManyRequests) IsServerError() bool

IsServerError returns true when this list too many requests response has a 5xx status code

func (*ListTooManyRequests) IsSuccess

func (o *ListTooManyRequests) IsSuccess() bool

IsSuccess returns true when this list too many requests response has a 2xx status code

func (*ListTooManyRequests) String

func (o *ListTooManyRequests) String() string

type MetadataForbidden

type MetadataForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

MetadataForbidden describes a response with status code 403, with default header values.

Forbidden

func NewMetadataForbidden

func NewMetadataForbidden() *MetadataForbidden

NewMetadataForbidden creates a MetadataForbidden with default headers values

func (*MetadataForbidden) Code

func (o *MetadataForbidden) Code() int

Code gets the status code for the metadata forbidden response

func (*MetadataForbidden) Error

func (o *MetadataForbidden) Error() string

func (*MetadataForbidden) GetPayload

func (o *MetadataForbidden) GetPayload() *models.MsaReplyMetaOnly

func (*MetadataForbidden) IsClientError

func (o *MetadataForbidden) IsClientError() bool

IsClientError returns true when this metadata forbidden response has a 4xx status code

func (*MetadataForbidden) IsCode

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

IsCode returns true when this metadata forbidden response a status code equal to that given

func (*MetadataForbidden) IsRedirect

func (o *MetadataForbidden) IsRedirect() bool

IsRedirect returns true when this metadata forbidden response has a 3xx status code

func (*MetadataForbidden) IsServerError

func (o *MetadataForbidden) IsServerError() bool

IsServerError returns true when this metadata forbidden response has a 5xx status code

func (*MetadataForbidden) IsSuccess

func (o *MetadataForbidden) IsSuccess() bool

IsSuccess returns true when this metadata forbidden response has a 2xx status code

func (*MetadataForbidden) String

func (o *MetadataForbidden) String() string

type MetadataOK

type MetadataOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.CustomStorageResponse
}

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

OK

func NewMetadataOK

func NewMetadataOK() *MetadataOK

NewMetadataOK creates a MetadataOK with default headers values

func (*MetadataOK) Code

func (o *MetadataOK) Code() int

Code gets the status code for the metadata o k response

func (*MetadataOK) Error

func (o *MetadataOK) Error() string

func (*MetadataOK) GetPayload

func (o *MetadataOK) GetPayload() *models.CustomStorageResponse

func (*MetadataOK) IsClientError

func (o *MetadataOK) IsClientError() bool

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

func (*MetadataOK) IsCode

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

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

func (*MetadataOK) IsRedirect

func (o *MetadataOK) IsRedirect() bool

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

func (*MetadataOK) IsServerError

func (o *MetadataOK) IsServerError() bool

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

func (*MetadataOK) IsSuccess

func (o *MetadataOK) IsSuccess() bool

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

func (*MetadataOK) String

func (o *MetadataOK) String() string

type MetadataParams

type MetadataParams struct {

	/* CollectionName.

	   The name of the collection
	*/
	CollectionName string

	/* ObjectKey.

	   The object key
	*/
	ObjectKey string

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

MetadataParams contains all the parameters to send to the API endpoint

for the metadata operation.

Typically these are written to a http.Request.

func NewMetadataParams

func NewMetadataParams() *MetadataParams

NewMetadataParams creates a new MetadataParams 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 NewMetadataParamsWithContext

func NewMetadataParamsWithContext(ctx context.Context) *MetadataParams

NewMetadataParamsWithContext creates a new MetadataParams object with the ability to set a context for a request.

func NewMetadataParamsWithHTTPClient

func NewMetadataParamsWithHTTPClient(client *http.Client) *MetadataParams

NewMetadataParamsWithHTTPClient creates a new MetadataParams object with the ability to set a custom HTTPClient for a request.

func NewMetadataParamsWithTimeout

func NewMetadataParamsWithTimeout(timeout time.Duration) *MetadataParams

NewMetadataParamsWithTimeout creates a new MetadataParams object with the ability to set a timeout on a request.

func (*MetadataParams) SetCollectionName

func (o *MetadataParams) SetCollectionName(collectionName string)

SetCollectionName adds the collectionName to the metadata params

func (*MetadataParams) SetContext

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

SetContext adds the context to the metadata params

func (*MetadataParams) SetDefaults

func (o *MetadataParams) SetDefaults()

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

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

func (*MetadataParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the metadata params

func (*MetadataParams) SetObjectKey

func (o *MetadataParams) SetObjectKey(objectKey string)

SetObjectKey adds the objectKey to the metadata params

func (*MetadataParams) SetTimeout

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

SetTimeout adds the timeout to the metadata params

func (*MetadataParams) WithCollectionName

func (o *MetadataParams) WithCollectionName(collectionName string) *MetadataParams

WithCollectionName adds the collectionName to the metadata params

func (*MetadataParams) WithContext

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

WithContext adds the context to the metadata params

func (*MetadataParams) WithDefaults

func (o *MetadataParams) WithDefaults() *MetadataParams

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

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

func (*MetadataParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the metadata params

func (*MetadataParams) WithObjectKey

func (o *MetadataParams) WithObjectKey(objectKey string) *MetadataParams

WithObjectKey adds the objectKey to the metadata params

func (*MetadataParams) WithTimeout

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

WithTimeout adds the timeout to the metadata params

func (*MetadataParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type MetadataReader

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

MetadataReader is a Reader for the Metadata structure.

func (*MetadataReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type MetadataTooManyRequests

type MetadataTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

MetadataTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewMetadataTooManyRequests

func NewMetadataTooManyRequests() *MetadataTooManyRequests

NewMetadataTooManyRequests creates a MetadataTooManyRequests with default headers values

func (*MetadataTooManyRequests) Code

func (o *MetadataTooManyRequests) Code() int

Code gets the status code for the metadata too many requests response

func (*MetadataTooManyRequests) Error

func (o *MetadataTooManyRequests) Error() string

func (*MetadataTooManyRequests) GetPayload

func (*MetadataTooManyRequests) IsClientError

func (o *MetadataTooManyRequests) IsClientError() bool

IsClientError returns true when this metadata too many requests response has a 4xx status code

func (*MetadataTooManyRequests) IsCode

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

IsCode returns true when this metadata too many requests response a status code equal to that given

func (*MetadataTooManyRequests) IsRedirect

func (o *MetadataTooManyRequests) IsRedirect() bool

IsRedirect returns true when this metadata too many requests response has a 3xx status code

func (*MetadataTooManyRequests) IsServerError

func (o *MetadataTooManyRequests) IsServerError() bool

IsServerError returns true when this metadata too many requests response has a 5xx status code

func (*MetadataTooManyRequests) IsSuccess

func (o *MetadataTooManyRequests) IsSuccess() bool

IsSuccess returns true when this metadata too many requests response has a 2xx status code

func (*MetadataTooManyRequests) String

func (o *MetadataTooManyRequests) String() string

type SearchForbidden

type SearchForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

SearchForbidden describes a response with status code 403, with default header values.

Forbidden

func NewSearchForbidden

func NewSearchForbidden() *SearchForbidden

NewSearchForbidden creates a SearchForbidden with default headers values

func (*SearchForbidden) Code

func (o *SearchForbidden) Code() int

Code gets the status code for the search forbidden response

func (*SearchForbidden) Error

func (o *SearchForbidden) Error() string

func (*SearchForbidden) GetPayload

func (o *SearchForbidden) GetPayload() *models.MsaReplyMetaOnly

func (*SearchForbidden) IsClientError

func (o *SearchForbidden) IsClientError() bool

IsClientError returns true when this search forbidden response has a 4xx status code

func (*SearchForbidden) IsCode

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

IsCode returns true when this search forbidden response a status code equal to that given

func (*SearchForbidden) IsRedirect

func (o *SearchForbidden) IsRedirect() bool

IsRedirect returns true when this search forbidden response has a 3xx status code

func (*SearchForbidden) IsServerError

func (o *SearchForbidden) IsServerError() bool

IsServerError returns true when this search forbidden response has a 5xx status code

func (*SearchForbidden) IsSuccess

func (o *SearchForbidden) IsSuccess() bool

IsSuccess returns true when this search forbidden response has a 2xx status code

func (*SearchForbidden) String

func (o *SearchForbidden) String() string

type SearchOK

type SearchOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.CustomStorageResponse
}

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

OK

func NewSearchOK

func NewSearchOK() *SearchOK

NewSearchOK creates a SearchOK with default headers values

func (*SearchOK) Code

func (o *SearchOK) Code() int

Code gets the status code for the search o k response

func (*SearchOK) Error

func (o *SearchOK) Error() string

func (*SearchOK) GetPayload

func (o *SearchOK) GetPayload() *models.CustomStorageResponse

func (*SearchOK) IsClientError

func (o *SearchOK) IsClientError() bool

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

func (*SearchOK) IsCode

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

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

func (*SearchOK) IsRedirect

func (o *SearchOK) IsRedirect() bool

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

func (*SearchOK) IsServerError

func (o *SearchOK) IsServerError() bool

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

func (*SearchOK) IsSuccess

func (o *SearchOK) IsSuccess() bool

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

func (*SearchOK) String

func (o *SearchOK) String() string

type SearchParams

type SearchParams struct {

	/* CollectionName.

	   The name of the collection
	*/
	CollectionName string

	/* Filter.

	   The filter to limit the returned results.
	*/
	Filter string

	/* Limit.

	   The limit of results to return
	*/
	Limit int64

	/* Offset.

	   The offset of results to return
	*/
	Offset int64

	/* Sort.

	   The sort order for the returned results.
	*/
	Sort *string

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

SearchParams contains all the parameters to send to the API endpoint

for the search operation.

Typically these are written to a http.Request.

func NewSearchParams

func NewSearchParams() *SearchParams

NewSearchParams creates a new SearchParams 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 NewSearchParamsWithContext

func NewSearchParamsWithContext(ctx context.Context) *SearchParams

NewSearchParamsWithContext creates a new SearchParams object with the ability to set a context for a request.

func NewSearchParamsWithHTTPClient

func NewSearchParamsWithHTTPClient(client *http.Client) *SearchParams

NewSearchParamsWithHTTPClient creates a new SearchParams object with the ability to set a custom HTTPClient for a request.

func NewSearchParamsWithTimeout

func NewSearchParamsWithTimeout(timeout time.Duration) *SearchParams

NewSearchParamsWithTimeout creates a new SearchParams object with the ability to set a timeout on a request.

func (*SearchParams) SetCollectionName

func (o *SearchParams) SetCollectionName(collectionName string)

SetCollectionName adds the collectionName to the search params

func (*SearchParams) SetContext

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

SetContext adds the context to the search params

func (*SearchParams) SetDefaults

func (o *SearchParams) SetDefaults()

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

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

func (*SearchParams) SetFilter

func (o *SearchParams) SetFilter(filter string)

SetFilter adds the filter to the search params

func (*SearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search params

func (*SearchParams) SetLimit

func (o *SearchParams) SetLimit(limit int64)

SetLimit adds the limit to the search params

func (*SearchParams) SetOffset

func (o *SearchParams) SetOffset(offset int64)

SetOffset adds the offset to the search params

func (*SearchParams) SetSort

func (o *SearchParams) SetSort(sort *string)

SetSort adds the sort to the search params

func (*SearchParams) SetTimeout

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

SetTimeout adds the timeout to the search params

func (*SearchParams) WithCollectionName

func (o *SearchParams) WithCollectionName(collectionName string) *SearchParams

WithCollectionName adds the collectionName to the search params

func (*SearchParams) WithContext

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

WithContext adds the context to the search params

func (*SearchParams) WithDefaults

func (o *SearchParams) WithDefaults() *SearchParams

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

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

func (*SearchParams) WithFilter

func (o *SearchParams) WithFilter(filter string) *SearchParams

WithFilter adds the filter to the search params

func (*SearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search params

func (*SearchParams) WithLimit

func (o *SearchParams) WithLimit(limit int64) *SearchParams

WithLimit adds the limit to the search params

func (*SearchParams) WithOffset

func (o *SearchParams) WithOffset(offset int64) *SearchParams

WithOffset adds the offset to the search params

func (*SearchParams) WithSort

func (o *SearchParams) WithSort(sort *string) *SearchParams

WithSort adds the sort to the search params

func (*SearchParams) WithTimeout

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

WithTimeout adds the timeout to the search params

func (*SearchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchReader

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

SearchReader is a Reader for the Search structure.

func (*SearchReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchTooManyRequests

type SearchTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

SearchTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewSearchTooManyRequests

func NewSearchTooManyRequests() *SearchTooManyRequests

NewSearchTooManyRequests creates a SearchTooManyRequests with default headers values

func (*SearchTooManyRequests) Code

func (o *SearchTooManyRequests) Code() int

Code gets the status code for the search too many requests response

func (*SearchTooManyRequests) Error

func (o *SearchTooManyRequests) Error() string

func (*SearchTooManyRequests) GetPayload

func (*SearchTooManyRequests) IsClientError

func (o *SearchTooManyRequests) IsClientError() bool

IsClientError returns true when this search too many requests response has a 4xx status code

func (*SearchTooManyRequests) IsCode

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

IsCode returns true when this search too many requests response a status code equal to that given

func (*SearchTooManyRequests) IsRedirect

func (o *SearchTooManyRequests) IsRedirect() bool

IsRedirect returns true when this search too many requests response has a 3xx status code

func (*SearchTooManyRequests) IsServerError

func (o *SearchTooManyRequests) IsServerError() bool

IsServerError returns true when this search too many requests response has a 5xx status code

func (*SearchTooManyRequests) IsSuccess

func (o *SearchTooManyRequests) IsSuccess() bool

IsSuccess returns true when this search too many requests response has a 2xx status code

func (*SearchTooManyRequests) String

func (o *SearchTooManyRequests) String() string

type UploadForbidden

type UploadForbidden struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.MsaReplyMetaOnly
}

UploadForbidden describes a response with status code 403, with default header values.

Forbidden

func NewUploadForbidden

func NewUploadForbidden() *UploadForbidden

NewUploadForbidden creates a UploadForbidden with default headers values

func (*UploadForbidden) Code

func (o *UploadForbidden) Code() int

Code gets the status code for the upload forbidden response

func (*UploadForbidden) Error

func (o *UploadForbidden) Error() string

func (*UploadForbidden) GetPayload

func (o *UploadForbidden) GetPayload() *models.MsaReplyMetaOnly

func (*UploadForbidden) IsClientError

func (o *UploadForbidden) IsClientError() bool

IsClientError returns true when this upload forbidden response has a 4xx status code

func (*UploadForbidden) IsCode

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

IsCode returns true when this upload forbidden response a status code equal to that given

func (*UploadForbidden) IsRedirect

func (o *UploadForbidden) IsRedirect() bool

IsRedirect returns true when this upload forbidden response has a 3xx status code

func (*UploadForbidden) IsServerError

func (o *UploadForbidden) IsServerError() bool

IsServerError returns true when this upload forbidden response has a 5xx status code

func (*UploadForbidden) IsSuccess

func (o *UploadForbidden) IsSuccess() bool

IsSuccess returns true when this upload forbidden response has a 2xx status code

func (*UploadForbidden) String

func (o *UploadForbidden) String() string

type UploadOK

type UploadOK struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	Payload *models.CustomStorageResponse
}

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

OK

func NewUploadOK

func NewUploadOK() *UploadOK

NewUploadOK creates a UploadOK with default headers values

func (*UploadOK) Code

func (o *UploadOK) Code() int

Code gets the status code for the upload o k response

func (*UploadOK) Error

func (o *UploadOK) Error() string

func (*UploadOK) GetPayload

func (o *UploadOK) GetPayload() *models.CustomStorageResponse

func (*UploadOK) IsClientError

func (o *UploadOK) IsClientError() bool

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

func (*UploadOK) IsCode

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

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

func (*UploadOK) IsRedirect

func (o *UploadOK) IsRedirect() bool

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

func (*UploadOK) IsServerError

func (o *UploadOK) IsServerError() bool

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

func (*UploadOK) IsSuccess

func (o *UploadOK) IsSuccess() bool

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

func (*UploadOK) String

func (o *UploadOK) String() string

type UploadParams

type UploadParams struct {

	// Body.
	//
	// Format: binary
	Body io.ReadCloser

	/* CollectionName.

	   The name of the collection
	*/
	CollectionName string

	/* DryRun.

	   If false, run the operation as normal.  If true, validate that the request *would* succeed, but don't execute it.
	*/
	DryRun bool

	/* ObjectKey.

	   The object key
	*/
	ObjectKey string

	/* SchemaVersion.

	   The version of the collection schema
	*/
	SchemaVersion *string

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

UploadParams contains all the parameters to send to the API endpoint

for the upload operation.

Typically these are written to a http.Request.

func NewUploadParams

func NewUploadParams() *UploadParams

NewUploadParams creates a new UploadParams 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 NewUploadParamsWithContext

func NewUploadParamsWithContext(ctx context.Context) *UploadParams

NewUploadParamsWithContext creates a new UploadParams object with the ability to set a context for a request.

func NewUploadParamsWithHTTPClient

func NewUploadParamsWithHTTPClient(client *http.Client) *UploadParams

NewUploadParamsWithHTTPClient creates a new UploadParams object with the ability to set a custom HTTPClient for a request.

func NewUploadParamsWithTimeout

func NewUploadParamsWithTimeout(timeout time.Duration) *UploadParams

NewUploadParamsWithTimeout creates a new UploadParams object with the ability to set a timeout on a request.

func (*UploadParams) SetBody

func (o *UploadParams) SetBody(body io.ReadCloser)

SetBody adds the body to the upload params

func (*UploadParams) SetCollectionName

func (o *UploadParams) SetCollectionName(collectionName string)

SetCollectionName adds the collectionName to the upload params

func (*UploadParams) SetContext

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

SetContext adds the context to the upload params

func (*UploadParams) SetDefaults

func (o *UploadParams) SetDefaults()

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

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

func (*UploadParams) SetDryRun

func (o *UploadParams) SetDryRun(dryRun bool)

SetDryRun adds the dryRun to the upload params

func (*UploadParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the upload params

func (*UploadParams) SetObjectKey

func (o *UploadParams) SetObjectKey(objectKey string)

SetObjectKey adds the objectKey to the upload params

func (*UploadParams) SetSchemaVersion

func (o *UploadParams) SetSchemaVersion(schemaVersion *string)

SetSchemaVersion adds the schemaVersion to the upload params

func (*UploadParams) SetTimeout

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

SetTimeout adds the timeout to the upload params

func (*UploadParams) WithBody

func (o *UploadParams) WithBody(body io.ReadCloser) *UploadParams

WithBody adds the body to the upload params

func (*UploadParams) WithCollectionName

func (o *UploadParams) WithCollectionName(collectionName string) *UploadParams

WithCollectionName adds the collectionName to the upload params

func (*UploadParams) WithContext

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

WithContext adds the context to the upload params

func (*UploadParams) WithDefaults

func (o *UploadParams) WithDefaults() *UploadParams

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

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

func (*UploadParams) WithDryRun

func (o *UploadParams) WithDryRun(dryRun bool) *UploadParams

WithDryRun adds the dryRun to the upload params

func (*UploadParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the upload params

func (*UploadParams) WithObjectKey

func (o *UploadParams) WithObjectKey(objectKey string) *UploadParams

WithObjectKey adds the objectKey to the upload params

func (*UploadParams) WithSchemaVersion

func (o *UploadParams) WithSchemaVersion(schemaVersion *string) *UploadParams

WithSchemaVersion adds the schemaVersion to the upload params

func (*UploadParams) WithTimeout

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

WithTimeout adds the timeout to the upload params

func (*UploadParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UploadReader

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

UploadReader is a Reader for the Upload structure.

func (*UploadReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UploadTooManyRequests

type UploadTooManyRequests struct {

	/* Trace-ID: submit to support if resolving an issue
	 */
	XCSTRACEID string

	/* Request limit per minute.
	 */
	XRateLimitLimit int64

	/* The number of requests remaining for the sliding one minute window.
	 */
	XRateLimitRemaining int64

	/* Too many requests, retry after this time (as milliseconds since epoch)
	 */
	XRateLimitRetryAfter int64

	Payload *models.MsaReplyMetaOnly
}

UploadTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewUploadTooManyRequests

func NewUploadTooManyRequests() *UploadTooManyRequests

NewUploadTooManyRequests creates a UploadTooManyRequests with default headers values

func (*UploadTooManyRequests) Code

func (o *UploadTooManyRequests) Code() int

Code gets the status code for the upload too many requests response

func (*UploadTooManyRequests) Error

func (o *UploadTooManyRequests) Error() string

func (*UploadTooManyRequests) GetPayload

func (*UploadTooManyRequests) IsClientError

func (o *UploadTooManyRequests) IsClientError() bool

IsClientError returns true when this upload too many requests response has a 4xx status code

func (*UploadTooManyRequests) IsCode

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

IsCode returns true when this upload too many requests response a status code equal to that given

func (*UploadTooManyRequests) IsRedirect

func (o *UploadTooManyRequests) IsRedirect() bool

IsRedirect returns true when this upload too many requests response has a 3xx status code

func (*UploadTooManyRequests) IsServerError

func (o *UploadTooManyRequests) IsServerError() bool

IsServerError returns true when this upload too many requests response has a 5xx status code

func (*UploadTooManyRequests) IsSuccess

func (o *UploadTooManyRequests) IsSuccess() bool

IsSuccess returns true when this upload too many requests response has a 2xx status code

func (*UploadTooManyRequests) String

func (o *UploadTooManyRequests) String() string

Jump to

Keyboard shortcuts

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