Updates¶
-
class
GogsUserUpdate
¶ An immutable representation of a collection of Gogs user attributes to update.
Instances should be created using the
Builder
class.
-
class
GogsUserUpdate.
Builder
¶ -
__init__
(login_name, email)¶ Parameters: - login_name (str) – login name for authentication source
- email (str) – email address of user to update
-
set_source_id
(source_id)¶ Parameters: source_id (int) – Source id of authentication source Returns: the updated builder Return type: GogsUserUpdate.Builder
-
set_full_name
(full_name)¶ Parameters: full_name (str) – Updated full name for user Returns: the updated builder Return type: GogsUserUpdate.Builder
-
set_password
(password)¶ Parameters: password (str) – Updated password for user Returns: the updated builder Return type: GogsUserUpdate.Builder
-
set_website
(website)¶ Parameters: website (str) – Updated personal website for user Returns: the updated builder Return type: GogsUserUpdate.Builder
-
set_location
(location)¶ Parameters: location (str) – Updated location for user Returns: the updated builder Return type: GogsUserUpdate.Builder
-
set_active
(active)¶ Parameters: active (bool) – set true/false to signal that the updated user should be activated/deactivated Returns: the updated builder Return type: GogsUserUpdate.Builder
-
set_admin
(admin)¶ Parameters: admin (bool) – whether the updated user should be admin Returns: the updated builder Return type: GogsUserUpdate.Builder
-
set_allow_git_hook
(allow_git_hook)¶ Parameters: allow_git_hook (bool) – whether the updated user should be allowed to use Git hooks Returns: the updated builder Return type: GogsUserUpdate.Builder
-
set_allow_import_local
(allow_import_local)¶ Parameters: allow_import_local (bool) – whether the updated user should be allowed to import local repositories Returns: the updated builder Return type: GogsUserUpdate.Builder
-
build
()¶ Returns: A GogsUserUpdate
instance reflecting the changes added to the builder.Return type: GogsUserUpdate
-
-
class
GogsHookUpdate
¶ An immutable representation of a collection of Gogs hook attributes to update.
Instances should be created using the
Builder
class.
-
class
GogsHookUpdate.
Builder
¶ -
__init__
()¶
-
set_events
(events)¶ Parameters: events (List[str]) – Returns: the updated builder Return type: GogsHookUpdate.Builder
-
set_config
(config)¶ Parameters: config (dict) – Returns: the updated builder Return type: GogsHookUpdate.Builder
-
set_active
(active)¶ Parameters: active (bool) – Returns: the updated builder Return type: GogsHookUpdate.Builder
-
build
()¶ Returns: A GogsHookUpdate
instance reflecting the changes added to the builder.Return type: GogsHookUpdate
-