Documentation ¶
Index ¶
- type Client
- type CreateOauthTokenForbidden
- func (o *CreateOauthTokenForbidden) Code() int
- func (o *CreateOauthTokenForbidden) Error() string
- func (o *CreateOauthTokenForbidden) IsClientError() bool
- func (o *CreateOauthTokenForbidden) IsCode(code int) bool
- func (o *CreateOauthTokenForbidden) IsRedirect() bool
- func (o *CreateOauthTokenForbidden) IsServerError() bool
- func (o *CreateOauthTokenForbidden) IsSuccess() bool
- type CreateOauthTokenOK
- func (o *CreateOauthTokenOK) Code() int
- func (o *CreateOauthTokenOK) Error() string
- func (o *CreateOauthTokenOK) IsClientError() bool
- func (o *CreateOauthTokenOK) IsCode(code int) bool
- func (o *CreateOauthTokenOK) IsRedirect() bool
- func (o *CreateOauthTokenOK) IsServerError() bool
- func (o *CreateOauthTokenOK) IsSuccess() bool
- 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) 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 ¶
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 ¶
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