Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type RegisterBadRequest
- func (o *RegisterBadRequest) Code() int
- func (o *RegisterBadRequest) Error() string
- func (o *RegisterBadRequest) GetPayload() *models.MsaspecResponseFields
- func (o *RegisterBadRequest) IsClientError() bool
- func (o *RegisterBadRequest) IsCode(code int) bool
- func (o *RegisterBadRequest) IsRedirect() bool
- func (o *RegisterBadRequest) IsServerError() bool
- func (o *RegisterBadRequest) IsSuccess() bool
- func (o *RegisterBadRequest) String() string
- type RegisterForbidden
- func (o *RegisterForbidden) Code() int
- func (o *RegisterForbidden) Error() string
- func (o *RegisterForbidden) GetPayload() *models.MsaspecResponseFields
- func (o *RegisterForbidden) IsClientError() bool
- func (o *RegisterForbidden) IsCode(code int) bool
- func (o *RegisterForbidden) IsRedirect() bool
- func (o *RegisterForbidden) IsServerError() bool
- func (o *RegisterForbidden) IsSuccess() bool
- func (o *RegisterForbidden) String() string
- type RegisterInternalServerError
- func (o *RegisterInternalServerError) Code() int
- func (o *RegisterInternalServerError) Error() string
- func (o *RegisterInternalServerError) GetPayload() *models.MsaspecResponseFields
- func (o *RegisterInternalServerError) IsClientError() bool
- func (o *RegisterInternalServerError) IsCode(code int) bool
- func (o *RegisterInternalServerError) IsRedirect() bool
- func (o *RegisterInternalServerError) IsServerError() bool
- func (o *RegisterInternalServerError) IsSuccess() bool
- func (o *RegisterInternalServerError) String() string
- type RegisterOK
- func (o *RegisterOK) Code() int
- func (o *RegisterOK) Error() string
- func (o *RegisterOK) GetPayload() *models.ModelsAccountStatusResponse
- func (o *RegisterOK) IsClientError() bool
- func (o *RegisterOK) IsCode(code int) bool
- func (o *RegisterOK) IsRedirect() bool
- func (o *RegisterOK) IsServerError() bool
- func (o *RegisterOK) IsSuccess() bool
- func (o *RegisterOK) String() string
- type RegisterParams
- func (o *RegisterParams) SetBody(body *models.ModelsAccountEntitiesInput)
- func (o *RegisterParams) SetContext(ctx context.Context)
- func (o *RegisterParams) SetDefaults()
- func (o *RegisterParams) SetHTTPClient(client *http.Client)
- func (o *RegisterParams) SetTimeout(timeout time.Duration)
- func (o *RegisterParams) WithBody(body *models.ModelsAccountEntitiesInput) *RegisterParams
- func (o *RegisterParams) WithContext(ctx context.Context) *RegisterParams
- func (o *RegisterParams) WithDefaults() *RegisterParams
- func (o *RegisterParams) WithHTTPClient(client *http.Client) *RegisterParams
- func (o *RegisterParams) WithTimeout(timeout time.Duration) *RegisterParams
- func (o *RegisterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RegisterReader
- type RegisterTooManyRequests
- func (o *RegisterTooManyRequests) Code() int
- func (o *RegisterTooManyRequests) Error() string
- func (o *RegisterTooManyRequests) GetPayload() *models.MsaReplyMetaOnly
- func (o *RegisterTooManyRequests) IsClientError() bool
- func (o *RegisterTooManyRequests) IsCode(code int) bool
- func (o *RegisterTooManyRequests) IsRedirect() bool
- func (o *RegisterTooManyRequests) IsServerError() bool
- func (o *RegisterTooManyRequests) IsSuccess() bool
- func (o *RegisterTooManyRequests) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for cloud snapshots API
func (*Client) Register ¶
func (a *Client) Register(params *RegisterParams, opts ...ClientOption) (*RegisterOK, error)
Register registers customer cloud account for snapshot scanning
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { Register(params *RegisterParams, opts ...ClientOption) (*RegisterOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new cloud snapshots API client.
type RegisterBadRequest ¶
type RegisterBadRequest struct { /* Trace-ID: submit to support if resolving an issue */ XCSTRACEID string /* Request limit per minute. */ XRateLimitLimit int64 /* The number of requests remaining for the sliding one minute window. */ XRateLimitRemaining int64 Payload *models.MsaspecResponseFields }
RegisterBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewRegisterBadRequest ¶
func NewRegisterBadRequest() *RegisterBadRequest
NewRegisterBadRequest creates a RegisterBadRequest with default headers values
func (*RegisterBadRequest) Code ¶
func (o *RegisterBadRequest) Code() int
Code gets the status code for the register bad request response
func (*RegisterBadRequest) Error ¶
func (o *RegisterBadRequest) Error() string
func (*RegisterBadRequest) GetPayload ¶
func (o *RegisterBadRequest) GetPayload() *models.MsaspecResponseFields
func (*RegisterBadRequest) IsClientError ¶
func (o *RegisterBadRequest) IsClientError() bool
IsClientError returns true when this register bad request response has a 4xx status code
func (*RegisterBadRequest) IsCode ¶
func (o *RegisterBadRequest) IsCode(code int) bool
IsCode returns true when this register bad request response a status code equal to that given
func (*RegisterBadRequest) IsRedirect ¶
func (o *RegisterBadRequest) IsRedirect() bool
IsRedirect returns true when this register bad request response has a 3xx status code
func (*RegisterBadRequest) IsServerError ¶
func (o *RegisterBadRequest) IsServerError() bool
IsServerError returns true when this register bad request response has a 5xx status code
func (*RegisterBadRequest) IsSuccess ¶
func (o *RegisterBadRequest) IsSuccess() bool
IsSuccess returns true when this register bad request response has a 2xx status code
func (*RegisterBadRequest) String ¶
func (o *RegisterBadRequest) String() string
type RegisterForbidden ¶
type RegisterForbidden struct { /* Trace-ID: submit to support if resolving an issue */ XCSTRACEID string /* Request limit per minute. */ XRateLimitLimit int64 /* The number of requests remaining for the sliding one minute window. */ XRateLimitRemaining int64 Payload *models.MsaspecResponseFields }
RegisterForbidden describes a response with status code 403, with default header values.
Forbidden
func NewRegisterForbidden ¶
func NewRegisterForbidden() *RegisterForbidden
NewRegisterForbidden creates a RegisterForbidden with default headers values
func (*RegisterForbidden) Code ¶
func (o *RegisterForbidden) Code() int
Code gets the status code for the register forbidden response
func (*RegisterForbidden) Error ¶
func (o *RegisterForbidden) Error() string
func (*RegisterForbidden) GetPayload ¶
func (o *RegisterForbidden) GetPayload() *models.MsaspecResponseFields
func (*RegisterForbidden) IsClientError ¶
func (o *RegisterForbidden) IsClientError() bool
IsClientError returns true when this register forbidden response has a 4xx status code
func (*RegisterForbidden) IsCode ¶
func (o *RegisterForbidden) IsCode(code int) bool
IsCode returns true when this register forbidden response a status code equal to that given
func (*RegisterForbidden) IsRedirect ¶
func (o *RegisterForbidden) IsRedirect() bool
IsRedirect returns true when this register forbidden response has a 3xx status code
func (*RegisterForbidden) IsServerError ¶
func (o *RegisterForbidden) IsServerError() bool
IsServerError returns true when this register forbidden response has a 5xx status code
func (*RegisterForbidden) IsSuccess ¶
func (o *RegisterForbidden) IsSuccess() bool
IsSuccess returns true when this register forbidden response has a 2xx status code
func (*RegisterForbidden) String ¶
func (o *RegisterForbidden) String() string
type RegisterInternalServerError ¶
type RegisterInternalServerError struct { /* Trace-ID: submit to support if resolving an issue */ XCSTRACEID string /* Request limit per minute. */ XRateLimitLimit int64 /* The number of requests remaining for the sliding one minute window. */ XRateLimitRemaining int64 Payload *models.MsaspecResponseFields }
RegisterInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewRegisterInternalServerError ¶
func NewRegisterInternalServerError() *RegisterInternalServerError
NewRegisterInternalServerError creates a RegisterInternalServerError with default headers values
func (*RegisterInternalServerError) Code ¶
func (o *RegisterInternalServerError) Code() int
Code gets the status code for the register internal server error response
func (*RegisterInternalServerError) Error ¶
func (o *RegisterInternalServerError) Error() string
func (*RegisterInternalServerError) GetPayload ¶
func (o *RegisterInternalServerError) GetPayload() *models.MsaspecResponseFields
func (*RegisterInternalServerError) IsClientError ¶
func (o *RegisterInternalServerError) IsClientError() bool
IsClientError returns true when this register internal server error response has a 4xx status code
func (*RegisterInternalServerError) IsCode ¶
func (o *RegisterInternalServerError) IsCode(code int) bool
IsCode returns true when this register internal server error response a status code equal to that given
func (*RegisterInternalServerError) IsRedirect ¶
func (o *RegisterInternalServerError) IsRedirect() bool
IsRedirect returns true when this register internal server error response has a 3xx status code
func (*RegisterInternalServerError) IsServerError ¶
func (o *RegisterInternalServerError) IsServerError() bool
IsServerError returns true when this register internal server error response has a 5xx status code
func (*RegisterInternalServerError) IsSuccess ¶
func (o *RegisterInternalServerError) IsSuccess() bool
IsSuccess returns true when this register internal server error response has a 2xx status code
func (*RegisterInternalServerError) String ¶
func (o *RegisterInternalServerError) String() string
type RegisterOK ¶
type RegisterOK struct { /* Trace-ID: submit to support if resolving an issue */ XCSTRACEID string /* Request limit per minute. */ XRateLimitLimit int64 /* The number of requests remaining for the sliding one minute window. */ XRateLimitRemaining int64 Payload *models.ModelsAccountStatusResponse }
RegisterOK describes a response with status code 200, with default header values.
OK
func NewRegisterOK ¶
func NewRegisterOK() *RegisterOK
NewRegisterOK creates a RegisterOK with default headers values
func (*RegisterOK) Code ¶
func (o *RegisterOK) Code() int
Code gets the status code for the register o k response
func (*RegisterOK) Error ¶
func (o *RegisterOK) Error() string
func (*RegisterOK) GetPayload ¶
func (o *RegisterOK) GetPayload() *models.ModelsAccountStatusResponse
func (*RegisterOK) IsClientError ¶
func (o *RegisterOK) IsClientError() bool
IsClientError returns true when this register o k response has a 4xx status code
func (*RegisterOK) IsCode ¶
func (o *RegisterOK) IsCode(code int) bool
IsCode returns true when this register o k response a status code equal to that given
func (*RegisterOK) IsRedirect ¶
func (o *RegisterOK) IsRedirect() bool
IsRedirect returns true when this register o k response has a 3xx status code
func (*RegisterOK) IsServerError ¶
func (o *RegisterOK) IsServerError() bool
IsServerError returns true when this register o k response has a 5xx status code
func (*RegisterOK) IsSuccess ¶
func (o *RegisterOK) IsSuccess() bool
IsSuccess returns true when this register o k response has a 2xx status code
func (*RegisterOK) String ¶
func (o *RegisterOK) String() string
type RegisterParams ¶
type RegisterParams struct { // Body. Body *models.ModelsAccountEntitiesInput Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
RegisterParams contains all the parameters to send to the API endpoint
for the register operation. Typically these are written to a http.Request.
func NewRegisterParams ¶
func NewRegisterParams() *RegisterParams
NewRegisterParams creates a new RegisterParams 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 NewRegisterParamsWithContext ¶
func NewRegisterParamsWithContext(ctx context.Context) *RegisterParams
NewRegisterParamsWithContext creates a new RegisterParams object with the ability to set a context for a request.
func NewRegisterParamsWithHTTPClient ¶
func NewRegisterParamsWithHTTPClient(client *http.Client) *RegisterParams
NewRegisterParamsWithHTTPClient creates a new RegisterParams object with the ability to set a custom HTTPClient for a request.
func NewRegisterParamsWithTimeout ¶
func NewRegisterParamsWithTimeout(timeout time.Duration) *RegisterParams
NewRegisterParamsWithTimeout creates a new RegisterParams object with the ability to set a timeout on a request.
func (*RegisterParams) SetBody ¶
func (o *RegisterParams) SetBody(body *models.ModelsAccountEntitiesInput)
SetBody adds the body to the register params
func (*RegisterParams) SetContext ¶
func (o *RegisterParams) SetContext(ctx context.Context)
SetContext adds the context to the register params
func (*RegisterParams) SetDefaults ¶
func (o *RegisterParams) SetDefaults()
SetDefaults hydrates default values in the register params (not the query body).
All values with no default are reset to their zero value.
func (*RegisterParams) SetHTTPClient ¶
func (o *RegisterParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the register params
func (*RegisterParams) SetTimeout ¶
func (o *RegisterParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the register params
func (*RegisterParams) WithBody ¶
func (o *RegisterParams) WithBody(body *models.ModelsAccountEntitiesInput) *RegisterParams
WithBody adds the body to the register params
func (*RegisterParams) WithContext ¶
func (o *RegisterParams) WithContext(ctx context.Context) *RegisterParams
WithContext adds the context to the register params
func (*RegisterParams) WithDefaults ¶
func (o *RegisterParams) WithDefaults() *RegisterParams
WithDefaults hydrates default values in the register params (not the query body).
All values with no default are reset to their zero value.
func (*RegisterParams) WithHTTPClient ¶
func (o *RegisterParams) WithHTTPClient(client *http.Client) *RegisterParams
WithHTTPClient adds the HTTPClient to the register params
func (*RegisterParams) WithTimeout ¶
func (o *RegisterParams) WithTimeout(timeout time.Duration) *RegisterParams
WithTimeout adds the timeout to the register params
func (*RegisterParams) WriteToRequest ¶
func (o *RegisterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type RegisterReader ¶
type RegisterReader struct {
// contains filtered or unexported fields
}
RegisterReader is a Reader for the Register structure.
func (*RegisterReader) ReadResponse ¶
func (o *RegisterReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type RegisterTooManyRequests ¶
type RegisterTooManyRequests struct { /* Trace-ID: submit to support if resolving an issue */ XCSTRACEID string /* Request limit per minute. */ XRateLimitLimit int64 /* The number of requests remaining for the sliding one minute window. */ XRateLimitRemaining int64 /* Too many requests, retry after this time (as milliseconds since epoch) */ XRateLimitRetryAfter int64 Payload *models.MsaReplyMetaOnly }
RegisterTooManyRequests describes a response with status code 429, with default header values.
Too Many Requests
func NewRegisterTooManyRequests ¶
func NewRegisterTooManyRequests() *RegisterTooManyRequests
NewRegisterTooManyRequests creates a RegisterTooManyRequests with default headers values
func (*RegisterTooManyRequests) Code ¶
func (o *RegisterTooManyRequests) Code() int
Code gets the status code for the register too many requests response
func (*RegisterTooManyRequests) Error ¶
func (o *RegisterTooManyRequests) Error() string
func (*RegisterTooManyRequests) GetPayload ¶
func (o *RegisterTooManyRequests) GetPayload() *models.MsaReplyMetaOnly
func (*RegisterTooManyRequests) IsClientError ¶
func (o *RegisterTooManyRequests) IsClientError() bool
IsClientError returns true when this register too many requests response has a 4xx status code
func (*RegisterTooManyRequests) IsCode ¶
func (o *RegisterTooManyRequests) IsCode(code int) bool
IsCode returns true when this register too many requests response a status code equal to that given
func (*RegisterTooManyRequests) IsRedirect ¶
func (o *RegisterTooManyRequests) IsRedirect() bool
IsRedirect returns true when this register too many requests response has a 3xx status code
func (*RegisterTooManyRequests) IsServerError ¶
func (o *RegisterTooManyRequests) IsServerError() bool
IsServerError returns true when this register too many requests response has a 5xx status code
func (*RegisterTooManyRequests) IsSuccess ¶
func (o *RegisterTooManyRequests) IsSuccess() bool
IsSuccess returns true when this register too many requests response has a 2xx status code
func (*RegisterTooManyRequests) String ¶
func (o *RegisterTooManyRequests) String() string