operations

package
v1.3.0-testing Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

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

type ListRemediationsBadRequest struct {
	Payload *models.Error
}

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 (*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

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

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

WithTimeout adds the timeout to the list remediations params

func (*ListRemediationsParams) WriteToRequest

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

type RemediateResourceAsyncBadRequest struct {
	Payload *models.Error
}

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 (*RemediateResourceAsyncBadRequest) GetPayload

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

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

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

WithBody adds the body to the remediate resource async params

func (*RemediateResourceAsyncParams) WithContext

WithContext adds the context to the remediate resource async params

func (*RemediateResourceAsyncParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the remediate resource async params

func (*RemediateResourceAsyncParams) WithTimeout

WithTimeout adds the timeout to the remediate resource async params

func (*RemediateResourceAsyncParams) WriteToRequest

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

type RemediateResourceBadRequest struct {
	Payload *models.Error
}

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 (*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

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

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

WithBody adds the body to the remediate resource params

func (*RemediateResourceParams) WithContext

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

WithTimeout adds the timeout to the remediate resource params

func (*RemediateResourceParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL