
    	                     f    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	\5      rg
)zApphub Operations API.    )absolute_import)division)unicode_literals)
list_pager)utils)basec                   \    \ rS rSrSr\R                  R                  4S jrSS jr	S r
Srg)	OperationsClient   z$Client for operations in AppHub API.c                     [         R                  " U5      U l        [         R                  " U5      U l        U R                  R
                  U l        g )N)api_lib_utilsGetClientInstanceclientGetMessagesModulemessagesprojects_locations_operations
_op_client)selfrelease_tracks     /lib/googlecloudsdk/api_lib/apphub/operations.py__init__OperationsClient.__init__   s7    11-@DK!33MBDMkk??DO    Nc           	      z    U R                   R                  US9n[        R                  " U R                  USUUSS9$ )a  List all AppHub operations in the Project/location.

Args:
  parent: str, projects/{projectId}/locations/{location}
  limit: int or None, the total number of results to return.
    Default value is None
  page_size: int, the number of entries in each batch (affects requests
    made, but not the yielded results). Default value is 100.

Returns:
  A list of AppHub operations that belong to the given parent.
name
operationspageSize)field
batch_sizelimitbatch_size_attribute)r   ,ApphubProjectsLocationsOperationsListRequestr   YieldFromListr   )r   parentr!   	page_sizelist_reqs        r   ListOperationsClient.List"   sJ     }}II J H##'
 
r   c                 j    U R                   R                  US9nU R                  R                  U5      $ )zDescribe an AppHub operation.

Args:
  operation: str, the name for the AppHub Operation being described.

Returns:
  Described AppHub operation resource.
r   )r   +ApphubProjectsLocationsOperationsGetRequestr   Get)r   	operationdescribe_reqs      r   DescribeOperationsClient.Describe:   s6     ==LL M L??|,,r   )r   r   r   )Nd   )__name__
__module____qualname____firstlineno____doc__r   ReleaseTrackALPHAr   r(   r/   __static_attributes__ r   r   r
   r
      s$    ,#'#4#4#:#: @

0-r   r
   N)r6   
__future__r   r   r   apitools.base.pyr   googlecloudsdk.api_lib.apphubr   r   googlecloudsdk.callioper   objectr
   r:   r   r   <module>r@      s(     &  ' ' @ (+-v +-r   