
    %                     z    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	\R                  5      rg
)z#Fetch the IAM policy for a keyring.    )absolute_import)division)unicode_literals)iam)base)flagsc                   .    \ rS rSrSr\S 5       rS rSrg)GetIamPolicy   a<  Get the IAM policy for a keyring.

Gets the IAM policy for the given keyring.

Returns an empty policy if the resource does not have a policy set.

## EXAMPLES

The following command gets the IAM policy for the keyring `fellowship`
within the location `us-central1`:

  $ {command} fellowship --location=us-central1
c                     [         R                  " U S5        [         R                  " U S5        [        R                  R                  U 5        g )Nkeyringzwhose IAM policy to fetch)r   AddLocationFlagAddKeyRingArgumentr   URI_FLAGRemoveFromParser)parsers    *lib/surface/kms/keyrings/get_iam_policy.pyArgsGetIamPolicy.Args)   s5    	&),	V%@AMM""6*    c                 V    [         R                  " [        R                  " U5      5      $ )N)r   GetKeyRingIamPolicyr   ParseKeyRingName)selfargss     r   RunGetIamPolicy.Run/   s    ""5#9#9$#?@@r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r   r   r   r
   r
      s!     + +
Ar   r
   N)r#   
__future__r   r   r   googlecloudsdk.api_lib.cloudkmsr   googlecloudsdk.callioper   googlecloudsdk.command_lib.kmsr   ListCommandr
   r   r   r   <module>r+      s0    * &  ' / ( 0A4## Ar   