flavor_profile

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

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 flavor profile API

func (*Client) CreateFlavorProfile

func (a *Client) CreateFlavorProfile(params *CreateFlavorProfileParams, opts ...ClientOption) (*CreateFlavorProfileCreated, error)

CreateFlavorProfile creates flavor profile

Create flavor profile

func (*Client) DeleteFlavorProfile

func (a *Client) DeleteFlavorProfile(params *DeleteFlavorProfileParams, opts ...ClientOption) (*DeleteFlavorProfileNoContent, error)

DeleteFlavorProfile deletes flavor profile

Delete flavor profile with a given id

func (*Client) GetFlavorProfile

func (a *Client) GetFlavorProfile(params *GetFlavorProfileParams, opts ...ClientOption) (*GetFlavorProfileOK, error)

GetFlavorProfile gets flavor profile

Get flavor profile with a given id

func (*Client) GetFlavorProfiles

func (a *Client) GetFlavorProfiles(params *GetFlavorProfilesParams, opts ...ClientOption) (*GetFlavorProfilesOK, error)

GetFlavorProfiles gets flavor profile

Get all flavor profile

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateFlavorProfile

func (a *Client) UpdateFlavorProfile(params *UpdateFlavorProfileParams, opts ...ClientOption) (*UpdateFlavorProfileOK, error)

UpdateFlavorProfile updates flavor profile

