File: //lib/google-cloud-sdk/lib/surface/datastore/indexes/__pycache__/create.cpython-312.pyc
�
��, � �� � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl
mZ dd l
mZ dd
l
m
Z
ddlmZ ddlmZ dd
lmZ ddlmZ ej, ej. ej0 j2 ej0 j4 � G d� dej6 � � � Zej, ej. ej0 j: � G d� de� � � Zy)z,The gcloud datastore indexes create command.� )�absolute_import)�division)�unicode_literals)�yaml_parsing)� constants)� index_api)�base)�
exceptions)�parser_arguments)�output_helpers)�flags)�
properties)�
console_ioc �j � e Zd ZdZdddd�Zedej ddfd �� Zdd
�Z de
de
d
eddfd�Zy)�CreatezCreate Cloud Datastore indexes.zECreate new datastore indexes based on your local index configuration.z�
Create new datastore indexes based on your local index configuration.
Any indexes in your index file that do not exist will be created.
a) To create new indexes based on your local configuration, run:
$ {command} ~/myapp/index.yaml
Detailed information about index configuration can be found at the
[index.yaml reference](https://cloud.google.com/datastore/docs/tools/indexconfig).
)�brief�DESCRIPTION�EXAMPLES�parser�returnNc �X � t j | � t j | � y)zGet arguments for this command.N)r
�AddIndexFileFlag�AddDatabaseIdFlag)r s �'lib/surface/datastore/indexes/create.py�ArgszCreate.Args9 s � �
���6�"� ���F�#� c � � |j r|j nt j }| j |j |d�� y)z9Create missing indexes as defined in the index.yaml file.F��
index_file�database�
enable_vectorN�r r �DEFAULT_NAMESPACE�
CreateIndexesr ��self�args�database_ids r �Runz
Create.Run? s>