
                         l    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 r " S	 S
\5      rg)z6Utilities Assured Workloads API, Operations Endpoints.    )absolute_import)division)unicode_literals)
list_pager)util)	resourcesc                 r    [         R                  R                  U R                  SS9nUR	                  5       $ )Nz3assuredworkloads.organizations.locations.operations)
collection)r   REGISTRYParseRelativeNamenameSelfLink)resourceworkloads     0lib/googlecloudsdk/api_lib/assured/operations.pyGetWorkloadURIr      s9    11mmF 2 H( 
			    c                   2    \ rS rSrSrSS jrS	S jrS rSrg)
OperationsClient!   z/Client for operations in Assured Workloads API.c                     [         R                  " X5      U l        [         R                  " U5      U l        U R                  R
                  U l        g )N)r   GetClientInstanceclientGetMessagesModulemessages"organizations_locations_operations_service)selfrelease_trackno_https      r   __init__OperationsClient.__init__$   s7    ((@DK**=9DMKKBBDMr   Nc           	      z    U R                   R                  XS9n[        R                  " U R                  USUUSS9$ )a  List all Assured Workloads operations that belong to the given parent organization.

Args:
  parent: str, the parent organization of the Assured Workloads operations
    to be listed, in the form: organizations/{ORG_ID}/locations/{LOCATION}.
  limit: int or None, the total number of results to return.
  page_size: int, the number of entries in each batch (affects requests
    made, but not the yielded results).

Returns:
  A list of all Assured Workloads operations that belong to the given parent
  organization.
)r   pageSize
operationsN)field
batch_sizelimitbatch_size_attribute)r   ;AssuredworkloadsOrganizationsLocationsOperationsListRequestr   YieldFromListr   )r   parentr(   	page_sizelist_reqs        r   ListOperationsClient.List)   sJ     }}XX Y )H##!# #r   c                 ~    U R                   R                  US9nU R                  R                  R	                  U5      $ )zDescribe an Assured Workloads operation.

Args:
  name: str, the name for the Assured Operation being described.

Returns:
  Described Assured Workloads operation resource.
)r   )r   :AssuredworkloadsOrganizationsLocationsOperationsGetRequestr   r   Get)r   r   describe_reqs      r   DescribeOperationsClient.DescribeA   s<     ==[[ \ L;;99==lKKr   )r   r   r   )F)Nd   )	__name__
__module____qualname____firstlineno____doc__r!   r/   r5   __static_attributes__ r   r   r   r   !   s    7C
#0Lr   r   N)r<   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.assuredr   googlecloudsdk.corer   r   objectr   r>   r   r   <module>rD      s/    = &  ' ' / )+Lv +Lr   