diff options
| author | Nejc Habjan <hab.nejc@gmail.com> | 2021-04-27 20:02:42 +0200 |
|---|---|---|
| committer | Nejc Habjan <hab.nejc@gmail.com> | 2021-04-27 20:25:32 +0200 |
| commit | 603a351c71196a7f516367fbf90519f9452f3c55 (patch) | |
| tree | 2c9f7c1a6119699b872210b551ffa2e026de3b25 /gitlab/v4/objects/settings.py | |
| parent | a6b6cd4b598ab6eddcf3986486d43e5cdc990e09 (diff) | |
| download | gitlab-603a351c71196a7f516367fbf90519f9452f3c55.tar.gz | |
fix(objects): allow lists for filters for in all objectsfix/missing-list-attributes
Diffstat (limited to 'gitlab/v4/objects/settings.py')
| -rw-r--r-- | gitlab/v4/objects/settings.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gitlab/v4/objects/settings.py b/gitlab/v4/objects/settings.py index a3d6ed9..6b7537b 100644 --- a/gitlab/v4/objects/settings.py +++ b/gitlab/v4/objects/settings.py @@ -1,3 +1,4 @@ +from gitlab import types from gitlab import exceptions as exc from gitlab.base import RequiredOptional, RESTManager, RESTObject from gitlab.mixins import GetWithoutIdMixin, SaveMixin, UpdateMixin @@ -35,13 +36,18 @@ class ApplicationSettingsManager(GetWithoutIdMixin, UpdateMixin, RESTManager): "default_snippet_visibility", "default_group_visibility", "outbound_local_requests_whitelist", + "disabled_oauth_sign_in_sources", "domain_whitelist", "domain_blacklist_enabled", "domain_blacklist", + "domain_allowlist", + "domain_denylist_enabled", + "domain_denylist", "external_authorization_service_enabled", "external_authorization_service_url", "external_authorization_service_default_label", "external_authorization_service_timeout", + "import_sources", "user_oauth_applications", "after_sign_out_path", "container_registry_token_expire_delay", @@ -65,12 +71,21 @@ class ApplicationSettingsManager(GetWithoutIdMixin, UpdateMixin, RESTManager): "asset_proxy_enabled", "asset_proxy_url", "asset_proxy_whitelist", + "asset_proxy_allowlist", "geo_node_allowed_ips", "allow_local_requests_from_hooks_and_services", "allow_local_requests_from_web_hooks_and_services", "allow_local_requests_from_system_hooks", ), ) + _types = { + "asset_proxy_allowlist": types.ListAttribute, + "disabled_oauth_sign_in_sources": types.ListAttribute, + "domain_allowlist": types.ListAttribute, + "domain_denylist": types.ListAttribute, + "import_sources": types.ListAttribute, + "restricted_visibility_levels": types.ListAttribute, + } @exc.on_http_error(exc.GitlabUpdateError) def update(self, id=None, new_data=None, **kwargs): |
