Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteMFASession(params *DeleteMFASessionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteMFASessionNoContent, error)
- func (a *Client) ListUserMFASessions(params *ListUserMFASessionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListUserMFASessionsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteMFASessionForbidden
- func (o *DeleteMFASessionForbidden) Code() int
- func (o *DeleteMFASessionForbidden) Error() string
- func (o *DeleteMFASessionForbidden) GetPayload() *models.Error
- func (o *DeleteMFASessionForbidden) IsClientError() bool
- func (o *DeleteMFASessionForbidden) IsCode(code int) bool
- func (o *DeleteMFASessionForbidden) IsRedirect() bool
- func (o *DeleteMFASessionForbidden) IsServerError() bool
- func (o *DeleteMFASessionForbidden) IsSuccess() bool
- func (o *DeleteMFASessionForbidden) String() string
- type DeleteMFASessionNoContent
- func (o *DeleteMFASessionNoContent) Code() int
- func (o *DeleteMFASessionNoContent) Error() string
- func (o *DeleteMFASessionNoContent) IsClientError() bool
- func (o *DeleteMFASessionNoContent) IsCode(code int) bool
- func (o *DeleteMFASessionNoContent) IsRedirect() bool
- func (o *DeleteMFASessionNoContent) IsServerError() bool
- func (o *DeleteMFASessionNoContent) IsSuccess() bool
- func (o *DeleteMFASessionNoContent) String() string
- type DeleteMFASessionNotFound
- func (o *DeleteMFASessionNotFound) Code() int
- func (o *DeleteMFASessionNotFound) Error() string
- func (o *DeleteMFASessionNotFound) GetPayload() *models.Error
- func (o *DeleteMFASessionNotFound) IsClientError() bool
- func (o *DeleteMFASessionNotFound) IsCode(code int) bool
- func (o *DeleteMFASessionNotFound) IsRedirect() bool
- func (o *DeleteMFASessionNotFound) IsServerError() bool
- func (o *DeleteMFASessionNotFound) IsSuccess() bool
- func (o *DeleteMFASessionNotFound) String() string
- type DeleteMFASessionParams
- func NewDeleteMFASessionParams() *DeleteMFASessionParams
- func NewDeleteMFASessionParamsWithContext(ctx context.Context) *DeleteMFASessionParams
- func NewDeleteMFASessionParamsWithHTTPClient(client *http.Client) *DeleteMFASessionParams
- func NewDeleteMFASessionParamsWithTimeout(timeout time.Duration) *DeleteMFASessionParams
- func (o *DeleteMFASessionParams) SetContext(ctx context.Context)
- func (o *DeleteMFASessionParams) SetDefaults()
- func (o *DeleteMFASessionParams) SetHTTPClient(client *http.Client)
- func (o *DeleteMFASessionParams) SetMfaSessionID(mfaSessionID string)
- func (o *DeleteMFASessionParams) SetTimeout(timeout time.Duration)
- func (o *DeleteMFASessionParams) WithContext(ctx context.Context) *DeleteMFASessionParams
- func (o *DeleteMFASessionParams) WithDefaults() *DeleteMFASessionParams
- func (o *DeleteMFASessionParams) WithHTTPClient(client *http.Client) *DeleteMFASessionParams
- func (o *DeleteMFASessionParams) WithMfaSessionID(mfaSessionID string) *DeleteMFASessionParams
- func (o *DeleteMFASessionParams) WithTimeout(timeout time.Duration) *DeleteMFASessionParams
- func (o *DeleteMFASessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteMFASessionReader
- type DeleteMFASessionTooManyRequests
- func (o *DeleteMFASessionTooManyRequests) Code() int
- func (o *DeleteMFASessionTooManyRequests) Error() string
- func (o *DeleteMFASessionTooManyRequests) GetPayload() *models.Error
- func (o *DeleteMFASessionTooManyRequests) IsClientError() bool
- func (o *DeleteMFASessionTooManyRequests) IsCode(code int) bool
- func (o *DeleteMFASessionTooManyRequests) IsRedirect() bool
- func (o *DeleteMFASessionTooManyRequests) IsServerError() bool
- func (o *DeleteMFASessionTooManyRequests) IsSuccess() bool
- func (o *DeleteMFASessionTooManyRequests) String() string
- type DeleteMFASessionUnauthorized
- func (o *DeleteMFASessionUnauthorized) Code() int
- func (o *DeleteMFASessionUnauthorized) Error() string
- func (o *DeleteMFASessionUnauthorized) GetPayload() *models.Error
- func (o *DeleteMFASessionUnauthorized) IsClientError() bool
- func (o *DeleteMFASessionUnauthorized) IsCode(code int) bool
- func (o *DeleteMFASessionUnauthorized) IsRedirect() bool
- func (o *DeleteMFASessionUnauthorized) IsServerError() bool
- func (o *DeleteMFASessionUnauthorized) IsSuccess() bool
- func (o *DeleteMFASessionUnauthorized) String() string
- type ListUserMFASessionsForbidden
- func (o *ListUserMFASessionsForbidden) Code() int
- func (o *ListUserMFASessionsForbidden) Error() string
- func (o *ListUserMFASessionsForbidden) GetPayload() *models.Error
- func (o *ListUserMFASessionsForbidden) IsClientError() bool
- func (o *ListUserMFASessionsForbidden) IsCode(code int) bool
- func (o *ListUserMFASessionsForbidden) IsRedirect() bool
- func (o *ListUserMFASessionsForbidden) IsServerError() bool
- func (o *ListUserMFASessionsForbidden) IsSuccess() bool
- func (o *ListUserMFASessionsForbidden) String() string
- type ListUserMFASessionsNotFound
- func (o *ListUserMFASessionsNotFound) Code() int
- func (o *ListUserMFASessionsNotFound) Error() string
- func (o *ListUserMFASessionsNotFound) GetPayload() *models.Error
- func (o *ListUserMFASessionsNotFound) IsClientError() bool
- func (o *ListUserMFASessionsNotFound) IsCode(code int) bool
- func (o *ListUserMFASessionsNotFound) IsRedirect() bool
- func (o *ListUserMFASessionsNotFound) IsServerError() bool
- func (o *ListUserMFASessionsNotFound) IsSuccess() bool
- func (o *ListUserMFASessionsNotFound) String() string
- type ListUserMFASessionsOK
- func (o *ListUserMFASessionsOK) Code() int
- func (o *ListUserMFASessionsOK) Error() string
- func (o *ListUserMFASessionsOK) GetPayload() *models.ListUserMFASessions
- func (o *ListUserMFASessionsOK) IsClientError() bool
- func (o *ListUserMFASessionsOK) IsCode(code int) bool
- func (o *ListUserMFASessionsOK) IsRedirect() bool
- func (o *ListUserMFASessionsOK) IsServerError() bool
- func (o *ListUserMFASessionsOK) IsSuccess() bool
- func (o *ListUserMFASessionsOK) String() string
- type ListUserMFASessionsParams
- func NewListUserMFASessionsParams() *ListUserMFASessionsParams
- func NewListUserMFASessionsParamsWithContext(ctx context.Context) *ListUserMFASessionsParams
- func NewListUserMFASessionsParamsWithHTTPClient(client *http.Client) *ListUserMFASessionsParams
- func NewListUserMFASessionsParamsWithTimeout(timeout time.Duration) *ListUserMFASessionsParams
- func (o *ListUserMFASessionsParams) SetContext(ctx context.Context)
- func (o *ListUserMFASessionsParams) SetDefaults()
- func (o *ListUserMFASessionsParams) SetHTTPClient(client *http.Client)
- func (o *ListUserMFASessionsParams) SetTimeout(timeout time.Duration)
- func (o *ListUserMFASessionsParams) WithContext(ctx context.Context) *ListUserMFASessionsParams
- func (o *ListUserMFASessionsParams) WithDefaults() *ListUserMFASessionsParams
- func (o *ListUserMFASessionsParams) WithHTTPClient(client *http.Client) *ListUserMFASessionsParams
- func (o *ListUserMFASessionsParams) WithTimeout(timeout time.Duration) *ListUserMFASessionsParams
- func (o *ListUserMFASessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListUserMFASessionsReader
- type ListUserMFASessionsTooManyRequests
- func (o *ListUserMFASessionsTooManyRequests) Code() int
- func (o *ListUserMFASessionsTooManyRequests) Error() string
- func (o *ListUserMFASessionsTooManyRequests) GetPayload() *models.Error
- func (o *ListUserMFASessionsTooManyRequests) IsClientError() bool
- func (o *ListUserMFASessionsTooManyRequests) IsCode(code int) bool
- func (o *ListUserMFASessionsTooManyRequests) IsRedirect() bool
- func (o *ListUserMFASessionsTooManyRequests) IsServerError() bool
- func (o *ListUserMFASessionsTooManyRequests) IsSuccess() bool
- func (o *ListUserMFASessionsTooManyRequests) String() string
- type ListUserMFASessionsUnauthorized
- func (o *ListUserMFASessionsUnauthorized) Code() int
- func (o *ListUserMFASessionsUnauthorized) Error() string
- func (o *ListUserMFASessionsUnauthorized) GetPayload() *models.Error
- func (o *ListUserMFASessionsUnauthorized) IsClientError() bool
- func (o *ListUserMFASessionsUnauthorized) IsCode(code int) bool
- func (o *ListUserMFASessionsUnauthorized) IsRedirect() bool
- func (o *ListUserMFASessionsUnauthorized) IsServerError() bool
- func (o *ListUserMFASessionsUnauthorized) IsSuccess() bool
- func (o *ListUserMFASessionsUnauthorized) 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 mfa API
func (*Client) DeleteMFASession ¶
func (a *Client) DeleteMFASession(params *DeleteMFASessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteMFASessionNoContent, error)
DeleteMFASession deletes user m f a session
func (*Client) ListUserMFASessions ¶
func (a *Client) ListUserMFASessions(params *ListUserMFASessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserMFASessionsOK, error)
ListUserMFASessions lists user m f a sessions
user MFA sessions.
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { DeleteMFASession(params *DeleteMFASessionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteMFASessionNoContent, error) ListUserMFASessions(params *ListUserMFASessionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserMFASessionsOK, 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 mfa API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new mfa API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new mfa API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type DeleteMFASessionForbidden ¶
DeleteMFASessionForbidden describes a response with status code 403, with default header values.
Forbidden
func NewDeleteMFASessionForbidden ¶
func NewDeleteMFASessionForbidden() *DeleteMFASessionForbidden
NewDeleteMFASessionForbidden creates a DeleteMFASessionForbidden with default headers values
func (*DeleteMFASessionForbidden) Code ¶
func (o *DeleteMFASessionForbidden) Code() int
Code gets the status code for the delete m f a session forbidden response
func (*DeleteMFASessionForbidden) Error ¶
func (o *DeleteMFASessionForbidden) Error() string
func (*DeleteMFASessionForbidden) GetPayload ¶
func (o *DeleteMFASessionForbidden) GetPayload() *models.Error
func (*DeleteMFASessionForbidden) IsClientError ¶
func (o *DeleteMFASessionForbidden) IsClientError() bool
IsClientError returns true when this delete m f a session forbidden response has a 4xx status code
func (*DeleteMFASessionForbidden) IsCode ¶
func (o *DeleteMFASessionForbidden) IsCode(code int) bool
IsCode returns true when this delete m f a session forbidden response a status code equal to that given
func (*DeleteMFASessionForbidden) IsRedirect ¶
func (o *DeleteMFASessionForbidden) IsRedirect() bool
IsRedirect returns true when this delete m f a session forbidden response has a 3xx status code
func (*DeleteMFASessionForbidden) IsServerError ¶
func (o *DeleteMFASessionForbidden) IsServerError() bool
IsServerError returns true when this delete m f a session forbidden response has a 5xx status code
func (*DeleteMFASessionForbidden) IsSuccess ¶
func (o *DeleteMFASessionForbidden) IsSuccess() bool
IsSuccess returns true when this delete m f a session forbidden response has a 2xx status code
func (*DeleteMFASessionForbidden) String ¶
func (o *DeleteMFASessionForbidden) String() string
type DeleteMFASessionNoContent ¶
type DeleteMFASessionNoContent struct { }
DeleteMFASessionNoContent describes a response with status code 204, with default header values.
MFA session has been deleted
func NewDeleteMFASessionNoContent ¶
func NewDeleteMFASessionNoContent() *DeleteMFASessionNoContent
NewDeleteMFASessionNoContent creates a DeleteMFASessionNoContent with default headers values
func (*DeleteMFASessionNoContent) Code ¶
func (o *DeleteMFASessionNoContent) Code() int
Code gets the status code for the delete m f a session no content response
func (*DeleteMFASessionNoContent) Error ¶
func (o *DeleteMFASessionNoContent) Error() string
func (*DeleteMFASessionNoContent) IsClientError ¶
func (o *DeleteMFASessionNoContent) IsClientError() bool
IsClientError returns true when this delete m f a session no content response has a 4xx status code
func (*DeleteMFASessionNoContent) IsCode ¶
func (o *DeleteMFASessionNoContent) IsCode(code int) bool
IsCode returns true when this delete m f a session no content response a status code equal to that given
func (*DeleteMFASessionNoContent) IsRedirect ¶
func (o *DeleteMFASessionNoContent) IsRedirect() bool
IsRedirect returns true when this delete m f a session no content response has a 3xx status code
func (*DeleteMFASessionNoContent) IsServerError ¶
func (o *DeleteMFASessionNoContent) IsServerError() bool
IsServerError returns true when this delete m f a session no content response has a 5xx status code
func (*DeleteMFASessionNoContent) IsSuccess ¶
func (o *DeleteMFASessionNoContent) IsSuccess() bool
IsSuccess returns true when this delete m f a session no content response has a 2xx status code
func (*DeleteMFASessionNoContent) String ¶
func (o *DeleteMFASessionNoContent) String() string
type DeleteMFASessionNotFound ¶
DeleteMFASessionNotFound describes a response with status code 404, with default header values.
Not found
func NewDeleteMFASessionNotFound ¶
func NewDeleteMFASessionNotFound() *DeleteMFASessionNotFound
NewDeleteMFASessionNotFound creates a DeleteMFASessionNotFound with default headers values
func (*DeleteMFASessionNotFound) Code ¶
func (o *DeleteMFASessionNotFound) Code() int
Code gets the status code for the delete m f a session not found response
func (*DeleteMFASessionNotFound) Error ¶
func (o *DeleteMFASessionNotFound) Error() string
func (*DeleteMFASessionNotFound) GetPayload ¶
func (o *DeleteMFASessionNotFound) GetPayload() *models.Error
func (*DeleteMFASessionNotFound) IsClientError ¶
func (o *DeleteMFASessionNotFound) IsClientError() bool
IsClientError returns true when this delete m f a session not found response has a 4xx status code
func (*DeleteMFASessionNotFound) IsCode ¶
func (o *DeleteMFASessionNotFound) IsCode(code int) bool
IsCode returns true when this delete m f a session not found response a status code equal to that given
func (*DeleteMFASessionNotFound) IsRedirect ¶
func (o *DeleteMFASessionNotFound) IsRedirect() bool
IsRedirect returns true when this delete m f a session not found response has a 3xx status code
func (*DeleteMFASessionNotFound) IsServerError ¶
func (o *DeleteMFASessionNotFound) IsServerError() bool
IsServerError returns true when this delete m f a session not found response has a 5xx status code
func (*DeleteMFASessionNotFound) IsSuccess ¶
func (o *DeleteMFASessionNotFound) IsSuccess() bool
IsSuccess returns true when this delete m f a session not found response has a 2xx status code
func (*DeleteMFASessionNotFound) String ¶
func (o *DeleteMFASessionNotFound) String() string
type DeleteMFASessionParams ¶
type DeleteMFASessionParams struct { /* MfaSessionID. MFA session id Default: "default" */ MfaSessionID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteMFASessionParams contains all the parameters to send to the API endpoint
for the delete m f a session operation. Typically these are written to a http.Request.
func NewDeleteMFASessionParams ¶
func NewDeleteMFASessionParams() *DeleteMFASessionParams
NewDeleteMFASessionParams creates a new DeleteMFASessionParams 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 NewDeleteMFASessionParamsWithContext ¶
func NewDeleteMFASessionParamsWithContext(ctx context.Context) *DeleteMFASessionParams
NewDeleteMFASessionParamsWithContext creates a new DeleteMFASessionParams object with the ability to set a context for a request.
func NewDeleteMFASessionParamsWithHTTPClient ¶
func NewDeleteMFASessionParamsWithHTTPClient(client *http.Client) *DeleteMFASessionParams
NewDeleteMFASessionParamsWithHTTPClient creates a new DeleteMFASessionParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteMFASessionParamsWithTimeout ¶
func NewDeleteMFASessionParamsWithTimeout(timeout time.Duration) *DeleteMFASessionParams
NewDeleteMFASessionParamsWithTimeout creates a new DeleteMFASessionParams object with the ability to set a timeout on a request.
func (*DeleteMFASessionParams) SetContext ¶
func (o *DeleteMFASessionParams) SetContext(ctx context.Context)
SetContext adds the context to the delete m f a session params
func (*DeleteMFASessionParams) SetDefaults ¶
func (o *DeleteMFASessionParams) SetDefaults()
SetDefaults hydrates default values in the delete m f a session params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteMFASessionParams) SetHTTPClient ¶
func (o *DeleteMFASessionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete m f a session params
func (*DeleteMFASessionParams) SetMfaSessionID ¶
func (o *DeleteMFASessionParams) SetMfaSessionID(mfaSessionID string)
SetMfaSessionID adds the mfaSessionId to the delete m f a session params
func (*DeleteMFASessionParams) SetTimeout ¶
func (o *DeleteMFASessionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete m f a session params
func (*DeleteMFASessionParams) WithContext ¶
func (o *DeleteMFASessionParams) WithContext(ctx context.Context) *DeleteMFASessionParams
WithContext adds the context to the delete m f a session params
func (*DeleteMFASessionParams) WithDefaults ¶
func (o *DeleteMFASessionParams) WithDefaults() *DeleteMFASessionParams
WithDefaults hydrates default values in the delete m f a session params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteMFASessionParams) WithHTTPClient ¶
func (o *DeleteMFASessionParams) WithHTTPClient(client *http.Client) *DeleteMFASessionParams
WithHTTPClient adds the HTTPClient to the delete m f a session params
func (*DeleteMFASessionParams) WithMfaSessionID ¶
func (o *DeleteMFASessionParams) WithMfaSessionID(mfaSessionID string) *DeleteMFASessionParams
WithMfaSessionID adds the mfaSessionID to the delete m f a session params
func (*DeleteMFASessionParams) WithTimeout ¶
func (o *DeleteMFASessionParams) WithTimeout(timeout time.Duration) *DeleteMFASessionParams
WithTimeout adds the timeout to the delete m f a session params
func (*DeleteMFASessionParams) WriteToRequest ¶
func (o *DeleteMFASessionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteMFASessionReader ¶
type DeleteMFASessionReader struct {
// contains filtered or unexported fields
}
DeleteMFASessionReader is a Reader for the DeleteMFASession structure.
func (*DeleteMFASessionReader) ReadResponse ¶
func (o *DeleteMFASessionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteMFASessionTooManyRequests ¶
DeleteMFASessionTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewDeleteMFASessionTooManyRequests ¶
func NewDeleteMFASessionTooManyRequests() *DeleteMFASessionTooManyRequests
NewDeleteMFASessionTooManyRequests creates a DeleteMFASessionTooManyRequests with default headers values
func (*DeleteMFASessionTooManyRequests) Code ¶
func (o *DeleteMFASessionTooManyRequests) Code() int
Code gets the status code for the delete m f a session too many requests response
func (*DeleteMFASessionTooManyRequests) Error ¶
func (o *DeleteMFASessionTooManyRequests) Error() string
func (*DeleteMFASessionTooManyRequests) GetPayload ¶
func (o *DeleteMFASessionTooManyRequests) GetPayload() *models.Error
func (*DeleteMFASessionTooManyRequests) IsClientError ¶
func (o *DeleteMFASessionTooManyRequests) IsClientError() bool
IsClientError returns true when this delete m f a session too many requests response has a 4xx status code
func (*DeleteMFASessionTooManyRequests) IsCode ¶
func (o *DeleteMFASessionTooManyRequests) IsCode(code int) bool
IsCode returns true when this delete m f a session too many requests response a status code equal to that given
func (*DeleteMFASessionTooManyRequests) IsRedirect ¶
func (o *DeleteMFASessionTooManyRequests) IsRedirect() bool
IsRedirect returns true when this delete m f a session too many requests response has a 3xx status code
func (*DeleteMFASessionTooManyRequests) IsServerError ¶
func (o *DeleteMFASessionTooManyRequests) IsServerError() bool
IsServerError returns true when this delete m f a session too many requests response has a 5xx status code
func (*DeleteMFASessionTooManyRequests) IsSuccess ¶
func (o *DeleteMFASessionTooManyRequests) IsSuccess() bool
IsSuccess returns true when this delete m f a session too many requests response has a 2xx status code
func (*DeleteMFASessionTooManyRequests) String ¶
func (o *DeleteMFASessionTooManyRequests) String() string
type DeleteMFASessionUnauthorized ¶
type DeleteMFASessionUnauthorized struct {
}DeleteMFASessionUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeleteMFASessionUnauthorized ¶
func NewDeleteMFASessionUnauthorized() *DeleteMFASessionUnauthorized
NewDeleteMFASessionUnauthorized creates a DeleteMFASessionUnauthorized with default headers values
func (*DeleteMFASessionUnauthorized) Code ¶
func (o *DeleteMFASessionUnauthorized) Code() int
Code gets the status code for the delete m f a session unauthorized response
func (*DeleteMFASessionUnauthorized) Error ¶
func (o *DeleteMFASessionUnauthorized) Error() string
func (*DeleteMFASessionUnauthorized) GetPayload ¶
func (o *DeleteMFASessionUnauthorized) GetPayload() *models.Error
func (*DeleteMFASessionUnauthorized) IsClientError ¶
func (o *DeleteMFASessionUnauthorized) IsClientError() bool
IsClientError returns true when this delete m f a session unauthorized response has a 4xx status code
func (*DeleteMFASessionUnauthorized) IsCode ¶
func (o *DeleteMFASessionUnauthorized) IsCode(code int) bool
IsCode returns true when this delete m f a session unauthorized response a status code equal to that given
func (*DeleteMFASessionUnauthorized) IsRedirect ¶
func (o *DeleteMFASessionUnauthorized) IsRedirect() bool
IsRedirect returns true when this delete m f a session unauthorized response has a 3xx status code
func (*DeleteMFASessionUnauthorized) IsServerError ¶
func (o *DeleteMFASessionUnauthorized) IsServerError() bool
IsServerError returns true when this delete m f a session unauthorized response has a 5xx status code
func (*DeleteMFASessionUnauthorized) IsSuccess ¶
func (o *DeleteMFASessionUnauthorized) IsSuccess() bool
IsSuccess returns true when this delete m f a session unauthorized response has a 2xx status code
func (*DeleteMFASessionUnauthorized) String ¶
func (o *DeleteMFASessionUnauthorized) String() string
type ListUserMFASessionsForbidden ¶
ListUserMFASessionsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewListUserMFASessionsForbidden ¶
func NewListUserMFASessionsForbidden() *ListUserMFASessionsForbidden
NewListUserMFASessionsForbidden creates a ListUserMFASessionsForbidden with default headers values
func (*ListUserMFASessionsForbidden) Code ¶
func (o *ListUserMFASessionsForbidden) Code() int
Code gets the status code for the list user m f a sessions forbidden response
func (*ListUserMFASessionsForbidden) Error ¶
func (o *ListUserMFASessionsForbidden) Error() string
func (*ListUserMFASessionsForbidden) GetPayload ¶
func (o *ListUserMFASessionsForbidden) GetPayload() *models.Error
func (*ListUserMFASessionsForbidden) IsClientError ¶
func (o *ListUserMFASessionsForbidden) IsClientError() bool
IsClientError returns true when this list user m f a sessions forbidden response has a 4xx status code
func (*ListUserMFASessionsForbidden) IsCode ¶
func (o *ListUserMFASessionsForbidden) IsCode(code int) bool
IsCode returns true when this list user m f a sessions forbidden response a status code equal to that given
func (*ListUserMFASessionsForbidden) IsRedirect ¶
func (o *ListUserMFASessionsForbidden) IsRedirect() bool
IsRedirect returns true when this list user m f a sessions forbidden response has a 3xx status code
func (*ListUserMFASessionsForbidden) IsServerError ¶
func (o *ListUserMFASessionsForbidden) IsServerError() bool
IsServerError returns true when this list user m f a sessions forbidden response has a 5xx status code
func (*ListUserMFASessionsForbidden) IsSuccess ¶
func (o *ListUserMFASessionsForbidden) IsSuccess() bool
IsSuccess returns true when this list user m f a sessions forbidden response has a 2xx status code
func (*ListUserMFASessionsForbidden) String ¶
func (o *ListUserMFASessionsForbidden) String() string
type ListUserMFASessionsNotFound ¶
ListUserMFASessionsNotFound describes a response with status code 404, with default header values.
Not found
func NewListUserMFASessionsNotFound ¶
func NewListUserMFASessionsNotFound() *ListUserMFASessionsNotFound
NewListUserMFASessionsNotFound creates a ListUserMFASessionsNotFound with default headers values
func (*ListUserMFASessionsNotFound) Code ¶
func (o *ListUserMFASessionsNotFound) Code() int
Code gets the status code for the list user m f a sessions not found response
func (*ListUserMFASessionsNotFound) Error ¶
func (o *ListUserMFASessionsNotFound) Error() string
func (*ListUserMFASessionsNotFound) GetPayload ¶
func (o *ListUserMFASessionsNotFound) GetPayload() *models.Error
func (*ListUserMFASessionsNotFound) IsClientError ¶
func (o *ListUserMFASessionsNotFound) IsClientError() bool
IsClientError returns true when this list user m f a sessions not found response has a 4xx status code
func (*ListUserMFASessionsNotFound) IsCode ¶
func (o *ListUserMFASessionsNotFound) IsCode(code int) bool
IsCode returns true when this list user m f a sessions not found response a status code equal to that given
func (*ListUserMFASessionsNotFound) IsRedirect ¶
func (o *ListUserMFASessionsNotFound) IsRedirect() bool
IsRedirect returns true when this list user m f a sessions not found response has a 3xx status code
func (*ListUserMFASessionsNotFound) IsServerError ¶
func (o *ListUserMFASessionsNotFound) IsServerError() bool
IsServerError returns true when this list user m f a sessions not found response has a 5xx status code
func (*ListUserMFASessionsNotFound) IsSuccess ¶
func (o *ListUserMFASessionsNotFound) IsSuccess() bool
IsSuccess returns true when this list user m f a sessions not found response has a 2xx status code
func (*ListUserMFASessionsNotFound) String ¶
func (o *ListUserMFASessionsNotFound) String() string
type ListUserMFASessionsOK ¶
type ListUserMFASessionsOK struct {
Payload *models.ListUserMFASessions
}
ListUserMFASessionsOK describes a response with status code 200, with default header values.
User MFA sessions
func NewListUserMFASessionsOK ¶
func NewListUserMFASessionsOK() *ListUserMFASessionsOK
NewListUserMFASessionsOK creates a ListUserMFASessionsOK with default headers values
func (*ListUserMFASessionsOK) Code ¶
func (o *ListUserMFASessionsOK) Code() int
Code gets the status code for the list user m f a sessions o k response
func (*ListUserMFASessionsOK) Error ¶
func (o *ListUserMFASessionsOK) Error() string
func (*ListUserMFASessionsOK) GetPayload ¶
func (o *ListUserMFASessionsOK) GetPayload() *models.ListUserMFASessions
func (*ListUserMFASessionsOK) IsClientError ¶
func (o *ListUserMFASessionsOK) IsClientError() bool
IsClientError returns true when this list user m f a sessions o k response has a 4xx status code
func (*ListUserMFASessionsOK) IsCode ¶
func (o *ListUserMFASessionsOK) IsCode(code int) bool
IsCode returns true when this list user m f a sessions o k response a status code equal to that given
func (*ListUserMFASessionsOK) IsRedirect ¶
func (o *ListUserMFASessionsOK) IsRedirect() bool
IsRedirect returns true when this list user m f a sessions o k response has a 3xx status code
func (*ListUserMFASessionsOK) IsServerError ¶
func (o *ListUserMFASessionsOK) IsServerError() bool
IsServerError returns true when this list user m f a sessions o k response has a 5xx status code
func (*ListUserMFASessionsOK) IsSuccess ¶
func (o *ListUserMFASessionsOK) IsSuccess() bool
IsSuccess returns true when this list user m f a sessions o k response has a 2xx status code
func (*ListUserMFASessionsOK) String ¶
func (o *ListUserMFASessionsOK) String() string
type ListUserMFASessionsParams ¶
type ListUserMFASessionsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListUserMFASessionsParams contains all the parameters to send to the API endpoint
for the list user m f a sessions operation. Typically these are written to a http.Request.
func NewListUserMFASessionsParams ¶
func NewListUserMFASessionsParams() *ListUserMFASessionsParams
NewListUserMFASessionsParams creates a new ListUserMFASessionsParams 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 NewListUserMFASessionsParamsWithContext ¶
func NewListUserMFASessionsParamsWithContext(ctx context.Context) *ListUserMFASessionsParams
NewListUserMFASessionsParamsWithContext creates a new ListUserMFASessionsParams object with the ability to set a context for a request.
func NewListUserMFASessionsParamsWithHTTPClient ¶
func NewListUserMFASessionsParamsWithHTTPClient(client *http.Client) *ListUserMFASessionsParams
NewListUserMFASessionsParamsWithHTTPClient creates a new ListUserMFASessionsParams object with the ability to set a custom HTTPClient for a request.
func NewListUserMFASessionsParamsWithTimeout ¶
func NewListUserMFASessionsParamsWithTimeout(timeout time.Duration) *ListUserMFASessionsParams
NewListUserMFASessionsParamsWithTimeout creates a new ListUserMFASessionsParams object with the ability to set a timeout on a request.
func (*ListUserMFASessionsParams) SetContext ¶
func (o *ListUserMFASessionsParams) SetContext(ctx context.Context)
SetContext adds the context to the list user m f a sessions params
func (*ListUserMFASessionsParams) SetDefaults ¶
func (o *ListUserMFASessionsParams) SetDefaults()
SetDefaults hydrates default values in the list user m f a sessions params (not the query body).
All values with no default are reset to their zero value.
func (*ListUserMFASessionsParams) SetHTTPClient ¶
func (o *ListUserMFASessionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list user m f a sessions params
func (*ListUserMFASessionsParams) SetTimeout ¶
func (o *ListUserMFASessionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list user m f a sessions params
func (*ListUserMFASessionsParams) WithContext ¶
func (o *ListUserMFASessionsParams) WithContext(ctx context.Context) *ListUserMFASessionsParams
WithContext adds the context to the list user m f a sessions params
func (*ListUserMFASessionsParams) WithDefaults ¶
func (o *ListUserMFASessionsParams) WithDefaults() *ListUserMFASessionsParams
WithDefaults hydrates default values in the list user m f a sessions params (not the query body).
All values with no default are reset to their zero value.
func (*ListUserMFASessionsParams) WithHTTPClient ¶
func (o *ListUserMFASessionsParams) WithHTTPClient(client *http.Client) *ListUserMFASessionsParams
WithHTTPClient adds the HTTPClient to the list user m f a sessions params
func (*ListUserMFASessionsParams) WithTimeout ¶
func (o *ListUserMFASessionsParams) WithTimeout(timeout time.Duration) *ListUserMFASessionsParams
WithTimeout adds the timeout to the list user m f a sessions params
func (*ListUserMFASessionsParams) WriteToRequest ¶
func (o *ListUserMFASessionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListUserMFASessionsReader ¶
type ListUserMFASessionsReader struct {
// contains filtered or unexported fields
}
ListUserMFASessionsReader is a Reader for the ListUserMFASessions structure.
func (*ListUserMFASessionsReader) ReadResponse ¶
func (o *ListUserMFASessionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListUserMFASessionsTooManyRequests ¶
ListUserMFASessionsTooManyRequests describes a response with status code 429, with default header values.
Too many requests
func NewListUserMFASessionsTooManyRequests ¶
func NewListUserMFASessionsTooManyRequests() *ListUserMFASessionsTooManyRequests
NewListUserMFASessionsTooManyRequests creates a ListUserMFASessionsTooManyRequests with default headers values
func (*ListUserMFASessionsTooManyRequests) Code ¶
func (o *ListUserMFASessionsTooManyRequests) Code() int
Code gets the status code for the list user m f a sessions too many requests response
func (*ListUserMFASessionsTooManyRequests) Error ¶
func (o *ListUserMFASessionsTooManyRequests) Error() string
func (*ListUserMFASessionsTooManyRequests) GetPayload ¶
func (o *ListUserMFASessionsTooManyRequests) GetPayload() *models.Error
func (*ListUserMFASessionsTooManyRequests) IsClientError ¶
func (o *ListUserMFASessionsTooManyRequests) IsClientError() bool
IsClientError returns true when this list user m f a sessions too many requests response has a 4xx status code
func (*ListUserMFASessionsTooManyRequests) IsCode ¶
func (o *ListUserMFASessionsTooManyRequests) IsCode(code int) bool
IsCode returns true when this list user m f a sessions too many requests response a status code equal to that given
func (*ListUserMFASessionsTooManyRequests) IsRedirect ¶
func (o *ListUserMFASessionsTooManyRequests) IsRedirect() bool
IsRedirect returns true when this list user m f a sessions too many requests response has a 3xx status code
func (*ListUserMFASessionsTooManyRequests) IsServerError ¶
func (o *ListUserMFASessionsTooManyRequests) IsServerError() bool
IsServerError returns true when this list user m f a sessions too many requests response has a 5xx status code
func (*ListUserMFASessionsTooManyRequests) IsSuccess ¶
func (o *ListUserMFASessionsTooManyRequests) IsSuccess() bool
IsSuccess returns true when this list user m f a sessions too many requests response has a 2xx status code
func (*ListUserMFASessionsTooManyRequests) String ¶
func (o *ListUserMFASessionsTooManyRequests) String() string
type ListUserMFASessionsUnauthorized ¶
type ListUserMFASessionsUnauthorized struct {
}ListUserMFASessionsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListUserMFASessionsUnauthorized ¶
func NewListUserMFASessionsUnauthorized() *ListUserMFASessionsUnauthorized
NewListUserMFASessionsUnauthorized creates a ListUserMFASessionsUnauthorized with default headers values
func (*ListUserMFASessionsUnauthorized) Code ¶
func (o *ListUserMFASessionsUnauthorized) Code() int
Code gets the status code for the list user m f a sessions unauthorized response
func (*ListUserMFASessionsUnauthorized) Error ¶
func (o *ListUserMFASessionsUnauthorized) Error() string
func (*ListUserMFASessionsUnauthorized) GetPayload ¶
func (o *ListUserMFASessionsUnauthorized) GetPayload() *models.Error
func (*ListUserMFASessionsUnauthorized) IsClientError ¶
func (o *ListUserMFASessionsUnauthorized) IsClientError() bool
IsClientError returns true when this list user m f a sessions unauthorized response has a 4xx status code
func (*ListUserMFASessionsUnauthorized) IsCode ¶
func (o *ListUserMFASessionsUnauthorized) IsCode(code int) bool
IsCode returns true when this list user m f a sessions unauthorized response a status code equal to that given
func (*ListUserMFASessionsUnauthorized) IsRedirect ¶
func (o *ListUserMFASessionsUnauthorized) IsRedirect() bool
IsRedirect returns true when this list user m f a sessions unauthorized response has a 3xx status code
func (*ListUserMFASessionsUnauthorized) IsServerError ¶
func (o *ListUserMFASessionsUnauthorized) IsServerError() bool
IsServerError returns true when this list user m f a sessions unauthorized response has a 5xx status code
func (*ListUserMFASessionsUnauthorized) IsSuccess ¶
func (o *ListUserMFASessionsUnauthorized) IsSuccess() bool
IsSuccess returns true when this list user m f a sessions unauthorized response has a 2xx status code
func (*ListUserMFASessionsUnauthorized) String ¶
func (o *ListUserMFASessionsUnauthorized) String() string