
    	                         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  \R                   " \R"                  R$                  5       " S
 S\R&                  5      5       rg)zD`gcloud dataplex data-taxonomies remove-iam-policy-binding` command.    )absolute_import)division)unicode_literals)data_taxonomy)
exceptions)base)resource_args)iam_utilc                   `    \ rS rSrSrSS0r\S 5       r\R                  " S5      S 5       r
Srg	)
RemoveIamPolicyBinding   z9Removes IAM policy binding from a Dataplex Data Taxonomy.EXAMPLESa  
          To remove an IAM policy binding for the role `roles/dataplex.viewer`
          for the user `testuser@gmail.com` from an taxonomy `test-taxonomy` within projet
          `test-project` in location `us-central1`, run:

            $ {command} test-taxonomy --project=test-project --location=us-central1 --role=roles/dataplex.viewer --member=user:testuser@gmail.com


          See https://cloud.google.com/dataplex/docs/iam-roles for details of
          policy role and member types.

          c                 ^    [         R                  " U S5        [        R                  " U 5        g )Nz"to remove IAM policy binding from )r	   AddDataTaxonomyResourceArgr
    AddArgsForRemoveIamPolicyBinding)parsers    Alib/surface/dataplex/data_taxonomies/remove_iam_policy_binding.pyArgsRemoveIamPolicyBinding.Args1   s&    ,,46 --f5    z-Status code: {status_code}. {status_message}.c                     UR                   R                  R                  5       n[        R                  " X!R                  UR
                  5      nU$ )N)CONCEPTSr   Parse"DataTaxonomyRemoveIamPolicyBindingmemberrole)selfargstaxonomy_refresults       r   RunRemoveIamPolicyBinding.Run8   s>     ==..446L==kk499.FMr    N)__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   gcloud_exception CatchHTTPErrorRaiseHTTPExceptionr!   __static_attributes__r#   r   r   r   r      sL    A -" 6 6 44577r   r   N)r(   
__future__r   r   r   googlecloudsdk.api_lib.dataplexr   googlecloudsdk.api_lib.utilr   r+   googlecloudsdk.callioper   #googlecloudsdk.command_lib.dataplexr	   googlecloudsdk.command_lib.iamr
   ReleaseTracksReleaseTrackALPHACommandr   r#   r   r   <module>r8      sY    K &  ' 9 F ( = 3 D%%++,!T\\ ! -!r   