users

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 11 Imported by: 2

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 users API

func (*Client) CreateUser

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

CreateUser creates a new user

Creates a new user.

func (*Client) DeleteUser

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

DeleteUser deletes an existing user

Deletes an existing user.

func (*Client) GetCurrentUser

func (a *Client) GetCurrentUser(params *GetCurrentUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserOK, error)

GetCurrentUser fetches current user information

Fetch current user information.

func (*Client) GetUser

func (a *Client) GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOK, error)

GetUser fetches a single user

Fetches a single user.

func (*Client) GetUsers

func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersOK, error)

GetUsers fetches all users

Fetches all available users.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateCurrentUser

func (a *Client) UpdateCurrentUser(params *UpdateCurrentUserParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCurrentUserOK, error)

UpdateCurrentUser updates the current user

Updates the current user.

func (*Client) UpdateUser

func (a *Client) UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserOK, error)

UpdateUser updates an existing user

Updates an existing user.

type ClientService

type ClientService interface {
	CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserOK, error)

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

	GetCurrentUser(params *GetCurrentUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserOK, error)

	GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOK, error)

	GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter) (*GetUsersOK, error)

	UpdateCurrentUser(params *UpdateCurrentUserParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateCurrentUserOK, error)

	UpdateUser(params *UpdateUserParams, authInfo runtime.ClientAuthInfoWriter) (*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 users API client.

type CreateUserBadRequest

type CreateUserBadRequest struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateUserBadRequest handles this case with default header values.

* The provided user name is invalid. Check that it is not empty and it does not contain special characters. (code: `user.user_name.invalid`) * Some of the provided roles are invalid. (code: `user.roles.invalid`) * Some of the provided roles are forbidden. (code: `user.roles.forbidden`) * Trying to set a restricted field. (code: `user.restricted_field`)

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

type CreateUserConflict

type CreateUserConflict struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateUserConflict handles this case with default header values.

The username is already in use. (code: `user.user_name.conflict`)

func NewCreateUserConflict

func NewCreateUserConflict() *CreateUserConflict

NewCreateUserConflict creates a CreateUserConflict with default headers values

func (*CreateUserConflict) Error

func (o *CreateUserConflict) Error() string

func (*CreateUserConflict) GetPayload

func (o *CreateUserConflict) GetPayload() *models.BasicFailedReply

type CreateUserOK

type CreateUserOK struct {
	Payload *models.User
}

CreateUserOK handles this case with default header values.

User successfully created

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

type CreateUserParams

type CreateUserParams struct {

	/*Body
	  The user to create

	*/
	Body *models.User

	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 values initialized.

func NewCreateUserParamsWithContext

func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams

NewCreateUserParamsWithContext creates a new CreateUserParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*CreateUserParams) SetBody

func (o *CreateUserParams) SetBody(body *models.User)

SetBody adds the body 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) 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) WithBody

func (o *CreateUserParams) WithBody(body *models.User) *CreateUserParams

WithBody adds the body 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) 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) 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 CreateUserRetryWith

type CreateUserRetryWith struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateUserRetryWith handles this case with default header values.

Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)

func NewCreateUserRetryWith

func NewCreateUserRetryWith() *CreateUserRetryWith

NewCreateUserRetryWith creates a CreateUserRetryWith with default headers values

func (*CreateUserRetryWith) Error

func (o *CreateUserRetryWith) Error() string

func (*CreateUserRetryWith) GetPayload

func (o *CreateUserRetryWith) GetPayload() *models.BasicFailedReply

type DeleteUserBadRequest

type DeleteUserBadRequest struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteUserBadRequest handles this case with default header values.

* The user cannot be deleted. (code: `user.restricted_deletion`) * External users cannot be modified. (code: `user.cannot_modify_external`) * Built-in users cannot be modified. (code: `user.cannot_modify`)

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

type DeleteUserNotFound

type DeleteUserNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteUserNotFound handles this case with default header values.

