users

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 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, opts ...ClientOption) (*CreateUserOK, error)

CreateUser creates a new user

Creates a new user.

func (*Client) DeleteUser

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

DeleteUser deletes an existing user

Deletes an existing user.

func (*Client) GetCurrentUser

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

GetCurrentUser fetches current user information

Fetch current user information.

func (*Client) GetUser

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

GetUser fetches a single user

Fetches a single user.

func (*Client) GetUsers

func (a *Client) GetUsers(params *GetUsersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*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, opts ...ClientOption) (*UpdateCurrentUserOK, error)

UpdateCurrentUser updates the current user

Updates the current user.

func (*Client) UpdateUser

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

UpdateUser updates an existing user

Updates an existing user.

type ClientOption added in v1.3.0

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

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

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

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

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

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

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

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

type CreateUserBadRequest

type CreateUserBadRequest struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
CreateUserBadRequest describes a response with status code 400, 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) Code added in v1.13.0

func (o *CreateUserBadRequest) Code() int

Code gets the status code for the create user bad request response

func (*CreateUserBadRequest) Error

func (o *CreateUserBadRequest) Error() string

func (*CreateUserBadRequest) GetPayload

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

func (*CreateUserBadRequest) IsClientError added in v1.13.0

func (o *CreateUserBadRequest) IsClientError() bool

IsClientError returns true when this create user bad request response has a 4xx status code

func (*CreateUserBadRequest) IsCode added in v1.13.0

func (o *CreateUserBadRequest) IsCode(code int) bool

IsCode returns true when this create user bad request response a status code equal to that given

func (*CreateUserBadRequest) IsRedirect added in v1.13.0

func (o *CreateUserBadRequest) IsRedirect() bool

IsRedirect returns true when this create user bad request response has a 3xx status code

func (*CreateUserBadRequest) IsServerError added in v1.13.0

func (o *CreateUserBadRequest) IsServerError() bool

IsServerError returns true when this create user bad request response has a 5xx status code

func (*CreateUserBadRequest) IsSuccess added in v1.13.0

func (o *CreateUserBadRequest) IsSuccess() bool

IsSuccess returns true when this create user bad request response has a 2xx status code

func (*CreateUserBadRequest) String added in v1.13.0

func (o *CreateUserBadRequest) String() string

type CreateUserConflict

type CreateUserConflict struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

CreateUserConflict describes a response with status code 409, 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) Code added in v1.13.0

func (o *CreateUserConflict) Code() int

Code gets the status code for the create user conflict response

func (*CreateUserConflict) Error

func (o *CreateUserConflict) Error() string

func (*CreateUserConflict) GetPayload

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

func (*CreateUserConflict) IsClientError added in v1.13.0

func (o *CreateUserConflict) IsClientError() bool

IsClientError returns true when this create user conflict response has a 4xx status code

func (*CreateUserConflict) IsCode added in v1.13.0

func (o *CreateUserConflict) IsCode(code int) bool

IsCode returns true when this create user conflict response a status code equal to that given

func (*CreateUserConflict) IsRedirect added in v1.13.0

func (o *CreateUserConflict) IsRedirect() bool

IsRedirect returns true when this create user conflict response has a 3xx status code

func (*CreateUserConflict) IsServerError added in v1.13.0

func (o *CreateUserConflict) IsServerError() bool

IsServerError returns true when this create user conflict response has a 5xx status code

func (*CreateUserConflict) IsSuccess added in v1.13.0

func (o *CreateUserConflict) IsSuccess() bool

IsSuccess returns true when this create user conflict response has a 2xx status code

func (*CreateUserConflict) String added in v1.13.0

func (o *CreateUserConflict) String() string

type CreateUserOK

type CreateUserOK struct {
	Payload *models.User
}

CreateUserOK describes a response with status code 200, with default header values.

User successfully created

func NewCreateUserOK

func NewCreateUserOK() *CreateUserOK

NewCreateUserOK creates a CreateUserOK with default headers values

func (*CreateUserOK) Code added in v1.13.0

func (o *CreateUserOK) Code() int

Code gets the status code for the create user o k response

