Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateAZ(params *CreateAZParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateAZOK, error)
- func (a *Client) DeleteAZ(params *DeleteAZParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteAZOK, error)
- func (a *Client) ListOfAZ(params *ListOfAZParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListOfAZOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateAZOK
- type CreateAZParams
- func (o *CreateAZParams) SetAzFormData(azFormData *models.AvailabilityZoneFormData)
- func (o *CreateAZParams) SetCUUID(cUUID strfmt.UUID)
- func (o *CreateAZParams) SetContext(ctx context.Context)
- func (o *CreateAZParams) SetDefaults()
- func (o *CreateAZParams) SetHTTPClient(client *http.Client)
- func (o *CreateAZParams) SetPUUID(pUUID strfmt.UUID)
- func (o *CreateAZParams) SetRUUID(rUUID strfmt.UUID)
- func (o *CreateAZParams) SetTimeout(timeout time.Duration)
- func (o *CreateAZParams) WithAzFormData(azFormData *models.AvailabilityZoneFormData) *CreateAZParams
- func (o *CreateAZParams) WithCUUID(cUUID strfmt.UUID) *CreateAZParams
- func (o *CreateAZParams) WithContext(ctx context.Context) *CreateAZParams
- func (o *CreateAZParams) WithDefaults() *CreateAZParams
- func (o *CreateAZParams) WithHTTPClient(client *http.Client) *CreateAZParams
- func (o *CreateAZParams) WithPUUID(pUUID strfmt.UUID) *CreateAZParams
- func (o *CreateAZParams) WithRUUID(rUUID strfmt.UUID) *CreateAZParams
- func (o *CreateAZParams) WithTimeout(timeout time.Duration) *CreateAZParams
- func (o *CreateAZParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateAZReader
- type DeleteAZOK
- type DeleteAZParams
- func (o *DeleteAZParams) SetAzUUID(azUUID strfmt.UUID)
- func (o *DeleteAZParams) SetCUUID(cUUID strfmt.UUID)
- func (o *DeleteAZParams) SetContext(ctx context.Context)
- func (o *DeleteAZParams) SetDefaults()
- func (o *DeleteAZParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAZParams) SetPUUID(pUUID strfmt.UUID)
- func (o *DeleteAZParams) SetRUUID(rUUID strfmt.UUID)
- func (o *DeleteAZParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAZParams) WithAzUUID(azUUID strfmt.UUID) *DeleteAZParams
- func (o *DeleteAZParams) WithCUUID(cUUID strfmt.UUID) *DeleteAZParams
- func (o *DeleteAZParams) WithContext(ctx context.Context) *DeleteAZParams
- func (o *DeleteAZParams) WithDefaults() *DeleteAZParams
- func (o *DeleteAZParams) WithHTTPClient(client *http.Client) *DeleteAZParams
- func (o *DeleteAZParams) WithPUUID(pUUID strfmt.UUID) *DeleteAZParams
- func (o *DeleteAZParams) WithRUUID(rUUID strfmt.UUID) *DeleteAZParams
- func (o *DeleteAZParams) WithTimeout(timeout time.Duration) *DeleteAZParams
- func (o *DeleteAZParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAZReader
- type ListOfAZOK
- type ListOfAZParams
- func (o *ListOfAZParams) SetCUUID(cUUID strfmt.UUID)
- func (o *ListOfAZParams) SetContext(ctx context.Context)
- func (o *ListOfAZParams) SetDefaults()
- func (o *ListOfAZParams) SetHTTPClient(client *http.Client)
- func (o *ListOfAZParams) SetPUUID(pUUID strfmt.UUID)
- func (o *ListOfAZParams) SetRUUID(rUUID strfmt.UUID)
- func (o *ListOfAZParams) SetTimeout(timeout time.Duration)
- func (o *ListOfAZParams) WithCUUID(cUUID strfmt.UUID) *ListOfAZParams
- func (o *ListOfAZParams) WithContext(ctx context.Context) *ListOfAZParams
- func (o *ListOfAZParams) WithDefaults() *ListOfAZParams
- func (o *ListOfAZParams) WithHTTPClient(client *http.Client) *ListOfAZParams
- func (o *ListOfAZParams) WithPUUID(pUUID strfmt.UUID) *ListOfAZParams
- func (o *ListOfAZParams) WithRUUID(rUUID strfmt.UUID) *ListOfAZParams
- func (o *ListOfAZParams) WithTimeout(timeout time.Duration) *ListOfAZParams
- func (o *ListOfAZParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListOfAZReader
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 availability zones API
func (*Client) CreateAZ ¶
func (a *Client) CreateAZ(params *CreateAZParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAZOK, error)
CreateAZ creates an availability zone
func (*Client) DeleteAZ ¶
func (a *Client) DeleteAZ(params *DeleteAZParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAZOK, error)
DeleteAZ deletes an availability zone
func (*Client) ListOfAZ ¶
func (a *Client) ListOfAZ(params *ListOfAZParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOfAZOK, error)
ListOfAZ lists availability zones
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateAZ(params *CreateAZParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateAZOK, error) DeleteAZ(params *DeleteAZParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAZOK, error) ListOfAZ(params *ListOfAZParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListOfAZOK, 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 availability zones API client.
type CreateAZOK ¶
type CreateAZOK struct {
Payload map[string]models.AvailabilityZone
}
CreateAZOK describes a response with status code 200, with default header values.
successful operation
func NewCreateAZOK ¶
func NewCreateAZOK() *CreateAZOK
NewCreateAZOK creates a CreateAZOK with default headers values
func (*CreateAZOK) Error ¶
func (o *CreateAZOK) Error() string
func (*CreateAZOK) GetPayload ¶
func (o *CreateAZOK) GetPayload() map[string]models.AvailabilityZone
type CreateAZParams ¶
type CreateAZParams struct { /* AzFormData. Availability zone form data */ AzFormData *models.AvailabilityZoneFormData // CUUID. // // Format: uuid CUUID strfmt.UUID // PUUID. // // Format: uuid PUUID strfmt.UUID // RUUID. // // Format: uuid RUUID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateAZParams contains all the parameters to send to the API endpoint
for the create a z operation. Typically these are written to a http.Request.
func NewCreateAZParams ¶
func NewCreateAZParams() *CreateAZParams
NewCreateAZParams creates a new CreateAZParams 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 NewCreateAZParamsWithContext ¶
func NewCreateAZParamsWithContext(ctx context.Context) *CreateAZParams
NewCreateAZParamsWithContext creates a new CreateAZParams object with the ability to set a context for a request.
func NewCreateAZParamsWithHTTPClient ¶
func NewCreateAZParamsWithHTTPClient(client *http.Client) *CreateAZParams
NewCreateAZParamsWithHTTPClient creates a new CreateAZParams object with the ability to set a custom HTTPClient for a request.
func NewCreateAZParamsWithTimeout ¶
func NewCreateAZParamsWithTimeout(timeout time.Duration) *CreateAZParams
NewCreateAZParamsWithTimeout creates a new CreateAZParams object with the ability to set a timeout on a request.
func (*CreateAZParams) SetAzFormData ¶
func (o *CreateAZParams) SetAzFormData(azFormData *models.AvailabilityZoneFormData)
SetAzFormData adds the azFormData to the create a z params
func (*CreateAZParams) SetCUUID ¶
func (o *CreateAZParams) SetCUUID(cUUID strfmt.UUID)
SetCUUID adds the cUuid to the create a z params
func (*CreateAZParams) SetContext ¶
func (o *CreateAZParams) SetContext(ctx context.Context)
SetContext adds the context to the create a z params
func (*CreateAZParams) SetDefaults ¶
func (o *CreateAZParams) SetDefaults()
SetDefaults hydrates default values in the create a z params (not the query body).
All values with no default are reset to their zero value.
func (*CreateAZParams) SetHTTPClient ¶
func (o *CreateAZParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create a z params
func (*CreateAZParams) SetPUUID ¶
func (o *CreateAZParams) SetPUUID(pUUID strfmt.UUID)
SetPUUID adds the pUuid to the create a z params
func (*CreateAZParams) SetRUUID ¶
func (o *CreateAZParams) SetRUUID(rUUID strfmt.UUID)
SetRUUID adds the rUuid to the create a z params
func (*CreateAZParams) SetTimeout ¶
func (o *CreateAZParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create a z params
func (*CreateAZParams) WithAzFormData ¶
func (o *CreateAZParams) WithAzFormData(azFormData *models.AvailabilityZoneFormData) *CreateAZParams
WithAzFormData adds the azFormData to the create a z params
func (*CreateAZParams) WithCUUID ¶
func (o *CreateAZParams) WithCUUID(cUUID strfmt.UUID) *CreateAZParams
WithCUUID adds the cUUID to the create a z params
func (*CreateAZParams) WithContext ¶
func (o *CreateAZParams) WithContext(ctx context.Context) *CreateAZParams
WithContext adds the context to the create a z params
func (*CreateAZParams) WithDefaults ¶
func (o *CreateAZParams) WithDefaults() *CreateAZParams
WithDefaults hydrates default values in the create a z params (not the query body).
All values with no default are reset to their zero value.
func (*CreateAZParams) WithHTTPClient ¶
func (o *CreateAZParams) WithHTTPClient(client *http.Client) *CreateAZParams
WithHTTPClient adds the HTTPClient to the create a z params
func (*CreateAZParams) WithPUUID ¶
func (o *CreateAZParams) WithPUUID(pUUID strfmt.UUID) *CreateAZParams
WithPUUID adds the pUUID to the create a z params
func (*CreateAZParams) WithRUUID ¶
func (o *CreateAZParams) WithRUUID(rUUID strfmt.UUID) *CreateAZParams
WithRUUID adds the rUUID to the create a z params
func (*CreateAZParams) WithTimeout ¶
func (o *CreateAZParams) WithTimeout(timeout time.Duration) *CreateAZParams
WithTimeout adds the timeout to the create a z params
func (*CreateAZParams) WriteToRequest ¶
func (o *CreateAZParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateAZReader ¶
type CreateAZReader struct {
// contains filtered or unexported fields
}
CreateAZReader is a Reader for the CreateAZ structure.
func (*CreateAZReader) ReadResponse ¶
func (o *CreateAZReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteAZOK ¶
type DeleteAZOK struct {
Payload *models.YBPSuccess
}
DeleteAZOK describes a response with status code 200, with default header values.
successful operation
func NewDeleteAZOK ¶
func NewDeleteAZOK() *DeleteAZOK
NewDeleteAZOK creates a DeleteAZOK with default headers values
func (*DeleteAZOK) Error ¶
func (o *DeleteAZOK) Error() string
func (*DeleteAZOK) GetPayload ¶
func (o *DeleteAZOK) GetPayload() *models.YBPSuccess
type DeleteAZParams ¶
type DeleteAZParams struct { // AzUUID. // // Format: uuid AzUUID strfmt.UUID // CUUID. // // Format: uuid CUUID strfmt.UUID // PUUID. // // Format: uuid PUUID strfmt.UUID // RUUID. // // Format: uuid RUUID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteAZParams contains all the parameters to send to the API endpoint
for the delete a z operation. Typically these are written to a http.Request.
func NewDeleteAZParams ¶
func NewDeleteAZParams() *DeleteAZParams
NewDeleteAZParams creates a new DeleteAZParams 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 NewDeleteAZParamsWithContext ¶
func NewDeleteAZParamsWithContext(ctx context.Context) *DeleteAZParams
NewDeleteAZParamsWithContext creates a new DeleteAZParams object with the ability to set a context for a request.
func NewDeleteAZParamsWithHTTPClient ¶
func NewDeleteAZParamsWithHTTPClient(client *http.Client) *DeleteAZParams
NewDeleteAZParamsWithHTTPClient creates a new DeleteAZParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteAZParamsWithTimeout ¶
func NewDeleteAZParamsWithTimeout(timeout time.Duration) *DeleteAZParams
NewDeleteAZParamsWithTimeout creates a new DeleteAZParams object with the ability to set a timeout on a request.
func (*DeleteAZParams) SetAzUUID ¶
func (o *DeleteAZParams) SetAzUUID(azUUID strfmt.UUID)
SetAzUUID adds the azUuid to the delete a z params
func (*DeleteAZParams) SetCUUID ¶
func (o *DeleteAZParams) SetCUUID(cUUID strfmt.UUID)
SetCUUID adds the cUuid to the delete a z params
func (*DeleteAZParams) SetContext ¶
func (o *DeleteAZParams) SetContext(ctx context.Context)
SetContext adds the context to the delete a z params
func (*DeleteAZParams) SetDefaults ¶
func (o *DeleteAZParams) SetDefaults()
SetDefaults hydrates default values in the delete a z params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAZParams) SetHTTPClient ¶
func (o *DeleteAZParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete a z params
func (*DeleteAZParams) SetPUUID ¶
func (o *DeleteAZParams) SetPUUID(pUUID strfmt.UUID)
SetPUUID adds the pUuid to the delete a z params
func (*DeleteAZParams) SetRUUID ¶
func (o *DeleteAZParams) SetRUUID(rUUID strfmt.UUID)
SetRUUID adds the rUuid to the delete a z params
func (*DeleteAZParams) SetTimeout ¶
func (o *DeleteAZParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete a z params
func (*DeleteAZParams) WithAzUUID ¶
func (o *DeleteAZParams) WithAzUUID(azUUID strfmt.UUID) *DeleteAZParams
WithAzUUID adds the azUUID to the delete a z params
func (*DeleteAZParams) WithCUUID ¶
func (o *DeleteAZParams) WithCUUID(cUUID strfmt.UUID) *DeleteAZParams
WithCUUID adds the cUUID to the delete a z params
func (*DeleteAZParams) WithContext ¶
func (o *DeleteAZParams) WithContext(ctx context.Context) *DeleteAZParams
WithContext adds the context to the delete a z params
func (*DeleteAZParams) WithDefaults ¶
func (o *DeleteAZParams) WithDefaults() *DeleteAZParams
WithDefaults hydrates default values in the delete a z params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAZParams) WithHTTPClient ¶
func (o *DeleteAZParams) WithHTTPClient(client *http.Client) *DeleteAZParams
WithHTTPClient adds the HTTPClient to the delete a z params
func (*DeleteAZParams) WithPUUID ¶
func (o *DeleteAZParams) WithPUUID(pUUID strfmt.UUID) *DeleteAZParams
WithPUUID adds the pUUID to the delete a z params
func (*DeleteAZParams) WithRUUID ¶
func (o *DeleteAZParams) WithRUUID(rUUID strfmt.UUID) *DeleteAZParams
WithRUUID adds the rUUID to the delete a z params
func (*DeleteAZParams) WithTimeout ¶
func (o *DeleteAZParams) WithTimeout(timeout time.Duration) *DeleteAZParams
WithTimeout adds the timeout to the delete a z params
func (*DeleteAZParams) WriteToRequest ¶
func (o *DeleteAZParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteAZReader ¶
type DeleteAZReader struct {
// contains filtered or unexported fields
}
DeleteAZReader is a Reader for the DeleteAZ structure.
func (*DeleteAZReader) ReadResponse ¶
func (o *DeleteAZReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListOfAZOK ¶
type ListOfAZOK struct {
Payload []*models.AvailabilityZone
}
ListOfAZOK describes a response with status code 200, with default header values.
successful operation
func NewListOfAZOK ¶
func NewListOfAZOK() *ListOfAZOK
NewListOfAZOK creates a ListOfAZOK with default headers values
func (*ListOfAZOK) Error ¶
func (o *ListOfAZOK) Error() string
func (*ListOfAZOK) GetPayload ¶
func (o *ListOfAZOK) GetPayload() []*models.AvailabilityZone
type ListOfAZParams ¶
type ListOfAZParams struct { // CUUID. // // Format: uuid CUUID strfmt.UUID // PUUID. // // Format: uuid PUUID strfmt.UUID // RUUID. // // Format: uuid RUUID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListOfAZParams contains all the parameters to send to the API endpoint
for the list of a z operation. Typically these are written to a http.Request.
func NewListOfAZParams ¶
func NewListOfAZParams() *ListOfAZParams
NewListOfAZParams creates a new ListOfAZParams 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 NewListOfAZParamsWithContext ¶
func NewListOfAZParamsWithContext(ctx context.Context) *ListOfAZParams
NewListOfAZParamsWithContext creates a new ListOfAZParams object with the ability to set a context for a request.
func NewListOfAZParamsWithHTTPClient ¶
func NewListOfAZParamsWithHTTPClient(client *http.Client) *ListOfAZParams
NewListOfAZParamsWithHTTPClient creates a new ListOfAZParams object with the ability to set a custom HTTPClient for a request.
func NewListOfAZParamsWithTimeout ¶
func NewListOfAZParamsWithTimeout(timeout time.Duration) *ListOfAZParams
NewListOfAZParamsWithTimeout creates a new ListOfAZParams object with the ability to set a timeout on a request.
func (*ListOfAZParams) SetCUUID ¶
func (o *ListOfAZParams) SetCUUID(cUUID strfmt.UUID)
SetCUUID adds the cUuid to the list of a z params
func (*ListOfAZParams) SetContext ¶
func (o *ListOfAZParams) SetContext(ctx context.Context)
SetContext adds the context to the list of a z params
func (*ListOfAZParams) SetDefaults ¶
func (o *ListOfAZParams) SetDefaults()
SetDefaults hydrates default values in the list of a z params (not the query body).
All values with no default are reset to their zero value.
func (*ListOfAZParams) SetHTTPClient ¶
func (o *ListOfAZParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list of a z params
func (*ListOfAZParams) SetPUUID ¶
func (o *ListOfAZParams) SetPUUID(pUUID strfmt.UUID)
SetPUUID adds the pUuid to the list of a z params
func (*ListOfAZParams) SetRUUID ¶
func (o *ListOfAZParams) SetRUUID(rUUID strfmt.UUID)
SetRUUID adds the rUuid to the list of a z params
func (*ListOfAZParams) SetTimeout ¶
func (o *ListOfAZParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list of a z params
func (*ListOfAZParams) WithCUUID ¶
func (o *ListOfAZParams) WithCUUID(cUUID strfmt.UUID) *ListOfAZParams
WithCUUID adds the cUUID to the list of a z params
func (*ListOfAZParams) WithContext ¶
func (o *ListOfAZParams) WithContext(ctx context.Context) *ListOfAZParams
WithContext adds the context to the list of a z params
func (*ListOfAZParams) WithDefaults ¶
func (o *ListOfAZParams) WithDefaults() *ListOfAZParams
WithDefaults hydrates default values in the list of a z params (not the query body).
All values with no default are reset to their zero value.
func (*ListOfAZParams) WithHTTPClient ¶
func (o *ListOfAZParams) WithHTTPClient(client *http.Client) *ListOfAZParams
WithHTTPClient adds the HTTPClient to the list of a z params
func (*ListOfAZParams) WithPUUID ¶
func (o *ListOfAZParams) WithPUUID(pUUID strfmt.UUID) *ListOfAZParams
WithPUUID adds the pUUID to the list of a z params
func (*ListOfAZParams) WithRUUID ¶
func (o *ListOfAZParams) WithRUUID(rUUID strfmt.UUID) *ListOfAZParams
WithRUUID adds the rUUID to the list of a z params
func (*ListOfAZParams) WithTimeout ¶
func (o *ListOfAZParams) WithTimeout(timeout time.Duration) *ListOfAZParams
WithTimeout adds the timeout to the list of a z params
func (*ListOfAZParams) WriteToRequest ¶
func (o *ListOfAZParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListOfAZReader ¶
type ListOfAZReader struct {
// contains filtered or unexported fields
}
ListOfAZReader is a Reader for the ListOfAZ structure.
func (*ListOfAZReader) ReadResponse ¶
func (o *ListOfAZReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.