User not found. (code: `user.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.BasicFailedReply

type DeleteUserOK

type DeleteUserOK struct {
	Payload models.EmptyResponse
}

DeleteUserOK handles this case with default header values.

User successfully deleted

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

type DeleteUserParams

type DeleteUserParams struct {

	/*UserName
	  Identifier for the user

	*/
	UserName string

	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 values initialized.

func NewDeleteUserParamsWithContext

func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams

NewDeleteUserParamsWithContext creates a new DeleteUserParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*DeleteUserParams) SetContext

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

SetContext adds the context to the delete user params

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

func (o *DeleteUserParams) SetUserName(userName string)

SetUserName adds the userName 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) 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) WithUserName

func (o *DeleteUserParams) WithUserName(userName string) *DeleteUserParams

WithUserName adds the userName 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 DeleteUserRetryWith

type DeleteUserRetryWith struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteUserRetryWith handles this case with default header values.

Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)

func NewDeleteUserRetryWith

func NewDeleteUserRetryWith() *DeleteUserRetryWith

NewDeleteUserRetryWith creates a DeleteUserRetryWith with default headers values

func (*DeleteUserRetryWith) Error

func (o *DeleteUserRetryWith) Error() string

func (*DeleteUserRetryWith) GetPayload

func (o *DeleteUserRetryWith) GetPayload() *models.BasicFailedReply

type GetCurrentUserNotFound

type GetCurrentUserNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCurrentUserNotFound handles this case with default header values.

User not found. (code: `user.not_found`)

func NewGetCurrentUserNotFound

func NewGetCurrentUserNotFound() *GetCurrentUserNotFound

NewGetCurrentUserNotFound creates a GetCurrentUserNotFound with default headers values

func (*GetCurrentUserNotFound) Error

func (o *GetCurrentUserNotFound) Error() string

func (*GetCurrentUserNotFound) GetPayload

type GetCurrentUserOK

type GetCurrentUserOK struct {
	Payload *models.User
}

GetCurrentUserOK handles this case with default header values.

User successfully fetched

func NewGetCurrentUserOK

func NewGetCurrentUserOK() *GetCurrentUserOK

NewGetCurrentUserOK creates a GetCurrentUserOK with default headers values

func (*GetCurrentUserOK) Error

func (o *GetCurrentUserOK) Error() string

func (*GetCurrentUserOK) GetPayload

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

type GetCurrentUserParams

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

GetCurrentUserParams contains all the parameters to send to the API endpoint for the get current user operation typically these are written to a http.Request

func NewGetCurrentUserParams

func NewGetCurrentUserParams() *GetCurrentUserParams

NewGetCurrentUserParams creates a new GetCurrentUserParams object with the default values initialized.

func NewGetCurrentUserParamsWithContext

func NewGetCurrentUserParamsWithContext(ctx context.Context) *GetCurrentUserParams

NewGetCurrentUserParamsWithContext creates a new GetCurrentUserParams object with the default values initialized, and the ability to set a context for a request

func NewGetCurrentUserParamsWithHTTPClient

func NewGetCurrentUserParamsWithHTTPClient(client *http.Client) *GetCurrentUserParams

NewGetCurrentUserParamsWithHTTPClient creates a new GetCurrentUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetCurrentUserParamsWithTimeout

func NewGetCurrentUserParamsWithTimeout(timeout time.Duration) *GetCurrentUserParams

NewGetCurrentUserParamsWithTimeout creates a new GetCurrentUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetCurrentUserParams) SetContext

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

SetContext adds the context to the get current user params

func (*GetCurrentUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get current user params

func (*GetCurrentUserParams) SetTimeout

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

SetTimeout adds the timeout to the get current user params

func (*GetCurrentUserParams) WithContext

WithContext adds the context to the get current user params

func (*GetCurrentUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get current user params

func (*GetCurrentUserParams) WithTimeout

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

WithTimeout adds the timeout to the get current user params

func (*GetCurrentUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCurrentUserReader

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

GetCurrentUserReader is a Reader for the GetCurrentUser structure.

func (*GetCurrentUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserNotFound

type GetUserNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetUserNotFound handles this case with default header values.

User not found. (code: `user.not_found`)

func NewGetUserNotFound

func NewGetUserNotFound() *GetUserNotFound

NewGetUserNotFound creates a GetUserNotFound with default headers values

func (*GetUserNotFound) Error

func (o *GetUserNotFound) Error() string

func (*GetUserNotFound) GetPayload

func (o *GetUserNotFound) GetPayload() *models.BasicFailedReply

type GetUserOK

type GetUserOK struct {
	Payload *models.User
}

GetUserOK handles this case with default header values.

User successfully fetched

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Error

func (o *GetUserOK) Error() string

func (*GetUserOK) GetPayload

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

type GetUserParams

type GetUserParams struct {

	/*UserName
	  Identifier for the user

	*/
	UserName string

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

GetUserParams contains all the parameters to send to the API endpoint for the get user operation typically these are written to a http.Request

func NewGetUserParams

func NewGetUserParams() *GetUserParams

NewGetUserParams creates a new GetUserParams object with the default values initialized.

func NewGetUserParamsWithContext

func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams

NewGetUserParamsWithContext creates a new GetUserParams object with the default values initialized, and the ability to set a context for a request

func NewGetUserParamsWithHTTPClient

func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams

NewGetUserParamsWithHTTPClient creates a new GetUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetUserParamsWithTimeout

func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams

NewGetUserParamsWithTimeout creates a new GetUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetUserParams) SetContext

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

SetContext adds the context to the get user params

func (*GetUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) SetTimeout

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

SetTimeout adds the timeout to the get user params

func (*GetUserParams) SetUserName

func (o *GetUserParams) SetUserName(userName string)

SetUserName adds the userName to the get user params

func (*GetUserParams) WithContext

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

WithContext adds the context to the get user params

func (*GetUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) WithTimeout

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

WithTimeout adds the timeout to the get user params

func (*GetUserParams) WithUserName

func (o *GetUserParams) WithUserName(userName string) *GetUserParams

WithUserName adds the userName to the get user params

func (*GetUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserReader

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

GetUserReader is a Reader for the GetUser structure.

func (*GetUserReader) ReadResponse

func (o *GetUserReader) 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.UserList
}

GetUsersOK handles this case with default header values.

Users successfully fetched

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

type GetUsersParams

type GetUsersParams struct {

	/*IncludeDisabled
	  True if disabled users should be included in the response

	*/
	IncludeDisabled *bool

	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 values initialized.

func NewGetUsersParamsWithContext

func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams

NewGetUsersParamsWithContext creates a new GetUsersParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*GetUsersParams) SetContext

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

SetContext adds the context to the get users params

func (*GetUsersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) SetIncludeDisabled

func (o *GetUsersParams) SetIncludeDisabled(includeDisabled *bool)

SetIncludeDisabled adds the includeDisabled 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) WithContext

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

WithContext adds the context to the get users params

func (*GetUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) WithIncludeDisabled

func (o *GetUsersParams) WithIncludeDisabled(includeDisabled *bool) *GetUsersParams

WithIncludeDisabled adds the includeDisabled 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 UpdateCurrentUserBadRequest

type UpdateCurrentUserBadRequest struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateCurrentUserBadRequest handles this case with default header values.

* Some of the provided roles are invalid. (code: `user.roles.invalid`) * Some of the provided roles are forbidden. (code: `user.roles.forbidden`) * Trying to set a restricted field. (code: `user.restricted_field`) * External users cannot be modified. (code: `user.cannot_modify_external`) * Built-in users cannot be modified. (code: `user.cannot_modify`)

func NewUpdateCurrentUserBadRequest

func NewUpdateCurrentUserBadRequest() *UpdateCurrentUserBadRequest

NewUpdateCurrentUserBadRequest creates a UpdateCurrentUserBadRequest with default headers values

func (*UpdateCurrentUserBadRequest) Error

func (*UpdateCurrentUserBadRequest) GetPayload

type UpdateCurrentUserNotFound

type UpdateCurrentUserNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateCurrentUserNotFound handles this case with default header values.

User not found. (code: `user.not_found`)

func NewUpdateCurrentUserNotFound

func NewUpdateCurrentUserNotFound() *UpdateCurrentUserNotFound

NewUpdateCurrentUserNotFound creates a UpdateCurrentUserNotFound with default headers values

func (*UpdateCurrentUserNotFound) Error

func (o *UpdateCurrentUserNotFound) Error() string

func (*UpdateCurrentUserNotFound) GetPayload

type UpdateCurrentUserOK

type UpdateCurrentUserOK struct {
	Payload *models.User
}

UpdateCurrentUserOK handles this case with default header values.

User successfully updated

func NewUpdateCurrentUserOK

func NewUpdateCurrentUserOK() *UpdateCurrentUserOK

NewUpdateCurrentUserOK creates a UpdateCurrentUserOK with default headers values

func (*UpdateCurrentUserOK) Error

func (o *UpdateCurrentUserOK) Error() string

func (*UpdateCurrentUserOK) GetPayload

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

type UpdateCurrentUserParams

type UpdateCurrentUserParams struct {

	/*Body
	  All changes in the specified object are applied to the current user according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists.

	*/
	Body string

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

UpdateCurrentUserParams contains all the parameters to send to the API endpoint for the update current user operation typically these are written to a http.Request

func NewUpdateCurrentUserParams

func NewUpdateCurrentUserParams() *UpdateCurrentUserParams

NewUpdateCurrentUserParams creates a new UpdateCurrentUserParams object with the default values initialized.

func NewUpdateCurrentUserParamsWithContext

func NewUpdateCurrentUserParamsWithContext(ctx context.Context) *UpdateCurrentUserParams

NewUpdateCurrentUserParamsWithContext creates a new UpdateCurrentUserParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateCurrentUserParamsWithHTTPClient

func NewUpdateCurrentUserParamsWithHTTPClient(client *http.Client) *UpdateCurrentUserParams

NewUpdateCurrentUserParamsWithHTTPClient creates a new UpdateCurrentUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateCurrentUserParamsWithTimeout

func NewUpdateCurrentUserParamsWithTimeout(timeout time.Duration) *UpdateCurrentUserParams

NewUpdateCurrentUserParamsWithTimeout creates a new UpdateCurrentUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateCurrentUserParams) SetBody

func (o *UpdateCurrentUserParams) SetBody(body string)

SetBody adds the body to the update current user params

func (*UpdateCurrentUserParams) SetContext

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

SetContext adds the context to the update current user params

func (*UpdateCurrentUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update current user params

func (*UpdateCurrentUserParams) SetTimeout

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

SetTimeout adds the timeout to the update current user params

func (*UpdateCurrentUserParams) WithBody

WithBody adds the body to the update current user params

func (*UpdateCurrentUserParams) WithContext

WithContext adds the context to the update current user params

func (*UpdateCurrentUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update current user params

func (*UpdateCurrentUserParams) WithTimeout

WithTimeout adds the timeout to the update current user params

func (*UpdateCurrentUserParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCurrentUserReader

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

UpdateCurrentUserReader is a Reader for the UpdateCurrentUser structure.

func (*UpdateCurrentUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserBadRequest

type UpdateUserBadRequest struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateUserBadRequest handles this case with default header values.

* Some of the provided roles are invalid. (code: `user.roles.invalid`) * Some of the provided roles are forbidden. (code: `user.roles.forbidden`) * Trying to set a restricted field. (code: `user.restricted_field`) * External users cannot be modified. (code: `user.cannot_modify_external`) * Built-in users cannot be modified. (code: `user.cannot_modify`)

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

type UpdateUserNotFound

type UpdateUserNotFound struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateUserNotFound handles this case with default header values.

User not found. (code: `user.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.BasicFailedReply

type UpdateUserOK

type UpdateUserOK struct {
	Payload *models.User
}

UpdateUserOK handles this case with default header values.

User successfully updated

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

type UpdateUserParams

type UpdateUserParams struct {

	/*Body
	  All changes in the specified object are applied to the user according to the JSON Merge Patch processing rules. Omitting existing fields causes the same values to be reapplied. Specifying a `null` value reverts the field to the default value, or removes the field when no default value exists.

	*/
	Body string
	/*UserName
	  Identifier for the user

	*/
	UserName string

	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 values initialized.

func NewUpdateUserParamsWithContext

func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams

NewUpdateUserParamsWithContext creates a new UpdateUserParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and the ability to set a timeout on a request

func (*UpdateUserParams) SetBody

func (o *UpdateUserParams) SetBody(body string)

SetBody adds the body 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) SetHTTPClient

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

SetHTTPClient adds the HTTPClient 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) SetUserName

func (o *UpdateUserParams) SetUserName(userName string)

SetUserName adds the userName to the update user params

func (*UpdateUserParams) WithBody

func (o *UpdateUserParams) WithBody(body string) *UpdateUserParams

WithBody adds the body 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient 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) WithUserName

func (o *UpdateUserParams) WithUserName(userName string) *UpdateUserParams

WithUserName adds the userName 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.

type UpdateUserRetryWith

type UpdateUserRetryWith struct {
	/*The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateUserRetryWith handles this case with default header values.

Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)

func NewUpdateUserRetryWith

func NewUpdateUserRetryWith() *UpdateUserRetryWith

NewUpdateUserRetryWith creates a UpdateUserRetryWith with default headers values

func (*UpdateUserRetryWith) Error

func (o *UpdateUserRetryWith) Error() string

func (*UpdateUserRetryWith) GetPayload

func (o *UpdateUserRetryWith) GetPayload() *models.BasicFailedReply

Jump to

Keyboard shortcuts

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