ó
    €Ï	  ã                   ó¸   • 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0r\R                   " S S\R                  5      5       rg)zCommand for deleting a role.é    )Úabsolute_import)Údivision)Úunicode_literals)Úutil)Úbase)Ú
exceptions)Úflags)Úiam_utilÚEXAMPLESaA            To delete the role ``ProjectUpdater'' of the organization ``1234567'',
          run:

            $ {command} ProjectUpdater --organization=1234567

          To delete the role ``ProjectUpdater'' of the project ``myproject'',
          run:

            $ {command} ProjectUpdater --project=myproject
        c                   ó2   • \ rS rSrSr\r\S 5       rS r	Sr
g)ÚDeleteé-   zóDelete a custom role from an organization or a project.

This command deletes a role.

This command can fail for the following reasons:
* The role specified does not exist.
* The active user does not have permission to access the given role.

c                 ó|   • [         R                  " U S5        [         R                  " S5      R                  U 5        g )NÚdelete)r	   ÚAddParentFlagsÚGetCustomRoleFlagÚAddToParser)Úparsers    Úlib/surface/iam/roles/delete.pyÚArgsÚDelete.Args;   s+   € ä	×Ò˜ Ô*Ü	×Ò˜HÓ%×1Ñ1°&Õ9ó    c                 óN  • [         R                  " UR                  UR                  UR                  5      n[
        R                  " 5       u  p4UR                  c$  UR                  c  [        R                  " SS5      eUR                  R                  UR                  US95      $ )NÚROLE_IDz-You can not delete a curated/predefined role.)Úname)r
   ÚGetRoleNameÚorganizationÚprojectÚroler   ÚGetClientAndMessagesr   ÚInvalidArgumentExceptionÚorganizations_rolesr   Ú"IamOrganizationsRolesDeleteRequest)ÚselfÚargsÚ	role_nameÚclientÚmessagess        r   ÚRunÚ
Delete.Run@   s‘   € Ü×$Ò$ T×%6Ñ%6¸¿¹ÀdÇiÁiÓP€IÜ×0Ò0Ó2Ñ€FØ×ÑÑ  T§\¡\Ñ%9Ü×/Ò/Ø
Ø
9ó;ð ;ð ×%Ñ%×,Ñ,Ø×3Ñ3¸Ð3ÐCóEð Er   © N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__ÚDETAILED_HELPÚdetailed_helpÚstaticmethodr   r)   Ú__static_attributes__r+   r   r   r   r   -   s&   † ñð  €-àñ:ó ð:õEr   r   N)r0   Ú
__future__r   r   r   Úgooglecloudsdk.api_lib.iamr   Úgooglecloudsdk.callioper   r   Úgooglecloudsdk.command_lib.iamr	   r
   r1   ÚUniverseCompatibleÚDescribeCommandr   r+   r   r   Ú<module>r;      s]   ðñ  #å &Ý Ý 'å +Ý (Ý .Ý 0Ý 3ð ð
	ð€ð  ×ÑôEˆT×!Ñ!ó Eó ñEr   