registration

package
v0.5.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for registration API

func (*Client) RegisterCspmSnapshotAccount

func (a *Client) RegisterCspmSnapshotAccount(params *RegisterCspmSnapshotAccountParams, opts ...ClientOption) (*RegisterCspmSnapshotAccountOK, error)

RegisterCspmSnapshotAccount 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 {
	RegisterCspmSnapshotAccount(params *RegisterCspmSnapshotAccountParams, opts ...ClientOption) (*RegisterCspmSnapshotAccountOK, 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 registration API client.

type RegisterCspmSnapshotAccountBadRequest

type RegisterCspmSnapshotAccountBadRequest 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
}

RegisterCspmSnapshotAccountBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewRegisterCspmSnapshotAccountBadRequest

func NewRegisterCspmSnapshotAccountBadRequest() *RegisterCspmSnapshotAccountBadRequest

NewRegisterCspmSnapshotAccountBadRequest creates a RegisterCspmSnapshotAccountBadRequest with default headers values

func (*RegisterCspmSnapshotAccountBadRequest) Code

Code gets the status code for the register cspm snapshot account bad request response

func (*RegisterCspmSnapshotAccountBadRequest) Error

func (*RegisterCspmSnapshotAccountBadRequest) GetPayload

func (*RegisterCspmSnapshotAccountBadRequest) IsClientError

func (o *RegisterCspmSnapshotAccountBadRequest) IsClientError() bool

IsClientError returns true when this register cspm snapshot account bad request response has a 4xx status code

func (*RegisterCspmSnapshotAccountBadRequest) IsCode

IsCode returns true when this register cspm snapshot account bad request response a status code equal to that given

func (*RegisterCspmSnapshotAccountBadRequest) IsRedirect

IsRedirect returns true when this register cspm snapshot account bad request response has a 3xx status code

func (*RegisterCspmSnapshotAccountBadRequest) IsServerError

func (o *RegisterCspmSnapshotAccountBadRequest) IsServerError() bool

IsServerError returns true when this register cspm snapshot account bad request response has a 5xx status code

func (*RegisterCspmSnapshotAccountBadRequest) IsSuccess

IsSuccess returns true when this register cspm snapshot account bad request response has a 2xx status code

func (*RegisterCspmSnapshotAccountBadRequest) String

type RegisterCspmSnapshotAccountForbidden

type RegisterCspmSnapshotAccountForbidden 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
}

RegisterCspmSnapshotAccountForbidden describes a response with status code 403, with default header values.

Forbidden

func NewRegisterCspmSnapshotAccountForbidden

func NewRegisterCspmSnapshotAccountForbidden() *RegisterCspmSnapshotAccountForbidden

NewRegisterCspmSnapshotAccountForbidden creates a RegisterCspmSnapshotAccountForbidden with default headers values

func (*RegisterCspmSnapshotAccountForbidden) Code

Code gets the status code for the register cspm snapshot account forbidden response

func (*RegisterCspmSnapshotAccountForbidden) Error

func (*RegisterCspmSnapshotAccountForbidden) GetPayload

func (*RegisterCspmSnapshotAccountForbidden) IsClientError

func (o *RegisterCspmSnapshotAccountForbidden) IsClientError() bool

IsClientError returns true when this register cspm snapshot account forbidden response has a 4xx status code

func (*RegisterCspmSnapshotAccountForbidden) IsCode

IsCode returns true when this register cspm snapshot account forbidden response a status code equal to that given

func (*RegisterCspmSnapshotAccountForbidden) IsRedirect

IsRedirect returns true when this register cspm snapshot account forbidden response has a 3xx status code

func (*RegisterCspmSnapshotAccountForbidden) IsServerError

func (o *RegisterCspmSnapshotAccountForbidden) IsServerError() bool

IsServerError returns true when this register cspm snapshot account forbidden response has a 5xx status code

func (*RegisterCspmSnapshotAccountForbidden) IsSuccess

IsSuccess returns true when this register cspm snapshot account forbidden response has a 2xx status code

func (*RegisterCspmSnapshotAccountForbidden) String

type RegisterCspmSnapshotAccountInternalServerError

type RegisterCspmSnapshotAccountInternalServerError 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
}

RegisterCspmSnapshotAccountInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewRegisterCspmSnapshotAccountInternalServerError

func NewRegisterCspmSnapshotAccountInternalServerError() *RegisterCspmSnapshotAccountInternalServerError

NewRegisterCspmSnapshotAccountInternalServerError creates a RegisterCspmSnapshotAccountInternalServerError with default headers values

func (*RegisterCspmSnapshotAccountInternalServerError) Code

Code gets the status code for the register cspm snapshot account internal server error response

func (*RegisterCspmSnapshotAccountInternalServerError) Error

func (*RegisterCspmSnapshotAccountInternalServerError) GetPayload

func (*RegisterCspmSnapshotAccountInternalServerError) IsClientError

IsClientError returns true when this register cspm snapshot account internal server error response has a 4xx status code

func (*RegisterCspmSnapshotAccountInternalServerError) IsCode

IsCode returns true when this register cspm snapshot account internal server error response a status code equal to that given

func (*RegisterCspmSnapshotAccountInternalServerError) IsRedirect

IsRedirect returns true when this register cspm snapshot account internal server error response has a 3xx status code

func (*RegisterCspmSnapshotAccountInternalServerError) IsServerError

IsServerError returns true when this register cspm snapshot account internal server error response has a 5xx status code

func (*RegisterCspmSnapshotAccountInternalServerError) IsSuccess

IsSuccess returns true when this register cspm snapshot account internal server error response has a 2xx status code

func (*RegisterCspmSnapshotAccountInternalServerError) String

type RegisterCspmSnapshotAccountOK

type RegisterCspmSnapshotAccountOK 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
}

RegisterCspmSnapshotAccountOK describes a response with status code 200, with default header values.

OK

func NewRegisterCspmSnapshotAccountOK

func NewRegisterCspmSnapshotAccountOK() *RegisterCspmSnapshotAccountOK

NewRegisterCspmSnapshotAccountOK creates a RegisterCspmSnapshotAccountOK with default headers values

func (*RegisterCspmSnapshotAccountOK) Code

Code gets the status code for the register cspm snapshot account o k response

func (*RegisterCspmSnapshotAccountOK) Error

func (*RegisterCspmSnapshotAccountOK) GetPayload

func (*RegisterCspmSnapshotAccountOK) IsClientError

func (o *RegisterCspmSnapshotAccountOK) IsClientError() bool

IsClientError returns true when this register cspm snapshot account o k response has a 4xx status code

func (*RegisterCspmSnapshotAccountOK) IsCode

func (o *RegisterCspmSnapshotAccountOK) IsCode(code int) bool

IsCode returns true when this register cspm snapshot account o k response a status code equal to that given

func (*RegisterCspmSnapshotAccountOK) IsRedirect

func (o *RegisterCspmSnapshotAccountOK) IsRedirect() bool

IsRedirect returns true when this register cspm snapshot account o k response has a 3xx status code

func (*RegisterCspmSnapshotAccountOK) IsServerError

func (o *RegisterCspmSnapshotAccountOK) IsServerError() bool

IsServerError returns true when this register cspm snapshot account o k response has a 5xx status code

func (*RegisterCspmSnapshotAccountOK) IsSuccess

func (o *RegisterCspmSnapshotAccountOK) IsSuccess() bool

IsSuccess returns true when this register cspm snapshot account o k response has a 2xx status code

func (*RegisterCspmSnapshotAccountOK) String

type RegisterCspmSnapshotAccountParams

