| 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/sql/backups/__pycache__/ |
Upload File : |
�
��< � �< � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl
mZ dd lm
Z
dd
lmZ e j e j e j e j j e j j e j j � � G d� de j � � � � � � � � Zd
S )z+Update the expiry time of the FINAL backup.� )�absolute_import)�division)�unicode_literals)�api_util)�
operations)�base)�flags)�log)�
console_ioc �. � e Zd ZdZed� � � Zd� ZdS )�Patchz/Update the Final backup of a Cloud SQL project.c � � t j | � � | � dd�� � }t j |� � |� dd�� � }t j |� � t j |� � dS )z�Args is called by calliope to gather arguments for this command.
Args:
parser: An argparse parser that you can use to add arguments that go on
the command line after this command. Positional arguments are allowed.
T)�required�hiddenFN)r �
AddBackupName� add_group�AddBackupDescription�add_mutually_exclusive_group�AddBackupExpiryTime�AddBackupTtlDays)�parser�update_group�expiration_groups � lib/surface/sql/backups/patch.py�Argsz
Patch.Args% s� � �
�������#�#�T�$�#�?�?�L� ��|�,�,�,�#�@�@��t� A� � ��
��.�/�/�/� ��+�,�,�,�,�,� c � � t j t j � � }|j }|j }t j ddd�� � |� |j �� � }d}|j �|j dk r|j |_
d}|j �!|j � d� � |_
d }|j �|j |_ |�|d
z }|r|nddz }|� ||j |�
� � }|j � |� � }|j � d|j |j � d� � d �� � } t, j � || d� � t3 j |j � � dS )a) Update the Final backup of a Cloud SQL project.
Args:
args: argparse.Namespace, The arguments that this command was invoked
with.
Returns:
A dict object representing the operations resource describing the delete
operation if the api request was successful.
zThis backup will be updated.T)�message�default�cancel_on_no)�nameNr �ttl_daysz%Y-%m-%dT%H:%M:%S.%fZ�expiry_time�,� �description)�backupr! �
updateMaskzsql.operations�/� )� operation�projectzUpdating backup)r � SqlClient�API_VERSION_DEFAULT�
sql_client�sql_messagesr �PromptContinue�Backupr! r"