scanner

package
v0.210.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   CreateScanner creates a scanner registration

	   Creats a new scanner registration with the given data.
	*/
	CreateScanner(ctx context.Context, params *CreateScannerParams) (*CreateScannerCreated, error)
	/*
	   DeleteScanner deletes a scanner registration

	   Deletes the specified scanner registration.
	*/
	DeleteScanner(ctx context.Context, params *DeleteScannerParams) (*DeleteScannerOK, error)
	/*
	   GetScanner gets a scanner registration details

	   Retruns the details of the specified scanner registration.
	*/
	GetScanner(ctx context.Context, params *GetScannerParams) (*GetScannerOK, error)
	/*
	   GetScannerMetadata gets the metadata of the specified scanner registration

	   Get the metadata of the specified scanner registration, including the capabilities and customized properties.
	*/
	GetScannerMetadata(ctx context.Context, params *GetScannerMetadataParams) (*GetScannerMetadataOK, error)
	/*
	   ListScanners lists scanner registrations

	   Returns a list of currently configured scanner registrations.
	*/
	ListScanners(ctx context.Context, params *ListScannersParams) (*ListScannersOK, error)
	/*
	   PingScanner tests scanner registration settings

	   Pings scanner adapter to test endpoint URL and authorization settings.
	*/
	PingScanner(ctx context.Context, params *PingScannerParams) (*PingScannerOK, error)
	/*
	   SetScannerAsDefault sets system default scanner registration

	   Set the specified scanner registration as the system default one.
	*/
	SetScannerAsDefault(ctx context.Context, params *SetScannerAsDefaultParams) (*SetScannerAsDefaultOK, error)
	/*
	   UpdateScanner updates a scanner registration

	   Updates the specified scanner registration.
	*/
	UpdateScanner(ctx context.Context, params *UpdateScannerParams) (*UpdateScannerOK, error)
}

API is the interface of the scanner client

type Client

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

Client for scanner API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new scanner API client.

func (*Client) CreateScanner

func (a *Client) CreateScanner(ctx context.Context, params *CreateScannerParams) (*CreateScannerCreated, error)

CreateScanner creates a scanner registration

Creats a new scanner registration with the given data.

func (*Client) DeleteScanner

func (a *Client) DeleteScanner(ctx context.Context, params *DeleteScannerParams) (*DeleteScannerOK, error)

DeleteScanner deletes a scanner registration

Deletes the specified scanner registration.

func (*Client) GetScanner

func (a *Client) GetScanner(ctx context.Context, params *GetScannerParams) (*GetScannerOK, error)

GetScanner gets a scanner registration details

Retruns the details of the specified scanner registration.

func (*Client) GetScannerMetadata

func (a *Client) GetScannerMetadata(ctx context.Context, params *GetScannerMetadataParams) (*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(ctx context.Context, params *ListScannersParams) (*ListScannersOK, error)

ListScanners lists scanner registrations

Returns a list of currently configured scanner registrations.

func (*Client) PingScanner

func (a *Client) PingScanner(ctx context.Context, params *PingScannerParams) (*PingScannerOK, error)

PingScanner tests scanner registration settings

Pings scanner adapter to test endpoint URL and authorization settings.

func (*Client) SetScannerAsDefault

func (a *Client) SetScannerAsDefault(ctx context.Context, params *SetScannerAsDefaultParams) (*SetScannerAsDefaultOK, error)

SetScannerAsDefault sets system default scanner registration

Set the specified scanner registration as the system default one.

func (*Client) UpdateScanner

func (a *Client) UpdateScanner(ctx context.Context, params *UpdateScannerParams) (*UpdateScannerOK, error)

UpdateScanner updates a scanner registration

Updates the specified scanner registration.

type CreateScannerBadRequest

type CreateScannerBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateScannerBadRequest describes a response with status code 400, 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() *models.Errors

func (*CreateScannerBadRequest) IsClientError added in v0.26.2

func (o *CreateScannerBadRequest) IsClientError() bool

IsClientError returns true when this create scanner bad request response has a 4xx status code

func (*CreateScannerBadRequest) IsCode added in v0.26.2

func (o *CreateScannerBadRequest) IsCode(code int) bool

IsCode returns true when this create scanner bad request response a status code equal to that given

func (*CreateScannerBadRequest) IsRedirect added in v0.26.2

func (o *CreateScannerBadRequest) IsRedirect() bool

IsRedirect returns true when this create scanner bad request response has a 3xx status code

func (*CreateScannerBadRequest) IsServerError added in v0.26.2

func (o *CreateScannerBadRequest) IsServerError() bool

IsServerError returns true when this create scanner bad request response has a 5xx status code

func (*CreateScannerBadRequest) IsSuccess added in v0.26.2

func (o *CreateScannerBadRequest) IsSuccess() bool

IsSuccess returns true when this create scanner bad request response has a 2xx status code

func (*CreateScannerBadRequest) String added in v0.26.2

func (o *CreateScannerBadRequest) String() string

type CreateScannerCreated

type CreateScannerCreated struct {

	/* The URL of the created resource
	 */
	Location string
}

CreateScannerCreated describes a response with status code 201, 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

func (*CreateScannerCreated) IsClientError added in v0.26.2

func (o *CreateScannerCreated) IsClientError() bool

IsClientError returns true when this create scanner created response has a 4xx status code

func (*CreateScannerCreated) IsCode added in v0.26.2

func (o *CreateScannerCreated) IsCode(code int) bool

IsCode returns true when this create scanner created response a status code equal to that given

func (*CreateScannerCreated) IsRedirect added in v0.26.2

func (o *CreateScannerCreated) IsRedirect() bool

IsRedirect returns true when this create scanner created response has a 3xx status code

func (*CreateScannerCreated) IsServerError added in v0.26.2

func (o *CreateScannerCreated) IsServerError() bool

IsServerError returns true when this create scanner created response has a 5xx status code

func (*CreateScannerCreated) IsSuccess added in v0.26.2

func (o *CreateScannerCreated) IsSuccess() bool

IsSuccess returns true when this create scanner created response has a 2xx status code

func (*CreateScannerCreated) String added in v0.26.2

func (o *CreateScannerCreated) String() string

type CreateScannerForbidden

type CreateScannerForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateScannerForbidden describes a response with status code 403, 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() *models.Errors

func (*CreateScannerForbidden) IsClientError added in v0.26.2

func (o *CreateScannerForbidden) IsClientError() bool

IsClientError returns true when this create scanner forbidden response has a 4xx status code

func (*CreateScannerForbidden) IsCode added in v0.26.2

func (o *CreateScannerForbidden) IsCode(code int) bool

IsCode returns true when this create scanner forbidden response a status code equal to that given

func (*CreateScannerForbidden) IsRedirect added in v0.26.2

func (o *CreateScannerForbidden) IsRedirect() bool

IsRedirect returns true when this create scanner forbidden response has a 3xx status code

func (*CreateScannerForbidden) IsServerError added in v0.26.2

func (o *CreateScannerForbidden) IsServerError() bool

IsServerError returns true when this create scanner forbidden response has a 5xx status code

func (*CreateScannerForbidden) IsSuccess added in v0.26.2

func (o *CreateScannerForbidden) IsSuccess() bool

IsSuccess returns true when this create scanner forbidden response has a 2xx status code

func (*CreateScannerForbidden) String added in v0.26.2

func (o *CreateScannerForbidden) String() string

type CreateScannerInternalServerError

type CreateScannerInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

CreateScannerInternalServerError describes a response with status code 500, 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

func (*CreateScannerInternalServerError) IsClientError added in v0.26.2

func (o *CreateScannerInternalServerError) IsClientError() bool

IsClientError returns true when this create scanner internal server error response has a 4xx status code

func (*CreateScannerInternalServerError) IsCode added in v0.26.2

func (o *CreateScannerInternalServerError) IsCode(code int) bool

IsCode returns true when this create scanner internal server error response a status code equal to that given

func (*CreateScannerInternalServerError) IsRedirect added in v0.26.2

func (o *CreateScannerInternalServerError) IsRedirect() bool

IsRedirect returns true when this create scanner internal server error response has a 3xx status code

func (*CreateScannerInternalServerError) IsServerError added in v0.26.2

func (o *CreateScannerInternalServerError) IsServerError() bool

IsServerError returns true when this create scanner internal server error response has a 5xx status code

func (*CreateScannerInternalServerError) IsSuccess added in v0.26.2

func (o *CreateScannerInternalServerError) IsSuccess() bool

IsSuccess returns true when this create scanner internal server error response has a 2xx status code

func (*CreateScannerInternalServerError) String added in v0.26.2

type CreateScannerParams

type CreateScannerParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* Registration.

	   A scanner registration to be created.
	*/
	Registration *models.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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateScannerParamsWithContext

func NewCreateScannerParamsWithContext(ctx context.Context) *CreateScannerParams

NewCreateScannerParamsWithContext creates a new CreateScannerParams object with 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 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 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) SetDefaults

