users

package
v0.0.0-...-147c068 Latest Latest
Warning

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

Go to latest
Published: May 15, 2019 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 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) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UserAdminCheck

func (a *Client) UserAdminCheck(params *UserAdminCheckParams, authInfo runtime.ClientAuthInfoWriter) (*UserAdminCheckNoContent, error)

UserAdminCheck checks administrator account existence

Check if an administrator account exists in the database. **Access policy**: public

func (*Client) UserAdminInit

func (a *Client) UserAdminInit(params *UserAdminInitParams, authInfo runtime.ClientAuthInfoWriter) (*UserAdminInitOK, error)

UserAdminInit initializes administrator account

Initialize the 'admin' user account. **Access policy**: public

func (*Client) UserCreate

func (a *Client) UserCreate(params *UserCreateParams, authInfo runtime.ClientAuthInfoWriter) (*UserCreateOK, error)

UserCreate creates a new user

Create a new Portainer user. Only team leaders and administrators can create users. Only administrators can create an administrator user account. **Access policy**: restricted

func (*Client) UserDelete

func (a *Client) UserDelete(params *UserDeleteParams, authInfo runtime.ClientAuthInfoWriter) (*UserDeleteNoContent, error)

UserDelete removes a user

Remove a user. **Access policy**: administrator

func (*Client) UserInspect

func (a *Client) UserInspect(params *UserInspectParams, authInfo runtime.ClientAuthInfoWriter) (*UserInspectOK, error)

UserInspect inspects a user

Retrieve details about a user. **Access policy**: administrator

func (*Client) UserList

func (a *Client) UserList(params *UserListParams, authInfo runtime.ClientAuthInfoWriter) (*UserListOK, error)

UserList lists users

List Portainer users. Non-administrator users will only be able to list other non-administrator user accounts. **Access policy**: restricted

func (*Client) UserMembershipsInspect

func (a *Client) UserMembershipsInspect(params *UserMembershipsInspectParams, authInfo runtime.ClientAuthInfoWriter) (*UserMembershipsInspectOK, error)

UserMembershipsInspect inspects a user memberships

Inspect a user memberships. **Access policy**: authenticated

func (*Client) UserPasswordCheck

func (a *Client) UserPasswordCheck(params *UserPasswordCheckParams, authInfo runtime.ClientAuthInfoWriter) (*UserPasswordCheckOK, error)

UserPasswordCheck checks password validity for a user

Check if the submitted password is valid for the specified user. **Access policy**: authenticated

func (*Client) UserUpdate

func (a *Client) UserUpdate(params *UserUpdateParams, authInfo runtime.ClientAuthInfoWriter) (*UserUpdateOK, error)

UserUpdate updates a user

Update user details. A regular user account can only update his details. **Access policy**: authenticated

type UserAdminCheckInternalServerError

type UserAdminCheckInternalServerError struct {
	Payload *models.GenericError
}

UserAdminCheckInternalServerError handles this case with default header values.

Server error

func NewUserAdminCheckInternalServerError

func NewUserAdminCheckInternalServerError() *UserAdminCheckInternalServerError

NewUserAdminCheckInternalServerError creates a UserAdminCheckInternalServerError with default headers values

func (*UserAdminCheckInternalServerError) Error

type UserAdminCheckNoContent

type UserAdminCheckNoContent struct {
}

UserAdminCheckNoContent handles this case with default header values.

Success

func NewUserAdminCheckNoContent

func NewUserAdminCheckNoContent() *UserAdminCheckNoContent

NewUserAdminCheckNoContent creates a UserAdminCheckNoContent with default headers values

func (*UserAdminCheckNoContent) Error

func (o *UserAdminCheckNoContent) Error() string

type UserAdminCheckNotFound

type UserAdminCheckNotFound struct {
	Payload *models.GenericError
}

UserAdminCheckNotFound handles this case with default header values.

User not found

func NewUserAdminCheckNotFound

func NewUserAdminCheckNotFound() *UserAdminCheckNotFound

NewUserAdminCheckNotFound creates a UserAdminCheckNotFound with default headers values

