
    <	                     ,   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$                  \R"                  R&                  5      \R(                   " S
 S\R*                  5      5       5       rg)z>`gcloud dataplex entry-groups add-iam-policy-binding` command.    )absolute_import)division)unicode_literals)entry_group)
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	)
AddIamPolicyBinding   z1Add IAM policy binding to a Dataplex Entry Group.EXAMPLESa            To add an IAM policy binding for the role of `roles/dataplex.viewer`
          for the user `test-user@gmail.com` to Entry Group `test-entry-group` in
          project `test-project` and in location `us-central1`, run:

            $ {command} test-entry-group --project=test-project  --location=us-central1 --role=roles/dataplex.viewer --member=user:foo@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 add IAM policy binding to.)r	    AddDataplexEntryGroupResourceArgr
   AddArgsForAddIamPolicyBinding)parsers    ;lib/surface/dataplex/entry_groups/add_iam_policy_binding.pyArgsAddIamPolicyBinding.Args1   s&    22/ **62    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EntryGroupAddIamPolicyBindingmemberrole)selfargsentry_group_refresults       r   RunAddIamPolicyBinding.Run9   s@     mm//557O66diiF Mr    N)__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   gcloud_exception CatchHTTPErrorRaiseHTTPExceptionr!   __static_attributes__r#   r   r   r   r      sN     : 	- 3 3 445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GADefaultUniverseOnlyCommandr   r#   r   r   <module>r:      sz    E '  ' 8 F ( = 3 D%%++T->->-A-AB!$,, !  C!r   