
    5                         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 delete-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	)

DeleteLink   z%Delete a link to a BigQuery instance.z3
      Delete a link to a BigQuery instance.
      aA  

      To unlink a dataset config with config name "my_config" in location
      "us-central1":

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

      To delete 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 delete link)r   add_dataset_config_resource_arg)parsers    ;lib/surface/storage/insights/dataset_configs/delete_link.pyArgsDeleteLink.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Delete link)
r   InsightsApiCONCEPTSdataset_configParseRelativeNamedelete_dataset_config_linkr   /dataset_config_operation_started_and_status_logname)selfargsclientdataset_config_relative_name$delete_dataset_config_link_operations        r   RunDeleteLink.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   