
    	                     f    d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ	 ddl
mZ  G d d	e      Zy
)zDesigncenter Locations API.    )absolute_import)division)unicode_literals)
list_pager)utils)basec                   P    e Zd ZdZej
                  j                  fdZddZd Z	y)LocationsClientz)Client for locations in Designcenter API.c                     t        j                  |      | _        t        j                  |      | _        | j                  j
                  | _        y )N)api_lib_utilsGetClientInstanceclientGetMessagesModulemessagesprojects_locations
_lo_client)selfrelease_tracks     5lib/googlecloudsdk/api_lib/design_center/locations.py__init__zLocationsClient.__init__   s7    11-@DK!33MBDMkk44DO    Nc                     | j                   j                  |      }t        j                  | j                  |d||d      S )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   ListzLocationsClient.List"   sJ     }}EE F H##' r   c                 p    | j                   j                  |      }| j                  j                  |      S )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   DescribezLocationsClient.Describe;   s6     ==HH I L??|,,r   )Nd   )
__name__
__module____qualname____doc__r   ReleaseTrackALPHAr   r&   r,    r   r   r
   r
      s#    1#'#4#4#:#: 5
2-r   r
   N)r1   
__future__r   r   r   apitools.base.pyr   $googlecloudsdk.api_lib.design_centerr   r   googlecloudsdk.callioper   objectr
   r4   r   r   <module>r:      s(    " &  ' ' G (,-f ,-r   