w_s_o2_token

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 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 w s o2 token API

func (*Client) GetTokenUsingPOST1

func (a *Client) GetTokenUsingPOST1(params *GetTokenUsingPOST1Params, opts ...ClientOption) (*GetTokenUsingPOST1OK, error)

GetTokenUsingPOST1 gets

Generate authorization token

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v1.2.4

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetTokenUsingPOST1(params *GetTokenUsingPOST1Params, opts ...ClientOption) (*GetTokenUsingPOST1OK, 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 w s o2 token API client.

type GetTokenUsingPOST1BadRequest

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

Bad request, error occurred. For more details see log messages.

func NewGetTokenUsingPOST1BadRequest

func NewGetTokenUsingPOST1BadRequest() *GetTokenUsingPOST1BadRequest

NewGetTokenUsingPOST1BadRequest creates a GetTokenUsingPOST1BadRequest with default headers values

func (*GetTokenUsingPOST1BadRequest) Error

func (*GetTokenUsingPOST1BadRequest) GetPayload

type GetTokenUsingPOST1OK

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

OK

func NewGetTokenUsingPOST1OK

func NewGetTokenUsingPOST1OK() *GetTokenUsingPOST1OK

NewGetTokenUsingPOST1OK creates a GetTokenUsingPOST1OK with default headers values

func (*GetTokenUsingPOST1OK) Error

func (o *GetTokenUsingPOST1OK) Error() string

func (*GetTokenUsingPOST1OK) GetPayload

func (o *GetTokenUsingPOST1OK) GetPayload() *models.WSOTokenResponse

type GetTokenUsingPOST1Params

type GetTokenUsingPOST1Params struct {

	/* WsoTokenRequest.

	   wsoTokenRequest
	*/
	WsoTokenRequest *models.WSOTokenRequest

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

GetTokenUsingPOST1Params contains all the parameters to send to the API endpoint

for the get token using p o s t 1 operation.

Typically these are written to a http.Request.

func NewGetTokenUsingPOST1Params

func NewGetTokenUsingPOST1Params() *GetTokenUsingPOST1Params

NewGetTokenUsingPOST1Params creates a new GetTokenUsingPOST1Params 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 NewGetTokenUsingPOST1ParamsWithContext

func NewGetTokenUsingPOST1ParamsWithContext(ctx context.Context) *GetTokenUsingPOST1Params

NewGetTokenUsingPOST1ParamsWithContext creates a new GetTokenUsingPOST1Params object with the ability to set a context for a request.

func NewGetTokenUsingPOST1ParamsWithHTTPClient

func NewGetTokenUsingPOST1ParamsWithHTTPClient(client *http.Client) *GetTokenUsingPOST1Params

NewGetTokenUsingPOST1ParamsWithHTTPClient creates a new GetTokenUsingPOST1Params object with the ability to set a custom HTTPClient for a request.

func NewGetTokenUsingPOST1ParamsWithTimeout

func NewGetTokenUsingPOST1ParamsWithTimeout(timeout time.Duration) *GetTokenUsingPOST1Params

NewGetTokenUsingPOST1ParamsWithTimeout creates a new GetTokenUsingPOST1Params object with the ability to set a timeout on a request.

func (*GetTokenUsingPOST1Params) SetContext

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

SetContext adds the context to the get token using p o s t 1 params

func (*GetTokenUsingPOST1Params) SetDefaults added in v1.2.4

func (o *GetTokenUsingPOST1Params) SetDefaults()

SetDefaults hydrates default values in the get token using p o s t 1 params (not the query body).

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

func (*GetTokenUsingPOST1Params) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get token using p o s t 1 params

func (*GetTokenUsingPOST1Params) SetTimeout

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

SetTimeout adds the timeout to the get token using p o s t 1 params

func (*GetTokenUsingPOST1Params) SetWsoTokenRequest

func (o *GetTokenUsingPOST1Params) SetWsoTokenRequest(wsoTokenRequest *models.WSOTokenRequest)

SetWsoTokenRequest adds the wsoTokenRequest to the get token using p o s t 1 params

func (*GetTokenUsingPOST1Params) WithContext

WithContext adds the context to the get token using p o s t 1 params

func (*GetTokenUsingPOST1Params) WithDefaults added in v1.2.4

WithDefaults hydrates default values in the get token using p o s t 1 params (not the query body).

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

func (*GetTokenUsingPOST1Params) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get token using p o s t 1 params

func (*GetTokenUsingPOST1Params) WithTimeout

WithTimeout adds the timeout to the get token using p o s t 1 params

func (*GetTokenUsingPOST1Params) WithWsoTokenRequest

func (o *GetTokenUsingPOST1Params) WithWsoTokenRequest(wsoTokenRequest *models.WSOTokenRequest) *GetTokenUsingPOST1Params

WithWsoTokenRequest adds the wsoTokenRequest to the get token using p o s t 1 params

func (*GetTokenUsingPOST1Params) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTokenUsingPOST1Reader

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

GetTokenUsingPOST1Reader is a Reader for the GetTokenUsingPOST1 structure.

func (*GetTokenUsingPOST1Reader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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