Skip to content

Commit a3194ae

Browse files
feat: Automated regeneration of bigquery v2 client (googleapis#20454)
Auto-created at 2024-10-27 09:28:31 +0000 using the toys pull request generator.
1 parent 56c065d commit a3194ae

File tree

6 files changed

+95
-6
lines changed

6 files changed

+95
-6
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45830,6 +45830,7 @@
4583045830
"/bigquery:v2/Dataset": dataset
4583145831
"/bigquery:v2/Dataset/access": access
4583245832
"/bigquery:v2/Dataset/access/access": access
45833+
"/bigquery:v2/Dataset/access/access/condition": condition
4583345834
"/bigquery:v2/Dataset/access/access/dataset": dataset
4583445835
"/bigquery:v2/Dataset/access/access/domain": domain
4583545836
"/bigquery:v2/Dataset/access/access/groupByEmail": group_by_email
@@ -47201,10 +47202,12 @@
4720147202
"/bigquery:v2/bigquery.datasets.delete/deleteContents": delete_contents
4720247203
"/bigquery:v2/bigquery.datasets.delete/projectId": project_id
4720347204
"/bigquery:v2/bigquery.datasets.get": get_dataset
47205+
"/bigquery:v2/bigquery.datasets.get/accessPolicyVersion": access_policy_version
4720447206
"/bigquery:v2/bigquery.datasets.get/datasetId": dataset_id
4720547207
"/bigquery:v2/bigquery.datasets.get/datasetView": dataset_view
4720647208
"/bigquery:v2/bigquery.datasets.get/projectId": project_id
4720747209
"/bigquery:v2/bigquery.datasets.insert": insert_dataset
47210+
"/bigquery:v2/bigquery.datasets.insert/accessPolicyVersion": access_policy_version
4720847211
"/bigquery:v2/bigquery.datasets.insert/projectId": project_id
4720947212
"/bigquery:v2/bigquery.datasets.list": list_datasets
4721047213
"/bigquery:v2/bigquery.datasets.list/all": all
@@ -47213,12 +47216,14 @@
4721347216
"/bigquery:v2/bigquery.datasets.list/pageToken": page_token
4721447217
"/bigquery:v2/bigquery.datasets.list/projectId": project_id
4721547218
"/bigquery:v2/bigquery.datasets.patch": patch_dataset
47219+
"/bigquery:v2/bigquery.datasets.patch/accessPolicyVersion": access_policy_version
4721647220
"/bigquery:v2/bigquery.datasets.patch/datasetId": dataset_id
4721747221
"/bigquery:v2/bigquery.datasets.patch/projectId": project_id
4721847222
"/bigquery:v2/bigquery.datasets.undelete": undelete_dataset
4721947223
"/bigquery:v2/bigquery.datasets.undelete/datasetId": dataset_id
4722047224
"/bigquery:v2/bigquery.datasets.undelete/projectId": project_id
4722147225
"/bigquery:v2/bigquery.datasets.update": update_dataset
47226+
"/bigquery:v2/bigquery.datasets.update/accessPolicyVersion": access_policy_version
4722247227
"/bigquery:v2/bigquery.datasets.update/datasetId": dataset_id
4722347228
"/bigquery:v2/bigquery.datasets.update/projectId": project_id
4722447229
"/bigquery:v2/bigquery.jobs.cancel": cancel_job

generated/google-apis-bigquery_v2/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-bigquery_v2
22

3+
### v0.80.0 (2024-10-27)
4+
5+
* Regenerated from discovery document revision 20241013
6+
37
### v0.79.0 (2024-10-06)
48

59
* Regenerated from discovery document revision 20240919

generated/google-apis-bigquery_v2/lib/google/apis/bigquery_v2/classes.rb

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,6 +1991,25 @@ def update!(**args)
19911991
class Access
19921992
include Google::Apis::Core::Hashable
19931993

1994+
# Represents a textual expression in the Common Expression Language (CEL) syntax.
1995+
# CEL is a C-like expression language. The syntax and semantics of CEL are
1996+
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
1997+
# "Summary size limit" description: "Determines if a summary is less than 100
1998+
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
1999+
# Requestor is owner" description: "Determines if requestor is the document
2000+
# owner" expression: "document.owner == request.auth.claims.email" Example (
2001+
# Logic): title: "Public documents" description: "Determine whether the document
2002+
# should be publicly visible" expression: "document.type != 'private' &&
2003+
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
2004+
# string" description: "Create a notification string with a timestamp."
2005+
# expression: "'New message received at ' + string(document.create_time)" The
2006+
# exact variables and functions that may be referenced within an expression are
2007+
# determined by the service that evaluates it. See the service documentation for
2008+
# additional information.
2009+
# Corresponds to the JSON property `condition`
2010+
# @return [Google::Apis::BigqueryV2::Expr]
2011+
attr_accessor :condition
2012+
19942013
# Grants all resources of particular types in a particular dataset read access
19952014
# to the current dataset. Similar to how individually authorized views work,
19962015
# updates to any resource granted through its dataset (including creation of new
@@ -2064,6 +2083,7 @@ def initialize(**args)
20642083

20652084
# Update properties of this object
20662085
def update!(**args)
2086+
@condition = args[:condition] if args.key?(:condition)
20672087
@dataset = args[:dataset] if args.key?(:dataset)
20682088
@domain = args[:domain] if args.key?(:domain)
20692089
@group_by_email = args[:group_by_email] if args.key?(:group_by_email)

generated/google-apis-bigquery_v2/lib/google/apis/bigquery_v2/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module BigqueryV2
1818
# Version of the google-apis-bigquery_v2 gem
19-
GEM_VERSION = "0.79.0"
19+
GEM_VERSION = "0.80.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20240919"
25+
REVISION = "20241013"
2626
end
2727
end
2828
end

generated/google-apis-bigquery_v2/lib/google/apis/bigquery_v2/representations.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,6 +1800,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
18001800
class Access
18011801
# @private
18021802
class Representation < Google::Apis::Core::JsonRepresentation
1803+
property :condition, as: 'condition', class: Google::Apis::BigqueryV2::Expr, decorator: Google::Apis::BigqueryV2::Expr::Representation
1804+
18031805
property :dataset, as: 'dataset', class: Google::Apis::BigqueryV2::DatasetAccessEntry, decorator: Google::Apis::BigqueryV2::DatasetAccessEntry::Representation
18041806

18051807
property :domain, as: 'domain'

generated/google-apis-bigquery_v2/lib/google/apis/bigquery_v2/service.rb

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,20 @@ def delete_dataset(project_id, dataset_id, delete_contents: nil, fields: nil, qu
9494
# Required. Project ID of the requested dataset
9595
# @param [String] dataset_id
9696
# Required. Dataset ID of the requested dataset
97+
# @param [Fixnum] access_policy_version
98+
# Optional. The version of the access policy schema to fetch. Valid values are 0,
99+
# 1, and 3. Requests specifying an invalid value will be rejected. Requests for
100+
# conditional access policy binding in datasets must specify version 3. Dataset
101+
# with no conditional role bindings in access policy may specify any valid value
102+
# or leave the field unset. This field will be maped to [IAM Policy version] (
103+
# https://cloud.google.com/iam/docs/policies#versions) and will be used to fetch
104+
# policy from IAM. If unset or if 0 or 1 value is used for dataset with
105+
# conditional bindings, access entry with condition will have role string
106+
# appended by 'withcond' string followed by a hash value. For example : ` "
107+
# access": [ ` "role": "roles/bigquery.
108+
# dataViewer_with_conditionalbinding_7a34awqsda", "userByEmail": "user@example.
109+
# com", ` ] ` Please refer https://cloud.google.com/iam/docs/troubleshooting-
110+
# withcond for more details.
97111
# @param [String] dataset_view
98112
# Optional. Specifies the view that determines which dataset information is
99113
# returned. By default, metadata and ACL information are returned.
@@ -114,12 +128,13 @@ def delete_dataset(project_id, dataset_id, delete_contents: nil, fields: nil, qu
114128
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115129
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116130
# @raise [Google::Apis::AuthorizationError] Authorization is required
117-
def get_dataset(project_id, dataset_id, dataset_view: nil, fields: nil, quota_user: nil, options: nil, &block)
131+
def get_dataset(project_id, dataset_id, access_policy_version: nil, dataset_view: nil, fields: nil, quota_user: nil, options: nil, &block)
118132
command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}', options)
119133
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
120134
command.response_class = Google::Apis::BigqueryV2::Dataset
121135
command.params['projectId'] = project_id unless project_id.nil?
122136
command.params['datasetId'] = dataset_id unless dataset_id.nil?
137+
command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
123138
command.query['datasetView'] = dataset_view unless dataset_view.nil?
124139
command.query['fields'] = fields unless fields.nil?
125140
command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -130,6 +145,18 @@ def get_dataset(project_id, dataset_id, dataset_view: nil, fields: nil, quota_us
130145
# @param [String] project_id
131146
# Required. Project ID of the new dataset
132147
# @param [Google::Apis::BigqueryV2::Dataset] dataset_object
148+
# @param [Fixnum] access_policy_version
149+
# Optional. The version of the provided access policy schema. Valid values are 0,
150+
# 1, and 3. Requests specifying an invalid value will be rejected. This version
151+
# refers to the schema version of the access policy and not the version of
152+
# access policy. This field's value can be equal or more than the access policy
153+
# schema provided in the request. For example, * Requests with conditional
154+
# access policy binding in datasets must specify version 3. * But dataset with
155+
# no conditional role bindings in access policy may specify any valid value or
156+
# leave the field unset. If unset or if 0 or 1 value is used for dataset with
157+
# conditional bindings, request will be rejected. This field will be maped to
158+
# IAM Policy version (https://cloud.google.com/iam/docs/policies#versions) and
159+
# will be used to set policy in IAM.
133160
# @param [String] fields
134161
# Selector specifying which fields to include in a partial response.
135162
# @param [String] quota_user
@@ -147,13 +174,14 @@ def get_dataset(project_id, dataset_id, dataset_view: nil, fields: nil, quota_us
147174
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148175
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149176
# @raise [Google::Apis::AuthorizationError] Authorization is required
150-
def insert_dataset(project_id, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
177+
def insert_dataset(project_id, dataset_object = nil, access_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
151178
command = make_simple_command(:post, 'projects/{+projectId}/datasets', options)
152179
command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
153180
command.request_object = dataset_object
154181
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
155182
command.response_class = Google::Apis::BigqueryV2::Dataset
156183
command.params['projectId'] = project_id unless project_id.nil?
184+
command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
157185
command.query['fields'] = fields unless fields.nil?
158186
command.query['quotaUser'] = quota_user unless quota_user.nil?
159187
execute_or_queue_command(command, &block)
@@ -216,6 +244,20 @@ def list_datasets(project_id, all: nil, filter: nil, max_results: nil, page_toke
216244
# @param [String] dataset_id
217245
# Required. Dataset ID of the dataset being updated
218246
# @param [Google::Apis::BigqueryV2::Dataset] dataset_object
247+
# @param [Fixnum] access_policy_version
248+
# Optional. The version of the provided access policy schema. Valid values are 0,
249+
# 1, and 3. Requests specifying an invalid value will be rejected. This version
250+
# refers to the schema version of the access policy and not the version of
251+
# access policy. This field's value can be equal or more than the access policy
252+
# schema provided in the request. For example, * Operations updating conditional
253+
# access policy binding in datasets must specify version 3. Some of the
254+
# operations are : - Adding a new access policy entry with condition. - Removing
255+
# an access policy entry with condition. - Updating an access policy entry with
256+
# condition. * But dataset with no conditional role bindings in access policy
257+
# may specify any valid value or leave the field unset. If unset or if 0 or 1
258+
# value is used for dataset with conditional bindings, request will be rejected.
259+
# This field will be maped to IAM Policy version (https://cloud.google.com/iam/
260+
# docs/policies#versions) and will be used to set policy in IAM.
219261
# @param [String] fields
220262
# Selector specifying which fields to include in a partial response.
221263
# @param [String] quota_user
@@ -233,14 +275,15 @@ def list_datasets(project_id, all: nil, filter: nil, max_results: nil, page_toke
233275
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234276
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235277
# @raise [Google::Apis::AuthorizationError] Authorization is required
236-
def patch_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
278+
def patch_dataset(project_id, dataset_id, dataset_object = nil, access_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
237279
command = make_simple_command(:patch, 'projects/{+projectId}/datasets/{+datasetId}', options)
238280
command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
239281
command.request_object = dataset_object
240282
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
241283
command.response_class = Google::Apis::BigqueryV2::Dataset
242284
command.params['projectId'] = project_id unless project_id.nil?
243285
command.params['datasetId'] = dataset_id unless dataset_id.nil?
286+
command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
244287
command.query['fields'] = fields unless fields.nil?
245288
command.query['quotaUser'] = quota_user unless quota_user.nil?
246289
execute_or_queue_command(command, &block)
@@ -292,6 +335,20 @@ def undelete_dataset(project_id, dataset_id, undelete_dataset_request_object = n
292335
# @param [String] dataset_id
293336
# Required. Dataset ID of the dataset being updated
294337
# @param [Google::Apis::BigqueryV2::Dataset] dataset_object
338+
# @param [Fixnum] access_policy_version
339+
# Optional. The version of the provided access policy schema. Valid values are 0,
340+
# 1, and 3. Requests specifying an invalid value will be rejected. This version
341+
# refers to the schema version of the access policy and not the version of
342+
# access policy. This field's value can be equal or more than the access policy
343+
# schema provided in the request. For example, * Operations updating conditional
344+
# access policy binding in datasets must specify version 3. Some of the
345+
# operations are : - Adding a new access policy entry with condition. - Removing
346+
# an access policy entry with condition. - Updating an access policy entry with
347+
# condition. * But dataset with no conditional role bindings in access policy
348+
# may specify any valid value or leave the field unset. If unset or if 0 or 1
349+
# value is used for dataset with conditional bindings, request will be rejected.
350+
# This field will be maped to IAM Policy version (https://cloud.google.com/iam/
351+
# docs/policies#versions) and will be used to set policy in IAM.
295352
# @param [String] fields
296353
# Selector specifying which fields to include in a partial response.
297354
# @param [String] quota_user
@@ -309,14 +366,15 @@ def undelete_dataset(project_id, dataset_id, undelete_dataset_request_object = n
309366
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
310367
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
311368
# @raise [Google::Apis::AuthorizationError] Authorization is required
312-
def update_dataset(project_id, dataset_id, dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
369+
def update_dataset(project_id, dataset_id, dataset_object = nil, access_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
313370
command = make_simple_command(:put, 'projects/{+projectId}/datasets/{+datasetId}', options)
314371
command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
315372
command.request_object = dataset_object
316373
command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
317374
command.response_class = Google::Apis::BigqueryV2::Dataset
318375
command.params['projectId'] = project_id unless project_id.nil?
319376
command.params['datasetId'] = dataset_id unless dataset_id.nil?
377+
command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
320378
command.query['fields'] = fields unless fields.nil?
321379
command.query['quotaUser'] = quota_user unless quota_user.nil?
322380
execute_or_queue_command(command, &block)

0 commit comments

Comments
 (0)