user_management

package
v0.0.0-...-af0b780 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0, 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 user management API

func (*Client) CreateUser

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

CreateUser creates a user

func (*Client) DeleteUser

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

DeleteUser deletes a user

Deletes the specified user. Note that you can't delete a customer's primary user.

func (*Client) GetUserDetails

func (a *Client) GetUserDetails(params *GetUserDetailsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserDetailsOK, error)

GetUserDetails gets a user s details

func (*Client) ListUsers

func (a *Client) ListUsers(params *ListUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUsersOK, error)

ListUsers lists all users

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateUserPassword

func (a *Client) UpdateUserPassword(params *UpdateUserPasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserPasswordOK, error)

UpdateUserPassword changes a user s password

func (*Client) UpdateUserProfile

func (a *Client) UpdateUserProfile(params *UpdateUserProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserProfileOK, error)

UpdateUserProfile updates a user s profile

func (*Client) UpdateUserRole

func (a *Client) UpdateUserRole(params *UpdateUserRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserRoleOK, error)

UpdateUserRole changes a user s role

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	UpdateUserProfile(params *UpdateUserProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserProfileOK, error)

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

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

	GetUserDetails(params *GetUserDetailsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserDetailsOK, error)

	ListUsers(params *ListUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUsersOK, error)

	UpdateUserPassword(params *UpdateUserPasswordParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserPasswordOK, error)

	UpdateUserRole(params *UpdateUserRoleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUserRoleOK, 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 management API client.

type CreateUserOK

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

successful operation

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

type CreateUserParams

type CreateUserParams struct {

	/* User.

	   Details of the new user
	*/
	User *models.UserRegistrationData

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

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

func (o *CreateUserParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid 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) SetTimeout

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

SetTimeout adds the timeout to the create user params

func (*CreateUserParams) SetUser

func (o *CreateUserParams) SetUser(user *models.UserRegistrationData)

SetUser adds the user to the create user params

func (*CreateUserParams) WithCUUID

func (o *CreateUserParams) WithCUUID(cUUID strfmt.UUID) *CreateUserParams

WithCUUID adds the cUUID 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) WithTimeout

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

WithTimeout adds the timeout to the create user params

func (*CreateUserParams) WithUser

WithUser adds the user 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 DeleteUserOK

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

successful operation

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

type DeleteUserParams

type DeleteUserParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// UUUID.
	//
	// Format: uuid
	UUUID strfmt.UUID

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

func (o *DeleteUserParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid 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) SetTimeout

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

SetTimeout adds the timeout to the delete user params

func (*DeleteUserParams) SetUUUID

func (o *DeleteUserParams) SetUUUID(uUUID strfmt.UUID)

SetUUUID adds the uUuid to the delete user params

func (*DeleteUserParams) WithCUUID

func (o *DeleteUserParams) WithCUUID(cUUID strfmt.UUID) *DeleteUserParams

WithCUUID adds the cUUID 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) WithTimeout

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

WithTimeout adds the timeout to the delete user params

func (*DeleteUserParams) WithUUUID

func (o *DeleteUserParams) WithUUUID(uUUID strfmt.UUID) *DeleteUserParams

WithUUUID adds the uUUID 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 GetUserDetailsOK

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

successful operation

func NewGetUserDetailsOK

func NewGetUserDetailsOK() *GetUserDetailsOK

NewGetUserDetailsOK creates a GetUserDetailsOK with default headers values

func (*GetUserDetailsOK) Error

func (o *GetUserDetailsOK) Error() string

func (*GetUserDetailsOK) GetPayload

func (o *GetUserDetailsOK) GetPayload() *models.UserWithFeatures

type GetUserDetailsParams

type GetUserDetailsParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// UUUID.
	//
	// Format: uuid
	UUUID strfmt.UUID

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

GetUserDetailsParams contains all the parameters to send to the API endpoint

for the get user details operation.

Typically these are written to a http.Request.

