profile

package
v0.0.0-...-fe695c3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2019 License: Apache-2.0 Imports: 10 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 {
	// 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) (*ShowProfileOK, error)

ShowProfile retrieves an unlimited auth token

func (*Client) TokenProfile

func (a *Client) TokenProfile(params *TokenProfileParams) (*TokenProfileOK, error)

TokenProfile retrieves an unlimited auth token

func (*Client) UpdateProfile

func (a *Client) UpdateProfile(params *UpdateProfileParams) (*UpdateProfileOK, error)

UpdateProfile retrieves an unlimited auth token

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

type ShowProfileOK struct {
	Payload *models.Profile
}

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

type TokenProfileOK

type TokenProfileOK struct {
	Payload *models.AuthToken
}

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

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

type UpdateProfileOK struct {
	Payload *models.Profile
}

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

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 UpdateProfilePreconditionFailed

type UpdateProfilePreconditionFailed struct {
	Payload *models.GeneralError
}

UpdateProfilePreconditionFailed handles this case with default header values.

Failed to parse request body

func NewUpdateProfilePreconditionFailed

func NewUpdateProfilePreconditionFailed() *UpdateProfilePreconditionFailed

NewUpdateProfilePreconditionFailed creates a UpdateProfilePreconditionFailed with default headers values

func (*UpdateProfilePreconditionFailed) Error

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

Jump to

Keyboard shortcuts

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