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 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) 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) 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) 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) 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) 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) 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) SetHTTPClient(client *http.Client)
- func (o *ListPartitionsParams) SetTimeout(timeout time.Duration)
- func (o *ListPartitionsParams) WithContext(ctx context.Context) *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) SetContext(ctx context.Context)
- func (o *PartitionCapacityParams) SetHTTPClient(client *http.Client)
- func (o *PartitionCapacityParams) SetTimeout(timeout time.Duration)
- func (o *PartitionCapacityParams) WithContext(ctx context.Context) *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) 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) 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 New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new partition API client.
func (*Client) CreatePartition ¶
func (a *Client) CreatePartition(params *CreatePartitionParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*DeletePartitionOK, error)
DeletePartition deletes a partition and returns the deleted entity
func (*Client) FindPartition ¶
func (a *Client) FindPartition(params *FindPartitionParams, authInfo runtime.ClientAuthInfoWriter) (*FindPartitionOK, error)
FindPartition gets partition by id
func (*Client) ListPartitions ¶
func (a *Client) ListPartitions(params *ListPartitionsParams, authInfo runtime.ClientAuthInfoWriter) (*ListPartitionsOK, error)
ListPartitions gets all partitions
func (*Client) PartitionCapacity ¶
func (a *Client) PartitionCapacity(params *PartitionCapacityParams, authInfo runtime.ClientAuthInfoWriter) (*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) (*UpdatePartitionOK, error)
UpdatePartition updates a partition if the partition was changed since this one was read a conflict is returned
type CreatePartitionConflict ¶
type CreatePartitionConflict struct {
Payload *models.HttperrorsHTTPErrorResponse
}
CreatePartitionConflict handles this case 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
type CreatePartitionCreated ¶
type CreatePartitionCreated struct {
Payload *models.V1PartitionResponse
}
CreatePartitionCreated handles this case 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
type CreatePartitionDefault ¶
type CreatePartitionDefault struct { Payload *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
CreatePartitionDefault handles this case 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
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 values initialized.
func NewCreatePartitionParamsWithContext ¶
func NewCreatePartitionParamsWithContext(ctx context.Context) *CreatePartitionParams
NewCreatePartitionParamsWithContext creates a new CreatePartitionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
DeletePartitionDefault handles this case 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
type DeletePartitionOK ¶
type DeletePartitionOK struct {
Payload *models.V1PartitionResponse
}
DeletePartitionOK handles this case 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
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 values initialized.
func NewDeletePartitionParamsWithContext ¶
func NewDeletePartitionParamsWithContext(ctx context.Context) *DeletePartitionParams
NewDeletePartitionParamsWithContext creates a new DeletePartitionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
FindPartitionDefault handles this case 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
type FindPartitionOK ¶
type FindPartitionOK struct {
Payload *models.V1PartitionResponse
}
FindPartitionOK handles this case 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
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 values initialized.
func NewFindPartitionParamsWithContext ¶
func NewFindPartitionParamsWithContext(ctx context.Context) *FindPartitionParams
NewFindPartitionParamsWithContext creates a new FindPartitionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
ListPartitionsDefault handles this case 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
type ListPartitionsOK ¶
type ListPartitionsOK struct {
Payload []*models.V1PartitionResponse
}
ListPartitionsOK handles this case 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
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 values initialized.
func NewListPartitionsParamsWithContext ¶
func NewListPartitionsParamsWithContext(ctx context.Context) *ListPartitionsParams
NewListPartitionsParamsWithContext creates a new ListPartitionsParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
PartitionCapacityDefault handles this case 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
type PartitionCapacityOK ¶
type PartitionCapacityOK struct {
Payload []*models.V1PartitionCapacity
}
PartitionCapacityOK handles this case 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
type PartitionCapacityParams ¶
type PartitionCapacityParams struct { 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 values initialized.
func NewPartitionCapacityParamsWithContext ¶
func NewPartitionCapacityParamsWithContext(ctx context.Context) *PartitionCapacityParams
NewPartitionCapacityParamsWithContext creates a new PartitionCapacityParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request
func (*PartitionCapacityParams) SetContext ¶
func (o *PartitionCapacityParams) SetContext(ctx context.Context)
SetContext adds the context to the partition capacity params
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) WithContext ¶
func (o *PartitionCapacityParams) WithContext(ctx context.Context) *PartitionCapacityParams
WithContext adds the context to the partition capacity params
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 *models.HttperrorsHTTPErrorResponse
}
UpdatePartitionConflict handles this case 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
type UpdatePartitionDefault ¶
type UpdatePartitionDefault struct { Payload *models.HttperrorsHTTPErrorResponse // contains filtered or unexported fields }
UpdatePartitionDefault handles this case 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
type UpdatePartitionOK ¶
type UpdatePartitionOK struct {
Payload *models.V1PartitionResponse
}
UpdatePartitionOK handles this case 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
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 values initialized.
func NewUpdatePartitionParamsWithContext ¶
func NewUpdatePartitionParamsWithContext(ctx context.Context) *UpdatePartitionParams
NewUpdatePartitionParamsWithContext creates a new UpdatePartitionParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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