
                             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  \R                  " \R                  R                  5      \R                    " S	 S
\R"                  5      5       5       rg)zACommand to get the IAM policy for a BigLake Iceberg REST catalog.    )absolute_import)division)unicode_literals)util)base)flags)
propertiesc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
GetIamPolicy   z6Get the IAM policy for a BigLake Iceberg REST catalog.z7Gets the IAM policy for a BigLake Iceberg REST catalog.zp          To get the IAM policy for the catalog `my-catalog` run:

            $ {command} my-catalog
          )DESCRIPTIONEXAMPLESc                 p    [         R                  " U S5        [        R                  R	                  U 5        g )Nzto get the IAM policy for)r   AddCatalogResourceArgr   URI_FLAGRemoveFromParser)parsers    6lib/surface/biglake/iceberg/catalogs/get_iam_policy.pyArgsGetIamPolicy.Args)   s%    	(CDMM""6*    c                    [         R                  " U R                  5       5      n[         R                  " U R                  5       5      nUR                  =(       d1    [
        R                  R                  R                  R                  SS9nSU SUR                   3nUR                  R                  UR                  US95      $ )z9This is what gets called when the user runs this command.T)requiredz	projects/z
/catalogs/)resource)r   GetClientInstanceReleaseTrackGetMessagesModuleprojectr	   VALUEScoreGetcatalogprojects_catalogsr   *BiglakeProjectsCatalogsGetIamPolicyRequest)selfargsclientmessagesr   catalog_names         r   RunGetIamPolicy.Run.   s    ##D$5$5$78F%%d&7&7&9:HllOj//44<<@@$@OGwiz$,,@L##00;;! 	< 	
 r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r*   __static_attributes__r,   r   r   r   r      s2     ? O- + +r   r   N)r1   
__future__r   r   r   googlecloudsdk.api_lib.biglaker   googlecloudsdk.callioper   "googlecloudsdk.command_lib.biglaker   googlecloudsdk.corer	   ReleaseTracksr   ALPHADefaultUniverseOnlyListCommandr   r,   r   r   <module>r>      sf    H &  ' / ( 4 * D%%++,4##   -r   