From fa4f91acabafd95cb8a1ffdb3eccdd48ecf7c284 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Mon, 12 Feb 2024 07:42:30 -0800 Subject: [PATCH] feat: Add UnenrollDataSources API which gives users a programmatic way to unenroll data sources PiperOrigin-RevId: 606248188 --- .../datatransfer/v1/datatransfer.proto | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/google/cloud/bigquery/datatransfer/v1/datatransfer.proto b/google/cloud/bigquery/datatransfer/v1/datatransfer.proto index 9a61126b6a..67f7e42261 100644 --- a/google/cloud/bigquery/datatransfer/v1/datatransfer.proto +++ b/google/cloud/bigquery/datatransfer/v1/datatransfer.proto @@ -236,6 +236,18 @@ service DataTransferService { } }; } + + // Unenroll data sources in a user project. This allows users to remove + // transfer configurations for these data sources. They will no longer appear + // in the ListDataSources RPC and will also no longer appear in the [BigQuery + // UI](https://console.cloud.google.com/bigquery). + rpc UnenrollDataSources(UnenrollDataSourcesRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*}:unenrollDataSources" + body: "*" + }; + } } // A parameter used to define custom fields in a data source definition. @@ -894,3 +906,14 @@ message EnrollDataSourcesRequest { // data source id. repeated string data_source_ids = 2; } + +// A request to unenroll a set of data sources so they are no longer visible in +// the BigQuery UI's `Transfer` tab. +message UnenrollDataSourcesRequest { + // The name of the project resource in the form: `projects/{project_id}` + string name = 1; + + // Data sources that are unenrolled. It is required to provide at least one + // data source id. + repeated string data_source_ids = 2; +}