Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteScannersRegistrationID(params *DeleteScannersRegistrationIDParams, ...) (*DeleteScannersRegistrationIDOK, error)
- func (a *Client) PatchScannersRegistrationID(params *PatchScannersRegistrationIDParams, ...) (*PatchScannersRegistrationIDOK, error)
- func (a *Client) PostScanners(params *PostScannersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostScannersCreated, error)
- func (a *Client) PutProjectsProjectIDScanner(params *PutProjectsProjectIDScannerParams, ...) (*PutProjectsProjectIDScannerOK, error)
- func (a *Client) PutScannersRegistrationID(params *PutScannersRegistrationIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PutScannersRegistrationIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteScannersRegistrationIDForbidden
- type DeleteScannersRegistrationIDInternalServerError
- type DeleteScannersRegistrationIDNotFound
- type DeleteScannersRegistrationIDOK
- type DeleteScannersRegistrationIDParams
- func NewDeleteScannersRegistrationIDParams() *DeleteScannersRegistrationIDParams
- func NewDeleteScannersRegistrationIDParamsWithContext(ctx context.Context) *DeleteScannersRegistrationIDParams
- func NewDeleteScannersRegistrationIDParamsWithHTTPClient(client *http.Client) *DeleteScannersRegistrationIDParams
- func NewDeleteScannersRegistrationIDParamsWithTimeout(timeout time.Duration) *DeleteScannersRegistrationIDParams
- func (o *DeleteScannersRegistrationIDParams) SetContext(ctx context.Context)
- func (o *DeleteScannersRegistrationIDParams) SetDefaults()
- func (o *DeleteScannersRegistrationIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteScannersRegistrationIDParams) SetRegistrationID(registrationID string)
- func (o *DeleteScannersRegistrationIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteScannersRegistrationIDParams) WithContext(ctx context.Context) *DeleteScannersRegistrationIDParams
- func (o *DeleteScannersRegistrationIDParams) WithDefaults() *DeleteScannersRegistrationIDParams
- func (o *DeleteScannersRegistrationIDParams) WithHTTPClient(client *http.Client) *DeleteScannersRegistrationIDParams
- func (o *DeleteScannersRegistrationIDParams) WithRegistrationID(registrationID string) *DeleteScannersRegistrationIDParams
- func (o *DeleteScannersRegistrationIDParams) WithTimeout(timeout time.Duration) *DeleteScannersRegistrationIDParams
- func (o *DeleteScannersRegistrationIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteScannersRegistrationIDReader
- type DeleteScannersRegistrationIDUnauthorized
- type PatchScannersRegistrationIDForbidden
- type PatchScannersRegistrationIDInternalServerError
- type PatchScannersRegistrationIDOK
- type PatchScannersRegistrationIDParams
- func NewPatchScannersRegistrationIDParams() *PatchScannersRegistrationIDParams
- func NewPatchScannersRegistrationIDParamsWithContext(ctx context.Context) *PatchScannersRegistrationIDParams
- func NewPatchScannersRegistrationIDParamsWithHTTPClient(client *http.Client) *PatchScannersRegistrationIDParams
- func NewPatchScannersRegistrationIDParamsWithTimeout(timeout time.Duration) *PatchScannersRegistrationIDParams
- func (o *PatchScannersRegistrationIDParams) SetContext(ctx context.Context)
- func (o *PatchScannersRegistrationIDParams) SetDefaults()
- func (o *PatchScannersRegistrationIDParams) SetHTTPClient(client *http.Client)
- func (o *PatchScannersRegistrationIDParams) SetPayload(payload *legacy.IsDefault)
- func (o *PatchScannersRegistrationIDParams) SetRegistrationID(registrationID string)
- func (o *PatchScannersRegistrationIDParams) SetTimeout(timeout time.Duration)
- func (o *PatchScannersRegistrationIDParams) WithContext(ctx context.Context) *PatchScannersRegistrationIDParams
- func (o *PatchScannersRegistrationIDParams) WithDefaults() *PatchScannersRegistrationIDParams
- func (o *PatchScannersRegistrationIDParams) WithHTTPClient(client *http.Client) *PatchScannersRegistrationIDParams
- func (o *PatchScannersRegistrationIDParams) WithPayload(payload *legacy.IsDefault) *PatchScannersRegistrationIDParams
- func (o *PatchScannersRegistrationIDParams) WithRegistrationID(registrationID string) *PatchScannersRegistrationIDParams
- func (o *PatchScannersRegistrationIDParams) WithTimeout(timeout time.Duration) *PatchScannersRegistrationIDParams
- func (o *PatchScannersRegistrationIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchScannersRegistrationIDReader
- type PatchScannersRegistrationIDUnauthorized
- type PostScannersBadRequest
- type PostScannersCreated
- type PostScannersForbidden
- type PostScannersInternalServerError
- type PostScannersParams
- func (o *PostScannersParams) SetContext(ctx context.Context)
- func (o *PostScannersParams) SetDefaults()
- func (o *PostScannersParams) SetHTTPClient(client *http.Client)
- func (o *PostScannersParams) SetRegistration(registration *legacy.ScannerRegistrationReq)
- func (o *PostScannersParams) SetTimeout(timeout time.Duration)
- func (o *PostScannersParams) WithContext(ctx context.Context) *PostScannersParams
- func (o *PostScannersParams) WithDefaults() *PostScannersParams
- func (o *PostScannersParams) WithHTTPClient(client *http.Client) *PostScannersParams
- func (o *PostScannersParams) WithRegistration(registration *legacy.ScannerRegistrationReq) *PostScannersParams
- func (o *PostScannersParams) WithTimeout(timeout time.Duration) *PostScannersParams
- func (o *PostScannersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostScannersReader
- type PostScannersUnauthorized
- type PutProjectsProjectIDScannerBadRequest
- type PutProjectsProjectIDScannerForbidden
- type PutProjectsProjectIDScannerInternalServerError
- type PutProjectsProjectIDScannerNotFound
- type PutProjectsProjectIDScannerOK
- type PutProjectsProjectIDScannerParams
- func NewPutProjectsProjectIDScannerParams() *PutProjectsProjectIDScannerParams
- func NewPutProjectsProjectIDScannerParamsWithContext(ctx context.Context) *PutProjectsProjectIDScannerParams
- func NewPutProjectsProjectIDScannerParamsWithHTTPClient(client *http.Client) *PutProjectsProjectIDScannerParams
- func NewPutProjectsProjectIDScannerParamsWithTimeout(timeout time.Duration) *PutProjectsProjectIDScannerParams
- func (o *PutProjectsProjectIDScannerParams) SetContext(ctx context.Context)
- func (o *PutProjectsProjectIDScannerParams) SetDefaults()
- func (o *PutProjectsProjectIDScannerParams) SetHTTPClient(client *http.Client)
- func (o *PutProjectsProjectIDScannerParams) SetPayload(payload *legacy.ProjectScanner)
- func (o *PutProjectsProjectIDScannerParams) SetProjectID(projectID int64)
- func (o *PutProjectsProjectIDScannerParams) SetTimeout(timeout time.Duration)
- func (o *PutProjectsProjectIDScannerParams) WithContext(ctx context.Context) *PutProjectsProjectIDScannerParams
- func (o *PutProjectsProjectIDScannerParams) WithDefaults() *PutProjectsProjectIDScannerParams
- func (o *PutProjectsProjectIDScannerParams) WithHTTPClient(client *http.Client) *PutProjectsProjectIDScannerParams
- func (o *PutProjectsProjectIDScannerParams) WithPayload(payload *legacy.ProjectScanner) *PutProjectsProjectIDScannerParams
- func (o *PutProjectsProjectIDScannerParams) WithProjectID(projectID int64) *PutProjectsProjectIDScannerParams
- func (o *PutProjectsProjectIDScannerParams) WithTimeout(timeout time.Duration) *PutProjectsProjectIDScannerParams
- func (o *PutProjectsProjectIDScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutProjectsProjectIDScannerReader
- type PutProjectsProjectIDScannerUnauthorized
- type PutScannersRegistrationIDForbidden
- type PutScannersRegistrationIDInternalServerError
- type PutScannersRegistrationIDNotFound
- type PutScannersRegistrationIDOK
- type PutScannersRegistrationIDParams
- func NewPutScannersRegistrationIDParams() *PutScannersRegistrationIDParams
- func NewPutScannersRegistrationIDParamsWithContext(ctx context.Context) *PutScannersRegistrationIDParams
- func NewPutScannersRegistrationIDParamsWithHTTPClient(client *http.Client) *PutScannersRegistrationIDParams
- func NewPutScannersRegistrationIDParamsWithTimeout(timeout time.Duration) *PutScannersRegistrationIDParams
- func (o *PutScannersRegistrationIDParams) SetContext(ctx context.Context)
- func (o *PutScannersRegistrationIDParams) SetDefaults()
- func (o *PutScannersRegistrationIDParams) SetHTTPClient(client *http.Client)
- func (o *PutScannersRegistrationIDParams) SetRegistration(registration *legacy.ScannerRegistrationReq)
- func (o *PutScannersRegistrationIDParams) SetRegistrationID(registrationID string)
- func (o *PutScannersRegistrationIDParams) SetTimeout(timeout time.Duration)
- func (o *PutScannersRegistrationIDParams) WithContext(ctx context.Context) *PutScannersRegistrationIDParams
- func (o *PutScannersRegistrationIDParams) WithDefaults() *PutScannersRegistrationIDParams
- func (o *PutScannersRegistrationIDParams) WithHTTPClient(client *http.Client) *PutScannersRegistrationIDParams
- func (o *PutScannersRegistrationIDParams) WithRegistration(registration *legacy.ScannerRegistrationReq) *PutScannersRegistrationIDParams
- func (o *PutScannersRegistrationIDParams) WithRegistrationID(registrationID string) *PutScannersRegistrationIDParams
- func (o *PutScannersRegistrationIDParams) WithTimeout(timeout time.Duration) *PutScannersRegistrationIDParams
- func (o *PutScannersRegistrationIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PutScannersRegistrationIDReader
- type PutScannersRegistrationIDUnauthorized
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, opts ...ClientOption) (*DeleteScannersRegistrationIDOK, error)
DeleteScannersRegistrationID deletes a scanner registration
Deletes the specified scanner registration.
func (*Client) PatchScannersRegistrationID ¶
func (a *Client) PatchScannersRegistrationID(params *PatchScannersRegistrationIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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, opts ...ClientOption) (*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, opts ...ClientOption) (*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, opts ...ClientOption) (*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 ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { DeleteScannersRegistrationID(params *DeleteScannersRegistrationIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteScannersRegistrationIDOK, error) PatchScannersRegistrationID(params *PatchScannersRegistrationIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchScannersRegistrationIDOK, error) PostScanners(params *PostScannersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostScannersCreated, error) PutProjectsProjectIDScanner(params *PutProjectsProjectIDScannerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PutProjectsProjectIDScannerOK, error) PutScannersRegistrationID(params *PutScannersRegistrationIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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 describes a response with status code 403, 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 ¶
func (o *DeleteScannersRegistrationIDForbidden) Error() string
type DeleteScannersRegistrationIDInternalServerError ¶
type DeleteScannersRegistrationIDInternalServerError struct { }
DeleteScannersRegistrationIDInternalServerError describes a response with status code 500, with default header values.
Internal server error happened
func NewDeleteScannersRegistrationIDInternalServerError ¶
func NewDeleteScannersRegistrationIDInternalServerError() *DeleteScannersRegistrationIDInternalServerError
NewDeleteScannersRegistrationIDInternalServerError creates a DeleteScannersRegistrationIDInternalServerError with default headers values
func (*DeleteScannersRegistrationIDInternalServerError) Error ¶
func (o *DeleteScannersRegistrationIDInternalServerError) Error() string
type DeleteScannersRegistrationIDNotFound ¶
type DeleteScannersRegistrationIDNotFound struct { }
DeleteScannersRegistrationIDNotFound describes a response with status code 404, 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 ¶
func (o *DeleteScannersRegistrationIDNotFound) Error() string
type DeleteScannersRegistrationIDOK ¶
type DeleteScannersRegistrationIDOK struct {
Payload *legacy.ScannerRegistration
}
DeleteScannersRegistrationIDOK describes a response with status code 200, 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 (o *DeleteScannersRegistrationIDOK) Error() string
func (*DeleteScannersRegistrationIDOK) GetPayload ¶
func (o *DeleteScannersRegistrationIDOK) GetPayload() *legacy.ScannerRegistration
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 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 NewDeleteScannersRegistrationIDParamsWithContext ¶
func NewDeleteScannersRegistrationIDParamsWithContext(ctx context.Context) *DeleteScannersRegistrationIDParams
NewDeleteScannersRegistrationIDParamsWithContext creates a new DeleteScannersRegistrationIDParams object with 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 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 ability to set a timeout on a request.
func (*DeleteScannersRegistrationIDParams) SetContext ¶
func (o *DeleteScannersRegistrationIDParams) SetContext(ctx context.Context)
SetContext adds the context to the delete scanners registration ID params
func (*DeleteScannersRegistrationIDParams) SetDefaults ¶
func (o *DeleteScannersRegistrationIDParams) SetDefaults()
SetDefaults hydrates default values in the delete scanners registration ID params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *DeleteScannersRegistrationIDParams) WithContext(ctx context.Context) *DeleteScannersRegistrationIDParams
WithContext adds the context to the delete scanners registration ID params
func (*DeleteScannersRegistrationIDParams) WithDefaults ¶
func (o *DeleteScannersRegistrationIDParams) WithDefaults() *DeleteScannersRegistrationIDParams
WithDefaults hydrates default values in the delete scanners registration ID params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteScannersRegistrationIDParams) WithHTTPClient ¶
func (o *DeleteScannersRegistrationIDParams) WithHTTPClient(client *http.Client) *DeleteScannersRegistrationIDParams
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 ¶
func (o *DeleteScannersRegistrationIDParams) WithTimeout(timeout time.Duration) *DeleteScannersRegistrationIDParams
WithTimeout adds the timeout to the delete scanners registration ID params
func (*DeleteScannersRegistrationIDParams) WriteToRequest ¶
func (o *DeleteScannersRegistrationIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 describes a response with status code 401, with default header values.
Unauthorized request
func NewDeleteScannersRegistrationIDUnauthorized ¶
func NewDeleteScannersRegistrationIDUnauthorized() *DeleteScannersRegistrationIDUnauthorized
NewDeleteScannersRegistrationIDUnauthorized creates a DeleteScannersRegistrationIDUnauthorized with default headers values
func (*DeleteScannersRegistrationIDUnauthorized) Error ¶
func (o *DeleteScannersRegistrationIDUnauthorized) Error() string
type PatchScannersRegistrationIDForbidden ¶
type PatchScannersRegistrationIDForbidden struct { }
PatchScannersRegistrationIDForbidden describes a response with status code 403, with default header values.
Request is not allowed
func NewPatchScannersRegistrationIDForbidden ¶
func NewPatchScannersRegistrationIDForbidden() *PatchScannersRegistrationIDForbidden
NewPatchScannersRegistrationIDForbidden creates a PatchScannersRegistrationIDForbidden with default headers values
func (*PatchScannersRegistrationIDForbidden) Error ¶
func (o *PatchScannersRegistrationIDForbidden) Error() string
type PatchScannersRegistrationIDInternalServerError ¶
type PatchScannersRegistrationIDInternalServerError struct { }
PatchScannersRegistrationIDInternalServerError describes a response with status code 500, with default header values.
Internal server error happened
func NewPatchScannersRegistrationIDInternalServerError ¶
func NewPatchScannersRegistrationIDInternalServerError() *PatchScannersRegistrationIDInternalServerError
NewPatchScannersRegistrationIDInternalServerError creates a PatchScannersRegistrationIDInternalServerError with default headers values
func (*PatchScannersRegistrationIDInternalServerError) Error ¶
func (o *PatchScannersRegistrationIDInternalServerError) Error() string
type PatchScannersRegistrationIDOK ¶
type PatchScannersRegistrationIDOK struct { }
PatchScannersRegistrationIDOK describes a response with status code 200, 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 ¶
func (o *PatchScannersRegistrationIDOK) Error() string
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 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 NewPatchScannersRegistrationIDParamsWithContext ¶
func NewPatchScannersRegistrationIDParamsWithContext(ctx context.Context) *PatchScannersRegistrationIDParams
NewPatchScannersRegistrationIDParamsWithContext creates a new PatchScannersRegistrationIDParams object with 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 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 ability to set a timeout on a request.
func (*PatchScannersRegistrationIDParams) SetContext ¶
func (o *PatchScannersRegistrationIDParams) SetContext(ctx context.Context)
SetContext adds the context to the patch scanners registration ID params
func (*PatchScannersRegistrationIDParams) SetDefaults ¶
func (o *PatchScannersRegistrationIDParams) SetDefaults()
SetDefaults hydrates default values in the patch scanners registration ID params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *PatchScannersRegistrationIDParams) WithContext(ctx context.Context) *PatchScannersRegistrationIDParams
WithContext adds the context to the patch scanners registration ID params
func (*PatchScannersRegistrationIDParams) WithDefaults ¶
func (o *PatchScannersRegistrationIDParams) WithDefaults() *PatchScannersRegistrationIDParams
WithDefaults hydrates default values in the patch scanners registration ID params (not the query body).
All values with no default are reset to their zero value.
func (*PatchScannersRegistrationIDParams) WithHTTPClient ¶
func (o *PatchScannersRegistrationIDParams) WithHTTPClient(client *http.Client) *PatchScannersRegistrationIDParams
WithHTTPClient adds the HTTPClient to the patch scanners registration ID params
func (*PatchScannersRegistrationIDParams) WithPayload ¶
func (o *PatchScannersRegistrationIDParams) WithPayload(payload *legacy.IsDefault) *PatchScannersRegistrationIDParams
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 ¶
func (o *PatchScannersRegistrationIDParams) WithTimeout(timeout time.Duration) *PatchScannersRegistrationIDParams
WithTimeout adds the timeout to the patch scanners registration ID params
func (*PatchScannersRegistrationIDParams) WriteToRequest ¶
func (o *PatchScannersRegistrationIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 describes a response with status code 401, with default header values.
Unauthorized request
func NewPatchScannersRegistrationIDUnauthorized ¶
func NewPatchScannersRegistrationIDUnauthorized() *PatchScannersRegistrationIDUnauthorized
NewPatchScannersRegistrationIDUnauthorized creates a PatchScannersRegistrationIDUnauthorized with default headers values
func (*PatchScannersRegistrationIDUnauthorized) Error ¶
func (o *PatchScannersRegistrationIDUnauthorized) Error() string
type PostScannersBadRequest ¶
type PostScannersBadRequest struct { }
PostScannersBadRequest describes a response with status code 400, 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 { /* The URL of the created resource */ Location string }
PostScannersCreated describes a response with status code 201, 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 describes a response with status code 403, 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 describes a response with status code 500, with default header values.
Internal server error happened
func NewPostScannersInternalServerError ¶
func NewPostScannersInternalServerError() *PostScannersInternalServerError
NewPostScannersInternalServerError creates a PostScannersInternalServerError with default headers values
func (*PostScannersInternalServerError) Error ¶
func (o *PostScannersInternalServerError) Error() string
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 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 NewPostScannersParamsWithContext ¶
func NewPostScannersParamsWithContext(ctx context.Context) *PostScannersParams
NewPostScannersParamsWithContext creates a new PostScannersParams object with 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 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 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) SetDefaults ¶
func (o *PostScannersParams) SetDefaults()
SetDefaults hydrates default values in the post scanners params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *PostScannersParams) WithContext(ctx context.Context) *PostScannersParams
WithContext adds the context to the post scanners params
func (*PostScannersParams) WithDefaults ¶
func (o *PostScannersParams) WithDefaults() *PostScannersParams
WithDefaults hydrates default values in the post scanners params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 401, 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 describes a response with status code 400, with default header values.
Bad project ID
func NewPutProjectsProjectIDScannerBadRequest ¶
func NewPutProjectsProjectIDScannerBadRequest() *PutProjectsProjectIDScannerBadRequest
NewPutProjectsProjectIDScannerBadRequest creates a PutProjectsProjectIDScannerBadRequest with default headers values
func (*PutProjectsProjectIDScannerBadRequest) Error ¶
func (o *PutProjectsProjectIDScannerBadRequest) Error() string
type PutProjectsProjectIDScannerForbidden ¶
type PutProjectsProjectIDScannerForbidden struct { }
PutProjectsProjectIDScannerForbidden describes a response with status code 403, with default header values.
Request is not allowed
func NewPutProjectsProjectIDScannerForbidden ¶
func NewPutProjectsProjectIDScannerForbidden() *PutProjectsProjectIDScannerForbidden
NewPutProjectsProjectIDScannerForbidden creates a PutProjectsProjectIDScannerForbidden with default headers values
func (*PutProjectsProjectIDScannerForbidden) Error ¶
func (o *PutProjectsProjectIDScannerForbidden) Error() string
type PutProjectsProjectIDScannerInternalServerError ¶
type PutProjectsProjectIDScannerInternalServerError struct { }
PutProjectsProjectIDScannerInternalServerError describes a response with status code 500, with default header values.
Internal server error happened
func NewPutProjectsProjectIDScannerInternalServerError ¶
func NewPutProjectsProjectIDScannerInternalServerError() *PutProjectsProjectIDScannerInternalServerError
NewPutProjectsProjectIDScannerInternalServerError creates a PutProjectsProjectIDScannerInternalServerError with default headers values
func (*PutProjectsProjectIDScannerInternalServerError) Error ¶
func (o *PutProjectsProjectIDScannerInternalServerError) Error() string
type PutProjectsProjectIDScannerNotFound ¶
type PutProjectsProjectIDScannerNotFound struct { }
PutProjectsProjectIDScannerNotFound describes a response with status code 404, 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 ¶
func (o *PutProjectsProjectIDScannerNotFound) Error() string
type PutProjectsProjectIDScannerOK ¶
type PutProjectsProjectIDScannerOK struct { }
PutProjectsProjectIDScannerOK describes a response with status code 200, 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 ¶
func (o *PutProjectsProjectIDScannerOK) Error() string
type PutProjectsProjectIDScannerParams ¶
type PutProjectsProjectIDScannerParams struct { // Payload. Payload *legacy.ProjectScanner /* ProjectID. The project identifier. Format: int64 */ 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 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 NewPutProjectsProjectIDScannerParamsWithContext ¶
func NewPutProjectsProjectIDScannerParamsWithContext(ctx context.Context) *PutProjectsProjectIDScannerParams
NewPutProjectsProjectIDScannerParamsWithContext creates a new PutProjectsProjectIDScannerParams object with 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 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 ability to set a timeout on a request.
func (*PutProjectsProjectIDScannerParams) SetContext ¶
func (o *PutProjectsProjectIDScannerParams) SetContext(ctx context.Context)
SetContext adds the context to the put projects project ID scanner params
func (*PutProjectsProjectIDScannerParams) SetDefaults ¶
func (o *PutProjectsProjectIDScannerParams) SetDefaults()
SetDefaults hydrates default values in the put projects project ID scanner params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *PutProjectsProjectIDScannerParams) SetPayload(payload *legacy.ProjectScanner)
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 ¶
func (o *PutProjectsProjectIDScannerParams) WithContext(ctx context.Context) *PutProjectsProjectIDScannerParams
WithContext adds the context to the put projects project ID scanner params
func (*PutProjectsProjectIDScannerParams) WithDefaults ¶
func (o *PutProjectsProjectIDScannerParams) WithDefaults() *PutProjectsProjectIDScannerParams
WithDefaults hydrates default values in the put projects project ID scanner params (not the query body).
All values with no default are reset to their zero value.
func (*PutProjectsProjectIDScannerParams) WithHTTPClient ¶
func (o *PutProjectsProjectIDScannerParams) WithHTTPClient(client *http.Client) *PutProjectsProjectIDScannerParams
WithHTTPClient adds the HTTPClient to the put projects project ID scanner params
func (*PutProjectsProjectIDScannerParams) WithPayload ¶
func (o *PutProjectsProjectIDScannerParams) WithPayload(payload *legacy.ProjectScanner) *PutProjectsProjectIDScannerParams
WithPayload adds the payload to the put projects project ID scanner params
func (*PutProjectsProjectIDScannerParams) WithProjectID ¶
func (o *PutProjectsProjectIDScannerParams) WithProjectID(projectID int64) *PutProjectsProjectIDScannerParams
WithProjectID adds the projectID to the put projects project ID scanner params
func (*PutProjectsProjectIDScannerParams) WithTimeout ¶
func (o *PutProjectsProjectIDScannerParams) WithTimeout(timeout time.Duration) *PutProjectsProjectIDScannerParams
WithTimeout adds the timeout to the put projects project ID scanner params
func (*PutProjectsProjectIDScannerParams) WriteToRequest ¶
func (o *PutProjectsProjectIDScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 describes a response with status code 401, with default header values.
Unauthorized request
func NewPutProjectsProjectIDScannerUnauthorized ¶
func NewPutProjectsProjectIDScannerUnauthorized() *PutProjectsProjectIDScannerUnauthorized
NewPutProjectsProjectIDScannerUnauthorized creates a PutProjectsProjectIDScannerUnauthorized with default headers values
func (*PutProjectsProjectIDScannerUnauthorized) Error ¶
func (o *PutProjectsProjectIDScannerUnauthorized) Error() string
type PutScannersRegistrationIDForbidden ¶
type PutScannersRegistrationIDForbidden struct { }
PutScannersRegistrationIDForbidden describes a response with status code 403, 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 ¶
func (o *PutScannersRegistrationIDForbidden) Error() string
type PutScannersRegistrationIDInternalServerError ¶
type PutScannersRegistrationIDInternalServerError struct { }
PutScannersRegistrationIDInternalServerError describes a response with status code 500, with default header values.
Internal server error happened
func NewPutScannersRegistrationIDInternalServerError ¶
func NewPutScannersRegistrationIDInternalServerError() *PutScannersRegistrationIDInternalServerError
NewPutScannersRegistrationIDInternalServerError creates a PutScannersRegistrationIDInternalServerError with default headers values
func (*PutScannersRegistrationIDInternalServerError) Error ¶
func (o *PutScannersRegistrationIDInternalServerError) Error() string
type PutScannersRegistrationIDNotFound ¶
type PutScannersRegistrationIDNotFound struct { }
PutScannersRegistrationIDNotFound describes a response with status code 404, 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 ¶
func (o *PutScannersRegistrationIDNotFound) Error() string
type PutScannersRegistrationIDOK ¶
type PutScannersRegistrationIDOK struct { }
PutScannersRegistrationIDOK describes a response with status code 200, with default header values.
Updated successfully
func NewPutScannersRegistrationIDOK ¶
func NewPutScannersRegistrationIDOK() *PutScannersRegistrationIDOK
NewPutScannersRegistrationIDOK creates a PutScannersRegistrationIDOK with default headers values
func (*PutScannersRegistrationIDOK) Error ¶
func (o *PutScannersRegistrationIDOK) Error() string
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 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 NewPutScannersRegistrationIDParamsWithContext ¶
func NewPutScannersRegistrationIDParamsWithContext(ctx context.Context) *PutScannersRegistrationIDParams
NewPutScannersRegistrationIDParamsWithContext creates a new PutScannersRegistrationIDParams object with 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 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 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) SetDefaults ¶
func (o *PutScannersRegistrationIDParams) SetDefaults()
SetDefaults hydrates default values in the put scanners registration ID params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *PutScannersRegistrationIDParams) WithContext(ctx context.Context) *PutScannersRegistrationIDParams
WithContext adds the context to the put scanners registration ID params
func (*PutScannersRegistrationIDParams) WithDefaults ¶
func (o *PutScannersRegistrationIDParams) WithDefaults() *PutScannersRegistrationIDParams
WithDefaults hydrates default values in the put scanners registration ID params (not the query body).
All values with no default are reset to their zero value.
func (*PutScannersRegistrationIDParams) WithHTTPClient ¶
func (o *PutScannersRegistrationIDParams) WithHTTPClient(client *http.Client) *PutScannersRegistrationIDParams
WithHTTPClient adds the HTTPClient to the put scanners registration ID params
func (*PutScannersRegistrationIDParams) WithRegistration ¶
func (o *PutScannersRegistrationIDParams) WithRegistration(registration *legacy.ScannerRegistrationReq) *PutScannersRegistrationIDParams
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 ¶
func (o *PutScannersRegistrationIDParams) WithTimeout(timeout time.Duration) *PutScannersRegistrationIDParams
WithTimeout adds the timeout to the put scanners registration ID params
func (*PutScannersRegistrationIDParams) WriteToRequest ¶
func (o *PutScannersRegistrationIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 describes a response with status code 401, with default header values.
Unauthorized request
func NewPutScannersRegistrationIDUnauthorized ¶
func NewPutScannersRegistrationIDUnauthorized() *PutScannersRegistrationIDUnauthorized
NewPutScannersRegistrationIDUnauthorized creates a PutScannersRegistrationIDUnauthorized with default headers values
func (*PutScannersRegistrationIDUnauthorized) Error ¶
func (o *PutScannersRegistrationIDUnauthorized) Error() string
Source Files
¶
- delete_scanners_registration_id_parameters.go
- delete_scanners_registration_id_responses.go
- patch_scanners_registration_id_parameters.go
- patch_scanners_registration_id_responses.go
- post_scanners_parameters.go
- post_scanners_responses.go
- put_projects_project_id_scanner_parameters.go
- put_projects_project_id_scanner_responses.go
- put_scanners_registration_id_parameters.go
- put_scanners_registration_id_responses.go
- scanners_client.go