Documentation
¶
Index ¶
- type Client
- func (a *Client) CreatePreset(params *CreatePresetParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePresetOK, error)
- func (a *Client) ListPresets(params *ListPresetsParams, authInfo runtime.ClientAuthInfoWriter) (*ListPresetsOK, error)
- func (a *Client) ListProviderPresets(params *ListProviderPresetsParams, authInfo runtime.ClientAuthInfoWriter) (*ListProviderPresetsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdatePreset(params *UpdatePresetParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePresetOK, error)
- func (a *Client) UpdatePresetStatus(params *UpdatePresetStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePresetStatusOK, error)
- type ClientService
- type CreatePresetDefault
- type CreatePresetForbidden
- type CreatePresetOK
- type CreatePresetParams
- func (o *CreatePresetParams) SetBody(body *models.Preset)
- func (o *CreatePresetParams) SetContext(ctx context.Context)
- func (o *CreatePresetParams) SetHTTPClient(client *http.Client)
- func (o *CreatePresetParams) SetProviderName(providerName string)
- func (o *CreatePresetParams) SetTimeout(timeout time.Duration)
- func (o *CreatePresetParams) WithBody(body *models.Preset) *CreatePresetParams
- func (o *CreatePresetParams) WithContext(ctx context.Context) *CreatePresetParams
- func (o *CreatePresetParams) WithHTTPClient(client *http.Client) *CreatePresetParams
- func (o *CreatePresetParams) WithProviderName(providerName string) *CreatePresetParams
- func (o *CreatePresetParams) WithTimeout(timeout time.Duration) *CreatePresetParams
- func (o *CreatePresetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreatePresetReader
- type CreatePresetUnauthorized
- type ListPresetsDefault
- type ListPresetsForbidden
- type ListPresetsOK
- type ListPresetsParams
- func (o *ListPresetsParams) SetContext(ctx context.Context)
- func (o *ListPresetsParams) SetDisabled(disabled *bool)
- func (o *ListPresetsParams) SetHTTPClient(client *http.Client)
- func (o *ListPresetsParams) SetTimeout(timeout time.Duration)
- func (o *ListPresetsParams) WithContext(ctx context.Context) *ListPresetsParams
- func (o *ListPresetsParams) WithDisabled(disabled *bool) *ListPresetsParams
- func (o *ListPresetsParams) WithHTTPClient(client *http.Client) *ListPresetsParams
- func (o *ListPresetsParams) WithTimeout(timeout time.Duration) *ListPresetsParams
- func (o *ListPresetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListPresetsReader
- type ListPresetsUnauthorized
- type ListProviderPresetsDefault
- type ListProviderPresetsForbidden
- type ListProviderPresetsOK
- type ListProviderPresetsParams
- func NewListProviderPresetsParams() *ListProviderPresetsParams
- func NewListProviderPresetsParamsWithContext(ctx context.Context) *ListProviderPresetsParams
- func NewListProviderPresetsParamsWithHTTPClient(client *http.Client) *ListProviderPresetsParams
- func NewListProviderPresetsParamsWithTimeout(timeout time.Duration) *ListProviderPresetsParams
- func (o *ListProviderPresetsParams) SetContext(ctx context.Context)
- func (o *ListProviderPresetsParams) SetDatacenter(datacenter *string)
- func (o *ListProviderPresetsParams) SetDisabled(disabled *bool)
- func (o *ListProviderPresetsParams) SetHTTPClient(client *http.Client)
- func (o *ListProviderPresetsParams) SetProviderName(providerName string)
- func (o *ListProviderPresetsParams) SetTimeout(timeout time.Duration)
- func (o *ListProviderPresetsParams) WithContext(ctx context.Context) *ListProviderPresetsParams
- func (o *ListProviderPresetsParams) WithDatacenter(datacenter *string) *ListProviderPresetsParams
- func (o *ListProviderPresetsParams) WithDisabled(disabled *bool) *ListProviderPresetsParams
- func (o *ListProviderPresetsParams) WithHTTPClient(client *http.Client) *ListProviderPresetsParams
- func (o *ListProviderPresetsParams) WithProviderName(providerName string) *ListProviderPresetsParams
- func (o *ListProviderPresetsParams) WithTimeout(timeout time.Duration) *ListProviderPresetsParams
- func (o *ListProviderPresetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListProviderPresetsReader
- type ListProviderPresetsUnauthorized
- type UpdatePresetDefault
- type UpdatePresetForbidden
- type UpdatePresetOK
- type UpdatePresetParams
- func (o *UpdatePresetParams) SetBody(body *models.Preset)
- func (o *UpdatePresetParams) SetContext(ctx context.Context)
- func (o *UpdatePresetParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePresetParams) SetProviderName(providerName string)
- func (o *UpdatePresetParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePresetParams) WithBody(body *models.Preset) *UpdatePresetParams
- func (o *UpdatePresetParams) WithContext(ctx context.Context) *UpdatePresetParams
- func (o *UpdatePresetParams) WithHTTPClient(client *http.Client) *UpdatePresetParams
- func (o *UpdatePresetParams) WithProviderName(providerName string) *UpdatePresetParams
- func (o *UpdatePresetParams) WithTimeout(timeout time.Duration) *UpdatePresetParams
- func (o *UpdatePresetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePresetReader
- type UpdatePresetStatusBody
- type UpdatePresetStatusDefault
- type UpdatePresetStatusForbidden
- type UpdatePresetStatusOK
- type UpdatePresetStatusParams
- func NewUpdatePresetStatusParams() *UpdatePresetStatusParams
- func NewUpdatePresetStatusParamsWithContext(ctx context.Context) *UpdatePresetStatusParams
- func NewUpdatePresetStatusParamsWithHTTPClient(client *http.Client) *UpdatePresetStatusParams
- func NewUpdatePresetStatusParamsWithTimeout(timeout time.Duration) *UpdatePresetStatusParams
- func (o *UpdatePresetStatusParams) SetBody(body UpdatePresetStatusBody)
- func (o *UpdatePresetStatusParams) SetContext(ctx context.Context)
- func (o *UpdatePresetStatusParams) SetHTTPClient(client *http.Client)
- func (o *UpdatePresetStatusParams) SetPresetName(presetName string)
- func (o *UpdatePresetStatusParams) SetProvider(provider *string)
- func (o *UpdatePresetStatusParams) SetTimeout(timeout time.Duration)
- func (o *UpdatePresetStatusParams) WithBody(body UpdatePresetStatusBody) *UpdatePresetStatusParams
- func (o *UpdatePresetStatusParams) WithContext(ctx context.Context) *UpdatePresetStatusParams
- func (o *UpdatePresetStatusParams) WithHTTPClient(client *http.Client) *UpdatePresetStatusParams
- func (o *UpdatePresetStatusParams) WithPresetName(presetName string) *UpdatePresetStatusParams
- func (o *UpdatePresetStatusParams) WithProvider(provider *string) *UpdatePresetStatusParams
- func (o *UpdatePresetStatusParams) WithTimeout(timeout time.Duration) *UpdatePresetStatusParams
- func (o *UpdatePresetStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdatePresetStatusReader
- type UpdatePresetStatusUnauthorized
- type UpdatePresetUnauthorized
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 preset API
func (*Client) CreatePreset ¶
func (a *Client) CreatePreset(params *CreatePresetParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePresetOK, error)
CreatePreset Creates the preset
func (*Client) ListPresets ¶
func (a *Client) ListPresets(params *ListPresetsParams, authInfo runtime.ClientAuthInfoWriter) (*ListPresetsOK, error)
ListPresets Lists presets
func (*Client) ListProviderPresets ¶
func (a *Client) ListProviderPresets(params *ListProviderPresetsParams, authInfo runtime.ClientAuthInfoWriter) (*ListProviderPresetsOK, error)
ListProviderPresets Lists presets for the provider
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdatePreset ¶
func (a *Client) UpdatePreset(params *UpdatePresetParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePresetOK, error)
UpdatePreset Updates provider preset
func (*Client) UpdatePresetStatus ¶
func (a *Client) UpdatePresetStatus(params *UpdatePresetStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePresetStatusOK, error)
UpdatePresetStatus updates the status of a preset it can enable or disable it so that it won t be listed by the list endpoints
type ClientService ¶
type ClientService interface { CreatePreset(params *CreatePresetParams, authInfo runtime.ClientAuthInfoWriter) (*CreatePresetOK, error) ListPresets(params *ListPresetsParams, authInfo runtime.ClientAuthInfoWriter) (*ListPresetsOK, error) ListProviderPresets(params *ListProviderPresetsParams, authInfo runtime.ClientAuthInfoWriter) (*ListProviderPresetsOK, error) UpdatePreset(params *UpdatePresetParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePresetOK, error) UpdatePresetStatus(params *UpdatePresetStatusParams, authInfo runtime.ClientAuthInfoWriter) (*UpdatePresetStatusOK, 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 preset API client.
type CreatePresetDefault ¶
type CreatePresetDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
CreatePresetDefault handles this case with default header values.
errorResponse
func NewCreatePresetDefault ¶
func NewCreatePresetDefault(code int) *CreatePresetDefault
NewCreatePresetDefault creates a CreatePresetDefault with default headers values
func (*CreatePresetDefault) Code ¶
func (o *CreatePresetDefault) Code() int
Code gets the status code for the create preset default response
func (*CreatePresetDefault) Error ¶
func (o *CreatePresetDefault) Error() string
func (*CreatePresetDefault) GetPayload ¶
func (o *CreatePresetDefault) GetPayload() *models.ErrorResponse
type CreatePresetForbidden ¶
type CreatePresetForbidden struct { }
CreatePresetForbidden handles this case with default header values.
EmptyResponse is a empty response
func NewCreatePresetForbidden ¶
func NewCreatePresetForbidden() *CreatePresetForbidden
NewCreatePresetForbidden creates a CreatePresetForbidden with default headers values
func (*CreatePresetForbidden) Error ¶
func (o *CreatePresetForbidden) Error() string
type CreatePresetOK ¶
CreatePresetOK handles this case with default header values.
Preset
func NewCreatePresetOK ¶
func NewCreatePresetOK() *CreatePresetOK
NewCreatePresetOK creates a CreatePresetOK with default headers values
func (*CreatePresetOK) Error ¶
func (o *CreatePresetOK) Error() string
func (*CreatePresetOK) GetPayload ¶
func (o *CreatePresetOK) GetPayload() *models.Preset
type CreatePresetParams ¶
type CreatePresetParams struct { /*Body*/ Body *models.Preset /*ProviderName*/ ProviderName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreatePresetParams contains all the parameters to send to the API endpoint for the create preset operation typically these are written to a http.Request
func NewCreatePresetParams ¶
func NewCreatePresetParams() *CreatePresetParams
NewCreatePresetParams creates a new CreatePresetParams object with the default values initialized.
func NewCreatePresetParamsWithContext ¶
func NewCreatePresetParamsWithContext(ctx context.Context) *CreatePresetParams
NewCreatePresetParamsWithContext creates a new CreatePresetParams object with the default values initialized, and the ability to set a context for a request
func NewCreatePresetParamsWithHTTPClient ¶
func NewCreatePresetParamsWithHTTPClient(client *http.Client) *CreatePresetParams
NewCreatePresetParamsWithHTTPClient creates a new CreatePresetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreatePresetParamsWithTimeout ¶
func NewCreatePresetParamsWithTimeout(timeout time.Duration) *CreatePresetParams
NewCreatePresetParamsWithTimeout creates a new CreatePresetParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreatePresetParams) SetBody ¶
func (o *CreatePresetParams) SetBody(body *models.Preset)
SetBody adds the body to the create preset params
func (*CreatePresetParams) SetContext ¶
func (o *CreatePresetParams) SetContext(ctx context.Context)
SetContext adds the context to the create preset params
func (*CreatePresetParams) SetHTTPClient ¶
func (o *CreatePresetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create preset params
func (*CreatePresetParams) SetProviderName ¶
func (o *CreatePresetParams) SetProviderName(providerName string)
SetProviderName adds the providerName to the create preset params
func (*CreatePresetParams) SetTimeout ¶
func (o *CreatePresetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create preset params
func (*CreatePresetParams) WithBody ¶
func (o *CreatePresetParams) WithBody(body *models.Preset) *CreatePresetParams
WithBody adds the body to the create preset params
func (*CreatePresetParams) WithContext ¶
func (o *CreatePresetParams) WithContext(ctx context.Context) *CreatePresetParams
WithContext adds the context to the create preset params
func (*CreatePresetParams) WithHTTPClient ¶
func (o *CreatePresetParams) WithHTTPClient(client *http.Client) *CreatePresetParams
WithHTTPClient adds the HTTPClient to the create preset params
func (*CreatePresetParams) WithProviderName ¶
func (o *CreatePresetParams) WithProviderName(providerName string) *CreatePresetParams
WithProviderName adds the providerName to the create preset params
func (*CreatePresetParams) WithTimeout ¶
func (o *CreatePresetParams) WithTimeout(timeout time.Duration) *CreatePresetParams
WithTimeout adds the timeout to the create preset params
func (*CreatePresetParams) WriteToRequest ¶
func (o *CreatePresetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreatePresetReader ¶
type CreatePresetReader struct {
// contains filtered or unexported fields
}
CreatePresetReader is a Reader for the CreatePreset structure.
func (*CreatePresetReader) ReadResponse ¶
func (o *CreatePresetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreatePresetUnauthorized ¶
type CreatePresetUnauthorized struct { }
CreatePresetUnauthorized handles this case with default header values.
EmptyResponse is a empty response
func NewCreatePresetUnauthorized ¶
func NewCreatePresetUnauthorized() *CreatePresetUnauthorized
NewCreatePresetUnauthorized creates a CreatePresetUnauthorized with default headers values
func (*CreatePresetUnauthorized) Error ¶
func (o *CreatePresetUnauthorized) Error() string
type ListPresetsDefault ¶
type ListPresetsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListPresetsDefault handles this case with default header values.
errorResponse
func NewListPresetsDefault ¶
func NewListPresetsDefault(code int) *ListPresetsDefault
NewListPresetsDefault creates a ListPresetsDefault with default headers values
func (*ListPresetsDefault) Code ¶
func (o *ListPresetsDefault) Code() int
Code gets the status code for the list presets default response
func (*ListPresetsDefault) Error ¶
func (o *ListPresetsDefault) Error() string
func (*ListPresetsDefault) GetPayload ¶
func (o *ListPresetsDefault) GetPayload() *models.ErrorResponse
type ListPresetsForbidden ¶
type ListPresetsForbidden struct { }
ListPresetsForbidden handles this case with default header values.
EmptyResponse is a empty response
func NewListPresetsForbidden ¶
func NewListPresetsForbidden() *ListPresetsForbidden
NewListPresetsForbidden creates a ListPresetsForbidden with default headers values
func (*ListPresetsForbidden) Error ¶
func (o *ListPresetsForbidden) Error() string
type ListPresetsOK ¶
type ListPresetsOK struct {
Payload *models.PresetList
}
ListPresetsOK handles this case with default header values.
PresetList
func NewListPresetsOK ¶
func NewListPresetsOK() *ListPresetsOK
NewListPresetsOK creates a ListPresetsOK with default headers values
func (*ListPresetsOK) Error ¶
func (o *ListPresetsOK) Error() string
func (*ListPresetsOK) GetPayload ¶
func (o *ListPresetsOK) GetPayload() *models.PresetList
type ListPresetsParams ¶
type ListPresetsParams struct { /*Disabled*/ Disabled *bool Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListPresetsParams contains all the parameters to send to the API endpoint for the list presets operation typically these are written to a http.Request
func NewListPresetsParams ¶
func NewListPresetsParams() *ListPresetsParams
NewListPresetsParams creates a new ListPresetsParams object with the default values initialized.
func NewListPresetsParamsWithContext ¶
func NewListPresetsParamsWithContext(ctx context.Context) *ListPresetsParams
NewListPresetsParamsWithContext creates a new ListPresetsParams object with the default values initialized, and the ability to set a context for a request
func NewListPresetsParamsWithHTTPClient ¶
func NewListPresetsParamsWithHTTPClient(client *http.Client) *ListPresetsParams
NewListPresetsParamsWithHTTPClient creates a new ListPresetsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListPresetsParamsWithTimeout ¶
func NewListPresetsParamsWithTimeout(timeout time.Duration) *ListPresetsParams
NewListPresetsParamsWithTimeout creates a new ListPresetsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListPresetsParams) SetContext ¶
func (o *ListPresetsParams) SetContext(ctx context.Context)
SetContext adds the context to the list presets params
func (*ListPresetsParams) SetDisabled ¶
func (o *ListPresetsParams) SetDisabled(disabled *bool)
SetDisabled adds the disabled to the list presets params
func (*ListPresetsParams) SetHTTPClient ¶
func (o *ListPresetsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list presets params
func (*ListPresetsParams) SetTimeout ¶
func (o *ListPresetsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list presets params
func (*ListPresetsParams) WithContext ¶
func (o *ListPresetsParams) WithContext(ctx context.Context) *ListPresetsParams
WithContext adds the context to the list presets params
func (*ListPresetsParams) WithDisabled ¶
func (o *ListPresetsParams) WithDisabled(disabled *bool) *ListPresetsParams
WithDisabled adds the disabled to the list presets params
func (*ListPresetsParams) WithHTTPClient ¶
func (o *ListPresetsParams) WithHTTPClient(client *http.Client) *ListPresetsParams
WithHTTPClient adds the HTTPClient to the list presets params
func (*ListPresetsParams) WithTimeout ¶
func (o *ListPresetsParams) WithTimeout(timeout time.Duration) *ListPresetsParams
WithTimeout adds the timeout to the list presets params
func (*ListPresetsParams) WriteToRequest ¶
func (o *ListPresetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListPresetsReader ¶
type ListPresetsReader struct {
// contains filtered or unexported fields
}
ListPresetsReader is a Reader for the ListPresets structure.
func (*ListPresetsReader) ReadResponse ¶
func (o *ListPresetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListPresetsUnauthorized ¶
type ListPresetsUnauthorized struct { }
ListPresetsUnauthorized handles this case with default header values.
EmptyResponse is a empty response
func NewListPresetsUnauthorized ¶
func NewListPresetsUnauthorized() *ListPresetsUnauthorized
NewListPresetsUnauthorized creates a ListPresetsUnauthorized with default headers values
func (*ListPresetsUnauthorized) Error ¶
func (o *ListPresetsUnauthorized) Error() string
type ListProviderPresetsDefault ¶
type ListProviderPresetsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ListProviderPresetsDefault handles this case with default header values.
errorResponse
func NewListProviderPresetsDefault ¶
func NewListProviderPresetsDefault(code int) *ListProviderPresetsDefault
NewListProviderPresetsDefault creates a ListProviderPresetsDefault with default headers values
func (*ListProviderPresetsDefault) Code ¶
func (o *ListProviderPresetsDefault) Code() int
Code gets the status code for the list provider presets default response
func (*ListProviderPresetsDefault) Error ¶
func (o *ListProviderPresetsDefault) Error() string
func (*ListProviderPresetsDefault) GetPayload ¶
func (o *ListProviderPresetsDefault) GetPayload() *models.ErrorResponse
type ListProviderPresetsForbidden ¶
type ListProviderPresetsForbidden struct { }
ListProviderPresetsForbidden handles this case with default header values.
EmptyResponse is a empty response
func NewListProviderPresetsForbidden ¶
func NewListProviderPresetsForbidden() *ListProviderPresetsForbidden
NewListProviderPresetsForbidden creates a ListProviderPresetsForbidden with default headers values
func (*ListProviderPresetsForbidden) Error ¶
func (o *ListProviderPresetsForbidden) Error() string
type ListProviderPresetsOK ¶
type ListProviderPresetsOK struct {
Payload *models.PresetList
}
ListProviderPresetsOK handles this case with default header values.
PresetList
func NewListProviderPresetsOK ¶
func NewListProviderPresetsOK() *ListProviderPresetsOK
NewListProviderPresetsOK creates a ListProviderPresetsOK with default headers values
func (*ListProviderPresetsOK) Error ¶
func (o *ListProviderPresetsOK) Error() string
func (*ListProviderPresetsOK) GetPayload ¶
func (o *ListProviderPresetsOK) GetPayload() *models.PresetList
type ListProviderPresetsParams ¶
type ListProviderPresetsParams struct { /*Datacenter*/ Datacenter *string /*Disabled*/ Disabled *bool /*ProviderName*/ ProviderName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListProviderPresetsParams contains all the parameters to send to the API endpoint for the list provider presets operation typically these are written to a http.Request
func NewListProviderPresetsParams ¶
func NewListProviderPresetsParams() *ListProviderPresetsParams
NewListProviderPresetsParams creates a new ListProviderPresetsParams object with the default values initialized.
func NewListProviderPresetsParamsWithContext ¶
func NewListProviderPresetsParamsWithContext(ctx context.Context) *ListProviderPresetsParams
NewListProviderPresetsParamsWithContext creates a new ListProviderPresetsParams object with the default values initialized, and the ability to set a context for a request
func NewListProviderPresetsParamsWithHTTPClient ¶
func NewListProviderPresetsParamsWithHTTPClient(client *http.Client) *ListProviderPresetsParams
NewListProviderPresetsParamsWithHTTPClient creates a new ListProviderPresetsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListProviderPresetsParamsWithTimeout ¶
func NewListProviderPresetsParamsWithTimeout(timeout time.Duration) *ListProviderPresetsParams
NewListProviderPresetsParamsWithTimeout creates a new ListProviderPresetsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListProviderPresetsParams) SetContext ¶
func (o *ListProviderPresetsParams) SetContext(ctx context.Context)
SetContext adds the context to the list provider presets params
func (*ListProviderPresetsParams) SetDatacenter ¶
func (o *ListProviderPresetsParams) SetDatacenter(datacenter *string)
SetDatacenter adds the datacenter to the list provider presets params
func (*ListProviderPresetsParams) SetDisabled ¶
func (o *ListProviderPresetsParams) SetDisabled(disabled *bool)
SetDisabled adds the disabled to the list provider presets params
func (*ListProviderPresetsParams) SetHTTPClient ¶
func (o *ListProviderPresetsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list provider presets params
func (*ListProviderPresetsParams) SetProviderName ¶
func (o *ListProviderPresetsParams) SetProviderName(providerName string)
SetProviderName adds the providerName to the list provider presets params
func (*ListProviderPresetsParams) SetTimeout ¶
func (o *ListProviderPresetsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list provider presets params
func (*ListProviderPresetsParams) WithContext ¶
func (o *ListProviderPresetsParams) WithContext(ctx context.Context) *ListProviderPresetsParams
WithContext adds the context to the list provider presets params
func (*ListProviderPresetsParams) WithDatacenter ¶
func (o *ListProviderPresetsParams) WithDatacenter(datacenter *string) *ListProviderPresetsParams
WithDatacenter adds the datacenter to the list provider presets params
func (*ListProviderPresetsParams) WithDisabled ¶
func (o *ListProviderPresetsParams) WithDisabled(disabled *bool) *ListProviderPresetsParams
WithDisabled adds the disabled to the list provider presets params
func (*ListProviderPresetsParams) WithHTTPClient ¶
func (o *ListProviderPresetsParams) WithHTTPClient(client *http.Client) *ListProviderPresetsParams
WithHTTPClient adds the HTTPClient to the list provider presets params
func (*ListProviderPresetsParams) WithProviderName ¶
func (o *ListProviderPresetsParams) WithProviderName(providerName string) *ListProviderPresetsParams
WithProviderName adds the providerName to the list provider presets params
func (*ListProviderPresetsParams) WithTimeout ¶
func (o *ListProviderPresetsParams) WithTimeout(timeout time.Duration) *ListProviderPresetsParams
WithTimeout adds the timeout to the list provider presets params
func (*ListProviderPresetsParams) WriteToRequest ¶
func (o *ListProviderPresetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListProviderPresetsReader ¶
type ListProviderPresetsReader struct {
// contains filtered or unexported fields
}
ListProviderPresetsReader is a Reader for the ListProviderPresets structure.
func (*ListProviderPresetsReader) ReadResponse ¶
func (o *ListProviderPresetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListProviderPresetsUnauthorized ¶
type ListProviderPresetsUnauthorized struct { }
ListProviderPresetsUnauthorized handles this case with default header values.
EmptyResponse is a empty response
func NewListProviderPresetsUnauthorized ¶
func NewListProviderPresetsUnauthorized() *ListProviderPresetsUnauthorized
NewListProviderPresetsUnauthorized creates a ListProviderPresetsUnauthorized with default headers values
func (*ListProviderPresetsUnauthorized) Error ¶
func (o *ListProviderPresetsUnauthorized) Error() string
type UpdatePresetDefault ¶
type UpdatePresetDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
UpdatePresetDefault handles this case with default header values.
errorResponse
func NewUpdatePresetDefault ¶
func NewUpdatePresetDefault(code int) *UpdatePresetDefault
NewUpdatePresetDefault creates a UpdatePresetDefault with default headers values
func (*UpdatePresetDefault) Code ¶
func (o *UpdatePresetDefault) Code() int
Code gets the status code for the update preset default response
func (*UpdatePresetDefault) Error ¶
func (o *UpdatePresetDefault) Error() string
func (*UpdatePresetDefault) GetPayload ¶
func (o *UpdatePresetDefault) GetPayload() *models.ErrorResponse
type UpdatePresetForbidden ¶
type UpdatePresetForbidden struct { }
UpdatePresetForbidden handles this case with default header values.
EmptyResponse is a empty response
func NewUpdatePresetForbidden ¶
func NewUpdatePresetForbidden() *UpdatePresetForbidden
NewUpdatePresetForbidden creates a UpdatePresetForbidden with default headers values
func (*UpdatePresetForbidden) Error ¶
func (o *UpdatePresetForbidden) Error() string
type UpdatePresetOK ¶
UpdatePresetOK handles this case with default header values.
Preset
func NewUpdatePresetOK ¶
func NewUpdatePresetOK() *UpdatePresetOK
NewUpdatePresetOK creates a UpdatePresetOK with default headers values
func (*UpdatePresetOK) Error ¶
func (o *UpdatePresetOK) Error() string
func (*UpdatePresetOK) GetPayload ¶
func (o *UpdatePresetOK) GetPayload() *models.Preset
type UpdatePresetParams ¶
type UpdatePresetParams struct { /*Body*/ Body *models.Preset /*ProviderName*/ ProviderName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdatePresetParams contains all the parameters to send to the API endpoint for the update preset operation typically these are written to a http.Request
func NewUpdatePresetParams ¶
func NewUpdatePresetParams() *UpdatePresetParams
NewUpdatePresetParams creates a new UpdatePresetParams object with the default values initialized.
func NewUpdatePresetParamsWithContext ¶
func NewUpdatePresetParamsWithContext(ctx context.Context) *UpdatePresetParams
NewUpdatePresetParamsWithContext creates a new UpdatePresetParams object with the default values initialized, and the ability to set a context for a request
func NewUpdatePresetParamsWithHTTPClient ¶
func NewUpdatePresetParamsWithHTTPClient(client *http.Client) *UpdatePresetParams
NewUpdatePresetParamsWithHTTPClient creates a new UpdatePresetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdatePresetParamsWithTimeout ¶
func NewUpdatePresetParamsWithTimeout(timeout time.Duration) *UpdatePresetParams
NewUpdatePresetParamsWithTimeout creates a new UpdatePresetParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdatePresetParams) SetBody ¶
func (o *UpdatePresetParams) SetBody(body *models.Preset)
SetBody adds the body to the update preset params
func (*UpdatePresetParams) SetContext ¶
func (o *UpdatePresetParams) SetContext(ctx context.Context)
SetContext adds the context to the update preset params
func (*UpdatePresetParams) SetHTTPClient ¶
func (o *UpdatePresetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update preset params
func (*UpdatePresetParams) SetProviderName ¶
func (o *UpdatePresetParams) SetProviderName(providerName string)
SetProviderName adds the providerName to the update preset params
func (*UpdatePresetParams) SetTimeout ¶
func (o *UpdatePresetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update preset params
func (*UpdatePresetParams) WithBody ¶
func (o *UpdatePresetParams) WithBody(body *models.Preset) *UpdatePresetParams
WithBody adds the body to the update preset params
func (*UpdatePresetParams) WithContext ¶
func (o *UpdatePresetParams) WithContext(ctx context.Context) *UpdatePresetParams
WithContext adds the context to the update preset params
func (*UpdatePresetParams) WithHTTPClient ¶
func (o *UpdatePresetParams) WithHTTPClient(client *http.Client) *UpdatePresetParams
WithHTTPClient adds the HTTPClient to the update preset params
func (*UpdatePresetParams) WithProviderName ¶
func (o *UpdatePresetParams) WithProviderName(providerName string) *UpdatePresetParams
WithProviderName adds the providerName to the update preset params
func (*UpdatePresetParams) WithTimeout ¶
func (o *UpdatePresetParams) WithTimeout(timeout time.Duration) *UpdatePresetParams
WithTimeout adds the timeout to the update preset params
func (*UpdatePresetParams) WriteToRequest ¶
func (o *UpdatePresetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdatePresetReader ¶
type UpdatePresetReader struct {
// contains filtered or unexported fields
}
UpdatePresetReader is a Reader for the UpdatePreset structure.
func (*UpdatePresetReader) ReadResponse ¶
func (o *UpdatePresetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePresetStatusBody ¶
type UpdatePresetStatusBody struct { // enabled Enabled bool `json:"enabled,omitempty"` }
UpdatePresetStatusBody update preset status body swagger:model UpdatePresetStatusBody
func (*UpdatePresetStatusBody) MarshalBinary ¶
func (o *UpdatePresetStatusBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*UpdatePresetStatusBody) UnmarshalBinary ¶
func (o *UpdatePresetStatusBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type UpdatePresetStatusDefault ¶
type UpdatePresetStatusDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
UpdatePresetStatusDefault handles this case with default header values.
errorResponse
func NewUpdatePresetStatusDefault ¶
func NewUpdatePresetStatusDefault(code int) *UpdatePresetStatusDefault
NewUpdatePresetStatusDefault creates a UpdatePresetStatusDefault with default headers values
func (*UpdatePresetStatusDefault) Code ¶
func (o *UpdatePresetStatusDefault) Code() int
Code gets the status code for the update preset status default response
func (*UpdatePresetStatusDefault) Error ¶
func (o *UpdatePresetStatusDefault) Error() string
func (*UpdatePresetStatusDefault) GetPayload ¶
func (o *UpdatePresetStatusDefault) GetPayload() *models.ErrorResponse
type UpdatePresetStatusForbidden ¶
type UpdatePresetStatusForbidden struct { }
UpdatePresetStatusForbidden handles this case with default header values.
EmptyResponse is a empty response
func NewUpdatePresetStatusForbidden ¶
func NewUpdatePresetStatusForbidden() *UpdatePresetStatusForbidden
NewUpdatePresetStatusForbidden creates a UpdatePresetStatusForbidden with default headers values
func (*UpdatePresetStatusForbidden) Error ¶
func (o *UpdatePresetStatusForbidden) Error() string
type UpdatePresetStatusOK ¶
type UpdatePresetStatusOK struct { }
UpdatePresetStatusOK handles this case with default header values.
EmptyResponse is a empty response
func NewUpdatePresetStatusOK ¶
func NewUpdatePresetStatusOK() *UpdatePresetStatusOK
NewUpdatePresetStatusOK creates a UpdatePresetStatusOK with default headers values
func (*UpdatePresetStatusOK) Error ¶
func (o *UpdatePresetStatusOK) Error() string
type UpdatePresetStatusParams ¶
type UpdatePresetStatusParams struct { /*Body*/ Body UpdatePresetStatusBody /*PresetName*/ PresetName string /*Provider*/ Provider *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdatePresetStatusParams contains all the parameters to send to the API endpoint for the update preset status operation typically these are written to a http.Request
func NewUpdatePresetStatusParams ¶
func NewUpdatePresetStatusParams() *UpdatePresetStatusParams
NewUpdatePresetStatusParams creates a new UpdatePresetStatusParams object with the default values initialized.
func NewUpdatePresetStatusParamsWithContext ¶
func NewUpdatePresetStatusParamsWithContext(ctx context.Context) *UpdatePresetStatusParams
NewUpdatePresetStatusParamsWithContext creates a new UpdatePresetStatusParams object with the default values initialized, and the ability to set a context for a request
func NewUpdatePresetStatusParamsWithHTTPClient ¶
func NewUpdatePresetStatusParamsWithHTTPClient(client *http.Client) *UpdatePresetStatusParams
NewUpdatePresetStatusParamsWithHTTPClient creates a new UpdatePresetStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdatePresetStatusParamsWithTimeout ¶
func NewUpdatePresetStatusParamsWithTimeout(timeout time.Duration) *UpdatePresetStatusParams
NewUpdatePresetStatusParamsWithTimeout creates a new UpdatePresetStatusParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdatePresetStatusParams) SetBody ¶
func (o *UpdatePresetStatusParams) SetBody(body UpdatePresetStatusBody)
SetBody adds the body to the update preset status params
func (*UpdatePresetStatusParams) SetContext ¶
func (o *UpdatePresetStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the update preset status params
func (*UpdatePresetStatusParams) SetHTTPClient ¶
func (o *UpdatePresetStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update preset status params
func (*UpdatePresetStatusParams) SetPresetName ¶
func (o *UpdatePresetStatusParams) SetPresetName(presetName string)
SetPresetName adds the presetName to the update preset status params
func (*UpdatePresetStatusParams) SetProvider ¶
func (o *UpdatePresetStatusParams) SetProvider(provider *string)
SetProvider adds the provider to the update preset status params
func (*UpdatePresetStatusParams) SetTimeout ¶
func (o *UpdatePresetStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update preset status params
func (*UpdatePresetStatusParams) WithBody ¶
func (o *UpdatePresetStatusParams) WithBody(body UpdatePresetStatusBody) *UpdatePresetStatusParams
WithBody adds the body to the update preset status params
func (*UpdatePresetStatusParams) WithContext ¶
func (o *UpdatePresetStatusParams) WithContext(ctx context.Context) *UpdatePresetStatusParams
WithContext adds the context to the update preset status params
func (*UpdatePresetStatusParams) WithHTTPClient ¶
func (o *UpdatePresetStatusParams) WithHTTPClient(client *http.Client) *UpdatePresetStatusParams
WithHTTPClient adds the HTTPClient to the update preset status params
func (*UpdatePresetStatusParams) WithPresetName ¶
func (o *UpdatePresetStatusParams) WithPresetName(presetName string) *UpdatePresetStatusParams
WithPresetName adds the presetName to the update preset status params
func (*UpdatePresetStatusParams) WithProvider ¶
func (o *UpdatePresetStatusParams) WithProvider(provider *string) *UpdatePresetStatusParams
WithProvider adds the provider to the update preset status params
func (*UpdatePresetStatusParams) WithTimeout ¶
func (o *UpdatePresetStatusParams) WithTimeout(timeout time.Duration) *UpdatePresetStatusParams
WithTimeout adds the timeout to the update preset status params
func (*UpdatePresetStatusParams) WriteToRequest ¶
func (o *UpdatePresetStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdatePresetStatusReader ¶
type UpdatePresetStatusReader struct {
// contains filtered or unexported fields
}
UpdatePresetStatusReader is a Reader for the UpdatePresetStatus structure.
func (*UpdatePresetStatusReader) ReadResponse ¶
func (o *UpdatePresetStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdatePresetStatusUnauthorized ¶
type UpdatePresetStatusUnauthorized struct { }
UpdatePresetStatusUnauthorized handles this case with default header values.
EmptyResponse is a empty response
func NewUpdatePresetStatusUnauthorized ¶
func NewUpdatePresetStatusUnauthorized() *UpdatePresetStatusUnauthorized
NewUpdatePresetStatusUnauthorized creates a UpdatePresetStatusUnauthorized with default headers values
func (*UpdatePresetStatusUnauthorized) Error ¶
func (o *UpdatePresetStatusUnauthorized) Error() string
type UpdatePresetUnauthorized ¶
type UpdatePresetUnauthorized struct { }
UpdatePresetUnauthorized handles this case with default header values.
EmptyResponse is a empty response
func NewUpdatePresetUnauthorized ¶
func NewUpdatePresetUnauthorized() *UpdatePresetUnauthorized
NewUpdatePresetUnauthorized creates a UpdatePresetUnauthorized with default headers values
func (*UpdatePresetUnauthorized) Error ¶
func (o *UpdatePresetUnauthorized) Error() string
Source Files
¶
- create_preset_parameters.go
- create_preset_responses.go
- list_presets_parameters.go
- list_presets_responses.go
- list_provider_presets_parameters.go
- list_provider_presets_responses.go
- preset_client.go
- update_preset_parameters.go
- update_preset_responses.go
- update_preset_status_parameters.go
- update_preset_status_responses.go