Documentation ¶
Index ¶
- type Client
- type GetFlavorsForbidden
- type GetFlavorsOK
- type GetFlavorsParams
- func (o *GetFlavorsParams) SetAPIVersion(aPIVersion *string)
- func (o *GetFlavorsParams) SetContext(ctx context.Context)
- func (o *GetFlavorsParams) SetHTTPClient(client *http.Client)
- func (o *GetFlavorsParams) SetTimeout(timeout time.Duration)
- func (o *GetFlavorsParams) WithAPIVersion(aPIVersion *string) *GetFlavorsParams
- func (o *GetFlavorsParams) WithContext(ctx context.Context) *GetFlavorsParams
- func (o *GetFlavorsParams) WithHTTPClient(client *http.Client) *GetFlavorsParams
- func (o *GetFlavorsParams) WithTimeout(timeout time.Duration) *GetFlavorsParams
- func (o *GetFlavorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetFlavorsReader
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 flavors API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new flavors API client.
func (*Client) GetFlavors ¶
func (a *Client) GetFlavors(params *GetFlavorsParams) (*GetFlavorsOK, error)
GetFlavors gets flavors
Get all flavors defined in FlavorProfile
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetFlavorsForbidden ¶
type GetFlavorsForbidden struct { }
GetFlavorsForbidden handles this case with default header values.
Forbidden
func NewGetFlavorsForbidden ¶
func NewGetFlavorsForbidden() *GetFlavorsForbidden
NewGetFlavorsForbidden creates a GetFlavorsForbidden with default headers values
func (*GetFlavorsForbidden) Error ¶
func (o *GetFlavorsForbidden) Error() string
type GetFlavorsOK ¶
type GetFlavorsOK struct {
Payload *models.FlavorResult
}
GetFlavorsOK handles this case with default header values.
successful operation
func NewGetFlavorsOK ¶
func NewGetFlavorsOK() *GetFlavorsOK
NewGetFlavorsOK creates a GetFlavorsOK with default headers values
func (*GetFlavorsOK) Error ¶
func (o *GetFlavorsOK) Error() string
func (*GetFlavorsOK) GetPayload ¶
func (o *GetFlavorsOK) GetPayload() *models.FlavorResult
type GetFlavorsParams ¶
type GetFlavorsParams struct { /*APIVersion The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about */ APIVersion *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetFlavorsParams contains all the parameters to send to the API endpoint for the get flavors operation typically these are written to a http.Request
func NewGetFlavorsParams ¶
func NewGetFlavorsParams() *GetFlavorsParams
NewGetFlavorsParams creates a new GetFlavorsParams object with the default values initialized.
func NewGetFlavorsParamsWithContext ¶
func NewGetFlavorsParamsWithContext(ctx context.Context) *GetFlavorsParams
NewGetFlavorsParamsWithContext creates a new GetFlavorsParams object with the default values initialized, and the ability to set a context for a request
func NewGetFlavorsParamsWithHTTPClient ¶
func NewGetFlavorsParamsWithHTTPClient(client *http.Client) *GetFlavorsParams
NewGetFlavorsParamsWithHTTPClient creates a new GetFlavorsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetFlavorsParamsWithTimeout ¶
func NewGetFlavorsParamsWithTimeout(timeout time.Duration) *GetFlavorsParams
NewGetFlavorsParamsWithTimeout creates a new GetFlavorsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetFlavorsParams) SetAPIVersion ¶
func (o *GetFlavorsParams) SetAPIVersion(aPIVersion *string)
SetAPIVersion adds the apiVersion to the get flavors params
func (*GetFlavorsParams) SetContext ¶
func (o *GetFlavorsParams) SetContext(ctx context.Context)
SetContext adds the context to the get flavors params
func (*GetFlavorsParams) SetHTTPClient ¶
func (o *GetFlavorsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get flavors params
func (*GetFlavorsParams) SetTimeout ¶
func (o *GetFlavorsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get flavors params
func (*GetFlavorsParams) WithAPIVersion ¶
func (o *GetFlavorsParams) WithAPIVersion(aPIVersion *string) *GetFlavorsParams
WithAPIVersion adds the aPIVersion to the get flavors params
func (*GetFlavorsParams) WithContext ¶
func (o *GetFlavorsParams) WithContext(ctx context.Context) *GetFlavorsParams
WithContext adds the context to the get flavors params
func (*GetFlavorsParams) WithHTTPClient ¶
func (o *GetFlavorsParams) WithHTTPClient(client *http.Client) *GetFlavorsParams
WithHTTPClient adds the HTTPClient to the get flavors params
func (*GetFlavorsParams) WithTimeout ¶
func (o *GetFlavorsParams) WithTimeout(timeout time.Duration) *GetFlavorsParams
WithTimeout adds the timeout to the get flavors params
func (*GetFlavorsParams) WriteToRequest ¶
func (o *GetFlavorsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetFlavorsReader ¶
type GetFlavorsReader struct {
// contains filtered or unexported fields
}
GetFlavorsReader is a Reader for the GetFlavors structure.
func (*GetFlavorsReader) ReadResponse ¶
func (o *GetFlavorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.