image_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 image profile API

func (*Client) CreateImageProfile

func (a *Client) CreateImageProfile(params *CreateImageProfileParams, opts ...ClientOption) (*CreateImageProfileCreated, error)

CreateImageProfile creates image profile

Create image profile

func (*Client) DeleteImageProfile

func (a *Client) DeleteImageProfile(params *DeleteImageProfileParams, opts ...ClientOption) (*DeleteImageProfileNoContent, error)

DeleteImageProfile deletes image profile

Delete image profile with a given id

func (*Client) GetImageProfile

func (a *Client) GetImageProfile(params *GetImageProfileParams, opts ...ClientOption) (*GetImageProfileOK, error)

GetImageProfile gets image profile

Get image profile with a given id

func (*Client) GetImageProfiles

func (a *Client) GetImageProfiles(params *GetImageProfilesParams, opts ...ClientOption) (*GetImageProfilesOK, error)

GetImageProfiles gets image profile

Get all image profiles

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateImageProfile

func (a *Client) UpdateImageProfile(params *UpdateImageProfileParams, opts ...ClientOption) (*UpdateImageProfileOK, error)

UpdateImageProfile updates image profile

Update image 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 {
	CreateImageProfile(params *CreateImageProfileParams, opts ...ClientOption) (*CreateImageProfileCreated, error)

	DeleteImageProfile(params *DeleteImageProfileParams, opts ...ClientOption) (*DeleteImageProfileNoContent, error)

	GetImageProfile(params *GetImageProfileParams, opts ...ClientOption) (*GetImageProfileOK, error)

	GetImageProfiles(params *GetImageProfilesParams, opts ...ClientOption) (*GetImageProfilesOK, error)

	UpdateImageProfile(params *UpdateImageProfileParams, opts ...ClientOption) (*UpdateImageProfileOK, 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 image profile API client.

type CreateImageProfileBadRequest

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

Invalid Request - bad data

func NewCreateImageProfileBadRequest

func NewCreateImageProfileBadRequest() *CreateImageProfileBadRequest

NewCreateImageProfileBadRequest creates a CreateImageProfileBadRequest with default headers values

func (*CreateImageProfileBadRequest) Error

func (*CreateImageProfileBadRequest) GetPayload added in v0.2.9

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

type CreateImageProfileCreated

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

successful operation

func NewCreateImageProfileCreated

func NewCreateImageProfileCreated() *CreateImageProfileCreated

NewCreateImageProfileCreated creates a CreateImageProfileCreated with default headers values

func (*CreateImageProfileCreated) Error

func (o *CreateImageProfileCreated) Error() string

func (*CreateImageProfileCreated) GetPayload

type CreateImageProfileForbidden

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

Forbidden

func NewCreateImageProfileForbidden

func NewCreateImageProfileForbidden() *CreateImageProfileForbidden

NewCreateImageProfileForbidden creates a CreateImageProfileForbidden with default headers values

func (*CreateImageProfileForbidden) Error

func (*CreateImageProfileForbidden) GetPayload added in v0.2.20

type CreateImageProfileParams

type CreateImageProfileParams struct {

	/* APIVersion.

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

	/* Body.

	   ImageProfile instance
	*/
	Body *models.ImageProfileSpecification

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

CreateImageProfileParams contains all the parameters to send to the API endpoint

for the create image profile operation.

Typically these are written to a http.Request.

func NewCreateImageProfileParams

func NewCreateImageProfileParams() *CreateImageProfileParams

NewCreateImageProfileParams creates a new CreateImageProfileParams 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 NewCreateImageProfileParamsWithContext

func NewCreateImageProfileParamsWithContext(ctx context.Context) *CreateImageProfileParams

NewCreateImageProfileParamsWithContext creates a new CreateImageProfileParams object with the ability to set a context for a request.

func NewCreateImageProfileParamsWithHTTPClient

func NewCreateImageProfileParamsWithHTTPClient(client *http.Client) *CreateImageProfileParams

NewCreateImageProfileParamsWithHTTPClient creates a new CreateImageProfileParams object with the ability to set a custom HTTPClient for a request.

func NewCreateImageProfileParamsWithTimeout

func NewCreateImageProfileParamsWithTimeout(timeout time.Duration) *CreateImageProfileParams

NewCreateImageProfileParamsWithTimeout creates a new CreateImageProfileParams object with the ability to set a timeout on a request.

func (*CreateImageProfileParams) SetAPIVersion

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

SetAPIVersion adds the apiVersion to the create image profile params

func (*CreateImageProfileParams) SetBody

SetBody adds the body to the create image profile params

func (*CreateImageProfileParams) SetContext

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

SetContext adds the context to the create image profile params

func (*CreateImageProfileParams) SetDefaults added in v0.2.20

func (o *CreateImageProfileParams) SetDefaults()

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

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

func (*CreateImageProfileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create image profile params

func (*CreateImageProfileParams) SetTimeout

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

SetTimeout adds the timeout to the create image profile params

func (*CreateImageProfileParams) WithAPIVersion

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

WithAPIVersion adds the aPIVersion to the create image profile params

func (*CreateImageProfileParams) WithBody

WithBody adds the body to the create image profile params

func (*CreateImageProfileParams) WithContext

WithContext adds the context to the create image profile params

func (*CreateImageProfileParams) WithDefaults added in v0.2.20

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

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

func (*CreateImageProfileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create image profile params

func (*CreateImageProfileParams) WithTimeout

WithTimeout adds the timeout to the create image profile params

func (*CreateImageProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateImageProfileReader

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

CreateImageProfileReader is a Reader for the CreateImageProfile structure.

func (*CreateImageProfileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteImageProfileForbidden

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

Forbidden

func NewDeleteImageProfileForbidden

func NewDeleteImageProfileForbidden() *DeleteImageProfileForbidden

NewDeleteImageProfileForbidden creates a DeleteImageProfileForbidden with default headers values

func (*DeleteImageProfileForbidden) Error

func (*DeleteImageProfileForbidden) GetPayload added in v0.2.20

type DeleteImageProfileNoContent

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

No Content

func NewDeleteImageProfileNoContent

func NewDeleteImageProfileNoContent() *DeleteImageProfileNoContent

NewDeleteImageProfileNoContent creates a DeleteImageProfileNoContent with default headers values

func (*DeleteImageProfileNoContent) Error

type DeleteImageProfileParams

type DeleteImageProfileParams 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 image.
	*/
	ID string

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

DeleteImageProfileParams contains all the parameters to send to the API endpoint

for the delete image profile operation.

Typically these are written to a http.Request.

func NewDeleteImageProfileParams

func NewDeleteImageProfileParams() *DeleteImageProfileParams

NewDeleteImageProfileParams creates a new DeleteImageProfileParams 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 NewDeleteImageProfileParamsWithContext

func NewDeleteImageProfileParamsWithContext(ctx context.Context) *DeleteImageProfileParams

NewDeleteImageProfileParamsWithContext creates a new DeleteImageProfileParams object with the ability to set a context for a request.

func NewDeleteImageProfileParamsWithHTTPClient

func NewDeleteImageProfileParamsWithHTTPClient(client *http.Client) *DeleteImageProfileParams

NewDeleteImageProfileParamsWithHTTPClient creates a new DeleteImageProfileParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteImageProfileParamsWithTimeout

func NewDeleteImageProfileParamsWithTimeout(timeout time.Duration) *DeleteImageProfileParams

NewDeleteImageProfileParamsWithTimeout creates a new DeleteImageProfileParams object with the ability to set a timeout on a request.

func (*DeleteImageProfileParams) SetAPIVersion

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

SetAPIVersion adds the apiVersion to the delete image profile params

func (*DeleteImageProfileParams) SetContext

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

SetContext adds the context to the delete image profile params

func (*DeleteImageProfileParams) SetDefaults added in v0.2.20

func (o *DeleteImageProfileParams) SetDefaults()

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

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

func (*DeleteImageProfileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete image profile params

func (*DeleteImageProfileParams) SetID

func (o *DeleteImageProfileParams) SetID(id string)

SetID adds the id to the delete image profile params

func (*DeleteImageProfileParams) SetTimeout

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

SetTimeout adds the timeout to the delete image profile params

func (*DeleteImageProfileParams) WithAPIVersion

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

WithAPIVersion adds the aPIVersion to the delete image profile params

func (*DeleteImageProfileParams) WithContext

WithContext adds the context to the delete image profile params

func (*DeleteImageProfileParams) WithDefaults added in v0.2.20

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

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

func (*DeleteImageProfileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete image profile params

func (*DeleteImageProfileParams) WithID

WithID adds the id to the delete image profile params

func (*DeleteImageProfileParams) WithTimeout

WithTimeout adds the timeout to the delete image profile params

func (*DeleteImageProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteImageProfileReader

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

DeleteImageProfileReader is a Reader for the DeleteImageProfile structure.

func (*DeleteImageProfileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetImageProfileForbidden

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

Forbidden

func NewGetImageProfileForbidden

func NewGetImageProfileForbidden() *GetImageProfileForbidden

NewGetImageProfileForbidden creates a GetImageProfileForbidden with default headers values

func (*GetImageProfileForbidden) Error

func (o *GetImageProfileForbidden) Error() string

func (*GetImageProfileForbidden) GetPayload added in v0.2.20

type GetImageProfileNotFound

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

Not Found

func NewGetImageProfileNotFound

func NewGetImageProfileNotFound() *GetImageProfileNotFound

NewGetImageProfileNotFound creates a GetImageProfileNotFound with default headers values

func (*GetImageProfileNotFound) Error

func (o *GetImageProfileNotFound) Error() string

func (*GetImageProfileNotFound) GetPayload added in v0.2.9

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

type GetImageProfileOK

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

successful operation

func NewGetImageProfileOK

func NewGetImageProfileOK() *GetImageProfileOK

NewGetImageProfileOK creates a GetImageProfileOK with default headers values

func (*GetImageProfileOK) Error

func (o *GetImageProfileOK) Error() string

func (*GetImageProfileOK) GetPayload

func (o *GetImageProfileOK) GetPayload() *models.ImageProfile

type GetImageProfileParams

type GetImageProfileParams 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 image.
	*/
	ID string

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

GetImageProfileParams contains all the parameters to send to the API endpoint

for the get image profile operation.

Typically these are written to a http.Request.

func NewGetImageProfileParams

func NewGetImageProfileParams() *GetImageProfileParams

NewGetImageProfileParams creates a new GetImageProfileParams 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 NewGetImageProfileParamsWithContext

func NewGetImageProfileParamsWithContext(ctx context.Context) *GetImageProfileParams

NewGetImageProfileParamsWithContext creates a new GetImageProfileParams object with the ability to set a context for a request.

func NewGetImageProfileParamsWithHTTPClient

func NewGetImageProfileParamsWithHTTPClient(client *http.Client) *GetImageProfileParams

NewGetImageProfileParamsWithHTTPClient creates a new GetImageProfileParams object with the ability to set a custom HTTPClient for a request.

func NewGetImageProfileParamsWithTimeout

func NewGetImageProfileParamsWithTimeout(timeout time.Duration) *GetImageProfileParams

NewGetImageProfileParamsWithTimeout creates a new GetImageProfileParams object with the ability to set a timeout on a request.

func (*GetImageProfileParams) SetAPIVersion

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

SetAPIVersion adds the apiVersion to the get image profile params

func (*GetImageProfileParams) SetContext

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

SetContext adds the context to the get image profile params

func (*GetImageProfileParams) SetDefaults added in v0.2.20

func (o *GetImageProfileParams) SetDefaults()

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

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

func (*GetImageProfileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get image profile params

func (*GetImageProfileParams) SetID

func (o *GetImageProfileParams) SetID(id string)

SetID adds the id to the get image profile params

func (*GetImageProfileParams) SetTimeout

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

SetTimeout adds the timeout to the get image profile params

func (*GetImageProfileParams) WithAPIVersion

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

WithAPIVersion adds the aPIVersion to the get image profile params

func (*GetImageProfileParams) WithContext

WithContext adds the context to the get image profile params

func (*GetImageProfileParams) WithDefaults added in v0.2.20

func (o *GetImageProfileParams) WithDefaults() *GetImageProfileParams

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

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

func (*GetImageProfileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get image profile params

func (*GetImageProfileParams) WithID

WithID adds the id to the get image profile params

func (*GetImageProfileParams) WithTimeout

func (o *GetImageProfileParams) WithTimeout(timeout time.Duration) *GetImageProfileParams

WithTimeout adds the timeout to the get image profile params

func (*GetImageProfileParams) WriteToRequest

func (o *GetImageProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetImageProfileReader

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

GetImageProfileReader is a Reader for the GetImageProfile structure.

func (*GetImageProfileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetImageProfilesForbidden

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

Forbidden

func NewGetImageProfilesForbidden

func NewGetImageProfilesForbidden() *GetImageProfilesForbidden

NewGetImageProfilesForbidden creates a GetImageProfilesForbidden with default headers values

func (*GetImageProfilesForbidden) Error

func (o *GetImageProfilesForbidden) Error() string

func (*GetImageProfilesForbidden) GetPayload added in v0.2.20

type GetImageProfilesOK

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

successful operation

func NewGetImageProfilesOK

func NewGetImageProfilesOK() *GetImageProfilesOK

NewGetImageProfilesOK creates a GetImageProfilesOK with default headers values

func (*GetImageProfilesOK) Error

func (o *GetImageProfilesOK) Error() string

func (*GetImageProfilesOK) GetPayload

func (o *GetImageProfilesOK) GetPayload() *models.ImageProfileResult

type GetImageProfilesParams

type GetImageProfilesParams 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
}

GetImageProfilesParams contains all the parameters to send to the API endpoint

for the get image profiles operation.

Typically these are written to a http.Request.

func NewGetImageProfilesParams

func NewGetImageProfilesParams() *GetImageProfilesParams

NewGetImageProfilesParams creates a new GetImageProfilesParams 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 NewGetImageProfilesParamsWithContext

func NewGetImageProfilesParamsWithContext(ctx context.Context) *GetImageProfilesParams

NewGetImageProfilesParamsWithContext creates a new GetImageProfilesParams object with the ability to set a context for a request.

func NewGetImageProfilesParamsWithHTTPClient

func NewGetImageProfilesParamsWithHTTPClient(client *http.Client) *GetImageProfilesParams

NewGetImageProfilesParamsWithHTTPClient creates a new GetImageProfilesParams object with the ability to set a custom HTTPClient for a request.

func NewGetImageProfilesParamsWithTimeout

func NewGetImageProfilesParamsWithTimeout(timeout time.Duration) *GetImageProfilesParams

NewGetImageProfilesParamsWithTimeout creates a new GetImageProfilesParams object with the ability to set a timeout on a request.

func (*GetImageProfilesParams) SetAPIVersion

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

SetAPIVersion adds the apiVersion to the get image profiles params

func (*GetImageProfilesParams) SetContext

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

SetContext adds the context to the get image profiles params

func (*GetImageProfilesParams) SetDefaults added in v0.2.20

func (o *GetImageProfilesParams) SetDefaults()

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

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

func (*GetImageProfilesParams) SetDollarFilter added in v0.2.11

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

SetDollarFilter adds the dollarFilter to the get image profiles params

func (*GetImageProfilesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get image profiles params

func (*GetImageProfilesParams) SetTimeout

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

SetTimeout adds the timeout to the get image profiles params

func (*GetImageProfilesParams) WithAPIVersion

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

WithAPIVersion adds the aPIVersion to the get image profiles params

func (*GetImageProfilesParams) WithContext

WithContext adds the context to the get image profiles params

func (*GetImageProfilesParams) WithDefaults added in v0.2.20

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

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

func (*GetImageProfilesParams) WithDollarFilter added in v0.2.11

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

WithDollarFilter adds the dollarFilter to the get image profiles params

func (*GetImageProfilesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get image profiles params

func (*GetImageProfilesParams) WithTimeout

WithTimeout adds the timeout to the get image profiles params

func (*GetImageProfilesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetImageProfilesReader

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

GetImageProfilesReader is a Reader for the GetImageProfiles structure.

func (*GetImageProfilesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateImageProfileForbidden

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

Forbidden

func NewUpdateImageProfileForbidden

func NewUpdateImageProfileForbidden() *UpdateImageProfileForbidden

NewUpdateImageProfileForbidden creates a UpdateImageProfileForbidden with default headers values

func (*UpdateImageProfileForbidden) Error

func (*UpdateImageProfileForbidden) GetPayload added in v0.2.20

type UpdateImageProfileNotFound

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

Not Found

func NewUpdateImageProfileNotFound

func NewUpdateImageProfileNotFound() *UpdateImageProfileNotFound

NewUpdateImageProfileNotFound creates a UpdateImageProfileNotFound with default headers values

func (*UpdateImageProfileNotFound) Error

func (*UpdateImageProfileNotFound) GetPayload added in v0.2.9

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

type UpdateImageProfileOK

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

successful operation

func NewUpdateImageProfileOK

func NewUpdateImageProfileOK() *UpdateImageProfileOK

NewUpdateImageProfileOK creates a UpdateImageProfileOK with default headers values

func (*UpdateImageProfileOK) Error

func (o *UpdateImageProfileOK) Error() string

func (*UpdateImageProfileOK) GetPayload

func (o *UpdateImageProfileOK) GetPayload() *models.ImageProfile

type UpdateImageProfileParams

type UpdateImageProfileParams struct {

	/* APIVersion.

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

	/* Body.

	   ImageProfile instance
	*/
	Body *models.UpdateImageProfileSpecification

	/* ID.

	   The ID of the image.
	*/
	ID string

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

UpdateImageProfileParams contains all the parameters to send to the API endpoint

for the update image profile operation.

Typically these are written to a http.Request.

func NewUpdateImageProfileParams

func NewUpdateImageProfileParams() *UpdateImageProfileParams

NewUpdateImageProfileParams creates a new UpdateImageProfileParams 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 NewUpdateImageProfileParamsWithContext

func NewUpdateImageProfileParamsWithContext(ctx context.Context) *UpdateImageProfileParams

NewUpdateImageProfileParamsWithContext creates a new UpdateImageProfileParams object with the ability to set a context for a request.

func NewUpdateImageProfileParamsWithHTTPClient

func NewUpdateImageProfileParamsWithHTTPClient(client *http.Client) *UpdateImageProfileParams

NewUpdateImageProfileParamsWithHTTPClient creates a new UpdateImageProfileParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateImageProfileParamsWithTimeout

func NewUpdateImageProfileParamsWithTimeout(timeout time.Duration) *UpdateImageProfileParams

NewUpdateImageProfileParamsWithTimeout creates a new UpdateImageProfileParams object with the ability to set a timeout on a request.

func (*UpdateImageProfileParams) SetAPIVersion

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

SetAPIVersion adds the apiVersion to the update image profile params

func (*UpdateImageProfileParams) SetBody

SetBody adds the body to the update image profile params

func (*UpdateImageProfileParams) SetContext

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

SetContext adds the context to the update image profile params

func (*UpdateImageProfileParams) SetDefaults added in v0.2.20

func (o *UpdateImageProfileParams) SetDefaults()

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

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

func (*UpdateImageProfileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update image profile params

func (*UpdateImageProfileParams) SetID

func (o *UpdateImageProfileParams) SetID(id string)

SetID adds the id to the update image profile params

func (*UpdateImageProfileParams) SetTimeout

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

SetTimeout adds the timeout to the update image profile params

func (*UpdateImageProfileParams) WithAPIVersion

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

WithAPIVersion adds the aPIVersion to the update image profile params

func (*UpdateImageProfileParams) WithBody

WithBody adds the body to the update image profile params

func (*UpdateImageProfileParams) WithContext

WithContext adds the context to the update image profile params

func (*UpdateImageProfileParams) WithDefaults added in v0.2.20

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

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

func (*UpdateImageProfileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update image profile params

func (*UpdateImageProfileParams) WithID

WithID adds the id to the update image profile params

func (*UpdateImageProfileParams) WithTimeout

WithTimeout adds the timeout to the update image profile params

func (*UpdateImageProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateImageProfileReader

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

UpdateImageProfileReader is a Reader for the UpdateImageProfile structure.

func (*UpdateImageProfileReader) ReadResponse

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