Documentation ¶
Index ¶
- type Client
- func (a *Client) ListRemediations(params *ListRemediationsParams) (*ListRemediationsOK, error)
- func (a *Client) RemediateResource(params *RemediateResourceParams) (*RemediateResourceOK, error)
- func (a *Client) RemediateResourceAsync(params *RemediateResourceAsyncParams) (*RemediateResourceAsyncOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type ListRemediationsBadRequest
- type ListRemediationsInternalServerError
- type ListRemediationsOK
- type ListRemediationsParams
- func NewListRemediationsParams() *ListRemediationsParams
- func NewListRemediationsParamsWithContext(ctx context.Context) *ListRemediationsParams
- func NewListRemediationsParamsWithHTTPClient(client *http.Client) *ListRemediationsParams
- func NewListRemediationsParamsWithTimeout(timeout time.Duration) *ListRemediationsParams
- func (o *ListRemediationsParams) SetContext(ctx context.Context)
- func (o *ListRemediationsParams) SetHTTPClient(client *http.Client)
- func (o *ListRemediationsParams) SetTimeout(timeout time.Duration)
- func (o *ListRemediationsParams) WithContext(ctx context.Context) *ListRemediationsParams
- func (o *ListRemediationsParams) WithHTTPClient(client *http.Client) *ListRemediationsParams
- func (o *ListRemediationsParams) WithTimeout(timeout time.Duration) *ListRemediationsParams
- func (o *ListRemediationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListRemediationsReader
- type RemediateResourceAsyncBadRequest
- type RemediateResourceAsyncInternalServerError
- type RemediateResourceAsyncOK
- type RemediateResourceAsyncParams
- func NewRemediateResourceAsyncParams() *RemediateResourceAsyncParams
- func NewRemediateResourceAsyncParamsWithContext(ctx context.Context) *RemediateResourceAsyncParams
- func NewRemediateResourceAsyncParamsWithHTTPClient(client *http.Client) *RemediateResourceAsyncParams
- func NewRemediateResourceAsyncParamsWithTimeout(timeout time.Duration) *RemediateResourceAsyncParams
- func (o *RemediateResourceAsyncParams) SetBody(body *models.RemediateResource)
- func (o *RemediateResourceAsyncParams) SetContext(ctx context.Context)
- func (o *RemediateResourceAsyncParams) SetHTTPClient(client *http.Client)
- func (o *RemediateResourceAsyncParams) SetTimeout(timeout time.Duration)
- func (o *RemediateResourceAsyncParams) WithBody(body *models.RemediateResource) *RemediateResourceAsyncParams
- func (o *RemediateResourceAsyncParams) WithContext(ctx context.Context) *RemediateResourceAsyncParams
- func (o *RemediateResourceAsyncParams) WithHTTPClient(client *http.Client) *RemediateResourceAsyncParams
- func (o *RemediateResourceAsyncParams) WithTimeout(timeout time.Duration) *RemediateResourceAsyncParams
- func (o *RemediateResourceAsyncParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemediateResourceAsyncReader
- type RemediateResourceBadRequest
- type RemediateResourceInternalServerError
- type RemediateResourceOK
- type RemediateResourceParams
- func NewRemediateResourceParams() *RemediateResourceParams
- func NewRemediateResourceParamsWithContext(ctx context.Context) *RemediateResourceParams
- func NewRemediateResourceParamsWithHTTPClient(client *http.Client) *RemediateResourceParams
- func NewRemediateResourceParamsWithTimeout(timeout time.Duration) *RemediateResourceParams
- func (o *RemediateResourceParams) SetBody(body *models.RemediateResource)
- func (o *RemediateResourceParams) SetContext(ctx context.Context)
- func (o *RemediateResourceParams) SetHTTPClient(client *http.Client)
- func (o *RemediateResourceParams) SetTimeout(timeout time.Duration)
- func (o *RemediateResourceParams) WithBody(body *models.RemediateResource) *RemediateResourceParams
- func (o *RemediateResourceParams) WithContext(ctx context.Context) *RemediateResourceParams
- func (o *RemediateResourceParams) WithHTTPClient(client *http.Client) *RemediateResourceParams
- func (o *RemediateResourceParams) WithTimeout(timeout time.Duration) *RemediateResourceParams
- func (o *RemediateResourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RemediateResourceReader
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 operations API
func (*Client) ListRemediations ¶
func (a *Client) ListRemediations(params *ListRemediationsParams) (*ListRemediationsOK, error)
ListRemediations retrieves available remediations
func (*Client) RemediateResource ¶
func (a *Client) RemediateResource(params *RemediateResourceParams) (*RemediateResourceOK, error)
RemediateResource synchronouslies remediate resource for an account
func (*Client) RemediateResourceAsync ¶
func (a *Client) RemediateResourceAsync(params *RemediateResourceAsyncParams) (*RemediateResourceAsyncOK, error)
RemediateResourceAsync asynchronouslies remediate resource for an account
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶ added in v1.0.0
type ClientService interface { ListRemediations(params *ListRemediationsParams) (*ListRemediationsOK, error) RemediateResource(params *RemediateResourceParams) (*RemediateResourceOK, error) RemediateResourceAsync(params *RemediateResourceAsyncParams) (*RemediateResourceAsyncOK, 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 operations API client.
type ListRemediationsBadRequest ¶
ListRemediationsBadRequest handles this case with default header values.
Bad request
func NewListRemediationsBadRequest ¶
func NewListRemediationsBadRequest() *ListRemediationsBadRequest
NewListRemediationsBadRequest creates a ListRemediationsBadRequest with default headers values
func (*ListRemediationsBadRequest) Error ¶
func (o *ListRemediationsBadRequest) Error() string
func (*ListRemediationsBadRequest) GetPayload ¶
func (o *ListRemediationsBadRequest) GetPayload() *models.Error
type ListRemediationsInternalServerError ¶
type ListRemediationsInternalServerError struct { }
ListRemediationsInternalServerError handles this case with default header values.
Internal server error
func NewListRemediationsInternalServerError ¶
func NewListRemediationsInternalServerError() *ListRemediationsInternalServerError
NewListRemediationsInternalServerError creates a ListRemediationsInternalServerError with default headers values
func (*ListRemediationsInternalServerError) Error ¶
func (o *ListRemediationsInternalServerError) Error() string
type ListRemediationsOK ¶
type ListRemediationsOK struct {
Payload models.Remediations
}
ListRemediationsOK handles this case with default header values.
OK
func NewListRemediationsOK ¶
func NewListRemediationsOK() *ListRemediationsOK
NewListRemediationsOK creates a ListRemediationsOK with default headers values
func (*ListRemediationsOK) Error ¶
func (o *ListRemediationsOK) Error() string
func (*ListRemediationsOK) GetPayload ¶
func (o *ListRemediationsOK) GetPayload() models.Remediations
type ListRemediationsParams ¶
type ListRemediationsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListRemediationsParams contains all the parameters to send to the API endpoint for the list remediations operation typically these are written to a http.Request
func NewListRemediationsParams ¶
func NewListRemediationsParams() *ListRemediationsParams
NewListRemediationsParams creates a new ListRemediationsParams object with the default values initialized.
func NewListRemediationsParamsWithContext ¶
func NewListRemediationsParamsWithContext(ctx context.Context) *ListRemediationsParams
NewListRemediationsParamsWithContext creates a new ListRemediationsParams object with the default values initialized, and the ability to set a context for a request
func NewListRemediationsParamsWithHTTPClient ¶
func NewListRemediationsParamsWithHTTPClient(client *http.Client) *ListRemediationsParams
NewListRemediationsParamsWithHTTPClient creates a new ListRemediationsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListRemediationsParamsWithTimeout ¶
func NewListRemediationsParamsWithTimeout(timeout time.Duration) *ListRemediationsParams
NewListRemediationsParamsWithTimeout creates a new ListRemediationsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListRemediationsParams) SetContext ¶
func (o *ListRemediationsParams) SetContext(ctx context.Context)
SetContext adds the context to the list remediations params
func (*ListRemediationsParams) SetHTTPClient ¶
func (o *ListRemediationsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list remediations params
func (*ListRemediationsParams) SetTimeout ¶
func (o *ListRemediationsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list remediations params
func (*ListRemediationsParams) WithContext ¶
func (o *ListRemediationsParams) WithContext(ctx context.Context) *ListRemediationsParams
WithContext adds the context to the list remediations params
func (*ListRemediationsParams) WithHTTPClient ¶
func (o *ListRemediationsParams) WithHTTPClient(client *http.Client) *ListRemediationsParams
WithHTTPClient adds the HTTPClient to the list remediations params
func (*ListRemediationsParams) WithTimeout ¶
func (o *ListRemediationsParams) WithTimeout(timeout time.Duration) *ListRemediationsParams
WithTimeout adds the timeout to the list remediations params
func (*ListRemediationsParams) WriteToRequest ¶
func (o *ListRemediationsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListRemediationsReader ¶
type ListRemediationsReader struct {
// contains filtered or unexported fields
}
ListRemediationsReader is a Reader for the ListRemediations structure.
func (*ListRemediationsReader) ReadResponse ¶
func (o *ListRemediationsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemediateResourceAsyncBadRequest ¶
RemediateResourceAsyncBadRequest handles this case with default header values.
Bad request
func NewRemediateResourceAsyncBadRequest ¶
func NewRemediateResourceAsyncBadRequest() *RemediateResourceAsyncBadRequest
NewRemediateResourceAsyncBadRequest creates a RemediateResourceAsyncBadRequest with default headers values
func (*RemediateResourceAsyncBadRequest) Error ¶
func (o *RemediateResourceAsyncBadRequest) Error() string
func (*RemediateResourceAsyncBadRequest) GetPayload ¶
func (o *RemediateResourceAsyncBadRequest) GetPayload() *models.Error
type RemediateResourceAsyncInternalServerError ¶
type RemediateResourceAsyncInternalServerError struct { }
RemediateResourceAsyncInternalServerError handles this case with default header values.
Internal server error
func NewRemediateResourceAsyncInternalServerError ¶
func NewRemediateResourceAsyncInternalServerError() *RemediateResourceAsyncInternalServerError
NewRemediateResourceAsyncInternalServerError creates a RemediateResourceAsyncInternalServerError with default headers values
func (*RemediateResourceAsyncInternalServerError) Error ¶
func (o *RemediateResourceAsyncInternalServerError) Error() string
type RemediateResourceAsyncOK ¶
type RemediateResourceAsyncOK struct { }
RemediateResourceAsyncOK handles this case with default header values.
OK
func NewRemediateResourceAsyncOK ¶
func NewRemediateResourceAsyncOK() *RemediateResourceAsyncOK
NewRemediateResourceAsyncOK creates a RemediateResourceAsyncOK with default headers values
func (*RemediateResourceAsyncOK) Error ¶
func (o *RemediateResourceAsyncOK) Error() string
type RemediateResourceAsyncParams ¶
type RemediateResourceAsyncParams struct { /*Body*/ Body *models.RemediateResource Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemediateResourceAsyncParams contains all the parameters to send to the API endpoint for the remediate resource async operation typically these are written to a http.Request
func NewRemediateResourceAsyncParams ¶
func NewRemediateResourceAsyncParams() *RemediateResourceAsyncParams
NewRemediateResourceAsyncParams creates a new RemediateResourceAsyncParams object with the default values initialized.
func NewRemediateResourceAsyncParamsWithContext ¶
func NewRemediateResourceAsyncParamsWithContext(ctx context.Context) *RemediateResourceAsyncParams
NewRemediateResourceAsyncParamsWithContext creates a new RemediateResourceAsyncParams object with the default values initialized, and the ability to set a context for a request
func NewRemediateResourceAsyncParamsWithHTTPClient ¶
func NewRemediateResourceAsyncParamsWithHTTPClient(client *http.Client) *RemediateResourceAsyncParams
NewRemediateResourceAsyncParamsWithHTTPClient creates a new RemediateResourceAsyncParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRemediateResourceAsyncParamsWithTimeout ¶
func NewRemediateResourceAsyncParamsWithTimeout(timeout time.Duration) *RemediateResourceAsyncParams
NewRemediateResourceAsyncParamsWithTimeout creates a new RemediateResourceAsyncParams object with the default values initialized, and the ability to set a timeout on a request
func (*RemediateResourceAsyncParams) SetBody ¶
func (o *RemediateResourceAsyncParams) SetBody(body *models.RemediateResource)
SetBody adds the body to the remediate resource async params
func (*RemediateResourceAsyncParams) SetContext ¶
func (o *RemediateResourceAsyncParams) SetContext(ctx context.Context)
SetContext adds the context to the remediate resource async params
func (*RemediateResourceAsyncParams) SetHTTPClient ¶
func (o *RemediateResourceAsyncParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remediate resource async params
func (*RemediateResourceAsyncParams) SetTimeout ¶
func (o *RemediateResourceAsyncParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remediate resource async params
func (*RemediateResourceAsyncParams) WithBody ¶
func (o *RemediateResourceAsyncParams) WithBody(body *models.RemediateResource) *RemediateResourceAsyncParams
WithBody adds the body to the remediate resource async params
func (*RemediateResourceAsyncParams) WithContext ¶
func (o *RemediateResourceAsyncParams) WithContext(ctx context.Context) *RemediateResourceAsyncParams
WithContext adds the context to the remediate resource async params
func (*RemediateResourceAsyncParams) WithHTTPClient ¶
func (o *RemediateResourceAsyncParams) WithHTTPClient(client *http.Client) *RemediateResourceAsyncParams
WithHTTPClient adds the HTTPClient to the remediate resource async params
func (*RemediateResourceAsyncParams) WithTimeout ¶
func (o *RemediateResourceAsyncParams) WithTimeout(timeout time.Duration) *RemediateResourceAsyncParams
WithTimeout adds the timeout to the remediate resource async params
func (*RemediateResourceAsyncParams) WriteToRequest ¶
func (o *RemediateResourceAsyncParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemediateResourceAsyncReader ¶
type RemediateResourceAsyncReader struct {
// contains filtered or unexported fields
}
RemediateResourceAsyncReader is a Reader for the RemediateResourceAsync structure.
func (*RemediateResourceAsyncReader) ReadResponse ¶
func (o *RemediateResourceAsyncReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RemediateResourceBadRequest ¶
RemediateResourceBadRequest handles this case with default header values.
Bad request
func NewRemediateResourceBadRequest ¶
func NewRemediateResourceBadRequest() *RemediateResourceBadRequest
NewRemediateResourceBadRequest creates a RemediateResourceBadRequest with default headers values
func (*RemediateResourceBadRequest) Error ¶
func (o *RemediateResourceBadRequest) Error() string
func (*RemediateResourceBadRequest) GetPayload ¶
func (o *RemediateResourceBadRequest) GetPayload() *models.Error
type RemediateResourceInternalServerError ¶
type RemediateResourceInternalServerError struct { }
RemediateResourceInternalServerError handles this case with default header values.
Internal server error
func NewRemediateResourceInternalServerError ¶
func NewRemediateResourceInternalServerError() *RemediateResourceInternalServerError
NewRemediateResourceInternalServerError creates a RemediateResourceInternalServerError with default headers values
func (*RemediateResourceInternalServerError) Error ¶
func (o *RemediateResourceInternalServerError) Error() string
type RemediateResourceOK ¶
type RemediateResourceOK struct { }
RemediateResourceOK handles this case with default header values.
OK
func NewRemediateResourceOK ¶
func NewRemediateResourceOK() *RemediateResourceOK
NewRemediateResourceOK creates a RemediateResourceOK with default headers values
func (*RemediateResourceOK) Error ¶
func (o *RemediateResourceOK) Error() string
type RemediateResourceParams ¶
type RemediateResourceParams struct { /*Body*/ Body *models.RemediateResource Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RemediateResourceParams contains all the parameters to send to the API endpoint for the remediate resource operation typically these are written to a http.Request
func NewRemediateResourceParams ¶
func NewRemediateResourceParams() *RemediateResourceParams
NewRemediateResourceParams creates a new RemediateResourceParams object with the default values initialized.
func NewRemediateResourceParamsWithContext ¶
func NewRemediateResourceParamsWithContext(ctx context.Context) *RemediateResourceParams
NewRemediateResourceParamsWithContext creates a new RemediateResourceParams object with the default values initialized, and the ability to set a context for a request
func NewRemediateResourceParamsWithHTTPClient ¶
func NewRemediateResourceParamsWithHTTPClient(client *http.Client) *RemediateResourceParams
NewRemediateResourceParamsWithHTTPClient creates a new RemediateResourceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewRemediateResourceParamsWithTimeout ¶
func NewRemediateResourceParamsWithTimeout(timeout time.Duration) *RemediateResourceParams
NewRemediateResourceParamsWithTimeout creates a new RemediateResourceParams object with the default values initialized, and the ability to set a timeout on a request
func (*RemediateResourceParams) SetBody ¶
func (o *RemediateResourceParams) SetBody(body *models.RemediateResource)
SetBody adds the body to the remediate resource params
func (*RemediateResourceParams) SetContext ¶
func (o *RemediateResourceParams) SetContext(ctx context.Context)
SetContext adds the context to the remediate resource params
func (*RemediateResourceParams) SetHTTPClient ¶
func (o *RemediateResourceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the remediate resource params
func (*RemediateResourceParams) SetTimeout ¶
func (o *RemediateResourceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the remediate resource params
func (*RemediateResourceParams) WithBody ¶
func (o *RemediateResourceParams) WithBody(body *models.RemediateResource) *RemediateResourceParams
WithBody adds the body to the remediate resource params
func (*RemediateResourceParams) WithContext ¶
func (o *RemediateResourceParams) WithContext(ctx context.Context) *RemediateResourceParams
WithContext adds the context to the remediate resource params
func (*RemediateResourceParams) WithHTTPClient ¶
func (o *RemediateResourceParams) WithHTTPClient(client *http.Client) *RemediateResourceParams
WithHTTPClient adds the HTTPClient to the remediate resource params
func (*RemediateResourceParams) WithTimeout ¶
func (o *RemediateResourceParams) WithTimeout(timeout time.Duration) *RemediateResourceParams
WithTimeout adds the timeout to the remediate resource params
func (*RemediateResourceParams) WriteToRequest ¶
func (o *RemediateResourceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RemediateResourceReader ¶
type RemediateResourceReader struct {
// contains filtered or unexported fields
}
RemediateResourceReader is a Reader for the RemediateResource structure.
func (*RemediateResourceReader) ReadResponse ¶
func (o *RemediateResourceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.