user

package
v5.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for user API

func (*Client) CreateUser

func (a *Client) CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserCreated, error)

CreateUser creates a local user

This API can be used only when the authentication mode is for local DB. When self registration is disabled.

func (*Client) DeleteUser

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

DeleteUser marks a registered user as be removed

This endpoint let administrator of Harbor mark a registered user as removed.It actually won't be deleted from DB.

func (*Client) GetCurrentUserInfo

func (a *Client) GetCurrentUserInfo(params *GetCurrentUserInfoParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserInfoOK, error)

GetCurrentUserInfo gets current user info

func (*Client) GetCurrentUserPermissions

func (a *Client) GetCurrentUserPermissions(params *GetCurrentUserPermissionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserPermissionsOK, error)

GetCurrentUserPermissions gets current user permissions

func (*Client) GetUser

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

GetUser gets a user s profile

func (*Client) ListUsers

func (a *Client) ListUsers(params *ListUsersParams, authInfo runtime.ClientAuthInfoWriter) (*ListUsersOK, error)

ListUsers lists users

func (*Client) SearchUsers

func (a *Client) SearchUsers(params *SearchUsersParams, authInfo runtime.ClientAuthInfoWriter) (*SearchUsersOK, error)

SearchUsers searches users by username

This endpoint is to search the users by username. It's open for all authenticated requests.

func (*Client) SetCliSecret

func (a *Client) SetCliSecret(params *SetCliSecretParams, authInfo runtime.ClientAuthInfoWriter) (*SetCliSecretOK, error)

SetCliSecret sets c l i secret for a user

This endpoint let user generate a new CLI secret for himself. This API only works when auth mode is set to 'OIDC'. Once this API returns with successful status, the old secret will be invalid, as there will be only one CLI secret for a user.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SetUserSysAdmin

func (a *Client) SetUserSysAdmin(params *SetUserSysAdminParams, authInfo runtime.ClientAuthInfoWriter) (*SetUserSysAdminOK, error)

SetUserSysAdmin updates a registered user to change to be an administrator of harbor

func (*Client) UpdateUserPassword

func (a *Client) UpdateUserPassword(params *UpdateUserPasswordParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserPasswordOK, error)

UpdateUserPassword changes the password on a user that already exists

This endpoint is for user to update password. Users with the admin role can change any user's password. Regular users can change only their own password.

func (*Client) UpdateUserProfile

func (a *Client) UpdateUserProfile(params *UpdateUserProfileParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserProfileOK, error)

UpdateUserProfile updates user s profile

type ClientService