type RegisterCspmSnapshotAccountParams struct {

	// Body.
	Body *models.ModelsAccountEntitiesInput

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

RegisterCspmSnapshotAccountParams contains all the parameters to send to the API endpoint

for the register cspm snapshot account operation.

Typically these are written to a http.Request.

func NewRegisterCspmSnapshotAccountParams

func NewRegisterCspmSnapshotAccountParams() *RegisterCspmSnapshotAccountParams

NewRegisterCspmSnapshotAccountParams creates a new RegisterCspmSnapshotAccountParams 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 NewRegisterCspmSnapshotAccountParamsWithContext

func NewRegisterCspmSnapshotAccountParamsWithContext(ctx context.Context) *RegisterCspmSnapshotAccountParams

NewRegisterCspmSnapshotAccountParamsWithContext creates a new RegisterCspmSnapshotAccountParams object with the ability to set a context for a request.

func NewRegisterCspmSnapshotAccountParamsWithHTTPClient

func NewRegisterCspmSnapshotAccountParamsWithHTTPClient(client *http.Client) *RegisterCspmSnapshotAccountParams

NewRegisterCspmSnapshotAccountParamsWithHTTPClient creates a new RegisterCspmSnapshotAccountParams object with the ability to set a custom HTTPClient for a request.

func NewRegisterCspmSnapshotAccountParamsWithTimeout

func NewRegisterCspmSnapshotAccountParamsWithTimeout(timeout time.Duration) *RegisterCspmSnapshotAccountParams

NewRegisterCspmSnapshotAccountParamsWithTimeout creates a new RegisterCspmSnapshotAccountParams object with the ability to set a timeout on a request.

func (*RegisterCspmSnapshotAccountParams) SetBody

SetBody adds the body to the register cspm snapshot account params

func (*RegisterCspmSnapshotAccountParams) SetContext

SetContext adds the context to the register cspm snapshot account params

func (*RegisterCspmSnapshotAccountParams) SetDefaults

func (o *RegisterCspmSnapshotAccountParams) SetDefaults()

SetDefaults hydrates default values in the register cspm snapshot account params (not the query body).

All values with no default are reset to their zero value.

func (*RegisterCspmSnapshotAccountParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the register cspm snapshot account params

func (*RegisterCspmSnapshotAccountParams) SetTimeout

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

SetTimeout adds the timeout to the register cspm snapshot account params

func (*RegisterCspmSnapshotAccountParams) WithBody

WithBody adds the body to the register cspm snapshot account params

func (*RegisterCspmSnapshotAccountParams) WithContext

WithContext adds the context to the register cspm snapshot account params

func (*RegisterCspmSnapshotAccountParams) WithDefaults

WithDefaults hydrates default values in the register cspm snapshot account params (not the query body).

All values with no default are reset to their zero value.

func (*RegisterCspmSnapshotAccountParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the register cspm snapshot account params

func (*RegisterCspmSnapshotAccountParams) WithTimeout

WithTimeout adds the timeout to the register cspm snapshot account params

func (*RegisterCspmSnapshotAccountParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RegisterCspmSnapshotAccountReader

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

RegisterCspmSnapshotAccountReader is a Reader for the RegisterCspmSnapshotAccount structure.

func (*RegisterCspmSnapshotAccountReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RegisterCspmSnapshotAccountTooManyRequests

type RegisterCspmSnapshotAccountTooManyRequests 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
}

RegisterCspmSnapshotAccountTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewRegisterCspmSnapshotAccountTooManyRequests

func NewRegisterCspmSnapshotAccountTooManyRequests() *RegisterCspmSnapshotAccountTooManyRequests

NewRegisterCspmSnapshotAccountTooManyRequests creates a RegisterCspmSnapshotAccountTooManyRequests with default headers values

func (*RegisterCspmSnapshotAccountTooManyRequests) Code

Code gets the status code for the register cspm snapshot account too many requests response

func (*RegisterCspmSnapshotAccountTooManyRequests) Error

func (*RegisterCspmSnapshotAccountTooManyRequests) GetPayload

func (*RegisterCspmSnapshotAccountTooManyRequests) IsClientError

IsClientError returns true when this register cspm snapshot account too many requests response has a 4xx status code

func (*RegisterCspmSnapshotAccountTooManyRequests) IsCode

IsCode returns true when this register cspm snapshot account too many requests response a status code equal to that given

func (*RegisterCspmSnapshotAccountTooManyRequests) IsRedirect

IsRedirect returns true when this register cspm snapshot account too many requests response has a 3xx status code

func (*RegisterCspmSnapshotAccountTooManyRequests) IsServerError

IsServerError returns true when this register cspm snapshot account too many requests response has a 5xx status code

func (*RegisterCspmSnapshotAccountTooManyRequests) IsSuccess

IsSuccess returns true when this register cspm snapshot account too many requests response has a 2xx status code

func (*RegisterCspmSnapshotAccountTooManyRequests) String

Jump to

Keyboard shortcuts

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