Documentation
¶
Index ¶
- type AuthenticateBadRequest
- func (o *AuthenticateBadRequest) Code() int
- func (o *AuthenticateBadRequest) Error() string
- func (o *AuthenticateBadRequest) GetPayload() *rest_model.APIErrorEnvelope
- func (o *AuthenticateBadRequest) IsClientError() bool
- func (o *AuthenticateBadRequest) IsCode(code int) bool
- func (o *AuthenticateBadRequest) IsRedirect() bool
- func (o *AuthenticateBadRequest) IsServerError() bool
- func (o *AuthenticateBadRequest) IsSuccess() bool
- func (o *AuthenticateBadRequest) String() string
- type AuthenticateMfaOK
- func (o *AuthenticateMfaOK) Code() int
- func (o *AuthenticateMfaOK) Error() string
- func (o *AuthenticateMfaOK) GetPayload() *rest_model.Empty
- func (o *AuthenticateMfaOK) IsClientError() bool
- func (o *AuthenticateMfaOK) IsCode(code int) bool
- func (o *AuthenticateMfaOK) IsRedirect() bool
- func (o *AuthenticateMfaOK) IsServerError() bool
- func (o *AuthenticateMfaOK) IsSuccess() bool
- func (o *AuthenticateMfaOK) String() string
- type AuthenticateMfaParams
- func NewAuthenticateMfaParams() *AuthenticateMfaParams
- func NewAuthenticateMfaParamsWithContext(ctx context.Context) *AuthenticateMfaParams
- func NewAuthenticateMfaParamsWithHTTPClient(client *http.Client) *AuthenticateMfaParams
- func NewAuthenticateMfaParamsWithTimeout(timeout time.Duration) *AuthenticateMfaParams
- func (o *AuthenticateMfaParams) SetContext(ctx context.Context)
- func (o *AuthenticateMfaParams) SetDefaults()
- func (o *AuthenticateMfaParams) SetHTTPClient(client *http.Client)
- func (o *AuthenticateMfaParams) SetMfaAuth(mfaAuth *rest_model.MfaCode)
- func (o *AuthenticateMfaParams) SetTimeout(timeout time.Duration)
- func (o *AuthenticateMfaParams) WithContext(ctx context.Context) *AuthenticateMfaParams
- func (o *AuthenticateMfaParams) WithDefaults() *AuthenticateMfaParams
- func (o *AuthenticateMfaParams) WithHTTPClient(client *http.Client) *AuthenticateMfaParams
- func (o *AuthenticateMfaParams) WithMfaAuth(mfaAuth *rest_model.MfaCode) *AuthenticateMfaParams
- func (o *AuthenticateMfaParams) WithTimeout(timeout time.Duration) *AuthenticateMfaParams
- func (o *AuthenticateMfaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AuthenticateMfaReader
- type AuthenticateMfaTooManyRequests
- func (o *AuthenticateMfaTooManyRequests) Code() int
- func (o *AuthenticateMfaTooManyRequests) Error() string
- func (o *AuthenticateMfaTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
- func (o *AuthenticateMfaTooManyRequests) IsClientError() bool
- func (o *AuthenticateMfaTooManyRequests) IsCode(code int) bool
- func (o *AuthenticateMfaTooManyRequests) IsRedirect() bool
- func (o *AuthenticateMfaTooManyRequests) IsServerError() bool
- func (o *AuthenticateMfaTooManyRequests) IsSuccess() bool
- func (o *AuthenticateMfaTooManyRequests) String() string
- type AuthenticateMfaUnauthorized
- func (o *AuthenticateMfaUnauthorized) Code() int
- func (o *AuthenticateMfaUnauthorized) Error() string
- func (o *AuthenticateMfaUnauthorized) GetPayload() *rest_model.Empty
- func (o *AuthenticateMfaUnauthorized) IsClientError() bool
- func (o *AuthenticateMfaUnauthorized) IsCode(code int) bool
- func (o *AuthenticateMfaUnauthorized) IsRedirect() bool
- func (o *AuthenticateMfaUnauthorized) IsServerError() bool
- func (o *AuthenticateMfaUnauthorized) IsSuccess() bool
- func (o *AuthenticateMfaUnauthorized) String() string
- type AuthenticateOK
- func (o *AuthenticateOK) Code() int
- func (o *AuthenticateOK) Error() string
- func (o *AuthenticateOK) GetPayload() *rest_model.CurrentAPISessionDetailEnvelope
- func (o *AuthenticateOK) IsClientError() bool
- func (o *AuthenticateOK) IsCode(code int) bool
- func (o *AuthenticateOK) IsRedirect() bool
- func (o *AuthenticateOK) IsServerError() bool
- func (o *AuthenticateOK) IsSuccess() bool
- func (o *AuthenticateOK) String() string
- type AuthenticateParams
- func (o *AuthenticateParams) SetAuth(auth *rest_model.Authenticate)
- func (o *AuthenticateParams) SetContext(ctx context.Context)
- func (o *AuthenticateParams) SetDefaults()
- func (o *AuthenticateParams) SetHTTPClient(client *http.Client)
- func (o *AuthenticateParams) SetMethod(method string)
- func (o *AuthenticateParams) SetTimeout(timeout time.Duration)
- func (o *AuthenticateParams) WithAuth(auth *rest_model.Authenticate) *AuthenticateParams
- func (o *AuthenticateParams) WithContext(ctx context.Context) *AuthenticateParams
- func (o *AuthenticateParams) WithDefaults() *AuthenticateParams
- func (o *AuthenticateParams) WithHTTPClient(client *http.Client) *AuthenticateParams
- func (o *AuthenticateParams) WithMethod(method string) *AuthenticateParams
- func (o *AuthenticateParams) WithTimeout(timeout time.Duration) *AuthenticateParams
- func (o *AuthenticateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AuthenticateReader
- type AuthenticateTooManyRequests
- func (o *AuthenticateTooManyRequests) Code() int
- func (o *AuthenticateTooManyRequests) Error() string
- func (o *AuthenticateTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
- func (o *AuthenticateTooManyRequests) IsClientError() bool
- func (o *AuthenticateTooManyRequests) IsCode(code int) bool
- func (o *AuthenticateTooManyRequests) IsRedirect() bool
- func (o *AuthenticateTooManyRequests) IsServerError() bool
- func (o *AuthenticateTooManyRequests) IsSuccess() bool
- func (o *AuthenticateTooManyRequests) String() string
- type AuthenticateUnauthorized
- func (o *AuthenticateUnauthorized) Code() int
- func (o *AuthenticateUnauthorized) Error() string
- func (o *AuthenticateUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
- func (o *AuthenticateUnauthorized) IsClientError() bool
- func (o *AuthenticateUnauthorized) IsCode(code int) bool
- func (o *AuthenticateUnauthorized) IsRedirect() bool
- func (o *AuthenticateUnauthorized) IsServerError() bool
- func (o *AuthenticateUnauthorized) IsSuccess() bool
- func (o *AuthenticateUnauthorized) String() string
- type Client
- func (a *Client) Authenticate(params *AuthenticateParams, opts ...ClientOption) (*AuthenticateOK, error)
- func (a *Client) AuthenticateMfa(params *AuthenticateMfaParams, authInfo runtime.ClientAuthInfoWriter, ...) (*AuthenticateMfaOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthenticateBadRequest ¶
type AuthenticateBadRequest struct {
/* Denotes different type of security token related information
*/
WWWAuthenticate []string
Payload *rest_model.APIErrorEnvelope
}
AuthenticateBadRequest describes a response with status code 400, with default header values.
The supplied request contains invalid fields or could not be parsed (json and non-json bodies). The error's code, message, and cause fields can be inspected for further information
func NewAuthenticateBadRequest ¶
func NewAuthenticateBadRequest() *AuthenticateBadRequest
NewAuthenticateBadRequest creates a AuthenticateBadRequest with default headers values
func (*AuthenticateBadRequest) Code ¶ added in v0.26.53
func (o *AuthenticateBadRequest) Code() int
Code gets the status code for the authenticate bad request response
func (*AuthenticateBadRequest) Error ¶
func (o *AuthenticateBadRequest) Error() string
func (*AuthenticateBadRequest) GetPayload ¶
func (o *AuthenticateBadRequest) GetPayload() *rest_model.APIErrorEnvelope
func (*AuthenticateBadRequest) IsClientError ¶ added in v0.26.53
func (o *AuthenticateBadRequest) IsClientError() bool
IsClientError returns true when this authenticate bad request response has a 4xx status code
func (*AuthenticateBadRequest) IsCode ¶ added in v0.26.53
func (o *AuthenticateBadRequest) IsCode(code int) bool
IsCode returns true when this authenticate bad request response a status code equal to that given
func (*AuthenticateBadRequest) IsRedirect ¶ added in v0.26.53
func (o *AuthenticateBadRequest) IsRedirect() bool
IsRedirect returns true when this authenticate bad request response has a 3xx status code
func (*AuthenticateBadRequest) IsServerError ¶ added in v0.26.53
func (o *AuthenticateBadRequest) IsServerError() bool
IsServerError returns true when this authenticate bad request response has a 5xx status code
func (*AuthenticateBadRequest) IsSuccess ¶ added in v0.26.53
func (o *AuthenticateBadRequest) IsSuccess() bool
IsSuccess returns true when this authenticate bad request response has a 2xx status code
func (*AuthenticateBadRequest) String ¶ added in v0.26.53
func (o *AuthenticateBadRequest) String() string
type AuthenticateMfaOK ¶
type AuthenticateMfaOK struct {
/* Denotes different type of security token related information
*/
WWWAuthenticate []string
Payload *rest_model.Empty
}
AuthenticateMfaOK describes a response with status code 200, with default header values.
Base empty response
func NewAuthenticateMfaOK ¶
func NewAuthenticateMfaOK() *AuthenticateMfaOK
NewAuthenticateMfaOK creates a AuthenticateMfaOK with default headers values
func (*AuthenticateMfaOK) Code ¶ added in v0.26.53
func (o *AuthenticateMfaOK) Code() int
Code gets the status code for the authenticate mfa o k response
func (*AuthenticateMfaOK) Error ¶
func (o *AuthenticateMfaOK) Error() string
func (*AuthenticateMfaOK) GetPayload ¶
func (o *AuthenticateMfaOK) GetPayload() *rest_model.Empty
func (*AuthenticateMfaOK) IsClientError ¶ added in v0.26.53
func (o *AuthenticateMfaOK) IsClientError() bool
IsClientError returns true when this authenticate mfa o k response has a 4xx status code
func (*AuthenticateMfaOK) IsCode ¶ added in v0.26.53
func (o *AuthenticateMfaOK) IsCode(code int) bool
IsCode returns true when this authenticate mfa o k response a status code equal to that given
func (*AuthenticateMfaOK) IsRedirect ¶ added in v0.26.53
func (o *AuthenticateMfaOK) IsRedirect() bool
IsRedirect returns true when this authenticate mfa o k response has a 3xx status code
func (*AuthenticateMfaOK) IsServerError ¶ added in v0.26.53
func (o *AuthenticateMfaOK) IsServerError() bool
IsServerError returns true when this authenticate mfa o k response has a 5xx status code
func (*AuthenticateMfaOK) IsSuccess ¶ added in v0.26.53
func (o *AuthenticateMfaOK) IsSuccess() bool
IsSuccess returns true when this authenticate mfa o k response has a 2xx status code
func (*AuthenticateMfaOK) String ¶ added in v0.26.53
func (o *AuthenticateMfaOK) String() string
type AuthenticateMfaParams ¶
type AuthenticateMfaParams struct {
/* MfaAuth.
An MFA validation request
*/
MfaAuth *rest_model.MfaCode
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
AuthenticateMfaParams contains all the parameters to send to the API endpoint
for the authenticate mfa operation. Typically these are written to a http.Request.
func NewAuthenticateMfaParams ¶
func NewAuthenticateMfaParams() *AuthenticateMfaParams
NewAuthenticateMfaParams creates a new AuthenticateMfaParams 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 NewAuthenticateMfaParamsWithContext ¶
func NewAuthenticateMfaParamsWithContext(ctx context.Context) *AuthenticateMfaParams
NewAuthenticateMfaParamsWithContext creates a new AuthenticateMfaParams object with the ability to set a context for a request.
func NewAuthenticateMfaParamsWithHTTPClient ¶
func NewAuthenticateMfaParamsWithHTTPClient(client *http.Client) *AuthenticateMfaParams
NewAuthenticateMfaParamsWithHTTPClient creates a new AuthenticateMfaParams object with the ability to set a custom HTTPClient for a request.
func NewAuthenticateMfaParamsWithTimeout ¶
func NewAuthenticateMfaParamsWithTimeout(timeout time.Duration) *AuthenticateMfaParams
NewAuthenticateMfaParamsWithTimeout creates a new AuthenticateMfaParams object with the ability to set a timeout on a request.
func (*AuthenticateMfaParams) SetContext ¶
func (o *AuthenticateMfaParams) SetContext(ctx context.Context)
SetContext adds the context to the authenticate mfa params
func (*AuthenticateMfaParams) SetDefaults ¶
func (o *AuthenticateMfaParams) SetDefaults()
SetDefaults hydrates default values in the authenticate mfa params (not the query body).
All values with no default are reset to their zero value.
func (*AuthenticateMfaParams) SetHTTPClient ¶
func (o *AuthenticateMfaParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the authenticate mfa params
func (*AuthenticateMfaParams) SetMfaAuth ¶
func (o *AuthenticateMfaParams) SetMfaAuth(mfaAuth *rest_model.MfaCode)
SetMfaAuth adds the mfaAuth to the authenticate mfa params
func (*AuthenticateMfaParams) SetTimeout ¶
func (o *AuthenticateMfaParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the authenticate mfa params
func (*AuthenticateMfaParams) WithContext ¶
func (o *AuthenticateMfaParams) WithContext(ctx context.Context) *AuthenticateMfaParams
WithContext adds the context to the authenticate mfa params
func (*AuthenticateMfaParams) WithDefaults ¶
func (o *AuthenticateMfaParams) WithDefaults() *AuthenticateMfaParams
WithDefaults hydrates default values in the authenticate mfa params (not the query body).
All values with no default are reset to their zero value.
func (*AuthenticateMfaParams) WithHTTPClient ¶
func (o *AuthenticateMfaParams) WithHTTPClient(client *http.Client) *AuthenticateMfaParams
WithHTTPClient adds the HTTPClient to the authenticate mfa params
func (*AuthenticateMfaParams) WithMfaAuth ¶
func (o *AuthenticateMfaParams) WithMfaAuth(mfaAuth *rest_model.MfaCode) *AuthenticateMfaParams
WithMfaAuth adds the mfaAuth to the authenticate mfa params
func (*AuthenticateMfaParams) WithTimeout ¶
func (o *AuthenticateMfaParams) WithTimeout(timeout time.Duration) *AuthenticateMfaParams
WithTimeout adds the timeout to the authenticate mfa params
func (*AuthenticateMfaParams) WriteToRequest ¶
func (o *AuthenticateMfaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AuthenticateMfaReader ¶
type AuthenticateMfaReader struct {
// contains filtered or unexported fields
}
AuthenticateMfaReader is a Reader for the AuthenticateMfa structure.
func (*AuthenticateMfaReader) ReadResponse ¶
func (o *AuthenticateMfaReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type AuthenticateMfaTooManyRequests ¶ added in v0.26.7
type AuthenticateMfaTooManyRequests struct {
/* Denotes different type of security token related information
*/
WWWAuthenticate []string
Payload *rest_model.APIErrorEnvelope
}
AuthenticateMfaTooManyRequests describes a response with status code 429, with default header values.
The resource requested is rate limited and the rate limit has been exceeded
func NewAuthenticateMfaTooManyRequests ¶ added in v0.26.7
func NewAuthenticateMfaTooManyRequests() *AuthenticateMfaTooManyRequests
NewAuthenticateMfaTooManyRequests creates a AuthenticateMfaTooManyRequests with default headers values
func (*AuthenticateMfaTooManyRequests) Code ¶ added in v0.26.53
func (o *AuthenticateMfaTooManyRequests) Code() int
Code gets the status code for the authenticate mfa too many requests response
func (*AuthenticateMfaTooManyRequests) Error ¶ added in v0.26.7
func (o *AuthenticateMfaTooManyRequests) Error() string
func (*AuthenticateMfaTooManyRequests) GetPayload ¶ added in v0.26.7
func (o *AuthenticateMfaTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
func (*AuthenticateMfaTooManyRequests) IsClientError ¶ added in v0.26.53
func (o *AuthenticateMfaTooManyRequests) IsClientError() bool
IsClientError returns true when this authenticate mfa too many requests response has a 4xx status code
func (*AuthenticateMfaTooManyRequests) IsCode ¶ added in v0.26.53
func (o *AuthenticateMfaTooManyRequests) IsCode(code int) bool
IsCode returns true when this authenticate mfa too many requests response a status code equal to that given
func (*AuthenticateMfaTooManyRequests) IsRedirect ¶ added in v0.26.53
func (o *AuthenticateMfaTooManyRequests) IsRedirect() bool
IsRedirect returns true when this authenticate mfa too many requests response has a 3xx status code
func (*AuthenticateMfaTooManyRequests) IsServerError ¶ added in v0.26.53
func (o *AuthenticateMfaTooManyRequests) IsServerError() bool
IsServerError returns true when this authenticate mfa too many requests response has a 5xx status code
func (*AuthenticateMfaTooManyRequests) IsSuccess ¶ added in v0.26.53
func (o *AuthenticateMfaTooManyRequests) IsSuccess() bool
IsSuccess returns true when this authenticate mfa too many requests response has a 2xx status code
func (*AuthenticateMfaTooManyRequests) String ¶ added in v0.26.53
func (o *AuthenticateMfaTooManyRequests) String() string
type AuthenticateMfaUnauthorized ¶
type AuthenticateMfaUnauthorized struct {
WWWAuthenticate []string
}
AuthenticateMfaUnauthorized describes a response with status code 401, with default header values.
Base empty response
func NewAuthenticateMfaUnauthorized ¶
func NewAuthenticateMfaUnauthorized() *AuthenticateMfaUnauthorized
NewAuthenticateMfaUnauthorized creates a AuthenticateMfaUnauthorized with default headers values
func (*AuthenticateMfaUnauthorized) Code ¶ added in v0.26.53
func (o *AuthenticateMfaUnauthorized) Code() int
Code gets the status code for the authenticate mfa unauthorized response
func (*AuthenticateMfaUnauthorized) Error ¶
func (o *AuthenticateMfaUnauthorized) Error() string
func (*AuthenticateMfaUnauthorized) GetPayload ¶
func (o *AuthenticateMfaUnauthorized) GetPayload() *rest_model.Empty
func (*AuthenticateMfaUnauthorized) IsClientError ¶ added in v0.26.53
func (o *AuthenticateMfaUnauthorized) IsClientError() bool
IsClientError returns true when this authenticate mfa unauthorized response has a 4xx status code
func (*AuthenticateMfaUnauthorized) IsCode ¶ added in v0.26.53
func (o *AuthenticateMfaUnauthorized) IsCode(code int) bool
IsCode returns true when this authenticate mfa unauthorized response a status code equal to that given
func (*AuthenticateMfaUnauthorized) IsRedirect ¶ added in v0.26.53
func (o *AuthenticateMfaUnauthorized) IsRedirect() bool
IsRedirect returns true when this authenticate mfa unauthorized response has a 3xx status code
func (*AuthenticateMfaUnauthorized) IsServerError ¶ added in v0.26.53
func (o *AuthenticateMfaUnauthorized) IsServerError() bool
IsServerError returns true when this authenticate mfa unauthorized response has a 5xx status code
func (*AuthenticateMfaUnauthorized) IsSuccess ¶ added in v0.26.53
func (o *AuthenticateMfaUnauthorized) IsSuccess() bool
IsSuccess returns true when this authenticate mfa unauthorized response has a 2xx status code
func (*AuthenticateMfaUnauthorized) String ¶ added in v0.26.53
func (o *AuthenticateMfaUnauthorized) String() string
type AuthenticateOK ¶
type AuthenticateOK struct {
/* Denotes different type of security token related information
*/
WWWAuthenticate []string
Payload *rest_model.CurrentAPISessionDetailEnvelope
}
AuthenticateOK describes a response with status code 200, with default header values.
The API session associated with the session used to issue the request
func NewAuthenticateOK ¶
func NewAuthenticateOK() *AuthenticateOK
NewAuthenticateOK creates a AuthenticateOK with default headers values
func (*AuthenticateOK) Code ¶ added in v0.26.53
func (o *AuthenticateOK) Code() int
Code gets the status code for the authenticate o k response
func (*AuthenticateOK) Error ¶
func (o *AuthenticateOK) Error() string
func (*AuthenticateOK) GetPayload ¶
func (o *AuthenticateOK) GetPayload() *rest_model.CurrentAPISessionDetailEnvelope
func (*AuthenticateOK) IsClientError ¶ added in v0.26.53
func (o *AuthenticateOK) IsClientError() bool
IsClientError returns true when this authenticate o k response has a 4xx status code
func (*AuthenticateOK) IsCode ¶ added in v0.26.53
func (o *AuthenticateOK) IsCode(code int) bool
IsCode returns true when this authenticate o k response a status code equal to that given
func (*AuthenticateOK) IsRedirect ¶ added in v0.26.53
func (o *AuthenticateOK) IsRedirect() bool
IsRedirect returns true when this authenticate o k response has a 3xx status code
func (*AuthenticateOK) IsServerError ¶ added in v0.26.53
func (o *AuthenticateOK) IsServerError() bool
IsServerError returns true when this authenticate o k response has a 5xx status code
func (*AuthenticateOK) IsSuccess ¶ added in v0.26.53
func (o *AuthenticateOK) IsSuccess() bool
IsSuccess returns true when this authenticate o k response has a 2xx status code
func (*AuthenticateOK) String ¶ added in v0.26.53
func (o *AuthenticateOK) String() string
type AuthenticateParams ¶
type AuthenticateParams struct {
// Auth.
Auth *rest_model.Authenticate
// Method.
Method string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
AuthenticateParams contains all the parameters to send to the API endpoint
for the authenticate operation. Typically these are written to a http.Request.
func NewAuthenticateParams ¶
func NewAuthenticateParams() *AuthenticateParams
NewAuthenticateParams creates a new AuthenticateParams 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 NewAuthenticateParamsWithContext ¶
func NewAuthenticateParamsWithContext(ctx context.Context) *AuthenticateParams
NewAuthenticateParamsWithContext creates a new AuthenticateParams object with the ability to set a context for a request.
func NewAuthenticateParamsWithHTTPClient ¶
func NewAuthenticateParamsWithHTTPClient(client *http.Client) *AuthenticateParams
NewAuthenticateParamsWithHTTPClient creates a new AuthenticateParams object with the ability to set a custom HTTPClient for a request.
func NewAuthenticateParamsWithTimeout ¶
func NewAuthenticateParamsWithTimeout(timeout time.Duration) *AuthenticateParams
NewAuthenticateParamsWithTimeout creates a new AuthenticateParams object with the ability to set a timeout on a request.
func (*AuthenticateParams) SetAuth ¶
func (o *AuthenticateParams) SetAuth(auth *rest_model.Authenticate)
SetAuth adds the auth to the authenticate params
func (*AuthenticateParams) SetContext ¶
func (o *AuthenticateParams) SetContext(ctx context.Context)
SetContext adds the context to the authenticate params
func (*AuthenticateParams) SetDefaults ¶
func (o *AuthenticateParams) SetDefaults()
SetDefaults hydrates default values in the authenticate params (not the query body).
All values with no default are reset to their zero value.
func (*AuthenticateParams) SetHTTPClient ¶
func (o *AuthenticateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the authenticate params
func (*AuthenticateParams) SetMethod ¶
func (o *AuthenticateParams) SetMethod(method string)
SetMethod adds the method to the authenticate params
func (*AuthenticateParams) SetTimeout ¶
func (o *AuthenticateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the authenticate params
func (*AuthenticateParams) WithAuth ¶
func (o *AuthenticateParams) WithAuth(auth *rest_model.Authenticate) *AuthenticateParams
WithAuth adds the auth to the authenticate params
func (*AuthenticateParams) WithContext ¶
func (o *AuthenticateParams) WithContext(ctx context.Context) *AuthenticateParams
WithContext adds the context to the authenticate params
func (*AuthenticateParams) WithDefaults ¶
func (o *AuthenticateParams) WithDefaults() *AuthenticateParams
WithDefaults hydrates default values in the authenticate params (not the query body).
All values with no default are reset to their zero value.
func (*AuthenticateParams) WithHTTPClient ¶
func (o *AuthenticateParams) WithHTTPClient(client *http.Client) *AuthenticateParams
WithHTTPClient adds the HTTPClient to the authenticate params
func (*AuthenticateParams) WithMethod ¶
func (o *AuthenticateParams) WithMethod(method string) *AuthenticateParams
WithMethod adds the method to the authenticate params
func (*AuthenticateParams) WithTimeout ¶
func (o *AuthenticateParams) WithTimeout(timeout time.Duration) *AuthenticateParams
WithTimeout adds the timeout to the authenticate params
func (*AuthenticateParams) WriteToRequest ¶
func (o *AuthenticateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AuthenticateReader ¶
type AuthenticateReader struct {
// contains filtered or unexported fields
}
AuthenticateReader is a Reader for the Authenticate structure.
func (*AuthenticateReader) ReadResponse ¶
func (o *AuthenticateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type AuthenticateTooManyRequests ¶ added in v0.26.7
type AuthenticateTooManyRequests struct {
/* Denotes different type of security token related information
*/
WWWAuthenticate []string
Payload *rest_model.APIErrorEnvelope
}
AuthenticateTooManyRequests describes a response with status code 429, with default header values.
The resource requested is rate limited and the rate limit has been exceeded
func NewAuthenticateTooManyRequests ¶ added in v0.26.7
func NewAuthenticateTooManyRequests() *AuthenticateTooManyRequests
NewAuthenticateTooManyRequests creates a AuthenticateTooManyRequests with default headers values
func (*AuthenticateTooManyRequests) Code ¶ added in v0.26.53
func (o *AuthenticateTooManyRequests) Code() int
Code gets the status code for the authenticate too many requests response
func (*AuthenticateTooManyRequests) Error ¶ added in v0.26.7
func (o *AuthenticateTooManyRequests) Error() string
func (*AuthenticateTooManyRequests) GetPayload ¶ added in v0.26.7
func (o *AuthenticateTooManyRequests) GetPayload() *rest_model.APIErrorEnvelope
func (*AuthenticateTooManyRequests) IsClientError ¶ added in v0.26.53
func (o *AuthenticateTooManyRequests) IsClientError() bool
IsClientError returns true when this authenticate too many requests response has a 4xx status code
func (*AuthenticateTooManyRequests) IsCode ¶ added in v0.26.53
func (o *AuthenticateTooManyRequests) IsCode(code int) bool
IsCode returns true when this authenticate too many requests response a status code equal to that given
func (*AuthenticateTooManyRequests) IsRedirect ¶ added in v0.26.53
func (o *AuthenticateTooManyRequests) IsRedirect() bool
IsRedirect returns true when this authenticate too many requests response has a 3xx status code
func (*AuthenticateTooManyRequests) IsServerError ¶ added in v0.26.53
func (o *AuthenticateTooManyRequests) IsServerError() bool
IsServerError returns true when this authenticate too many requests response has a 5xx status code
func (*AuthenticateTooManyRequests) IsSuccess ¶ added in v0.26.53
func (o *AuthenticateTooManyRequests) IsSuccess() bool
IsSuccess returns true when this authenticate too many requests response has a 2xx status code
func (*AuthenticateTooManyRequests) String ¶ added in v0.26.53
func (o *AuthenticateTooManyRequests) String() string
type AuthenticateUnauthorized ¶ added in v0.25.15
type AuthenticateUnauthorized struct {
WWWAuthenticate []string
}
AuthenticateUnauthorized describes a response with status code 401, with default header values.
The authentication request could not be processed as the credentials are invalid
func NewAuthenticateUnauthorized ¶ added in v0.25.15
func NewAuthenticateUnauthorized() *AuthenticateUnauthorized
NewAuthenticateUnauthorized creates a AuthenticateUnauthorized with default headers values
func (*AuthenticateUnauthorized) Code ¶ added in v0.26.53
func (o *AuthenticateUnauthorized) Code() int
Code gets the status code for the authenticate unauthorized response
func (*AuthenticateUnauthorized) Error ¶ added in v0.25.15
func (o *AuthenticateUnauthorized) Error() string
func (*AuthenticateUnauthorized) GetPayload ¶ added in v0.25.15
func (o *AuthenticateUnauthorized) GetPayload() *rest_model.APIErrorEnvelope
func (*AuthenticateUnauthorized) IsClientError ¶ added in v0.26.53
func (o *AuthenticateUnauthorized) IsClientError() bool
IsClientError returns true when this authenticate unauthorized response has a 4xx status code
func (*AuthenticateUnauthorized) IsCode ¶ added in v0.26.53
func (o *AuthenticateUnauthorized) IsCode(code int) bool
IsCode returns true when this authenticate unauthorized response a status code equal to that given
func (*AuthenticateUnauthorized) IsRedirect ¶ added in v0.26.53
func (o *AuthenticateUnauthorized) IsRedirect() bool
IsRedirect returns true when this authenticate unauthorized response has a 3xx status code
func (*AuthenticateUnauthorized) IsServerError ¶ added in v0.26.53
func (o *AuthenticateUnauthorized) IsServerError() bool
IsServerError returns true when this authenticate unauthorized response has a 5xx status code
func (*AuthenticateUnauthorized) IsSuccess ¶ added in v0.26.53
func (o *AuthenticateUnauthorized) IsSuccess() bool
IsSuccess returns true when this authenticate unauthorized response has a 2xx status code
func (*AuthenticateUnauthorized) String ¶ added in v0.26.53
func (o *AuthenticateUnauthorized) String() string
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for authentication API
func (*Client) Authenticate ¶
func (a *Client) Authenticate(params *AuthenticateParams, opts ...ClientOption) (*AuthenticateOK, error)
Authenticate authenticates via a method supplied via a query string parameter
Allowed authentication methods include "password", "cert", and "ext-jwt"
func (*Client) AuthenticateMfa ¶
func (a *Client) AuthenticateMfa(params *AuthenticateMfaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuthenticateMfaOK, error)
AuthenticateMfa completes m f a authentication
Completes MFA authentication by submitting a MFA time based one time token or backup code.
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 {
Authenticate(params *AuthenticateParams, opts ...ClientOption) (*AuthenticateOK, error)
AuthenticateMfa(params *AuthenticateMfaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuthenticateMfaOK, 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 authentication API client.
func NewClientWithBasicAuth ¶ added in v0.26.53
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new authentication 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 ¶ added in v0.26.53
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new authentication 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.