Update flavor profile

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 {
	CreateFlavorProfile(params *CreateFlavorProfileParams, opts ...ClientOption) (*CreateFlavorProfileCreated, error)

	DeleteFlavorProfile(params *DeleteFlavorProfileParams, opts ...ClientOption) (*DeleteFlavorProfileNoContent, error)

	GetFlavorProfile(params *GetFlavorProfileParams, opts ...ClientOption) (*GetFlavorProfileOK, error)

	GetFlavorProfiles(params *GetFlavorProfilesParams, opts ...ClientOption) (*GetFlavorProfilesOK, error)

	UpdateFlavorProfile(params *UpdateFlavorProfileParams, opts ...ClientOption) (*UpdateFlavorProfileOK, 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 flavor profile API client.

type CreateFlavorProfileBadRequest

type CreateFlavorProfileBadRequest struct {
	Payload *models.Error
}
CreateFlavorProfileBadRequest describes a response with status code 400, with default header values.

Invalid Request - bad data

func NewCreateFlavorProfileBadRequest

func NewCreateFlavorProfileBadRequest() *CreateFlavorProfileBadRequest

NewCreateFlavorProfileBadRequest creates a CreateFlavorProfileBadRequest with default headers values

func (*CreateFlavorProfileBadRequest) Error

func (*CreateFlavorProfileBadRequest) GetPayload added in v0.2.9

func (o *CreateFlavorProfileBadRequest) GetPayload() *models.Error

type CreateFlavorProfileCreated

type CreateFlavorProfileCreated struct {
	Payload *models.FlavorProfile
}
CreateFlavorProfileCreated describes a response with status code 201, with default header values.

successful operation

func NewCreateFlavorProfileCreated

func NewCreateFlavorProfileCreated() *CreateFlavorProfileCreated

NewCreateFlavorProfileCreated creates a CreateFlavorProfileCreated with default headers values

func (*CreateFlavorProfileCreated) Error

func (*CreateFlavorProfileCreated) GetPayload

type CreateFlavorProfileForbidden

type CreateFlavorProfileForbidden struct {
	Payload *models.ServiceErrorResponse
}
CreateFlavorProfileForbidden describes a response with status code 403, with default header values.

Forbidden

func NewCreateFlavorProfileForbidden

func NewCreateFlavorProfileForbidden() *CreateFlavorProfileForbidden

NewCreateFlavorProfileForbidden creates a CreateFlavorProfileForbidden with default headers values

func (*CreateFlavorProfileForbidden) Error

func (*CreateFlavorProfileForbidden) GetPayload added in v0.2.20

type CreateFlavorProfileParams

type CreateFlavorProfileParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* Body.

	   FlavorProfile instance
	*/
	Body *models.FlavorProfileSpecification

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateFlavorProfileParams contains all the parameters to send to the API endpoint

for the create flavor profile operation.

Typically these are written to a http.Request.

func NewCreateFlavorProfileParams

func NewCreateFlavorProfileParams() *CreateFlavorProfileParams

NewCreateFlavorProfileParams creates a new CreateFlavorProfileParams 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 NewCreateFlavorProfileParamsWithContext

func NewCreateFlavorProfileParamsWithContext(ctx context.Context) *CreateFlavorProfileParams

NewCreateFlavorProfileParamsWithContext creates a new CreateFlavorProfileParams object with the ability to set a context for a request.

func NewCreateFlavorProfileParamsWithHTTPClient

func NewCreateFlavorProfileParamsWithHTTPClient(client *http.Client) *CreateFlavorProfileParams

NewCreateFlavorProfileParamsWithHTTPClient creates a new CreateFlavorProfileParams object with the ability to set a custom HTTPClient for a request.

func NewCreateFlavorProfileParamsWithTimeout

func NewCreateFlavorProfileParamsWithTimeout(timeout time.Duration) *CreateFlavorProfileParams

NewCreateFlavorProfileParamsWithTimeout creates a new CreateFlavorProfileParams object with the ability to set a timeout on a request.

func (*CreateFlavorProfileParams) SetAPIVersion

func (o *CreateFlavorProfileParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the create flavor profile params

func (*CreateFlavorProfileParams) SetBody

SetBody adds the body to the create flavor profile params

func (*CreateFlavorProfileParams) SetContext

func (o *CreateFlavorProfileParams) SetContext(ctx context.Context)

SetContext adds the context to the create flavor profile params

func (*CreateFlavorProfileParams) SetDefaults added in v0.2.20

func (o *CreateFlavorProfileParams) SetDefaults()

SetDefaults hydrates default values in the create flavor profile params (not the query body).

All values with no default are reset to their zero value.

func (*CreateFlavorProfileParams) SetHTTPClient

func (o *CreateFlavorProfileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create flavor profile params

func (*CreateFlavorProfileParams) SetTimeout

func (o *CreateFlavorProfileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create flavor profile params

func (*CreateFlavorProfileParams) WithAPIVersion

func (o *CreateFlavorProfileParams) WithAPIVersion(aPIVersion *string) *CreateFlavorProfileParams

WithAPIVersion adds the aPIVersion to the create flavor profile params

func (*CreateFlavorProfileParams) WithBody

WithBody adds the body to the create flavor profile params

func (*CreateFlavorProfileParams) WithContext

WithContext adds the context to the create flavor profile params

func (*CreateFlavorProfileParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the create flavor profile params (not the query body).

All values with no default are reset to their zero value.

func (*CreateFlavorProfileParams) WithHTTPClient

func (o *CreateFlavorProfileParams) WithHTTPClient(client *http.Client) *CreateFlavorProfileParams

WithHTTPClient adds the HTTPClient to the create flavor profile params

func (*CreateFlavorProfileParams) WithTimeout

WithTimeout adds the timeout to the create flavor profile params

func (*CreateFlavorProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateFlavorProfileReader

type CreateFlavorProfileReader struct {
	// contains filtered or unexported fields
}

CreateFlavorProfileReader is a Reader for the CreateFlavorProfile structure.

func (*CreateFlavorProfileReader) ReadResponse

func (o *CreateFlavorProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteFlavorProfileForbidden

type DeleteFlavorProfileForbidden struct {
	Payload *models.ServiceErrorResponse
}
DeleteFlavorProfileForbidden describes a response with status code 403, with default header values.

Forbidden

func NewDeleteFlavorProfileForbidden

func NewDeleteFlavorProfileForbidden() *DeleteFlavorProfileForbidden

NewDeleteFlavorProfileForbidden creates a DeleteFlavorProfileForbidden with default headers values

func (*DeleteFlavorProfileForbidden) Error

func (*DeleteFlavorProfileForbidden) GetPayload added in v0.2.20

type DeleteFlavorProfileNoContent

type DeleteFlavorProfileNoContent struct {
}
DeleteFlavorProfileNoContent describes a response with status code 204, with default header values.

No Content

func NewDeleteFlavorProfileNoContent

func NewDeleteFlavorProfileNoContent() *DeleteFlavorProfileNoContent

NewDeleteFlavorProfileNoContent creates a DeleteFlavorProfileNoContent with default headers values

func (*DeleteFlavorProfileNoContent) Error

type DeleteFlavorProfileParams

type DeleteFlavorProfileParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The ID of the flavor.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteFlavorProfileParams contains all the parameters to send to the API endpoint

for the delete flavor profile operation.

Typically these are written to a http.Request.

func NewDeleteFlavorProfileParams

func NewDeleteFlavorProfileParams() *DeleteFlavorProfileParams

NewDeleteFlavorProfileParams creates a new DeleteFlavorProfileParams 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 NewDeleteFlavorProfileParamsWithContext

func NewDeleteFlavorProfileParamsWithContext(ctx context.Context) *DeleteFlavorProfileParams

NewDeleteFlavorProfileParamsWithContext creates a new DeleteFlavorProfileParams object with the ability to set a context for a request.

func NewDeleteFlavorProfileParamsWithHTTPClient

func NewDeleteFlavorProfileParamsWithHTTPClient(client *http.Client) *DeleteFlavorProfileParams

NewDeleteFlavorProfileParamsWithHTTPClient creates a new DeleteFlavorProfileParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteFlavorProfileParamsWithTimeout

func NewDeleteFlavorProfileParamsWithTimeout(timeout time.Duration) *DeleteFlavorProfileParams

NewDeleteFlavorProfileParamsWithTimeout creates a new DeleteFlavorProfileParams object with the ability to set a timeout on a request.

func (*DeleteFlavorProfileParams) SetAPIVersion

func (o *DeleteFlavorProfileParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete flavor profile params

func (*DeleteFlavorProfileParams) SetContext

func (o *DeleteFlavorProfileParams) SetContext(ctx context.Context)

SetContext adds the context to the delete flavor profile params

func (*DeleteFlavorProfileParams) SetDefaults added in v0.2.20

func (o *DeleteFlavorProfileParams) SetDefaults()

SetDefaults hydrates default values in the delete flavor profile params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteFlavorProfileParams) SetHTTPClient

func (o *DeleteFlavorProfileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete flavor profile params

func (*DeleteFlavorProfileParams) SetID

func (o *DeleteFlavorProfileParams) SetID(id string)

SetID adds the id to the delete flavor profile params

func (*DeleteFlavorProfileParams) SetTimeout

func (o *DeleteFlavorProfileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete flavor profile params

func (*DeleteFlavorProfileParams) WithAPIVersion

func (o *DeleteFlavorProfileParams) WithAPIVersion(aPIVersion *string) *DeleteFlavorProfileParams

WithAPIVersion adds the aPIVersion to the delete flavor profile params

func (*DeleteFlavorProfileParams) WithContext

WithContext adds the context to the delete flavor profile params

func (*DeleteFlavorProfileParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the delete flavor profile params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteFlavorProfileParams) WithHTTPClient

func (o *DeleteFlavorProfileParams) WithHTTPClient(client *http.Client) *DeleteFlavorProfileParams

WithHTTPClient adds the HTTPClient to the delete flavor profile params

func (*DeleteFlavorProfileParams) WithID

WithID adds the id to the delete flavor profile params

func (*DeleteFlavorProfileParams) WithTimeout

WithTimeout adds the timeout to the delete flavor profile params

func (*DeleteFlavorProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteFlavorProfileReader

type DeleteFlavorProfileReader struct {
	// contains filtered or unexported fields
}

DeleteFlavorProfileReader is a Reader for the DeleteFlavorProfile structure.

func (*DeleteFlavorProfileReader) ReadResponse

func (o *DeleteFlavorProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetFlavorProfileForbidden

type GetFlavorProfileForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetFlavorProfileForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetFlavorProfileForbidden

func NewGetFlavorProfileForbidden() *GetFlavorProfileForbidden

NewGetFlavorProfileForbidden creates a GetFlavorProfileForbidden with default headers values

func (*GetFlavorProfileForbidden) Error

func (o *GetFlavorProfileForbidden) Error() string

func (*GetFlavorProfileForbidden) GetPayload added in v0.2.20

type GetFlavorProfileNotFound

type GetFlavorProfileNotFound struct {
	Payload *models.Error
}
GetFlavorProfileNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetFlavorProfileNotFound

func NewGetFlavorProfileNotFound() *GetFlavorProfileNotFound

NewGetFlavorProfileNotFound creates a GetFlavorProfileNotFound with default headers values

func (*GetFlavorProfileNotFound) Error

func (o *GetFlavorProfileNotFound) Error() string

func (*GetFlavorProfileNotFound) GetPayload added in v0.2.9

func (o *GetFlavorProfileNotFound) GetPayload() *models.Error

type GetFlavorProfileOK

type GetFlavorProfileOK struct {
	Payload *models.FlavorProfile
}
GetFlavorProfileOK describes a response with status code 200, with default header values.

successful operation

func NewGetFlavorProfileOK

func NewGetFlavorProfileOK() *GetFlavorProfileOK

NewGetFlavorProfileOK creates a GetFlavorProfileOK with default headers values

func (*GetFlavorProfileOK) Error

func (o *GetFlavorProfileOK) Error() string

func (*GetFlavorProfileOK) GetPayload

func (o *GetFlavorProfileOK) GetPayload() *models.FlavorProfile

type GetFlavorProfileParams

type GetFlavorProfileParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* ID.

	   The ID of the flavor.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetFlavorProfileParams contains all the parameters to send to the API endpoint

for the get flavor profile operation.

Typically these are written to a http.Request.

func NewGetFlavorProfileParams

func NewGetFlavorProfileParams() *GetFlavorProfileParams

NewGetFlavorProfileParams creates a new GetFlavorProfileParams 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 NewGetFlavorProfileParamsWithContext

func NewGetFlavorProfileParamsWithContext(ctx context.Context) *GetFlavorProfileParams

NewGetFlavorProfileParamsWithContext creates a new GetFlavorProfileParams object with the ability to set a context for a request.

func NewGetFlavorProfileParamsWithHTTPClient

func NewGetFlavorProfileParamsWithHTTPClient(client *http.Client) *GetFlavorProfileParams

NewGetFlavorProfileParamsWithHTTPClient creates a new GetFlavorProfileParams object with the ability to set a custom HTTPClient for a request.

func NewGetFlavorProfileParamsWithTimeout

func NewGetFlavorProfileParamsWithTimeout(timeout time.Duration) *GetFlavorProfileParams

NewGetFlavorProfileParamsWithTimeout creates a new GetFlavorProfileParams object with the ability to set a timeout on a request.

func (*GetFlavorProfileParams) SetAPIVersion

func (o *GetFlavorProfileParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get flavor profile params

func (*GetFlavorProfileParams) SetContext

func (o *GetFlavorProfileParams) SetContext(ctx context.Context)

SetContext adds the context to the get flavor profile params

func (*GetFlavorProfileParams) SetDefaults added in v0.2.20

func (o *GetFlavorProfileParams) SetDefaults()

SetDefaults hydrates default values in the get flavor profile params (not the query body).

All values with no default are reset to their zero value.

func (*GetFlavorProfileParams) SetHTTPClient

func (o *GetFlavorProfileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get flavor profile params

func (*GetFlavorProfileParams) SetID

func (o *GetFlavorProfileParams) SetID(id string)

SetID adds the id to the get flavor profile params

func (*GetFlavorProfileParams) SetTimeout

func (o *GetFlavorProfileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get flavor profile params

func (*GetFlavorProfileParams) WithAPIVersion

func (o *GetFlavorProfileParams) WithAPIVersion(aPIVersion *string) *GetFlavorProfileParams

WithAPIVersion adds the aPIVersion to the get flavor profile params

func (*GetFlavorProfileParams) WithContext

WithContext adds the context to the get flavor profile params

func (*GetFlavorProfileParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get flavor profile params (not the query body).

All values with no default are reset to their zero value.

func (*GetFlavorProfileParams) WithHTTPClient

func (o *GetFlavorProfileParams) WithHTTPClient(client *http.Client) *GetFlavorProfileParams

WithHTTPClient adds the HTTPClient to the get flavor profile params

func (*GetFlavorProfileParams) WithID

WithID adds the id to the get flavor profile params

func (*GetFlavorProfileParams) WithTimeout

WithTimeout adds the timeout to the get flavor profile params

func (*GetFlavorProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFlavorProfileReader

type GetFlavorProfileReader struct {
	// contains filtered or unexported fields
}

GetFlavorProfileReader is a Reader for the GetFlavorProfile structure.

func (*GetFlavorProfileReader) ReadResponse

func (o *GetFlavorProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetFlavorProfilesForbidden

type GetFlavorProfilesForbidden struct {
	Payload *models.ServiceErrorResponse
}
GetFlavorProfilesForbidden describes a response with status code 403, with default header values.

Forbidden

func NewGetFlavorProfilesForbidden

func NewGetFlavorProfilesForbidden() *GetFlavorProfilesForbidden

NewGetFlavorProfilesForbidden creates a GetFlavorProfilesForbidden with default headers values

func (*GetFlavorProfilesForbidden) Error

func (*GetFlavorProfilesForbidden) GetPayload added in v0.2.20

type GetFlavorProfilesOK

type GetFlavorProfilesOK struct {
	Payload *models.FlavorProfileResult
}
GetFlavorProfilesOK describes a response with status code 200, with default header values.

successful operation

func NewGetFlavorProfilesOK

func NewGetFlavorProfilesOK() *GetFlavorProfilesOK

NewGetFlavorProfilesOK creates a GetFlavorProfilesOK with default headers values

func (*GetFlavorProfilesOK) Error

func (o *GetFlavorProfilesOK) Error() string

func (*GetFlavorProfilesOK) GetPayload

type GetFlavorProfilesParams

type GetFlavorProfilesParams struct {

	/* DollarFilter.

	   Add a filter to return limited results
	*/
	DollarFilter *string

	/* 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
}

GetFlavorProfilesParams contains all the parameters to send to the API endpoint

for the get flavor profiles operation.

Typically these are written to a http.Request.

func NewGetFlavorProfilesParams

func NewGetFlavorProfilesParams() *GetFlavorProfilesParams

NewGetFlavorProfilesParams creates a new GetFlavorProfilesParams 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 NewGetFlavorProfilesParamsWithContext

func NewGetFlavorProfilesParamsWithContext(ctx context.Context) *GetFlavorProfilesParams

NewGetFlavorProfilesParamsWithContext creates a new GetFlavorProfilesParams object with the ability to set a context for a request.

func NewGetFlavorProfilesParamsWithHTTPClient

func NewGetFlavorProfilesParamsWithHTTPClient(client *http.Client) *GetFlavorProfilesParams

NewGetFlavorProfilesParamsWithHTTPClient creates a new GetFlavorProfilesParams object with the ability to set a custom HTTPClient for a request.

func NewGetFlavorProfilesParamsWithTimeout

func NewGetFlavorProfilesParamsWithTimeout(timeout time.Duration) *GetFlavorProfilesParams

NewGetFlavorProfilesParamsWithTimeout creates a new GetFlavorProfilesParams object with the ability to set a timeout on a request.

func (*GetFlavorProfilesParams) SetAPIVersion

func (o *GetFlavorProfilesParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get flavor profiles params

func (*GetFlavorProfilesParams) SetContext

func (o *GetFlavorProfilesParams) SetContext(ctx context.Context)

SetContext adds the context to the get flavor profiles params

func (*GetFlavorProfilesParams) SetDefaults added in v0.2.20

func (o *GetFlavorProfilesParams) SetDefaults()

SetDefaults hydrates default values in the get flavor profiles params (not the query body).

All values with no default are reset to their zero value.

func (*GetFlavorProfilesParams) SetDollarFilter added in v0.2.11

func (o *GetFlavorProfilesParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter to the get flavor profiles params

func (*GetFlavorProfilesParams) SetHTTPClient

func (o *GetFlavorProfilesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get flavor profiles params

func (*GetFlavorProfilesParams) SetTimeout

func (o *GetFlavorProfilesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get flavor profiles params

func (*GetFlavorProfilesParams) WithAPIVersion

func (o *GetFlavorProfilesParams) WithAPIVersion(aPIVersion *string) *GetFlavorProfilesParams

WithAPIVersion adds the aPIVersion to the get flavor profiles params

func (*GetFlavorProfilesParams) WithContext

WithContext adds the context to the get flavor profiles params

func (*GetFlavorProfilesParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the get flavor profiles params (not the query body).

All values with no default are reset to their zero value.

func (*GetFlavorProfilesParams) WithDollarFilter added in v0.2.11

func (o *GetFlavorProfilesParams) WithDollarFilter(dollarFilter *string) *GetFlavorProfilesParams

WithDollarFilter adds the dollarFilter to the get flavor profiles params

func (*GetFlavorProfilesParams) WithHTTPClient

func (o *GetFlavorProfilesParams) WithHTTPClient(client *http.Client) *GetFlavorProfilesParams

WithHTTPClient adds the HTTPClient to the get flavor profiles params

func (*GetFlavorProfilesParams) WithTimeout

WithTimeout adds the timeout to the get flavor profiles params

func (*GetFlavorProfilesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetFlavorProfilesReader

type GetFlavorProfilesReader struct {
	// contains filtered or unexported fields
}

GetFlavorProfilesReader is a Reader for the GetFlavorProfiles structure.

func (*GetFlavorProfilesReader) ReadResponse

func (o *GetFlavorProfilesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateFlavorProfileForbidden

type UpdateFlavorProfileForbidden struct {
	Payload *models.ServiceErrorResponse
}
UpdateFlavorProfileForbidden describes a response with status code 403, with default header values.

Forbidden

func NewUpdateFlavorProfileForbidden

func NewUpdateFlavorProfileForbidden() *UpdateFlavorProfileForbidden

NewUpdateFlavorProfileForbidden creates a UpdateFlavorProfileForbidden with default headers values

func (*UpdateFlavorProfileForbidden) Error

func (*UpdateFlavorProfileForbidden) GetPayload added in v0.2.20

type UpdateFlavorProfileNotFound

type UpdateFlavorProfileNotFound struct {
	Payload *models.Error
}
UpdateFlavorProfileNotFound describes a response with status code 404, with default header values.

Not Found

func NewUpdateFlavorProfileNotFound

func NewUpdateFlavorProfileNotFound() *UpdateFlavorProfileNotFound

NewUpdateFlavorProfileNotFound creates a UpdateFlavorProfileNotFound with default headers values

func (*UpdateFlavorProfileNotFound) Error

func (*UpdateFlavorProfileNotFound) GetPayload added in v0.2.9

func (o *UpdateFlavorProfileNotFound) GetPayload() *models.Error

type UpdateFlavorProfileOK

type UpdateFlavorProfileOK struct {
	Payload *models.FlavorProfile
}
UpdateFlavorProfileOK describes a response with status code 200, with default header values.

successful operation

func NewUpdateFlavorProfileOK

func NewUpdateFlavorProfileOK() *UpdateFlavorProfileOK

NewUpdateFlavorProfileOK creates a UpdateFlavorProfileOK with default headers values

func (*UpdateFlavorProfileOK) Error

func (o *UpdateFlavorProfileOK) Error() string

func (*UpdateFlavorProfileOK) GetPayload

func (o *UpdateFlavorProfileOK) GetPayload() *models.FlavorProfile

type UpdateFlavorProfileParams

type UpdateFlavorProfileParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). For versioning information refer to /iaas/api/about
	*/
	APIVersion *string

	/* Body.

	   FlavorProfile instance
	*/
	Body *models.UpdateFlavorProfileSpecification

	/* ID.

	   The ID of the flavor.
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateFlavorProfileParams contains all the parameters to send to the API endpoint

for the update flavor profile operation.

Typically these are written to a http.Request.

func NewUpdateFlavorProfileParams

func NewUpdateFlavorProfileParams() *UpdateFlavorProfileParams

NewUpdateFlavorProfileParams creates a new UpdateFlavorProfileParams 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 NewUpdateFlavorProfileParamsWithContext

func NewUpdateFlavorProfileParamsWithContext(ctx context.Context) *UpdateFlavorProfileParams

NewUpdateFlavorProfileParamsWithContext creates a new UpdateFlavorProfileParams object with the ability to set a context for a request.

func NewUpdateFlavorProfileParamsWithHTTPClient

func NewUpdateFlavorProfileParamsWithHTTPClient(client *http.Client) *UpdateFlavorProfileParams

NewUpdateFlavorProfileParamsWithHTTPClient creates a new UpdateFlavorProfileParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateFlavorProfileParamsWithTimeout

func NewUpdateFlavorProfileParamsWithTimeout(timeout time.Duration) *UpdateFlavorProfileParams

NewUpdateFlavorProfileParamsWithTimeout creates a new UpdateFlavorProfileParams object with the ability to set a timeout on a request.

func (*UpdateFlavorProfileParams) SetAPIVersion

func (o *UpdateFlavorProfileParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the update flavor profile params

func (*UpdateFlavorProfileParams) SetBody

SetBody adds the body to the update flavor profile params

func (*UpdateFlavorProfileParams) SetContext

func (o *UpdateFlavorProfileParams) SetContext(ctx context.Context)

SetContext adds the context to the update flavor profile params

func (*UpdateFlavorProfileParams) SetDefaults added in v0.2.20

func (o *UpdateFlavorProfileParams) SetDefaults()

SetDefaults hydrates default values in the update flavor profile params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateFlavorProfileParams) SetHTTPClient

func (o *UpdateFlavorProfileParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update flavor profile params

func (*UpdateFlavorProfileParams) SetID

func (o *UpdateFlavorProfileParams) SetID(id string)

SetID adds the id to the update flavor profile params

func (*UpdateFlavorProfileParams) SetTimeout

func (o *UpdateFlavorProfileParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update flavor profile params

func (*UpdateFlavorProfileParams) WithAPIVersion

func (o *UpdateFlavorProfileParams) WithAPIVersion(aPIVersion *string) *UpdateFlavorProfileParams

WithAPIVersion adds the aPIVersion to the update flavor profile params

func (*UpdateFlavorProfileParams) WithBody

WithBody adds the body to the update flavor profile params

func (*UpdateFlavorProfileParams) WithContext

WithContext adds the context to the update flavor profile params

func (*UpdateFlavorProfileParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the update flavor profile params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateFlavorProfileParams) WithHTTPClient

func (o *UpdateFlavorProfileParams) WithHTTPClient(client *http.Client) *UpdateFlavorProfileParams

WithHTTPClient adds the HTTPClient to the update flavor profile params

func (*UpdateFlavorProfileParams) WithID

WithID adds the id to the update flavor profile params

func (*UpdateFlavorProfileParams) WithTimeout

WithTimeout adds the timeout to the update flavor profile params

func (*UpdateFlavorProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateFlavorProfileReader

type UpdateFlavorProfileReader struct {
	// contains filtered or unexported fields
}

UpdateFlavorProfileReader is a Reader for the UpdateFlavorProfile structure.

func (*UpdateFlavorProfileReader) ReadResponse

func (o *UpdateFlavorProfileReader) 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