func (o *CreateScannerParams) SetDefaults()

SetDefaults hydrates default values in the create scanner params (not the query body).

All values with no default are reset to their zero value.

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 *models.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) WithDefaults

func (o *CreateScannerParams) WithDefaults() *CreateScannerParams

WithDefaults hydrates default values in the create scanner params (not the query body).

All values with no default are reset to their zero value.

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 *models.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 *models.Errors
}

CreateScannerUnauthorized describes a response with status code 401, 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() *models.Errors

func (*CreateScannerUnauthorized) IsClientError added in v0.26.2

func (o *CreateScannerUnauthorized) IsClientError() bool

IsClientError returns true when this create scanner unauthorized response has a 4xx status code

func (*CreateScannerUnauthorized) IsCode added in v0.26.2

func (o *CreateScannerUnauthorized) IsCode(code int) bool

IsCode returns true when this create scanner unauthorized response a status code equal to that given

func (*CreateScannerUnauthorized) IsRedirect added in v0.26.2

func (o *CreateScannerUnauthorized) IsRedirect() bool

IsRedirect returns true when this create scanner unauthorized response has a 3xx status code

func (*CreateScannerUnauthorized) IsServerError added in v0.26.2

func (o *CreateScannerUnauthorized) IsServerError() bool

IsServerError returns true when this create scanner unauthorized response has a 5xx status code

func (*CreateScannerUnauthorized) IsSuccess added in v0.26.2

func (o *CreateScannerUnauthorized) IsSuccess() bool

IsSuccess returns true when this create scanner unauthorized response has a 2xx status code

func (*CreateScannerUnauthorized) String added in v0.26.2

func (o *CreateScannerUnauthorized) String() string

type DeleteScannerForbidden

type DeleteScannerForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteScannerForbidden describes a response with status code 403, 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() *models.Errors

func (*DeleteScannerForbidden) IsClientError added in v0.26.2

func (o *DeleteScannerForbidden) IsClientError() bool

IsClientError returns true when this delete scanner forbidden response has a 4xx status code

func (*DeleteScannerForbidden) IsCode added in v0.26.2

func (o *DeleteScannerForbidden) IsCode(code int) bool

IsCode returns true when this delete scanner forbidden response a status code equal to that given

func (*DeleteScannerForbidden) IsRedirect added in v0.26.2

func (o *DeleteScannerForbidden) IsRedirect() bool

IsRedirect returns true when this delete scanner forbidden response has a 3xx status code

func (*DeleteScannerForbidden) IsServerError added in v0.26.2

func (o *DeleteScannerForbidden) IsServerError() bool

IsServerError returns true when this delete scanner forbidden response has a 5xx status code

func (*DeleteScannerForbidden) IsSuccess added in v0.26.2

func (o *DeleteScannerForbidden) IsSuccess() bool

IsSuccess returns true when this delete scanner forbidden response has a 2xx status code

func (*DeleteScannerForbidden) String added in v0.26.2

func (o *DeleteScannerForbidden) String() string

type DeleteScannerInternalServerError

type DeleteScannerInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteScannerInternalServerError describes a response with status code 500, 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

func (*DeleteScannerInternalServerError) IsClientError added in v0.26.2

func (o *DeleteScannerInternalServerError) IsClientError() bool

IsClientError returns true when this delete scanner internal server error response has a 4xx status code

func (*DeleteScannerInternalServerError) IsCode added in v0.26.2

func (o *DeleteScannerInternalServerError) IsCode(code int) bool

IsCode returns true when this delete scanner internal server error response a status code equal to that given

func (*DeleteScannerInternalServerError) IsRedirect added in v0.26.2

