Documentation
¶
Index ¶
- type Client
- func (a *Client) GetAgentConfig(params *GetAgentConfigParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAgentConfigOK, error)
- func (a *Client) GetCommands(params *GetCommandsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetCommandsOK, error)
- func (a *Client) PatchAgentCommandStatus(params *PatchAgentCommandStatusParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchAgentCommandStatusOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetAgentConfigBadRequest
- type GetAgentConfigInternalServerError
- type GetAgentConfigNotFound
- type GetAgentConfigOK
- type GetAgentConfigParams
- func NewGetAgentConfigParams() *GetAgentConfigParams
- func NewGetAgentConfigParamsWithContext(ctx context.Context) *GetAgentConfigParams
- func NewGetAgentConfigParamsWithHTTPClient(client *http.Client) *GetAgentConfigParams
- func NewGetAgentConfigParamsWithTimeout(timeout time.Duration) *GetAgentConfigParams
- func (o *GetAgentConfigParams) SetContext(ctx context.Context)
- func (o *GetAgentConfigParams) SetDefaults()
- func (o *GetAgentConfigParams) SetHTTPClient(client *http.Client)
- func (o *GetAgentConfigParams) SetTimeout(timeout time.Duration)
- func (o *GetAgentConfigParams) SetVersion(version *string)
- func (o *GetAgentConfigParams) WithContext(ctx context.Context) *GetAgentConfigParams
- func (o *GetAgentConfigParams) WithDefaults() *GetAgentConfigParams
- func (o *GetAgentConfigParams) WithHTTPClient(client *http.Client) *GetAgentConfigParams
- func (o *GetAgentConfigParams) WithTimeout(timeout time.Duration) *GetAgentConfigParams
- func (o *GetAgentConfigParams) WithVersion(version *string) *GetAgentConfigParams
- func (o *GetAgentConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAgentConfigReader
- type GetAgentConfigTooManyRequests
- type GetAgentConfigUnauthorized
- type GetCommandsBadRequest
- type GetCommandsInternalServerError
- type GetCommandsNotFound
- type GetCommandsOK
- type GetCommandsParams
- func (o *GetCommandsParams) SetContext(ctx context.Context)
- func (o *GetCommandsParams) SetDefaults()
- func (o *GetCommandsParams) SetHTTPClient(client *http.Client)
- func (o *GetCommandsParams) SetTimeout(timeout time.Duration)
- func (o *GetCommandsParams) WithContext(ctx context.Context) *GetCommandsParams
- func (o *GetCommandsParams) WithDefaults() *GetCommandsParams
- func (o *GetCommandsParams) WithHTTPClient(client *http.Client) *GetCommandsParams
- func (o *GetCommandsParams) WithTimeout(timeout time.Duration) *GetCommandsParams
- func (o *GetCommandsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCommandsReader
- type GetCommandsTooManyRequests
- type GetCommandsUnauthorized
- type PatchAgentCommandStatusBadRequest
- type PatchAgentCommandStatusInternalServerError
- type PatchAgentCommandStatusNotFound
- type PatchAgentCommandStatusOK
- type PatchAgentCommandStatusParams
- func NewPatchAgentCommandStatusParams() *PatchAgentCommandStatusParams
- func NewPatchAgentCommandStatusParamsWithContext(ctx context.Context) *PatchAgentCommandStatusParams
- func NewPatchAgentCommandStatusParamsWithHTTPClient(client *http.Client) *PatchAgentCommandStatusParams
- func NewPatchAgentCommandStatusParamsWithTimeout(timeout time.Duration) *PatchAgentCommandStatusParams
- func (o *PatchAgentCommandStatusParams) SetAgentID(agentID int64)
- func (o *PatchAgentCommandStatusParams) SetBody(body *models.PatchCommandStatus)
- func (o *PatchAgentCommandStatusParams) SetCommandID(commandID string)
- func (o *PatchAgentCommandStatusParams) SetContext(ctx context.Context)
- func (o *PatchAgentCommandStatusParams) SetDefaults()
- func (o *PatchAgentCommandStatusParams) SetHTTPClient(client *http.Client)
- func (o *PatchAgentCommandStatusParams) SetTimeout(timeout time.Duration)
- func (o *PatchAgentCommandStatusParams) WithAgentID(agentID int64) *PatchAgentCommandStatusParams
- func (o *PatchAgentCommandStatusParams) WithBody(body *models.PatchCommandStatus) *PatchAgentCommandStatusParams
- func (o *PatchAgentCommandStatusParams) WithCommandID(commandID string) *PatchAgentCommandStatusParams
- func (o *PatchAgentCommandStatusParams) WithContext(ctx context.Context) *PatchAgentCommandStatusParams
- func (o *PatchAgentCommandStatusParams) WithDefaults() *PatchAgentCommandStatusParams
- func (o *PatchAgentCommandStatusParams) WithHTTPClient(client *http.Client) *PatchAgentCommandStatusParams
- func (o *PatchAgentCommandStatusParams) WithTimeout(timeout time.Duration) *PatchAgentCommandStatusParams
- func (o *PatchAgentCommandStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAgentCommandStatusReader
- type PatchAgentCommandStatusTooManyRequests
- type PatchAgentCommandStatusUnauthorized
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 agents API
func (*Client) GetAgentConfig ¶
func (a *Client) GetAgentConfig(params *GetAgentConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentConfigOK, error)
GetAgentConfig gets agent config
func (*Client) GetCommands ¶
func (a *Client) GetCommands(params *GetCommandsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCommandsOK, error)
GetCommands gets agent and sub devices active commands
func (*Client) PatchAgentCommandStatus ¶
func (a *Client) PatchAgentCommandStatus(params *PatchAgentCommandStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAgentCommandStatusOK, error)
PatchAgentCommandStatus patches agent command status
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetAgentConfig(params *GetAgentConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentConfigOK, error) GetCommands(params *GetCommandsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCommandsOK, error) PatchAgentCommandStatus(params *PatchAgentCommandStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAgentCommandStatusOK, 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 agents API client.
type GetAgentConfigBadRequest ¶
type GetAgentConfigBadRequest struct {
Payload *models.ErrorResponse
}
GetAgentConfigBadRequest describes a response with status code 400, with default header values.
Bad params suplied
func NewGetAgentConfigBadRequest ¶
func NewGetAgentConfigBadRequest() *GetAgentConfigBadRequest
NewGetAgentConfigBadRequest creates a GetAgentConfigBadRequest with default headers values
func (*GetAgentConfigBadRequest) Error ¶
func (o *GetAgentConfigBadRequest) Error() string
func (*GetAgentConfigBadRequest) GetPayload ¶
func (o *GetAgentConfigBadRequest) GetPayload() *models.ErrorResponse
type GetAgentConfigInternalServerError ¶
type GetAgentConfigInternalServerError struct {
Payload *models.ErrorResponse
}
GetAgentConfigInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewGetAgentConfigInternalServerError ¶
func NewGetAgentConfigInternalServerError() *GetAgentConfigInternalServerError
NewGetAgentConfigInternalServerError creates a GetAgentConfigInternalServerError with default headers values
func (*GetAgentConfigInternalServerError) Error ¶
func (o *GetAgentConfigInternalServerError) Error() string
func (*GetAgentConfigInternalServerError) GetPayload ¶
func (o *GetAgentConfigInternalServerError) GetPayload() *models.ErrorResponse
type GetAgentConfigNotFound ¶
type GetAgentConfigNotFound struct {
Payload *models.ErrorResponse
}
GetAgentConfigNotFound describes a response with status code 404, with default header values.
Tag not found
func NewGetAgentConfigNotFound ¶
func NewGetAgentConfigNotFound() *GetAgentConfigNotFound
NewGetAgentConfigNotFound creates a GetAgentConfigNotFound with default headers values
func (*GetAgentConfigNotFound) Error ¶
func (o *GetAgentConfigNotFound) Error() string
func (*GetAgentConfigNotFound) GetPayload ¶
func (o *GetAgentConfigNotFound) GetPayload() *models.ErrorResponse
type GetAgentConfigOK ¶
type GetAgentConfigOK struct {
Payload *models.ConfigObject
}
GetAgentConfigOK describes a response with status code 200, with default header values.
OK
func NewGetAgentConfigOK ¶
func NewGetAgentConfigOK() *GetAgentConfigOK
NewGetAgentConfigOK creates a GetAgentConfigOK with default headers values
func (*GetAgentConfigOK) Error ¶
func (o *GetAgentConfigOK) Error() string
func (*GetAgentConfigOK) GetPayload ¶
func (o *GetAgentConfigOK) GetPayload() *models.ConfigObject
type GetAgentConfigParams ¶
type GetAgentConfigParams struct { // Version. Version *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAgentConfigParams contains all the parameters to send to the API endpoint
for the get agent config operation. Typically these are written to a http.Request.
func NewGetAgentConfigParams ¶
func NewGetAgentConfigParams() *GetAgentConfigParams
NewGetAgentConfigParams creates a new GetAgentConfigParams 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 NewGetAgentConfigParamsWithContext ¶
func NewGetAgentConfigParamsWithContext(ctx context.Context) *GetAgentConfigParams
NewGetAgentConfigParamsWithContext creates a new GetAgentConfigParams object with the ability to set a context for a request.
func NewGetAgentConfigParamsWithHTTPClient ¶
func NewGetAgentConfigParamsWithHTTPClient(client *http.Client) *GetAgentConfigParams
NewGetAgentConfigParamsWithHTTPClient creates a new GetAgentConfigParams object with the ability to set a custom HTTPClient for a request.
func NewGetAgentConfigParamsWithTimeout ¶
func NewGetAgentConfigParamsWithTimeout(timeout time.Duration) *GetAgentConfigParams
NewGetAgentConfigParamsWithTimeout creates a new GetAgentConfigParams object with the ability to set a timeout on a request.
func (*GetAgentConfigParams) SetContext ¶
func (o *GetAgentConfigParams) SetContext(ctx context.Context)
SetContext adds the context to the get agent config params
func (*GetAgentConfigParams) SetDefaults ¶
func (o *GetAgentConfigParams) SetDefaults()
SetDefaults hydrates default values in the get agent config params (not the query body).
All values with no default are reset to their zero value.
func (*GetAgentConfigParams) SetHTTPClient ¶
func (o *GetAgentConfigParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get agent config params
func (*GetAgentConfigParams) SetTimeout ¶
func (o *GetAgentConfigParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get agent config params
func (*GetAgentConfigParams) SetVersion ¶
func (o *GetAgentConfigParams) SetVersion(version *string)
SetVersion adds the version to the get agent config params
func (*GetAgentConfigParams) WithContext ¶
func (o *GetAgentConfigParams) WithContext(ctx context.Context) *GetAgentConfigParams
WithContext adds the context to the get agent config params
func (*GetAgentConfigParams) WithDefaults ¶
func (o *GetAgentConfigParams) WithDefaults() *GetAgentConfigParams
WithDefaults hydrates default values in the get agent config params (not the query body).
All values with no default are reset to their zero value.
func (*GetAgentConfigParams) WithHTTPClient ¶
func (o *GetAgentConfigParams) WithHTTPClient(client *http.Client) *GetAgentConfigParams
WithHTTPClient adds the HTTPClient to the get agent config params
func (*GetAgentConfigParams) WithTimeout ¶
func (o *GetAgentConfigParams) WithTimeout(timeout time.Duration) *GetAgentConfigParams
WithTimeout adds the timeout to the get agent config params
func (*GetAgentConfigParams) WithVersion ¶
func (o *GetAgentConfigParams) WithVersion(version *string) *GetAgentConfigParams
WithVersion adds the version to the get agent config params
func (*GetAgentConfigParams) WriteToRequest ¶
func (o *GetAgentConfigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAgentConfigReader ¶
type GetAgentConfigReader struct {
// contains filtered or unexported fields
}
GetAgentConfigReader is a Reader for the GetAgentConfig structure.
func (*GetAgentConfigReader) ReadResponse ¶
func (o *GetAgentConfigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAgentConfigTooManyRequests ¶
type GetAgentConfigTooManyRequests struct {
Payload *models.ErrorResponse
}
GetAgentConfigTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewGetAgentConfigTooManyRequests ¶
func NewGetAgentConfigTooManyRequests() *GetAgentConfigTooManyRequests
NewGetAgentConfigTooManyRequests creates a GetAgentConfigTooManyRequests with default headers values
func (*GetAgentConfigTooManyRequests) Error ¶
func (o *GetAgentConfigTooManyRequests) Error() string
func (*GetAgentConfigTooManyRequests) GetPayload ¶
func (o *GetAgentConfigTooManyRequests) GetPayload() *models.ErrorResponse
type GetAgentConfigUnauthorized ¶
type GetAgentConfigUnauthorized struct {
}GetAgentConfigUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetAgentConfigUnauthorized ¶
func NewGetAgentConfigUnauthorized() *GetAgentConfigUnauthorized
NewGetAgentConfigUnauthorized creates a GetAgentConfigUnauthorized with default headers values
func (*GetAgentConfigUnauthorized) Error ¶
func (o *GetAgentConfigUnauthorized) Error() string
func (*GetAgentConfigUnauthorized) GetPayload ¶
func (o *GetAgentConfigUnauthorized) GetPayload() *models.ErrorResponse
type GetCommandsBadRequest ¶
type GetCommandsBadRequest struct {
Payload *models.ErrorResponse
}
GetCommandsBadRequest describes a response with status code 400, with default header values.
Bad params suplied
func NewGetCommandsBadRequest ¶
func NewGetCommandsBadRequest() *GetCommandsBadRequest
NewGetCommandsBadRequest creates a GetCommandsBadRequest with default headers values
func (*GetCommandsBadRequest) Error ¶
func (o *GetCommandsBadRequest) Error() string
func (*GetCommandsBadRequest) GetPayload ¶
func (o *GetCommandsBadRequest) GetPayload() *models.ErrorResponse
type GetCommandsInternalServerError ¶
type GetCommandsInternalServerError struct {
Payload *models.ErrorResponse
}
GetCommandsInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewGetCommandsInternalServerError ¶
func NewGetCommandsInternalServerError() *GetCommandsInternalServerError
NewGetCommandsInternalServerError creates a GetCommandsInternalServerError with default headers values
func (*GetCommandsInternalServerError) Error ¶
func (o *GetCommandsInternalServerError) Error() string
func (*GetCommandsInternalServerError) GetPayload ¶
func (o *GetCommandsInternalServerError) GetPayload() *models.ErrorResponse
type GetCommandsNotFound ¶
type GetCommandsNotFound struct {
Payload *models.ErrorResponse
}
GetCommandsNotFound describes a response with status code 404, with default header values.
Tag not found
func NewGetCommandsNotFound ¶
func NewGetCommandsNotFound() *GetCommandsNotFound
NewGetCommandsNotFound creates a GetCommandsNotFound with default headers values
func (*GetCommandsNotFound) Error ¶
func (o *GetCommandsNotFound) Error() string
func (*GetCommandsNotFound) GetPayload ¶
func (o *GetCommandsNotFound) GetPayload() *models.ErrorResponse
type GetCommandsOK ¶
type GetCommandsOK struct {
Payload *models.AgentDevicesCommandsObject
}
GetCommandsOK describes a response with status code 200, with default header values.
OK
func NewGetCommandsOK ¶
func NewGetCommandsOK() *GetCommandsOK
NewGetCommandsOK creates a GetCommandsOK with default headers values
func (*GetCommandsOK) Error ¶
func (o *GetCommandsOK) Error() string
func (*GetCommandsOK) GetPayload ¶
func (o *GetCommandsOK) GetPayload() *models.AgentDevicesCommandsObject
type GetCommandsParams ¶
type GetCommandsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCommandsParams contains all the parameters to send to the API endpoint
for the get commands operation. Typically these are written to a http.Request.
func NewGetCommandsParams ¶
func NewGetCommandsParams() *GetCommandsParams
NewGetCommandsParams creates a new GetCommandsParams 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 NewGetCommandsParamsWithContext ¶
func NewGetCommandsParamsWithContext(ctx context.Context) *GetCommandsParams
NewGetCommandsParamsWithContext creates a new GetCommandsParams object with the ability to set a context for a request.
func NewGetCommandsParamsWithHTTPClient ¶
func NewGetCommandsParamsWithHTTPClient(client *http.Client) *GetCommandsParams
NewGetCommandsParamsWithHTTPClient creates a new GetCommandsParams object with the ability to set a custom HTTPClient for a request.
func NewGetCommandsParamsWithTimeout ¶
func NewGetCommandsParamsWithTimeout(timeout time.Duration) *GetCommandsParams
NewGetCommandsParamsWithTimeout creates a new GetCommandsParams object with the ability to set a timeout on a request.
func (*GetCommandsParams) SetContext ¶
func (o *GetCommandsParams) SetContext(ctx context.Context)
SetContext adds the context to the get commands params
func (*GetCommandsParams) SetDefaults ¶
func (o *GetCommandsParams) SetDefaults()
SetDefaults hydrates default values in the get commands params (not the query body).
All values with no default are reset to their zero value.
func (*GetCommandsParams) SetHTTPClient ¶
func (o *GetCommandsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get commands params
func (*GetCommandsParams) SetTimeout ¶
func (o *GetCommandsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get commands params
func (*GetCommandsParams) WithContext ¶
func (o *GetCommandsParams) WithContext(ctx context.Context) *GetCommandsParams
WithContext adds the context to the get commands params
func (*GetCommandsParams) WithDefaults ¶
func (o *GetCommandsParams) WithDefaults() *GetCommandsParams
WithDefaults hydrates default values in the get commands params (not the query body).
All values with no default are reset to their zero value.
func (*GetCommandsParams) WithHTTPClient ¶
func (o *GetCommandsParams) WithHTTPClient(client *http.Client) *GetCommandsParams
WithHTTPClient adds the HTTPClient to the get commands params
func (*GetCommandsParams) WithTimeout ¶
func (o *GetCommandsParams) WithTimeout(timeout time.Duration) *GetCommandsParams
WithTimeout adds the timeout to the get commands params
func (*GetCommandsParams) WriteToRequest ¶
func (o *GetCommandsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCommandsReader ¶
type GetCommandsReader struct {
// contains filtered or unexported fields
}
GetCommandsReader is a Reader for the GetCommands structure.
func (*GetCommandsReader) ReadResponse ¶
func (o *GetCommandsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCommandsTooManyRequests ¶
type GetCommandsTooManyRequests struct {
Payload *models.ErrorResponse
}
GetCommandsTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewGetCommandsTooManyRequests ¶
func NewGetCommandsTooManyRequests() *GetCommandsTooManyRequests
NewGetCommandsTooManyRequests creates a GetCommandsTooManyRequests with default headers values
func (*GetCommandsTooManyRequests) Error ¶
func (o *GetCommandsTooManyRequests) Error() string
func (*GetCommandsTooManyRequests) GetPayload ¶
func (o *GetCommandsTooManyRequests) GetPayload() *models.ErrorResponse
type GetCommandsUnauthorized ¶
type GetCommandsUnauthorized struct {
}GetCommandsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetCommandsUnauthorized ¶
func NewGetCommandsUnauthorized() *GetCommandsUnauthorized
NewGetCommandsUnauthorized creates a GetCommandsUnauthorized with default headers values
func (*GetCommandsUnauthorized) Error ¶
func (o *GetCommandsUnauthorized) Error() string
func (*GetCommandsUnauthorized) GetPayload ¶
func (o *GetCommandsUnauthorized) GetPayload() *models.ErrorResponse
type PatchAgentCommandStatusBadRequest ¶
type PatchAgentCommandStatusBadRequest struct {
Payload *models.ErrorResponse
}
PatchAgentCommandStatusBadRequest describes a response with status code 400, with default header values.
Bad params suplied
func NewPatchAgentCommandStatusBadRequest ¶
func NewPatchAgentCommandStatusBadRequest() *PatchAgentCommandStatusBadRequest
NewPatchAgentCommandStatusBadRequest creates a PatchAgentCommandStatusBadRequest with default headers values
func (*PatchAgentCommandStatusBadRequest) Error ¶
func (o *PatchAgentCommandStatusBadRequest) Error() string
func (*PatchAgentCommandStatusBadRequest) GetPayload ¶
func (o *PatchAgentCommandStatusBadRequest) GetPayload() *models.ErrorResponse
type PatchAgentCommandStatusInternalServerError ¶
type PatchAgentCommandStatusInternalServerError struct {
Payload *models.ErrorResponse
}
PatchAgentCommandStatusInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewPatchAgentCommandStatusInternalServerError ¶
func NewPatchAgentCommandStatusInternalServerError() *PatchAgentCommandStatusInternalServerError
NewPatchAgentCommandStatusInternalServerError creates a PatchAgentCommandStatusInternalServerError with default headers values
func (*PatchAgentCommandStatusInternalServerError) Error ¶
func (o *PatchAgentCommandStatusInternalServerError) Error() string
func (*PatchAgentCommandStatusInternalServerError) GetPayload ¶
func (o *PatchAgentCommandStatusInternalServerError) GetPayload() *models.ErrorResponse
type PatchAgentCommandStatusNotFound ¶
type PatchAgentCommandStatusNotFound struct {
Payload *models.ErrorResponse
}
PatchAgentCommandStatusNotFound describes a response with status code 404, with default header values.
Tag not found
func NewPatchAgentCommandStatusNotFound ¶
func NewPatchAgentCommandStatusNotFound() *PatchAgentCommandStatusNotFound
NewPatchAgentCommandStatusNotFound creates a PatchAgentCommandStatusNotFound with default headers values
func (*PatchAgentCommandStatusNotFound) Error ¶
func (o *PatchAgentCommandStatusNotFound) Error() string
func (*PatchAgentCommandStatusNotFound) GetPayload ¶
func (o *PatchAgentCommandStatusNotFound) GetPayload() *models.ErrorResponse
type PatchAgentCommandStatusOK ¶
type PatchAgentCommandStatusOK struct { }
PatchAgentCommandStatusOK describes a response with status code 200, with default header values.
OK
func NewPatchAgentCommandStatusOK ¶
func NewPatchAgentCommandStatusOK() *PatchAgentCommandStatusOK
NewPatchAgentCommandStatusOK creates a PatchAgentCommandStatusOK with default headers values
func (*PatchAgentCommandStatusOK) Error ¶
func (o *PatchAgentCommandStatusOK) Error() string
type PatchAgentCommandStatusParams ¶
type PatchAgentCommandStatusParams struct { /* AgentID. Agent ID */ AgentID int64 // Body. Body *models.PatchCommandStatus /* CommandID. Command ID */ CommandID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchAgentCommandStatusParams contains all the parameters to send to the API endpoint
for the patch agent command status operation. Typically these are written to a http.Request.
func NewPatchAgentCommandStatusParams ¶
func NewPatchAgentCommandStatusParams() *PatchAgentCommandStatusParams
NewPatchAgentCommandStatusParams creates a new PatchAgentCommandStatusParams 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 NewPatchAgentCommandStatusParamsWithContext ¶
func NewPatchAgentCommandStatusParamsWithContext(ctx context.Context) *PatchAgentCommandStatusParams
NewPatchAgentCommandStatusParamsWithContext creates a new PatchAgentCommandStatusParams object with the ability to set a context for a request.
func NewPatchAgentCommandStatusParamsWithHTTPClient ¶
func NewPatchAgentCommandStatusParamsWithHTTPClient(client *http.Client) *PatchAgentCommandStatusParams
NewPatchAgentCommandStatusParamsWithHTTPClient creates a new PatchAgentCommandStatusParams object with the ability to set a custom HTTPClient for a request.
func NewPatchAgentCommandStatusParamsWithTimeout ¶
func NewPatchAgentCommandStatusParamsWithTimeout(timeout time.Duration) *PatchAgentCommandStatusParams
NewPatchAgentCommandStatusParamsWithTimeout creates a new PatchAgentCommandStatusParams object with the ability to set a timeout on a request.
func (*PatchAgentCommandStatusParams) SetAgentID ¶
func (o *PatchAgentCommandStatusParams) SetAgentID(agentID int64)
SetAgentID adds the agentId to the patch agent command status params
func (*PatchAgentCommandStatusParams) SetBody ¶
func (o *PatchAgentCommandStatusParams) SetBody(body *models.PatchCommandStatus)
SetBody adds the body to the patch agent command status params
func (*PatchAgentCommandStatusParams) SetCommandID ¶
func (o *PatchAgentCommandStatusParams) SetCommandID(commandID string)
SetCommandID adds the commandId to the patch agent command status params
func (*PatchAgentCommandStatusParams) SetContext ¶
func (o *PatchAgentCommandStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the patch agent command status params
func (*PatchAgentCommandStatusParams) SetDefaults ¶
func (o *PatchAgentCommandStatusParams) SetDefaults()
SetDefaults hydrates default values in the patch agent command status params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAgentCommandStatusParams) SetHTTPClient ¶
func (o *PatchAgentCommandStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch agent command status params
func (*PatchAgentCommandStatusParams) SetTimeout ¶
func (o *PatchAgentCommandStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch agent command status params
func (*PatchAgentCommandStatusParams) WithAgentID ¶
func (o *PatchAgentCommandStatusParams) WithAgentID(agentID int64) *PatchAgentCommandStatusParams
WithAgentID adds the agentID to the patch agent command status params
func (*PatchAgentCommandStatusParams) WithBody ¶
func (o *PatchAgentCommandStatusParams) WithBody(body *models.PatchCommandStatus) *PatchAgentCommandStatusParams
WithBody adds the body to the patch agent command status params
func (*PatchAgentCommandStatusParams) WithCommandID ¶
func (o *PatchAgentCommandStatusParams) WithCommandID(commandID string) *PatchAgentCommandStatusParams
WithCommandID adds the commandID to the patch agent command status params
func (*PatchAgentCommandStatusParams) WithContext ¶
func (o *PatchAgentCommandStatusParams) WithContext(ctx context.Context) *PatchAgentCommandStatusParams
WithContext adds the context to the patch agent command status params
func (*PatchAgentCommandStatusParams) WithDefaults ¶
func (o *PatchAgentCommandStatusParams) WithDefaults() *PatchAgentCommandStatusParams
WithDefaults hydrates default values in the patch agent command status params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAgentCommandStatusParams) WithHTTPClient ¶
func (o *PatchAgentCommandStatusParams) WithHTTPClient(client *http.Client) *PatchAgentCommandStatusParams
WithHTTPClient adds the HTTPClient to the patch agent command status params
func (*PatchAgentCommandStatusParams) WithTimeout ¶
func (o *PatchAgentCommandStatusParams) WithTimeout(timeout time.Duration) *PatchAgentCommandStatusParams
WithTimeout adds the timeout to the patch agent command status params
func (*PatchAgentCommandStatusParams) WriteToRequest ¶
func (o *PatchAgentCommandStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchAgentCommandStatusReader ¶
type PatchAgentCommandStatusReader struct {
// contains filtered or unexported fields
}
PatchAgentCommandStatusReader is a Reader for the PatchAgentCommandStatus structure.
func (*PatchAgentCommandStatusReader) ReadResponse ¶
func (o *PatchAgentCommandStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchAgentCommandStatusTooManyRequests ¶
type PatchAgentCommandStatusTooManyRequests struct {
Payload *models.ErrorResponse
}
PatchAgentCommandStatusTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewPatchAgentCommandStatusTooManyRequests ¶
func NewPatchAgentCommandStatusTooManyRequests() *PatchAgentCommandStatusTooManyRequests
NewPatchAgentCommandStatusTooManyRequests creates a PatchAgentCommandStatusTooManyRequests with default headers values
func (*PatchAgentCommandStatusTooManyRequests) Error ¶
func (o *PatchAgentCommandStatusTooManyRequests) Error() string
func (*PatchAgentCommandStatusTooManyRequests) GetPayload ¶
func (o *PatchAgentCommandStatusTooManyRequests) GetPayload() *models.ErrorResponse
type PatchAgentCommandStatusUnauthorized ¶
type PatchAgentCommandStatusUnauthorized struct {
}PatchAgentCommandStatusUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPatchAgentCommandStatusUnauthorized ¶
func NewPatchAgentCommandStatusUnauthorized() *PatchAgentCommandStatusUnauthorized
NewPatchAgentCommandStatusUnauthorized creates a PatchAgentCommandStatusUnauthorized with default headers values
func (*PatchAgentCommandStatusUnauthorized) Error ¶
func (o *PatchAgentCommandStatusUnauthorized) Error() string
func (*PatchAgentCommandStatusUnauthorized) GetPayload ¶
func (o *PatchAgentCommandStatusUnauthorized) GetPayload() *models.ErrorResponse