
                            S r SSKJr  SSKJr  SSKJr  SSKJr  SSKJr  SSK	J
r
  \R                  " SS	5      r\R                  R                  r\R                  R                   r\R$                  R                   r\ V s/ s H  o R(                  PM     sn S
S r\ V s/ s H  o R(                  PM     sn S
S r\ V s/ s H  o R(                  PM     sn S
S rSrSrSrSS jrSS jrgs  sn f s  sn f s  sn f )z'Utils for transfer appliances commands.    )absolute_import)division)unicode_literals)apis)arg_parsers)regionstransferappliancev1alpha1   Na       Address where the appliance will be shipped. All fields (or list items)
    have a maximum of 80 characters. For more information see
    https://support.google.com/business/answer/6397478.

    *lines*::: Line of the postal address that doesn't fit in the other
    fields. For most countries/regions, the first line will include a street
    number and street name. You can have up to 5 address lines.

    *locality*::: Generally refers to the city/town portion of the address.

    *administrative_area*::: The state or province where the business is
    located. Enter the full name (e.g. "California"), common postal
    abbreviation (e.g. "CA"), or subdivision (ISO 3166-2) code
    (e.g. "US-CA").

    *postal_code*::: The postal code of the address.
    a      *business*::: Name of the business, if applicable.

    *name*::: Name of the primary contact.

    *phone*::: The phone number of the primary contact. Should be given in E.164
    format consisting of the country calling code (1 to 3 digits) and the
    subscriber number, with no additional spaces or formatting, e.g.
    `15552220123`.

    *emails*::: The email of the primary contact along with any additional email
    addresses to include with all correspondence.
    a      Configuration for an offline export transfer, where data is downloaded onto
    the appliance at Google and copied from the appliance at the customer site.

    *source*::: The Cloud Storage bucket or folder where the data is located,
    in the form of `gs://my-bucket/path/to/folder/`.

    *manifest*::: Specifies the path to the manifest in Cloud Storage.
    An example path is `gs://bucket_name/path/manifest.csv`. The paths in
    the manifest file are relative to bucketname. For example, to export
    `SOURCE_PATH/object1.pdf`, manifest will have `object1.pdf` in the first
    column, followed by object version (optional). For more information see
    https://cloud.google.com/storage-transfer/docs/manifest#object_storage_transfers.
    c                    U R                  SS9nUR                  S[        U[        R                  SS9  UR                  SSS9  U(       a  UR                  S	S
SS9  UR                  SSS9  UR                  SSS9  UR                  SSS9  UR                  S[
        R                  " [        [        S.S9[        S9  g)z2Adds appliance flags for appliances orders create.	APPLIANCEcategoryz--modelz Model of the appliance to order.)choicesrequiredtypehelpz--display-namezCA mutable, user-settable name for both the appliance and the order.r   z--internet-enabled
store_truezGives the option to put the appliance into online mode, allowing it to transfer data and/or remotely report progress to the cloud over the network. When disabled only offline transfers are possible.)actionr   z--cmekzyCustomer-managed key which will add additional layer of security. By default data is encrypted with a Google-managed key.z--online-importzDestination for a online import, where data is loaded onto the appliance and automatically transferred to Cloud Storage whenever it has an internet connection. Should be in the form of `gs://my-bucket/path/to/folder/`.z--offline-importzDestination for a offline import, where data is loaded onto the appliance at the customer site and ingested at Google. Should be in the form of `gs://my-bucket/path/to/folder/`.z--offline-export)sourcemanifest)specr   r   N)	add_groupadd_argument_APPLIANCE_MODELSstrupperr   ArgDict_OFFLINE_EXPORT_HELP)parserfor_create_commandappliance_settingss      ;lib/googlecloudsdk/command_lib/transfer/appliances/flags.pyadd_appliance_settingsr&   R   s    '''=!!!99- "  !!P "  ##'	 $ 	 !!E "  !!/ "  !!; "  !!s$DE "     c           
         U(       a   U R                  S[        R                  SSS9  U R                  SS9nUR                  S[        R
                  " [        R                  " SS	9[        [        [        S
.SS/S9[        S9  UR                  SSS9  [        R
                  " [        [        [        [        R                  " 5       S.S/ SQS9nUR                  SU[        S9  UR                  SU[        S9  g)z1Adds delivery flags for appliances orders create.z	--countryTa2  Country where the appliance will be shipped. Note that this cannot be changed. To ship the appliance to a different country, clone the order instead and set a different country and delivery  address. To view a complete list of country codes and names see https://support.google.com/business/answer/6270107.)r   r   r   DELIVERYr   z	--address   )
max_length)lineslocalityzadministrative-areazpostal-coder,   )r   allow_key_onlyrequired_keysr   z--delivery-noteszAdd any additional details about your order, such as site details and a preference date when the appliance should be delivered.r   )businessnamephoneemails)r1   r2   r3   z--order-contactz--shipping-contactN)
r   r   APPROVED_COUNTRIESr   r   r    ArgListr   _ADDRESS_HELP_CONTACT_HELP)r"   r#   delivery_informationcontact_arg_types       r%   add_delivery_informationr:      s!   
**C    )):)>##"**a8%( 	  		  $  ##K $  !(('')	 /	 ## $ 
 ## $ r'   )T)__doc__
__future__r   r   r   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper   .googlecloudsdk.command_lib.transfer.appliancesr   GetMessagesModule	_MESSAGES	ApplianceModelValueValuesEnumAPPLIANCE_MODEL_ENUMStateValueValuesEnum_APPLIANCE_STATE_ENUMOrder_ORDER_STATE_ENUMr1   r   _APPLIANCE_STATES_ORDER_STATESr6   r7   r!   r&   r:   )es   0r%   <module>rL      s    . &  ' , / B ""#6
C	 **?? !++@@ OO88 %9:%9VV%9:12> %:;%:VV%:;AB? !23!2A!23AB7$  5p9W ;;3s    C*C/>C4