| 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 : |
�
�� � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl
mZ dd lm
Z
dd
lmZ ddlmZ e j e j j e j j e j j � � G d� d
e j � � � � ZdS )zFailover an AlloyDB instance.� )�absolute_import)�division)�unicode_literals)�api_util)�instance_operations)�base)�flags)�log)�
properties)� resourcesc �8 � e Zd ZdZddd�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 � � t j � | � � t j | d� � t j | � � t j | � � 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 � � t j | � � � � � }|j }|j }|j � dt j j j
j |j |j
|j �� � }|� |� � � �� � }|j � |� � }t&