func (o *DeleteScannerInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete scanner internal server error response has a 3xx status code

func (*DeleteScannerInternalServerError) IsServerError added in v0.26.2

func (o *DeleteScannerInternalServerError) IsServerError() bool

IsServerError returns true when this delete scanner internal server error response has a 5xx status code

func (*DeleteScannerInternalServerError) IsSuccess added in v0.26.2

func (o *DeleteScannerInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete scanner internal server error response has a 2xx status code

func (*DeleteScannerInternalServerError) String added in v0.26.2

type DeleteScannerNotFound

type DeleteScannerNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteScannerNotFound describes a response with status code 404, 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() *models.Errors

func (*DeleteScannerNotFound) IsClientError added in v0.26.2

func (o *DeleteScannerNotFound) IsClientError() bool

IsClientError returns true when this delete scanner not found response has a 4xx status code

func (*DeleteScannerNotFound) IsCode added in v0.26.2

func (o *DeleteScannerNotFound) IsCode(code int) bool

IsCode returns true when this delete scanner not found response a status code equal to that given

func (*DeleteScannerNotFound) IsRedirect added in v0.26.2

func (o *DeleteScannerNotFound) IsRedirect() bool

IsRedirect returns true when this delete scanner not found response has a 3xx status code

func (*DeleteScannerNotFound) IsServerError added in v0.26.2

func (o *DeleteScannerNotFound) IsServerError() bool

IsServerError returns true when this delete scanner not found response has a 5xx status code

func (*DeleteScannerNotFound) IsSuccess added in v0.26.2

func (o *DeleteScannerNotFound) IsSuccess() bool

IsSuccess returns true when this delete scanner not found response has a 2xx status code

func (*DeleteScannerNotFound) String added in v0.26.2

func (o *DeleteScannerNotFound) String() string

type DeleteScannerOK

type DeleteScannerOK struct {
	Payload *models.ScannerRegistration
}

DeleteScannerOK describes a response with status code 200, 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() *models.ScannerRegistration

func (*DeleteScannerOK) IsClientError added in v0.26.2

func (o *DeleteScannerOK) IsClientError() bool

IsClientError returns true when this delete scanner o k response has a 4xx status code

func (*DeleteScannerOK) IsCode added in v0.26.2

func (o *DeleteScannerOK) IsCode(code int) bool

IsCode returns true when this delete scanner o k response a status code equal to that given

func (*DeleteScannerOK) IsRedirect added in v0.26.2

func (o *DeleteScannerOK) IsRedirect() bool

IsRedirect returns true when this delete scanner o k response has a 3xx status code

func (*DeleteScannerOK) IsServerError added in v0.26.2

func (o *DeleteScannerOK) IsServerError() bool

IsServerError returns true when this delete scanner o k response has a 5xx status code

func (*DeleteScannerOK) IsSuccess added in v0.26.2

func (o *DeleteScannerOK) IsSuccess() bool

IsSuccess returns true when this delete scanner o k response has a 2xx status code

func (*DeleteScannerOK) String added in v0.26.2

func (o *DeleteScannerOK) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDeleteScannerParamsWithContext

func NewDeleteScannerParamsWithContext(ctx context.Context) *DeleteScannerParams

NewDeleteScannerParamsWithContext creates a new DeleteScannerParams object with 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 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 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) SetDefaults

func (o *DeleteScannerParams) SetDefaults()

SetDefaults hydrates default values in the delete scanner params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

func (o *DeleteScannerParams) WithDefaults() *DeleteScannerParams

WithDefaults hydrates default values in the delete scanner params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

DeleteScannerUnauthorized describes a response with status code 401, 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() *models.Errors

func (*DeleteScannerUnauthorized) IsClientError added in v0.26.2

func (o *DeleteScannerUnauthorized) IsClientError() bool

IsClientError returns true when this delete scanner unauthorized response has a 4xx status code

func (*DeleteScannerUnauthorized) IsCode added in v0.26.2

func (o *DeleteScannerUnauthorized) IsCode(code int) bool

IsCode returns true when this delete scanner unauthorized response a status code equal to that given

func (*DeleteScannerUnauthorized) IsRedirect added in v0.26.2

func (o *DeleteScannerUnauthorized) IsRedirect() bool

IsRedirect returns true when this delete scanner unauthorized response has a 3xx status code

func (*DeleteScannerUnauthorized) IsServerError added in v0.26.2

func (o *DeleteScannerUnauthorized) IsServerError() bool

IsServerError returns true when this delete scanner unauthorized response has a 5xx status code

func (*DeleteScannerUnauthorized) IsSuccess added in v0.26.2

func (o *DeleteScannerUnauthorized) IsSuccess() bool

IsSuccess returns true when this delete scanner unauthorized response has a 2xx status code

func (*DeleteScannerUnauthorized) String added in v0.26.2

func (o *DeleteScannerUnauthorized) String() string

type GetScannerForbidden

type GetScannerForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetScannerForbidden describes a response with status code 403, 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() *models.Errors

func (*GetScannerForbidden) IsClientError added in v0.26.2

func (o *GetScannerForbidden) IsClientError() bool

IsClientError returns true when this get scanner forbidden response has a 4xx status code

func (*GetScannerForbidden) IsCode added in v0.26.2

func (o *GetScannerForbidden) IsCode(code int) bool

IsCode returns true when this get scanner forbidden response a status code equal to that given

func (*GetScannerForbidden) IsRedirect added in v0.26.2

func (o *GetScannerForbidden) IsRedirect() bool

IsRedirect returns true when this get scanner forbidden response has a 3xx status code

func (*GetScannerForbidden) IsServerError added in v0.26.2

func (o *GetScannerForbidden) IsServerError() bool

IsServerError returns true when this get scanner forbidden response has a 5xx status code

func (*GetScannerForbidden) IsSuccess added in v0.26.2

func (o *GetScannerForbidden) IsSuccess() bool

IsSuccess returns true when this get scanner forbidden response has a 2xx status code

func (*GetScannerForbidden) String added in v0.26.2

func (o *GetScannerForbidden) String() string

type GetScannerInternalServerError

type GetScannerInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetScannerInternalServerError describes a response with status code 500, 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() *models.Errors

func (*GetScannerInternalServerError) IsClientError added in v0.26.2

func (o *GetScannerInternalServerError) IsClientError() bool

IsClientError returns true when this get scanner internal server error response has a 4xx status code

func (*GetScannerInternalServerError) IsCode added in v0.26.2

func (o *GetScannerInternalServerError) IsCode(code int) bool

IsCode returns true when this get scanner internal server error response a status code equal to that given

func (*GetScannerInternalServerError) IsRedirect added in v0.26.2

func (o *GetScannerInternalServerError) IsRedirect() bool

IsRedirect returns true when this get scanner internal server error response has a 3xx status code

func (*GetScannerInternalServerError) IsServerError added in v0.26.2

func (o *GetScannerInternalServerError) IsServerError() bool

IsServerError returns true when this get scanner internal server error response has a 5xx status code

func (*GetScannerInternalServerError) IsSuccess added in v0.26.2

func (o *GetScannerInternalServerError) IsSuccess() bool

IsSuccess returns true when this get scanner internal server error response has a 2xx status code

func (*GetScannerInternalServerError) String added in v0.26.2

type GetScannerMetadataForbidden

type GetScannerMetadataForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetScannerMetadataForbidden describes a response with status code 403, 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() *models.Errors

func (*GetScannerMetadataForbidden) IsClientError added in v0.26.2

func (o *GetScannerMetadataForbidden) IsClientError() bool

IsClientError returns true when this get scanner metadata forbidden response has a 4xx status code

func (*GetScannerMetadataForbidden) IsCode added in v0.26.2

func (o *GetScannerMetadataForbidden) IsCode(code int) bool

IsCode returns true when this get scanner metadata forbidden response a status code equal to that given

func (*GetScannerMetadataForbidden) IsRedirect added in v0.26.2

func (o *GetScannerMetadataForbidden) IsRedirect() bool

IsRedirect returns true when this get scanner metadata forbidden response has a 3xx status code

func (*GetScannerMetadataForbidden) IsServerError added in v0.26.2

func (o *GetScannerMetadataForbidden) IsServerError() bool

IsServerError returns true when this get scanner metadata forbidden response has a 5xx status code

func (*GetScannerMetadataForbidden) IsSuccess added in v0.26.2

func (o *GetScannerMetadataForbidden) IsSuccess() bool

IsSuccess returns true when this get scanner metadata forbidden response has a 2xx status code

func (*GetScannerMetadataForbidden) String added in v0.26.2

func (o *GetScannerMetadataForbidden) String() string

type GetScannerMetadataInternalServerError

type GetScannerMetadataInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetScannerMetadataInternalServerError describes a response with status code 500, 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

func (*GetScannerMetadataInternalServerError) IsClientError added in v0.26.2

func (o *GetScannerMetadataInternalServerError) IsClientError() bool

IsClientError returns true when this get scanner metadata internal server error response has a 4xx status code

func (*GetScannerMetadataInternalServerError) IsCode added in v0.26.2

IsCode returns true when this get scanner metadata internal server error response a status code equal to that given

func (*GetScannerMetadataInternalServerError) IsRedirect added in v0.26.2

IsRedirect returns true when this get scanner metadata internal server error response has a 3xx status code

func (*GetScannerMetadataInternalServerError) IsServerError added in v0.26.2

func (o *GetScannerMetadataInternalServerError) IsServerError() bool

IsServerError returns true when this get scanner metadata internal server error response has a 5xx status code

func (*GetScannerMetadataInternalServerError) IsSuccess added in v0.26.2

IsSuccess returns true when this get scanner metadata internal server error response has a 2xx status code

func (*GetScannerMetadataInternalServerError) String added in v0.26.2

type GetScannerMetadataOK

type GetScannerMetadataOK struct {
	Payload *models.ScannerAdapterMetadata
}

GetScannerMetadataOK describes a response with status code 200, 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

func (*GetScannerMetadataOK) IsClientError added in v0.26.2

func (o *GetScannerMetadataOK) IsClientError() bool

IsClientError returns true when this get scanner metadata o k response has a 4xx status code

func (*GetScannerMetadataOK) IsCode added in v0.26.2

func (o *GetScannerMetadataOK) IsCode(code int) bool

IsCode returns true when this get scanner metadata o k response a status code equal to that given

func (*GetScannerMetadataOK) IsRedirect added in v0.26.2

func (o *GetScannerMetadataOK) IsRedirect() bool

IsRedirect returns true when this get scanner metadata o k response has a 3xx status code

func (*GetScannerMetadataOK) IsServerError added in v0.26.2

func (o *GetScannerMetadataOK) IsServerError() bool

IsServerError returns true when this get scanner metadata o k response has a 5xx status code

func (*GetScannerMetadataOK) IsSuccess added in v0.26.2

func (o *GetScannerMetadataOK) IsSuccess() bool

IsSuccess returns true when this get scanner metadata o k response has a 2xx status code

func (*GetScannerMetadataOK) String added in v0.26.2

func (o *GetScannerMetadataOK) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetScannerMetadataParamsWithContext

func NewGetScannerMetadataParamsWithContext(ctx context.Context) *GetScannerMetadataParams

NewGetScannerMetadataParamsWithContext creates a new GetScannerMetadataParams object with 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 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 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) SetDefaults

func (o *GetScannerMetadataParams) SetDefaults()

SetDefaults hydrates default values in the get scanner metadata params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

WithDefaults hydrates default values in the get scanner metadata params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

GetScannerMetadataUnauthorized describes a response with status code 401, 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() *models.Errors

func (*GetScannerMetadataUnauthorized) IsClientError added in v0.26.2

func (o *GetScannerMetadataUnauthorized) IsClientError() bool

IsClientError returns true when this get scanner metadata unauthorized response has a 4xx status code

func (*GetScannerMetadataUnauthorized) IsCode added in v0.26.2

func (o *GetScannerMetadataUnauthorized) IsCode(code int) bool

IsCode returns true when this get scanner metadata unauthorized response a status code equal to that given

func (*GetScannerMetadataUnauthorized) IsRedirect added in v0.26.2

func (o *GetScannerMetadataUnauthorized) IsRedirect() bool

IsRedirect returns true when this get scanner metadata unauthorized response has a 3xx status code

func (*GetScannerMetadataUnauthorized) IsServerError added in v0.26.2

func (o *GetScannerMetadataUnauthorized) IsServerError() bool

IsServerError returns true when this get scanner metadata unauthorized response has a 5xx status code

func (*GetScannerMetadataUnauthorized) IsSuccess added in v0.26.2

func (o *GetScannerMetadataUnauthorized) IsSuccess() bool

IsSuccess returns true when this get scanner metadata unauthorized response has a 2xx status code

func (*GetScannerMetadataUnauthorized) String added in v0.26.2

type GetScannerNotFound

type GetScannerNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetScannerNotFound describes a response with status code 404, 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() *models.Errors

func (*GetScannerNotFound) IsClientError added in v0.26.2

func (o *GetScannerNotFound) IsClientError() bool

IsClientError returns true when this get scanner not found response has a 4xx status code

func (*GetScannerNotFound) IsCode added in v0.26.2

func (o *GetScannerNotFound) IsCode(code int) bool

IsCode returns true when this get scanner not found response a status code equal to that given

func (*GetScannerNotFound) IsRedirect added in v0.26.2

func (o *GetScannerNotFound) IsRedirect() bool

IsRedirect returns true when this get scanner not found response has a 3xx status code

func (*GetScannerNotFound) IsServerError added in v0.26.2

func (o *GetScannerNotFound) IsServerError() bool

IsServerError returns true when this get scanner not found response has a 5xx status code

func (*GetScannerNotFound) IsSuccess added in v0.26.2

func (o *GetScannerNotFound) IsSuccess() bool

IsSuccess returns true when this get scanner not found response has a 2xx status code

func (*GetScannerNotFound) String added in v0.26.2

func (o *GetScannerNotFound) String() string

type GetScannerOK

type GetScannerOK struct {
	Payload *models.ScannerRegistration
}

GetScannerOK describes a response with status code 200, 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() *models.ScannerRegistration

func (*GetScannerOK) IsClientError added in v0.26.2

func (o *GetScannerOK) IsClientError() bool

IsClientError returns true when this get scanner o k response has a 4xx status code

func (*GetScannerOK) IsCode added in v0.26.2

func (o *GetScannerOK) IsCode(code int) bool

IsCode returns true when this get scanner o k response a status code equal to that given

func (*GetScannerOK) IsRedirect added in v0.26.2

func (o *GetScannerOK) IsRedirect() bool

IsRedirect returns true when this get scanner o k response has a 3xx status code

func (*GetScannerOK) IsServerError added in v0.26.2

func (o *GetScannerOK) IsServerError() bool

IsServerError returns true when this get scanner o k response has a 5xx status code

func (*GetScannerOK) IsSuccess added in v0.26.2

func (o *GetScannerOK) IsSuccess() bool

IsSuccess returns true when this get scanner o k response has a 2xx status code

func (*GetScannerOK) String added in v0.26.2

func (o *GetScannerOK) String() string

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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetScannerParamsWithContext

func NewGetScannerParamsWithContext(ctx context.Context) *GetScannerParams

NewGetScannerParamsWithContext creates a new GetScannerParams object with 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 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 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) SetDefaults

func (o *GetScannerParams) SetDefaults()

SetDefaults hydrates default values in the get scanner params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

func (o *GetScannerParams) WithDefaults() *GetScannerParams

WithDefaults hydrates default values in the get scanner params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

GetScannerUnauthorized describes a response with status code 401, 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() *models.Errors

func (*GetScannerUnauthorized) IsClientError added in v0.26.2

func (o *GetScannerUnauthorized) IsClientError() bool

IsClientError returns true when this get scanner unauthorized response has a 4xx status code

func (*GetScannerUnauthorized) IsCode added in v0.26.2

func (o *GetScannerUnauthorized) IsCode(code int) bool

IsCode returns true when this get scanner unauthorized response a status code equal to that given

func (*GetScannerUnauthorized) IsRedirect added in v0.26.2

func (o *GetScannerUnauthorized) IsRedirect() bool

IsRedirect returns true when this get scanner unauthorized response has a 3xx status code

func (*GetScannerUnauthorized) IsServerError added in v0.26.2

func (o *GetScannerUnauthorized) IsServerError() bool

IsServerError returns true when this get scanner unauthorized response has a 5xx status code

func (*GetScannerUnauthorized) IsSuccess added in v0.26.2

func (o *GetScannerUnauthorized) IsSuccess() bool

IsSuccess returns true when this get scanner unauthorized response has a 2xx status code

func (*GetScannerUnauthorized) String added in v0.26.2

func (o *GetScannerUnauthorized) String() string

type ListScannersBadRequest

type ListScannersBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListScannersBadRequest describes a response with status code 400, 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() *models.Errors

func (*ListScannersBadRequest) IsClientError added in v0.26.2

func (o *ListScannersBadRequest) IsClientError() bool

IsClientError returns true when this list scanners bad request response has a 4xx status code

func (*ListScannersBadRequest) IsCode added in v0.26.2

func (o *ListScannersBadRequest) IsCode(code int) bool

IsCode returns true when this list scanners bad request response a status code equal to that given

func (*ListScannersBadRequest) IsRedirect added in v0.26.2

func (o *ListScannersBadRequest) IsRedirect() bool

IsRedirect returns true when this list scanners bad request response has a 3xx status code

func (*ListScannersBadRequest) IsServerError added in v0.26.2

func (o *ListScannersBadRequest) IsServerError() bool

IsServerError returns true when this list scanners bad request response has a 5xx status code

func (*ListScannersBadRequest) IsSuccess added in v0.26.2

func (o *ListScannersBadRequest) IsSuccess() bool

IsSuccess returns true when this list scanners bad request response has a 2xx status code

func (*ListScannersBadRequest) String added in v0.26.2

func (o *ListScannersBadRequest) String() string

type ListScannersForbidden

type ListScannersForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListScannersForbidden describes a response with status code 403, 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() *models.Errors

func (*ListScannersForbidden) IsClientError added in v0.26.2

func (o *ListScannersForbidden) IsClientError() bool

IsClientError returns true when this list scanners forbidden response has a 4xx status code

func (*ListScannersForbidden) IsCode added in v0.26.2

func (o *ListScannersForbidden) IsCode(code int) bool

IsCode returns true when this list scanners forbidden response a status code equal to that given

func (*ListScannersForbidden) IsRedirect added in v0.26.2

func (o *ListScannersForbidden) IsRedirect() bool

IsRedirect returns true when this list scanners forbidden response has a 3xx status code

func (*ListScannersForbidden) IsServerError added in v0.26.2

func (o *ListScannersForbidden) IsServerError() bool

IsServerError returns true when this list scanners forbidden response has a 5xx status code

func (*ListScannersForbidden) IsSuccess added in v0.26.2

func (o *ListScannersForbidden) IsSuccess() bool

IsSuccess returns true when this list scanners forbidden response has a 2xx status code

func (*ListScannersForbidden) String added in v0.26.2

func (o *ListScannersForbidden) String() string

type ListScannersInternalServerError

type ListScannersInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

ListScannersInternalServerError describes a response with status code 500, 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 (*ListScannersInternalServerError) IsClientError added in v0.26.2

func (o *ListScannersInternalServerError) IsClientError() bool

IsClientError returns true when this list scanners internal server error response has a 4xx status code

func (*ListScannersInternalServerError) IsCode added in v0.26.2

func (o *ListScannersInternalServerError) IsCode(code int) bool

IsCode returns true when this list scanners internal server error response a status code equal to that given

func (*ListScannersInternalServerError) IsRedirect added in v0.26.2

func (o *ListScannersInternalServerError) IsRedirect() bool

IsRedirect returns true when this list scanners internal server error response has a 3xx status code

func (*ListScannersInternalServerError) IsServerError added in v0.26.2

func (o *ListScannersInternalServerError) IsServerError() bool

IsServerError returns true when this list scanners internal server error response has a 5xx status code

func (*ListScannersInternalServerError) IsSuccess added in v0.26.2

func (o *ListScannersInternalServerError) IsSuccess() bool

IsSuccess returns true when this list scanners internal server error response has a 2xx status code

func (*ListScannersInternalServerError) String added in v0.26.2

type ListScannersOK

type ListScannersOK struct {

	/* Link to previous page and next page
	 */
	Link string

	/* The total count of available items
	 */
	XTotalCount int64

	Payload []*models.ScannerRegistration
}

ListScannersOK describes a response with status code 200, 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() []*models.ScannerRegistration

func (*ListScannersOK) IsClientError added in v0.26.2

func (o *ListScannersOK) IsClientError() bool

IsClientError returns true when this list scanners o k response has a 4xx status code

func (*ListScannersOK) IsCode added in v0.26.2

func (o *ListScannersOK) IsCode(code int) bool

IsCode returns true when this list scanners o k response a status code equal to that given

func (*ListScannersOK) IsRedirect added in v0.26.2

func (o *ListScannersOK) IsRedirect() bool

IsRedirect returns true when this list scanners o k response has a 3xx status code

func (*ListScannersOK) IsServerError added in v0.26.2

func (o *ListScannersOK) IsServerError() bool

IsServerError returns true when this list scanners o k response has a 5xx status code

func (*ListScannersOK) IsSuccess added in v0.26.2

func (o *ListScannersOK) IsSuccess() bool

IsSuccess returns true when this list scanners o k response has a 2xx status code

func (*ListScannersOK) String added in v0.26.2

func (o *ListScannersOK) String() string

type ListScannersParams

type ListScannersParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* Page.

	   The page number

	   Format: int64
	   Default: 1
	*/
	Page *int64

	/* PageSize.

	   The size of per page

	   Format: int64
	   Default: 10
	*/
	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 order 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewListScannersParamsWithContext

func NewListScannersParamsWithContext(ctx context.Context) *ListScannersParams

NewListScannersParamsWithContext creates a new ListScannersParams object with 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 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 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) SetDefaults

func (o *ListScannersParams) SetDefaults()

SetDefaults hydrates default values in the list scanners params (not the query body).

All values with no default are reset to their zero value.

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) WithDefaults

func (o *ListScannersParams) WithDefaults() *ListScannersParams

WithDefaults hydrates default values in the list scanners params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

