user_service

package
v5.0.0-alpha5 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: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for user service API

func (*Client) DeleteUser

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

DeleteUser deletes a user

func (*Client) GetUser

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

GetUser gets a user by login

func (*Client) PutRoles

func (a *Client) PutRoles(params *PutRolesParams, opts ...ClientOption) (*PutRolesOK, error)

PutRoles justs save a user roles without other datas

func (*Client) PutUser

func (a *Client) PutUser(params *PutUserParams, opts ...ClientOption) (*PutUserOK, error)

PutUser creates or update a user

func (*Client) SearchUsers

func (a *Client) SearchUsers(params *SearchUsersParams, opts ...ClientOption) (*SearchUsersOK, error)

SearchUsers lists search users

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteUser(params *DeleteUserParams, opts ...ClientOption) (*DeleteUserOK, error)

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

	PutRoles(params *PutRolesParams, opts ...ClientOption) (*PutRolesOK, error)

	PutUser(params *PutUserParams, opts ...ClientOption) (*PutUserOK, error)

	SearchUsers(params *SearchUsersParams, opts ...ClientOption) (*SearchUsersOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new user service API client.

type DeleteUserForbidden

type DeleteUserForbidden struct {
	Payload *models.RestError
}

DeleteUserForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewDeleteUserForbidden

func NewDeleteUserForbidden() *DeleteUserForbidden

NewDeleteUserForbidden creates a DeleteUserForbidden with default headers values

func (*DeleteUserForbidden) Code

func (o *DeleteUserForbidden) Code() int

Code gets the status code for the delete user forbidden response

func (*DeleteUserForbidden) Error

func (o *DeleteUserForbidden) Error() string

func (*DeleteUserForbidden) GetPayload

func (o *DeleteUserForbidden) GetPayload() *models.RestError

func (*DeleteUserForbidden) IsClientError

func (o *DeleteUserForbidden) IsClientError() bool

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

func (*DeleteUserForbidden) IsCode

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

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

func (*DeleteUserForbidden) IsRedirect

func (o *DeleteUserForbidden) IsRedirect() bool

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

func (*DeleteUserForbidden) IsServerError

func (o *DeleteUserForbidden) IsServerError() bool

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

func (*DeleteUserForbidden) IsSuccess

func (o *DeleteUserForbidden) IsSuccess() bool

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

func (*DeleteUserForbidden) String

func (o *DeleteUserForbidden) String() string

type DeleteUserInternalServerError

type DeleteUserInternalServerError struct {
	Payload *models.RestError
}

DeleteUserInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewDeleteUserInternalServerError

func NewDeleteUserInternalServerError() *DeleteUserInternalServerError

NewDeleteUserInternalServerError creates a DeleteUserInternalServerError with default headers values

func (*DeleteUserInternalServerError) Code

Code gets the status code for the delete user internal server error response

func (*DeleteUserInternalServerError) Error

func (*DeleteUserInternalServerError) GetPayload

func (*DeleteUserInternalServerError) IsClientError

func (o *DeleteUserInternalServerError) IsClientError() bool

IsClientError returns true when this delete user internal server error response has a 4xx status code

func (*DeleteUserInternalServerError) IsCode

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

IsCode returns true when this delete user internal server error response a status code equal to that given

func (*DeleteUserInternalServerError) IsRedirect

func (o *DeleteUserInternalServerError) IsRedirect() bool

IsRedirect returns true when this delete user internal server error response has a 3xx status code

func (*DeleteUserInternalServerError) IsServerError

func (o *DeleteUserInternalServerError) IsServerError() bool

IsServerError returns true when this delete user internal server error response has a 5xx status code

func (*DeleteUserInternalServerError) IsSuccess

func (o *DeleteUserInternalServerError) IsSuccess() bool

IsSuccess returns true when this delete user internal server error response has a 2xx status code

func (*DeleteUserInternalServerError) String

type DeleteUserNotFound

type DeleteUserNotFound struct {
	Payload *models.RestError
}

DeleteUserNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewDeleteUserNotFound

func NewDeleteUserNotFound() *DeleteUserNotFound

NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values

func (*DeleteUserNotFound) Code

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

func (*DeleteUserNotFound) IsClientError

func (o *DeleteUserNotFound) IsClientError() bool

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

func (*DeleteUserNotFound) IsCode

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

func (o *DeleteUserNotFound) IsRedirect() bool

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

func (*DeleteUserNotFound) IsServerError

func (o *DeleteUserNotFound) IsServerError() bool

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

func (*DeleteUserNotFound) IsSuccess

func (o *DeleteUserNotFound) IsSuccess() bool

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

func (*DeleteUserNotFound) String

func (o *DeleteUserNotFound) String() string

type DeleteUserOK

type DeleteUserOK struct {
	Payload *models.RestDeleteResponse
}

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

A successful response.

func NewDeleteUserOK

func NewDeleteUserOK() *DeleteUserOK

NewDeleteUserOK creates a DeleteUserOK with default headers values

func (*DeleteUserOK) Code

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

func (*DeleteUserOK) IsClientError

func (o *DeleteUserOK) IsClientError() bool

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

func (*DeleteUserOK) IsCode

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

func (o *DeleteUserOK) IsRedirect() bool

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

func (*DeleteUserOK) IsServerError

func (o *DeleteUserOK) IsServerError() bool

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

func (*DeleteUserOK) IsSuccess

func (o *DeleteUserOK) IsSuccess() bool

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

func (*DeleteUserOK) String

func (o *DeleteUserOK) String() string

type DeleteUserParams

type DeleteUserParams struct {

	/* GroupLabel.

	   Label of the group, field is empty for users
	*/
	GroupLabel *string

	/* GroupPath.

	   Path to the parent group
	*/
	GroupPath *string

	/* IsGroup.

	   Whether this object is a group or a user
	*/
	IsGroup *bool

	/* LastConnected.

	   Last successful connection timestamp

	   Format: int32
	*/
	LastConnected *int32

	/* Login.

	   User login is used to connect, field is empty for groups
	*/
	Login string

	/* OldPassword.

	   OldPassword must be set when a user updates her own password
	*/
	OldPassword *string

	/* Password.

	   Password can be passed to be updated (but never read back), field is empty for groups
	*/
	Password *string

	/* PoliciesContextEditable.

	   Context-resolved to quickly check if user is editable or not.
	*/
	PoliciesContextEditable *bool

	/* UUID.

	   User unique identifier
	*/
	UUID *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

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

func (o *DeleteUserParams) SetGroupLabel(groupLabel *string)

SetGroupLabel adds the groupLabel to the delete user params

func (*DeleteUserParams) SetGroupPath

func (o *DeleteUserParams) SetGroupPath(groupPath *string)

SetGroupPath adds the groupPath 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) SetIsGroup

func (o *DeleteUserParams) SetIsGroup(isGroup *bool)

SetIsGroup adds the isGroup to the delete user params

func (*DeleteUserParams) SetLastConnected

func (o *DeleteUserParams) SetLastConnected(lastConnected *int32)

SetLastConnected adds the lastConnected to the delete user params

func (*DeleteUserParams) SetLogin

func (o *DeleteUserParams) SetLogin(login string)

SetLogin adds the login to the delete user params

func (*DeleteUserParams) SetOldPassword

func (o *DeleteUserParams) SetOldPassword(oldPassword *string)

SetOldPassword adds the oldPassword to the delete user params

func (*DeleteUserParams) SetPassword

func (o *DeleteUserParams) SetPassword(password *string)

SetPassword adds the password to the delete user params

func (*DeleteUserParams) SetPoliciesContextEditable

func (o *DeleteUserParams) SetPoliciesContextEditable(policiesContextEditable *bool)

SetPoliciesContextEditable adds the policiesContextEditable 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) SetUUID