func (*UserAdminCheckNotFound) Error

func (o *UserAdminCheckNotFound) Error() string

type UserAdminCheckParams

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

UserAdminCheckParams contains all the parameters to send to the API endpoint for the user admin check operation typically these are written to a http.Request

func NewUserAdminCheckParams

func NewUserAdminCheckParams() *UserAdminCheckParams

NewUserAdminCheckParams creates a new UserAdminCheckParams object with the default values initialized.

func NewUserAdminCheckParamsWithContext

func NewUserAdminCheckParamsWithContext(ctx context.Context) *UserAdminCheckParams

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

func NewUserAdminCheckParamsWithHTTPClient

func NewUserAdminCheckParamsWithHTTPClient(client *http.Client) *UserAdminCheckParams

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

func NewUserAdminCheckParamsWithTimeout

func NewUserAdminCheckParamsWithTimeout(timeout time.Duration) *UserAdminCheckParams

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

func (*UserAdminCheckParams) SetContext

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

SetContext adds the context to the user admin check params

func (*UserAdminCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user admin check params

func (*UserAdminCheckParams) SetTimeout

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

SetTimeout adds the timeout to the user admin check params

func (*UserAdminCheckParams) WithContext

WithContext adds the context to the user admin check params

func (*UserAdminCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user admin check params

func (*UserAdminCheckParams) WithTimeout

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

WithTimeout adds the timeout to the user admin check params

func (*UserAdminCheckParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserAdminCheckReader

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

UserAdminCheckReader is a Reader for the UserAdminCheck structure.

func (*UserAdminCheckReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserAdminInitBadRequest

type UserAdminInitBadRequest struct {
	Payload *models.GenericError
}

UserAdminInitBadRequest handles this case with default header values.

Invalid request

func NewUserAdminInitBadRequest

func NewUserAdminInitBadRequest() *UserAdminInitBadRequest

NewUserAdminInitBadRequest creates a UserAdminInitBadRequest with default headers values

func (*UserAdminInitBadRequest) Error

func (o *UserAdminInitBadRequest) Error() string

type UserAdminInitConflict

type UserAdminInitConflict struct {
	Payload *models.GenericError
}

UserAdminInitConflict handles this case with default header values.

Admin user already initialized

func NewUserAdminInitConflict

func NewUserAdminInitConflict() *UserAdminInitConflict

NewUserAdminInitConflict creates a UserAdminInitConflict with default headers values

func (*UserAdminInitConflict) Error

func (o *UserAdminInitConflict) Error() string

type UserAdminInitInternalServerError

type UserAdminInitInternalServerError struct {
	Payload *models.GenericError
}

UserAdminInitInternalServerError handles this case with default header values.

Server error

func NewUserAdminInitInternalServerError

func NewUserAdminInitInternalServerError() *UserAdminInitInternalServerError

NewUserAdminInitInternalServerError creates a UserAdminInitInternalServerError with default headers values

func (*UserAdminInitInternalServerError) Error

type UserAdminInitOK

type UserAdminInitOK struct {
	Payload *models.User
}

UserAdminInitOK handles this case with default header values.

Success

func NewUserAdminInitOK

func NewUserAdminInitOK() *UserAdminInitOK

NewUserAdminInitOK creates a UserAdminInitOK with default headers values

func (*UserAdminInitOK) Error

func (o *UserAdminInitOK) Error() string

type UserAdminInitParams

type UserAdminInitParams struct {

	/*Body
	  User details

	*/
	Body *models.UserAdminInitRequest

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

UserAdminInitParams contains all the parameters to send to the API endpoint for the user admin init operation typically these are written to a http.Request

func NewUserAdminInitParams

func NewUserAdminInitParams() *UserAdminInitParams

NewUserAdminInitParams creates a new UserAdminInitParams object with the default values initialized.

func NewUserAdminInitParamsWithContext

func NewUserAdminInitParamsWithContext(ctx context.Context) *UserAdminInitParams

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

func NewUserAdminInitParamsWithHTTPClient

func NewUserAdminInitParamsWithHTTPClient(client *http.Client) *UserAdminInitParams

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

func NewUserAdminInitParamsWithTimeout

func NewUserAdminInitParamsWithTimeout(timeout time.Duration) *UserAdminInitParams

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

func (*UserAdminInitParams) SetBody

SetBody adds the body to the user admin init params

func (*UserAdminInitParams) SetContext

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

SetContext adds the context to the user admin init params

func (*UserAdminInitParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user admin init params

func (*UserAdminInitParams) SetTimeout

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

SetTimeout adds the timeout to the user admin init params

func (*UserAdminInitParams) WithBody

WithBody adds the body to the user admin init params

func (*UserAdminInitParams) WithContext

WithContext adds the context to the user admin init params

func (*UserAdminInitParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user admin init params

func (*UserAdminInitParams) WithTimeout

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

WithTimeout adds the timeout to the user admin init params

func (*UserAdminInitParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserAdminInitReader

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

UserAdminInitReader is a Reader for the UserAdminInit structure.

func (*UserAdminInitReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserCreateBadRequest

type UserCreateBadRequest struct {
	Payload *models.GenericError
}

UserCreateBadRequest handles this case with default header values.

Invalid request

func NewUserCreateBadRequest

func NewUserCreateBadRequest() *UserCreateBadRequest

NewUserCreateBadRequest creates a UserCreateBadRequest with default headers values

func (*UserCreateBadRequest) Error

func (o *UserCreateBadRequest) Error() string

type UserCreateConflict

type UserCreateConflict struct {
	Payload *models.GenericError
}

UserCreateConflict handles this case with default header values.

User already exists

func NewUserCreateConflict

func NewUserCreateConflict() *UserCreateConflict

NewUserCreateConflict creates a UserCreateConflict with default headers values

func (*UserCreateConflict) Error

func (o *UserCreateConflict) Error() string

type UserCreateForbidden

type UserCreateForbidden struct {
	Payload *models.GenericError
}

UserCreateForbidden handles this case with default header values.

Unauthorized

func NewUserCreateForbidden

func NewUserCreateForbidden() *UserCreateForbidden

NewUserCreateForbidden creates a UserCreateForbidden with default headers values

func (*UserCreateForbidden) Error

func (o *UserCreateForbidden) Error() string

type UserCreateInternalServerError

type UserCreateInternalServerError struct {
	Payload *models.GenericError
}

UserCreateInternalServerError handles this case with default header values.

Server error

func NewUserCreateInternalServerError

func NewUserCreateInternalServerError() *UserCreateInternalServerError

NewUserCreateInternalServerError creates a UserCreateInternalServerError with default headers values

func (*UserCreateInternalServerError) Error

type UserCreateOK

type UserCreateOK struct {
	Payload *models.UserSubset
}

UserCreateOK handles this case with default header values.

Success

func NewUserCreateOK

func NewUserCreateOK() *UserCreateOK

NewUserCreateOK creates a UserCreateOK with default headers values

func (*UserCreateOK) Error

func (o *UserCreateOK) Error() string

type UserCreateParams

type UserCreateParams struct {

	/*Body
	  User details

	*/
	Body *models.UserCreateRequest

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

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

func NewUserCreateParams

func NewUserCreateParams() *UserCreateParams

NewUserCreateParams creates a new UserCreateParams object with the default values initialized.

func NewUserCreateParamsWithContext

func NewUserCreateParamsWithContext(ctx context.Context) *UserCreateParams

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

func NewUserCreateParamsWithHTTPClient

func NewUserCreateParamsWithHTTPClient(client *http.Client) *UserCreateParams

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

func NewUserCreateParamsWithTimeout

func NewUserCreateParamsWithTimeout(timeout time.Duration) *UserCreateParams

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

func (*UserCreateParams) SetBody

func (o *UserCreateParams) SetBody(body *models.UserCreateRequest)

SetBody adds the body to the user create params

func (*UserCreateParams) SetContext

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

SetContext adds the context to the user create params

func (*UserCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user create params

func (*UserCreateParams) SetTimeout

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

SetTimeout adds the timeout to the user create params

func (*UserCreateParams) WithBody

WithBody adds the body to the user create params

func (*UserCreateParams) WithContext

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

WithContext adds the context to the user create params

func (*UserCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user create params

func (*UserCreateParams) WithTimeout

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

WithTimeout adds the timeout to the user create params

func (*UserCreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserCreateReader

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

UserCreateReader is a Reader for the UserCreate structure.

func (*UserCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserDeleteBadRequest

type UserDeleteBadRequest struct {
	Payload *models.GenericError
}

UserDeleteBadRequest handles this case with default header values.

Invalid request

func NewUserDeleteBadRequest

func NewUserDeleteBadRequest() *UserDeleteBadRequest

NewUserDeleteBadRequest creates a UserDeleteBadRequest with default headers values

func (*UserDeleteBadRequest) Error

func (o *UserDeleteBadRequest) Error() string

type UserDeleteInternalServerError

type UserDeleteInternalServerError struct {
	Payload *models.GenericError
}

UserDeleteInternalServerError handles this case with default header values.

Server error

func NewUserDeleteInternalServerError

func NewUserDeleteInternalServerError() *UserDeleteInternalServerError

NewUserDeleteInternalServerError creates a UserDeleteInternalServerError with default headers values

func (*UserDeleteInternalServerError) Error

type UserDeleteNoContent

type UserDeleteNoContent struct {
}

UserDeleteNoContent handles this case with default header values.

Success

func NewUserDeleteNoContent

func NewUserDeleteNoContent() *UserDeleteNoContent

NewUserDeleteNoContent creates a UserDeleteNoContent with default headers values

func (*UserDeleteNoContent) Error

func (o *UserDeleteNoContent) Error() string

type UserDeleteNotFound

type UserDeleteNotFound struct {
	Payload *models.GenericError
}

UserDeleteNotFound handles this case with default header values.

User not found

func NewUserDeleteNotFound

func NewUserDeleteNotFound() *UserDeleteNotFound

NewUserDeleteNotFound creates a UserDeleteNotFound with default headers values

func (*UserDeleteNotFound) Error

func (o *UserDeleteNotFound) Error() string

type UserDeleteParams

type UserDeleteParams struct {

	/*ID
	  User identifier

	*/
	ID int64

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

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

func NewUserDeleteParams

func NewUserDeleteParams() *UserDeleteParams

NewUserDeleteParams creates a new UserDeleteParams object with the default values initialized.

func NewUserDeleteParamsWithContext

func NewUserDeleteParamsWithContext(ctx context.Context) *UserDeleteParams

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

func NewUserDeleteParamsWithHTTPClient

func NewUserDeleteParamsWithHTTPClient(client *http.Client) *UserDeleteParams

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

func NewUserDeleteParamsWithTimeout

func NewUserDeleteParamsWithTimeout(timeout time.Duration) *UserDeleteParams

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

func (*UserDeleteParams) SetContext

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

SetContext adds the context to the user delete params

func (*UserDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user delete params

func (*UserDeleteParams) SetID

func (o *UserDeleteParams) SetID(id int64)

SetID adds the id to the user delete params

func (*UserDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the user delete params

func (*UserDeleteParams) WithContext

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

WithContext adds the context to the user delete params

func (*UserDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user delete params

func (*UserDeleteParams) WithID

func (o *UserDeleteParams) WithID(id int64) *UserDeleteParams

WithID adds the id to the user delete params

func (*UserDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the user delete params

func (*UserDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserDeleteReader

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

UserDeleteReader is a Reader for the UserDelete structure.

func (*UserDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserInspectBadRequest

type UserInspectBadRequest struct {
	Payload *models.GenericError
}

UserInspectBadRequest handles this case with default header values.

Invalid request

func NewUserInspectBadRequest

func NewUserInspectBadRequest() *UserInspectBadRequest

NewUserInspectBadRequest creates a UserInspectBadRequest with default headers values

func (*UserInspectBadRequest) Error

func (o *UserInspectBadRequest) Error() string

type UserInspectInternalServerError

type UserInspectInternalServerError struct {
	Payload *models.GenericError
}

UserInspectInternalServerError handles this case with default header values.

Server error

func NewUserInspectInternalServerError

func NewUserInspectInternalServerError() *UserInspectInternalServerError

NewUserInspectInternalServerError creates a UserInspectInternalServerError with default headers values

func (*UserInspectInternalServerError) Error

type UserInspectNotFound

type UserInspectNotFound struct {
	Payload *models.GenericError
}

UserInspectNotFound handles this case with default header values.

User not found

func NewUserInspectNotFound

func NewUserInspectNotFound() *UserInspectNotFound

NewUserInspectNotFound creates a UserInspectNotFound with default headers values

func (*UserInspectNotFound) Error

func (o *UserInspectNotFound) Error() string

type UserInspectOK

type UserInspectOK struct {
	Payload *models.User
}

UserInspectOK handles this case with default header values.

Success

func NewUserInspectOK

func NewUserInspectOK() *UserInspectOK

NewUserInspectOK creates a UserInspectOK with default headers values

func (*UserInspectOK) Error

func (o *UserInspectOK) Error() string

type UserInspectParams

type UserInspectParams struct {

	/*ID
	  User identifier

	*/
	ID int64

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

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

func NewUserInspectParams

func NewUserInspectParams() *UserInspectParams

NewUserInspectParams creates a new UserInspectParams object with the default values initialized.

func NewUserInspectParamsWithContext

func NewUserInspectParamsWithContext(ctx context.Context) *UserInspectParams

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

func NewUserInspectParamsWithHTTPClient

func NewUserInspectParamsWithHTTPClient(client *http.Client) *UserInspectParams

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

func NewUserInspectParamsWithTimeout

func NewUserInspectParamsWithTimeout(timeout time.Duration) *UserInspectParams

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

func (*UserInspectParams) SetContext

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

SetContext adds the context to the user inspect params

func (*UserInspectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user inspect params

func (*UserInspectParams) SetID

func (o *UserInspectParams) SetID(id int64)

SetID adds the id to the user inspect params

func (*UserInspectParams) SetTimeout

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

SetTimeout adds the timeout to the user inspect params

func (*UserInspectParams) WithContext

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

WithContext adds the context to the user inspect params

func (*UserInspectParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user inspect params

func (*UserInspectParams) WithID

func (o *UserInspectParams) WithID(id int64) *UserInspectParams

WithID adds the id to the user inspect params

func (*UserInspectParams) WithTimeout

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

WithTimeout adds the timeout to the user inspect params

func (*UserInspectParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserInspectReader

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

UserInspectReader is a Reader for the UserInspect structure.

func (*UserInspectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserListInternalServerError

type UserListInternalServerError struct {
	Payload *models.GenericError
}

UserListInternalServerError handles this case with default header values.

Server error

func NewUserListInternalServerError

func NewUserListInternalServerError() *UserListInternalServerError

NewUserListInternalServerError creates a UserListInternalServerError with default headers values

func (*UserListInternalServerError) Error

type UserListOK

type UserListOK struct {
	Payload models.UserListResponse
}

UserListOK handles this case with default header values.

Success

func NewUserListOK

func NewUserListOK() *UserListOK

NewUserListOK creates a UserListOK with default headers values

func (*UserListOK) Error

func (o *UserListOK) Error() string

type UserListParams

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

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

func NewUserListParams

func NewUserListParams() *UserListParams

NewUserListParams creates a new UserListParams object with the default values initialized.

func NewUserListParamsWithContext

func NewUserListParamsWithContext(ctx context.Context) *UserListParams

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

func NewUserListParamsWithHTTPClient

func NewUserListParamsWithHTTPClient(client *http.Client) *UserListParams

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

func NewUserListParamsWithTimeout

func NewUserListParamsWithTimeout(timeout time.Duration) *UserListParams

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

func (*UserListParams) SetContext

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

SetContext adds the context to the user list params

func (*UserListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user list params

func (*UserListParams) SetTimeout

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

SetTimeout adds the timeout to the user list params

func (*UserListParams) WithContext

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

WithContext adds the context to the user list params

func (*UserListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user list params

func (*UserListParams) WithTimeout

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

WithTimeout adds the timeout to the user list params

func (*UserListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserListReader

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

UserListReader is a Reader for the UserList structure.

func (*UserListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserMembershipsInspectBadRequest

type UserMembershipsInspectBadRequest struct {
	Payload *models.GenericError
}

UserMembershipsInspectBadRequest handles this case with default header values.

Invalid request

func NewUserMembershipsInspectBadRequest

func NewUserMembershipsInspectBadRequest() *UserMembershipsInspectBadRequest

NewUserMembershipsInspectBadRequest creates a UserMembershipsInspectBadRequest with default headers values

func (*UserMembershipsInspectBadRequest) Error

type UserMembershipsInspectForbidden

type UserMembershipsInspectForbidden struct {
	Payload *models.GenericError
}

UserMembershipsInspectForbidden handles this case with default header values.

Unauthorized

func NewUserMembershipsInspectForbidden

func NewUserMembershipsInspectForbidden() *UserMembershipsInspectForbidden

NewUserMembershipsInspectForbidden creates a UserMembershipsInspectForbidden with default headers values

func (*UserMembershipsInspectForbidden) Error

type UserMembershipsInspectInternalServerError

type UserMembershipsInspectInternalServerError struct {
	Payload *models.GenericError
}

UserMembershipsInspectInternalServerError handles this case with default header values.

Server error

func NewUserMembershipsInspectInternalServerError

func NewUserMembershipsInspectInternalServerError() *UserMembershipsInspectInternalServerError

NewUserMembershipsInspectInternalServerError creates a UserMembershipsInspectInternalServerError with default headers values

func (*UserMembershipsInspectInternalServerError) Error

type UserMembershipsInspectOK

type UserMembershipsInspectOK struct {
	Payload models.UserMembershipsResponse
}

UserMembershipsInspectOK handles this case with default header values.

Success

func NewUserMembershipsInspectOK

func NewUserMembershipsInspectOK() *UserMembershipsInspectOK

NewUserMembershipsInspectOK creates a UserMembershipsInspectOK with default headers values

func (*UserMembershipsInspectOK) Error

func (o *UserMembershipsInspectOK) Error() string

type UserMembershipsInspectParams

type UserMembershipsInspectParams struct {

	/*ID
	  User identifier

	*/
	ID int64

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

UserMembershipsInspectParams contains all the parameters to send to the API endpoint for the user memberships inspect operation typically these are written to a http.Request

func NewUserMembershipsInspectParams

func NewUserMembershipsInspectParams() *UserMembershipsInspectParams

NewUserMembershipsInspectParams creates a new UserMembershipsInspectParams object with the default values initialized.

func NewUserMembershipsInspectParamsWithContext

func NewUserMembershipsInspectParamsWithContext(ctx context.Context) *UserMembershipsInspectParams

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

func NewUserMembershipsInspectParamsWithHTTPClient

func NewUserMembershipsInspectParamsWithHTTPClient(client *http.Client) *UserMembershipsInspectParams

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

func NewUserMembershipsInspectParamsWithTimeout

func NewUserMembershipsInspectParamsWithTimeout(timeout time.Duration) *UserMembershipsInspectParams

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

func (*UserMembershipsInspectParams) SetContext

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

SetContext adds the context to the user memberships inspect params

func (*UserMembershipsInspectParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user memberships inspect params

func (*UserMembershipsInspectParams) SetID

func (o *UserMembershipsInspectParams) SetID(id int64)

SetID adds the id to the user memberships inspect params

func (*UserMembershipsInspectParams) SetTimeout

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

SetTimeout adds the timeout to the user memberships inspect params

func (*UserMembershipsInspectParams) WithContext

WithContext adds the context to the user memberships inspect params

func (*UserMembershipsInspectParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the user memberships inspect params

func (*UserMembershipsInspectParams) WithID

WithID adds the id to the user memberships inspect params

func (*UserMembershipsInspectParams) WithTimeout

WithTimeout adds the timeout to the user memberships inspect params

func (*UserMembershipsInspectParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserMembershipsInspectReader

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

UserMembershipsInspectReader is a Reader for the UserMembershipsInspect structure.

func (*UserMembershipsInspectReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserPasswordCheckBadRequest

type UserPasswordCheckBadRequest struct {
	Payload *models.GenericError
}

UserPasswordCheckBadRequest handles this case with default header values.

Invalid request

func NewUserPasswordCheckBadRequest

func NewUserPasswordCheckBadRequest() *UserPasswordCheckBadRequest

NewUserPasswordCheckBadRequest creates a UserPasswordCheckBadRequest with default headers values

func (*UserPasswordCheckBadRequest) Error

type UserPasswordCheckInternalServerError

type UserPasswordCheckInternalServerError struct {
	Payload *models.GenericError
}

UserPasswordCheckInternalServerError handles this case with default header values.

Server error

func NewUserPasswordCheckInternalServerError

func NewUserPasswordCheckInternalServerError() *UserPasswordCheckInternalServerError

NewUserPasswordCheckInternalServerError creates a UserPasswordCheckInternalServerError with default headers values

func (*UserPasswordCheckInternalServerError) Error

type UserPasswordCheckNotFound

type UserPasswordCheckNotFound struct {
	Payload *models.GenericError
}

UserPasswordCheckNotFound handles this case with default header values.

User not found

func NewUserPasswordCheckNotFound

func NewUserPasswordCheckNotFound() *UserPasswordCheckNotFound

NewUserPasswordCheckNotFound creates a UserPasswordCheckNotFound with default headers values

func (*UserPasswordCheckNotFound) Error

func (o *UserPasswordCheckNotFound) Error() string

type UserPasswordCheckOK

type UserPasswordCheckOK struct {
	Payload *models.UserPasswordCheckResponse
}

UserPasswordCheckOK handles this case with default header values.

Success

func NewUserPasswordCheckOK

func NewUserPasswordCheckOK() *UserPasswordCheckOK

NewUserPasswordCheckOK creates a UserPasswordCheckOK with default headers values

func (*UserPasswordCheckOK) Error

func (o *UserPasswordCheckOK) Error() string

type UserPasswordCheckParams

type UserPasswordCheckParams struct {

	/*Body
	  User details

	*/
	Body *models.UserPasswordCheckRequest
	/*ID
	  User identifier

	*/
	ID int64

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

UserPasswordCheckParams contains all the parameters to send to the API endpoint for the user password check operation typically these are written to a http.Request

func NewUserPasswordCheckParams

func NewUserPasswordCheckParams() *UserPasswordCheckParams

NewUserPasswordCheckParams creates a new UserPasswordCheckParams object with the default values initialized.

func NewUserPasswordCheckParamsWithContext

func NewUserPasswordCheckParamsWithContext(ctx context.Context) *UserPasswordCheckParams

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

func NewUserPasswordCheckParamsWithHTTPClient

func NewUserPasswordCheckParamsWithHTTPClient(client *http.Client) *UserPasswordCheckParams

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

func NewUserPasswordCheckParamsWithTimeout

func NewUserPasswordCheckParamsWithTimeout(timeout time.Duration) *UserPasswordCheckParams

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

func (*UserPasswordCheckParams) SetBody

SetBody adds the body to the user password check params

func (*UserPasswordCheckParams) SetContext

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

SetContext adds the context to the user password check params

func (*UserPasswordCheckParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user password check params

func (*UserPasswordCheckParams) SetID

func (o *UserPasswordCheckParams) SetID(id int64)

SetID adds the id to the user password check params

func (*UserPasswordCheckParams) SetTimeout

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

SetTimeout adds the timeout to the user password check params

func (*UserPasswordCheckParams) WithBody

WithBody adds the body to the user password check params

func (*UserPasswordCheckParams) WithContext

WithContext adds the context to the user password check params

func (*UserPasswordCheckParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user password check params

func (*UserPasswordCheckParams) WithID

WithID adds the id to the user password check params

func (*UserPasswordCheckParams) WithTimeout

WithTimeout adds the timeout to the user password check params

func (*UserPasswordCheckParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserPasswordCheckReader

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

UserPasswordCheckReader is a Reader for the UserPasswordCheck structure.

func (*UserPasswordCheckReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserUpdateBadRequest

type UserUpdateBadRequest struct {
	Payload *models.GenericError
}

UserUpdateBadRequest handles this case with default header values.

Invalid request

func NewUserUpdateBadRequest

func NewUserUpdateBadRequest() *UserUpdateBadRequest

NewUserUpdateBadRequest creates a UserUpdateBadRequest with default headers values

func (*UserUpdateBadRequest) Error

func (o *UserUpdateBadRequest) Error() string

type UserUpdateForbidden

type UserUpdateForbidden struct {
	Payload *models.GenericError
}

UserUpdateForbidden handles this case with default header values.

Unauthorized

func NewUserUpdateForbidden

func NewUserUpdateForbidden() *UserUpdateForbidden

NewUserUpdateForbidden creates a UserUpdateForbidden with default headers values

func (*UserUpdateForbidden) Error

func (o *UserUpdateForbidden) Error() string

type UserUpdateInternalServerError

type UserUpdateInternalServerError struct {
	Payload *models.GenericError
}

UserUpdateInternalServerError handles this case with default header values.

Server error

func NewUserUpdateInternalServerError

func NewUserUpdateInternalServerError() *UserUpdateInternalServerError

NewUserUpdateInternalServerError creates a UserUpdateInternalServerError with default headers values

func (*UserUpdateInternalServerError) Error

type UserUpdateNotFound

type UserUpdateNotFound struct {
	Payload *models.GenericError
}

UserUpdateNotFound handles this case with default header values.

User not found

func NewUserUpdateNotFound

func NewUserUpdateNotFound() *UserUpdateNotFound

NewUserUpdateNotFound creates a UserUpdateNotFound with default headers values

func (*UserUpdateNotFound) Error

func (o *UserUpdateNotFound) Error() string

type UserUpdateOK

type UserUpdateOK struct {
	Payload *models.User
}

UserUpdateOK handles this case with default header values.

Success

func NewUserUpdateOK

func NewUserUpdateOK() *UserUpdateOK

NewUserUpdateOK creates a UserUpdateOK with default headers values

func (*UserUpdateOK) Error

func (o *UserUpdateOK) Error() string

type UserUpdateParams

type UserUpdateParams struct {

	/*Body
	  User details

	*/
	Body *models.UserUpdateRequest
	/*ID
	  User identifier

	*/
	ID int64

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

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

func NewUserUpdateParams

func NewUserUpdateParams() *UserUpdateParams

NewUserUpdateParams creates a new UserUpdateParams object with the default values initialized.

func NewUserUpdateParamsWithContext

func NewUserUpdateParamsWithContext(ctx context.Context) *UserUpdateParams

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

func NewUserUpdateParamsWithHTTPClient

func NewUserUpdateParamsWithHTTPClient(client *http.Client) *UserUpdateParams

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

func NewUserUpdateParamsWithTimeout

func NewUserUpdateParamsWithTimeout(timeout time.Duration) *UserUpdateParams

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

func (*UserUpdateParams) SetBody

func (o *UserUpdateParams) SetBody(body *models.UserUpdateRequest)

SetBody adds the body to the user update params

func (*UserUpdateParams) SetContext

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

SetContext adds the context to the user update params

func (*UserUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user update params

func (*UserUpdateParams) SetID

func (o *UserUpdateParams) SetID(id int64)

SetID adds the id to the user update params

func (*UserUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the user update params

func (*UserUpdateParams) WithBody

WithBody adds the body to the user update params

func (*UserUpdateParams) WithContext

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

WithContext adds the context to the user update params

func (*UserUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user update params

func (*UserUpdateParams) WithID

func (o *UserUpdateParams) WithID(id int64) *UserUpdateParams

WithID adds the id to the user update params

func (*UserUpdateParams) WithTimeout

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

WithTimeout adds the timeout to the user update params

func (*UserUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserUpdateReader

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

UserUpdateReader is a Reader for the UserUpdate structure.

func (*UserUpdateReader) ReadResponse

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