a *Na@srddlmZddlmZddlmZmZmZddlm Z m Z m Z ddgZ Gddde eZ Gddde e eZd S) ) exceptions)types)RequiredOptional RESTManager RESTObject)GetWithoutIdMixin SaveMixin UpdateMixinApplicationSettingsApplicationSettingsManagerc@seZdZdZdS)r N)__name__ __module__ __qualname__Z_id_attrrru/private/var/folders/js/6pj4vh5d4zd0k6bxv74qrbhr0000gr/T/pip-target-22xwyzbs/lib/python/gitlab/v4/objects/settings.pyr scsZeZdZdZeZeddZej ej ej ej ej ej dZ e e j dfdd ZZS) r z/application/settings)9idZdefault_projects_limitZsignup_enabledZ'password_authentication_enabled_for_webZgravatar_enabledZ sign_in_textZ created_atZ updated_atZ home_page_urlZdefault_branch_protectionrestricted_visibility_levelsZmax_attachment_sizeZsession_expire_delayZdefault_project_visibilityZdefault_snippet_visibilityZdefault_group_visibilityZ!outbound_local_requests_whitelistdisabled_oauth_sign_in_sourcesdomain_whitelistZdomain_blacklist_enabledZdomain_blacklistdomain_allowlistZdomain_denylist_enableddomain_denylistZ&external_authorization_service_enabledZ"external_authorization_service_urlZ,external_authorization_service_default_labelZ&external_authorization_service_timeoutimport_sourcesZuser_oauth_applicationsZafter_sign_out_pathZ%container_registry_token_expire_delayZrepository_storagesZplantuml_enabledZ plantuml_urlZterminal_max_session_timeZpolling_interval_multiplierZrsa_key_restrictionZdsa_key_restrictionZecdsa_key_restrictionZed25519_key_restrictionZfirst_day_of_weekZ enforce_termsZtermsZ performance_bar_allowed_group_idZ&instance_statistics_visibility_privateZuser_show_add_ssh_key_messageZfile_template_project_idZlocal_markdown_versionZasset_proxy_enabledZasset_proxy_urlZasset_proxy_whitelistasset_proxy_allowlistZgeo_node_allowed_ipsZ,allow_local_requests_from_hooks_and_servicesZ0allow_local_requests_from_web_hooks_and_servicesZ&allow_local_requests_from_system_hooks)optional)rrrrrrNc sL|pi}|}d|vr.|ddur.|dtt|j||fi|dS)aUpdate an object on the server. Args: id: ID of the object to update (can be None if not required) new_data: the update data for the object **kwargs: Extra options to send to the server (e.g. sudo) Returns: dict: The new object data (*not* a RESTObject) Raises: GitlabAuthenticationError: If authentication is not correct GitlabUpdateError: If the server cannot perform the request rN)copypopsuperr update)selfrZnew_datakwargsdata __class__rrrYs  z!ApplicationSettingsManager.update)NN)r r r_pathr Z_obj_clsrZ _update_attrsrZ ListAttribute_typesexcZ on_http_errorZGitlabUpdateErrorr __classcell__rrr!rr s> N)Zgitlabrr%rZ gitlab.baserrrZ gitlab.mixinsrrr __all__r r rrrrs