func (o *DeleteUserParams) SetUUID(uuid *string)

SetUUID adds the uuid to the delete user params

func (*DeleteUserParams) WithContext

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

WithContext adds the context to the delete user params

func (*DeleteUserParams) WithDefaults

func (o *DeleteUserParams) WithDefaults() *DeleteUserParams

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

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

func (*DeleteUserParams) WithGroupLabel

func (o *DeleteUserParams) WithGroupLabel(groupLabel *string) *DeleteUserParams

WithGroupLabel adds the groupLabel to the delete user params

func (*DeleteUserParams) WithGroupPath

func (o *DeleteUserParams) WithGroupPath(groupPath *string) *DeleteUserParams

WithGroupPath adds the groupPath 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) WithIsGroup

func (o *DeleteUserParams) WithIsGroup(isGroup *bool) *DeleteUserParams

WithIsGroup adds the isGroup to the delete user params

func (*DeleteUserParams) WithLastConnected

func (o *DeleteUserParams) WithLastConnected(lastConnected *int32) *DeleteUserParams

WithLastConnected adds the lastConnected to the delete user params

func (*DeleteUserParams) WithLogin

func (o *DeleteUserParams) WithLogin(login string) *DeleteUserParams

WithLogin adds the login to the delete user params

func (*DeleteUserParams) WithOldPassword

func (o *DeleteUserParams) WithOldPassword(oldPassword *string) *DeleteUserParams

WithOldPassword adds the oldPassword to the delete user params

func (*DeleteUserParams) WithPassword

func (o *DeleteUserParams) WithPassword(password *string) *DeleteUserParams

WithPassword adds the password to the delete user params

func (*DeleteUserParams) WithPoliciesContextEditable

func (o *DeleteUserParams) WithPoliciesContextEditable(policiesContextEditable *bool) *DeleteUserParams

WithPoliciesContextEditable adds the policiesContextEditable 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) WithUUID

func (o *DeleteUserParams) WithUUID(uuid *string) *DeleteUserParams

WithUUID adds the uuid 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 DeleteUserUnauthorized

type DeleteUserUnauthorized struct {
}

DeleteUserUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewDeleteUserUnauthorized

func NewDeleteUserUnauthorized() *DeleteUserUnauthorized

NewDeleteUserUnauthorized creates a DeleteUserUnauthorized with default headers values

func (*DeleteUserUnauthorized) Code

func (o *DeleteUserUnauthorized) Code() int

Code gets the status code for the delete user unauthorized response

func (*DeleteUserUnauthorized) Error

func (o *DeleteUserUnauthorized) Error() string

func (*DeleteUserUnauthorized) IsClientError

func (o *DeleteUserUnauthorized) IsClientError() bool

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

func (*DeleteUserUnauthorized) IsCode

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

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

func (*DeleteUserUnauthorized) IsRedirect

func (o *DeleteUserUnauthorized) IsRedirect() bool

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

func (*DeleteUserUnauthorized) IsServerError

func (o *DeleteUserUnauthorized) IsServerError() bool

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

func (*DeleteUserUnauthorized) IsSuccess

func (o *DeleteUserUnauthorized) IsSuccess() bool

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

func (*DeleteUserUnauthorized) String

func (o *DeleteUserUnauthorized) String() string

type GetUserForbidden

type GetUserForbidden struct {
	Payload *models.RestError
}

GetUserForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewGetUserForbidden

func NewGetUserForbidden() *GetUserForbidden

NewGetUserForbidden creates a GetUserForbidden with default headers values

func (*GetUserForbidden) Code

func (o *GetUserForbidden) Code() int

Code gets the status code for the get user forbidden response

func (*GetUserForbidden) Error

func (o *GetUserForbidden) Error() string

func (*GetUserForbidden) GetPayload

func (o *GetUserForbidden) GetPayload() *models.RestError

func (*GetUserForbidden) IsClientError

func (o *GetUserForbidden) IsClientError() bool

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

func (*GetUserForbidden) IsCode

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

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

func (*GetUserForbidden) IsRedirect

func (o *GetUserForbidden) IsRedirect() bool

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

func (*GetUserForbidden) IsServerError

func (o *GetUserForbidden) IsServerError() bool

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

func (*GetUserForbidden) IsSuccess

func (o *GetUserForbidden) IsSuccess() bool

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

func (*GetUserForbidden) String

func (o *GetUserForbidden) String() string

type GetUserInternalServerError

type GetUserInternalServerError struct {
	Payload *models.RestError
}

GetUserInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewGetUserInternalServerError

func NewGetUserInternalServerError() *GetUserInternalServerError

NewGetUserInternalServerError creates a GetUserInternalServerError with default headers values

func (*GetUserInternalServerError) Code

func (o *GetUserInternalServerError) Code() int

Code gets the status code for the get user internal server error response

func (*GetUserInternalServerError) Error

func (*GetUserInternalServerError) GetPayload

func (o *GetUserInternalServerError) GetPayload() *models.RestError

func (*GetUserInternalServerError) IsClientError

func (o *GetUserInternalServerError) IsClientError() bool

