Documentation
¶
Index ¶
- type API
- type Client
- func (a *Client) CreateScanner(ctx context.Context, params *CreateScannerParams) (*CreateScannerCreated, error)
- func (a *Client) DeleteScanner(ctx context.Context, params *DeleteScannerParams) (*DeleteScannerOK, error)
- func (a *Client) GetScanner(ctx context.Context, params *GetScannerParams) (*GetScannerOK, error)
- func (a *Client) GetScannerMetadata(ctx context.Context, params *GetScannerMetadataParams) (*GetScannerMetadataOK, error)
- func (a *Client) ListScanners(ctx context.Context, params *ListScannersParams) (*ListScannersOK, error)
- func (a *Client) PingScanner(ctx context.Context, params *PingScannerParams) (*PingScannerOK, error)
- func (a *Client) SetScannerAsDefault(ctx context.Context, params *SetScannerAsDefaultParams) (*SetScannerAsDefaultOK, error)
- func (a *Client) UpdateScanner(ctx context.Context, params *UpdateScannerParams) (*UpdateScannerOK, error)
- type CreateScannerBadRequest
- type CreateScannerCreated
- type CreateScannerForbidden
- type CreateScannerInternalServerError
- type CreateScannerParams
- func (o *CreateScannerParams) SetContext(ctx context.Context)
- func (o *CreateScannerParams) SetDefaults()
- func (o *CreateScannerParams) SetHTTPClient(client *http.Client)
- func (o *CreateScannerParams) SetRegistration(registration *models.ScannerRegistrationReq)
- func (o *CreateScannerParams) SetTimeout(timeout time.Duration)
- func (o *CreateScannerParams) SetXRequestID(xRequestID *string)
- func (o *CreateScannerParams) WithContext(ctx context.Context) *CreateScannerParams
- func (o *CreateScannerParams) WithDefaults() *CreateScannerParams
- func (o *CreateScannerParams) WithHTTPClient(client *http.Client) *CreateScannerParams
- func (o *CreateScannerParams) WithRegistration(registration *models.ScannerRegistrationReq) *CreateScannerParams
- func (o *CreateScannerParams) WithTimeout(timeout time.Duration) *CreateScannerParams
- func (o *CreateScannerParams) WithXRequestID(xRequestID *string) *CreateScannerParams
- func (o *CreateScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateScannerReader
- type CreateScannerUnauthorized
- type DeleteScannerForbidden
- type DeleteScannerInternalServerError
- type DeleteScannerNotFound
- type DeleteScannerOK
- type DeleteScannerParams
- func (o *DeleteScannerParams) SetContext(ctx context.Context)
- func (o *DeleteScannerParams) SetDefaults()
- func (o *DeleteScannerParams) SetHTTPClient(client *http.Client)
- func (o *DeleteScannerParams) SetRegistrationID(registrationID string)
- func (o *DeleteScannerParams) SetTimeout(timeout time.Duration)
- func (o *DeleteScannerParams) SetXRequestID(xRequestID *string)
- func (o *DeleteScannerParams) WithContext(ctx context.Context) *DeleteScannerParams
- func (o *DeleteScannerParams) WithDefaults() *DeleteScannerParams
- func (o *DeleteScannerParams) WithHTTPClient(client *http.Client) *DeleteScannerParams
- func (o *DeleteScannerParams) WithRegistrationID(registrationID string) *DeleteScannerParams
- func (o *DeleteScannerParams) WithTimeout(timeout time.Duration) *DeleteScannerParams
- func (o *DeleteScannerParams) WithXRequestID(xRequestID *string) *DeleteScannerParams
- func (o *DeleteScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteScannerReader
- type DeleteScannerUnauthorized
- type GetScannerForbidden
- type GetScannerInternalServerError
- type GetScannerMetadataForbidden
- type GetScannerMetadataInternalServerError
- type GetScannerMetadataOK
- type GetScannerMetadataParams
- func NewGetScannerMetadataParams() *GetScannerMetadataParams
- func NewGetScannerMetadataParamsWithContext(ctx context.Context) *GetScannerMetadataParams
- func NewGetScannerMetadataParamsWithHTTPClient(client *http.Client) *GetScannerMetadataParams
- func NewGetScannerMetadataParamsWithTimeout(timeout time.Duration) *GetScannerMetadataParams
- func (o *GetScannerMetadataParams) SetContext(ctx context.Context)
- func (o *GetScannerMetadataParams) SetDefaults()
- func (o *GetScannerMetadataParams) SetHTTPClient(client *http.Client)
- func (o *GetScannerMetadataParams) SetRegistrationID(registrationID string)
- func (o *GetScannerMetadataParams) SetTimeout(timeout time.Duration)
- func (o *GetScannerMetadataParams) SetXRequestID(xRequestID *string)
- func (o *GetScannerMetadataParams) WithContext(ctx context.Context) *GetScannerMetadataParams
- func (o *GetScannerMetadataParams) WithDefaults() *GetScannerMetadataParams
- func (o *GetScannerMetadataParams) WithHTTPClient(client *http.Client) *GetScannerMetadataParams
- func (o *GetScannerMetadataParams) WithRegistrationID(registrationID string) *GetScannerMetadataParams
- func (o *GetScannerMetadataParams) WithTimeout(timeout time.Duration) *GetScannerMetadataParams
- func (o *GetScannerMetadataParams) WithXRequestID(xRequestID *string) *GetScannerMetadataParams
- func (o *GetScannerMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetScannerMetadataReader
- type GetScannerMetadataUnauthorized
- type GetScannerNotFound
- type GetScannerOK
- type GetScannerParams
- func (o *GetScannerParams) SetContext(ctx context.Context)
- func (o *GetScannerParams) SetDefaults()
- func (o *GetScannerParams) SetHTTPClient(client *http.Client)
- func (o *GetScannerParams) SetRegistrationID(registrationID string)
- func (o *GetScannerParams) SetTimeout(timeout time.Duration)
- func (o *GetScannerParams) SetXRequestID(xRequestID *string)
- func (o *GetScannerParams) WithContext(ctx context.Context) *GetScannerParams
- func (o *GetScannerParams) WithDefaults() *GetScannerParams
- func (o *GetScannerParams) WithHTTPClient(client *http.Client) *GetScannerParams
- func (o *GetScannerParams) WithRegistrationID(registrationID string) *GetScannerParams
- func (o *GetScannerParams) WithTimeout(timeout time.Duration) *GetScannerParams
- func (o *GetScannerParams) WithXRequestID(xRequestID *string) *GetScannerParams
- func (o *GetScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetScannerReader
- type GetScannerUnauthorized
- type ListScannersBadRequest
- type ListScannersForbidden
- type ListScannersInternalServerError
- type ListScannersOK
- type ListScannersParams
- func (o *ListScannersParams) SetContext(ctx context.Context)
- func (o *ListScannersParams) SetDefaults()
- func (o *ListScannersParams) SetHTTPClient(client *http.Client)
- func (o *ListScannersParams) SetPage(page *int64)
- func (o *ListScannersParams) SetPageSize(pageSize *int64)
- func (o *ListScannersParams) SetQ(q *string)
- func (o *ListScannersParams) SetSort(sort *string)
- func (o *ListScannersParams) SetTimeout(timeout time.Duration)
- func (o *ListScannersParams) SetXRequestID(xRequestID *string)
- func (o *ListScannersParams) WithContext(ctx context.Context) *ListScannersParams
- func (o *ListScannersParams) WithDefaults() *ListScannersParams
- func (o *ListScannersParams) WithHTTPClient(client *http.Client) *ListScannersParams
- func (o *ListScannersParams) WithPage(page *int64) *ListScannersParams
- func (o *ListScannersParams) WithPageSize(pageSize *int64) *ListScannersParams
- func (o *ListScannersParams) WithQ(q *string) *ListScannersParams
- func (o *ListScannersParams) WithSort(sort *string) *ListScannersParams
- func (o *ListScannersParams) WithTimeout(timeout time.Duration) *ListScannersParams
- func (o *ListScannersParams) WithXRequestID(xRequestID *string) *ListScannersParams
- func (o *ListScannersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListScannersReader
- type ListScannersUnauthorized
- type PingScannerBadRequest
- type PingScannerForbidden
- type PingScannerInternalServerError
- type PingScannerOK
- type PingScannerParams
- func (o *PingScannerParams) SetContext(ctx context.Context)
- func (o *PingScannerParams) SetDefaults()
- func (o *PingScannerParams) SetHTTPClient(client *http.Client)
- func (o *PingScannerParams) SetSettings(settings *models.ScannerRegistrationSettings)
- func (o *PingScannerParams) SetTimeout(timeout time.Duration)
- func (o *PingScannerParams) SetXRequestID(xRequestID *string)
- func (o *PingScannerParams) WithContext(ctx context.Context) *PingScannerParams
- func (o *PingScannerParams) WithDefaults() *PingScannerParams
- func (o *PingScannerParams) WithHTTPClient(client *http.Client) *PingScannerParams
- func (o *PingScannerParams) WithSettings(settings *models.ScannerRegistrationSettings) *PingScannerParams
- func (o *PingScannerParams) WithTimeout(timeout time.Duration) *PingScannerParams
- func (o *PingScannerParams) WithXRequestID(xRequestID *string) *PingScannerParams
- func (o *PingScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PingScannerReader
- type PingScannerUnauthorized
- type SetScannerAsDefaultForbidden
- type SetScannerAsDefaultInternalServerError
- type SetScannerAsDefaultOK
- type SetScannerAsDefaultParams
- func NewSetScannerAsDefaultParams() *SetScannerAsDefaultParams
- func NewSetScannerAsDefaultParamsWithContext(ctx context.Context) *SetScannerAsDefaultParams
- func NewSetScannerAsDefaultParamsWithHTTPClient(client *http.Client) *SetScannerAsDefaultParams
- func NewSetScannerAsDefaultParamsWithTimeout(timeout time.Duration) *SetScannerAsDefaultParams
- func (o *SetScannerAsDefaultParams) SetContext(ctx context.Context)
- func (o *SetScannerAsDefaultParams) SetDefaults()
- func (o *SetScannerAsDefaultParams) SetHTTPClient(client *http.Client)
- func (o *SetScannerAsDefaultParams) SetPayload(payload *models.IsDefault)
- func (o *SetScannerAsDefaultParams) SetRegistrationID(registrationID string)
- func (o *SetScannerAsDefaultParams) SetTimeout(timeout time.Duration)
- func (o *SetScannerAsDefaultParams) SetXRequestID(xRequestID *string)
- func (o *SetScannerAsDefaultParams) WithContext(ctx context.Context) *SetScannerAsDefaultParams
- func (o *SetScannerAsDefaultParams) WithDefaults() *SetScannerAsDefaultParams
- func (o *SetScannerAsDefaultParams) WithHTTPClient(client *http.Client) *SetScannerAsDefaultParams
- func (o *SetScannerAsDefaultParams) WithPayload(payload *models.IsDefault) *SetScannerAsDefaultParams
- func (o *SetScannerAsDefaultParams) WithRegistrationID(registrationID string) *SetScannerAsDefaultParams
- func (o *SetScannerAsDefaultParams) WithTimeout(timeout time.Duration) *SetScannerAsDefaultParams
- func (o *SetScannerAsDefaultParams) WithXRequestID(xRequestID *string) *SetScannerAsDefaultParams
- func (o *SetScannerAsDefaultParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetScannerAsDefaultReader
- type SetScannerAsDefaultUnauthorized
- type UpdateScannerForbidden
- type UpdateScannerInternalServerError
- type UpdateScannerNotFound
- type UpdateScannerOK
- type UpdateScannerParams
- func (o *UpdateScannerParams) SetContext(ctx context.Context)
- func (o *UpdateScannerParams) SetDefaults()
- func (o *UpdateScannerParams) SetHTTPClient(client *http.Client)
- func (o *UpdateScannerParams) SetRegistration(registration *models.ScannerRegistrationReq)
- func (o *UpdateScannerParams) SetRegistrationID(registrationID string)
- func (o *UpdateScannerParams) SetTimeout(timeout time.Duration)
- func (o *UpdateScannerParams) SetXRequestID(xRequestID *string)
- func (o *UpdateScannerParams) WithContext(ctx context.Context) *UpdateScannerParams
- func (o *UpdateScannerParams) WithDefaults() *UpdateScannerParams
- func (o *UpdateScannerParams) WithHTTPClient(client *http.Client) *UpdateScannerParams
- func (o *UpdateScannerParams) WithRegistration(registration *models.ScannerRegistrationReq) *UpdateScannerParams
- func (o *UpdateScannerParams) WithRegistrationID(registrationID string) *UpdateScannerParams
- func (o *UpdateScannerParams) WithTimeout(timeout time.Duration) *UpdateScannerParams
- func (o *UpdateScannerParams) WithXRequestID(xRequestID *string) *UpdateScannerParams
- func (o *UpdateScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateScannerReader
- type UpdateScannerUnauthorized
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
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
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
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 (o *CreateScannerInternalServerError) Error() string
func (*CreateScannerInternalServerError) GetPayload ¶
func (o *CreateScannerInternalServerError) GetPayload() *models.Errors
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 ¶
func (o *CreateScannerParams) WithContext(ctx context.Context) *CreateScannerParams
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 { string }XRequestID
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
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
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 (o *DeleteScannerInternalServerError) Error() string
func (*DeleteScannerInternalServerError) GetPayload ¶
func (o *DeleteScannerInternalServerError) GetPayload() *models.Errors
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
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
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 ¶
func (o *DeleteScannerParams) WithContext(ctx context.Context) *DeleteScannerParams
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 { string }XRequestID
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
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
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 (o *GetScannerInternalServerError) Error() string
func (*GetScannerInternalServerError) GetPayload ¶
func (o *GetScannerInternalServerError) GetPayload() *models.Errors
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 (o *GetScannerMetadataForbidden) Error() string
func (*GetScannerMetadataForbidden) GetPayload ¶
func (o *GetScannerMetadataForbidden) GetPayload() *models.Errors
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 (o *GetScannerMetadataInternalServerError) Error() string
func (*GetScannerMetadataInternalServerError) GetPayload ¶
func (o *GetScannerMetadataInternalServerError) GetPayload() *models.Errors
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 (o *GetScannerMetadataOK) GetPayload() *models.ScannerAdapterMetadata
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 ¶
func (o *GetScannerMetadataParams) WithContext(ctx context.Context) *GetScannerMetadataParams
WithContext adds the context to the get scanner metadata params
func (*GetScannerMetadataParams) WithDefaults ¶
func (o *GetScannerMetadataParams) WithDefaults() *GetScannerMetadataParams
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 ¶
func (o *GetScannerMetadataParams) WithTimeout(timeout time.Duration) *GetScannerMetadataParams
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 ¶
func (o *GetScannerMetadataParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
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 (o *GetScannerMetadataUnauthorized) Error() string
func (*GetScannerMetadataUnauthorized) GetPayload ¶
func (o *GetScannerMetadataUnauthorized) GetPayload() *models.Errors
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
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
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 { string }XRequestID
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
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
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
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 (o *ListScannersInternalServerError) Error() string
func (*ListScannersInternalServerError) GetPayload ¶
func (o *ListScannersInternalServerError) GetPayload() *models.Errors
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
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 orderr and field2 in descending order with "sort=field1,-field2" */ Sort *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListScannersParams contains all the parameters to send to the API endpoint
for the list scanners operation. Typically these are written to a http.Request.
func NewListScannersParams ¶
func NewListScannersParams() *ListScannersParams
NewListScannersParams creates a new ListScannersParams object, with the default 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 ¶
func (o *ListScannersParams) WithContext(ctx context.Context) *ListScannersParams
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 ¶
func (o *ListScannersParams) WithQ(q *string) *ListScannersParams
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 { string }XRequestID
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
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
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
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 (o *PingScannerInternalServerError) Error() string
func (*PingScannerInternalServerError) GetPayload ¶
func (o *PingScannerInternalServerError) GetPayload() *models.Errors
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
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 ¶
func (o *PingScannerParams) WithSettings(settings *models.ScannerRegistrationSettings) *PingScannerParams
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 { string }XRequestID
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
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 (o *SetScannerAsDefaultForbidden) Error() string
func (*SetScannerAsDefaultForbidden) GetPayload ¶
func (o *SetScannerAsDefaultForbidden) GetPayload() *models.Errors
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 (o *SetScannerAsDefaultInternalServerError) Error() string
func (*SetScannerAsDefaultInternalServerError) GetPayload ¶
func (o *SetScannerAsDefaultInternalServerError) GetPayload() *models.Errors
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
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 ¶
func (o *SetScannerAsDefaultParams) WithContext(ctx context.Context) *SetScannerAsDefaultParams
WithContext adds the context to the set scanner as default params
func (*SetScannerAsDefaultParams) WithDefaults ¶
func (o *SetScannerAsDefaultParams) WithDefaults() *SetScannerAsDefaultParams
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 ¶
func (o *SetScannerAsDefaultParams) WithPayload(payload *models.IsDefault) *SetScannerAsDefaultParams
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 ¶
func (o *SetScannerAsDefaultParams) WithTimeout(timeout time.Duration) *SetScannerAsDefaultParams
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 ¶
func (o *SetScannerAsDefaultParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
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 (o *SetScannerAsDefaultUnauthorized) Error() string
func (*SetScannerAsDefaultUnauthorized) GetPayload ¶
func (o *SetScannerAsDefaultUnauthorized) GetPayload() *models.Errors
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
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 (o *UpdateScannerInternalServerError) Error() string
func (*UpdateScannerInternalServerError) GetPayload ¶
func (o *UpdateScannerInternalServerError) GetPayload() *models.Errors
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
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
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 ¶
func (o *UpdateScannerParams) WithContext(ctx context.Context) *UpdateScannerParams
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 { string }XRequestID
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
Source Files
¶
- create_scanner_parameters.go
- create_scanner_responses.go
- delete_scanner_parameters.go
- delete_scanner_responses.go
- get_scanner_metadata_parameters.go
- get_scanner_metadata_responses.go
- get_scanner_parameters.go
- get_scanner_responses.go
- list_scanners_parameters.go
- list_scanners_responses.go
- ping_scanner_parameters.go
- ping_scanner_responses.go
- scanner_client.go
- set_scanner_as_default_parameters.go
- set_scanner_as_default_responses.go
- update_scanner_parameters.go
- update_scanner_responses.go