user

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: AGPL-3.0 Imports: 8 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 user API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UserPasswordChange

func (a *Client) UserPasswordChange(params *UserPasswordChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserPasswordChangeOK, error)
UserPasswordChange changes the password of authenticated user

The parameters can also be given in the body of the request, as JSON, if the content-type is set to 'application/json'.

The parameters can also be given in the body of the request, as XML, if the content-type is set to 'application/xml'.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	UserPasswordChange(params *UserPasswordChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserPasswordChangeOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new user API client.

type UserPasswordChangeBadRequest

type UserPasswordChangeBadRequest struct {
}

UserPasswordChangeBadRequest describes a response with status code 400, with default header values.

bad request

func NewUserPasswordChangeBadRequest

func NewUserPasswordChangeBadRequest() *UserPasswordChangeBadRequest

NewUserPasswordChangeBadRequest creates a UserPasswordChangeBadRequest with default headers values

func (*UserPasswordChangeBadRequest) Code

Code gets the status code for the user password change bad request response

func (*UserPasswordChangeBadRequest) Error

func (*UserPasswordChangeBadRequest) IsClientError

func (o *UserPasswordChangeBadRequest) IsClientError() bool

IsClientError returns true when this user password change bad request response has a 4xx status code

func (*UserPasswordChangeBadRequest) IsCode

func (o *UserPasswordChangeBadRequest) IsCode(code int) bool

IsCode returns true when this user password change bad request response a status code equal to that given

func (*UserPasswordChangeBadRequest) IsRedirect

func (o *UserPasswordChangeBadRequest) IsRedirect() bool

IsRedirect returns true when this user password change bad request response has a 3xx status code

func (*UserPasswordChangeBadRequest) IsServerError

func (o *UserPasswordChangeBadRequest) IsServerError() bool

IsServerError returns true when this user password change bad request response has a 5xx status code

func (*UserPasswordChangeBadRequest) IsSuccess

func (o *UserPasswordChangeBadRequest) IsSuccess() bool

IsSuccess returns true when this user password change bad request response has a 2xx status code

func (*UserPasswordChangeBadRequest) String

type UserPasswordChangeForbidden

type UserPasswordChangeForbidden struct {
}

UserPasswordChangeForbidden describes a response with status code 403, with default header values.

forbidden

func NewUserPasswordChangeForbidden

func NewUserPasswordChangeForbidden() *UserPasswordChangeForbidden

NewUserPasswordChangeForbidden creates a UserPasswordChangeForbidden with default headers values

func (*UserPasswordChangeForbidden) Code

func (o *UserPasswordChangeForbidden) Code() int

Code gets the status code for the user password change forbidden response

func (*UserPasswordChangeForbidden) Error

func (*UserPasswordChangeForbidden) IsClientError

func (o *UserPasswordChangeForbidden) IsClientError() bool

IsClientError returns true when this user password change forbidden response has a 4xx status code

func (*UserPasswordChangeForbidden) IsCode

func (o *UserPasswordChangeForbidden) IsCode(code int) bool

IsCode returns true when this user password change forbidden response a status code equal to that given

func (*UserPasswordChangeForbidden) IsRedirect

func (o *UserPasswordChangeForbidden) IsRedirect() bool

IsRedirect returns true when this user password change forbidden response has a 3xx status code

func (*UserPasswordChangeForbidden) IsServerError

func (o *UserPasswordChangeForbidden) IsServerError() bool

IsServerError returns true when this user password change forbidden response has a 5xx status code

func (*UserPasswordChangeForbidden) IsSuccess

func (o *UserPasswordChangeForbidden) IsSuccess() bool

IsSuccess returns true when this user password change forbidden response has a 2xx status code

func (*UserPasswordChangeForbidden) String

func (o *UserPasswordChangeForbidden) String() string

type UserPasswordChangeInternalServerError

type UserPasswordChangeInternalServerError struct {
}

UserPasswordChangeInternalServerError describes a response with status code 500, with default header values.

internal error

func NewUserPasswordChangeInternalServerError

func NewUserPasswordChangeInternalServerError() *UserPasswordChangeInternalServerError

NewUserPasswordChangeInternalServerError creates a UserPasswordChangeInternalServerError with default headers values

func (*UserPasswordChangeInternalServerError) Code

Code gets the status code for the user password change internal server error response

func (*UserPasswordChangeInternalServerError) Error

func (*UserPasswordChangeInternalServerError) IsClientError

func (o *UserPasswordChangeInternalServerError) IsClientError() bool

IsClientError returns true when this user password change internal server error response has a 4xx status code

func (*UserPasswordChangeInternalServerError) IsCode

IsCode returns true when this user password change internal server error response a status code equal to that given

func (*UserPasswordChangeInternalServerError) IsRedirect

IsRedirect returns true when this user password change internal server error response has a 3xx status code

func (*UserPasswordChangeInternalServerError) IsServerError

func (o *UserPasswordChangeInternalServerError) IsServerError() bool

IsServerError returns true when this user password change internal server error response has a 5xx status code

func (*UserPasswordChangeInternalServerError) IsSuccess

IsSuccess returns true when this user password change internal server error response has a 2xx status code

func (*UserPasswordChangeInternalServerError) String

type UserPasswordChangeNotAcceptable

type UserPasswordChangeNotAcceptable struct {
}

UserPasswordChangeNotAcceptable describes a response with status code 406, with default header values.

not acceptable

func NewUserPasswordChangeNotAcceptable

func NewUserPasswordChangeNotAcceptable() *UserPasswordChangeNotAcceptable

NewUserPasswordChangeNotAcceptable creates a UserPasswordChangeNotAcceptable with default headers values

func (*UserPasswordChangeNotAcceptable) Code

Code gets the status code for the user password change not acceptable response

func (*UserPasswordChangeNotAcceptable) Error

func (*UserPasswordChangeNotAcceptable) IsClientError

func (o *UserPasswordChangeNotAcceptable) IsClientError() bool

IsClientError returns true when this user password change not acceptable response has a 4xx status code

func (*UserPasswordChangeNotAcceptable) IsCode

func (o *UserPasswordChangeNotAcceptable) IsCode(code int) bool

IsCode returns true when this user password change not acceptable response a status code equal to that given

func (*UserPasswordChangeNotAcceptable) IsRedirect

func (o *UserPasswordChangeNotAcceptable) IsRedirect() bool

IsRedirect returns true when this user password change not acceptable response has a 3xx status code

func (*UserPasswordChangeNotAcceptable) IsServerError

func (o *UserPasswordChangeNotAcceptable) IsServerError() bool

IsServerError returns true when this user password change not acceptable response has a 5xx status code

func (*UserPasswordChangeNotAcceptable) IsSuccess

func (o *UserPasswordChangeNotAcceptable) IsSuccess() bool

IsSuccess returns true when this user password change not acceptable response has a 2xx status code

func (*UserPasswordChangeNotAcceptable) String

type UserPasswordChangeOK

type UserPasswordChangeOK struct {
}

UserPasswordChangeOK describes a response with status code 200, with default header values.

Change successful

func NewUserPasswordChangeOK

func NewUserPasswordChangeOK() *UserPasswordChangeOK

NewUserPasswordChangeOK creates a UserPasswordChangeOK with default headers values

func (*UserPasswordChangeOK) Code

func (o *UserPasswordChangeOK) Code() int

Code gets the status code for the user password change o k response

func (*UserPasswordChangeOK) Error

func (o *UserPasswordChangeOK) Error() string

func (*UserPasswordChangeOK) IsClientError

func (o *UserPasswordChangeOK) IsClientError() bool

IsClientError returns true when this user password change o k response has a 4xx status code

func (*UserPasswordChangeOK) IsCode

func (o *UserPasswordChangeOK) IsCode(code int) bool

IsCode returns true when this user password change o k response a status code equal to that given

func (*UserPasswordChangeOK) IsRedirect

func (o *UserPasswordChangeOK) IsRedirect() bool

IsRedirect returns true when this user password change o k response has a 3xx status code

func (*UserPasswordChangeOK) IsServerError

func (o *UserPasswordChangeOK) IsServerError() bool

IsServerError returns true when this user password change o k response has a 5xx status code

func (*UserPasswordChangeOK) IsSuccess

func (o *UserPasswordChangeOK) IsSuccess() bool

IsSuccess returns true when this user password change o k response has a 2xx status code

func (*UserPasswordChangeOK) String

func (o *UserPasswordChangeOK) String() string

type UserPasswordChangeParams

type UserPasswordChangeParams struct {

	/* NewPassword.

	     Desired new password.
	If the password does not have high enough entropy, it will be rejected.
	See https://github.com/wagslane/go-password-validator
	*/
	NewPassword string

	/* OldPassword.

	   User's previous password.
	*/
	OldPassword string

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

UserPasswordChangeParams contains all the parameters to send to the API endpoint

for the user password change operation.

Typically these are written to a http.Request.

func NewUserPasswordChangeParams

func NewUserPasswordChangeParams() *UserPasswordChangeParams

NewUserPasswordChangeParams creates a new UserPasswordChangeParams 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 NewUserPasswordChangeParamsWithContext

func NewUserPasswordChangeParamsWithContext(ctx context.Context) *UserPasswordChangeParams

NewUserPasswordChangeParamsWithContext creates a new UserPasswordChangeParams object with the ability to set a context for a request.

func NewUserPasswordChangeParamsWithHTTPClient

func NewUserPasswordChangeParamsWithHTTPClient(client *http.Client) *UserPasswordChangeParams

NewUserPasswordChangeParamsWithHTTPClient creates a new UserPasswordChangeParams object with the ability to set a custom HTTPClient for a request.

func NewUserPasswordChangeParamsWithTimeout

func NewUserPasswordChangeParamsWithTimeout(timeout time.Duration) *UserPasswordChangeParams

NewUserPasswordChangeParamsWithTimeout creates a new UserPasswordChangeParams object with the ability to set a timeout on a request.

func (*UserPasswordChangeParams) SetContext

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

SetContext adds the context to the user password change params

func (*UserPasswordChangeParams) SetDefaults

func (o *UserPasswordChangeParams) SetDefaults()

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

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

func (*UserPasswordChangeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user password change params

func (*UserPasswordChangeParams) SetNewPassword

func (o *UserPasswordChangeParams) SetNewPassword(newPassword string)

SetNewPassword adds the newPassword to the user password change params

func (*UserPasswordChangeParams) SetOldPassword

func (o *UserPasswordChangeParams) SetOldPassword(oldPassword string)

SetOldPassword adds the oldPassword to the user password change params

func (*UserPasswordChangeParams) SetTimeout

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

SetTimeout adds the timeout to the user password change params

func (*UserPasswordChangeParams) WithContext

WithContext adds the context to the user password change params

func (*UserPasswordChangeParams) WithDefaults

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

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

func (*UserPasswordChangeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user password change params

func (*UserPasswordChangeParams) WithNewPassword

func (o *UserPasswordChangeParams) WithNewPassword(newPassword string) *UserPasswordChangeParams

WithNewPassword adds the newPassword to the user password change params

func (*UserPasswordChangeParams) WithOldPassword

func (o *UserPasswordChangeParams) WithOldPassword(oldPassword string) *UserPasswordChangeParams

WithOldPassword adds the oldPassword to the user password change params

func (*UserPasswordChangeParams) WithTimeout

WithTimeout adds the timeout to the user password change params

func (*UserPasswordChangeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UserPasswordChangeReader

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

UserPasswordChangeReader is a Reader for the UserPasswordChange structure.

func (*UserPasswordChangeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserPasswordChangeUnauthorized

type UserPasswordChangeUnauthorized struct {
}

UserPasswordChangeUnauthorized describes a response with status code 401, with default header values.

unauthorized

func NewUserPasswordChangeUnauthorized

func NewUserPasswordChangeUnauthorized() *UserPasswordChangeUnauthorized

NewUserPasswordChangeUnauthorized creates a UserPasswordChangeUnauthorized with default headers values

func (*UserPasswordChangeUnauthorized) Code

Code gets the status code for the user password change unauthorized response

func (*UserPasswordChangeUnauthorized) Error

func (*UserPasswordChangeUnauthorized) IsClientError

func (o *UserPasswordChangeUnauthorized) IsClientError() bool

IsClientError returns true when this user password change unauthorized response has a 4xx status code

func (*UserPasswordChangeUnauthorized) IsCode

func (o *UserPasswordChangeUnauthorized) IsCode(code int) bool

IsCode returns true when this user password change unauthorized response a status code equal to that given

func (*UserPasswordChangeUnauthorized) IsRedirect

func (o *UserPasswordChangeUnauthorized) IsRedirect() bool

IsRedirect returns true when this user password change unauthorized response has a 3xx status code

func (*UserPasswordChangeUnauthorized) IsServerError

func (o *UserPasswordChangeUnauthorized) IsServerError() bool

IsServerError returns true when this user password change unauthorized response has a 5xx status code

func (*UserPasswordChangeUnauthorized) IsSuccess

func (o *UserPasswordChangeUnauthorized) IsSuccess() bool

IsSuccess returns true when this user password change unauthorized response has a 2xx status code

func (*UserPasswordChangeUnauthorized) String

Jump to

Keyboard shortcuts

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