IsClientError returns true when this get user internal server error response has a 4xx status code

func (*GetUserInternalServerError) IsCode

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

IsCode returns true when this get user internal server error response a status code equal to that given

func (*GetUserInternalServerError) IsRedirect

func (o *GetUserInternalServerError) IsRedirect() bool

IsRedirect returns true when this get user internal server error response has a 3xx status code

func (*GetUserInternalServerError) IsServerError

func (o *GetUserInternalServerError) IsServerError() bool

IsServerError returns true when this get user internal server error response has a 5xx status code

func (*GetUserInternalServerError) IsSuccess

func (o *GetUserInternalServerError) IsSuccess() bool

IsSuccess returns true when this get user internal server error response has a 2xx status code

func (*GetUserInternalServerError) String

func (o *GetUserInternalServerError) String() string

type GetUserNotFound

type GetUserNotFound struct {
	Payload *models.RestError
}

GetUserNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewGetUserNotFound

func NewGetUserNotFound() *GetUserNotFound

NewGetUserNotFound creates a GetUserNotFound with default headers values

func (*GetUserNotFound) Code

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

func (*GetUserNotFound) IsClientError

func (o *GetUserNotFound) IsClientError() bool

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

func (*GetUserNotFound) IsCode

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

func (o *GetUserNotFound) IsRedirect() bool

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

func (*GetUserNotFound) IsServerError

func (o *GetUserNotFound) IsServerError() bool

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

func (*GetUserNotFound) IsSuccess

func (o *GetUserNotFound) IsSuccess() bool

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

func (*GetUserNotFound) String

func (o *GetUserNotFound) String() string

type GetUserOK

type GetUserOK struct {
	Payload *models.IdmUser
}

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

A successful response.

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Code

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

func (*GetUserOK) IsClientError

func (o *GetUserOK) IsClientError() bool

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

func (*GetUserOK) IsCode

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

func (o *GetUserOK) IsRedirect() bool

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

func (*GetUserOK) IsServerError

func (o *GetUserOK) IsServerError() bool

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

func (*GetUserOK) IsSuccess

func (o *GetUserOK) IsSuccess() bool

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

func (*GetUserOK) String

func (o *GetUserOK) String() string

type GetUserParams

type GetUserParams struct {

	/* GroupLabel.

	   Label of the group, field is empty for users
	*/
	GroupLabel *string

	/* GroupPath.

	   Path to the parent group
	*/
	GroupPath *string

	/* IsGroup.

	   Whether this object is a group or a user
	*/
	IsGroup *bool

	/* LastConnected.

	   Last successful connection timestamp

	   Format: int32
	*/
	LastConnected *int32

	/* Login.

	   User login is used to connect, field is empty for groups
	*/
	Login string

	/* OldPassword.

	   OldPassword must be set when a user updates her own password
	*/
	OldPassword *string

	/* Password.

	   Password can be passed to be updated (but never read back), field is empty for groups
	*/
	Password *string

	/* PoliciesContextEditable.

	   Context-resolved to quickly check if user is editable or not.
	*/
	PoliciesContextEditable *bool

	/* UUID.

	   User unique identifier
	*/
	UUID *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

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

func (o *GetUserParams) SetGroupLabel(groupLabel *string)

SetGroupLabel adds the groupLabel to the get user params

func (*GetUserParams) SetGroupPath

func (o *GetUserParams) SetGroupPath(groupPath *string)

SetGroupPath adds the groupPath 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) SetIsGroup

func (o *GetUserParams) SetIsGroup(isGroup *bool)

SetIsGroup adds the isGroup to the get user params

func (*GetUserParams) SetLastConnected

func (o *GetUserParams) SetLastConnected(lastConnected *int32)

SetLastConnected adds the lastConnected to the get user params

func (*GetUserParams) SetLogin

func (o *GetUserParams) SetLogin(login string)

SetLogin adds the login to the get user params

func (*GetUserParams) SetOldPassword

func (o *GetUserParams) SetOldPassword(oldPassword *string)

SetOldPassword adds the oldPassword to the get user params

func (*GetUserParams) SetPassword

func (o *GetUserParams) SetPassword(password *string)

SetPassword adds the password to the get user params

func (*GetUserParams) SetPoliciesContextEditable

func (o *GetUserParams) SetPoliciesContextEditable(policiesContextEditable *bool)

SetPoliciesContextEditable adds the policiesContextEditable 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) SetUUID

func (o *GetUserParams) SetUUID(uuid *string)

SetUUID adds the uuid 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

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

func (o *GetUserParams) WithGroupLabel(groupLabel *string) *GetUserParams

WithGroupLabel adds the groupLabel to the get user params

func (*GetUserParams) WithGroupPath

func (o *GetUserParams) WithGroupPath(groupPath *string) *GetUserParams

WithGroupPath adds the groupPath 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) WithIsGroup

func (o *GetUserParams) WithIsGroup(isGroup *bool) *GetUserParams

WithIsGroup adds the isGroup to the get user params

func (*GetUserParams) WithLastConnected

func (o *GetUserParams) WithLastConnected(lastConnected *int32) *GetUserParams

WithLastConnected adds the lastConnected to the get user params

func (*GetUserParams) WithLogin

func (o *GetUserParams) WithLogin(login string) *GetUserParams

WithLogin adds the login to the get user params

func (*GetUserParams) WithOldPassword

func (o *GetUserParams) WithOldPassword(oldPassword *string) *GetUserParams

WithOldPassword adds the oldPassword to the get user params

func (*GetUserParams) WithPassword

func (o *GetUserParams) WithPassword(password *string) *GetUserParams

WithPassword adds the password to the get user params

func (*GetUserParams) WithPoliciesContextEditable

func (o *GetUserParams) WithPoliciesContextEditable(policiesContextEditable *bool) *GetUserParams

WithPoliciesContextEditable adds the policiesContextEditable 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) WithUUID

func (o *GetUserParams) WithUUID(uuid *string) *GetUserParams

WithUUID adds the uuid 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 GetUserUnauthorized

type GetUserUnauthorized struct {
}

GetUserUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewGetUserUnauthorized

func NewGetUserUnauthorized() *GetUserUnauthorized

NewGetUserUnauthorized creates a GetUserUnauthorized with default headers values

func (*GetUserUnauthorized) Code

func (o *GetUserUnauthorized) Code() int

Code gets the status code for the get user unauthorized response

func (*GetUserUnauthorized) Error