func (*CreateUserOK) Error

func (o *CreateUserOK) Error() string

func (*CreateUserOK) GetPayload

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

func (*CreateUserOK) IsClientError added in v1.13.0

func (o *CreateUserOK) IsClientError() bool

IsClientError returns true when this create user o k response has a 4xx status code

func (*CreateUserOK) IsCode added in v1.13.0

func (o *CreateUserOK) IsCode(code int) bool

IsCode returns true when this create user o k response a status code equal to that given

func (*CreateUserOK) IsRedirect added in v1.13.0

func (o *CreateUserOK) IsRedirect() bool

IsRedirect returns true when this create user o k response has a 3xx status code

func (*CreateUserOK) IsServerError added in v1.13.0

func (o *CreateUserOK) IsServerError() bool

IsServerError returns true when this create user o k response has a 5xx status code

func (*CreateUserOK) IsSuccess added in v1.13.0

func (o *CreateUserOK) IsSuccess() bool

IsSuccess returns true when this create user o k response has a 2xx status code

func (*CreateUserOK) String added in v1.13.0

func (o *CreateUserOK) String() string

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 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) 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) SetDefaults added in v1.3.0

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) 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) WithDefaults added in v1.3.0

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

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}
DeleteUserBadRequest describes a response with status code 400, 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) Code added in v1.13.0

func (o *DeleteUserBadRequest) Code() int

Code gets the status code for the delete user bad request response

func (*DeleteUserBadRequest) Error

func (o *DeleteUserBadRequest) Error() string

func (*DeleteUserBadRequest) GetPayload

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

func (*DeleteUserBadRequest) IsClientError added in v1.13.0

func (o *DeleteUserBadRequest) IsClientError() bool

IsClientError returns true when this delete user bad request response has a 4xx status code

func (*DeleteUserBadRequest) IsCode added in v1.13.0

func (o *DeleteUserBadRequest) IsCode(code int) bool

IsCode returns true when this delete user bad request response a status code equal to that given

func (*DeleteUserBadRequest) IsRedirect added in v1.13.0

func (o *DeleteUserBadRequest) IsRedirect() bool

IsRedirect returns true when this delete user bad request response has a 3xx status code

func (*DeleteUserBadRequest) IsServerError added in v1.13.0

func (o *DeleteUserBadRequest) IsServerError() bool

IsServerError returns true when this delete user bad request response has a 5xx status code

func (*DeleteUserBadRequest) IsSuccess added in v1.13.0

func (o *DeleteUserBadRequest) IsSuccess() bool

IsSuccess returns true when this delete user bad request response has a 2xx status code

func (*DeleteUserBadRequest) String added in v1.13.0

func (o *DeleteUserBadRequest) String() string

type DeleteUserNotFound

type DeleteUserNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

DeleteUserNotFound describes a response with status code 404, 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) Code added in v1.13.0

func (o *DeleteUserNotFound) Code() int

Code gets the status code for the delete user not found response

func (*DeleteUserNotFound) Error

func (o *DeleteUserNotFound) Error() string

func (*DeleteUserNotFound) GetPayload

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

func (*DeleteUserNotFound) IsClientError added in v1.13.0

func (o *DeleteUserNotFound) IsClientError() bool

IsClientError returns true when this delete user not found response has a 4xx status code

func (*DeleteUserNotFound) IsCode added in v1.13.0

func (o *DeleteUserNotFound) IsCode(code int) bool

IsCode returns true when this delete user not found response a status code equal to that given

func (*DeleteUserNotFound) IsRedirect added in v1.13.0

func (o *DeleteUserNotFound) IsRedirect() bool

IsRedirect returns true when this delete user not found response has a 3xx status code

func (*DeleteUserNotFound) IsServerError added in v1.13.0

func (o *DeleteUserNotFound) IsServerError() bool

IsServerError returns true when this delete user not found response has a 5xx status code

func (*DeleteUserNotFound) IsSuccess added in v1.13.0

func (o *DeleteUserNotFound) IsSuccess() bool

IsSuccess returns true when this delete user not found response has a 2xx status code

func (*DeleteUserNotFound) String added in v1.13.0

