3 @qhc@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_attrrrY/home/ec2-user/environment/venv/lib/python3.6/dist-packages/gitlab/v4/objects/settings.pyr sc:sZeZdZdZeZed@d;Zej ej ej ej ej ej d<Z e j e j dAfd>d? ZZS)Br z/application/settingsiddefault_projects_limitsignup_enabled'password_authentication_enabled_for_webgravatar_enabled sign_in_text created_at updated_at home_page_urldefault_branch_protectionrestricted_visibility_levelsmax_attachment_sizesession_expire_delaydefault_project_visibilitydefault_snippet_visibilitydefault_group_visibility!outbound_local_requests_whitelistdisabled_oauth_sign_in_sourcesdomain_whitelistdomain_blacklist_enableddomain_blacklistdomain_allowlistdomain_denylist_enableddomain_denylist&external_authorization_service_enabled"external_authorization_service_url,external_authorization_service_default_label&external_authorization_service_timeoutimport_sourcesuser_oauth_applicationsafter_sign_out_path%container_registry_token_expire_delayrepository_storagesplantuml_enabled plantuml_urlterminal_max_session_timepolling_interval_multiplierrsa_key_restrictiondsa_key_restrictionecdsa_key_restrictioned25519_key_restrictionfirst_day_of_week enforce_termsterms performance_bar_allowed_group_id&instance_statistics_visibility_privateuser_show_add_ssh_key_messagefile_template_project_idlocal_markdown_versionasset_proxy_enabledasset_proxy_urlasset_proxy_whitelistasset_proxy_allowlistgeo_node_allowed_ips,allow_local_requests_from_hooks_and_services0allow_local_requests_from_web_hooks_and_services&allow_local_requests_from_system_hooks)optional)rEr"r&r(r-rNc sH|pi}|j}d|kr.|ddkr.|jdtt|j||f|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 r#N)copypopsuperr update)selfrZnew_datakwargsdata) __class__rrrNYs  z!ApplicationSettingsManager.update)9rrrrrrrrrrrrrrrr r!r"r#r$r%r&r'r(r)r*r+r,r-r.r/r0r1r2r3r4r5r6r7r8r9r:r;r<r=r>r?r@rArBrCrDrErFrGrHrI)NN)r r r_pathr Z_obj_clsrZ _update_attrsrZ ListAttribute_typesexcZ on_http_errorZGitlabUpdateErrorrN __classcell__rr)rRrr s  N)ZgitlabrrUrZ gitlab.baserrrZ gitlab.mixinsrrr __all__r r rrrrs