func (o *GetUserUnauthorized) Error() string

func (*GetUserUnauthorized) IsClientError

func (o *GetUserUnauthorized) IsClientError() bool

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

func (*GetUserUnauthorized) IsCode

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

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

func (*GetUserUnauthorized) IsRedirect

func (o *GetUserUnauthorized) IsRedirect() bool

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

func (*GetUserUnauthorized) IsServerError

func (o *GetUserUnauthorized) IsServerError() bool

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

func (*GetUserUnauthorized) IsSuccess

func (o *GetUserUnauthorized) IsSuccess() bool

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

func (*GetUserUnauthorized) String

func (o *GetUserUnauthorized) String() string

type PutRolesBody

type PutRolesBody struct {

	// A free list of attributes
	Attributes map[string]string `json:"Attributes,omitempty"`

	// Label of the group, field is empty for users
	GroupLabel string `json:"GroupLabel,omitempty"`

	// Path to the parent group
	GroupPath string `json:"GroupPath,omitempty"`

	// Whether this object is a group or a user
	IsGroup bool `json:"IsGroup,omitempty"`

	// Last successful connection timestamp
	LastConnected int32 `json:"LastConnected,omitempty"`

	// OldPassword must be set when a user updates her own password
	OldPassword string `json:"OldPassword,omitempty"`

	// Password can be passed to be updated (but never read back), field is empty for groups
	Password string `json:"Password,omitempty"`

	// Policies securing access to this user
	Policies []*models.ServiceResourcePolicy `json:"Policies"`

	// Context-resolved to quickly check if user is editable or not.
	PoliciesContextEditable bool `json:"PoliciesContextEditable,omitempty"`

	// List of roles applied to this user or group
	Roles []*models.IdmRole `json:"Roles"`

	// User unique identifier
	UUID string `json:"Uuid,omitempty"`
}

PutRolesBody User can represent either a User or a Group swagger:model PutRolesBody

func (*PutRolesBody) ContextValidate

