Documentation ¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) ShowProfile(params *ShowProfileParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ShowProfileOK, error)
- func (a *Client) TokenProfile(params *TokenProfileParams, authInfo runtime.ClientAuthInfoWriter, ...) (*TokenProfileOK, error)
- func (a *Client) UpdateProfile(params *UpdateProfileParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateProfileOK, error)
- type ClientOption
- type ClientService
- type ShowProfileDefault
- func (o *ShowProfileDefault) Code() int
- func (o *ShowProfileDefault) Error() string
- func (o *ShowProfileDefault) GetPayload() *models.GeneralError
- func (o *ShowProfileDefault) IsClientError() bool
- func (o *ShowProfileDefault) IsCode(code int) bool
- func (o *ShowProfileDefault) IsRedirect() bool
- func (o *ShowProfileDefault) IsServerError() bool
- func (o *ShowProfileDefault) IsSuccess() bool
- func (o *ShowProfileDefault) String() string
- type ShowProfileForbidden
- func (o *ShowProfileForbidden) Code() int
- func (o *ShowProfileForbidden) Error() string
- func (o *ShowProfileForbidden) GetPayload() *models.GeneralError
- func (o *ShowProfileForbidden) IsClientError() bool
- func (o *ShowProfileForbidden) IsCode(code int) bool
- func (o *ShowProfileForbidden) IsRedirect() bool
- func (o *ShowProfileForbidden) IsServerError() bool
- func (o *ShowProfileForbidden) IsSuccess() bool
- func (o *ShowProfileForbidden) String() string
- type ShowProfileOK
- func (o *ShowProfileOK) Code() int
- func (o *ShowProfileOK) Error() string
- func (o *ShowProfileOK) GetPayload() *models.Profile
- func (o *ShowProfileOK) IsClientError() bool
- func (o *ShowProfileOK) IsCode(code int) bool
- func (o *ShowProfileOK) IsRedirect() bool
- func (o *ShowProfileOK) IsServerError() bool
- func (o *ShowProfileOK) IsSuccess() bool
- func (o *ShowProfileOK) String() string
- type ShowProfileParams
- func (o *ShowProfileParams) SetContext(ctx context.Context)
- func (o *ShowProfileParams) SetDefaults()
- func (o *ShowProfileParams) SetHTTPClient(client *http.Client)
- func (o *ShowProfileParams) SetTimeout(timeout time.Duration)
- func (o *ShowProfileParams) WithContext(ctx context.Context) *ShowProfileParams
- func (o *ShowProfileParams) WithDefaults() *ShowProfileParams
- func (o *ShowProfileParams) WithHTTPClient(client *http.Client) *ShowProfileParams
- func (o *ShowProfileParams) WithTimeout(timeout time.Duration) *ShowProfileParams
- func (o *ShowProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ShowProfileReader
- type TokenProfileDefault
- func (o *TokenProfileDefault) Code() int
- func (o *TokenProfileDefault) Error() string
- func (o *TokenProfileDefault) GetPayload() *models.GeneralError
- func (o *TokenProfileDefault) IsClientError() bool
- func (o *TokenProfileDefault) IsCode(code int) bool
- func (o *TokenProfileDefault) IsRedirect() bool
- func (o *TokenProfileDefault) IsServerError() bool
- func (o *TokenProfileDefault) IsSuccess() bool
- func (o *TokenProfileDefault) String() string
- type TokenProfileForbidden
- func (o *TokenProfileForbidden) Code() int
- func (o *TokenProfileForbidden) Error() string
- func (o *TokenProfileForbidden) GetPayload() *models.GeneralError
- func (o *TokenProfileForbidden) IsClientError() bool
- func (o *TokenProfileForbidden) IsCode(code int) bool
- func (o *TokenProfileForbidden) IsRedirect() bool
- func (o *TokenProfileForbidden) IsServerError() bool
- func (o *TokenProfileForbidden) IsSuccess() bool
- func (o *TokenProfileForbidden) String() string
- type TokenProfileInternalServerError
- func (o *TokenProfileInternalServerError) Code() int
- func (o *TokenProfileInternalServerError) Error() string
- func (o *TokenProfileInternalServerError) GetPayload() *models.GeneralError
- func (o *TokenProfileInternalServerError) IsClientError() bool
- func (o *TokenProfileInternalServerError) IsCode(code int) bool
- func (o *TokenProfileInternalServerError) IsRedirect() bool
- func (o *TokenProfileInternalServerError) IsServerError() bool
- func (o *TokenProfileInternalServerError) IsSuccess() bool
- func (o *TokenProfileInternalServerError) String() string
- type TokenProfileOK
- func (o *TokenProfileOK) Code() int
- func (o *TokenProfileOK) Error() string
- func (o *TokenProfileOK) GetPayload() *models.AuthToken
- func (o *TokenProfileOK) IsClientError() bool
- func (o *TokenProfileOK) IsCode(code int) bool
- func (o *TokenProfileOK) IsRedirect() bool
- func (o *TokenProfileOK) IsServerError() bool
- func (o *TokenProfileOK) IsSuccess() bool
- func (o *TokenProfileOK) String() string
- type TokenProfileParams
- func (o *TokenProfileParams) SetContext(ctx context.Context)
- func (o *TokenProfileParams) SetDefaults()
- func (o *TokenProfileParams) SetHTTPClient(client *http.Client)
- func (o *TokenProfileParams) SetTimeout(timeout time.Duration)
- func (o *TokenProfileParams) WithContext(ctx context.Context) *TokenProfileParams
- func (o *TokenProfileParams) WithDefaults() *TokenProfileParams
- func (o *TokenProfileParams) WithHTTPClient(client *http.Client) *TokenProfileParams
- func (o *TokenProfileParams) WithTimeout(timeout time.Duration) *TokenProfileParams
- func (o *TokenProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TokenProfileReader
- type UpdateProfileDefault
- func (o *UpdateProfileDefault) Code() int
- func (o *UpdateProfileDefault) Error() string
- func (o *UpdateProfileDefault) GetPayload() *models.GeneralError
- func (o *UpdateProfileDefault) IsClientError() bool
- func (o *UpdateProfileDefault) IsCode(code int) bool
- func (o *UpdateProfileDefault) IsRedirect() bool
- func (o *UpdateProfileDefault) IsServerError() bool
- func (o *UpdateProfileDefault) IsSuccess() bool
- func (o *UpdateProfileDefault) String() string
- type UpdateProfileForbidden
- func (o *UpdateProfileForbidden) Code() int
- func (o *UpdateProfileForbidden) Error() string
- func (o *UpdateProfileForbidden) GetPayload() *models.GeneralError
- func (o *UpdateProfileForbidden) IsClientError() bool
- func (o *UpdateProfileForbidden) IsCode(code int) bool
- func (o *UpdateProfileForbidden) IsRedirect() bool
- func (o *UpdateProfileForbidden) IsServerError() bool
- func (o *UpdateProfileForbidden) IsSuccess() bool
- func (o *UpdateProfileForbidden) String() string
- type UpdateProfileOK
- func (o *UpdateProfileOK) Code() int
- func (o *UpdateProfileOK) Error() string
- func (o *UpdateProfileOK) GetPayload() *models.Profile
- func (o *UpdateProfileOK) IsClientError() bool
- func (o *UpdateProfileOK) IsCode(code int) bool
- func (o *UpdateProfileOK) IsRedirect() bool
- func (o *UpdateProfileOK) IsServerError() bool
- func (o *UpdateProfileOK) IsSuccess() bool
- func (o *UpdateProfileOK) String() string
- type UpdateProfileParams
- func (o *UpdateProfileParams) SetContext(ctx context.Context)
- func (o *UpdateProfileParams) SetDefaults()
- func (o *UpdateProfileParams) SetHTTPClient(client *http.Client)
- func (o *UpdateProfileParams) SetProfile(profile *models.Profile)
- func (o *UpdateProfileParams) SetTimeout(timeout time.Duration)
- func (o *UpdateProfileParams) WithContext(ctx context.Context) *UpdateProfileParams
- func (o *UpdateProfileParams) WithDefaults() *UpdateProfileParams
- func (o *UpdateProfileParams) WithHTTPClient(client *http.Client) *UpdateProfileParams
- func (o *UpdateProfileParams) WithProfile(profile *models.Profile) *UpdateProfileParams
- func (o *UpdateProfileParams) WithTimeout(timeout time.Duration) *UpdateProfileParams
- func (o *UpdateProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateProfileReader
- type UpdateProfileUnprocessableEntity
- func (o *UpdateProfileUnprocessableEntity) Code() int
- func (o *UpdateProfileUnprocessableEntity) Error() string
- func (o *UpdateProfileUnprocessableEntity) GetPayload() *models.ValidationError
- func (o *UpdateProfileUnprocessableEntity) IsClientError() bool
- func (o *UpdateProfileUnprocessableEntity) IsCode(code int) bool
- func (o *UpdateProfileUnprocessableEntity) IsRedirect() bool
- func (o *UpdateProfileUnprocessableEntity) IsServerError() bool
- func (o *UpdateProfileUnprocessableEntity) IsSuccess() bool
- func (o *UpdateProfileUnprocessableEntity) String() string
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 profile API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) ShowProfile ¶
func (a *Client) ShowProfile(params *ShowProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ShowProfileOK, error)
ShowProfile fetches profile details of the personal account
func (*Client) TokenProfile ¶
func (a *Client) TokenProfile(params *TokenProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TokenProfileOK, error)
TokenProfile retrieves an unlimited auth token
func (*Client) UpdateProfile ¶
func (a *Client) UpdateProfile(params *UpdateProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProfileOK, error)
UpdateProfile updates profile details of the personal account
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { ShowProfile(params *ShowProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ShowProfileOK, error) TokenProfile(params *TokenProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TokenProfileOK, error) UpdateProfile(params *UpdateProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateProfileOK, 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 profile API client.
type ShowProfileDefault ¶
type ShowProfileDefault struct { Payload *models.GeneralError // contains filtered or unexported fields }
ShowProfileDefault describes a response with status code -1, with default header values.
Some error unrelated to the handler
func NewShowProfileDefault ¶
func NewShowProfileDefault(code int) *ShowProfileDefault
NewShowProfileDefault creates a ShowProfileDefault with default headers values
func (*ShowProfileDefault) Code ¶
func (o *ShowProfileDefault) Code() int
Code gets the status code for the show profile default response
func (*ShowProfileDefault) Error ¶
func (o *ShowProfileDefault) Error() string
func (*ShowProfileDefault) GetPayload ¶
func (o *ShowProfileDefault) GetPayload() *models.GeneralError
func (*ShowProfileDefault) IsClientError ¶
func (o *ShowProfileDefault) IsClientError() bool
IsClientError returns true when this show profile default response has a 4xx status code
func (*ShowProfileDefault) IsCode ¶
func (o *ShowProfileDefault) IsCode(code int) bool
IsCode returns true when this show profile default response a status code equal to that given
func (*ShowProfileDefault) IsRedirect ¶
func (o *ShowProfileDefault) IsRedirect() bool
IsRedirect returns true when this show profile default response has a 3xx status code
func (*ShowProfileDefault) IsServerError ¶
func (o *ShowProfileDefault) IsServerError() bool
IsServerError returns true when this show profile default response has a 5xx status code
func (*ShowProfileDefault) IsSuccess ¶
func (o *ShowProfileDefault) IsSuccess() bool
IsSuccess returns true when this show profile default response has a 2xx status code
func (*ShowProfileDefault) String ¶
func (o *ShowProfileDefault) String() string
type ShowProfileForbidden ¶
type ShowProfileForbidden struct {
Payload *models.GeneralError
}
ShowProfileForbidden describes a response with status code 403, with default header values.
User is not authorized
func NewShowProfileForbidden ¶
func NewShowProfileForbidden() *ShowProfileForbidden
NewShowProfileForbidden creates a ShowProfileForbidden with default headers values
func (*ShowProfileForbidden) Code ¶
func (o *ShowProfileForbidden) Code() int
Code gets the status code for the show profile forbidden response
func (*ShowProfileForbidden) Error ¶
func (o *ShowProfileForbidden) Error() string
func (*ShowProfileForbidden) GetPayload ¶
func (o *ShowProfileForbidden) GetPayload() *models.GeneralError
func (*ShowProfileForbidden) IsClientError ¶
func (o *ShowProfileForbidden) IsClientError() bool
IsClientError returns true when this show profile forbidden response has a 4xx status code
func (*ShowProfileForbidden) IsCode ¶
func (o *ShowProfileForbidden) IsCode(code int) bool
IsCode returns true when this show profile forbidden response a status code equal to that given
func (*ShowProfileForbidden) IsRedirect ¶
func (o *ShowProfileForbidden) IsRedirect() bool
IsRedirect returns true when this show profile forbidden response has a 3xx status code
func (*ShowProfileForbidden) IsServerError ¶
func (o *ShowProfileForbidden) IsServerError() bool
IsServerError returns true when this show profile forbidden response has a 5xx status code
func (*ShowProfileForbidden) IsSuccess ¶
func (o *ShowProfileForbidden) IsSuccess() bool
IsSuccess returns true when this show profile forbidden response has a 2xx status code
func (*ShowProfileForbidden) String ¶
func (o *ShowProfileForbidden) String() string
type ShowProfileOK ¶
ShowProfileOK describes a response with status code 200, with default header values.
The current profile data
func NewShowProfileOK ¶
func NewShowProfileOK() *ShowProfileOK
NewShowProfileOK creates a ShowProfileOK with default headers values
func (*ShowProfileOK) Code ¶
func (o *ShowProfileOK) Code() int
Code gets the status code for the show profile o k response
func (*ShowProfileOK) Error ¶
func (o *ShowProfileOK) Error() string
func (*ShowProfileOK) GetPayload ¶
func (o *ShowProfileOK) GetPayload() *models.Profile
func (*ShowProfileOK) IsClientError ¶
func (o *ShowProfileOK) IsClientError() bool
IsClientError returns true when this show profile o k response has a 4xx status code
func (*ShowProfileOK) IsCode ¶
func (o *ShowProfileOK) IsCode(code int) bool
IsCode returns true when this show profile o k response a status code equal to that given
func (*ShowProfileOK) IsRedirect ¶
func (o *ShowProfileOK) IsRedirect() bool
IsRedirect returns true when this show profile o k response has a 3xx status code
func (*ShowProfileOK) IsServerError ¶
func (o *ShowProfileOK) IsServerError() bool
IsServerError returns true when this show profile o k response has a 5xx status code
func (*ShowProfileOK) IsSuccess ¶
func (o *ShowProfileOK) IsSuccess() bool
IsSuccess returns true when this show profile o k response has a 2xx status code
func (*ShowProfileOK) String ¶
func (o *ShowProfileOK) String() string
type ShowProfileParams ¶
type ShowProfileParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ShowProfileParams contains all the parameters to send to the API endpoint
for the show profile operation. Typically these are written to a http.Request.
func NewShowProfileParams ¶
func NewShowProfileParams() *ShowProfileParams
NewShowProfileParams creates a new ShowProfileParams 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 NewShowProfileParamsWithContext ¶
func NewShowProfileParamsWithContext(ctx context.Context) *ShowProfileParams
NewShowProfileParamsWithContext creates a new ShowProfileParams object with the ability to set a context for a request.
func NewShowProfileParamsWithHTTPClient ¶
func NewShowProfileParamsWithHTTPClient(client *http.Client) *ShowProfileParams
NewShowProfileParamsWithHTTPClient creates a new ShowProfileParams object with the ability to set a custom HTTPClient for a request.
func NewShowProfileParamsWithTimeout ¶
func NewShowProfileParamsWithTimeout(timeout time.Duration) *ShowProfileParams
NewShowProfileParamsWithTimeout creates a new ShowProfileParams object with the ability to set a timeout on a request.
func (*ShowProfileParams) SetContext ¶
func (o *ShowProfileParams) SetContext(ctx context.Context)
SetContext adds the context to the show profile params
func (*ShowProfileParams) SetDefaults ¶
func (o *ShowProfileParams) SetDefaults()
SetDefaults hydrates default values in the show profile params (not the query body).
All values with no default are reset to their zero value.
func (*ShowProfileParams) SetHTTPClient ¶
func (o *ShowProfileParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the show profile params
func (*ShowProfileParams) SetTimeout ¶
func (o *ShowProfileParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the show profile params
func (*ShowProfileParams) WithContext ¶
func (o *ShowProfileParams) WithContext(ctx context.Context) *ShowProfileParams
WithContext adds the context to the show profile params
func (*ShowProfileParams) WithDefaults ¶
func (o *ShowProfileParams) WithDefaults() *ShowProfileParams
WithDefaults hydrates default values in the show profile params (not the query body).
All values with no default are reset to their zero value.
func (*ShowProfileParams) WithHTTPClient ¶
func (o *ShowProfileParams) WithHTTPClient(client *http.Client) *ShowProfileParams
WithHTTPClient adds the HTTPClient to the show profile params
func (*ShowProfileParams) WithTimeout ¶
func (o *ShowProfileParams) WithTimeout(timeout time.Duration) *ShowProfileParams
WithTimeout adds the timeout to the show profile params
func (*ShowProfileParams) WriteToRequest ¶
func (o *ShowProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ShowProfileReader ¶
type ShowProfileReader struct {
// contains filtered or unexported fields
}
ShowProfileReader is a Reader for the ShowProfile structure.
func (*ShowProfileReader) ReadResponse ¶
func (o *ShowProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type TokenProfileDefault ¶
type TokenProfileDefault struct { Payload *models.GeneralError // contains filtered or unexported fields }
TokenProfileDefault describes a response with status code -1, with default header values.
Some error unrelated to the handler
func NewTokenProfileDefault ¶
func NewTokenProfileDefault(code int) *TokenProfileDefault
NewTokenProfileDefault creates a TokenProfileDefault with default headers values
func (*TokenProfileDefault) Code ¶
func (o *TokenProfileDefault) Code() int
Code gets the status code for the token profile default response
func (*TokenProfileDefault) Error ¶
func (o *TokenProfileDefault) Error() string
func (*TokenProfileDefault) GetPayload ¶
func (o *TokenProfileDefault) GetPayload() *models.GeneralError
func (*TokenProfileDefault) IsClientError ¶
func (o *TokenProfileDefault) IsClientError() bool
IsClientError returns true when this token profile default response has a 4xx status code
func (*TokenProfileDefault) IsCode ¶
func (o *TokenProfileDefault) IsCode(code int) bool
IsCode returns true when this token profile default response a status code equal to that given
func (*TokenProfileDefault) IsRedirect ¶
func (o *TokenProfileDefault) IsRedirect() bool
IsRedirect returns true when this token profile default response has a 3xx status code
func (*TokenProfileDefault) IsServerError ¶
func (o *TokenProfileDefault) IsServerError() bool
IsServerError returns true when this token profile default response has a 5xx status code
func (*TokenProfileDefault) IsSuccess ¶
func (o *TokenProfileDefault) IsSuccess() bool
IsSuccess returns true when this token profile default response has a 2xx status code
func (*TokenProfileDefault) String ¶
func (o *TokenProfileDefault) String() string
type TokenProfileForbidden ¶
type TokenProfileForbidden struct {
Payload *models.GeneralError
}
TokenProfileForbidden describes a response with status code 403, with default header values.
User is not authorized
func NewTokenProfileForbidden ¶
func NewTokenProfileForbidden() *TokenProfileForbidden
NewTokenProfileForbidden creates a TokenProfileForbidden with default headers values
func (*TokenProfileForbidden) Code ¶
func (o *TokenProfileForbidden) Code() int
Code gets the status code for the token profile forbidden response
func (*TokenProfileForbidden) Error ¶
func (o *TokenProfileForbidden) Error() string
func (*TokenProfileForbidden) GetPayload ¶
func (o *TokenProfileForbidden) GetPayload() *models.GeneralError
func (*TokenProfileForbidden) IsClientError ¶
func (o *TokenProfileForbidden) IsClientError() bool
IsClientError returns true when this token profile forbidden response has a 4xx status code
func (*TokenProfileForbidden) IsCode ¶
func (o *TokenProfileForbidden) IsCode(code int) bool
IsCode returns true when this token profile forbidden response a status code equal to that given
func (*TokenProfileForbidden) IsRedirect ¶
func (o *TokenProfileForbidden) IsRedirect() bool
IsRedirect returns true when this token profile forbidden response has a 3xx status code
func (*TokenProfileForbidden) IsServerError ¶
func (o *TokenProfileForbidden) IsServerError() bool
IsServerError returns true when this token profile forbidden response has a 5xx status code
func (*TokenProfileForbidden) IsSuccess ¶
func (o *TokenProfileForbidden) IsSuccess() bool
IsSuccess returns true when this token profile forbidden response has a 2xx status code
func (*TokenProfileForbidden) String ¶
func (o *TokenProfileForbidden) String() string
type TokenProfileInternalServerError ¶
type TokenProfileInternalServerError struct {
Payload *models.GeneralError
}
TokenProfileInternalServerError describes a response with status code 500, with default header values.
Failed to generate a token
func NewTokenProfileInternalServerError ¶
func NewTokenProfileInternalServerError() *TokenProfileInternalServerError
NewTokenProfileInternalServerError creates a TokenProfileInternalServerError with default headers values
func (*TokenProfileInternalServerError) Code ¶
func (o *TokenProfileInternalServerError) Code() int
Code gets the status code for the token profile internal server error response
func (*TokenProfileInternalServerError) Error ¶
func (o *TokenProfileInternalServerError) Error() string
func (*TokenProfileInternalServerError) GetPayload ¶
func (o *TokenProfileInternalServerError) GetPayload() *models.GeneralError
func (*TokenProfileInternalServerError) IsClientError ¶
func (o *TokenProfileInternalServerError) IsClientError() bool
IsClientError returns true when this token profile internal server error response has a 4xx status code
func (*TokenProfileInternalServerError) IsCode ¶
func (o *TokenProfileInternalServerError) IsCode(code int) bool
IsCode returns true when this token profile internal server error response a status code equal to that given
func (*TokenProfileInternalServerError) IsRedirect ¶
func (o *TokenProfileInternalServerError) IsRedirect() bool
IsRedirect returns true when this token profile internal server error response has a 3xx status code
func (*TokenProfileInternalServerError) IsServerError ¶
func (o *TokenProfileInternalServerError) IsServerError() bool
IsServerError returns true when this token profile internal server error response has a 5xx status code
func (*TokenProfileInternalServerError) IsSuccess ¶
func (o *TokenProfileInternalServerError) IsSuccess() bool
IsSuccess returns true when this token profile internal server error response has a 2xx status code
func (*TokenProfileInternalServerError) String ¶
func (o *TokenProfileInternalServerError) String() string
type TokenProfileOK ¶
TokenProfileOK describes a response with status code 200, with default header values.
The unlimited auth token
func NewTokenProfileOK ¶
func NewTokenProfileOK() *TokenProfileOK
NewTokenProfileOK creates a TokenProfileOK with default headers values
func (*TokenProfileOK) Code ¶
func (o *TokenProfileOK) Code() int
Code gets the status code for the token profile o k response
func (*TokenProfileOK) Error ¶
func (o *TokenProfileOK) Error() string
func (*TokenProfileOK) GetPayload ¶
func (o *TokenProfileOK) GetPayload() *models.AuthToken
func (*TokenProfileOK) IsClientError ¶
func (o *TokenProfileOK) IsClientError() bool
IsClientError returns true when this token profile o k response has a 4xx status code
func (*TokenProfileOK) IsCode ¶
func (o *TokenProfileOK) IsCode(code int) bool
IsCode returns true when this token profile o k response a status code equal to that given
func (*TokenProfileOK) IsRedirect ¶
func (o *TokenProfileOK) IsRedirect() bool
IsRedirect returns true when this token profile o k response has a 3xx status code
func (*TokenProfileOK) IsServerError ¶
func (o *TokenProfileOK) IsServerError() bool
IsServerError returns true when this token profile o k response has a 5xx status code
func (*TokenProfileOK) IsSuccess ¶
func (o *TokenProfileOK) IsSuccess() bool
IsSuccess returns true when this token profile o k response has a 2xx status code
func (*TokenProfileOK) String ¶
func (o *TokenProfileOK) String() string
type TokenProfileParams ¶
type TokenProfileParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
TokenProfileParams contains all the parameters to send to the API endpoint
for the token profile operation. Typically these are written to a http.Request.
func NewTokenProfileParams ¶
func NewTokenProfileParams() *TokenProfileParams
NewTokenProfileParams creates a new TokenProfileParams 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 NewTokenProfileParamsWithContext ¶
func NewTokenProfileParamsWithContext(ctx context.Context) *TokenProfileParams
NewTokenProfileParamsWithContext creates a new TokenProfileParams object with the ability to set a context for a request.
func NewTokenProfileParamsWithHTTPClient ¶
func NewTokenProfileParamsWithHTTPClient(client *http.Client) *TokenProfileParams
NewTokenProfileParamsWithHTTPClient creates a new TokenProfileParams object with the ability to set a custom HTTPClient for a request.
func NewTokenProfileParamsWithTimeout ¶
func NewTokenProfileParamsWithTimeout(timeout time.Duration) *TokenProfileParams
NewTokenProfileParamsWithTimeout creates a new TokenProfileParams object with the ability to set a timeout on a request.
func (*TokenProfileParams) SetContext ¶
func (o *TokenProfileParams) SetContext(ctx context.Context)
SetContext adds the context to the token profile params
func (*TokenProfileParams) SetDefaults ¶
func (o *TokenProfileParams) SetDefaults()
SetDefaults hydrates default values in the token profile params (not the query body).
All values with no default are reset to their zero value.
func (*TokenProfileParams) SetHTTPClient ¶
func (o *TokenProfileParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the token profile params
func (*TokenProfileParams) SetTimeout ¶
func (o *TokenProfileParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the token profile params
func (*TokenProfileParams) WithContext ¶
func (o *TokenProfileParams) WithContext(ctx context.Context) *TokenProfileParams
WithContext adds the context to the token profile params
func (*TokenProfileParams) WithDefaults ¶
func (o *TokenProfileParams) WithDefaults() *TokenProfileParams
WithDefaults hydrates default values in the token profile params (not the query body).
All values with no default are reset to their zero value.
func (*TokenProfileParams) WithHTTPClient ¶
func (o *TokenProfileParams) WithHTTPClient(client *http.Client) *TokenProfileParams
WithHTTPClient adds the HTTPClient to the token profile params
func (*TokenProfileParams) WithTimeout ¶
func (o *TokenProfileParams) WithTimeout(timeout time.Duration) *TokenProfileParams
WithTimeout adds the timeout to the token profile params
func (*TokenProfileParams) WriteToRequest ¶
func (o *TokenProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type TokenProfileReader ¶
type TokenProfileReader struct {
// contains filtered or unexported fields
}
TokenProfileReader is a Reader for the TokenProfile structure.
func (*TokenProfileReader) ReadResponse ¶
func (o *TokenProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateProfileDefault ¶
type UpdateProfileDefault struct { Payload *models.GeneralError // contains filtered or unexported fields }
UpdateProfileDefault describes a response with status code -1, with default header values.
Some error unrelated to the handler
func NewUpdateProfileDefault ¶
func NewUpdateProfileDefault(code int) *UpdateProfileDefault
NewUpdateProfileDefault creates a UpdateProfileDefault with default headers values
func (*UpdateProfileDefault) Code ¶
func (o *UpdateProfileDefault) Code() int
Code gets the status code for the update profile default response
func (*UpdateProfileDefault) Error ¶
func (o *UpdateProfileDefault) Error() string
func (*UpdateProfileDefault) GetPayload ¶
func (o *UpdateProfileDefault) GetPayload() *models.GeneralError
func (*UpdateProfileDefault) IsClientError ¶
func (o *UpdateProfileDefault) IsClientError() bool
IsClientError returns true when this update profile default response has a 4xx status code
func (*UpdateProfileDefault) IsCode ¶
func (o *UpdateProfileDefault) IsCode(code int) bool
IsCode returns true when this update profile default response a status code equal to that given
func (*UpdateProfileDefault) IsRedirect ¶
func (o *UpdateProfileDefault) IsRedirect() bool
IsRedirect returns true when this update profile default response has a 3xx status code
func (*UpdateProfileDefault) IsServerError ¶
func (o *UpdateProfileDefault) IsServerError() bool
IsServerError returns true when this update profile default response has a 5xx status code
func (*UpdateProfileDefault) IsSuccess ¶
func (o *UpdateProfileDefault) IsSuccess() bool
IsSuccess returns true when this update profile default response has a 2xx status code
func (*UpdateProfileDefault) String ¶
func (o *UpdateProfileDefault) String() string
type UpdateProfileForbidden ¶
type UpdateProfileForbidden struct {
Payload *models.GeneralError
}
UpdateProfileForbidden describes a response with status code 403, with default header values.
User is not authorized
func NewUpdateProfileForbidden ¶
func NewUpdateProfileForbidden() *UpdateProfileForbidden
NewUpdateProfileForbidden creates a UpdateProfileForbidden with default headers values
func (*UpdateProfileForbidden) Code ¶
func (o *UpdateProfileForbidden) Code() int
Code gets the status code for the update profile forbidden response
func (*UpdateProfileForbidden) Error ¶
func (o *UpdateProfileForbidden) Error() string
func (*UpdateProfileForbidden) GetPayload ¶
func (o *UpdateProfileForbidden) GetPayload() *models.GeneralError
func (*UpdateProfileForbidden) IsClientError ¶
func (o *UpdateProfileForbidden) IsClientError() bool
IsClientError returns true when this update profile forbidden response has a 4xx status code
func (*UpdateProfileForbidden) IsCode ¶
func (o *UpdateProfileForbidden) IsCode(code int) bool
IsCode returns true when this update profile forbidden response a status code equal to that given
func (*UpdateProfileForbidden) IsRedirect ¶
func (o *UpdateProfileForbidden) IsRedirect() bool
IsRedirect returns true when this update profile forbidden response has a 3xx status code
func (*UpdateProfileForbidden) IsServerError ¶
func (o *UpdateProfileForbidden) IsServerError() bool
IsServerError returns true when this update profile forbidden response has a 5xx status code
func (*UpdateProfileForbidden) IsSuccess ¶
func (o *UpdateProfileForbidden) IsSuccess() bool
IsSuccess returns true when this update profile forbidden response has a 2xx status code
func (*UpdateProfileForbidden) String ¶
func (o *UpdateProfileForbidden) String() string
type UpdateProfileOK ¶
UpdateProfileOK describes a response with status code 200, with default header values.
The updated profile data
func NewUpdateProfileOK ¶
func NewUpdateProfileOK() *UpdateProfileOK
NewUpdateProfileOK creates a UpdateProfileOK with default headers values
func (*UpdateProfileOK) Code ¶
func (o *UpdateProfileOK) Code() int
Code gets the status code for the update profile o k response
func (*UpdateProfileOK) Error ¶
func (o *UpdateProfileOK) Error() string
func (*UpdateProfileOK) GetPayload ¶
func (o *UpdateProfileOK) GetPayload() *models.Profile
func (*UpdateProfileOK) IsClientError ¶
func (o *UpdateProfileOK) IsClientError() bool
IsClientError returns true when this update profile o k response has a 4xx status code
func (*UpdateProfileOK) IsCode ¶
func (o *UpdateProfileOK) IsCode(code int) bool
IsCode returns true when this update profile o k response a status code equal to that given
func (*UpdateProfileOK) IsRedirect ¶
func (o *UpdateProfileOK) IsRedirect() bool
IsRedirect returns true when this update profile o k response has a 3xx status code
func (*UpdateProfileOK) IsServerError ¶
func (o *UpdateProfileOK) IsServerError() bool
IsServerError returns true when this update profile o k response has a 5xx status code
func (*UpdateProfileOK) IsSuccess ¶
func (o *UpdateProfileOK) IsSuccess() bool
IsSuccess returns true when this update profile o k response has a 2xx status code
func (*UpdateProfileOK) String ¶
func (o *UpdateProfileOK) String() string
type UpdateProfileParams ¶
type UpdateProfileParams struct { /* Profile. The profile data to update */ Profile *models.Profile Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateProfileParams contains all the parameters to send to the API endpoint
for the update profile operation. Typically these are written to a http.Request.
func NewUpdateProfileParams ¶
func NewUpdateProfileParams() *UpdateProfileParams
NewUpdateProfileParams creates a new UpdateProfileParams 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 NewUpdateProfileParamsWithContext ¶
func NewUpdateProfileParamsWithContext(ctx context.Context) *UpdateProfileParams
NewUpdateProfileParamsWithContext creates a new UpdateProfileParams object with the ability to set a context for a request.
func NewUpdateProfileParamsWithHTTPClient ¶
func NewUpdateProfileParamsWithHTTPClient(client *http.Client) *UpdateProfileParams
NewUpdateProfileParamsWithHTTPClient creates a new UpdateProfileParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateProfileParamsWithTimeout ¶
func NewUpdateProfileParamsWithTimeout(timeout time.Duration) *UpdateProfileParams
NewUpdateProfileParamsWithTimeout creates a new UpdateProfileParams object with the ability to set a timeout on a request.
func (*UpdateProfileParams) SetContext ¶
func (o *UpdateProfileParams) SetContext(ctx context.Context)
SetContext adds the context to the update profile params
func (*UpdateProfileParams) SetDefaults ¶
func (o *UpdateProfileParams) SetDefaults()
SetDefaults hydrates default values in the update profile params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateProfileParams) SetHTTPClient ¶
func (o *UpdateProfileParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update profile params
func (*UpdateProfileParams) SetProfile ¶
func (o *UpdateProfileParams) SetProfile(profile *models.Profile)
SetProfile adds the profile to the update profile params
func (*UpdateProfileParams) SetTimeout ¶
func (o *UpdateProfileParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update profile params
func (*UpdateProfileParams) WithContext ¶
func (o *UpdateProfileParams) WithContext(ctx context.Context) *UpdateProfileParams
WithContext adds the context to the update profile params
func (*UpdateProfileParams) WithDefaults ¶
func (o *UpdateProfileParams) WithDefaults() *UpdateProfileParams
WithDefaults hydrates default values in the update profile params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateProfileParams) WithHTTPClient ¶
func (o *UpdateProfileParams) WithHTTPClient(client *http.Client) *UpdateProfileParams
WithHTTPClient adds the HTTPClient to the update profile params
func (*UpdateProfileParams) WithProfile ¶
func (o *UpdateProfileParams) WithProfile(profile *models.Profile) *UpdateProfileParams
WithProfile adds the profile to the update profile params
func (*UpdateProfileParams) WithTimeout ¶
func (o *UpdateProfileParams) WithTimeout(timeout time.Duration) *UpdateProfileParams
WithTimeout adds the timeout to the update profile params
func (*UpdateProfileParams) WriteToRequest ¶
func (o *UpdateProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateProfileReader ¶
type UpdateProfileReader struct {
// contains filtered or unexported fields
}
UpdateProfileReader is a Reader for the UpdateProfile structure.
func (*UpdateProfileReader) ReadResponse ¶
func (o *UpdateProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateProfileUnprocessableEntity ¶
type UpdateProfileUnprocessableEntity struct {
Payload *models.ValidationError
}
UpdateProfileUnprocessableEntity describes a response with status code 422, with default header values.
Failed to validate request
func NewUpdateProfileUnprocessableEntity ¶
func NewUpdateProfileUnprocessableEntity() *UpdateProfileUnprocessableEntity
NewUpdateProfileUnprocessableEntity creates a UpdateProfileUnprocessableEntity with default headers values
func (*UpdateProfileUnprocessableEntity) Code ¶
func (o *UpdateProfileUnprocessableEntity) Code() int
Code gets the status code for the update profile unprocessable entity response
func (*UpdateProfileUnprocessableEntity) Error ¶
func (o *UpdateProfileUnprocessableEntity) Error() string
func (*UpdateProfileUnprocessableEntity) GetPayload ¶
func (o *UpdateProfileUnprocessableEntity) GetPayload() *models.ValidationError
func (*UpdateProfileUnprocessableEntity) IsClientError ¶
func (o *UpdateProfileUnprocessableEntity) IsClientError() bool
IsClientError returns true when this update profile unprocessable entity response has a 4xx status code
func (*UpdateProfileUnprocessableEntity) IsCode ¶
func (o *UpdateProfileUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this update profile unprocessable entity response a status code equal to that given
func (*UpdateProfileUnprocessableEntity) IsRedirect ¶
func (o *UpdateProfileUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this update profile unprocessable entity response has a 3xx status code
func (*UpdateProfileUnprocessableEntity) IsServerError ¶
func (o *UpdateProfileUnprocessableEntity) IsServerError() bool
IsServerError returns true when this update profile unprocessable entity response has a 5xx status code
func (*UpdateProfileUnprocessableEntity) IsSuccess ¶
func (o *UpdateProfileUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this update profile unprocessable entity response has a 2xx status code
func (*UpdateProfileUnprocessableEntity) String ¶
func (o *UpdateProfileUnprocessableEntity) String() string