ó
    €Ï#  ã                   ó¼   • S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  SSK	Jr  SS	K	Jr  SS
KJr  \R                   " S S\R                   5      5       rg)z<`gcloud domains registrations configure management` command.é    )Úabsolute_import)Údivision)Úunicode_literals)Úregistrations)Úbase)Úflags)Úresource_args)Úutil)Úlogc                   ó.   • \ rS rSrSr\S 5       rS rSrg)ÚConfigureManagementé   aH  Configure management settings of a Cloud Domains registration.

Configure management settings of a registration. This includes settings
related to transfers, billing and renewals of a registration.

## EXAMPLES

To start an interactive flow to configure management settings for
``example.com'', run:

  $ {command} example.com

To unlock a transfer lock of a registration for ``example.com'', run:

  $ {command} example.com --transfer-lock-state=unlocked

To disable automatic renewals for ``example.com'', run:

  $ {command} example.com --preferred-renewal-method=renewal-disabled
c                 óŠ   • [         R                  " U S5        [        R                  " U 5        [        R                  " U 5        g )Nz$to configure management settings for)r	   ÚAddRegistrationResourceArgr   Ú"AddManagementSettingsFlagsToParserÚAddAsyncFlagToParser)Úparsers    Ú9lib/surface/domains/registrations/configure/management.pyÚArgsÚConfigureManagement.Args4   s2   € ä×,Ò,ØÐ6ô8ä	×,Ò,¨VÔ4Ü	×Ò˜vÕ&ó    c                 óH  • [         R                  " U5      n[         R                  " U5      n[        R                  " UR
                  5      Ul        UR                  R
                  R                  5       nUR                  U5      n[        R                  " X%5        [        R                  " UUR                  5      n[        R                  " X!R                  5      nUcW  UcT  [        R                  " X%R                  R                   5      n[        R"                  " X%R                  R$                  5      nUc  Uc  g UR'                  XFU5      n[        R(                  " X(UR*                  5      n[,        R.                  " UR1                  5       SUR*                  5        U$ )NÚregistration)r   ÚGetApiVersionFromArgsÚRegistrationsClientr
   ÚNormalizeResourceNamer   ÚCONCEPTSÚParseÚGetÚAssertRegistrationOperationalÚParseTransferLockStateÚtransfer_lock_stateÚParseRenewalMethodÚpreferred_renewal_methodÚPromptForTransferLockStateÚmanagementSettingsÚtransferLockStateÚPromptForRenewalMethodÚpreferredRenewalMethodr   ÚWaitForOperationÚasync_r   ÚUpdatedResourceÚName)	ÚselfÚargsÚapi_versionÚclientÚregistration_refr   r"   Úrenewal_methodÚresponses	            r   ÚRunÚConfigureManagement.Run;   sV  € Ü×5Ò5°dÓ;€KÜ×.Ò.¨{Ó;€FÜ×2Ò2°4×3DÑ3DÓE€DÔØ—}‘}×1Ñ1×7Ñ7Ó9Ðà—:‘:Ð.Ó/€LÜ×&Ò& {ÔAä×5Ò5°kØ6:×6NÑ6NóPÐä×,Ò,Ø×2Ñ2ó€Nð Ñ" ~Ñ'=Ü ×;Ò;Ø
×6Ñ6×HÑHóJÐä×2Ò2Ø
×6Ñ6×MÑMó€nð Ñ" ~Ñ'=Øà×)Ñ)Ø¨~ó€Hô ×$Ò$ [¸D¿K¹KÓH€HÜ×ÒÐ(×-Ñ-Ó/°ÀÇÁÔMØ€Or   © N)	Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Ústaticmethodr   r5   Ú__static_attributes__r7   r   r   r   r      s    † ñð* ñ'ó ð'õr   r   N)r<   Ú
__future__r   r   r   Úgooglecloudsdk.api_lib.domainsr   Úgooglecloudsdk.callioper   Ú"googlecloudsdk.command_lib.domainsr   r	   r
   Úgooglecloudsdk.corer   ÚDefaultUniverseOnlyÚUpdateCommandr   r7   r   r   Ú<module>rF      sM   ðñ Cå &Ý Ý 'å 8Ý (Ý 4Ý <Ý 3Ý #ð ×Ñô<˜$×,Ñ,ó <ó ñ<r   