func (o *PutRolesBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this put roles body based on the context it is used

func (*PutRolesBody) MarshalBinary

func (o *PutRolesBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutRolesBody) UnmarshalBinary

func (o *PutRolesBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutRolesBody) Validate

func (o *PutRolesBody) Validate(formats strfmt.Registry) error

Validate validates this put roles body

type PutRolesForbidden

type PutRolesForbidden struct {
	Payload *models.RestError
}

PutRolesForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewPutRolesForbidden

func NewPutRolesForbidden() *PutRolesForbidden

NewPutRolesForbidden creates a PutRolesForbidden with default headers values

func (*PutRolesForbidden) Code

func (o *PutRolesForbidden) Code() int

Code gets the status code for the put roles forbidden response

func (*PutRolesForbidden) Error

func (o *PutRolesForbidden) Error() string

func (*PutRolesForbidden) GetPayload

func (o *PutRolesForbidden) GetPayload() *models.RestError

func (*PutRolesForbidden) IsClientError

func (o *PutRolesForbidden) IsClientError() bool

IsClientError returns true when this put roles forbidden response has a 4xx status code

func (*PutRolesForbidden) IsCode

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

IsCode returns true when this put roles forbidden response a status code equal to that given

func (*PutRolesForbidden) IsRedirect

func (o *PutRolesForbidden) IsRedirect() bool

IsRedirect returns true when this put roles forbidden response has a 3xx status code

func (*PutRolesForbidden) IsServerError

func (o *PutRolesForbidden) IsServerError() bool

IsServerError returns true when this put roles forbidden response has a 5xx status code

func (*PutRolesForbidden) IsSuccess

func (o *PutRolesForbidden) IsSuccess() bool

IsSuccess returns true when this put roles forbidden response has a 2xx status code

func (*PutRolesForbidden) String

func (o *PutRolesForbidden) String() string

type PutRolesInternalServerError

type PutRolesInternalServerError struct {
	Payload *models.RestError
}

PutRolesInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewPutRolesInternalServerError

func NewPutRolesInternalServerError() *PutRolesInternalServerError

NewPutRolesInternalServerError creates a PutRolesInternalServerError with default headers values

func (*PutRolesInternalServerError) Code

func (o *PutRolesInternalServerError) Code() int

Code gets the status code for the put roles internal server error response

func (*PutRolesInternalServerError) Error

func (*PutRolesInternalServerError) GetPayload

func (o *PutRolesInternalServerError) GetPayload() *models.RestError

func (*PutRolesInternalServerError) IsClientError

func (o *PutRolesInternalServerError) IsClientError() bool

IsClientError returns true when this put roles internal server error response has a 4xx status code

func (*PutRolesInternalServerError) IsCode

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

IsCode returns true when this put roles internal server error response a status code equal to that given

func (*PutRolesInternalServerError) IsRedirect

func (o *PutRolesInternalServerError) IsRedirect() bool

IsRedirect returns true when this put roles internal server error response has a 3xx status code

func (*PutRolesInternalServerError) IsServerError

func (o *PutRolesInternalServerError) IsServerError() bool

IsServerError returns true when this put roles internal server error response has a 5xx status code

func (*PutRolesInternalServerError) IsSuccess

func (o *PutRolesInternalServerError) IsSuccess() bool

IsSuccess returns true when this put roles internal server error response has a 2xx status code

func (*PutRolesInternalServerError) String

func (o *PutRolesInternalServerError) String() string

type PutRolesNotFound

type PutRolesNotFound struct {
	Payload *models.RestError
}

PutRolesNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewPutRolesNotFound

func NewPutRolesNotFound() *PutRolesNotFound

NewPutRolesNotFound creates a PutRolesNotFound with default headers values

func (*PutRolesNotFound) Code

func (o *PutRolesNotFound) Code() int

Code gets the status code for the put roles not found response

func (*PutRolesNotFound) Error

func (o *PutRolesNotFound) Error() string

func (*PutRolesNotFound) GetPayload

func (o *PutRolesNotFound) GetPayload() *models.RestError

func (*PutRolesNotFound) IsClientError

func (o *PutRolesNotFound) IsClientError() bool

IsClientError returns true when this put roles not found response has a 4xx status code

func (*PutRolesNotFound) IsCode

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

IsCode returns true when this put roles not found response a status code equal to that given

func (*PutRolesNotFound) IsRedirect

func (o *PutRolesNotFound) IsRedirect() bool

IsRedirect returns true when this put roles not found response has a 3xx status code

func (*PutRolesNotFound) IsServerError

func (o *PutRolesNotFound) IsServerError() bool

IsServerError returns true when this put roles not found response has a 5xx status code

func (*PutRolesNotFound) IsSuccess

func (o *PutRolesNotFound) IsSuccess() bool

IsSuccess returns true when this put roles not found response has a 2xx status code

func (*PutRolesNotFound) String

func (o *PutRolesNotFound) String() string

type PutRolesOK

type PutRolesOK struct {
	Payload *models.IdmUser
}

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

A successful response.

func NewPutRolesOK

func NewPutRolesOK() *PutRolesOK

NewPutRolesOK creates a PutRolesOK with default headers values

func (*PutRolesOK) Code

func (o *PutRolesOK) Code() int

Code gets the status code for the put roles o k response

func (*PutRolesOK) Error

func (o *PutRolesOK) Error() string

func (*PutRolesOK) GetPayload

func (o *PutRolesOK) GetPayload() *models.IdmUser

func (*PutRolesOK) IsClientError

func (o *PutRolesOK) IsClientError() bool

IsClientError returns true when this put roles o k response has a 4xx status code

func (*PutRolesOK) IsCode

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

IsCode returns true when this put roles o k response a status code equal to that given

func (*PutRolesOK) IsRedirect

func (o *PutRolesOK) IsRedirect() bool

IsRedirect returns true when this put roles o k response has a 3xx status code

func (*PutRolesOK) IsServerError

func (o *PutRolesOK) IsServerError() bool

IsServerError returns true when this put roles o k response has a 5xx status code

func (*PutRolesOK) IsSuccess

func (o *PutRolesOK) IsSuccess() bool

IsSuccess returns true when this put roles o k response has a 2xx status code

func (*PutRolesOK) String

func (o *PutRolesOK) String() string

type PutRolesParams

type PutRolesParams struct {

	/* Login.

	   User login is used to connect, field is empty for groups
	*/
	Login string

	// Body.
	Body PutRolesBody

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

PutRolesParams contains all the parameters to send to the API endpoint

for the put roles operation.

Typically these are written to a http.Request.

func NewPutRolesParams

func NewPutRolesParams() *PutRolesParams

NewPutRolesParams creates a new PutRolesParams 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 NewPutRolesParamsWithContext

func NewPutRolesParamsWithContext(ctx context.Context) *PutRolesParams

NewPutRolesParamsWithContext creates a new PutRolesParams object with the ability to set a context for a request.

func NewPutRolesParamsWithHTTPClient

func NewPutRolesParamsWithHTTPClient(client *http.Client) *PutRolesParams

NewPutRolesParamsWithHTTPClient creates a new PutRolesParams object with the ability to set a custom HTTPClient for a request.

func NewPutRolesParamsWithTimeout

func NewPutRolesParamsWithTimeout(timeout time.Duration) *PutRolesParams

NewPutRolesParamsWithTimeout creates a new PutRolesParams object with the ability to set a timeout on a request.

func (*PutRolesParams) SetBody

func (o *PutRolesParams) SetBody(body PutRolesBody)

SetBody adds the body to the put roles params

func (*PutRolesParams) SetContext

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

SetContext adds the context to the put roles params

func (*PutRolesParams) SetDefaults

func (o *PutRolesParams) SetDefaults()

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

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

func (*PutRolesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put roles params

func (*PutRolesParams) SetLogin

func (o *PutRolesParams) SetLogin(login string)

SetLogin adds the login to the put roles params

func (*PutRolesParams) SetTimeout

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

SetTimeout adds the timeout to the put roles params

func (*PutRolesParams) WithBody

func (o *PutRolesParams) WithBody(body PutRolesBody) *PutRolesParams

WithBody adds the body to the put roles params

func (*PutRolesParams) WithContext

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

WithContext adds the context to the put roles params

func (*PutRolesParams) WithDefaults

func (o *PutRolesParams) WithDefaults() *PutRolesParams

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

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

func (*PutRolesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put roles params

func (*PutRolesParams) WithLogin

func (o *PutRolesParams) WithLogin(login string) *PutRolesParams

WithLogin adds the login to the put roles params

func (*PutRolesParams) WithTimeout

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

WithTimeout adds the timeout to the put roles params

func (*PutRolesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutRolesReader

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

PutRolesReader is a Reader for the PutRoles structure.

func (*PutRolesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutRolesUnauthorized

type PutRolesUnauthorized struct {
}

PutRolesUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewPutRolesUnauthorized

func NewPutRolesUnauthorized() *PutRolesUnauthorized

NewPutRolesUnauthorized creates a PutRolesUnauthorized with default headers values

func (*PutRolesUnauthorized) Code

func (o *PutRolesUnauthorized) Code() int

Code gets the status code for the put roles unauthorized response

func (*PutRolesUnauthorized) Error

func (o *PutRolesUnauthorized) Error() string

func (*PutRolesUnauthorized) IsClientError

func (o *PutRolesUnauthorized) IsClientError() bool

IsClientError returns true when this put roles unauthorized response has a 4xx status code

func (*PutRolesUnauthorized) IsCode

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

IsCode returns true when this put roles unauthorized response a status code equal to that given

func (*PutRolesUnauthorized) IsRedirect

func (o *PutRolesUnauthorized) IsRedirect() bool

IsRedirect returns true when this put roles unauthorized response has a 3xx status code

func (*PutRolesUnauthorized) IsServerError

func (o *PutRolesUnauthorized) IsServerError() bool

IsServerError returns true when this put roles unauthorized response has a 5xx status code

func (*PutRolesUnauthorized) IsSuccess

func (o *PutRolesUnauthorized) IsSuccess() bool

IsSuccess returns true when this put roles unauthorized response has a 2xx status code

func (*PutRolesUnauthorized) String

func (o *PutRolesUnauthorized) String() string

type PutUserBody

type PutUserBody struct {

	// A free list of attributes
	Attributes map[string]string `json:"Attributes,omitempty"`

	// Label of the group, field is empty for users
	GroupLabel string `json:"GroupLabel,omitempty"`

	// Path to the parent group
	GroupPath string `json:"GroupPath,omitempty"`

	// Whether this object is a group or a user
	IsGroup bool `json:"IsGroup,omitempty"`

	// Last successful connection timestamp
	LastConnected int32 `json:"LastConnected,omitempty"`

	// OldPassword must be set when a user updates her own password
	OldPassword string `json:"OldPassword,omitempty"`

	// Password can be passed to be updated (but never read back), field is empty for groups
	Password string `json:"Password,omitempty"`

	// Policies securing access to this user
	Policies []*models.ServiceResourcePolicy `json:"Policies"`

	// Context-resolved to quickly check if user is editable or not.
	PoliciesContextEditable bool `json:"PoliciesContextEditable,omitempty"`

	// List of roles applied to this user or group
	Roles []*models.IdmRole `json:"Roles"`

	// User unique identifier
	UUID string `json:"Uuid,omitempty"`
}

PutUserBody User can represent either a User or a Group swagger:model PutUserBody

func (*PutUserBody) ContextValidate

func (o *PutUserBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this put user body based on the context it is used

func (*PutUserBody) MarshalBinary

func (o *PutUserBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PutUserBody) UnmarshalBinary

func (o *PutUserBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PutUserBody) Validate

func (o *PutUserBody) Validate(formats strfmt.Registry) error

Validate validates this put user body

type PutUserForbidden

type PutUserForbidden struct {
	Payload *models.RestError
}

PutUserForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewPutUserForbidden

func NewPutUserForbidden() *PutUserForbidden

NewPutUserForbidden creates a PutUserForbidden with default headers values

func (*PutUserForbidden) Code

func (o *PutUserForbidden) Code() int

Code gets the status code for the put user forbidden response

func (*PutUserForbidden) Error

func (o *PutUserForbidden) Error() string

func (*PutUserForbidden) GetPayload

func (o *PutUserForbidden) GetPayload() *models.RestError

func (*PutUserForbidden) IsClientError

func (o *PutUserForbidden) IsClientError() bool

IsClientError returns true when this put user forbidden response has a 4xx status code

func (*PutUserForbidden) IsCode

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

IsCode returns true when this put user forbidden response a status code equal to that given

func (*PutUserForbidden) IsRedirect

func (o *PutUserForbidden) IsRedirect() bool

IsRedirect returns true when this put user forbidden response has a 3xx status code

func (*PutUserForbidden) IsServerError

func (o *PutUserForbidden) IsServerError() bool

IsServerError returns true when this put user forbidden response has a 5xx status code

func (*PutUserForbidden) IsSuccess

func (o *PutUserForbidden) IsSuccess() bool

IsSuccess returns true when this put user forbidden response has a 2xx status code

func (*PutUserForbidden) String

func (o *PutUserForbidden) String() string

type PutUserInternalServerError

type PutUserInternalServerError struct {
	Payload *models.RestError
}

PutUserInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewPutUserInternalServerError

func NewPutUserInternalServerError() *PutUserInternalServerError

NewPutUserInternalServerError creates a PutUserInternalServerError with default headers values

func (*PutUserInternalServerError) Code

func (o *PutUserInternalServerError) Code() int

Code gets the status code for the put user internal server error response

func (*PutUserInternalServerError) Error

func (*PutUserInternalServerError) GetPayload

func (o *PutUserInternalServerError) GetPayload() *models.RestError

func (*PutUserInternalServerError) IsClientError

func (o *PutUserInternalServerError) IsClientError() bool

IsClientError returns true when this put user internal server error response has a 4xx status code

func (*PutUserInternalServerError) IsCode

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

IsCode returns true when this put user internal server error response a status code equal to that given

func (*PutUserInternalServerError) IsRedirect

func (o *PutUserInternalServerError) IsRedirect() bool

IsRedirect returns true when this put user internal server error response has a 3xx status code

func (*PutUserInternalServerError) IsServerError

func (o *PutUserInternalServerError) IsServerError() bool

IsServerError returns true when this put user internal server error response has a 5xx status code

func (*PutUserInternalServerError) IsSuccess

func (o *PutUserInternalServerError) IsSuccess() bool

IsSuccess returns true when this put user internal server error response has a 2xx status code

func (*PutUserInternalServerError) String

func (o *PutUserInternalServerError) String() string

type PutUserNotFound

type PutUserNotFound struct {
	Payload *models.RestError
}

PutUserNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewPutUserNotFound

func NewPutUserNotFound() *PutUserNotFound

NewPutUserNotFound creates a PutUserNotFound with default headers values

func (*PutUserNotFound) Code

func (o *PutUserNotFound) Code() int

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

func (*PutUserNotFound) Error

func (o *PutUserNotFound) Error() string

func (*PutUserNotFound) GetPayload

func (o *PutUserNotFound) GetPayload() *models.RestError

func (*PutUserNotFound) IsClientError

func (o *PutUserNotFound) IsClientError() bool

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

func (*PutUserNotFound) IsCode

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

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

func (*PutUserNotFound) IsRedirect

func (o *PutUserNotFound) IsRedirect() bool

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

func (*PutUserNotFound) IsServerError

func (o *PutUserNotFound) IsServerError() bool

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

func (*PutUserNotFound) IsSuccess

func (o *PutUserNotFound) IsSuccess() bool

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

func (*PutUserNotFound) String

func (o *PutUserNotFound) String() string

type PutUserOK

type PutUserOK struct {
	Payload *models.IdmUser
}

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

A successful response.

func NewPutUserOK

func NewPutUserOK() *PutUserOK

NewPutUserOK creates a PutUserOK with default headers values

func (*PutUserOK) Code

func (o *PutUserOK) Code() int

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

func (*PutUserOK) Error

func (o *PutUserOK) Error() string

func (*PutUserOK) GetPayload

func (o *PutUserOK) GetPayload() *models.IdmUser

func (*PutUserOK) IsClientError

func (o *PutUserOK) IsClientError() bool

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

func (*PutUserOK) IsCode

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

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

func (*PutUserOK) IsRedirect

func (o *PutUserOK) IsRedirect() bool

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

func (*PutUserOK) IsServerError

func (o *PutUserOK) IsServerError() bool

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

func (*PutUserOK) IsSuccess

func (o *PutUserOK) IsSuccess() bool

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

func (*PutUserOK) String

func (o *PutUserOK) String() string

type PutUserParams

type PutUserParams struct {

	/* Login.

	   User login is used to connect, field is empty for groups
	*/
	Login string

	// Body.
	Body PutUserBody

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

PutUserParams contains all the parameters to send to the API endpoint

for the put user operation.

Typically these are written to a http.Request.

func NewPutUserParams

func NewPutUserParams() *PutUserParams

NewPutUserParams creates a new PutUserParams 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 NewPutUserParamsWithContext

func NewPutUserParamsWithContext(ctx context.Context) *PutUserParams

NewPutUserParamsWithContext creates a new PutUserParams object with the ability to set a context for a request.

func NewPutUserParamsWithHTTPClient

func NewPutUserParamsWithHTTPClient(client *http.Client) *PutUserParams

NewPutUserParamsWithHTTPClient creates a new PutUserParams object with the ability to set a custom HTTPClient for a request.

func NewPutUserParamsWithTimeout

func NewPutUserParamsWithTimeout(timeout time.Duration) *PutUserParams

NewPutUserParamsWithTimeout creates a new PutUserParams object with the ability to set a timeout on a request.

func (*PutUserParams) SetBody

func (o *PutUserParams) SetBody(body PutUserBody)

SetBody adds the body to the put user params

func (*PutUserParams) SetContext

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

SetContext adds the context to the put user params

func (*PutUserParams) SetDefaults

func (o *PutUserParams) SetDefaults()

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

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

func (*PutUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the put user params

func (*PutUserParams) SetLogin

func (o *PutUserParams) SetLogin(login string)

SetLogin adds the login to the put user params

func (*PutUserParams) SetTimeout

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

SetTimeout adds the timeout to the put user params

func (*PutUserParams) WithBody

func (o *PutUserParams) WithBody(body PutUserBody) *PutUserParams

WithBody adds the body to the put user params

func (*PutUserParams) WithContext

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

WithContext adds the context to the put user params

func (*PutUserParams) WithDefaults

func (o *PutUserParams) WithDefaults() *PutUserParams

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

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

func (*PutUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the put user params

func (*PutUserParams) WithLogin

func (o *PutUserParams) WithLogin(login string) *PutUserParams

WithLogin adds the login to the put user params

func (*PutUserParams) WithTimeout

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

WithTimeout adds the timeout to the put user params

func (*PutUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PutUserReader

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

PutUserReader is a Reader for the PutUser structure.

func (*PutUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PutUserUnauthorized

type PutUserUnauthorized struct {
}

PutUserUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewPutUserUnauthorized

func NewPutUserUnauthorized() *PutUserUnauthorized

NewPutUserUnauthorized creates a PutUserUnauthorized with default headers values

func (*PutUserUnauthorized) Code

func (o *PutUserUnauthorized) Code() int

Code gets the status code for the put user unauthorized response

func (*PutUserUnauthorized) Error

func (o *PutUserUnauthorized) Error() string

func (*PutUserUnauthorized) IsClientError

func (o *PutUserUnauthorized) IsClientError() bool

IsClientError returns true when this put user unauthorized response has a 4xx status code

func (*PutUserUnauthorized) IsCode

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

IsCode returns true when this put user unauthorized response a status code equal to that given

func (*PutUserUnauthorized) IsRedirect

func (o *PutUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this put user unauthorized response has a 3xx status code

func (*PutUserUnauthorized) IsServerError

func (o *PutUserUnauthorized) IsServerError() bool

IsServerError returns true when this put user unauthorized response has a 5xx status code

func (*PutUserUnauthorized) IsSuccess

func (o *PutUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this put user unauthorized response has a 2xx status code

func (*PutUserUnauthorized) String

func (o *PutUserUnauthorized) String() string

type SearchUsersForbidden

type SearchUsersForbidden struct {
	Payload *models.RestError
}

SearchUsersForbidden describes a response with status code 403, with default header values.

User has no permission to access this resource

func NewSearchUsersForbidden

func NewSearchUsersForbidden() *SearchUsersForbidden

NewSearchUsersForbidden creates a SearchUsersForbidden with default headers values

func (*SearchUsersForbidden) Code

func (o *SearchUsersForbidden) Code() int

Code gets the status code for the search users forbidden response

func (*SearchUsersForbidden) Error

func (o *SearchUsersForbidden) Error() string

func (*SearchUsersForbidden) GetPayload

func (o *SearchUsersForbidden) GetPayload() *models.RestError

func (*SearchUsersForbidden) IsClientError

func (o *SearchUsersForbidden) IsClientError() bool

IsClientError returns true when this search users forbidden response has a 4xx status code

func (*SearchUsersForbidden) IsCode

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

IsCode returns true when this search users forbidden response a status code equal to that given

func (*SearchUsersForbidden) IsRedirect

func (o *SearchUsersForbidden) IsRedirect() bool

IsRedirect returns true when this search users forbidden response has a 3xx status code

func (*SearchUsersForbidden) IsServerError

func (o *SearchUsersForbidden) IsServerError() bool

IsServerError returns true when this search users forbidden response has a 5xx status code

func (*SearchUsersForbidden) IsSuccess

func (o *SearchUsersForbidden) IsSuccess() bool

IsSuccess returns true when this search users forbidden response has a 2xx status code

func (*SearchUsersForbidden) String

func (o *SearchUsersForbidden) String() string

type SearchUsersInternalServerError

type SearchUsersInternalServerError struct {
	Payload *models.RestError
}

SearchUsersInternalServerError describes a response with status code 500, with default header values.

An internal error occurred in the backend

func NewSearchUsersInternalServerError

func NewSearchUsersInternalServerError() *SearchUsersInternalServerError

NewSearchUsersInternalServerError creates a SearchUsersInternalServerError with default headers values

func (*SearchUsersInternalServerError) Code

Code gets the status code for the search users internal server error response

func (*SearchUsersInternalServerError) Error

func (*SearchUsersInternalServerError) GetPayload

func (*SearchUsersInternalServerError) IsClientError

func (o *SearchUsersInternalServerError) IsClientError() bool

IsClientError returns true when this search users internal server error response has a 4xx status code

func (*SearchUsersInternalServerError) IsCode

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

IsCode returns true when this search users internal server error response a status code equal to that given

func (*SearchUsersInternalServerError) IsRedirect

func (o *SearchUsersInternalServerError) IsRedirect() bool

IsRedirect returns true when this search users internal server error response has a 3xx status code

func (*SearchUsersInternalServerError) IsServerError

func (o *SearchUsersInternalServerError) IsServerError() bool

IsServerError returns true when this search users internal server error response has a 5xx status code

func (*SearchUsersInternalServerError) IsSuccess

func (o *SearchUsersInternalServerError) IsSuccess() bool

IsSuccess returns true when this search users internal server error response has a 2xx status code

func (*SearchUsersInternalServerError) String

type SearchUsersNotFound

type SearchUsersNotFound struct {
	Payload *models.RestError
}

SearchUsersNotFound describes a response with status code 404, with default header values.

Resource does not exist in the system

func NewSearchUsersNotFound

func NewSearchUsersNotFound() *SearchUsersNotFound

NewSearchUsersNotFound creates a SearchUsersNotFound with default headers values

func (*SearchUsersNotFound) Code

func (o *SearchUsersNotFound) Code() int

Code gets the status code for the search users not found response

func (*SearchUsersNotFound) Error

func (o *SearchUsersNotFound) Error() string

func (*SearchUsersNotFound) GetPayload

func (o *SearchUsersNotFound) GetPayload() *models.RestError

func (*SearchUsersNotFound) IsClientError

func (o *SearchUsersNotFound) IsClientError() bool

IsClientError returns true when this search users not found response has a 4xx status code

func (*SearchUsersNotFound) IsCode

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

IsCode returns true when this search users not found response a status code equal to that given

func (*SearchUsersNotFound) IsRedirect

func (o *SearchUsersNotFound) IsRedirect() bool

IsRedirect returns true when this search users not found response has a 3xx status code

func (*SearchUsersNotFound) IsServerError

func (o *SearchUsersNotFound) IsServerError() bool

IsServerError returns true when this search users not found response has a 5xx status code

func (*SearchUsersNotFound) IsSuccess

func (o *SearchUsersNotFound) IsSuccess() bool

IsSuccess returns true when this search users not found response has a 2xx status code

func (*SearchUsersNotFound) String

func (o *SearchUsersNotFound) String() string

type SearchUsersOK

type SearchUsersOK struct {
	Payload *models.RestUsersCollection
}

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

A successful response.

func NewSearchUsersOK

func NewSearchUsersOK() *SearchUsersOK

NewSearchUsersOK creates a SearchUsersOK with default headers values

func (*SearchUsersOK) Code

func (o *SearchUsersOK) Code() int

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

func (*SearchUsersOK) Error

func (o *SearchUsersOK) Error() string

func (*SearchUsersOK) GetPayload

func (o *SearchUsersOK) GetPayload() *models.RestUsersCollection

func (*SearchUsersOK) IsClientError

func (o *SearchUsersOK) IsClientError() bool

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

func (*SearchUsersOK) IsCode

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

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

func (*SearchUsersOK) IsRedirect

func (o *SearchUsersOK) IsRedirect() bool

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

func (*SearchUsersOK) IsServerError

func (o *SearchUsersOK) IsServerError() bool

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

func (*SearchUsersOK) IsSuccess

func (o *SearchUsersOK) IsSuccess() bool

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

func (*SearchUsersOK) String

func (o *SearchUsersOK) String() string

type SearchUsersParams

type SearchUsersParams struct {

	// Body.
	Body *models.RestSearchUserRequest

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

SearchUsersParams contains all the parameters to send to the API endpoint

for the search users operation.

Typically these are written to a http.Request.

func NewSearchUsersParams

func NewSearchUsersParams() *SearchUsersParams

NewSearchUsersParams creates a new SearchUsersParams 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 NewSearchUsersParamsWithContext

func NewSearchUsersParamsWithContext(ctx context.Context) *SearchUsersParams

NewSearchUsersParamsWithContext creates a new SearchUsersParams object with the ability to set a context for a request.

func NewSearchUsersParamsWithHTTPClient

func NewSearchUsersParamsWithHTTPClient(client *http.Client) *SearchUsersParams

NewSearchUsersParamsWithHTTPClient creates a new SearchUsersParams object with the ability to set a custom HTTPClient for a request.

func NewSearchUsersParamsWithTimeout

func NewSearchUsersParamsWithTimeout(timeout time.Duration) *SearchUsersParams

NewSearchUsersParamsWithTimeout creates a new SearchUsersParams object with the ability to set a timeout on a request.

func (*SearchUsersParams) SetBody

SetBody adds the body to the search users params

func (*SearchUsersParams) SetContext

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

SetContext adds the context to the search users params

func (*SearchUsersParams) SetDefaults

func (o *SearchUsersParams) SetDefaults()

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

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

func (*SearchUsersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search users params

func (*SearchUsersParams) SetTimeout

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

SetTimeout adds the timeout to the search users params

func (*SearchUsersParams) WithBody

WithBody adds the body to the search users params

func (*SearchUsersParams) WithContext

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

WithContext adds the context to the search users params

func (*SearchUsersParams) WithDefaults

func (o *SearchUsersParams) WithDefaults() *SearchUsersParams

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

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

func (*SearchUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search users params

func (*SearchUsersParams) WithTimeout

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

WithTimeout adds the timeout to the search users params

func (*SearchUsersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchUsersReader

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

SearchUsersReader is a Reader for the SearchUsers structure.

func (*SearchUsersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchUsersUnauthorized

type SearchUsersUnauthorized struct {
}

SearchUsersUnauthorized describes a response with status code 401, with default header values.

User is not authenticated

func NewSearchUsersUnauthorized

func NewSearchUsersUnauthorized() *SearchUsersUnauthorized

NewSearchUsersUnauthorized creates a SearchUsersUnauthorized with default headers values

func (*SearchUsersUnauthorized) Code

func (o *SearchUsersUnauthorized) Code() int

Code gets the status code for the search users unauthorized response

func (*SearchUsersUnauthorized) Error

func (o *SearchUsersUnauthorized) Error() string

func (*SearchUsersUnauthorized) IsClientError

func (o *SearchUsersUnauthorized) IsClientError() bool

IsClientError returns true when this search users unauthorized response has a 4xx status code

func (*SearchUsersUnauthorized) IsCode

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

IsCode returns true when this search users unauthorized response a status code equal to that given

func (*SearchUsersUnauthorized) IsRedirect

func (o *SearchUsersUnauthorized) IsRedirect() bool

IsRedirect returns true when this search users unauthorized response has a 3xx status code

func (*SearchUsersUnauthorized) IsServerError

func (o *SearchUsersUnauthorized) IsServerError() bool

IsServerError returns true when this search users unauthorized response has a 5xx status code

func (*SearchUsersUnauthorized) IsSuccess

func (o *SearchUsersUnauthorized) IsSuccess() bool

IsSuccess returns true when this search users unauthorized response has a 2xx status code

func (*SearchUsersUnauthorized) String

func (o *SearchUsersUnauthorized) String() string

Jump to

Keyboard shortcuts

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