scanner

package
v5.0.7 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 11 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 scanner API

func (*Client) CreateScanner

func (a *Client) CreateScanner(params *CreateScannerParams, authInfo runtime.ClientAuthInfoWriter) (*CreateScannerCreated, error)

CreateScanner creates a scanner registration

Creats a new scanner registration with the given data.

func (*Client) DeleteScanner

func (a *Client) DeleteScanner(params *DeleteScannerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteScannerOK, error)

DeleteScanner deletes a scanner registration

Deletes the specified scanner registration.

func (*Client) GetScanner

func (a *Client) GetScanner(params *GetScannerParams, authInfo runtime.ClientAuthInfoWriter) (*GetScannerOK, error)

GetScanner gets a scanner registration details

Retruns the details of the specified scanner registration.

func (*Client) GetScannerMetadata

func (a *Client) GetScannerMetadata(params *GetScannerMetadataParams, authInfo runtime.ClientAuthInfoWriter) (*GetScannerMetadataOK, error)

GetScannerMetadata gets the metadata of the specified scanner registration

Get the metadata of the specified scanner registration, including the capabilities and customized properties.

func (*Client) ListScanners

func (a *Client) ListScanners(params *ListScannersParams, authInfo runtime.ClientAuthInfoWriter) (*ListScannersOK, error)

ListScanners lists scanner registrations

Returns a list of currently configured scanner registrations.

func (*Client) PingScanner

func (a *Client) PingScanner(params *PingScannerParams, authInfo runtime.ClientAuthInfoWriter) (*PingScannerOK, error)

PingScanner tests scanner registration settings

Pings scanner adapter to test endpoint URL and authorization settings.

func (*Client) SetScannerAsDefault

func (a *Client) SetScannerAsDefault(params *SetScannerAsDefaultParams, authInfo runtime.ClientAuthInfoWriter) (*SetScannerAsDefaultOK, error)

SetScannerAsDefault sets system default scanner registration

Set the specified scanner registration as the system default one.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateScanner

func (a *Client) UpdateScanner(params *UpdateScannerParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateScannerOK, error)

UpdateScanner updates a scanner registration

Updates the specified scanner registration.

type ClientService

