Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateImageProfile(params *CreateImageProfileParams, opts ...ClientOption) (*CreateImageProfileCreated, error)
- func (a *Client) DeleteImageProfile(params *DeleteImageProfileParams, opts ...ClientOption) (*DeleteImageProfileNoContent, error)
- func (a *Client) GetImageProfile(params *GetImageProfileParams, opts ...ClientOption) (*GetImageProfileOK, error)
- func (a *Client) GetImageProfiles(params *GetImageProfilesParams, opts ...ClientOption) (*GetImageProfilesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateImageProfile(params *UpdateImageProfileParams, opts ...ClientOption) (*UpdateImageProfileOK, error)
- type ClientOption
- type ClientService
- type CreateImageProfileBadRequest
- type CreateImageProfileCreated
- type CreateImageProfileForbidden
- type CreateImageProfileParams
- func NewCreateImageProfileParams() *CreateImageProfileParams
- func NewCreateImageProfileParamsWithContext(ctx context.Context) *CreateImageProfileParams
- func NewCreateImageProfileParamsWithHTTPClient(client *http.Client) *CreateImageProfileParams
- func NewCreateImageProfileParamsWithTimeout(timeout time.Duration) *CreateImageProfileParams
- func (o *CreateImageProfileParams) SetAPIVersion(aPIVersion *string)
- func (o *CreateImageProfileParams) SetBody(body *models.ImageProfileSpecification)
- func (o *CreateImageProfileParams) SetContext(ctx context.Context)
- func (o *CreateImageProfileParams) SetDefaults()
- func (o *CreateImageProfileParams) SetHTTPClient(client *http.Client)
- func (o *CreateImageProfileParams) SetTimeout(timeout time.Duration)
- func (o *CreateImageProfileParams) WithAPIVersion(aPIVersion *string) *CreateImageProfileParams
- func (o *CreateImageProfileParams) WithBody(body *models.ImageProfileSpecification) *CreateImageProfileParams
- func (o *CreateImageProfileParams) WithContext(ctx context.Context) *CreateImageProfileParams
- func (o *CreateImageProfileParams) WithDefaults() *CreateImageProfileParams
- func (o *CreateImageProfileParams) WithHTTPClient(client *http.Client) *CreateImageProfileParams
- func (o *CreateImageProfileParams) WithTimeout(timeout time.Duration) *CreateImageProfileParams
- func (o *CreateImageProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateImageProfileReader
- type DeleteImageProfileForbidden
- type DeleteImageProfileNoContent
- type DeleteImageProfileParams
- func NewDeleteImageProfileParams() *DeleteImageProfileParams
- func NewDeleteImageProfileParamsWithContext(ctx context.Context) *DeleteImageProfileParams
- func NewDeleteImageProfileParamsWithHTTPClient(client *http.Client) *DeleteImageProfileParams
- func NewDeleteImageProfileParamsWithTimeout(timeout time.Duration) *DeleteImageProfileParams
- func (o *DeleteImageProfileParams) SetAPIVersion(aPIVersion *string)
- func (o *DeleteImageProfileParams) SetContext(ctx context.Context)
- func (o *DeleteImageProfileParams) SetDefaults()
- func (o *DeleteImageProfileParams) SetHTTPClient(client *http.Client)
- func (o *DeleteImageProfileParams) SetID(id string)
- func (o *DeleteImageProfileParams) SetTimeout(timeout time.Duration)
- func (o *DeleteImageProfileParams) WithAPIVersion(aPIVersion *string) *DeleteImageProfileParams
- func (o *DeleteImageProfileParams) WithContext(ctx context.Context) *DeleteImageProfileParams
- func (o *DeleteImageProfileParams) WithDefaults() *DeleteImageProfileParams
- func (o *DeleteImageProfileParams) WithHTTPClient(client *http.Client) *DeleteImageProfileParams
- func (o *DeleteImageProfileParams) WithID(id string) *DeleteImageProfileParams
- func (o *DeleteImageProfileParams) WithTimeout(timeout time.Duration) *DeleteImageProfileParams
- func (o *DeleteImageProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteImageProfileReader
- type GetImageProfileForbidden
- type GetImageProfileNotFound
- type GetImageProfileOK
- type GetImageProfileParams
- func NewGetImageProfileParams() *GetImageProfileParams
- func NewGetImageProfileParamsWithContext(ctx context.Context) *GetImageProfileParams
- func NewGetImageProfileParamsWithHTTPClient(client *http.Client) *GetImageProfileParams
- func NewGetImageProfileParamsWithTimeout(timeout time.Duration) *GetImageProfileParams
- func (o *GetImageProfileParams) SetAPIVersion(aPIVersion *string)
- func (o *GetImageProfileParams) SetContext(ctx context.Context)
- func (o *GetImageProfileParams) SetDefaults()
- func (o *GetImageProfileParams) SetHTTPClient(client *http.Client)
- func (o *GetImageProfileParams) SetID(id string)
- func (o *GetImageProfileParams) SetTimeout(timeout time.Duration)
- func (o *GetImageProfileParams) WithAPIVersion(aPIVersion *string) *GetImageProfileParams
- func (o *GetImageProfileParams) WithContext(ctx context.Context) *GetImageProfileParams
- func (o *GetImageProfileParams) WithDefaults() *GetImageProfileParams
- func (o *GetImageProfileParams) WithHTTPClient(client *http.Client) *GetImageProfileParams
- func (o *GetImageProfileParams) WithID(id string) *GetImageProfileParams
- func (o *GetImageProfileParams) WithTimeout(timeout time.Duration) *GetImageProfileParams
- func (o *GetImageProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetImageProfileReader
- type GetImageProfilesForbidden
- type GetImageProfilesOK
- type GetImageProfilesParams
- func NewGetImageProfilesParams() *GetImageProfilesParams
- func NewGetImageProfilesParamsWithContext(ctx context.Context) *GetImageProfilesParams
- func NewGetImageProfilesParamsWithHTTPClient(client *http.Client) *GetImageProfilesParams
- func NewGetImageProfilesParamsWithTimeout(timeout time.Duration) *GetImageProfilesParams
- func (o *GetImageProfilesParams) SetAPIVersion(aPIVersion *string)
- func (o *GetImageProfilesParams) SetContext(ctx context.Context)
- func (o *GetImageProfilesParams) SetDefaults()
- func (o *GetImageProfilesParams) SetDollarFilter(dollarFilter *string)
- func (o *GetImageProfilesParams) SetHTTPClient(client *http.Client)
- func (o *GetImageProfilesParams) SetTimeout(timeout time.Duration)
- func (o *GetImageProfilesParams) WithAPIVersion(aPIVersion *string) *GetImageProfilesParams
- func (o *GetImageProfilesParams) WithContext(ctx context.Context) *GetImageProfilesParams
- func (o *GetImageProfilesParams) WithDefaults() *GetImageProfilesParams
- func (o *GetImageProfilesParams) WithDollarFilter(dollarFilter *string) *GetImageProfilesParams
- func (o *GetImageProfilesParams) WithHTTPClient(client *http.Client) *GetImageProfilesParams
- func (o *GetImageProfilesParams) WithTimeout(timeout time.Duration) *GetImageProfilesParams
- func (o *GetImageProfilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetImageProfilesReader
- type UpdateImageProfileForbidden
- type UpdateImageProfileNotFound
- type UpdateImageProfileOK
- type UpdateImageProfileParams
- func NewUpdateImageProfileParams() *UpdateImageProfileParams
- func NewUpdateImageProfileParamsWithContext(ctx context.Context) *UpdateImageProfileParams
- func NewUpdateImageProfileParamsWithHTTPClient(client *http.Client) *UpdateImageProfileParams
- func NewUpdateImageProfileParamsWithTimeout(timeout time.Duration) *UpdateImageProfileParams
- func (o *UpdateImageProfileParams) SetAPIVersion(aPIVersion *string)
- func (o *UpdateImageProfileParams) SetBody(body *models.UpdateImageProfileSpecification)
- func (o *UpdateImageProfileParams) SetContext(ctx context.Context)
- func (o *UpdateImageProfileParams) SetDefaults()
- func (o *UpdateImageProfileParams) SetHTTPClient(client *http.Client)
- func (o *UpdateImageProfileParams) SetID(id string)
- func (o *UpdateImageProfileParams) SetTimeout(timeout time.Duration)
- func (o *UpdateImageProfileParams) WithAPIVersion(aPIVersion *string) *UpdateImageProfileParams
- func (o *UpdateImageProfileParams) WithBody(body *models.UpdateImageProfileSpecification) *UpdateImageProfileParams
- func (o *UpdateImageProfileParams) WithContext(ctx context.Context) *UpdateImageProfileParams
- func (o *UpdateImageProfileParams) WithDefaults() *UpdateImageProfileParams
- func (o *UpdateImageProfileParams) WithHTTPClient(client *http.Client) *UpdateImageProfileParams
- func (o *UpdateImageProfileParams) WithID(id string) *UpdateImageProfileParams
- func (o *UpdateImageProfileParams) WithTimeout(timeout time.Duration) *UpdateImageProfileParams
- func (o *UpdateImageProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateImageProfileReader
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 ¶
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 (o *CreateImageProfileBadRequest) Error() string
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 ¶
func (o *CreateImageProfileCreated) GetPayload() *models.ImageProfile
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 (o *CreateImageProfileForbidden) Error() string
func (*CreateImageProfileForbidden) GetPayload ¶ added in v0.2.20
func (o *CreateImageProfileForbidden) GetPayload() *models.ServiceErrorResponse
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 ¶
func (o *CreateImageProfileParams) SetBody(body *models.ImageProfileSpecification)
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 ¶
func (o *CreateImageProfileParams) WithBody(body *models.ImageProfileSpecification) *CreateImageProfileParams
WithBody adds the body to the create image profile params
func (*CreateImageProfileParams) WithContext ¶
func (o *CreateImageProfileParams) WithContext(ctx context.Context) *CreateImageProfileParams
WithContext adds the context to the create image profile params
func (*CreateImageProfileParams) WithDefaults ¶ added in v0.2.20
func (o *CreateImageProfileParams) WithDefaults() *CreateImageProfileParams
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 ¶
func (o *CreateImageProfileParams) WithTimeout(timeout time.Duration) *CreateImageProfileParams
WithTimeout adds the timeout to the create image profile params
func (*CreateImageProfileParams) WriteToRequest ¶
func (o *CreateImageProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *DeleteImageProfileForbidden) Error() string
func (*DeleteImageProfileForbidden) GetPayload ¶ added in v0.2.20
func (o *DeleteImageProfileForbidden) GetPayload() *models.ServiceErrorResponse
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 ¶
func (o *DeleteImageProfileNoContent) Error() string
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 ¶
func (o *DeleteImageProfileParams) WithContext(ctx context.Context) *DeleteImageProfileParams
WithContext adds the context to the delete image profile params
func (*DeleteImageProfileParams) WithDefaults ¶ added in v0.2.20
func (o *DeleteImageProfileParams) WithDefaults() *DeleteImageProfileParams
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 ¶
func (o *DeleteImageProfileParams) WithID(id string) *DeleteImageProfileParams
WithID adds the id to the delete image profile params
func (*DeleteImageProfileParams) WithTimeout ¶
func (o *DeleteImageProfileParams) WithTimeout(timeout time.Duration) *DeleteImageProfileParams
WithTimeout adds the timeout to the delete image profile params
func (*DeleteImageProfileParams) WriteToRequest ¶
func (o *DeleteImageProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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
func (o *GetImageProfileForbidden) GetPayload() *models.ServiceErrorResponse
type GetImageProfileNotFound ¶
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 ¶
func (o *GetImageProfileParams) WithContext(ctx context.Context) *GetImageProfileParams
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 ¶
func (o *GetImageProfileParams) WithID(id string) *GetImageProfileParams
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
func (o *GetImageProfilesForbidden) GetPayload() *models.ServiceErrorResponse
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 ¶
func (o *GetImageProfilesParams) WithContext(ctx context.Context) *GetImageProfilesParams
WithContext adds the context to the get image profiles params
func (*GetImageProfilesParams) WithDefaults ¶ added in v0.2.20
func (o *GetImageProfilesParams) WithDefaults() *GetImageProfilesParams
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 ¶
func (o *GetImageProfilesParams) WithTimeout(timeout time.Duration) *GetImageProfilesParams
WithTimeout adds the timeout to the get image profiles params
func (*GetImageProfilesParams) WriteToRequest ¶
func (o *GetImageProfilesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *UpdateImageProfileForbidden) Error() string
func (*UpdateImageProfileForbidden) GetPayload ¶ added in v0.2.20
func (o *UpdateImageProfileForbidden) GetPayload() *models.ServiceErrorResponse
type UpdateImageProfileNotFound ¶
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 (o *UpdateImageProfileNotFound) Error() string
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 ¶
func (o *UpdateImageProfileParams) SetBody(body *models.UpdateImageProfileSpecification)
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 ¶
func (o *UpdateImageProfileParams) WithBody(body *models.UpdateImageProfileSpecification) *UpdateImageProfileParams
WithBody adds the body to the update image profile params
func (*UpdateImageProfileParams) WithContext ¶
func (o *UpdateImageProfileParams) WithContext(ctx context.Context) *UpdateImageProfileParams
WithContext adds the context to the update image profile params
func (*UpdateImageProfileParams) WithDefaults ¶ added in v0.2.20
func (o *UpdateImageProfileParams) WithDefaults() *UpdateImageProfileParams
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 ¶
func (o *UpdateImageProfileParams) WithID(id string) *UpdateImageProfileParams
WithID adds the id to the update image profile params
func (*UpdateImageProfileParams) WithTimeout ¶
func (o *UpdateImageProfileParams) WithTimeout(timeout time.Duration) *UpdateImageProfileParams
WithTimeout adds the timeout to the update image profile params
func (*UpdateImageProfileParams) WriteToRequest ¶
func (o *UpdateImageProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files
¶
- create_image_profile_parameters.go
- create_image_profile_responses.go
- delete_image_profile_parameters.go
- delete_image_profile_responses.go
- get_image_profile_parameters.go
- get_image_profile_responses.go
- get_image_profiles_parameters.go
- get_image_profiles_responses.go
- image_profile_client.go
- update_image_profile_parameters.go
- update_image_profile_responses.go