user

package
v0.0.0-...-b68bda3 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   CreateUser creates a local user

	   This API can be used only when the authentication mode is for local DB.  When self registration is disabled.*/
	CreateUser(ctx context.Context, params *CreateUserParams) (*CreateUserCreated, 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.
	*/
	DeleteUser(ctx context.Context, params *DeleteUserParams) (*DeleteUserOK, error)
	/*
	   GetCurrentUserInfo gets current user info*/
	GetCurrentUserInfo(ctx context.Context, params *GetCurrentUserInfoParams) (*GetCurrentUserInfoOK, error)
	/*
	   GetCurrentUserPermissions gets current user permissions*/
	GetCurrentUserPermissions(ctx context.Context, params *GetCurrentUserPermissionsParams) (*GetCurrentUserPermissionsOK, error)
	/*
	   GetUser gets a user s profile*/
	GetUser(ctx context.Context, params *GetUserParams) (*GetUserOK, error)
	/*
	   ListUsers lists users*/
	ListUsers(ctx context.Context, params *ListUsersParams) (*ListUsersOK, error)
	/*
	   SearchUsers searches users by username

	   This endpoint is to search the users by username.  It's open for all authenticated requests.
	*/
	SearchUsers(ctx context.Context, params *SearchUsersParams) (*SearchUsersOK, 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.*/
	SetCliSecret(ctx context.Context, params *SetCliSecretParams) (*SetCliSecretOK, error)
	/*
	   SetUserSysAdmin updates a registered user to change to be an administrator of harbor*/
	SetUserSysAdmin(ctx context.Context, params *SetUserSysAdminParams) (*SetUserSysAdminOK, 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.
	*/
	UpdateUserPassword(ctx context.Context, params *UpdateUserPasswordParams) (*UpdateUserPasswordOK, error)
	/*
	   UpdateUserProfile updates user s profile*/
	UpdateUserProfile(ctx context.Context, params *UpdateUserProfileParams) (*UpdateUserProfileOK, error)
}

API is the interface of the user client

type Client

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

Client for user API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new user API client.

func (*Client) CreateUser

func (a *Client) CreateUser(ctx context.Context, params *CreateUserParams) (*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(ctx context.Context, params *DeleteUserParams) (*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(ctx context.Context, params *GetCurrentUserInfoParams) (*GetCurrentUserInfoOK, error)

GetCurrentUserInfo gets current user info

func (*Client) GetCurrentUserPermissions

func (a *Client) GetCurrentUserPermissions(ctx context.Context, params *GetCurrentUserPermissionsParams) (*GetCurrentUserPermissionsOK, error)

GetCurrentUserPermissions gets current user permissions

func (*Client) GetUser

func (a *Client) GetUser(ctx context.Context, params *GetUserParams) (*GetUserOK, error)

GetUser gets a user s profile

func (*Client) ListUsers

func (a *Client) ListUsers(ctx context.Context, params *ListUsersParams) (*ListUsersOK, error)

ListUsers lists users

func (*Client) SearchUsers

func (a *Client) SearchUsers(ctx context.Context, params *SearchUsersParams) (*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(ctx context.Context, params *SetCliSecretParams) (*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) SetUserSysAdmin

func (a *Client) SetUserSysAdmin(ctx context.Context, params *SetUserSysAdminParams) (*SetUserSysAdminOK, error)

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

func (*Client) UpdateUserPassword

func (a *Client) UpdateUserPassword(ctx context.Context, params *UpdateUserPasswordParams) (*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(ctx context.Context, params *UpdateUserProfileParams) (*UpdateUserProfileOK, error)

UpdateUserProfile updates user s profile

type CreateUserBadRequest

type CreateUserBadRequest struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Bad request

func NewCreateUserBadRequest

func NewCreateUserBadRequest() *CreateUserBadRequest

NewCreateUserBadRequest creates a CreateUserBadRequest with default headers values

func (*CreateUserBadRequest) Code

func (o *CreateUserBadRequest) Code() int

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

func (*CreateUserBadRequest) Error

func (o *CreateUserBadRequest) Error() string

func (*CreateUserBadRequest) GetPayload

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

func (*CreateUserBadRequest) IsClientError

func (o *CreateUserBadRequest) IsClientError() bool

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

func (*CreateUserBadRequest) IsCode

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

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

func (*CreateUserBadRequest) IsRedirect

func (o *CreateUserBadRequest) IsRedirect() bool

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

func (*CreateUserBadRequest) IsServerError

func (o *CreateUserBadRequest) IsServerError() bool

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

func (*CreateUserBadRequest) IsSuccess

func (o *CreateUserBadRequest) IsSuccess() bool

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

func (*CreateUserBadRequest) String

func (o *CreateUserBadRequest) String() string

type CreateUserConflict

type CreateUserConflict struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Conflict

func NewCreateUserConflict

func NewCreateUserConflict() *CreateUserConflict

NewCreateUserConflict creates a CreateUserConflict with default headers values

func (*CreateUserConflict) Code

func (o *CreateUserConflict) Code() int

Code gets the status code for the create user conflict response

func (*CreateUserConflict) Error

func (o *CreateUserConflict) Error() string

func (*CreateUserConflict) GetPayload

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

func (*CreateUserConflict) IsClientError

func (o *CreateUserConflict) IsClientError() bool

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

func (*CreateUserConflict) IsCode

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

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

func (*CreateUserConflict) IsRedirect

func (o *CreateUserConflict) IsRedirect() bool

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

func (*CreateUserConflict) IsServerError

func (o *CreateUserConflict) IsServerError() bool

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

func (*CreateUserConflict) IsSuccess

func (o *CreateUserConflict) IsSuccess() bool

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

func (*CreateUserConflict) String

func (o *CreateUserConflict) String() string

type CreateUserCreated

type CreateUserCreated struct {

	/* The location of the resource
	 */
	Location string

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

CreateUserCreated describes a response with status code 201, with default header values.

Created

func NewCreateUserCreated

func NewCreateUserCreated() *CreateUserCreated

NewCreateUserCreated creates a CreateUserCreated with default headers values

func (*CreateUserCreated) Code

func (o *CreateUserCreated) Code() int

Code gets the status code for the create user created response

func (*CreateUserCreated) Error

func (o *CreateUserCreated) Error() string

func (*CreateUserCreated) IsClientError

func (o *CreateUserCreated) IsClientError() bool

IsClientError returns true when this create user created response has a 4xx status code

func (*CreateUserCreated) IsCode

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

IsCode returns true when this create user created response a status code equal to that given

func (*CreateUserCreated) IsRedirect

func (o *CreateUserCreated) IsRedirect() bool

IsRedirect returns true when this create user created response has a 3xx status code

func (*CreateUserCreated) IsServerError

func (o *CreateUserCreated) IsServerError() bool

IsServerError returns true when this create user created response has a 5xx status code

func (*CreateUserCreated) IsSuccess

func (o *CreateUserCreated) IsSuccess() bool

IsSuccess returns true when this create user created response has a 2xx status code

func (*CreateUserCreated) String

func (o *CreateUserCreated) String() string

type CreateUserForbidden

type CreateUserForbidden struct {
}

CreateUserForbidden describes a response with status code 403, 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) Code

func (o *CreateUserForbidden) Code() int

Code gets the status code for the create user forbidden response

func (*CreateUserForbidden) Error

func (o *CreateUserForbidden) Error() string

func (*CreateUserForbidden) IsClientError

func (o *CreateUserForbidden) IsClientError() bool

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

func (*CreateUserForbidden) IsCode

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

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

func (*CreateUserForbidden) IsRedirect

func (o *CreateUserForbidden) IsRedirect() bool

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

func (*CreateUserForbidden) IsServerError

func (o *CreateUserForbidden) IsServerError() bool

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

func (*CreateUserForbidden) IsSuccess

func (o *CreateUserForbidden) IsSuccess() bool

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

func (*CreateUserForbidden) String

func (o *CreateUserForbidden) String() string

type CreateUserInternalServerError

type CreateUserInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Internal server error

func NewCreateUserInternalServerError

func NewCreateUserInternalServerError() *CreateUserInternalServerError

NewCreateUserInternalServerError creates a CreateUserInternalServerError with default headers values

func (*CreateUserInternalServerError) Code

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

func (*CreateUserInternalServerError) Error

func (*CreateUserInternalServerError) GetPayload

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

func (*CreateUserInternalServerError) IsClientError

func (o *CreateUserInternalServerError) IsClientError() bool

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

func (*CreateUserInternalServerError) IsCode

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

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

func (*CreateUserInternalServerError) IsRedirect

func (o *CreateUserInternalServerError) IsRedirect() bool

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

func (*CreateUserInternalServerError) IsServerError

func (o *CreateUserInternalServerError) IsServerError() bool

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

func (*CreateUserInternalServerError) IsSuccess

func (o *CreateUserInternalServerError) IsSuccess() bool

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

func (*CreateUserInternalServerError) String

type CreateUserParams

type CreateUserParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* UserReq.

	   The new user
	*/
	UserReq *models.UserCreationReq `js:"userReq"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 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 NewCreateUserParamsWithContext

func NewCreateUserParamsWithContext(ctx context.Context) *CreateUserParams

NewCreateUserParamsWithContext creates a new CreateUserParams object with 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 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 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) SetDefaults

func (o *CreateUserParams) SetDefaults()

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

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

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 *models.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) WithDefaults

func (o *CreateUserParams) WithDefaults() *CreateUserParams

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

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

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 *models.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 *models.Errors
}

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

Unauthorized

func NewCreateUserUnauthorized

func NewCreateUserUnauthorized() *CreateUserUnauthorized

NewCreateUserUnauthorized creates a CreateUserUnauthorized with default headers values

func (*CreateUserUnauthorized) Code

func (o *CreateUserUnauthorized) Code() int

Code gets the status code for the create user unauthorized response

func (*CreateUserUnauthorized) Error

func (o *CreateUserUnauthorized) Error() string

func (*CreateUserUnauthorized) GetPayload

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

func (*CreateUserUnauthorized) IsClientError

func (o *CreateUserUnauthorized) IsClientError() bool

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

func (*CreateUserUnauthorized) IsCode

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

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

func (*CreateUserUnauthorized) IsRedirect

func (o *CreateUserUnauthorized) IsRedirect() bool

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

func (*CreateUserUnauthorized) IsServerError

func (o *CreateUserUnauthorized) IsServerError() bool

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

func (*CreateUserUnauthorized) IsSuccess

func (o *CreateUserUnauthorized) IsSuccess() bool

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

func (*CreateUserUnauthorized) String

func (o *CreateUserUnauthorized) String() string

type DeleteUserForbidden

type DeleteUserForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewDeleteUserForbidden

func NewDeleteUserForbidden() *DeleteUserForbidden

NewDeleteUserForbidden creates a DeleteUserForbidden with default headers values

func (*DeleteUserForbidden) Code

func (o *DeleteUserForbidden) Code() int

Code gets the status code for the delete user forbidden response

func (*DeleteUserForbidden) Error

func (o *DeleteUserForbidden) Error() string

func (*DeleteUserForbidden) GetPayload

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

func (*DeleteUserForbidden) IsClientError

func (o *DeleteUserForbidden) IsClientError() bool

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

func (*DeleteUserForbidden) IsCode

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

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

func (*DeleteUserForbidden) IsRedirect

func (o *DeleteUserForbidden) IsRedirect() bool

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

func (*DeleteUserForbidden) IsServerError

func (o *DeleteUserForbidden) IsServerError() bool

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

func (*DeleteUserForbidden) IsSuccess

func (o *DeleteUserForbidden) IsSuccess() bool

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

func (*DeleteUserForbidden) String

func (o *DeleteUserForbidden) String() string

type DeleteUserInternalServerError

type DeleteUserInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Internal server error

func NewDeleteUserInternalServerError

func NewDeleteUserInternalServerError() *DeleteUserInternalServerError

NewDeleteUserInternalServerError creates a DeleteUserInternalServerError with default headers values

func (*DeleteUserInternalServerError) Code

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

func (*DeleteUserInternalServerError) Error

func (*DeleteUserInternalServerError) GetPayload

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

func (*DeleteUserInternalServerError) IsClientError

func (o *DeleteUserInternalServerError) IsClientError() bool

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

func (*DeleteUserInternalServerError) IsCode

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

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

func (*DeleteUserInternalServerError) IsRedirect

func (o *DeleteUserInternalServerError) IsRedirect() bool

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

func (*DeleteUserInternalServerError) IsServerError

func (o *DeleteUserInternalServerError) IsServerError() bool

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

func (*DeleteUserInternalServerError) IsSuccess

func (o *DeleteUserInternalServerError) IsSuccess() bool

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

func (*DeleteUserInternalServerError) String

type DeleteUserNotFound

type DeleteUserNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

DeleteUserNotFound describes a response with status code 404, with default header values.

Not found

func NewDeleteUserNotFound

func NewDeleteUserNotFound() *DeleteUserNotFound

NewDeleteUserNotFound creates a DeleteUserNotFound with default headers values

func (*DeleteUserNotFound) Code

func (o *DeleteUserNotFound) Code() int

Code gets the status code for the delete user not found response

func (*DeleteUserNotFound) Error

func (o *DeleteUserNotFound) Error() string

func (*DeleteUserNotFound) GetPayload

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

func (*DeleteUserNotFound) IsClientError

func (o *DeleteUserNotFound) IsClientError() bool

IsClientError returns true when this delete user not found response has a 4xx status code

func (*DeleteUserNotFound) IsCode

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

IsCode returns true when this delete user not found response a status code equal to that given

func (*DeleteUserNotFound) IsRedirect

func (o *DeleteUserNotFound) IsRedirect() bool

IsRedirect returns true when this delete user not found response has a 3xx status code

func (*DeleteUserNotFound) IsServerError

func (o *DeleteUserNotFound) IsServerError() bool

IsServerError returns true when this delete user not found response has a 5xx status code

func (*DeleteUserNotFound) IsSuccess

func (o *DeleteUserNotFound) IsSuccess() bool

IsSuccess returns true when this delete user not found response has a 2xx status code

func (*DeleteUserNotFound) String

func (o *DeleteUserNotFound) String() string

type DeleteUserOK

type DeleteUserOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

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

Success

func NewDeleteUserOK

func NewDeleteUserOK() *DeleteUserOK

NewDeleteUserOK creates a DeleteUserOK with default headers values

func (*DeleteUserOK) Code

func (o *DeleteUserOK) Code() int

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

func (*DeleteUserOK) Error

func (o *DeleteUserOK) Error() string

func (*DeleteUserOK) IsClientError

func (o *DeleteUserOK) IsClientError() bool

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

func (*DeleteUserOK) IsCode

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

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

func (*DeleteUserOK) IsRedirect

func (o *DeleteUserOK) IsRedirect() bool

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

func (*DeleteUserOK) IsServerError

func (o *DeleteUserOK) IsServerError() bool

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

func (*DeleteUserOK) IsSuccess

func (o *DeleteUserOK) IsSuccess() bool

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

func (*DeleteUserOK) String

func (o *DeleteUserOK) String() string

type DeleteUserParams

type DeleteUserParams struct {

	/* UserID.

	   User ID for marking as to be removed.

	   Format: int
	*/
	UserID int64 `js:"userID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 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 NewDeleteUserParamsWithContext

func NewDeleteUserParamsWithContext(ctx context.Context) *DeleteUserParams

NewDeleteUserParamsWithContext creates a new DeleteUserParams object with 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 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 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) SetDefaults

func (o *DeleteUserParams) SetDefaults()

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

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

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) WithContext

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

WithContext adds the context to the delete user params

func (*DeleteUserParams) WithDefaults

func (o *DeleteUserParams) WithDefaults() *DeleteUserParams

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

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

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) 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 *models.Errors
}

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

Unauthorized

func NewDeleteUserUnauthorized

func NewDeleteUserUnauthorized() *DeleteUserUnauthorized

NewDeleteUserUnauthorized creates a DeleteUserUnauthorized with default headers values

func (*DeleteUserUnauthorized) Code

func (o *DeleteUserUnauthorized) Code() int

Code gets the status code for the delete user unauthorized response

func (*DeleteUserUnauthorized) Error

func (o *DeleteUserUnauthorized) Error() string

func (*DeleteUserUnauthorized) GetPayload

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

func (*DeleteUserUnauthorized) IsClientError

func (o *DeleteUserUnauthorized) IsClientError() bool

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

func (*DeleteUserUnauthorized) IsCode

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

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

func (*DeleteUserUnauthorized) IsRedirect

func (o *DeleteUserUnauthorized) IsRedirect() bool

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

func (*DeleteUserUnauthorized) IsServerError

func (o *DeleteUserUnauthorized) IsServerError() bool

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

func (*DeleteUserUnauthorized) IsSuccess

func (o *DeleteUserUnauthorized) IsSuccess() bool

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

func (*DeleteUserUnauthorized) String

func (o *DeleteUserUnauthorized) String() string

type GetCurrentUserInfoInternalServerError

type GetCurrentUserInfoInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Internal server error

func NewGetCurrentUserInfoInternalServerError

func NewGetCurrentUserInfoInternalServerError() *GetCurrentUserInfoInternalServerError

NewGetCurrentUserInfoInternalServerError creates a GetCurrentUserInfoInternalServerError with default headers values

func (*GetCurrentUserInfoInternalServerError) Code

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

func (*GetCurrentUserInfoInternalServerError) Error

func (*GetCurrentUserInfoInternalServerError) GetPayload

func (*GetCurrentUserInfoInternalServerError) IsClientError

func (o *GetCurrentUserInfoInternalServerError) IsClientError() bool

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

func (*GetCurrentUserInfoInternalServerError) IsCode

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

func (*GetCurrentUserInfoInternalServerError) IsRedirect

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

func (*GetCurrentUserInfoInternalServerError) IsServerError

func (o *GetCurrentUserInfoInternalServerError) IsServerError() bool

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

func (*GetCurrentUserInfoInternalServerError) IsSuccess

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

func (*GetCurrentUserInfoInternalServerError) String

type GetCurrentUserInfoOK

type GetCurrentUserInfoOK struct {
	Payload *models.UserResp
}

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

Get current user information successfully.

func NewGetCurrentUserInfoOK

func NewGetCurrentUserInfoOK() *GetCurrentUserInfoOK

NewGetCurrentUserInfoOK creates a GetCurrentUserInfoOK with default headers values

func (*GetCurrentUserInfoOK) Code

func (o *GetCurrentUserInfoOK) Code() int

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

func (*GetCurrentUserInfoOK) Error

func (o *GetCurrentUserInfoOK) Error() string

func (*GetCurrentUserInfoOK) GetPayload

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

func (*GetCurrentUserInfoOK) IsClientError

func (o *GetCurrentUserInfoOK) IsClientError() bool

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

func (*GetCurrentUserInfoOK) IsCode

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

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

func (*GetCurrentUserInfoOK) IsRedirect

func (o *GetCurrentUserInfoOK) IsRedirect() bool

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

func (*GetCurrentUserInfoOK) IsServerError

func (o *GetCurrentUserInfoOK) IsServerError() bool

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

func (*GetCurrentUserInfoOK) IsSuccess

func (o *GetCurrentUserInfoOK) IsSuccess() bool

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

func (*GetCurrentUserInfoOK) String

func (o *GetCurrentUserInfoOK) String() string

type GetCurrentUserInfoParams

type GetCurrentUserInfoParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 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 NewGetCurrentUserInfoParamsWithContext

func NewGetCurrentUserInfoParamsWithContext(ctx context.Context) *GetCurrentUserInfoParams

NewGetCurrentUserInfoParamsWithContext creates a new GetCurrentUserInfoParams object with 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 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 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) SetDefaults

func (o *GetCurrentUserInfoParams) SetDefaults()

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

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

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) WithDefaults

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

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

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 *models.Errors
}

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

