Documentation ¶
Index ¶
- type Client
- func (a *Client) Create(params *CreateParams, opts ...ClientOption) (*CreateOK, error)
- func (a *Client) Delete(params *DeleteParams, opts ...ClientOption) (*DeleteOK, error)
- func (a *Client) Get(params *GetParams, opts ...ClientOption) (*GetOK, error)
- func (a *Client) List(params *ListParams, opts ...ClientOption) (*ListOK, error)
- func (a *Client) Modify(params *ModifyParams, opts ...ClientOption) (*ModifyOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) Start(params *StartParams, opts ...ClientOption) (*StartOK, error)
- func (a *Client) Stop(params *StopParams, opts ...ClientOption) (*StopOK, error)
- type ClientOption
- type ClientService
- type CreateBadRequest
- type CreateBadRequestBody
- type CreateForbidden
- type CreateForbiddenBody
- type CreateInternalServerError
- type CreateNotFound
- type CreateNotFoundBody
- type CreateOK
- type CreateParams
- func (o *CreateParams) SetConfig(config *models.InstanceConfig)
- func (o *CreateParams) SetContext(ctx context.Context)
- func (o *CreateParams) SetDefaults()
- func (o *CreateParams) SetHTTPClient(client *http.Client)
- func (o *CreateParams) SetTimeout(timeout time.Duration)
- func (o *CreateParams) WithConfig(config *models.InstanceConfig) *CreateParams
- func (o *CreateParams) WithContext(ctx context.Context) *CreateParams
- func (o *CreateParams) WithDefaults() *CreateParams
- func (o *CreateParams) WithHTTPClient(client *http.Client) *CreateParams
- func (o *CreateParams) WithTimeout(timeout time.Duration) *CreateParams
- func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateReader
- type CreateUnauthorized
- type DeleteBadRequest
- type DeleteBadRequestBody
- type DeleteForbidden
- type DeleteForbiddenBody
- type DeleteInternalServerError
- type DeleteNotFound
- type DeleteNotFoundBody
- type DeleteOK
- type DeleteParams
- func (o *DeleteParams) SetContext(ctx context.Context)
- func (o *DeleteParams) SetDefaults()
- func (o *DeleteParams) SetHTTPClient(client *http.Client)
- func (o *DeleteParams) SetName(name string)
- func (o *DeleteParams) SetTimeout(timeout time.Duration)
- func (o *DeleteParams) WithContext(ctx context.Context) *DeleteParams
- func (o *DeleteParams) WithDefaults() *DeleteParams
- func (o *DeleteParams) WithHTTPClient(client *http.Client) *DeleteParams
- func (o *DeleteParams) WithName(name string) *DeleteParams
- func (o *DeleteParams) WithTimeout(timeout time.Duration) *DeleteParams
- func (o *DeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteReader
- type DeleteUnauthorized
- type GetBadRequest
- type GetBadRequestBody
- type GetForbidden
- type GetForbiddenBody
- type GetInternalServerError
- type GetNotFound
- type GetNotFoundBody
- type GetOK
- type GetParams
- func (o *GetParams) SetContext(ctx context.Context)
- func (o *GetParams) SetDefaults()
- func (o *GetParams) SetHTTPClient(client *http.Client)
- func (o *GetParams) SetName(name string)
- func (o *GetParams) SetTimeout(timeout time.Duration)
- func (o *GetParams) WithContext(ctx context.Context) *GetParams
- func (o *GetParams) WithDefaults() *GetParams
- func (o *GetParams) WithHTTPClient(client *http.Client) *GetParams
- func (o *GetParams) WithName(name string) *GetParams
- func (o *GetParams) WithTimeout(timeout time.Duration) *GetParams
- func (o *GetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetReader
- type GetUnauthorized
- type ListBadRequest
- type ListBadRequestBody
- type ListForbidden
- type ListForbiddenBody
- type ListInternalServerError
- type ListNotFound
- type ListNotFoundBody
- type ListOK
- type ListParams
- func (o *ListParams) SetContext(ctx context.Context)
- func (o *ListParams) SetDefaults()
- func (o *ListParams) SetHTTPClient(client *http.Client)
- func (o *ListParams) SetName(name *string)
- func (o *ListParams) SetTimeout(timeout time.Duration)
- func (o *ListParams) WithContext(ctx context.Context) *ListParams
- func (o *ListParams) WithDefaults() *ListParams
- func (o *ListParams) WithHTTPClient(client *http.Client) *ListParams
- func (o *ListParams) WithName(name *string) *ListParams
- func (o *ListParams) WithTimeout(timeout time.Duration) *ListParams
- func (o *ListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListReader
- type ListUnauthorized
- type ModifyBadRequest
- type ModifyBadRequestBody
- type ModifyForbidden
- type ModifyForbiddenBody
- type ModifyInternalServerError
- type ModifyNotFound
- type ModifyNotFoundBody
- type ModifyOK
- type ModifyParams
- func (o *ModifyParams) SetConfig(config *models.InstanceConfig)
- func (o *ModifyParams) SetContext(ctx context.Context)
- func (o *ModifyParams) SetDefaults()
- func (o *ModifyParams) SetHTTPClient(client *http.Client)
- func (o *ModifyParams) SetTimeout(timeout time.Duration)
- func (o *ModifyParams) WithConfig(config *models.InstanceConfig) *ModifyParams
- func (o *ModifyParams) WithContext(ctx context.Context) *ModifyParams
- func (o *ModifyParams) WithDefaults() *ModifyParams
- func (o *ModifyParams) WithHTTPClient(client *http.Client) *ModifyParams
- func (o *ModifyParams) WithTimeout(timeout time.Duration) *ModifyParams
- func (o *ModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ModifyReader
- type ModifyUnauthorized
- type StartBadRequest
- type StartBadRequestBody
- type StartForbidden
- type StartForbiddenBody
- type StartInternalServerError
- type StartNotFound
- type StartNotFoundBody
- type StartOK
- type StartParams
- func (o *StartParams) SetContext(ctx context.Context)
- func (o *StartParams) SetDefaults()
- func (o *StartParams) SetHTTPClient(client *http.Client)
- func (o *StartParams) SetName(name string)
- func (o *StartParams) SetTimeout(timeout time.Duration)
- func (o *StartParams) WithContext(ctx context.Context) *StartParams
- func (o *StartParams) WithDefaults() *StartParams
- func (o *StartParams) WithHTTPClient(client *http.Client) *StartParams
- func (o *StartParams) WithName(name string) *StartParams
- func (o *StartParams) WithTimeout(timeout time.Duration) *StartParams
- func (o *StartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StartReader
- type StartUnauthorized
- type StopBadRequest
- type StopBadRequestBody
- type StopForbidden
- type StopForbiddenBody
- type StopInternalServerError
- type StopNotFound
- type StopNotFoundBody
- type StopOK
- type StopParams
- func (o *StopParams) SetContext(ctx context.Context)
- func (o *StopParams) SetDefaults()
- func (o *StopParams) SetHTTPClient(client *http.Client)
- func (o *StopParams) SetName(name string)
- func (o *StopParams) SetTimeout(timeout time.Duration)
- func (o *StopParams) WithContext(ctx context.Context) *StopParams
- func (o *StopParams) WithDefaults() *StopParams
- func (o *StopParams) WithHTTPClient(client *http.Client) *StopParams
- func (o *StopParams) WithName(name string) *StopParams
- func (o *StopParams) WithTimeout(timeout time.Duration) *StopParams
- func (o *StopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StopReader
- type StopUnauthorized
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 instance API
func (*Client) Create ¶
func (a *Client) Create(params *CreateParams, opts ...ClientOption) (*CreateOK, error)
Create Create Instance
func (*Client) Delete ¶
func (a *Client) Delete(params *DeleteParams, opts ...ClientOption) (*DeleteOK, error)
Delete Delete Instance
func (*Client) Get ¶
func (a *Client) Get(params *GetParams, opts ...ClientOption) (*GetOK, error)
Get Get Instance
func (*Client) List ¶
func (a *Client) List(params *ListParams, opts ...ClientOption) (*ListOK, error)
List List Instances
func (*Client) Modify ¶
func (a *Client) Modify(params *ModifyParams, opts ...ClientOption) (*ModifyOK, error)
Modify Modify Instance
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) Start ¶
func (a *Client) Start(params *StartParams, opts ...ClientOption) (*StartOK, error)
Start Start instance
func (*Client) Stop ¶
func (a *Client) Stop(params *StopParams, opts ...ClientOption) (*StopOK, error)
Stop Stop Instance
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { Create(params *CreateParams, opts ...ClientOption) (*CreateOK, error) Delete(params *DeleteParams, opts ...ClientOption) (*DeleteOK, error) Get(params *GetParams, opts ...ClientOption) (*GetOK, error) List(params *ListParams, opts ...ClientOption) (*ListOK, error) Modify(params *ModifyParams, opts ...ClientOption) (*ModifyOK, error) Start(params *StartParams, opts ...ClientOption) (*StartOK, error) Stop(params *StopParams, opts ...ClientOption) (*StopOK, 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 instance API client.
type CreateBadRequest ¶
type CreateBadRequest struct {
Payload *CreateBadRequestBody
}
CreateBadRequest describes a response with status code 400, with default header values.
CreateBadRequest create bad request
func NewCreateBadRequest ¶
func NewCreateBadRequest() *CreateBadRequest
NewCreateBadRequest creates a CreateBadRequest with default headers values
func (*CreateBadRequest) Error ¶
func (o *CreateBadRequest) Error() string
func (*CreateBadRequest) GetPayload ¶
func (o *CreateBadRequest) GetPayload() *CreateBadRequestBody
type CreateBadRequestBody ¶
type CreateBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
CreateBadRequestBody create bad request body swagger:model CreateBadRequestBody
func (*CreateBadRequestBody) ContextValidate ¶
ContextValidate validates this create bad request body based on context it is used
func (*CreateBadRequestBody) MarshalBinary ¶
func (o *CreateBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateBadRequestBody) UnmarshalBinary ¶
func (o *CreateBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateForbidden ¶
type CreateForbidden struct {
Payload *CreateForbiddenBody
}
CreateForbidden describes a response with status code 403, with default header values.
CreateForbidden create forbidden
func NewCreateForbidden ¶
func NewCreateForbidden() *CreateForbidden
NewCreateForbidden creates a CreateForbidden with default headers values
func (*CreateForbidden) Error ¶
func (o *CreateForbidden) Error() string
func (*CreateForbidden) GetPayload ¶
func (o *CreateForbidden) GetPayload() *CreateForbiddenBody
type CreateForbiddenBody ¶
type CreateForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
CreateForbiddenBody create forbidden body swagger:model CreateForbiddenBody
func (*CreateForbiddenBody) ContextValidate ¶
ContextValidate validates this create forbidden body based on context it is used
func (*CreateForbiddenBody) MarshalBinary ¶
func (o *CreateForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateForbiddenBody) UnmarshalBinary ¶
func (o *CreateForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateInternalServerError ¶
type CreateInternalServerError struct {
Payload interface{}
}
CreateInternalServerError describes a response with status code 500, with default header values.
CreateInternalServerError create internal server error
func NewCreateInternalServerError ¶
func NewCreateInternalServerError() *CreateInternalServerError
NewCreateInternalServerError creates a CreateInternalServerError with default headers values
func (*CreateInternalServerError) Error ¶
func (o *CreateInternalServerError) Error() string
func (*CreateInternalServerError) GetPayload ¶
func (o *CreateInternalServerError) GetPayload() interface{}
type CreateNotFound ¶
type CreateNotFound struct {
Payload *CreateNotFoundBody
}
CreateNotFound describes a response with status code 404, with default header values.
CreateNotFound create not found
func NewCreateNotFound ¶
func NewCreateNotFound() *CreateNotFound
NewCreateNotFound creates a CreateNotFound with default headers values
func (*CreateNotFound) Error ¶
func (o *CreateNotFound) Error() string
func (*CreateNotFound) GetPayload ¶
func (o *CreateNotFound) GetPayload() *CreateNotFoundBody
type CreateNotFoundBody ¶
type CreateNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
CreateNotFoundBody create not found body swagger:model CreateNotFoundBody
func (*CreateNotFoundBody) ContextValidate ¶
ContextValidate validates this create not found body based on context it is used
func (*CreateNotFoundBody) MarshalBinary ¶
func (o *CreateNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CreateNotFoundBody) UnmarshalBinary ¶
func (o *CreateNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CreateOK ¶
CreateOK describes a response with status code 200, with default header values.
Create Instance succeeded
func NewCreateOK ¶
func NewCreateOK() *CreateOK
NewCreateOK creates a CreateOK with default headers values
func (*CreateOK) GetPayload ¶
type CreateParams ¶
type CreateParams struct { /* Config. Instance config */ Config *models.InstanceConfig Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateParams contains all the parameters to send to the API endpoint
for the create operation. Typically these are written to a http.Request.
func NewCreateParams ¶
func NewCreateParams() *CreateParams
NewCreateParams creates a new CreateParams 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 NewCreateParamsWithContext ¶
func NewCreateParamsWithContext(ctx context.Context) *CreateParams
NewCreateParamsWithContext creates a new CreateParams object with the ability to set a context for a request.
func NewCreateParamsWithHTTPClient ¶
func NewCreateParamsWithHTTPClient(client *http.Client) *CreateParams
NewCreateParamsWithHTTPClient creates a new CreateParams object with the ability to set a custom HTTPClient for a request.
func NewCreateParamsWithTimeout ¶
func NewCreateParamsWithTimeout(timeout time.Duration) *CreateParams
NewCreateParamsWithTimeout creates a new CreateParams object with the ability to set a timeout on a request.
func (*CreateParams) SetConfig ¶
func (o *CreateParams) SetConfig(config *models.InstanceConfig)
SetConfig adds the config to the create params
func (*CreateParams) SetContext ¶
func (o *CreateParams) SetContext(ctx context.Context)
SetContext adds the context to the create params
func (*CreateParams) SetDefaults ¶
func (o *CreateParams) SetDefaults()
SetDefaults hydrates default values in the create params (not the query body).
All values with no default are reset to their zero value.
func (*CreateParams) SetHTTPClient ¶
func (o *CreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create params
func (*CreateParams) SetTimeout ¶
func (o *CreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create params
func (*CreateParams) WithConfig ¶
func (o *CreateParams) WithConfig(config *models.InstanceConfig) *CreateParams
WithConfig adds the config to the create params
func (*CreateParams) WithContext ¶
func (o *CreateParams) WithContext(ctx context.Context) *CreateParams
WithContext adds the context to the create params
func (*CreateParams) WithDefaults ¶
func (o *CreateParams) WithDefaults() *CreateParams
WithDefaults hydrates default values in the create params (not the query body).
All values with no default are reset to their zero value.
func (*CreateParams) WithHTTPClient ¶
func (o *CreateParams) WithHTTPClient(client *http.Client) *CreateParams
WithHTTPClient adds the HTTPClient to the create params
func (*CreateParams) WithTimeout ¶
func (o *CreateParams) WithTimeout(timeout time.Duration) *CreateParams
WithTimeout adds the timeout to the create params
func (*CreateParams) WriteToRequest ¶
func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateReader ¶
type CreateReader struct {
// contains filtered or unexported fields
}
CreateReader is a Reader for the Create structure.
func (*CreateReader) ReadResponse ¶
func (o *CreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateUnauthorized ¶
type CreateUnauthorized struct {
}CreateUnauthorized describes a response with status code 401, with default header values.
CreateUnauthorized create unauthorized
func NewCreateUnauthorized ¶
func NewCreateUnauthorized() *CreateUnauthorized
NewCreateUnauthorized creates a CreateUnauthorized with default headers values
func (*CreateUnauthorized) Error ¶
func (o *CreateUnauthorized) Error() string
func (*CreateUnauthorized) GetPayload ¶
func (o *CreateUnauthorized) GetPayload() interface{}
type DeleteBadRequest ¶
type DeleteBadRequest struct {
Payload *DeleteBadRequestBody
}
DeleteBadRequest describes a response with status code 400, with default header values.
DeleteBadRequest delete bad request
func NewDeleteBadRequest ¶
func NewDeleteBadRequest() *DeleteBadRequest
NewDeleteBadRequest creates a DeleteBadRequest with default headers values
func (*DeleteBadRequest) Error ¶
func (o *DeleteBadRequest) Error() string
func (*DeleteBadRequest) GetPayload ¶
func (o *DeleteBadRequest) GetPayload() *DeleteBadRequestBody
type DeleteBadRequestBody ¶
type DeleteBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
DeleteBadRequestBody delete bad request body swagger:model DeleteBadRequestBody
func (*DeleteBadRequestBody) ContextValidate ¶
ContextValidate validates this delete bad request body based on context it is used
func (*DeleteBadRequestBody) MarshalBinary ¶
func (o *DeleteBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteBadRequestBody) UnmarshalBinary ¶
func (o *DeleteBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteForbidden ¶
type DeleteForbidden struct {
Payload *DeleteForbiddenBody
}
DeleteForbidden describes a response with status code 403, with default header values.
DeleteForbidden delete forbidden
func NewDeleteForbidden ¶
func NewDeleteForbidden() *DeleteForbidden
NewDeleteForbidden creates a DeleteForbidden with default headers values
func (*DeleteForbidden) Error ¶
func (o *DeleteForbidden) Error() string
func (*DeleteForbidden) GetPayload ¶
func (o *DeleteForbidden) GetPayload() *DeleteForbiddenBody
type DeleteForbiddenBody ¶
type DeleteForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
DeleteForbiddenBody delete forbidden body swagger:model DeleteForbiddenBody
func (*DeleteForbiddenBody) ContextValidate ¶
ContextValidate validates this delete forbidden body based on context it is used
func (*DeleteForbiddenBody) MarshalBinary ¶
func (o *DeleteForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteForbiddenBody) UnmarshalBinary ¶
func (o *DeleteForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteInternalServerError ¶
type DeleteInternalServerError struct {
Payload interface{}
}
DeleteInternalServerError describes a response with status code 500, with default header values.
DeleteInternalServerError delete internal server error
func NewDeleteInternalServerError ¶
func NewDeleteInternalServerError() *DeleteInternalServerError
NewDeleteInternalServerError creates a DeleteInternalServerError with default headers values
func (*DeleteInternalServerError) Error ¶
func (o *DeleteInternalServerError) Error() string
func (*DeleteInternalServerError) GetPayload ¶
func (o *DeleteInternalServerError) GetPayload() interface{}
type DeleteNotFound ¶
type DeleteNotFound struct {
Payload *DeleteNotFoundBody
}
DeleteNotFound describes a response with status code 404, with default header values.
DeleteNotFound delete not found
func NewDeleteNotFound ¶
func NewDeleteNotFound() *DeleteNotFound
NewDeleteNotFound creates a DeleteNotFound with default headers values
func (*DeleteNotFound) Error ¶
func (o *DeleteNotFound) Error() string
func (*DeleteNotFound) GetPayload ¶
func (o *DeleteNotFound) GetPayload() *DeleteNotFoundBody
type DeleteNotFoundBody ¶
type DeleteNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
DeleteNotFoundBody delete not found body swagger:model DeleteNotFoundBody
func (*DeleteNotFoundBody) ContextValidate ¶
ContextValidate validates this delete not found body based on context it is used
func (*DeleteNotFoundBody) MarshalBinary ¶
func (o *DeleteNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*DeleteNotFoundBody) UnmarshalBinary ¶
func (o *DeleteNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type DeleteOK ¶
type DeleteOK struct {
Payload interface{}
}
DeleteOK describes a response with status code 200, with default header values.
Delete Instance succeeded
func NewDeleteOK ¶
func NewDeleteOK() *DeleteOK
NewDeleteOK creates a DeleteOK with default headers values
func (*DeleteOK) GetPayload ¶
func (o *DeleteOK) GetPayload() interface{}
type DeleteParams ¶
type DeleteParams struct { /* Name. Instance name */ Name string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteParams contains all the parameters to send to the API endpoint
for the delete operation. Typically these are written to a http.Request.
func NewDeleteParams ¶
func NewDeleteParams() *DeleteParams
NewDeleteParams creates a new DeleteParams 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 NewDeleteParamsWithContext ¶
func NewDeleteParamsWithContext(ctx context.Context) *DeleteParams
NewDeleteParamsWithContext creates a new DeleteParams object with the ability to set a context for a request.
func NewDeleteParamsWithHTTPClient ¶
func NewDeleteParamsWithHTTPClient(client *http.Client) *DeleteParams
NewDeleteParamsWithHTTPClient creates a new DeleteParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteParamsWithTimeout ¶
func NewDeleteParamsWithTimeout(timeout time.Duration) *DeleteParams
NewDeleteParamsWithTimeout creates a new DeleteParams object with the ability to set a timeout on a request.
func (*DeleteParams) SetContext ¶
func (o *DeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the delete params
func (*DeleteParams) SetDefaults ¶
func (o *DeleteParams) SetDefaults()
SetDefaults hydrates default values in the delete params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteParams) SetHTTPClient ¶
func (o *DeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete params
func (*DeleteParams) SetName ¶
func (o *DeleteParams) SetName(name string)
SetName adds the name to the delete params
func (*DeleteParams) SetTimeout ¶
func (o *DeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete params
func (*DeleteParams) WithContext ¶
func (o *DeleteParams) WithContext(ctx context.Context) *DeleteParams
WithContext adds the context to the delete params
func (*DeleteParams) WithDefaults ¶
func (o *DeleteParams) WithDefaults() *DeleteParams
WithDefaults hydrates default values in the delete params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteParams) WithHTTPClient ¶
func (o *DeleteParams) WithHTTPClient(client *http.Client) *DeleteParams
WithHTTPClient adds the HTTPClient to the delete params
func (*DeleteParams) WithName ¶
func (o *DeleteParams) WithName(name string) *DeleteParams
WithName adds the name to the delete params
func (*DeleteParams) WithTimeout ¶
func (o *DeleteParams) WithTimeout(timeout time.Duration) *DeleteParams
WithTimeout adds the timeout to the delete params
func (*DeleteParams) WriteToRequest ¶
func (o *DeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteReader ¶
type DeleteReader struct {
// contains filtered or unexported fields
}
DeleteReader is a Reader for the Delete structure.
func (*DeleteReader) ReadResponse ¶
func (o *DeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteUnauthorized ¶
type DeleteUnauthorized struct {
}DeleteUnauthorized describes a response with status code 401, with default header values.
DeleteUnauthorized delete unauthorized
func NewDeleteUnauthorized ¶
func NewDeleteUnauthorized() *DeleteUnauthorized
NewDeleteUnauthorized creates a DeleteUnauthorized with default headers values
func (*DeleteUnauthorized) Error ¶
func (o *DeleteUnauthorized) Error() string
func (*DeleteUnauthorized) GetPayload ¶
func (o *DeleteUnauthorized) GetPayload() interface{}
type GetBadRequest ¶
type GetBadRequest struct {
Payload *GetBadRequestBody
}
GetBadRequest describes a response with status code 400, with default header values.
GetBadRequest get bad request
func NewGetBadRequest ¶
func NewGetBadRequest() *GetBadRequest
NewGetBadRequest creates a GetBadRequest with default headers values
func (*GetBadRequest) Error ¶
func (o *GetBadRequest) Error() string
func (*GetBadRequest) GetPayload ¶
func (o *GetBadRequest) GetPayload() *GetBadRequestBody
type GetBadRequestBody ¶
type GetBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
GetBadRequestBody get bad request body swagger:model GetBadRequestBody
func (*GetBadRequestBody) ContextValidate ¶
ContextValidate validates this get bad request body based on context it is used
func (*GetBadRequestBody) MarshalBinary ¶
func (o *GetBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetBadRequestBody) UnmarshalBinary ¶
func (o *GetBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetForbidden ¶
type GetForbidden struct {
Payload *GetForbiddenBody
}
GetForbidden describes a response with status code 403, with default header values.
GetForbidden get forbidden
func NewGetForbidden ¶
func NewGetForbidden() *GetForbidden
NewGetForbidden creates a GetForbidden with default headers values
func (*GetForbidden) Error ¶
func (o *GetForbidden) Error() string
func (*GetForbidden) GetPayload ¶
func (o *GetForbidden) GetPayload() *GetForbiddenBody
type GetForbiddenBody ¶
type GetForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
GetForbiddenBody get forbidden body swagger:model GetForbiddenBody
func (*GetForbiddenBody) ContextValidate ¶
ContextValidate validates this get forbidden body based on context it is used
func (*GetForbiddenBody) MarshalBinary ¶
func (o *GetForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetForbiddenBody) UnmarshalBinary ¶
func (o *GetForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetInternalServerError ¶
type GetInternalServerError struct {
Payload interface{}
}
GetInternalServerError describes a response with status code 500, with default header values.
GetInternalServerError get internal server error
func NewGetInternalServerError ¶
func NewGetInternalServerError() *GetInternalServerError
NewGetInternalServerError creates a GetInternalServerError with default headers values
func (*GetInternalServerError) Error ¶
func (o *GetInternalServerError) Error() string
func (*GetInternalServerError) GetPayload ¶
func (o *GetInternalServerError) GetPayload() interface{}
type GetNotFound ¶
type GetNotFound struct {
Payload *GetNotFoundBody
}
GetNotFound describes a response with status code 404, with default header values.
GetNotFound get not found
func NewGetNotFound ¶
func NewGetNotFound() *GetNotFound
NewGetNotFound creates a GetNotFound with default headers values
func (*GetNotFound) Error ¶
func (o *GetNotFound) Error() string
func (*GetNotFound) GetPayload ¶
func (o *GetNotFound) GetPayload() *GetNotFoundBody
type GetNotFoundBody ¶
type GetNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
GetNotFoundBody get not found body swagger:model GetNotFoundBody
func (*GetNotFoundBody) ContextValidate ¶
ContextValidate validates this get not found body based on context it is used
func (*GetNotFoundBody) MarshalBinary ¶
func (o *GetNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetNotFoundBody) UnmarshalBinary ¶
func (o *GetNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetOK ¶
GetOK describes a response with status code 200, with default header values.
Get Instance succeeded
func (*GetOK) GetPayload ¶
type GetParams ¶
type GetParams struct { /* Name. Instance name */ Name string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetParams contains all the parameters to send to the API endpoint
for the get operation. Typically these are written to a http.Request.
func NewGetParams ¶
func NewGetParams() *GetParams
NewGetParams creates a new GetParams 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 NewGetParamsWithContext ¶
NewGetParamsWithContext creates a new GetParams object with the ability to set a context for a request.
func NewGetParamsWithHTTPClient ¶
NewGetParamsWithHTTPClient creates a new GetParams object with the ability to set a custom HTTPClient for a request.
func NewGetParamsWithTimeout ¶
NewGetParamsWithTimeout creates a new GetParams object with the ability to set a timeout on a request.
func (*GetParams) SetContext ¶
SetContext adds the context to the get params
func (*GetParams) SetDefaults ¶
func (o *GetParams) SetDefaults()
SetDefaults hydrates default values in the get params (not the query body).
All values with no default are reset to their zero value.
func (*GetParams) SetHTTPClient ¶
SetHTTPClient adds the HTTPClient to the get params
func (*GetParams) SetTimeout ¶
SetTimeout adds the timeout to the get params
func (*GetParams) WithContext ¶
WithContext adds the context to the get params
func (*GetParams) WithDefaults ¶
WithDefaults hydrates default values in the get params (not the query body).
All values with no default are reset to their zero value.
func (*GetParams) WithHTTPClient ¶
WithHTTPClient adds the HTTPClient to the get params
func (*GetParams) WithTimeout ¶
WithTimeout adds the timeout to the get params
func (*GetParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type GetReader ¶
type GetReader struct {
// contains filtered or unexported fields
}
GetReader is a Reader for the Get structure.
func (*GetReader) ReadResponse ¶
func (o *GetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUnauthorized ¶
type GetUnauthorized struct {
}GetUnauthorized describes a response with status code 401, with default header values.
GetUnauthorized get unauthorized
func NewGetUnauthorized ¶
func NewGetUnauthorized() *GetUnauthorized
NewGetUnauthorized creates a GetUnauthorized with default headers values
func (*GetUnauthorized) Error ¶
func (o *GetUnauthorized) Error() string
func (*GetUnauthorized) GetPayload ¶
func (o *GetUnauthorized) GetPayload() interface{}
type ListBadRequest ¶
type ListBadRequest struct {
Payload *ListBadRequestBody
}
ListBadRequest describes a response with status code 400, with default header values.
ListBadRequest list bad request
func NewListBadRequest ¶
func NewListBadRequest() *ListBadRequest
NewListBadRequest creates a ListBadRequest with default headers values
func (*ListBadRequest) Error ¶
func (o *ListBadRequest) Error() string
func (*ListBadRequest) GetPayload ¶
func (o *ListBadRequest) GetPayload() *ListBadRequestBody
type ListBadRequestBody ¶
type ListBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
ListBadRequestBody list bad request body swagger:model ListBadRequestBody
func (*ListBadRequestBody) ContextValidate ¶
ContextValidate validates this list bad request body based on context it is used
func (*ListBadRequestBody) MarshalBinary ¶
func (o *ListBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListBadRequestBody) UnmarshalBinary ¶
func (o *ListBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListForbidden ¶
type ListForbidden struct {
Payload *ListForbiddenBody
}
ListForbidden describes a response with status code 403, with default header values.
ListForbidden list forbidden
func NewListForbidden ¶
func NewListForbidden() *ListForbidden
NewListForbidden creates a ListForbidden with default headers values
func (*ListForbidden) Error ¶
func (o *ListForbidden) Error() string
func (*ListForbidden) GetPayload ¶
func (o *ListForbidden) GetPayload() *ListForbiddenBody
type ListForbiddenBody ¶
type ListForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
ListForbiddenBody list forbidden body swagger:model ListForbiddenBody
func (*ListForbiddenBody) ContextValidate ¶
ContextValidate validates this list forbidden body based on context it is used
func (*ListForbiddenBody) MarshalBinary ¶
func (o *ListForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListForbiddenBody) UnmarshalBinary ¶
func (o *ListForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListInternalServerError ¶
type ListInternalServerError struct {
Payload interface{}
}
ListInternalServerError describes a response with status code 500, with default header values.
ListInternalServerError list internal server error
func NewListInternalServerError ¶
func NewListInternalServerError() *ListInternalServerError
NewListInternalServerError creates a ListInternalServerError with default headers values
func (*ListInternalServerError) Error ¶
func (o *ListInternalServerError) Error() string
func (*ListInternalServerError) GetPayload ¶
func (o *ListInternalServerError) GetPayload() interface{}
type ListNotFound ¶
type ListNotFound struct {
Payload *ListNotFoundBody
}
ListNotFound describes a response with status code 404, with default header values.
ListNotFound list not found
func NewListNotFound ¶
func NewListNotFound() *ListNotFound
NewListNotFound creates a ListNotFound with default headers values
func (*ListNotFound) Error ¶
func (o *ListNotFound) Error() string
func (*ListNotFound) GetPayload ¶
func (o *ListNotFound) GetPayload() *ListNotFoundBody
type ListNotFoundBody ¶
type ListNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
ListNotFoundBody list not found body swagger:model ListNotFoundBody
func (*ListNotFoundBody) ContextValidate ¶
ContextValidate validates this list not found body based on context it is used
func (*ListNotFoundBody) MarshalBinary ¶
func (o *ListNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListNotFoundBody) UnmarshalBinary ¶
func (o *ListNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListOK ¶
ListOK describes a response with status code 200, with default header values.
List Instances succeeded
func (*ListOK) GetPayload ¶
type ListParams ¶
type ListParams struct { /* Name. Instance name */ Name *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListParams contains all the parameters to send to the API endpoint
for the list operation. Typically these are written to a http.Request.
func NewListParams ¶
func NewListParams() *ListParams
NewListParams creates a new ListParams 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 NewListParamsWithContext ¶
func NewListParamsWithContext(ctx context.Context) *ListParams
NewListParamsWithContext creates a new ListParams object with the ability to set a context for a request.
func NewListParamsWithHTTPClient ¶
func NewListParamsWithHTTPClient(client *http.Client) *ListParams
NewListParamsWithHTTPClient creates a new ListParams object with the ability to set a custom HTTPClient for a request.
func NewListParamsWithTimeout ¶
func NewListParamsWithTimeout(timeout time.Duration) *ListParams
NewListParamsWithTimeout creates a new ListParams object with the ability to set a timeout on a request.
func (*ListParams) SetContext ¶
func (o *ListParams) SetContext(ctx context.Context)
SetContext adds the context to the list params
func (*ListParams) SetDefaults ¶
func (o *ListParams) SetDefaults()
SetDefaults hydrates default values in the list params (not the query body).
All values with no default are reset to their zero value.
func (*ListParams) SetHTTPClient ¶
func (o *ListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list params
func (*ListParams) SetName ¶
func (o *ListParams) SetName(name *string)
SetName adds the name to the list params
func (*ListParams) SetTimeout ¶
func (o *ListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list params
func (*ListParams) WithContext ¶
func (o *ListParams) WithContext(ctx context.Context) *ListParams
WithContext adds the context to the list params
func (*ListParams) WithDefaults ¶
func (o *ListParams) WithDefaults() *ListParams
WithDefaults hydrates default values in the list params (not the query body).
All values with no default are reset to their zero value.
func (*ListParams) WithHTTPClient ¶
func (o *ListParams) WithHTTPClient(client *http.Client) *ListParams
WithHTTPClient adds the HTTPClient to the list params
func (*ListParams) WithName ¶
func (o *ListParams) WithName(name *string) *ListParams
WithName adds the name to the list params
func (*ListParams) WithTimeout ¶
func (o *ListParams) WithTimeout(timeout time.Duration) *ListParams
WithTimeout adds the timeout to the list params
func (*ListParams) WriteToRequest ¶
func (o *ListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListReader ¶
type ListReader struct {
// contains filtered or unexported fields
}
ListReader is a Reader for the List structure.
func (*ListReader) ReadResponse ¶
func (o *ListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListUnauthorized ¶
type ListUnauthorized struct {
}ListUnauthorized describes a response with status code 401, with default header values.
ListUnauthorized list unauthorized
func NewListUnauthorized ¶
func NewListUnauthorized() *ListUnauthorized
NewListUnauthorized creates a ListUnauthorized with default headers values
func (*ListUnauthorized) Error ¶
func (o *ListUnauthorized) Error() string
func (*ListUnauthorized) GetPayload ¶
func (o *ListUnauthorized) GetPayload() interface{}
type ModifyBadRequest ¶
type ModifyBadRequest struct {
Payload *ModifyBadRequestBody
}
ModifyBadRequest describes a response with status code 400, with default header values.
ModifyBadRequest modify bad request
func NewModifyBadRequest ¶
func NewModifyBadRequest() *ModifyBadRequest
NewModifyBadRequest creates a ModifyBadRequest with default headers values
func (*ModifyBadRequest) Error ¶
func (o *ModifyBadRequest) Error() string
func (*ModifyBadRequest) GetPayload ¶
func (o *ModifyBadRequest) GetPayload() *ModifyBadRequestBody
type ModifyBadRequestBody ¶
type ModifyBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
ModifyBadRequestBody modify bad request body swagger:model ModifyBadRequestBody
func (*ModifyBadRequestBody) ContextValidate ¶
ContextValidate validates this modify bad request body based on context it is used
func (*ModifyBadRequestBody) MarshalBinary ¶
func (o *ModifyBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModifyBadRequestBody) UnmarshalBinary ¶
func (o *ModifyBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModifyForbidden ¶
type ModifyForbidden struct {
Payload *ModifyForbiddenBody
}
ModifyForbidden describes a response with status code 403, with default header values.
ModifyForbidden modify forbidden
func NewModifyForbidden ¶
func NewModifyForbidden() *ModifyForbidden
NewModifyForbidden creates a ModifyForbidden with default headers values
func (*ModifyForbidden) Error ¶
func (o *ModifyForbidden) Error() string
func (*ModifyForbidden) GetPayload ¶
func (o *ModifyForbidden) GetPayload() *ModifyForbiddenBody
type ModifyForbiddenBody ¶
type ModifyForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
ModifyForbiddenBody modify forbidden body swagger:model ModifyForbiddenBody
func (*ModifyForbiddenBody) ContextValidate ¶
ContextValidate validates this modify forbidden body based on context it is used
func (*ModifyForbiddenBody) MarshalBinary ¶
func (o *ModifyForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModifyForbiddenBody) UnmarshalBinary ¶
func (o *ModifyForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModifyInternalServerError ¶
type ModifyInternalServerError struct {
Payload interface{}
}
ModifyInternalServerError describes a response with status code 500, with default header values.
ModifyInternalServerError modify internal server error
func NewModifyInternalServerError ¶
func NewModifyInternalServerError() *ModifyInternalServerError
NewModifyInternalServerError creates a ModifyInternalServerError with default headers values
func (*ModifyInternalServerError) Error ¶
func (o *ModifyInternalServerError) Error() string
func (*ModifyInternalServerError) GetPayload ¶
func (o *ModifyInternalServerError) GetPayload() interface{}
type ModifyNotFound ¶
type ModifyNotFound struct {
Payload *ModifyNotFoundBody
}
ModifyNotFound describes a response with status code 404, with default header values.
ModifyNotFound modify not found
func NewModifyNotFound ¶
func NewModifyNotFound() *ModifyNotFound
NewModifyNotFound creates a ModifyNotFound with default headers values
func (*ModifyNotFound) Error ¶
func (o *ModifyNotFound) Error() string
func (*ModifyNotFound) GetPayload ¶
func (o *ModifyNotFound) GetPayload() *ModifyNotFoundBody
type ModifyNotFoundBody ¶
type ModifyNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
ModifyNotFoundBody modify not found body swagger:model ModifyNotFoundBody
func (*ModifyNotFoundBody) ContextValidate ¶
ContextValidate validates this modify not found body based on context it is used
func (*ModifyNotFoundBody) MarshalBinary ¶
func (o *ModifyNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ModifyNotFoundBody) UnmarshalBinary ¶
func (o *ModifyNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ModifyOK ¶
ModifyOK describes a response with status code 200, with default header values.
Modify Instance succeeded
func NewModifyOK ¶
func NewModifyOK() *ModifyOK
NewModifyOK creates a ModifyOK with default headers values
func (*ModifyOK) GetPayload ¶
type ModifyParams ¶
type ModifyParams struct { /* Config. Instance request */ Config *models.InstanceConfig Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ModifyParams contains all the parameters to send to the API endpoint
for the modify operation. Typically these are written to a http.Request.
func NewModifyParams ¶
func NewModifyParams() *ModifyParams
NewModifyParams creates a new ModifyParams 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 NewModifyParamsWithContext ¶
func NewModifyParamsWithContext(ctx context.Context) *ModifyParams
NewModifyParamsWithContext creates a new ModifyParams object with the ability to set a context for a request.
func NewModifyParamsWithHTTPClient ¶
func NewModifyParamsWithHTTPClient(client *http.Client) *ModifyParams
NewModifyParamsWithHTTPClient creates a new ModifyParams object with the ability to set a custom HTTPClient for a request.
func NewModifyParamsWithTimeout ¶
func NewModifyParamsWithTimeout(timeout time.Duration) *ModifyParams
NewModifyParamsWithTimeout creates a new ModifyParams object with the ability to set a timeout on a request.
func (*ModifyParams) SetConfig ¶
func (o *ModifyParams) SetConfig(config *models.InstanceConfig)
SetConfig adds the config to the modify params
func (*ModifyParams) SetContext ¶
func (o *ModifyParams) SetContext(ctx context.Context)
SetContext adds the context to the modify params
func (*ModifyParams) SetDefaults ¶
func (o *ModifyParams) SetDefaults()
SetDefaults hydrates default values in the modify params (not the query body).
All values with no default are reset to their zero value.
func (*ModifyParams) SetHTTPClient ¶
func (o *ModifyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the modify params
func (*ModifyParams) SetTimeout ¶
func (o *ModifyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the modify params
func (*ModifyParams) WithConfig ¶
func (o *ModifyParams) WithConfig(config *models.InstanceConfig) *ModifyParams
WithConfig adds the config to the modify params
func (*ModifyParams) WithContext ¶
func (o *ModifyParams) WithContext(ctx context.Context) *ModifyParams
WithContext adds the context to the modify params
func (*ModifyParams) WithDefaults ¶
func (o *ModifyParams) WithDefaults() *ModifyParams
WithDefaults hydrates default values in the modify params (not the query body).
All values with no default are reset to their zero value.
func (*ModifyParams) WithHTTPClient ¶
func (o *ModifyParams) WithHTTPClient(client *http.Client) *ModifyParams
WithHTTPClient adds the HTTPClient to the modify params
func (*ModifyParams) WithTimeout ¶
func (o *ModifyParams) WithTimeout(timeout time.Duration) *ModifyParams
WithTimeout adds the timeout to the modify params
func (*ModifyParams) WriteToRequest ¶
func (o *ModifyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ModifyReader ¶
type ModifyReader struct {
// contains filtered or unexported fields
}
ModifyReader is a Reader for the Modify structure.
func (*ModifyReader) ReadResponse ¶
func (o *ModifyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ModifyUnauthorized ¶
type ModifyUnauthorized struct {
}ModifyUnauthorized describes a response with status code 401, with default header values.
ModifyUnauthorized modify unauthorized
func NewModifyUnauthorized ¶
func NewModifyUnauthorized() *ModifyUnauthorized
NewModifyUnauthorized creates a ModifyUnauthorized with default headers values
func (*ModifyUnauthorized) Error ¶
func (o *ModifyUnauthorized) Error() string
func (*ModifyUnauthorized) GetPayload ¶
func (o *ModifyUnauthorized) GetPayload() interface{}
type StartBadRequest ¶
type StartBadRequest struct {
Payload *StartBadRequestBody
}
StartBadRequest describes a response with status code 400, with default header values.
StartBadRequest start bad request
func NewStartBadRequest ¶
func NewStartBadRequest() *StartBadRequest
NewStartBadRequest creates a StartBadRequest with default headers values
func (*StartBadRequest) Error ¶
func (o *StartBadRequest) Error() string
func (*StartBadRequest) GetPayload ¶
func (o *StartBadRequest) GetPayload() *StartBadRequestBody
type StartBadRequestBody ¶
type StartBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
StartBadRequestBody start bad request body swagger:model StartBadRequestBody
func (*StartBadRequestBody) ContextValidate ¶
ContextValidate validates this start bad request body based on context it is used
func (*StartBadRequestBody) MarshalBinary ¶
func (o *StartBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartBadRequestBody) UnmarshalBinary ¶
func (o *StartBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartForbidden ¶
type StartForbidden struct {
Payload *StartForbiddenBody
}
StartForbidden describes a response with status code 403, with default header values.
StartForbidden start forbidden
func NewStartForbidden ¶
func NewStartForbidden() *StartForbidden
NewStartForbidden creates a StartForbidden with default headers values
func (*StartForbidden) Error ¶
func (o *StartForbidden) Error() string
func (*StartForbidden) GetPayload ¶
func (o *StartForbidden) GetPayload() *StartForbiddenBody
type StartForbiddenBody ¶
type StartForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
StartForbiddenBody start forbidden body swagger:model StartForbiddenBody
func (*StartForbiddenBody) ContextValidate ¶
ContextValidate validates this start forbidden body based on context it is used
func (*StartForbiddenBody) MarshalBinary ¶
func (o *StartForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartForbiddenBody) UnmarshalBinary ¶
func (o *StartForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartInternalServerError ¶
type StartInternalServerError struct {
Payload interface{}
}
StartInternalServerError describes a response with status code 500, with default header values.
StartInternalServerError start internal server error
func NewStartInternalServerError ¶
func NewStartInternalServerError() *StartInternalServerError
NewStartInternalServerError creates a StartInternalServerError with default headers values
func (*StartInternalServerError) Error ¶
func (o *StartInternalServerError) Error() string
func (*StartInternalServerError) GetPayload ¶
func (o *StartInternalServerError) GetPayload() interface{}
type StartNotFound ¶
type StartNotFound struct {
Payload *StartNotFoundBody
}
StartNotFound describes a response with status code 404, with default header values.
StartNotFound start not found
func NewStartNotFound ¶
func NewStartNotFound() *StartNotFound
NewStartNotFound creates a StartNotFound with default headers values
func (*StartNotFound) Error ¶
func (o *StartNotFound) Error() string
func (*StartNotFound) GetPayload ¶
func (o *StartNotFound) GetPayload() *StartNotFoundBody
type StartNotFoundBody ¶
type StartNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
StartNotFoundBody start not found body swagger:model StartNotFoundBody
func (*StartNotFoundBody) ContextValidate ¶
ContextValidate validates this start not found body based on context it is used
func (*StartNotFoundBody) MarshalBinary ¶
func (o *StartNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StartNotFoundBody) UnmarshalBinary ¶
func (o *StartNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StartOK ¶
StartOK describes a response with status code 200, with default header values.
Start instance succeeded
func NewStartOK ¶
func NewStartOK() *StartOK
NewStartOK creates a StartOK with default headers values
func (*StartOK) GetPayload ¶
type StartParams ¶
type StartParams struct { /* Name. Instance name */ Name string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
StartParams contains all the parameters to send to the API endpoint
for the start operation. Typically these are written to a http.Request.
func NewStartParams ¶
func NewStartParams() *StartParams
NewStartParams creates a new StartParams 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 NewStartParamsWithContext ¶
func NewStartParamsWithContext(ctx context.Context) *StartParams
NewStartParamsWithContext creates a new StartParams object with the ability to set a context for a request.
func NewStartParamsWithHTTPClient ¶
func NewStartParamsWithHTTPClient(client *http.Client) *StartParams
NewStartParamsWithHTTPClient creates a new StartParams object with the ability to set a custom HTTPClient for a request.
func NewStartParamsWithTimeout ¶
func NewStartParamsWithTimeout(timeout time.Duration) *StartParams
NewStartParamsWithTimeout creates a new StartParams object with the ability to set a timeout on a request.
func (*StartParams) SetContext ¶
func (o *StartParams) SetContext(ctx context.Context)
SetContext adds the context to the start params
func (*StartParams) SetDefaults ¶
func (o *StartParams) SetDefaults()
SetDefaults hydrates default values in the start params (not the query body).
All values with no default are reset to their zero value.
func (*StartParams) SetHTTPClient ¶
func (o *StartParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the start params
func (*StartParams) SetName ¶
func (o *StartParams) SetName(name string)
SetName adds the name to the start params
func (*StartParams) SetTimeout ¶
func (o *StartParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the start params
func (*StartParams) WithContext ¶
func (o *StartParams) WithContext(ctx context.Context) *StartParams
WithContext adds the context to the start params
func (*StartParams) WithDefaults ¶
func (o *StartParams) WithDefaults() *StartParams
WithDefaults hydrates default values in the start params (not the query body).
All values with no default are reset to their zero value.
func (*StartParams) WithHTTPClient ¶
func (o *StartParams) WithHTTPClient(client *http.Client) *StartParams
WithHTTPClient adds the HTTPClient to the start params
func (*StartParams) WithName ¶
func (o *StartParams) WithName(name string) *StartParams
WithName adds the name to the start params
func (*StartParams) WithTimeout ¶
func (o *StartParams) WithTimeout(timeout time.Duration) *StartParams
WithTimeout adds the timeout to the start params
func (*StartParams) WriteToRequest ¶
func (o *StartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type StartReader ¶
type StartReader struct {
// contains filtered or unexported fields
}
StartReader is a Reader for the Start structure.
func (*StartReader) ReadResponse ¶
func (o *StartReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type StartUnauthorized ¶
type StartUnauthorized struct {
}StartUnauthorized describes a response with status code 401, with default header values.
StartUnauthorized start unauthorized
func NewStartUnauthorized ¶
func NewStartUnauthorized() *StartUnauthorized
NewStartUnauthorized creates a StartUnauthorized with default headers values
func (*StartUnauthorized) Error ¶
func (o *StartUnauthorized) Error() string
func (*StartUnauthorized) GetPayload ¶
func (o *StartUnauthorized) GetPayload() interface{}
type StopBadRequest ¶
type StopBadRequest struct {
Payload *StopBadRequestBody
}
StopBadRequest describes a response with status code 400, with default header values.
StopBadRequest stop bad request
func NewStopBadRequest ¶
func NewStopBadRequest() *StopBadRequest
NewStopBadRequest creates a StopBadRequest with default headers values
func (*StopBadRequest) Error ¶
func (o *StopBadRequest) Error() string
func (*StopBadRequest) GetPayload ¶
func (o *StopBadRequest) GetPayload() *StopBadRequestBody
type StopBadRequestBody ¶
type StopBadRequestBody struct { // message // Required: true Message *string `json:"message"` }
StopBadRequestBody stop bad request body swagger:model StopBadRequestBody
func (*StopBadRequestBody) ContextValidate ¶
ContextValidate validates this stop bad request body based on context it is used
func (*StopBadRequestBody) MarshalBinary ¶
func (o *StopBadRequestBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StopBadRequestBody) UnmarshalBinary ¶
func (o *StopBadRequestBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StopForbidden ¶
type StopForbidden struct {
Payload *StopForbiddenBody
}
StopForbidden describes a response with status code 403, with default header values.
StopForbidden stop forbidden
func NewStopForbidden ¶
func NewStopForbidden() *StopForbidden
NewStopForbidden creates a StopForbidden with default headers values
func (*StopForbidden) Error ¶
func (o *StopForbidden) Error() string
func (*StopForbidden) GetPayload ¶
func (o *StopForbidden) GetPayload() *StopForbiddenBody
type StopForbiddenBody ¶
type StopForbiddenBody struct { // message // Required: true Message *string `json:"message"` }
StopForbiddenBody stop forbidden body swagger:model StopForbiddenBody
func (*StopForbiddenBody) ContextValidate ¶
ContextValidate validates this stop forbidden body based on context it is used
func (*StopForbiddenBody) MarshalBinary ¶
func (o *StopForbiddenBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StopForbiddenBody) UnmarshalBinary ¶
func (o *StopForbiddenBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StopInternalServerError ¶
type StopInternalServerError struct {
Payload interface{}
}
StopInternalServerError describes a response with status code 500, with default header values.
StopInternalServerError stop internal server error
func NewStopInternalServerError ¶
func NewStopInternalServerError() *StopInternalServerError
NewStopInternalServerError creates a StopInternalServerError with default headers values
func (*StopInternalServerError) Error ¶
func (o *StopInternalServerError) Error() string
func (*StopInternalServerError) GetPayload ¶
func (o *StopInternalServerError) GetPayload() interface{}
type StopNotFound ¶
type StopNotFound struct {
Payload *StopNotFoundBody
}
StopNotFound describes a response with status code 404, with default header values.
StopNotFound stop not found
func NewStopNotFound ¶
func NewStopNotFound() *StopNotFound
NewStopNotFound creates a StopNotFound with default headers values
func (*StopNotFound) Error ¶
func (o *StopNotFound) Error() string
func (*StopNotFound) GetPayload ¶
func (o *StopNotFound) GetPayload() *StopNotFoundBody
type StopNotFoundBody ¶
type StopNotFoundBody struct { // error // Required: true Error *string `json:"error"` // status // Required: true Status *string `json:"status"` }
StopNotFoundBody stop not found body swagger:model StopNotFoundBody
func (*StopNotFoundBody) ContextValidate ¶
ContextValidate validates this stop not found body based on context it is used
func (*StopNotFoundBody) MarshalBinary ¶
func (o *StopNotFoundBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StopNotFoundBody) UnmarshalBinary ¶
func (o *StopNotFoundBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StopOK ¶
StopOK describes a response with status code 200, with default header values.
Stop Instance succeeded
func (*StopOK) GetPayload ¶
type StopParams ¶
type StopParams struct { /* Name. Instance name */ Name string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
StopParams contains all the parameters to send to the API endpoint
for the stop operation. Typically these are written to a http.Request.
func NewStopParams ¶
func NewStopParams() *StopParams
NewStopParams creates a new StopParams 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 NewStopParamsWithContext ¶
func NewStopParamsWithContext(ctx context.Context) *StopParams
NewStopParamsWithContext creates a new StopParams object with the ability to set a context for a request.
func NewStopParamsWithHTTPClient ¶
func NewStopParamsWithHTTPClient(client *http.Client) *StopParams
NewStopParamsWithHTTPClient creates a new StopParams object with the ability to set a custom HTTPClient for a request.
func NewStopParamsWithTimeout ¶
func NewStopParamsWithTimeout(timeout time.Duration) *StopParams
NewStopParamsWithTimeout creates a new StopParams object with the ability to set a timeout on a request.
func (*StopParams) SetContext ¶
func (o *StopParams) SetContext(ctx context.Context)
SetContext adds the context to the stop params
func (*StopParams) SetDefaults ¶
func (o *StopParams) SetDefaults()
SetDefaults hydrates default values in the stop params (not the query body).
All values with no default are reset to their zero value.
func (*StopParams) SetHTTPClient ¶
func (o *StopParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the stop params
func (*StopParams) SetName ¶
func (o *StopParams) SetName(name string)
SetName adds the name to the stop params
func (*StopParams) SetTimeout ¶
func (o *StopParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the stop params
func (*StopParams) WithContext ¶
func (o *StopParams) WithContext(ctx context.Context) *StopParams
WithContext adds the context to the stop params
func (*StopParams) WithDefaults ¶
func (o *StopParams) WithDefaults() *StopParams
WithDefaults hydrates default values in the stop params (not the query body).
All values with no default are reset to their zero value.
func (*StopParams) WithHTTPClient ¶
func (o *StopParams) WithHTTPClient(client *http.Client) *StopParams
WithHTTPClient adds the HTTPClient to the stop params
func (*StopParams) WithName ¶
func (o *StopParams) WithName(name string) *StopParams
WithName adds the name to the stop params
func (*StopParams) WithTimeout ¶
func (o *StopParams) WithTimeout(timeout time.Duration) *StopParams
WithTimeout adds the timeout to the stop params
func (*StopParams) WriteToRequest ¶
func (o *StopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type StopReader ¶
type StopReader struct {
// contains filtered or unexported fields
}
StopReader is a Reader for the Stop structure.
func (*StopReader) ReadResponse ¶
func (o *StopReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type StopUnauthorized ¶
type StopUnauthorized struct {
}StopUnauthorized describes a response with status code 401, with default header values.
StopUnauthorized stop unauthorized
func NewStopUnauthorized ¶
func NewStopUnauthorized() *StopUnauthorized
NewStopUnauthorized creates a StopUnauthorized with default headers values
func (*StopUnauthorized) Error ¶
func (o *StopUnauthorized) Error() string
func (*StopUnauthorized) GetPayload ¶
func (o *StopUnauthorized) GetPayload() interface{}