func NewGetUserDetailsParams

func NewGetUserDetailsParams() *GetUserDetailsParams

NewGetUserDetailsParams creates a new GetUserDetailsParams 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 NewGetUserDetailsParamsWithContext

func NewGetUserDetailsParamsWithContext(ctx context.Context) *GetUserDetailsParams

NewGetUserDetailsParamsWithContext creates a new GetUserDetailsParams object with the ability to set a context for a request.

func NewGetUserDetailsParamsWithHTTPClient

func NewGetUserDetailsParamsWithHTTPClient(client *http.Client) *GetUserDetailsParams

NewGetUserDetailsParamsWithHTTPClient creates a new GetUserDetailsParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserDetailsParamsWithTimeout

func NewGetUserDetailsParamsWithTimeout(timeout time.Duration) *GetUserDetailsParams

NewGetUserDetailsParamsWithTimeout creates a new GetUserDetailsParams object with the ability to set a timeout on a request.

func (*GetUserDetailsParams) SetCUUID

func (o *GetUserDetailsParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the get user details params

func (*GetUserDetailsParams) SetContext

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

SetContext adds the context to the get user details params

func (*GetUserDetailsParams) SetDefaults

func (o *GetUserDetailsParams) SetDefaults()

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

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

func (*GetUserDetailsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user details params

func (*GetUserDetailsParams) SetTimeout

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

SetTimeout adds the timeout to the get user details params

func (*GetUserDetailsParams) SetUUUID

func (o *GetUserDetailsParams) SetUUUID(uUUID strfmt.UUID)

SetUUUID adds the uUuid to the get user details params

func (*GetUserDetailsParams) WithCUUID

WithCUUID adds the cUUID to the get user details params

func (*GetUserDetailsParams) WithContext

WithContext adds the context to the get user details params

func (*GetUserDetailsParams) WithDefaults

func (o *GetUserDetailsParams) WithDefaults() *GetUserDetailsParams

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

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

func (*GetUserDetailsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user details params

func (*GetUserDetailsParams) WithTimeout

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

WithTimeout adds the timeout to the get user details params

func (*GetUserDetailsParams) WithUUUID

WithUUUID adds the uUUID to the get user details params

func (*GetUserDetailsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserDetailsReader

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

GetUserDetailsReader is a Reader for the GetUserDetails structure.

func (*GetUserDetailsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUsersOK

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

successful operation

func NewListUsersOK

func NewListUsersOK() *ListUsersOK

NewListUsersOK creates a ListUsersOK with default headers values

func (*ListUsersOK) Error

func (o *ListUsersOK) Error() string

func (*ListUsersOK) GetPayload

func (o *ListUsersOK) GetPayload() []*models.UserWithFeatures

type ListUsersParams

type ListUsersParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

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

ListUsersParams contains all the parameters to send to the API endpoint

for the list users operation.

Typically these are written to a http.Request.

func NewListUsersParams

func NewListUsersParams() *ListUsersParams

NewListUsersParams creates a new ListUsersParams 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 NewListUsersParamsWithContext

func NewListUsersParamsWithContext(ctx context.Context) *ListUsersParams

NewListUsersParamsWithContext creates a new ListUsersParams object with the ability to set a context for a request.

func NewListUsersParamsWithHTTPClient

func NewListUsersParamsWithHTTPClient(client *http.Client) *ListUsersParams

NewListUsersParamsWithHTTPClient creates a new ListUsersParams object with the ability to set a custom HTTPClient for a request.

func NewListUsersParamsWithTimeout

func NewListUsersParamsWithTimeout(timeout time.Duration) *ListUsersParams

NewListUsersParamsWithTimeout creates a new ListUsersParams object with the ability to set a timeout on a request.

func (*ListUsersParams) SetCUUID

func (o *ListUsersParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the list users params

func (*ListUsersParams) SetContext

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

SetContext adds the context to the list users params

func (*ListUsersParams) SetDefaults

func (o *ListUsersParams) SetDefaults()

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

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

func (*ListUsersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list users params

func (*ListUsersParams) SetTimeout

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

SetTimeout adds the timeout to the list users params

func (*ListUsersParams) WithCUUID

func (o *ListUsersParams) WithCUUID(cUUID strfmt.UUID) *ListUsersParams

WithCUUID adds the cUUID to the list users params

func (*ListUsersParams) WithContext

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

WithContext adds the context to the list users params

func (*ListUsersParams) WithDefaults

func (o *ListUsersParams) WithDefaults() *ListUsersParams

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

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

func (*ListUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list users params

func (*ListUsersParams) WithTimeout

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

WithTimeout adds the timeout to the list users params

func (*ListUsersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListUsersReader

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

ListUsersReader is a Reader for the ListUsers structure.

func (*ListUsersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserPasswordOK

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

successful operation

func NewUpdateUserPasswordOK

func NewUpdateUserPasswordOK() *UpdateUserPasswordOK

NewUpdateUserPasswordOK creates a UpdateUserPasswordOK with default headers values

func (*UpdateUserPasswordOK) Error

func (o *UpdateUserPasswordOK) Error() string

func (*UpdateUserPasswordOK) GetPayload

func (o *UpdateUserPasswordOK) GetPayload() *models.YBPSuccess

type UpdateUserPasswordParams

type UpdateUserPasswordParams struct {

	/* Users.

	   User data containing the new password
	*/
	Users *models.UserRegistrationData

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// UUUID.
	//
	// Format: uuid
	UUUID strfmt.UUID

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

UpdateUserPasswordParams contains all the parameters to send to the API endpoint

for the update user password operation.

Typically these are written to a http.Request.

func NewUpdateUserPasswordParams

func NewUpdateUserPasswordParams() *UpdateUserPasswordParams

NewUpdateUserPasswordParams creates a new UpdateUserPasswordParams 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 NewUpdateUserPasswordParamsWithContext

func NewUpdateUserPasswordParamsWithContext(ctx context.Context) *UpdateUserPasswordParams

NewUpdateUserPasswordParamsWithContext creates a new UpdateUserPasswordParams object with the ability to set a context for a request.

func NewUpdateUserPasswordParamsWithHTTPClient

func NewUpdateUserPasswordParamsWithHTTPClient(client *http.Client) *UpdateUserPasswordParams

NewUpdateUserPasswordParamsWithHTTPClient creates a new UpdateUserPasswordParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateUserPasswordParamsWithTimeout

func NewUpdateUserPasswordParamsWithTimeout(timeout time.Duration) *UpdateUserPasswordParams

NewUpdateUserPasswordParamsWithTimeout creates a new UpdateUserPasswordParams object with the ability to set a timeout on a request.

func (*UpdateUserPasswordParams) SetCUUID

func (o *UpdateUserPasswordParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the update user password params

func (*UpdateUserPasswordParams) SetContext

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

SetContext adds the context to the update user password params

func (*UpdateUserPasswordParams) SetDefaults

func (o *UpdateUserPasswordParams) SetDefaults()

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

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

func (*UpdateUserPasswordParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user password params

func (*UpdateUserPasswordParams) SetTimeout

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

SetTimeout adds the timeout to the update user password params

func (*UpdateUserPasswordParams) SetUUUID

func (o *UpdateUserPasswordParams) SetUUUID(uUUID strfmt.UUID)

SetUUUID adds the uUuid to the update user password params

func (*UpdateUserPasswordParams) SetUsers

SetUsers adds the users to the update user password params

func (*UpdateUserPasswordParams) WithCUUID

WithCUUID adds the cUUID to the update user password params

func (*UpdateUserPasswordParams) WithContext

WithContext adds the context to the update user password params

func (*UpdateUserPasswordParams) WithDefaults

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

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

func (*UpdateUserPasswordParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user password params

func (*UpdateUserPasswordParams) WithTimeout

WithTimeout adds the timeout to the update user password params

func (*UpdateUserPasswordParams) WithUUUID

WithUUUID adds the uUUID to the update user password params

func (*UpdateUserPasswordParams) WithUsers

WithUsers adds the users to the update user password params

func (*UpdateUserPasswordParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateUserPasswordReader

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

UpdateUserPasswordReader is a Reader for the UpdateUserPassword structure.

func (*UpdateUserPasswordReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserProfileOK

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

successful operation

func NewUpdateUserProfileOK

func NewUpdateUserProfileOK() *UpdateUserProfileOK

NewUpdateUserProfileOK creates a UpdateUserProfileOK with default headers values

func (*UpdateUserProfileOK) Error

func (o *UpdateUserProfileOK) Error() string

func (*UpdateUserProfileOK) GetPayload

func (o *UpdateUserProfileOK) GetPayload() *models.Users

type UpdateUserProfileParams

type UpdateUserProfileParams struct {

	/* Users.

	   User data in profile to be updated
	*/
	Users *models.UserProfileData

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// UUUID.
	//
	// Format: uuid
	UUUID strfmt.UUID

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

UpdateUserProfileParams contains all the parameters to send to the API endpoint

for the update user profile operation.

Typically these are written to a http.Request.

func NewUpdateUserProfileParams

func NewUpdateUserProfileParams() *UpdateUserProfileParams

NewUpdateUserProfileParams creates a new UpdateUserProfileParams 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 NewUpdateUserProfileParamsWithContext

func NewUpdateUserProfileParamsWithContext(ctx context.Context) *UpdateUserProfileParams

NewUpdateUserProfileParamsWithContext creates a new UpdateUserProfileParams object with the ability to set a context for a request.

func NewUpdateUserProfileParamsWithHTTPClient

func NewUpdateUserProfileParamsWithHTTPClient(client *http.Client) *UpdateUserProfileParams

NewUpdateUserProfileParamsWithHTTPClient creates a new UpdateUserProfileParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateUserProfileParamsWithTimeout

func NewUpdateUserProfileParamsWithTimeout(timeout time.Duration) *UpdateUserProfileParams

NewUpdateUserProfileParamsWithTimeout creates a new UpdateUserProfileParams object with the ability to set a timeout on a request.

func (*UpdateUserProfileParams) SetCUUID

func (o *UpdateUserProfileParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the update user profile params

func (*UpdateUserProfileParams) SetContext

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

SetContext adds the context to the update user profile params

func (*UpdateUserProfileParams) SetDefaults

func (o *UpdateUserProfileParams) SetDefaults()

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

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

func (*UpdateUserProfileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user profile params

func (*UpdateUserProfileParams) SetTimeout

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

SetTimeout adds the timeout to the update user profile params

func (*UpdateUserProfileParams) SetUUUID

func (o *UpdateUserProfileParams) SetUUUID(uUUID strfmt.UUID)

SetUUUID adds the uUuid to the update user profile params

func (*UpdateUserProfileParams) SetUsers

func (o *UpdateUserProfileParams) SetUsers(users *models.UserProfileData)

SetUsers adds the users to the update user profile params

func (*UpdateUserProfileParams) WithCUUID

WithCUUID adds the cUUID to the update user profile params

func (*UpdateUserProfileParams) WithContext

WithContext adds the context to the update user profile params

func (*UpdateUserProfileParams) WithDefaults

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

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

func (*UpdateUserProfileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user profile params

func (*UpdateUserProfileParams) WithTimeout

WithTimeout adds the timeout to the update user profile params

func (*UpdateUserProfileParams) WithUUUID

WithUUUID adds the uUUID to the update user profile params

func (*UpdateUserProfileParams) WithUsers

WithUsers adds the users to the update user profile params

func (*UpdateUserProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateUserProfileReader

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

UpdateUserProfileReader is a Reader for the UpdateUserProfile structure.

func (*UpdateUserProfileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserRoleOK

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

successful operation

func NewUpdateUserRoleOK

func NewUpdateUserRoleOK() *UpdateUserRoleOK

NewUpdateUserRoleOK creates a UpdateUserRoleOK with default headers values

func (*UpdateUserRoleOK) Error

func (o *UpdateUserRoleOK) Error() string

func (*UpdateUserRoleOK) GetPayload

func (o *UpdateUserRoleOK) GetPayload() *models.YBPSuccess

type UpdateUserRoleParams

type UpdateUserRoleParams struct {

	// CUUID.
	//
	// Format: uuid
	CUUID strfmt.UUID

	// Role.
	Role *string

	// UUUID.
	//
	// Format: uuid
	UUUID strfmt.UUID

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

UpdateUserRoleParams contains all the parameters to send to the API endpoint

for the update user role operation.

Typically these are written to a http.Request.

func NewUpdateUserRoleParams

func NewUpdateUserRoleParams() *UpdateUserRoleParams

NewUpdateUserRoleParams creates a new UpdateUserRoleParams 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 NewUpdateUserRoleParamsWithContext

func NewUpdateUserRoleParamsWithContext(ctx context.Context) *UpdateUserRoleParams

NewUpdateUserRoleParamsWithContext creates a new UpdateUserRoleParams object with the ability to set a context for a request.

func NewUpdateUserRoleParamsWithHTTPClient

func NewUpdateUserRoleParamsWithHTTPClient(client *http.Client) *UpdateUserRoleParams

NewUpdateUserRoleParamsWithHTTPClient creates a new UpdateUserRoleParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateUserRoleParamsWithTimeout

func NewUpdateUserRoleParamsWithTimeout(timeout time.Duration) *UpdateUserRoleParams

NewUpdateUserRoleParamsWithTimeout creates a new UpdateUserRoleParams object with the ability to set a timeout on a request.

func (*UpdateUserRoleParams) SetCUUID

func (o *UpdateUserRoleParams) SetCUUID(cUUID strfmt.UUID)

SetCUUID adds the cUuid to the update user role params

func (*UpdateUserRoleParams) SetContext

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

SetContext adds the context to the update user role params

func (*UpdateUserRoleParams) SetDefaults

func (o *UpdateUserRoleParams) SetDefaults()

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

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

func (*UpdateUserRoleParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user role params

func (*UpdateUserRoleParams) SetRole

func (o *UpdateUserRoleParams) SetRole(role *string)

SetRole adds the role to the update user role params

func (*UpdateUserRoleParams) SetTimeout

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

SetTimeout adds the timeout to the update user role params

func (*UpdateUserRoleParams) SetUUUID

func (o *UpdateUserRoleParams) SetUUUID(uUUID strfmt.UUID)

SetUUUID adds the uUuid to the update user role params

func (*UpdateUserRoleParams) WithCUUID

WithCUUID adds the cUUID to the update user role params

func (*UpdateUserRoleParams) WithContext

WithContext adds the context to the update user role params

func (*UpdateUserRoleParams) WithDefaults

func (o *UpdateUserRoleParams) WithDefaults() *UpdateUserRoleParams

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

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

func (*UpdateUserRoleParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user role params

func (*UpdateUserRoleParams) WithRole

func (o *UpdateUserRoleParams) WithRole(role *string) *UpdateUserRoleParams

WithRole adds the role to the update user role params

func (*UpdateUserRoleParams) WithTimeout

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

WithTimeout adds the timeout to the update user role params

func (*UpdateUserRoleParams) WithUUUID

WithUUUID adds the uUUID to the update user role params

func (*UpdateUserRoleParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateUserRoleReader

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

UpdateUserRoleReader is a Reader for the UpdateUserRole structure.

func (*UpdateUserRoleReader) ReadResponse

func (o *UpdateUserRoleReader) 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