Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetFlavorsForbidden
- type GetFlavorsOK
- type GetFlavorsParams
- func (o *GetFlavorsParams) SetAPIVersion(aPIVersion *string)
- func (o *GetFlavorsParams) SetContext(ctx context.Context)
- func (o *GetFlavorsParams) SetDefaults()
- 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) WithDefaults() *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 (*Client) GetFlavors ¶
func (a *Client) GetFlavors(params *GetFlavorsParams, opts ...ClientOption) (*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 ClientOption ¶ added in v0.2.20
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v0.2.18
type ClientService interface { GetFlavors(params *GetFlavorsParams, opts ...ClientOption) (*GetFlavorsOK, 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 flavors API client.
type GetFlavorsForbidden ¶
type GetFlavorsForbidden struct {
Payload *models.ServiceErrorResponse
}
GetFlavorsForbidden describes a response with status code 403, 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
func (*GetFlavorsForbidden) GetPayload ¶ added in v0.2.20
func (o *GetFlavorsForbidden) GetPayload() *models.ServiceErrorResponse
type GetFlavorsOK ¶
type GetFlavorsOK struct {
Payload *models.FlavorResult
}
GetFlavorsOK describes a response with status code 200, 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 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 NewGetFlavorsParamsWithContext ¶
func NewGetFlavorsParamsWithContext(ctx context.Context) *GetFlavorsParams
NewGetFlavorsParamsWithContext creates a new GetFlavorsParams object with 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 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 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) SetDefaults ¶ added in v0.2.20
func (o *GetFlavorsParams) SetDefaults()
SetDefaults hydrates default values in the get flavors params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶ added in v0.2.20
func (o *GetFlavorsParams) WithDefaults() *GetFlavorsParams
WithDefaults hydrates default values in the get flavors params (not the query body).
All values with no default are reset to their zero value.
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.