Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateHost(params *CreateHostParams, opts ...ClientOption) (*CreateHostOK, error)
- func (a *Client) GetHosts(params *GetHostsParams, opts ...ClientOption) (*GetHostsOK, error)
- func (a *Client) GetHostsConnection(params *GetHostsConnectionParams, opts ...ClientOption) (*GetHostsConnectionOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TriggerDiskBlink(params *TriggerDiskBlinkParams, opts ...ClientOption) (*TriggerDiskBlinkOK, error)
- func (a *Client) UpdateHost(params *UpdateHostParams, opts ...ClientOption) (*UpdateHostOK, error)
- type ClientOption
- type ClientService
- type CreateHostBadRequest
- type CreateHostInternalServerError
- type CreateHostNotFound
- type CreateHostOK
- type CreateHostParams
- func (o *CreateHostParams) SetContentLanguage(contentLanguage *string)
- func (o *CreateHostParams) SetContext(ctx context.Context)
- func (o *CreateHostParams) SetDefaults()
- func (o *CreateHostParams) SetHTTPClient(client *http.Client)
- func (o *CreateHostParams) SetRequestBody(requestBody []*models.HostCreationParams)
- func (o *CreateHostParams) SetTimeout(timeout time.Duration)
- func (o *CreateHostParams) WithContentLanguage(contentLanguage *string) *CreateHostParams
- func (o *CreateHostParams) WithContext(ctx context.Context) *CreateHostParams
- func (o *CreateHostParams) WithDefaults() *CreateHostParams
- func (o *CreateHostParams) WithHTTPClient(client *http.Client) *CreateHostParams
- func (o *CreateHostParams) WithRequestBody(requestBody []*models.HostCreationParams) *CreateHostParams
- func (o *CreateHostParams) WithTimeout(timeout time.Duration) *CreateHostParams
- func (o *CreateHostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateHostReader
- type GetHostsBadRequest
- type GetHostsConnectionBadRequest
- type GetHostsConnectionInternalServerError
- type GetHostsConnectionNotFound
- type GetHostsConnectionOK
- type GetHostsConnectionParams
- func NewGetHostsConnectionParams() *GetHostsConnectionParams
- func NewGetHostsConnectionParamsWithContext(ctx context.Context) *GetHostsConnectionParams
- func NewGetHostsConnectionParamsWithHTTPClient(client *http.Client) *GetHostsConnectionParams
- func NewGetHostsConnectionParamsWithTimeout(timeout time.Duration) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) SetContentLanguage(contentLanguage *string)
- func (o *GetHostsConnectionParams) SetContext(ctx context.Context)
- func (o *GetHostsConnectionParams) SetDefaults()
- func (o *GetHostsConnectionParams) SetHTTPClient(client *http.Client)
- func (o *GetHostsConnectionParams) SetRequestBody(requestBody *models.GetHostsConnectionRequestBody)
- func (o *GetHostsConnectionParams) SetTimeout(timeout time.Duration)
- func (o *GetHostsConnectionParams) WithContentLanguage(contentLanguage *string) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WithContext(ctx context.Context) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WithDefaults() *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WithHTTPClient(client *http.Client) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WithRequestBody(requestBody *models.GetHostsConnectionRequestBody) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WithTimeout(timeout time.Duration) *GetHostsConnectionParams
- func (o *GetHostsConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHostsConnectionReader
- type GetHostsInternalServerError
- type GetHostsNotFound
- type GetHostsOK
- type GetHostsParams
- func (o *GetHostsParams) SetContentLanguage(contentLanguage *string)
- func (o *GetHostsParams) SetContext(ctx context.Context)
- func (o *GetHostsParams) SetDefaults()
- func (o *GetHostsParams) SetHTTPClient(client *http.Client)
- func (o *GetHostsParams) SetRequestBody(requestBody *models.GetHostsRequestBody)
- func (o *GetHostsParams) SetTimeout(timeout time.Duration)
- func (o *GetHostsParams) WithContentLanguage(contentLanguage *string) *GetHostsParams
- func (o *GetHostsParams) WithContext(ctx context.Context) *GetHostsParams
- func (o *GetHostsParams) WithDefaults() *GetHostsParams
- func (o *GetHostsParams) WithHTTPClient(client *http.Client) *GetHostsParams
- func (o *GetHostsParams) WithRequestBody(requestBody *models.GetHostsRequestBody) *GetHostsParams
- func (o *GetHostsParams) WithTimeout(timeout time.Duration) *GetHostsParams
- func (o *GetHostsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetHostsReader
- type TriggerDiskBlinkBadRequest
- type TriggerDiskBlinkInternalServerError
- type TriggerDiskBlinkNotFound
- type TriggerDiskBlinkOK
- type TriggerDiskBlinkParams
- func NewTriggerDiskBlinkParams() *TriggerDiskBlinkParams
- func NewTriggerDiskBlinkParamsWithContext(ctx context.Context) *TriggerDiskBlinkParams
- func NewTriggerDiskBlinkParamsWithHTTPClient(client *http.Client) *TriggerDiskBlinkParams
- func NewTriggerDiskBlinkParamsWithTimeout(timeout time.Duration) *TriggerDiskBlinkParams
- func (o *TriggerDiskBlinkParams) SetContentLanguage(contentLanguage *string)
- func (o *TriggerDiskBlinkParams) SetContext(ctx context.Context)
- func (o *TriggerDiskBlinkParams) SetDefaults()
- func (o *TriggerDiskBlinkParams) SetHTTPClient(client *http.Client)
- func (o *TriggerDiskBlinkParams) SetRequestBody(requestBody []*models.TriggerDiskBlinkParams)
- func (o *TriggerDiskBlinkParams) SetTimeout(timeout time.Duration)
- func (o *TriggerDiskBlinkParams) WithContentLanguage(contentLanguage *string) *TriggerDiskBlinkParams
- func (o *TriggerDiskBlinkParams) WithContext(ctx context.Context) *TriggerDiskBlinkParams
- func (o *TriggerDiskBlinkParams) WithDefaults() *TriggerDiskBlinkParams
- func (o *TriggerDiskBlinkParams) WithHTTPClient(client *http.Client) *TriggerDiskBlinkParams
- func (o *TriggerDiskBlinkParams) WithRequestBody(requestBody []*models.TriggerDiskBlinkParams) *TriggerDiskBlinkParams
- func (o *TriggerDiskBlinkParams) WithTimeout(timeout time.Duration) *TriggerDiskBlinkParams
- func (o *TriggerDiskBlinkParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TriggerDiskBlinkReader
- type UpdateHostBadRequest
- type UpdateHostInternalServerError
- type UpdateHostNotFound
- type UpdateHostOK
- type UpdateHostParams
- func (o *UpdateHostParams) SetContentLanguage(contentLanguage *string)
- func (o *UpdateHostParams) SetContext(ctx context.Context)
- func (o *UpdateHostParams) SetDefaults()
- func (o *UpdateHostParams) SetHTTPClient(client *http.Client)
- func (o *UpdateHostParams) SetRequestBody(requestBody *models.HostUpdationParams)
- func (o *UpdateHostParams) SetTimeout(timeout time.Duration)
- func (o *UpdateHostParams) WithContentLanguage(contentLanguage *string) *UpdateHostParams
- func (o *UpdateHostParams) WithContext(ctx context.Context) *UpdateHostParams
- func (o *UpdateHostParams) WithDefaults() *UpdateHostParams
- func (o *UpdateHostParams) WithHTTPClient(client *http.Client) *UpdateHostParams
- func (o *UpdateHostParams) WithRequestBody(requestBody *models.HostUpdationParams) *UpdateHostParams
- func (o *UpdateHostParams) WithTimeout(timeout time.Duration) *UpdateHostParams
- func (o *UpdateHostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateHostReader
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 host API
func (*Client) CreateHost ¶
func (a *Client) CreateHost(params *CreateHostParams, opts ...ClientOption) (*CreateHostOK, error)
CreateHost create host API
func (*Client) GetHosts ¶
func (a *Client) GetHosts(params *GetHostsParams, opts ...ClientOption) (*GetHostsOK, error)
GetHosts get hosts API
func (*Client) GetHostsConnection ¶
func (a *Client) GetHostsConnection(params *GetHostsConnectionParams, opts ...ClientOption) (*GetHostsConnectionOK, error)
GetHostsConnection get hosts connection API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) TriggerDiskBlink ¶
func (a *Client) TriggerDiskBlink(params *TriggerDiskBlinkParams, opts ...ClientOption) (*TriggerDiskBlinkOK, error)
TriggerDiskBlink trigger disk blink API
func (*Client) UpdateHost ¶
func (a *Client) UpdateHost(params *UpdateHostParams, opts ...ClientOption) (*UpdateHostOK, error)
UpdateHost update host API
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateHost(params *CreateHostParams, opts ...ClientOption) (*CreateHostOK, error) GetHosts(params *GetHostsParams, opts ...ClientOption) (*GetHostsOK, error) GetHostsConnection(params *GetHostsConnectionParams, opts ...ClientOption) (*GetHostsConnectionOK, error) TriggerDiskBlink(params *TriggerDiskBlinkParams, opts ...ClientOption) (*TriggerDiskBlinkOK, error) UpdateHost(params *UpdateHostParams, opts ...ClientOption) (*UpdateHostOK, 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 host API client.
type CreateHostBadRequest ¶
CreateHostBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateHostBadRequest ¶
func NewCreateHostBadRequest() *CreateHostBadRequest
NewCreateHostBadRequest creates a CreateHostBadRequest with default headers values
func (*CreateHostBadRequest) Error ¶
func (o *CreateHostBadRequest) Error() string
func (*CreateHostBadRequest) GetPayload ¶
func (o *CreateHostBadRequest) GetPayload() *models.ErrorBody
type CreateHostInternalServerError ¶
CreateHostInternalServerError describes a response with status code 500, with default header values.
Server error
func NewCreateHostInternalServerError ¶
func NewCreateHostInternalServerError() *CreateHostInternalServerError
NewCreateHostInternalServerError creates a CreateHostInternalServerError with default headers values
func (*CreateHostInternalServerError) Error ¶
func (o *CreateHostInternalServerError) Error() string
func (*CreateHostInternalServerError) GetPayload ¶
func (o *CreateHostInternalServerError) GetPayload() *models.ErrorBody
type CreateHostNotFound ¶
CreateHostNotFound describes a response with status code 404, with default header values.
Not found
func NewCreateHostNotFound ¶
func NewCreateHostNotFound() *CreateHostNotFound
NewCreateHostNotFound creates a CreateHostNotFound with default headers values
func (*CreateHostNotFound) Error ¶
func (o *CreateHostNotFound) Error() string
func (*CreateHostNotFound) GetPayload ¶
func (o *CreateHostNotFound) GetPayload() *models.ErrorBody
type CreateHostOK ¶
type CreateHostOK struct { XTowerRequestID string Payload []*models.WithTaskBatchHosts }
CreateHostOK describes a response with status code 200, with default header values.
CreateHostOK create host o k
func NewCreateHostOK ¶
func NewCreateHostOK() *CreateHostOK
NewCreateHostOK creates a CreateHostOK with default headers values
func (*CreateHostOK) Error ¶
func (o *CreateHostOK) Error() string
func (*CreateHostOK) GetPayload ¶
func (o *CreateHostOK) GetPayload() []*models.WithTaskBatchHosts
type CreateHostParams ¶
type CreateHostParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody []*models.HostCreationParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateHostParams contains all the parameters to send to the API endpoint
for the create host operation. Typically these are written to a http.Request.
func NewCreateHostParams ¶
func NewCreateHostParams() *CreateHostParams
NewCreateHostParams creates a new CreateHostParams 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 NewCreateHostParamsWithContext ¶
func NewCreateHostParamsWithContext(ctx context.Context) *CreateHostParams
NewCreateHostParamsWithContext creates a new CreateHostParams object with the ability to set a context for a request.
func NewCreateHostParamsWithHTTPClient ¶
func NewCreateHostParamsWithHTTPClient(client *http.Client) *CreateHostParams
NewCreateHostParamsWithHTTPClient creates a new CreateHostParams object with the ability to set a custom HTTPClient for a request.
func NewCreateHostParamsWithTimeout ¶
func NewCreateHostParamsWithTimeout(timeout time.Duration) *CreateHostParams
NewCreateHostParamsWithTimeout creates a new CreateHostParams object with the ability to set a timeout on a request.
func (*CreateHostParams) SetContentLanguage ¶
func (o *CreateHostParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the create host params
func (*CreateHostParams) SetContext ¶
func (o *CreateHostParams) SetContext(ctx context.Context)
SetContext adds the context to the create host params
func (*CreateHostParams) SetDefaults ¶
func (o *CreateHostParams) SetDefaults()
SetDefaults hydrates default values in the create host params (not the query body).
All values with no default are reset to their zero value.
func (*CreateHostParams) SetHTTPClient ¶
func (o *CreateHostParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create host params
func (*CreateHostParams) SetRequestBody ¶
func (o *CreateHostParams) SetRequestBody(requestBody []*models.HostCreationParams)
SetRequestBody adds the requestBody to the create host params
func (*CreateHostParams) SetTimeout ¶
func (o *CreateHostParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create host params
func (*CreateHostParams) WithContentLanguage ¶
func (o *CreateHostParams) WithContentLanguage(contentLanguage *string) *CreateHostParams
WithContentLanguage adds the contentLanguage to the create host params
func (*CreateHostParams) WithContext ¶
func (o *CreateHostParams) WithContext(ctx context.Context) *CreateHostParams
WithContext adds the context to the create host params
func (*CreateHostParams) WithDefaults ¶
func (o *CreateHostParams) WithDefaults() *CreateHostParams
WithDefaults hydrates default values in the create host params (not the query body).
All values with no default are reset to their zero value.
func (*CreateHostParams) WithHTTPClient ¶
func (o *CreateHostParams) WithHTTPClient(client *http.Client) *CreateHostParams
WithHTTPClient adds the HTTPClient to the create host params
func (*CreateHostParams) WithRequestBody ¶
func (o *CreateHostParams) WithRequestBody(requestBody []*models.HostCreationParams) *CreateHostParams
WithRequestBody adds the requestBody to the create host params
func (*CreateHostParams) WithTimeout ¶
func (o *CreateHostParams) WithTimeout(timeout time.Duration) *CreateHostParams
WithTimeout adds the timeout to the create host params
func (*CreateHostParams) WriteToRequest ¶
func (o *CreateHostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateHostReader ¶
type CreateHostReader struct {
// contains filtered or unexported fields
}
CreateHostReader is a Reader for the CreateHost structure.
func (*CreateHostReader) ReadResponse ¶
func (o *CreateHostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetHostsBadRequest ¶
GetHostsBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetHostsBadRequest ¶
func NewGetHostsBadRequest() *GetHostsBadRequest
NewGetHostsBadRequest creates a GetHostsBadRequest with default headers values
func (*GetHostsBadRequest) Error ¶
func (o *GetHostsBadRequest) Error() string
func (*GetHostsBadRequest) GetPayload ¶
func (o *GetHostsBadRequest) GetPayload() *models.ErrorBody
type GetHostsConnectionBadRequest ¶
GetHostsConnectionBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetHostsConnectionBadRequest ¶
func NewGetHostsConnectionBadRequest() *GetHostsConnectionBadRequest
NewGetHostsConnectionBadRequest creates a GetHostsConnectionBadRequest with default headers values
func (*GetHostsConnectionBadRequest) Error ¶
func (o *GetHostsConnectionBadRequest) Error() string
func (*GetHostsConnectionBadRequest) GetPayload ¶
func (o *GetHostsConnectionBadRequest) GetPayload() *models.ErrorBody
type GetHostsConnectionInternalServerError ¶
type GetHostsConnectionInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetHostsConnectionInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetHostsConnectionInternalServerError ¶
func NewGetHostsConnectionInternalServerError() *GetHostsConnectionInternalServerError
NewGetHostsConnectionInternalServerError creates a GetHostsConnectionInternalServerError with default headers values
func (*GetHostsConnectionInternalServerError) Error ¶
func (o *GetHostsConnectionInternalServerError) Error() string
func (*GetHostsConnectionInternalServerError) GetPayload ¶
func (o *GetHostsConnectionInternalServerError) GetPayload() *models.ErrorBody
type GetHostsConnectionNotFound ¶
GetHostsConnectionNotFound describes a response with status code 404, with default header values.
Not found
func NewGetHostsConnectionNotFound ¶
func NewGetHostsConnectionNotFound() *GetHostsConnectionNotFound
NewGetHostsConnectionNotFound creates a GetHostsConnectionNotFound with default headers values
func (*GetHostsConnectionNotFound) Error ¶
func (o *GetHostsConnectionNotFound) Error() string
func (*GetHostsConnectionNotFound) GetPayload ¶
func (o *GetHostsConnectionNotFound) GetPayload() *models.ErrorBody
type GetHostsConnectionOK ¶
type GetHostsConnectionOK struct { XTowerRequestID string Payload *models.HostConnection }
GetHostsConnectionOK describes a response with status code 200, with default header values.
GetHostsConnectionOK get hosts connection o k
func NewGetHostsConnectionOK ¶
func NewGetHostsConnectionOK() *GetHostsConnectionOK
NewGetHostsConnectionOK creates a GetHostsConnectionOK with default headers values
func (*GetHostsConnectionOK) Error ¶
func (o *GetHostsConnectionOK) Error() string
func (*GetHostsConnectionOK) GetPayload ¶
func (o *GetHostsConnectionOK) GetPayload() *models.HostConnection
type GetHostsConnectionParams ¶
type GetHostsConnectionParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetHostsConnectionRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetHostsConnectionParams contains all the parameters to send to the API endpoint
for the get hosts connection operation. Typically these are written to a http.Request.
func NewGetHostsConnectionParams ¶
func NewGetHostsConnectionParams() *GetHostsConnectionParams
NewGetHostsConnectionParams creates a new GetHostsConnectionParams 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 NewGetHostsConnectionParamsWithContext ¶
func NewGetHostsConnectionParamsWithContext(ctx context.Context) *GetHostsConnectionParams
NewGetHostsConnectionParamsWithContext creates a new GetHostsConnectionParams object with the ability to set a context for a request.
func NewGetHostsConnectionParamsWithHTTPClient ¶
func NewGetHostsConnectionParamsWithHTTPClient(client *http.Client) *GetHostsConnectionParams
NewGetHostsConnectionParamsWithHTTPClient creates a new GetHostsConnectionParams object with the ability to set a custom HTTPClient for a request.
func NewGetHostsConnectionParamsWithTimeout ¶
func NewGetHostsConnectionParamsWithTimeout(timeout time.Duration) *GetHostsConnectionParams
NewGetHostsConnectionParamsWithTimeout creates a new GetHostsConnectionParams object with the ability to set a timeout on a request.
func (*GetHostsConnectionParams) SetContentLanguage ¶
func (o *GetHostsConnectionParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get hosts connection params
func (*GetHostsConnectionParams) SetContext ¶
func (o *GetHostsConnectionParams) SetContext(ctx context.Context)
SetContext adds the context to the get hosts connection params
func (*GetHostsConnectionParams) SetDefaults ¶
func (o *GetHostsConnectionParams) SetDefaults()
SetDefaults hydrates default values in the get hosts connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostsConnectionParams) SetHTTPClient ¶
func (o *GetHostsConnectionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get hosts connection params
func (*GetHostsConnectionParams) SetRequestBody ¶
func (o *GetHostsConnectionParams) SetRequestBody(requestBody *models.GetHostsConnectionRequestBody)
SetRequestBody adds the requestBody to the get hosts connection params
func (*GetHostsConnectionParams) SetTimeout ¶
func (o *GetHostsConnectionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get hosts connection params
func (*GetHostsConnectionParams) WithContentLanguage ¶
func (o *GetHostsConnectionParams) WithContentLanguage(contentLanguage *string) *GetHostsConnectionParams
WithContentLanguage adds the contentLanguage to the get hosts connection params
func (*GetHostsConnectionParams) WithContext ¶
func (o *GetHostsConnectionParams) WithContext(ctx context.Context) *GetHostsConnectionParams
WithContext adds the context to the get hosts connection params
func (*GetHostsConnectionParams) WithDefaults ¶
func (o *GetHostsConnectionParams) WithDefaults() *GetHostsConnectionParams
WithDefaults hydrates default values in the get hosts connection params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostsConnectionParams) WithHTTPClient ¶
func (o *GetHostsConnectionParams) WithHTTPClient(client *http.Client) *GetHostsConnectionParams
WithHTTPClient adds the HTTPClient to the get hosts connection params
func (*GetHostsConnectionParams) WithRequestBody ¶
func (o *GetHostsConnectionParams) WithRequestBody(requestBody *models.GetHostsConnectionRequestBody) *GetHostsConnectionParams
WithRequestBody adds the requestBody to the get hosts connection params
func (*GetHostsConnectionParams) WithTimeout ¶
func (o *GetHostsConnectionParams) WithTimeout(timeout time.Duration) *GetHostsConnectionParams
WithTimeout adds the timeout to the get hosts connection params
func (*GetHostsConnectionParams) WriteToRequest ¶
func (o *GetHostsConnectionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHostsConnectionReader ¶
type GetHostsConnectionReader struct {
// contains filtered or unexported fields
}
GetHostsConnectionReader is a Reader for the GetHostsConnection structure.
func (*GetHostsConnectionReader) ReadResponse ¶
func (o *GetHostsConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetHostsInternalServerError ¶
GetHostsInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetHostsInternalServerError ¶
func NewGetHostsInternalServerError() *GetHostsInternalServerError
NewGetHostsInternalServerError creates a GetHostsInternalServerError with default headers values
func (*GetHostsInternalServerError) Error ¶
func (o *GetHostsInternalServerError) Error() string
func (*GetHostsInternalServerError) GetPayload ¶
func (o *GetHostsInternalServerError) GetPayload() *models.ErrorBody
type GetHostsNotFound ¶
GetHostsNotFound describes a response with status code 404, with default header values.
Not found
func NewGetHostsNotFound ¶
func NewGetHostsNotFound() *GetHostsNotFound
NewGetHostsNotFound creates a GetHostsNotFound with default headers values
func (*GetHostsNotFound) Error ¶
func (o *GetHostsNotFound) Error() string
func (*GetHostsNotFound) GetPayload ¶
func (o *GetHostsNotFound) GetPayload() *models.ErrorBody
type GetHostsOK ¶
GetHostsOK describes a response with status code 200, with default header values.
GetHostsOK get hosts o k
func NewGetHostsOK ¶
func NewGetHostsOK() *GetHostsOK
NewGetHostsOK creates a GetHostsOK with default headers values
func (*GetHostsOK) Error ¶
func (o *GetHostsOK) Error() string
func (*GetHostsOK) GetPayload ¶
func (o *GetHostsOK) GetPayload() []*models.Host
type GetHostsParams ¶
type GetHostsParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetHostsRequestBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetHostsParams contains all the parameters to send to the API endpoint
for the get hosts operation. Typically these are written to a http.Request.
func NewGetHostsParams ¶
func NewGetHostsParams() *GetHostsParams
NewGetHostsParams creates a new GetHostsParams 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 NewGetHostsParamsWithContext ¶
func NewGetHostsParamsWithContext(ctx context.Context) *GetHostsParams
NewGetHostsParamsWithContext creates a new GetHostsParams object with the ability to set a context for a request.
func NewGetHostsParamsWithHTTPClient ¶
func NewGetHostsParamsWithHTTPClient(client *http.Client) *GetHostsParams
NewGetHostsParamsWithHTTPClient creates a new GetHostsParams object with the ability to set a custom HTTPClient for a request.
func NewGetHostsParamsWithTimeout ¶
func NewGetHostsParamsWithTimeout(timeout time.Duration) *GetHostsParams
NewGetHostsParamsWithTimeout creates a new GetHostsParams object with the ability to set a timeout on a request.
func (*GetHostsParams) SetContentLanguage ¶
func (o *GetHostsParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get hosts params
func (*GetHostsParams) SetContext ¶
func (o *GetHostsParams) SetContext(ctx context.Context)
SetContext adds the context to the get hosts params
func (*GetHostsParams) SetDefaults ¶
func (o *GetHostsParams) SetDefaults()
SetDefaults hydrates default values in the get hosts params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostsParams) SetHTTPClient ¶
func (o *GetHostsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get hosts params
func (*GetHostsParams) SetRequestBody ¶
func (o *GetHostsParams) SetRequestBody(requestBody *models.GetHostsRequestBody)
SetRequestBody adds the requestBody to the get hosts params
func (*GetHostsParams) SetTimeout ¶
func (o *GetHostsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get hosts params
func (*GetHostsParams) WithContentLanguage ¶
func (o *GetHostsParams) WithContentLanguage(contentLanguage *string) *GetHostsParams
WithContentLanguage adds the contentLanguage to the get hosts params
func (*GetHostsParams) WithContext ¶
func (o *GetHostsParams) WithContext(ctx context.Context) *GetHostsParams
WithContext adds the context to the get hosts params
func (*GetHostsParams) WithDefaults ¶
func (o *GetHostsParams) WithDefaults() *GetHostsParams
WithDefaults hydrates default values in the get hosts params (not the query body).
All values with no default are reset to their zero value.
func (*GetHostsParams) WithHTTPClient ¶
func (o *GetHostsParams) WithHTTPClient(client *http.Client) *GetHostsParams
WithHTTPClient adds the HTTPClient to the get hosts params
func (*GetHostsParams) WithRequestBody ¶
func (o *GetHostsParams) WithRequestBody(requestBody *models.GetHostsRequestBody) *GetHostsParams
WithRequestBody adds the requestBody to the get hosts params
func (*GetHostsParams) WithTimeout ¶
func (o *GetHostsParams) WithTimeout(timeout time.Duration) *GetHostsParams
WithTimeout adds the timeout to the get hosts params
func (*GetHostsParams) WriteToRequest ¶
func (o *GetHostsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetHostsReader ¶
type GetHostsReader struct {
// contains filtered or unexported fields
}
GetHostsReader is a Reader for the GetHosts structure.
func (*GetHostsReader) ReadResponse ¶
func (o *GetHostsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TriggerDiskBlinkBadRequest ¶
TriggerDiskBlinkBadRequest describes a response with status code 400, with default header values.
Bad request
func NewTriggerDiskBlinkBadRequest ¶
func NewTriggerDiskBlinkBadRequest() *TriggerDiskBlinkBadRequest
NewTriggerDiskBlinkBadRequest creates a TriggerDiskBlinkBadRequest with default headers values
func (*TriggerDiskBlinkBadRequest) Error ¶
func (o *TriggerDiskBlinkBadRequest) Error() string
func (*TriggerDiskBlinkBadRequest) GetPayload ¶
func (o *TriggerDiskBlinkBadRequest) GetPayload() *models.ErrorBody
type TriggerDiskBlinkInternalServerError ¶
type TriggerDiskBlinkInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
TriggerDiskBlinkInternalServerError describes a response with status code 500, with default header values.
Server error
func NewTriggerDiskBlinkInternalServerError ¶
func NewTriggerDiskBlinkInternalServerError() *TriggerDiskBlinkInternalServerError
NewTriggerDiskBlinkInternalServerError creates a TriggerDiskBlinkInternalServerError with default headers values
func (*TriggerDiskBlinkInternalServerError) Error ¶
func (o *TriggerDiskBlinkInternalServerError) Error() string
func (*TriggerDiskBlinkInternalServerError) GetPayload ¶
func (o *TriggerDiskBlinkInternalServerError) GetPayload() *models.ErrorBody
type TriggerDiskBlinkNotFound ¶
TriggerDiskBlinkNotFound describes a response with status code 404, with default header values.
Not found
func NewTriggerDiskBlinkNotFound ¶
func NewTriggerDiskBlinkNotFound() *TriggerDiskBlinkNotFound
NewTriggerDiskBlinkNotFound creates a TriggerDiskBlinkNotFound with default headers values
func (*TriggerDiskBlinkNotFound) Error ¶
func (o *TriggerDiskBlinkNotFound) Error() string
func (*TriggerDiskBlinkNotFound) GetPayload ¶
func (o *TriggerDiskBlinkNotFound) GetPayload() *models.ErrorBody
type TriggerDiskBlinkOK ¶
type TriggerDiskBlinkOK struct { XTowerRequestID string Payload []*models.WithTaskHost }
TriggerDiskBlinkOK describes a response with status code 200, with default header values.
TriggerDiskBlinkOK trigger disk blink o k
func NewTriggerDiskBlinkOK ¶
func NewTriggerDiskBlinkOK() *TriggerDiskBlinkOK
NewTriggerDiskBlinkOK creates a TriggerDiskBlinkOK with default headers values
func (*TriggerDiskBlinkOK) Error ¶
func (o *TriggerDiskBlinkOK) Error() string
func (*TriggerDiskBlinkOK) GetPayload ¶
func (o *TriggerDiskBlinkOK) GetPayload() []*models.WithTaskHost
type TriggerDiskBlinkParams ¶
type TriggerDiskBlinkParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody []*models.TriggerDiskBlinkParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TriggerDiskBlinkParams contains all the parameters to send to the API endpoint
for the trigger disk blink operation. Typically these are written to a http.Request.
func NewTriggerDiskBlinkParams ¶
func NewTriggerDiskBlinkParams() *TriggerDiskBlinkParams
NewTriggerDiskBlinkParams creates a new TriggerDiskBlinkParams 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 NewTriggerDiskBlinkParamsWithContext ¶
func NewTriggerDiskBlinkParamsWithContext(ctx context.Context) *TriggerDiskBlinkParams
NewTriggerDiskBlinkParamsWithContext creates a new TriggerDiskBlinkParams object with the ability to set a context for a request.
func NewTriggerDiskBlinkParamsWithHTTPClient ¶
func NewTriggerDiskBlinkParamsWithHTTPClient(client *http.Client) *TriggerDiskBlinkParams
NewTriggerDiskBlinkParamsWithHTTPClient creates a new TriggerDiskBlinkParams object with the ability to set a custom HTTPClient for a request.
func NewTriggerDiskBlinkParamsWithTimeout ¶
func NewTriggerDiskBlinkParamsWithTimeout(timeout time.Duration) *TriggerDiskBlinkParams
NewTriggerDiskBlinkParamsWithTimeout creates a new TriggerDiskBlinkParams object with the ability to set a timeout on a request.
func (*TriggerDiskBlinkParams) SetContentLanguage ¶
func (o *TriggerDiskBlinkParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the trigger disk blink params
func (*TriggerDiskBlinkParams) SetContext ¶
func (o *TriggerDiskBlinkParams) SetContext(ctx context.Context)
SetContext adds the context to the trigger disk blink params
func (*TriggerDiskBlinkParams) SetDefaults ¶
func (o *TriggerDiskBlinkParams) SetDefaults()
SetDefaults hydrates default values in the trigger disk blink params (not the query body).
All values with no default are reset to their zero value.
func (*TriggerDiskBlinkParams) SetHTTPClient ¶
func (o *TriggerDiskBlinkParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the trigger disk blink params
func (*TriggerDiskBlinkParams) SetRequestBody ¶
func (o *TriggerDiskBlinkParams) SetRequestBody(requestBody []*models.TriggerDiskBlinkParams)
SetRequestBody adds the requestBody to the trigger disk blink params
func (*TriggerDiskBlinkParams) SetTimeout ¶
func (o *TriggerDiskBlinkParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the trigger disk blink params
func (*TriggerDiskBlinkParams) WithContentLanguage ¶
func (o *TriggerDiskBlinkParams) WithContentLanguage(contentLanguage *string) *TriggerDiskBlinkParams
WithContentLanguage adds the contentLanguage to the trigger disk blink params
func (*TriggerDiskBlinkParams) WithContext ¶
func (o *TriggerDiskBlinkParams) WithContext(ctx context.Context) *TriggerDiskBlinkParams
WithContext adds the context to the trigger disk blink params
func (*TriggerDiskBlinkParams) WithDefaults ¶
func (o *TriggerDiskBlinkParams) WithDefaults() *TriggerDiskBlinkParams
WithDefaults hydrates default values in the trigger disk blink params (not the query body).
All values with no default are reset to their zero value.
func (*TriggerDiskBlinkParams) WithHTTPClient ¶
func (o *TriggerDiskBlinkParams) WithHTTPClient(client *http.Client) *TriggerDiskBlinkParams
WithHTTPClient adds the HTTPClient to the trigger disk blink params
func (*TriggerDiskBlinkParams) WithRequestBody ¶
func (o *TriggerDiskBlinkParams) WithRequestBody(requestBody []*models.TriggerDiskBlinkParams) *TriggerDiskBlinkParams
WithRequestBody adds the requestBody to the trigger disk blink params
func (*TriggerDiskBlinkParams) WithTimeout ¶
func (o *TriggerDiskBlinkParams) WithTimeout(timeout time.Duration) *TriggerDiskBlinkParams
WithTimeout adds the timeout to the trigger disk blink params
func (*TriggerDiskBlinkParams) WriteToRequest ¶
func (o *TriggerDiskBlinkParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TriggerDiskBlinkReader ¶
type TriggerDiskBlinkReader struct {
// contains filtered or unexported fields
}
TriggerDiskBlinkReader is a Reader for the TriggerDiskBlink structure.
func (*TriggerDiskBlinkReader) ReadResponse ¶
func (o *TriggerDiskBlinkReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateHostBadRequest ¶
UpdateHostBadRequest describes a response with status code 400, with default header values.
Bad request
func NewUpdateHostBadRequest ¶
func NewUpdateHostBadRequest() *UpdateHostBadRequest
NewUpdateHostBadRequest creates a UpdateHostBadRequest with default headers values
func (*UpdateHostBadRequest) Error ¶
func (o *UpdateHostBadRequest) Error() string
func (*UpdateHostBadRequest) GetPayload ¶
func (o *UpdateHostBadRequest) GetPayload() *models.ErrorBody
type UpdateHostInternalServerError ¶
UpdateHostInternalServerError describes a response with status code 500, with default header values.
Server error
func NewUpdateHostInternalServerError ¶
func NewUpdateHostInternalServerError() *UpdateHostInternalServerError
NewUpdateHostInternalServerError creates a UpdateHostInternalServerError with default headers values
func (*UpdateHostInternalServerError) Error ¶
func (o *UpdateHostInternalServerError) Error() string
func (*UpdateHostInternalServerError) GetPayload ¶
func (o *UpdateHostInternalServerError) GetPayload() *models.ErrorBody
type UpdateHostNotFound ¶
UpdateHostNotFound describes a response with status code 404, with default header values.
Not found
func NewUpdateHostNotFound ¶
func NewUpdateHostNotFound() *UpdateHostNotFound
NewUpdateHostNotFound creates a UpdateHostNotFound with default headers values
func (*UpdateHostNotFound) Error ¶
func (o *UpdateHostNotFound) Error() string
func (*UpdateHostNotFound) GetPayload ¶
func (o *UpdateHostNotFound) GetPayload() *models.ErrorBody
type UpdateHostOK ¶
type UpdateHostOK struct { XTowerRequestID string Payload []*models.WithTaskHost }
UpdateHostOK describes a response with status code 200, with default header values.
UpdateHostOK update host o k
func NewUpdateHostOK ¶
func NewUpdateHostOK() *UpdateHostOK
NewUpdateHostOK creates a UpdateHostOK with default headers values
func (*UpdateHostOK) Error ¶
func (o *UpdateHostOK) Error() string
func (*UpdateHostOK) GetPayload ¶
func (o *UpdateHostOK) GetPayload() []*models.WithTaskHost
type UpdateHostParams ¶
type UpdateHostParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.HostUpdationParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateHostParams contains all the parameters to send to the API endpoint
for the update host operation. Typically these are written to a http.Request.
func NewUpdateHostParams ¶
func NewUpdateHostParams() *UpdateHostParams
NewUpdateHostParams creates a new UpdateHostParams 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 NewUpdateHostParamsWithContext ¶
func NewUpdateHostParamsWithContext(ctx context.Context) *UpdateHostParams
NewUpdateHostParamsWithContext creates a new UpdateHostParams object with the ability to set a context for a request.
func NewUpdateHostParamsWithHTTPClient ¶
func NewUpdateHostParamsWithHTTPClient(client *http.Client) *UpdateHostParams
NewUpdateHostParamsWithHTTPClient creates a new UpdateHostParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateHostParamsWithTimeout ¶
func NewUpdateHostParamsWithTimeout(timeout time.Duration) *UpdateHostParams
NewUpdateHostParamsWithTimeout creates a new UpdateHostParams object with the ability to set a timeout on a request.
func (*UpdateHostParams) SetContentLanguage ¶
func (o *UpdateHostParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the update host params
func (*UpdateHostParams) SetContext ¶
func (o *UpdateHostParams) SetContext(ctx context.Context)
SetContext adds the context to the update host params
func (*UpdateHostParams) SetDefaults ¶
func (o *UpdateHostParams) SetDefaults()
SetDefaults hydrates default values in the update host params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateHostParams) SetHTTPClient ¶
func (o *UpdateHostParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update host params
func (*UpdateHostParams) SetRequestBody ¶
func (o *UpdateHostParams) SetRequestBody(requestBody *models.HostUpdationParams)
SetRequestBody adds the requestBody to the update host params
func (*UpdateHostParams) SetTimeout ¶
func (o *UpdateHostParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update host params
func (*UpdateHostParams) WithContentLanguage ¶
func (o *UpdateHostParams) WithContentLanguage(contentLanguage *string) *UpdateHostParams
WithContentLanguage adds the contentLanguage to the update host params
func (*UpdateHostParams) WithContext ¶
func (o *UpdateHostParams) WithContext(ctx context.Context) *UpdateHostParams
WithContext adds the context to the update host params
func (*UpdateHostParams) WithDefaults ¶
func (o *UpdateHostParams) WithDefaults() *UpdateHostParams
WithDefaults hydrates default values in the update host params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateHostParams) WithHTTPClient ¶
func (o *UpdateHostParams) WithHTTPClient(client *http.Client) *UpdateHostParams
WithHTTPClient adds the HTTPClient to the update host params
func (*UpdateHostParams) WithRequestBody ¶
func (o *UpdateHostParams) WithRequestBody(requestBody *models.HostUpdationParams) *UpdateHostParams
WithRequestBody adds the requestBody to the update host params
func (*UpdateHostParams) WithTimeout ¶
func (o *UpdateHostParams) WithTimeout(timeout time.Duration) *UpdateHostParams
WithTimeout adds the timeout to the update host params
func (*UpdateHostParams) WriteToRequest ¶
func (o *UpdateHostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateHostReader ¶
type UpdateHostReader struct {
// contains filtered or unexported fields
}
UpdateHostReader is a Reader for the UpdateHost structure.
func (*UpdateHostReader) ReadResponse ¶
func (o *UpdateHostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.