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
- func (o *CreateScannerBadRequest) Error() string
- func (o *CreateScannerBadRequest) GetPayload() *models.Errors
- func (o *CreateScannerBadRequest) IsClientError() bool
- func (o *CreateScannerBadRequest) IsCode(code int) bool
- func (o *CreateScannerBadRequest) IsRedirect() bool
- func (o *CreateScannerBadRequest) IsServerError() bool
- func (o *CreateScannerBadRequest) IsSuccess() bool
- func (o *CreateScannerBadRequest) String() string
- type CreateScannerCreated
- func (o *CreateScannerCreated) Error() string
- func (o *CreateScannerCreated) IsClientError() bool
- func (o *CreateScannerCreated) IsCode(code int) bool
- func (o *CreateScannerCreated) IsRedirect() bool
- func (o *CreateScannerCreated) IsServerError() bool
- func (o *CreateScannerCreated) IsSuccess() bool
- func (o *CreateScannerCreated) String() string
- type CreateScannerForbidden
- func (o *CreateScannerForbidden) Error() string
- func (o *CreateScannerForbidden) GetPayload() *models.Errors
- func (o *CreateScannerForbidden) IsClientError() bool
- func (o *CreateScannerForbidden) IsCode(code int) bool
- func (o *CreateScannerForbidden) IsRedirect() bool
- func (o *CreateScannerForbidden) IsServerError() bool
- func (o *CreateScannerForbidden) IsSuccess() bool
- func (o *CreateScannerForbidden) String() string
- type CreateScannerInternalServerError
- func (o *CreateScannerInternalServerError) Error() string
- func (o *CreateScannerInternalServerError) GetPayload() *models.Errors
- func (o *CreateScannerInternalServerError) IsClientError() bool
- func (o *CreateScannerInternalServerError) IsCode(code int) bool
- func (o *CreateScannerInternalServerError) IsRedirect() bool
- func (o *CreateScannerInternalServerError) IsServerError() bool
- func (o *CreateScannerInternalServerError) IsSuccess() bool
- func (o *CreateScannerInternalServerError) String() string
- 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
- func (o *CreateScannerUnauthorized) Error() string
- func (o *CreateScannerUnauthorized) GetPayload() *models.Errors
- func (o *CreateScannerUnauthorized) IsClientError() bool
- func (o *CreateScannerUnauthorized) IsCode(code int) bool
- func (o *CreateScannerUnauthorized) IsRedirect() bool
- func (o *CreateScannerUnauthorized) IsServerError() bool
- func (o *CreateScannerUnauthorized) IsSuccess() bool
- func (o *CreateScannerUnauthorized) String() string
- type DeleteScannerForbidden
- func (o *DeleteScannerForbidden) Error() string
- func (o *DeleteScannerForbidden) GetPayload() *models.Errors
- func (o *DeleteScannerForbidden) IsClientError() bool
- func (o *DeleteScannerForbidden) IsCode(code int) bool
- func (o *DeleteScannerForbidden) IsRedirect() bool
- func (o *DeleteScannerForbidden) IsServerError() bool
- func (o *DeleteScannerForbidden) IsSuccess() bool
- func (o *DeleteScannerForbidden) String() string
- type DeleteScannerInternalServerError
- func (o *DeleteScannerInternalServerError) Error() string
- func (o *DeleteScannerInternalServerError) GetPayload() *models.Errors
- func (o *DeleteScannerInternalServerError) IsClientError() bool
- func (o *DeleteScannerInternalServerError) IsCode(code int) bool
- func (o *DeleteScannerInternalServerError) IsRedirect() bool
- func (o *DeleteScannerInternalServerError) IsServerError() bool
- func (o *DeleteScannerInternalServerError) IsSuccess() bool
- func (o *DeleteScannerInternalServerError) String() string
- type DeleteScannerNotFound
- func (o *DeleteScannerNotFound) Error() string
- func (o *DeleteScannerNotFound) GetPayload() *models.Errors
- func (o *DeleteScannerNotFound) IsClientError() bool
- func (o *DeleteScannerNotFound) IsCode(code int) bool
- func (o *DeleteScannerNotFound) IsRedirect() bool
- func (o *DeleteScannerNotFound) IsServerError() bool
- func (o *DeleteScannerNotFound) IsSuccess() bool
- func (o *DeleteScannerNotFound) String() string
- type DeleteScannerOK
- func (o *DeleteScannerOK) Error() string
- func (o *DeleteScannerOK) GetPayload() *models.ScannerRegistration
- func (o *DeleteScannerOK) IsClientError() bool
- func (o *DeleteScannerOK) IsCode(code int) bool
- func (o *DeleteScannerOK) IsRedirect() bool
- func (o *DeleteScannerOK) IsServerError() bool
- func (o *DeleteScannerOK) IsSuccess() bool
- func (o *DeleteScannerOK) String() string
- 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
- func (o *DeleteScannerUnauthorized) Error() string
- func (o *DeleteScannerUnauthorized) GetPayload() *models.Errors
- func (o *DeleteScannerUnauthorized) IsClientError() bool
- func (o *DeleteScannerUnauthorized) IsCode(code int) bool
- func (o *DeleteScannerUnauthorized) IsRedirect() bool
- func (o *DeleteScannerUnauthorized) IsServerError() bool
- func (o *DeleteScannerUnauthorized) IsSuccess() bool
- func (o *DeleteScannerUnauthorized) String() string
- type GetScannerForbidden
- func (o *GetScannerForbidden) Error() string
- func (o *GetScannerForbidden) GetPayload() *models.Errors
- func (o *GetScannerForbidden) IsClientError() bool
- func (o *GetScannerForbidden) IsCode(code int) bool
- func (o *GetScannerForbidden) IsRedirect() bool
- func (o *GetScannerForbidden) IsServerError() bool
- func (o *GetScannerForbidden) IsSuccess() bool
- func (o *GetScannerForbidden) String() string
- type GetScannerInternalServerError
- func (o *GetScannerInternalServerError) Error() string
- func (o *GetScannerInternalServerError) GetPayload() *models.Errors
- func (o *GetScannerInternalServerError) IsClientError() bool
- func (o *GetScannerInternalServerError) IsCode(code int) bool
- func (o *GetScannerInternalServerError) IsRedirect() bool
- func (o *GetScannerInternalServerError) IsServerError() bool
- func (o *GetScannerInternalServerError) IsSuccess() bool
- func (o *GetScannerInternalServerError) String() string
- type GetScannerMetadataForbidden
- func (o *GetScannerMetadataForbidden) Error() string
- func (o *GetScannerMetadataForbidden) GetPayload() *models.Errors
- func (o *GetScannerMetadataForbidden) IsClientError() bool
- func (o *GetScannerMetadataForbidden) IsCode(code int) bool
- func (o *GetScannerMetadataForbidden) IsRedirect() bool
- func (o *GetScannerMetadataForbidden) IsServerError() bool
- func (o *GetScannerMetadataForbidden) IsSuccess() bool
- func (o *GetScannerMetadataForbidden) String() string
- type GetScannerMetadataInternalServerError
- func (o *GetScannerMetadataInternalServerError) Error() string
- func (o *GetScannerMetadataInternalServerError) GetPayload() *models.Errors
- func (o *GetScannerMetadataInternalServerError) IsClientError() bool
- func (o *GetScannerMetadataInternalServerError) IsCode(code int) bool
- func (o *GetScannerMetadataInternalServerError) IsRedirect() bool
- func (o *GetScannerMetadataInternalServerError) IsServerError() bool
- func (o *GetScannerMetadataInternalServerError) IsSuccess() bool
- func (o *GetScannerMetadataInternalServerError) String() string
- type GetScannerMetadataOK
- func (o *GetScannerMetadataOK) Error() string
- func (o *GetScannerMetadataOK) GetPayload() *models.ScannerAdapterMetadata
- func (o *GetScannerMetadataOK) IsClientError() bool
- func (o *GetScannerMetadataOK) IsCode(code int) bool
- func (o *GetScannerMetadataOK) IsRedirect() bool
- func (o *GetScannerMetadataOK) IsServerError() bool
- func (o *GetScannerMetadataOK) IsSuccess() bool
- func (o *GetScannerMetadataOK) String() string
- 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
- func (o *GetScannerMetadataUnauthorized) Error() string
- func (o *GetScannerMetadataUnauthorized) GetPayload() *models.Errors
- func (o *GetScannerMetadataUnauthorized) IsClientError() bool
- func (o *GetScannerMetadataUnauthorized) IsCode(code int) bool
- func (o *GetScannerMetadataUnauthorized) IsRedirect() bool
- func (o *GetScannerMetadataUnauthorized) IsServerError() bool
- func (o *GetScannerMetadataUnauthorized) IsSuccess() bool
- func (o *GetScannerMetadataUnauthorized) String() string
- type GetScannerNotFound
- func (o *GetScannerNotFound) Error() string
- func (o *GetScannerNotFound) GetPayload() *models.Errors
- func (o *GetScannerNotFound) IsClientError() bool
- func (o *GetScannerNotFound) IsCode(code int) bool
- func (o *GetScannerNotFound) IsRedirect() bool
- func (o *GetScannerNotFound) IsServerError() bool
- func (o *GetScannerNotFound) IsSuccess() bool
- func (o *GetScannerNotFound) String() string
- type GetScannerOK
- func (o *GetScannerOK) Error() string
- func (o *GetScannerOK) GetPayload() *models.ScannerRegistration
- func (o *GetScannerOK) IsClientError() bool
- func (o *GetScannerOK) IsCode(code int) bool
- func (o *GetScannerOK) IsRedirect() bool
- func (o *GetScannerOK) IsServerError() bool
- func (o *GetScannerOK) IsSuccess() bool
- func (o *GetScannerOK) String() string
- 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
- func (o *GetScannerUnauthorized) Error() string
- func (o *GetScannerUnauthorized) GetPayload() *models.Errors
- func (o *GetScannerUnauthorized) IsClientError() bool
- func (o *GetScannerUnauthorized) IsCode(code int) bool
- func (o *GetScannerUnauthorized) IsRedirect() bool
- func (o *GetScannerUnauthorized) IsServerError() bool
- func (o *GetScannerUnauthorized) IsSuccess() bool
- func (o *GetScannerUnauthorized) String() string
- type ListScannersBadRequest
- func (o *ListScannersBadRequest) Error() string
- func (o *ListScannersBadRequest) GetPayload() *models.Errors
- func (o *ListScannersBadRequest) IsClientError() bool
- func (o *ListScannersBadRequest) IsCode(code int) bool
- func (o *ListScannersBadRequest) IsRedirect() bool
- func (o *ListScannersBadRequest) IsServerError() bool
- func (o *ListScannersBadRequest) IsSuccess() bool
- func (o *ListScannersBadRequest) String() string
- type ListScannersForbidden
- func (o *ListScannersForbidden) Error() string
- func (o *ListScannersForbidden) GetPayload() *models.Errors
- func (o *ListScannersForbidden) IsClientError() bool
- func (o *ListScannersForbidden) IsCode(code int) bool
- func (o *ListScannersForbidden) IsRedirect() bool
- func (o *ListScannersForbidden) IsServerError() bool
- func (o *ListScannersForbidden) IsSuccess() bool
- func (o *ListScannersForbidden) String() string
- type ListScannersInternalServerError
- func (o *ListScannersInternalServerError) Error() string
- func (o *ListScannersInternalServerError) GetPayload() *models.Errors
- func (o *ListScannersInternalServerError) IsClientError() bool
- func (o *ListScannersInternalServerError) IsCode(code int) bool
- func (o *ListScannersInternalServerError) IsRedirect() bool
- func (o *ListScannersInternalServerError) IsServerError() bool
- func (o *ListScannersInternalServerError) IsSuccess() bool
- func (o *ListScannersInternalServerError) String() string
- type ListScannersOK
- func (o *ListScannersOK) Error() string
- func (o *ListScannersOK) GetPayload() []*models.ScannerRegistration
- func (o *ListScannersOK) IsClientError() bool
- func (o *ListScannersOK) IsCode(code int) bool
- func (o *ListScannersOK) IsRedirect() bool
- func (o *ListScannersOK) IsServerError() bool
- func (o *ListScannersOK) IsSuccess() bool
- func (o *ListScannersOK) String() string
- 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
- func (o *ListScannersUnauthorized) Error() string
- func (o *ListScannersUnauthorized) GetPayload() *models.Errors
- func (o *ListScannersUnauthorized) IsClientError() bool
- func (o *ListScannersUnauthorized) IsCode(code int) bool
- func (o *ListScannersUnauthorized) IsRedirect() bool
- func (o *ListScannersUnauthorized) IsServerError() bool
- func (o *ListScannersUnauthorized) IsSuccess() bool
- func (o *ListScannersUnauthorized) String() string
- type PingScannerBadRequest
- func (o *PingScannerBadRequest) Error() string
- func (o *PingScannerBadRequest) GetPayload() *models.Errors
- func (o *PingScannerBadRequest) IsClientError() bool
- func (o *PingScannerBadRequest) IsCode(code int) bool
- func (o *PingScannerBadRequest) IsRedirect() bool
- func (o *PingScannerBadRequest) IsServerError() bool
- func (o *PingScannerBadRequest) IsSuccess() bool
- func (o *PingScannerBadRequest) String() string
- type PingScannerForbidden
- func (o *PingScannerForbidden) Error() string
- func (o *PingScannerForbidden) GetPayload() *models.Errors
- func (o *PingScannerForbidden) IsClientError() bool
- func (o *PingScannerForbidden) IsCode(code int) bool
- func (o *PingScannerForbidden) IsRedirect() bool
- func (o *PingScannerForbidden) IsServerError() bool
- func (o *PingScannerForbidden) IsSuccess() bool
- func (o *PingScannerForbidden) String() string
- type PingScannerInternalServerError
- func (o *PingScannerInternalServerError) Error() string
- func (o *PingScannerInternalServerError) GetPayload() *models.Errors
- func (o *PingScannerInternalServerError) IsClientError() bool
- func (o *PingScannerInternalServerError) IsCode(code int) bool
- func (o *PingScannerInternalServerError) IsRedirect() bool
- func (o *PingScannerInternalServerError) IsServerError() bool
- func (o *PingScannerInternalServerError) IsSuccess() bool
- func (o *PingScannerInternalServerError) String() string
- 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
- func (o *PingScannerUnauthorized) Error() string
- func (o *PingScannerUnauthorized) GetPayload() *models.Errors
- func (o *PingScannerUnauthorized) IsClientError() bool
- func (o *PingScannerUnauthorized) IsCode(code int) bool
- func (o *PingScannerUnauthorized) IsRedirect() bool
- func (o *PingScannerUnauthorized) IsServerError() bool
- func (o *PingScannerUnauthorized) IsSuccess() bool
- func (o *PingScannerUnauthorized) String() string
- type SetScannerAsDefaultForbidden
- func (o *SetScannerAsDefaultForbidden) Error() string
- func (o *SetScannerAsDefaultForbidden) GetPayload() *models.Errors
- func (o *SetScannerAsDefaultForbidden) IsClientError() bool
- func (o *SetScannerAsDefaultForbidden) IsCode(code int) bool
- func (o *SetScannerAsDefaultForbidden) IsRedirect() bool
- func (o *SetScannerAsDefaultForbidden) IsServerError() bool
- func (o *SetScannerAsDefaultForbidden) IsSuccess() bool
- func (o *SetScannerAsDefaultForbidden) String() string
- type SetScannerAsDefaultInternalServerError
- func (o *SetScannerAsDefaultInternalServerError) Error() string
- func (o *SetScannerAsDefaultInternalServerError) GetPayload() *models.Errors
- func (o *SetScannerAsDefaultInternalServerError) IsClientError() bool
- func (o *SetScannerAsDefaultInternalServerError) IsCode(code int) bool
- func (o *SetScannerAsDefaultInternalServerError) IsRedirect() bool
- func (o *SetScannerAsDefaultInternalServerError) IsServerError() bool
- func (o *SetScannerAsDefaultInternalServerError) IsSuccess() bool
- func (o *SetScannerAsDefaultInternalServerError) String() string
- type SetScannerAsDefaultOK
- func (o *SetScannerAsDefaultOK) Error() string
- func (o *SetScannerAsDefaultOK) IsClientError() bool
- func (o *SetScannerAsDefaultOK) IsCode(code int) bool
- func (o *SetScannerAsDefaultOK) IsRedirect() bool
- func (o *SetScannerAsDefaultOK) IsServerError() bool
- func (o *SetScannerAsDefaultOK) IsSuccess() bool
- func (o *SetScannerAsDefaultOK) String() string
- 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
- func (o *SetScannerAsDefaultUnauthorized) Error() string
- func (o *SetScannerAsDefaultUnauthorized) GetPayload() *models.Errors
- func (o *SetScannerAsDefaultUnauthorized) IsClientError() bool
- func (o *SetScannerAsDefaultUnauthorized) IsCode(code int) bool
- func (o *SetScannerAsDefaultUnauthorized) IsRedirect() bool
- func (o *SetScannerAsDefaultUnauthorized) IsServerError() bool
- func (o *SetScannerAsDefaultUnauthorized) IsSuccess() bool
- func (o *SetScannerAsDefaultUnauthorized) String() string
- type UpdateScannerForbidden
- func (o *UpdateScannerForbidden) Error() string
- func (o *UpdateScannerForbidden) GetPayload() *models.Errors
- func (o *UpdateScannerForbidden) IsClientError() bool
- func (o *UpdateScannerForbidden) IsCode(code int) bool
- func (o *UpdateScannerForbidden) IsRedirect() bool
- func (o *UpdateScannerForbidden) IsServerError() bool
- func (o *UpdateScannerForbidden) IsSuccess() bool
- func (o *UpdateScannerForbidden) String() string
- type UpdateScannerInternalServerError
- func (o *UpdateScannerInternalServerError) Error() string
- func (o *UpdateScannerInternalServerError) GetPayload() *models.Errors
- func (o *UpdateScannerInternalServerError) IsClientError() bool
- func (o *UpdateScannerInternalServerError) IsCode(code int) bool
- func (o *UpdateScannerInternalServerError) IsRedirect() bool
- func (o *UpdateScannerInternalServerError) IsServerError() bool
- func (o *UpdateScannerInternalServerError) IsSuccess() bool
- func (o *UpdateScannerInternalServerError) String() string
- type UpdateScannerNotFound
- func (o *UpdateScannerNotFound) Error() string
- func (o *UpdateScannerNotFound) GetPayload() *models.Errors
- func (o *UpdateScannerNotFound) IsClientError() bool
- func (o *UpdateScannerNotFound) IsCode(code int) bool
- func (o *UpdateScannerNotFound) IsRedirect() bool
- func (o *UpdateScannerNotFound) IsServerError() bool
- func (o *UpdateScannerNotFound) IsSuccess() bool
- func (o *UpdateScannerNotFound) String() string
- type UpdateScannerOK
- func (o *UpdateScannerOK) Error() string
- func (o *UpdateScannerOK) IsClientError() bool
- func (o *UpdateScannerOK) IsCode(code int) bool
- func (o *UpdateScannerOK) IsRedirect() bool
- func (o *UpdateScannerOK) IsServerError() bool
- func (o *UpdateScannerOK) IsSuccess() bool
- func (o *UpdateScannerOK) String() string
- 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
- func (o *UpdateScannerUnauthorized) Error() string
- func (o *UpdateScannerUnauthorized) GetPayload() *models.Errors
- func (o *UpdateScannerUnauthorized) IsClientError() bool
- func (o *UpdateScannerUnauthorized) IsCode(code int) bool
- func (o *UpdateScannerUnauthorized) IsRedirect() bool
- func (o *UpdateScannerUnauthorized) IsServerError() bool
- func (o *UpdateScannerUnauthorized) IsSuccess() bool
- func (o *UpdateScannerUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* CreateScanner creates a scanner registration Creats a new scanner registration with the given data. */ CreateScanner(ctx context.Context, params *CreateScannerParams) (*CreateScannerCreated, error) /* DeleteScanner deletes a scanner registration Deletes the specified scanner registration. */ DeleteScanner(ctx context.Context, params *DeleteScannerParams) (*DeleteScannerOK, error) /* GetScanner gets a scanner registration details Retruns the details of the specified scanner registration. */ GetScanner(ctx context.Context, params *GetScannerParams) (*GetScannerOK, error) /* GetScannerMetadata gets the metadata of the specified scanner registration Get the metadata of the specified scanner registration, including the capabilities and customized properties. */ GetScannerMetadata(ctx context.Context, params *GetScannerMetadataParams) (*GetScannerMetadataOK, error) /* ListScanners lists scanner registrations Returns a list of currently configured scanner registrations. */ ListScanners(ctx context.Context, params *ListScannersParams) (*ListScannersOK, error) /* PingScanner tests scanner registration settings Pings scanner adapter to test endpoint URL and authorization settings. */ PingScanner(ctx context.Context, params *PingScannerParams) (*PingScannerOK, error) /* SetScannerAsDefault sets system default scanner registration Set the specified scanner registration as the system default one. */ SetScannerAsDefault(ctx context.Context, params *SetScannerAsDefaultParams) (*SetScannerAsDefaultOK, error) /* UpdateScanner updates a scanner registration Updates the specified scanner registration. */ UpdateScanner(ctx context.Context, params *UpdateScannerParams) (*UpdateScannerOK, error) }
API is the interface of the scanner client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for scanner API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new scanner API client.
func (*Client) CreateScanner ¶
func (a *Client) CreateScanner(ctx context.Context, params *CreateScannerParams) (*CreateScannerCreated, error)
CreateScanner creates a scanner registration
Creats a new scanner registration with the given data.
func (*Client) DeleteScanner ¶
func (a *Client) DeleteScanner(ctx context.Context, params *DeleteScannerParams) (*DeleteScannerOK, error)
DeleteScanner deletes a scanner registration
Deletes the specified scanner registration.
func (*Client) GetScanner ¶
func (a *Client) GetScanner(ctx context.Context, params *GetScannerParams) (*GetScannerOK, error)
GetScanner gets a scanner registration details
Retruns the details of the specified scanner registration.
func (*Client) GetScannerMetadata ¶
func (a *Client) GetScannerMetadata(ctx context.Context, params *GetScannerMetadataParams) (*GetScannerMetadataOK, error)
GetScannerMetadata gets the metadata of the specified scanner registration
Get the metadata of the specified scanner registration, including the capabilities and customized properties.
func (*Client) ListScanners ¶
func (a *Client) ListScanners(ctx context.Context, params *ListScannersParams) (*ListScannersOK, error)
ListScanners lists scanner registrations
Returns a list of currently configured scanner registrations.
func (*Client) PingScanner ¶
func (a *Client) PingScanner(ctx context.Context, params *PingScannerParams) (*PingScannerOK, error)
PingScanner tests scanner registration settings
Pings scanner adapter to test endpoint URL and authorization settings.
func (*Client) SetScannerAsDefault ¶
func (a *Client) SetScannerAsDefault(ctx context.Context, params *SetScannerAsDefaultParams) (*SetScannerAsDefaultOK, error)
SetScannerAsDefault sets system default scanner registration
Set the specified scanner registration as the system default one.
func (*Client) UpdateScanner ¶
func (a *Client) UpdateScanner(ctx context.Context, params *UpdateScannerParams) (*UpdateScannerOK, error)
UpdateScanner updates a scanner registration
Updates the specified scanner registration.
type CreateScannerBadRequest ¶
type CreateScannerBadRequest struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
CreateScannerBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateScannerBadRequest ¶
func NewCreateScannerBadRequest() *CreateScannerBadRequest
NewCreateScannerBadRequest creates a CreateScannerBadRequest with default headers values
func (*CreateScannerBadRequest) Error ¶
func (o *CreateScannerBadRequest) Error() string
func (*CreateScannerBadRequest) GetPayload ¶
func (o *CreateScannerBadRequest) GetPayload() *models.Errors
func (*CreateScannerBadRequest) IsClientError ¶
func (o *CreateScannerBadRequest) IsClientError() bool
IsClientError returns true when this create scanner bad request response has a 4xx status code
func (*CreateScannerBadRequest) IsCode ¶
func (o *CreateScannerBadRequest) IsCode(code int) bool
IsCode returns true when this create scanner bad request response a status code equal to that given
func (*CreateScannerBadRequest) IsRedirect ¶
func (o *CreateScannerBadRequest) IsRedirect() bool
IsRedirect returns true when this create scanner bad request response has a 3xx status code
func (*CreateScannerBadRequest) IsServerError ¶
func (o *CreateScannerBadRequest) IsServerError() bool
IsServerError returns true when this create scanner bad request response has a 5xx status code
func (*CreateScannerBadRequest) IsSuccess ¶
func (o *CreateScannerBadRequest) IsSuccess() bool
IsSuccess returns true when this create scanner bad request response has a 2xx status code
func (*CreateScannerBadRequest) String ¶
func (o *CreateScannerBadRequest) String() string
type CreateScannerCreated ¶
type CreateScannerCreated struct { /* The URL of the created resource */ Location string }
CreateScannerCreated describes a response with status code 201, with default header values.
Created successfully
func NewCreateScannerCreated ¶
func NewCreateScannerCreated() *CreateScannerCreated
NewCreateScannerCreated creates a CreateScannerCreated with default headers values
func (*CreateScannerCreated) Error ¶
func (o *CreateScannerCreated) Error() string
func (*CreateScannerCreated) IsClientError ¶
func (o *CreateScannerCreated) IsClientError() bool
IsClientError returns true when this create scanner created response has a 4xx status code
func (*CreateScannerCreated) IsCode ¶
func (o *CreateScannerCreated) IsCode(code int) bool
IsCode returns true when this create scanner created response a status code equal to that given
func (*CreateScannerCreated) IsRedirect ¶
func (o *CreateScannerCreated) IsRedirect() bool
IsRedirect returns true when this create scanner created response has a 3xx status code
func (*CreateScannerCreated) IsServerError ¶
func (o *CreateScannerCreated) IsServerError() bool
IsServerError returns true when this create scanner created response has a 5xx status code
func (*CreateScannerCreated) IsSuccess ¶
func (o *CreateScannerCreated) IsSuccess() bool
IsSuccess returns true when this create scanner created response has a 2xx status code
func (*CreateScannerCreated) String ¶
func (o *CreateScannerCreated) String() string
type CreateScannerForbidden ¶
type CreateScannerForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
CreateScannerForbidden describes a response with status code 403, with default header values.
Forbidden
func NewCreateScannerForbidden ¶
func NewCreateScannerForbidden() *CreateScannerForbidden
NewCreateScannerForbidden creates a CreateScannerForbidden with default headers values
func (*CreateScannerForbidden) Error ¶
func (o *CreateScannerForbidden) Error() string
func (*CreateScannerForbidden) GetPayload ¶
func (o *CreateScannerForbidden) GetPayload() *models.Errors
func (*CreateScannerForbidden) IsClientError ¶
func (o *CreateScannerForbidden) IsClientError() bool
IsClientError returns true when this create scanner forbidden response has a 4xx status code
func (*CreateScannerForbidden) IsCode ¶
func (o *CreateScannerForbidden) IsCode(code int) bool
IsCode returns true when this create scanner forbidden response a status code equal to that given
func (*CreateScannerForbidden) IsRedirect ¶
func (o *CreateScannerForbidden) IsRedirect() bool
IsRedirect returns true when this create scanner forbidden response has a 3xx status code
func (*CreateScannerForbidden) IsServerError ¶
func (o *CreateScannerForbidden) IsServerError() bool
IsServerError returns true when this create scanner forbidden response has a 5xx status code
func (*CreateScannerForbidden) IsSuccess ¶
func (o *CreateScannerForbidden) IsSuccess() bool
IsSuccess returns true when this create scanner forbidden response has a 2xx status code
func (*CreateScannerForbidden) String ¶
func (o *CreateScannerForbidden) String() string
type CreateScannerInternalServerError ¶
type CreateScannerInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
CreateScannerInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewCreateScannerInternalServerError ¶
func NewCreateScannerInternalServerError() *CreateScannerInternalServerError
NewCreateScannerInternalServerError creates a CreateScannerInternalServerError with default headers values
func (*CreateScannerInternalServerError) Error ¶
func (o *CreateScannerInternalServerError) Error() string
func (*CreateScannerInternalServerError) GetPayload ¶
func (o *CreateScannerInternalServerError) GetPayload() *models.Errors
func (*CreateScannerInternalServerError) IsClientError ¶
func (o *CreateScannerInternalServerError) IsClientError() bool
IsClientError returns true when this create scanner internal server error response has a 4xx status code
func (*CreateScannerInternalServerError) IsCode ¶
func (o *CreateScannerInternalServerError) IsCode(code int) bool
IsCode returns true when this create scanner internal server error response a status code equal to that given
func (*CreateScannerInternalServerError) IsRedirect ¶
func (o *CreateScannerInternalServerError) IsRedirect() bool
IsRedirect returns true when this create scanner internal server error response has a 3xx status code
func (*CreateScannerInternalServerError) IsServerError ¶
func (o *CreateScannerInternalServerError) IsServerError() bool
IsServerError returns true when this create scanner internal server error response has a 5xx status code
func (*CreateScannerInternalServerError) IsSuccess ¶
func (o *CreateScannerInternalServerError) IsSuccess() bool
IsSuccess returns true when this create scanner internal server error response has a 2xx status code
func (*CreateScannerInternalServerError) String ¶
func (o *CreateScannerInternalServerError) String() string
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
func (*CreateScannerUnauthorized) IsClientError ¶
func (o *CreateScannerUnauthorized) IsClientError() bool
IsClientError returns true when this create scanner unauthorized response has a 4xx status code
func (*CreateScannerUnauthorized) IsCode ¶
func (o *CreateScannerUnauthorized) IsCode(code int) bool
IsCode returns true when this create scanner unauthorized response a status code equal to that given
func (*CreateScannerUnauthorized) IsRedirect ¶
func (o *CreateScannerUnauthorized) IsRedirect() bool
IsRedirect returns true when this create scanner unauthorized response has a 3xx status code
func (*CreateScannerUnauthorized) IsServerError ¶
func (o *CreateScannerUnauthorized) IsServerError() bool
IsServerError returns true when this create scanner unauthorized response has a 5xx status code
func (*CreateScannerUnauthorized) IsSuccess ¶
func (o *CreateScannerUnauthorized) IsSuccess() bool
IsSuccess returns true when this create scanner unauthorized response has a 2xx status code
func (*CreateScannerUnauthorized) String ¶
func (o *CreateScannerUnauthorized) String() string
type DeleteScannerForbidden ¶
type DeleteScannerForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
DeleteScannerForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeleteScannerForbidden ¶
func NewDeleteScannerForbidden() *DeleteScannerForbidden
NewDeleteScannerForbidden creates a DeleteScannerForbidden with default headers values
func (*DeleteScannerForbidden) Error ¶
func (o *DeleteScannerForbidden) Error() string
func (*DeleteScannerForbidden) GetPayload ¶
func (o *DeleteScannerForbidden) GetPayload() *models.Errors
func (*DeleteScannerForbidden) IsClientError ¶
func (o *DeleteScannerForbidden) IsClientError() bool
IsClientError returns true when this delete scanner forbidden response has a 4xx status code
func (*DeleteScannerForbidden) IsCode ¶
func (o *DeleteScannerForbidden) IsCode(code int) bool
IsCode returns true when this delete scanner forbidden response a status code equal to that given
func (*DeleteScannerForbidden) IsRedirect ¶
func (o *DeleteScannerForbidden) IsRedirect() bool
IsRedirect returns true when this delete scanner forbidden response has a 3xx status code
func (*DeleteScannerForbidden) IsServerError ¶
func (o *DeleteScannerForbidden) IsServerError() bool
IsServerError returns true when this delete scanner forbidden response has a 5xx status code
func (*DeleteScannerForbidden) IsSuccess ¶
func (o *DeleteScannerForbidden) IsSuccess() bool
IsSuccess returns true when this delete scanner forbidden response has a 2xx status code
func (*DeleteScannerForbidden) String ¶
func (o *DeleteScannerForbidden) String() string
type DeleteScannerInternalServerError ¶
type DeleteScannerInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
DeleteScannerInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewDeleteScannerInternalServerError ¶
func NewDeleteScannerInternalServerError() *DeleteScannerInternalServerError
NewDeleteScannerInternalServerError creates a DeleteScannerInternalServerError with default headers values
func (*DeleteScannerInternalServerError) Error ¶
func (o *DeleteScannerInternalServerError) Error() string
func (*DeleteScannerInternalServerError) GetPayload ¶
func (o *DeleteScannerInternalServerError) GetPayload() *models.Errors
func (*DeleteScannerInternalServerError) IsClientError ¶
func (o *DeleteScannerInternalServerError) IsClientError() bool
IsClientError returns true when this delete scanner internal server error response has a 4xx status code
func (*DeleteScannerInternalServerError) IsCode ¶
func (o *DeleteScannerInternalServerError) IsCode(code int) bool
IsCode returns true when this delete scanner internal server error response a status code equal to that given
func (*DeleteScannerInternalServerError) IsRedirect ¶
func (o *DeleteScannerInternalServerError) IsRedirect() bool
IsRedirect returns true when this delete scanner internal server error response has a 3xx status code
func (*DeleteScannerInternalServerError) IsServerError ¶
func (o *DeleteScannerInternalServerError) IsServerError() bool
IsServerError returns true when this delete scanner internal server error response has a 5xx status code
func (*DeleteScannerInternalServerError) IsSuccess ¶
func (o *DeleteScannerInternalServerError) IsSuccess() bool
IsSuccess returns true when this delete scanner internal server error response has a 2xx status code
func (*DeleteScannerInternalServerError) String ¶
func (o *DeleteScannerInternalServerError) String() string
type DeleteScannerNotFound ¶
type DeleteScannerNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
DeleteScannerNotFound describes a response with status code 404, with default header values.
Not found
func NewDeleteScannerNotFound ¶
func NewDeleteScannerNotFound() *DeleteScannerNotFound
NewDeleteScannerNotFound creates a DeleteScannerNotFound with default headers values
func (*DeleteScannerNotFound) Error ¶
func (o *DeleteScannerNotFound) Error() string
func (*DeleteScannerNotFound) GetPayload ¶
func (o *DeleteScannerNotFound) GetPayload() *models.Errors
func (*DeleteScannerNotFound) IsClientError ¶
func (o *DeleteScannerNotFound) IsClientError() bool
IsClientError returns true when this delete scanner not found response has a 4xx status code
func (*DeleteScannerNotFound) IsCode ¶
func (o *DeleteScannerNotFound) IsCode(code int) bool
IsCode returns true when this delete scanner not found response a status code equal to that given
func (*DeleteScannerNotFound) IsRedirect ¶
func (o *DeleteScannerNotFound) IsRedirect() bool
IsRedirect returns true when this delete scanner not found response has a 3xx status code
func (*DeleteScannerNotFound) IsServerError ¶
func (o *DeleteScannerNotFound) IsServerError() bool
IsServerError returns true when this delete scanner not found response has a 5xx status code
func (*DeleteScannerNotFound) IsSuccess ¶
func (o *DeleteScannerNotFound) IsSuccess() bool
IsSuccess returns true when this delete scanner not found response has a 2xx status code
func (*DeleteScannerNotFound) String ¶
func (o *DeleteScannerNotFound) String() string
type DeleteScannerOK ¶
type DeleteScannerOK struct {
Payload *models.ScannerRegistration
}
DeleteScannerOK describes a response with status code 200, with default header values.
Deleted successfully and return the deleted registration
func NewDeleteScannerOK ¶
func NewDeleteScannerOK() *DeleteScannerOK
NewDeleteScannerOK creates a DeleteScannerOK with default headers values
func (*DeleteScannerOK) Error ¶
func (o *DeleteScannerOK) Error() string
func (*DeleteScannerOK) GetPayload ¶
func (o *DeleteScannerOK) GetPayload() *models.ScannerRegistration
func (*DeleteScannerOK) IsClientError ¶
func (o *DeleteScannerOK) IsClientError() bool
IsClientError returns true when this delete scanner o k response has a 4xx status code
func (*DeleteScannerOK) IsCode ¶
func (o *DeleteScannerOK) IsCode(code int) bool
IsCode returns true when this delete scanner o k response a status code equal to that given
func (*DeleteScannerOK) IsRedirect ¶
func (o *DeleteScannerOK) IsRedirect() bool
IsRedirect returns true when this delete scanner o k response has a 3xx status code
func (*DeleteScannerOK) IsServerError ¶
func (o *DeleteScannerOK) IsServerError() bool
IsServerError returns true when this delete scanner o k response has a 5xx status code
func (*DeleteScannerOK) IsSuccess ¶
func (o *DeleteScannerOK) IsSuccess() bool
IsSuccess returns true when this delete scanner o k response has a 2xx status code
func (*DeleteScannerOK) String ¶
func (o *DeleteScannerOK) String() string
type DeleteScannerParams ¶
type DeleteScannerParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* RegistrationID. The scanner registration identifier. */ RegistrationID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteScannerParams contains all the parameters to send to the API endpoint
for the delete scanner operation. Typically these are written to a http.Request.
func NewDeleteScannerParams ¶
func NewDeleteScannerParams() *DeleteScannerParams
NewDeleteScannerParams creates a new DeleteScannerParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteScannerParamsWithContext ¶
func NewDeleteScannerParamsWithContext(ctx context.Context) *DeleteScannerParams
NewDeleteScannerParamsWithContext creates a new DeleteScannerParams object with the ability to set a context for a request.
func NewDeleteScannerParamsWithHTTPClient ¶
func NewDeleteScannerParamsWithHTTPClient(client *http.Client) *DeleteScannerParams
NewDeleteScannerParamsWithHTTPClient creates a new DeleteScannerParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteScannerParamsWithTimeout ¶
func NewDeleteScannerParamsWithTimeout(timeout time.Duration) *DeleteScannerParams
NewDeleteScannerParamsWithTimeout creates a new DeleteScannerParams object with the ability to set a timeout on a request.
func (*DeleteScannerParams) SetContext ¶
func (o *DeleteScannerParams) SetContext(ctx context.Context)
SetContext adds the context to the delete scanner params
func (*DeleteScannerParams) SetDefaults ¶
func (o *DeleteScannerParams) SetDefaults()
SetDefaults hydrates default values in the delete scanner params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteScannerParams) SetHTTPClient ¶
func (o *DeleteScannerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete scanner params
func (*DeleteScannerParams) SetRegistrationID ¶
func (o *DeleteScannerParams) SetRegistrationID(registrationID string)
SetRegistrationID adds the registrationId to the delete scanner params
func (*DeleteScannerParams) SetTimeout ¶
func (o *DeleteScannerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete scanner params
func (*DeleteScannerParams) SetXRequestID ¶
func (o *DeleteScannerParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the delete scanner params
func (*DeleteScannerParams) WithContext ¶
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
func (*DeleteScannerUnauthorized) IsClientError ¶
func (o *DeleteScannerUnauthorized) IsClientError() bool
IsClientError returns true when this delete scanner unauthorized response has a 4xx status code
func (*DeleteScannerUnauthorized) IsCode ¶
func (o *DeleteScannerUnauthorized) IsCode(code int) bool
IsCode returns true when this delete scanner unauthorized response a status code equal to that given
func (*DeleteScannerUnauthorized) IsRedirect ¶
func (o *DeleteScannerUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete scanner unauthorized response has a 3xx status code
func (*DeleteScannerUnauthorized) IsServerError ¶
func (o *DeleteScannerUnauthorized) IsServerError() bool
IsServerError returns true when this delete scanner unauthorized response has a 5xx status code
func (*DeleteScannerUnauthorized) IsSuccess ¶
func (o *DeleteScannerUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete scanner unauthorized response has a 2xx status code
func (*DeleteScannerUnauthorized) String ¶
func (o *DeleteScannerUnauthorized) String() string
type GetScannerForbidden ¶
type GetScannerForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetScannerForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetScannerForbidden ¶
func NewGetScannerForbidden() *GetScannerForbidden
NewGetScannerForbidden creates a GetScannerForbidden with default headers values
func (*GetScannerForbidden) Error ¶
func (o *GetScannerForbidden) Error() string
func (*GetScannerForbidden) GetPayload ¶
func (o *GetScannerForbidden) GetPayload() *models.Errors
func (*GetScannerForbidden) IsClientError ¶
func (o *GetScannerForbidden) IsClientError() bool
IsClientError returns true when this get scanner forbidden response has a 4xx status code
func (*GetScannerForbidden) IsCode ¶
func (o *GetScannerForbidden) IsCode(code int) bool
IsCode returns true when this get scanner forbidden response a status code equal to that given
func (*GetScannerForbidden) IsRedirect ¶
func (o *GetScannerForbidden) IsRedirect() bool
IsRedirect returns true when this get scanner forbidden response has a 3xx status code
func (*GetScannerForbidden) IsServerError ¶
func (o *GetScannerForbidden) IsServerError() bool
IsServerError returns true when this get scanner forbidden response has a 5xx status code
func (*GetScannerForbidden) IsSuccess ¶
func (o *GetScannerForbidden) IsSuccess() bool
IsSuccess returns true when this get scanner forbidden response has a 2xx status code
func (*GetScannerForbidden) String ¶
func (o *GetScannerForbidden) String() string
type GetScannerInternalServerError ¶
type GetScannerInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetScannerInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewGetScannerInternalServerError ¶
func NewGetScannerInternalServerError() *GetScannerInternalServerError
NewGetScannerInternalServerError creates a GetScannerInternalServerError with default headers values
func (*GetScannerInternalServerError) Error ¶
func (o *GetScannerInternalServerError) Error() string
func (*GetScannerInternalServerError) GetPayload ¶
func (o *GetScannerInternalServerError) GetPayload() *models.Errors
func (*GetScannerInternalServerError) IsClientError ¶
func (o *GetScannerInternalServerError) IsClientError() bool
IsClientError returns true when this get scanner internal server error response has a 4xx status code
func (*GetScannerInternalServerError) IsCode ¶
func (o *GetScannerInternalServerError) IsCode(code int) bool
IsCode returns true when this get scanner internal server error response a status code equal to that given
func (*GetScannerInternalServerError) IsRedirect ¶
func (o *GetScannerInternalServerError) IsRedirect() bool
IsRedirect returns true when this get scanner internal server error response has a 3xx status code
func (*GetScannerInternalServerError) IsServerError ¶
func (o *GetScannerInternalServerError) IsServerError() bool
IsServerError returns true when this get scanner internal server error response has a 5xx status code
func (*GetScannerInternalServerError) IsSuccess ¶
func (o *GetScannerInternalServerError) IsSuccess() bool
IsSuccess returns true when this get scanner internal server error response has a 2xx status code
func (*GetScannerInternalServerError) String ¶
func (o *GetScannerInternalServerError) String() string
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
func (*GetScannerMetadataForbidden) IsClientError ¶
func (o *GetScannerMetadataForbidden) IsClientError() bool
IsClientError returns true when this get scanner metadata forbidden response has a 4xx status code
func (*GetScannerMetadataForbidden) IsCode ¶
func (o *GetScannerMetadataForbidden) IsCode(code int) bool
IsCode returns true when this get scanner metadata forbidden response a status code equal to that given
func (*GetScannerMetadataForbidden) IsRedirect ¶
func (o *GetScannerMetadataForbidden) IsRedirect() bool
IsRedirect returns true when this get scanner metadata forbidden response has a 3xx status code
func (*GetScannerMetadataForbidden) IsServerError ¶
func (o *GetScannerMetadataForbidden) IsServerError() bool
IsServerError returns true when this get scanner metadata forbidden response has a 5xx status code
func (*GetScannerMetadataForbidden) IsSuccess ¶
func (o *GetScannerMetadataForbidden) IsSuccess() bool
IsSuccess returns true when this get scanner metadata forbidden response has a 2xx status code
func (*GetScannerMetadataForbidden) String ¶
func (o *GetScannerMetadataForbidden) String() string
type GetScannerMetadataInternalServerError ¶
type GetScannerMetadataInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetScannerMetadataInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewGetScannerMetadataInternalServerError ¶
func NewGetScannerMetadataInternalServerError() *GetScannerMetadataInternalServerError
NewGetScannerMetadataInternalServerError creates a GetScannerMetadataInternalServerError with default headers values
func (*GetScannerMetadataInternalServerError) Error ¶
func (o *GetScannerMetadataInternalServerError) Error() string
func (*GetScannerMetadataInternalServerError) GetPayload ¶
func (o *GetScannerMetadataInternalServerError) GetPayload() *models.Errors
func (*GetScannerMetadataInternalServerError) IsClientError ¶
func (o *GetScannerMetadataInternalServerError) IsClientError() bool
IsClientError returns true when this get scanner metadata internal server error response has a 4xx status code
func (*GetScannerMetadataInternalServerError) IsCode ¶
func (o *GetScannerMetadataInternalServerError) IsCode(code int) bool
IsCode returns true when this get scanner metadata internal server error response a status code equal to that given
func (*GetScannerMetadataInternalServerError) IsRedirect ¶
func (o *GetScannerMetadataInternalServerError) IsRedirect() bool
IsRedirect returns true when this get scanner metadata internal server error response has a 3xx status code
func (*GetScannerMetadataInternalServerError) IsServerError ¶
func (o *GetScannerMetadataInternalServerError) IsServerError() bool
IsServerError returns true when this get scanner metadata internal server error response has a 5xx status code
func (*GetScannerMetadataInternalServerError) IsSuccess ¶
func (o *GetScannerMetadataInternalServerError) IsSuccess() bool
IsSuccess returns true when this get scanner metadata internal server error response has a 2xx status code
func (*GetScannerMetadataInternalServerError) String ¶
func (o *GetScannerMetadataInternalServerError) String() string
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
func (*GetScannerMetadataOK) IsClientError ¶
func (o *GetScannerMetadataOK) IsClientError() bool
IsClientError returns true when this get scanner metadata o k response has a 4xx status code
func (*GetScannerMetadataOK) IsCode ¶
func (o *GetScannerMetadataOK) IsCode(code int) bool
IsCode returns true when this get scanner metadata o k response a status code equal to that given
func (*GetScannerMetadataOK) IsRedirect ¶
func (o *GetScannerMetadataOK) IsRedirect() bool
IsRedirect returns true when this get scanner metadata o k response has a 3xx status code
func (*GetScannerMetadataOK) IsServerError ¶
func (o *GetScannerMetadataOK) IsServerError() bool
IsServerError returns true when this get scanner metadata o k response has a 5xx status code
func (*GetScannerMetadataOK) IsSuccess ¶
func (o *GetScannerMetadataOK) IsSuccess() bool
IsSuccess returns true when this get scanner metadata o k response has a 2xx status code
func (*GetScannerMetadataOK) String ¶
func (o *GetScannerMetadataOK) String() string
type GetScannerMetadataParams ¶
type GetScannerMetadataParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* RegistrationID. The scanner registration identifier. */ RegistrationID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetScannerMetadataParams contains all the parameters to send to the API endpoint
for the get scanner metadata operation. Typically these are written to a http.Request.
func NewGetScannerMetadataParams ¶
func NewGetScannerMetadataParams() *GetScannerMetadataParams
NewGetScannerMetadataParams creates a new GetScannerMetadataParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetScannerMetadataParamsWithContext ¶
func NewGetScannerMetadataParamsWithContext(ctx context.Context) *GetScannerMetadataParams
NewGetScannerMetadataParamsWithContext creates a new GetScannerMetadataParams object with the ability to set a context for a request.
func NewGetScannerMetadataParamsWithHTTPClient ¶
func NewGetScannerMetadataParamsWithHTTPClient(client *http.Client) *GetScannerMetadataParams
NewGetScannerMetadataParamsWithHTTPClient creates a new GetScannerMetadataParams object with the ability to set a custom HTTPClient for a request.
func NewGetScannerMetadataParamsWithTimeout ¶
func NewGetScannerMetadataParamsWithTimeout(timeout time.Duration) *GetScannerMetadataParams
NewGetScannerMetadataParamsWithTimeout creates a new GetScannerMetadataParams object with the ability to set a timeout on a request.
func (*GetScannerMetadataParams) SetContext ¶
func (o *GetScannerMetadataParams) SetContext(ctx context.Context)
SetContext adds the context to the get scanner metadata params
func (*GetScannerMetadataParams) SetDefaults ¶
func (o *GetScannerMetadataParams) SetDefaults()
SetDefaults hydrates default values in the get scanner metadata params (not the query body).
All values with no default are reset to their zero value.
func (*GetScannerMetadataParams) SetHTTPClient ¶
func (o *GetScannerMetadataParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get scanner metadata params
func (*GetScannerMetadataParams) SetRegistrationID ¶
func (o *GetScannerMetadataParams) SetRegistrationID(registrationID string)
SetRegistrationID adds the registrationId to the get scanner metadata params
func (*GetScannerMetadataParams) SetTimeout ¶
func (o *GetScannerMetadataParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get scanner metadata params
func (*GetScannerMetadataParams) SetXRequestID ¶
func (o *GetScannerMetadataParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get scanner metadata params
func (*GetScannerMetadataParams) WithContext ¶
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
func (*GetScannerMetadataUnauthorized) IsClientError ¶
func (o *GetScannerMetadataUnauthorized) IsClientError() bool
IsClientError returns true when this get scanner metadata unauthorized response has a 4xx status code
func (*GetScannerMetadataUnauthorized) IsCode ¶
func (o *GetScannerMetadataUnauthorized) IsCode(code int) bool
IsCode returns true when this get scanner metadata unauthorized response a status code equal to that given
func (*GetScannerMetadataUnauthorized) IsRedirect ¶
func (o *GetScannerMetadataUnauthorized) IsRedirect() bool
IsRedirect returns true when this get scanner metadata unauthorized response has a 3xx status code
func (*GetScannerMetadataUnauthorized) IsServerError ¶
func (o *GetScannerMetadataUnauthorized) IsServerError() bool
IsServerError returns true when this get scanner metadata unauthorized response has a 5xx status code
func (*GetScannerMetadataUnauthorized) IsSuccess ¶
func (o *GetScannerMetadataUnauthorized) IsSuccess() bool
IsSuccess returns true when this get scanner metadata unauthorized response has a 2xx status code
func (*GetScannerMetadataUnauthorized) String ¶
func (o *GetScannerMetadataUnauthorized) String() string
type GetScannerNotFound ¶
type GetScannerNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetScannerNotFound describes a response with status code 404, with default header values.
Not found
func NewGetScannerNotFound ¶
func NewGetScannerNotFound() *GetScannerNotFound
NewGetScannerNotFound creates a GetScannerNotFound with default headers values
func (*GetScannerNotFound) Error ¶
func (o *GetScannerNotFound) Error() string
func (*GetScannerNotFound) GetPayload ¶
func (o *GetScannerNotFound) GetPayload() *models.Errors
func (*GetScannerNotFound) IsClientError ¶
func (o *GetScannerNotFound) IsClientError() bool
IsClientError returns true when this get scanner not found response has a 4xx status code
func (*GetScannerNotFound) IsCode ¶
func (o *GetScannerNotFound) IsCode(code int) bool
IsCode returns true when this get scanner not found response a status code equal to that given
func (*GetScannerNotFound) IsRedirect ¶
func (o *GetScannerNotFound) IsRedirect() bool
IsRedirect returns true when this get scanner not found response has a 3xx status code
func (*GetScannerNotFound) IsServerError ¶
func (o *GetScannerNotFound) IsServerError() bool
IsServerError returns true when this get scanner not found response has a 5xx status code
func (*GetScannerNotFound) IsSuccess ¶
func (o *GetScannerNotFound) IsSuccess() bool
IsSuccess returns true when this get scanner not found response has a 2xx status code
func (*GetScannerNotFound) String ¶
func (o *GetScannerNotFound) String() string
type GetScannerOK ¶
type GetScannerOK struct {
Payload *models.ScannerRegistration
}
GetScannerOK describes a response with status code 200, with default header values.
The details of the scanner registration.
func NewGetScannerOK ¶
func NewGetScannerOK() *GetScannerOK
NewGetScannerOK creates a GetScannerOK with default headers values
func (*GetScannerOK) Error ¶
func (o *GetScannerOK) Error() string
func (*GetScannerOK) GetPayload ¶
func (o *GetScannerOK) GetPayload() *models.ScannerRegistration
func (*GetScannerOK) IsClientError ¶
func (o *GetScannerOK) IsClientError() bool
IsClientError returns true when this get scanner o k response has a 4xx status code
func (*GetScannerOK) IsCode ¶
func (o *GetScannerOK) IsCode(code int) bool
IsCode returns true when this get scanner o k response a status code equal to that given
func (*GetScannerOK) IsRedirect ¶
func (o *GetScannerOK) IsRedirect() bool
IsRedirect returns true when this get scanner o k response has a 3xx status code
func (*GetScannerOK) IsServerError ¶
func (o *GetScannerOK) IsServerError() bool
IsServerError returns true when this get scanner o k response has a 5xx status code
func (*GetScannerOK) IsSuccess ¶
func (o *GetScannerOK) IsSuccess() bool
IsSuccess returns true when this get scanner o k response has a 2xx status code
func (*GetScannerOK) String ¶
func (o *GetScannerOK) String() string
type GetScannerParams ¶
type GetScannerParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* RegistrationID. The scanner registration identifer. */ RegistrationID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetScannerParams contains all the parameters to send to the API endpoint
for the get scanner operation. Typically these are written to a http.Request.
func NewGetScannerParams ¶
func NewGetScannerParams() *GetScannerParams
NewGetScannerParams creates a new GetScannerParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetScannerParamsWithContext ¶
func NewGetScannerParamsWithContext(ctx context.Context) *GetScannerParams
NewGetScannerParamsWithContext creates a new GetScannerParams object with the ability to set a context for a request.
func NewGetScannerParamsWithHTTPClient ¶
func NewGetScannerParamsWithHTTPClient(client *http.Client) *GetScannerParams
NewGetScannerParamsWithHTTPClient creates a new GetScannerParams object with the ability to set a custom HTTPClient for a request.
func NewGetScannerParamsWithTimeout ¶
func NewGetScannerParamsWithTimeout(timeout time.Duration) *GetScannerParams
NewGetScannerParamsWithTimeout creates a new GetScannerParams object with the ability to set a timeout on a request.
func (*GetScannerParams) SetContext ¶
func (o *GetScannerParams) SetContext(ctx context.Context)
SetContext adds the context to the get scanner params
func (*GetScannerParams) SetDefaults ¶
func (o *GetScannerParams) SetDefaults()
SetDefaults hydrates default values in the get scanner params (not the query body).
All values with no default are reset to their zero value.
func (*GetScannerParams) SetHTTPClient ¶
func (o *GetScannerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get scanner params
func (*GetScannerParams) SetRegistrationID ¶
func (o *GetScannerParams) SetRegistrationID(registrationID string)
SetRegistrationID adds the registrationId to the get scanner params
func (*GetScannerParams) SetTimeout ¶
func (o *GetScannerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get scanner params
func (*GetScannerParams) SetXRequestID ¶
func (o *GetScannerParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get scanner params
func (*GetScannerParams) WithContext ¶
func (o *GetScannerParams) WithContext(ctx context.Context) *GetScannerParams
WithContext adds the context to the get scanner params
func (*GetScannerParams) WithDefaults ¶
func (o *GetScannerParams) WithDefaults() *GetScannerParams
WithDefaults hydrates default values in the get scanner params (not the query body).
All values with no default are reset to their zero value.
func (*GetScannerParams) WithHTTPClient ¶
func (o *GetScannerParams) WithHTTPClient(client *http.Client) *GetScannerParams
WithHTTPClient adds the HTTPClient to the get scanner params
func (*GetScannerParams) WithRegistrationID ¶
func (o *GetScannerParams) WithRegistrationID(registrationID string) *GetScannerParams
WithRegistrationID adds the registrationID to the get scanner params
func (*GetScannerParams) WithTimeout ¶
func (o *GetScannerParams) WithTimeout(timeout time.Duration) *GetScannerParams
WithTimeout adds the timeout to the get scanner params
func (*GetScannerParams) WithXRequestID ¶
func (o *GetScannerParams) WithXRequestID(xRequestID *string) *GetScannerParams
WithXRequestID adds the xRequestID to the get scanner params
func (*GetScannerParams) WriteToRequest ¶
func (o *GetScannerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetScannerReader ¶
type GetScannerReader struct {
// contains filtered or unexported fields
}
GetScannerReader is a Reader for the GetScanner structure.
func (*GetScannerReader) ReadResponse ¶
func (o *GetScannerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetScannerUnauthorized ¶
type GetScannerUnauthorized struct { 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
func (*GetScannerUnauthorized) IsClientError ¶
func (o *GetScannerUnauthorized) IsClientError() bool
IsClientError returns true when this get scanner unauthorized response has a 4xx status code
func (*GetScannerUnauthorized) IsCode ¶
func (o *GetScannerUnauthorized) IsCode(code int) bool
IsCode returns true when this get scanner unauthorized response a status code equal to that given
func (*GetScannerUnauthorized) IsRedirect ¶
func (o *GetScannerUnauthorized) IsRedirect() bool
IsRedirect returns true when this get scanner unauthorized response has a 3xx status code
func (*GetScannerUnauthorized) IsServerError ¶
func (o *GetScannerUnauthorized) IsServerError() bool
IsServerError returns true when this get scanner unauthorized response has a 5xx status code
func (*GetScannerUnauthorized) IsSuccess ¶
func (o *GetScannerUnauthorized) IsSuccess() bool
IsSuccess returns true when this get scanner unauthorized response has a 2xx status code
func (*GetScannerUnauthorized) String ¶
func (o *GetScannerUnauthorized) String() string
type ListScannersBadRequest ¶
type ListScannersBadRequest struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListScannersBadRequest describes a response with status code 400, with default header values.
Bad request
func NewListScannersBadRequest ¶
func NewListScannersBadRequest() *ListScannersBadRequest
NewListScannersBadRequest creates a ListScannersBadRequest with default headers values
func (*ListScannersBadRequest) Error ¶
func (o *ListScannersBadRequest) Error() string
func (*ListScannersBadRequest) GetPayload ¶
func (o *ListScannersBadRequest) GetPayload() *models.Errors
func (*ListScannersBadRequest) IsClientError ¶
func (o *ListScannersBadRequest) IsClientError() bool
IsClientError returns true when this list scanners bad request response has a 4xx status code
func (*ListScannersBadRequest) IsCode ¶
func (o *ListScannersBadRequest) IsCode(code int) bool
IsCode returns true when this list scanners bad request response a status code equal to that given
func (*ListScannersBadRequest) IsRedirect ¶
func (o *ListScannersBadRequest) IsRedirect() bool
IsRedirect returns true when this list scanners bad request response has a 3xx status code
func (*ListScannersBadRequest) IsServerError ¶
func (o *ListScannersBadRequest) IsServerError() bool
IsServerError returns true when this list scanners bad request response has a 5xx status code
func (*ListScannersBadRequest) IsSuccess ¶
func (o *ListScannersBadRequest) IsSuccess() bool
IsSuccess returns true when this list scanners bad request response has a 2xx status code
func (*ListScannersBadRequest) String ¶
func (o *ListScannersBadRequest) String() string
type ListScannersForbidden ¶
type ListScannersForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListScannersForbidden describes a response with status code 403, with default header values.
Forbidden
func NewListScannersForbidden ¶
func NewListScannersForbidden() *ListScannersForbidden
NewListScannersForbidden creates a ListScannersForbidden with default headers values
func (*ListScannersForbidden) Error ¶
func (o *ListScannersForbidden) Error() string
func (*ListScannersForbidden) GetPayload ¶
func (o *ListScannersForbidden) GetPayload() *models.Errors
func (*ListScannersForbidden) IsClientError ¶
func (o *ListScannersForbidden) IsClientError() bool
IsClientError returns true when this list scanners forbidden response has a 4xx status code
func (*ListScannersForbidden) IsCode ¶
func (o *ListScannersForbidden) IsCode(code int) bool
IsCode returns true when this list scanners forbidden response a status code equal to that given
func (*ListScannersForbidden) IsRedirect ¶
func (o *ListScannersForbidden) IsRedirect() bool
IsRedirect returns true when this list scanners forbidden response has a 3xx status code
func (*ListScannersForbidden) IsServerError ¶
func (o *ListScannersForbidden) IsServerError() bool
IsServerError returns true when this list scanners forbidden response has a 5xx status code
func (*ListScannersForbidden) IsSuccess ¶
func (o *ListScannersForbidden) IsSuccess() bool
IsSuccess returns true when this list scanners forbidden response has a 2xx status code
func (*ListScannersForbidden) String ¶
func (o *ListScannersForbidden) String() string
type ListScannersInternalServerError ¶
type ListScannersInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListScannersInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewListScannersInternalServerError ¶
func NewListScannersInternalServerError() *ListScannersInternalServerError
NewListScannersInternalServerError creates a ListScannersInternalServerError with default headers values
func (*ListScannersInternalServerError) Error ¶
func (o *ListScannersInternalServerError) Error() string
func (*ListScannersInternalServerError) GetPayload ¶
func (o *ListScannersInternalServerError) GetPayload() *models.Errors
func (*ListScannersInternalServerError) IsClientError ¶
func (o *ListScannersInternalServerError) IsClientError() bool
IsClientError returns true when this list scanners internal server error response has a 4xx status code
func (*ListScannersInternalServerError) IsCode ¶
func (o *ListScannersInternalServerError) IsCode(code int) bool
IsCode returns true when this list scanners internal server error response a status code equal to that given
func (*ListScannersInternalServerError) IsRedirect ¶
func (o *ListScannersInternalServerError) IsRedirect() bool
IsRedirect returns true when this list scanners internal server error response has a 3xx status code
func (*ListScannersInternalServerError) IsServerError ¶
func (o *ListScannersInternalServerError) IsServerError() bool
IsServerError returns true when this list scanners internal server error response has a 5xx status code
func (*ListScannersInternalServerError) IsSuccess ¶
func (o *ListScannersInternalServerError) IsSuccess() bool
IsSuccess returns true when this list scanners internal server error response has a 2xx status code
func (*ListScannersInternalServerError) String ¶
func (o *ListScannersInternalServerError) String() string
type ListScannersOK ¶
type ListScannersOK struct { /* Link to previous page and next page */ Link string /* The total count of available items */ XTotalCount int64 Payload []*models.ScannerRegistration }
ListScannersOK describes a response with status code 200, with default header values.
A list of scanner registrations.
func NewListScannersOK ¶
func NewListScannersOK() *ListScannersOK
NewListScannersOK creates a ListScannersOK with default headers values
func (*ListScannersOK) Error ¶
func (o *ListScannersOK) Error() string
func (*ListScannersOK) GetPayload ¶
func (o *ListScannersOK) GetPayload() []*models.ScannerRegistration
func (*ListScannersOK) IsClientError ¶
func (o *ListScannersOK) IsClientError() bool
IsClientError returns true when this list scanners o k response has a 4xx status code
func (*ListScannersOK) IsCode ¶
func (o *ListScannersOK) IsCode(code int) bool
IsCode returns true when this list scanners o k response a status code equal to that given
func (*ListScannersOK) IsRedirect ¶
func (o *ListScannersOK) IsRedirect() bool
IsRedirect returns true when this list scanners o k response has a 3xx status code
func (*ListScannersOK) IsServerError ¶
func (o *ListScannersOK) IsServerError() bool
IsServerError returns true when this list scanners o k response has a 5xx status code
func (*ListScannersOK) IsSuccess ¶
func (o *ListScannersOK) IsSuccess() bool
IsSuccess returns true when this list scanners o k response has a 2xx status code
func (*ListScannersOK) String ¶
func (o *ListScannersOK) String() string
type ListScannersParams ¶
type ListScannersParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* Page. The page number Format: int64 Default: 1 */ Page *int64 /* PageSize. The size of per page Format: int64 Default: 10 */ PageSize *int64 /* Q. Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max] */ Q *string /* Sort. Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending order and field2 in descending order with "sort=field1,-field2" */ Sort *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListScannersParams contains all the parameters to send to the API endpoint
for the list scanners operation. Typically these are written to a http.Request.
func NewListScannersParams ¶
func NewListScannersParams() *ListScannersParams
NewListScannersParams creates a new ListScannersParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListScannersParamsWithContext ¶
func NewListScannersParamsWithContext(ctx context.Context) *ListScannersParams
NewListScannersParamsWithContext creates a new ListScannersParams object with the ability to set a context for a request.
func NewListScannersParamsWithHTTPClient ¶
func NewListScannersParamsWithHTTPClient(client *http.Client) *ListScannersParams
NewListScannersParamsWithHTTPClient creates a new ListScannersParams object with the ability to set a custom HTTPClient for a request.
func NewListScannersParamsWithTimeout ¶
func NewListScannersParamsWithTimeout(timeout time.Duration) *ListScannersParams
NewListScannersParamsWithTimeout creates a new ListScannersParams object with the ability to set a timeout on a request.
func (*ListScannersParams) SetContext ¶
func (o *ListScannersParams) SetContext(ctx context.Context)
SetContext adds the context to the list scanners params
func (*ListScannersParams) SetDefaults ¶
func (o *ListScannersParams) SetDefaults()
SetDefaults hydrates default values in the list scanners params (not the query body).
All values with no default are reset to their zero value.
func (*ListScannersParams) SetHTTPClient ¶
func (o *ListScannersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list scanners params
func (*ListScannersParams) SetPage ¶
func (o *ListScannersParams) SetPage(page *int64)
SetPage adds the page to the list scanners params
func (*ListScannersParams) SetPageSize ¶
func (o *ListScannersParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the list scanners params
func (*ListScannersParams) SetQ ¶
func (o *ListScannersParams) SetQ(q *string)
SetQ adds the q to the list scanners params
func (*ListScannersParams) SetSort ¶
func (o *ListScannersParams) SetSort(sort *string)
SetSort adds the sort to the list scanners params
func (*ListScannersParams) SetTimeout ¶
func (o *ListScannersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list scanners params
func (*ListScannersParams) SetXRequestID ¶
func (o *ListScannersParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the list scanners params
func (*ListScannersParams) WithContext ¶
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
func (*ListScannersUnauthorized) IsClientError ¶
func (o *ListScannersUnauthorized) IsClientError() bool
IsClientError returns true when this list scanners unauthorized response has a 4xx status code
func (*ListScannersUnauthorized) IsCode ¶
func (o *ListScannersUnauthorized) IsCode(code int) bool
IsCode returns true when this list scanners unauthorized response a status code equal to that given
func (*ListScannersUnauthorized) IsRedirect ¶
func (o *ListScannersUnauthorized) IsRedirect() bool
IsRedirect returns true when this list scanners unauthorized response has a 3xx status code
func (*ListScannersUnauthorized) IsServerError ¶
func (o *ListScannersUnauthorized) IsServerError() bool
IsServerError returns true when this list scanners unauthorized response has a 5xx status code
func (*ListScannersUnauthorized) IsSuccess ¶
func (o *ListScannersUnauthorized) IsSuccess() bool
IsSuccess returns true when this list scanners unauthorized response has a 2xx status code
func (*ListScannersUnauthorized) String ¶
func (o *ListScannersUnauthorized) String() string
type PingScannerBadRequest ¶
type PingScannerBadRequest struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
PingScannerBadRequest describes a response with status code 400, with default header values.
Bad request
func NewPingScannerBadRequest ¶
func NewPingScannerBadRequest() *PingScannerBadRequest
NewPingScannerBadRequest creates a PingScannerBadRequest with default headers values
func (*PingScannerBadRequest) Error ¶
func (o *PingScannerBadRequest) Error() string
func (*PingScannerBadRequest) GetPayload ¶
func (o *PingScannerBadRequest) GetPayload() *models.Errors
func (*PingScannerBadRequest) IsClientError ¶
func (o *PingScannerBadRequest) IsClientError() bool
IsClientError returns true when this ping scanner bad request response has a 4xx status code
func (*PingScannerBadRequest) IsCode ¶
func (o *PingScannerBadRequest) IsCode(code int) bool
IsCode returns true when this ping scanner bad request response a status code equal to that given
func (*PingScannerBadRequest) IsRedirect ¶
func (o *PingScannerBadRequest) IsRedirect() bool
IsRedirect returns true when this ping scanner bad request response has a 3xx status code
func (*PingScannerBadRequest) IsServerError ¶
func (o *PingScannerBadRequest) IsServerError() bool
IsServerError returns true when this ping scanner bad request response has a 5xx status code
func (*PingScannerBadRequest) IsSuccess ¶
func (o *PingScannerBadRequest) IsSuccess() bool
IsSuccess returns true when this ping scanner bad request response has a 2xx status code
func (*PingScannerBadRequest) String ¶
func (o *PingScannerBadRequest) String() string
type PingScannerForbidden ¶
type PingScannerForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
PingScannerForbidden describes a response with status code 403, with default header values.
Forbidden
func NewPingScannerForbidden ¶
func NewPingScannerForbidden() *PingScannerForbidden
NewPingScannerForbidden creates a PingScannerForbidden with default headers values
func (*PingScannerForbidden) Error ¶
func (o *PingScannerForbidden) Error() string
func (*PingScannerForbidden) GetPayload ¶
func (o *PingScannerForbidden) GetPayload() *models.Errors
func (*PingScannerForbidden) IsClientError ¶
func (o *PingScannerForbidden) IsClientError() bool
IsClientError returns true when this ping scanner forbidden response has a 4xx status code
func (*PingScannerForbidden) IsCode ¶
func (o *PingScannerForbidden) IsCode(code int) bool
IsCode returns true when this ping scanner forbidden response a status code equal to that given
func (*PingScannerForbidden) IsRedirect ¶
func (o *PingScannerForbidden) IsRedirect() bool
IsRedirect returns true when this ping scanner forbidden response has a 3xx status code
func (*PingScannerForbidden) IsServerError ¶
func (o *PingScannerForbidden) IsServerError() bool
IsServerError returns true when this ping scanner forbidden response has a 5xx status code
func (*PingScannerForbidden) IsSuccess ¶
func (o *PingScannerForbidden) IsSuccess() bool
IsSuccess returns true when this ping scanner forbidden response has a 2xx status code
func (*PingScannerForbidden) String ¶
func (o *PingScannerForbidden) String() string
type PingScannerInternalServerError ¶
type PingScannerInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
PingScannerInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewPingScannerInternalServerError ¶
func NewPingScannerInternalServerError() *PingScannerInternalServerError
NewPingScannerInternalServerError creates a PingScannerInternalServerError with default headers values
func (*PingScannerInternalServerError) Error ¶
func (o *PingScannerInternalServerError) Error() string
func (*PingScannerInternalServerError) GetPayload ¶
func (o *PingScannerInternalServerError) GetPayload() *models.Errors
func (*PingScannerInternalServerError) IsClientError ¶
func (o *PingScannerInternalServerError) IsClientError() bool
IsClientError returns true when this ping scanner internal server error response has a 4xx status code
func (*PingScannerInternalServerError) IsCode ¶
func (o *PingScannerInternalServerError) IsCode(code int) bool
IsCode returns true when this ping scanner internal server error response a status code equal to that given
func (*PingScannerInternalServerError) IsRedirect ¶
func (o *PingScannerInternalServerError) IsRedirect() bool
IsRedirect returns true when this ping scanner internal server error response has a 3xx status code
func (*PingScannerInternalServerError) IsServerError ¶
func (o *PingScannerInternalServerError) IsServerError() bool
IsServerError returns true when this ping scanner internal server error response has a 5xx status code
func (*PingScannerInternalServerError) IsSuccess ¶
func (o *PingScannerInternalServerError) IsSuccess() bool
IsSuccess returns true when this ping scanner internal server error response has a 2xx status code
func (*PingScannerInternalServerError) String ¶
func (o *PingScannerInternalServerError) String() string
type PingScannerOK ¶
type PingScannerOK struct { /* The ID of the corresponding request for the response */ XRequestID string }
PingScannerOK describes a response with status code 200, with default header values.
Success
func NewPingScannerOK ¶
func NewPingScannerOK() *PingScannerOK
NewPingScannerOK creates a PingScannerOK with default headers values
func (*PingScannerOK) Error ¶
func (o *PingScannerOK) Error() string
func (*PingScannerOK) IsClientError ¶
func (o *PingScannerOK) IsClientError() bool
IsClientError returns true when this ping scanner o k response has a 4xx status code
func (*PingScannerOK) IsCode ¶
func (o *PingScannerOK) IsCode(code int) bool
IsCode returns true when this ping scanner o k response a status code equal to that given
func (*PingScannerOK) IsRedirect ¶
func (o *PingScannerOK) IsRedirect() bool
IsRedirect returns true when this ping scanner o k response has a 3xx status code
func (*PingScannerOK) IsServerError ¶
func (o *PingScannerOK) IsServerError() bool
IsServerError returns true when this ping scanner o k response has a 5xx status code
func (*PingScannerOK) IsSuccess ¶
func (o *PingScannerOK) IsSuccess() bool
IsSuccess returns true when this ping scanner o k response has a 2xx status code
func (*PingScannerOK) String ¶
func (o *PingScannerOK) String() string
type PingScannerParams ¶
type PingScannerParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* Settings. A scanner registration settings to be tested. */ Settings *models.ScannerRegistrationSettings Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PingScannerParams contains all the parameters to send to the API endpoint
for the ping scanner operation. Typically these are written to a http.Request.
func NewPingScannerParams ¶
func NewPingScannerParams() *PingScannerParams
NewPingScannerParams creates a new PingScannerParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPingScannerParamsWithContext ¶
func NewPingScannerParamsWithContext(ctx context.Context) *PingScannerParams
NewPingScannerParamsWithContext creates a new PingScannerParams object with the ability to set a context for a request.
func NewPingScannerParamsWithHTTPClient ¶
func NewPingScannerParamsWithHTTPClient(client *http.Client) *PingScannerParams
NewPingScannerParamsWithHTTPClient creates a new PingScannerParams object with the ability to set a custom HTTPClient for a request.
func NewPingScannerParamsWithTimeout ¶
func NewPingScannerParamsWithTimeout(timeout time.Duration) *PingScannerParams
NewPingScannerParamsWithTimeout creates a new PingScannerParams object with the ability to set a timeout on a request.
func (*PingScannerParams) SetContext ¶
func (o *PingScannerParams) SetContext(ctx context.Context)
SetContext adds the context to the ping scanner params
func (*PingScannerParams) SetDefaults ¶
func (o *PingScannerParams) SetDefaults()
SetDefaults hydrates default values in the ping scanner params (not the query body).
All values with no default are reset to their zero value.
func (*PingScannerParams) SetHTTPClient ¶
func (o *PingScannerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the ping scanner params
func (*PingScannerParams) SetSettings ¶
func (o *PingScannerParams) SetSettings(settings *models.ScannerRegistrationSettings)
SetSettings adds the settings to the ping scanner params
func (*PingScannerParams) SetTimeout ¶
func (o *PingScannerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the ping scanner params
func (*PingScannerParams) SetXRequestID ¶
func (o *PingScannerParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the ping scanner params
func (*PingScannerParams) WithContext ¶
func (o *PingScannerParams) WithContext(ctx context.Context) *PingScannerParams
WithContext adds the context to the ping scanner params
func (*PingScannerParams) WithDefaults ¶
func (o *PingScannerParams) WithDefaults() *PingScannerParams
WithDefaults hydrates default values in the ping scanner params (not the query body).
All values with no default are reset to their zero value.
func (*PingScannerParams) WithHTTPClient ¶
func (o *PingScannerParams) WithHTTPClient(client *http.Client) *PingScannerParams
WithHTTPClient adds the HTTPClient to the ping scanner params
func (*PingScannerParams) WithSettings ¶
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
func (*PingScannerUnauthorized) IsClientError ¶
func (o *PingScannerUnauthorized) IsClientError() bool
IsClientError returns true when this ping scanner unauthorized response has a 4xx status code
func (*PingScannerUnauthorized) IsCode ¶
func (o *PingScannerUnauthorized) IsCode(code int) bool
IsCode returns true when this ping scanner unauthorized response a status code equal to that given
func (*PingScannerUnauthorized) IsRedirect ¶
func (o *PingScannerUnauthorized) IsRedirect() bool
IsRedirect returns true when this ping scanner unauthorized response has a 3xx status code
func (*PingScannerUnauthorized) IsServerError ¶
func (o *PingScannerUnauthorized) IsServerError() bool
IsServerError returns true when this ping scanner unauthorized response has a 5xx status code
func (*PingScannerUnauthorized) IsSuccess ¶
func (o *PingScannerUnauthorized) IsSuccess() bool
IsSuccess returns true when this ping scanner unauthorized response has a 2xx status code
func (*PingScannerUnauthorized) String ¶
func (o *PingScannerUnauthorized) String() string
type SetScannerAsDefaultForbidden ¶
type SetScannerAsDefaultForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
SetScannerAsDefaultForbidden describes a response with status code 403, with default header values.
Forbidden
func NewSetScannerAsDefaultForbidden ¶
func NewSetScannerAsDefaultForbidden() *SetScannerAsDefaultForbidden
NewSetScannerAsDefaultForbidden creates a SetScannerAsDefaultForbidden with default headers values
func (*SetScannerAsDefaultForbidden) Error ¶
func (o *SetScannerAsDefaultForbidden) Error() string
func (*SetScannerAsDefaultForbidden) GetPayload ¶
func (o *SetScannerAsDefaultForbidden) GetPayload() *models.Errors
func (*SetScannerAsDefaultForbidden) IsClientError ¶
func (o *SetScannerAsDefaultForbidden) IsClientError() bool
IsClientError returns true when this set scanner as default forbidden response has a 4xx status code
func (*SetScannerAsDefaultForbidden) IsCode ¶
func (o *SetScannerAsDefaultForbidden) IsCode(code int) bool
IsCode returns true when this set scanner as default forbidden response a status code equal to that given
func (*SetScannerAsDefaultForbidden) IsRedirect ¶
func (o *SetScannerAsDefaultForbidden) IsRedirect() bool
IsRedirect returns true when this set scanner as default forbidden response has a 3xx status code
func (*SetScannerAsDefaultForbidden) IsServerError ¶
func (o *SetScannerAsDefaultForbidden) IsServerError() bool
IsServerError returns true when this set scanner as default forbidden response has a 5xx status code
func (*SetScannerAsDefaultForbidden) IsSuccess ¶
func (o *SetScannerAsDefaultForbidden) IsSuccess() bool
IsSuccess returns true when this set scanner as default forbidden response has a 2xx status code
func (*SetScannerAsDefaultForbidden) String ¶
func (o *SetScannerAsDefaultForbidden) String() string
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
func (*SetScannerAsDefaultInternalServerError) IsClientError ¶
func (o *SetScannerAsDefaultInternalServerError) IsClientError() bool
IsClientError returns true when this set scanner as default internal server error response has a 4xx status code
func (*SetScannerAsDefaultInternalServerError) IsCode ¶
func (o *SetScannerAsDefaultInternalServerError) IsCode(code int) bool
IsCode returns true when this set scanner as default internal server error response a status code equal to that given
func (*SetScannerAsDefaultInternalServerError) IsRedirect ¶
func (o *SetScannerAsDefaultInternalServerError) IsRedirect() bool
IsRedirect returns true when this set scanner as default internal server error response has a 3xx status code
func (*SetScannerAsDefaultInternalServerError) IsServerError ¶
func (o *SetScannerAsDefaultInternalServerError) IsServerError() bool
IsServerError returns true when this set scanner as default internal server error response has a 5xx status code
func (*SetScannerAsDefaultInternalServerError) IsSuccess ¶
func (o *SetScannerAsDefaultInternalServerError) IsSuccess() bool
IsSuccess returns true when this set scanner as default internal server error response has a 2xx status code
func (*SetScannerAsDefaultInternalServerError) String ¶
func (o *SetScannerAsDefaultInternalServerError) String() string
type SetScannerAsDefaultOK ¶
type SetScannerAsDefaultOK struct { }
SetScannerAsDefaultOK describes a response with status code 200, with default header values.
Successfully set the specified scanner registration as system default
func NewSetScannerAsDefaultOK ¶
func NewSetScannerAsDefaultOK() *SetScannerAsDefaultOK
NewSetScannerAsDefaultOK creates a SetScannerAsDefaultOK with default headers values
func (*SetScannerAsDefaultOK) Error ¶
func (o *SetScannerAsDefaultOK) Error() string
func (*SetScannerAsDefaultOK) IsClientError ¶
func (o *SetScannerAsDefaultOK) IsClientError() bool
IsClientError returns true when this set scanner as default o k response has a 4xx status code
func (*SetScannerAsDefaultOK) IsCode ¶
func (o *SetScannerAsDefaultOK) IsCode(code int) bool
IsCode returns true when this set scanner as default o k response a status code equal to that given
func (*SetScannerAsDefaultOK) IsRedirect ¶
func (o *SetScannerAsDefaultOK) IsRedirect() bool
IsRedirect returns true when this set scanner as default o k response has a 3xx status code
func (*SetScannerAsDefaultOK) IsServerError ¶
func (o *SetScannerAsDefaultOK) IsServerError() bool
IsServerError returns true when this set scanner as default o k response has a 5xx status code
func (*SetScannerAsDefaultOK) IsSuccess ¶
func (o *SetScannerAsDefaultOK) IsSuccess() bool
IsSuccess returns true when this set scanner as default o k response has a 2xx status code
func (*SetScannerAsDefaultOK) String ¶
func (o *SetScannerAsDefaultOK) String() string
type SetScannerAsDefaultParams ¶
type SetScannerAsDefaultParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string // Payload. Payload *models.IsDefault /* RegistrationID. The scanner registration identifier. */ RegistrationID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetScannerAsDefaultParams contains all the parameters to send to the API endpoint
for the set scanner as default operation. Typically these are written to a http.Request.
func NewSetScannerAsDefaultParams ¶
func NewSetScannerAsDefaultParams() *SetScannerAsDefaultParams
NewSetScannerAsDefaultParams creates a new SetScannerAsDefaultParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSetScannerAsDefaultParamsWithContext ¶
func NewSetScannerAsDefaultParamsWithContext(ctx context.Context) *SetScannerAsDefaultParams
NewSetScannerAsDefaultParamsWithContext creates a new SetScannerAsDefaultParams object with the ability to set a context for a request.
func NewSetScannerAsDefaultParamsWithHTTPClient ¶
func NewSetScannerAsDefaultParamsWithHTTPClient(client *http.Client) *SetScannerAsDefaultParams
NewSetScannerAsDefaultParamsWithHTTPClient creates a new SetScannerAsDefaultParams object with the ability to set a custom HTTPClient for a request.
func NewSetScannerAsDefaultParamsWithTimeout ¶
func NewSetScannerAsDefaultParamsWithTimeout(timeout time.Duration) *SetScannerAsDefaultParams
NewSetScannerAsDefaultParamsWithTimeout creates a new SetScannerAsDefaultParams object with the ability to set a timeout on a request.
func (*SetScannerAsDefaultParams) SetContext ¶
func (o *SetScannerAsDefaultParams) SetContext(ctx context.Context)
SetContext adds the context to the set scanner as default params
func (*SetScannerAsDefaultParams) SetDefaults ¶
func (o *SetScannerAsDefaultParams) SetDefaults()
SetDefaults hydrates default values in the set scanner as default params (not the query body).
All values with no default are reset to their zero value.
func (*SetScannerAsDefaultParams) SetHTTPClient ¶
func (o *SetScannerAsDefaultParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the set scanner as default params
func (*SetScannerAsDefaultParams) SetPayload ¶
func (o *SetScannerAsDefaultParams) SetPayload(payload *models.IsDefault)
SetPayload adds the payload to the set scanner as default params
func (*SetScannerAsDefaultParams) SetRegistrationID ¶
func (o *SetScannerAsDefaultParams) SetRegistrationID(registrationID string)
SetRegistrationID adds the registrationId to the set scanner as default params
func (*SetScannerAsDefaultParams) SetTimeout ¶
func (o *SetScannerAsDefaultParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the set scanner as default params
func (*SetScannerAsDefaultParams) SetXRequestID ¶
func (o *SetScannerAsDefaultParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the set scanner as default params
func (*SetScannerAsDefaultParams) WithContext ¶
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
func (*SetScannerAsDefaultUnauthorized) IsClientError ¶
func (o *SetScannerAsDefaultUnauthorized) IsClientError() bool
IsClientError returns true when this set scanner as default unauthorized response has a 4xx status code
func (*SetScannerAsDefaultUnauthorized) IsCode ¶
func (o *SetScannerAsDefaultUnauthorized) IsCode(code int) bool
IsCode returns true when this set scanner as default unauthorized response a status code equal to that given
func (*SetScannerAsDefaultUnauthorized) IsRedirect ¶
func (o *SetScannerAsDefaultUnauthorized) IsRedirect() bool
IsRedirect returns true when this set scanner as default unauthorized response has a 3xx status code
func (*SetScannerAsDefaultUnauthorized) IsServerError ¶
func (o *SetScannerAsDefaultUnauthorized) IsServerError() bool
IsServerError returns true when this set scanner as default unauthorized response has a 5xx status code
func (*SetScannerAsDefaultUnauthorized) IsSuccess ¶
func (o *SetScannerAsDefaultUnauthorized) IsSuccess() bool
IsSuccess returns true when this set scanner as default unauthorized response has a 2xx status code
func (*SetScannerAsDefaultUnauthorized) String ¶
func (o *SetScannerAsDefaultUnauthorized) String() string
type UpdateScannerForbidden ¶
type UpdateScannerForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
UpdateScannerForbidden describes a response with status code 403, with default header values.
Forbidden
func NewUpdateScannerForbidden ¶
func NewUpdateScannerForbidden() *UpdateScannerForbidden
NewUpdateScannerForbidden creates a UpdateScannerForbidden with default headers values
func (*UpdateScannerForbidden) Error ¶
func (o *UpdateScannerForbidden) Error() string
func (*UpdateScannerForbidden) GetPayload ¶
func (o *UpdateScannerForbidden) GetPayload() *models.Errors
func (*UpdateScannerForbidden) IsClientError ¶
func (o *UpdateScannerForbidden) IsClientError() bool
IsClientError returns true when this update scanner forbidden response has a 4xx status code
func (*UpdateScannerForbidden) IsCode ¶
func (o *UpdateScannerForbidden) IsCode(code int) bool
IsCode returns true when this update scanner forbidden response a status code equal to that given
func (*UpdateScannerForbidden) IsRedirect ¶
func (o *UpdateScannerForbidden) IsRedirect() bool
IsRedirect returns true when this update scanner forbidden response has a 3xx status code
func (*UpdateScannerForbidden) IsServerError ¶
func (o *UpdateScannerForbidden) IsServerError() bool
IsServerError returns true when this update scanner forbidden response has a 5xx status code
func (*UpdateScannerForbidden) IsSuccess ¶
func (o *UpdateScannerForbidden) IsSuccess() bool
IsSuccess returns true when this update scanner forbidden response has a 2xx status code
func (*UpdateScannerForbidden) String ¶
func (o *UpdateScannerForbidden) String() string
type UpdateScannerInternalServerError ¶
type UpdateScannerInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
UpdateScannerInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewUpdateScannerInternalServerError ¶
func NewUpdateScannerInternalServerError() *UpdateScannerInternalServerError
NewUpdateScannerInternalServerError creates a UpdateScannerInternalServerError with default headers values
func (*UpdateScannerInternalServerError) Error ¶
func (o *UpdateScannerInternalServerError) Error() string
func (*UpdateScannerInternalServerError) GetPayload ¶
func (o *UpdateScannerInternalServerError) GetPayload() *models.Errors
func (*UpdateScannerInternalServerError) IsClientError ¶
func (o *UpdateScannerInternalServerError) IsClientError() bool
IsClientError returns true when this update scanner internal server error response has a 4xx status code
func (*UpdateScannerInternalServerError) IsCode ¶
func (o *UpdateScannerInternalServerError) IsCode(code int) bool
IsCode returns true when this update scanner internal server error response a status code equal to that given
func (*UpdateScannerInternalServerError) IsRedirect ¶
func (o *UpdateScannerInternalServerError) IsRedirect() bool
IsRedirect returns true when this update scanner internal server error response has a 3xx status code
func (*UpdateScannerInternalServerError) IsServerError ¶
func (o *UpdateScannerInternalServerError) IsServerError() bool
IsServerError returns true when this update scanner internal server error response has a 5xx status code
func (*UpdateScannerInternalServerError) IsSuccess ¶
func (o *UpdateScannerInternalServerError) IsSuccess() bool
IsSuccess returns true when this update scanner internal server error response has a 2xx status code
func (*UpdateScannerInternalServerError) String ¶
func (o *UpdateScannerInternalServerError) String() string
type UpdateScannerNotFound ¶
type UpdateScannerNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
UpdateScannerNotFound describes a response with status code 404, with default header values.
Not found
func NewUpdateScannerNotFound ¶
func NewUpdateScannerNotFound() *UpdateScannerNotFound
NewUpdateScannerNotFound creates a UpdateScannerNotFound with default headers values
func (*UpdateScannerNotFound) Error ¶
func (o *UpdateScannerNotFound) Error() string
func (*UpdateScannerNotFound) GetPayload ¶
func (o *UpdateScannerNotFound) GetPayload() *models.Errors
func (*UpdateScannerNotFound) IsClientError ¶
func (o *UpdateScannerNotFound) IsClientError() bool
IsClientError returns true when this update scanner not found response has a 4xx status code
func (*UpdateScannerNotFound) IsCode ¶
func (o *UpdateScannerNotFound) IsCode(code int) bool
IsCode returns true when this update scanner not found response a status code equal to that given
func (*UpdateScannerNotFound) IsRedirect ¶
func (o *UpdateScannerNotFound) IsRedirect() bool
IsRedirect returns true when this update scanner not found response has a 3xx status code
func (*UpdateScannerNotFound) IsServerError ¶
func (o *UpdateScannerNotFound) IsServerError() bool
IsServerError returns true when this update scanner not found response has a 5xx status code
func (*UpdateScannerNotFound) IsSuccess ¶
func (o *UpdateScannerNotFound) IsSuccess() bool
IsSuccess returns true when this update scanner not found response has a 2xx status code
func (*UpdateScannerNotFound) String ¶
func (o *UpdateScannerNotFound) String() string
type UpdateScannerOK ¶
type UpdateScannerOK struct { /* The ID of the corresponding request for the response */ XRequestID string }
UpdateScannerOK describes a response with status code 200, with default header values.
Success
func NewUpdateScannerOK ¶
func NewUpdateScannerOK() *UpdateScannerOK
NewUpdateScannerOK creates a UpdateScannerOK with default headers values
func (*UpdateScannerOK) Error ¶
func (o *UpdateScannerOK) Error() string
func (*UpdateScannerOK) IsClientError ¶
func (o *UpdateScannerOK) IsClientError() bool
IsClientError returns true when this update scanner o k response has a 4xx status code
func (*UpdateScannerOK) IsCode ¶
func (o *UpdateScannerOK) IsCode(code int) bool
IsCode returns true when this update scanner o k response a status code equal to that given
func (*UpdateScannerOK) IsRedirect ¶
func (o *UpdateScannerOK) IsRedirect() bool
IsRedirect returns true when this update scanner o k response has a 3xx status code
func (*UpdateScannerOK) IsServerError ¶
func (o *UpdateScannerOK) IsServerError() bool
IsServerError returns true when this update scanner o k response has a 5xx status code
func (*UpdateScannerOK) IsSuccess ¶
func (o *UpdateScannerOK) IsSuccess() bool
IsSuccess returns true when this update scanner o k response has a 2xx status code
func (*UpdateScannerOK) String ¶
func (o *UpdateScannerOK) String() string
type UpdateScannerParams ¶
type UpdateScannerParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* Registration. A scanner registraiton to be updated. */ Registration *models.ScannerRegistrationReq /* RegistrationID. The scanner registration identifier. */ RegistrationID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateScannerParams contains all the parameters to send to the API endpoint
for the update scanner operation. Typically these are written to a http.Request.
func NewUpdateScannerParams ¶
func NewUpdateScannerParams() *UpdateScannerParams
NewUpdateScannerParams creates a new UpdateScannerParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateScannerParamsWithContext ¶
func NewUpdateScannerParamsWithContext(ctx context.Context) *UpdateScannerParams
NewUpdateScannerParamsWithContext creates a new UpdateScannerParams object with the ability to set a context for a request.
func NewUpdateScannerParamsWithHTTPClient ¶
func NewUpdateScannerParamsWithHTTPClient(client *http.Client) *UpdateScannerParams
NewUpdateScannerParamsWithHTTPClient creates a new UpdateScannerParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateScannerParamsWithTimeout ¶
func NewUpdateScannerParamsWithTimeout(timeout time.Duration) *UpdateScannerParams
NewUpdateScannerParamsWithTimeout creates a new UpdateScannerParams object with the ability to set a timeout on a request.
func (*UpdateScannerParams) SetContext ¶
func (o *UpdateScannerParams) SetContext(ctx context.Context)
SetContext adds the context to the update scanner params
func (*UpdateScannerParams) SetDefaults ¶
func (o *UpdateScannerParams) SetDefaults()
SetDefaults hydrates default values in the update scanner params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateScannerParams) SetHTTPClient ¶
func (o *UpdateScannerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update scanner params
func (*UpdateScannerParams) SetRegistration ¶
func (o *UpdateScannerParams) SetRegistration(registration *models.ScannerRegistrationReq)
SetRegistration adds the registration to the update scanner params
func (*UpdateScannerParams) SetRegistrationID ¶
func (o *UpdateScannerParams) SetRegistrationID(registrationID string)
SetRegistrationID adds the registrationId to the update scanner params
func (*UpdateScannerParams) SetTimeout ¶
func (o *UpdateScannerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update scanner params
func (*UpdateScannerParams) SetXRequestID ¶
func (o *UpdateScannerParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the update scanner params
func (*UpdateScannerParams) WithContext ¶
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
func (*UpdateScannerUnauthorized) IsClientError ¶
func (o *UpdateScannerUnauthorized) IsClientError() bool
IsClientError returns true when this update scanner unauthorized response has a 4xx status code
func (*UpdateScannerUnauthorized) IsCode ¶
func (o *UpdateScannerUnauthorized) IsCode(code int) bool
IsCode returns true when this update scanner unauthorized response a status code equal to that given
func (*UpdateScannerUnauthorized) IsRedirect ¶
func (o *UpdateScannerUnauthorized) IsRedirect() bool
IsRedirect returns true when this update scanner unauthorized response has a 3xx status code
func (*UpdateScannerUnauthorized) IsServerError ¶
func (o *UpdateScannerUnauthorized) IsServerError() bool
IsServerError returns true when this update scanner unauthorized response has a 5xx status code
func (*UpdateScannerUnauthorized) IsSuccess ¶
func (o *UpdateScannerUnauthorized) IsSuccess() bool
IsSuccess returns true when this update scanner unauthorized response has a 2xx status code
func (*UpdateScannerUnauthorized) String ¶
func (o *UpdateScannerUnauthorized) String() string
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