flavors

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 please 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL