scanners

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for scanners API

func (*Client) DeleteScannersRegistrationID

func (a *Client) DeleteScannersRegistrationID(params *DeleteScannersRegistrationIDParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteScannersRegistrationIDOK, error)

DeleteScannersRegistrationID deletes a scanner registration

Deletes the specified scanner registration.

func (*Client) PatchScannersRegistrationID

func (a *Client) PatchScannersRegistrationID(params *PatchScannersRegistrationIDParams, authInfo runtime.ClientAuthInfoWriter) (*PatchScannersRegistrationIDOK, error)

PatchScannersRegistrationID sets system default scanner registration

Set the specified scanner registration as the system default one.

func (*Client) PostScanners

func (a *Client) PostScanners(params *PostScannersParams, authInfo runtime.ClientAuthInfoWriter) (*PostScannersCreated, error)

PostScanners creates a scanner registration

Creats a new scanner registration with the given data.

func (*Client) PutProjectsProjectIDScanner

func (a *Client) PutProjectsProjectIDScanner(params *PutProjectsProjectIDScannerParams, authInfo runtime.ClientAuthInfoWriter) (*PutProjectsProjectIDScannerOK, error)

PutProjectsProjectIDScanner configures scanner for the specified project

Set one of the system configured scanner registration as the indepndent scanner of the specified project.

func (*Client) PutScannersRegistrationID

func (a *Client) PutScannersRegistrationID(params *PutScannersRegistrationIDParams, authInfo runtime.ClientAuthInfoWriter) (*PutScannersRegistrationIDOK, error)

PutScannersRegistrationID updates a scanner registration