Unauthorized

func NewGetCurrentUserInfoUnauthorized

func NewGetCurrentUserInfoUnauthorized() *GetCurrentUserInfoUnauthorized

NewGetCurrentUserInfoUnauthorized creates a GetCurrentUserInfoUnauthorized with default headers values

func (*GetCurrentUserInfoUnauthorized) Code

Code gets the status code for the get current user info unauthorized response

func (*GetCurrentUserInfoUnauthorized) Error

func (*GetCurrentUserInfoUnauthorized) GetPayload

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

func (*GetCurrentUserInfoUnauthorized) IsClientError

func (o *GetCurrentUserInfoUnauthorized) IsClientError() bool

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

func (*GetCurrentUserInfoUnauthorized) IsCode

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

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

func (*GetCurrentUserInfoUnauthorized) IsRedirect

func (o *GetCurrentUserInfoUnauthorized) IsRedirect() bool

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

func (*GetCurrentUserInfoUnauthorized) IsServerError

func (o *GetCurrentUserInfoUnauthorized) IsServerError() bool

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

func (*GetCurrentUserInfoUnauthorized) IsSuccess

func (o *GetCurrentUserInfoUnauthorized) IsSuccess() bool

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

func (*GetCurrentUserInfoUnauthorized) String

type GetCurrentUserPermissionsInternalServerError

