1+ from gitlab import types
12from gitlab import exceptions as exc
23from gitlab .base import RequiredOptional , RESTManager , RESTObject
34from gitlab .mixins import GetWithoutIdMixin , SaveMixin , UpdateMixin
@@ -35,13 +36,18 @@ class ApplicationSettingsManager(GetWithoutIdMixin, UpdateMixin, RESTManager):
3536 "default_snippet_visibility" ,
3637 "default_group_visibility" ,
3738 "outbound_local_requests_whitelist" ,
39+ "disabled_oauth_sign_in_sources" ,
3840 "domain_whitelist" ,
3941 "domain_blacklist_enabled" ,
4042 "domain_blacklist" ,
43+ "domain_allowlist" ,
44+ "domain_denylist_enabled" ,
45+ "domain_denylist" ,
4146 "external_authorization_service_enabled" ,
4247 "external_authorization_service_url" ,
4348 "external_authorization_service_default_label" ,
4449 "external_authorization_service_timeout" ,
50+ "import_sources" ,
4551 "user_oauth_applications" ,
4652 "after_sign_out_path" ,
4753 "container_registry_token_expire_delay" ,
@@ -65,12 +71,21 @@ class ApplicationSettingsManager(GetWithoutIdMixin, UpdateMixin, RESTManager):
6571 "asset_proxy_enabled" ,
6672 "asset_proxy_url" ,
6773 "asset_proxy_whitelist" ,
74+ "asset_proxy_allowlist" ,
6875 "geo_node_allowed_ips" ,
6976 "allow_local_requests_from_hooks_and_services" ,
7077 "allow_local_requests_from_web_hooks_and_services" ,
7178 "allow_local_requests_from_system_hooks" ,
7279 ),
7380 )
81+ _types = {
82+ "asset_proxy_allowlist" : types .ListAttribute ,
83+ "disabled_oauth_sign_in_sources" : types .ListAttribute ,
84+ "domain_allowlist" : types .ListAttribute ,
85+ "domain_denylist" : types .ListAttribute ,
86+ "import_sources" : types .ListAttribute ,
87+ "restricted_visibility_levels" : types .ListAttribute ,
88+ }
7489
7590 @exc .on_http_error (exc .GitlabUpdateError )
7691 def update (self , id = None , new_data = None , ** kwargs ):
0 commit comments