user

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 12 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 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) GetUserByUsername

func (a *Client) GetUserByUsername(params *GetUserByUsernameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserByUsernameOK, error)

GetUserByUsername gets user s info

func (*Client) GetUserMe

func (a *Client) GetUserMe(params *GetUserMeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserMeOK, error)

GetUserMe gets user s info

func (*Client) GetUserOrgUsernames

func (a *Client) GetUserOrgUsernames(params *GetUserOrgUsernamesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOrgUsernamesOK, error)

GetUserOrgUsernames gets user s organization usernames

func (*Client) PatchUserProfile

func (a *Client) PatchUserProfile(params *PatchUserProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchUserProfileOK, error)

PatchUserProfile updates user s profile

func (*Client) SetTransport

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

SetTransport changes the transport on the client

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 {
	GetUserByUsername(params *GetUserByUsernameParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserByUsernameOK, error)

	GetUserMe(params *GetUserMeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserMeOK, error)

	GetUserOrgUsernames(params *GetUserOrgUsernamesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserOrgUsernamesOK, error)

	PatchUserProfile(params *PatchUserProfileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchUserProfileOK, 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 GetUserByUsernameBadRequest

type GetUserByUsernameBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewGetUserByUsernameBadRequest

func NewGetUserByUsernameBadRequest() *GetUserByUsernameBadRequest

NewGetUserByUsernameBadRequest creates a GetUserByUsernameBadRequest with default headers values

func (*GetUserByUsernameBadRequest) Code

func (o *GetUserByUsernameBadRequest) Code() int

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

func (*GetUserByUsernameBadRequest) Error

func (*GetUserByUsernameBadRequest) GetPayload

func (*GetUserByUsernameBadRequest) IsClientError

func (o *GetUserByUsernameBadRequest) IsClientError() bool

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

func (*GetUserByUsernameBadRequest) IsCode

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

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

func (*GetUserByUsernameBadRequest) IsRedirect

func (o *GetUserByUsernameBadRequest) IsRedirect() bool

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

func (*GetUserByUsernameBadRequest) IsServerError

func (o *GetUserByUsernameBadRequest) IsServerError() bool

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

func (*GetUserByUsernameBadRequest) IsSuccess

func (o *GetUserByUsernameBadRequest) IsSuccess() bool

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

func (*GetUserByUsernameBadRequest) String

func (o *GetUserByUsernameBadRequest) String() string

type GetUserByUsernameInternalServerError

type GetUserByUsernameInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewGetUserByUsernameInternalServerError

func NewGetUserByUsernameInternalServerError() *GetUserByUsernameInternalServerError

NewGetUserByUsernameInternalServerError creates a GetUserByUsernameInternalServerError with default headers values

func (*GetUserByUsernameInternalServerError) Code

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

func (*GetUserByUsernameInternalServerError) Error

func (*GetUserByUsernameInternalServerError) GetPayload

func (*GetUserByUsernameInternalServerError) IsClientError

func (o *GetUserByUsernameInternalServerError) IsClientError() bool

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

func (*GetUserByUsernameInternalServerError) IsCode

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

func (*GetUserByUsernameInternalServerError) IsRedirect

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

func (*GetUserByUsernameInternalServerError) IsServerError

func (o *GetUserByUsernameInternalServerError) IsServerError() bool

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

func (*GetUserByUsernameInternalServerError) IsSuccess

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

func (*GetUserByUsernameInternalServerError) String

type GetUserByUsernameOK

type GetUserByUsernameOK struct {
	Payload *models.ResponseGetUserByUsernameAndGuestIDResponse
}

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

OK

func NewGetUserByUsernameOK

func NewGetUserByUsernameOK() *GetUserByUsernameOK

NewGetUserByUsernameOK creates a GetUserByUsernameOK with default headers values

func (*GetUserByUsernameOK) Code

func (o *GetUserByUsernameOK) Code() int

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

func (*GetUserByUsernameOK) Error

func (o *GetUserByUsernameOK) Error() string

func (*GetUserByUsernameOK) GetPayload

func (*GetUserByUsernameOK) IsClientError

func (o *GetUserByUsernameOK) IsClientError() bool

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

func (*GetUserByUsernameOK) IsCode

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

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

func (*GetUserByUsernameOK) IsRedirect

func (o *GetUserByUsernameOK) IsRedirect() bool

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

func (*GetUserByUsernameOK) IsServerError

func (o *GetUserByUsernameOK) IsServerError() bool

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

func (*GetUserByUsernameOK) IsSuccess

func (o *GetUserByUsernameOK) IsSuccess() bool

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

func (*GetUserByUsernameOK) String

func (o *GetUserByUsernameOK) String() string

type GetUserByUsernameParams

type GetUserByUsernameParams struct {

	/* Username.

	   username
	*/
	Username string

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

GetUserByUsernameParams contains all the parameters to send to the API endpoint

for the get user by username operation.

Typically these are written to a http.Request.

func NewGetUserByUsernameParams

func NewGetUserByUsernameParams() *GetUserByUsernameParams

NewGetUserByUsernameParams creates a new GetUserByUsernameParams object, with the default timeout for this client.

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

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

func NewGetUserByUsernameParamsWithContext

func NewGetUserByUsernameParamsWithContext(ctx context.Context) *GetUserByUsernameParams

NewGetUserByUsernameParamsWithContext creates a new GetUserByUsernameParams object with the ability to set a context for a request.

func NewGetUserByUsernameParamsWithHTTPClient

func NewGetUserByUsernameParamsWithHTTPClient(client *http.Client) *GetUserByUsernameParams

NewGetUserByUsernameParamsWithHTTPClient creates a new GetUserByUsernameParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserByUsernameParamsWithTimeout

func NewGetUserByUsernameParamsWithTimeout(timeout time.Duration) *GetUserByUsernameParams

NewGetUserByUsernameParamsWithTimeout creates a new GetUserByUsernameParams object with the ability to set a timeout on a request.

func (*GetUserByUsernameParams) SetContext

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

SetContext adds the context to the get user by username params

func (*GetUserByUsernameParams) SetDefaults

func (o *GetUserByUsernameParams) SetDefaults()

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

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

func (*GetUserByUsernameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user by username params

func (*GetUserByUsernameParams) SetTimeout

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

SetTimeout adds the timeout to the get user by username params

func (*GetUserByUsernameParams) SetUsername

func (o *GetUserByUsernameParams) SetUsername(username string)

SetUsername adds the username to the get user by username params

func (*GetUserByUsernameParams) WithContext

WithContext adds the context to the get user by username params

func (*GetUserByUsernameParams) WithDefaults

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

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

func (*GetUserByUsernameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user by username params

func (*GetUserByUsernameParams) WithTimeout

WithTimeout adds the timeout to the get user by username params

func (*GetUserByUsernameParams) WithUsername

func (o *GetUserByUsernameParams) WithUsername(username string) *GetUserByUsernameParams

WithUsername adds the username to the get user by username params

func (*GetUserByUsernameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserByUsernameReader

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

GetUserByUsernameReader is a Reader for the GetUserByUsername structure.

func (*GetUserByUsernameReader) ReadResponse

func (o *GetUserByUsernameReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetUserMeBadRequest

type GetUserMeBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewGetUserMeBadRequest

func NewGetUserMeBadRequest() *GetUserMeBadRequest

NewGetUserMeBadRequest creates a GetUserMeBadRequest with default headers values

func (*GetUserMeBadRequest) Code

func (o *GetUserMeBadRequest) Code() int

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

func (*GetUserMeBadRequest) Error

func (o *GetUserMeBadRequest) Error() string

func (*GetUserMeBadRequest) GetPayload

func (*GetUserMeBadRequest) IsClientError

func (o *GetUserMeBadRequest) IsClientError() bool

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

func (*GetUserMeBadRequest) IsCode

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

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

func (*GetUserMeBadRequest) IsRedirect

func (o *GetUserMeBadRequest) IsRedirect() bool

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

func (*GetUserMeBadRequest) IsServerError

func (o *GetUserMeBadRequest) IsServerError() bool

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

func (*GetUserMeBadRequest) IsSuccess

func (o *GetUserMeBadRequest) IsSuccess() bool

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

func (*GetUserMeBadRequest) String

func (o *GetUserMeBadRequest) String() string

type GetUserMeInternalServerError

type GetUserMeInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewGetUserMeInternalServerError

func NewGetUserMeInternalServerError() *GetUserMeInternalServerError

NewGetUserMeInternalServerError creates a GetUserMeInternalServerError with default headers values

func (*GetUserMeInternalServerError) Code

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

func (*GetUserMeInternalServerError) Error

func (*GetUserMeInternalServerError) GetPayload

func (*GetUserMeInternalServerError) IsClientError

func (o *GetUserMeInternalServerError) IsClientError() bool

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

func (*GetUserMeInternalServerError) IsCode

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

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

func (*GetUserMeInternalServerError) IsRedirect

func (o *GetUserMeInternalServerError) IsRedirect() bool

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

func (*GetUserMeInternalServerError) IsServerError

func (o *GetUserMeInternalServerError) IsServerError() bool

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

func (*GetUserMeInternalServerError) IsSuccess

func (o *GetUserMeInternalServerError) IsSuccess() bool

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

func (*GetUserMeInternalServerError) String

type GetUserMeOK

type GetUserMeOK struct {
	Payload *models.ResponseGetMeResponse
}

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

OK

func NewGetUserMeOK

func NewGetUserMeOK() *GetUserMeOK

NewGetUserMeOK creates a GetUserMeOK with default headers values

func (*GetUserMeOK) Code

func (o *GetUserMeOK) Code() int

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

func (*GetUserMeOK) Error

func (o *GetUserMeOK) Error() string

func (*GetUserMeOK) GetPayload

func (o *GetUserMeOK) GetPayload() *models.ResponseGetMeResponse

func (*GetUserMeOK) IsClientError

func (o *GetUserMeOK) IsClientError() bool

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

func (*GetUserMeOK) IsCode

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

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

func (*GetUserMeOK) IsRedirect

func (o *GetUserMeOK) IsRedirect() bool

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

func (*GetUserMeOK) IsServerError

func (o *GetUserMeOK) IsServerError() bool

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

func (*GetUserMeOK) IsSuccess

func (o *GetUserMeOK) IsSuccess() bool

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

func (*GetUserMeOK) String

func (o *GetUserMeOK) String() string

type GetUserMeParams

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

GetUserMeParams contains all the parameters to send to the API endpoint

for the get user me operation.

Typically these are written to a http.Request.

func NewGetUserMeParams

func NewGetUserMeParams() *GetUserMeParams

NewGetUserMeParams creates a new GetUserMeParams 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 NewGetUserMeParamsWithContext

func NewGetUserMeParamsWithContext(ctx context.Context) *GetUserMeParams

NewGetUserMeParamsWithContext creates a new GetUserMeParams object with the ability to set a context for a request.

func NewGetUserMeParamsWithHTTPClient

func NewGetUserMeParamsWithHTTPClient(client *http.Client) *GetUserMeParams

NewGetUserMeParamsWithHTTPClient creates a new GetUserMeParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserMeParamsWithTimeout

func NewGetUserMeParamsWithTimeout(timeout time.Duration) *GetUserMeParams

NewGetUserMeParamsWithTimeout creates a new GetUserMeParams object with the ability to set a timeout on a request.

func (*GetUserMeParams) SetContext

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

SetContext adds the context to the get user me params

func (*GetUserMeParams) SetDefaults

func (o *GetUserMeParams) SetDefaults()

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

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

func (*GetUserMeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user me params

func (*GetUserMeParams) SetTimeout

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

SetTimeout adds the timeout to the get user me params

func (*GetUserMeParams) WithContext

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

WithContext adds the context to the get user me params

func (*GetUserMeParams) WithDefaults

func (o *GetUserMeParams) WithDefaults() *GetUserMeParams

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

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

func (*GetUserMeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user me params

func (*GetUserMeParams) WithTimeout

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

WithTimeout adds the timeout to the get user me params

func (*GetUserMeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUserMeReader

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

GetUserMeReader is a Reader for the GetUserMe structure.

func (*GetUserMeReader) ReadResponse

func (o *GetUserMeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type GetUserOrgUsernamesBadRequest

type GetUserOrgUsernamesBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewGetUserOrgUsernamesBadRequest

func NewGetUserOrgUsernamesBadRequest() *GetUserOrgUsernamesBadRequest

NewGetUserOrgUsernamesBadRequest creates a GetUserOrgUsernamesBadRequest with default headers values

func (*GetUserOrgUsernamesBadRequest) Code

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

func (*GetUserOrgUsernamesBadRequest) Error

func (*GetUserOrgUsernamesBadRequest) GetPayload

func (*GetUserOrgUsernamesBadRequest) IsClientError

func (o *GetUserOrgUsernamesBadRequest) IsClientError() bool

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

func (*GetUserOrgUsernamesBadRequest) IsCode

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

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

func (*GetUserOrgUsernamesBadRequest) IsRedirect

func (o *GetUserOrgUsernamesBadRequest) IsRedirect() bool

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

func (*GetUserOrgUsernamesBadRequest) IsServerError

func (o *GetUserOrgUsernamesBadRequest) IsServerError() bool

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

func (*GetUserOrgUsernamesBadRequest) IsSuccess

func (o *GetUserOrgUsernamesBadRequest) IsSuccess() bool

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

func (*GetUserOrgUsernamesBadRequest) String

type GetUserOrgUsernamesInternalServerError

type GetUserOrgUsernamesInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewGetUserOrgUsernamesInternalServerError

func NewGetUserOrgUsernamesInternalServerError() *GetUserOrgUsernamesInternalServerError

NewGetUserOrgUsernamesInternalServerError creates a GetUserOrgUsernamesInternalServerError with default headers values

func (*GetUserOrgUsernamesInternalServerError) Code

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

func (*GetUserOrgUsernamesInternalServerError) Error

func (*GetUserOrgUsernamesInternalServerError) GetPayload

func (*GetUserOrgUsernamesInternalServerError) IsClientError

func (o *GetUserOrgUsernamesInternalServerError) IsClientError() bool

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

func (*GetUserOrgUsernamesInternalServerError) IsCode

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

func (*GetUserOrgUsernamesInternalServerError) IsRedirect

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

func (*GetUserOrgUsernamesInternalServerError) IsServerError

func (o *GetUserOrgUsernamesInternalServerError) IsServerError() bool

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

func (*GetUserOrgUsernamesInternalServerError) IsSuccess

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

func (*GetUserOrgUsernamesInternalServerError) String

type GetUserOrgUsernamesOK

type GetUserOrgUsernamesOK struct {
	Payload *models.ResponseGetUserOrganizationUsernamesResponse
}

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

OK

func NewGetUserOrgUsernamesOK

func NewGetUserOrgUsernamesOK() *GetUserOrgUsernamesOK

NewGetUserOrgUsernamesOK creates a GetUserOrgUsernamesOK with default headers values

func (*GetUserOrgUsernamesOK) Code

func (o *GetUserOrgUsernamesOK) Code() int

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

func (*GetUserOrgUsernamesOK) Error

func (o *GetUserOrgUsernamesOK) Error() string

func (*GetUserOrgUsernamesOK) GetPayload

func (*GetUserOrgUsernamesOK) IsClientError

func (o *GetUserOrgUsernamesOK) IsClientError() bool

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

func (*GetUserOrgUsernamesOK) IsCode

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

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

func (*GetUserOrgUsernamesOK) IsRedirect

func (o *GetUserOrgUsernamesOK) IsRedirect() bool

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

func (*GetUserOrgUsernamesOK) IsServerError

func (o *GetUserOrgUsernamesOK) IsServerError() bool

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

func (*GetUserOrgUsernamesOK) IsSuccess

func (o *GetUserOrgUsernamesOK) IsSuccess() bool

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

func (*GetUserOrgUsernamesOK) String

func (o *GetUserOrgUsernamesOK) String() string

type GetUserOrgUsernamesParams

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

GetUserOrgUsernamesParams contains all the parameters to send to the API endpoint

for the get user org usernames operation.

Typically these are written to a http.Request.

func NewGetUserOrgUsernamesParams

func NewGetUserOrgUsernamesParams() *GetUserOrgUsernamesParams

NewGetUserOrgUsernamesParams creates a new GetUserOrgUsernamesParams 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 NewGetUserOrgUsernamesParamsWithContext

func NewGetUserOrgUsernamesParamsWithContext(ctx context.Context) *GetUserOrgUsernamesParams

NewGetUserOrgUsernamesParamsWithContext creates a new GetUserOrgUsernamesParams object with the ability to set a context for a request.

func NewGetUserOrgUsernamesParamsWithHTTPClient

func NewGetUserOrgUsernamesParamsWithHTTPClient(client *http.Client) *GetUserOrgUsernamesParams

NewGetUserOrgUsernamesParamsWithHTTPClient creates a new GetUserOrgUsernamesParams object with the ability to set a custom HTTPClient for a request.

func NewGetUserOrgUsernamesParamsWithTimeout

func NewGetUserOrgUsernamesParamsWithTimeout(timeout time.Duration) *GetUserOrgUsernamesParams

NewGetUserOrgUsernamesParamsWithTimeout creates a new GetUserOrgUsernamesParams object with the ability to set a timeout on a request.

func (*GetUserOrgUsernamesParams) SetContext

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

SetContext adds the context to the get user org usernames params

func (*GetUserOrgUsernamesParams) SetDefaults

func (o *GetUserOrgUsernamesParams) SetDefaults()

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

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

func (*GetUserOrgUsernamesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user org usernames params

func (*GetUserOrgUsernamesParams) SetTimeout

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

SetTimeout adds the timeout to the get user org usernames params

func (*GetUserOrgUsernamesParams) WithContext

WithContext adds the context to the get user org usernames params

func (*GetUserOrgUsernamesParams) WithDefaults

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

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

func (*GetUserOrgUsernamesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user org usernames params

func (*GetUserOrgUsernamesParams) WithTimeout

WithTimeout adds the timeout to the get user org usernames params

func (*GetUserOrgUsernamesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetUserOrgUsernamesReader

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

GetUserOrgUsernamesReader is a Reader for the GetUserOrgUsernames structure.

func (*GetUserOrgUsernamesReader) ReadResponse

func (o *GetUserOrgUsernamesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)

ReadResponse reads a server response into the received o.

type PatchUserProfileBadRequest

type PatchUserProfileBadRequest struct {
	Payload *models.ResponseFailResponse
}

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

Bad Request

func NewPatchUserProfileBadRequest

func NewPatchUserProfileBadRequest() *PatchUserProfileBadRequest

NewPatchUserProfileBadRequest creates a PatchUserProfileBadRequest with default headers values

func (*PatchUserProfileBadRequest) Code

func (o *PatchUserProfileBadRequest) Code() int

Code gets the status code for the patch user profile bad request response

func (*PatchUserProfileBadRequest) Error

func (*PatchUserProfileBadRequest) GetPayload

func (*PatchUserProfileBadRequest) IsClientError

func (o *PatchUserProfileBadRequest) IsClientError() bool

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

func (*PatchUserProfileBadRequest) IsCode

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

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

func (*PatchUserProfileBadRequest) IsRedirect

func (o *PatchUserProfileBadRequest) IsRedirect() bool

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

func (*PatchUserProfileBadRequest) IsServerError

func (o *PatchUserProfileBadRequest) IsServerError() bool

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

func (*PatchUserProfileBadRequest) IsSuccess

func (o *PatchUserProfileBadRequest) IsSuccess() bool

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

func (*PatchUserProfileBadRequest) String

func (o *PatchUserProfileBadRequest) String() string

type PatchUserProfileInternalServerError

type PatchUserProfileInternalServerError struct {
	Payload *models.ResponseErrorResponse
}

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

Internal Server Error

func NewPatchUserProfileInternalServerError

func NewPatchUserProfileInternalServerError() *PatchUserProfileInternalServerError

NewPatchUserProfileInternalServerError creates a PatchUserProfileInternalServerError with default headers values

func (*PatchUserProfileInternalServerError) Code

Code gets the status code for the patch user profile internal server error response

func (*PatchUserProfileInternalServerError) Error

func (*PatchUserProfileInternalServerError) GetPayload

func (*PatchUserProfileInternalServerError) IsClientError

func (o *PatchUserProfileInternalServerError) IsClientError() bool

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

func (*PatchUserProfileInternalServerError) IsCode

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

func (*PatchUserProfileInternalServerError) IsRedirect

func (o *PatchUserProfileInternalServerError) IsRedirect() bool

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

func (*PatchUserProfileInternalServerError) IsServerError

func (o *PatchUserProfileInternalServerError) IsServerError() bool

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

func (*PatchUserProfileInternalServerError) IsSuccess

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

func (*PatchUserProfileInternalServerError) String

type PatchUserProfileOK

type PatchUserProfileOK struct {
	Payload *models.ResponseSuccessResponse
}

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

OK

func NewPatchUserProfileOK

func NewPatchUserProfileOK() *PatchUserProfileOK

NewPatchUserProfileOK creates a PatchUserProfileOK with default headers values

func (*PatchUserProfileOK) Code

func (o *PatchUserProfileOK) Code() int

Code gets the status code for the patch user profile o k response

func (*PatchUserProfileOK) Error

func (o *PatchUserProfileOK) Error() string

func (*PatchUserProfileOK) GetPayload

func (*PatchUserProfileOK) IsClientError

func (o *PatchUserProfileOK) IsClientError() bool

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

func (*PatchUserProfileOK) IsCode

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

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

func (*PatchUserProfileOK) IsRedirect

func (o *PatchUserProfileOK) IsRedirect() bool

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

func (*PatchUserProfileOK) IsServerError

func (o *PatchUserProfileOK) IsServerError() bool

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

func (*PatchUserProfileOK) IsSuccess

func (o *PatchUserProfileOK) IsSuccess() bool

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

func (*PatchUserProfileOK) String

func (o *PatchUserProfileOK) String() string

type PatchUserProfileParams

type PatchUserProfileParams struct {

	/* Input.

	   user's profile data
	*/
	Input *models.RequestUpdateUserProfileRequest

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

PatchUserProfileParams contains all the parameters to send to the API endpoint

for the patch user profile operation.

Typically these are written to a http.Request.

func NewPatchUserProfileParams

func NewPatchUserProfileParams() *PatchUserProfileParams

NewPatchUserProfileParams creates a new PatchUserProfileParams 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 NewPatchUserProfileParamsWithContext

func NewPatchUserProfileParamsWithContext(ctx context.Context) *PatchUserProfileParams

NewPatchUserProfileParamsWithContext creates a new PatchUserProfileParams object with the ability to set a context for a request.

func NewPatchUserProfileParamsWithHTTPClient

func NewPatchUserProfileParamsWithHTTPClient(client *http.Client) *PatchUserProfileParams

NewPatchUserProfileParamsWithHTTPClient creates a new PatchUserProfileParams object with the ability to set a custom HTTPClient for a request.

func NewPatchUserProfileParamsWithTimeout

func NewPatchUserProfileParamsWithTimeout(timeout time.Duration) *PatchUserProfileParams

NewPatchUserProfileParamsWithTimeout creates a new PatchUserProfileParams object with the ability to set a timeout on a request.

func (*PatchUserProfileParams) SetContext

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

SetContext adds the context to the patch user profile params

func (*PatchUserProfileParams) SetDefaults

func (o *PatchUserProfileParams) SetDefaults()

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

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

func (*PatchUserProfileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch user profile params

func (*PatchUserProfileParams) SetInput

SetInput adds the input to the patch user profile params

func (*PatchUserProfileParams) SetTimeout

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

SetTimeout adds the timeout to the patch user profile params

func (*PatchUserProfileParams) WithContext

WithContext adds the context to the patch user profile params

func (*PatchUserProfileParams) WithDefaults

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

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

func (*PatchUserProfileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the patch user profile params

func (*PatchUserProfileParams) WithInput

WithInput adds the input to the patch user profile params

func (*PatchUserProfileParams) WithTimeout

WithTimeout adds the timeout to the patch user profile params

func (*PatchUserProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchUserProfileReader

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

PatchUserProfileReader is a Reader for the PatchUserProfile structure.

func (*PatchUserProfileReader) ReadResponse

func (o *PatchUserProfileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, 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
⌂ 换网址