type GetCurrentUserPermissionsInternalServerError struct {
}

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

Internal errors.

func NewGetCurrentUserPermissionsInternalServerError

func NewGetCurrentUserPermissionsInternalServerError() *GetCurrentUserPermissionsInternalServerError

NewGetCurrentUserPermissionsInternalServerError creates a GetCurrentUserPermissionsInternalServerError with default headers values

func (*GetCurrentUserPermissionsInternalServerError) Code

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

func (*GetCurrentUserPermissionsInternalServerError) Error

func (*GetCurrentUserPermissionsInternalServerError) IsClientError

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

func (*GetCurrentUserPermissionsInternalServerError) IsCode

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

func (*GetCurrentUserPermissionsInternalServerError) IsRedirect

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

func (*GetCurrentUserPermissionsInternalServerError) IsServerError

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

func (*GetCurrentUserPermissionsInternalServerError) IsSuccess

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

func (*GetCurrentUserPermissionsInternalServerError) String

type GetCurrentUserPermissionsOK

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

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

Get current user permission successfully.

func NewGetCurrentUserPermissionsOK

func NewGetCurrentUserPermissionsOK() *GetCurrentUserPermissionsOK

NewGetCurrentUserPermissionsOK creates a GetCurrentUserPermissionsOK with default headers values

func (*GetCurrentUserPermissionsOK) Code

func (o *GetCurrentUserPermissionsOK) Code() int

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

func (*GetCurrentUserPermissionsOK) Error

func (*GetCurrentUserPermissionsOK) GetPayload

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

func (*GetCurrentUserPermissionsOK) IsClientError

func (o *GetCurrentUserPermissionsOK) IsClientError() bool

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

func (*GetCurrentUserPermissionsOK) IsCode

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

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

func (*GetCurrentUserPermissionsOK) IsRedirect

func (o *GetCurrentUserPermissionsOK) IsRedirect() bool

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

func (*GetCurrentUserPermissionsOK) IsServerError

func (o *GetCurrentUserPermissionsOK) IsServerError() bool

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

func (*GetCurrentUserPermissionsOK) IsSuccess

func (o *GetCurrentUserPermissionsOK) IsSuccess() bool

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

func (*GetCurrentUserPermissionsOK) String

func (o *GetCurrentUserPermissionsOK) String() string

type GetCurrentUserPermissionsParams

type GetCurrentUserPermissionsParams struct {

	/* 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 `js:"relative"`

	/* Scope.

	   The scope for the permission
	*/
	Scope *string `js:"scope"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 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 NewGetCurrentUserPermissionsParamsWithContext

func NewGetCurrentUserPermissionsParamsWithContext(ctx context.Context) *GetCurrentUserPermissionsParams

NewGetCurrentUserPermissionsParamsWithContext creates a new GetCurrentUserPermissionsParams object with 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 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 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) SetDefaults

func (o *GetCurrentUserPermissionsParams) SetDefaults()

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

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

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) WithContext

WithContext adds the context to the get current user permissions params

func (*GetCurrentUserPermissionsParams) WithDefaults

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

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

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) 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 describes a response with status code 401, 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) Code

Code gets the status code for the get current user permissions unauthorized response

func (*GetCurrentUserPermissionsUnauthorized) Error

func (*GetCurrentUserPermissionsUnauthorized) IsClientError

func (o *GetCurrentUserPermissionsUnauthorized) IsClientError() bool

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

func (*GetCurrentUserPermissionsUnauthorized) IsCode

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

func (*GetCurrentUserPermissionsUnauthorized) IsRedirect

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

func (*GetCurrentUserPermissionsUnauthorized) IsServerError

func (o *GetCurrentUserPermissionsUnauthorized) IsServerError() bool

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

func (*GetCurrentUserPermissionsUnauthorized) IsSuccess

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

func (*GetCurrentUserPermissionsUnauthorized) String

type GetUserForbidden

type GetUserForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewGetUserForbidden

func NewGetUserForbidden() *GetUserForbidden

NewGetUserForbidden creates a GetUserForbidden with default headers values

func (*GetUserForbidden) Code

func (o *GetUserForbidden) Code() int

Code gets the status code for the get user forbidden response

func (*GetUserForbidden) Error

func (o *GetUserForbidden) Error() string

func (*GetUserForbidden) GetPayload

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

func (*GetUserForbidden) IsClientError

func (o *GetUserForbidden) IsClientError() bool

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

func (*GetUserForbidden) IsCode

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

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

func (*GetUserForbidden) IsRedirect

func (o *GetUserForbidden) IsRedirect() bool

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

func (*GetUserForbidden) IsServerError

func (o *GetUserForbidden) IsServerError() bool

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

func (*GetUserForbidden) IsSuccess

func (o *GetUserForbidden) IsSuccess() bool

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

func (*GetUserForbidden) String

func (o *GetUserForbidden) String() string

type GetUserInternalServerError

type GetUserInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Internal server error

func NewGetUserInternalServerError

func NewGetUserInternalServerError() *GetUserInternalServerError

NewGetUserInternalServerError creates a GetUserInternalServerError with default headers values

func (*GetUserInternalServerError) Code

func (o *GetUserInternalServerError) Code() int

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

func (*GetUserInternalServerError) Error

func (*GetUserInternalServerError) GetPayload

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

func (*GetUserInternalServerError) IsClientError

func (o *GetUserInternalServerError) IsClientError() bool

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

func (*GetUserInternalServerError) IsCode

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

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

func (*GetUserInternalServerError) IsRedirect

func (o *GetUserInternalServerError) IsRedirect() bool

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

func (*GetUserInternalServerError) IsServerError

func (o *GetUserInternalServerError) IsServerError() bool

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

func (*GetUserInternalServerError) IsSuccess

func (o *GetUserInternalServerError) IsSuccess() bool

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

func (*GetUserInternalServerError) String

func (o *GetUserInternalServerError) String() string

type GetUserNotFound

type GetUserNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

GetUserNotFound describes a response with status code 404, with default header values.

Not found

func NewGetUserNotFound

func NewGetUserNotFound() *GetUserNotFound

NewGetUserNotFound creates a GetUserNotFound with default headers values

func (*GetUserNotFound) Code

func (o *GetUserNotFound) Code() int

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

func (*GetUserNotFound) Error

func (o *GetUserNotFound) Error() string

func (*GetUserNotFound) GetPayload

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

func (*GetUserNotFound) IsClientError

func (o *GetUserNotFound) IsClientError() bool

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

func (*GetUserNotFound) IsCode

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

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

func (*GetUserNotFound) IsRedirect

func (o *GetUserNotFound) IsRedirect() bool

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

func (*GetUserNotFound) IsServerError

func (o *GetUserNotFound) IsServerError() bool

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

func (*GetUserNotFound) IsSuccess

func (o *GetUserNotFound) IsSuccess() bool

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

func (*GetUserNotFound) String

func (o *GetUserNotFound) String() string

type GetUserOK

type GetUserOK struct {
	Payload *models.UserResp
}

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

Get user's info successfully.

func NewGetUserOK

func NewGetUserOK() *GetUserOK

NewGetUserOK creates a GetUserOK with default headers values

func (*GetUserOK) Code

func (o *GetUserOK) Code() int

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

func (*GetUserOK) Error

func (o *GetUserOK) Error() string

func (*GetUserOK) GetPayload

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

func (*GetUserOK) IsClientError

func (o *GetUserOK) IsClientError() bool

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

func (*GetUserOK) IsCode

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

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

func (*GetUserOK) IsRedirect

func (o *GetUserOK) IsRedirect() bool

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

func (*GetUserOK) IsServerError

func (o *GetUserOK) IsServerError() bool

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

func (*GetUserOK) IsSuccess

func (o *GetUserOK) IsSuccess() bool

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

func (*GetUserOK) String

func (o *GetUserOK) String() string

type GetUserParams

type GetUserParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	// UserID.
	//
	// Format: int
	UserID int64 `js:"userID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// contains filtered or unexported fields
}

