
    	                     J   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 ddlmZ e	j                   e	j                   e	j"                  j$                  e	j"                  j&                  e	j"                  j(                         G d	 d
e	j*                                      Zy)6Switch a Regional Cloud NetApp Flex Storage Pool zone.    )absolute_import)division)unicode_literals)client)base)flags)logc                   0    e Zd ZdZdddZed        Zd Zy)Switchr   zK          Switch a Regional Cloud NetApp Flex Storage Pool zone.
          aK            The following command switches zone of a Storage Pool named NAME using the required arguments:

              $ {command} NAME --location=us-central1

          To switch zone of a Storage Pool named NAME asynchronously, run the following command:

              $ {command} NAME --location=us-central1 --async
          )DESCRIPTIONEXAMPLESc                 .    t        j                  |        y )N)storagepools_flagsAddStoragePoolSwitchArg)parsers    *lib/surface/netapp/storage_pools/switch.pyArgszSwitch.Args1   s    ..v6    c                    |j                   j                  j                         }t        j                  | j                               }|j                  ||j                        }|j                  rWdj                  | j                         j                        }t        j                  j                  dj                  |             |S )zMSwitch a Regional Cloud NetApp Flex Storage Pool zone in the current project.z#gcloud {} netapp storage-pools listzYCheck the status of the zone switch of storage pool by listing all storage pools:
  $ {} )CONCEPTSstorage_poolParsestoragepools_clientStoragePoolsClientReleaseTrackSwitchStoragePoolasync_formatprefixr
   statusPrint)selfargsstoragepool_refr   resultcommands         r   Runz
Switch.Run5   s    mm00668O 33D4E4E4GHF%%ot{{CF{{5<<




$
$g 
jj%%+VG_ Mr   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r(    r   r   r   r      s1    
 ?	- 7 7r   r   N)r,   
__future__r   r   r   +googlecloudsdk.api_lib.netapp.storage_poolsr   r   googlecloudsdk.callioper   /googlecloudsdk.command_lib.netapp.storage_poolsr	   r   googlecloudsdk.corer
   UniverseCompatibleReleaseTracksr   BETAALPHAGACommandr   r/   r   r   <module>r;      s    = &  ' U ( W # D--33T5F5F5I5I$T\\ $ $r   