users

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddUserOK

type AddUserOK struct {
	Payload *models.User
}

AddUserOK handles this case with default header values.

Success

func NewAddUserOK

func NewAddUserOK() *AddUserOK

NewAddUserOK creates a AddUserOK with default headers values

func (*AddUserOK) Error

func (o *AddUserOK) Error() string

func (*AddUserOK) GetPayload

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

type AddUserParams

type AddUserParams struct {

	/*User*/
	User *models.User

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

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

func NewAddUserParams

func NewAddUserParams() *AddUserParams

NewAddUserParams creates a new AddUserParams object with the default values initialized.

func NewAddUserParamsWithContext

func NewAddUserParamsWithContext(ctx context.Context) *AddUserParams

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

func NewAddUserParamsWithHTTPClient

func NewAddUserParamsWithHTTPClient(client *http.Client) *AddUserParams

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

func NewAddUserParamsWithTimeout

func NewAddUserParamsWithTimeout(timeout time.Duration) *AddUserParams

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

func (*AddUserParams) SetContext

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

SetContext adds the context to the add user params

func (*AddUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add user params

func (*AddUserParams) SetTimeout

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

SetTimeout adds the timeout to the add user params

func (*AddUserParams) SetUser

func (o *AddUserParams) SetUser(user *models.User)

SetUser adds the user to the add user params

func (*AddUserParams) WithContext

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

WithContext adds the context to the add user params

func (*AddUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add user params

func (*AddUserParams) WithTimeout

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

WithTimeout adds the timeout to the add user params

func (*AddUserParams) WithUser

func (o *AddUserParams) WithUser(user *models.User) *AddUserParams

WithUser adds the user to the add user params

func (*AddUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddUserReader

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

AddUserReader is a Reader for the AddUser structure.

func (*AddUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ChangePasswordOK

type ChangePasswordOK struct {
	Payload bool
}

ChangePasswordOK handles this case with default header values.

Success

func NewChangePasswordOK

func NewChangePasswordOK() *ChangePasswordOK

NewChangePasswordOK creates a ChangePasswordOK with default headers values

func (*ChangePasswordOK) Error

func (o *ChangePasswordOK) Error() string

func (*ChangePasswordOK) GetPayload

func (o *ChangePasswordOK) GetPayload() bool

type ChangePasswordParams

type ChangePasswordParams struct {

	/*ChangePassword*/
	ChangePassword *models.UserChangePassword
	/*ID*/
	ID string

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

ChangePasswordParams contains all the parameters to send to the API endpoint for the change password operation typically these are written to a http.Request

func NewChangePasswordParams

func NewChangePasswordParams() *ChangePasswordParams

NewChangePasswordParams creates a new ChangePasswordParams object with the default values initialized.

func NewChangePasswordParamsWithContext

func NewChangePasswordParamsWithContext(ctx context.Context) *ChangePasswordParams

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

func NewChangePasswordParamsWithHTTPClient

func NewChangePasswordParamsWithHTTPClient(client *http.Client) *ChangePasswordParams

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

func NewChangePasswordParamsWithTimeout

func NewChangePasswordParamsWithTimeout(timeout time.Duration) *ChangePasswordParams

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

func (*ChangePasswordParams) SetChangePassword

func (o *ChangePasswordParams) SetChangePassword(changePassword *models.UserChangePassword)

SetChangePassword adds the changePassword to the change password params

func (*ChangePasswordParams) SetContext

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

SetContext adds the context to the change password params

func (*ChangePasswordParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the change password params

func (*ChangePasswordParams) SetID

func (o *ChangePasswordParams) SetID(id string)

SetID adds the id to the change password params

func (*ChangePasswordParams) SetTimeout

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

SetTimeout adds the timeout to the change password params

func (*ChangePasswordParams) WithChangePassword

func (o *ChangePasswordParams) WithChangePassword(changePassword *models.UserChangePassword) *ChangePasswordParams

WithChangePassword adds the changePassword to the change password params

func (*ChangePasswordParams) WithContext

WithContext adds the context to the change password params

func (*ChangePasswordParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the change password params

func (*ChangePasswordParams) WithID

WithID adds the id to the change password params

func (*ChangePasswordParams) WithTimeout

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

WithTimeout adds the timeout to the change password params

func (*ChangePasswordParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ChangePasswordReader

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

ChangePasswordReader is a Reader for the ChangePassword structure.

func (*ChangePasswordReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type Client

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

Client for users API

func (*Client) AddUser

func (a *Client) AddUser(params *AddUserParams, authInfo runtime.ClientAuthInfoWriter) (*AddUserOK, error)

AddUser add user API

func (*Client) ChangePassword

func (a *Client) ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ChangePasswordOK, error)

ChangePassword change password API

func (*Client) DeleteUser

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

DeleteUser delete user API

func (*Client) GetUserByID

func (a *Client) GetUserByID(params *GetUserByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserByIDOK, error)

GetUserByID get user by Id API

func (*Client) GetUserByUserName

func (a *Client) GetUserByUserName(params *GetUserByUserNameParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserByUserNameOK, error)

GetUserByUserName get user by user name API

func (*Client) GetUsers added in v1.1.0

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

GetUsers get users API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateUser

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

UpdateUser update user API

type ClientService

type ClientService interface {
	AddUser(params *AddUserParams, authInfo runtime.ClientAuthInfoWriter) (*AddUserOK, error)

	ChangePassword(params *ChangePasswordParams, authInfo runtime.ClientAuthInfoWriter) (*ChangePasswordOK, error)

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

	GetUserByID(params *GetUserByIDParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserByIDOK, error)

	GetUserByUserName(params *GetUserByUserNameParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserByUserNameOK, error)

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

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

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new users API client.

type DeleteUserOK

type DeleteUserOK struct {
	Payload bool
}

DeleteUserOK handles this case with default header values.

Success

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() bool

type DeleteUserParams

type DeleteUserParams struct {

	/*ID*/
	ID 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) SetID

func (o *DeleteUserParams) SetID(id string)

SetID adds the id 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) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete user params

func (*DeleteUserParams) WithID

func (o *DeleteUserParams) WithID(id string) *DeleteUserParams

WithID adds the id 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 GetUserByIDOK

type GetUserByIDOK struct {
	Payload *models.User
}

GetUserByIDOK handles this case with default header values.

Success

func NewGetUserByIDOK

func NewGetUserByIDOK() *GetUserByIDOK

NewGetUserByIDOK creates a GetUserByIDOK with default headers values

func (*GetUserByIDOK) Error

func (o *GetUserByIDOK) Error() string

func (*GetUserByIDOK) GetPayload

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

type GetUserByIDParams

type GetUserByIDParams struct {

	/*ID*/
	ID string

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

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

func NewGetUserByIDParams

func NewGetUserByIDParams() *GetUserByIDParams

NewGetUserByIDParams creates a new GetUserByIDParams object with the default values initialized.

func NewGetUserByIDParamsWithContext

func NewGetUserByIDParamsWithContext(ctx context.Context) *GetUserByIDParams

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

func NewGetUserByIDParamsWithHTTPClient

func NewGetUserByIDParamsWithHTTPClient(client *http.Client) *GetUserByIDParams

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

func NewGetUserByIDParamsWithTimeout

func NewGetUserByIDParamsWithTimeout(timeout time.Duration) *GetUserByIDParams

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

func (*GetUserByIDParams) SetContext

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

SetContext adds the context to the get user by Id params

func (*GetUserByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user by Id params

func (*GetUserByIDParams) SetID

func (o *GetUserByIDParams) SetID(id string)

SetID adds the id to the get user by Id params

func (*GetUserByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get user by Id params

func (*GetUserByIDParams) WithContext

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

WithContext adds the context to the get user by Id params

func (*GetUserByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user by Id params

func (*GetUserByIDParams) WithID

WithID adds the id to the get user by Id params

func (*GetUserByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get user by Id params

func (*GetUserByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserByIDReader

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

GetUserByIDReader is a Reader for the GetUserByID structure.

func (*GetUserByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserByUserNameOK

type GetUserByUserNameOK struct {
	Payload *models.User
}

GetUserByUserNameOK handles this case with default header values.

Success

func NewGetUserByUserNameOK

func NewGetUserByUserNameOK() *GetUserByUserNameOK

NewGetUserByUserNameOK creates a GetUserByUserNameOK with default headers values

func (*GetUserByUserNameOK) Error

func (o *GetUserByUserNameOK) Error() string

func (*GetUserByUserNameOK) GetPayload

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

type GetUserByUserNameParams

type GetUserByUserNameParams struct {

	/*UserName*/
	UserName *string

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

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

func NewGetUserByUserNameParams

func NewGetUserByUserNameParams() *GetUserByUserNameParams

NewGetUserByUserNameParams creates a new GetUserByUserNameParams object with the default values initialized.

func NewGetUserByUserNameParamsWithContext

func NewGetUserByUserNameParamsWithContext(ctx context.Context) *GetUserByUserNameParams

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

func NewGetUserByUserNameParamsWithHTTPClient

func NewGetUserByUserNameParamsWithHTTPClient(client *http.Client) *GetUserByUserNameParams

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

func NewGetUserByUserNameParamsWithTimeout

func NewGetUserByUserNameParamsWithTimeout(timeout time.Duration) *GetUserByUserNameParams

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

func (*GetUserByUserNameParams) SetContext

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

SetContext adds the context to the get user by user name params

func (*GetUserByUserNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user by user name params

func (*GetUserByUserNameParams) SetTimeout

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

SetTimeout adds the timeout to the get user by user name params

func (*GetUserByUserNameParams) SetUserName

func (o *GetUserByUserNameParams) SetUserName(userName *string)

SetUserName adds the userName to the get user by user name params

func (*GetUserByUserNameParams) WithContext

WithContext adds the context to the get user by user name params

func (*GetUserByUserNameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user by user name params

func (*GetUserByUserNameParams) WithTimeout

WithTimeout adds the timeout to the get user by user name params

func (*GetUserByUserNameParams) WithUserName

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

WithUserName adds the userName to the get user by user name params

func (*GetUserByUserNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserByUserNameReader

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

GetUserByUserNameReader is a Reader for the GetUserByUserName structure.

func (*GetUserByUserNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUsersOK added in v1.1.0

type GetUsersOK struct {
	Payload *models.APICollectionOfUser
}

GetUsersOK handles this case with default header values.

Success

func NewGetUsersOK added in v1.1.0

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates a GetUsersOK with default headers values

func (*GetUsersOK) Error added in v1.1.0

func (o *GetUsersOK) Error() string

func (*GetUsersOK) GetPayload added in v1.1.0

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

type GetUsersParams added in v1.1.0

type GetUsersParams struct {

	/*OrganizationID*/
	OrganizationID *int32
	/*Page*/
	Page *int32
	/*PageSize*/
	PageSize *int32
	/*Role*/
	Role *string
	/*Search*/
	Search *string

	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 added in v1.1.0

func NewGetUsersParams() *GetUsersParams

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

func NewGetUsersParamsWithContext added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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 added in v1.1.0

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

SetContext adds the context to the get users params

func (*GetUsersParams) SetHTTPClient added in v1.1.0

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

SetHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) SetOrganizationID added in v1.1.0

func (o *GetUsersParams) SetOrganizationID(organizationID *int32)

SetOrganizationID adds the organizationId to the get users params

func (*GetUsersParams) SetPage added in v1.1.0

func (o *GetUsersParams) SetPage(page *int32)

SetPage adds the page to the get users params

func (*GetUsersParams) SetPageSize added in v1.1.0

func (o *GetUsersParams) SetPageSize(pageSize *int32)

SetPageSize adds the pageSize to the get users params

func (*GetUsersParams) SetRole added in v1.1.0

func (o *GetUsersParams) SetRole(role *string)

SetRole adds the role to the get users params

func (*GetUsersParams) SetSearch added in v1.1.0

func (o *GetUsersParams) SetSearch(search *string)

SetSearch adds the search to the get users params

func (*GetUsersParams) SetTimeout added in v1.1.0

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

SetTimeout adds the timeout to the get users params

func (*GetUsersParams) WithContext added in v1.1.0

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

WithContext adds the context to the get users params

func (*GetUsersParams) WithHTTPClient added in v1.1.0

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

WithHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) WithOrganizationID added in v1.1.0

func (o *GetUsersParams) WithOrganizationID(organizationID *int32) *GetUsersParams

WithOrganizationID adds the organizationID to the get users params

func (*GetUsersParams) WithPage added in v1.1.0

func (o *GetUsersParams) WithPage(page *int32) *GetUsersParams

WithPage adds the page to the get users params

func (*GetUsersParams) WithPageSize added in v1.1.0

func (o *GetUsersParams) WithPageSize(pageSize *int32) *GetUsersParams

WithPageSize adds the pageSize to the get users params

func (*GetUsersParams) WithRole added in v1.1.0

func (o *GetUsersParams) WithRole(role *string) *GetUsersParams

WithRole adds the role to the get users params

func (*GetUsersParams) WithSearch added in v1.1.0

func (o *GetUsersParams) WithSearch(search *string) *GetUsersParams

WithSearch adds the search to the get users params

func (*GetUsersParams) WithTimeout added in v1.1.0

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

WithTimeout adds the timeout to the get users params

func (*GetUsersParams) WriteToRequest added in v1.1.0

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

WriteToRequest writes these params to a swagger request

type GetUsersReader added in v1.1.0

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

GetUsersReader is a Reader for the GetUsers structure.

func (*GetUsersReader) ReadResponse added in v1.1.0

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

ReadResponse reads a server response into the received o.

type UpdateUserOK

type UpdateUserOK struct {
	Payload *models.User
}

UpdateUserOK handles this case with default header values.

Success

func NewUpdateUserOK

func NewUpdateUserOK() *UpdateUserOK

NewUpdateUserOK creates a UpdateUserOK with default headers values

func (*UpdateUserOK) Error

func (o *UpdateUserOK) Error() string

func (*UpdateUserOK) GetPayload

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

type UpdateUserParams

type UpdateUserParams struct {

	/*ID*/
	ID string
	/*User*/
	User *models.User

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

func (o *UpdateUserParams) SetID(id string)

SetID adds the id 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) SetUser

func (o *UpdateUserParams) SetUser(user *models.User)

SetUser adds the user 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) WithID

func (o *UpdateUserParams) WithID(id string) *UpdateUserParams

WithID adds the id 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) WithUser

func (o *UpdateUserParams) WithUser(user *models.User) *UpdateUserParams

WithUser adds the user to the update user params

func (*UpdateUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateUserReader

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

UpdateUserReader is a Reader for the UpdateUser structure.

func (*UpdateUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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