HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: //usr/lib/google-cloud-sdk/lib/surface/emulators/datastore/__pycache__/start.cpython-312.pyc
�

��h
��4�dZddlmZddlmZddlmZddlZddlmZddlmZddl	m
Z
dd	l	mZdd
lm
Z
ejejj ejj"�ej$Gd�dej&���Zy)
z(gcloud datastore emulator start command.�)�absolute_import)�division)�unicode_literalsN)�arg_parsers)�base)�datastore_util)�util)�javac�.�eZdZdZddiZed��Zd�Zy)�StartzWStart a local datastore emulator.

  This command starts a local datastore emulator.
  �EXAMPLESzN
To start a local datastore emulator, run:

  $ {command} --data-dir=DATA-DIR
c���|jddd�d��|jdddd	�
�|j�}|jddtdd
��|jdddd�
�y)Nz--host-portFc�D�tjj|d��S)NT��ipv6_enabled)r�HostPort�Parse)�args �(lib/surface/emulators/datastore/start.py�<lambda>zStart.Args.<locals>.<lambda>2s���-�-�3�3�C�d�3�K�a*The host:port to which the emulator should be bound. Can take the form of a single address (hostname, IPv4, or IPv6) and/or port:

  [ADDRESS][:PORT]

In this format you must enclose IPv6 addresses in square brackets: e.g.

  [2001:db8:0:0:0:ff00:42:8329]:8080

The default value is localhost:8081.)�required�type�helpz--store-on-diskT�
store_truez)Whether data should be persisted to disk.)�default�actionrz
--consistencyg�������?z�Fraction of eventually consistent operations that should succeed immediately. Setting to 1.0 can be useful for unit tests, but may mask incorrect assumptions about non-ancestor queries which are eventually consistent.)rrrrz!--use-firestore-in-datastore-modez�Runs the emulator in Cloud Firestore in Datastore Mode. Reads are always strongly consistent and --consistency flag may not be specified.)�add_argument�add_mutually_exclusive_group�float)�parser�groups  r�Argsz
Start.Args-s���
�����
K�/�	�
0�������
8�	�:�

�/�/�1�E�	�����
��E��F�
���+����	�rc�j�|jsFtjjt	j
�tj��|_|jjxsd|j_|jjxsd|j_	tjtjd��t	j|�t	j|�5}t	j|�t!j"|d�ddd�y#1swYyxYw)Nr�	localhost�8081�)�min_version�	datastore)�	host_portrrrr�GetHostPort�socket�has_ipv6�host�portr
�RequireJavaInstalled�DATASTORE_TITLE�PrepareGCDDataDir�StartGCDEmulator�WriteGCDEnvYamlr	�PrefixOutput)�self�args�procs   r�Runz	Start.RunQs����>�>�"�+�+�1�1�
�
$�
$�
&�V�_�_�2�F�d�n��.�.�-�-�<��D�N�N���.�.�-�-�7��D�N�N�����n�<�<�"�M��$�$�T�*�	�	(�	(��	.�$��$�$�T�*�
����k�*�
/�	.�	.�s�4,D)�)D2N)�__name__�
__module__�__qualname__�__doc__�
detailed_help�staticmethodr#r9�rrrrs2������-��!��!�F+rr)r=�
__future__rrrr,�googlecloudsdk.callioperr�$googlecloudsdk.command_lib.emulatorsrr	�googlecloudsdk.command_lib.utilr
�
ReleaseTracks�ReleaseTrack�ALPHA�BETA�DefaultUniverseOnly�Commandrr@rr�<module>rKsz��/�&��'�
�/�(�?�5�0�����D�%�%�+�+�T�->�->�-C�-C�D����=+�D�L�L�=+��E�=+r