token_service

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for token service API

func (*Client) GenerateDocumentAccessToken

func (a *Client) GenerateDocumentAccessToken(params *GenerateDocumentAccessTokenParams, opts ...ClientOption) (*GenerateDocumentAccessTokenOK, error)

GenerateDocumentAccessToken generates a temporary access token for a specific document for the current user

func (*Client) ResetPassword

func (a *Client) ResetPassword(params *ResetPasswordParams, opts ...ClientOption) (*ResetPasswordOK, error)

ResetPassword finishes up the reset password process by providing the unique token

func (*Client) ResetPasswordToken

func (a *Client) ResetPasswordToken(params *ResetPasswordTokenParams, opts ...ClientOption) (*ResetPasswordTokenOK, error)

ResetPasswordToken generates a unique token for the reset password process

func (*Client) Revoke

func (a *Client) Revoke(params *RevokeParams, opts ...ClientOption) (*RevokeOK, error)

Revoke revokes a j w t token

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GenerateDocumentAccessToken(params *GenerateDocumentAccessTokenParams, opts ...ClientOption) (*GenerateDocumentAccessTokenOK, error)

	ResetPassword(params *ResetPasswordParams, opts ...ClientOption) (*ResetPasswordOK, error)

	ResetPasswordToken(params *ResetPasswordTokenParams, opts ...ClientOption) (*ResetPasswordTokenOK, error)

	Revoke(params *RevokeParams, opts ...ClientOption) (*RevokeOK, 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 token service API client.

type GenerateDocumentAccessTokenForbidden

type GenerateDocumentAccessTokenForbidden struct {
	Payload *models.RestError
}
GenerateDocumentAccessTokenForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewGenerateDocumentAccessTokenForbidden

func NewGenerateDocumentAccessTokenForbidden() *GenerateDocumentAccessTokenForbidden

NewGenerateDocumentAccessTokenForbidden creates a GenerateDocumentAccessTokenForbidden with default headers values

func (*GenerateDocumentAccessTokenForbidden) Error

func (*GenerateDocumentAccessTokenForbidden) GetPayload

type GenerateDocumentAccessTokenInternalServerError

type GenerateDocumentAccessTokenInternalServerError struct {
	Payload *models.RestError
}
GenerateDocumentAccessTokenInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewGenerateDocumentAccessTokenInternalServerError

func NewGenerateDocumentAccessTokenInternalServerError() *GenerateDocumentAccessTokenInternalServerError

NewGenerateDocumentAccessTokenInternalServerError creates a GenerateDocumentAccessTokenInternalServerError with default headers values

func (*GenerateDocumentAccessTokenInternalServerError) Error

func (*GenerateDocumentAccessTokenInternalServerError) GetPayload

type GenerateDocumentAccessTokenNotFound

type GenerateDocumentAccessTokenNotFound struct {
	Payload *models.RestError
}
GenerateDocumentAccessTokenNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewGenerateDocumentAccessTokenNotFound

func NewGenerateDocumentAccessTokenNotFound() *GenerateDocumentAccessTokenNotFound

NewGenerateDocumentAccessTokenNotFound creates a GenerateDocumentAccessTokenNotFound with default headers values

func (*GenerateDocumentAccessTokenNotFound) Error

func (*GenerateDocumentAccessTokenNotFound) GetPayload

type GenerateDocumentAccessTokenOK

type GenerateDocumentAccessTokenOK struct {
	Payload *models.RestDocumentAccessTokenResponse
}
GenerateDocumentAccessTokenOK describes a response with status code 200, with default header values.

GenerateDocumentAccessTokenOK generate document access token o k

func NewGenerateDocumentAccessTokenOK

func NewGenerateDocumentAccessTokenOK() *GenerateDocumentAccessTokenOK

NewGenerateDocumentAccessTokenOK creates a GenerateDocumentAccessTokenOK with default headers values

func (*GenerateDocumentAccessTokenOK) Error

func (*GenerateDocumentAccessTokenOK) GetPayload

type GenerateDocumentAccessTokenParams

type GenerateDocumentAccessTokenParams struct {

	// Body.
	Body *models.RestDocumentAccessTokenRequest

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

GenerateDocumentAccessTokenParams contains all the parameters to send to the API endpoint

for the generate document access token operation.

Typically these are written to a http.Request.

func NewGenerateDocumentAccessTokenParams

func NewGenerateDocumentAccessTokenParams() *GenerateDocumentAccessTokenParams

NewGenerateDocumentAccessTokenParams creates a new GenerateDocumentAccessTokenParams 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 NewGenerateDocumentAccessTokenParamsWithContext

func NewGenerateDocumentAccessTokenParamsWithContext(ctx context.Context) *GenerateDocumentAccessTokenParams

NewGenerateDocumentAccessTokenParamsWithContext creates a new GenerateDocumentAccessTokenParams object with the ability to set a context for a request.

func NewGenerateDocumentAccessTokenParamsWithHTTPClient

func NewGenerateDocumentAccessTokenParamsWithHTTPClient(client *http.Client) *GenerateDocumentAccessTokenParams

NewGenerateDocumentAccessTokenParamsWithHTTPClient creates a new GenerateDocumentAccessTokenParams object with the ability to set a custom HTTPClient for a request.

func NewGenerateDocumentAccessTokenParamsWithTimeout

func NewGenerateDocumentAccessTokenParamsWithTimeout(timeout time.Duration) *GenerateDocumentAccessTokenParams

NewGenerateDocumentAccessTokenParamsWithTimeout creates a new GenerateDocumentAccessTokenParams object with the ability to set a timeout on a request.

func (*GenerateDocumentAccessTokenParams) SetBody

SetBody adds the body to the generate document access token params

func (*GenerateDocumentAccessTokenParams) SetContext

SetContext adds the context to the generate document access token params

func (*GenerateDocumentAccessTokenParams) SetDefaults

func (o *GenerateDocumentAccessTokenParams) SetDefaults()

SetDefaults hydrates default values in the generate document access token params (not the query body).

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

func (*GenerateDocumentAccessTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the generate document access token params

func (*GenerateDocumentAccessTokenParams) SetTimeout

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

SetTimeout adds the timeout to the generate document access token params

func (*GenerateDocumentAccessTokenParams) WithBody

WithBody adds the body to the generate document access token params

func (*GenerateDocumentAccessTokenParams) WithContext

WithContext adds the context to the generate document access token params

func (*GenerateDocumentAccessTokenParams) WithDefaults

WithDefaults hydrates default values in the generate document access token params (not the query body).

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

func (*GenerateDocumentAccessTokenParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the generate document access token params

func (*GenerateDocumentAccessTokenParams) WithTimeout

WithTimeout adds the timeout to the generate document access token params

func (*GenerateDocumentAccessTokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GenerateDocumentAccessTokenReader

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

GenerateDocumentAccessTokenReader is a Reader for the GenerateDocumentAccessToken structure.

func (*GenerateDocumentAccessTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GenerateDocumentAccessTokenUnauthorized

type GenerateDocumentAccessTokenUnauthorized struct {
}
GenerateDocumentAccessTokenUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewGenerateDocumentAccessTokenUnauthorized

func NewGenerateDocumentAccessTokenUnauthorized() *GenerateDocumentAccessTokenUnauthorized

NewGenerateDocumentAccessTokenUnauthorized creates a GenerateDocumentAccessTokenUnauthorized with default headers values

func (*GenerateDocumentAccessTokenUnauthorized) Error

type ResetPasswordForbidden

type ResetPasswordForbidden struct {
	Payload *models.RestError
}
ResetPasswordForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewResetPasswordForbidden

func NewResetPasswordForbidden() *ResetPasswordForbidden

NewResetPasswordForbidden creates a ResetPasswordForbidden with default headers values

func (*ResetPasswordForbidden) Error

func (o *ResetPasswordForbidden) Error() string

func (*ResetPasswordForbidden) GetPayload

func (o *ResetPasswordForbidden) GetPayload() *models.RestError

type ResetPasswordInternalServerError

type ResetPasswordInternalServerError struct {
	Payload *models.RestError
}
ResetPasswordInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewResetPasswordInternalServerError

func NewResetPasswordInternalServerError() *ResetPasswordInternalServerError

NewResetPasswordInternalServerError creates a ResetPasswordInternalServerError with default headers values

func (*ResetPasswordInternalServerError) Error

func (*ResetPasswordInternalServerError) GetPayload

type ResetPasswordNotFound

type ResetPasswordNotFound struct {
	Payload *models.RestError
}
ResetPasswordNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewResetPasswordNotFound

func NewResetPasswordNotFound() *ResetPasswordNotFound

NewResetPasswordNotFound creates a ResetPasswordNotFound with default headers values

func (*ResetPasswordNotFound) Error

func (o *ResetPasswordNotFound) Error() string

func (*ResetPasswordNotFound) GetPayload

func (o *ResetPasswordNotFound) GetPayload() *models.RestError

type ResetPasswordOK

type ResetPasswordOK struct {
	Payload *models.RestResetPasswordResponse
}
ResetPasswordOK describes a response with status code 200, with default header values.

ResetPasswordOK reset password o k

func NewResetPasswordOK

func NewResetPasswordOK() *ResetPasswordOK

NewResetPasswordOK creates a ResetPasswordOK with default headers values

func (*ResetPasswordOK) Error

func (o *ResetPasswordOK) Error() string

func (*ResetPasswordOK) GetPayload

type ResetPasswordParams

type ResetPasswordParams struct {

	// Body.
	Body *models.RestResetPasswordRequest

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

ResetPasswordParams contains all the parameters to send to the API endpoint

for the reset password operation.

Typically these are written to a http.Request.

func NewResetPasswordParams

func NewResetPasswordParams() *ResetPasswordParams

NewResetPasswordParams creates a new ResetPasswordParams 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 NewResetPasswordParamsWithContext

func NewResetPasswordParamsWithContext(ctx context.Context) *ResetPasswordParams

NewResetPasswordParamsWithContext creates a new ResetPasswordParams object with the ability to set a context for a request.

func NewResetPasswordParamsWithHTTPClient

func NewResetPasswordParamsWithHTTPClient(client *http.Client) *ResetPasswordParams

NewResetPasswordParamsWithHTTPClient creates a new ResetPasswordParams object with the ability to set a custom HTTPClient for a request.

func NewResetPasswordParamsWithTimeout

func NewResetPasswordParamsWithTimeout(timeout time.Duration) *ResetPasswordParams

NewResetPasswordParamsWithTimeout creates a new ResetPasswordParams object with the ability to set a timeout on a request.

func (*ResetPasswordParams) SetBody

SetBody adds the body to the reset password params

func (*ResetPasswordParams) SetContext

func (o *ResetPasswordParams) SetContext(ctx context.Context)

SetContext adds the context to the reset password params

func (*ResetPasswordParams) SetDefaults

func (o *ResetPasswordParams) SetDefaults()

SetDefaults hydrates default values in the reset password params (not the query body).

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

func (*ResetPasswordParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the reset password params

func (*ResetPasswordParams) SetTimeout

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

SetTimeout adds the timeout to the reset password params

func (*ResetPasswordParams) WithBody

WithBody adds the body to the reset password params

func (*ResetPasswordParams) WithContext

WithContext adds the context to the reset password params

func (*ResetPasswordParams) WithDefaults

func (o *ResetPasswordParams) WithDefaults() *ResetPasswordParams

WithDefaults hydrates default values in the reset password params (not the query body).

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

func (*ResetPasswordParams) WithHTTPClient

func (o *ResetPasswordParams) WithHTTPClient(client *http.Client) *ResetPasswordParams

WithHTTPClient adds the HTTPClient to the reset password params

func (*ResetPasswordParams) WithTimeout

func (o *ResetPasswordParams) WithTimeout(timeout time.Duration) *ResetPasswordParams

WithTimeout adds the timeout to the reset password params

func (*ResetPasswordParams) WriteToRequest

func (o *ResetPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ResetPasswordReader

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

ResetPasswordReader is a Reader for the ResetPassword structure.

func (*ResetPasswordReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ResetPasswordTokenForbidden

type ResetPasswordTokenForbidden struct {
	Payload *models.RestError
}
ResetPasswordTokenForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewResetPasswordTokenForbidden

func NewResetPasswordTokenForbidden() *ResetPasswordTokenForbidden

NewResetPasswordTokenForbidden creates a ResetPasswordTokenForbidden with default headers values

func (*ResetPasswordTokenForbidden) Error

func (*ResetPasswordTokenForbidden) GetPayload

func (o *ResetPasswordTokenForbidden) GetPayload() *models.RestError

type ResetPasswordTokenInternalServerError

type ResetPasswordTokenInternalServerError struct {
	Payload *models.RestError
}
ResetPasswordTokenInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewResetPasswordTokenInternalServerError

func NewResetPasswordTokenInternalServerError() *ResetPasswordTokenInternalServerError

NewResetPasswordTokenInternalServerError creates a ResetPasswordTokenInternalServerError with default headers values

func (*ResetPasswordTokenInternalServerError) Error

func (*ResetPasswordTokenInternalServerError) GetPayload

type ResetPasswordTokenNotFound

type ResetPasswordTokenNotFound struct {
	Payload *models.RestError
}
ResetPasswordTokenNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewResetPasswordTokenNotFound

func NewResetPasswordTokenNotFound() *ResetPasswordTokenNotFound

NewResetPasswordTokenNotFound creates a ResetPasswordTokenNotFound with default headers values

func (*ResetPasswordTokenNotFound) Error

func (*ResetPasswordTokenNotFound) GetPayload

func (o *ResetPasswordTokenNotFound) GetPayload() *models.RestError

type ResetPasswordTokenOK

type ResetPasswordTokenOK struct {
	Payload *models.RestResetPasswordTokenResponse
}
ResetPasswordTokenOK describes a response with status code 200, with default header values.

ResetPasswordTokenOK reset password token o k

func NewResetPasswordTokenOK

func NewResetPasswordTokenOK() *ResetPasswordTokenOK

NewResetPasswordTokenOK creates a ResetPasswordTokenOK with default headers values

func (*ResetPasswordTokenOK) Error

func (o *ResetPasswordTokenOK) Error() string

func (*ResetPasswordTokenOK) GetPayload

type ResetPasswordTokenParams

type ResetPasswordTokenParams struct {

	// UserLogin.
	UserLogin string

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

ResetPasswordTokenParams contains all the parameters to send to the API endpoint

for the reset password token operation.

Typically these are written to a http.Request.

func NewResetPasswordTokenParams

func NewResetPasswordTokenParams() *ResetPasswordTokenParams

NewResetPasswordTokenParams creates a new ResetPasswordTokenParams 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 NewResetPasswordTokenParamsWithContext

func NewResetPasswordTokenParamsWithContext(ctx context.Context) *ResetPasswordTokenParams

NewResetPasswordTokenParamsWithContext creates a new ResetPasswordTokenParams object with the ability to set a context for a request.

func NewResetPasswordTokenParamsWithHTTPClient

func NewResetPasswordTokenParamsWithHTTPClient(client *http.Client) *ResetPasswordTokenParams

NewResetPasswordTokenParamsWithHTTPClient creates a new ResetPasswordTokenParams object with the ability to set a custom HTTPClient for a request.

func NewResetPasswordTokenParamsWithTimeout

func NewResetPasswordTokenParamsWithTimeout(timeout time.Duration) *ResetPasswordTokenParams

NewResetPasswordTokenParamsWithTimeout creates a new ResetPasswordTokenParams object with the ability to set a timeout on a request.

func (*ResetPasswordTokenParams) SetContext

func (o *ResetPasswordTokenParams) SetContext(ctx context.Context)

SetContext adds the context to the reset password token params

func (*ResetPasswordTokenParams) SetDefaults

func (o *ResetPasswordTokenParams) SetDefaults()

SetDefaults hydrates default values in the reset password token params (not the query body).

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

func (*ResetPasswordTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the reset password token params

func (*ResetPasswordTokenParams) SetTimeout

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

SetTimeout adds the timeout to the reset password token params

func (*ResetPasswordTokenParams) SetUserLogin

func (o *ResetPasswordTokenParams) SetUserLogin(userLogin string)

SetUserLogin adds the userLogin to the reset password token params

func (*ResetPasswordTokenParams) WithContext

WithContext adds the context to the reset password token params

func (*ResetPasswordTokenParams) WithDefaults

WithDefaults hydrates default values in the reset password token params (not the query body).

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

func (*ResetPasswordTokenParams) WithHTTPClient

func (o *ResetPasswordTokenParams) WithHTTPClient(client *http.Client) *ResetPasswordTokenParams

WithHTTPClient adds the HTTPClient to the reset password token params

func (*ResetPasswordTokenParams) WithTimeout

WithTimeout adds the timeout to the reset password token params

func (*ResetPasswordTokenParams) WithUserLogin

func (o *ResetPasswordTokenParams) WithUserLogin(userLogin string) *ResetPasswordTokenParams

WithUserLogin adds the userLogin to the reset password token params

func (*ResetPasswordTokenParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ResetPasswordTokenReader

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

ResetPasswordTokenReader is a Reader for the ResetPasswordToken structure.

func (*ResetPasswordTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ResetPasswordTokenUnauthorized

type ResetPasswordTokenUnauthorized struct {
}
ResetPasswordTokenUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewResetPasswordTokenUnauthorized

func NewResetPasswordTokenUnauthorized() *ResetPasswordTokenUnauthorized

NewResetPasswordTokenUnauthorized creates a ResetPasswordTokenUnauthorized with default headers values

func (*ResetPasswordTokenUnauthorized) Error

type ResetPasswordUnauthorized

type ResetPasswordUnauthorized struct {
}
ResetPasswordUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewResetPasswordUnauthorized

func NewResetPasswordUnauthorized() *ResetPasswordUnauthorized

NewResetPasswordUnauthorized creates a ResetPasswordUnauthorized with default headers values

func (*ResetPasswordUnauthorized) Error

func (o *ResetPasswordUnauthorized) Error() string

type RevokeForbidden

type RevokeForbidden struct {
	Payload *models.RestError
}
RevokeForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewRevokeForbidden

func NewRevokeForbidden() *RevokeForbidden

NewRevokeForbidden creates a RevokeForbidden with default headers values

func (*RevokeForbidden) Error

func (o *RevokeForbidden) Error() string

func (*RevokeForbidden) GetPayload

func (o *RevokeForbidden) GetPayload() *models.RestError

type RevokeInternalServerError

type RevokeInternalServerError struct {
	Payload *models.RestError
}
RevokeInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewRevokeInternalServerError

func NewRevokeInternalServerError() *RevokeInternalServerError

NewRevokeInternalServerError creates a RevokeInternalServerError with default headers values

func (*RevokeInternalServerError) Error

func (o *RevokeInternalServerError) Error() string

func (*RevokeInternalServerError) GetPayload

func (o *RevokeInternalServerError) GetPayload() *models.RestError

type RevokeNotFound

type RevokeNotFound struct {
	Payload *models.RestError
}
RevokeNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewRevokeNotFound

func NewRevokeNotFound() *RevokeNotFound

NewRevokeNotFound creates a RevokeNotFound with default headers values

func (*RevokeNotFound) Error

func (o *RevokeNotFound) Error() string

func (*RevokeNotFound) GetPayload

func (o *RevokeNotFound) GetPayload() *models.RestError

type RevokeOK

type RevokeOK struct {
	Payload *models.RestRevokeResponse
}
RevokeOK describes a response with status code 200, with default header values.

RevokeOK revoke o k

func NewRevokeOK

func NewRevokeOK() *RevokeOK

NewRevokeOK creates a RevokeOK with default headers values

func (*RevokeOK) Error

func (o *RevokeOK) Error() string

func (*RevokeOK) GetPayload

func (o *RevokeOK) GetPayload() *models.RestRevokeResponse

type RevokeParams

type RevokeParams struct {

	// Body.
	Body *models.RestRevokeRequest

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

RevokeParams contains all the parameters to send to the API endpoint

for the revoke operation.

Typically these are written to a http.Request.

func NewRevokeParams

func NewRevokeParams() *RevokeParams

NewRevokeParams creates a new RevokeParams 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 NewRevokeParamsWithContext

func NewRevokeParamsWithContext(ctx context.Context) *RevokeParams

NewRevokeParamsWithContext creates a new RevokeParams object with the ability to set a context for a request.

func NewRevokeParamsWithHTTPClient

func NewRevokeParamsWithHTTPClient(client *http.Client) *RevokeParams

NewRevokeParamsWithHTTPClient creates a new RevokeParams object with the ability to set a custom HTTPClient for a request.

func NewRevokeParamsWithTimeout

func NewRevokeParamsWithTimeout(timeout time.Duration) *RevokeParams

NewRevokeParamsWithTimeout creates a new RevokeParams object with the ability to set a timeout on a request.

func (*RevokeParams) SetBody

func (o *RevokeParams) SetBody(body *models.RestRevokeRequest)

SetBody adds the body to the revoke params

func (*RevokeParams) SetContext

func (o *RevokeParams) SetContext(ctx context.Context)

SetContext adds the context to the revoke params

func (*RevokeParams) SetDefaults

func (o *RevokeParams) SetDefaults()

SetDefaults hydrates default values in the revoke params (not the query body).

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

func (*RevokeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the revoke params

func (*RevokeParams) SetTimeout

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

SetTimeout adds the timeout to the revoke params

func (*RevokeParams) WithBody

func (o *RevokeParams) WithBody(body *models.RestRevokeRequest) *RevokeParams

WithBody adds the body to the revoke params

func (*RevokeParams) WithContext

func (o *RevokeParams) WithContext(ctx context.Context) *RevokeParams

WithContext adds the context to the revoke params

func (*RevokeParams) WithDefaults

func (o *RevokeParams) WithDefaults() *RevokeParams

WithDefaults hydrates default values in the revoke params (not the query body).

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

func (*RevokeParams) WithHTTPClient

func (o *RevokeParams) WithHTTPClient(client *http.Client) *RevokeParams

WithHTTPClient adds the HTTPClient to the revoke params

func (*RevokeParams) WithTimeout

func (o *RevokeParams) WithTimeout(timeout time.Duration) *RevokeParams

WithTimeout adds the timeout to the revoke params

func (*RevokeParams) WriteToRequest

func (o *RevokeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type RevokeReader

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

RevokeReader is a Reader for the Revoke structure.

func (*RevokeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RevokeUnauthorized

type RevokeUnauthorized struct {
}
RevokeUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewRevokeUnauthorized

func NewRevokeUnauthorized() *RevokeUnauthorized

NewRevokeUnauthorized creates a RevokeUnauthorized with default headers values

func (*RevokeUnauthorized) Error

func (o *RevokeUnauthorized) Error() string

Jump to

Keyboard shortcuts

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