ó
    €ÏÁ  ã                   óJ   • S r SSKJr  SSKJr  SSKJr  S rS rS rS rS	 r	g
)z0Utilities for `gcloud filestore zones` commands.é    )Úabsolute_import)Údivision)Úunicode_literalsc                 ó<   • [        U R                  S5      5      S:H  $ )z2Returns True if the location string is a GCP zone.Ú-é   ©ÚlenÚsplit©Úlocations    Ú:lib/googlecloudsdk/command_lib/filestore/locations_util.pyÚIsZonalr      ó   € ä	ˆX^‰^˜CÓ Ó	! QÑ	&Ð&ó    c                 ó<   • [        U R                  S5      5      S:H  $ )z4Returns True if the location string is a GCP region.r   é   r	   r   s    r   Ú
IsRegionalr      r   r   c                 óH   • SR                  U R                  S5      SS 5      $ )z1Returns the GCP region that the input zone is in.r   Néÿÿÿÿ)Újoinr   )Úzones    r   ÚGetRegionFromZoner       s    € à	‰$—*‘*˜S“/ # 2Ð&Ó	'Ð'r   c              #   óˆ   #   • U  H8  nUb  US::  a    g[        UR                  5      (       d  M*  Uv •  Uc  M3  US-  nM:     g7f)a  Extract the regions from a list of GCP locations.

Args:
  locations: a list of location objects.
  limit: int, The maximum number of records to yield. None if all available
    records should be yielded.

Yields:
  location objects that represent a GCP region.
Nr   é   )r   Ú
locationId©Ú	locationsÚlimitr   s      r   Ú'ExtractRegionsFromLocationsListResponser    %   sE   é € ó €hØÑ˜U a›ZÙÜ(×%Ñ%×&Ó&Ø‚nØ	Ó	Ø‰
Šò ùó   ‚)A¯A¸
Ac              #   óˆ   #   • U  H8  nUb  US::  a    g[        UR                  5      (       d  M*  Uv •  Uc  M3  US-  nM:     g7f)a  Extract the zones from a list of GCP locations.

Args:
  locations: a list of location objects.
  limit: int, The maximum number of records to yield. None if all available
    records should be yielded.

Yields:
  location objects that represent a GCP zone.
Nr   r   )r   r   r   s      r   Ú%ExtractZonesFromLocationsListResponser#   9   sE   é € ó €hØÑ˜U a›ZÙÜˆx×"Ñ"×#Ó#Ø‚nØ	Ó	Ø‰
Šò ùr!   N)
Ú__doc__Ú
__future__r   r   r   r   r   r   r    r#   © r   r   Ú<module>r'      s,   ðñ 7å &Ý Ý 'ò'ò
'ò
(ò
ó(r   