Documentation
¶
Index ¶
- type Client
- func (a *Client) GetAuthValidate(params *GetAuthValidateParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAuthValidateOK, error)
- func (a *Client) PostAuthLogout(params *PostAuthLogoutParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostAuthLogoutOK, error)
- func (a *Client) PostAuthRefresh(params *PostAuthRefreshParams, opts ...ClientOption) (*PostAuthRefreshOK, error)
- func (a *Client) PostAuthToken(params *PostAuthTokenParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostAuthTokenOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetAuthValidateOK
- func (o *GetAuthValidateOK) Code() int
- func (o *GetAuthValidateOK) Error() string
- func (o *GetAuthValidateOK) GetPayload() *models.ValidateResponse
- func (o *GetAuthValidateOK) IsClientError() bool
- func (o *GetAuthValidateOK) IsCode(code int) bool
- func (o *GetAuthValidateOK) IsRedirect() bool
- func (o *GetAuthValidateOK) IsServerError() bool
- func (o *GetAuthValidateOK) IsSuccess() bool
- func (o *GetAuthValidateOK) String() string
- type GetAuthValidateParams
- func NewGetAuthValidateParams() *GetAuthValidateParams
- func NewGetAuthValidateParamsWithContext(ctx context.Context) *GetAuthValidateParams
- func NewGetAuthValidateParamsWithHTTPClient(client *http.Client) *GetAuthValidateParams
- func NewGetAuthValidateParamsWithTimeout(timeout time.Duration) *GetAuthValidateParams
- func (o *GetAuthValidateParams) SetContext(ctx context.Context)
- func (o *GetAuthValidateParams) SetDefaults()
- func (o *GetAuthValidateParams) SetHTTPClient(client *http.Client)
- func (o *GetAuthValidateParams) SetTimeout(timeout time.Duration)
- func (o *GetAuthValidateParams) WithContext(ctx context.Context) *GetAuthValidateParams
- func (o *GetAuthValidateParams) WithDefaults() *GetAuthValidateParams
- func (o *GetAuthValidateParams) WithHTTPClient(client *http.Client) *GetAuthValidateParams
- func (o *GetAuthValidateParams) WithTimeout(timeout time.Duration) *GetAuthValidateParams
- func (o *GetAuthValidateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAuthValidateReader
- type GetAuthValidateUnauthorized
- func (o *GetAuthValidateUnauthorized) Code() int
- func (o *GetAuthValidateUnauthorized) Error() string
- func (o *GetAuthValidateUnauthorized) GetPayload() *models.ErrorResponse
- func (o *GetAuthValidateUnauthorized) IsClientError() bool
- func (o *GetAuthValidateUnauthorized) IsCode(code int) bool
- func (o *GetAuthValidateUnauthorized) IsRedirect() bool
- func (o *GetAuthValidateUnauthorized) IsServerError() bool
- func (o *GetAuthValidateUnauthorized) IsSuccess() bool
- func (o *GetAuthValidateUnauthorized) String() string
- type PostAuthLogoutOK
- func (o *PostAuthLogoutOK) Code() int
- func (o *PostAuthLogoutOK) Error() string
- func (o *PostAuthLogoutOK) GetPayload() *models.LogoutResponse
- func (o *PostAuthLogoutOK) IsClientError() bool
- func (o *PostAuthLogoutOK) IsCode(code int) bool
- func (o *PostAuthLogoutOK) IsRedirect() bool
- func (o *PostAuthLogoutOK) IsServerError() bool
- func (o *PostAuthLogoutOK) IsSuccess() bool
- func (o *PostAuthLogoutOK) String() string
- type PostAuthLogoutParams
- func NewPostAuthLogoutParams() *PostAuthLogoutParams
- func NewPostAuthLogoutParamsWithContext(ctx context.Context) *PostAuthLogoutParams
- func NewPostAuthLogoutParamsWithHTTPClient(client *http.Client) *PostAuthLogoutParams
- func NewPostAuthLogoutParamsWithTimeout(timeout time.Duration) *PostAuthLogoutParams
- func (o *PostAuthLogoutParams) SetContext(ctx context.Context)
- func (o *PostAuthLogoutParams) SetDefaults()
- func (o *PostAuthLogoutParams) SetHTTPClient(client *http.Client)
- func (o *PostAuthLogoutParams) SetTimeout(timeout time.Duration)
- func (o *PostAuthLogoutParams) WithContext(ctx context.Context) *PostAuthLogoutParams
- func (o *PostAuthLogoutParams) WithDefaults() *PostAuthLogoutParams
- func (o *PostAuthLogoutParams) WithHTTPClient(client *http.Client) *PostAuthLogoutParams
- func (o *PostAuthLogoutParams) WithTimeout(timeout time.Duration) *PostAuthLogoutParams
- func (o *PostAuthLogoutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAuthLogoutReader
- type PostAuthLogoutServiceUnavailable
- func (o *PostAuthLogoutServiceUnavailable) Code() int
- func (o *PostAuthLogoutServiceUnavailable) Error() string
- func (o *PostAuthLogoutServiceUnavailable) GetPayload() *models.ErrorResponse
- func (o *PostAuthLogoutServiceUnavailable) IsClientError() bool
- func (o *PostAuthLogoutServiceUnavailable) IsCode(code int) bool
- func (o *PostAuthLogoutServiceUnavailable) IsRedirect() bool
- func (o *PostAuthLogoutServiceUnavailable) IsServerError() bool
- func (o *PostAuthLogoutServiceUnavailable) IsSuccess() bool
- func (o *PostAuthLogoutServiceUnavailable) String() string
- type PostAuthLogoutUnauthorized
- func (o *PostAuthLogoutUnauthorized) Code() int
- func (o *PostAuthLogoutUnauthorized) Error() string
- func (o *PostAuthLogoutUnauthorized) GetPayload() *models.ErrorResponse
- func (o *PostAuthLogoutUnauthorized) IsClientError() bool
- func (o *PostAuthLogoutUnauthorized) IsCode(code int) bool
- func (o *PostAuthLogoutUnauthorized) IsRedirect() bool
- func (o *PostAuthLogoutUnauthorized) IsServerError() bool
- func (o *PostAuthLogoutUnauthorized) IsSuccess() bool
- func (o *PostAuthLogoutUnauthorized) String() string
- type PostAuthRefreshBadRequest
- func (o *PostAuthRefreshBadRequest) Code() int
- func (o *PostAuthRefreshBadRequest) Error() string
- func (o *PostAuthRefreshBadRequest) GetPayload() *models.ErrorResponse
- func (o *PostAuthRefreshBadRequest) IsClientError() bool
- func (o *PostAuthRefreshBadRequest) IsCode(code int) bool
- func (o *PostAuthRefreshBadRequest) IsRedirect() bool
- func (o *PostAuthRefreshBadRequest) IsServerError() bool
- func (o *PostAuthRefreshBadRequest) IsSuccess() bool
- func (o *PostAuthRefreshBadRequest) String() string
- type PostAuthRefreshOK
- func (o *PostAuthRefreshOK) Code() int
- func (o *PostAuthRefreshOK) Error() string
- func (o *PostAuthRefreshOK) GetPayload() *models.TokenResponse
- func (o *PostAuthRefreshOK) IsClientError() bool
- func (o *PostAuthRefreshOK) IsCode(code int) bool
- func (o *PostAuthRefreshOK) IsRedirect() bool
- func (o *PostAuthRefreshOK) IsServerError() bool
- func (o *PostAuthRefreshOK) IsSuccess() bool
- func (o *PostAuthRefreshOK) String() string
- type PostAuthRefreshParams
- func NewPostAuthRefreshParams() *PostAuthRefreshParams
- func NewPostAuthRefreshParamsWithContext(ctx context.Context) *PostAuthRefreshParams
- func NewPostAuthRefreshParamsWithHTTPClient(client *http.Client) *PostAuthRefreshParams
- func NewPostAuthRefreshParamsWithTimeout(timeout time.Duration) *PostAuthRefreshParams
- func (o *PostAuthRefreshParams) SetContext(ctx context.Context)
- func (o *PostAuthRefreshParams) SetDefaults()
- func (o *PostAuthRefreshParams) SetHTTPClient(client *http.Client)
- func (o *PostAuthRefreshParams) SetRequest(request *models.RefreshRequest)
- func (o *PostAuthRefreshParams) SetTimeout(timeout time.Duration)
- func (o *PostAuthRefreshParams) WithContext(ctx context.Context) *PostAuthRefreshParams
- func (o *PostAuthRefreshParams) WithDefaults() *PostAuthRefreshParams
- func (o *PostAuthRefreshParams) WithHTTPClient(client *http.Client) *PostAuthRefreshParams
- func (o *PostAuthRefreshParams) WithRequest(request *models.RefreshRequest) *PostAuthRefreshParams
- func (o *PostAuthRefreshParams) WithTimeout(timeout time.Duration) *PostAuthRefreshParams
- func (o *PostAuthRefreshParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAuthRefreshReader
- type PostAuthRefreshUnauthorized
- func (o *PostAuthRefreshUnauthorized) Code() int
- func (o *PostAuthRefreshUnauthorized) Error() string
- func (o *PostAuthRefreshUnauthorized) GetPayload() *models.ErrorResponse
- func (o *PostAuthRefreshUnauthorized) IsClientError() bool
- func (o *PostAuthRefreshUnauthorized) IsCode(code int) bool
- func (o *PostAuthRefreshUnauthorized) IsRedirect() bool
- func (o *PostAuthRefreshUnauthorized) IsServerError() bool
- func (o *PostAuthRefreshUnauthorized) IsSuccess() bool
- func (o *PostAuthRefreshUnauthorized) String() string
- type PostAuthTokenBadRequest
- func (o *PostAuthTokenBadRequest) Code() int
- func (o *PostAuthTokenBadRequest) Error() string
- func (o *PostAuthTokenBadRequest) GetPayload() *models.ErrorResponse
- func (o *PostAuthTokenBadRequest) IsClientError() bool
- func (o *PostAuthTokenBadRequest) IsCode(code int) bool
- func (o *PostAuthTokenBadRequest) IsRedirect() bool
- func (o *PostAuthTokenBadRequest) IsServerError() bool
- func (o *PostAuthTokenBadRequest) IsSuccess() bool
- func (o *PostAuthTokenBadRequest) String() string
- type PostAuthTokenOK
- func (o *PostAuthTokenOK) Code() int
- func (o *PostAuthTokenOK) Error() string
- func (o *PostAuthTokenOK) GetPayload() *models.TokenResponse
- func (o *PostAuthTokenOK) IsClientError() bool
- func (o *PostAuthTokenOK) IsCode(code int) bool
- func (o *PostAuthTokenOK) IsRedirect() bool
- func (o *PostAuthTokenOK) IsServerError() bool
- func (o *PostAuthTokenOK) IsSuccess() bool
- func (o *PostAuthTokenOK) String() string
- type PostAuthTokenParams
- func (o *PostAuthTokenParams) SetContext(ctx context.Context)
- func (o *PostAuthTokenParams) SetDefaults()
- func (o *PostAuthTokenParams) SetHTTPClient(client *http.Client)
- func (o *PostAuthTokenParams) SetRequest(request *models.TokenRequest)
- func (o *PostAuthTokenParams) SetTimeout(timeout time.Duration)
- func (o *PostAuthTokenParams) WithContext(ctx context.Context) *PostAuthTokenParams
- func (o *PostAuthTokenParams) WithDefaults() *PostAuthTokenParams
- func (o *PostAuthTokenParams) WithHTTPClient(client *http.Client) *PostAuthTokenParams
- func (o *PostAuthTokenParams) WithRequest(request *models.TokenRequest) *PostAuthTokenParams
- func (o *PostAuthTokenParams) WithTimeout(timeout time.Duration) *PostAuthTokenParams
- func (o *PostAuthTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAuthTokenReader
- type PostAuthTokenUnauthorized
- func (o *PostAuthTokenUnauthorized) Code() int
- func (o *PostAuthTokenUnauthorized) Error() string
- func (o *PostAuthTokenUnauthorized) GetPayload() *models.ErrorResponse
- func (o *PostAuthTokenUnauthorized) IsClientError() bool
- func (o *PostAuthTokenUnauthorized) IsCode(code int) bool
- func (o *PostAuthTokenUnauthorized) IsRedirect() bool
- func (o *PostAuthTokenUnauthorized) IsServerError() bool
- func (o *PostAuthTokenUnauthorized) IsSuccess() bool
- func (o *PostAuthTokenUnauthorized) 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 auth API
func (*Client) GetAuthValidate ¶
func (a *Client) GetAuthValidate(params *GetAuthValidateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAuthValidateOK, error)
GetAuthValidate validates j w t token
Validate a JWT token and return its claims
func (*Client) PostAuthLogout ¶
func (a *Client) PostAuthLogout(params *PostAuthLogoutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAuthLogoutOK, error)
PostAuthLogout logouts invalidate token
Invalidates a JWT token by adding it to the blacklist
func (*Client) PostAuthRefresh ¶
func (a *Client) PostAuthRefresh(params *PostAuthRefreshParams, opts ...ClientOption) (*PostAuthRefreshOK, error)
PostAuthRefresh refreshes access token
Generate a new access token using a valid refresh token
func (*Client) PostAuthToken ¶
func (a *Client) PostAuthToken(params *PostAuthTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAuthTokenOK, error)
PostAuthToken generates j w t tokens
Generate new JWT access and refresh tokens using API credentials
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 {
GetAuthValidate(params *GetAuthValidateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAuthValidateOK, error)
PostAuthLogout(params *PostAuthLogoutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAuthLogoutOK, error)
PostAuthRefresh(params *PostAuthRefreshParams, opts ...ClientOption) (*PostAuthRefreshOK, error)
PostAuthToken(params *PostAuthTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAuthTokenOK, 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 auth API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new auth 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 auth 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 GetAuthValidateOK ¶
type GetAuthValidateOK struct {
Payload *models.ValidateResponse
}
GetAuthValidateOK describes a response with status code 200, with default header values.
OK
func NewGetAuthValidateOK ¶
func NewGetAuthValidateOK() *GetAuthValidateOK
NewGetAuthValidateOK creates a GetAuthValidateOK with default headers values
func (*GetAuthValidateOK) Code ¶
func (o *GetAuthValidateOK) Code() int
Code gets the status code for the get auth validate o k response
func (*GetAuthValidateOK) Error ¶
func (o *GetAuthValidateOK) Error() string
func (*GetAuthValidateOK) GetPayload ¶
func (o *GetAuthValidateOK) GetPayload() *models.ValidateResponse
func (*GetAuthValidateOK) IsClientError ¶
func (o *GetAuthValidateOK) IsClientError() bool
IsClientError returns true when this get auth validate o k response has a 4xx status code
func (*GetAuthValidateOK) IsCode ¶
func (o *GetAuthValidateOK) IsCode(code int) bool
IsCode returns true when this get auth validate o k response a status code equal to that given
func (*GetAuthValidateOK) IsRedirect ¶
func (o *GetAuthValidateOK) IsRedirect() bool
IsRedirect returns true when this get auth validate o k response has a 3xx status code
func (*GetAuthValidateOK) IsServerError ¶
func (o *GetAuthValidateOK) IsServerError() bool
IsServerError returns true when this get auth validate o k response has a 5xx status code
func (*GetAuthValidateOK) IsSuccess ¶
func (o *GetAuthValidateOK) IsSuccess() bool
IsSuccess returns true when this get auth validate o k response has a 2xx status code
func (*GetAuthValidateOK) String ¶
func (o *GetAuthValidateOK) String() string
type GetAuthValidateParams ¶
type GetAuthValidateParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetAuthValidateParams contains all the parameters to send to the API endpoint
for the get auth validate operation. Typically these are written to a http.Request.
func NewGetAuthValidateParams ¶
func NewGetAuthValidateParams() *GetAuthValidateParams
NewGetAuthValidateParams creates a new GetAuthValidateParams 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 NewGetAuthValidateParamsWithContext ¶
func NewGetAuthValidateParamsWithContext(ctx context.Context) *GetAuthValidateParams
NewGetAuthValidateParamsWithContext creates a new GetAuthValidateParams object with the ability to set a context for a request.
func NewGetAuthValidateParamsWithHTTPClient ¶
func NewGetAuthValidateParamsWithHTTPClient(client *http.Client) *GetAuthValidateParams
NewGetAuthValidateParamsWithHTTPClient creates a new GetAuthValidateParams object with the ability to set a custom HTTPClient for a request.
func NewGetAuthValidateParamsWithTimeout ¶
func NewGetAuthValidateParamsWithTimeout(timeout time.Duration) *GetAuthValidateParams
NewGetAuthValidateParamsWithTimeout creates a new GetAuthValidateParams object with the ability to set a timeout on a request.
func (*GetAuthValidateParams) SetContext ¶
func (o *GetAuthValidateParams) SetContext(ctx context.Context)
SetContext adds the context to the get auth validate params
func (*GetAuthValidateParams) SetDefaults ¶
func (o *GetAuthValidateParams) SetDefaults()
SetDefaults hydrates default values in the get auth validate params (not the query body).
All values with no default are reset to their zero value.
func (*GetAuthValidateParams) SetHTTPClient ¶
func (o *GetAuthValidateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get auth validate params
func (*GetAuthValidateParams) SetTimeout ¶
func (o *GetAuthValidateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get auth validate params
func (*GetAuthValidateParams) WithContext ¶
func (o *GetAuthValidateParams) WithContext(ctx context.Context) *GetAuthValidateParams
WithContext adds the context to the get auth validate params
func (*GetAuthValidateParams) WithDefaults ¶
func (o *GetAuthValidateParams) WithDefaults() *GetAuthValidateParams
WithDefaults hydrates default values in the get auth validate params (not the query body).
All values with no default are reset to their zero value.
func (*GetAuthValidateParams) WithHTTPClient ¶
func (o *GetAuthValidateParams) WithHTTPClient(client *http.Client) *GetAuthValidateParams
WithHTTPClient adds the HTTPClient to the get auth validate params
func (*GetAuthValidateParams) WithTimeout ¶
func (o *GetAuthValidateParams) WithTimeout(timeout time.Duration) *GetAuthValidateParams
WithTimeout adds the timeout to the get auth validate params
func (*GetAuthValidateParams) WriteToRequest ¶
func (o *GetAuthValidateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAuthValidateReader ¶
type GetAuthValidateReader struct {
// contains filtered or unexported fields
}
GetAuthValidateReader is a Reader for the GetAuthValidate structure.
func (*GetAuthValidateReader) ReadResponse ¶
func (o *GetAuthValidateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAuthValidateUnauthorized ¶
type GetAuthValidateUnauthorized struct {
}
GetAuthValidateUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetAuthValidateUnauthorized ¶
func NewGetAuthValidateUnauthorized() *GetAuthValidateUnauthorized
NewGetAuthValidateUnauthorized creates a GetAuthValidateUnauthorized with default headers values
func (*GetAuthValidateUnauthorized) Code ¶
func (o *GetAuthValidateUnauthorized) Code() int
Code gets the status code for the get auth validate unauthorized response
func (*GetAuthValidateUnauthorized) Error ¶
func (o *GetAuthValidateUnauthorized) Error() string
func (*GetAuthValidateUnauthorized) GetPayload ¶
func (o *GetAuthValidateUnauthorized) GetPayload() *models.ErrorResponse
func (*GetAuthValidateUnauthorized) IsClientError ¶
func (o *GetAuthValidateUnauthorized) IsClientError() bool
IsClientError returns true when this get auth validate unauthorized response has a 4xx status code
func (*GetAuthValidateUnauthorized) IsCode ¶
func (o *GetAuthValidateUnauthorized) IsCode(code int) bool
IsCode returns true when this get auth validate unauthorized response a status code equal to that given
func (*GetAuthValidateUnauthorized) IsRedirect ¶
func (o *GetAuthValidateUnauthorized) IsRedirect() bool
IsRedirect returns true when this get auth validate unauthorized response has a 3xx status code
func (*GetAuthValidateUnauthorized) IsServerError ¶
func (o *GetAuthValidateUnauthorized) IsServerError() bool
IsServerError returns true when this get auth validate unauthorized response has a 5xx status code
func (*GetAuthValidateUnauthorized) IsSuccess ¶
func (o *GetAuthValidateUnauthorized) IsSuccess() bool
IsSuccess returns true when this get auth validate unauthorized response has a 2xx status code
func (*GetAuthValidateUnauthorized) String ¶
func (o *GetAuthValidateUnauthorized) String() string
type PostAuthLogoutOK ¶
type PostAuthLogoutOK struct {
Payload *models.LogoutResponse
}
PostAuthLogoutOK describes a response with status code 200, with default header values.
OK
func NewPostAuthLogoutOK ¶
func NewPostAuthLogoutOK() *PostAuthLogoutOK
NewPostAuthLogoutOK creates a PostAuthLogoutOK with default headers values
func (*PostAuthLogoutOK) Code ¶
func (o *PostAuthLogoutOK) Code() int
Code gets the status code for the post auth logout o k response
func (*PostAuthLogoutOK) Error ¶
func (o *PostAuthLogoutOK) Error() string
func (*PostAuthLogoutOK) GetPayload ¶
func (o *PostAuthLogoutOK) GetPayload() *models.LogoutResponse
func (*PostAuthLogoutOK) IsClientError ¶
func (o *PostAuthLogoutOK) IsClientError() bool
IsClientError returns true when this post auth logout o k response has a 4xx status code
func (*PostAuthLogoutOK) IsCode ¶
func (o *PostAuthLogoutOK) IsCode(code int) bool
IsCode returns true when this post auth logout o k response a status code equal to that given
func (*PostAuthLogoutOK) IsRedirect ¶
func (o *PostAuthLogoutOK) IsRedirect() bool
IsRedirect returns true when this post auth logout o k response has a 3xx status code
func (*PostAuthLogoutOK) IsServerError ¶
func (o *PostAuthLogoutOK) IsServerError() bool
IsServerError returns true when this post auth logout o k response has a 5xx status code
func (*PostAuthLogoutOK) IsSuccess ¶
func (o *PostAuthLogoutOK) IsSuccess() bool
IsSuccess returns true when this post auth logout o k response has a 2xx status code
func (*PostAuthLogoutOK) String ¶
func (o *PostAuthLogoutOK) String() string
type PostAuthLogoutParams ¶
type PostAuthLogoutParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PostAuthLogoutParams contains all the parameters to send to the API endpoint
for the post auth logout operation. Typically these are written to a http.Request.
func NewPostAuthLogoutParams ¶
func NewPostAuthLogoutParams() *PostAuthLogoutParams
NewPostAuthLogoutParams creates a new PostAuthLogoutParams 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 NewPostAuthLogoutParamsWithContext ¶
func NewPostAuthLogoutParamsWithContext(ctx context.Context) *PostAuthLogoutParams
NewPostAuthLogoutParamsWithContext creates a new PostAuthLogoutParams object with the ability to set a context for a request.
func NewPostAuthLogoutParamsWithHTTPClient ¶
func NewPostAuthLogoutParamsWithHTTPClient(client *http.Client) *PostAuthLogoutParams
NewPostAuthLogoutParamsWithHTTPClient creates a new PostAuthLogoutParams object with the ability to set a custom HTTPClient for a request.
func NewPostAuthLogoutParamsWithTimeout ¶
func NewPostAuthLogoutParamsWithTimeout(timeout time.Duration) *PostAuthLogoutParams
NewPostAuthLogoutParamsWithTimeout creates a new PostAuthLogoutParams object with the ability to set a timeout on a request.
func (*PostAuthLogoutParams) SetContext ¶
func (o *PostAuthLogoutParams) SetContext(ctx context.Context)
SetContext adds the context to the post auth logout params
func (*PostAuthLogoutParams) SetDefaults ¶
func (o *PostAuthLogoutParams) SetDefaults()
SetDefaults hydrates default values in the post auth logout params (not the query body).
All values with no default are reset to their zero value.
func (*PostAuthLogoutParams) SetHTTPClient ¶
func (o *PostAuthLogoutParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post auth logout params
func (*PostAuthLogoutParams) SetTimeout ¶
func (o *PostAuthLogoutParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post auth logout params
func (*PostAuthLogoutParams) WithContext ¶
func (o *PostAuthLogoutParams) WithContext(ctx context.Context) *PostAuthLogoutParams
WithContext adds the context to the post auth logout params
func (*PostAuthLogoutParams) WithDefaults ¶
func (o *PostAuthLogoutParams) WithDefaults() *PostAuthLogoutParams
WithDefaults hydrates default values in the post auth logout params (not the query body).
All values with no default are reset to their zero value.
func (*PostAuthLogoutParams) WithHTTPClient ¶
func (o *PostAuthLogoutParams) WithHTTPClient(client *http.Client) *PostAuthLogoutParams
WithHTTPClient adds the HTTPClient to the post auth logout params
func (*PostAuthLogoutParams) WithTimeout ¶
func (o *PostAuthLogoutParams) WithTimeout(timeout time.Duration) *PostAuthLogoutParams
WithTimeout adds the timeout to the post auth logout params
func (*PostAuthLogoutParams) WriteToRequest ¶
func (o *PostAuthLogoutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostAuthLogoutReader ¶
type PostAuthLogoutReader struct {
// contains filtered or unexported fields
}
PostAuthLogoutReader is a Reader for the PostAuthLogout structure.
func (*PostAuthLogoutReader) ReadResponse ¶
func (o *PostAuthLogoutReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostAuthLogoutServiceUnavailable ¶
type PostAuthLogoutServiceUnavailable struct {
}
PostAuthLogoutServiceUnavailable describes a response with status code 503, with default header values.
Service Unavailable
func NewPostAuthLogoutServiceUnavailable ¶
func NewPostAuthLogoutServiceUnavailable() *PostAuthLogoutServiceUnavailable
NewPostAuthLogoutServiceUnavailable creates a PostAuthLogoutServiceUnavailable with default headers values
func (*PostAuthLogoutServiceUnavailable) Code ¶
func (o *PostAuthLogoutServiceUnavailable) Code() int
Code gets the status code for the post auth logout service unavailable response
func (*PostAuthLogoutServiceUnavailable) Error ¶
func (o *PostAuthLogoutServiceUnavailable) Error() string
func (*PostAuthLogoutServiceUnavailable) GetPayload ¶
func (o *PostAuthLogoutServiceUnavailable) GetPayload() *models.ErrorResponse
func (*PostAuthLogoutServiceUnavailable) IsClientError ¶
func (o *PostAuthLogoutServiceUnavailable) IsClientError() bool
IsClientError returns true when this post auth logout service unavailable response has a 4xx status code
func (*PostAuthLogoutServiceUnavailable) IsCode ¶
func (o *PostAuthLogoutServiceUnavailable) IsCode(code int) bool
IsCode returns true when this post auth logout service unavailable response a status code equal to that given
func (*PostAuthLogoutServiceUnavailable) IsRedirect ¶
func (o *PostAuthLogoutServiceUnavailable) IsRedirect() bool
IsRedirect returns true when this post auth logout service unavailable response has a 3xx status code
func (*PostAuthLogoutServiceUnavailable) IsServerError ¶
func (o *PostAuthLogoutServiceUnavailable) IsServerError() bool
IsServerError returns true when this post auth logout service unavailable response has a 5xx status code
func (*PostAuthLogoutServiceUnavailable) IsSuccess ¶
func (o *PostAuthLogoutServiceUnavailable) IsSuccess() bool
IsSuccess returns true when this post auth logout service unavailable response has a 2xx status code
func (*PostAuthLogoutServiceUnavailable) String ¶
func (o *PostAuthLogoutServiceUnavailable) String() string
type PostAuthLogoutUnauthorized ¶
type PostAuthLogoutUnauthorized struct {
}
PostAuthLogoutUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostAuthLogoutUnauthorized ¶
func NewPostAuthLogoutUnauthorized() *PostAuthLogoutUnauthorized
NewPostAuthLogoutUnauthorized creates a PostAuthLogoutUnauthorized with default headers values
func (*PostAuthLogoutUnauthorized) Code ¶
func (o *PostAuthLogoutUnauthorized) Code() int
Code gets the status code for the post auth logout unauthorized response
func (*PostAuthLogoutUnauthorized) Error ¶
func (o *PostAuthLogoutUnauthorized) Error() string
func (*PostAuthLogoutUnauthorized) GetPayload ¶
func (o *PostAuthLogoutUnauthorized) GetPayload() *models.ErrorResponse
func (*PostAuthLogoutUnauthorized) IsClientError ¶
func (o *PostAuthLogoutUnauthorized) IsClientError() bool
IsClientError returns true when this post auth logout unauthorized response has a 4xx status code
func (*PostAuthLogoutUnauthorized) IsCode ¶
func (o *PostAuthLogoutUnauthorized) IsCode(code int) bool
IsCode returns true when this post auth logout unauthorized response a status code equal to that given
func (*PostAuthLogoutUnauthorized) IsRedirect ¶
func (o *PostAuthLogoutUnauthorized) IsRedirect() bool
IsRedirect returns true when this post auth logout unauthorized response has a 3xx status code
func (*PostAuthLogoutUnauthorized) IsServerError ¶
func (o *PostAuthLogoutUnauthorized) IsServerError() bool
IsServerError returns true when this post auth logout unauthorized response has a 5xx status code
func (*PostAuthLogoutUnauthorized) IsSuccess ¶
func (o *PostAuthLogoutUnauthorized) IsSuccess() bool
IsSuccess returns true when this post auth logout unauthorized response has a 2xx status code
func (*PostAuthLogoutUnauthorized) String ¶
func (o *PostAuthLogoutUnauthorized) String() string
type PostAuthRefreshBadRequest ¶
type PostAuthRefreshBadRequest struct {
Payload *models.ErrorResponse
}
PostAuthRefreshBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPostAuthRefreshBadRequest ¶
func NewPostAuthRefreshBadRequest() *PostAuthRefreshBadRequest
NewPostAuthRefreshBadRequest creates a PostAuthRefreshBadRequest with default headers values
func (*PostAuthRefreshBadRequest) Code ¶
func (o *PostAuthRefreshBadRequest) Code() int
Code gets the status code for the post auth refresh bad request response
func (*PostAuthRefreshBadRequest) Error ¶
func (o *PostAuthRefreshBadRequest) Error() string
func (*PostAuthRefreshBadRequest) GetPayload ¶
func (o *PostAuthRefreshBadRequest) GetPayload() *models.ErrorResponse
func (*PostAuthRefreshBadRequest) IsClientError ¶
func (o *PostAuthRefreshBadRequest) IsClientError() bool
IsClientError returns true when this post auth refresh bad request response has a 4xx status code
func (*PostAuthRefreshBadRequest) IsCode ¶
func (o *PostAuthRefreshBadRequest) IsCode(code int) bool
IsCode returns true when this post auth refresh bad request response a status code equal to that given
func (*PostAuthRefreshBadRequest) IsRedirect ¶
func (o *PostAuthRefreshBadRequest) IsRedirect() bool
IsRedirect returns true when this post auth refresh bad request response has a 3xx status code
func (*PostAuthRefreshBadRequest) IsServerError ¶
func (o *PostAuthRefreshBadRequest) IsServerError() bool
IsServerError returns true when this post auth refresh bad request response has a 5xx status code
func (*PostAuthRefreshBadRequest) IsSuccess ¶
func (o *PostAuthRefreshBadRequest) IsSuccess() bool
IsSuccess returns true when this post auth refresh bad request response has a 2xx status code
func (*PostAuthRefreshBadRequest) String ¶
func (o *PostAuthRefreshBadRequest) String() string
type PostAuthRefreshOK ¶
type PostAuthRefreshOK struct {
Payload *models.TokenResponse
}
PostAuthRefreshOK describes a response with status code 200, with default header values.
OK
func NewPostAuthRefreshOK ¶
func NewPostAuthRefreshOK() *PostAuthRefreshOK
NewPostAuthRefreshOK creates a PostAuthRefreshOK with default headers values
func (*PostAuthRefreshOK) Code ¶
func (o *PostAuthRefreshOK) Code() int
Code gets the status code for the post auth refresh o k response
func (*PostAuthRefreshOK) Error ¶
func (o *PostAuthRefreshOK) Error() string
func (*PostAuthRefreshOK) GetPayload ¶
func (o *PostAuthRefreshOK) GetPayload() *models.TokenResponse
func (*PostAuthRefreshOK) IsClientError ¶
func (o *PostAuthRefreshOK) IsClientError() bool
IsClientError returns true when this post auth refresh o k response has a 4xx status code
func (*PostAuthRefreshOK) IsCode ¶
func (o *PostAuthRefreshOK) IsCode(code int) bool
IsCode returns true when this post auth refresh o k response a status code equal to that given
func (*PostAuthRefreshOK) IsRedirect ¶
func (o *PostAuthRefreshOK) IsRedirect() bool
IsRedirect returns true when this post auth refresh o k response has a 3xx status code
func (*PostAuthRefreshOK) IsServerError ¶
func (o *PostAuthRefreshOK) IsServerError() bool
IsServerError returns true when this post auth refresh o k response has a 5xx status code
func (*PostAuthRefreshOK) IsSuccess ¶
func (o *PostAuthRefreshOK) IsSuccess() bool
IsSuccess returns true when this post auth refresh o k response has a 2xx status code
func (*PostAuthRefreshOK) String ¶
func (o *PostAuthRefreshOK) String() string
type PostAuthRefreshParams ¶
type PostAuthRefreshParams struct {
/* Request.
Refresh request
*/
Request *models.RefreshRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PostAuthRefreshParams contains all the parameters to send to the API endpoint
for the post auth refresh operation. Typically these are written to a http.Request.
func NewPostAuthRefreshParams ¶
func NewPostAuthRefreshParams() *PostAuthRefreshParams
NewPostAuthRefreshParams creates a new PostAuthRefreshParams 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 NewPostAuthRefreshParamsWithContext ¶
func NewPostAuthRefreshParamsWithContext(ctx context.Context) *PostAuthRefreshParams
NewPostAuthRefreshParamsWithContext creates a new PostAuthRefreshParams object with the ability to set a context for a request.
func NewPostAuthRefreshParamsWithHTTPClient ¶
func NewPostAuthRefreshParamsWithHTTPClient(client *http.Client) *PostAuthRefreshParams
NewPostAuthRefreshParamsWithHTTPClient creates a new PostAuthRefreshParams object with the ability to set a custom HTTPClient for a request.
func NewPostAuthRefreshParamsWithTimeout ¶
func NewPostAuthRefreshParamsWithTimeout(timeout time.Duration) *PostAuthRefreshParams
NewPostAuthRefreshParamsWithTimeout creates a new PostAuthRefreshParams object with the ability to set a timeout on a request.
func (*PostAuthRefreshParams) SetContext ¶
func (o *PostAuthRefreshParams) SetContext(ctx context.Context)
SetContext adds the context to the post auth refresh params
func (*PostAuthRefreshParams) SetDefaults ¶
func (o *PostAuthRefreshParams) SetDefaults()
SetDefaults hydrates default values in the post auth refresh params (not the query body).
All values with no default are reset to their zero value.
func (*PostAuthRefreshParams) SetHTTPClient ¶
func (o *PostAuthRefreshParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post auth refresh params
func (*PostAuthRefreshParams) SetRequest ¶
func (o *PostAuthRefreshParams) SetRequest(request *models.RefreshRequest)
SetRequest adds the request to the post auth refresh params
func (*PostAuthRefreshParams) SetTimeout ¶
func (o *PostAuthRefreshParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post auth refresh params
func (*PostAuthRefreshParams) WithContext ¶
func (o *PostAuthRefreshParams) WithContext(ctx context.Context) *PostAuthRefreshParams
WithContext adds the context to the post auth refresh params
func (*PostAuthRefreshParams) WithDefaults ¶
func (o *PostAuthRefreshParams) WithDefaults() *PostAuthRefreshParams
WithDefaults hydrates default values in the post auth refresh params (not the query body).
All values with no default are reset to their zero value.
func (*PostAuthRefreshParams) WithHTTPClient ¶
func (o *PostAuthRefreshParams) WithHTTPClient(client *http.Client) *PostAuthRefreshParams
WithHTTPClient adds the HTTPClient to the post auth refresh params
func (*PostAuthRefreshParams) WithRequest ¶
func (o *PostAuthRefreshParams) WithRequest(request *models.RefreshRequest) *PostAuthRefreshParams
WithRequest adds the request to the post auth refresh params
func (*PostAuthRefreshParams) WithTimeout ¶
func (o *PostAuthRefreshParams) WithTimeout(timeout time.Duration) *PostAuthRefreshParams
WithTimeout adds the timeout to the post auth refresh params
func (*PostAuthRefreshParams) WriteToRequest ¶
func (o *PostAuthRefreshParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostAuthRefreshReader ¶
type PostAuthRefreshReader struct {
// contains filtered or unexported fields
}
PostAuthRefreshReader is a Reader for the PostAuthRefresh structure.
func (*PostAuthRefreshReader) ReadResponse ¶
func (o *PostAuthRefreshReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostAuthRefreshUnauthorized ¶
type PostAuthRefreshUnauthorized struct {
}
PostAuthRefreshUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostAuthRefreshUnauthorized ¶
func NewPostAuthRefreshUnauthorized() *PostAuthRefreshUnauthorized
NewPostAuthRefreshUnauthorized creates a PostAuthRefreshUnauthorized with default headers values
func (*PostAuthRefreshUnauthorized) Code ¶
func (o *PostAuthRefreshUnauthorized) Code() int
Code gets the status code for the post auth refresh unauthorized response
func (*PostAuthRefreshUnauthorized) Error ¶
func (o *PostAuthRefreshUnauthorized) Error() string
func (*PostAuthRefreshUnauthorized) GetPayload ¶
func (o *PostAuthRefreshUnauthorized) GetPayload() *models.ErrorResponse
func (*PostAuthRefreshUnauthorized) IsClientError ¶
func (o *PostAuthRefreshUnauthorized) IsClientError() bool
IsClientError returns true when this post auth refresh unauthorized response has a 4xx status code
func (*PostAuthRefreshUnauthorized) IsCode ¶
func (o *PostAuthRefreshUnauthorized) IsCode(code int) bool
IsCode returns true when this post auth refresh unauthorized response a status code equal to that given
func (*PostAuthRefreshUnauthorized) IsRedirect ¶
func (o *PostAuthRefreshUnauthorized) IsRedirect() bool
IsRedirect returns true when this post auth refresh unauthorized response has a 3xx status code
func (*PostAuthRefreshUnauthorized) IsServerError ¶
func (o *PostAuthRefreshUnauthorized) IsServerError() bool
IsServerError returns true when this post auth refresh unauthorized response has a 5xx status code
func (*PostAuthRefreshUnauthorized) IsSuccess ¶
func (o *PostAuthRefreshUnauthorized) IsSuccess() bool
IsSuccess returns true when this post auth refresh unauthorized response has a 2xx status code
func (*PostAuthRefreshUnauthorized) String ¶
func (o *PostAuthRefreshUnauthorized) String() string
type PostAuthTokenBadRequest ¶
type PostAuthTokenBadRequest struct {
Payload *models.ErrorResponse
}
PostAuthTokenBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewPostAuthTokenBadRequest ¶
func NewPostAuthTokenBadRequest() *PostAuthTokenBadRequest
NewPostAuthTokenBadRequest creates a PostAuthTokenBadRequest with default headers values
func (*PostAuthTokenBadRequest) Code ¶
func (o *PostAuthTokenBadRequest) Code() int
Code gets the status code for the post auth token bad request response
func (*PostAuthTokenBadRequest) Error ¶
func (o *PostAuthTokenBadRequest) Error() string
func (*PostAuthTokenBadRequest) GetPayload ¶
func (o *PostAuthTokenBadRequest) GetPayload() *models.ErrorResponse
func (*PostAuthTokenBadRequest) IsClientError ¶
func (o *PostAuthTokenBadRequest) IsClientError() bool
IsClientError returns true when this post auth token bad request response has a 4xx status code
func (*PostAuthTokenBadRequest) IsCode ¶
func (o *PostAuthTokenBadRequest) IsCode(code int) bool
IsCode returns true when this post auth token bad request response a status code equal to that given
func (*PostAuthTokenBadRequest) IsRedirect ¶
func (o *PostAuthTokenBadRequest) IsRedirect() bool
IsRedirect returns true when this post auth token bad request response has a 3xx status code
func (*PostAuthTokenBadRequest) IsServerError ¶
func (o *PostAuthTokenBadRequest) IsServerError() bool
IsServerError returns true when this post auth token bad request response has a 5xx status code
func (*PostAuthTokenBadRequest) IsSuccess ¶
func (o *PostAuthTokenBadRequest) IsSuccess() bool
IsSuccess returns true when this post auth token bad request response has a 2xx status code
func (*PostAuthTokenBadRequest) String ¶
func (o *PostAuthTokenBadRequest) String() string
type PostAuthTokenOK ¶
type PostAuthTokenOK struct {
Payload *models.TokenResponse
}
PostAuthTokenOK describes a response with status code 200, with default header values.
OK
func NewPostAuthTokenOK ¶
func NewPostAuthTokenOK() *PostAuthTokenOK
NewPostAuthTokenOK creates a PostAuthTokenOK with default headers values
func (*PostAuthTokenOK) Code ¶
func (o *PostAuthTokenOK) Code() int
Code gets the status code for the post auth token o k response
func (*PostAuthTokenOK) Error ¶
func (o *PostAuthTokenOK) Error() string
func (*PostAuthTokenOK) GetPayload ¶
func (o *PostAuthTokenOK) GetPayload() *models.TokenResponse
func (*PostAuthTokenOK) IsClientError ¶
func (o *PostAuthTokenOK) IsClientError() bool
IsClientError returns true when this post auth token o k response has a 4xx status code
func (*PostAuthTokenOK) IsCode ¶
func (o *PostAuthTokenOK) IsCode(code int) bool
IsCode returns true when this post auth token o k response a status code equal to that given
func (*PostAuthTokenOK) IsRedirect ¶
func (o *PostAuthTokenOK) IsRedirect() bool
IsRedirect returns true when this post auth token o k response has a 3xx status code
func (*PostAuthTokenOK) IsServerError ¶
func (o *PostAuthTokenOK) IsServerError() bool
IsServerError returns true when this post auth token o k response has a 5xx status code
func (*PostAuthTokenOK) IsSuccess ¶
func (o *PostAuthTokenOK) IsSuccess() bool
IsSuccess returns true when this post auth token o k response has a 2xx status code
func (*PostAuthTokenOK) String ¶
func (o *PostAuthTokenOK) String() string
type PostAuthTokenParams ¶
type PostAuthTokenParams struct {
/* Request.
Token request
*/
Request *models.TokenRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
PostAuthTokenParams contains all the parameters to send to the API endpoint
for the post auth token operation. Typically these are written to a http.Request.
func NewPostAuthTokenParams ¶
func NewPostAuthTokenParams() *PostAuthTokenParams
NewPostAuthTokenParams creates a new PostAuthTokenParams 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 NewPostAuthTokenParamsWithContext ¶
func NewPostAuthTokenParamsWithContext(ctx context.Context) *PostAuthTokenParams
NewPostAuthTokenParamsWithContext creates a new PostAuthTokenParams object with the ability to set a context for a request.
func NewPostAuthTokenParamsWithHTTPClient ¶
func NewPostAuthTokenParamsWithHTTPClient(client *http.Client) *PostAuthTokenParams
NewPostAuthTokenParamsWithHTTPClient creates a new PostAuthTokenParams object with the ability to set a custom HTTPClient for a request.
func NewPostAuthTokenParamsWithTimeout ¶
func NewPostAuthTokenParamsWithTimeout(timeout time.Duration) *PostAuthTokenParams
NewPostAuthTokenParamsWithTimeout creates a new PostAuthTokenParams object with the ability to set a timeout on a request.
func (*PostAuthTokenParams) SetContext ¶
func (o *PostAuthTokenParams) SetContext(ctx context.Context)
SetContext adds the context to the post auth token params
func (*PostAuthTokenParams) SetDefaults ¶
func (o *PostAuthTokenParams) SetDefaults()
SetDefaults hydrates default values in the post auth token params (not the query body).
All values with no default are reset to their zero value.
func (*PostAuthTokenParams) SetHTTPClient ¶
func (o *PostAuthTokenParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post auth token params
func (*PostAuthTokenParams) SetRequest ¶
func (o *PostAuthTokenParams) SetRequest(request *models.TokenRequest)
SetRequest adds the request to the post auth token params
func (*PostAuthTokenParams) SetTimeout ¶
func (o *PostAuthTokenParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post auth token params
func (*PostAuthTokenParams) WithContext ¶
func (o *PostAuthTokenParams) WithContext(ctx context.Context) *PostAuthTokenParams
WithContext adds the context to the post auth token params
func (*PostAuthTokenParams) WithDefaults ¶
func (o *PostAuthTokenParams) WithDefaults() *PostAuthTokenParams
WithDefaults hydrates default values in the post auth token params (not the query body).
All values with no default are reset to their zero value.
func (*PostAuthTokenParams) WithHTTPClient ¶
func (o *PostAuthTokenParams) WithHTTPClient(client *http.Client) *PostAuthTokenParams
WithHTTPClient adds the HTTPClient to the post auth token params
func (*PostAuthTokenParams) WithRequest ¶
func (o *PostAuthTokenParams) WithRequest(request *models.TokenRequest) *PostAuthTokenParams
WithRequest adds the request to the post auth token params
func (*PostAuthTokenParams) WithTimeout ¶
func (o *PostAuthTokenParams) WithTimeout(timeout time.Duration) *PostAuthTokenParams
WithTimeout adds the timeout to the post auth token params
func (*PostAuthTokenParams) WriteToRequest ¶
func (o *PostAuthTokenParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostAuthTokenReader ¶
type PostAuthTokenReader struct {
// contains filtered or unexported fields
}
PostAuthTokenReader is a Reader for the PostAuthToken structure.
func (*PostAuthTokenReader) ReadResponse ¶
func (o *PostAuthTokenReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostAuthTokenUnauthorized ¶
type PostAuthTokenUnauthorized struct {
}
PostAuthTokenUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewPostAuthTokenUnauthorized ¶
func NewPostAuthTokenUnauthorized() *PostAuthTokenUnauthorized
NewPostAuthTokenUnauthorized creates a PostAuthTokenUnauthorized with default headers values
func (*PostAuthTokenUnauthorized) Code ¶
func (o *PostAuthTokenUnauthorized) Code() int
Code gets the status code for the post auth token unauthorized response
func (*PostAuthTokenUnauthorized) Error ¶
func (o *PostAuthTokenUnauthorized) Error() string
func (*PostAuthTokenUnauthorized) GetPayload ¶
func (o *PostAuthTokenUnauthorized) GetPayload() *models.ErrorResponse
func (*PostAuthTokenUnauthorized) IsClientError ¶
func (o *PostAuthTokenUnauthorized) IsClientError() bool
IsClientError returns true when this post auth token unauthorized response has a 4xx status code
func (*PostAuthTokenUnauthorized) IsCode ¶
func (o *PostAuthTokenUnauthorized) IsCode(code int) bool
IsCode returns true when this post auth token unauthorized response a status code equal to that given
func (*PostAuthTokenUnauthorized) IsRedirect ¶
func (o *PostAuthTokenUnauthorized) IsRedirect() bool
IsRedirect returns true when this post auth token unauthorized response has a 3xx status code
func (*PostAuthTokenUnauthorized) IsServerError ¶
func (o *PostAuthTokenUnauthorized) IsServerError() bool
IsServerError returns true when this post auth token unauthorized response has a 5xx status code
func (*PostAuthTokenUnauthorized) IsSuccess ¶
func (o *PostAuthTokenUnauthorized) IsSuccess() bool
IsSuccess returns true when this post auth token unauthorized response has a 2xx status code
func (*PostAuthTokenUnauthorized) String ¶
func (o *PostAuthTokenUnauthorized) String() string