users

package
v1.0.0-bc5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for users API

func New

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

New creates a new users API client.

func (*Client) CreateUser

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

CreateUser creates a new user

Creates a new user.

func (*Client) DeleteUser

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

DeleteUser deletes an existing user

Deletes an existing user.

func (*Client) GetCurrentUser

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

GetCurrentUser fetches current user information

Fetch current user information.

func (*Client) GetCurrentUserRestrictedFeatures

GetCurrentUserRestrictedFeatures gets features

Gets the restricted features current user has access.

func (*Client) GetUser

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

GetUser fetches a single user

Fetches a single user.

func (*Client) GetUsers

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

GetUsers fetches all users

Fetches all available users.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateCurrentUser

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

UpdateCurrentUser updates the current user

Updates the current user.

func (*Client) UpdateUser

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

UpdateUser updates an existing user

Updates an existing user.

type CreateUserBadRequest

type CreateUserBadRequest struct {
	Payload *models.BasicFailedReply
}

CreateUserBadRequest handles this case with default header values.

Invalid request. (code: 'user.bad_request')

func NewCreateUserBadRequest

func NewCreateUserBadRequest() *CreateUserBadRequest

NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values

func (*CreateUserBadRequest) Error

func (o *CreateUserBadRequest) Error() string

type CreateUserConflict

type CreateUserConflict struct {
	Payload *models.BasicFailedReply
}

CreateUserConflict handles this case with default header values.

User name already in use. (code: 'user.user_name.conflict')

func NewCreateUserConflict

func NewCreateUserConflict() *CreateUserConflict

NewCreateUserConflict creates a CreateUserConflict with default headers values

func (*CreateUserConflict) Error

func (o *CreateUserConflict) Error() string

type CreateUserForbidden

type CreateUserForbidden struct {
	Payload *models.BasicFailedReply
}

CreateUserForbidden handles this case with default header values.

Invalid permissions

func NewCreateUserForbidden

func NewCreateUserForbidden() *CreateUserForbidden

NewCreateUserForbidden creates a CreateUserForbidden with default headers values

func (*CreateUserForbidden) Error

func (o *CreateUserForbidden) Error() string

type CreateUserOK

type CreateUserOK struct {
	Payload *models.User
}

CreateUserOK handles this case with default header values.

User successfully created

func NewCreateUserOK

func NewCreateUserOK() *CreateUserOK

NewCreateUserOK creates a CreateUserOK with default headers values

func (*CreateUserOK) Error

func (o *CreateUserOK) Error() string

type CreateUserParams

