token

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 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 API

func (*Client) DeleteTokenTokenid

func (a *Client) DeleteTokenTokenid(params *DeleteTokenTokenidParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTokenTokenidOK, error)

DeleteTokenTokenid deletes API token

func (*Client) GetToken

func (a *Client) GetToken(params *GetTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTokenOK, error)

GetToken gets all API tokens

func (*Client) GetTokenTokenid

func (a *Client) GetTokenTokenid(params *GetTokenTokenidParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTokenTokenidOK, error)

GetTokenTokenid gets API token by ID

func (*Client) PostToken

func (a *Client) PostToken(params *PostTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTokenOK, error)

PostToken creates new API 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 {
	DeleteTokenTokenid(params *DeleteTokenTokenidParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTokenTokenidOK, error)

	GetToken(params *GetTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTokenOK, error)

	GetTokenTokenid(params *GetTokenTokenidParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTokenTokenidOK, error)

	PostToken(params *PostTokenParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostTokenOK, 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 API client.

type DeleteTokenTokenidBadRequest

type DeleteTokenTokenidBadRequest struct {
	Payload *models.Error
}
DeleteTokenTokenidBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewDeleteTokenTokenidBadRequest

func NewDeleteTokenTokenidBadRequest() *DeleteTokenTokenidBadRequest

NewDeleteTokenTokenidBadRequest creates a DeleteTokenTokenidBadRequest with default headers values

func (*DeleteTokenTokenidBadRequest) Error

func (*DeleteTokenTokenidBadRequest) GetPayload

func (o *DeleteTokenTokenidBadRequest) GetPayload() *models.Error

type DeleteTokenTokenidConflict

type DeleteTokenTokenidConflict struct {
	Payload *models.Error
}
DeleteTokenTokenidConflict describes a response with status code 409, with default header values.

Conflict

func NewDeleteTokenTokenidConflict

func NewDeleteTokenTokenidConflict() *DeleteTokenTokenidConflict

NewDeleteTokenTokenidConflict creates a DeleteTokenTokenidConflict with default headers values

func (*DeleteTokenTokenidConflict) Error

func (*DeleteTokenTokenidConflict) GetPayload

func (o *DeleteTokenTokenidConflict) GetPayload() *models.Error

type DeleteTokenTokenidForbidden

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

Forbidden

func NewDeleteTokenTokenidForbidden

func NewDeleteTokenTokenidForbidden() *DeleteTokenTokenidForbidden

NewDeleteTokenTokenidForbidden creates a DeleteTokenTokenidForbidden with default headers values

func (*DeleteTokenTokenidForbidden) Error

func (*DeleteTokenTokenidForbidden) GetPayload

func (o *DeleteTokenTokenidForbidden) GetPayload() *models.Error

type DeleteTokenTokenidInternalServerError

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

Internal Server Error

func NewDeleteTokenTokenidInternalServerError

func NewDeleteTokenTokenidInternalServerError() *DeleteTokenTokenidInternalServerError

NewDeleteTokenTokenidInternalServerError creates a DeleteTokenTokenidInternalServerError with default headers values

func (*DeleteTokenTokenidInternalServerError) Error

func (*DeleteTokenTokenidInternalServerError) GetPayload

type DeleteTokenTokenidOK

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

Successful

func NewDeleteTokenTokenidOK

func NewDeleteTokenTokenidOK() *DeleteTokenTokenidOK

NewDeleteTokenTokenidOK creates a DeleteTokenTokenidOK with default headers values

func (*DeleteTokenTokenidOK) Error

func (o *DeleteTokenTokenidOK) Error() string

func (*DeleteTokenTokenidOK) GetPayload

func (o *DeleteTokenTokenidOK) GetPayload() *models.Status

type DeleteTokenTokenidParams

type DeleteTokenTokenidParams struct {

	// TokenID.
	TokenID string

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

DeleteTokenTokenidParams contains all the parameters to send to the API endpoint

for the delete token tokenid operation.

Typically these are written to a http.Request.

func NewDeleteTokenTokenidParams

func NewDeleteTokenTokenidParams() *DeleteTokenTokenidParams

NewDeleteTokenTokenidParams creates a new DeleteTokenTokenidParams 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 NewDeleteTokenTokenidParamsWithContext

func NewDeleteTokenTokenidParamsWithContext(ctx context.Context) *DeleteTokenTokenidParams

NewDeleteTokenTokenidParamsWithContext creates a new DeleteTokenTokenidParams object with the ability to set a context for a request.

func NewDeleteTokenTokenidParamsWithHTTPClient

func NewDeleteTokenTokenidParamsWithHTTPClient(client *http.Client) *DeleteTokenTokenidParams

NewDeleteTokenTokenidParamsWithHTTPClient creates a new DeleteTokenTokenidParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteTokenTokenidParamsWithTimeout

func NewDeleteTokenTokenidParamsWithTimeout(timeout time.Duration) *DeleteTokenTokenidParams

NewDeleteTokenTokenidParamsWithTimeout creates a new DeleteTokenTokenidParams object with the ability to set a timeout on a request.

func (*DeleteTokenTokenidParams) SetContext

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

SetContext adds the context to the delete token tokenid params

func (*DeleteTokenTokenidParams) SetDefaults

func (o *DeleteTokenTokenidParams) SetDefaults()

SetDefaults hydrates default values in the delete token tokenid params (not the query body).

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

func (*DeleteTokenTokenidParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete token tokenid params

func (*DeleteTokenTokenidParams) SetTimeout

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

SetTimeout adds the timeout to the delete token tokenid params

func (*DeleteTokenTokenidParams) SetTokenID

func (o *DeleteTokenTokenidParams) SetTokenID(tokenID string)

SetTokenID adds the tokenId to the delete token tokenid params

func (*DeleteTokenTokenidParams) WithContext

WithContext adds the context to the delete token tokenid params

func (*DeleteTokenTokenidParams) WithDefaults

WithDefaults hydrates default values in the delete token tokenid params (not the query body).

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

func (*DeleteTokenTokenidParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete token tokenid params

func (*DeleteTokenTokenidParams) WithTimeout

WithTimeout adds the timeout to the delete token tokenid params

func (*DeleteTokenTokenidParams) WithTokenID

func (o *DeleteTokenTokenidParams) WithTokenID(tokenID string) *DeleteTokenTokenidParams

WithTokenID adds the tokenID to the delete token tokenid params

func (*DeleteTokenTokenidParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteTokenTokenidReader

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

DeleteTokenTokenidReader is a Reader for the DeleteTokenTokenid structure.

func (*DeleteTokenTokenidReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTokenTokenidUnauthorized

type DeleteTokenTokenidUnauthorized struct {
	Payload *models.Error
}
DeleteTokenTokenidUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteTokenTokenidUnauthorized

func NewDeleteTokenTokenidUnauthorized() *DeleteTokenTokenidUnauthorized

NewDeleteTokenTokenidUnauthorized creates a DeleteTokenTokenidUnauthorized with default headers values

func (*DeleteTokenTokenidUnauthorized) Error

func (*DeleteTokenTokenidUnauthorized) GetPayload

func (o *DeleteTokenTokenidUnauthorized) GetPayload() *models.Error

type GetTokenConflict

type GetTokenConflict struct {
	Payload *models.Error
}
GetTokenConflict describes a response with status code 409, with default header values.

Conflict

func NewGetTokenConflict

func NewGetTokenConflict() *GetTokenConflict

NewGetTokenConflict creates a GetTokenConflict with default headers values

func (*GetTokenConflict) Error

func (o *GetTokenConflict) Error() string

func (*GetTokenConflict) GetPayload

func (o *GetTokenConflict) GetPayload() *models.Error

type GetTokenForbidden

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

Forbidden

func NewGetTokenForbidden

func NewGetTokenForbidden() *GetTokenForbidden

NewGetTokenForbidden creates a GetTokenForbidden with default headers values

func (*GetTokenForbidden) Error

func (o *GetTokenForbidden) Error() string

func (*GetTokenForbidden) GetPayload

func (o *GetTokenForbidden) GetPayload() *models.Error

type GetTokenInternalServerError

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

Internal Server Error

func NewGetTokenInternalServerError

func NewGetTokenInternalServerError() *GetTokenInternalServerError

NewGetTokenInternalServerError creates a GetTokenInternalServerError with default headers values

func (*GetTokenInternalServerError) Error

func (*GetTokenInternalServerError) GetPayload

func (o *GetTokenInternalServerError) GetPayload() *models.Error

type GetTokenOK

type GetTokenOK struct {
	Payload models.TokenListSchema
}
GetTokenOK describes a response with status code 200, with default header values.

List of tokens.

func NewGetTokenOK

func NewGetTokenOK() *GetTokenOK

NewGetTokenOK creates a GetTokenOK with default headers values

func (*GetTokenOK) Error

func (o *GetTokenOK) Error() string

func (*GetTokenOK) GetPayload

func (o *GetTokenOK) GetPayload() models.TokenListSchema

type GetTokenParams

type GetTokenParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetTokenParams contains all the parameters to send to the API endpoint

for the get token operation.

Typically these are written to a http.Request.

func NewGetTokenParams

func NewGetTokenParams() *GetTokenParams

NewGetTokenParams creates a new GetTokenParams 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 NewGetTokenParamsWithContext

func NewGetTokenParamsWithContext(ctx context.Context) *GetTokenParams

NewGetTokenParamsWithContext creates a new GetTokenParams object with the ability to set a context for a request.

func NewGetTokenParamsWithHTTPClient

func NewGetTokenParamsWithHTTPClient(client *http.Client) *GetTokenParams

NewGetTokenParamsWithHTTPClient creates a new GetTokenParams object with the ability to set a custom HTTPClient for a request.

func NewGetTokenParamsWithTimeout

func NewGetTokenParamsWithTimeout(timeout time.Duration) *GetTokenParams

NewGetTokenParamsWithTimeout creates a new GetTokenParams object with the ability to set a timeout on a request.

func (*GetTokenParams) SetContext

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

SetContext adds the context to the get token params

func (*GetTokenParams) SetDefaults

func (o *GetTokenParams) SetDefaults()

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

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

func (*GetTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get token params

func (*GetTokenParams) SetTimeout

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

SetTimeout adds the timeout to the get token params

func (*GetTokenParams) WithContext

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

WithContext adds the context to the get token params

func (*GetTokenParams) WithDefaults

func (o *GetTokenParams) WithDefaults() *GetTokenParams

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

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

func (*GetTokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get token params

func (*GetTokenParams) WithTimeout

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

WithTimeout adds the timeout to the get token params

func (*GetTokenParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTokenReader

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

GetTokenReader is a Reader for the GetToken structure.

func (*GetTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTokenTokenidConflict

type GetTokenTokenidConflict struct {
	Payload *models.Error
}
GetTokenTokenidConflict describes a response with status code 409, with default header values.

Conflict

func NewGetTokenTokenidConflict

func NewGetTokenTokenidConflict() *GetTokenTokenidConflict

NewGetTokenTokenidConflict creates a GetTokenTokenidConflict with default headers values

func (*GetTokenTokenidConflict) Error

func (o *GetTokenTokenidConflict) Error() string

func (*GetTokenTokenidConflict) GetPayload

func (o *GetTokenTokenidConflict) GetPayload() *models.Error

type GetTokenTokenidForbidden

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

Forbidden

func NewGetTokenTokenidForbidden

func NewGetTokenTokenidForbidden() *GetTokenTokenidForbidden

NewGetTokenTokenidForbidden creates a GetTokenTokenidForbidden with default headers values

func (*GetTokenTokenidForbidden) Error

func (o *GetTokenTokenidForbidden) Error() string

func (*GetTokenTokenidForbidden) GetPayload

func (o *GetTokenTokenidForbidden) GetPayload() *models.Error

type GetTokenTokenidInternalServerError

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

Internal Server Error

func NewGetTokenTokenidInternalServerError

func NewGetTokenTokenidInternalServerError() *GetTokenTokenidInternalServerError

NewGetTokenTokenidInternalServerError creates a GetTokenTokenidInternalServerError with default headers values

func (*GetTokenTokenidInternalServerError) Error

func (*GetTokenTokenidInternalServerError) GetPayload

type GetTokenTokenidNotFound

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

Not Found

func NewGetTokenTokenidNotFound

func NewGetTokenTokenidNotFound() *GetTokenTokenidNotFound

NewGetTokenTokenidNotFound creates a GetTokenTokenidNotFound with default headers values

func (*GetTokenTokenidNotFound) Error

func (o *GetTokenTokenidNotFound) Error() string

func (*GetTokenTokenidNotFound) GetPayload

func (o *GetTokenTokenidNotFound) GetPayload() *models.Error

type GetTokenTokenidOK

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

Information about token.

func NewGetTokenTokenidOK

func NewGetTokenTokenidOK() *GetTokenTokenidOK

NewGetTokenTokenidOK creates a GetTokenTokenidOK with default headers values

func (*GetTokenTokenidOK) Error

func (o *GetTokenTokenidOK) Error() string

func (*GetTokenTokenidOK) GetPayload

func (o *GetTokenTokenidOK) GetPayload() *models.TokenSchema

type GetTokenTokenidParams

type GetTokenTokenidParams struct {

	// TokenID.
	TokenID string

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

GetTokenTokenidParams contains all the parameters to send to the API endpoint

for the get token tokenid operation.

Typically these are written to a http.Request.

func NewGetTokenTokenidParams

func NewGetTokenTokenidParams() *GetTokenTokenidParams

NewGetTokenTokenidParams creates a new GetTokenTokenidParams 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 NewGetTokenTokenidParamsWithContext

func NewGetTokenTokenidParamsWithContext(ctx context.Context) *GetTokenTokenidParams

NewGetTokenTokenidParamsWithContext creates a new GetTokenTokenidParams object with the ability to set a context for a request.

func NewGetTokenTokenidParamsWithHTTPClient

func NewGetTokenTokenidParamsWithHTTPClient(client *http.Client) *GetTokenTokenidParams

NewGetTokenTokenidParamsWithHTTPClient creates a new GetTokenTokenidParams object with the ability to set a custom HTTPClient for a request.

func NewGetTokenTokenidParamsWithTimeout

func NewGetTokenTokenidParamsWithTimeout(timeout time.Duration) *GetTokenTokenidParams

NewGetTokenTokenidParamsWithTimeout creates a new GetTokenTokenidParams object with the ability to set a timeout on a request.

func (*GetTokenTokenidParams) SetContext

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

SetContext adds the context to the get token tokenid params

func (*GetTokenTokenidParams) SetDefaults

func (o *GetTokenTokenidParams) SetDefaults()

SetDefaults hydrates default values in the get token tokenid params (not the query body).

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

func (*GetTokenTokenidParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get token tokenid params

func (*GetTokenTokenidParams) SetTimeout

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

SetTimeout adds the timeout to the get token tokenid params

func (*GetTokenTokenidParams) SetTokenID

func (o *GetTokenTokenidParams) SetTokenID(tokenID string)

SetTokenID adds the tokenId to the get token tokenid params

func (*GetTokenTokenidParams) WithContext

WithContext adds the context to the get token tokenid params

func (*GetTokenTokenidParams) WithDefaults

func (o *GetTokenTokenidParams) WithDefaults() *GetTokenTokenidParams

WithDefaults hydrates default values in the get token tokenid params (not the query body).

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

func (*GetTokenTokenidParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get token tokenid params

func (*GetTokenTokenidParams) WithTimeout

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

WithTimeout adds the timeout to the get token tokenid params

func (*GetTokenTokenidParams) WithTokenID

func (o *GetTokenTokenidParams) WithTokenID(tokenID string) *GetTokenTokenidParams

WithTokenID adds the tokenID to the get token tokenid params

func (*GetTokenTokenidParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTokenTokenidReader

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

GetTokenTokenidReader is a Reader for the GetTokenTokenid structure.

func (*GetTokenTokenidReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTokenTokenidUnauthorized

type GetTokenTokenidUnauthorized struct {
	Payload *models.Error
}
GetTokenTokenidUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetTokenTokenidUnauthorized

func NewGetTokenTokenidUnauthorized() *GetTokenTokenidUnauthorized

NewGetTokenTokenidUnauthorized creates a GetTokenTokenidUnauthorized with default headers values

func (*GetTokenTokenidUnauthorized) Error

func (*GetTokenTokenidUnauthorized) GetPayload

func (o *GetTokenTokenidUnauthorized) GetPayload() *models.Error

type GetTokenUnauthorized

type GetTokenUnauthorized struct {
	Payload *models.Error
}
GetTokenUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetTokenUnauthorized

func NewGetTokenUnauthorized() *GetTokenUnauthorized

NewGetTokenUnauthorized creates a GetTokenUnauthorized with default headers values

func (*GetTokenUnauthorized) Error

func (o *GetTokenUnauthorized) Error() string

func (*GetTokenUnauthorized) GetPayload

func (o *GetTokenUnauthorized) GetPayload() *models.Error

type PostTokenBadRequest

type PostTokenBadRequest struct {
	Payload *models.Error
}
PostTokenBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostTokenBadRequest

func NewPostTokenBadRequest() *PostTokenBadRequest

NewPostTokenBadRequest creates a PostTokenBadRequest with default headers values

func (*PostTokenBadRequest) Error

func (o *PostTokenBadRequest) Error() string

func (*PostTokenBadRequest) GetPayload

func (o *PostTokenBadRequest) GetPayload() *models.Error

type PostTokenForbidden

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

Forbidden

func NewPostTokenForbidden

func NewPostTokenForbidden() *PostTokenForbidden

NewPostTokenForbidden creates a PostTokenForbidden with default headers values

func (*PostTokenForbidden) Error

func (o *PostTokenForbidden) Error() string

func (*PostTokenForbidden) GetPayload

func (o *PostTokenForbidden) GetPayload() *models.Error

type PostTokenInternalServerError

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

Internal Server Error

func NewPostTokenInternalServerError

func NewPostTokenInternalServerError() *PostTokenInternalServerError

NewPostTokenInternalServerError creates a PostTokenInternalServerError with default headers values

func (*PostTokenInternalServerError) Error

func (*PostTokenInternalServerError) GetPayload

func (o *PostTokenInternalServerError) GetPayload() *models.Error

type PostTokenOK

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

Information about new token.

func NewPostTokenOK

func NewPostTokenOK() *PostTokenOK

NewPostTokenOK creates a PostTokenOK with default headers values

func (*PostTokenOK) Error

func (o *PostTokenOK) Error() string

func (*PostTokenOK) GetPayload

func (o *PostTokenOK) GetPayload() *models.NewTokenSchema

type PostTokenParams

type PostTokenParams struct {

	// Body.
	Body *models.CreateToken

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

PostTokenParams contains all the parameters to send to the API endpoint

for the post token operation.

Typically these are written to a http.Request.

func NewPostTokenParams

func NewPostTokenParams() *PostTokenParams

NewPostTokenParams creates a new PostTokenParams 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 NewPostTokenParamsWithContext

func NewPostTokenParamsWithContext(ctx context.Context) *PostTokenParams

NewPostTokenParamsWithContext creates a new PostTokenParams object with the ability to set a context for a request.

func NewPostTokenParamsWithHTTPClient

func NewPostTokenParamsWithHTTPClient(client *http.Client) *PostTokenParams

NewPostTokenParamsWithHTTPClient creates a new PostTokenParams object with the ability to set a custom HTTPClient for a request.

func NewPostTokenParamsWithTimeout

func NewPostTokenParamsWithTimeout(timeout time.Duration) *PostTokenParams

NewPostTokenParamsWithTimeout creates a new PostTokenParams object with the ability to set a timeout on a request.

func (*PostTokenParams) SetBody

func (o *PostTokenParams) SetBody(body *models.CreateToken)

SetBody adds the body to the post token params

func (*PostTokenParams) SetContext

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

SetContext adds the context to the post token params

func (*PostTokenParams) SetDefaults

func (o *PostTokenParams) SetDefaults()

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

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

func (*PostTokenParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post token params

func (*PostTokenParams) SetTimeout

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

SetTimeout adds the timeout to the post token params

func (*PostTokenParams) WithBody

func (o *PostTokenParams) WithBody(body *models.CreateToken) *PostTokenParams

WithBody adds the body to the post token params

func (*PostTokenParams) WithContext

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

WithContext adds the context to the post token params

func (*PostTokenParams) WithDefaults

func (o *PostTokenParams) WithDefaults() *PostTokenParams

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

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

func (*PostTokenParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post token params

func (*PostTokenParams) WithTimeout

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

WithTimeout adds the timeout to the post token params

func (*PostTokenParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostTokenReader

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

PostTokenReader is a Reader for the PostToken structure.

func (*PostTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostTokenUnauthorized

type PostTokenUnauthorized struct {
	Payload *models.Error
}
PostTokenUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostTokenUnauthorized

func NewPostTokenUnauthorized() *PostTokenUnauthorized

NewPostTokenUnauthorized creates a PostTokenUnauthorized with default headers values

func (*PostTokenUnauthorized) Error

func (o *PostTokenUnauthorized) Error() string

func (*PostTokenUnauthorized) GetPayload

func (o *PostTokenUnauthorized) GetPayload() *models.Error

Jump to

Keyboard shortcuts

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