Documentation ¶
Index ¶
- type Client
- func (a *Client) CreatePartition(params *CreatePartitionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreatePartitionCreated, error)
- func (a *Client) DeletePartition(params *DeletePartitionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeletePartitionOK, error)
- func (a *Client) FindPartition(params *FindPartitionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*FindPartitionOK, error)
- func (a *Client) ListPartitions(params *ListPartitionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListPartitionsOK, error)
- func (a *Client) PartitionCapacity(params *PartitionCapacityParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PartitionCapacityOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePartition(params *UpdatePartitionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdatePartitionOK, error)
- type ClientOption
- type ClientService
- type CreatePartitionConflict
- type CreatePartitionCreated
- type CreatePartitionDefault
- type CreatePartitionParams
- func NewCreatePartitionParams() *CreatePartitionParams
- func NewCreatePartitionParamsWithContext(ctx context.Context) *CreatePartitionParams
- func NewCreatePartitionParamsWithHTTPClient(client *http.Client) *CreatePartitionParams
- func NewCreatePartitionParamsWithTimeout(timeout time.Duration) *CreatePartitionParams
- func (o *CreatePartitionParams) SetBody(body *models.V1PartitionCreateRequest)
- func (o *CreatePartitionParams) SetContext(ctx context.Context)
- func (o *CreatePartitionParams) SetDefaults()
- func (o *CreatePartitionParams) SetHTTPClient(client *http.Client)
- func (o *CreatePartitionParams) SetTimeout(timeout time.Duration)
- func (o *CreatePartitionParams) WithBody(body *models.V1PartitionCreateRequest) *CreatePartitionParams
- func (o *CreatePartitionParams) WithContext(ctx context.Context) *CreatePartitionParams
- func (o *CreatePartitionParams) WithDefaults() *CreatePartitionParams
- func (o *CreatePartitionParams) WithHTTPClient(client *http.Client) *CreatePartitionParams
- func (o *CreatePartitionParams) WithTimeout(timeout time.Duration) *CreatePartitionParams
- func (o *CreatePartitionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePartitionReader
- type DeletePartitionDefault
- type DeletePartitionOK
- type DeletePartitionParams
- func NewDeletePartitionParams() *DeletePartitionParams
- func NewDeletePartitionParamsWithContext(ctx context.Context) *DeletePartitionParams
- func NewDeletePartitionParamsWithHTTPClient(client *http.Client) *DeletePartitionParams
- func NewDeletePartitionParamsWithTimeout(timeout time.Duration) *DeletePartitionParams
- func (o *DeletePartitionParams) SetContext(ctx context.Context)
- func (o *DeletePartitionParams) SetDefaults()
- func (o *DeletePartitionParams) SetHTTPClient(client *http.Client)
- func (o *DeletePartitionParams) SetID(id string)
- func (o *DeletePartitionParams) SetTimeout(timeout time.Duration)
- func (o *DeletePartitionParams) WithContext(ctx context.Context) *DeletePartitionParams
- func (o *DeletePartitionParams) WithDefaults() *DeletePartitionParams
- func (o *DeletePartitionParams) WithHTTPClient(client *http.Client) *DeletePartitionParams
- func (o *DeletePartitionParams) WithID(id string) *DeletePartitionParams
- func (o *DeletePartitionParams) WithTimeout(timeout time.Duration) *DeletePartitionParams
- func (o *DeletePartitionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePartitionReader
- type FindPartitionDefault
- type FindPartitionOK
- type FindPartitionParams
- func (o *FindPartitionParams) SetContext(ctx context.Context)
- func (o *FindPartitionParams) SetDefaults()
- func (o *FindPartitionParams) SetHTTPClient(client *http.Client)
- func (o *FindPartitionParams) SetID(id string)
- func (o *FindPartitionParams) SetTimeout(timeout time.Duration)
- func (o *FindPartitionParams) WithContext(ctx context.Context) *FindPartitionParams
- func (o *FindPartitionParams) WithDefaults() *FindPartitionParams
- func (o *FindPartitionParams) WithHTTPClient(client *http.Client) *FindPartitionParams
- func (o *FindPartitionParams) WithID(id string) *FindPartitionParams
- func (o *FindPartitionParams) WithTimeout(timeout time.Duration) *FindPartitionParams
- func (o *FindPartitionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindPartitionReader
- type ListPartitionsDefault
- type ListPartitionsOK
- type ListPartitionsParams
- func NewListPartitionsParams() *ListPartitionsParams
- func NewListPartitionsParamsWithContext(ctx context.Context) *ListPartitionsParams
- func NewListPartitionsParamsWithHTTPClient(client *http.Client) *ListPartitionsParams
- func NewListPartitionsParamsWithTimeout(timeout time.Duration) *ListPartitionsParams
- func (o *ListPartitionsParams) SetContext(ctx context.Context)
- func (o *ListPartitionsParams) SetDefaults()
- func (o *ListPartitionsParams) SetHTTPClient(client *http.Client)
- func (o *ListPartitionsParams) SetTimeout(timeout time.Duration)
- func (o *ListPartitionsParams) WithContext(ctx context.Context) *ListPartitionsParams
- func (o *ListPartitionsParams) WithDefaults() *ListPartitionsParams
- func (o *ListPartitionsParams) WithHTTPClient(client *http.Client) *ListPartitionsParams
- func (o *ListPartitionsParams) WithTimeout(timeout time.Duration) *ListPartitionsParams
- func (o *ListPartitionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPartitionsReader
- type PartitionCapacityDefault
- type PartitionCapacityOK
- type PartitionCapacityParams
- func NewPartitionCapacityParams() *PartitionCapacityParams
- func NewPartitionCapacityParamsWithContext(ctx context.Context) *PartitionCapacityParams
- func NewPartitionCapacityParamsWithHTTPClient(client *http.Client) *PartitionCapacityParams
- func NewPartitionCapacityParamsWithTimeout(timeout time.Duration) *PartitionCapacityParams
- func (o *PartitionCapacityParams) SetBody(body *models.V1PartitionCapacityRequest)
- func (o *PartitionCapacityParams) SetContext(ctx context.Context)
- func (o *PartitionCapacityParams) SetDefaults()
- func (o *PartitionCapacityParams) SetHTTPClient(client *http.Client)
- func (o *PartitionCapacityParams) SetTimeout(timeout time.Duration)
- func (o *PartitionCapacityParams) WithBody(body *models.V1PartitionCapacityRequest) *PartitionCapacityParams
- func (o *PartitionCapacityParams) WithContext(ctx context.Context) *PartitionCapacityParams
- func (o *PartitionCapacityParams) WithDefaults() *PartitionCapacityParams
- func (o *PartitionCapacityParams) WithHTTPClient(client *http.Client) *PartitionCapacityParams
- func (o *PartitionCapacityParams) WithTimeout(timeout time.Duration) *PartitionCapacityParams
- func (o *PartitionCapacityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PartitionCapacityReader
- type UpdatePartitionConflict
- type UpdatePartitionDefault
- type UpdatePartitionOK
- type UpdatePartitionParams
- func NewUpdatePartitionParams() *UpdatePartitionParams
- func NewUpdatePartitionParamsWithContext(ctx context.Context) *UpdatePartitionParams
- func NewUpdatePartitionParamsWithHTTPClient(client *http.Client) *UpdatePartitionParams
- func NewUpdatePartitionParamsWithTimeout(timeout time.Duration) *UpdatePartitionParams
- func (o *UpdatePartitionParams) SetBody(body *models.V1PartitionUpdateRequest)
- func (o *UpdatePartitionParams) SetContext(ctx context.Context)
- func (o *UpdatePartitionParams) SetDefaults()
- func (o *UpdatePartitionParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePartitionParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePartitionParams) WithBody(body *models.V1PartitionUpdateRequest) *UpdatePartitionParams
- func (o *UpdatePartitionParams) WithContext(ctx context.Context) *UpdatePartitionParams
- func (o *UpdatePartitionParams) WithDefaults() *UpdatePartitionParams
- func (o *UpdatePartitionParams) WithHTTPClient(client *http.Client) *UpdatePartitionParams
- func (o *UpdatePartitionParams) WithTimeout(timeout time.Duration) *UpdatePartitionParams
- func (o *UpdatePartitionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePartitionReader
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 partition API
func (*Client) CreatePartition ¶
func (a *Client) CreatePartition(params *CreatePartitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePartitionCreated, error)
CreatePartition creates a partition if the given ID already exists a conflict is returned
func (*Client) DeletePartition ¶
func (a *Client) DeletePartition(params *DeletePartitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePartitionOK, error)
DeletePartition deletes a partition and returns the deleted entity
func (*Client) FindPartition ¶
func (a *Client) FindPartition(params *FindPartitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindPartitionOK, error)
FindPartition gets partition by id
func (*Client) ListPartitions ¶
func (a *Client) ListPartitions(params *ListPartitionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPartitionsOK, error)
ListPartitions gets all partitions
func (*Client) PartitionCapacity ¶
func (a *Client) PartitionCapacity(params *PartitionCapacityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PartitionCapacityOK, error)
PartitionCapacity gets partition capacity
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdatePartition ¶
func (a *Client) UpdatePartition(params *UpdatePartitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePartitionOK, error)
UpdatePartition updates a partition if the partition was changed since this one was read a conflict is returned
type ClientOption ¶ added in v0.13.1
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v0.11.0
type ClientService interface { CreatePartition(params *CreatePartitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreatePartitionCreated, error) DeletePartition(params *DeletePartitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeletePartitionOK, error) FindPartition(params *FindPartitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindPartitionOK, error) ListPartitions(params *ListPartitionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListPartitionsOK, error) PartitionCapacity(params *PartitionCapacityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PartitionCapacityOK, error) UpdatePartition(params *UpdatePartitionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdatePartitionOK, 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 partition API client.
type CreatePartitionConflict ¶
type CreatePartitionConflict struct {
Payload *httperrors.HTTPErrorResponse
}
CreatePartitionConflict describes a response with status code 409, with default header values.
Conflict
func NewCreatePartitionConflict ¶
func NewCreatePartitionConflict() *CreatePartitionConflict
NewCreatePartitionConflict creates a CreatePartitionConflict with default headers values
func (*CreatePartitionConflict) Error ¶
func (o *CreatePartitionConflict) Error() string
func (*CreatePartitionConflict) GetPayload ¶ added in v0.11.0
func (o *CreatePartitionConflict) GetPayload() *httperrors.HTTPErrorResponse
type CreatePartitionCreated ¶
type CreatePartitionCreated struct {
Payload *models.V1PartitionResponse
}
CreatePartitionCreated describes a response with status code 201, with default header values.
Created
func NewCreatePartitionCreated ¶
func NewCreatePartitionCreated() *CreatePartitionCreated
NewCreatePartitionCreated creates a CreatePartitionCreated with default headers values
func (*CreatePartitionCreated) Error ¶
func (o *CreatePartitionCreated) Error() string
func (*CreatePartitionCreated) GetPayload ¶ added in v0.11.0
func (o *CreatePartitionCreated) GetPayload() *models.V1PartitionResponse
type CreatePartitionDefault ¶
type CreatePartitionDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
CreatePartitionDefault describes a response with status code -1, with default header values.
Error
func NewCreatePartitionDefault ¶
func NewCreatePartitionDefault(code int) *CreatePartitionDefault
NewCreatePartitionDefault creates a CreatePartitionDefault with default headers values
func (*CreatePartitionDefault) Code ¶
func (o *CreatePartitionDefault) Code() int
Code gets the status code for the create partition default response
func (*CreatePartitionDefault) Error ¶
func (o *CreatePartitionDefault) Error() string
func (*CreatePartitionDefault) GetPayload ¶ added in v0.11.0
func (o *CreatePartitionDefault) GetPayload() *httperrors.HTTPErrorResponse
type CreatePartitionParams ¶
type CreatePartitionParams struct { // Body. Body *models.V1PartitionCreateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePartitionParams contains all the parameters to send to the API endpoint
for the create partition operation. Typically these are written to a http.Request.
func NewCreatePartitionParams ¶
func NewCreatePartitionParams() *CreatePartitionParams
NewCreatePartitionParams creates a new CreatePartitionParams 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 NewCreatePartitionParamsWithContext ¶
func NewCreatePartitionParamsWithContext(ctx context.Context) *CreatePartitionParams
NewCreatePartitionParamsWithContext creates a new CreatePartitionParams object with the ability to set a context for a request.
func NewCreatePartitionParamsWithHTTPClient ¶
func NewCreatePartitionParamsWithHTTPClient(client *http.Client) *CreatePartitionParams
NewCreatePartitionParamsWithHTTPClient creates a new CreatePartitionParams object with the ability to set a custom HTTPClient for a request.
func NewCreatePartitionParamsWithTimeout ¶
func NewCreatePartitionParamsWithTimeout(timeout time.Duration) *CreatePartitionParams
NewCreatePartitionParamsWithTimeout creates a new CreatePartitionParams object with the ability to set a timeout on a request.
func (*CreatePartitionParams) SetBody ¶
func (o *CreatePartitionParams) SetBody(body *models.V1PartitionCreateRequest)
SetBody adds the body to the create partition params
func (*CreatePartitionParams) SetContext ¶
func (o *CreatePartitionParams) SetContext(ctx context.Context)
SetContext adds the context to the create partition params
func (*CreatePartitionParams) SetDefaults ¶ added in v0.12.1
func (o *CreatePartitionParams) SetDefaults()
SetDefaults hydrates default values in the create partition params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePartitionParams) SetHTTPClient ¶
func (o *CreatePartitionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create partition params
func (*CreatePartitionParams) SetTimeout ¶
func (o *CreatePartitionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create partition params
func (*CreatePartitionParams) WithBody ¶
func (o *CreatePartitionParams) WithBody(body *models.V1PartitionCreateRequest) *CreatePartitionParams
WithBody adds the body to the create partition params
func (*CreatePartitionParams) WithContext ¶
func (o *CreatePartitionParams) WithContext(ctx context.Context) *CreatePartitionParams
WithContext adds the context to the create partition params
func (*CreatePartitionParams) WithDefaults ¶ added in v0.12.1
func (o *CreatePartitionParams) WithDefaults() *CreatePartitionParams
WithDefaults hydrates default values in the create partition params (not the query body).
All values with no default are reset to their zero value.
func (*CreatePartitionParams) WithHTTPClient ¶
func (o *CreatePartitionParams) WithHTTPClient(client *http.Client) *CreatePartitionParams
WithHTTPClient adds the HTTPClient to the create partition params
func (*CreatePartitionParams) WithTimeout ¶
func (o *CreatePartitionParams) WithTimeout(timeout time.Duration) *CreatePartitionParams
WithTimeout adds the timeout to the create partition params
func (*CreatePartitionParams) WriteToRequest ¶
func (o *CreatePartitionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePartitionReader ¶
type CreatePartitionReader struct {
// contains filtered or unexported fields
}
CreatePartitionReader is a Reader for the CreatePartition structure.
func (*CreatePartitionReader) ReadResponse ¶
func (o *CreatePartitionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeletePartitionDefault ¶
type DeletePartitionDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
DeletePartitionDefault describes a response with status code -1, with default header values.
Error
func NewDeletePartitionDefault ¶
func NewDeletePartitionDefault(code int) *DeletePartitionDefault
NewDeletePartitionDefault creates a DeletePartitionDefault with default headers values
func (*DeletePartitionDefault) Code ¶
func (o *DeletePartitionDefault) Code() int
Code gets the status code for the delete partition default response
func (*DeletePartitionDefault) Error ¶
func (o *DeletePartitionDefault) Error() string
func (*DeletePartitionDefault) GetPayload ¶ added in v0.11.0
func (o *DeletePartitionDefault) GetPayload() *httperrors.HTTPErrorResponse
type DeletePartitionOK ¶
type DeletePartitionOK struct {
Payload *models.V1PartitionResponse
}
DeletePartitionOK describes a response with status code 200, with default header values.
OK
func NewDeletePartitionOK ¶
func NewDeletePartitionOK() *DeletePartitionOK
NewDeletePartitionOK creates a DeletePartitionOK with default headers values
func (*DeletePartitionOK) Error ¶
func (o *DeletePartitionOK) Error() string
func (*DeletePartitionOK) GetPayload ¶ added in v0.11.0
func (o *DeletePartitionOK) GetPayload() *models.V1PartitionResponse
type DeletePartitionParams ¶
type DeletePartitionParams struct { /* ID. identifier of the Partition */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeletePartitionParams contains all the parameters to send to the API endpoint
for the delete partition operation. Typically these are written to a http.Request.
func NewDeletePartitionParams ¶
func NewDeletePartitionParams() *DeletePartitionParams
NewDeletePartitionParams creates a new DeletePartitionParams 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 NewDeletePartitionParamsWithContext ¶
func NewDeletePartitionParamsWithContext(ctx context.Context) *DeletePartitionParams
NewDeletePartitionParamsWithContext creates a new DeletePartitionParams object with the ability to set a context for a request.
func NewDeletePartitionParamsWithHTTPClient ¶
func NewDeletePartitionParamsWithHTTPClient(client *http.Client) *DeletePartitionParams
NewDeletePartitionParamsWithHTTPClient creates a new DeletePartitionParams object with the ability to set a custom HTTPClient for a request.
func NewDeletePartitionParamsWithTimeout ¶
func NewDeletePartitionParamsWithTimeout(timeout time.Duration) *DeletePartitionParams
NewDeletePartitionParamsWithTimeout creates a new DeletePartitionParams object with the ability to set a timeout on a request.
func (*DeletePartitionParams) SetContext ¶
func (o *DeletePartitionParams) SetContext(ctx context.Context)
SetContext adds the context to the delete partition params
func (*DeletePartitionParams) SetDefaults ¶ added in v0.12.1
func (o *DeletePartitionParams) SetDefaults()
SetDefaults hydrates default values in the delete partition params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePartitionParams) SetHTTPClient ¶
func (o *DeletePartitionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete partition params
func (*DeletePartitionParams) SetID ¶
func (o *DeletePartitionParams) SetID(id string)
SetID adds the id to the delete partition params
func (*DeletePartitionParams) SetTimeout ¶
func (o *DeletePartitionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete partition params
func (*DeletePartitionParams) WithContext ¶
func (o *DeletePartitionParams) WithContext(ctx context.Context) *DeletePartitionParams
WithContext adds the context to the delete partition params
func (*DeletePartitionParams) WithDefaults ¶ added in v0.12.1
func (o *DeletePartitionParams) WithDefaults() *DeletePartitionParams
WithDefaults hydrates default values in the delete partition params (not the query body).
All values with no default are reset to their zero value.
func (*DeletePartitionParams) WithHTTPClient ¶
func (o *DeletePartitionParams) WithHTTPClient(client *http.Client) *DeletePartitionParams
WithHTTPClient adds the HTTPClient to the delete partition params
func (*DeletePartitionParams) WithID ¶
func (o *DeletePartitionParams) WithID(id string) *DeletePartitionParams
WithID adds the id to the delete partition params
func (*DeletePartitionParams) WithTimeout ¶
func (o *DeletePartitionParams) WithTimeout(timeout time.Duration) *DeletePartitionParams
WithTimeout adds the timeout to the delete partition params
func (*DeletePartitionParams) WriteToRequest ¶
func (o *DeletePartitionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeletePartitionReader ¶
type DeletePartitionReader struct {
// contains filtered or unexported fields
}
DeletePartitionReader is a Reader for the DeletePartition structure.
func (*DeletePartitionReader) ReadResponse ¶
func (o *DeletePartitionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindPartitionDefault ¶
type FindPartitionDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
FindPartitionDefault describes a response with status code -1, with default header values.
Error
func NewFindPartitionDefault ¶
func NewFindPartitionDefault(code int) *FindPartitionDefault
NewFindPartitionDefault creates a FindPartitionDefault with default headers values
func (*FindPartitionDefault) Code ¶
func (o *FindPartitionDefault) Code() int
Code gets the status code for the find partition default response
func (*FindPartitionDefault) Error ¶
func (o *FindPartitionDefault) Error() string
func (*FindPartitionDefault) GetPayload ¶ added in v0.11.0
func (o *FindPartitionDefault) GetPayload() *httperrors.HTTPErrorResponse
type FindPartitionOK ¶
type FindPartitionOK struct {
Payload *models.V1PartitionResponse
}
FindPartitionOK describes a response with status code 200, with default header values.
OK
func NewFindPartitionOK ¶
func NewFindPartitionOK() *FindPartitionOK
NewFindPartitionOK creates a FindPartitionOK with default headers values
func (*FindPartitionOK) Error ¶
func (o *FindPartitionOK) Error() string
func (*FindPartitionOK) GetPayload ¶ added in v0.11.0
func (o *FindPartitionOK) GetPayload() *models.V1PartitionResponse
type FindPartitionParams ¶
type FindPartitionParams struct { /* ID. identifier of the Partition */ ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindPartitionParams contains all the parameters to send to the API endpoint
for the find partition operation. Typically these are written to a http.Request.
func NewFindPartitionParams ¶
func NewFindPartitionParams() *FindPartitionParams
NewFindPartitionParams creates a new FindPartitionParams 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 NewFindPartitionParamsWithContext ¶
func NewFindPartitionParamsWithContext(ctx context.Context) *FindPartitionParams
NewFindPartitionParamsWithContext creates a new FindPartitionParams object with the ability to set a context for a request.
func NewFindPartitionParamsWithHTTPClient ¶
func NewFindPartitionParamsWithHTTPClient(client *http.Client) *FindPartitionParams
NewFindPartitionParamsWithHTTPClient creates a new FindPartitionParams object with the ability to set a custom HTTPClient for a request.
func NewFindPartitionParamsWithTimeout ¶
func NewFindPartitionParamsWithTimeout(timeout time.Duration) *FindPartitionParams
NewFindPartitionParamsWithTimeout creates a new FindPartitionParams object with the ability to set a timeout on a request.
func (*FindPartitionParams) SetContext ¶
func (o *FindPartitionParams) SetContext(ctx context.Context)
SetContext adds the context to the find partition params
func (*FindPartitionParams) SetDefaults ¶ added in v0.12.1
func (o *FindPartitionParams) SetDefaults()
SetDefaults hydrates default values in the find partition params (not the query body).
All values with no default are reset to their zero value.
func (*FindPartitionParams) SetHTTPClient ¶
func (o *FindPartitionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find partition params
func (*FindPartitionParams) SetID ¶
func (o *FindPartitionParams) SetID(id string)
SetID adds the id to the find partition params
func (*FindPartitionParams) SetTimeout ¶
func (o *FindPartitionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find partition params
func (*FindPartitionParams) WithContext ¶
func (o *FindPartitionParams) WithContext(ctx context.Context) *FindPartitionParams
WithContext adds the context to the find partition params
func (*FindPartitionParams) WithDefaults ¶ added in v0.12.1
func (o *FindPartitionParams) WithDefaults() *FindPartitionParams
WithDefaults hydrates default values in the find partition params (not the query body).
All values with no default are reset to their zero value.
func (*FindPartitionParams) WithHTTPClient ¶
func (o *FindPartitionParams) WithHTTPClient(client *http.Client) *FindPartitionParams
WithHTTPClient adds the HTTPClient to the find partition params
func (*FindPartitionParams) WithID ¶
func (o *FindPartitionParams) WithID(id string) *FindPartitionParams
WithID adds the id to the find partition params
func (*FindPartitionParams) WithTimeout ¶
func (o *FindPartitionParams) WithTimeout(timeout time.Duration) *FindPartitionParams
WithTimeout adds the timeout to the find partition params
func (*FindPartitionParams) WriteToRequest ¶
func (o *FindPartitionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindPartitionReader ¶
type FindPartitionReader struct {
// contains filtered or unexported fields
}
FindPartitionReader is a Reader for the FindPartition structure.
func (*FindPartitionReader) ReadResponse ¶
func (o *FindPartitionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListPartitionsDefault ¶
type ListPartitionsDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
ListPartitionsDefault describes a response with status code -1, with default header values.
Error
func NewListPartitionsDefault ¶
func NewListPartitionsDefault(code int) *ListPartitionsDefault
NewListPartitionsDefault creates a ListPartitionsDefault with default headers values
func (*ListPartitionsDefault) Code ¶
func (o *ListPartitionsDefault) Code() int
Code gets the status code for the list partitions default response
func (*ListPartitionsDefault) Error ¶
func (o *ListPartitionsDefault) Error() string
func (*ListPartitionsDefault) GetPayload ¶ added in v0.11.0
func (o *ListPartitionsDefault) GetPayload() *httperrors.HTTPErrorResponse
type ListPartitionsOK ¶
type ListPartitionsOK struct {
Payload []*models.V1PartitionResponse
}
ListPartitionsOK describes a response with status code 200, with default header values.
OK
func NewListPartitionsOK ¶
func NewListPartitionsOK() *ListPartitionsOK
NewListPartitionsOK creates a ListPartitionsOK with default headers values
func (*ListPartitionsOK) Error ¶
func (o *ListPartitionsOK) Error() string
func (*ListPartitionsOK) GetPayload ¶ added in v0.11.0
func (o *ListPartitionsOK) GetPayload() []*models.V1PartitionResponse
type ListPartitionsParams ¶
type ListPartitionsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListPartitionsParams contains all the parameters to send to the API endpoint
for the list partitions operation. Typically these are written to a http.Request.
func NewListPartitionsParams ¶
func NewListPartitionsParams() *ListPartitionsParams
NewListPartitionsParams creates a new ListPartitionsParams 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 NewListPartitionsParamsWithContext ¶
func NewListPartitionsParamsWithContext(ctx context.Context) *ListPartitionsParams
NewListPartitionsParamsWithContext creates a new ListPartitionsParams object with the ability to set a context for a request.
func NewListPartitionsParamsWithHTTPClient ¶
func NewListPartitionsParamsWithHTTPClient(client *http.Client) *ListPartitionsParams
NewListPartitionsParamsWithHTTPClient creates a new ListPartitionsParams object with the ability to set a custom HTTPClient for a request.
func NewListPartitionsParamsWithTimeout ¶
func NewListPartitionsParamsWithTimeout(timeout time.Duration) *ListPartitionsParams
NewListPartitionsParamsWithTimeout creates a new ListPartitionsParams object with the ability to set a timeout on a request.
func (*ListPartitionsParams) SetContext ¶
func (o *ListPartitionsParams) SetContext(ctx context.Context)
SetContext adds the context to the list partitions params
func (*ListPartitionsParams) SetDefaults ¶ added in v0.12.1
func (o *ListPartitionsParams) SetDefaults()
SetDefaults hydrates default values in the list partitions params (not the query body).
All values with no default are reset to their zero value.
func (*ListPartitionsParams) SetHTTPClient ¶
func (o *ListPartitionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list partitions params
func (*ListPartitionsParams) SetTimeout ¶
func (o *ListPartitionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list partitions params
func (*ListPartitionsParams) WithContext ¶
func (o *ListPartitionsParams) WithContext(ctx context.Context) *ListPartitionsParams
WithContext adds the context to the list partitions params
func (*ListPartitionsParams) WithDefaults ¶ added in v0.12.1
func (o *ListPartitionsParams) WithDefaults() *ListPartitionsParams
WithDefaults hydrates default values in the list partitions params (not the query body).
All values with no default are reset to their zero value.
func (*ListPartitionsParams) WithHTTPClient ¶
func (o *ListPartitionsParams) WithHTTPClient(client *http.Client) *ListPartitionsParams
WithHTTPClient adds the HTTPClient to the list partitions params
func (*ListPartitionsParams) WithTimeout ¶
func (o *ListPartitionsParams) WithTimeout(timeout time.Duration) *ListPartitionsParams
WithTimeout adds the timeout to the list partitions params
func (*ListPartitionsParams) WriteToRequest ¶
func (o *ListPartitionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPartitionsReader ¶
type ListPartitionsReader struct {
// contains filtered or unexported fields
}
ListPartitionsReader is a Reader for the ListPartitions structure.
func (*ListPartitionsReader) ReadResponse ¶
func (o *ListPartitionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PartitionCapacityDefault ¶
type PartitionCapacityDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
PartitionCapacityDefault describes a response with status code -1, with default header values.
Error
func NewPartitionCapacityDefault ¶
func NewPartitionCapacityDefault(code int) *PartitionCapacityDefault
NewPartitionCapacityDefault creates a PartitionCapacityDefault with default headers values
func (*PartitionCapacityDefault) Code ¶
func (o *PartitionCapacityDefault) Code() int
Code gets the status code for the partition capacity default response
func (*PartitionCapacityDefault) Error ¶
func (o *PartitionCapacityDefault) Error() string
func (*PartitionCapacityDefault) GetPayload ¶ added in v0.11.0
func (o *PartitionCapacityDefault) GetPayload() *httperrors.HTTPErrorResponse
type PartitionCapacityOK ¶
type PartitionCapacityOK struct {
Payload []*models.V1PartitionCapacity
}
PartitionCapacityOK describes a response with status code 200, with default header values.
OK
func NewPartitionCapacityOK ¶
func NewPartitionCapacityOK() *PartitionCapacityOK
NewPartitionCapacityOK creates a PartitionCapacityOK with default headers values
func (*PartitionCapacityOK) Error ¶
func (o *PartitionCapacityOK) Error() string
func (*PartitionCapacityOK) GetPayload ¶ added in v0.11.0
func (o *PartitionCapacityOK) GetPayload() []*models.V1PartitionCapacity
type PartitionCapacityParams ¶
type PartitionCapacityParams struct { // Body. Body *models.V1PartitionCapacityRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PartitionCapacityParams contains all the parameters to send to the API endpoint
for the partition capacity operation. Typically these are written to a http.Request.
func NewPartitionCapacityParams ¶
func NewPartitionCapacityParams() *PartitionCapacityParams
NewPartitionCapacityParams creates a new PartitionCapacityParams 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 NewPartitionCapacityParamsWithContext ¶
func NewPartitionCapacityParamsWithContext(ctx context.Context) *PartitionCapacityParams
NewPartitionCapacityParamsWithContext creates a new PartitionCapacityParams object with the ability to set a context for a request.
func NewPartitionCapacityParamsWithHTTPClient ¶
func NewPartitionCapacityParamsWithHTTPClient(client *http.Client) *PartitionCapacityParams
NewPartitionCapacityParamsWithHTTPClient creates a new PartitionCapacityParams object with the ability to set a custom HTTPClient for a request.
func NewPartitionCapacityParamsWithTimeout ¶
func NewPartitionCapacityParamsWithTimeout(timeout time.Duration) *PartitionCapacityParams
NewPartitionCapacityParamsWithTimeout creates a new PartitionCapacityParams object with the ability to set a timeout on a request.
func (*PartitionCapacityParams) SetBody ¶ added in v0.15.6
func (o *PartitionCapacityParams) SetBody(body *models.V1PartitionCapacityRequest)
SetBody adds the body to the partition capacity params
func (*PartitionCapacityParams) SetContext ¶
func (o *PartitionCapacityParams) SetContext(ctx context.Context)
SetContext adds the context to the partition capacity params
func (*PartitionCapacityParams) SetDefaults ¶ added in v0.12.1
func (o *PartitionCapacityParams) SetDefaults()
SetDefaults hydrates default values in the partition capacity params (not the query body).
All values with no default are reset to their zero value.
func (*PartitionCapacityParams) SetHTTPClient ¶
func (o *PartitionCapacityParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the partition capacity params
func (*PartitionCapacityParams) SetTimeout ¶
func (o *PartitionCapacityParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the partition capacity params
func (*PartitionCapacityParams) WithBody ¶ added in v0.15.6
func (o *PartitionCapacityParams) WithBody(body *models.V1PartitionCapacityRequest) *PartitionCapacityParams
WithBody adds the body to the partition capacity params
func (*PartitionCapacityParams) WithContext ¶
func (o *PartitionCapacityParams) WithContext(ctx context.Context) *PartitionCapacityParams
WithContext adds the context to the partition capacity params
func (*PartitionCapacityParams) WithDefaults ¶ added in v0.12.1
func (o *PartitionCapacityParams) WithDefaults() *PartitionCapacityParams
WithDefaults hydrates default values in the partition capacity params (not the query body).
All values with no default are reset to their zero value.
func (*PartitionCapacityParams) WithHTTPClient ¶
func (o *PartitionCapacityParams) WithHTTPClient(client *http.Client) *PartitionCapacityParams
WithHTTPClient adds the HTTPClient to the partition capacity params
func (*PartitionCapacityParams) WithTimeout ¶
func (o *PartitionCapacityParams) WithTimeout(timeout time.Duration) *PartitionCapacityParams
WithTimeout adds the timeout to the partition capacity params
func (*PartitionCapacityParams) WriteToRequest ¶
func (o *PartitionCapacityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PartitionCapacityReader ¶
type PartitionCapacityReader struct {
// contains filtered or unexported fields
}
PartitionCapacityReader is a Reader for the PartitionCapacity structure.
func (*PartitionCapacityReader) ReadResponse ¶
func (o *PartitionCapacityReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePartitionConflict ¶
type UpdatePartitionConflict struct {
Payload *httperrors.HTTPErrorResponse
}
UpdatePartitionConflict describes a response with status code 409, with default header values.
Conflict
func NewUpdatePartitionConflict ¶
func NewUpdatePartitionConflict() *UpdatePartitionConflict
NewUpdatePartitionConflict creates a UpdatePartitionConflict with default headers values
func (*UpdatePartitionConflict) Error ¶
func (o *UpdatePartitionConflict) Error() string
func (*UpdatePartitionConflict) GetPayload ¶ added in v0.11.0
func (o *UpdatePartitionConflict) GetPayload() *httperrors.HTTPErrorResponse
type UpdatePartitionDefault ¶
type UpdatePartitionDefault struct { Payload *httperrors.HTTPErrorResponse // contains filtered or unexported fields }
UpdatePartitionDefault describes a response with status code -1, with default header values.
Error
func NewUpdatePartitionDefault ¶
func NewUpdatePartitionDefault(code int) *UpdatePartitionDefault
NewUpdatePartitionDefault creates a UpdatePartitionDefault with default headers values
func (*UpdatePartitionDefault) Code ¶
func (o *UpdatePartitionDefault) Code() int
Code gets the status code for the update partition default response
func (*UpdatePartitionDefault) Error ¶
func (o *UpdatePartitionDefault) Error() string
func (*UpdatePartitionDefault) GetPayload ¶ added in v0.11.0
func (o *UpdatePartitionDefault) GetPayload() *httperrors.HTTPErrorResponse
type UpdatePartitionOK ¶
type UpdatePartitionOK struct {
Payload *models.V1PartitionResponse
}
UpdatePartitionOK describes a response with status code 200, with default header values.
OK
func NewUpdatePartitionOK ¶
func NewUpdatePartitionOK() *UpdatePartitionOK
NewUpdatePartitionOK creates a UpdatePartitionOK with default headers values
func (*UpdatePartitionOK) Error ¶
func (o *UpdatePartitionOK) Error() string
func (*UpdatePartitionOK) GetPayload ¶ added in v0.11.0
func (o *UpdatePartitionOK) GetPayload() *models.V1PartitionResponse
type UpdatePartitionParams ¶
type UpdatePartitionParams struct { // Body. Body *models.V1PartitionUpdateRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdatePartitionParams contains all the parameters to send to the API endpoint
for the update partition operation. Typically these are written to a http.Request.
func NewUpdatePartitionParams ¶
func NewUpdatePartitionParams() *UpdatePartitionParams
NewUpdatePartitionParams creates a new UpdatePartitionParams 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 NewUpdatePartitionParamsWithContext ¶
func NewUpdatePartitionParamsWithContext(ctx context.Context) *UpdatePartitionParams
NewUpdatePartitionParamsWithContext creates a new UpdatePartitionParams object with the ability to set a context for a request.
func NewUpdatePartitionParamsWithHTTPClient ¶
func NewUpdatePartitionParamsWithHTTPClient(client *http.Client) *UpdatePartitionParams
NewUpdatePartitionParamsWithHTTPClient creates a new UpdatePartitionParams object with the ability to set a custom HTTPClient for a request.
func NewUpdatePartitionParamsWithTimeout ¶
func NewUpdatePartitionParamsWithTimeout(timeout time.Duration) *UpdatePartitionParams
NewUpdatePartitionParamsWithTimeout creates a new UpdatePartitionParams object with the ability to set a timeout on a request.
func (*UpdatePartitionParams) SetBody ¶
func (o *UpdatePartitionParams) SetBody(body *models.V1PartitionUpdateRequest)
SetBody adds the body to the update partition params
func (*UpdatePartitionParams) SetContext ¶
func (o *UpdatePartitionParams) SetContext(ctx context.Context)
SetContext adds the context to the update partition params
func (*UpdatePartitionParams) SetDefaults ¶ added in v0.12.1
func (o *UpdatePartitionParams) SetDefaults()
SetDefaults hydrates default values in the update partition params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePartitionParams) SetHTTPClient ¶
func (o *UpdatePartitionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update partition params
func (*UpdatePartitionParams) SetTimeout ¶
func (o *UpdatePartitionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update partition params
func (*UpdatePartitionParams) WithBody ¶
func (o *UpdatePartitionParams) WithBody(body *models.V1PartitionUpdateRequest) *UpdatePartitionParams
WithBody adds the body to the update partition params
func (*UpdatePartitionParams) WithContext ¶
func (o *UpdatePartitionParams) WithContext(ctx context.Context) *UpdatePartitionParams
WithContext adds the context to the update partition params
func (*UpdatePartitionParams) WithDefaults ¶ added in v0.12.1
func (o *UpdatePartitionParams) WithDefaults() *UpdatePartitionParams
WithDefaults hydrates default values in the update partition params (not the query body).
All values with no default are reset to their zero value.
func (*UpdatePartitionParams) WithHTTPClient ¶
func (o *UpdatePartitionParams) WithHTTPClient(client *http.Client) *UpdatePartitionParams
WithHTTPClient adds the HTTPClient to the update partition params
func (*UpdatePartitionParams) WithTimeout ¶
func (o *UpdatePartitionParams) WithTimeout(timeout time.Duration) *UpdatePartitionParams
WithTimeout adds the timeout to the update partition params
func (*UpdatePartitionParams) WriteToRequest ¶
func (o *UpdatePartitionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdatePartitionReader ¶
type UpdatePartitionReader struct {
// contains filtered or unexported fields
}
UpdatePartitionReader is a Reader for the UpdatePartition structure.
func (*UpdatePartitionReader) ReadResponse ¶
func (o *UpdatePartitionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- create_partition_parameters.go
- create_partition_responses.go
- delete_partition_parameters.go
- delete_partition_responses.go
- find_partition_parameters.go
- find_partition_responses.go
- list_partitions_parameters.go
- list_partitions_responses.go
- partition_capacity_parameters.go
- partition_capacity_responses.go
- partition_client.go
- update_partition_parameters.go
- update_partition_responses.go