ListScannersUnauthorized describes a response with status code 401, 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() *models.Errors

func (*ListScannersUnauthorized) IsClientError added in v0.26.2

func (o *ListScannersUnauthorized) IsClientError() bool

IsClientError returns true when this list scanners unauthorized response has a 4xx status code

func (*ListScannersUnauthorized) IsCode added in v0.26.2

func (o *ListScannersUnauthorized) IsCode(code int) bool

IsCode returns true when this list scanners unauthorized response a status code equal to that given

func (*ListScannersUnauthorized) IsRedirect added in v0.26.2

func (o *ListScannersUnauthorized) IsRedirect() bool

IsRedirect returns true when this list scanners unauthorized response has a 3xx status code

func (*ListScannersUnauthorized) IsServerError added in v0.26.2

func (o *ListScannersUnauthorized) IsServerError() bool

IsServerError returns true when this list scanners unauthorized response has a 5xx status code

func (*ListScannersUnauthorized) IsSuccess added in v0.26.2

func (o *ListScannersUnauthorized) IsSuccess() bool

IsSuccess returns true when this list scanners unauthorized response has a 2xx status code

func (*ListScannersUnauthorized) String added in v0.26.2

func (o *ListScannersUnauthorized) String() string

type PingScannerBadRequest

type PingScannerBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

PingScannerBadRequest describes a response with status code 400, 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() *models.Errors

func (*PingScannerBadRequest) IsClientError added in v0.26.2

func (o *PingScannerBadRequest) IsClientError() bool

IsClientError returns true when this ping scanner bad request response has a 4xx status code

func (*PingScannerBadRequest) IsCode added in v0.26.2

func (o *PingScannerBadRequest) IsCode(code int) bool

IsCode returns true when this ping scanner bad request response a status code equal to that given

func (*PingScannerBadRequest) IsRedirect added in v0.26.2

func (o *PingScannerBadRequest) IsRedirect() bool

IsRedirect returns true when this ping scanner bad request response has a 3xx status code

func (*PingScannerBadRequest) IsServerError added in v0.26.2

func (o *PingScannerBadRequest) IsServerError() bool

IsServerError returns true when this ping scanner bad request response has a 5xx status code

func (*PingScannerBadRequest) IsSuccess added in v0.26.2

func (o *PingScannerBadRequest) IsSuccess() bool

IsSuccess returns true when this ping scanner bad request response has a 2xx status code

func (*PingScannerBadRequest) String added in v0.26.2

func (o *PingScannerBadRequest) String() string

type PingScannerForbidden

type PingScannerForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

PingScannerForbidden describes a response with status code 403, 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() *models.Errors

func (*PingScannerForbidden) IsClientError added in v0.26.2

func (o *PingScannerForbidden) IsClientError() bool

IsClientError returns true when this ping scanner forbidden response has a 4xx status code

func (*PingScannerForbidden) IsCode added in v0.26.2

func (o *PingScannerForbidden) IsCode(code int) bool

IsCode returns true when this ping scanner forbidden response a status code equal to that given

func (*PingScannerForbidden) IsRedirect added in v0.26.2

func (o *PingScannerForbidden) IsRedirect() bool

IsRedirect returns true when this ping scanner forbidden response has a 3xx status code

func (*PingScannerForbidden) IsServerError added in v0.26.2

func (o *PingScannerForbidden) IsServerError() bool

IsServerError returns true when this ping scanner forbidden response has a 5xx status code

func (*PingScannerForbidden) IsSuccess added in v0.26.2

func (o *PingScannerForbidden) IsSuccess() bool

IsSuccess returns true when this ping scanner forbidden response has a 2xx status code

func (*PingScannerForbidden) String added in v0.26.2

func (o *PingScannerForbidden) String() string

type PingScannerInternalServerError

type PingScannerInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

PingScannerInternalServerError describes a response with status code 500, 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() *models.Errors

func (*PingScannerInternalServerError) IsClientError added in v0.26.2

func (o *PingScannerInternalServerError) IsClientError() bool

IsClientError returns true when this ping scanner internal server error response has a 4xx status code

func (*PingScannerInternalServerError) IsCode added in v0.26.2

func (o *PingScannerInternalServerError) IsCode(code int) bool

IsCode returns true when this ping scanner internal server error response a status code equal to that given

func (*PingScannerInternalServerError) IsRedirect added in v0.26.2

func (o *PingScannerInternalServerError) IsRedirect() bool

IsRedirect returns true when this ping scanner internal server error response has a 3xx status code

func (*PingScannerInternalServerError) IsServerError added in v0.26.2

func (o *PingScannerInternalServerError) IsServerError() bool

IsServerError returns true when this ping scanner internal server error response has a 5xx status code

func (*PingScannerInternalServerError) IsSuccess added in v0.26.2

func (o *PingScannerInternalServerError) IsSuccess() bool

IsSuccess returns true when this ping scanner internal server error response has a 2xx status code

func (*PingScannerInternalServerError) String added in v0.26.2

type PingScannerOK

type PingScannerOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

PingScannerOK describes a response with status code 200, 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

func (*PingScannerOK) IsClientError added in v0.26.2

func (o *PingScannerOK) IsClientError() bool

IsClientError returns true when this ping scanner o k response has a 4xx status code

func (*PingScannerOK) IsCode added in v0.26.2

func (o *PingScannerOK) IsCode(code int) bool

IsCode returns true when this ping scanner o k response a status code equal to that given

func (*PingScannerOK) IsRedirect added in v0.26.2

func (o *PingScannerOK) IsRedirect() bool

IsRedirect returns true when this ping scanner o k response has a 3xx status code

func (*PingScannerOK) IsServerError added in v0.26.2

func (o *PingScannerOK) IsServerError() bool

IsServerError returns true when this ping scanner o k response has a 5xx status code

func (*PingScannerOK) IsSuccess added in v0.26.2

func (o *PingScannerOK) IsSuccess() bool

IsSuccess returns true when this ping scanner o k response has a 2xx status code

func (*PingScannerOK) String added in v0.26.2

func (o *PingScannerOK) String() string

type PingScannerParams

type PingScannerParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* Settings.

	   A scanner registration settings to be tested.
	*/
	Settings *models.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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPingScannerParamsWithContext

func NewPingScannerParamsWithContext(ctx context.Context) *PingScannerParams

NewPingScannerParamsWithContext creates a new PingScannerParams object with 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 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 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) SetDefaults

func (o *PingScannerParams) SetDefaults()

SetDefaults hydrates default values in the ping scanner params (not the query body).

All values with no default are reset to their zero value.

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 *models.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) WithDefaults

func (o *PingScannerParams) WithDefaults() *PingScannerParams

WithDefaults hydrates default values in the ping scanner params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

PingScannerUnauthorized describes a response with status code 401, 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() *models.Errors

func (*PingScannerUnauthorized) IsClientError added in v0.26.2

func (o *PingScannerUnauthorized) IsClientError() bool

IsClientError returns true when this ping scanner unauthorized response has a 4xx status code

func (*PingScannerUnauthorized) IsCode added in v0.26.2

