
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ej                   ej                  ej                  j                         G d dej                                      Zy)	zBImplementation of create-link command for Insights dataset config.    )insights_api)base)log_util)resource_argsc                   0    e Zd ZdZdddZed        Zd Zy)
CreateLinkz%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                 0    t        j                  | d       y )Nzto create link)r   add_dataset_config_resource_arg)parsers    ;lib/surface/storage/insights/dataset_configs/create_link.pyArgszCreateLink.Args.   s    11&:JK    c                     t        j                         }|j                  j                  j	                         j                         }|j                  |      }t        j                  d||j                         y )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   RunzCreateLink.Run2   si    %%'F$$**,99; ! ,2+L+L$,( <<$,11r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r   r      s3     .


	-" L Lr   r   N)r#   googlecloudsdk.api_lib.storager   googlecloudsdk.callioper   ;googlecloudsdk.command_lib.storage.insights.dataset_configsr   r   DefaultUniverseOnlyReleaseTracksReleaseTrackALPHACommandr   r&   r   r   <module>r/      s]     I 7 ( P U D%%++,% % - %r   