Skip to content

Commit 3eac4fc

Browse files
committed
feat(bigquery/admin/v2): generate library
Generate the "admin" library. This is basically the bigquery/v2 library with some omissions. I think we will want to include the `Query()` and `GetQueryResults()` RPCs in a hand-crafted library, and probably using the BigQuery Storage APIs as the underlying implementation. If I am wrong, we can always add these methods back.
1 parent ff9ed35 commit 3eac4fc

15 files changed

+33486
-0
lines changed

.typos.toml

+4
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,10 @@ extend-ignore-re = [
236236
"VerticaDialect",
237237
"\\W[Vv]ertica\\W",
238238
"vertica_dialect",
239+
# src/generated/cloud/bigquery/v2 uses `ALS` which is a false positive typo
240+
# for `ALSO`
241+
"weighted-ALS",
242+
"weighted-als",
239243
# src/generated/cloud/config/v1 has false positives on a product name.
240244
"HashiCorp",
241245
# src/generated/cloud/dialogflow/v2 has some typos, ignoring "whe" everywhere

Cargo.lock

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ members = [
7575
"src/generated/cloud/bigquery/datatransfer/v1",
7676
"src/generated/cloud/bigquery/migration/v2",
7777
"src/generated/cloud/bigquery/reservation/v1",
78+
"src/generated/cloud/bigquery/admin/v2",
7879
"src/generated/cloud/billing/v1",
7980
"src/generated/cloud/binaryauthorization/v1",
8081
"src/generated/cloud/certificatemanager/v1",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"api_id": "bigquery.googleapis.com",
3+
"api_shortname": "bigquery",
4+
"client_documentation": "https://docs.rs/google-cloud-bigquery-admin-v2/latest",
5+
"distribution_name": "google-cloud-rust",
6+
"language": "rust",
7+
"library_type": "GAPIC_AUTO",
8+
"name_pretty": "BigQuery API",
9+
"release_level": "preview",
10+
"repo": "googleapis/google-cloud-rust"
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
[general]
16+
specification-source = 'google/cloud/bigquery/v2'
17+
service-config = 'google/cloud/bigquery/v2/bigquery_v2.yaml'
18+
19+
[source]
20+
skipped-ids = """
21+
.google.cloud.bigquery.v2.JobService.Query,\
22+
.google.cloud.bigquery.v2.PostQueryRequest,\
23+
.google.cloud.bigquery.v2.QueryRequest,\
24+
.google.cloud.bigquery.v2.QueryResponse,\
25+
.google.cloud.bigquery.v2.JobService.GetQueryResults,\
26+
.google.cloud.bigquery.v2.GetQueryResultsRequest,\
27+
.google.cloud.bigquery.v2.GetQueryResultsResponse"""
28+
29+
[codec]
30+
copyright-year = '2025'
31+
package-name-override = 'google-cloud-bigquery-admin-v2'
32+
not-for-publication = 'true'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# https://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# Code generated by sidekick. DO NOT EDIT.
16+
17+
[package]
18+
name = "google-cloud-bigquery-admin-v2"
19+
version = "0.2.0"
20+
description = "Google Cloud Client Libraries for Rust - BigQuery API"
21+
edition.workspace = true
22+
authors.workspace = true
23+
license.workspace = true
24+
repository.workspace = true
25+
keywords.workspace = true
26+
categories.workspace = true
27+
publish = false
28+
29+
[dependencies]
30+
async-trait = { version = "0.1" }
31+
bytes = { version = "1", features = ["serde"] }
32+
gax = { version = "0.21", path = "../../../../../../src/gax", package = "google-cloud-gax", features = ["unstable-sdk-client"] }
33+
gclient = { version = "0.1", path = "../../../../../../src/http-client", package = "google-cloud-http-client" }
34+
gtype = { version = "0.2", path = "../../../../../../src/generated/type", package = "google-cloud-type" }
35+
lazy_static = { version = "1" }
36+
reqwest = { version = "0.12", features = ["json"] }
37+
serde = { version = "1", features = ["serde_derive"] }
38+
serde_json = { version = "1" }
39+
serde_with = { version = "3", default-features = false, features = ["base64", "macros", "std"] }
40+
tracing = { version = "0.1" }
41+
wkt = { version = "0.2", path = "../../../../../../src/wkt", package = "google-cloud-wkt" }
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Google Cloud Client Libraries for Rust - BigQuery API
2+
3+
<!-- Code generated by sidekick. DO NOT EDIT. -->
4+
5+
**WARNING:** this crate is under active development. We expect multiple breaking
6+
changes in the upcoming releases. Testing is also incomplete, we do **not**
7+
recommend that you use this crate in production. We welcome feedback about the
8+
APIs, documentation, missing features, bugs, etc.
9+
10+
A data platform for customers to create, manage, share and query data.
11+
12+
## Quickstart
13+
14+
The main types to work with this crate are the clients:
15+
16+
* [DatasetService](https://docs.rs/google-cloud-bigquery-admin-v2/latest/google_cloud_bigquery_admin_v2/client/struct.DatasetService.html)
17+
* [JobService](https://docs.rs/google-cloud-bigquery-admin-v2/latest/google_cloud_bigquery_admin_v2/client/struct.JobService.html)
18+
* [ModelService](https://docs.rs/google-cloud-bigquery-admin-v2/latest/google_cloud_bigquery_admin_v2/client/struct.ModelService.html)
19+
* [ProjectService](https://docs.rs/google-cloud-bigquery-admin-v2/latest/google_cloud_bigquery_admin_v2/client/struct.ProjectService.html)
20+
* [RoutineService](https://docs.rs/google-cloud-bigquery-admin-v2/latest/google_cloud_bigquery_admin_v2/client/struct.RoutineService.html)
21+
* [RowAccessPolicyService](https://docs.rs/google-cloud-bigquery-admin-v2/latest/google_cloud_bigquery_admin_v2/client/struct.RowAccessPolicyService.html)
22+
* [TableService](https://docs.rs/google-cloud-bigquery-admin-v2/latest/google_cloud_bigquery_admin_v2/client/struct.TableService.html)
23+
24+
## More Information
25+
26+
* Read the [crate's documentation](https://docs.rs/google-cloud-bigquery-admin-v2/latest/google-cloud-bigquery-admin-v2)

0 commit comments

Comments
 (0)