type ClientService interface {
	CreateUser(params *CreateUserParams, authInfo runtime.ClientAuthInfoWriter) (*CreateUserCreated, error)

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

	GetCurrentUserInfo(params *GetCurrentUserInfoParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserInfoOK, error)

	GetCurrentUserPermissions(params *GetCurrentUserPermissionsParams, authInfo runtime.ClientAuthInfoWriter) (*GetCurrentUserPermissionsOK, error)

	GetUser(params *GetUserParams, authInfo runtime.ClientAuthInfoWriter) (*GetUserOK, error)

	ListUsers(params *ListUsersParams, authInfo runtime.ClientAuthInfoWriter) (*ListUsersOK, error)

	SearchUsers(params *SearchUsersParams, authInfo runtime.ClientAuthInfoWriter) (*SearchUsersOK, error)

	SetCliSecret(params *SetCliSecretParams, authInfo runtime.ClientAuthInfoWriter) (*SetCliSecretOK, error)

	SetUserSysAdmin(params *SetUserSysAdminParams, authInfo runtime.ClientAuthInfoWriter) (*SetUserSysAdminOK, error)

	UpdateUserPassword(params *UpdateUserPasswordParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserPasswordOK, error)

	UpdateUserProfile(params *UpdateUserProfileParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateUserProfileOK, 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 CreateUserBadRequest

type CreateUserBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateUserBadRequest handles this case with default header values.

Bad request

func NewCreateUserBadRequest

func NewCreateUserBadRequest() *CreateUserBadRequest

NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values

func (*CreateUserBadRequest) Error

func (o *CreateUserBadRequest) Error() string

func (*CreateUserBadRequest) GetPayload

func (o *CreateUserBadRequest) GetPayload() *model.Errors

type CreateUserConflict

type CreateUserConflict struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateUserConflict handles this case with default header values.

Conflict

func NewCreateUserConflict

func NewCreateUserConflict() *CreateUserConflict

NewCreateUserConflict creates a CreateUserConflict with default headers values

func (*CreateUserConflict) Error

func (o *CreateUserConflict) Error() string

func (*CreateUserConflict) GetPayload

func (o *CreateUserConflict) GetPayload() *model.Errors

type CreateUserCreated

type CreateUserCreated struct {
	/*The location of the resource
	 */
	Location string
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

CreateUserCreated handles this case with default header values.

Created

func NewCreateUserCreated

func NewCreateUserCreated() *CreateUserCreated

NewCreateUserCreated creates a CreateUserCreated with default headers values

func (*CreateUserCreated) Error

func (o *CreateUserCreated) Error() string

type CreateUserForbidden

type CreateUserForbidden struct {
}

CreateUserForbidden handles this case with default header values.

When the self registration is disabled, non-admin does not have permission to create user. When self registration is enabled, this API can only be called from UI portal, calling it via script will get a 403 error.

func NewCreateUserForbidden

func NewCreateUserForbidden() *CreateUserForbidden

NewCreateUserForbidden creates a CreateUserForbidden with default headers values

func (*CreateUserForbidden) Error

func (o *CreateUserForbidden) Error() string

type CreateUserInternalServerError

type CreateUserInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateUserInternalServerError handles this case with default header values.

Internal server error

func NewCreateUserInternalServerError

func NewCreateUserInternalServerError() *CreateUserInternalServerError

NewCreateUserInternalServerError creates a CreateUserInternalServerError with default headers values

func (*CreateUserInternalServerError) Error

func (*CreateUserInternalServerError) GetPayload

func (o *CreateUserInternalServerError) GetPayload() *model.Errors

type CreateUserParams

type CreateUserParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*UserReq
	  The new user

	*/
	UserReq *model.UserCreationReq

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

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

func NewCreateUserParams

func NewCreateUserParams() *CreateUserParams

NewCreateUserParams creates a new CreateUserParams object with the default values initialized.

func NewCreateUserParamsWithContext

func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams

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

func NewCreateUserParamsWithHTTPClient

func NewCreateUserParamsWithHTTPClient(client *http.Client) *CreateUserParams

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

func NewCreateUserParamsWithTimeout

func NewCreateUserParamsWithTimeout(timeout time.Duration) *CreateUserParams

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

func (*CreateUserParams) SetContext

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

SetContext adds the context to the create user params

func (*CreateUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create user params

func (*CreateUserParams) SetTimeout

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

SetTimeout adds the timeout to the create user params

func (*CreateUserParams) SetUserReq

func (o *CreateUserParams) SetUserReq(userReq *model.UserCreationReq)

SetUserReq adds the userReq to the create user params

func (*CreateUserParams) SetXRequestID

func (o *CreateUserParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the create user params

func (*CreateUserParams) WithContext

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

WithContext adds the context to the create user params

func (*CreateUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create user params

func (*CreateUserParams) WithTimeout

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

WithTimeout adds the timeout to the create user params

func (*CreateUserParams) WithUserReq

func (o *CreateUserParams) WithUserReq(userReq *model.UserCreationReq) *CreateUserParams

WithUserReq adds the userReq to the create user params

func (*CreateUserParams) WithXRequestID

func (o *CreateUserParams) WithXRequestID(xRequestID *string) *CreateUserParams

WithXRequestID adds the xRequestID to the create user params

func (*CreateUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateUserReader

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

CreateUserReader is a Reader for the CreateUser structure.

func (*CreateUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateUserUnauthorized

type CreateUserUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

CreateUserUnauthorized handles this case with default header values.

Unauthorized

func NewCreateUserUnauthorized

func NewCreateUserUnauthorized() *CreateUserUnauthorized

NewCreateUserUnauthorized creates a CreateUserUnauthorized with default headers values

func (*CreateUserUnauthorized) Error

func (o *CreateUserUnauthorized) Error() string

func (*CreateUserUnauthorized) GetPayload

func (o *CreateUserUnauthorized) GetPayload() *model.Errors

type DeleteUserForbidden

type DeleteUserForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteUserForbidden handles this case with default header values.

Forbidden

func NewDeleteUserForbidden

func NewDeleteUserForbidden() *DeleteUserForbidden

NewDeleteUserForbidden creates a DeleteUserForbidden with default headers values

func (*DeleteUserForbidden) Error

func (o *DeleteUserForbidden) Error() string

func (*DeleteUserForbidden) GetPayload

func (o *DeleteUserForbidden) GetPayload() *model.Errors

type DeleteUserInternalServerError

type DeleteUserInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteUserInternalServerError handles this case with default header values.

Internal server error

func NewDeleteUserInternalServerError

func NewDeleteUserInternalServerError() *DeleteUserInternalServerError

NewDeleteUserInternalServerError creates a DeleteUserInternalServerError with default headers values

func (*DeleteUserInternalServerError) Error

func (*DeleteUserInternalServerError) GetPayload

func (o *DeleteUserInternalServerError) GetPayload() *model.Errors

type DeleteUserNotFound

type DeleteUserNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteUserNotFound handles this case with default header values.

Not found

func NewDeleteUserNotFound

func NewDeleteUserNotFound() *DeleteUserNotFound

NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values

func (*DeleteUserNotFound) Error

func (o *DeleteUserNotFound) Error() string

func (*DeleteUserNotFound) GetPayload

func (o *DeleteUserNotFound) GetPayload() *model.Errors

type DeleteUserOK

type DeleteUserOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

DeleteUserOK handles this case with default header values.

Success

func NewDeleteUserOK

func NewDeleteUserOK() *DeleteUserOK

NewDeleteUserOK creates a DeleteUserOK with default headers values

func (*DeleteUserOK) Error

func (o *DeleteUserOK) Error() string

type DeleteUserParams

type DeleteUserParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*UserID
	  User ID for marking as to be removed.

	*/
	UserID int64

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

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

func NewDeleteUserParams

func NewDeleteUserParams() *DeleteUserParams

NewDeleteUserParams creates a new DeleteUserParams object with the default values initialized.

func NewDeleteUserParamsWithContext

func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams

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

func NewDeleteUserParamsWithHTTPClient

func NewDeleteUserParamsWithHTTPClient(client *http.Client) *DeleteUserParams

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

func NewDeleteUserParamsWithTimeout

func NewDeleteUserParamsWithTimeout(timeout time.Duration) *DeleteUserParams

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

func (*DeleteUserParams) SetContext

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

SetContext adds the context to the delete user params

func (*DeleteUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete user params

func (*DeleteUserParams) SetTimeout

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

SetTimeout adds the timeout to the delete user params

func (*DeleteUserParams) SetUserID

func (o *DeleteUserParams) SetUserID(userID int64)

SetUserID adds the userId to the delete user params

func (*DeleteUserParams) SetXRequestID

func (o *DeleteUserParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the delete user params

func (*DeleteUserParams) WithContext

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

WithContext adds the context to the delete user params

func (*DeleteUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete user params

func (*DeleteUserParams) WithTimeout

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

WithTimeout adds the timeout to the delete user params

func (*DeleteUserParams) WithUserID

func (o *DeleteUserParams) WithUserID(userID int64) *DeleteUserParams

WithUserID adds the userID to the delete user params

func (*DeleteUserParams) WithXRequestID

func (o *DeleteUserParams) WithXRequestID(xRequestID *string) *DeleteUserParams

WithXRequestID adds the xRequestID to the delete user params

func (*DeleteUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteUserReader

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

DeleteUserReader is a Reader for the DeleteUser structure.

func (*DeleteUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteUserUnauthorized

type DeleteUserUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

DeleteUserUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteUserUnauthorized

func NewDeleteUserUnauthorized() *DeleteUserUnauthorized

NewDeleteUserUnauthorized creates a DeleteUserUnauthorized with default headers values

func (*DeleteUserUnauthorized) Error

func (o *DeleteUserUnauthorized) Error() string

func (*DeleteUserUnauthorized) GetPayload

func (o *DeleteUserUnauthorized) GetPayload() *model.Errors

type GetCurrentUserInfoInternalServerError

type GetCurrentUserInfoInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetCurrentUserInfoInternalServerError handles this case with default header values.

Internal server error

func NewGetCurrentUserInfoInternalServerError

func NewGetCurrentUserInfoInternalServerError() *GetCurrentUserInfoInternalServerError

NewGetCurrentUserInfoInternalServerError creates a GetCurrentUserInfoInternalServerError with default headers values

func (*GetCurrentUserInfoInternalServerError) Error

func (*GetCurrentUserInfoInternalServerError) GetPayload

type GetCurrentUserInfoOK

type GetCurrentUserInfoOK struct {
	Payload *model.UserResp
}

GetCurrentUserInfoOK handles this case with default header values.

Get current user information successfully.

func NewGetCurrentUserInfoOK

func NewGetCurrentUserInfoOK() *GetCurrentUserInfoOK

NewGetCurrentUserInfoOK creates a GetCurrentUserInfoOK with default headers values

func (*GetCurrentUserInfoOK) Error

func (o *GetCurrentUserInfoOK) Error() string

func (*GetCurrentUserInfoOK) GetPayload

func (o *GetCurrentUserInfoOK) GetPayload() *model.UserResp

type GetCurrentUserInfoParams

type GetCurrentUserInfoParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string

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

GetCurrentUserInfoParams contains all the parameters to send to the API endpoint for the get current user info operation typically these are written to a http.Request

func NewGetCurrentUserInfoParams

func NewGetCurrentUserInfoParams() *GetCurrentUserInfoParams

NewGetCurrentUserInfoParams creates a new GetCurrentUserInfoParams object with the default values initialized.

func NewGetCurrentUserInfoParamsWithContext

func NewGetCurrentUserInfoParamsWithContext(ctx context.Context) *GetCurrentUserInfoParams

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

func NewGetCurrentUserInfoParamsWithHTTPClient

func NewGetCurrentUserInfoParamsWithHTTPClient(client *http.Client) *GetCurrentUserInfoParams

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

func NewGetCurrentUserInfoParamsWithTimeout

func NewGetCurrentUserInfoParamsWithTimeout(timeout time.Duration) *GetCurrentUserInfoParams

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

func (*GetCurrentUserInfoParams) SetContext

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

SetContext adds the context to the get current user info params

func (*GetCurrentUserInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get current user info params

func (*GetCurrentUserInfoParams) SetTimeout

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

SetTimeout adds the timeout to the get current user info params

func (*GetCurrentUserInfoParams) SetXRequestID

func (o *GetCurrentUserInfoParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get current user info params

func (*GetCurrentUserInfoParams) WithContext

WithContext adds the context to the get current user info params

func (*GetCurrentUserInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get current user info params

func (*GetCurrentUserInfoParams) WithTimeout

WithTimeout adds the timeout to the get current user info params

func (*GetCurrentUserInfoParams) WithXRequestID

func (o *GetCurrentUserInfoParams) WithXRequestID(xRequestID *string) *GetCurrentUserInfoParams

WithXRequestID adds the xRequestID to the get current user info params

func (*GetCurrentUserInfoParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCurrentUserInfoReader

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

GetCurrentUserInfoReader is a Reader for the GetCurrentUserInfo structure.

func (*GetCurrentUserInfoReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCurrentUserInfoUnauthorized

type GetCurrentUserInfoUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetCurrentUserInfoUnauthorized handles this case with default header values.

Unauthorized

func NewGetCurrentUserInfoUnauthorized

func NewGetCurrentUserInfoUnauthorized() *GetCurrentUserInfoUnauthorized

NewGetCurrentUserInfoUnauthorized creates a GetCurrentUserInfoUnauthorized with default headers values

func (*GetCurrentUserInfoUnauthorized) Error

func (*GetCurrentUserInfoUnauthorized) GetPayload

func (o *GetCurrentUserInfoUnauthorized) GetPayload() *model.Errors

type GetCurrentUserPermissionsInternalServerError

type GetCurrentUserPermissionsInternalServerError struct {
}

GetCurrentUserPermissionsInternalServerError handles this case with default header values.

Internal errors.

func NewGetCurrentUserPermissionsInternalServerError

func NewGetCurrentUserPermissionsInternalServerError() *GetCurrentUserPermissionsInternalServerError

NewGetCurrentUserPermissionsInternalServerError creates a GetCurrentUserPermissionsInternalServerError with default headers values

func (*GetCurrentUserPermissionsInternalServerError) Error

type GetCurrentUserPermissionsOK

type GetCurrentUserPermissionsOK struct {
	Payload []*model.Permission
}

GetCurrentUserPermissionsOK handles this case with default header values.

Get current user permission successfully.

func NewGetCurrentUserPermissionsOK

func NewGetCurrentUserPermissionsOK() *GetCurrentUserPermissionsOK

NewGetCurrentUserPermissionsOK creates a GetCurrentUserPermissionsOK with default headers values

func (*GetCurrentUserPermissionsOK) Error

func (*GetCurrentUserPermissionsOK) GetPayload

func (o *GetCurrentUserPermissionsOK) GetPayload() []*model.Permission

type GetCurrentUserPermissionsParams

type GetCurrentUserPermissionsParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Relative
	  If true, the resources in the response are relative to the scope,
	eg for resource '/project/1/repository' if relative is 'true' then the resource in response will be 'repository'.


	*/
	Relative *bool
	/*Scope
	  The scope for the permission

	*/
	Scope *string

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

GetCurrentUserPermissionsParams contains all the parameters to send to the API endpoint for the get current user permissions operation typically these are written to a http.Request

func NewGetCurrentUserPermissionsParams

func NewGetCurrentUserPermissionsParams() *GetCurrentUserPermissionsParams

NewGetCurrentUserPermissionsParams creates a new GetCurrentUserPermissionsParams object with the default values initialized.

func NewGetCurrentUserPermissionsParamsWithContext

func NewGetCurrentUserPermissionsParamsWithContext(ctx context.Context) *GetCurrentUserPermissionsParams

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

func NewGetCurrentUserPermissionsParamsWithHTTPClient

func NewGetCurrentUserPermissionsParamsWithHTTPClient(client *http.Client) *GetCurrentUserPermissionsParams

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

func NewGetCurrentUserPermissionsParamsWithTimeout

func NewGetCurrentUserPermissionsParamsWithTimeout(timeout time.Duration) *GetCurrentUserPermissionsParams

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

func (*GetCurrentUserPermissionsParams) SetContext

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

SetContext adds the context to the get current user permissions params

func (*GetCurrentUserPermissionsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get current user permissions params

func (*GetCurrentUserPermissionsParams) SetRelative

func (o *GetCurrentUserPermissionsParams) SetRelative(relative *bool)

SetRelative adds the relative to the get current user permissions params

func (*GetCurrentUserPermissionsParams) SetScope

func (o *GetCurrentUserPermissionsParams) SetScope(scope *string)

SetScope adds the scope to the get current user permissions params

func (*GetCurrentUserPermissionsParams) SetTimeout

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

SetTimeout adds the timeout to the get current user permissions params

func (*GetCurrentUserPermissionsParams) SetXRequestID

func (o *GetCurrentUserPermissionsParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WithContext

WithContext adds the context to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WithRelative

WithRelative adds the relative to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WithScope

WithScope adds the scope to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WithTimeout

WithTimeout adds the timeout to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WithXRequestID

WithXRequestID adds the xRequestID to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCurrentUserPermissionsReader

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

GetCurrentUserPermissionsReader is a Reader for the GetCurrentUserPermissions structure.

func (*GetCurrentUserPermissionsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCurrentUserPermissionsUnauthorized

type GetCurrentUserPermissionsUnauthorized struct {
}

GetCurrentUserPermissionsUnauthorized handles this case with default header values.

User need to log in first.

func NewGetCurrentUserPermissionsUnauthorized

func NewGetCurrentUserPermissionsUnauthorized() *GetCurrentUserPermissionsUnauthorized

NewGetCurrentUserPermissionsUnauthorized creates a GetCurrentUserPermissionsUnauthorized with default headers values

func (*GetCurrentUserPermissionsUnauthorized) Error

type GetUserForbidden

type GetUserForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetUserForbidden handles this case with default header values.

Forbidden

func NewGetUserForbidden

func NewGetUserForbidden() *GetUserForbidden

NewGetUserForbidden creates a GetUserForbidden with default headers values

func (*GetUserForbidden) Error

func (o *GetUserForbidden) Error() string

func (*GetUserForbidden) GetPayload

func (o *GetUserForbidden) GetPayload() *model.Errors

type GetUserInternalServerError

type GetUserInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetUserInternalServerError handles this case with default header values.

Internal server error

func NewGetUserInternalServerError

func NewGetUserInternalServerError() *GetUserInternalServerError

NewGetUserInternalServerError creates a GetUserInternalServerError with default headers values

func (*GetUserInternalServerError) Error

func (*GetUserInternalServerError) GetPayload

func (o *GetUserInternalServerError) GetPayload() *model.Errors

type GetUserNotFound

type GetUserNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetUserNotFound handles this case with default header values.

Not found

func NewGetUserNotFound

func NewGetUserNotFound() *GetUserNotFound

NewGetUserNotFound creates a GetUserNotFound with default headers values

func (*GetUserNotFound) Error

func (o *GetUserNotFound) Error() string

func (*GetUserNotFound) GetPayload

func (o *GetUserNotFound) GetPayload() *model.Errors

type GetUserOK

type GetUserOK struct {
	Payload *model.UserResp
}

GetUserOK handles this case with default header values.

Get user's info successfully.

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Error

func (o *GetUserOK) Error() string

func (*GetUserOK) GetPayload

func (o *GetUserOK) GetPayload() *model.UserResp

type GetUserParams

type GetUserParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*UserID*/
	UserID int64

	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 values initialized.

func NewGetUserParamsWithContext

func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams

NewGetUserParamsWithContext creates a new GetUserParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) SetUserID

func (o *GetUserParams) SetUserID(userID int64)

SetUserID adds the userId to the get user params

func (*GetUserParams) SetXRequestID

func (o *GetUserParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId 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) 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) WithUserID

func (o *GetUserParams) WithUserID(userID int64) *GetUserParams

WithUserID adds the userID to the get user params

func (*GetUserParams) WithXRequestID

func (o *GetUserParams) WithXRequestID(xRequestID *string) *GetUserParams

WithXRequestID adds the xRequestID 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 {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

GetUserUnauthorized handles this case with default header values.

Unauthorized

func NewGetUserUnauthorized

func NewGetUserUnauthorized() *GetUserUnauthorized

NewGetUserUnauthorized creates a GetUserUnauthorized with default headers values

func (*GetUserUnauthorized) Error

func (o *GetUserUnauthorized) Error() string

func (*GetUserUnauthorized) GetPayload

func (o *GetUserUnauthorized) GetPayload() *model.Errors

type ListUsersForbidden

type ListUsersForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListUsersForbidden handles this case with default header values.

Forbidden

func NewListUsersForbidden

func NewListUsersForbidden() *ListUsersForbidden

NewListUsersForbidden creates a ListUsersForbidden with default headers values

func (*ListUsersForbidden) Error

func (o *ListUsersForbidden) Error() string

func (*ListUsersForbidden) GetPayload

func (o *ListUsersForbidden) GetPayload() *model.Errors

type ListUsersInternalServerError

type ListUsersInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListUsersInternalServerError handles this case with default header values.

Internal server error

func NewListUsersInternalServerError

func NewListUsersInternalServerError() *ListUsersInternalServerError

NewListUsersInternalServerError creates a ListUsersInternalServerError with default headers values

func (*ListUsersInternalServerError) Error

func (*ListUsersInternalServerError) GetPayload

func (o *ListUsersInternalServerError) GetPayload() *model.Errors

type ListUsersOK

type ListUsersOK struct {
	/*Link to previous page and next page
	 */
	Link string
	/*The total count of users
	 */
	XTotalCount int64

	Payload []*model.UserResp
}

ListUsersOK handles this case with default header values.

return the list of users.

func NewListUsersOK

func NewListUsersOK() *ListUsersOK

NewListUsersOK creates a ListUsersOK with default headers values

func (*ListUsersOK) Error

func (o *ListUsersOK) Error() string

func (*ListUsersOK) GetPayload

func (o *ListUsersOK) GetPayload() []*model.UserResp

type ListUsersParams

type ListUsersParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

	*/
	Page *int64
	/*PageSize
	  The size of per page

	*/
	PageSize *int64
	/*Q
	  Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max]

	*/
	Q *string
	/*Sort
	  Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2"

	*/
	Sort *string

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

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

func NewListUsersParams

func NewListUsersParams() *ListUsersParams

NewListUsersParams creates a new ListUsersParams object with the default values initialized.

func NewListUsersParamsWithContext

func NewListUsersParamsWithContext(ctx context.Context) *ListUsersParams

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

func NewListUsersParamsWithHTTPClient

func NewListUsersParamsWithHTTPClient(client *http.Client) *ListUsersParams

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

func NewListUsersParamsWithTimeout

func NewListUsersParamsWithTimeout(timeout time.Duration) *ListUsersParams

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

func (*ListUsersParams) SetContext

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

SetContext adds the context to the list users params

func (*ListUsersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list users params

func (*ListUsersParams) SetPage

func (o *ListUsersParams) SetPage(page *int64)

SetPage adds the page to the list users params

func (*ListUsersParams) SetPageSize

func (o *ListUsersParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the list users params

func (*ListUsersParams) SetQ

func (o *ListUsersParams) SetQ(q *string)

SetQ adds the q to the list users params

func (*ListUsersParams) SetSort

func (o *ListUsersParams) SetSort(sort *string)

SetSort adds the sort to the list users params

func (*ListUsersParams) SetTimeout

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

SetTimeout adds the timeout to the list users params

func (*ListUsersParams) SetXRequestID

func (o *ListUsersParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the list users params

func (*ListUsersParams) WithContext

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

WithContext adds the context to the list users params

func (*ListUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list users params

func (*ListUsersParams) WithPage

func (o *ListUsersParams) WithPage(page *int64) *ListUsersParams

WithPage adds the page to the list users params

func (*ListUsersParams) WithPageSize

func (o *ListUsersParams) WithPageSize(pageSize *int64) *ListUsersParams

WithPageSize adds the pageSize to the list users params

func (*ListUsersParams) WithQ

func (o *ListUsersParams) WithQ(q *string) *ListUsersParams

WithQ adds the q to the list users params

func (*ListUsersParams) WithSort

func (o *ListUsersParams) WithSort(sort *string) *ListUsersParams

WithSort adds the sort to the list users params

func (*ListUsersParams) WithTimeout

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

WithTimeout adds the timeout to the list users params

func (*ListUsersParams) WithXRequestID

func (o *ListUsersParams) WithXRequestID(xRequestID *string) *ListUsersParams

WithXRequestID adds the xRequestID to the list users params

func (*ListUsersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListUsersReader

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

ListUsersReader is a Reader for the ListUsers structure.

func (*ListUsersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUsersUnauthorized

type ListUsersUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ListUsersUnauthorized handles this case with default header values.

Unauthorized

func NewListUsersUnauthorized

func NewListUsersUnauthorized() *ListUsersUnauthorized

NewListUsersUnauthorized creates a ListUsersUnauthorized with default headers values

func (*ListUsersUnauthorized) Error

func (o *ListUsersUnauthorized) Error() string

func (*ListUsersUnauthorized) GetPayload

func (o *ListUsersUnauthorized) GetPayload() *model.Errors

type SearchUsersInternalServerError

type SearchUsersInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SearchUsersInternalServerError handles this case with default header values.

Internal server error

func NewSearchUsersInternalServerError

func NewSearchUsersInternalServerError() *SearchUsersInternalServerError

NewSearchUsersInternalServerError creates a SearchUsersInternalServerError with default headers values

func (*SearchUsersInternalServerError) Error

func (*SearchUsersInternalServerError) GetPayload

func (o *SearchUsersInternalServerError) GetPayload() *model.Errors

type SearchUsersOK

type SearchUsersOK struct {
	/*Link to previous page and next page
	 */
	Link string
	/*The total count of available items
	 */
	XTotalCount int64

	Payload []*model.UserSearchRespItem
}

SearchUsersOK handles this case with default header values.

Search users by username successfully.

func NewSearchUsersOK

func NewSearchUsersOK() *SearchUsersOK

NewSearchUsersOK creates a SearchUsersOK with default headers values

func (*SearchUsersOK) Error

func (o *SearchUsersOK) Error() string

func (*SearchUsersOK) GetPayload

func (o *SearchUsersOK) GetPayload() []*model.UserSearchRespItem

type SearchUsersParams

type SearchUsersParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Page
	  The page number

	*/
	Page *int64
	/*PageSize
	  The size of per page

	*/
	PageSize *int64
	/*Username
	  Username for filtering results.

	*/
	Username string

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

SearchUsersParams contains all the parameters to send to the API endpoint for the search users operation typically these are written to a http.Request

func NewSearchUsersParams

func NewSearchUsersParams() *SearchUsersParams

NewSearchUsersParams creates a new SearchUsersParams object with the default values initialized.

func NewSearchUsersParamsWithContext

func NewSearchUsersParamsWithContext(ctx context.Context) *SearchUsersParams

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

func NewSearchUsersParamsWithHTTPClient

func NewSearchUsersParamsWithHTTPClient(client *http.Client) *SearchUsersParams

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

func NewSearchUsersParamsWithTimeout

func NewSearchUsersParamsWithTimeout(timeout time.Duration) *SearchUsersParams

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

func (*SearchUsersParams) SetContext

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

SetContext adds the context to the search users params

func (*SearchUsersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search users params

func (*SearchUsersParams) SetPage

func (o *SearchUsersParams) SetPage(page *int64)

SetPage adds the page to the search users params

func (*SearchUsersParams) SetPageSize

func (o *SearchUsersParams) SetPageSize(pageSize *int64)

SetPageSize adds the pageSize to the search users params

func (*SearchUsersParams) SetTimeout

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

SetTimeout adds the timeout to the search users params

func (*SearchUsersParams) SetUsername

func (o *SearchUsersParams) SetUsername(username string)

SetUsername adds the username to the search users params

func (*SearchUsersParams) SetXRequestID

func (o *SearchUsersParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the search users params

func (*SearchUsersParams) WithContext

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

WithContext adds the context to the search users params

func (*SearchUsersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search users params

func (*SearchUsersParams) WithPage

func (o *SearchUsersParams) WithPage(page *int64) *SearchUsersParams

WithPage adds the page to the search users params

func (*SearchUsersParams) WithPageSize

func (o *SearchUsersParams) WithPageSize(pageSize *int64) *SearchUsersParams

WithPageSize adds the pageSize to the search users params

func (*SearchUsersParams) WithTimeout

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

WithTimeout adds the timeout to the search users params

func (*SearchUsersParams) WithUsername

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

WithUsername adds the username to the search users params

func (*SearchUsersParams) WithXRequestID

func (o *SearchUsersParams) WithXRequestID(xRequestID *string) *SearchUsersParams

WithXRequestID adds the xRequestID to the search users params

func (*SearchUsersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchUsersReader

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

SearchUsersReader is a Reader for the SearchUsers structure.

func (*SearchUsersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchUsersUnauthorized

type SearchUsersUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SearchUsersUnauthorized handles this case with default header values.

Unauthorized

func NewSearchUsersUnauthorized

func NewSearchUsersUnauthorized() *SearchUsersUnauthorized

NewSearchUsersUnauthorized creates a SearchUsersUnauthorized with default headers values

func (*SearchUsersUnauthorized) Error

func (o *SearchUsersUnauthorized) Error() string

func (*SearchUsersUnauthorized) GetPayload

func (o *SearchUsersUnauthorized) GetPayload() *model.Errors

type SetCliSecretBadRequest

type SetCliSecretBadRequest struct {
}

SetCliSecretBadRequest handles this case with default header values.

Invalid user ID. Or user is not onboarded via OIDC authentication. Or the secret does not meet the standard.

func NewSetCliSecretBadRequest

func NewSetCliSecretBadRequest() *SetCliSecretBadRequest

NewSetCliSecretBadRequest creates a SetCliSecretBadRequest with default headers values

func (*SetCliSecretBadRequest) Error

func (o *SetCliSecretBadRequest) Error() string

type SetCliSecretForbidden

type SetCliSecretForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SetCliSecretForbidden handles this case with default header values.

Forbidden

func NewSetCliSecretForbidden

func NewSetCliSecretForbidden() *SetCliSecretForbidden

NewSetCliSecretForbidden creates a SetCliSecretForbidden with default headers values

func (*SetCliSecretForbidden) Error

func (o *SetCliSecretForbidden) Error() string

func (*SetCliSecretForbidden) GetPayload

func (o *SetCliSecretForbidden) GetPayload() *model.Errors

type SetCliSecretInternalServerError

type SetCliSecretInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SetCliSecretInternalServerError handles this case with default header values.

Internal server error

func NewSetCliSecretInternalServerError

func NewSetCliSecretInternalServerError() *SetCliSecretInternalServerError

NewSetCliSecretInternalServerError creates a SetCliSecretInternalServerError with default headers values

func (*SetCliSecretInternalServerError) Error

func (*SetCliSecretInternalServerError) GetPayload

func (o *SetCliSecretInternalServerError) GetPayload() *model.Errors

type SetCliSecretNotFound

type SetCliSecretNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SetCliSecretNotFound handles this case with default header values.

Not found

func NewSetCliSecretNotFound

func NewSetCliSecretNotFound() *SetCliSecretNotFound

NewSetCliSecretNotFound creates a SetCliSecretNotFound with default headers values

func (*SetCliSecretNotFound) Error

func (o *SetCliSecretNotFound) Error() string

func (*SetCliSecretNotFound) GetPayload

func (o *SetCliSecretNotFound) GetPayload() *model.Errors

type SetCliSecretOK

type SetCliSecretOK struct {
}

SetCliSecretOK handles this case with default header values.

The secret is successfully updated

func NewSetCliSecretOK

func NewSetCliSecretOK() *SetCliSecretOK

NewSetCliSecretOK creates a SetCliSecretOK with default headers values

func (*SetCliSecretOK) Error

func (o *SetCliSecretOK) Error() string

type SetCliSecretParams

type SetCliSecretParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Secret*/
	Secret *model.OIDCCliSecretReq
	/*UserID
	  User ID

	*/
	UserID int64

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

SetCliSecretParams contains all the parameters to send to the API endpoint for the set cli secret operation typically these are written to a http.Request

func NewSetCliSecretParams

func NewSetCliSecretParams() *SetCliSecretParams

NewSetCliSecretParams creates a new SetCliSecretParams object with the default values initialized.

func NewSetCliSecretParamsWithContext

func NewSetCliSecretParamsWithContext(ctx context.Context) *SetCliSecretParams

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

func NewSetCliSecretParamsWithHTTPClient

func NewSetCliSecretParamsWithHTTPClient(client *http.Client) *SetCliSecretParams

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

func NewSetCliSecretParamsWithTimeout

func NewSetCliSecretParamsWithTimeout(timeout time.Duration) *SetCliSecretParams

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

func (*SetCliSecretParams) SetContext

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

SetContext adds the context to the set cli secret params

func (*SetCliSecretParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set cli secret params

func (*SetCliSecretParams) SetSecret

func (o *SetCliSecretParams) SetSecret(secret *model.OIDCCliSecretReq)

SetSecret adds the secret to the set cli secret params

func (*SetCliSecretParams) SetTimeout

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

SetTimeout adds the timeout to the set cli secret params

func (*SetCliSecretParams) SetUserID

func (o *SetCliSecretParams) SetUserID(userID int64)

SetUserID adds the userId to the set cli secret params

func (*SetCliSecretParams) SetXRequestID

func (o *SetCliSecretParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the set cli secret params

func (*SetCliSecretParams) WithContext

WithContext adds the context to the set cli secret params

func (*SetCliSecretParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set cli secret params

func (*SetCliSecretParams) WithSecret

WithSecret adds the secret to the set cli secret params

func (*SetCliSecretParams) WithTimeout

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

WithTimeout adds the timeout to the set cli secret params

func (*SetCliSecretParams) WithUserID

func (o *SetCliSecretParams) WithUserID(userID int64) *SetCliSecretParams

WithUserID adds the userID to the set cli secret params

func (*SetCliSecretParams) WithXRequestID

func (o *SetCliSecretParams) WithXRequestID(xRequestID *string) *SetCliSecretParams

WithXRequestID adds the xRequestID to the set cli secret params

func (*SetCliSecretParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SetCliSecretPreconditionFailed

type SetCliSecretPreconditionFailed struct {
}

SetCliSecretPreconditionFailed handles this case with default header values.

The auth mode of the system is not "oidc_auth", or the user is not onboarded via OIDC AuthN.

func NewSetCliSecretPreconditionFailed

func NewSetCliSecretPreconditionFailed() *SetCliSecretPreconditionFailed

NewSetCliSecretPreconditionFailed creates a SetCliSecretPreconditionFailed with default headers values

func (*SetCliSecretPreconditionFailed) Error

type SetCliSecretReader

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

SetCliSecretReader is a Reader for the SetCliSecret structure.

func (*SetCliSecretReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetCliSecretUnauthorized

type SetCliSecretUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SetCliSecretUnauthorized handles this case with default header values.

Unauthorized

func NewSetCliSecretUnauthorized

func NewSetCliSecretUnauthorized() *SetCliSecretUnauthorized

NewSetCliSecretUnauthorized creates a SetCliSecretUnauthorized with default headers values

func (*SetCliSecretUnauthorized) Error

func (o *SetCliSecretUnauthorized) Error() string

func (*SetCliSecretUnauthorized) GetPayload

func (o *SetCliSecretUnauthorized) GetPayload() *model.Errors

type SetUserSysAdminForbidden

type SetUserSysAdminForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SetUserSysAdminForbidden handles this case with default header values.

Forbidden

func NewSetUserSysAdminForbidden

func NewSetUserSysAdminForbidden() *SetUserSysAdminForbidden

NewSetUserSysAdminForbidden creates a SetUserSysAdminForbidden with default headers values

func (*SetUserSysAdminForbidden) Error

func (o *SetUserSysAdminForbidden) Error() string

func (*SetUserSysAdminForbidden) GetPayload

func (o *SetUserSysAdminForbidden) GetPayload() *model.Errors

type SetUserSysAdminInternalServerError

type SetUserSysAdminInternalServerError struct {
}

SetUserSysAdminInternalServerError handles this case with default header values.

Unexpected internal errors.

func NewSetUserSysAdminInternalServerError

func NewSetUserSysAdminInternalServerError() *SetUserSysAdminInternalServerError

NewSetUserSysAdminInternalServerError creates a SetUserSysAdminInternalServerError with default headers values

func (*SetUserSysAdminInternalServerError) Error

type SetUserSysAdminNotFound

type SetUserSysAdminNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SetUserSysAdminNotFound handles this case with default header values.

Not found

func NewSetUserSysAdminNotFound

func NewSetUserSysAdminNotFound() *SetUserSysAdminNotFound

NewSetUserSysAdminNotFound creates a SetUserSysAdminNotFound with default headers values

func (*SetUserSysAdminNotFound) Error

func (o *SetUserSysAdminNotFound) Error() string

func (*SetUserSysAdminNotFound) GetPayload

func (o *SetUserSysAdminNotFound) GetPayload() *model.Errors

type SetUserSysAdminOK

type SetUserSysAdminOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

SetUserSysAdminOK handles this case with default header values.

Success

func NewSetUserSysAdminOK

func NewSetUserSysAdminOK() *SetUserSysAdminOK

NewSetUserSysAdminOK creates a SetUserSysAdminOK with default headers values

func (*SetUserSysAdminOK) Error

func (o *SetUserSysAdminOK) Error() string

type SetUserSysAdminParams

type SetUserSysAdminParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*SysadminFlag
	  Toggle a user to admin or not.

	*/
	SysadminFlag *model.UserSysAdminFlag
	/*UserID*/
	UserID int64

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

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

func NewSetUserSysAdminParams

func NewSetUserSysAdminParams() *SetUserSysAdminParams

NewSetUserSysAdminParams creates a new SetUserSysAdminParams object with the default values initialized.

func NewSetUserSysAdminParamsWithContext

func NewSetUserSysAdminParamsWithContext(ctx context.Context) *SetUserSysAdminParams

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

func NewSetUserSysAdminParamsWithHTTPClient

func NewSetUserSysAdminParamsWithHTTPClient(client *http.Client) *SetUserSysAdminParams

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

func NewSetUserSysAdminParamsWithTimeout

func NewSetUserSysAdminParamsWithTimeout(timeout time.Duration) *SetUserSysAdminParams

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

func (*SetUserSysAdminParams) SetContext

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

SetContext adds the context to the set user sys admin params

func (*SetUserSysAdminParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set user sys admin params

func (*SetUserSysAdminParams) SetSysadminFlag

func (o *SetUserSysAdminParams) SetSysadminFlag(sysadminFlag *model.UserSysAdminFlag)

SetSysadminFlag adds the sysadminFlag to the set user sys admin params

func (*SetUserSysAdminParams) SetTimeout

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

SetTimeout adds the timeout to the set user sys admin params

func (*SetUserSysAdminParams) SetUserID

func (o *SetUserSysAdminParams) SetUserID(userID int64)

SetUserID adds the userId to the set user sys admin params

func (*SetUserSysAdminParams) SetXRequestID

func (o *SetUserSysAdminParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the set user sys admin params

func (*SetUserSysAdminParams) WithContext

WithContext adds the context to the set user sys admin params

func (*SetUserSysAdminParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set user sys admin params

func (*SetUserSysAdminParams) WithSysadminFlag

func (o *SetUserSysAdminParams) WithSysadminFlag(sysadminFlag *model.UserSysAdminFlag) *SetUserSysAdminParams

WithSysadminFlag adds the sysadminFlag to the set user sys admin params

func (*SetUserSysAdminParams) WithTimeout

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

WithTimeout adds the timeout to the set user sys admin params

func (*SetUserSysAdminParams) WithUserID

func (o *SetUserSysAdminParams) WithUserID(userID int64) *SetUserSysAdminParams

WithUserID adds the userID to the set user sys admin params

func (*SetUserSysAdminParams) WithXRequestID

func (o *SetUserSysAdminParams) WithXRequestID(xRequestID *string) *SetUserSysAdminParams

WithXRequestID adds the xRequestID to the set user sys admin params

func (*SetUserSysAdminParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SetUserSysAdminReader

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

SetUserSysAdminReader is a Reader for the SetUserSysAdmin structure.

func (*SetUserSysAdminReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetUserSysAdminUnauthorized

type SetUserSysAdminUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SetUserSysAdminUnauthorized handles this case with default header values.

Unauthorized

func NewSetUserSysAdminUnauthorized

func NewSetUserSysAdminUnauthorized() *SetUserSysAdminUnauthorized

NewSetUserSysAdminUnauthorized creates a SetUserSysAdminUnauthorized with default headers values

func (*SetUserSysAdminUnauthorized) Error

func (*SetUserSysAdminUnauthorized) GetPayload

func (o *SetUserSysAdminUnauthorized) GetPayload() *model.Errors

type UpdateUserPasswordBadRequest

type UpdateUserPasswordBadRequest struct {
}

UpdateUserPasswordBadRequest handles this case with default header values.

Invalid user ID; Password does not meet requirement

func NewUpdateUserPasswordBadRequest

func NewUpdateUserPasswordBadRequest() *UpdateUserPasswordBadRequest

NewUpdateUserPasswordBadRequest creates a UpdateUserPasswordBadRequest with default headers values

func (*UpdateUserPasswordBadRequest) Error

type UpdateUserPasswordForbidden

type UpdateUserPasswordForbidden struct {
}

UpdateUserPasswordForbidden handles this case with default header values.

The caller does not have permission to update the password of the user with given ID, or the old password in request body is not correct.

func NewUpdateUserPasswordForbidden

func NewUpdateUserPasswordForbidden() *UpdateUserPasswordForbidden

NewUpdateUserPasswordForbidden creates a UpdateUserPasswordForbidden with default headers values

func (*UpdateUserPasswordForbidden) Error

type UpdateUserPasswordInternalServerError

type UpdateUserPasswordInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateUserPasswordInternalServerError handles this case with default header values.

Internal server error

func NewUpdateUserPasswordInternalServerError

func NewUpdateUserPasswordInternalServerError() *UpdateUserPasswordInternalServerError

NewUpdateUserPasswordInternalServerError creates a UpdateUserPasswordInternalServerError with default headers values

func (*UpdateUserPasswordInternalServerError) Error

func (*UpdateUserPasswordInternalServerError) GetPayload

type UpdateUserPasswordOK

type UpdateUserPasswordOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateUserPasswordOK handles this case with default header values.

Success

func NewUpdateUserPasswordOK

func NewUpdateUserPasswordOK() *UpdateUserPasswordOK

NewUpdateUserPasswordOK creates a UpdateUserPasswordOK with default headers values

func (*UpdateUserPasswordOK) Error

func (o *UpdateUserPasswordOK) Error() string

type UpdateUserPasswordParams

type UpdateUserPasswordParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Password
	  Password to be updated, the attribute 'old_password' is optional when the API is called by the system administrator.

	*/
	Password *model.PasswordReq
	/*UserID*/
	UserID int64

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

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

func NewUpdateUserPasswordParams

func NewUpdateUserPasswordParams() *UpdateUserPasswordParams

NewUpdateUserPasswordParams creates a new UpdateUserPasswordParams object with the default values initialized.

func NewUpdateUserPasswordParamsWithContext

func NewUpdateUserPasswordParamsWithContext(ctx context.Context) *UpdateUserPasswordParams

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

func NewUpdateUserPasswordParamsWithHTTPClient

func NewUpdateUserPasswordParamsWithHTTPClient(client *http.Client) *UpdateUserPasswordParams

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

func NewUpdateUserPasswordParamsWithTimeout

func NewUpdateUserPasswordParamsWithTimeout(timeout time.Duration) *UpdateUserPasswordParams

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

func (*UpdateUserPasswordParams) SetContext

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

SetContext adds the context to the update user password params

func (*UpdateUserPasswordParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user password params

func (*UpdateUserPasswordParams) SetPassword

func (o *UpdateUserPasswordParams) SetPassword(password *model.PasswordReq)

SetPassword adds the password to the update user password params

func (*UpdateUserPasswordParams) SetTimeout

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

SetTimeout adds the timeout to the update user password params

func (*UpdateUserPasswordParams) SetUserID

func (o *UpdateUserPasswordParams) SetUserID(userID int64)

SetUserID adds the userId to the update user password params

func (*UpdateUserPasswordParams) SetXRequestID

func (o *UpdateUserPasswordParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update user password params

func (*UpdateUserPasswordParams) WithContext

WithContext adds the context to the update user password params

func (*UpdateUserPasswordParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user password params

func (*UpdateUserPasswordParams) WithPassword

WithPassword adds the password to the update user password params

func (*UpdateUserPasswordParams) WithTimeout

WithTimeout adds the timeout to the update user password params

func (*UpdateUserPasswordParams) WithUserID

WithUserID adds the userID to the update user password params

func (*UpdateUserPasswordParams) WithXRequestID

func (o *UpdateUserPasswordParams) WithXRequestID(xRequestID *string) *UpdateUserPasswordParams

WithXRequestID adds the xRequestID to the update user password params

func (*UpdateUserPasswordParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateUserPasswordReader

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

UpdateUserPasswordReader is a Reader for the UpdateUserPassword structure.

func (*UpdateUserPasswordReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserPasswordUnauthorized

type UpdateUserPasswordUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateUserPasswordUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateUserPasswordUnauthorized

func NewUpdateUserPasswordUnauthorized() *UpdateUserPasswordUnauthorized

NewUpdateUserPasswordUnauthorized creates a UpdateUserPasswordUnauthorized with default headers values

func (*UpdateUserPasswordUnauthorized) Error

func (*UpdateUserPasswordUnauthorized) GetPayload

func (o *UpdateUserPasswordUnauthorized) GetPayload() *model.Errors

type UpdateUserProfileForbidden

type UpdateUserProfileForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateUserProfileForbidden handles this case with default header values.

Forbidden

func NewUpdateUserProfileForbidden

func NewUpdateUserProfileForbidden() *UpdateUserProfileForbidden

NewUpdateUserProfileForbidden creates a UpdateUserProfileForbidden with default headers values

func (*UpdateUserProfileForbidden) Error

func (*UpdateUserProfileForbidden) GetPayload

func (o *UpdateUserProfileForbidden) GetPayload() *model.Errors

type UpdateUserProfileInternalServerError

type UpdateUserProfileInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateUserProfileInternalServerError handles this case with default header values.

Internal server error

func NewUpdateUserProfileInternalServerError

func NewUpdateUserProfileInternalServerError() *UpdateUserProfileInternalServerError

NewUpdateUserProfileInternalServerError creates a UpdateUserProfileInternalServerError with default headers values

func (*UpdateUserProfileInternalServerError) Error

func (*UpdateUserProfileInternalServerError) GetPayload

type UpdateUserProfileNotFound

type UpdateUserProfileNotFound struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateUserProfileNotFound handles this case with default header values.

Not found

func NewUpdateUserProfileNotFound

func NewUpdateUserProfileNotFound() *UpdateUserProfileNotFound

NewUpdateUserProfileNotFound creates a UpdateUserProfileNotFound with default headers values

func (*UpdateUserProfileNotFound) Error

func (o *UpdateUserProfileNotFound) Error() string

func (*UpdateUserProfileNotFound) GetPayload

func (o *UpdateUserProfileNotFound) GetPayload() *model.Errors

type UpdateUserProfileOK

type UpdateUserProfileOK struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string
}

UpdateUserProfileOK handles this case with default header values.

Success

func NewUpdateUserProfileOK

func NewUpdateUserProfileOK() *UpdateUserProfileOK

NewUpdateUserProfileOK creates a UpdateUserProfileOK with default headers values

func (*UpdateUserProfileOK) Error

func (o *UpdateUserProfileOK) Error() string

type UpdateUserProfileParams

type UpdateUserProfileParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Profile
	  Only email, realname and comment can be modified.

	*/
	Profile *model.UserProfile
	/*UserID
	  Registered user ID

	*/
	UserID int64

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

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

func NewUpdateUserProfileParams

func NewUpdateUserProfileParams() *UpdateUserProfileParams

NewUpdateUserProfileParams creates a new UpdateUserProfileParams object with the default values initialized.

func NewUpdateUserProfileParamsWithContext

func NewUpdateUserProfileParamsWithContext(ctx context.Context) *UpdateUserProfileParams

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

func NewUpdateUserProfileParamsWithHTTPClient

func NewUpdateUserProfileParamsWithHTTPClient(client *http.Client) *UpdateUserProfileParams

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

func NewUpdateUserProfileParamsWithTimeout

func NewUpdateUserProfileParamsWithTimeout(timeout time.Duration) *UpdateUserProfileParams

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

func (*UpdateUserProfileParams) SetContext

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

SetContext adds the context to the update user profile params

func (*UpdateUserProfileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update user profile params

func (*UpdateUserProfileParams) SetProfile

func (o *UpdateUserProfileParams) SetProfile(profile *model.UserProfile)

SetProfile adds the profile to the update user profile params

func (*UpdateUserProfileParams) SetTimeout

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

SetTimeout adds the timeout to the update user profile params

func (*UpdateUserProfileParams) SetUserID

func (o *UpdateUserProfileParams) SetUserID(userID int64)

SetUserID adds the userId to the update user profile params

func (*UpdateUserProfileParams) SetXRequestID

func (o *UpdateUserProfileParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the update user profile params

func (*UpdateUserProfileParams) WithContext

WithContext adds the context to the update user profile params

func (*UpdateUserProfileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update user profile params

func (*UpdateUserProfileParams) WithProfile

WithProfile adds the profile to the update user profile params

func (*UpdateUserProfileParams) WithTimeout

WithTimeout adds the timeout to the update user profile params

func (*UpdateUserProfileParams) WithUserID

func (o *UpdateUserProfileParams) WithUserID(userID int64) *UpdateUserProfileParams

WithUserID adds the userID to the update user profile params

func (*UpdateUserProfileParams) WithXRequestID

func (o *UpdateUserProfileParams) WithXRequestID(xRequestID *string) *UpdateUserProfileParams

WithXRequestID adds the xRequestID to the update user profile params

func (*UpdateUserProfileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateUserProfileReader

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

UpdateUserProfileReader is a Reader for the UpdateUserProfile structure.

func (*UpdateUserProfileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateUserProfileUnauthorized

type UpdateUserProfileUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

UpdateUserProfileUnauthorized handles this case with default header values.

Unauthorized

func NewUpdateUserProfileUnauthorized

func NewUpdateUserProfileUnauthorized() *UpdateUserProfileUnauthorized

NewUpdateUserProfileUnauthorized creates a UpdateUserProfileUnauthorized with default headers values

func (*UpdateUserProfileUnauthorized) Error

func (*UpdateUserProfileUnauthorized) GetPayload

func (o *UpdateUserProfileUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

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