oauth2

package
v7.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 11 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 {
	Defaults client.Defaults
	// contains filtered or unexported fields
}

Client for oauth2 API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, defaults client.Defaults) *Client

New creates a new oauth2 API client.

func (*Client) CreateOauthToken

func (c *Client) CreateOauthToken() *CreateOauthTokenRequest

Client.CreateOauthToken creates a new CreateOauthTokenRequest object with the default values initialized.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type CreateOauthTokenForbidden

type CreateOauthTokenForbidden struct {
}

CreateOauthTokenForbidden handles this case with default header values.

Authentication failed

func NewCreateOauthTokenForbidden

func NewCreateOauthTokenForbidden() *CreateOauthTokenForbidden

NewCreateOauthTokenForbidden creates a CreateOauthTokenForbidden with default headers values

func (*CreateOauthTokenForbidden) Code

func (o *CreateOauthTokenForbidden) Code() int

Code gets the status code for the create oauth token forbidden response

func (*CreateOauthTokenForbidden) Error

func (o *CreateOauthTokenForbidden) Error() string

func (*CreateOauthTokenForbidden) IsClientError

func (o *CreateOauthTokenForbidden) IsClientError() bool

IsClientError returns true when this create oauth token forbidden response has a 4xx status code

func (*CreateOauthTokenForbidden) IsCode

func (o *CreateOauthTokenForbidden) IsCode(code int) bool

IsCode returns true when this create oauth token forbidden response a status code equal to that given

func (*CreateOauthTokenForbidden) IsRedirect

func (o *CreateOauthTokenForbidden) IsRedirect() bool

IsRedirect returns true when this create oauth token forbidden response has a 3xx status code

func (*CreateOauthTokenForbidden) IsServerError

func (o *CreateOauthTokenForbidden) IsServerError() bool

IsServerError returns true when this create oauth token forbidden response has a 5xx status code

func (*CreateOauthTokenForbidden) IsSuccess

func (o *CreateOauthTokenForbidden) IsSuccess() bool

IsSuccess returns true when this create oauth token forbidden response has a 2xx status code

type CreateOauthTokenOK

type CreateOauthTokenOK struct {

	// isStream: false
	*models.Token
}

CreateOauthTokenOK handles this case with default header values.

Authorisation token (Bearer)

func NewCreateOauthTokenOK

func NewCreateOauthTokenOK() *CreateOauthTokenOK

NewCreateOauthTokenOK creates a CreateOauthTokenOK with default headers values

func (*CreateOauthTokenOK) Code

func (o *CreateOauthTokenOK) Code() int

Code gets the status code for the create oauth token o k response

func (*CreateOauthTokenOK) Error

func (o *CreateOauthTokenOK) Error() string

func (*CreateOauthTokenOK) IsClientError

func (o *CreateOauthTokenOK) IsClientError() bool

IsClientError returns true when this create oauth token o k response has a 4xx status code

func (*CreateOauthTokenOK) IsCode

func (o *CreateOauthTokenOK) IsCode(code int) bool

IsCode returns true when this create oauth token o k response a status code equal to that given

func (*CreateOauthTokenOK) IsRedirect

func (o *CreateOauthTokenOK) IsRedirect() bool

IsRedirect returns true when this create oauth token o k response has a 3xx status code

func (*CreateOauthTokenOK) IsServerError

func (o *CreateOauthTokenOK) IsServerError() bool

IsServerError returns true when this create oauth token o k response has a 5xx status code

func (*CreateOauthTokenOK) IsSuccess

func (o *CreateOauthTokenOK) IsSuccess() bool

IsSuccess returns true when this create oauth token o k response has a 2xx status code

type CreateOauthTokenReader

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

CreateOauthTokenReader is a Reader for the CreateOauthToken structure.

func (*CreateOauthTokenReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateOauthTokenRequest

type CreateOauthTokenRequest struct {
	GrantType string

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

func (*CreateOauthTokenRequest) Do

create oauth token API

func (*CreateOauthTokenRequest) FromJson

func (*CreateOauthTokenRequest) MustDo

func (*CreateOauthTokenRequest) WithContext

//////////////// WithContext adds the context to the create oauth token Request

func (*CreateOauthTokenRequest) WithGrantType

func (o *CreateOauthTokenRequest) WithGrantType(grantType string) *CreateOauthTokenRequest

func (*CreateOauthTokenRequest) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create oauth token Request

func (*CreateOauthTokenRequest) WriteToRequest

WriteToRequest writes these Request to a swagger request

Jump to

Keyboard shortcuts

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