File: //usr/lib/google-cloud-sdk/lib/surface/__pycache__/init.cpython-312.pyc
�
��I\ � � � d Z ddlmZ ddlmZ ddlmZ ddlZddlmZ ddlmZ ddlm
Z
dd lmZ dd
l
mZ ddl
mZ ddl
mZ dd
l
mZ ddl
mZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z ddl!Z!ejD ejF ejH jJ ejH jL ejH jN ejH jP � G d� dejR � � � Z*d� Z+y)z&Workflow to set up gcloud environment.� )�absolute_import)�division)�unicode_literalsN)�base)�
exceptions)�
usage_text)� init_util��config)�execution_utils)�log)�
properties)�yaml)�
named_configs)�
console_io)�store)�network_diagnostics)�resource_projector)�files)� platformsc � � e Zd ZdZej
Zed� � Zd� Z d� Z
dd�Zd� Zdd�Z
d � Zd
� Zd� Zd� Zd
� Zdd�Zy)�Inita: Initialize or reinitialize gcloud.
{command} launches an interactive Getting Started workflow for the gcloud
command-line tool.
It performs the following setup steps:
- Authorizes gcloud and other SDK tools to access Google Cloud using
your user account credentials, or from an account of your choosing whose
credentials are already available.
- Sets up a new or existing configuration.
- Sets properties in that configuration, including the current project and
optionally, the default Google Compute Engine region and zone you'd like to
use.
{command} can be used for initial setup of gcloud and to create new or
reinitialize gcloud configurations. More information about configurations can
be found by running `gcloud topic configurations`.
Properties set by {command} are local and persistent, and are not affected by
remote changes to the project. For example, the default Compute Engine zone in
your configuration remains stable, even if you or another user changes the
project-level default zone in the Cloud Platform Console.
To sync the configuration, re-run `{command}`.
## EXAMPLES
To launch an interactive Getting Started workflow, run:
$ {command}
To launch an interactive Getting Started workflow without diagnostics, run:
$ {command} --skip-diagnostics
c �� � | j dddd�� | j dddd �
� | j ddd �
� | j d
d d�� | j dt dd�� y )N�obsolete_project_arg�?TzTHIS ARGUMENT NEEDS HELP TEXT.)�nargs�hidden�helpz--console-only�--no-launch-browserz�Prevent the command from launching a browser for authorization. Use this flag if you are on a machine that does not have a browser and you cannot install the gcloud CLI on another machine with a browser.�
store_true)r �action�--no-browserz�Prevent the command from launching a browser for authorization. Use this flag if you are on a machine that does not have a browser but you can install the gcloud CLI on another machine with a browser.z--skip-diagnosticszDo not run diagnostics.)r! r z--universe-domainzLIf set, creates the configuration with the specified [core/universe_domain].)�typer r )�add_argument�str)�parsers �lib/surface/init.py�Argsz Init.Args[ s� � �
������
-� � /�
�����
<�
� �
� ����
<�
� � � �����
&� � �
����
��
'� � � c �� � |j r t j |j d� �t j j d� t j j j j � rt j dd� �| j � }|syt j j dj |� � |j s�t j j d� t j j d� t j � j! � }|sWt# j$ d d
d�� s?t j j d
� t j j d� yt'