| 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/emulators/spanner/__pycache__/ |
Upload File : |
�
��� � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ej
ej j ej j
ej j � � G d� d ej � � � � Zd
S )z'gcloud emulators spanner start command.� )�absolute_import)�division)�unicode_literals)�arg_parsers)�base)�spanner_utilc �6 � e Zd ZdZddiZed� � � Zd� ZdS )�Startz_Start a local Cloud Spanner emulator.
This command starts a local Cloud Spanner emulator.
�EXAMPLESz[ To start a local Cloud Spanner emulator, run:
$ {command}
c �< � | � ddd� d�� � | � ddt j dd� � d �� � | � d
dt j � � d�� � | � ddt j � � d
d�� � d S )Nz--host-portFc �D � t j � | d�� � S )NT)�ipv6_enabled)r �HostPort�Parse)�args �&lib/surface/emulators/spanner/start.py�<lambda>zStart.Args.<locals>.<lambda>0 s � ��-�3�3�C�d�3�K�K� � a The host:port to which the emulator should be bound. The default value is localhost:9010. Note that this port serves gRPC requests. To override the default port serving REST requests, use --rest-port. If using Docker to run the emulator, the host must be specified as an ipaddress.)�required�type�helpz--rest-port� i�� zyThe port at which REST requests are served. gcloud uses REST to communicate with the emulator. The default value is 9020.z--use-dockera Use the Cloud Spanner emulator docker image even if the platform has a native binary available in the gcloud CLI. Currently we only provide a native binary for Linux. For other systems, you must install Docker for your platform before starting the emulator.z--enable-fault-injectionzvIf true, the emulator will randomly inject faults into transactions. This facilitates application abort-retry testing.)r r r �default)�add_argumentr �
BoundedInt�
ArgBoolean)�parsers r �Argsz
Start.Args+ s� � �
�����
K�
K�� � � � � �����
�
#�A�u�
-�
-�D� � E� E� E� �����
�
#�
%�
%�I� � J� J� J� ���"��
�
#�
%�
%�J��
� � � � � r c � � |j st j dd� � |_ |j sd|_ t j |� � d S )N� localhost�9010i<# )� host_portr r � rest_portr r
)�self�argss r �Runz Start.RunL sI � ��>� A�"�+�K��@�@�d�n��>� ��d�n���t�����r N)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodr r&