Updates the specified scanner registration.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeleteScannersRegistrationID(params *DeleteScannersRegistrationIDParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteScannersRegistrationIDOK, error)

	PatchScannersRegistrationID(params *PatchScannersRegistrationIDParams, authInfo runtime.ClientAuthInfoWriter) (*PatchScannersRegistrationIDOK, error)

	PostScanners(params *PostScannersParams, authInfo runtime.ClientAuthInfoWriter) (*PostScannersCreated, error)

	PutProjectsProjectIDScanner(params *PutProjectsProjectIDScannerParams, authInfo runtime.ClientAuthInfoWriter) (*PutProjectsProjectIDScannerOK, error)

	PutScannersRegistrationID(params *PutScannersRegistrationIDParams, authInfo runtime.ClientAuthInfoWriter) (*PutScannersRegistrationIDOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new scanners API client.

type DeleteScannersRegistrationIDForbidden

type DeleteScannersRegistrationIDForbidden struct {
}

DeleteScannersRegistrationIDForbidden handles this case with default header values.

Request is not allowed, system role required or registration is immutable

func NewDeleteScannersRegistrationIDForbidden

func NewDeleteScannersRegistrationIDForbidden() *DeleteScannersRegistrationIDForbidden

NewDeleteScannersRegistrationIDForbidden creates a DeleteScannersRegistrationIDForbidden with default headers values

func (*DeleteScannersRegistrationIDForbidden) Error

type DeleteScannersRegistrationIDInternalServerError

type DeleteScannersRegistrationIDInternalServerError struct {
}

DeleteScannersRegistrationIDInternalServerError handles this case with default header values.

Internal server error happened

func NewDeleteScannersRegistrationIDInternalServerError

func NewDeleteScannersRegistrationIDInternalServerError() *DeleteScannersRegistrationIDInternalServerError

NewDeleteScannersRegistrationIDInternalServerError creates a DeleteScannersRegistrationIDInternalServerError with default headers values

func (*DeleteScannersRegistrationIDInternalServerError) Error

type DeleteScannersRegistrationIDNotFound

type DeleteScannersRegistrationIDNotFound struct {
}

DeleteScannersRegistrationIDNotFound handles this case with default header values.

The requested object is not found

func NewDeleteScannersRegistrationIDNotFound

func NewDeleteScannersRegistrationIDNotFound() *DeleteScannersRegistrationIDNotFound

NewDeleteScannersRegistrationIDNotFound creates a DeleteScannersRegistrationIDNotFound with default headers values

func (*DeleteScannersRegistrationIDNotFound) Error

type DeleteScannersRegistrationIDOK

type DeleteScannersRegistrationIDOK struct {
	Payload *legacy.ScannerRegistration
}

DeleteScannersRegistrationIDOK handles this case with default header values.

Deleted successfully and return the deleted registration

func NewDeleteScannersRegistrationIDOK

func NewDeleteScannersRegistrationIDOK() *DeleteScannersRegistrationIDOK

NewDeleteScannersRegistrationIDOK creates a DeleteScannersRegistrationIDOK with default headers values

func (*DeleteScannersRegistrationIDOK) Error

func (*DeleteScannersRegistrationIDOK) GetPayload

type DeleteScannersRegistrationIDParams

type DeleteScannersRegistrationIDParams struct {

	/*RegistrationID
	  The scanner registration identifier.

	*/
	RegistrationID string

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

DeleteScannersRegistrationIDParams contains all the parameters to send to the API endpoint for the delete scanners registration ID operation typically these are written to a http.Request

func NewDeleteScannersRegistrationIDParams

func NewDeleteScannersRegistrationIDParams() *DeleteScannersRegistrationIDParams

NewDeleteScannersRegistrationIDParams creates a new DeleteScannersRegistrationIDParams object with the default values initialized.

func NewDeleteScannersRegistrationIDParamsWithContext

func NewDeleteScannersRegistrationIDParamsWithContext(ctx context.Context) *DeleteScannersRegistrationIDParams

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

func NewDeleteScannersRegistrationIDParamsWithHTTPClient

func NewDeleteScannersRegistrationIDParamsWithHTTPClient(client *http.Client) *DeleteScannersRegistrationIDParams

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

func NewDeleteScannersRegistrationIDParamsWithTimeout

func NewDeleteScannersRegistrationIDParamsWithTimeout(timeout time.Duration) *DeleteScannersRegistrationIDParams

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

func (*DeleteScannersRegistrationIDParams) SetContext

SetContext adds the context to the delete scanners registration ID params

func (*DeleteScannersRegistrationIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete scanners registration ID params

func (*DeleteScannersRegistrationIDParams) SetRegistrationID

func (o *DeleteScannersRegistrationIDParams) SetRegistrationID(registrationID string)

SetRegistrationID adds the registrationId to the delete scanners registration ID params

func (*DeleteScannersRegistrationIDParams) SetTimeout

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

SetTimeout adds the timeout to the delete scanners registration ID params

func (*DeleteScannersRegistrationIDParams) WithContext

WithContext adds the context to the delete scanners registration ID params

func (*DeleteScannersRegistrationIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete scanners registration ID params

func (*DeleteScannersRegistrationIDParams) WithRegistrationID

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

WithRegistrationID adds the registrationID to the delete scanners registration ID params

func (*DeleteScannersRegistrationIDParams) WithTimeout

WithTimeout adds the timeout to the delete scanners registration ID params

func (*DeleteScannersRegistrationIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteScannersRegistrationIDReader

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

DeleteScannersRegistrationIDReader is a Reader for the DeleteScannersRegistrationID structure.

func (*DeleteScannersRegistrationIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteScannersRegistrationIDUnauthorized

type DeleteScannersRegistrationIDUnauthorized struct {
}

DeleteScannersRegistrationIDUnauthorized handles this case with default header values.

Unauthorized request

func NewDeleteScannersRegistrationIDUnauthorized

func NewDeleteScannersRegistrationIDUnauthorized() *DeleteScannersRegistrationIDUnauthorized

NewDeleteScannersRegistrationIDUnauthorized creates a DeleteScannersRegistrationIDUnauthorized with default headers values

func (*DeleteScannersRegistrationIDUnauthorized) Error

type PatchScannersRegistrationIDForbidden

type PatchScannersRegistrationIDForbidden struct {
}

PatchScannersRegistrationIDForbidden handles this case with default header values.

Request is not allowed

func NewPatchScannersRegistrationIDForbidden

func NewPatchScannersRegistrationIDForbidden() *PatchScannersRegistrationIDForbidden

NewPatchScannersRegistrationIDForbidden creates a PatchScannersRegistrationIDForbidden with default headers values

func (*PatchScannersRegistrationIDForbidden) Error

type PatchScannersRegistrationIDInternalServerError

type PatchScannersRegistrationIDInternalServerError struct {
}

PatchScannersRegistrationIDInternalServerError handles this case with default header values.

Internal server error happened

func NewPatchScannersRegistrationIDInternalServerError

func NewPatchScannersRegistrationIDInternalServerError() *PatchScannersRegistrationIDInternalServerError

NewPatchScannersRegistrationIDInternalServerError creates a PatchScannersRegistrationIDInternalServerError with default headers values

func (*PatchScannersRegistrationIDInternalServerError) Error

type PatchScannersRegistrationIDOK

type PatchScannersRegistrationIDOK struct {
}

PatchScannersRegistrationIDOK handles this case with default header values.

Successfully set the specified scanner registration as system default

func NewPatchScannersRegistrationIDOK

func NewPatchScannersRegistrationIDOK() *PatchScannersRegistrationIDOK

NewPatchScannersRegistrationIDOK creates a PatchScannersRegistrationIDOK with default headers values

func (*PatchScannersRegistrationIDOK) Error

type PatchScannersRegistrationIDParams

type PatchScannersRegistrationIDParams struct {

	/*Payload*/
	Payload *legacy.IsDefault
	/*RegistrationID
	  The scanner registration identifier.

	*/
	RegistrationID string

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

PatchScannersRegistrationIDParams contains all the parameters to send to the API endpoint for the patch scanners registration ID operation typically these are written to a http.Request

func NewPatchScannersRegistrationIDParams

func NewPatchScannersRegistrationIDParams() *PatchScannersRegistrationIDParams

NewPatchScannersRegistrationIDParams creates a new PatchScannersRegistrationIDParams object with the default values initialized.

func NewPatchScannersRegistrationIDParamsWithContext

func NewPatchScannersRegistrationIDParamsWithContext(ctx context.Context) *PatchScannersRegistrationIDParams

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

func NewPatchScannersRegistrationIDParamsWithHTTPClient

func NewPatchScannersRegistrationIDParamsWithHTTPClient(client *http.Client) *PatchScannersRegistrationIDParams

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

func NewPatchScannersRegistrationIDParamsWithTimeout

func NewPatchScannersRegistrationIDParamsWithTimeout(timeout time.Duration) *PatchScannersRegistrationIDParams

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

func (*PatchScannersRegistrationIDParams) SetContext

SetContext adds the context to the patch scanners registration ID params

func (*PatchScannersRegistrationIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch scanners registration ID params

func (*PatchScannersRegistrationIDParams) SetPayload

func (o *PatchScannersRegistrationIDParams) SetPayload(payload *legacy.IsDefault)

SetPayload adds the payload to the patch scanners registration ID params

func (*PatchScannersRegistrationIDParams) SetRegistrationID

func (o *PatchScannersRegistrationIDParams) SetRegistrationID(registrationID string)

SetRegistrationID adds the registrationId to the patch scanners registration ID params

func (*PatchScannersRegistrationIDParams) SetTimeout

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

SetTimeout adds the timeout to the patch scanners registration ID params

func (*PatchScannersRegistrationIDParams) WithContext

WithContext adds the context to the patch scanners registration ID params

func (*PatchScannersRegistrationIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch scanners registration ID params

func (*PatchScannersRegistrationIDParams) WithPayload

WithPayload adds the payload to the patch scanners registration ID params

func (*PatchScannersRegistrationIDParams) WithRegistrationID

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

WithRegistrationID adds the registrationID to the patch scanners registration ID params

func (*PatchScannersRegistrationIDParams) WithTimeout

WithTimeout adds the timeout to the patch scanners registration ID params

func (*PatchScannersRegistrationIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchScannersRegistrationIDReader

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

PatchScannersRegistrationIDReader is a Reader for the PatchScannersRegistrationID structure.

func (*PatchScannersRegistrationIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchScannersRegistrationIDUnauthorized

type PatchScannersRegistrationIDUnauthorized struct {
}

PatchScannersRegistrationIDUnauthorized handles this case with default header values.

Unauthorized request

func NewPatchScannersRegistrationIDUnauthorized

func NewPatchScannersRegistrationIDUnauthorized() *PatchScannersRegistrationIDUnauthorized

NewPatchScannersRegistrationIDUnauthorized creates a PatchScannersRegistrationIDUnauthorized with default headers values

func (*PatchScannersRegistrationIDUnauthorized) Error

type PostScannersBadRequest

type PostScannersBadRequest struct {
}

PostScannersBadRequest handles this case with default header values.

Bad registration request

func NewPostScannersBadRequest

func NewPostScannersBadRequest() *PostScannersBadRequest

NewPostScannersBadRequest creates a PostScannersBadRequest with default headers values

func (*PostScannersBadRequest) Error

func (o *PostScannersBadRequest) Error() string

type PostScannersCreated

type PostScannersCreated struct {
}

PostScannersCreated handles this case with default header values.

Created successfully

func NewPostScannersCreated

func NewPostScannersCreated() *PostScannersCreated

NewPostScannersCreated creates a PostScannersCreated with default headers values

func (*PostScannersCreated) Error

func (o *PostScannersCreated) Error() string

type PostScannersForbidden

type PostScannersForbidden struct {
}

PostScannersForbidden handles this case with default header values.

Request is not allowed, system role required

func NewPostScannersForbidden

func NewPostScannersForbidden() *PostScannersForbidden

NewPostScannersForbidden creates a PostScannersForbidden with default headers values

func (*PostScannersForbidden) Error

func (o *PostScannersForbidden) Error() string

type PostScannersInternalServerError

type PostScannersInternalServerError struct {
}

PostScannersInternalServerError handles this case with default header values.

Internal server error happened

func NewPostScannersInternalServerError

func NewPostScannersInternalServerError() *PostScannersInternalServerError

NewPostScannersInternalServerError creates a PostScannersInternalServerError with default headers values

func (*PostScannersInternalServerError) Error

type PostScannersParams

type PostScannersParams struct {

	/*Registration
	  A scanner registration to be created.

	*/
	Registration *legacy.ScannerRegistrationReq

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

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

func NewPostScannersParams

func NewPostScannersParams() *PostScannersParams

NewPostScannersParams creates a new PostScannersParams object with the default values initialized.

func NewPostScannersParamsWithContext

func NewPostScannersParamsWithContext(ctx context.Context) *PostScannersParams

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

func NewPostScannersParamsWithHTTPClient

func NewPostScannersParamsWithHTTPClient(client *http.Client) *PostScannersParams

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

func NewPostScannersParamsWithTimeout

func NewPostScannersParamsWithTimeout(timeout time.Duration) *PostScannersParams

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

func (*PostScannersParams) SetContext

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

SetContext adds the context to the post scanners params

func (*PostScannersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post scanners params

func (*PostScannersParams) SetRegistration

func (o *PostScannersParams) SetRegistration(registration *legacy.ScannerRegistrationReq)

SetRegistration adds the registration to the post scanners params

func (*PostScannersParams) SetTimeout

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

SetTimeout adds the timeout to the post scanners params

func (*PostScannersParams) WithContext

WithContext adds the context to the post scanners params

func (*PostScannersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post scanners params

func (*PostScannersParams) WithRegistration

func (o *PostScannersParams) WithRegistration(registration *legacy.ScannerRegistrationReq) *PostScannersParams

WithRegistration adds the registration to the post scanners params

func (*PostScannersParams) WithTimeout

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

WithTimeout adds the timeout to the post scanners params

func (*PostScannersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostScannersReader

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

PostScannersReader is a Reader for the PostScanners structure.

func (*PostScannersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostScannersUnauthorized

type PostScannersUnauthorized struct {
}

PostScannersUnauthorized handles this case with default header values.

Unauthorized request

func NewPostScannersUnauthorized

func NewPostScannersUnauthorized() *PostScannersUnauthorized

NewPostScannersUnauthorized creates a PostScannersUnauthorized with default headers values

func (*PostScannersUnauthorized) Error

func (o *PostScannersUnauthorized) Error() string

type PutProjectsProjectIDScannerBadRequest

type PutProjectsProjectIDScannerBadRequest struct {
}

PutProjectsProjectIDScannerBadRequest handles this case with default header values.

Bad project ID

func NewPutProjectsProjectIDScannerBadRequest

func NewPutProjectsProjectIDScannerBadRequest() *PutProjectsProjectIDScannerBadRequest

NewPutProjectsProjectIDScannerBadRequest creates a PutProjectsProjectIDScannerBadRequest with default headers values

func (*PutProjectsProjectIDScannerBadRequest) Error

type PutProjectsProjectIDScannerForbidden

type PutProjectsProjectIDScannerForbidden struct {
}

PutProjectsProjectIDScannerForbidden handles this case with default header values.

Request is not allowed

func NewPutProjectsProjectIDScannerForbidden

func NewPutProjectsProjectIDScannerForbidden() *PutProjectsProjectIDScannerForbidden

NewPutProjectsProjectIDScannerForbidden creates a PutProjectsProjectIDScannerForbidden with default headers values

func (*PutProjectsProjectIDScannerForbidden) Error

type PutProjectsProjectIDScannerInternalServerError

type PutProjectsProjectIDScannerInternalServerError struct {
}

PutProjectsProjectIDScannerInternalServerError handles this case with default header values.

Internal server error happened

func NewPutProjectsProjectIDScannerInternalServerError

func NewPutProjectsProjectIDScannerInternalServerError() *PutProjectsProjectIDScannerInternalServerError

NewPutProjectsProjectIDScannerInternalServerError creates a PutProjectsProjectIDScannerInternalServerError with default headers values

func (*PutProjectsProjectIDScannerInternalServerError) Error

type PutProjectsProjectIDScannerNotFound

type PutProjectsProjectIDScannerNotFound struct {
}

PutProjectsProjectIDScannerNotFound handles this case with default header values.

The requested object is not found

func NewPutProjectsProjectIDScannerNotFound

func NewPutProjectsProjectIDScannerNotFound() *PutProjectsProjectIDScannerNotFound

NewPutProjectsProjectIDScannerNotFound creates a PutProjectsProjectIDScannerNotFound with default headers values

func (*PutProjectsProjectIDScannerNotFound) Error

type PutProjectsProjectIDScannerOK

type PutProjectsProjectIDScannerOK struct {
}

PutProjectsProjectIDScannerOK handles this case with default header values.

Successfully set the project level scanner

func NewPutProjectsProjectIDScannerOK

func NewPutProjectsProjectIDScannerOK() *PutProjectsProjectIDScannerOK

NewPutProjectsProjectIDScannerOK creates a PutProjectsProjectIDScannerOK with default headers values

func (*PutProjectsProjectIDScannerOK) Error

type PutProjectsProjectIDScannerParams

type PutProjectsProjectIDScannerParams struct {

	/*Payload*/
	Payload *legacy.ProjectScanner
	/*ProjectID
	  The project identifier.

	*/
	ProjectID int64

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

PutProjectsProjectIDScannerParams contains all the parameters to send to the API endpoint for the put projects project ID scanner operation typically these are written to a http.Request

func NewPutProjectsProjectIDScannerParams

func NewPutProjectsProjectIDScannerParams() *PutProjectsProjectIDScannerParams

NewPutProjectsProjectIDScannerParams creates a new PutProjectsProjectIDScannerParams object with the default values initialized.

func NewPutProjectsProjectIDScannerParamsWithContext

func NewPutProjectsProjectIDScannerParamsWithContext(ctx context.Context) *PutProjectsProjectIDScannerParams

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

func NewPutProjectsProjectIDScannerParamsWithHTTPClient

func NewPutProjectsProjectIDScannerParamsWithHTTPClient(client *http.Client) *PutProjectsProjectIDScannerParams

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

func NewPutProjectsProjectIDScannerParamsWithTimeout

func NewPutProjectsProjectIDScannerParamsWithTimeout(timeout time.Duration) *PutProjectsProjectIDScannerParams

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

func (*PutProjectsProjectIDScannerParams) SetContext

SetContext adds the context to the put projects project ID scanner params

func (*PutProjectsProjectIDScannerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put projects project ID scanner params

func (*PutProjectsProjectIDScannerParams) SetPayload

SetPayload adds the payload to the put projects project ID scanner params

func (*PutProjectsProjectIDScannerParams) SetProjectID

func (o *PutProjectsProjectIDScannerParams) SetProjectID(projectID int64)

SetProjectID adds the projectId to the put projects project ID scanner params

func (*PutProjectsProjectIDScannerParams) SetTimeout

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

SetTimeout adds the timeout to the put projects project ID scanner params

func (*PutProjectsProjectIDScannerParams) WithContext

WithContext adds the context to the put projects project ID scanner params

func (*PutProjectsProjectIDScannerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put projects project ID scanner params

func (*PutProjectsProjectIDScannerParams) WithPayload

WithPayload adds the payload to the put projects project ID scanner params

func (*PutProjectsProjectIDScannerParams) WithProjectID

WithProjectID adds the projectID to the put projects project ID scanner params

func (*PutProjectsProjectIDScannerParams) WithTimeout

WithTimeout adds the timeout to the put projects project ID scanner params

func (*PutProjectsProjectIDScannerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutProjectsProjectIDScannerReader

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

PutProjectsProjectIDScannerReader is a Reader for the PutProjectsProjectIDScanner structure.

func (*PutProjectsProjectIDScannerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutProjectsProjectIDScannerUnauthorized

type PutProjectsProjectIDScannerUnauthorized struct {
}

PutProjectsProjectIDScannerUnauthorized handles this case with default header values.

Unauthorized request

func NewPutProjectsProjectIDScannerUnauthorized

func NewPutProjectsProjectIDScannerUnauthorized() *PutProjectsProjectIDScannerUnauthorized

NewPutProjectsProjectIDScannerUnauthorized creates a PutProjectsProjectIDScannerUnauthorized with default headers values

func (*PutProjectsProjectIDScannerUnauthorized) Error

type PutScannersRegistrationIDForbidden

type PutScannersRegistrationIDForbidden struct {
}

PutScannersRegistrationIDForbidden handles this case with default header values.

Request is not allowed, system role required

func NewPutScannersRegistrationIDForbidden

func NewPutScannersRegistrationIDForbidden() *PutScannersRegistrationIDForbidden

NewPutScannersRegistrationIDForbidden creates a PutScannersRegistrationIDForbidden with default headers values

func (*PutScannersRegistrationIDForbidden) Error

type PutScannersRegistrationIDInternalServerError

type PutScannersRegistrationIDInternalServerError struct {
}

PutScannersRegistrationIDInternalServerError handles this case with default header values.

Internal server error happened

func NewPutScannersRegistrationIDInternalServerError

func NewPutScannersRegistrationIDInternalServerError() *PutScannersRegistrationIDInternalServerError

NewPutScannersRegistrationIDInternalServerError creates a PutScannersRegistrationIDInternalServerError with default headers values

func (*PutScannersRegistrationIDInternalServerError) Error

type PutScannersRegistrationIDNotFound

type PutScannersRegistrationIDNotFound struct {
}

PutScannersRegistrationIDNotFound handles this case with default header values.

The requested object is not found

func NewPutScannersRegistrationIDNotFound

func NewPutScannersRegistrationIDNotFound() *PutScannersRegistrationIDNotFound

NewPutScannersRegistrationIDNotFound creates a PutScannersRegistrationIDNotFound with default headers values

func (*PutScannersRegistrationIDNotFound) Error

type PutScannersRegistrationIDOK

type PutScannersRegistrationIDOK struct {
}

PutScannersRegistrationIDOK handles this case with default header values.

Updated successfully

func NewPutScannersRegistrationIDOK

func NewPutScannersRegistrationIDOK() *PutScannersRegistrationIDOK

NewPutScannersRegistrationIDOK creates a PutScannersRegistrationIDOK with default headers values

func (*PutScannersRegistrationIDOK) Error

type PutScannersRegistrationIDParams

type PutScannersRegistrationIDParams struct {

	/*Registration
	  A scanner registraiton to be updated.

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

	*/
	RegistrationID string

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

PutScannersRegistrationIDParams contains all the parameters to send to the API endpoint for the put scanners registration ID operation typically these are written to a http.Request

func NewPutScannersRegistrationIDParams

func NewPutScannersRegistrationIDParams() *PutScannersRegistrationIDParams

NewPutScannersRegistrationIDParams creates a new PutScannersRegistrationIDParams object with the default values initialized.

func NewPutScannersRegistrationIDParamsWithContext

func NewPutScannersRegistrationIDParamsWithContext(ctx context.Context) *PutScannersRegistrationIDParams

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

func NewPutScannersRegistrationIDParamsWithHTTPClient

func NewPutScannersRegistrationIDParamsWithHTTPClient(client *http.Client) *PutScannersRegistrationIDParams

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

func NewPutScannersRegistrationIDParamsWithTimeout

func NewPutScannersRegistrationIDParamsWithTimeout(timeout time.Duration) *PutScannersRegistrationIDParams

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

func (*PutScannersRegistrationIDParams) SetContext

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

SetContext adds the context to the put scanners registration ID params

func (*PutScannersRegistrationIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put scanners registration ID params

func (*PutScannersRegistrationIDParams) SetRegistration

func (o *PutScannersRegistrationIDParams) SetRegistration(registration *legacy.ScannerRegistrationReq)

SetRegistration adds the registration to the put scanners registration ID params

func (*PutScannersRegistrationIDParams) SetRegistrationID

func (o *PutScannersRegistrationIDParams) SetRegistrationID(registrationID string)

SetRegistrationID adds the registrationId to the put scanners registration ID params

func (*PutScannersRegistrationIDParams) SetTimeout

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

SetTimeout adds the timeout to the put scanners registration ID params

func (*PutScannersRegistrationIDParams) WithContext

WithContext adds the context to the put scanners registration ID params

func (*PutScannersRegistrationIDParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the put scanners registration ID params

func (*PutScannersRegistrationIDParams) WithRegistration

WithRegistration adds the registration to the put scanners registration ID params

func (*PutScannersRegistrationIDParams) WithRegistrationID

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

WithRegistrationID adds the registrationID to the put scanners registration ID params

func (*PutScannersRegistrationIDParams) WithTimeout

WithTimeout adds the timeout to the put scanners registration ID params

func (*PutScannersRegistrationIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PutScannersRegistrationIDReader

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

PutScannersRegistrationIDReader is a Reader for the PutScannersRegistrationID structure.

func (*PutScannersRegistrationIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutScannersRegistrationIDUnauthorized

type PutScannersRegistrationIDUnauthorized struct {
}

PutScannersRegistrationIDUnauthorized handles this case with default header values.

Unauthorized request

func NewPutScannersRegistrationIDUnauthorized

func NewPutScannersRegistrationIDUnauthorized() *PutScannersRegistrationIDUnauthorized

NewPutScannersRegistrationIDUnauthorized creates a PutScannersRegistrationIDUnauthorized with default headers values

func (*PutScannersRegistrationIDUnauthorized) Error

Jump to

Keyboard shortcuts

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