
    	                         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)zA`gcloud dataplex data-taxonomies set-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	)
SetIamPolicy   zSet an IAM policy binding for a Dataplex Data Taxonomy as defined in a JSON or YAML file.

See https://cloud.google.com/iam/docs/managing-policies for details of
  the policy file format and contents.
EXAMPLESa  
          The following command will read an IAM policy defined in a JSON file
          `policy.json` and set it for the Dataplex Data Taxonomy `test-taxonomy` within
          project `test-project` in location `us-central1`:

            $ {command} test-taxonomy --project=test-project --location=us-central1 policy.json

            where policy.json is the relative path to the json file.

          c                 ^    [         R                  " U S5        [        R                  " U 5        g )Nzto set IAM policy to.)r	   AddDataTaxonomyResourceArgr
   AddArgForPolicyFile)parsers    6lib/surface/dataplex/data_taxonomies/set_iam_policy.pyArgsSetIamPolicy.Args2   s!    ,,V5LM  (    z-Status code: {status_code}. {status_message}.c                     UR                   R                  R                  5       n[        R                  " X!R                  5      nU$ )N)CONCEPTSr   Parse DataTaxonomySetIamPolicyFromFilepolicy_file)selfargstaxonomy_refresults       r   RunSetIamPolicy.Run7   s:     ==..446L;;&&(FMr    N)__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   gcloud_exception CatchHTTPErrorRaiseHTTPExceptionr    __static_attributes__r"   r   r   r   r      sN     
- ) ) 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>r7      sY    H &  ' 9 F ( = 3 D%%++, 4<<   - r   