func (o *PingScannerUnauthorized) IsCode(code int) bool

IsCode returns true when this ping scanner unauthorized response a status code equal to that given

func (*PingScannerUnauthorized) IsRedirect added in v0.26.2

func (o *PingScannerUnauthorized) IsRedirect() bool

IsRedirect returns true when this ping scanner unauthorized response has a 3xx status code

func (*PingScannerUnauthorized) IsServerError added in v0.26.2

func (o *PingScannerUnauthorized) IsServerError() bool

IsServerError returns true when this ping scanner unauthorized response has a 5xx status code

func (*PingScannerUnauthorized) IsSuccess added in v0.26.2

func (o *PingScannerUnauthorized) IsSuccess() bool

IsSuccess returns true when this ping scanner unauthorized response has a 2xx status code

func (*PingScannerUnauthorized) String added in v0.26.2

func (o *PingScannerUnauthorized) String() string

type SetScannerAsDefaultForbidden

type SetScannerAsDefaultForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SetScannerAsDefaultForbidden describes a response with status code 403, 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() *models.Errors

func (*SetScannerAsDefaultForbidden) IsClientError added in v0.26.2

func (o *SetScannerAsDefaultForbidden) IsClientError() bool

IsClientError returns true when this set scanner as default forbidden response has a 4xx status code

func (*SetScannerAsDefaultForbidden) IsCode added in v0.26.2

func (o *SetScannerAsDefaultForbidden) IsCode(code int) bool

IsCode returns true when this set scanner as default forbidden response a status code equal to that given

func (*SetScannerAsDefaultForbidden) IsRedirect added in v0.26.2

func (o *SetScannerAsDefaultForbidden) IsRedirect() bool

IsRedirect returns true when this set scanner as default forbidden response has a 3xx status code

func (*SetScannerAsDefaultForbidden) IsServerError added in v0.26.2

func (o *SetScannerAsDefaultForbidden) IsServerError() bool

IsServerError returns true when this set scanner as default forbidden response has a 5xx status code

func (*SetScannerAsDefaultForbidden) IsSuccess added in v0.26.2

func (o *SetScannerAsDefaultForbidden) IsSuccess() bool

IsSuccess returns true when this set scanner as default forbidden response has a 2xx status code

func (*SetScannerAsDefaultForbidden) String added in v0.26.2

type SetScannerAsDefaultInternalServerError

type SetScannerAsDefaultInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SetScannerAsDefaultInternalServerError describes a response with status code 500, 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

func (*SetScannerAsDefaultInternalServerError) IsClientError added in v0.26.2

func (o *SetScannerAsDefaultInternalServerError) IsClientError() bool

IsClientError returns true when this set scanner as default internal server error response has a 4xx status code

func (*SetScannerAsDefaultInternalServerError) IsCode added in v0.26.2

IsCode returns true when this set scanner as default internal server error response a status code equal to that given

func (*SetScannerAsDefaultInternalServerError) IsRedirect added in v0.26.2

IsRedirect returns true when this set scanner as default internal server error response has a 3xx status code

func (*SetScannerAsDefaultInternalServerError) IsServerError added in v0.26.2

func (o *SetScannerAsDefaultInternalServerError) IsServerError() bool

IsServerError returns true when this set scanner as default internal server error response has a 5xx status code

func (*SetScannerAsDefaultInternalServerError) IsSuccess added in v0.26.2

IsSuccess returns true when this set scanner as default internal server error response has a 2xx status code

func (*SetScannerAsDefaultInternalServerError) String added in v0.26.2

type SetScannerAsDefaultOK

type SetScannerAsDefaultOK struct {
}

SetScannerAsDefaultOK describes a response with status code 200, 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

func (*SetScannerAsDefaultOK) IsClientError added in v0.26.2

func (o *SetScannerAsDefaultOK) IsClientError() bool

IsClientError returns true when this set scanner as default o k response has a 4xx status code

func (*SetScannerAsDefaultOK) IsCode added in v0.26.2

func (o *SetScannerAsDefaultOK) IsCode(code int) bool

IsCode returns true when this set scanner as default o k response a status code equal to that given

func (*SetScannerAsDefaultOK) IsRedirect added in v0.26.2

func (o *SetScannerAsDefaultOK) IsRedirect() bool

IsRedirect returns true when this set scanner as default o k response has a 3xx status code

func (*SetScannerAsDefaultOK) IsServerError added in v0.26.2

func (o *SetScannerAsDefaultOK) IsServerError() bool

IsServerError returns true when this set scanner as default o k response has a 5xx status code

func (*SetScannerAsDefaultOK) IsSuccess added in v0.26.2

func (o *SetScannerAsDefaultOK) IsSuccess() bool

IsSuccess returns true when this set scanner as default o k response has a 2xx status code

func (*SetScannerAsDefaultOK) String added in v0.26.2

func (o *SetScannerAsDefaultOK) String() string

type SetScannerAsDefaultParams

type SetScannerAsDefaultParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	// Payload.
	Payload *models.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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSetScannerAsDefaultParamsWithContext

func NewSetScannerAsDefaultParamsWithContext(ctx context.Context) *SetScannerAsDefaultParams

NewSetScannerAsDefaultParamsWithContext creates a new SetScannerAsDefaultParams object with 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 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 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) SetDefaults

func (o *SetScannerAsDefaultParams) SetDefaults()

SetDefaults hydrates default values in the set scanner as default params (not the query body).

All values with no default are reset to their zero value.

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 *models.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) WithDefaults

WithDefaults hydrates default values in the set scanner as default params (not the query body).

All values with no default are reset to their zero value.

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 *models.Errors
}

SetScannerAsDefaultUnauthorized describes a response with status code 401, 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 (*SetScannerAsDefaultUnauthorized) IsClientError added in v0.26.2

func (o *SetScannerAsDefaultUnauthorized) IsClientError() bool

IsClientError returns true when this set scanner as default unauthorized response has a 4xx status code

func (*SetScannerAsDefaultUnauthorized) IsCode added in v0.26.2

func (o *SetScannerAsDefaultUnauthorized) IsCode(code int) bool

IsCode returns true when this set scanner as default unauthorized response a status code equal to that given

func (*SetScannerAsDefaultUnauthorized) IsRedirect added in v0.26.2

func (o *SetScannerAsDefaultUnauthorized) IsRedirect() bool

IsRedirect returns true when this set scanner as default unauthorized response has a 3xx status code

func (*SetScannerAsDefaultUnauthorized) IsServerError added in v0.26.2

func (o *SetScannerAsDefaultUnauthorized) IsServerError() bool

IsServerError returns true when this set scanner as default unauthorized response has a 5xx status code

func (*SetScannerAsDefaultUnauthorized) IsSuccess added in v0.26.2

func (o *SetScannerAsDefaultUnauthorized) IsSuccess() bool

IsSuccess returns true when this set scanner as default unauthorized response has a 2xx status code

func (*SetScannerAsDefaultUnauthorized) String added in v0.26.2

type UpdateScannerForbidden

type UpdateScannerForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateScannerForbidden describes a response with status code 403, 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() *models.Errors

func (*UpdateScannerForbidden) IsClientError added in v0.26.2

func (o *UpdateScannerForbidden) IsClientError() bool

IsClientError returns true when this update scanner forbidden response has a 4xx status code

func (*UpdateScannerForbidden) IsCode added in v0.26.2

func (o *UpdateScannerForbidden) IsCode(code int) bool

IsCode returns true when this update scanner forbidden response a status code equal to that given

func (*UpdateScannerForbidden) IsRedirect added in v0.26.2

func (o *UpdateScannerForbidden) IsRedirect() bool

IsRedirect returns true when this update scanner forbidden response has a 3xx status code

func (*UpdateScannerForbidden) IsServerError added in v0.26.2

func (o *UpdateScannerForbidden) IsServerError() bool

IsServerError returns true when this update scanner forbidden response has a 5xx status code

func (*UpdateScannerForbidden) IsSuccess added in v0.26.2

func (o *UpdateScannerForbidden) IsSuccess() bool

IsSuccess returns true when this update scanner forbidden response has a 2xx status code

func (*UpdateScannerForbidden) String added in v0.26.2

func (o *UpdateScannerForbidden) String() string

type UpdateScannerInternalServerError

type UpdateScannerInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateScannerInternalServerError describes a response with status code 500, 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

func (*UpdateScannerInternalServerError) IsClientError added in v0.26.2

func (o *UpdateScannerInternalServerError) IsClientError() bool

IsClientError returns true when this update scanner internal server error response has a 4xx status code

func (*UpdateScannerInternalServerError) IsCode added in v0.26.2

func (o *UpdateScannerInternalServerError) IsCode(code int) bool

IsCode returns true when this update scanner internal server error response a status code equal to that given

func (*UpdateScannerInternalServerError) IsRedirect added in v0.26.2

func (o *UpdateScannerInternalServerError) IsRedirect() bool

IsRedirect returns true when this update scanner internal server error response has a 3xx status code

func (*UpdateScannerInternalServerError) IsServerError added in v0.26.2

func (o *UpdateScannerInternalServerError) IsServerError() bool

IsServerError returns true when this update scanner internal server error response has a 5xx status code

func (*UpdateScannerInternalServerError) IsSuccess added in v0.26.2

func (o *UpdateScannerInternalServerError) IsSuccess() bool

IsSuccess returns true when this update scanner internal server error response has a 2xx status code

func (*UpdateScannerInternalServerError) String added in v0.26.2

type UpdateScannerNotFound

type UpdateScannerNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateScannerNotFound describes a response with status code 404, 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() *models.Errors

func (*UpdateScannerNotFound) IsClientError added in v0.26.2

func (o *UpdateScannerNotFound) IsClientError() bool

IsClientError returns true when this update scanner not found response has a 4xx status code

func (*UpdateScannerNotFound) IsCode added in v0.26.2

func (o *UpdateScannerNotFound) IsCode(code int) bool

IsCode returns true when this update scanner not found response a status code equal to that given

func (*UpdateScannerNotFound) IsRedirect added in v0.26.2

func (o *UpdateScannerNotFound) IsRedirect() bool

IsRedirect returns true when this update scanner not found response has a 3xx status code

func (*UpdateScannerNotFound) IsServerError added in v0.26.2

func (o *UpdateScannerNotFound) IsServerError() bool

IsServerError returns true when this update scanner not found response has a 5xx status code

func (*UpdateScannerNotFound) IsSuccess added in v0.26.2

func (o *UpdateScannerNotFound) IsSuccess() bool

IsSuccess returns true when this update scanner not found response has a 2xx status code

func (*UpdateScannerNotFound) String added in v0.26.2

func (o *UpdateScannerNotFound) String() string

type UpdateScannerOK

type UpdateScannerOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateScannerOK describes a response with status code 200, 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

func (*UpdateScannerOK) IsClientError added in v0.26.2

func (o *UpdateScannerOK) IsClientError() bool

IsClientError returns true when this update scanner o k response has a 4xx status code

func (*UpdateScannerOK) IsCode added in v0.26.2

func (o *UpdateScannerOK) IsCode(code int) bool

IsCode returns true when this update scanner o k response a status code equal to that given

func (*UpdateScannerOK) IsRedirect added in v0.26.2

func (o *UpdateScannerOK) IsRedirect() bool

IsRedirect returns true when this update scanner o k response has a 3xx status code

func (*UpdateScannerOK) IsServerError added in v0.26.2

func (o *UpdateScannerOK) IsServerError() bool

IsServerError returns true when this update scanner o k response has a 5xx status code

func (*UpdateScannerOK) IsSuccess added in v0.26.2

func (o *UpdateScannerOK) IsSuccess() bool

IsSuccess returns true when this update scanner o k response has a 2xx status code

func (*UpdateScannerOK) String added in v0.26.2

func (o *UpdateScannerOK) String() string

type UpdateScannerParams

type UpdateScannerParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string

	/* Registration.

	   A scanner registraiton to be updated.
	*/
	Registration *models.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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateScannerParamsWithContext

func NewUpdateScannerParamsWithContext(ctx context.Context) *UpdateScannerParams

NewUpdateScannerParamsWithContext creates a new UpdateScannerParams object with 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 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 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) SetDefaults

func (o *UpdateScannerParams) SetDefaults()

SetDefaults hydrates default values in the update scanner params (not the query body).

All values with no default are reset to their zero value.

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 *models.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) WithDefaults

func (o *UpdateScannerParams) WithDefaults() *UpdateScannerParams

WithDefaults hydrates default values in the update scanner params (not the query body).

All values with no default are reset to their zero value.

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 *models.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 *models.Errors
}

UpdateScannerUnauthorized describes a response with status code 401, 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() *models.Errors

func (*UpdateScannerUnauthorized) IsClientError added in v0.26.2

func (o *UpdateScannerUnauthorized) IsClientError() bool

IsClientError returns true when this update scanner unauthorized response has a 4xx status code

func (*UpdateScannerUnauthorized) IsCode added in v0.26.2

func (o *UpdateScannerUnauthorized) IsCode(code int) bool

IsCode returns true when this update scanner unauthorized response a status code equal to that given

func (*UpdateScannerUnauthorized) IsRedirect added in v0.26.2

func (o *UpdateScannerUnauthorized) IsRedirect() bool

IsRedirect returns true when this update scanner unauthorized response has a 3xx status code

func (*UpdateScannerUnauthorized) IsServerError added in v0.26.2

func (o *UpdateScannerUnauthorized) IsServerError() bool

IsServerError returns true when this update scanner unauthorized response has a 5xx status code

func (*UpdateScannerUnauthorized) IsSuccess added in v0.26.2

func (o *UpdateScannerUnauthorized) IsSuccess() bool

IsSuccess returns true when this update scanner unauthorized response has a 2xx status code

func (*UpdateScannerUnauthorized) String added in v0.26.2

func (o *UpdateScannerUnauthorized) String() string

Jump to

Keyboard shortcuts

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