Skip to content

Commit

Permalink
chore: update proto definitions for bigquery/v2 to support BQML stati…
Browse files Browse the repository at this point in the history
…stics

PiperOrigin-RevId: 337113354
  • Loading branch information
Google APIs authored and copybara-github committed Oct 14, 2020
1 parent 71088f1 commit 215c12a
Show file tree
Hide file tree
Showing 7 changed files with 681 additions and 10 deletions.
1 change: 1 addition & 0 deletions google/cloud/bigquery/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ proto_library(
"model.proto",
"model_reference.proto",
"standard_sql.proto",
"table_reference.proto",
],
deps = [
"//google/api:annotations_proto",
Expand Down
63 changes: 63 additions & 0 deletions google/cloud/bigquery/v2/bigquery_v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,50 @@ apis:

documentation:
summary: 'A data platform for customers to create, manage, share and query data.'
rules:
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
description: |-
Gets the access control policy for a resource. Returns an empty policy
if the resource exists and does not have a policy set.
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
description: |-
Sets the access control policy on the specified resource. Replaces
any existing policy.
Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`
errors.
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
description: |-
Returns permissions that a caller has on the specified resource. If the
resource does not exist, this will return an empty set of
permissions, not a `NOT_FOUND` error.
Note: This operation is designed to be used for building
permission-aware UIs and command-line tools, not for authorization
checking. This operation may "fail open" without warning.
http:
rules:
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
post: '/bigquery/v2/{resource=projects/*/datasets/*}:getIamPolicy'
body: '*'
additional_bindings:
- post: '/bigquery/v2/{resource=projects/*/datasets/*/tables/*}:getIamPolicy'
body: '*'
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
post: '/bigquery/v2/{resource=projects/*/datasets/*}:setIamPolicy'
body: '*'
additional_bindings:
- post: '/bigquery/v2/{resource=projects/*/datasets/*/tables/*}:setIamPolicy'
body: '*'
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
post: '/bigquery/v2/{resource=projects/*/datasets/*}:testIamPermissions'
body: '*'
additional_bindings:
- post: '/bigquery/v2/{resource=projects/*/datasets/*/tables/*}:testIamPermissions'
body: '*'

authentication:
rules:
Expand Down Expand Up @@ -35,3 +79,22 @@ authentication:
canonical_scopes: |-
https://www.googleapis.com/auth/bigquery,
https://www.googleapis.com/auth/cloud-platform
- selector: google.iam.v1.IAMPolicy.GetIamPolicy
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/bigquery,
https://www.googleapis.com/auth/bigquery.readonly,
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
- selector: google.iam.v1.IAMPolicy.SetIamPolicy
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/bigquery,
https://www.googleapis.com/auth/cloud-platform
- selector: google.iam.v1.IAMPolicy.TestIamPermissions
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/bigquery,
https://www.googleapis.com/auth/bigquery.readonly,
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/cloud-platform.read-only
3 changes: 1 addition & 2 deletions google/cloud/bigquery/v2/encryption_config.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC.
// Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

syntax = "proto3";

Expand Down
Loading

0 comments on commit 215c12a

Please sign in to comment.