Skip to content

Commit

Permalink
feat: Add UnenrollDataSources API which gives users a programmatic wa…
Browse files Browse the repository at this point in the history
…y to unenroll data sources

PiperOrigin-RevId: 606248188
  • Loading branch information
Google APIs authored and Copybara-Service committed Feb 12, 2024
1 parent e183baf commit fa4f91a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions google/cloud/bigquery/datatransfer/v1/datatransfer.proto
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
}

0 comments on commit fa4f91a

Please sign in to comment.