type ClientService interface {
	CreateScanner(params *CreateScannerParams, authInfo runtime.ClientAuthInfoWriter) (*CreateScannerCreated, error)

	DeleteScanner(params *DeleteScannerParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteScannerOK, error)

	GetScanner(params *GetScannerParams, authInfo runtime.ClientAuthInfoWriter) (*GetScannerOK, error)

	GetScannerMetadata(params *GetScannerMetadataParams, authInfo runtime.ClientAuthInfoWriter) (*GetScannerMetadataOK, error)

	ListScanners(params *ListScannersParams, authInfo runtime.ClientAuthInfoWriter) (*ListScannersOK, error)

	PingScanner(params *PingScannerParams, authInfo runtime.ClientAuthInfoWriter) (*PingScannerOK, error)

	SetScannerAsDefault(params *SetScannerAsDefaultParams, authInfo runtime.ClientAuthInfoWriter) (*SetScannerAsDefaultOK, error)

	UpdateScanner(params *UpdateScannerParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateScannerOK, 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 scanner API client.

type CreateScannerBadRequest

type CreateScannerBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateScannerBadRequest handles this case with default header values.

Bad request

func NewCreateScannerBadRequest

func NewCreateScannerBadRequest() *CreateScannerBadRequest

NewCreateScannerBadRequest creates a CreateScannerBadRequest with default headers values

func (*CreateScannerBadRequest) Error

func (o *CreateScannerBadRequest) Error() string

func (*CreateScannerBadRequest) GetPayload

func (o *CreateScannerBadRequest) GetPayload() *model.Errors

type CreateScannerCreated

type CreateScannerCreated struct {
	/*The URL of the created resource
	 */
	Location string
}

CreateScannerCreated handles this case with default header values.

Created successfully

func NewCreateScannerCreated

func NewCreateScannerCreated() *CreateScannerCreated

NewCreateScannerCreated creates a CreateScannerCreated with default headers values

func (*CreateScannerCreated) Error

func (o *CreateScannerCreated) Error() string

type CreateScannerForbidden

type CreateScannerForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateScannerForbidden handles this case with default header values.

Forbidden

func NewCreateScannerForbidden

func NewCreateScannerForbidden() *CreateScannerForbidden

NewCreateScannerForbidden creates a CreateScannerForbidden with default headers values

func (*CreateScannerForbidden) Error

func (o *CreateScannerForbidden) Error() string

func (*CreateScannerForbidden) GetPayload

func (o *CreateScannerForbidden) GetPayload() *model.Errors

type CreateScannerInternalServerError

type CreateScannerInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateScannerInternalServerError handles this case with default header values.

Internal server error

func NewCreateScannerInternalServerError

func NewCreateScannerInternalServerError() *CreateScannerInternalServerError

NewCreateScannerInternalServerError creates a CreateScannerInternalServerError with default headers values

func (*CreateScannerInternalServerError) Error

func (*CreateScannerInternalServerError) GetPayload

type CreateScannerParams

type CreateScannerParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Registration
	  A scanner registration to be created.

	*/
	Registration *model.ScannerRegistrationReq

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateScannerParams contains all the parameters to send to the API endpoint for the create scanner operation typically these are written to a http.Request

func NewCreateScannerParams

func NewCreateScannerParams() *CreateScannerParams

NewCreateScannerParams creates a new CreateScannerParams object with the default values initialized.

func NewCreateScannerParamsWithContext

func NewCreateScannerParamsWithContext(ctx context.Context) *CreateScannerParams

NewCreateScannerParamsWithContext creates a new CreateScannerParams object with the default values initialized, and the ability to set a context for a request

func NewCreateScannerParamsWithHTTPClient

func NewCreateScannerParamsWithHTTPClient(client *http.Client) *CreateScannerParams

NewCreateScannerParamsWithHTTPClient creates a new CreateScannerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateScannerParamsWithTimeout

func NewCreateScannerParamsWithTimeout(timeout time.Duration) *CreateScannerParams

NewCreateScannerParamsWithTimeout creates a new CreateScannerParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateScannerParams) SetContext

func (o *CreateScannerParams) SetContext(ctx context.Context)

SetContext adds the context to the create scanner params

func (*CreateScannerParams) SetHTTPClient

func (o *CreateScannerParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create scanner params

func (*CreateScannerParams) SetRegistration

func (o *CreateScannerParams) SetRegistration(registration *model.ScannerRegistrationReq)

SetRegistration adds the registration to the create scanner params

func (*CreateScannerParams) SetTimeout

func (o *CreateScannerParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create scanner params

func (*CreateScannerParams) SetXRequestID

func (o *CreateScannerParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the create scanner params

func (*CreateScannerParams) WithContext

WithContext adds the context to the create scanner params

func (*CreateScannerParams) WithHTTPClient

func (o *CreateScannerParams) WithHTTPClient(client *http.Client) *CreateScannerParams

WithHTTPClient adds the HTTPClient to the create scanner params

func (*CreateScannerParams) WithRegistration

func (o *CreateScannerParams) WithRegistration(registration *model.ScannerRegistrationReq) *CreateScannerParams

WithRegistration adds the registration to the create scanner params

func (*CreateScannerParams) WithTimeout

func (o *CreateScannerParams) WithTimeout(timeout time.Duration) *CreateScannerParams

WithTimeout adds the timeout to the create scanner params

func (*CreateScannerParams) WithXRequestID

func (o *CreateScannerParams) WithXRequestID(xRequestID *string) *CreateScannerParams

WithXRequestID adds the xRequestID to the create scanner params

func (*CreateScannerParams) WriteToRequest

func (o *CreateScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateScannerReader

type CreateScannerReader struct {
	// contains filtered or unexported fields
}

CreateScannerReader is a Reader for the CreateScanner structure.

func (*CreateScannerReader) ReadResponse

func (o *CreateScannerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CreateScannerUnauthorized

type CreateScannerUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateScannerUnauthorized handles this case with default header values.

Unauthorized

func NewCreateScannerUnauthorized

func NewCreateScannerUnauthorized() *CreateScannerUnauthorized

NewCreateScannerUnauthorized creates a CreateScannerUnauthorized with default headers values

func (*CreateScannerUnauthorized) Error

func (o *CreateScannerUnauthorized) Error() string

func (*CreateScannerUnauthorized) GetPayload

func (o *CreateScannerUnauthorized) GetPayload() *model.Errors

type DeleteScannerForbidden

type DeleteScannerForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteScannerForbidden handles this case with default header values.

Forbidden

func NewDeleteScannerForbidden

func NewDeleteScannerForbidden() *DeleteScannerForbidden

NewDeleteScannerForbidden creates a DeleteScannerForbidden with default headers values

func (*DeleteScannerForbidden) Error

func (o *DeleteScannerForbidden) Error() string

func (*DeleteScannerForbidden) GetPayload

func (o *DeleteScannerForbidden) GetPayload() *model.Errors

type DeleteScannerInternalServerError

type DeleteScannerInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteScannerInternalServerError handles this case with default header values.

Internal server error

func NewDeleteScannerInternalServerError

func NewDeleteScannerInternalServerError() *DeleteScannerInternalServerError

NewDeleteScannerInternalServerError creates a DeleteScannerInternalServerError with default headers values

func (*DeleteScannerInternalServerError) Error

func (*DeleteScannerInternalServerError) GetPayload

type DeleteScannerNotFound

type DeleteScannerNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteScannerNotFound handles this case with default header values.

Not found

func NewDeleteScannerNotFound

func NewDeleteScannerNotFound() *DeleteScannerNotFound

NewDeleteScannerNotFound creates a DeleteScannerNotFound with default headers values

func (*DeleteScannerNotFound) Error

func (o *DeleteScannerNotFound) Error() string

func (*DeleteScannerNotFound) GetPayload

func (o *DeleteScannerNotFound) GetPayload() *model.Errors

type DeleteScannerOK

type DeleteScannerOK struct {
	Payload *model.ScannerRegistration
}

DeleteScannerOK handles this case with default header values.

Deleted successfully and return the deleted registration

func NewDeleteScannerOK

func NewDeleteScannerOK() *DeleteScannerOK

NewDeleteScannerOK creates a DeleteScannerOK with default headers values

func (*DeleteScannerOK) Error

func (o *DeleteScannerOK) Error() string

func (*DeleteScannerOK) GetPayload

func (o *DeleteScannerOK) GetPayload() *model.ScannerRegistration

type DeleteScannerParams

type DeleteScannerParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*RegistrationID
	  The scanner registration identifier.

	*/
	RegistrationID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteScannerParams contains all the parameters to send to the API endpoint for the delete scanner operation typically these are written to a http.Request

func NewDeleteScannerParams

func NewDeleteScannerParams() *DeleteScannerParams

NewDeleteScannerParams creates a new DeleteScannerParams object with the default values initialized.

func NewDeleteScannerParamsWithContext

func NewDeleteScannerParamsWithContext(ctx context.Context) *DeleteScannerParams

NewDeleteScannerParamsWithContext creates a new DeleteScannerParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteScannerParamsWithHTTPClient

func NewDeleteScannerParamsWithHTTPClient(client *http.Client) *DeleteScannerParams

NewDeleteScannerParamsWithHTTPClient creates a new DeleteScannerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteScannerParamsWithTimeout

func NewDeleteScannerParamsWithTimeout(timeout time.Duration) *DeleteScannerParams

NewDeleteScannerParamsWithTimeout creates a new DeleteScannerParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteScannerParams) SetContext

func (o *DeleteScannerParams) SetContext(ctx context.Context)

SetContext adds the context to the delete scanner params

func (*DeleteScannerParams) SetHTTPClient

func (o *DeleteScannerParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete scanner params

func (*DeleteScannerParams) SetRegistrationID

func (o *DeleteScannerParams) SetRegistrationID(registrationID string)

SetRegistrationID adds the registrationId to the delete scanner params

func (*DeleteScannerParams) SetTimeout

func (o *DeleteScannerParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete scanner params

func (*DeleteScannerParams) SetXRequestID

func (o *DeleteScannerParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete scanner params

func (*DeleteScannerParams) WithContext

WithContext adds the context to the delete scanner params

func (*DeleteScannerParams) WithHTTPClient

func (o *DeleteScannerParams) WithHTTPClient(client *http.Client) *DeleteScannerParams

WithHTTPClient adds the HTTPClient to the delete scanner params

func (*DeleteScannerParams) WithRegistrationID

func (o *DeleteScannerParams) WithRegistrationID(registrationID string) *DeleteScannerParams

WithRegistrationID adds the registrationID to the delete scanner params

func (*DeleteScannerParams) WithTimeout

func (o *DeleteScannerParams) WithTimeout(timeout time.Duration) *DeleteScannerParams

WithTimeout adds the timeout to the delete scanner params

func (*DeleteScannerParams) WithXRequestID

func (o *DeleteScannerParams) WithXRequestID(xRequestID *string) *DeleteScannerParams

WithXRequestID adds the xRequestID to the delete scanner params

func (*DeleteScannerParams) WriteToRequest

func (o *DeleteScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteScannerReader

type DeleteScannerReader struct {
	// contains filtered or unexported fields
}

DeleteScannerReader is a Reader for the DeleteScanner structure.

func (*DeleteScannerReader) ReadResponse

func (o *DeleteScannerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteScannerUnauthorized

type DeleteScannerUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteScannerUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteScannerUnauthorized

func NewDeleteScannerUnauthorized() *DeleteScannerUnauthorized

NewDeleteScannerUnauthorized creates a DeleteScannerUnauthorized with default headers values

func (*DeleteScannerUnauthorized) Error

func (o *DeleteScannerUnauthorized) Error() string

func (*DeleteScannerUnauthorized) GetPayload

func (o *DeleteScannerUnauthorized) GetPayload() *model.Errors

type GetScannerForbidden

type GetScannerForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetScannerForbidden handles this case with default header values.

Forbidden

func NewGetScannerForbidden

func NewGetScannerForbidden() *GetScannerForbidden

NewGetScannerForbidden creates a GetScannerForbidden with default headers values

func (*GetScannerForbidden) Error

func (o *GetScannerForbidden) Error() string

func (*GetScannerForbidden) GetPayload

func (o *GetScannerForbidden) GetPayload() *model.Errors

type GetScannerInternalServerError

type GetScannerInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetScannerInternalServerError handles this case with default header values.

Internal server error

func NewGetScannerInternalServerError

func NewGetScannerInternalServerError() *GetScannerInternalServerError

NewGetScannerInternalServerError creates a GetScannerInternalServerError with default headers values

func (*GetScannerInternalServerError) Error

func (*GetScannerInternalServerError) GetPayload

func (o *GetScannerInternalServerError) GetPayload() *model.Errors

type GetScannerMetadataForbidden

type GetScannerMetadataForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetScannerMetadataForbidden handles this case with default header values.

Forbidden

func NewGetScannerMetadataForbidden

func NewGetScannerMetadataForbidden() *GetScannerMetadataForbidden

NewGetScannerMetadataForbidden creates a GetScannerMetadataForbidden with default headers values

func (*GetScannerMetadataForbidden) Error

func (*GetScannerMetadataForbidden) GetPayload

func (o *GetScannerMetadataForbidden) GetPayload() *model.Errors

type GetScannerMetadataInternalServerError

type GetScannerMetadataInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetScannerMetadataInternalServerError handles this case with default header values.

Internal server error

func NewGetScannerMetadataInternalServerError

func NewGetScannerMetadataInternalServerError() *GetScannerMetadataInternalServerError

NewGetScannerMetadataInternalServerError creates a GetScannerMetadataInternalServerError with default headers values

func (*GetScannerMetadataInternalServerError) Error

func (*GetScannerMetadataInternalServerError) GetPayload

type GetScannerMetadataOK

type GetScannerMetadataOK struct {
	Payload *model.ScannerAdapterMetadata
}

GetScannerMetadataOK handles this case with default header values.

The metadata of the specified scanner adapter

func NewGetScannerMetadataOK

func NewGetScannerMetadataOK() *GetScannerMetadataOK

NewGetScannerMetadataOK creates a GetScannerMetadataOK with default headers values

func (*GetScannerMetadataOK) Error

func (o *GetScannerMetadataOK) Error() string

func (*GetScannerMetadataOK) GetPayload

type GetScannerMetadataParams

type GetScannerMetadataParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*RegistrationID
	  The scanner registration identifier.

	*/
	RegistrationID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetScannerMetadataParams contains all the parameters to send to the API endpoint for the get scanner metadata operation typically these are written to a http.Request

func NewGetScannerMetadataParams

func NewGetScannerMetadataParams() *GetScannerMetadataParams

NewGetScannerMetadataParams creates a new GetScannerMetadataParams object with the default values initialized.

func NewGetScannerMetadataParamsWithContext

func NewGetScannerMetadataParamsWithContext(ctx context.Context) *GetScannerMetadataParams

NewGetScannerMetadataParamsWithContext creates a new GetScannerMetadataParams object with the default values initialized, and the ability to set a context for a request

func NewGetScannerMetadataParamsWithHTTPClient

func NewGetScannerMetadataParamsWithHTTPClient(client *http.Client) *GetScannerMetadataParams

NewGetScannerMetadataParamsWithHTTPClient creates a new GetScannerMetadataParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetScannerMetadataParamsWithTimeout

func NewGetScannerMetadataParamsWithTimeout(timeout time.Duration) *GetScannerMetadataParams

NewGetScannerMetadataParamsWithTimeout creates a new GetScannerMetadataParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetScannerMetadataParams) SetContext

func (o *GetScannerMetadataParams) SetContext(ctx context.Context)

SetContext adds the context to the get scanner metadata params

func (*GetScannerMetadataParams) SetHTTPClient

func (o *GetScannerMetadataParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get scanner metadata params

func (*GetScannerMetadataParams) SetRegistrationID

func (o *GetScannerMetadataParams) SetRegistrationID(registrationID string)

SetRegistrationID adds the registrationId to the get scanner metadata params

func (*GetScannerMetadataParams) SetTimeout

func (o *GetScannerMetadataParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get scanner metadata params

func (*GetScannerMetadataParams) SetXRequestID

func (o *GetScannerMetadataParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get scanner metadata params

func (*GetScannerMetadataParams) WithContext

WithContext adds the context to the get scanner metadata params

func (*GetScannerMetadataParams) WithHTTPClient

func (o *GetScannerMetadataParams) WithHTTPClient(client *http.Client) *GetScannerMetadataParams

WithHTTPClient adds the HTTPClient to the get scanner metadata params

func (*GetScannerMetadataParams) WithRegistrationID

func (o *GetScannerMetadataParams) WithRegistrationID(registrationID string) *GetScannerMetadataParams

WithRegistrationID adds the registrationID to the get scanner metadata params

func (*GetScannerMetadataParams) WithTimeout

WithTimeout adds the timeout to the get scanner metadata params

func (*GetScannerMetadataParams) WithXRequestID

func (o *GetScannerMetadataParams) WithXRequestID(xRequestID *string) *GetScannerMetadataParams

WithXRequestID adds the xRequestID to the get scanner metadata params

func (*GetScannerMetadataParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetScannerMetadataReader

type GetScannerMetadataReader struct {
	// contains filtered or unexported fields
}

GetScannerMetadataReader is a Reader for the GetScannerMetadata structure.

func (*GetScannerMetadataReader) ReadResponse

func (o *GetScannerMetadataReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetScannerMetadataUnauthorized

type GetScannerMetadataUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetScannerMetadataUnauthorized handles this case with default header values.

Unauthorized

func NewGetScannerMetadataUnauthorized

func NewGetScannerMetadataUnauthorized() *GetScannerMetadataUnauthorized

NewGetScannerMetadataUnauthorized creates a GetScannerMetadataUnauthorized with default headers values

func (*GetScannerMetadataUnauthorized) Error

func (*GetScannerMetadataUnauthorized) GetPayload

func (o *GetScannerMetadataUnauthorized) GetPayload() *model.Errors

type GetScannerNotFound

type GetScannerNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetScannerNotFound handles this case with default header values.

Not found

func NewGetScannerNotFound

func NewGetScannerNotFound() *GetScannerNotFound

NewGetScannerNotFound creates a GetScannerNotFound with default headers values

func (*GetScannerNotFound) Error

func (o *GetScannerNotFound) Error() string

func (*GetScannerNotFound) GetPayload

func (o *GetScannerNotFound) GetPayload() *model.Errors

type GetScannerOK

type GetScannerOK struct {
	Payload *model.ScannerRegistration
}

GetScannerOK handles this case with default header values.

The details of the scanner registration.

func NewGetScannerOK

func NewGetScannerOK() *GetScannerOK

NewGetScannerOK creates a GetScannerOK with default headers values

func (*GetScannerOK) Error

func (o *GetScannerOK) Error() string

func (*GetScannerOK) GetPayload

func (o *GetScannerOK) GetPayload() *model.ScannerRegistration

type GetScannerParams

type GetScannerParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*RegistrationID
	  The scanner registration identifer.

	*/
	RegistrationID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetScannerParams contains all the parameters to send to the API endpoint for the get scanner operation typically these are written to a http.Request

func NewGetScannerParams

func NewGetScannerParams() *GetScannerParams

NewGetScannerParams creates a new GetScannerParams object with the default values initialized.

func NewGetScannerParamsWithContext

func NewGetScannerParamsWithContext(ctx context.Context) *GetScannerParams

NewGetScannerParamsWithContext creates a new GetScannerParams object with the default values initialized, and the ability to set a context for a request

func NewGetScannerParamsWithHTTPClient

func NewGetScannerParamsWithHTTPClient(client *http.Client) *GetScannerParams

NewGetScannerParamsWithHTTPClient creates a new GetScannerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetScannerParamsWithTimeout

func NewGetScannerParamsWithTimeout(timeout time.Duration) *GetScannerParams

NewGetScannerParamsWithTimeout creates a new GetScannerParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetScannerParams) SetContext

func (o *GetScannerParams) SetContext(ctx context.Context)

SetContext adds the context to the get scanner params

func (*GetScannerParams) SetHTTPClient

func (o *GetScannerParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get scanner params

func (*GetScannerParams) SetRegistrationID

func (o *GetScannerParams) SetRegistrationID(registrationID string)

SetRegistrationID adds the registrationId to the get scanner params

func (*GetScannerParams) SetTimeout

func (o *GetScannerParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get scanner params

func (*GetScannerParams) SetXRequestID

func (o *GetScannerParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get scanner params

func (*GetScannerParams) WithContext

func (o *GetScannerParams) WithContext(ctx context.Context) *GetScannerParams

WithContext adds the context to the get scanner params

func (*GetScannerParams) WithHTTPClient

func (o *GetScannerParams) WithHTTPClient(client *http.Client) *GetScannerParams

WithHTTPClient adds the HTTPClient to the get scanner params

func (*GetScannerParams) WithRegistrationID

func (o *GetScannerParams) WithRegistrationID(registrationID string) *GetScannerParams

WithRegistrationID adds the registrationID to the get scanner params

func (*GetScannerParams) WithTimeout

func (o *GetScannerParams) WithTimeout(timeout time.Duration) *GetScannerParams

WithTimeout adds the timeout to the get scanner params

func (*GetScannerParams) WithXRequestID

func (o *GetScannerParams) WithXRequestID(xRequestID *string) *GetScannerParams

WithXRequestID adds the xRequestID to the get scanner params

func (*GetScannerParams) WriteToRequest

func (o *GetScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetScannerReader

type GetScannerReader struct {
	// contains filtered or unexported fields
}

GetScannerReader is a Reader for the GetScanner structure.

func (*GetScannerReader) ReadResponse

func (o *GetScannerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetScannerUnauthorized

type GetScannerUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetScannerUnauthorized handles this case with default header values.

Unauthorized

func NewGetScannerUnauthorized

func NewGetScannerUnauthorized() *GetScannerUnauthorized

NewGetScannerUnauthorized creates a GetScannerUnauthorized with default headers values

func (*GetScannerUnauthorized) Error

func (o *GetScannerUnauthorized) Error() string

func (*GetScannerUnauthorized) GetPayload

func (o *GetScannerUnauthorized) GetPayload() *model.Errors

type ListScannersBadRequest

type ListScannersBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListScannersBadRequest handles this case with default header values.

Bad request

func NewListScannersBadRequest

func NewListScannersBadRequest() *ListScannersBadRequest

NewListScannersBadRequest creates a ListScannersBadRequest with default headers values

func (*ListScannersBadRequest) Error

func (o *ListScannersBadRequest) Error() string

func (*ListScannersBadRequest) GetPayload

func (o *ListScannersBadRequest) GetPayload() *model.Errors

type ListScannersForbidden

type ListScannersForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListScannersForbidden handles this case with default header values.

Forbidden

func NewListScannersForbidden

func NewListScannersForbidden() *ListScannersForbidden

NewListScannersForbidden creates a ListScannersForbidden with default headers values

func (*ListScannersForbidden) Error

func (o *ListScannersForbidden) Error() string

func (*ListScannersForbidden) GetPayload

func (o *ListScannersForbidden) GetPayload() *model.Errors

type ListScannersInternalServerError

type ListScannersInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListScannersInternalServerError handles this case with default header values.

Internal server error

func NewListScannersInternalServerError

func NewListScannersInternalServerError() *ListScannersInternalServerError

NewListScannersInternalServerError creates a ListScannersInternalServerError with default headers values

func (*ListScannersInternalServerError) Error

func (*ListScannersInternalServerError) GetPayload

func (o *ListScannersInternalServerError) GetPayload() *model.Errors

type ListScannersOK

type ListScannersOK struct {
	/*Link to previous page and next page
	 */
	Link string
	/*The total count of available items
	 */
	XTotalCount int64

	Payload []*model.ScannerRegistration
}

ListScannersOK handles this case with default header values.

A list of scanner registrations.

func NewListScannersOK

func NewListScannersOK() *ListScannersOK

NewListScannersOK creates a ListScannersOK with default headers values

func (*ListScannersOK) Error

func (o *ListScannersOK) Error() string

func (*ListScannersOK) GetPayload

func (o *ListScannersOK) GetPayload() []*model.ScannerRegistration

type ListScannersParams

type ListScannersParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

	*/
	Page *int64
	/*PageSize
	  The size of per page

	*/
	PageSize *int64
	/*Q
	  Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]

	*/
	Q *string
	/*Sort
	  Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2"

	*/
	Sort *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListScannersParams contains all the parameters to send to the API endpoint for the list scanners operation typically these are written to a http.Request

func NewListScannersParams

func NewListScannersParams() *ListScannersParams

NewListScannersParams creates a new ListScannersParams object with the default values initialized.

func NewListScannersParamsWithContext

func NewListScannersParamsWithContext(ctx context.Context) *ListScannersParams

NewListScannersParamsWithContext creates a new ListScannersParams object with the default values initialized, and the ability to set a context for a request

func NewListScannersParamsWithHTTPClient

func NewListScannersParamsWithHTTPClient(client *http.Client) *ListScannersParams

NewListScannersParamsWithHTTPClient creates a new ListScannersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewListScannersParamsWithTimeout

func NewListScannersParamsWithTimeout(timeout time.Duration) *ListScannersParams

NewListScannersParamsWithTimeout creates a new ListScannersParams object with the default values initialized, and the ability to set a timeout on a request

func (*ListScannersParams) SetContext

func (o *ListScannersParams) SetContext(ctx context.Context)

SetContext adds the context to the list scanners params

func (*ListScannersParams) SetHTTPClient

func (o *ListScannersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list scanners params

func (*ListScannersParams) SetPage

func (o *ListScannersParams) SetPage(page *int64)

SetPage adds the page to the list scanners params

func (*ListScannersParams) SetPageSize

func (o *ListScannersParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list scanners params

func (*ListScannersParams) SetQ

func (o *ListScannersParams) SetQ(q *string)

SetQ adds the q to the list scanners params

func (*ListScannersParams) SetSort

func (o *ListScannersParams) SetSort(sort *string)

SetSort adds the sort to the list scanners params

func (*ListScannersParams) SetTimeout

func (o *ListScannersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list scanners params

func (*ListScannersParams) SetXRequestID

func (o *ListScannersParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the list scanners params

func (*ListScannersParams) WithContext

WithContext adds the context to the list scanners params

func (*ListScannersParams) WithHTTPClient

func (o *ListScannersParams) WithHTTPClient(client *http.Client) *ListScannersParams

WithHTTPClient adds the HTTPClient to the list scanners params

func (*ListScannersParams) WithPage

func (o *ListScannersParams) WithPage(page *int64) *ListScannersParams

WithPage adds the page to the list scanners params

func (*ListScannersParams) WithPageSize

func (o *ListScannersParams) WithPageSize(pageSize *int64) *ListScannersParams

WithPageSize adds the pageSize to the list scanners params

func (*ListScannersParams) WithQ

WithQ adds the q to the list scanners params

func (*ListScannersParams) WithSort

func (o *ListScannersParams) WithSort(sort *string) *ListScannersParams

WithSort adds the sort to the list scanners params

func (*ListScannersParams) WithTimeout

func (o *ListScannersParams) WithTimeout(timeout time.Duration) *ListScannersParams

WithTimeout adds the timeout to the list scanners params

func (*ListScannersParams) WithXRequestID

func (o *ListScannersParams) WithXRequestID(xRequestID *string) *ListScannersParams

WithXRequestID adds the xRequestID to the list scanners params

func (*ListScannersParams) WriteToRequest

func (o *ListScannersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ListScannersReader

type ListScannersReader struct {
	// contains filtered or unexported fields
}

ListScannersReader is a Reader for the ListScanners structure.

func (*ListScannersReader) ReadResponse

func (o *ListScannersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListScannersUnauthorized

type ListScannersUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListScannersUnauthorized handles this case with default header values.

Unauthorized

func NewListScannersUnauthorized

func NewListScannersUnauthorized() *ListScannersUnauthorized

NewListScannersUnauthorized creates a ListScannersUnauthorized with default headers values

func (*ListScannersUnauthorized) Error

func (o *ListScannersUnauthorized) Error() string

func (*ListScannersUnauthorized) GetPayload

func (o *ListScannersUnauthorized) GetPayload() *model.Errors

type PingScannerBadRequest

type PingScannerBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PingScannerBadRequest handles this case with default header values.

Bad request

func NewPingScannerBadRequest

func NewPingScannerBadRequest() *PingScannerBadRequest

NewPingScannerBadRequest creates a PingScannerBadRequest with default headers values

func (*PingScannerBadRequest) Error

func (o *PingScannerBadRequest) Error() string

func (*PingScannerBadRequest) GetPayload

func (o *PingScannerBadRequest) GetPayload() *model.Errors

type PingScannerForbidden

type PingScannerForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PingScannerForbidden handles this case with default header values.

Forbidden

func NewPingScannerForbidden

func NewPingScannerForbidden() *PingScannerForbidden

NewPingScannerForbidden creates a PingScannerForbidden with default headers values

func (*PingScannerForbidden) Error

func (o *PingScannerForbidden) Error() string

func (*PingScannerForbidden) GetPayload

func (o *PingScannerForbidden) GetPayload() *model.Errors

type PingScannerInternalServerError

type PingScannerInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PingScannerInternalServerError handles this case with default header values.

Internal server error

func NewPingScannerInternalServerError

func NewPingScannerInternalServerError() *PingScannerInternalServerError

NewPingScannerInternalServerError creates a PingScannerInternalServerError with default headers values

func (*PingScannerInternalServerError) Error

func (*PingScannerInternalServerError) GetPayload

func (o *PingScannerInternalServerError) GetPayload() *model.Errors

type PingScannerOK

type PingScannerOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

PingScannerOK handles this case with default header values.

Success

func NewPingScannerOK

func NewPingScannerOK() *PingScannerOK

NewPingScannerOK creates a PingScannerOK with default headers values

func (*PingScannerOK) Error

func (o *PingScannerOK) Error() string

type PingScannerParams

type PingScannerParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Settings
	  A scanner registration settings to be tested.

	*/
	Settings *model.ScannerRegistrationSettings

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PingScannerParams contains all the parameters to send to the API endpoint for the ping scanner operation typically these are written to a http.Request

func NewPingScannerParams

func NewPingScannerParams() *PingScannerParams

NewPingScannerParams creates a new PingScannerParams object with the default values initialized.

func NewPingScannerParamsWithContext

func NewPingScannerParamsWithContext(ctx context.Context) *PingScannerParams

NewPingScannerParamsWithContext creates a new PingScannerParams object with the default values initialized, and the ability to set a context for a request

func NewPingScannerParamsWithHTTPClient

func NewPingScannerParamsWithHTTPClient(client *http.Client) *PingScannerParams

NewPingScannerParamsWithHTTPClient creates a new PingScannerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPingScannerParamsWithTimeout

func NewPingScannerParamsWithTimeout(timeout time.Duration) *PingScannerParams

NewPingScannerParamsWithTimeout creates a new PingScannerParams object with the default values initialized, and the ability to set a timeout on a request

func (*PingScannerParams) SetContext

func (o *PingScannerParams) SetContext(ctx context.Context)

SetContext adds the context to the ping scanner params

func (*PingScannerParams) SetHTTPClient

func (o *PingScannerParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the ping scanner params

func (*PingScannerParams) SetSettings

func (o *PingScannerParams) SetSettings(settings *model.ScannerRegistrationSettings)

SetSettings adds the settings to the ping scanner params

func (*PingScannerParams) SetTimeout

func (o *PingScannerParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the ping scanner params

func (*PingScannerParams) SetXRequestID

func (o *PingScannerParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the ping scanner params

func (*PingScannerParams) WithContext

func (o *PingScannerParams) WithContext(ctx context.Context) *PingScannerParams

WithContext adds the context to the ping scanner params

func (*PingScannerParams) WithHTTPClient

func (o *PingScannerParams) WithHTTPClient(client *http.Client) *PingScannerParams

WithHTTPClient adds the HTTPClient to the ping scanner params

func (*PingScannerParams) WithSettings

WithSettings adds the settings to the ping scanner params

func (*PingScannerParams) WithTimeout

func (o *PingScannerParams) WithTimeout(timeout time.Duration) *PingScannerParams

WithTimeout adds the timeout to the ping scanner params

func (*PingScannerParams) WithXRequestID

func (o *PingScannerParams) WithXRequestID(xRequestID *string) *PingScannerParams

WithXRequestID adds the xRequestID to the ping scanner params

func (*PingScannerParams) WriteToRequest

func (o *PingScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PingScannerReader

type PingScannerReader struct {
	// contains filtered or unexported fields
}

PingScannerReader is a Reader for the PingScanner structure.

func (*PingScannerReader) ReadResponse

func (o *PingScannerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PingScannerUnauthorized

type PingScannerUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PingScannerUnauthorized handles this case with default header values.

Unauthorized

func NewPingScannerUnauthorized

func NewPingScannerUnauthorized() *PingScannerUnauthorized

NewPingScannerUnauthorized creates a PingScannerUnauthorized with default headers values

func (*PingScannerUnauthorized) Error

func (o *PingScannerUnauthorized) Error() string

func (*PingScannerUnauthorized) GetPayload

func (o *PingScannerUnauthorized) GetPayload() *model.Errors

type SetScannerAsDefaultForbidden

type SetScannerAsDefaultForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SetScannerAsDefaultForbidden handles this case with default header values.

Forbidden

func NewSetScannerAsDefaultForbidden

func NewSetScannerAsDefaultForbidden() *SetScannerAsDefaultForbidden

NewSetScannerAsDefaultForbidden creates a SetScannerAsDefaultForbidden with default headers values

func (*SetScannerAsDefaultForbidden) Error

func (*SetScannerAsDefaultForbidden) GetPayload

func (o *SetScannerAsDefaultForbidden) GetPayload() *model.Errors

type SetScannerAsDefaultInternalServerError

type SetScannerAsDefaultInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SetScannerAsDefaultInternalServerError handles this case with default header values.

Internal server error

func NewSetScannerAsDefaultInternalServerError

func NewSetScannerAsDefaultInternalServerError() *SetScannerAsDefaultInternalServerError

NewSetScannerAsDefaultInternalServerError creates a SetScannerAsDefaultInternalServerError with default headers values

func (*SetScannerAsDefaultInternalServerError) Error

func (*SetScannerAsDefaultInternalServerError) GetPayload

type SetScannerAsDefaultOK

type SetScannerAsDefaultOK struct {
}

SetScannerAsDefaultOK handles this case with default header values.

Successfully set the specified scanner registration as system default

func NewSetScannerAsDefaultOK

func NewSetScannerAsDefaultOK() *SetScannerAsDefaultOK

NewSetScannerAsDefaultOK creates a SetScannerAsDefaultOK with default headers values

func (*SetScannerAsDefaultOK) Error

func (o *SetScannerAsDefaultOK) Error() string

type SetScannerAsDefaultParams

type SetScannerAsDefaultParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Payload*/
	Payload *model.IsDefault
	/*RegistrationID
	  The scanner registration identifier.

	*/
	RegistrationID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SetScannerAsDefaultParams contains all the parameters to send to the API endpoint for the set scanner as default operation typically these are written to a http.Request

func NewSetScannerAsDefaultParams

func NewSetScannerAsDefaultParams() *SetScannerAsDefaultParams

NewSetScannerAsDefaultParams creates a new SetScannerAsDefaultParams object with the default values initialized.

func NewSetScannerAsDefaultParamsWithContext

func NewSetScannerAsDefaultParamsWithContext(ctx context.Context) *SetScannerAsDefaultParams

NewSetScannerAsDefaultParamsWithContext creates a new SetScannerAsDefaultParams object with the default values initialized, and the ability to set a context for a request

func NewSetScannerAsDefaultParamsWithHTTPClient

func NewSetScannerAsDefaultParamsWithHTTPClient(client *http.Client) *SetScannerAsDefaultParams

NewSetScannerAsDefaultParamsWithHTTPClient creates a new SetScannerAsDefaultParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSetScannerAsDefaultParamsWithTimeout

func NewSetScannerAsDefaultParamsWithTimeout(timeout time.Duration) *SetScannerAsDefaultParams

NewSetScannerAsDefaultParamsWithTimeout creates a new SetScannerAsDefaultParams object with the default values initialized, and the ability to set a timeout on a request

func (*SetScannerAsDefaultParams) SetContext

func (o *SetScannerAsDefaultParams) SetContext(ctx context.Context)

SetContext adds the context to the set scanner as default params

func (*SetScannerAsDefaultParams) SetHTTPClient

func (o *SetScannerAsDefaultParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the set scanner as default params

func (*SetScannerAsDefaultParams) SetPayload

func (o *SetScannerAsDefaultParams) SetPayload(payload *model.IsDefault)

SetPayload adds the payload to the set scanner as default params

func (*SetScannerAsDefaultParams) SetRegistrationID

func (o *SetScannerAsDefaultParams) SetRegistrationID(registrationID string)

SetRegistrationID adds the registrationId to the set scanner as default params

func (*SetScannerAsDefaultParams) SetTimeout

func (o *SetScannerAsDefaultParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the set scanner as default params

func (*SetScannerAsDefaultParams) SetXRequestID

func (o *SetScannerAsDefaultParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the set scanner as default params

func (*SetScannerAsDefaultParams) WithContext

WithContext adds the context to the set scanner as default params

func (*SetScannerAsDefaultParams) WithHTTPClient

func (o *SetScannerAsDefaultParams) WithHTTPClient(client *http.Client) *SetScannerAsDefaultParams

WithHTTPClient adds the HTTPClient to the set scanner as default params

func (*SetScannerAsDefaultParams) WithPayload

WithPayload adds the payload to the set scanner as default params

func (*SetScannerAsDefaultParams) WithRegistrationID

func (o *SetScannerAsDefaultParams) WithRegistrationID(registrationID string) *SetScannerAsDefaultParams

WithRegistrationID adds the registrationID to the set scanner as default params

func (*SetScannerAsDefaultParams) WithTimeout

WithTimeout adds the timeout to the set scanner as default params

func (*SetScannerAsDefaultParams) WithXRequestID

func (o *SetScannerAsDefaultParams) WithXRequestID(xRequestID *string) *SetScannerAsDefaultParams

WithXRequestID adds the xRequestID to the set scanner as default params

func (*SetScannerAsDefaultParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetScannerAsDefaultReader

type SetScannerAsDefaultReader struct {
	// contains filtered or unexported fields
}

SetScannerAsDefaultReader is a Reader for the SetScannerAsDefault structure.

func (*SetScannerAsDefaultReader) ReadResponse

func (o *SetScannerAsDefaultReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SetScannerAsDefaultUnauthorized

type SetScannerAsDefaultUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SetScannerAsDefaultUnauthorized handles this case with default header values.

Unauthorized

func NewSetScannerAsDefaultUnauthorized

func NewSetScannerAsDefaultUnauthorized() *SetScannerAsDefaultUnauthorized

NewSetScannerAsDefaultUnauthorized creates a SetScannerAsDefaultUnauthorized with default headers values

func (*SetScannerAsDefaultUnauthorized) Error

func (*SetScannerAsDefaultUnauthorized) GetPayload

func (o *SetScannerAsDefaultUnauthorized) GetPayload() *model.Errors

type UpdateScannerForbidden

type UpdateScannerForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateScannerForbidden handles this case with default header values.

Forbidden

func NewUpdateScannerForbidden

func NewUpdateScannerForbidden() *UpdateScannerForbidden

NewUpdateScannerForbidden creates a UpdateScannerForbidden with default headers values

func (*UpdateScannerForbidden) Error

func (o *UpdateScannerForbidden) Error() string

func (*UpdateScannerForbidden) GetPayload

func (o *UpdateScannerForbidden) GetPayload() *model.Errors

type UpdateScannerInternalServerError

type UpdateScannerInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateScannerInternalServerError handles this case with default header values.

Internal server error

func NewUpdateScannerInternalServerError

func NewUpdateScannerInternalServerError() *UpdateScannerInternalServerError

NewUpdateScannerInternalServerError creates a UpdateScannerInternalServerError with default headers values

func (*UpdateScannerInternalServerError) Error

func (*UpdateScannerInternalServerError) GetPayload

type UpdateScannerNotFound

type UpdateScannerNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateScannerNotFound handles this case with default header values.

Not found

func NewUpdateScannerNotFound

func NewUpdateScannerNotFound() *UpdateScannerNotFound

NewUpdateScannerNotFound creates a UpdateScannerNotFound with default headers values

func (*UpdateScannerNotFound) Error

func (o *UpdateScannerNotFound) Error() string

func (*UpdateScannerNotFound) GetPayload

func (o *UpdateScannerNotFound) GetPayload() *model.Errors

type UpdateScannerOK

type UpdateScannerOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateScannerOK handles this case with default header values.

Success

func NewUpdateScannerOK

func NewUpdateScannerOK() *UpdateScannerOK

NewUpdateScannerOK creates a UpdateScannerOK with default headers values

func (*UpdateScannerOK) Error

func (o *UpdateScannerOK) Error() string

type UpdateScannerParams

type UpdateScannerParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Registration
	  A scanner registraiton to be updated.

	*/
	Registration *model.ScannerRegistrationReq
	/*RegistrationID
	  The scanner registration identifier.

	*/
	RegistrationID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateScannerParams contains all the parameters to send to the API endpoint for the update scanner operation typically these are written to a http.Request

func NewUpdateScannerParams

func NewUpdateScannerParams() *UpdateScannerParams

NewUpdateScannerParams creates a new UpdateScannerParams object with the default values initialized.

func NewUpdateScannerParamsWithContext

func NewUpdateScannerParamsWithContext(ctx context.Context) *UpdateScannerParams

NewUpdateScannerParamsWithContext creates a new UpdateScannerParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateScannerParamsWithHTTPClient

func NewUpdateScannerParamsWithHTTPClient(client *http.Client) *UpdateScannerParams

NewUpdateScannerParamsWithHTTPClient creates a new UpdateScannerParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateScannerParamsWithTimeout

func NewUpdateScannerParamsWithTimeout(timeout time.Duration) *UpdateScannerParams

NewUpdateScannerParamsWithTimeout creates a new UpdateScannerParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateScannerParams) SetContext

func (o *UpdateScannerParams) SetContext(ctx context.Context)

SetContext adds the context to the update scanner params

func (*UpdateScannerParams) SetHTTPClient

func (o *UpdateScannerParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update scanner params

func (*UpdateScannerParams) SetRegistration

func (o *UpdateScannerParams) SetRegistration(registration *model.ScannerRegistrationReq)

SetRegistration adds the registration to the update scanner params

func (*UpdateScannerParams) SetRegistrationID

func (o *UpdateScannerParams) SetRegistrationID(registrationID string)

SetRegistrationID adds the registrationId to the update scanner params

func (*UpdateScannerParams) SetTimeout

func (o *UpdateScannerParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update scanner params

func (*UpdateScannerParams) SetXRequestID

func (o *UpdateScannerParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update scanner params

func (*UpdateScannerParams) WithContext

WithContext adds the context to the update scanner params

func (*UpdateScannerParams) WithHTTPClient

func (o *UpdateScannerParams) WithHTTPClient(client *http.Client) *UpdateScannerParams

WithHTTPClient adds the HTTPClient to the update scanner params

func (*UpdateScannerParams) WithRegistration

func (o *UpdateScannerParams) WithRegistration(registration *model.ScannerRegistrationReq) *UpdateScannerParams

WithRegistration adds the registration to the update scanner params

func (*UpdateScannerParams) WithRegistrationID

func (o *UpdateScannerParams) WithRegistrationID(registrationID string) *UpdateScannerParams

WithRegistrationID adds the registrationID to the update scanner params

func (*UpdateScannerParams) WithTimeout

func (o *UpdateScannerParams) WithTimeout(timeout time.Duration) *UpdateScannerParams

WithTimeout adds the timeout to the update scanner params

func (*UpdateScannerParams) WithXRequestID

func (o *UpdateScannerParams) WithXRequestID(xRequestID *string) *UpdateScannerParams

WithXRequestID adds the xRequestID to the update scanner params

func (*UpdateScannerParams) WriteToRequest

func (o *UpdateScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateScannerReader

type UpdateScannerReader struct {
	// contains filtered or unexported fields
}

UpdateScannerReader is a Reader for the UpdateScanner structure.

func (*UpdateScannerReader) ReadResponse

func (o *UpdateScannerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateScannerUnauthorized

type UpdateScannerUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateScannerUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateScannerUnauthorized

func NewUpdateScannerUnauthorized() *UpdateScannerUnauthorized

NewUpdateScannerUnauthorized creates a UpdateScannerUnauthorized with default headers values

func (*UpdateScannerUnauthorized) Error

func (o *UpdateScannerUnauthorized) Error() string

func (*UpdateScannerUnauthorized) GetPayload

func (o *UpdateScannerUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

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