
    X                     b    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r
Sr " S	 S
\5      rg)z5Utilities for calling the Composer ImageVersions API.    )absolute_import)division)unicode_literals)util)baseimageVersionsi  c                   X    \ rS rSrSr\R                  R                  4S jrS r	S r
Srg)ImageVersionService   z=Provides supported images version from the Image Version API.c                 d    S U l         Xl        [        R                  " U R                  S9U l        g )N)release_track)clientr   api_utilGetMessagesModulemessages)selfr   s     :lib/googlecloudsdk/api_lib/composer/image_versions_util.py__init__ImageVersionService.__init__   s'    DK&..T=O=OPDM    c                     U R                   c/  [        R                  " U R                  5      R                  U l         U R                   $ )N)r   r   GetClientInstancer    projects_locations_imageVersions)r   s    r   	GetClientImageVersionService.GetClient$   s<    {{..


>> k ;;r   c                     U R                   R                  nU/n[        R                  " X R	                  5       U[
        [        5      $ )zFRetrieves list of supported images version from the Image Version API.)r   1ComposerProjectsLocationsImageVersionsListRequestr   AggregateListResultsr   LIST_FIELD_NAME	PAGE_SIZE)r   project_location_refrequest	locationss       r   ListImageVersionService.List+   s@     mmMMG%&I((..2BI)8)E Er   )r   r   r   N)__name__
__module____qualname____firstlineno____doc__r   ReleaseTrackGAr   r   r$   __static_attributes__ r   r   r
   r
      s%    E#'#4#4#7#7 Q
Er   r
   N)r*   
__future__r   r   r   googlecloudsdk.api_lib.composerr   r   googlecloudsdk.callioper   r   r    objectr
   r.   r   r   <module>r3      s1    < &  ' < (!	E& Er   