GetUserParams contains all the parameters to send to the API endpoint

for the get user operation.

Typically these are written to a http.Request.

func NewGetUserParams

func NewGetUserParams() *GetUserParams

NewGetUserParams creates a new GetUserParams object, with the default timeout for this client.

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

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

func NewGetUserParamsWithContext

func NewGetUserParamsWithContext(ctx context.Context) *GetUserParams

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

func NewGetUserParamsWithHTTPClient

func NewGetUserParamsWithHTTPClient(client *http.Client) *GetUserParams

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

func NewGetUserParamsWithTimeout

func NewGetUserParamsWithTimeout(timeout time.Duration) *GetUserParams

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

func (*GetUserParams) SetContext

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

SetContext adds the context to the get user params

func (*GetUserParams) SetDefaults

func (o *GetUserParams) SetDefaults()

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

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

func (*GetUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) SetTimeout

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

SetTimeout adds the timeout to the get user params

func (*GetUserParams) 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) WithDefaults

func (o *GetUserParams) WithDefaults() *GetUserParams

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

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

func (*GetUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get user params

func (*GetUserParams) WithTimeout

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

WithTimeout adds the timeout to the get user params

func (*GetUserParams) 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 *models.Errors
}

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

Unauthorized

func NewGetUserUnauthorized

func NewGetUserUnauthorized() *GetUserUnauthorized

NewGetUserUnauthorized creates a GetUserUnauthorized with default headers values

func (*GetUserUnauthorized) Code

func (o *GetUserUnauthorized) Code() int

Code gets the status code for the get user unauthorized response

func (*GetUserUnauthorized) Error

func (o *GetUserUnauthorized) Error() string

func (*GetUserUnauthorized) GetPayload

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

func (*GetUserUnauthorized) IsClientError

func (o *GetUserUnauthorized) IsClientError() bool

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

func (*GetUserUnauthorized) IsCode

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

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

func (*GetUserUnauthorized) IsRedirect

func (o *GetUserUnauthorized) IsRedirect() bool

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

func (*GetUserUnauthorized) IsServerError

func (o *GetUserUnauthorized) IsServerError() bool

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

func (*GetUserUnauthorized) IsSuccess

func (o *GetUserUnauthorized) IsSuccess() bool

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

func (*GetUserUnauthorized) String

func (o *GetUserUnauthorized) String() string

type ListUsersForbidden

type ListUsersForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewListUsersForbidden

func NewListUsersForbidden() *ListUsersForbidden

NewListUsersForbidden creates a ListUsersForbidden with default headers values

func (*ListUsersForbidden) Code

func (o *ListUsersForbidden) Code() int

Code gets the status code for the list users forbidden response

func (*ListUsersForbidden) Error

func (o *ListUsersForbidden) Error() string

func (*ListUsersForbidden) GetPayload

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

func (*ListUsersForbidden) IsClientError

func (o *ListUsersForbidden) IsClientError() bool

IsClientError returns true when this list users forbidden response has a 4xx status code

func (*ListUsersForbidden) IsCode

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

IsCode returns true when this list users forbidden response a status code equal to that given

func (*ListUsersForbidden) IsRedirect

func (o *ListUsersForbidden) IsRedirect() bool

IsRedirect returns true when this list users forbidden response has a 3xx status code

func (*ListUsersForbidden) IsServerError

func (o *ListUsersForbidden) IsServerError() bool

IsServerError returns true when this list users forbidden response has a 5xx status code

func (*ListUsersForbidden) IsSuccess

func (o *ListUsersForbidden) IsSuccess() bool

IsSuccess returns true when this list users forbidden response has a 2xx status code

func (*ListUsersForbidden) String

func (o *ListUsersForbidden) String() string

type ListUsersInternalServerError

type ListUsersInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Internal server error

func NewListUsersInternalServerError

func NewListUsersInternalServerError() *ListUsersInternalServerError

NewListUsersInternalServerError creates a ListUsersInternalServerError with default headers values

func (*ListUsersInternalServerError) Code

Code gets the status code for the list users internal server error response

func (*ListUsersInternalServerError) Error

func (*ListUsersInternalServerError) GetPayload

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

func (*ListUsersInternalServerError) IsClientError

func (o *ListUsersInternalServerError) IsClientError() bool

IsClientError returns true when this list users internal server error response has a 4xx status code

func (*ListUsersInternalServerError) IsCode

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

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

func (*ListUsersInternalServerError) IsRedirect

func (o *ListUsersInternalServerError) IsRedirect() bool

IsRedirect returns true when this list users internal server error response has a 3xx status code

func (*ListUsersInternalServerError) IsServerError

func (o *ListUsersInternalServerError) IsServerError() bool

IsServerError returns true when this list users internal server error response has a 5xx status code

func (*ListUsersInternalServerError) IsSuccess

func (o *ListUsersInternalServerError) IsSuccess() bool

IsSuccess returns true when this list users internal server error response has a 2xx status code

func (*ListUsersInternalServerError) String

type ListUsersOK

type ListUsersOK struct {

	/* Link to previous page and next page
	 */
	Link string

	/* The total count of users
	 */
	XTotalCount int64

	Payload []*models.UserResp
}

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

return the list of users.

func NewListUsersOK

func NewListUsersOK() *ListUsersOK

NewListUsersOK creates a ListUsersOK with default headers values

func (*ListUsersOK) Code

func (o *ListUsersOK) Code() int

Code gets the status code for the list users o k response

func (*ListUsersOK) Error

func (o *ListUsersOK) Error() string

func (*ListUsersOK) GetPayload

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

func (*ListUsersOK) IsClientError

func (o *ListUsersOK) IsClientError() bool

IsClientError returns true when this list users o k response has a 4xx status code

func (*ListUsersOK) IsCode

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

IsCode returns true when this list users o k response a status code equal to that given

func (*ListUsersOK) IsRedirect

func (o *ListUsersOK) IsRedirect() bool

IsRedirect returns true when this list users o k response has a 3xx status code

func (*ListUsersOK) IsServerError

func (o *ListUsersOK) IsServerError() bool

IsServerError returns true when this list users o k response has a 5xx status code

func (*ListUsersOK) IsSuccess

func (o *ListUsersOK) IsSuccess() bool

IsSuccess returns true when this list users o k response has a 2xx status code

func (*ListUsersOK) String

func (o *ListUsersOK) String() string

type ListUsersParams

type ListUsersParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* Page.

	   The page number

	   Format: int64
	   Default: 1
	*/
	Page *int64 `js:"page"`

	/* PageSize.

	   The size of per page

	   Format: int64
	   Default: 10
	*/
	PageSize *int64 `js:"pageSize"`

	/* 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 `js:"q"`

	/* 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 `js:"sort"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 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 NewListUsersParamsWithContext

func NewListUsersParamsWithContext(ctx context.Context) *ListUsersParams

NewListUsersParamsWithContext creates a new ListUsersParams object with 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 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 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) SetDefaults

func (o *ListUsersParams) SetDefaults()

SetDefaults hydrates default values in the list users params (not the query body).

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

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) WithDefaults

func (o *ListUsersParams) WithDefaults() *ListUsersParams

WithDefaults hydrates default values in the list users params (not the query body).

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

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 *models.Errors
}

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

Unauthorized

func NewListUsersUnauthorized

func NewListUsersUnauthorized() *ListUsersUnauthorized

NewListUsersUnauthorized creates a ListUsersUnauthorized with default headers values

func (*ListUsersUnauthorized) Code

func (o *ListUsersUnauthorized) Code() int

Code gets the status code for the list users unauthorized response

func (*ListUsersUnauthorized) Error

func (o *ListUsersUnauthorized) Error() string

func (*ListUsersUnauthorized) GetPayload

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

func (*ListUsersUnauthorized) IsClientError

func (o *ListUsersUnauthorized) IsClientError() bool

IsClientError returns true when this list users unauthorized response has a 4xx status code

func (*ListUsersUnauthorized) IsCode

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

IsCode returns true when this list users unauthorized response a status code equal to that given

func (*ListUsersUnauthorized) IsRedirect

func (o *ListUsersUnauthorized) IsRedirect() bool

IsRedirect returns true when this list users unauthorized response has a 3xx status code

func (*ListUsersUnauthorized) IsServerError

func (o *ListUsersUnauthorized) IsServerError() bool

IsServerError returns true when this list users unauthorized response has a 5xx status code

func (*ListUsersUnauthorized) IsSuccess

func (o *ListUsersUnauthorized) IsSuccess() bool

IsSuccess returns true when this list users unauthorized response has a 2xx status code

func (*ListUsersUnauthorized) String

func (o *ListUsersUnauthorized) String() string

type SearchUsersInternalServerError

type SearchUsersInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Internal server error

func NewSearchUsersInternalServerError

func NewSearchUsersInternalServerError() *SearchUsersInternalServerError

NewSearchUsersInternalServerError creates a SearchUsersInternalServerError with default headers values

func (*SearchUsersInternalServerError) Code

Code gets the status code for the search users internal server error response

func (*SearchUsersInternalServerError) Error

func (*SearchUsersInternalServerError) GetPayload

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

func (*SearchUsersInternalServerError) IsClientError

func (o *SearchUsersInternalServerError) IsClientError() bool

IsClientError returns true when this search users internal server error response has a 4xx status code

func (*SearchUsersInternalServerError) IsCode

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

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

func (*SearchUsersInternalServerError) IsRedirect

func (o *SearchUsersInternalServerError) IsRedirect() bool

IsRedirect returns true when this search users internal server error response has a 3xx status code

func (*SearchUsersInternalServerError) IsServerError

func (o *SearchUsersInternalServerError) IsServerError() bool

IsServerError returns true when this search users internal server error response has a 5xx status code

func (*SearchUsersInternalServerError) IsSuccess

func (o *SearchUsersInternalServerError) IsSuccess() bool

IsSuccess returns true when this search users internal server error response has a 2xx status code

func (*SearchUsersInternalServerError) String

type SearchUsersOK

type SearchUsersOK struct {

	/* Link to previous page and next page
	 */
	Link string

	/* The total count of available items
	 */
	XTotalCount int64

	Payload []*models.UserSearchRespItem
}

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

