Documentation ¶
Index ¶
- type Client
- type CreateOauthTokenForbidden
- type CreateOauthTokenOK
- type CreateOauthTokenReader
- type CreateOauthTokenRequest
- func (a *CreateOauthTokenRequest) Do() (*CreateOauthTokenOK, error)
- func (o *CreateOauthTokenRequest) FromJson(j string) (*CreateOauthTokenRequest, error)
- func (a *CreateOauthTokenRequest) MustDo() *CreateOauthTokenOK
- func (o *CreateOauthTokenRequest) WithContext(ctx context.Context) *CreateOauthTokenRequest
- func (o *CreateOauthTokenRequest) WithGrantType(grantType string) *CreateOauthTokenRequest
- func (o *CreateOauthTokenRequest) WithHTTPClient(client *http.Client) *CreateOauthTokenRequest
- func (o *CreateOauthTokenRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
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) Error ¶
func (o *CreateOauthTokenForbidden) Error() string
type CreateOauthTokenOK ¶
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) Error ¶
func (o *CreateOauthTokenOK) Error() string
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 ¶
func (a *CreateOauthTokenRequest) Do() (*CreateOauthTokenOK, error)
create oauth token API
func (*CreateOauthTokenRequest) FromJson ¶
func (o *CreateOauthTokenRequest) FromJson(j string) (*CreateOauthTokenRequest, error)
func (*CreateOauthTokenRequest) MustDo ¶
func (a *CreateOauthTokenRequest) MustDo() *CreateOauthTokenOK
func (*CreateOauthTokenRequest) WithContext ¶
func (o *CreateOauthTokenRequest) WithContext(ctx context.Context) *CreateOauthTokenRequest
//////////////// 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 ¶
func (o *CreateOauthTokenRequest) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these Request to a swagger request