users

package
v0.0.0-...-4ac4f36 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 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 describes a response with status code 200, 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 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 NewAddUserParamsWithContext

func NewAddUserParamsWithContext(ctx context.Context) *AddUserParams

NewAddUserParamsWithContext creates a new AddUserParams object with 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 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 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) SetDefaults

func (o *AddUserParams) SetDefaults()

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

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

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

func (o *AddUserParams) WithDefaults() *AddUserParams

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

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

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 describes a response with status code 200, 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 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 NewChangePasswordParamsWithContext

func NewChangePasswordParamsWithContext(ctx context.Context) *ChangePasswordParams

NewChangePasswordParamsWithContext creates a new ChangePasswordParams object with 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 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 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) SetDefaults

func (o *ChangePasswordParams) SetDefaults()

SetDefaults hydrates default values in the change password params (not the query body).

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

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

func (o *ChangePasswordParams) WithDefaults() *ChangePasswordParams

WithDefaults hydrates default values in the change password params (not the query body).

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

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, opts ...ClientOption) (*AddUserOK, error)

AddUser add user API

func (*Client) ChangePassword

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

ChangePassword change password API

func (*Client) DeleteUser

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

DeleteUser delete user API

func (*Client) GetUserByID

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

GetUserByID get user by Id API

func (*Client) GetUserByUserName

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

GetUserByUserName get user by user name API

func (*Client) GetUsers

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

UpdateUser update user API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

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

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

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

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

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

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

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

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new users API client.

type DeleteUserOK

type DeleteUserOK struct {
	Payload bool
}
DeleteUserOK describes a response with status code 200, 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 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) 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) 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) 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 describes a response with status code 200, 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 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 NewGetUserByIDParamsWithContext

func NewGetUserByIDParamsWithContext(ctx context.Context) *GetUserByIDParams

NewGetUserByIDParamsWithContext creates a new GetUserByIDParams object with 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 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 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) SetDefaults

func (o *GetUserByIDParams) SetDefaults()

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

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

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

func (o *GetUserByIDParams) WithDefaults() *GetUserByIDParams

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

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

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 describes a response with status code 200, 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 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 NewGetUserByUserNameParamsWithContext

func NewGetUserByUserNameParamsWithContext(ctx context.Context) *GetUserByUserNameParams

NewGetUserByUserNameParamsWithContext creates a new GetUserByUserNameParams object with 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 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 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) SetDefaults

func (o *GetUserByUserNameParams) SetDefaults()

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

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

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

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

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

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

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

Success

func NewGetUsersOK

func NewGetUsersOK() *GetUsersOK

NewGetUsersOK creates a GetUsersOK with default headers values

func (*GetUsersOK) Error

func (o *GetUsersOK) Error() string

func (*GetUsersOK) GetPayload

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

type GetUsersParams

type GetUsersParams struct {

	// OrganizationID.
	//
	// Format: int32
	OrganizationID *int32

	// Page.
	//
	// Format: int32
	Page *int32

	// PageSize.
	//
	// Format: int32
	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

func NewGetUsersParams() *GetUsersParams

NewGetUsersParams creates a new GetUsersParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetUsersParamsWithContext

func NewGetUsersParamsWithContext(ctx context.Context) *GetUsersParams

NewGetUsersParamsWithContext creates a new GetUsersParams object with the ability to set a context for a request.

func NewGetUsersParamsWithHTTPClient

func NewGetUsersParamsWithHTTPClient(client *http.Client) *GetUsersParams

NewGetUsersParamsWithHTTPClient creates a new GetUsersParams object with the ability to set a custom HTTPClient for a request.

func NewGetUsersParamsWithTimeout

func NewGetUsersParamsWithTimeout(timeout time.Duration) *GetUsersParams

NewGetUsersParamsWithTimeout creates a new GetUsersParams object with the ability to set a timeout on a request.

func (*GetUsersParams) SetContext

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

SetContext adds the context to the get users params

func (*GetUsersParams) SetDefaults

func (o *GetUsersParams) SetDefaults()

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

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

func (*GetUsersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) SetOrganizationID

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

SetOrganizationID adds the organizationId to the get users params

func (*GetUsersParams) SetPage

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

SetPage adds the page to the get users params

func (*GetUsersParams) SetPageSize

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

SetPageSize adds the pageSize to the get users params

func (*GetUsersParams) SetRole

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

SetRole adds the role to the get users params

func (*GetUsersParams) SetSearch

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

SetSearch adds the search to the get users params

func (*GetUsersParams) SetTimeout

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

SetTimeout adds the timeout to the get users params

func (*GetUsersParams) WithContext

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

WithContext adds the context to the get users params

func (*GetUsersParams) WithDefaults

func (o *GetUsersParams) WithDefaults() *GetUsersParams

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

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

func (*GetUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get users params

func (*GetUsersParams) WithOrganizationID

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

WithOrganizationID adds the organizationID to the get users params

func (*GetUsersParams) WithPage

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

WithPage adds the page to the get users params

func (*GetUsersParams) WithPageSize

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

WithPageSize adds the pageSize to the get users params

func (*GetUsersParams) WithRole

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

WithRole adds the role to the get users params

func (*GetUsersParams) WithSearch

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

WithSearch adds the search 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 UpdateUserOK

type UpdateUserOK struct {
	Payload *models.User
}
UpdateUserOK describes a response with status code 200, 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 timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewUpdateUserParamsWithContext

func NewUpdateUserParamsWithContext(ctx context.Context) *UpdateUserParams

NewUpdateUserParamsWithContext creates a new UpdateUserParams object with the ability to set a context for a request.

func NewUpdateUserParamsWithHTTPClient

func NewUpdateUserParamsWithHTTPClient(client *http.Client) *UpdateUserParams

NewUpdateUserParamsWithHTTPClient creates a new UpdateUserParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateUserParamsWithTimeout

func NewUpdateUserParamsWithTimeout(timeout time.Duration) *UpdateUserParams

NewUpdateUserParamsWithTimeout creates a new UpdateUserParams object with the ability to set a timeout on a request.

func (*UpdateUserParams) SetContext

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

SetContext adds the context to the update user params

func (*UpdateUserParams) SetDefaults

func (o *UpdateUserParams) SetDefaults()

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

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

func (*UpdateUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user params

func (*UpdateUserParams) 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) WithDefaults

func (o *UpdateUserParams) WithDefaults() *UpdateUserParams

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

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

func (*UpdateUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user params

func (*UpdateUserParams) 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