user

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT 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 user API

func (*Client) CreateUser

func (a *Client) CreateUser(params *CreateUserParams, opts ...ClientOption) (*CreateUserOK, error)

CreateUser create user API

func (*Client) DeleteUser

func (a *Client) DeleteUser(params *DeleteUserParams, opts ...ClientOption) (*DeleteUserOK, error)

DeleteUser delete user API

func (*Client) GetUsers

func (a *Client) GetUsers(params *GetUsersParams, opts ...ClientOption) (*GetUsersOK, error)

GetUsers get users API

func (*Client) GetUsersConnection

func (a *Client) GetUsersConnection(params *GetUsersConnectionParams, opts ...ClientOption) (*GetUsersConnectionOK, error)

GetUsersConnection get users connection API

func (*Client) Login

func (a *Client) Login(params *LoginParams, opts ...ClientOption) (*LoginOK, error)

Login login API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateUser

func (a *Client) UpdateUser(params *UpdateUserParams, opts ...ClientOption) (*UpdateUserOK, error)

UpdateUser update user API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateUser(params *CreateUserParams, opts ...ClientOption) (*CreateUserOK, error)

	DeleteUser(params *DeleteUserParams, opts ...ClientOption) (*DeleteUserOK, error)

	GetUsers(params *GetUsersParams, opts ...ClientOption) (*GetUsersOK, error)

	GetUsersConnection(params *GetUsersConnectionParams, opts ...ClientOption) (*GetUsersConnectionOK, error)

	Login(params *LoginParams, opts ...ClientOption) (*LoginOK, error)

	UpdateUser(params *UpdateUserParams, opts ...ClientOption) (*UpdateUserOK, 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 user API client.

type CreateUserBadRequest

type CreateUserBadRequest struct {
	Payload string
}
CreateUserBadRequest describes a response with status code 400, with default header values.

CreateUserBadRequest create user bad request

func NewCreateUserBadRequest

func NewCreateUserBadRequest() *CreateUserBadRequest

NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values

func (*CreateUserBadRequest) Error

func (o *CreateUserBadRequest) Error() string

func (*CreateUserBadRequest) GetPayload

func (o *CreateUserBadRequest) GetPayload() string

type CreateUserOK

type CreateUserOK struct {
	Payload []*models.WithTaskUser
}
CreateUserOK describes a response with status code 200, with default header values.

Ok

func NewCreateUserOK

func NewCreateUserOK() *CreateUserOK

NewCreateUserOK creates a CreateUserOK with default headers values

func (*CreateUserOK) Error

func (o *CreateUserOK) Error() string

func (*CreateUserOK) GetPayload

func (o *CreateUserOK) GetPayload() []*models.WithTaskUser

type CreateUserParams

type CreateUserParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody []*models.UserCreationParams

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateUserParams contains all the parameters to send to the API endpoint

for the create user operation.

Typically these are written to a http.Request.

func NewCreateUserParams

func NewCreateUserParams() *CreateUserParams

NewCreateUserParams creates a new CreateUserParams 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 NewCreateUserParamsWithContext

func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams

NewCreateUserParamsWithContext creates a new CreateUserParams object with the ability to set a context for a request.

func NewCreateUserParamsWithHTTPClient

func NewCreateUserParamsWithHTTPClient(client *http.Client) *CreateUserParams

NewCreateUserParamsWithHTTPClient creates a new CreateUserParams object with the ability to set a custom HTTPClient for a request.

func NewCreateUserParamsWithTimeout

func NewCreateUserParamsWithTimeout(timeout time.Duration) *CreateUserParams

NewCreateUserParamsWithTimeout creates a new CreateUserParams object with the ability to set a timeout on a request.

func (*CreateUserParams) SetContentLanguage

func (o *CreateUserParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the create user params

func (*CreateUserParams) SetContext

func (o *CreateUserParams) SetContext(ctx context.Context)

SetContext adds the context to the create user params

func (*CreateUserParams) SetDefaults

func (o *CreateUserParams) SetDefaults()

SetDefaults hydrates default values in the create user params (not the query body).

All values with no default are reset to their zero value.

func (*CreateUserParams) SetHTTPClient

func (o *CreateUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create user params

func (*CreateUserParams) SetRequestBody

func (o *CreateUserParams) SetRequestBody(requestBody []*models.UserCreationParams)

SetRequestBody adds the requestBody to the create user params

func (*CreateUserParams) SetTimeout

func (o *CreateUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create user params

func (*CreateUserParams) WithContentLanguage

func (o *CreateUserParams) WithContentLanguage(contentLanguage *string) *CreateUserParams

WithContentLanguage adds the contentLanguage to the create user params

func (*CreateUserParams) WithContext

func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams

WithContext adds the context to the create user params

func (*CreateUserParams) WithDefaults

func (o *CreateUserParams) WithDefaults() *CreateUserParams

WithDefaults hydrates default values in the create user params (not the query body).

All values with no default are reset to their zero value.

func (*CreateUserParams) WithHTTPClient

func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams

WithHTTPClient adds the HTTPClient to the create user params

func (*CreateUserParams) WithRequestBody

func (o *CreateUserParams) WithRequestBody(requestBody []*models.UserCreationParams) *CreateUserParams

WithRequestBody adds the requestBody to the create user params

func (*CreateUserParams) WithTimeout

func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams

WithTimeout adds the timeout to the create user params

func (*CreateUserParams) WriteToRequest

func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateUserReader

type CreateUserReader struct {
	// contains filtered or unexported fields
}

CreateUserReader is a Reader for the CreateUser structure.

func (*CreateUserReader) ReadResponse

func (o *CreateUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteUserBadRequest

type DeleteUserBadRequest struct {
	Payload string
}
DeleteUserBadRequest describes a response with status code 400, with default header values.

DeleteUserBadRequest delete user bad request

func NewDeleteUserBadRequest

func NewDeleteUserBadRequest() *DeleteUserBadRequest

NewDeleteUserBadRequest creates a DeleteUserBadRequest with default headers values

func (*DeleteUserBadRequest) Error

func (o *DeleteUserBadRequest) Error() string

func (*DeleteUserBadRequest) GetPayload

func (o *DeleteUserBadRequest) GetPayload() string

type DeleteUserOK

type DeleteUserOK struct {
	Payload []*models.WithTaskDeleteUser
}
DeleteUserOK describes a response with status code 200, with default header values.

Ok

func NewDeleteUserOK

func NewDeleteUserOK() *DeleteUserOK

NewDeleteUserOK creates a DeleteUserOK with default headers values

func (*DeleteUserOK) Error

func (o *DeleteUserOK) Error() string

func (*DeleteUserOK) GetPayload

func (o *DeleteUserOK) GetPayload() []*models.WithTaskDeleteUser

type DeleteUserParams

type DeleteUserParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.UserDeletionParams

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteUserParams contains all the parameters to send to the API endpoint

for the delete user operation.

Typically these are written to a http.Request.

func NewDeleteUserParams

func NewDeleteUserParams() *DeleteUserParams

NewDeleteUserParams creates a new DeleteUserParams 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 NewDeleteUserParamsWithContext

func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams

NewDeleteUserParamsWithContext creates a new DeleteUserParams object with the ability to set a context for a request.

func NewDeleteUserParamsWithHTTPClient

func NewDeleteUserParamsWithHTTPClient(client *http.Client) *DeleteUserParams

NewDeleteUserParamsWithHTTPClient creates a new DeleteUserParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteUserParamsWithTimeout

func NewDeleteUserParamsWithTimeout(timeout time.Duration) *DeleteUserParams

NewDeleteUserParamsWithTimeout creates a new DeleteUserParams object with the ability to set a timeout on a request.

func (*DeleteUserParams) SetContentLanguage

func (o *DeleteUserParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the delete user params

func (*DeleteUserParams) SetContext

func (o *DeleteUserParams) SetContext(ctx context.Context)

SetContext adds the context to the delete user params

func (*DeleteUserParams) SetDefaults

func (o *DeleteUserParams) SetDefaults()

SetDefaults hydrates default values in the delete user params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteUserParams) SetHTTPClient

func (o *DeleteUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete user params

func (*DeleteUserParams) SetRequestBody

func (o *DeleteUserParams) SetRequestBody(requestBody *models.UserDeletionParams)

SetRequestBody adds the requestBody to the delete user params

func (*DeleteUserParams) SetTimeout

func (o *DeleteUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete user params

func (*DeleteUserParams) WithContentLanguage

func (o *DeleteUserParams) WithContentLanguage(contentLanguage *string) *DeleteUserParams

WithContentLanguage adds the contentLanguage to the delete user params

func (*DeleteUserParams) WithContext

func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams

WithContext adds the context to the delete user params

func (*DeleteUserParams) WithDefaults

func (o *DeleteUserParams) WithDefaults() *DeleteUserParams

WithDefaults hydrates default values in the delete user params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteUserParams) WithHTTPClient

func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams

WithHTTPClient adds the HTTPClient to the delete user params

func (*DeleteUserParams) WithRequestBody

func (o *DeleteUserParams) WithRequestBody(requestBody *models.UserDeletionParams) *DeleteUserParams

WithRequestBody adds the requestBody to the delete user params

func (*DeleteUserParams) WithTimeout

func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams

WithTimeout adds the timeout to the delete user params

func (*DeleteUserParams) WriteToRequest

func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DeleteUserReader

type DeleteUserReader struct {
	// contains filtered or unexported fields
}

DeleteUserReader is a Reader for the DeleteUser structure.

func (*DeleteUserReader) ReadResponse

func (o *DeleteUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetUsersBadRequest

type GetUsersBadRequest struct {
	Payload string
}
GetUsersBadRequest describes a response with status code 400, with default header values.

GetUsersBadRequest get users bad request

func NewGetUsersBadRequest

func NewGetUsersBadRequest() *GetUsersBadRequest

NewGetUsersBadRequest creates a GetUsersBadRequest with default headers values

func (*GetUsersBadRequest) Error

func (o *GetUsersBadRequest) Error() string

func (*GetUsersBadRequest) GetPayload

func (o *GetUsersBadRequest) GetPayload() string

type GetUsersConnectionBadRequest

type GetUsersConnectionBadRequest struct {
	Payload string
}
GetUsersConnectionBadRequest describes a response with status code 400, with default header values.

GetUsersConnectionBadRequest get users connection bad request

func NewGetUsersConnectionBadRequest

func NewGetUsersConnectionBadRequest() *GetUsersConnectionBadRequest

NewGetUsersConnectionBadRequest creates a GetUsersConnectionBadRequest with default headers values

func (*GetUsersConnectionBadRequest) Error

func (*GetUsersConnectionBadRequest) GetPayload

func (o *GetUsersConnectionBadRequest) GetPayload() string

type GetUsersConnectionOK

type GetUsersConnectionOK struct {
	Payload *models.UserConnection
}
GetUsersConnectionOK describes a response with status code 200, with default header values.

Ok

func NewGetUsersConnectionOK

func NewGetUsersConnectionOK() *GetUsersConnectionOK

NewGetUsersConnectionOK creates a GetUsersConnectionOK with default headers values

func (*GetUsersConnectionOK) Error

func (o *GetUsersConnectionOK) Error() string

func (*GetUsersConnectionOK) GetPayload

func (o *GetUsersConnectionOK) GetPayload() *models.UserConnection

type GetUsersConnectionParams

type GetUsersConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetUsersConnectionRequestBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetUsersConnectionParams contains all the parameters to send to the API endpoint

for the get users connection operation.

Typically these are written to a http.Request.

func NewGetUsersConnectionParams

func NewGetUsersConnectionParams() *GetUsersConnectionParams

NewGetUsersConnectionParams creates a new GetUsersConnectionParams 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 NewGetUsersConnectionParamsWithContext

func NewGetUsersConnectionParamsWithContext(ctx context.Context) *GetUsersConnectionParams

NewGetUsersConnectionParamsWithContext creates a new GetUsersConnectionParams object with the ability to set a context for a request.

func NewGetUsersConnectionParamsWithHTTPClient

func NewGetUsersConnectionParamsWithHTTPClient(client *http.Client) *GetUsersConnectionParams

NewGetUsersConnectionParamsWithHTTPClient creates a new GetUsersConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetUsersConnectionParamsWithTimeout

func NewGetUsersConnectionParamsWithTimeout(timeout time.Duration) *GetUsersConnectionParams

NewGetUsersConnectionParamsWithTimeout creates a new GetUsersConnectionParams object with the ability to set a timeout on a request.

func (*GetUsersConnectionParams) SetContentLanguage

func (o *GetUsersConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get users connection params

func (*GetUsersConnectionParams) SetContext

func (o *GetUsersConnectionParams) SetContext(ctx context.Context)

SetContext adds the context to the get users connection params

func (*GetUsersConnectionParams) SetDefaults

func (o *GetUsersConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get users connection params (not the query body).

All values with no default are reset to their zero value.

func (*GetUsersConnectionParams) SetHTTPClient

func (o *GetUsersConnectionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get users connection params

func (*GetUsersConnectionParams) SetRequestBody

func (o *GetUsersConnectionParams) SetRequestBody(requestBody *models.GetUsersConnectionRequestBody)

SetRequestBody adds the requestBody to the get users connection params

func (*GetUsersConnectionParams) SetTimeout

func (o *GetUsersConnectionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get users connection params

func (*GetUsersConnectionParams) WithContentLanguage

func (o *GetUsersConnectionParams) WithContentLanguage(contentLanguage *string) *GetUsersConnectionParams

WithContentLanguage adds the contentLanguage to the get users connection params

func (*GetUsersConnectionParams) WithContext

WithContext adds the context to the get users connection params

func (*GetUsersConnectionParams) WithDefaults

WithDefaults hydrates default values in the get users connection params (not the query body).

All values with no default are reset to their zero value.

func (*GetUsersConnectionParams) WithHTTPClient

func (o *GetUsersConnectionParams) WithHTTPClient(client *http.Client) *GetUsersConnectionParams

WithHTTPClient adds the HTTPClient to the get users connection params

func (*GetUsersConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get users connection params

func (*GetUsersConnectionParams) WithTimeout

WithTimeout adds the timeout to the get users connection params

func (*GetUsersConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUsersConnectionReader

type GetUsersConnectionReader struct {
	// contains filtered or unexported fields
}

GetUsersConnectionReader is a Reader for the GetUsersConnection structure.

func (*GetUsersConnectionReader) ReadResponse

func (o *GetUsersConnectionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetUsersOK

type GetUsersOK struct {
	Payload []*models.User
}
GetUsersOK describes a response with status code 200, with default header values.

Ok

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates a GetUsersOK with default headers values

func (*GetUsersOK) Error

func (o *GetUsersOK) Error() string

func (*GetUsersOK) GetPayload

func (o *GetUsersOK) GetPayload() []*models.User

type GetUsersParams

type GetUsersParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetUsersRequestBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetUsersParams contains all the parameters to send to the API endpoint

for the get users operation.

Typically these are written to a http.Request.

func NewGetUsersParams

func NewGetUsersParams() *GetUsersParams

NewGetUsersParams creates a new GetUsersParams 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 NewGetUsersParamsWithContext

func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams

NewGetUsersParamsWithContext creates a new GetUsersParams object with the ability to set a context for a request.

func NewGetUsersParamsWithHTTPClient

func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams

NewGetUsersParamsWithHTTPClient creates a new GetUsersParams object with the ability to set a custom HTTPClient for a request.

func NewGetUsersParamsWithTimeout

func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams

NewGetUsersParamsWithTimeout creates a new GetUsersParams object with the ability to set a timeout on a request.

func (*GetUsersParams) SetContentLanguage

func (o *GetUsersParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get users params

func (*GetUsersParams) SetContext

func (o *GetUsersParams) SetContext(ctx context.Context)

SetContext adds the context to the get users params

func (*GetUsersParams) SetDefaults

func (o *GetUsersParams) SetDefaults()

SetDefaults hydrates default values in the get users params (not the query body).

All values with no default are reset to their zero value.

func (*GetUsersParams) SetHTTPClient

func (o *GetUsersParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) SetRequestBody

func (o *GetUsersParams) SetRequestBody(requestBody *models.GetUsersRequestBody)

SetRequestBody adds the requestBody to the get users params

func (*GetUsersParams) SetTimeout

func (o *GetUsersParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get users params

func (*GetUsersParams) WithContentLanguage

func (o *GetUsersParams) WithContentLanguage(contentLanguage *string) *GetUsersParams

WithContentLanguage adds the contentLanguage to the get users params

func (*GetUsersParams) WithContext

func (o *GetUsersParams) WithContext(ctx context.Context) *GetUsersParams

WithContext adds the context to the get users params

func (*GetUsersParams) WithDefaults

func (o *GetUsersParams) WithDefaults() *GetUsersParams

WithDefaults hydrates default values in the get users params (not the query body).

All values with no default are reset to their zero value.

func (*GetUsersParams) WithHTTPClient

func (o *GetUsersParams) WithHTTPClient(client *http.Client) *GetUsersParams

WithHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) WithRequestBody

func (o *GetUsersParams) WithRequestBody(requestBody *models.GetUsersRequestBody) *GetUsersParams

WithRequestBody adds the requestBody to the get users params

func (*GetUsersParams) WithTimeout

func (o *GetUsersParams) WithTimeout(timeout time.Duration) *GetUsersParams

WithTimeout adds the timeout to the get users params

func (*GetUsersParams) WriteToRequest

func (o *GetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetUsersReader

type GetUsersReader struct {
	// contains filtered or unexported fields
}

GetUsersReader is a Reader for the GetUsers structure.

func (*GetUsersReader) ReadResponse

func (o *GetUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type LoginBadRequest

type LoginBadRequest struct {
	Payload string
}
LoginBadRequest describes a response with status code 400, with default header values.

LoginBadRequest login bad request

func NewLoginBadRequest

func NewLoginBadRequest() *LoginBadRequest

NewLoginBadRequest creates a LoginBadRequest with default headers values

func (*LoginBadRequest) Error

func (o *LoginBadRequest) Error() string

func (*LoginBadRequest) GetPayload

func (o *LoginBadRequest) GetPayload() string

type LoginOK

type LoginOK struct {
	Payload *models.WithTaskTokenString
}
LoginOK describes a response with status code 200, with default header values.

Ok

func NewLoginOK

func NewLoginOK() *LoginOK

NewLoginOK creates a LoginOK with default headers values

func (*LoginOK) Error

func (o *LoginOK) Error() string

func (*LoginOK) GetPayload

func (o *LoginOK) GetPayload() *models.WithTaskTokenString

type LoginParams

type LoginParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.LoginInput

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

LoginParams contains all the parameters to send to the API endpoint

for the login operation.

Typically these are written to a http.Request.

func NewLoginParams

func NewLoginParams() *LoginParams

NewLoginParams creates a new LoginParams 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 NewLoginParamsWithContext

func NewLoginParamsWithContext(ctx context.Context) *LoginParams

NewLoginParamsWithContext creates a new LoginParams object with the ability to set a context for a request.

func NewLoginParamsWithHTTPClient

func NewLoginParamsWithHTTPClient(client *http.Client) *LoginParams

NewLoginParamsWithHTTPClient creates a new LoginParams object with the ability to set a custom HTTPClient for a request.

func NewLoginParamsWithTimeout

func NewLoginParamsWithTimeout(timeout time.Duration) *LoginParams

NewLoginParamsWithTimeout creates a new LoginParams object with the ability to set a timeout on a request.

func (*LoginParams) SetContentLanguage

func (o *LoginParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the login params

func (*LoginParams) SetContext

func (o *LoginParams) SetContext(ctx context.Context)

SetContext adds the context to the login params

func (*LoginParams) SetDefaults

func (o *LoginParams) SetDefaults()

SetDefaults hydrates default values in the login params (not the query body).

All values with no default are reset to their zero value.

func (*LoginParams) SetHTTPClient

func (o *LoginParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the login params

func (*LoginParams) SetRequestBody

func (o *LoginParams) SetRequestBody(requestBody *models.LoginInput)

SetRequestBody adds the requestBody to the login params

func (*LoginParams) SetTimeout

func (o *LoginParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the login params

func (*LoginParams) WithContentLanguage

func (o *LoginParams) WithContentLanguage(contentLanguage *string) *LoginParams

WithContentLanguage adds the contentLanguage to the login params

func (*LoginParams) WithContext

func (o *LoginParams) WithContext(ctx context.Context) *LoginParams

WithContext adds the context to the login params

func (*LoginParams) WithDefaults

func (o *LoginParams) WithDefaults() *LoginParams

WithDefaults hydrates default values in the login params (not the query body).

All values with no default are reset to their zero value.

func (*LoginParams) WithHTTPClient

func (o *LoginParams) WithHTTPClient(client *http.Client) *LoginParams

WithHTTPClient adds the HTTPClient to the login params

func (*LoginParams) WithRequestBody

func (o *LoginParams) WithRequestBody(requestBody *models.LoginInput) *LoginParams

WithRequestBody adds the requestBody to the login params

func (*LoginParams) WithTimeout

func (o *LoginParams) WithTimeout(timeout time.Duration) *LoginParams

WithTimeout adds the timeout to the login params

func (*LoginParams) WriteToRequest

func (o *LoginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type LoginReader

type LoginReader struct {
	// contains filtered or unexported fields
}

LoginReader is a Reader for the Login structure.

func (*LoginReader) ReadResponse

func (o *LoginReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateUserBadRequest

type UpdateUserBadRequest struct {
	Payload string
}
UpdateUserBadRequest describes a response with status code 400, with default header values.

UpdateUserBadRequest update user bad request

func NewUpdateUserBadRequest

func NewUpdateUserBadRequest() *UpdateUserBadRequest

NewUpdateUserBadRequest creates a UpdateUserBadRequest with default headers values

func (*UpdateUserBadRequest) Error

func (o *UpdateUserBadRequest) Error() string

func (*UpdateUserBadRequest) GetPayload

func (o *UpdateUserBadRequest) GetPayload() string

type UpdateUserOK

type UpdateUserOK struct {
	Payload []*models.WithTaskUser
}
UpdateUserOK describes a response with status code 200, with default header values.

Ok

func NewUpdateUserOK

func NewUpdateUserOK() *UpdateUserOK

NewUpdateUserOK creates a UpdateUserOK with default headers values

func (*UpdateUserOK) Error

func (o *UpdateUserOK) Error() string

func (*UpdateUserOK) GetPayload

func (o *UpdateUserOK) GetPayload() []*models.WithTaskUser

type UpdateUserParams

type UpdateUserParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.UserUpdationParams

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateUserParams contains all the parameters to send to the API endpoint

for the update user operation.

Typically these are written to a http.Request.

func NewUpdateUserParams

func NewUpdateUserParams() *UpdateUserParams

NewUpdateUserParams creates a new UpdateUserParams 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 NewUpdateUserParamsWithContext

func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams

NewUpdateUserParamsWithContext creates a new UpdateUserParams object with the ability to set a context for a request.

func NewUpdateUserParamsWithHTTPClient

func NewUpdateUserParamsWithHTTPClient(client *http.Client) *UpdateUserParams

NewUpdateUserParamsWithHTTPClient creates a new UpdateUserParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateUserParamsWithTimeout

func NewUpdateUserParamsWithTimeout(timeout time.Duration) *UpdateUserParams

NewUpdateUserParamsWithTimeout creates a new UpdateUserParams object with the ability to set a timeout on a request.

func (*UpdateUserParams) SetContentLanguage

func (o *UpdateUserParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the update user params

func (*UpdateUserParams) SetContext

func (o *UpdateUserParams) SetContext(ctx context.Context)

SetContext adds the context to the update user params

func (*UpdateUserParams) SetDefaults

func (o *UpdateUserParams) SetDefaults()

SetDefaults hydrates default values in the update user params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateUserParams) SetHTTPClient

func (o *UpdateUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update user params

func (*UpdateUserParams) SetRequestBody

func (o *UpdateUserParams) SetRequestBody(requestBody *models.UserUpdationParams)

SetRequestBody adds the requestBody to the update user params

func (*UpdateUserParams) SetTimeout

func (o *UpdateUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update user params

func (*UpdateUserParams) WithContentLanguage

func (o *UpdateUserParams) WithContentLanguage(contentLanguage *string) *UpdateUserParams

WithContentLanguage adds the contentLanguage to the update user params

func (*UpdateUserParams) WithContext

func (o *UpdateUserParams) WithContext(ctx context.Context) *UpdateUserParams

WithContext adds the context to the update user params

func (*UpdateUserParams) WithDefaults

func (o *UpdateUserParams) WithDefaults() *UpdateUserParams

WithDefaults hydrates default values in the update user params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateUserParams) WithHTTPClient

func (o *UpdateUserParams) WithHTTPClient(client *http.Client) *UpdateUserParams

WithHTTPClient adds the HTTPClient to the update user params

func (*UpdateUserParams) WithRequestBody

func (o *UpdateUserParams) WithRequestBody(requestBody *models.UserUpdationParams) *UpdateUserParams

WithRequestBody adds the requestBody to the update user params

func (*UpdateUserParams) WithTimeout

func (o *UpdateUserParams) WithTimeout(timeout time.Duration) *UpdateUserParams

WithTimeout adds the timeout to the update user params

func (*UpdateUserParams) WriteToRequest

func (o *UpdateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateUserReader

type UpdateUserReader struct {
	// contains filtered or unexported fields
}

UpdateUserReader is a Reader for the UpdateUser structure.

func (*UpdateUserReader) ReadResponse

func (o *UpdateUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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