
    r                         S r SSKJr  SSKJr  SSKJr  SSKJr  \R                   " S S\R                  5      5       r
g)	zBImplementation of create-link command for Insights dataset config.    )insights_api)base)log_util)resource_argsc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)

CreateLink   z%Create a link to a BigQuery instance.zX
      Create link to the customer BigQuery instance for Insights dataset config.
      aY  

      To create a link to the customer BigQuery instance for config name:
      "my_config" in location "us-central1":

          $ {command} my_config --location=us-central1

      To create a link for the same dataset config with fully specified name:

          $ {command} projects/foo/locations/us-central1/datasetConfigs/my_config
      )DESCRIPTIONEXAMPLESc                 2    [         R                  " U S5        g )Nzto create link)r   add_dataset_config_resource_arg)parsers    ;lib/surface/storage/insights/dataset_configs/create_link.pyArgsCreateLink.Args-   s    11&:JK    c                     [         R                  " 5       nUR                  R                  R	                  5       R                  5       nUR                  U5      n[        R                  " SUUR                  5        g )NzCreate link)
r   InsightsApiCONCEPTSdataset_configParseRelativeNamecreate_dataset_config_linkr   /dataset_config_operation_started_and_status_logname)selfargsclientdataset_config_relative_name$create_dataset_config_link_operations        r   RunCreateLink.Run1   si    %%'F$$**,99; ! ,2+L+L$,( <<$,11r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r!   __static_attributes__r#   r   r   r   r      s1    -


	-" L Lr   r   N)r(   googlecloudsdk.api_lib.storager   googlecloudsdk.callioper   ;googlecloudsdk.command_lib.storage.insights.dataset_configsr   r   DefaultUniverseOnlyCommandr   r#   r   r   <module>r1      s<     I 7 ( P U % % %r   