user

package
v0.0.0-...-6bd88e3 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: AGPL-3.0-or-later Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContentTypeApplicationJSON

func WithContentTypeApplicationJSON(r *runtime.ClientOperation)

WithContentTypeApplicationJSON sets the Content-Type header to "application/json".

func WithContentTypeApplicationXML

func WithContentTypeApplicationXML(r *runtime.ClientOperation)

WithContentTypeApplicationXML sets the Content-Type header to "application/xml".

func WithContentTypeApplicationxWwwFormUrlencoded

func WithContentTypeApplicationxWwwFormUrlencoded(r *runtime.ClientOperation)

WithContentTypeApplicationxWwwFormUrlencoded sets the Content-Type header to "application/x-www-form-urlencoded".

Types

type Client

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

Client for user API

func (*Client) GetUser

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

GetUser gets your own user model

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UserEmailChange

func (a *Client) UserEmailChange(params *UserEmailChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserEmailChangeAccepted, error)

UserEmailChange requests changing the email address of authenticated user

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 may be used to customize the behavior of Client methods.

func WithContentType

func WithContentType(mime string) ClientOption

WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.

You may use this option to set arbitrary extensions to your MIME media type.

type ClientService

type ClientService interface {
	GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOK, error)

	UserEmailChange(params *UserEmailChangeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserEmailChangeAccepted, error)

	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.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new user API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new user API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type GetUserBadRequest

type GetUserBadRequest struct {
}

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

bad request

func NewGetUserBadRequest

func NewGetUserBadRequest() *GetUserBadRequest

NewGetUserBadRequest creates a GetUserBadRequest with default headers values

func (*GetUserBadRequest) Code

func (o *GetUserBadRequest) Code() int

Code gets the status code for the get user bad request response

func (*GetUserBadRequest) Error

func (o *GetUserBadRequest) Error() string

func (*GetUserBadRequest) IsClientError

func (o *GetUserBadRequest) IsClientError() bool

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

func (*GetUserBadRequest) IsCode

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

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

func (*GetUserBadRequest) IsRedirect

func (o *GetUserBadRequest) IsRedirect() bool

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

func (*GetUserBadRequest) IsServerError

func (o *GetUserBadRequest) IsServerError() bool

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

func (*GetUserBadRequest) IsSuccess

func (o *GetUserBadRequest) IsSuccess() bool

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

func (*GetUserBadRequest) String

func (o *GetUserBadRequest) String() string

type GetUserForbidden

type GetUserForbidden struct {
}

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

forbidden

func NewGetUserForbidden

func NewGetUserForbidden() *GetUserForbidden

NewGetUserForbidden creates a GetUserForbidden with default headers values

func (*GetUserForbidden) Code

func (o *GetUserForbidden) Code() int

Code gets the status code for the get user forbidden response

func (*GetUserForbidden) Error

func (o *GetUserForbidden) Error() string

func (*GetUserForbidden) IsClientError

func (o *GetUserForbidden) IsClientError() bool

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

func (*GetUserForbidden) IsCode

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

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

func (*GetUserForbidden) IsRedirect

func (o *GetUserForbidden) IsRedirect() bool

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

func (*GetUserForbidden) IsServerError

func (o *GetUserForbidden) IsServerError() bool

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

func (*GetUserForbidden) IsSuccess

func (o *GetUserForbidden) IsSuccess() bool

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

func (*GetUserForbidden) String

func (o *GetUserForbidden) String() string

type GetUserInternalServerError

type GetUserInternalServerError struct {
}

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

internal error

func NewGetUserInternalServerError

func NewGetUserInternalServerError() *GetUserInternalServerError

NewGetUserInternalServerError creates a GetUserInternalServerError with default headers values

func (*GetUserInternalServerError) Code

func (o *GetUserInternalServerError) Code() int

Code gets the status code for the get user internal server error response

func (*GetUserInternalServerError) Error

func (*GetUserInternalServerError) IsClientError

func (o *GetUserInternalServerError) IsClientError() bool

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

func (*GetUserInternalServerError) IsCode

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

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

func (*GetUserInternalServerError) IsRedirect

func (o *GetUserInternalServerError) IsRedirect() bool

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

func (*GetUserInternalServerError) IsServerError

func (o *GetUserInternalServerError) IsServerError() bool

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

func (*GetUserInternalServerError) IsSuccess

func (o *GetUserInternalServerError) IsSuccess() bool

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

func (*GetUserInternalServerError) String

func (o *GetUserInternalServerError) String() string