func (o *DeleteUserNotFound) String() string

type DeleteUserOK

type DeleteUserOK struct {
	Payload models.EmptyResponse
}

DeleteUserOK describes a response with status code 200, with default header values.

User successfully deleted

func NewDeleteUserOK

func NewDeleteUserOK() *DeleteUserOK

NewDeleteUserOK creates a DeleteUserOK with default headers values

func (*DeleteUserOK) Code added in v1.13.0

func (o *DeleteUserOK) Code() int

Code gets the status code for the delete user o k response

func (*DeleteUserOK) Error

func (o *DeleteUserOK) Error() string

func (*DeleteUserOK) GetPayload

func (o *DeleteUserOK) GetPayload() models.EmptyResponse

func (*DeleteUserOK) IsClientError added in v1.13.0

func (o *DeleteUserOK) IsClientError() bool

IsClientError returns true when this delete user o k response has a 4xx status code

func (*DeleteUserOK) IsCode added in v1.13.0

func (o *DeleteUserOK) IsCode(code int) bool

IsCode returns true when this delete user o k response a status code equal to that given

func (*DeleteUserOK) IsRedirect added in v1.13.0

func (o *DeleteUserOK) IsRedirect() bool

IsRedirect returns true when this delete user o k response has a 3xx status code

func (*DeleteUserOK) IsServerError added in v1.13.0

func (o *DeleteUserOK) IsServerError() bool

IsServerError returns true when this delete user o k response has a 5xx status code

func (*DeleteUserOK) IsSuccess added in v1.13.0

func (o *DeleteUserOK) IsSuccess() bool

IsSuccess returns true when this delete user o k response has a 2xx status code

func (*DeleteUserOK) String added in v1.13.0

func (o *DeleteUserOK) String() string

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

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

SetContext adds the context to the delete user params

func (*DeleteUserParams) SetDefaults added in v1.3.0

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) 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) WithDefaults added in v1.3.0

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

type GetCurrentUserNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

GetCurrentUserNotFound describes a response with status code 404, 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) Code added in v1.13.0

func (o *GetCurrentUserNotFound) Code() int

Code gets the status code for the get current user not found response

func (*GetCurrentUserNotFound) Error

func (o *GetCurrentUserNotFound) Error() string

func (*GetCurrentUserNotFound) GetPayload

func (*GetCurrentUserNotFound) IsClientError added in v1.13.0

func (o *GetCurrentUserNotFound) IsClientError() bool

IsClientError returns true when this get current user not found response has a 4xx status code

func (*GetCurrentUserNotFound) IsCode added in v1.13.0

func (o *GetCurrentUserNotFound) IsCode(code int) bool

IsCode returns true when this get current user not found response a status code equal to that given

func (*GetCurrentUserNotFound) IsRedirect added in v1.13.0

func (o *GetCurrentUserNotFound) IsRedirect() bool

IsRedirect returns true when this get current user not found response has a 3xx status code

func (*GetCurrentUserNotFound) IsServerError added in v1.13.0

func (o *GetCurrentUserNotFound) IsServerError() bool

IsServerError returns true when this get current user not found response has a 5xx status code

func (*GetCurrentUserNotFound) IsSuccess added in v1.13.0

func (o *GetCurrentUserNotFound) IsSuccess() bool

IsSuccess returns true when this get current user not found response has a 2xx status code

func (*GetCurrentUserNotFound) String added in v1.13.0

func (o *GetCurrentUserNotFound) String() string

type GetCurrentUserOK

type GetCurrentUserOK struct {
	Payload *models.User
}

GetCurrentUserOK describes a response with status code 200, with default header values.

User successfully fetched

func NewGetCurrentUserOK

func NewGetCurrentUserOK() *GetCurrentUserOK

NewGetCurrentUserOK creates a GetCurrentUserOK with default headers values

func (*GetCurrentUserOK) Code added in v1.13.0

func (o *GetCurrentUserOK) Code() int

Code gets the status code for the get current user o k response

func (*GetCurrentUserOK) Error

func (o *GetCurrentUserOK) Error() string

func (*GetCurrentUserOK) GetPayload

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