Search users by username successfully.

func NewSearchUsersOK

func NewSearchUsersOK() *SearchUsersOK

NewSearchUsersOK creates a SearchUsersOK with default headers values

func (*SearchUsersOK) Code

func (o *SearchUsersOK) Code() int

Code gets the status code for the search users o k response

func (*SearchUsersOK) Error

func (o *SearchUsersOK) Error() string

func (*SearchUsersOK) GetPayload

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

func (*SearchUsersOK) IsClientError

func (o *SearchUsersOK) IsClientError() bool

IsClientError returns true when this search users o k response has a 4xx status code

func (*SearchUsersOK) IsCode

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

IsCode returns true when this search users o k response a status code equal to that given

func (*SearchUsersOK) IsRedirect

func (o *SearchUsersOK) IsRedirect() bool

IsRedirect returns true when this search users o k response has a 3xx status code

func (*SearchUsersOK) IsServerError

func (o *SearchUsersOK) IsServerError() bool

IsServerError returns true when this search users o k response has a 5xx status code

func (*SearchUsersOK) IsSuccess

func (o *SearchUsersOK) IsSuccess() bool

IsSuccess returns true when this search users o k response has a 2xx status code

func (*SearchUsersOK) String

func (o *SearchUsersOK) String() string

type SearchUsersParams

type SearchUsersParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* Page.

	   The page number

	   Format: int64
	   Default: 1
	*/
	Page *int64 `js:"page"`

	/* PageSize.

	   The size of per page

	   Format: int64
	   Default: 10
	*/
	PageSize *int64 `js:"pageSize"`

	/* Username.

	   Username for filtering results.
	*/
	Username string `js:"username"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 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 NewSearchUsersParamsWithContext

func NewSearchUsersParamsWithContext(ctx context.Context) *SearchUsersParams

NewSearchUsersParamsWithContext creates a new SearchUsersParams object with 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 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 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) SetDefaults

func (o *SearchUsersParams) SetDefaults()

SetDefaults hydrates default values in the search users params (not the query body).

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

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) WithDefaults

func (o *SearchUsersParams) WithDefaults() *SearchUsersParams

WithDefaults hydrates default values in the search users params (not the query body).

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

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 *models.Errors
}

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

Unauthorized

func NewSearchUsersUnauthorized

func NewSearchUsersUnauthorized() *SearchUsersUnauthorized

NewSearchUsersUnauthorized creates a SearchUsersUnauthorized with default headers values

func (*SearchUsersUnauthorized) Code

func (o *SearchUsersUnauthorized) Code() int

Code gets the status code for the search users unauthorized response

func (*SearchUsersUnauthorized) Error

func (o *SearchUsersUnauthorized) Error() string

func (*SearchUsersUnauthorized) GetPayload

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

func (*SearchUsersUnauthorized) IsClientError

func (o *SearchUsersUnauthorized) IsClientError() bool

IsClientError returns true when this search users unauthorized response has a 4xx status code

func (*SearchUsersUnauthorized) IsCode

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

IsCode returns true when this search users unauthorized response a status code equal to that given

func (*SearchUsersUnauthorized) IsRedirect

func (o *SearchUsersUnauthorized) IsRedirect() bool

IsRedirect returns true when this search users unauthorized response has a 3xx status code

func (*SearchUsersUnauthorized) IsServerError

func (o *SearchUsersUnauthorized) IsServerError() bool

IsServerError returns true when this search users unauthorized response has a 5xx status code

func (*SearchUsersUnauthorized) IsSuccess

func (o *SearchUsersUnauthorized) IsSuccess() bool

IsSuccess returns true when this search users unauthorized response has a 2xx status code

func (*SearchUsersUnauthorized) String

func (o *SearchUsersUnauthorized) String() string

type SetCliSecretBadRequest

type SetCliSecretBadRequest struct {
}

SetCliSecretBadRequest describes a response with status code 400, 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) Code

func (o *SetCliSecretBadRequest) Code() int

Code gets the status code for the set cli secret bad request response

func (*SetCliSecretBadRequest) Error

func (o *SetCliSecretBadRequest) Error() string

func (*SetCliSecretBadRequest) IsClientError

func (o *SetCliSecretBadRequest) IsClientError() bool

IsClientError returns true when this set cli secret bad request response has a 4xx status code

func (*SetCliSecretBadRequest) IsCode

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

IsCode returns true when this set cli secret bad request response a status code equal to that given

func (*SetCliSecretBadRequest) IsRedirect

func (o *SetCliSecretBadRequest) IsRedirect() bool

IsRedirect returns true when this set cli secret bad request response has a 3xx status code

func (*SetCliSecretBadRequest) IsServerError

func (o *SetCliSecretBadRequest) IsServerError() bool

IsServerError returns true when this set cli secret bad request response has a 5xx status code

func (*SetCliSecretBadRequest) IsSuccess

func (o *SetCliSecretBadRequest) IsSuccess() bool

IsSuccess returns true when this set cli secret bad request response has a 2xx status code

func (*SetCliSecretBadRequest) String

func (o *SetCliSecretBadRequest) String() string

type SetCliSecretForbidden

type SetCliSecretForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewSetCliSecretForbidden

func NewSetCliSecretForbidden() *SetCliSecretForbidden

NewSetCliSecretForbidden creates a SetCliSecretForbidden with default headers values

func (*SetCliSecretForbidden) Code

func (o *SetCliSecretForbidden) Code() int

Code gets the status code for the set cli secret forbidden response

func (*SetCliSecretForbidden) Error

func (o *SetCliSecretForbidden) Error() string

func (*SetCliSecretForbidden) GetPayload

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

func (*SetCliSecretForbidden) IsClientError

func (o *SetCliSecretForbidden) IsClientError() bool

IsClientError returns true when this set cli secret forbidden response has a 4xx status code

func (*SetCliSecretForbidden) IsCode

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

IsCode returns true when this set cli secret forbidden response a status code equal to that given

func (*SetCliSecretForbidden) IsRedirect

func (o *SetCliSecretForbidden) IsRedirect() bool

IsRedirect returns true when this set cli secret forbidden response has a 3xx status code

func (*SetCliSecretForbidden) IsServerError

func (o *SetCliSecretForbidden) IsServerError() bool

IsServerError returns true when this set cli secret forbidden response has a 5xx status code

func (*SetCliSecretForbidden) IsSuccess

func (o *SetCliSecretForbidden) IsSuccess() bool

IsSuccess returns true when this set cli secret forbidden response has a 2xx status code

func (*SetCliSecretForbidden) String

func (o *SetCliSecretForbidden) String() string

type SetCliSecretInternalServerError

type SetCliSecretInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Internal server error

func NewSetCliSecretInternalServerError

func NewSetCliSecretInternalServerError() *SetCliSecretInternalServerError

NewSetCliSecretInternalServerError creates a SetCliSecretInternalServerError with default headers values

func (*SetCliSecretInternalServerError) Code

Code gets the status code for the set cli secret internal server error response

func (*SetCliSecretInternalServerError) Error

func (*SetCliSecretInternalServerError) GetPayload

func (*SetCliSecretInternalServerError) IsClientError

func (o *SetCliSecretInternalServerError) IsClientError() bool

IsClientError returns true when this set cli secret internal server error response has a 4xx status code

func (*SetCliSecretInternalServerError) IsCode

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

IsCode returns true when this set cli secret internal server error response a status code equal to that given

func (*SetCliSecretInternalServerError) IsRedirect

func (o *SetCliSecretInternalServerError) IsRedirect() bool

IsRedirect returns true when this set cli secret internal server error response has a 3xx status code

func (*SetCliSecretInternalServerError) IsServerError

func (o *SetCliSecretInternalServerError) IsServerError() bool

IsServerError returns true when this set cli secret internal server error response has a 5xx status code

func (*SetCliSecretInternalServerError) IsSuccess

func (o *SetCliSecretInternalServerError) IsSuccess() bool

IsSuccess returns true when this set cli secret internal server error response has a 2xx status code

func (*SetCliSecretInternalServerError) String

type SetCliSecretNotFound

type SetCliSecretNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SetCliSecretNotFound describes a response with status code 404, with default header values.

Not found

func NewSetCliSecretNotFound

func NewSetCliSecretNotFound() *SetCliSecretNotFound

NewSetCliSecretNotFound creates a SetCliSecretNotFound with default headers values

func (*SetCliSecretNotFound) Code

func (o *SetCliSecretNotFound) Code() int

Code gets the status code for the set cli secret not found response

func (*SetCliSecretNotFound) Error

func (o *SetCliSecretNotFound) Error() string

func (*SetCliSecretNotFound) GetPayload

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

func (*SetCliSecretNotFound) IsClientError

func (o *SetCliSecretNotFound) IsClientError() bool

IsClientError returns true when this set cli secret not found response has a 4xx status code

func (*SetCliSecretNotFound) IsCode

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

IsCode returns true when this set cli secret not found response a status code equal to that given

func (*SetCliSecretNotFound) IsRedirect

func (o *SetCliSecretNotFound) IsRedirect() bool

IsRedirect returns true when this set cli secret not found response has a 3xx status code

func (*SetCliSecretNotFound) IsServerError

func (o *SetCliSecretNotFound) IsServerError() bool

IsServerError returns true when this set cli secret not found response has a 5xx status code

func (*SetCliSecretNotFound) IsSuccess

func (o *SetCliSecretNotFound) IsSuccess() bool

IsSuccess returns true when this set cli secret not found response has a 2xx status code

func (*SetCliSecretNotFound) String

func (o *SetCliSecretNotFound) String() string

type SetCliSecretOK

type SetCliSecretOK struct {
}

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

The secret is successfully updated

func NewSetCliSecretOK

func NewSetCliSecretOK() *SetCliSecretOK

NewSetCliSecretOK creates a SetCliSecretOK with default headers values

func (*SetCliSecretOK) Code

func (o *SetCliSecretOK) Code() int

Code gets the status code for the set cli secret o k response

func (*SetCliSecretOK) Error

func (o *SetCliSecretOK) Error() string

func (*SetCliSecretOK) IsClientError

func (o *SetCliSecretOK) IsClientError() bool

IsClientError returns true when this set cli secret o k response has a 4xx status code

func (*SetCliSecretOK) IsCode

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

IsCode returns true when this set cli secret o k response a status code equal to that given

func (*SetCliSecretOK) IsRedirect

func (o *SetCliSecretOK) IsRedirect() bool

IsRedirect returns true when this set cli secret o k response has a 3xx status code

func (*SetCliSecretOK) IsServerError

func (o *SetCliSecretOK) IsServerError() bool

IsServerError returns true when this set cli secret o k response has a 5xx status code

func (*SetCliSecretOK) IsSuccess

func (o *SetCliSecretOK) IsSuccess() bool

IsSuccess returns true when this set cli secret o k response has a 2xx status code

func (*SetCliSecretOK) String

func (o *SetCliSecretOK) String() string

type SetCliSecretParams

type SetCliSecretParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	// Secret.
	Secret *models.OIDCCliSecretReq `js:"secret"`

	/* UserID.

	   User ID

	   Format: int
	*/
	UserID int64 `js:"userID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 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 NewSetCliSecretParamsWithContext

