
    	                     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Designcenter Locations 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 Designcenter 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     5lib/googlecloudsdk/api_lib/design_center/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$ )a  List all Designcenter locations in the Project.

Args:
  parent: str, the project in which the locations being listed.
    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 Designcenter locations that belong to the given parent.
name	locationspageSize)field
batch_sizelimitbatch_size_attribute)r   (DesigncenterProjectsLocationsListRequestr   YieldFromListr   )r   parentr!   	page_sizelist_reqs        r   ListLocationsClient.List"   sJ     }}EE F H##' r   c                 j    U R                   R                  US9nU R                  R                  U5      $ )zDescribe a Designcenter location.

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

Returns:
  Described Designcenter location resource.
r   )r   'DesigncenterProjectsLocationsGetRequestr   Get)r   locationdescribe_reqs      r   DescribeLocationsClient.Describe;   s6     ==HH I L??|,,r   )r   r   r   )Nd   )__name__
__module____qualname____firstlineno____doc__r   ReleaseTrackALPHAr   r(   r/   __static_attributes__ r   r   r
   r
      s#    1#'#4#4#:#: 5
2-r   r
   N)r6   
__future__r   r   r   apitools.base.pyr   $googlecloudsdk.api_lib.design_centerr   r   googlecloudsdk.callioper   objectr
   r:   r   r   <module>r@      s(    " &  ' ' G (,-f ,-r   