type GetUserNotAcceptable

type GetUserNotAcceptable struct {
}

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

not acceptable

func NewGetUserNotAcceptable

func NewGetUserNotAcceptable() *GetUserNotAcceptable

NewGetUserNotAcceptable creates a GetUserNotAcceptable with default headers values

func (*GetUserNotAcceptable) Code

func (o *GetUserNotAcceptable) Code() int

Code gets the status code for the get user not acceptable response

func (*GetUserNotAcceptable) Error

func (o *GetUserNotAcceptable) Error() string

func (*GetUserNotAcceptable) IsClientError

func (o *GetUserNotAcceptable) IsClientError() bool

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

func (*GetUserNotAcceptable) IsCode

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

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

func (*GetUserNotAcceptable) IsRedirect

func (o *GetUserNotAcceptable) IsRedirect() bool

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

func (*GetUserNotAcceptable) IsServerError

func (o *GetUserNotAcceptable) IsServerError() bool

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

func (*GetUserNotAcceptable) IsSuccess

func (o *GetUserNotAcceptable) IsSuccess() bool

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

func (*GetUserNotAcceptable) String

func (o *GetUserNotAcceptable) String() string

type GetUserOK

type GetUserOK struct {
	Payload *models.User
}

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

The requested user.

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Code

func (o *GetUserOK) Code() int

Code gets the status code for the get user o k response

func (*GetUserOK) Error

func (o *GetUserOK) Error() string

func (*GetUserOK) GetPayload

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

func (*GetUserOK) IsClientError

func (o *GetUserOK) IsClientError() bool

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

func (*GetUserOK) IsCode

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

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

func (*GetUserOK) IsRedirect

func (o *GetUserOK) IsRedirect() bool

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

func (*GetUserOK) IsServerError

func (o *GetUserOK) IsServerError() bool

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

func (*GetUserOK) IsSuccess

func (o *GetUserOK) IsSuccess() bool

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

func (*GetUserOK) String

func (o *GetUserOK) String() string

type GetUserParams

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

GetUserParams contains all the parameters to send to the API endpoint

for the get user operation.

Typically these are written to a http.Request.

func NewGetUserParams

func NewGetUserParams() *GetUserParams

NewGetUserParams creates a new GetUserParams object, with the default 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 NewGetUserParamsWithContext

func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams

NewGetUserParamsWithContext creates a new GetUserParams object with the ability to set a context for a request.

func NewGetUserParamsWithHTTPClient

func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams

NewGetUserParamsWithHTTPClient creates a new GetUserParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserParamsWithTimeout

func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams

NewGetUserParamsWithTimeout creates a new GetUserParams object with the ability to set a timeout on a request.

func (*GetUserParams) SetContext

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

SetContext adds the context to the get user params

func (*GetUserParams) SetDefaults

func (o *GetUserParams) SetDefaults()

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

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

func (*GetUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) SetTimeout

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

SetTimeout adds the timeout to the get user params

func (*GetUserParams) WithContext

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

WithContext adds the context to the get user params

func (*GetUserParams) WithDefaults

func (o *GetUserParams) WithDefaults() *GetUserParams

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

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

func (*GetUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) WithTimeout

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

WithTimeout adds the timeout to the get user params

