Skip to content

Commit 215c12a

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
chore: update proto definitions for bigquery/v2 to support BQML statistics
PiperOrigin-RevId: 337113354
1 parent 71088f1 commit 215c12a

File tree

7 files changed

+681
-10
lines changed

7 files changed

+681
-10
lines changed

google/cloud/bigquery/v2/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ proto_library(
1616
"model.proto",
1717
"model_reference.proto",
1818
"standard_sql.proto",
19+
"table_reference.proto",
1920
],
2021
deps = [
2122
"//google/api:annotations_proto",

google/cloud/bigquery/v2/bigquery_v2.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,50 @@ apis:
88

99
documentation:
1010
summary: 'A data platform for customers to create, manage, share and query data.'
11+
rules:
12+
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
13+
description: |-
14+
Gets the access control policy for a resource. Returns an empty policy
15+
if the resource exists and does not have a policy set.
16+
17+
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
18+
description: |-
19+
Sets the access control policy on the specified resource. Replaces
20+
any existing policy.
21+
22+
Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
23+
errors.
24+
25+
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
26+
description: |-
27+
Returns permissions that a caller has on the specified resource. If the
28+
resource does not exist, this will return an empty set of
29+
permissions, not a `NOT_FOUND` error.
30+
31+
Note: This operation is designed to be used for building
32+
permission-aware UIs and command-line tools, not for authorization
33+
checking. This operation may "fail open" without warning.
34+
35+
http:
36+
rules:
37+
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
38+
post: '/bigquery/v2/{resource=projects/*/datasets/*}:getIamPolicy'
39+
body: '*'
40+
additional_bindings:
41+
- post: '/bigquery/v2/{resource=projects/*/datasets/*/tables/*}:getIamPolicy'
42+
body: '*'
43+
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
44+
post: '/bigquery/v2/{resource=projects/*/datasets/*}:setIamPolicy'
45+
body: '*'
46+
additional_bindings:
47+
- post: '/bigquery/v2/{resource=projects/*/datasets/*/tables/*}:setIamPolicy'
48+
body: '*'
49+
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
50+
post: '/bigquery/v2/{resource=projects/*/datasets/*}:testIamPermissions'
51+
body: '*'
52+
additional_bindings:
53+
- post: '/bigquery/v2/{resource=projects/*/datasets/*/tables/*}:testIamPermissions'
54+
body: '*'
1155

1256
authentication:
1357
rules:
@@ -35,3 +79,22 @@ authentication:
3579
canonical_scopes: |-
3680
https://www.googleapis.com/auth/bigquery,
3781
https://www.googleapis.com/auth/cloud-platform
82+
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
83+
oauth:
84+
canonical_scopes: |-
85+
https://www.googleapis.com/auth/bigquery,
86+
https://www.googleapis.com/auth/bigquery.readonly,
87+
https://www.googleapis.com/auth/cloud-platform,
88+
https://www.googleapis.com/auth/cloud-platform.read-only
89+
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
90+
oauth:
91+
canonical_scopes: |-
92+
https://www.googleapis.com/auth/bigquery,
93+
https://www.googleapis.com/auth/cloud-platform
94+
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
95+
oauth:
96+
canonical_scopes: |-
97+
https://www.googleapis.com/auth/bigquery,
98+
https://www.googleapis.com/auth/bigquery.readonly,
99+
https://www.googleapis.com/auth/cloud-platform,
100+
https://www.googleapis.com/auth/cloud-platform.read-only

google/cloud/bigquery/v2/encryption_config.proto

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2019 Google LLC.
1+
// Copyright 2020 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -11,7 +11,6 @@
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
14-
//
1514

1615
syntax = "proto3";
1716

0 commit comments

Comments
 (0)