type CreateUserParams struct {

	/*Body
	  The user to create

	*/
	Body *models.User

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

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

func NewCreateUserParams

func NewCreateUserParams() *CreateUserParams

NewCreateUserParams creates a new CreateUserParams object with the default values initialized.

func NewCreateUserParamsWithContext

func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams

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

func NewCreateUserParamsWithHTTPClient

func NewCreateUserParamsWithHTTPClient(client *http.Client) *CreateUserParams

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

func NewCreateUserParamsWithTimeout

func NewCreateUserParamsWithTimeout(timeout time.Duration) *CreateUserParams

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

func (*CreateUserParams) SetBody

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

SetBody adds the body to the create user params

func (*CreateUserParams) SetContext

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

SetContext adds the context to the create user params

func (*CreateUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create user params

func (*CreateUserParams) SetTimeout

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

SetTimeout adds the timeout to the create user params

func (*CreateUserParams) WithBody

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

WithBody adds the body to the create user params

func (*CreateUserParams) WithContext

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

WithContext adds the context to the create user params

func (*CreateUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create user params

func (*CreateUserParams) WithTimeout

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

WithTimeout adds the timeout to the create user params

func (*CreateUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateUserReader

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

CreateUserReader is a Reader for the CreateUser structure.

func (*CreateUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateUserRetryWith

type CreateUserRetryWith struct {
	Payload *models.BasicFailedReply
}

CreateUserRetryWith handles this case with default header values.

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

func NewCreateUserRetryWith

func NewCreateUserRetryWith() *CreateUserRetryWith

NewCreateUserRetryWith creates a CreateUserRetryWith with default headers values

func (*CreateUserRetryWith) Error

func (o *CreateUserRetryWith) Error() string

type DeleteUserForbidden

type DeleteUserForbidden struct {
	Payload *models.BasicFailedReply
}

DeleteUserForbidden handles this case with default header values.

Invalid permissions

func NewDeleteUserForbidden

func NewDeleteUserForbidden() *DeleteUserForbidden

NewDeleteUserForbidden creates a DeleteUserForbidden with default headers values

func (*DeleteUserForbidden) Error

func (o *DeleteUserForbidden) Error() string

type DeleteUserNotFound

type DeleteUserNotFound struct {
	Payload *models.BasicFailedReply
}

DeleteUserNotFound handles this case with default header values.

User not found

func NewDeleteUserNotFound

func NewDeleteUserNotFound() *DeleteUserNotFound

NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values

func (*DeleteUserNotFound) Error

func (o *DeleteUserNotFound) Error() string

type DeleteUserOK

type DeleteUserOK struct {
	Payload models.EmptyResponse
}

DeleteUserOK handles this case with default header values.

User successfully deleted

func NewDeleteUserOK

func NewDeleteUserOK() *DeleteUserOK

NewDeleteUserOK creates a DeleteUserOK with default headers values

func (*DeleteUserOK) Error

func (o *DeleteUserOK) Error() string

type DeleteUserParams

type DeleteUserParams struct {

	/*UserName
	  Identifier for the user

	*/
	UserName string

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

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

func NewDeleteUserParams

func NewDeleteUserParams() *DeleteUserParams

NewDeleteUserParams creates a new DeleteUserParams object with the default values initialized.

func NewDeleteUserParamsWithContext

func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams

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

func NewDeleteUserParamsWithHTTPClient

func NewDeleteUserParamsWithHTTPClient(client *http.Client) *DeleteUserParams

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

func NewDeleteUserParamsWithTimeout

func NewDeleteUserParamsWithTimeout(timeout time.Duration) *DeleteUserParams

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

func (*DeleteUserParams) SetContext

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

SetContext adds the context to the delete user params

func (*DeleteUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete user params

func (*DeleteUserParams) SetTimeout

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

SetTimeout adds the timeout to the delete user params

func (*DeleteUserParams) SetUserName

func (o *DeleteUserParams) SetUserName(userName string)

SetUserName adds the userName to the delete user params

func (*DeleteUserParams) WithContext

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

WithContext adds the context to the delete user params

func (*DeleteUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete user params

func (*DeleteUserParams) WithTimeout

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

WithTimeout adds the timeout to the delete user params

func (*DeleteUserParams) WithUserName

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

WithUserName adds the userName to the delete user params

func (*DeleteUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteUserReader

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

DeleteUserReader is a Reader for the DeleteUser structure.

func (*DeleteUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteUserRetryWith

type DeleteUserRetryWith struct {
	Payload *models.BasicFailedReply
}

DeleteUserRetryWith handles this case with default header values.

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

func NewDeleteUserRetryWith

func NewDeleteUserRetryWith() *DeleteUserRetryWith

NewDeleteUserRetryWith creates a DeleteUserRetryWith with default headers values

func (*DeleteUserRetryWith) Error

func (o *DeleteUserRetryWith) Error() string

type GetCurrentUserInternalServerError

type GetCurrentUserInternalServerError struct {
	Payload *models.BasicFailedReply
}

GetCurrentUserInternalServerError handles this case with default header values.

Current configuration is invalid for this endpoint

func NewGetCurrentUserInternalServerError

func NewGetCurrentUserInternalServerError() *GetCurrentUserInternalServerError

NewGetCurrentUserInternalServerError creates a GetCurrentUserInternalServerError with default headers values

func (*GetCurrentUserInternalServerError) Error

type GetCurrentUserNotFound

type GetCurrentUserNotFound struct {
	Payload *models.BasicFailedReply
}

GetCurrentUserNotFound handles this case with default header values.

User not found

func NewGetCurrentUserNotFound

func NewGetCurrentUserNotFound() *GetCurrentUserNotFound

NewGetCurrentUserNotFound creates a GetCurrentUserNotFound with default headers values

func (*GetCurrentUserNotFound) Error

func (o *GetCurrentUserNotFound) Error() string

type GetCurrentUserOK

type GetCurrentUserOK struct {
	Payload *models.User
}

GetCurrentUserOK handles this case with default header values.

User successfully fetched

func NewGetCurrentUserOK

func NewGetCurrentUserOK() *GetCurrentUserOK

NewGetCurrentUserOK creates a GetCurrentUserOK with default headers values

func (*GetCurrentUserOK) Error

func (o *GetCurrentUserOK) Error() string

type GetCurrentUserParams

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

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

func NewGetCurrentUserParams

func NewGetCurrentUserParams() *GetCurrentUserParams

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

func NewGetCurrentUserParamsWithContext

func NewGetCurrentUserParamsWithContext(ctx context.Context) *GetCurrentUserParams

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

func NewGetCurrentUserParamsWithHTTPClient

func NewGetCurrentUserParamsWithHTTPClient(client *http.Client) *GetCurrentUserParams

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

func NewGetCurrentUserParamsWithTimeout

func NewGetCurrentUserParamsWithTimeout(timeout time.Duration) *GetCurrentUserParams

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

func (*GetCurrentUserParams) SetContext

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

SetContext adds the context to the get current user params

func (*GetCurrentUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get current user params

func (*GetCurrentUserParams) SetTimeout

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

SetTimeout adds the timeout to the get current user params

func (*GetCurrentUserParams) WithContext

WithContext adds the context to the get current user params

func (*GetCurrentUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get current user params

func (*GetCurrentUserParams) WithTimeout

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

WithTimeout adds the timeout to the get current user params

func (*GetCurrentUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCurrentUserReader

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

GetCurrentUserReader is a Reader for the GetCurrentUser structure.

func (*GetCurrentUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCurrentUserRestrictedFeaturesOK

type GetCurrentUserRestrictedFeaturesOK struct {
	Payload *models.UserFeatures
}

GetCurrentUserRestrictedFeaturesOK handles this case with default header values.

The request was successful and user features were returned.

func NewGetCurrentUserRestrictedFeaturesOK

func NewGetCurrentUserRestrictedFeaturesOK() *GetCurrentUserRestrictedFeaturesOK

NewGetCurrentUserRestrictedFeaturesOK creates a GetCurrentUserRestrictedFeaturesOK with default headers values

func (*GetCurrentUserRestrictedFeaturesOK) Error

type GetCurrentUserRestrictedFeaturesParams

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

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

func NewGetCurrentUserRestrictedFeaturesParams

func NewGetCurrentUserRestrictedFeaturesParams() *GetCurrentUserRestrictedFeaturesParams

NewGetCurrentUserRestrictedFeaturesParams creates a new GetCurrentUserRestrictedFeaturesParams object with the default values initialized.

func NewGetCurrentUserRestrictedFeaturesParamsWithContext

func NewGetCurrentUserRestrictedFeaturesParamsWithContext(ctx context.Context) *GetCurrentUserRestrictedFeaturesParams

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

func NewGetCurrentUserRestrictedFeaturesParamsWithHTTPClient

func NewGetCurrentUserRestrictedFeaturesParamsWithHTTPClient(client *http.Client) *GetCurrentUserRestrictedFeaturesParams

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

func NewGetCurrentUserRestrictedFeaturesParamsWithTimeout

func NewGetCurrentUserRestrictedFeaturesParamsWithTimeout(timeout time.Duration) *GetCurrentUserRestrictedFeaturesParams

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

func (*GetCurrentUserRestrictedFeaturesParams) SetContext

SetContext adds the context to the get current user restricted features params

func (*GetCurrentUserRestrictedFeaturesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get current user restricted features params

func (*GetCurrentUserRestrictedFeaturesParams) SetTimeout

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

SetTimeout adds the timeout to the get current user restricted features params

func (*GetCurrentUserRestrictedFeaturesParams) WithContext

WithContext adds the context to the get current user restricted features params

func (*GetCurrentUserRestrictedFeaturesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get current user restricted features params

func (*GetCurrentUserRestrictedFeaturesParams) WithTimeout

WithTimeout adds the timeout to the get current user restricted features params

func (*GetCurrentUserRestrictedFeaturesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCurrentUserRestrictedFeaturesReader

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

GetCurrentUserRestrictedFeaturesReader is a Reader for the GetCurrentUserRestrictedFeatures structure.

func (*GetCurrentUserRestrictedFeaturesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserForbidden

type GetUserForbidden struct {
	Payload *models.BasicFailedReply
}

GetUserForbidden handles this case with default header values.

Invalid permissions

func NewGetUserForbidden

func NewGetUserForbidden() *GetUserForbidden

NewGetUserForbidden creates a GetUserForbidden with default headers values

func (*GetUserForbidden) Error

func (o *GetUserForbidden) Error() string

type GetUserNotFound

type GetUserNotFound struct {
	Payload *models.BasicFailedReply
}

GetUserNotFound handles this case with default header values.

User not found

func NewGetUserNotFound

func NewGetUserNotFound() *GetUserNotFound

NewGetUserNotFound creates a GetUserNotFound with default headers values

func (*GetUserNotFound) Error

func (o *GetUserNotFound) Error() string

type GetUserOK

type GetUserOK struct {
	Payload *models.User
}

GetUserOK handles this case with default header values.

User successfully fetched

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Error

func (o *GetUserOK) Error() string

type GetUserParams

type GetUserParams struct {

	/*UserName
	  Identifier for the user

	*/
	UserName string

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

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

func NewGetUserParams

func NewGetUserParams() *GetUserParams

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

func NewGetUserParamsWithContext

func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams

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

func NewGetUserParamsWithHTTPClient

func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams

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

func NewGetUserParamsWithTimeout

func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams

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

func (*GetUserParams) SetContext

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

SetContext adds the context to the get user params

func (*GetUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) SetTimeout

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

SetTimeout adds the timeout to the get user params

func (*GetUserParams) SetUserName

func (o *GetUserParams) SetUserName(userName string)

SetUserName adds the userName to the get user params

func (*GetUserParams) WithContext

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

WithContext adds the context to the get user params

func (*GetUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) WithTimeout

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

WithTimeout adds the timeout to the get user params

func (*GetUserParams) WithUserName

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

WithUserName adds the userName to the get user params

func (*GetUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserReader

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

GetUserReader is a Reader for the GetUser structure.

func (*GetUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUsersForbidden

type GetUsersForbidden struct {
	Payload *models.BasicFailedReply
}

GetUsersForbidden handles this case with default header values.

Invalid permissions

func NewGetUsersForbidden

func NewGetUsersForbidden() *GetUsersForbidden

NewGetUsersForbidden creates a GetUsersForbidden with default headers values

func (*GetUsersForbidden) Error

func (o *GetUsersForbidden) Error() string

type GetUsersOK

type GetUsersOK struct {
	Payload *models.UserList
}

GetUsersOK handles this case with default header values.

Users successfully fetched

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates a GetUsersOK with default headers values

func (*GetUsersOK) Error

func (o *GetUsersOK) Error() string

type GetUsersParams

type GetUsersParams struct {

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

	*/
	IncludeDisabled *bool

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

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

func NewGetUsersParams

func NewGetUsersParams() *GetUsersParams

NewGetUsersParams creates a new GetUsersParams object with the default values initialized.

func NewGetUsersParamsWithContext

func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams

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

func NewGetUsersParamsWithHTTPClient

func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams

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

func NewGetUsersParamsWithTimeout

func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams

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

func (*GetUsersParams) SetContext

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

SetContext adds the context to the get users params

func (*GetUsersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) SetIncludeDisabled

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

SetIncludeDisabled adds the includeDisabled to the get users params

func (*GetUsersParams) SetTimeout

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

SetTimeout adds the timeout to the get users params

func (*GetUsersParams) WithContext

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

WithContext adds the context to the get users params

func (*GetUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) WithIncludeDisabled

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

WithIncludeDisabled adds the includeDisabled to the get users params

func (*GetUsersParams) WithTimeout

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

WithTimeout adds the timeout to the get users params

func (*GetUsersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUsersReader

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

GetUsersReader is a Reader for the GetUsers structure.

func (*GetUsersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCurrentUserBadRequest

type UpdateCurrentUserBadRequest struct {
	Payload *models.BasicFailedReply
}

UpdateCurrentUserBadRequest handles this case with default header values.

Invalid request

func NewUpdateCurrentUserBadRequest

func NewUpdateCurrentUserBadRequest() *UpdateCurrentUserBadRequest

NewUpdateCurrentUserBadRequest creates a UpdateCurrentUserBadRequest with default headers values

func (*UpdateCurrentUserBadRequest) Error

type UpdateCurrentUserInternalServerError

type UpdateCurrentUserInternalServerError struct {
	Payload *models.BasicFailedReply
}

UpdateCurrentUserInternalServerError handles this case with default header values.

Current configuration is invalid for this endpoint

func NewUpdateCurrentUserInternalServerError

func NewUpdateCurrentUserInternalServerError() *UpdateCurrentUserInternalServerError

NewUpdateCurrentUserInternalServerError creates a UpdateCurrentUserInternalServerError with default headers values

func (*UpdateCurrentUserInternalServerError) Error

type UpdateCurrentUserNotFound

type UpdateCurrentUserNotFound struct {
	Payload *models.BasicFailedReply
}

UpdateCurrentUserNotFound handles this case with default header values.

User not found

func NewUpdateCurrentUserNotFound

func NewUpdateCurrentUserNotFound() *UpdateCurrentUserNotFound

NewUpdateCurrentUserNotFound creates a UpdateCurrentUserNotFound with default headers values

func (*UpdateCurrentUserNotFound) Error

func (o *UpdateCurrentUserNotFound) Error() string

type UpdateCurrentUserOK

type UpdateCurrentUserOK struct {
	Payload *models.User
}

UpdateCurrentUserOK handles this case with default header values.

User successfully updated

func NewUpdateCurrentUserOK

func NewUpdateCurrentUserOK() *UpdateCurrentUserOK

NewUpdateCurrentUserOK creates a UpdateCurrentUserOK with default headers values

func (*UpdateCurrentUserOK) Error

func (o *UpdateCurrentUserOK) Error() string

type UpdateCurrentUserParams

type UpdateCurrentUserParams struct {

	/*Body
	  The user properties to update

	*/
	Body *models.User

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

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

func NewUpdateCurrentUserParams

func NewUpdateCurrentUserParams() *UpdateCurrentUserParams

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

func NewUpdateCurrentUserParamsWithContext

func NewUpdateCurrentUserParamsWithContext(ctx context.Context) *UpdateCurrentUserParams

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

func NewUpdateCurrentUserParamsWithHTTPClient

func NewUpdateCurrentUserParamsWithHTTPClient(client *http.Client) *UpdateCurrentUserParams

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

func NewUpdateCurrentUserParamsWithTimeout

func NewUpdateCurrentUserParamsWithTimeout(timeout time.Duration) *UpdateCurrentUserParams

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

func (*UpdateCurrentUserParams) SetBody

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

SetBody adds the body to the update current user params

func (*UpdateCurrentUserParams) SetContext

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

SetContext adds the context to the update current user params

func (*UpdateCurrentUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update current user params

func (*UpdateCurrentUserParams) SetTimeout

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

SetTimeout adds the timeout to the update current user params

func (*UpdateCurrentUserParams) WithBody

WithBody adds the body to the update current user params

func (*UpdateCurrentUserParams) WithContext

WithContext adds the context to the update current user params

func (*UpdateCurrentUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update current user params

func (*UpdateCurrentUserParams) WithTimeout

WithTimeout adds the timeout to the update current user params

func (*UpdateCurrentUserParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateCurrentUserReader

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

UpdateCurrentUserReader is a Reader for the UpdateCurrentUser structure.

func (*UpdateCurrentUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserBadRequest

type UpdateUserBadRequest struct {
	Payload *models.BasicFailedReply
}

UpdateUserBadRequest handles this case with default header values.

Invalid request

func NewUpdateUserBadRequest

func NewUpdateUserBadRequest() *UpdateUserBadRequest

NewUpdateUserBadRequest creates a UpdateUserBadRequest with default headers values

func (*UpdateUserBadRequest) Error

func (o *UpdateUserBadRequest) Error() string

type UpdateUserForbidden

type UpdateUserForbidden struct {
	Payload *models.BasicFailedReply
}

UpdateUserForbidden handles this case with default header values.

Invalid permissions

func NewUpdateUserForbidden

func NewUpdateUserForbidden() *UpdateUserForbidden

NewUpdateUserForbidden creates a UpdateUserForbidden with default headers values

func (*UpdateUserForbidden) Error

func (o *UpdateUserForbidden) Error() string

type UpdateUserNotFound

type UpdateUserNotFound struct {
	Payload *models.BasicFailedReply
}

UpdateUserNotFound handles this case with default header values.

User not found

func NewUpdateUserNotFound

func NewUpdateUserNotFound() *UpdateUserNotFound

NewUpdateUserNotFound creates a UpdateUserNotFound with default headers values

func (*UpdateUserNotFound) Error

func (o *UpdateUserNotFound) Error() string

type UpdateUserOK

type UpdateUserOK struct {
	Payload *models.User
}

UpdateUserOK handles this case with default header values.

User successfully updated

func NewUpdateUserOK

func NewUpdateUserOK() *UpdateUserOK

NewUpdateUserOK creates a UpdateUserOK with default headers values

func (*UpdateUserOK) Error

func (o *UpdateUserOK) Error() string

type UpdateUserParams

type UpdateUserParams struct {

	/*Body
	  The user to update

	*/
	Body *models.User
	/*UserName
	  Identifier for the user

	*/
	UserName string

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

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

func NewUpdateUserParams

func NewUpdateUserParams() *UpdateUserParams

NewUpdateUserParams creates a new UpdateUserParams object with the default values initialized.

func NewUpdateUserParamsWithContext

func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams

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

func NewUpdateUserParamsWithHTTPClient

func NewUpdateUserParamsWithHTTPClient(client *http.Client) *UpdateUserParams

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

func NewUpdateUserParamsWithTimeout

func NewUpdateUserParamsWithTimeout(timeout time.Duration) *UpdateUserParams

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

func (*UpdateUserParams) SetBody

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

SetBody adds the body to the update user params

func (*UpdateUserParams) SetContext

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

SetContext adds the context to the update user params

func (*UpdateUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user params

func (*UpdateUserParams) SetTimeout

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

SetTimeout adds the timeout to the update user params

func (*UpdateUserParams) SetUserName

func (o *UpdateUserParams) SetUserName(userName string)

SetUserName adds the userName to the update user params

func (*UpdateUserParams) WithBody

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

WithBody adds the body to the update user params

func (*UpdateUserParams) WithContext

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

WithContext adds the context to the update user params

func (*UpdateUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user params

func (*UpdateUserParams) WithTimeout

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

WithTimeout adds the timeout to the update user params

func (*UpdateUserParams) WithUserName

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

WithUserName adds the userName to the update user params

func (*UpdateUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateUserReader

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

UpdateUserReader is a Reader for the UpdateUser structure.

func (*UpdateUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserRetryWith

type UpdateUserRetryWith struct {
	Payload *models.BasicFailedReply
}

UpdateUserRetryWith handles this case with default header values.

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

func NewUpdateUserRetryWith

func NewUpdateUserRetryWith() *UpdateUserRetryWith

NewUpdateUserRetryWith creates a UpdateUserRetryWith with default headers values

func (*UpdateUserRetryWith) Error

func (o *UpdateUserRetryWith) Error() string

Jump to

Keyboard shortcuts

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