func (*GetCurrentUserOK) IsClientError added in v1.13.0

func (o *GetCurrentUserOK) IsClientError() bool

IsClientError returns true when this get current user o k response has a 4xx status code

func (*GetCurrentUserOK) IsCode added in v1.13.0

func (o *GetCurrentUserOK) IsCode(code int) bool

IsCode returns true when this get current user o k response a status code equal to that given

func (*GetCurrentUserOK) IsRedirect added in v1.13.0

func (o *GetCurrentUserOK) IsRedirect() bool

IsRedirect returns true when this get current user o k response has a 3xx status code

func (*GetCurrentUserOK) IsServerError added in v1.13.0

func (o *GetCurrentUserOK) IsServerError() bool

IsServerError returns true when this get current user o k response has a 5xx status code

func (*GetCurrentUserOK) IsSuccess added in v1.13.0

func (o *GetCurrentUserOK) IsSuccess() bool

IsSuccess returns true when this get current user o k response has a 2xx status code

func (*GetCurrentUserOK) String added in v1.13.0

func (o *GetCurrentUserOK) String() string

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 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 NewGetCurrentUserParamsWithContext

func NewGetCurrentUserParamsWithContext(ctx context.Context) *GetCurrentUserParams

NewGetCurrentUserParamsWithContext creates a new GetCurrentUserParams object with 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 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 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) SetDefaults added in v1.3.0

func (o *GetCurrentUserParams) SetDefaults()

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

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

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) WithDefaults added in v1.3.0

func (o *GetCurrentUserParams) WithDefaults() *GetCurrentUserParams

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

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

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 describes a response with status code 404, 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) Code added in v1.13.0

func (o *GetUserNotFound) Code() int

Code gets the status code for the get user not found response

func (*GetUserNotFound) Error

func (o *GetUserNotFound) Error() string

func (*GetUserNotFound) GetPayload

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

func (*GetUserNotFound) IsClientError added in v1.13.0

func (o *GetUserNotFound) IsClientError() bool

IsClientError returns true when this get user not found response has a 4xx status code

func (*GetUserNotFound) IsCode added in v1.13.0

func (o *GetUserNotFound) IsCode(code int) bool

IsCode returns true when this get user not found response a status code equal to that given

func (*GetUserNotFound) IsRedirect added in v1.13.0

func (o *GetUserNotFound) IsRedirect() bool

IsRedirect returns true when this get user not found response has a 3xx status code

func (*GetUserNotFound) IsServerError added in v1.13.0

func (o *GetUserNotFound) IsServerError() bool

IsServerError returns true when this get user not found response has a 5xx status code

func (*GetUserNotFound) IsSuccess added in v1.13.0

func (o *GetUserNotFound) IsSuccess() bool

IsSuccess returns true when this get user not found response has a 2xx status code

func (*GetUserNotFound) String added in v1.13.0

func (o *GetUserNotFound) String() string

type GetUserOK

type GetUserOK struct {
	Payload *models.User
}

GetUserOK describes a response with status code 200, with default header values.

User successfully fetched

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Code added in v1.13.0

func (o *GetUserOK) Code() int

Code gets the status code for the get user o k response

func (*GetUserOK) Error

func (o *GetUserOK) Error() string

func (*GetUserOK) GetPayload

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

func (*GetUserOK) IsClientError added in v1.13.0

func (o *GetUserOK) IsClientError() bool

IsClientError returns true when this get user o k response has a 4xx status code

func (*GetUserOK) IsCode added in v1.13.0

func (o *GetUserOK) IsCode(code int) bool

IsCode returns true when this get user o k response a status code equal to that given

func (*GetUserOK) IsRedirect added in v1.13.0

func (o *GetUserOK) IsRedirect() bool

IsRedirect returns true when this get user o k response has a 3xx status code

func (*GetUserOK) IsServerError added in v1.13.0

func (o *GetUserOK) IsServerError() bool

IsServerError returns true when this get user o k response has a 5xx status code

func (*GetUserOK) IsSuccess added in v1.13.0

func (o *GetUserOK) IsSuccess() bool

IsSuccess returns true when this get user o k response has a 2xx status code

