Documentation ¶
Index ¶
- type API
- type Client
- func (a *Client) CreateUser(ctx context.Context, params *CreateUserParams) (*CreateUserCreated, error)
- func (a *Client) DeleteUser(ctx context.Context, params *DeleteUserParams) (*DeleteUserOK, error)
- func (a *Client) GetCurrentUserInfo(ctx context.Context, params *GetCurrentUserInfoParams) (*GetCurrentUserInfoOK, error)
- func (a *Client) GetCurrentUserPermissions(ctx context.Context, params *GetCurrentUserPermissionsParams) (*GetCurrentUserPermissionsOK, error)
- func (a *Client) GetUser(ctx context.Context, params *GetUserParams) (*GetUserOK, error)
- func (a *Client) ListUsers(ctx context.Context, params *ListUsersParams) (*ListUsersOK, error)
- func (a *Client) SearchUsers(ctx context.Context, params *SearchUsersParams) (*SearchUsersOK, error)
- func (a *Client) SetCliSecret(ctx context.Context, params *SetCliSecretParams) (*SetCliSecretOK, error)
- func (a *Client) SetUserSysAdmin(ctx context.Context, params *SetUserSysAdminParams) (*SetUserSysAdminOK, error)
- func (a *Client) UpdateUserPassword(ctx context.Context, params *UpdateUserPasswordParams) (*UpdateUserPasswordOK, error)
- func (a *Client) UpdateUserProfile(ctx context.Context, params *UpdateUserProfileParams) (*UpdateUserProfileOK, error)
- type CreateUserBadRequest
- func (o *CreateUserBadRequest) Error() string
- func (o *CreateUserBadRequest) GetPayload() *models.Errors
- func (o *CreateUserBadRequest) IsClientError() bool
- func (o *CreateUserBadRequest) IsCode(code int) bool
- func (o *CreateUserBadRequest) IsRedirect() bool
- func (o *CreateUserBadRequest) IsServerError() bool
- func (o *CreateUserBadRequest) IsSuccess() bool
- func (o *CreateUserBadRequest) String() string
- type CreateUserConflict
- func (o *CreateUserConflict) Error() string
- func (o *CreateUserConflict) GetPayload() *models.Errors
- func (o *CreateUserConflict) IsClientError() bool
- func (o *CreateUserConflict) IsCode(code int) bool
- func (o *CreateUserConflict) IsRedirect() bool
- func (o *CreateUserConflict) IsServerError() bool
- func (o *CreateUserConflict) IsSuccess() bool
- func (o *CreateUserConflict) String() string
- type CreateUserCreated
- func (o *CreateUserCreated) Error() string
- func (o *CreateUserCreated) IsClientError() bool
- func (o *CreateUserCreated) IsCode(code int) bool
- func (o *CreateUserCreated) IsRedirect() bool
- func (o *CreateUserCreated) IsServerError() bool
- func (o *CreateUserCreated) IsSuccess() bool
- func (o *CreateUserCreated) String() string
- type CreateUserForbidden
- func (o *CreateUserForbidden) Error() string
- func (o *CreateUserForbidden) IsClientError() bool
- func (o *CreateUserForbidden) IsCode(code int) bool
- func (o *CreateUserForbidden) IsRedirect() bool
- func (o *CreateUserForbidden) IsServerError() bool
- func (o *CreateUserForbidden) IsSuccess() bool
- func (o *CreateUserForbidden) String() string
- type CreateUserInternalServerError
- func (o *CreateUserInternalServerError) Error() string
- func (o *CreateUserInternalServerError) GetPayload() *models.Errors
- func (o *CreateUserInternalServerError) IsClientError() bool
- func (o *CreateUserInternalServerError) IsCode(code int) bool
- func (o *CreateUserInternalServerError) IsRedirect() bool
- func (o *CreateUserInternalServerError) IsServerError() bool
- func (o *CreateUserInternalServerError) IsSuccess() bool
- func (o *CreateUserInternalServerError) String() string
- type CreateUserParams
- func (o *CreateUserParams) SetContext(ctx context.Context)
- func (o *CreateUserParams) SetDefaults()
- func (o *CreateUserParams) SetHTTPClient(client *http.Client)
- func (o *CreateUserParams) SetTimeout(timeout time.Duration)
- func (o *CreateUserParams) SetUserReq(userReq *models.UserCreationReq)
- func (o *CreateUserParams) SetXRequestID(xRequestID *string)
- func (o *CreateUserParams) WithContext(ctx context.Context) *CreateUserParams
- func (o *CreateUserParams) WithDefaults() *CreateUserParams
- func (o *CreateUserParams) WithHTTPClient(client *http.Client) *CreateUserParams
- func (o *CreateUserParams) WithTimeout(timeout time.Duration) *CreateUserParams
- func (o *CreateUserParams) WithUserReq(userReq *models.UserCreationReq) *CreateUserParams
- func (o *CreateUserParams) WithXRequestID(xRequestID *string) *CreateUserParams
- func (o *CreateUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateUserReader
- type CreateUserUnauthorized
- func (o *CreateUserUnauthorized) Error() string
- func (o *CreateUserUnauthorized) GetPayload() *models.Errors
- func (o *CreateUserUnauthorized) IsClientError() bool
- func (o *CreateUserUnauthorized) IsCode(code int) bool
- func (o *CreateUserUnauthorized) IsRedirect() bool
- func (o *CreateUserUnauthorized) IsServerError() bool
- func (o *CreateUserUnauthorized) IsSuccess() bool
- func (o *CreateUserUnauthorized) String() string
- type DeleteUserForbidden
- func (o *DeleteUserForbidden) Error() string
- func (o *DeleteUserForbidden) GetPayload() *models.Errors
- func (o *DeleteUserForbidden) IsClientError() bool
- func (o *DeleteUserForbidden) IsCode(code int) bool
- func (o *DeleteUserForbidden) IsRedirect() bool
- func (o *DeleteUserForbidden) IsServerError() bool
- func (o *DeleteUserForbidden) IsSuccess() bool
- func (o *DeleteUserForbidden) String() string
- type DeleteUserInternalServerError
- func (o *DeleteUserInternalServerError) Error() string
- func (o *DeleteUserInternalServerError) GetPayload() *models.Errors
- func (o *DeleteUserInternalServerError) IsClientError() bool
- func (o *DeleteUserInternalServerError) IsCode(code int) bool
- func (o *DeleteUserInternalServerError) IsRedirect() bool
- func (o *DeleteUserInternalServerError) IsServerError() bool
- func (o *DeleteUserInternalServerError) IsSuccess() bool
- func (o *DeleteUserInternalServerError) String() string
- type DeleteUserNotFound
- func (o *DeleteUserNotFound) Error() string
- func (o *DeleteUserNotFound) GetPayload() *models.Errors
- func (o *DeleteUserNotFound) IsClientError() bool
- func (o *DeleteUserNotFound) IsCode(code int) bool
- func (o *DeleteUserNotFound) IsRedirect() bool
- func (o *DeleteUserNotFound) IsServerError() bool
- func (o *DeleteUserNotFound) IsSuccess() bool
- func (o *DeleteUserNotFound) String() string
- type DeleteUserOK
- type DeleteUserParams
- func (o *DeleteUserParams) SetContext(ctx context.Context)
- func (o *DeleteUserParams) SetDefaults()
- func (o *DeleteUserParams) SetHTTPClient(client *http.Client)
- func (o *DeleteUserParams) SetTimeout(timeout time.Duration)
- func (o *DeleteUserParams) SetUserID(userID int64)
- func (o *DeleteUserParams) SetXRequestID(xRequestID *string)
- func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
- func (o *DeleteUserParams) WithDefaults() *DeleteUserParams
- func (o *DeleteUserParams) WithHTTPClient(client *http.Client) *DeleteUserParams
- func (o *DeleteUserParams) WithTimeout(timeout time.Duration) *DeleteUserParams
- func (o *DeleteUserParams) WithUserID(userID int64) *DeleteUserParams
- func (o *DeleteUserParams) WithXRequestID(xRequestID *string) *DeleteUserParams
- func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteUserReader
- type DeleteUserUnauthorized
- func (o *DeleteUserUnauthorized) Error() string
- func (o *DeleteUserUnauthorized) GetPayload() *models.Errors
- func (o *DeleteUserUnauthorized) IsClientError() bool
- func (o *DeleteUserUnauthorized) IsCode(code int) bool
- func (o *DeleteUserUnauthorized) IsRedirect() bool
- func (o *DeleteUserUnauthorized) IsServerError() bool
- func (o *DeleteUserUnauthorized) IsSuccess() bool
- func (o *DeleteUserUnauthorized) String() string
- type GetCurrentUserInfoInternalServerError
- func (o *GetCurrentUserInfoInternalServerError) Error() string
- func (o *GetCurrentUserInfoInternalServerError) GetPayload() *models.Errors
- func (o *GetCurrentUserInfoInternalServerError) IsClientError() bool
- func (o *GetCurrentUserInfoInternalServerError) IsCode(code int) bool
- func (o *GetCurrentUserInfoInternalServerError) IsRedirect() bool
- func (o *GetCurrentUserInfoInternalServerError) IsServerError() bool
- func (o *GetCurrentUserInfoInternalServerError) IsSuccess() bool
- func (o *GetCurrentUserInfoInternalServerError) String() string
- type GetCurrentUserInfoOK
- func (o *GetCurrentUserInfoOK) Error() string
- func (o *GetCurrentUserInfoOK) GetPayload() *models.UserResp
- func (o *GetCurrentUserInfoOK) IsClientError() bool
- func (o *GetCurrentUserInfoOK) IsCode(code int) bool
- func (o *GetCurrentUserInfoOK) IsRedirect() bool
- func (o *GetCurrentUserInfoOK) IsServerError() bool
- func (o *GetCurrentUserInfoOK) IsSuccess() bool
- func (o *GetCurrentUserInfoOK) String() string
- type GetCurrentUserInfoParams
- func NewGetCurrentUserInfoParams() *GetCurrentUserInfoParams
- func NewGetCurrentUserInfoParamsWithContext(ctx context.Context) *GetCurrentUserInfoParams
- func NewGetCurrentUserInfoParamsWithHTTPClient(client *http.Client) *GetCurrentUserInfoParams
- func NewGetCurrentUserInfoParamsWithTimeout(timeout time.Duration) *GetCurrentUserInfoParams
- func (o *GetCurrentUserInfoParams) SetContext(ctx context.Context)
- func (o *GetCurrentUserInfoParams) SetDefaults()
- func (o *GetCurrentUserInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetCurrentUserInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetCurrentUserInfoParams) SetXRequestID(xRequestID *string)
- func (o *GetCurrentUserInfoParams) WithContext(ctx context.Context) *GetCurrentUserInfoParams
- func (o *GetCurrentUserInfoParams) WithDefaults() *GetCurrentUserInfoParams
- func (o *GetCurrentUserInfoParams) WithHTTPClient(client *http.Client) *GetCurrentUserInfoParams
- func (o *GetCurrentUserInfoParams) WithTimeout(timeout time.Duration) *GetCurrentUserInfoParams
- func (o *GetCurrentUserInfoParams) WithXRequestID(xRequestID *string) *GetCurrentUserInfoParams
- func (o *GetCurrentUserInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCurrentUserInfoReader
- type GetCurrentUserInfoUnauthorized
- func (o *GetCurrentUserInfoUnauthorized) Error() string
- func (o *GetCurrentUserInfoUnauthorized) GetPayload() *models.Errors
- func (o *GetCurrentUserInfoUnauthorized) IsClientError() bool
- func (o *GetCurrentUserInfoUnauthorized) IsCode(code int) bool
- func (o *GetCurrentUserInfoUnauthorized) IsRedirect() bool
- func (o *GetCurrentUserInfoUnauthorized) IsServerError() bool
- func (o *GetCurrentUserInfoUnauthorized) IsSuccess() bool
- func (o *GetCurrentUserInfoUnauthorized) String() string
- type GetCurrentUserPermissionsInternalServerError
- func (o *GetCurrentUserPermissionsInternalServerError) Error() string
- func (o *GetCurrentUserPermissionsInternalServerError) IsClientError() bool
- func (o *GetCurrentUserPermissionsInternalServerError) IsCode(code int) bool
- func (o *GetCurrentUserPermissionsInternalServerError) IsRedirect() bool
- func (o *GetCurrentUserPermissionsInternalServerError) IsServerError() bool
- func (o *GetCurrentUserPermissionsInternalServerError) IsSuccess() bool
- func (o *GetCurrentUserPermissionsInternalServerError) String() string
- type GetCurrentUserPermissionsOK
- func (o *GetCurrentUserPermissionsOK) Error() string
- func (o *GetCurrentUserPermissionsOK) GetPayload() []*models.Permission
- func (o *GetCurrentUserPermissionsOK) IsClientError() bool
- func (o *GetCurrentUserPermissionsOK) IsCode(code int) bool
- func (o *GetCurrentUserPermissionsOK) IsRedirect() bool
- func (o *GetCurrentUserPermissionsOK) IsServerError() bool
- func (o *GetCurrentUserPermissionsOK) IsSuccess() bool
- func (o *GetCurrentUserPermissionsOK) String() string
- type GetCurrentUserPermissionsParams
- func NewGetCurrentUserPermissionsParams() *GetCurrentUserPermissionsParams
- func NewGetCurrentUserPermissionsParamsWithContext(ctx context.Context) *GetCurrentUserPermissionsParams
- func NewGetCurrentUserPermissionsParamsWithHTTPClient(client *http.Client) *GetCurrentUserPermissionsParams
- func NewGetCurrentUserPermissionsParamsWithTimeout(timeout time.Duration) *GetCurrentUserPermissionsParams
- func (o *GetCurrentUserPermissionsParams) SetContext(ctx context.Context)
- func (o *GetCurrentUserPermissionsParams) SetDefaults()
- func (o *GetCurrentUserPermissionsParams) SetHTTPClient(client *http.Client)
- func (o *GetCurrentUserPermissionsParams) SetRelative(relative *bool)
- func (o *GetCurrentUserPermissionsParams) SetScope(scope *string)
- func (o *GetCurrentUserPermissionsParams) SetTimeout(timeout time.Duration)
- func (o *GetCurrentUserPermissionsParams) SetXRequestID(xRequestID *string)
- func (o *GetCurrentUserPermissionsParams) WithContext(ctx context.Context) *GetCurrentUserPermissionsParams
- func (o *GetCurrentUserPermissionsParams) WithDefaults() *GetCurrentUserPermissionsParams
- func (o *GetCurrentUserPermissionsParams) WithHTTPClient(client *http.Client) *GetCurrentUserPermissionsParams
- func (o *GetCurrentUserPermissionsParams) WithRelative(relative *bool) *GetCurrentUserPermissionsParams
- func (o *GetCurrentUserPermissionsParams) WithScope(scope *string) *GetCurrentUserPermissionsParams
- func (o *GetCurrentUserPermissionsParams) WithTimeout(timeout time.Duration) *GetCurrentUserPermissionsParams
- func (o *GetCurrentUserPermissionsParams) WithXRequestID(xRequestID *string) *GetCurrentUserPermissionsParams
- func (o *GetCurrentUserPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCurrentUserPermissionsReader
- type GetCurrentUserPermissionsUnauthorized
- func (o *GetCurrentUserPermissionsUnauthorized) Error() string
- func (o *GetCurrentUserPermissionsUnauthorized) IsClientError() bool
- func (o *GetCurrentUserPermissionsUnauthorized) IsCode(code int) bool
- func (o *GetCurrentUserPermissionsUnauthorized) IsRedirect() bool
- func (o *GetCurrentUserPermissionsUnauthorized) IsServerError() bool
- func (o *GetCurrentUserPermissionsUnauthorized) IsSuccess() bool
- func (o *GetCurrentUserPermissionsUnauthorized) String() string
- type GetUserForbidden
- func (o *GetUserForbidden) Error() string
- func (o *GetUserForbidden) GetPayload() *models.Errors
- func (o *GetUserForbidden) IsClientError() bool
- func (o *GetUserForbidden) IsCode(code int) bool
- func (o *GetUserForbidden) IsRedirect() bool
- func (o *GetUserForbidden) IsServerError() bool
- func (o *GetUserForbidden) IsSuccess() bool
- func (o *GetUserForbidden) String() string
- type GetUserInternalServerError
- func (o *GetUserInternalServerError) Error() string
- func (o *GetUserInternalServerError) GetPayload() *models.Errors
- func (o *GetUserInternalServerError) IsClientError() bool
- func (o *GetUserInternalServerError) IsCode(code int) bool
- func (o *GetUserInternalServerError) IsRedirect() bool
- func (o *GetUserInternalServerError) IsServerError() bool
- func (o *GetUserInternalServerError) IsSuccess() bool
- func (o *GetUserInternalServerError) String() string
- type GetUserNotFound
- func (o *GetUserNotFound) Error() string
- func (o *GetUserNotFound) GetPayload() *models.Errors
- func (o *GetUserNotFound) IsClientError() bool
- func (o *GetUserNotFound) IsCode(code int) bool
- func (o *GetUserNotFound) IsRedirect() bool
- func (o *GetUserNotFound) IsServerError() bool
- func (o *GetUserNotFound) IsSuccess() bool
- func (o *GetUserNotFound) String() string
- type GetUserOK
- func (o *GetUserOK) Error() string
- func (o *GetUserOK) GetPayload() *models.UserResp
- func (o *GetUserOK) IsClientError() bool
- func (o *GetUserOK) IsCode(code int) bool
- func (o *GetUserOK) IsRedirect() bool
- func (o *GetUserOK) IsServerError() bool
- func (o *GetUserOK) IsSuccess() bool
- func (o *GetUserOK) String() string
- type GetUserParams
- func (o *GetUserParams) SetContext(ctx context.Context)
- func (o *GetUserParams) SetDefaults()
- func (o *GetUserParams) SetHTTPClient(client *http.Client)
- func (o *GetUserParams) SetTimeout(timeout time.Duration)
- func (o *GetUserParams) SetUserID(userID int64)
- func (o *GetUserParams) SetXRequestID(xRequestID *string)
- func (o *GetUserParams) WithContext(ctx context.Context) *GetUserParams
- func (o *GetUserParams) WithDefaults() *GetUserParams
- func (o *GetUserParams) WithHTTPClient(client *http.Client) *GetUserParams
- func (o *GetUserParams) WithTimeout(timeout time.Duration) *GetUserParams
- func (o *GetUserParams) WithUserID(userID int64) *GetUserParams
- func (o *GetUserParams) WithXRequestID(xRequestID *string) *GetUserParams
- func (o *GetUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserReader
- type GetUserUnauthorized
- func (o *GetUserUnauthorized) Error() string
- func (o *GetUserUnauthorized) GetPayload() *models.Errors
- func (o *GetUserUnauthorized) IsClientError() bool
- func (o *GetUserUnauthorized) IsCode(code int) bool
- func (o *GetUserUnauthorized) IsRedirect() bool
- func (o *GetUserUnauthorized) IsServerError() bool
- func (o *GetUserUnauthorized) IsSuccess() bool
- func (o *GetUserUnauthorized) String() string
- type ListUsersForbidden
- func (o *ListUsersForbidden) Error() string
- func (o *ListUsersForbidden) GetPayload() *models.Errors
- func (o *ListUsersForbidden) IsClientError() bool
- func (o *ListUsersForbidden) IsCode(code int) bool
- func (o *ListUsersForbidden) IsRedirect() bool
- func (o *ListUsersForbidden) IsServerError() bool
- func (o *ListUsersForbidden) IsSuccess() bool
- func (o *ListUsersForbidden) String() string
- type ListUsersInternalServerError
- func (o *ListUsersInternalServerError) Error() string
- func (o *ListUsersInternalServerError) GetPayload() *models.Errors
- func (o *ListUsersInternalServerError) IsClientError() bool
- func (o *ListUsersInternalServerError) IsCode(code int) bool
- func (o *ListUsersInternalServerError) IsRedirect() bool
- func (o *ListUsersInternalServerError) IsServerError() bool
- func (o *ListUsersInternalServerError) IsSuccess() bool
- func (o *ListUsersInternalServerError) String() string
- type ListUsersOK
- func (o *ListUsersOK) Error() string
- func (o *ListUsersOK) GetPayload() []*models.UserResp
- func (o *ListUsersOK) IsClientError() bool
- func (o *ListUsersOK) IsCode(code int) bool
- func (o *ListUsersOK) IsRedirect() bool
- func (o *ListUsersOK) IsServerError() bool
- func (o *ListUsersOK) IsSuccess() bool
- func (o *ListUsersOK) String() string
- type ListUsersParams
- func (o *ListUsersParams) SetContext(ctx context.Context)
- func (o *ListUsersParams) SetDefaults()
- func (o *ListUsersParams) SetHTTPClient(client *http.Client)
- func (o *ListUsersParams) SetPage(page *int64)
- func (o *ListUsersParams) SetPageSize(pageSize *int64)
- func (o *ListUsersParams) SetQ(q *string)
- func (o *ListUsersParams) SetSort(sort *string)
- func (o *ListUsersParams) SetTimeout(timeout time.Duration)
- func (o *ListUsersParams) SetXRequestID(xRequestID *string)
- func (o *ListUsersParams) WithContext(ctx context.Context) *ListUsersParams
- func (o *ListUsersParams) WithDefaults() *ListUsersParams
- func (o *ListUsersParams) WithHTTPClient(client *http.Client) *ListUsersParams
- func (o *ListUsersParams) WithPage(page *int64) *ListUsersParams
- func (o *ListUsersParams) WithPageSize(pageSize *int64) *ListUsersParams
- func (o *ListUsersParams) WithQ(q *string) *ListUsersParams
- func (o *ListUsersParams) WithSort(sort *string) *ListUsersParams
- func (o *ListUsersParams) WithTimeout(timeout time.Duration) *ListUsersParams
- func (o *ListUsersParams) WithXRequestID(xRequestID *string) *ListUsersParams
- func (o *ListUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListUsersReader
- type ListUsersUnauthorized
- func (o *ListUsersUnauthorized) Error() string
- func (o *ListUsersUnauthorized) GetPayload() *models.Errors
- func (o *ListUsersUnauthorized) IsClientError() bool
- func (o *ListUsersUnauthorized) IsCode(code int) bool
- func (o *ListUsersUnauthorized) IsRedirect() bool
- func (o *ListUsersUnauthorized) IsServerError() bool
- func (o *ListUsersUnauthorized) IsSuccess() bool
- func (o *ListUsersUnauthorized) String() string
- type SearchUsersInternalServerError
- func (o *SearchUsersInternalServerError) Error() string
- func (o *SearchUsersInternalServerError) GetPayload() *models.Errors
- func (o *SearchUsersInternalServerError) IsClientError() bool
- func (o *SearchUsersInternalServerError) IsCode(code int) bool
- func (o *SearchUsersInternalServerError) IsRedirect() bool
- func (o *SearchUsersInternalServerError) IsServerError() bool
- func (o *SearchUsersInternalServerError) IsSuccess() bool
- func (o *SearchUsersInternalServerError) String() string
- type SearchUsersOK
- func (o *SearchUsersOK) Error() string
- func (o *SearchUsersOK) GetPayload() []*models.UserSearchRespItem
- func (o *SearchUsersOK) IsClientError() bool
- func (o *SearchUsersOK) IsCode(code int) bool
- func (o *SearchUsersOK) IsRedirect() bool
- func (o *SearchUsersOK) IsServerError() bool
- func (o *SearchUsersOK) IsSuccess() bool
- func (o *SearchUsersOK) String() string
- type SearchUsersParams
- func (o *SearchUsersParams) SetContext(ctx context.Context)
- func (o *SearchUsersParams) SetDefaults()
- func (o *SearchUsersParams) SetHTTPClient(client *http.Client)
- func (o *SearchUsersParams) SetPage(page *int64)
- func (o *SearchUsersParams) SetPageSize(pageSize *int64)
- func (o *SearchUsersParams) SetTimeout(timeout time.Duration)
- func (o *SearchUsersParams) SetUsername(username string)
- func (o *SearchUsersParams) SetXRequestID(xRequestID *string)
- func (o *SearchUsersParams) WithContext(ctx context.Context) *SearchUsersParams
- func (o *SearchUsersParams) WithDefaults() *SearchUsersParams
- func (o *SearchUsersParams) WithHTTPClient(client *http.Client) *SearchUsersParams
- func (o *SearchUsersParams) WithPage(page *int64) *SearchUsersParams
- func (o *SearchUsersParams) WithPageSize(pageSize *int64) *SearchUsersParams
- func (o *SearchUsersParams) WithTimeout(timeout time.Duration) *SearchUsersParams
- func (o *SearchUsersParams) WithUsername(username string) *SearchUsersParams
- func (o *SearchUsersParams) WithXRequestID(xRequestID *string) *SearchUsersParams
- func (o *SearchUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchUsersReader
- type SearchUsersUnauthorized
- func (o *SearchUsersUnauthorized) Error() string
- func (o *SearchUsersUnauthorized) GetPayload() *models.Errors
- func (o *SearchUsersUnauthorized) IsClientError() bool
- func (o *SearchUsersUnauthorized) IsCode(code int) bool
- func (o *SearchUsersUnauthorized) IsRedirect() bool
- func (o *SearchUsersUnauthorized) IsServerError() bool
- func (o *SearchUsersUnauthorized) IsSuccess() bool
- func (o *SearchUsersUnauthorized) String() string
- type SetCliSecretBadRequest
- func (o *SetCliSecretBadRequest) Error() string
- func (o *SetCliSecretBadRequest) IsClientError() bool
- func (o *SetCliSecretBadRequest) IsCode(code int) bool
- func (o *SetCliSecretBadRequest) IsRedirect() bool
- func (o *SetCliSecretBadRequest) IsServerError() bool
- func (o *SetCliSecretBadRequest) IsSuccess() bool
- func (o *SetCliSecretBadRequest) String() string
- type SetCliSecretForbidden
- func (o *SetCliSecretForbidden) Error() string
- func (o *SetCliSecretForbidden) GetPayload() *models.Errors
- func (o *SetCliSecretForbidden) IsClientError() bool
- func (o *SetCliSecretForbidden) IsCode(code int) bool
- func (o *SetCliSecretForbidden) IsRedirect() bool
- func (o *SetCliSecretForbidden) IsServerError() bool
- func (o *SetCliSecretForbidden) IsSuccess() bool
- func (o *SetCliSecretForbidden) String() string
- type SetCliSecretInternalServerError
- func (o *SetCliSecretInternalServerError) Error() string
- func (o *SetCliSecretInternalServerError) GetPayload() *models.Errors
- func (o *SetCliSecretInternalServerError) IsClientError() bool
- func (o *SetCliSecretInternalServerError) IsCode(code int) bool
- func (o *SetCliSecretInternalServerError) IsRedirect() bool
- func (o *SetCliSecretInternalServerError) IsServerError() bool
- func (o *SetCliSecretInternalServerError) IsSuccess() bool
- func (o *SetCliSecretInternalServerError) String() string
- type SetCliSecretNotFound
- func (o *SetCliSecretNotFound) Error() string
- func (o *SetCliSecretNotFound) GetPayload() *models.Errors
- func (o *SetCliSecretNotFound) IsClientError() bool
- func (o *SetCliSecretNotFound) IsCode(code int) bool
- func (o *SetCliSecretNotFound) IsRedirect() bool
- func (o *SetCliSecretNotFound) IsServerError() bool
- func (o *SetCliSecretNotFound) IsSuccess() bool
- func (o *SetCliSecretNotFound) String() string
- type SetCliSecretOK
- func (o *SetCliSecretOK) Error() string
- func (o *SetCliSecretOK) IsClientError() bool
- func (o *SetCliSecretOK) IsCode(code int) bool
- func (o *SetCliSecretOK) IsRedirect() bool
- func (o *SetCliSecretOK) IsServerError() bool
- func (o *SetCliSecretOK) IsSuccess() bool
- func (o *SetCliSecretOK) String() string
- type SetCliSecretParams
- func (o *SetCliSecretParams) SetContext(ctx context.Context)
- func (o *SetCliSecretParams) SetDefaults()
- func (o *SetCliSecretParams) SetHTTPClient(client *http.Client)
- func (o *SetCliSecretParams) SetSecret(secret *models.OIDCCliSecretReq)
- func (o *SetCliSecretParams) SetTimeout(timeout time.Duration)
- func (o *SetCliSecretParams) SetUserID(userID int64)
- func (o *SetCliSecretParams) SetXRequestID(xRequestID *string)
- func (o *SetCliSecretParams) WithContext(ctx context.Context) *SetCliSecretParams
- func (o *SetCliSecretParams) WithDefaults() *SetCliSecretParams
- func (o *SetCliSecretParams) WithHTTPClient(client *http.Client) *SetCliSecretParams
- func (o *SetCliSecretParams) WithSecret(secret *models.OIDCCliSecretReq) *SetCliSecretParams
- func (o *SetCliSecretParams) WithTimeout(timeout time.Duration) *SetCliSecretParams
- func (o *SetCliSecretParams) WithUserID(userID int64) *SetCliSecretParams
- func (o *SetCliSecretParams) WithXRequestID(xRequestID *string) *SetCliSecretParams
- func (o *SetCliSecretParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetCliSecretPreconditionFailed
- func (o *SetCliSecretPreconditionFailed) Error() string
- func (o *SetCliSecretPreconditionFailed) IsClientError() bool
- func (o *SetCliSecretPreconditionFailed) IsCode(code int) bool
- func (o *SetCliSecretPreconditionFailed) IsRedirect() bool
- func (o *SetCliSecretPreconditionFailed) IsServerError() bool
- func (o *SetCliSecretPreconditionFailed) IsSuccess() bool
- func (o *SetCliSecretPreconditionFailed) String() string
- type SetCliSecretReader
- type SetCliSecretUnauthorized
- func (o *SetCliSecretUnauthorized) Error() string
- func (o *SetCliSecretUnauthorized) GetPayload() *models.Errors
- func (o *SetCliSecretUnauthorized) IsClientError() bool
- func (o *SetCliSecretUnauthorized) IsCode(code int) bool
- func (o *SetCliSecretUnauthorized) IsRedirect() bool
- func (o *SetCliSecretUnauthorized) IsServerError() bool
- func (o *SetCliSecretUnauthorized) IsSuccess() bool
- func (o *SetCliSecretUnauthorized) String() string
- type SetUserSysAdminForbidden
- func (o *SetUserSysAdminForbidden) Error() string
- func (o *SetUserSysAdminForbidden) GetPayload() *models.Errors
- func (o *SetUserSysAdminForbidden) IsClientError() bool
- func (o *SetUserSysAdminForbidden) IsCode(code int) bool
- func (o *SetUserSysAdminForbidden) IsRedirect() bool
- func (o *SetUserSysAdminForbidden) IsServerError() bool
- func (o *SetUserSysAdminForbidden) IsSuccess() bool
- func (o *SetUserSysAdminForbidden) String() string
- type SetUserSysAdminInternalServerError
- func (o *SetUserSysAdminInternalServerError) Error() string
- func (o *SetUserSysAdminInternalServerError) IsClientError() bool
- func (o *SetUserSysAdminInternalServerError) IsCode(code int) bool
- func (o *SetUserSysAdminInternalServerError) IsRedirect() bool
- func (o *SetUserSysAdminInternalServerError) IsServerError() bool
- func (o *SetUserSysAdminInternalServerError) IsSuccess() bool
- func (o *SetUserSysAdminInternalServerError) String() string
- type SetUserSysAdminNotFound
- func (o *SetUserSysAdminNotFound) Error() string
- func (o *SetUserSysAdminNotFound) GetPayload() *models.Errors
- func (o *SetUserSysAdminNotFound) IsClientError() bool
- func (o *SetUserSysAdminNotFound) IsCode(code int) bool
- func (o *SetUserSysAdminNotFound) IsRedirect() bool
- func (o *SetUserSysAdminNotFound) IsServerError() bool
- func (o *SetUserSysAdminNotFound) IsSuccess() bool
- func (o *SetUserSysAdminNotFound) String() string
- type SetUserSysAdminOK
- func (o *SetUserSysAdminOK) Error() string
- func (o *SetUserSysAdminOK) IsClientError() bool
- func (o *SetUserSysAdminOK) IsCode(code int) bool
- func (o *SetUserSysAdminOK) IsRedirect() bool
- func (o *SetUserSysAdminOK) IsServerError() bool
- func (o *SetUserSysAdminOK) IsSuccess() bool
- func (o *SetUserSysAdminOK) String() string
- type SetUserSysAdminParams
- func NewSetUserSysAdminParams() *SetUserSysAdminParams
- func NewSetUserSysAdminParamsWithContext(ctx context.Context) *SetUserSysAdminParams
- func NewSetUserSysAdminParamsWithHTTPClient(client *http.Client) *SetUserSysAdminParams
- func NewSetUserSysAdminParamsWithTimeout(timeout time.Duration) *SetUserSysAdminParams
- func (o *SetUserSysAdminParams) SetContext(ctx context.Context)
- func (o *SetUserSysAdminParams) SetDefaults()
- func (o *SetUserSysAdminParams) SetHTTPClient(client *http.Client)
- func (o *SetUserSysAdminParams) SetSysadminFlag(sysadminFlag *models.UserSysAdminFlag)
- func (o *SetUserSysAdminParams) SetTimeout(timeout time.Duration)
- func (o *SetUserSysAdminParams) SetUserID(userID int64)
- func (o *SetUserSysAdminParams) SetXRequestID(xRequestID *string)
- func (o *SetUserSysAdminParams) WithContext(ctx context.Context) *SetUserSysAdminParams
- func (o *SetUserSysAdminParams) WithDefaults() *SetUserSysAdminParams
- func (o *SetUserSysAdminParams) WithHTTPClient(client *http.Client) *SetUserSysAdminParams
- func (o *SetUserSysAdminParams) WithSysadminFlag(sysadminFlag *models.UserSysAdminFlag) *SetUserSysAdminParams
- func (o *SetUserSysAdminParams) WithTimeout(timeout time.Duration) *SetUserSysAdminParams
- func (o *SetUserSysAdminParams) WithUserID(userID int64) *SetUserSysAdminParams
- func (o *SetUserSysAdminParams) WithXRequestID(xRequestID *string) *SetUserSysAdminParams
- func (o *SetUserSysAdminParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetUserSysAdminReader
- type SetUserSysAdminUnauthorized
- func (o *SetUserSysAdminUnauthorized) Error() string
- func (o *SetUserSysAdminUnauthorized) GetPayload() *models.Errors
- func (o *SetUserSysAdminUnauthorized) IsClientError() bool
- func (o *SetUserSysAdminUnauthorized) IsCode(code int) bool
- func (o *SetUserSysAdminUnauthorized) IsRedirect() bool
- func (o *SetUserSysAdminUnauthorized) IsServerError() bool
- func (o *SetUserSysAdminUnauthorized) IsSuccess() bool
- func (o *SetUserSysAdminUnauthorized) String() string
- type UpdateUserPasswordBadRequest
- func (o *UpdateUserPasswordBadRequest) Error() string
- func (o *UpdateUserPasswordBadRequest) IsClientError() bool
- func (o *UpdateUserPasswordBadRequest) IsCode(code int) bool
- func (o *UpdateUserPasswordBadRequest) IsRedirect() bool
- func (o *UpdateUserPasswordBadRequest) IsServerError() bool
- func (o *UpdateUserPasswordBadRequest) IsSuccess() bool
- func (o *UpdateUserPasswordBadRequest) String() string
- type UpdateUserPasswordForbidden
- func (o *UpdateUserPasswordForbidden) Error() string
- func (o *UpdateUserPasswordForbidden) IsClientError() bool
- func (o *UpdateUserPasswordForbidden) IsCode(code int) bool
- func (o *UpdateUserPasswordForbidden) IsRedirect() bool
- func (o *UpdateUserPasswordForbidden) IsServerError() bool
- func (o *UpdateUserPasswordForbidden) IsSuccess() bool
- func (o *UpdateUserPasswordForbidden) String() string
- type UpdateUserPasswordInternalServerError
- func (o *UpdateUserPasswordInternalServerError) Error() string
- func (o *UpdateUserPasswordInternalServerError) GetPayload() *models.Errors
- func (o *UpdateUserPasswordInternalServerError) IsClientError() bool
- func (o *UpdateUserPasswordInternalServerError) IsCode(code int) bool
- func (o *UpdateUserPasswordInternalServerError) IsRedirect() bool
- func (o *UpdateUserPasswordInternalServerError) IsServerError() bool
- func (o *UpdateUserPasswordInternalServerError) IsSuccess() bool
- func (o *UpdateUserPasswordInternalServerError) String() string
- type UpdateUserPasswordOK
- func (o *UpdateUserPasswordOK) Error() string
- func (o *UpdateUserPasswordOK) IsClientError() bool
- func (o *UpdateUserPasswordOK) IsCode(code int) bool
- func (o *UpdateUserPasswordOK) IsRedirect() bool
- func (o *UpdateUserPasswordOK) IsServerError() bool
- func (o *UpdateUserPasswordOK) IsSuccess() bool
- func (o *UpdateUserPasswordOK) String() string
- type UpdateUserPasswordParams
- func NewUpdateUserPasswordParams() *UpdateUserPasswordParams
- func NewUpdateUserPasswordParamsWithContext(ctx context.Context) *UpdateUserPasswordParams
- func NewUpdateUserPasswordParamsWithHTTPClient(client *http.Client) *UpdateUserPasswordParams
- func NewUpdateUserPasswordParamsWithTimeout(timeout time.Duration) *UpdateUserPasswordParams
- func (o *UpdateUserPasswordParams) SetContext(ctx context.Context)
- func (o *UpdateUserPasswordParams) SetDefaults()
- func (o *UpdateUserPasswordParams) SetHTTPClient(client *http.Client)
- func (o *UpdateUserPasswordParams) SetPassword(password *models.PasswordReq)
- func (o *UpdateUserPasswordParams) SetTimeout(timeout time.Duration)
- func (o *UpdateUserPasswordParams) SetUserID(userID int64)
- func (o *UpdateUserPasswordParams) SetXRequestID(xRequestID *string)
- func (o *UpdateUserPasswordParams) WithContext(ctx context.Context) *UpdateUserPasswordParams
- func (o *UpdateUserPasswordParams) WithDefaults() *UpdateUserPasswordParams
- func (o *UpdateUserPasswordParams) WithHTTPClient(client *http.Client) *UpdateUserPasswordParams
- func (o *UpdateUserPasswordParams) WithPassword(password *models.PasswordReq) *UpdateUserPasswordParams
- func (o *UpdateUserPasswordParams) WithTimeout(timeout time.Duration) *UpdateUserPasswordParams
- func (o *UpdateUserPasswordParams) WithUserID(userID int64) *UpdateUserPasswordParams
- func (o *UpdateUserPasswordParams) WithXRequestID(xRequestID *string) *UpdateUserPasswordParams
- func (o *UpdateUserPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateUserPasswordReader
- type UpdateUserPasswordUnauthorized
- func (o *UpdateUserPasswordUnauthorized) Error() string
- func (o *UpdateUserPasswordUnauthorized) GetPayload() *models.Errors
- func (o *UpdateUserPasswordUnauthorized) IsClientError() bool
- func (o *UpdateUserPasswordUnauthorized) IsCode(code int) bool
- func (o *UpdateUserPasswordUnauthorized) IsRedirect() bool
- func (o *UpdateUserPasswordUnauthorized) IsServerError() bool
- func (o *UpdateUserPasswordUnauthorized) IsSuccess() bool
- func (o *UpdateUserPasswordUnauthorized) String() string
- type UpdateUserProfileForbidden
- func (o *UpdateUserProfileForbidden) Error() string
- func (o *UpdateUserProfileForbidden) GetPayload() *models.Errors
- func (o *UpdateUserProfileForbidden) IsClientError() bool
- func (o *UpdateUserProfileForbidden) IsCode(code int) bool
- func (o *UpdateUserProfileForbidden) IsRedirect() bool
- func (o *UpdateUserProfileForbidden) IsServerError() bool
- func (o *UpdateUserProfileForbidden) IsSuccess() bool
- func (o *UpdateUserProfileForbidden) String() string
- type UpdateUserProfileInternalServerError
- func (o *UpdateUserProfileInternalServerError) Error() string
- func (o *UpdateUserProfileInternalServerError) GetPayload() *models.Errors
- func (o *UpdateUserProfileInternalServerError) IsClientError() bool
- func (o *UpdateUserProfileInternalServerError) IsCode(code int) bool
- func (o *UpdateUserProfileInternalServerError) IsRedirect() bool
- func (o *UpdateUserProfileInternalServerError) IsServerError() bool
- func (o *UpdateUserProfileInternalServerError) IsSuccess() bool
- func (o *UpdateUserProfileInternalServerError) String() string
- type UpdateUserProfileNotFound
- func (o *UpdateUserProfileNotFound) Error() string
- func (o *UpdateUserProfileNotFound) GetPayload() *models.Errors
- func (o *UpdateUserProfileNotFound) IsClientError() bool
- func (o *UpdateUserProfileNotFound) IsCode(code int) bool
- func (o *UpdateUserProfileNotFound) IsRedirect() bool
- func (o *UpdateUserProfileNotFound) IsServerError() bool
- func (o *UpdateUserProfileNotFound) IsSuccess() bool
- func (o *UpdateUserProfileNotFound) String() string
- type UpdateUserProfileOK
- func (o *UpdateUserProfileOK) Error() string
- func (o *UpdateUserProfileOK) IsClientError() bool
- func (o *UpdateUserProfileOK) IsCode(code int) bool
- func (o *UpdateUserProfileOK) IsRedirect() bool
- func (o *UpdateUserProfileOK) IsServerError() bool
- func (o *UpdateUserProfileOK) IsSuccess() bool
- func (o *UpdateUserProfileOK) String() string
- type UpdateUserProfileParams
- func NewUpdateUserProfileParams() *UpdateUserProfileParams
- func NewUpdateUserProfileParamsWithContext(ctx context.Context) *UpdateUserProfileParams
- func NewUpdateUserProfileParamsWithHTTPClient(client *http.Client) *UpdateUserProfileParams
- func NewUpdateUserProfileParamsWithTimeout(timeout time.Duration) *UpdateUserProfileParams
- func (o *UpdateUserProfileParams) SetContext(ctx context.Context)
- func (o *UpdateUserProfileParams) SetDefaults()
- func (o *UpdateUserProfileParams) SetHTTPClient(client *http.Client)
- func (o *UpdateUserProfileParams) SetProfile(profile *models.UserProfile)
- func (o *UpdateUserProfileParams) SetTimeout(timeout time.Duration)
- func (o *UpdateUserProfileParams) SetUserID(userID int64)
- func (o *UpdateUserProfileParams) SetXRequestID(xRequestID *string)
- func (o *UpdateUserProfileParams) WithContext(ctx context.Context) *UpdateUserProfileParams
- func (o *UpdateUserProfileParams) WithDefaults() *UpdateUserProfileParams
- func (o *UpdateUserProfileParams) WithHTTPClient(client *http.Client) *UpdateUserProfileParams
- func (o *UpdateUserProfileParams) WithProfile(profile *models.UserProfile) *UpdateUserProfileParams
- func (o *UpdateUserProfileParams) WithTimeout(timeout time.Duration) *UpdateUserProfileParams
- func (o *UpdateUserProfileParams) WithUserID(userID int64) *UpdateUserProfileParams
- func (o *UpdateUserProfileParams) WithXRequestID(xRequestID *string) *UpdateUserProfileParams
- func (o *UpdateUserProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateUserProfileReader
- type UpdateUserProfileUnauthorized
- func (o *UpdateUserProfileUnauthorized) Error() string
- func (o *UpdateUserProfileUnauthorized) GetPayload() *models.Errors
- func (o *UpdateUserProfileUnauthorized) IsClientError() bool
- func (o *UpdateUserProfileUnauthorized) IsCode(code int) bool
- func (o *UpdateUserProfileUnauthorized) IsRedirect() bool
- func (o *UpdateUserProfileUnauthorized) IsServerError() bool
- func (o *UpdateUserProfileUnauthorized) IsSuccess() bool
- func (o *UpdateUserProfileUnauthorized) String() string
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) 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) 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) 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) 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) 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) Error ¶
func (o *CreateUserInternalServerError) Error() string
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 ¶
func (o *CreateUserInternalServerError) String() string
type CreateUserParams ¶
type CreateUserParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string /* UserReq. The new user */ UserReq *models.UserCreationReq Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateUserParams contains all the parameters to send to the API endpoint
for the create user operation. Typically these are written to a http.Request.
func NewCreateUserParams ¶
func NewCreateUserParams() *CreateUserParams
NewCreateUserParams creates a new CreateUserParams object, with the default 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 { string }XRequestID
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) 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) 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) Error ¶
func (o *DeleteUserInternalServerError) Error() string
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 ¶
func (o *DeleteUserInternalServerError) String() 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) 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) 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 { /* XRequestID. An unique ID for the request */ XRequestID *string /* UserID. User ID for marking as to be removed. Format: int */ UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteUserParams contains all the parameters to send to the API endpoint
for the delete user operation. Typically these are written to a http.Request.
func NewDeleteUserParams ¶
func NewDeleteUserParams() *DeleteUserParams
NewDeleteUserParams creates a new DeleteUserParams object, with the default 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) SetXRequestID ¶
func (o *DeleteUserParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the delete user params
func (*DeleteUserParams) WithContext ¶
func (o *DeleteUserParams) WithContext(ctx context.Context) *DeleteUserParams
WithContext adds the context to the delete user params
func (*DeleteUserParams) 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) WithXRequestID ¶
func (o *DeleteUserParams) WithXRequestID(xRequestID *string) *DeleteUserParams
WithXRequestID adds the xRequestID to the delete user params
func (*DeleteUserParams) WriteToRequest ¶
func (o *DeleteUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteUserReader ¶
type DeleteUserReader struct {
// contains filtered or unexported fields
}
DeleteUserReader is a Reader for the DeleteUser structure.
func (*DeleteUserReader) ReadResponse ¶
func (o *DeleteUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteUserUnauthorized ¶
type DeleteUserUnauthorized struct { string }XRequestID
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) 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) Error ¶
func (o *GetCurrentUserInfoInternalServerError) Error() string
func (*GetCurrentUserInfoInternalServerError) GetPayload ¶
func (o *GetCurrentUserInfoInternalServerError) GetPayload() *models.Errors
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 ¶
func (o *GetCurrentUserInfoInternalServerError) IsCode(code int) bool
IsCode returns true when this get current user info internal server error response a status code equal to that given
func (*GetCurrentUserInfoInternalServerError) IsRedirect ¶
func (o *GetCurrentUserInfoInternalServerError) IsRedirect() bool
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 ¶
func (o *GetCurrentUserInfoInternalServerError) IsSuccess() bool
IsSuccess returns true when this get current user info internal server error response has a 2xx status code
func (*GetCurrentUserInfoInternalServerError) String ¶
func (o *GetCurrentUserInfoInternalServerError) String() string
type GetCurrentUserInfoOK ¶
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) 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 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCurrentUserInfoParams contains all the parameters to send to the API endpoint
for the get current user info operation. Typically these are written to a http.Request.
func NewGetCurrentUserInfoParams ¶
func NewGetCurrentUserInfoParams() *GetCurrentUserInfoParams
NewGetCurrentUserInfoParams creates a new GetCurrentUserInfoParams object, with the default 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 ¶
func (o *GetCurrentUserInfoParams) WithContext(ctx context.Context) *GetCurrentUserInfoParams
WithContext adds the context to the get current user info params
func (*GetCurrentUserInfoParams) WithDefaults ¶
func (o *GetCurrentUserInfoParams) WithDefaults() *GetCurrentUserInfoParams
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 ¶
func (o *GetCurrentUserInfoParams) WithTimeout(timeout time.Duration) *GetCurrentUserInfoParams
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 ¶
func (o *GetCurrentUserInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
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) Error ¶
func (o *GetCurrentUserInfoUnauthorized) Error() string
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 ¶
func (o *GetCurrentUserInfoUnauthorized) String() 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) Error ¶
func (o *GetCurrentUserPermissionsInternalServerError) Error() string
func (*GetCurrentUserPermissionsInternalServerError) IsClientError ¶
func (o *GetCurrentUserPermissionsInternalServerError) IsClientError() bool
IsClientError returns true when this get current user permissions internal server error response has a 4xx status code
func (*GetCurrentUserPermissionsInternalServerError) IsCode ¶
func (o *GetCurrentUserPermissionsInternalServerError) IsCode(code int) bool
IsCode returns true when this get current user permissions internal server error response a status code equal to that given
func (*GetCurrentUserPermissionsInternalServerError) IsRedirect ¶
func (o *GetCurrentUserPermissionsInternalServerError) IsRedirect() bool
IsRedirect returns true when this get current user permissions internal server error response has a 3xx status code
func (*GetCurrentUserPermissionsInternalServerError) IsServerError ¶
func (o *GetCurrentUserPermissionsInternalServerError) IsServerError() bool
IsServerError returns true when this get current user permissions internal server error response has a 5xx status code
func (*GetCurrentUserPermissionsInternalServerError) IsSuccess ¶
func (o *GetCurrentUserPermissionsInternalServerError) IsSuccess() bool
IsSuccess returns true when this get current user permissions internal server error response has a 2xx status code
func (*GetCurrentUserPermissionsInternalServerError) String ¶
func (o *GetCurrentUserPermissionsInternalServerError) String() 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) Error ¶
func (o *GetCurrentUserPermissionsOK) Error() string
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 { /* XRequestID. An unique ID for the request */ XRequestID *string /* Relative. If true, the resources in the response are relative to the scope, eg for resource '/project/1/repository' if relative is 'true' then the resource in response will be 'repository'. */ Relative *bool /* Scope. The scope for the permission */ Scope *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCurrentUserPermissionsParams contains all the parameters to send to the API endpoint
for the get current user permissions operation. Typically these are written to a http.Request.
func NewGetCurrentUserPermissionsParams ¶
func NewGetCurrentUserPermissionsParams() *GetCurrentUserPermissionsParams
NewGetCurrentUserPermissionsParams creates a new GetCurrentUserPermissionsParams object, with the default 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) SetXRequestID ¶
func (o *GetCurrentUserPermissionsParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get current user permissions params
func (*GetCurrentUserPermissionsParams) WithContext ¶
func (o *GetCurrentUserPermissionsParams) WithContext(ctx context.Context) *GetCurrentUserPermissionsParams
WithContext adds the context to the get current user permissions params
func (*GetCurrentUserPermissionsParams) WithDefaults ¶
func (o *GetCurrentUserPermissionsParams) WithDefaults() *GetCurrentUserPermissionsParams
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 ¶
func (o *GetCurrentUserPermissionsParams) WithHTTPClient(client *http.Client) *GetCurrentUserPermissionsParams
WithHTTPClient adds the HTTPClient to the get current user permissions params
func (*GetCurrentUserPermissionsParams) WithRelative ¶
func (o *GetCurrentUserPermissionsParams) WithRelative(relative *bool) *GetCurrentUserPermissionsParams
WithRelative adds the relative to the get current user permissions params
func (*GetCurrentUserPermissionsParams) WithScope ¶
func (o *GetCurrentUserPermissionsParams) WithScope(scope *string) *GetCurrentUserPermissionsParams
WithScope adds the scope to the get current user permissions params
func (*GetCurrentUserPermissionsParams) WithTimeout ¶
func (o *GetCurrentUserPermissionsParams) WithTimeout(timeout time.Duration) *GetCurrentUserPermissionsParams
WithTimeout adds the timeout to the get current user permissions params
func (*GetCurrentUserPermissionsParams) WithXRequestID ¶
func (o *GetCurrentUserPermissionsParams) WithXRequestID(xRequestID *string) *GetCurrentUserPermissionsParams
WithXRequestID adds the xRequestID to the get current user permissions params
func (*GetCurrentUserPermissionsParams) WriteToRequest ¶
func (o *GetCurrentUserPermissionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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) Error ¶
func (o *GetCurrentUserPermissionsUnauthorized) Error() string
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 ¶
func (o *GetCurrentUserPermissionsUnauthorized) IsCode(code int) bool
IsCode returns true when this get current user permissions unauthorized response a status code equal to that given
func (*GetCurrentUserPermissionsUnauthorized) IsRedirect ¶
func (o *GetCurrentUserPermissionsUnauthorized) IsRedirect() bool
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 ¶
func (o *GetCurrentUserPermissionsUnauthorized) IsSuccess() bool
IsSuccess returns true when this get current user permissions unauthorized response has a 2xx status code
func (*GetCurrentUserPermissionsUnauthorized) String ¶
func (o *GetCurrentUserPermissionsUnauthorized) String() 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) 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) Error ¶
func (o *GetUserInternalServerError) Error() string
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) 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 ¶
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) GetPayload ¶
func (*GetUserOK) IsClientError ¶
IsClientError returns true when this get user o k response has a 4xx status code
func (*GetUserOK) IsCode ¶
IsCode returns true when this get user o k response a status code equal to that given
func (*GetUserOK) IsRedirect ¶
IsRedirect returns true when this get user o k response has a 3xx status code
func (*GetUserOK) IsServerError ¶
IsServerError returns true when this get user o k response has a 5xx status code
type GetUserParams ¶
type GetUserParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string // UserID. // // Format: int UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUserParams contains all the parameters to send to the API endpoint
for the get user operation. Typically these are written to a http.Request.
func NewGetUserParams ¶
func NewGetUserParams() *GetUserParams
NewGetUserParams creates a new GetUserParams object, with the default 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 { string }XRequestID
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) 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) 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) Error ¶
func (o *ListUsersInternalServerError) Error() string
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 ¶
func (o *ListUsersInternalServerError) String() 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) 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 /* Page. The page number Format: int64 Default: 1 */ Page *int64 /* PageSize. The size of per page Format: int64 Default: 10 */ PageSize *int64 /* Q. Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k=~v)", "range(k=[min~max])", "list with union releationship(k={v1 v2 v3})" and "list with intersetion relationship(k=(v1 v2 v3))". The value of range and list can be string(enclosed by " or '), integer or time(in format "2020-04-09 02:36:00"). All of these query patterns should be put in the query string "q=xxx" and splitted by ",". e.g. q=k1=v1,k2=~v2,k3=[min~max] */ Q *string /* Sort. Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2" */ Sort *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListUsersParams contains all the parameters to send to the API endpoint
for the list users operation. Typically these are written to a http.Request.
func NewListUsersParams ¶
func NewListUsersParams() *ListUsersParams
NewListUsersParams creates a new ListUsersParams object, with the default 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 { string }XRequestID
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) 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) Error ¶
func (o *SearchUsersInternalServerError) Error() string
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 ¶
func (o *SearchUsersInternalServerError) String() 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) 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 /* Page. The page number Format: int64 Default: 1 */ Page *int64 /* PageSize. The size of per page Format: int64 Default: 10 */ PageSize *int64 /* Username. Username for filtering results. */ Username string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchUsersParams contains all the parameters to send to the API endpoint
for the search users operation. Typically these are written to a http.Request.
func NewSearchUsersParams ¶
func NewSearchUsersParams() *SearchUsersParams
NewSearchUsersParams creates a new SearchUsersParams object, with the default 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 { string }XRequestID
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) 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) 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) 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) Error ¶
func (o *SetCliSecretInternalServerError) Error() string
func (*SetCliSecretInternalServerError) GetPayload ¶
func (o *SetCliSecretInternalServerError) GetPayload() *models.Errors
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 ¶
func (o *SetCliSecretInternalServerError) String() 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) 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) 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 // Secret. Secret *models.OIDCCliSecretReq /* UserID. User ID Format: int */ UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetCliSecretParams contains all the parameters to send to the API endpoint
for the set cli secret operation. Typically these are written to a http.Request.
func NewSetCliSecretParams ¶
func NewSetCliSecretParams() *SetCliSecretParams
NewSetCliSecretParams creates a new SetCliSecretParams object, with the default 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 ¶
func (o *SetCliSecretParams) WithContext(ctx context.Context) *SetCliSecretParams
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 ¶
func (o *SetCliSecretParams) WithSecret(secret *models.OIDCCliSecretReq) *SetCliSecretParams
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) Error ¶
func (o *SetCliSecretPreconditionFailed) Error() string
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 ¶
func (o *SetCliSecretPreconditionFailed) String() 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 { string }XRequestID
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) 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) 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) Error ¶
func (o *SetUserSysAdminInternalServerError) Error() string
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 ¶
func (o *SetUserSysAdminInternalServerError) IsCode(code int) bool
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 ¶
func (o *SetUserSysAdminInternalServerError) IsSuccess() bool
IsSuccess returns true when this set user sys admin internal server error response has a 2xx status code
func (*SetUserSysAdminInternalServerError) String ¶
func (o *SetUserSysAdminInternalServerError) String() 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) 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) 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 { /* XRequestID. An unique ID for the request */ XRequestID *string /* SysadminFlag. Toggle a user to admin or not. */ SysadminFlag *models.UserSysAdminFlag // UserID. // // Format: int UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SetUserSysAdminParams contains all the parameters to send to the API endpoint
for the set user sys admin operation. Typically these are written to a http.Request.
func NewSetUserSysAdminParams ¶
func NewSetUserSysAdminParams() *SetUserSysAdminParams
NewSetUserSysAdminParams creates a new SetUserSysAdminParams object, with the default 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) SetXRequestID ¶
func (o *SetUserSysAdminParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the set user sys admin params
func (*SetUserSysAdminParams) WithContext ¶
func (o *SetUserSysAdminParams) WithContext(ctx context.Context) *SetUserSysAdminParams
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) WithXRequestID ¶
func (o *SetUserSysAdminParams) WithXRequestID(xRequestID *string) *SetUserSysAdminParams
WithXRequestID adds the xRequestID to the set user sys admin params
func (*SetUserSysAdminParams) WriteToRequest ¶
func (o *SetUserSysAdminParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SetUserSysAdminReader ¶
type SetUserSysAdminReader struct {
// contains filtered or unexported fields
}
SetUserSysAdminReader is a Reader for the SetUserSysAdmin structure.
func (*SetUserSysAdminReader) ReadResponse ¶
func (o *SetUserSysAdminReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SetUserSysAdminUnauthorized ¶
type SetUserSysAdminUnauthorized struct { string }XRequestID
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) Error ¶
func (o *SetUserSysAdminUnauthorized) Error() string
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) Error ¶
func (o *UpdateUserPasswordBadRequest) Error() string
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 ¶
func (o *UpdateUserPasswordBadRequest) String() 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) Error ¶
func (o *UpdateUserPasswordForbidden) Error() string
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) Error ¶
func (o *UpdateUserPasswordInternalServerError) Error() string
func (*UpdateUserPasswordInternalServerError) GetPayload ¶
func (o *UpdateUserPasswordInternalServerError) GetPayload() *models.Errors
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 ¶
func (o *UpdateUserPasswordInternalServerError) IsCode(code int) bool
IsCode returns true when this update user password internal server error response a status code equal to that given
func (*UpdateUserPasswordInternalServerError) IsRedirect ¶
func (o *UpdateUserPasswordInternalServerError) IsRedirect() bool
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 ¶
func (o *UpdateUserPasswordInternalServerError) IsSuccess() bool
IsSuccess returns true when this update user password internal server error response has a 2xx status code
func (*UpdateUserPasswordInternalServerError) String ¶
func (o *UpdateUserPasswordInternalServerError) String() 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) 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 { /* XRequestID. An unique ID for the request */ XRequestID *string /* Password. Password to be updated, the attribute 'old_password' is optional when the API is called by the system administrator. */ Password *models.PasswordReq // UserID. // // Format: int UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateUserPasswordParams contains all the parameters to send to the API endpoint
for the update user password operation. Typically these are written to a http.Request.
func NewUpdateUserPasswordParams ¶
func NewUpdateUserPasswordParams() *UpdateUserPasswordParams
NewUpdateUserPasswordParams creates a new UpdateUserPasswordParams object, with the default 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) SetXRequestID ¶
func (o *UpdateUserPasswordParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the update user password params
func (*UpdateUserPasswordParams) WithContext ¶
func (o *UpdateUserPasswordParams) WithContext(ctx context.Context) *UpdateUserPasswordParams
WithContext adds the context to the update user password params
func (*UpdateUserPasswordParams) WithDefaults ¶
func (o *UpdateUserPasswordParams) WithDefaults() *UpdateUserPasswordParams
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 ¶
func (o *UpdateUserPasswordParams) WithPassword(password *models.PasswordReq) *UpdateUserPasswordParams
WithPassword adds the password to the update user password params
func (*UpdateUserPasswordParams) WithTimeout ¶
func (o *UpdateUserPasswordParams) WithTimeout(timeout time.Duration) *UpdateUserPasswordParams
WithTimeout adds the timeout to the update user password params
func (*UpdateUserPasswordParams) WithUserID ¶
func (o *UpdateUserPasswordParams) WithUserID(userID int64) *UpdateUserPasswordParams
WithUserID adds the userID to the update user password params
func (*UpdateUserPasswordParams) WithXRequestID ¶
func (o *UpdateUserPasswordParams) WithXRequestID(xRequestID *string) *UpdateUserPasswordParams
WithXRequestID adds the xRequestID to the update user password params
func (*UpdateUserPasswordParams) WriteToRequest ¶
func (o *UpdateUserPasswordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
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) Error ¶
func (o *UpdateUserPasswordUnauthorized) Error() string
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 ¶
func (o *UpdateUserPasswordUnauthorized) String() 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) Error ¶
func (o *UpdateUserProfileForbidden) Error() string
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) Error ¶
func (o *UpdateUserProfileInternalServerError) Error() string
func (*UpdateUserProfileInternalServerError) GetPayload ¶
func (o *UpdateUserProfileInternalServerError) GetPayload() *models.Errors
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 ¶
func (o *UpdateUserProfileInternalServerError) IsCode(code int) bool
IsCode returns true when this update user profile internal server error response a status code equal to that given
func (*UpdateUserProfileInternalServerError) IsRedirect ¶
func (o *UpdateUserProfileInternalServerError) IsRedirect() bool
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 ¶
func (o *UpdateUserProfileInternalServerError) IsSuccess() bool
IsSuccess returns true when this update user profile internal server error response has a 2xx status code
func (*UpdateUserProfileInternalServerError) String ¶
func (o *UpdateUserProfileInternalServerError) String() 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) 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) 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 /* Profile. Only email, realname and comment can be modified. */ Profile *models.UserProfile /* UserID. Registered user ID Format: int */ UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateUserProfileParams contains all the parameters to send to the API endpoint
for the update user profile operation. Typically these are written to a http.Request.
func NewUpdateUserProfileParams ¶
func NewUpdateUserProfileParams() *UpdateUserProfileParams
NewUpdateUserProfileParams creates a new UpdateUserProfileParams object, with the default 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 ¶
func (o *UpdateUserProfileParams) WithContext(ctx context.Context) *UpdateUserProfileParams
WithContext adds the context to the update user profile params
func (*UpdateUserProfileParams) WithDefaults ¶
func (o *UpdateUserProfileParams) WithDefaults() *UpdateUserProfileParams
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 ¶
func (o *UpdateUserProfileParams) WithProfile(profile *models.UserProfile) *UpdateUserProfileParams
WithProfile adds the profile to the update user profile params
func (*UpdateUserProfileParams) WithTimeout ¶
func (o *UpdateUserProfileParams) WithTimeout(timeout time.Duration) *UpdateUserProfileParams
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 ¶
func (o *UpdateUserProfileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 { string }XRequestID
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) Error ¶
func (o *UpdateUserProfileUnauthorized) Error() string
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 ¶
func (o *UpdateUserProfileUnauthorized) String() string
Source Files ¶
- create_user_parameters.go
- create_user_responses.go
- delete_user_parameters.go
- delete_user_responses.go
- get_current_user_info_parameters.go
- get_current_user_info_responses.go
- get_current_user_permissions_parameters.go
- get_current_user_permissions_responses.go
- get_user_parameters.go
- get_user_responses.go
- list_users_parameters.go
- list_users_responses.go
- search_users_parameters.go
- search_users_responses.go
- set_cli_secret_parameters.go
- set_cli_secret_responses.go
- set_user_sys_admin_parameters.go
- set_user_sys_admin_responses.go
- update_user_password_parameters.go
- update_user_password_responses.go
- update_user_profile_parameters.go
- update_user_profile_responses.go
- user_client.go