func NewSetCliSecretParamsWithContext(ctx context.Context) *SetCliSecretParams

NewSetCliSecretParamsWithContext creates a new SetCliSecretParams object with 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 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 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) SetDefaults

func (o *SetCliSecretParams) SetDefaults()

SetDefaults hydrates default values in the set cli secret params (not the query body).

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

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 *models.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) WithDefaults

func (o *SetCliSecretParams) WithDefaults() *SetCliSecretParams

WithDefaults hydrates default values in the set cli secret params (not the query body).

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

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 describes a response with status code 412, 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) Code

Code gets the status code for the set cli secret precondition failed response

func (*SetCliSecretPreconditionFailed) Error

func (*SetCliSecretPreconditionFailed) IsClientError

func (o *SetCliSecretPreconditionFailed) IsClientError() bool

IsClientError returns true when this set cli secret precondition failed response has a 4xx status code

func (*SetCliSecretPreconditionFailed) IsCode

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

IsCode returns true when this set cli secret precondition failed response a status code equal to that given

func (*SetCliSecretPreconditionFailed) IsRedirect

func (o *SetCliSecretPreconditionFailed) IsRedirect() bool

IsRedirect returns true when this set cli secret precondition failed response has a 3xx status code

func (*SetCliSecretPreconditionFailed) IsServerError

func (o *SetCliSecretPreconditionFailed) IsServerError() bool

IsServerError returns true when this set cli secret precondition failed response has a 5xx status code

func (*SetCliSecretPreconditionFailed) IsSuccess

func (o *SetCliSecretPreconditionFailed) IsSuccess() bool

IsSuccess returns true when this set cli secret precondition failed response has a 2xx status code

func (*SetCliSecretPreconditionFailed) String

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 *models.Errors
}

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

Unauthorized

func NewSetCliSecretUnauthorized

func NewSetCliSecretUnauthorized() *SetCliSecretUnauthorized

NewSetCliSecretUnauthorized creates a SetCliSecretUnauthorized with default headers values

func (*SetCliSecretUnauthorized) Code

func (o *SetCliSecretUnauthorized) Code() int

Code gets the status code for the set cli secret unauthorized response

func (*SetCliSecretUnauthorized) Error

func (o *SetCliSecretUnauthorized) Error() string

func (*SetCliSecretUnauthorized) GetPayload

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

func (*SetCliSecretUnauthorized) IsClientError

func (o *SetCliSecretUnauthorized) IsClientError() bool

IsClientError returns true when this set cli secret unauthorized response has a 4xx status code

func (*SetCliSecretUnauthorized) IsCode

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

IsCode returns true when this set cli secret unauthorized response a status code equal to that given

func (*SetCliSecretUnauthorized) IsRedirect

func (o *SetCliSecretUnauthorized) IsRedirect() bool

IsRedirect returns true when this set cli secret unauthorized response has a 3xx status code

func (*SetCliSecretUnauthorized) IsServerError

func (o *SetCliSecretUnauthorized) IsServerError() bool

IsServerError returns true when this set cli secret unauthorized response has a 5xx status code

func (*SetCliSecretUnauthorized) IsSuccess

func (o *SetCliSecretUnauthorized) IsSuccess() bool

IsSuccess returns true when this set cli secret unauthorized response has a 2xx status code

func (*SetCliSecretUnauthorized) String

func (o *SetCliSecretUnauthorized) String() string

type SetUserSysAdminForbidden

type SetUserSysAdminForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewSetUserSysAdminForbidden

func NewSetUserSysAdminForbidden() *SetUserSysAdminForbidden

NewSetUserSysAdminForbidden creates a SetUserSysAdminForbidden with default headers values

func (*SetUserSysAdminForbidden) Code

func (o *SetUserSysAdminForbidden) Code() int

Code gets the status code for the set user sys admin forbidden response

func (*SetUserSysAdminForbidden) Error

func (o *SetUserSysAdminForbidden) Error() string

func (*SetUserSysAdminForbidden) GetPayload

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

func (*SetUserSysAdminForbidden) IsClientError

func (o *SetUserSysAdminForbidden) IsClientError() bool

IsClientError returns true when this set user sys admin forbidden response has a 4xx status code

func (*SetUserSysAdminForbidden) IsCode

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

IsCode returns true when this set user sys admin forbidden response a status code equal to that given

func (*SetUserSysAdminForbidden) IsRedirect

func (o *SetUserSysAdminForbidden) IsRedirect() bool

IsRedirect returns true when this set user sys admin forbidden response has a 3xx status code

func (*SetUserSysAdminForbidden) IsServerError

func (o *SetUserSysAdminForbidden) IsServerError() bool

IsServerError returns true when this set user sys admin forbidden response has a 5xx status code

func (*SetUserSysAdminForbidden) IsSuccess

func (o *SetUserSysAdminForbidden) IsSuccess() bool

IsSuccess returns true when this set user sys admin forbidden response has a 2xx status code

func (*SetUserSysAdminForbidden) String

func (o *SetUserSysAdminForbidden) String() string

type SetUserSysAdminInternalServerError

type SetUserSysAdminInternalServerError struct {
}

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

Unexpected internal errors.

func NewSetUserSysAdminInternalServerError

func NewSetUserSysAdminInternalServerError() *SetUserSysAdminInternalServerError

NewSetUserSysAdminInternalServerError creates a SetUserSysAdminInternalServerError with default headers values

func (*SetUserSysAdminInternalServerError) Code

Code gets the status code for the set user sys admin internal server error response

func (*SetUserSysAdminInternalServerError) Error

func (*SetUserSysAdminInternalServerError) IsClientError

func (o *SetUserSysAdminInternalServerError) IsClientError() bool

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

func (*SetUserSysAdminInternalServerError) IsCode

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

func (*SetUserSysAdminInternalServerError) IsRedirect

func (o *SetUserSysAdminInternalServerError) IsRedirect() bool

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

func (*SetUserSysAdminInternalServerError) IsServerError

func (o *SetUserSysAdminInternalServerError) IsServerError() bool

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

func (*SetUserSysAdminInternalServerError) IsSuccess

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

func (*SetUserSysAdminInternalServerError) String

type SetUserSysAdminNotFound

type SetUserSysAdminNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

SetUserSysAdminNotFound describes a response with status code 404, with default header values.

Not found

func NewSetUserSysAdminNotFound

func NewSetUserSysAdminNotFound() *SetUserSysAdminNotFound

