
    3	                     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)	LocationsClient   z#Client for locations 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
_lo_client)selfrelease_tracks     .lib/googlecloudsdk/api_lib/apphub/locations.py__init__LocationsClient.__init__   s7    11-@DK!33MBDMkk44DO    Nc           	      z    U R                   R                  US9n[        R                  " U R                  USUUSS9$ )az  List all AppHub locations in the Project.

Args:
  parent: str, projects/{projectId}
  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 locations that belong to the given parent.
name	locationspageSize)field
batch_sizelimitbatch_size_attribute)r   "ApphubProjectsLocationsListRequestr   YieldFromListr   )r   parentr!   	page_sizelist_reqs        r   ListLocationsClient.List"   sJ     }}?? @ H##' r   c                 j    U R                   R                  US9nU R                  R                  U5      $ )zDescribe an AppHub location.

Args:
  location: str, the name for the AppHub Location being described.

Returns:
  Described AppHub location resource.
r   )r   !ApphubProjectsLocationsGetRequestr   Get)r   locationdescribe_reqs      r   DescribeLocationsClient.Describe:   s6     ==BB C 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#:#: 5
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(     &  ' ' @ (+-f +-r   