
    
                     ^    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r	 " S S	\
5      rg
)z=API client library for Cloud IAM Simulator Replay Operations.    )
list_pager)apis)waiter)
properties)	resourcesi6 c                   N    \ rS rSrSrSS jr\S 5       rS rS r	SS jr
S	 rS
rg)Client   z5API client for Cloud IAM Simulator Replay Operations.Nc                     Xl         X l        U R                  R                  U l        U=(       d    UR                  U l        g N)_api_version_client
operations_serviceMESSAGES_MODULE	_messages)selfapi_versionclientmessagess       6lib/googlecloudsdk/api_lib/iam/simulator/operations.py__init__Client.__init__   s0    #LLL++DM7!7!7DN    c                 >    U " U[         R                  " SU5      5      $ )Npolicysimulator)r   GetClientInstance)clsversions     r   FromApiVersionClient.FromApiVersion%   s    w../@'JKKr   c                 *    UR                  S5      S   $ )N/)split)r   operation_names     r   GetReplayIdClient.GetReplayId)   s    $R((r   c                     U R                   R                  UR                  5       S9nU R                  R	                  U5      $ )N)name)r   #PolicysimulatorOperationsGetRequestRelativeNamer   Get)r   operation_refrequests      r   r-   
Client.Get,   s=    nn@@'') A +G==W%%r   c           	          U R                   R                  UR                  5       US9n[        R                  " U R
                  UUUSSS9$ )N)r*   filterr   pageSize)
batch_sizelimitfieldbatch_size_attribute)r   $PolicysimulatorOperationsListRequestr,   r   YieldFromListr   )r   
parent_refr5   	page_sizelist_filterr/   s         r   ListClient.List1   sS    nnAA$$&{ B <G##') )r   c                    [         R                  R                  5       nUR                  SU R                  5        UR                  UR                  [        R                  R                  R                  R                  SU R                  UR                  5      S.SS9n[        R                  " U R                  5      n[        R                   " XTU["        S9$ )z#Wait for the operation to complete.r   global)
projectsIdlocationsId	replaysIdz5policysimulator.projects.locations.replays.operations)params
collection)wait_ceiling_ms)r   REGISTRYCloneRegisterApiByNamer   Parser*   r   VALUEScoreproject	GetOrFailr'   r   CloudOperationPollerNoResourcesr   WaitFor_MAX_WAIT_TIME_MS)r   	operationmessageregistryr.   pollers         r   WaitForOperationClient.WaitForOperation<   s    !!'')H0$2C2CDNN$++0088BB#)))..9

 K # LM 33DMMBF>>w8IK Kr   )r   r   r   r   r   )NNN)__name__
__module____qualname____firstlineno____doc__r   classmethodr    r'   r-   r=   rV   __static_attributes__ r   r   r	   r	      s5    =8 L L)&
	)Kr   r	   N)r\   apitools.base.pyr   googlecloudsdk.api_lib.utilr   r   googlecloudsdk.corer   r   rQ   objectr	   r_   r   r   <module>rd      s0    D ( , . * )" .KV .Kr   