NewSetUserSysAdminNotFound creates a SetUserSysAdminNotFound with default headers values

func (*SetUserSysAdminNotFound) Code

func (o *SetUserSysAdminNotFound) Code() int

Code gets the status code for the set user sys admin not found response

func (*SetUserSysAdminNotFound) Error

func (o *SetUserSysAdminNotFound) Error() string

func (*SetUserSysAdminNotFound) GetPayload

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

func (*SetUserSysAdminNotFound) IsClientError

func (o *SetUserSysAdminNotFound) IsClientError() bool

IsClientError returns true when this set user sys admin not found response has a 4xx status code

func (*SetUserSysAdminNotFound) IsCode

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

IsCode returns true when this set user sys admin not found response a status code equal to that given

func (*SetUserSysAdminNotFound) IsRedirect

func (o *SetUserSysAdminNotFound) IsRedirect() bool

IsRedirect returns true when this set user sys admin not found response has a 3xx status code

func (*SetUserSysAdminNotFound) IsServerError

func (o *SetUserSysAdminNotFound) IsServerError() bool

IsServerError returns true when this set user sys admin not found response has a 5xx status code

func (*SetUserSysAdminNotFound) IsSuccess

func (o *SetUserSysAdminNotFound) IsSuccess() bool

IsSuccess returns true when this set user sys admin not found response has a 2xx status code

func (*SetUserSysAdminNotFound) String

func (o *SetUserSysAdminNotFound) String() string

type SetUserSysAdminOK

type SetUserSysAdminOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

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

Success

func NewSetUserSysAdminOK

func NewSetUserSysAdminOK() *SetUserSysAdminOK

NewSetUserSysAdminOK creates a SetUserSysAdminOK with default headers values

func (*SetUserSysAdminOK) Code

func (o *SetUserSysAdminOK) Code() int

Code gets the status code for the set user sys admin o k response

func (*SetUserSysAdminOK) Error

func (o *SetUserSysAdminOK) Error() string

func (*SetUserSysAdminOK) IsClientError

func (o *SetUserSysAdminOK) IsClientError() bool

IsClientError returns true when this set user sys admin o k response has a 4xx status code

func (*SetUserSysAdminOK) IsCode

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

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

func (*SetUserSysAdminOK) IsRedirect

func (o *SetUserSysAdminOK) IsRedirect() bool

IsRedirect returns true when this set user sys admin o k response has a 3xx status code

func (*SetUserSysAdminOK) IsServerError

func (o *SetUserSysAdminOK) IsServerError() bool

IsServerError returns true when this set user sys admin o k response has a 5xx status code

func (*SetUserSysAdminOK) IsSuccess

func (o *SetUserSysAdminOK) IsSuccess() bool

IsSuccess returns true when this set user sys admin o k response has a 2xx status code

func (*SetUserSysAdminOK) String

func (o *SetUserSysAdminOK) String() string

type SetUserSysAdminParams

type SetUserSysAdminParams struct {

	/* SysadminFlag.

	   Toggle a user to admin or not.
	*/
	SysadminFlag *models.UserSysAdminFlag `js:"sysadminFlag"`

	// UserID.
	//
	// Format: int
	UserID int64 `js:"userID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 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 NewSetUserSysAdminParamsWithContext

func NewSetUserSysAdminParamsWithContext(ctx context.Context) *SetUserSysAdminParams

NewSetUserSysAdminParamsWithContext creates a new SetUserSysAdminParams object with 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 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 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) SetDefaults

func (o *SetUserSysAdminParams) SetDefaults()

SetDefaults hydrates default values in the set user sys admin params (not the query body).

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

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 *models.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) WithContext

WithContext adds the context to the set user sys admin params

func (*SetUserSysAdminParams) WithDefaults

func (o *SetUserSysAdminParams) WithDefaults() *SetUserSysAdminParams

WithDefaults hydrates default values in the set user sys admin params (not the query body).

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

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 *models.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) 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 *models.Errors
}

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

Unauthorized

func NewSetUserSysAdminUnauthorized

func NewSetUserSysAdminUnauthorized() *SetUserSysAdminUnauthorized

NewSetUserSysAdminUnauthorized creates a SetUserSysAdminUnauthorized with default headers values

func (*SetUserSysAdminUnauthorized) Code

func (o *SetUserSysAdminUnauthorized) Code() int

Code gets the status code for the set user sys admin unauthorized response

func (*SetUserSysAdminUnauthorized) Error

func (*SetUserSysAdminUnauthorized) GetPayload

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

func (*SetUserSysAdminUnauthorized) IsClientError

func (o *SetUserSysAdminUnauthorized) IsClientError() bool

IsClientError returns true when this set user sys admin unauthorized response has a 4xx status code

func (*SetUserSysAdminUnauthorized) IsCode

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

IsCode returns true when this set user sys admin unauthorized response a status code equal to that given

func (*SetUserSysAdminUnauthorized) IsRedirect

func (o *SetUserSysAdminUnauthorized) IsRedirect() bool

IsRedirect returns true when this set user sys admin unauthorized response has a 3xx status code

func (*SetUserSysAdminUnauthorized) IsServerError

func (o *SetUserSysAdminUnauthorized) IsServerError() bool

IsServerError returns true when this set user sys admin unauthorized response has a 5xx status code

func (*SetUserSysAdminUnauthorized) IsSuccess

func (o *SetUserSysAdminUnauthorized) IsSuccess() bool

IsSuccess returns true when this set user sys admin unauthorized response has a 2xx status code

func (*SetUserSysAdminUnauthorized) String

func (o *SetUserSysAdminUnauthorized) String() string

type UpdateUserPasswordBadRequest

type UpdateUserPasswordBadRequest struct {
}

UpdateUserPasswordBadRequest describes a response with status code 400, 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) Code

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

func (*UpdateUserPasswordBadRequest) Error

func (*UpdateUserPasswordBadRequest) IsClientError

func (o *UpdateUserPasswordBadRequest) IsClientError() bool

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

func (*UpdateUserPasswordBadRequest) IsCode

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

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

func (*UpdateUserPasswordBadRequest) IsRedirect

func (o *UpdateUserPasswordBadRequest) IsRedirect() bool

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

func (*UpdateUserPasswordBadRequest) IsServerError

func (o *UpdateUserPasswordBadRequest) IsServerError() bool

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

func (*UpdateUserPasswordBadRequest) IsSuccess

func (o *UpdateUserPasswordBadRequest) IsSuccess() bool

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

func (*UpdateUserPasswordBadRequest) String

type UpdateUserPasswordForbidden

type UpdateUserPasswordForbidden struct {
}

UpdateUserPasswordForbidden describes a response with status code 403, 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) Code

func (o *UpdateUserPasswordForbidden) Code() int

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

func (*UpdateUserPasswordForbidden) Error

func (*UpdateUserPasswordForbidden) IsClientError

func (o *UpdateUserPasswordForbidden) IsClientError() bool

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

func (*UpdateUserPasswordForbidden) IsCode

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

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

func (*UpdateUserPasswordForbidden) IsRedirect

func (o *UpdateUserPasswordForbidden) IsRedirect() bool

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

func (*UpdateUserPasswordForbidden) IsServerError

func (o *UpdateUserPasswordForbidden) IsServerError() bool

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

func (*UpdateUserPasswordForbidden) IsSuccess

func (o *UpdateUserPasswordForbidden) IsSuccess() bool

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

func (*UpdateUserPasswordForbidden) String

func (o *UpdateUserPasswordForbidden) String() string

type UpdateUserPasswordInternalServerError

type UpdateUserPasswordInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Internal server error

func NewUpdateUserPasswordInternalServerError

func NewUpdateUserPasswordInternalServerError() *UpdateUserPasswordInternalServerError

NewUpdateUserPasswordInternalServerError creates a UpdateUserPasswordInternalServerError with default headers values

func (*UpdateUserPasswordInternalServerError) Code

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

func (*UpdateUserPasswordInternalServerError) Error

func (*UpdateUserPasswordInternalServerError) GetPayload

func (*UpdateUserPasswordInternalServerError) IsClientError

func (o *UpdateUserPasswordInternalServerError) IsClientError() bool

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

func (*UpdateUserPasswordInternalServerError) IsCode

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

func (*UpdateUserPasswordInternalServerError) IsRedirect

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

func (*UpdateUserPasswordInternalServerError) IsServerError

func (o *UpdateUserPasswordInternalServerError) IsServerError() bool

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

func (*UpdateUserPasswordInternalServerError) IsSuccess

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

func (*UpdateUserPasswordInternalServerError) String

type UpdateUserPasswordOK

type UpdateUserPasswordOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

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

Success

func NewUpdateUserPasswordOK

func NewUpdateUserPasswordOK() *UpdateUserPasswordOK

NewUpdateUserPasswordOK creates a UpdateUserPasswordOK with default headers values

func (*UpdateUserPasswordOK) Code

func (o *UpdateUserPasswordOK) Code() int

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

func (*UpdateUserPasswordOK) Error

func (o *UpdateUserPasswordOK) Error() string

func (*UpdateUserPasswordOK) IsClientError

func (o *UpdateUserPasswordOK) IsClientError() bool

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

func (*UpdateUserPasswordOK) IsCode

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

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

func (*UpdateUserPasswordOK) IsRedirect

func (o *UpdateUserPasswordOK) IsRedirect() bool

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

func (*UpdateUserPasswordOK) IsServerError

func (o *UpdateUserPasswordOK) IsServerError() bool

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

func (*UpdateUserPasswordOK) IsSuccess

func (o *UpdateUserPasswordOK) IsSuccess() bool

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

func (*UpdateUserPasswordOK) String

func (o *UpdateUserPasswordOK) String() string

type UpdateUserPasswordParams

type UpdateUserPasswordParams struct {

	/* Password.

	   Password to be updated, the attribute 'old_password' is optional when the API is called by the system administrator.
	*/
	Password *models.PasswordReq `js:"password"`

	// UserID.
	//
	// Format: int
	UserID int64 `js:"userID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 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 NewUpdateUserPasswordParamsWithContext

func NewUpdateUserPasswordParamsWithContext(ctx context.Context) *UpdateUserPasswordParams

NewUpdateUserPasswordParamsWithContext creates a new UpdateUserPasswordParams object with 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 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 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) SetDefaults

