Skip to content

Commit fa4f91a

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add UnenrollDataSources API which gives users a programmatic way to unenroll data sources
PiperOrigin-RevId: 606248188
1 parent e183baf commit fa4f91a

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

google/cloud/bigquery/datatransfer/v1/datatransfer.proto

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,18 @@ service DataTransferService {
236236
}
237237
};
238238
}
239+
240+
// Unenroll data sources in a user project. This allows users to remove
241+
// transfer configurations for these data sources. They will no longer appear
242+
// in the ListDataSources RPC and will also no longer appear in the [BigQuery
243+
// UI](https://console.cloud.google.com/bigquery).
244+
rpc UnenrollDataSources(UnenrollDataSourcesRequest)
245+
returns (google.protobuf.Empty) {
246+
option (google.api.http) = {
247+
post: "/v1/{name=projects/*/locations/*}:unenrollDataSources"
248+
body: "*"
249+
};
250+
}
239251
}
240252

241253
// A parameter used to define custom fields in a data source definition.
@@ -894,3 +906,14 @@ message EnrollDataSourcesRequest {
894906
// data source id.
895907
repeated string data_source_ids = 2;
896908
}
909+
910+
// A request to unenroll a set of data sources so they are no longer visible in
911+
// the BigQuery UI's `Transfer` tab.
912+
message UnenrollDataSourcesRequest {
913+
// The name of the project resource in the form: `projects/{project_id}`
914+
string name = 1;
915+
916+
// Data sources that are unenrolled. It is required to provide at least one
917+
// data source id.
918+
repeated string data_source_ids = 2;
919+
}

0 commit comments

Comments
 (0)