
    b                         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 delete-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)
DeleteLinkz%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                 0    t        j                  | d       y )Nzto delete link)r   add_dataset_config_resource_arg)parsers    ;lib/surface/storage/insights/dataset_configs/delete_link.pyArgszDeleteLink.Args.   s    11&:JK    c                     t        j                         }|j                  j                  j	                         j                         }|j                  |      }t        j                  d||j                         y )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   RunzDeleteLink.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   