func (o *UpdateUserPasswordParams) SetDefaults()

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

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

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 *models.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) WithContext

WithContext adds the context to the update user password params

func (*UpdateUserPasswordParams) WithDefaults

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

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

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) 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 *models.Errors
}

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

Unauthorized

func NewUpdateUserPasswordUnauthorized

func NewUpdateUserPasswordUnauthorized() *UpdateUserPasswordUnauthorized

NewUpdateUserPasswordUnauthorized creates a UpdateUserPasswordUnauthorized with default headers values

func (*UpdateUserPasswordUnauthorized) Code

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

func (*UpdateUserPasswordUnauthorized) Error

func (*UpdateUserPasswordUnauthorized) GetPayload

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

func (*UpdateUserPasswordUnauthorized) IsClientError

func (o *UpdateUserPasswordUnauthorized) IsClientError() bool

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

func (*UpdateUserPasswordUnauthorized) IsCode

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

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

func (*UpdateUserPasswordUnauthorized) IsRedirect

func (o *UpdateUserPasswordUnauthorized) IsRedirect() bool

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

func (*UpdateUserPasswordUnauthorized) IsServerError

func (o *UpdateUserPasswordUnauthorized) IsServerError() bool

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

func (*UpdateUserPasswordUnauthorized) IsSuccess

func (o *UpdateUserPasswordUnauthorized) IsSuccess() bool

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

func (*UpdateUserPasswordUnauthorized) String

type UpdateUserProfileForbidden

type UpdateUserProfileForbidden struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Forbidden

func NewUpdateUserProfileForbidden

func NewUpdateUserProfileForbidden() *UpdateUserProfileForbidden

NewUpdateUserProfileForbidden creates a UpdateUserProfileForbidden with default headers values

func (*UpdateUserProfileForbidden) Code

func (o *UpdateUserProfileForbidden) Code() int

Code gets the status code for the update user profile forbidden response

func (*UpdateUserProfileForbidden) Error

func (*UpdateUserProfileForbidden) GetPayload

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

func (*UpdateUserProfileForbidden) IsClientError

func (o *UpdateUserProfileForbidden) IsClientError() bool

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

func (*UpdateUserProfileForbidden) IsCode

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

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

func (*UpdateUserProfileForbidden) IsRedirect

func (o *UpdateUserProfileForbidden) IsRedirect() bool

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

func (*UpdateUserProfileForbidden) IsServerError

func (o *UpdateUserProfileForbidden) IsServerError() bool

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

func (*UpdateUserProfileForbidden) IsSuccess

func (o *UpdateUserProfileForbidden) IsSuccess() bool

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

func (*UpdateUserProfileForbidden) String

func (o *UpdateUserProfileForbidden) String() string

type UpdateUserProfileInternalServerError

type UpdateUserProfileInternalServerError struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

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

Internal server error

func NewUpdateUserProfileInternalServerError

func NewUpdateUserProfileInternalServerError() *UpdateUserProfileInternalServerError

NewUpdateUserProfileInternalServerError creates a UpdateUserProfileInternalServerError with default headers values

func (*UpdateUserProfileInternalServerError) Code

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

func (*UpdateUserProfileInternalServerError) Error

func (*UpdateUserProfileInternalServerError) GetPayload

func (*UpdateUserProfileInternalServerError) IsClientError

func (o *UpdateUserProfileInternalServerError) IsClientError() bool

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

func (*UpdateUserProfileInternalServerError) IsCode

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

func (*UpdateUserProfileInternalServerError) IsRedirect

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

func (*UpdateUserProfileInternalServerError) IsServerError

func (o *UpdateUserProfileInternalServerError) IsServerError() bool

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

func (*UpdateUserProfileInternalServerError) IsSuccess

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

func (*UpdateUserProfileInternalServerError) String

type UpdateUserProfileNotFound

type UpdateUserProfileNotFound struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *models.Errors
}

UpdateUserProfileNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateUserProfileNotFound

func NewUpdateUserProfileNotFound() *UpdateUserProfileNotFound

NewUpdateUserProfileNotFound creates a UpdateUserProfileNotFound with default headers values

func (*UpdateUserProfileNotFound) Code

func (o *UpdateUserProfileNotFound) Code() int

Code gets the status code for the update user profile not found response

func (*UpdateUserProfileNotFound) Error

func (o *UpdateUserProfileNotFound) Error() string

func (*UpdateUserProfileNotFound) GetPayload

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

func (*UpdateUserProfileNotFound) IsClientError

func (o *UpdateUserProfileNotFound) IsClientError() bool

IsClientError returns true when this update user profile not found response has a 4xx status code

func (*UpdateUserProfileNotFound) IsCode

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

IsCode returns true when this update user profile not found response a status code equal to that given

func (*UpdateUserProfileNotFound) IsRedirect

func (o *UpdateUserProfileNotFound) IsRedirect() bool

IsRedirect returns true when this update user profile not found response has a 3xx status code

func (*UpdateUserProfileNotFound) IsServerError

func (o *UpdateUserProfileNotFound) IsServerError() bool

IsServerError returns true when this update user profile not found response has a 5xx status code

func (*UpdateUserProfileNotFound) IsSuccess

func (o *UpdateUserProfileNotFound) IsSuccess() bool

IsSuccess returns true when this update user profile not found response has a 2xx status code

func (*UpdateUserProfileNotFound) String

func (o *UpdateUserProfileNotFound) String() string

type UpdateUserProfileOK

type UpdateUserProfileOK struct {

	/* The ID of the corresponding request for the response
	 */
	XRequestID string
}

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

Success

func NewUpdateUserProfileOK

func NewUpdateUserProfileOK() *UpdateUserProfileOK

NewUpdateUserProfileOK creates a UpdateUserProfileOK with default headers values

func (*UpdateUserProfileOK) Code

func (o *UpdateUserProfileOK) Code() int

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

func (*UpdateUserProfileOK) Error

func (o *UpdateUserProfileOK) Error() string

func (*UpdateUserProfileOK) IsClientError

func (o *UpdateUserProfileOK) IsClientError() bool

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

func (*UpdateUserProfileOK) IsCode

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

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

func (*UpdateUserProfileOK) IsRedirect

func (o *UpdateUserProfileOK) IsRedirect() bool

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

func (*UpdateUserProfileOK) IsServerError

func (o *UpdateUserProfileOK) IsServerError() bool

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

func (*UpdateUserProfileOK) IsSuccess

func (o *UpdateUserProfileOK) IsSuccess() bool

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

func (*UpdateUserProfileOK) String

func (o *UpdateUserProfileOK) String() string

type UpdateUserProfileParams

type UpdateUserProfileParams struct {

	/* XRequestID.

	   An unique ID for the request
	*/
	XRequestID *string `js:"xRequestID"`

	/* Profile.

	   Only email, realname and comment can be modified.
	*/
	Profile *models.UserProfile `js:"profile"`

	/* UserID.

	   Registered user ID

	   Format: int
	*/
	UserID int64 `js:"userID"`

	Context    context.Context `js:"context"`
	HTTPClient *http.Client    `js:"httpClient"`
	// 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 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 NewUpdateUserProfileParamsWithContext

func NewUpdateUserProfileParamsWithContext(ctx context.Context) *UpdateUserProfileParams

NewUpdateUserProfileParamsWithContext creates a new UpdateUserProfileParams object with 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 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 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) SetDefaults

func (o *UpdateUserProfileParams) SetDefaults()

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

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

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 *models.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) WithDefaults

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

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

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 *models.Errors
}

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

Unauthorized

func NewUpdateUserProfileUnauthorized

func NewUpdateUserProfileUnauthorized() *UpdateUserProfileUnauthorized

NewUpdateUserProfileUnauthorized creates a UpdateUserProfileUnauthorized with default headers values

func (*UpdateUserProfileUnauthorized) Code

Code gets the status code for the update user profile unauthorized response

func (*UpdateUserProfileUnauthorized) Error

func (*UpdateUserProfileUnauthorized) GetPayload

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

func (*UpdateUserProfileUnauthorized) IsClientError

func (o *UpdateUserProfileUnauthorized) IsClientError() bool

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

func (*UpdateUserProfileUnauthorized) IsCode

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

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

func (*UpdateUserProfileUnauthorized) IsRedirect

func (o *UpdateUserProfileUnauthorized) IsRedirect() bool

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

func (*UpdateUserProfileUnauthorized) IsServerError

func (o *UpdateUserProfileUnauthorized) IsServerError() bool

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

func (*UpdateUserProfileUnauthorized) IsSuccess

func (o *UpdateUserProfileUnauthorized) IsSuccess() bool

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

func (*UpdateUserProfileUnauthorized) String

Jump to

Keyboard shortcuts

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