func (*GetUserOK) String added in v1.13.0

func (o *GetUserOK) String() string

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 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 NewGetUserParamsWithContext

func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams

NewGetUserParamsWithContext creates a new GetUserParams object with 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 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 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) SetDefaults added in v1.3.0

func (o *GetUserParams) SetDefaults()

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

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

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) WithDefaults added in v1.3.0

func (o *GetUserParams) WithDefaults() *GetUserParams

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

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

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 describes a response with status code 200, with default header values.

Users successfully fetched

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates a GetUsersOK with default headers values

func (*GetUsersOK) Code added in v1.13.0

func (o *GetUsersOK) Code() int

Code gets the status code for the get users o k response

func (*GetUsersOK) Error

func (o *GetUsersOK) Error() string

func (*GetUsersOK) GetPayload

func (o *GetUsersOK) GetPayload() *models.UserList

func (*GetUsersOK) IsClientError added in v1.13.0

func (o *GetUsersOK) IsClientError() bool

IsClientError returns true when this get users o k response has a 4xx status code

func (*GetUsersOK) IsCode added in v1.13.0

func (o *GetUsersOK) IsCode(code int) bool

IsCode returns true when this get users o k response a status code equal to that given

func (*GetUsersOK) IsRedirect added in v1.13.0

func (o *GetUsersOK) IsRedirect() bool

IsRedirect returns true when this get users o k response has a 3xx status code

func (*GetUsersOK) IsServerError added in v1.13.0

func (o *GetUsersOK) IsServerError() bool

IsServerError returns true when this get users o k response has a 5xx status code

func (*GetUsersOK) IsSuccess added in v1.13.0

func (o *GetUsersOK) IsSuccess() bool

IsSuccess returns true when this get users o k response has a 2xx status code

func (*GetUsersOK) String added in v1.13.0

func (o *GetUsersOK) String() string

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

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

SetContext adds the context to the get users params

func (*GetUsersParams) SetDefaults added in v1.3.0

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) 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) WithDefaults added in v1.3.0

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) 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 describes a response with status code 400, 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) Code added in v1.13.0

func (o *UpdateCurrentUserBadRequest) Code() int

Code gets the status code for the update current user bad request response

func (*UpdateCurrentUserBadRequest) Error

func (*UpdateCurrentUserBadRequest) GetPayload

func (*UpdateCurrentUserBadRequest) IsClientError added in v1.13.0

func (o *UpdateCurrentUserBadRequest) IsClientError() bool

IsClientError returns true when this update current user bad request response has a 4xx status code

func (*UpdateCurrentUserBadRequest) IsCode added in v1.13.0

func (o *UpdateCurrentUserBadRequest) IsCode(code int) bool

IsCode returns true when this update current user bad request response a status code equal to that given

func (*UpdateCurrentUserBadRequest) IsRedirect added in v1.13.0

func (o *UpdateCurrentUserBadRequest) IsRedirect() bool

IsRedirect returns true when this update current user bad request response has a 3xx status code

func (*UpdateCurrentUserBadRequest) IsServerError added in v1.13.0

func (o *UpdateCurrentUserBadRequest) IsServerError() bool

IsServerError returns true when this update current user bad request response has a 5xx status code

func (*UpdateCurrentUserBadRequest) IsSuccess added in v1.13.0

func (o *UpdateCurrentUserBadRequest) IsSuccess() bool

IsSuccess returns true when this update current user bad request response has a 2xx status code

func (*UpdateCurrentUserBadRequest) String added in v1.13.0

func (o *UpdateCurrentUserBadRequest) String() string

type UpdateCurrentUserNotFound

type UpdateCurrentUserNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateCurrentUserNotFound describes a response with status code 404, 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) Code added in v1.13.0

func (o *UpdateCurrentUserNotFound) Code() int

Code gets the status code for the update current user not found response

func (*UpdateCurrentUserNotFound) Error

func (o *UpdateCurrentUserNotFound) Error() string

func (*UpdateCurrentUserNotFound) GetPayload

func (*UpdateCurrentUserNotFound) IsClientError added in v1.13.0

