user_service

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 11 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) Error

func (o *DeleteUserForbidden) Error() string

func (*DeleteUserForbidden) GetPayload

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

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

func (*DeleteUserInternalServerError) GetPayload

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

func (o *DeleteUserNotFound) Error() string

func (*DeleteUserNotFound) GetPayload

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

type DeleteUserOK

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

DeleteUserOK delete user o k

func NewDeleteUserOK

func NewDeleteUserOK() *DeleteUserOK

NewDeleteUserOK creates a DeleteUserOK with default headers values

func (*DeleteUserOK) Error

func (o *DeleteUserOK) Error() string

func (*DeleteUserOK) GetPayload

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

type DeleteUserParams

type DeleteUserParams struct {

	// Login.
	Login 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) SetHTTPClient

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

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

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

SetTimeout adds the timeout to the delete user params

func (*DeleteUserParams) WithContext

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

WithContext adds the context to the delete user params

func (*DeleteUserParams) WithDefaults

func (o *DeleteUserParams) WithDefaults() *DeleteUserParams

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

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

func (*DeleteUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete user params

func (*DeleteUserParams) WithLogin

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

WithLogin adds the login to the delete user params

func (*DeleteUserParams) WithTimeout

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

WithTimeout adds the timeout to the delete user params

func (*DeleteUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteUserReader

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

DeleteUserReader is a Reader for the DeleteUser structure.

func (*DeleteUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type 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) Error

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

func (o *GetUserForbidden) Error() string

func (*GetUserForbidden) GetPayload

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

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

func (*GetUserInternalServerError) GetPayload

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

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

func (o *GetUserNotFound) Error() string

func (*GetUserNotFound) GetPayload

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

type GetUserOK

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

GetUserOK get user o k

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Error

func (o *GetUserOK) Error() string

func (*GetUserOK) GetPayload

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

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.

	   Format: boolean
	*/
	IsGroup *bool

	/* LastConnected.

	   Last successful connection timestamp.

	   Format: int32
	*/
	LastConnected *int32

	// Login.
	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.

	   Format: boolean
	*/
	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) Error

func (o *GetUserUnauthorized) Error() string

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

func (o *PutRolesForbidden) Error() string

func (*PutRolesForbidden) GetPayload

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

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

func (*PutRolesInternalServerError) GetPayload

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

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

func (o *PutRolesNotFound) Error() string

func (*PutRolesNotFound) GetPayload

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

type PutRolesOK

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

PutRolesOK put roles o k

func NewPutRolesOK

func NewPutRolesOK() *PutRolesOK

NewPutRolesOK creates a PutRolesOK with default headers values

func (*PutRolesOK) Error

func (o *PutRolesOK) Error() string

func (*PutRolesOK) GetPayload

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

type PutRolesParams

type PutRolesParams struct {

	// Login.
	Login string

	// Body.
	Body *models.IdmUser

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

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 *models.IdmUser) *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) Error

func (o *PutRolesUnauthorized) Error() string

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

func (o *PutUserForbidden) Error() string

func (*PutUserForbidden) GetPayload

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

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

func (*PutUserInternalServerError) GetPayload

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

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

func (o *PutUserNotFound) Error() string

func (*PutUserNotFound) GetPayload

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

type PutUserOK

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

PutUserOK put user o k

func NewPutUserOK

func NewPutUserOK() *PutUserOK

NewPutUserOK creates a PutUserOK with default headers values

func (*PutUserOK) Error

func (o *PutUserOK) Error() string

func (*PutUserOK) GetPayload

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

type PutUserParams

type PutUserParams struct {

	// Login.
	Login string

	// Body.
	Body *models.IdmUser

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

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 *models.IdmUser) *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) Error

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

func (o *SearchUsersForbidden) Error() string

func (*SearchUsersForbidden) GetPayload

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

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

func (*SearchUsersInternalServerError) GetPayload

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

func (o *SearchUsersNotFound) Error() string

func (*SearchUsersNotFound) GetPayload

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

type SearchUsersOK

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

SearchUsersOK search users o k

func NewSearchUsersOK

func NewSearchUsersOK() *SearchUsersOK

NewSearchUsersOK creates a SearchUsersOK with default headers values

func (*SearchUsersOK) Error

func (o *SearchUsersOK) Error() string

func (*SearchUsersOK) GetPayload

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

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

func (o *SearchUsersUnauthorized) Error() string

Jump to

Keyboard shortcuts

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