
                         N    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\5      rg)	z*API helpers for interacting with policies.    )absolute_import)division)unicode_literals)apisc                   .    \ rS rSrSrSS jrS rS rSrg)	Client   z'A client for interacting with policies.Nc                 p    [         R                  " U5      U l        [         R                  " U5      U l        g N)r   GetClientInstanceclientGetMessagesModulemessages)selfapi_versions     9lib/googlecloudsdk/api_lib/container/binauthz/policies.py__init__Client.__init__   s&    ((5DK**;7DM    c                     U R                   R                  R                  U R                  R	                  UR                  5       S95      $ )z3Get the Policy associated with the current project.)name)r   projects	GetPolicyr   +BinaryauthorizationProjectsGetPolicyRequestRelativeName)r   
policy_refs     r   Get
Client.Get    sC    ;;))AA((* 	B 	
 r   c                 v    UR                  5       Ul        U R                  R                  R	                  U5      $ )z5Set the current project's Policy to the one provided.)r   r   r   r   UpdatePolicy)r   r   policys      r   Set
Client.Set'   s-    ))+FK;;,,V44r   )r   r   r   )	__name__
__module____qualname____firstlineno____doc__r   r   r"   __static_attributes__ r   r   r   r      s    /85r   r   N)	r(   
__future__r   r   r   )googlecloudsdk.api_lib.container.binauthzr   objectr   r*   r   r   <module>r.      s"     1 &  ' :5V 5r   