func (o *UpdateCurrentUserNotFound) IsClientError() bool

IsClientError returns true when this update current user not found response has a 4xx status code

func (*UpdateCurrentUserNotFound) IsCode added in v1.13.0

func (o *UpdateCurrentUserNotFound) IsCode(code int) bool

IsCode returns true when this update current user not found response a status code equal to that given

func (*UpdateCurrentUserNotFound) IsRedirect added in v1.13.0

func (o *UpdateCurrentUserNotFound) IsRedirect() bool

IsRedirect returns true when this update current user not found response has a 3xx status code

func (*UpdateCurrentUserNotFound) IsServerError added in v1.13.0

func (o *UpdateCurrentUserNotFound) IsServerError() bool

IsServerError returns true when this update current user not found response has a 5xx status code

func (*UpdateCurrentUserNotFound) IsSuccess added in v1.13.0

func (o *UpdateCurrentUserNotFound) IsSuccess() bool

IsSuccess returns true when this update current user not found response has a 2xx status code

func (*UpdateCurrentUserNotFound) String added in v1.13.0

func (o *UpdateCurrentUserNotFound) String() string

type UpdateCurrentUserOK

type UpdateCurrentUserOK struct {
	Payload *models.User
}

UpdateCurrentUserOK describes a response with status code 200, with default header values.

User successfully updated

func NewUpdateCurrentUserOK

func NewUpdateCurrentUserOK() *UpdateCurrentUserOK

NewUpdateCurrentUserOK creates a UpdateCurrentUserOK with default headers values

func (*UpdateCurrentUserOK) Code added in v1.13.0

func (o *UpdateCurrentUserOK) Code() int

Code gets the status code for the update current user o k response

func (*UpdateCurrentUserOK) Error

func (o *UpdateCurrentUserOK) Error() string

func (*UpdateCurrentUserOK) GetPayload

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

func (*UpdateCurrentUserOK) IsClientError added in v1.13.0

func (o *UpdateCurrentUserOK) IsClientError() bool

IsClientError returns true when this update current user o k response has a 4xx status code

func (*UpdateCurrentUserOK) IsCode added in v1.13.0

func (o *UpdateCurrentUserOK) IsCode(code int) bool

IsCode returns true when this update current user o k response a status code equal to that given

func (*UpdateCurrentUserOK) IsRedirect added in v1.13.0

func (o *UpdateCurrentUserOK) IsRedirect() bool

IsRedirect returns true when this update current user o k response has a 3xx status code

func (*UpdateCurrentUserOK) IsServerError added in v1.13.0

func (o *UpdateCurrentUserOK) IsServerError() bool

IsServerError returns true when this update current user o k response has a 5xx status code

func (*UpdateCurrentUserOK) IsSuccess added in v1.13.0

func (o *UpdateCurrentUserOK) IsSuccess() bool

IsSuccess returns true when this update current user o k response has a 2xx status code

func (*UpdateCurrentUserOK) String added in v1.13.0

func (o *UpdateCurrentUserOK) String() string

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 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 NewUpdateCurrentUserParamsWithContext

func NewUpdateCurrentUserParamsWithContext(ctx context.Context) *UpdateCurrentUserParams

NewUpdateCurrentUserParamsWithContext creates a new UpdateCurrentUserParams object with 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 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 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) SetDefaults added in v1.3.0

func (o *UpdateCurrentUserParams) SetDefaults()

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

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

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) WithDefaults added in v1.3.0

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

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

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 describes a response with status code 400, 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) Code added in v1.13.0

func (o *UpdateUserBadRequest) Code() int

Code gets the status code for the update user bad request response

func (*UpdateUserBadRequest) Error

func (o *UpdateUserBadRequest) Error() string

func (*UpdateUserBadRequest) GetPayload

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

func (*UpdateUserBadRequest) IsClientError added in v1.13.0

func (o *UpdateUserBadRequest) IsClientError() bool

IsClientError returns true when this update user bad request response has a 4xx status code

func (*UpdateUserBadRequest) IsCode added in v1.13.0

func (o *UpdateUserBadRequest) IsCode(code int) bool

