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 ShowProfileDefault
- type ShowProfileForbidden
- type ShowProfileOK
- type ShowProfileParams
- func (o *ShowProfileParams) SetContext(ctx context.Context)
- 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) 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
- type TokenProfileForbidden
- type TokenProfileInternalServerError
- type TokenProfileOK
- type TokenProfileParams
- func (o *TokenProfileParams) SetContext(ctx context.Context)
- 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) 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
- type UpdateProfileForbidden
- type UpdateProfileOK
- type UpdateProfileParams
- func (o *UpdateProfileParams) SetContext(ctx context.Context)
- 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) 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
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 New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new profile API client.
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) (*ShowProfileOK, error)
ShowProfile fetches profile details of the personal account
func (*Client) TokenProfile ¶
func (a *Client) TokenProfile(params *TokenProfileParams, authInfo runtime.ClientAuthInfoWriter) (*TokenProfileOK, error)
TokenProfile retrieves an unlimited auth token
func (*Client) UpdateProfile ¶
func (a *Client) UpdateProfile(params *UpdateProfileParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateProfileOK, error)
UpdateProfile updates your own profile information
type ShowProfileDefault ¶
type ShowProfileDefault struct { Payload *models.GeneralError // contains filtered or unexported fields }
ShowProfileDefault handles this case 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
type ShowProfileForbidden ¶
type ShowProfileForbidden struct {
Payload *models.GeneralError
}
ShowProfileForbidden handles this case with default header values.
User is not authorized
func NewShowProfileForbidden ¶
func NewShowProfileForbidden() *ShowProfileForbidden
NewShowProfileForbidden creates a ShowProfileForbidden with default headers values
func (*ShowProfileForbidden) Error ¶
func (o *ShowProfileForbidden) Error() string
type ShowProfileOK ¶
ShowProfileOK handles this case with default header values.
The current profile data
func NewShowProfileOK ¶
func NewShowProfileOK() *ShowProfileOK
NewShowProfileOK creates a ShowProfileOK with default headers values
func (*ShowProfileOK) Error ¶
func (o *ShowProfileOK) Error() 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 values initialized.
func NewShowProfileParamsWithContext ¶
func NewShowProfileParamsWithContext(ctx context.Context) *ShowProfileParams
NewShowProfileParamsWithContext creates a new ShowProfileParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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
type TokenProfileForbidden ¶
type TokenProfileForbidden struct {
Payload *models.GeneralError
}
TokenProfileForbidden handles this case with default header values.
User is not authorized
func NewTokenProfileForbidden ¶
func NewTokenProfileForbidden() *TokenProfileForbidden
NewTokenProfileForbidden creates a TokenProfileForbidden with default headers values
func (*TokenProfileForbidden) Error ¶
func (o *TokenProfileForbidden) Error() string
type TokenProfileInternalServerError ¶
type TokenProfileInternalServerError struct {
Payload *models.GeneralError
}
TokenProfileInternalServerError handles this case with default header values.
Failed to generate a token
func NewTokenProfileInternalServerError ¶
func NewTokenProfileInternalServerError() *TokenProfileInternalServerError
NewTokenProfileInternalServerError creates a TokenProfileInternalServerError with default headers values
func (*TokenProfileInternalServerError) Error ¶
func (o *TokenProfileInternalServerError) Error() string
type TokenProfileOK ¶
TokenProfileOK handles this case with default header values.
The unlimited auth token
func NewTokenProfileOK ¶
func NewTokenProfileOK() *TokenProfileOK
NewTokenProfileOK creates a TokenProfileOK with default headers values
func (*TokenProfileOK) Error ¶
func (o *TokenProfileOK) Error() 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 values initialized.
func NewTokenProfileParamsWithContext ¶
func NewTokenProfileParamsWithContext(ctx context.Context) *TokenProfileParams
NewTokenProfileParamsWithContext creates a new TokenProfileParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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
type UpdateProfileForbidden ¶
type UpdateProfileForbidden struct {
Payload *models.GeneralError
}
UpdateProfileForbidden handles this case with default header values.
User is not authorized
func NewUpdateProfileForbidden ¶
func NewUpdateProfileForbidden() *UpdateProfileForbidden
NewUpdateProfileForbidden creates a UpdateProfileForbidden with default headers values
func (*UpdateProfileForbidden) Error ¶
func (o *UpdateProfileForbidden) Error() string
type UpdateProfileOK ¶
UpdateProfileOK handles this case with default header values.
The updated profile data
func NewUpdateProfileOK ¶
func NewUpdateProfileOK() *UpdateProfileOK
NewUpdateProfileOK creates a UpdateProfileOK with default headers values
func (*UpdateProfileOK) Error ¶
func (o *UpdateProfileOK) Error() 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 values initialized.
func NewUpdateProfileParamsWithContext ¶
func NewUpdateProfileParamsWithContext(ctx context.Context) *UpdateProfileParams
NewUpdateProfileParamsWithContext creates a new UpdateProfileParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case with default header values.
Failed to validate request
func NewUpdateProfileUnprocessableEntity ¶
func NewUpdateProfileUnprocessableEntity() *UpdateProfileUnprocessableEntity
NewUpdateProfileUnprocessableEntity creates a UpdateProfileUnprocessableEntity with default headers values
func (*UpdateProfileUnprocessableEntity) Error ¶
func (o *UpdateProfileUnprocessableEntity) Error() string