func (*GetUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserReader

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

GetUserReader is a Reader for the GetUser structure.

func (*GetUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUserUnauthorized

type GetUserUnauthorized struct {
}

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

unauthorized

func NewGetUserUnauthorized

func NewGetUserUnauthorized() *GetUserUnauthorized

NewGetUserUnauthorized creates a GetUserUnauthorized with default headers values

func (*GetUserUnauthorized) Code

func (o *GetUserUnauthorized) Code() int

Code gets the status code for the get user unauthorized response

func (*GetUserUnauthorized) Error

func (o *GetUserUnauthorized) Error() string

func (*GetUserUnauthorized) IsClientError

func (o *GetUserUnauthorized) IsClientError() bool

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

func (*GetUserUnauthorized) IsCode

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

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

func (*GetUserUnauthorized) IsRedirect

func (o *GetUserUnauthorized) IsRedirect() bool

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

func (*GetUserUnauthorized) IsServerError

func (o *GetUserUnauthorized) IsServerError() bool

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

func (*GetUserUnauthorized) IsSuccess

func (o *GetUserUnauthorized) IsSuccess() bool

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

func (*GetUserUnauthorized) String

func (o *GetUserUnauthorized) String() string

type UserEmailChangeAccepted

type UserEmailChangeAccepted struct {
	Payload *models.User
}

UserEmailChangeAccepted describes a response with status code 202, with default header values.

Accepted: email change is processing; check your inbox to confirm new address.

func NewUserEmailChangeAccepted

func NewUserEmailChangeAccepted() *UserEmailChangeAccepted

NewUserEmailChangeAccepted creates a UserEmailChangeAccepted with default headers values

func (*UserEmailChangeAccepted) Code

func (o *UserEmailChangeAccepted) Code() int

Code gets the status code for the user email change accepted response

func (*UserEmailChangeAccepted) Error

func (o *UserEmailChangeAccepted) Error() string

func (*UserEmailChangeAccepted) GetPayload

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

func (*UserEmailChangeAccepted) IsClientError

func (o *UserEmailChangeAccepted) IsClientError() bool

IsClientError returns true when this user email change accepted response has a 4xx status code

func (*UserEmailChangeAccepted) IsCode

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

IsCode returns true when this user email change accepted response a status code equal to that given

func (*UserEmailChangeAccepted) IsRedirect

func (o *UserEmailChangeAccepted) IsRedirect() bool

IsRedirect returns true when this user email change accepted response has a 3xx status code

func (*UserEmailChangeAccepted) IsServerError

func (o *UserEmailChangeAccepted) IsServerError() bool

IsServerError returns true when this user email change accepted response has a 5xx status code

func (*UserEmailChangeAccepted) IsSuccess

func (o *UserEmailChangeAccepted) IsSuccess() bool

IsSuccess returns true when this user email change accepted response has a 2xx status code

func (*UserEmailChangeAccepted) String

func (o *UserEmailChangeAccepted) String() string

type UserEmailChangeBadRequest

type UserEmailChangeBadRequest struct {
}

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

bad request

func NewUserEmailChangeBadRequest

func NewUserEmailChangeBadRequest() *UserEmailChangeBadRequest

NewUserEmailChangeBadRequest creates a UserEmailChangeBadRequest with default headers values

func (*UserEmailChangeBadRequest) Code

func (o *UserEmailChangeBadRequest) Code() int

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

func (*UserEmailChangeBadRequest) Error

func (o *UserEmailChangeBadRequest) Error() string

func (*UserEmailChangeBadRequest) IsClientError

func (o *UserEmailChangeBadRequest) IsClientError() bool

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

func (*UserEmailChangeBadRequest) IsCode

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

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

func (*UserEmailChangeBadRequest) IsRedirect

func (o *UserEmailChangeBadRequest) IsRedirect() bool

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

func (*UserEmailChangeBadRequest) IsServerError

func (o *UserEmailChangeBadRequest) IsServerError() bool

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

func (*UserEmailChangeBadRequest) IsSuccess

func (o *UserEmailChangeBadRequest) IsSuccess() bool

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

func (*UserEmailChangeBadRequest) String

func (o *UserEmailChangeBadRequest) String() string

type UserEmailChangeConflict

type UserEmailChangeConflict struct {
}

UserEmailChangeConflict describes a response with status code 409, with default header values.

Conflict: desired email address already in use

func NewUserEmailChangeConflict

func NewUserEmailChangeConflict() *UserEmailChangeConflict

NewUserEmailChangeConflict creates a UserEmailChangeConflict with default headers values

func (*UserEmailChangeConflict) Code

func (o *UserEmailChangeConflict) Code() int

Code gets the status code for the user email change conflict response

func (*UserEmailChangeConflict) Error

func (o *UserEmailChangeConflict) Error() string

func (*UserEmailChangeConflict) IsClientError

func (o *UserEmailChangeConflict) IsClientError() bool

IsClientError returns true when this user email change conflict response has a 4xx status code

func (*UserEmailChangeConflict) IsCode

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

IsCode returns true when this user email change conflict response a status code equal to that given

func (*UserEmailChangeConflict) IsRedirect

func (o *UserEmailChangeConflict) IsRedirect() bool

IsRedirect returns true when this user email change conflict response has a 3xx status code

func (*UserEmailChangeConflict) IsServerError

func (o *UserEmailChangeConflict) IsServerError() bool

IsServerError returns true when this user email change conflict response has a 5xx status code

func (*UserEmailChangeConflict) IsSuccess

func (o *UserEmailChangeConflict) IsSuccess() bool

IsSuccess returns true when this user email change conflict response has a 2xx status code

func (*UserEmailChangeConflict) String

func (o *UserEmailChangeConflict) String() string

type UserEmailChangeForbidden

type UserEmailChangeForbidden struct {
}

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

forbidden

func NewUserEmailChangeForbidden

func NewUserEmailChangeForbidden() *UserEmailChangeForbidden

NewUserEmailChangeForbidden creates a UserEmailChangeForbidden with default headers values

func (*UserEmailChangeForbidden) Code

func (o *UserEmailChangeForbidden) Code() int

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

func (*UserEmailChangeForbidden) Error

func (o *UserEmailChangeForbidden) Error() string

func (*UserEmailChangeForbidden) IsClientError

func (o *UserEmailChangeForbidden) IsClientError() bool

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

func (*UserEmailChangeForbidden) IsCode

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

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

func (*UserEmailChangeForbidden) IsRedirect

func (o *UserEmailChangeForbidden) IsRedirect() bool

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

func (*UserEmailChangeForbidden) IsServerError

func (o *UserEmailChangeForbidden) IsServerError() bool

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

func (*UserEmailChangeForbidden) IsSuccess

func (o *UserEmailChangeForbidden) IsSuccess() bool

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

func (*UserEmailChangeForbidden) String

func (o *UserEmailChangeForbidden) String() string

type UserEmailChangeInternalServerError

type UserEmailChangeInternalServerError struct {
}

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

internal error

func NewUserEmailChangeInternalServerError

func NewUserEmailChangeInternalServerError() *UserEmailChangeInternalServerError

NewUserEmailChangeInternalServerError creates a UserEmailChangeInternalServerError with default headers values

func (*UserEmailChangeInternalServerError) Code

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

func (*UserEmailChangeInternalServerError) Error

func (*UserEmailChangeInternalServerError) IsClientError

func (o *UserEmailChangeInternalServerError) IsClientError() bool

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

func (*UserEmailChangeInternalServerError) IsCode

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

func (*UserEmailChangeInternalServerError) IsRedirect

func (o *UserEmailChangeInternalServerError) IsRedirect() bool

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

func (*UserEmailChangeInternalServerError) IsServerError

func (o *UserEmailChangeInternalServerError) IsServerError() bool

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

func (*UserEmailChangeInternalServerError) IsSuccess

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

func (*UserEmailChangeInternalServerError) String

type UserEmailChangeNotAcceptable

type UserEmailChangeNotAcceptable struct {
}

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

not acceptable

func NewUserEmailChangeNotAcceptable

func NewUserEmailChangeNotAcceptable() *UserEmailChangeNotAcceptable

NewUserEmailChangeNotAcceptable creates a UserEmailChangeNotAcceptable with default headers values

func (*UserEmailChangeNotAcceptable) Code

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

func (*UserEmailChangeNotAcceptable) Error

func (*UserEmailChangeNotAcceptable) IsClientError

func (o *UserEmailChangeNotAcceptable) IsClientError() bool

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

func (*UserEmailChangeNotAcceptable) IsCode

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

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

func (*UserEmailChangeNotAcceptable) IsRedirect

func (o *UserEmailChangeNotAcceptable) IsRedirect() bool

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

func (*UserEmailChangeNotAcceptable) IsServerError

func (o *UserEmailChangeNotAcceptable) IsServerError() bool

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

func (*UserEmailChangeNotAcceptable) IsSuccess

func (o *UserEmailChangeNotAcceptable) IsSuccess() bool

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

func (*UserEmailChangeNotAcceptable) String

type UserEmailChangeParams

type UserEmailChangeParams struct {

	/* NewEmail.

	   Desired new email address.
	*/
	NewEmail string

	/* Password.

	   User's current password, for verification.
	*/
	Password string

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

UserEmailChangeParams contains all the parameters to send to the API endpoint

for the user email change operation.

Typically these are written to a http.Request.

func NewUserEmailChangeParams

func NewUserEmailChangeParams() *UserEmailChangeParams

NewUserEmailChangeParams creates a new UserEmailChangeParams 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 NewUserEmailChangeParamsWithContext

func NewUserEmailChangeParamsWithContext(ctx context.Context) *UserEmailChangeParams

NewUserEmailChangeParamsWithContext creates a new UserEmailChangeParams object with the ability to set a context for a request.

func NewUserEmailChangeParamsWithHTTPClient

func NewUserEmailChangeParamsWithHTTPClient(client *http.Client) *UserEmailChangeParams

NewUserEmailChangeParamsWithHTTPClient creates a new UserEmailChangeParams object with the ability to set a custom HTTPClient for a request.

func NewUserEmailChangeParamsWithTimeout

func NewUserEmailChangeParamsWithTimeout(timeout time.Duration) *UserEmailChangeParams

NewUserEmailChangeParamsWithTimeout creates a new UserEmailChangeParams object with the ability to set a timeout on a request.

func (*UserEmailChangeParams) SetContext

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

SetContext adds the context to the user email change params

func (*UserEmailChangeParams) SetDefaults

func (o *UserEmailChangeParams) SetDefaults()

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

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

func (*UserEmailChangeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the user email change params

func (*UserEmailChangeParams) SetNewEmail

func (o *UserEmailChangeParams) SetNewEmail(newEmail string)

SetNewEmail adds the newEmail to the user email change params

func (*UserEmailChangeParams) SetPassword

func (o *UserEmailChangeParams) SetPassword(password string)

SetPassword adds the password to the user email change params

func (*UserEmailChangeParams) SetTimeout

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

SetTimeout adds the timeout to the user email change params

func (*UserEmailChangeParams) WithContext

WithContext adds the context to the user email change params

func (*UserEmailChangeParams) WithDefaults

func (o *UserEmailChangeParams) WithDefaults() *UserEmailChangeParams

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

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

func (*UserEmailChangeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the user email change params

func (*UserEmailChangeParams) WithNewEmail

func (o *UserEmailChangeParams) WithNewEmail(newEmail string) *UserEmailChangeParams

WithNewEmail adds the newEmail to the user email change params

func (*UserEmailChangeParams) WithPassword

func (o *UserEmailChangeParams) WithPassword(password string) *UserEmailChangeParams

WithPassword adds the password to the user email change params

func (*UserEmailChangeParams) WithTimeout

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

WithTimeout adds the timeout to the user email change params

func (*UserEmailChangeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UserEmailChangeReader

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

UserEmailChangeReader is a Reader for the UserEmailChange structure.

func (*UserEmailChangeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UserEmailChangeUnauthorized

type UserEmailChangeUnauthorized struct {
}

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

unauthorized

func NewUserEmailChangeUnauthorized

func NewUserEmailChangeUnauthorized() *UserEmailChangeUnauthorized

NewUserEmailChangeUnauthorized creates a UserEmailChangeUnauthorized with default headers values

func (*UserEmailChangeUnauthorized) Code

func (o *UserEmailChangeUnauthorized) Code() int

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

func (*UserEmailChangeUnauthorized) Error

func (*UserEmailChangeUnauthorized) IsClientError

func (o *UserEmailChangeUnauthorized) IsClientError() bool

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

func (*UserEmailChangeUnauthorized) IsCode

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

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

func (*UserEmailChangeUnauthorized) IsRedirect

func (o *UserEmailChangeUnauthorized) IsRedirect() bool

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

func (*UserEmailChangeUnauthorized) IsServerError

func (o *UserEmailChangeUnauthorized) IsServerError() bool

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

func (*UserEmailChangeUnauthorized) IsSuccess

func (o *UserEmailChangeUnauthorized) IsSuccess() bool

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

func (*UserEmailChangeUnauthorized) String

func (o *UserEmailChangeUnauthorized) String() string

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

type UserPasswordChangeUnprocessableEntity

type UserPasswordChangeUnprocessableEntity struct {
}

UserPasswordChangeUnprocessableEntity describes a response with status code 422, with default header values.

unprocessable request because instance is running with OIDC backend

func NewUserPasswordChangeUnprocessableEntity

func NewUserPasswordChangeUnprocessableEntity() *UserPasswordChangeUnprocessableEntity

NewUserPasswordChangeUnprocessableEntity creates a UserPasswordChangeUnprocessableEntity with default headers values

func (*UserPasswordChangeUnprocessableEntity) Code

Code gets the status code for the user password change unprocessable entity response

func (*UserPasswordChangeUnprocessableEntity) Error

func (*UserPasswordChangeUnprocessableEntity) IsClientError

func (o *UserPasswordChangeUnprocessableEntity) IsClientError() bool

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

func (*UserPasswordChangeUnprocessableEntity) IsCode

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

func (*UserPasswordChangeUnprocessableEntity) IsRedirect

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

func (*UserPasswordChangeUnprocessableEntity) IsServerError

func (o *UserPasswordChangeUnprocessableEntity) IsServerError() bool

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

func (*UserPasswordChangeUnprocessableEntity) IsSuccess

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

func (*UserPasswordChangeUnprocessableEntity) String

Jump to

Keyboard shortcuts

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