user

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: ISC Imports: 10 Imported by: 1

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) CreateRootUser

func (a *Client) CreateRootUser(params *CreateRootUserParams, opts ...ClientOption) (*CreateRootUserOK, error)

CreateRootUser create root 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) GetMyInfo added in v2.3.0

func (a *Client) GetMyInfo(params *GetMyInfoParams, opts ...ClientOption) (*GetMyInfoOK, error)

GetMyInfo get my info 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 {
	CreateRootUser(params *CreateRootUserParams, opts ...ClientOption) (*CreateRootUserOK, error)

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

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

	GetMyInfo(params *GetMyInfoParams, opts ...ClientOption) (*GetMyInfoOK, 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 CreateRootUserBadRequest

type CreateRootUserBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateRootUserBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateRootUserBadRequest

func NewCreateRootUserBadRequest() *CreateRootUserBadRequest

NewCreateRootUserBadRequest creates a CreateRootUserBadRequest with default headers values

func (*CreateRootUserBadRequest) Error

func (o *CreateRootUserBadRequest) Error() string

func (*CreateRootUserBadRequest) GetPayload

func (o *CreateRootUserBadRequest) GetPayload() *models.ErrorBody

type CreateRootUserInternalServerError

type CreateRootUserInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateRootUserInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCreateRootUserInternalServerError

func NewCreateRootUserInternalServerError() *CreateRootUserInternalServerError

NewCreateRootUserInternalServerError creates a CreateRootUserInternalServerError with default headers values

func (*CreateRootUserInternalServerError) Error

func (*CreateRootUserInternalServerError) GetPayload

type CreateRootUserNotFound

type CreateRootUserNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateRootUserNotFound describes a response with status code 404, with default header values.

Not found

func NewCreateRootUserNotFound

func NewCreateRootUserNotFound() *CreateRootUserNotFound

NewCreateRootUserNotFound creates a CreateRootUserNotFound with default headers values

func (*CreateRootUserNotFound) Error

func (o *CreateRootUserNotFound) Error() string

func (*CreateRootUserNotFound) GetPayload

func (o *CreateRootUserNotFound) GetPayload() *models.ErrorBody

type CreateRootUserOK

type CreateRootUserOK struct {
	XTowerRequestID string

	Payload *models.WithTaskUser
}
CreateRootUserOK describes a response with status code 200, with default header values.

CreateRootUserOK create root user o k

func NewCreateRootUserOK

func NewCreateRootUserOK() *CreateRootUserOK

NewCreateRootUserOK creates a CreateRootUserOK with default headers values

func (*CreateRootUserOK) Error

func (o *CreateRootUserOK) Error() string

func (*CreateRootUserOK) GetPayload

func (o *CreateRootUserOK) GetPayload() *models.WithTaskUser

type CreateRootUserParams

type CreateRootUserParams struct {

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

	// RequestBody.
	RequestBody *models.RootUserCreationParams

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

CreateRootUserParams contains all the parameters to send to the API endpoint

for the create root user operation.

Typically these are written to a http.Request.

func NewCreateRootUserParams

func NewCreateRootUserParams() *CreateRootUserParams

NewCreateRootUserParams creates a new CreateRootUserParams 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 NewCreateRootUserParamsWithContext

func NewCreateRootUserParamsWithContext(ctx context.Context) *CreateRootUserParams

NewCreateRootUserParamsWithContext creates a new CreateRootUserParams object with the ability to set a context for a request.

func NewCreateRootUserParamsWithHTTPClient

func NewCreateRootUserParamsWithHTTPClient(client *http.Client) *CreateRootUserParams

NewCreateRootUserParamsWithHTTPClient creates a new CreateRootUserParams object with the ability to set a custom HTTPClient for a request.

func NewCreateRootUserParamsWithTimeout

func NewCreateRootUserParamsWithTimeout(timeout time.Duration) *CreateRootUserParams

NewCreateRootUserParamsWithTimeout creates a new CreateRootUserParams object with the ability to set a timeout on a request.

func (*CreateRootUserParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the create root user params

func (*CreateRootUserParams) SetContext

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

SetContext adds the context to the create root user params

func (*CreateRootUserParams) SetDefaults

func (o *CreateRootUserParams) SetDefaults()

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

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

func (*CreateRootUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create root user params

func (*CreateRootUserParams) SetRequestBody

func (o *CreateRootUserParams) SetRequestBody(requestBody *models.RootUserCreationParams)

SetRequestBody adds the requestBody to the create root user params

func (*CreateRootUserParams) SetTimeout

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

SetTimeout adds the timeout to the create root user params

func (*CreateRootUserParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the create root user params

func (*CreateRootUserParams) WithContext

WithContext adds the context to the create root user params

func (*CreateRootUserParams) WithDefaults

func (o *CreateRootUserParams) WithDefaults() *CreateRootUserParams

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

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

func (*CreateRootUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create root user params

func (*CreateRootUserParams) WithRequestBody

func (o *CreateRootUserParams) WithRequestBody(requestBody *models.RootUserCreationParams) *CreateRootUserParams

WithRequestBody adds the requestBody to the create root user params

func (*CreateRootUserParams) WithTimeout

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

WithTimeout adds the timeout to the create root user params

func (*CreateRootUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateRootUserReader

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

CreateRootUserReader is a Reader for the CreateRootUser structure.

func (*CreateRootUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateUserBadRequest

type CreateUserBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateUserBadRequest describes a response with status code 400, with default header values.

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() *models.ErrorBody

type CreateUserInternalServerError

type CreateUserInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateUserInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCreateUserInternalServerError

func NewCreateUserInternalServerError() *CreateUserInternalServerError

NewCreateUserInternalServerError creates a CreateUserInternalServerError with default headers values

func (*CreateUserInternalServerError) Error

func (*CreateUserInternalServerError) GetPayload

type CreateUserNotFound

type CreateUserNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateUserNotFound describes a response with status code 404, with default header values.

Not found

func NewCreateUserNotFound

func NewCreateUserNotFound() *CreateUserNotFound

NewCreateUserNotFound creates a CreateUserNotFound with default headers values

func (*CreateUserNotFound) Error

func (o *CreateUserNotFound) Error() string

func (*CreateUserNotFound) GetPayload

func (o *CreateUserNotFound) GetPayload() *models.ErrorBody

type CreateUserOK

type CreateUserOK struct {
	XTowerRequestID string

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

CreateUserOK create user o k

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 {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteUserBadRequest describes a response with status code 400, with default header values.

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() *models.ErrorBody

type DeleteUserInternalServerError

type DeleteUserInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteUserInternalServerError describes a response with status code 500, with default header values.

Server error

func NewDeleteUserInternalServerError

func NewDeleteUserInternalServerError() *DeleteUserInternalServerError

NewDeleteUserInternalServerError creates a DeleteUserInternalServerError with default headers values

func (*DeleteUserInternalServerError) Error

func (*DeleteUserInternalServerError) GetPayload

type DeleteUserNotFound

type DeleteUserNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteUserNotFound describes a response with status code 404, with default header values.

Not found

func NewDeleteUserNotFound

func NewDeleteUserNotFound() *DeleteUserNotFound

NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values

func (*DeleteUserNotFound) Error

func (o *DeleteUserNotFound) Error() string

func (*DeleteUserNotFound) GetPayload

func (o *DeleteUserNotFound) GetPayload() *models.ErrorBody

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 GetMyInfoBadRequest added in v2.3.0

type GetMyInfoBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetMyInfoBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetMyInfoBadRequest added in v2.3.0

func NewGetMyInfoBadRequest() *GetMyInfoBadRequest

NewGetMyInfoBadRequest creates a GetMyInfoBadRequest with default headers values

func (*GetMyInfoBadRequest) Error added in v2.3.0

func (o *GetMyInfoBadRequest) Error() string

func (*GetMyInfoBadRequest) GetPayload added in v2.3.0

func (o *GetMyInfoBadRequest) GetPayload() *models.ErrorBody

type GetMyInfoInternalServerError added in v2.3.0

type GetMyInfoInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetMyInfoInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetMyInfoInternalServerError added in v2.3.0

func NewGetMyInfoInternalServerError() *GetMyInfoInternalServerError

NewGetMyInfoInternalServerError creates a GetMyInfoInternalServerError with default headers values

func (*GetMyInfoInternalServerError) Error added in v2.3.0

func (*GetMyInfoInternalServerError) GetPayload added in v2.3.0

type GetMyInfoNotFound added in v2.3.0

type GetMyInfoNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetMyInfoNotFound describes a response with status code 404, with default header values.

Not found

func NewGetMyInfoNotFound added in v2.3.0

func NewGetMyInfoNotFound() *GetMyInfoNotFound

NewGetMyInfoNotFound creates a GetMyInfoNotFound with default headers values

func (*GetMyInfoNotFound) Error added in v2.3.0

func (o *GetMyInfoNotFound) Error() string

func (*GetMyInfoNotFound) GetPayload added in v2.3.0

func (o *GetMyInfoNotFound) GetPayload() *models.ErrorBody

type GetMyInfoOK added in v2.3.0

type GetMyInfoOK struct {
	XTowerRequestID string

	Payload *models.User
}
GetMyInfoOK describes a response with status code 200, with default header values.

GetMyInfoOK get my info o k

func NewGetMyInfoOK added in v2.3.0

func NewGetMyInfoOK() *GetMyInfoOK

NewGetMyInfoOK creates a GetMyInfoOK with default headers values

func (*GetMyInfoOK) Error added in v2.3.0

func (o *GetMyInfoOK) Error() string

func (*GetMyInfoOK) GetPayload added in v2.3.0

func (o *GetMyInfoOK) GetPayload() *models.User

type GetMyInfoParams added in v2.3.0

type GetMyInfoParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetMyInfoParams contains all the parameters to send to the API endpoint

for the get my info operation.

Typically these are written to a http.Request.

func NewGetMyInfoParams added in v2.3.0

func NewGetMyInfoParams() *GetMyInfoParams

NewGetMyInfoParams creates a new GetMyInfoParams 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 NewGetMyInfoParamsWithContext added in v2.3.0

func NewGetMyInfoParamsWithContext(ctx context.Context) *GetMyInfoParams

NewGetMyInfoParamsWithContext creates a new GetMyInfoParams object with the ability to set a context for a request.

func NewGetMyInfoParamsWithHTTPClient added in v2.3.0

func NewGetMyInfoParamsWithHTTPClient(client *http.Client) *GetMyInfoParams

NewGetMyInfoParamsWithHTTPClient creates a new GetMyInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetMyInfoParamsWithTimeout added in v2.3.0

func NewGetMyInfoParamsWithTimeout(timeout time.Duration) *GetMyInfoParams

NewGetMyInfoParamsWithTimeout creates a new GetMyInfoParams object with the ability to set a timeout on a request.

func (*GetMyInfoParams) SetContext added in v2.3.0

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

SetContext adds the context to the get my info params

func (*GetMyInfoParams) SetDefaults added in v2.3.0

func (o *GetMyInfoParams) SetDefaults()

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

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

func (*GetMyInfoParams) SetHTTPClient added in v2.3.0

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

SetHTTPClient adds the HTTPClient to the get my info params

func (*GetMyInfoParams) SetTimeout added in v2.3.0

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

SetTimeout adds the timeout to the get my info params

func (*GetMyInfoParams) WithContext added in v2.3.0

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

WithContext adds the context to the get my info params

func (*GetMyInfoParams) WithDefaults added in v2.3.0

func (o *GetMyInfoParams) WithDefaults() *GetMyInfoParams

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

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

func (*GetMyInfoParams) WithHTTPClient added in v2.3.0

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

WithHTTPClient adds the HTTPClient to the get my info params

func (*GetMyInfoParams) WithTimeout added in v2.3.0

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

WithTimeout adds the timeout to the get my info params

func (*GetMyInfoParams) WriteToRequest added in v2.3.0

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

WriteToRequest writes these params to a swagger request

type GetMyInfoReader added in v2.3.0

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

GetMyInfoReader is a Reader for the GetMyInfo structure.

func (*GetMyInfoReader) ReadResponse added in v2.3.0

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

ReadResponse reads a server response into the received o.

type GetUsersBadRequest

type GetUsersBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUsersBadRequest describes a response with status code 400, with default header values.

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() *models.ErrorBody

type GetUsersConnectionBadRequest

type GetUsersConnectionBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUsersConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetUsersConnectionBadRequest

func NewGetUsersConnectionBadRequest() *GetUsersConnectionBadRequest

NewGetUsersConnectionBadRequest creates a GetUsersConnectionBadRequest with default headers values

func (*GetUsersConnectionBadRequest) Error

func (*GetUsersConnectionBadRequest) GetPayload

type GetUsersConnectionInternalServerError

type GetUsersConnectionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUsersConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetUsersConnectionInternalServerError

func NewGetUsersConnectionInternalServerError() *GetUsersConnectionInternalServerError

NewGetUsersConnectionInternalServerError creates a GetUsersConnectionInternalServerError with default headers values

func (*GetUsersConnectionInternalServerError) Error

func (*GetUsersConnectionInternalServerError) GetPayload

type GetUsersConnectionNotFound

type GetUsersConnectionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUsersConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetUsersConnectionNotFound

func NewGetUsersConnectionNotFound() *GetUsersConnectionNotFound

NewGetUsersConnectionNotFound creates a GetUsersConnectionNotFound with default headers values

func (*GetUsersConnectionNotFound) Error

func (*GetUsersConnectionNotFound) GetPayload

func (o *GetUsersConnectionNotFound) GetPayload() *models.ErrorBody

type GetUsersConnectionOK

type GetUsersConnectionOK struct {
	XTowerRequestID string

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

GetUsersConnectionOK get users connection o k

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 GetUsersInternalServerError

type GetUsersInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUsersInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetUsersInternalServerError

func NewGetUsersInternalServerError() *GetUsersInternalServerError

NewGetUsersInternalServerError creates a GetUsersInternalServerError with default headers values

func (*GetUsersInternalServerError) Error

func (*GetUsersInternalServerError) GetPayload

func (o *GetUsersInternalServerError) GetPayload() *models.ErrorBody

type GetUsersNotFound

type GetUsersNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetUsersNotFound describes a response with status code 404, with default header values.

Not found

func NewGetUsersNotFound

func NewGetUsersNotFound() *GetUsersNotFound

NewGetUsersNotFound creates a GetUsersNotFound with default headers values

func (*GetUsersNotFound) Error

func (o *GetUsersNotFound) Error() string

func (*GetUsersNotFound) GetPayload

func (o *GetUsersNotFound) GetPayload() *models.ErrorBody

type GetUsersOK

type GetUsersOK struct {
	XTowerRequestID string

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

GetUsersOK get users o k

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 {
	XTowerRequestID string

	Payload *models.ErrorBody
}
LoginBadRequest describes a response with status code 400, with default header values.

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() *models.ErrorBody

type LoginInternalServerError

type LoginInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
LoginInternalServerError describes a response with status code 500, with default header values.

Server error

func NewLoginInternalServerError

func NewLoginInternalServerError() *LoginInternalServerError

NewLoginInternalServerError creates a LoginInternalServerError with default headers values

func (*LoginInternalServerError) Error

func (o *LoginInternalServerError) Error() string

func (*LoginInternalServerError) GetPayload

func (o *LoginInternalServerError) GetPayload() *models.ErrorBody

type LoginNotFound

type LoginNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
LoginNotFound describes a response with status code 404, with default header values.

Not found

func NewLoginNotFound

func NewLoginNotFound() *LoginNotFound

NewLoginNotFound creates a LoginNotFound with default headers values

func (*LoginNotFound) Error

func (o *LoginNotFound) Error() string

func (*LoginNotFound) GetPayload

func (o *LoginNotFound) GetPayload() *models.ErrorBody

type LoginOK

type LoginOK struct {
	XTowerRequestID string

	Payload *models.WithTaskLoginResponse
}
LoginOK describes a response with status code 200, with default header values.

LoginOK login o k

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.WithTaskLoginResponse

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 {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateUserBadRequest describes a response with status code 400, with default header values.

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() *models.ErrorBody

type UpdateUserInternalServerError

type UpdateUserInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateUserInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateUserInternalServerError

func NewUpdateUserInternalServerError() *UpdateUserInternalServerError

NewUpdateUserInternalServerError creates a UpdateUserInternalServerError with default headers values

func (*UpdateUserInternalServerError) Error

func (*UpdateUserInternalServerError) GetPayload

type UpdateUserNotFound

type UpdateUserNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateUserNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateUserNotFound

func NewUpdateUserNotFound() *UpdateUserNotFound

NewUpdateUserNotFound creates a UpdateUserNotFound with default headers values

func (*UpdateUserNotFound) Error

func (o *UpdateUserNotFound) Error() string

func (*UpdateUserNotFound) GetPayload

func (o *UpdateUserNotFound) GetPayload() *models.ErrorBody

type UpdateUserOK

type UpdateUserOK struct {
	XTowerRequestID string

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

UpdateUserOK update user o k

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