IsCode returns true when this update user bad request response a status code equal to that given

func (*UpdateUserBadRequest) IsRedirect added in v1.13.0

func (o *UpdateUserBadRequest) IsRedirect() bool

IsRedirect returns true when this update user bad request response has a 3xx status code

func (*UpdateUserBadRequest) IsServerError added in v1.13.0

func (o *UpdateUserBadRequest) IsServerError() bool

IsServerError returns true when this update user bad request response has a 5xx status code

func (*UpdateUserBadRequest) IsSuccess added in v1.13.0

func (o *UpdateUserBadRequest) IsSuccess() bool

IsSuccess returns true when this update user bad request response has a 2xx status code

func (*UpdateUserBadRequest) String added in v1.13.0

func (o *UpdateUserBadRequest) String() string

type UpdateUserNotFound

type UpdateUserNotFound struct {

	/* The error codes associated with the response
	 */
	XCloudErrorCodes string

	Payload *models.BasicFailedReply
}

UpdateUserNotFound describes a response with status code 404, 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) Code added in v1.13.0

func (o *UpdateUserNotFound) Code() int

Code gets the status code for the update user not found response

func (*UpdateUserNotFound) Error

func (o *UpdateUserNotFound) Error() string

func (*UpdateUserNotFound) GetPayload

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

func (*UpdateUserNotFound) IsClientError added in v1.13.0

func (o *UpdateUserNotFound) IsClientError() bool

IsClientError returns true when this update user not found response has a 4xx status code

func (*UpdateUserNotFound) IsCode added in v1.13.0

func (o *UpdateUserNotFound) IsCode(code int) bool

IsCode returns true when this update user not found response a status code equal to that given

func (*UpdateUserNotFound) IsRedirect added in v1.13.0

func (o *UpdateUserNotFound) IsRedirect() bool

IsRedirect returns true when this update user not found response has a 3xx status code

func (*UpdateUserNotFound) IsServerError added in v1.13.0

func (o *UpdateUserNotFound) IsServerError() bool

IsServerError returns true when this update user not found response has a 5xx status code

func (*UpdateUserNotFound) IsSuccess added in v1.13.0

func (o *UpdateUserNotFound) IsSuccess() bool

IsSuccess returns true when this update user not found response has a 2xx status code

func (*UpdateUserNotFound) String added in v1.13.0

func (o *UpdateUserNotFound) String() string

type UpdateUserOK

type UpdateUserOK struct {
	Payload *models.User
}

UpdateUserOK describes a response with status code 200, with default header values.

User successfully updated

func NewUpdateUserOK

func NewUpdateUserOK() *UpdateUserOK

NewUpdateUserOK creates a UpdateUserOK with default headers values

func (*UpdateUserOK) Code added in v1.13.0

func (o *UpdateUserOK) Code() int

Code gets the status code for the update user o k response

func (*UpdateUserOK) Error

func (o *UpdateUserOK) Error() string

func (*UpdateUserOK) GetPayload

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

func (*UpdateUserOK) IsClientError added in v1.13.0

func (o *UpdateUserOK) IsClientError() bool

IsClientError returns true when this update user o k response has a 4xx status code

func (*UpdateUserOK) IsCode added in v1.13.0

func (o *UpdateUserOK) IsCode(code int) bool

IsCode returns true when this update user o k response a status code equal to that given

func (*UpdateUserOK) IsRedirect added in v1.13.0

func (o *UpdateUserOK) IsRedirect() bool

IsRedirect returns true when this update user o k response has a 3xx status code

func (*UpdateUserOK) IsServerError added in v1.13.0

func (o *UpdateUserOK) IsServerError() bool

IsServerError returns true when this update user o k response has a 5xx status code

func (*UpdateUserOK) IsSuccess added in v1.13.0

func (o *UpdateUserOK) IsSuccess() bool

IsSuccess returns true when this update user o k response has a 2xx status code

func (*UpdateUserOK) String added in v1.13.0

func (o *UpdateUserOK) String() string

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 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) 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) SetDefaults added in v1.3.0

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) 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) WithDefaults added in v1.3.0

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

Jump to

Keyboard shortcuts

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