google-apis-bigquery_v2 0.79.0 → 0.81.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c7f2d4a8e1f4d91b11dfefb31a36c811133e1ee506c551fe1504e8ee08c7cec
4
- data.tar.gz: b8b2ca06d02e96a08a471626c434dcf30f4b37e1d2b7929befde73c9de836577
3
+ metadata.gz: 79f797aca4481ce0a3e593c30ff965d0ff4d7aa1629ca15681215adc0a881927
4
+ data.tar.gz: 24bfd38515ad70498b60d19a49b16a846b777953f819b128562de8c3bd8d79b3
5
5
  SHA512:
6
- metadata.gz: 78cbb9d90588a70e669960a3e68c201218540ee8d50d18ffdebe7493300292f75cdf8bbe9de2b41965e923a8e789331ec3c7a3378b714f2347ec2a067105c59b
7
- data.tar.gz: bcf06e78fb35644178b77adb3e75c9b72d4dd465423e385c7706483ab445847c853267d36e7c5b1742c743ff39312c87a9326a21198851012d087c322b95a7b9
6
+ metadata.gz: 1405e137e8bb16bb5d537addcf773baddfa2ffffad1a17720baea4599ff2f80b54c1a2d26a73c27282d4d5d241b18e960ec6fdb4caf52f5e3694a65c2049dae7
7
+ data.tar.gz: e3910d4acee81538f893601532618983c74962411ac10efb4ad1e075ebb7f71c798fba8eb72d5c104fb50fc796a7472cd2ad0842faa92b3ade686e88357c31d6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.81.0 (2024-11-24)
4
+
5
+ * Regenerated from discovery document revision 20241111
6
+
7
+ ### v0.80.0 (2024-10-27)
8
+
9
+ * Regenerated from discovery document revision 20241013
10
+
3
11
  ### v0.79.0 (2024-10-06)
4
12
 
5
13
  * Regenerated from discovery document revision 20240919
@@ -666,7 +666,7 @@ module Google
666
666
  class BigLakeConfiguration
667
667
  include Google::Apis::Core::Hashable
668
668
 
669
- # Required. The connection specifying the credentials to be used to read and
669
+ # Optional. The connection specifying the credentials to be used to read and
670
670
  # write to external storage, such as Cloud Storage. The connection_id can have
671
671
  # the form ``project`.`location`.`connection_id`` or `projects/`project`/
672
672
  # locations/`location`/connections/`connection_id`".
@@ -674,19 +674,19 @@ module Google
674
674
  # @return [String]
675
675
  attr_accessor :connection_id
676
676
 
677
- # Required. The file format the table data is stored in.
677
+ # Optional. The file format the table data is stored in.
678
678
  # Corresponds to the JSON property `fileFormat`
679
679
  # @return [String]
680
680
  attr_accessor :file_format
681
681
 
682
- # Required. The fully qualified location prefix of the external folder where
682
+ # Optional. The fully qualified location prefix of the external folder where
683
683
  # table data is stored. The '*' wildcard character is not allowed. The URI
684
684
  # should be in the format `gs://bucket/path_to_table/`
685
685
  # Corresponds to the JSON property `storageUri`
686
686
  # @return [String]
687
687
  attr_accessor :storage_uri
688
688
 
689
- # Required. The table format the metadata only snapshots are stored in.
689
+ # Optional. The table format the metadata only snapshots are stored in.
690
690
  # Corresponds to the JSON property `tableFormat`
691
691
  # @return [String]
692
692
  attr_accessor :table_format
@@ -1991,6 +1991,25 @@ module Google
1991
1991
  class Access
1992
1992
  include Google::Apis::Core::Hashable
1993
1993
 
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
+
1994
2013
  # Grants all resources of particular types in a particular dataset read access
1995
2014
  # to the current dataset. Similar to how individually authorized views work,
1996
2015
  # updates to any resource granted through its dataset (including creation of new
@@ -2064,6 +2083,7 @@ module Google
2064
2083
 
2065
2084
  # Update properties of this object
2066
2085
  def update!(**args)
2086
+ @condition = args[:condition] if args.key?(:condition)
2067
2087
  @dataset = args[:dataset] if args.key?(:dataset)
2068
2088
  @domain = args[:domain] if args.key?(:domain)
2069
2089
  @group_by_email = args[:group_by_email] if args.key?(:group_by_email)
@@ -9371,6 +9391,12 @@ module Google
9371
9391
  # @return [String]
9372
9392
  attr_accessor :location
9373
9393
 
9394
+ # Optional. If set, overrides the default managed table type configured in the
9395
+ # dataset.
9396
+ # Corresponds to the JSON property `managedTableType`
9397
+ # @return [String]
9398
+ attr_accessor :managed_table_type
9399
+
9374
9400
  # Definition and configuration of a materialized view.
9375
9401
  # Corresponds to the JSON property `materializedView`
9376
9402
  # @return [Google::Apis::BigqueryV2::MaterializedViewDefinition]
@@ -9599,6 +9625,7 @@ module Google
9599
9625
  @labels = args[:labels] if args.key?(:labels)
9600
9626
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
9601
9627
  @location = args[:location] if args.key?(:location)
9628
+ @managed_table_type = args[:managed_table_type] if args.key?(:managed_table_type)
9602
9629
  @materialized_view = args[:materialized_view] if args.key?(:materialized_view)
9603
9630
  @materialized_view_status = args[:materialized_view_status] if args.key?(:materialized_view_status)
9604
9631
  @max_staleness = args[:max_staleness] if args.key?(:max_staleness)
@@ -10704,7 +10731,7 @@ module Google
10704
10731
 
10705
10732
  # The contribution metric. Applies to contribution analysis models. Allowed
10706
10733
  # formats supported are for summable and summable ratio contribution metrics.
10707
- # These include expressions such as "SUM(x)" or "SUM(x)/SUM(y)", where x and y
10734
+ # These include expressions such as `SUM(x)` or `SUM(x)/SUM(y)`, where x and y
10708
10735
  # are column names from the base table.
10709
10736
  # Corresponds to the JSON property `contributionMetric`
10710
10737
  # @return [String]
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module BigqueryV2
18
18
  # Version of the google-apis-bigquery_v2 gem
19
- GEM_VERSION = "0.79.0"
19
+ GEM_VERSION = "0.81.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240919"
25
+ REVISION = "20241111"
26
26
  end
27
27
  end
28
28
  end
@@ -1800,6 +1800,8 @@ module Google
1800
1800
  class Access
1801
1801
  # @private
1802
1802
  class Representation < Google::Apis::Core::JsonRepresentation
1803
+ property :condition, as: 'condition', class: Google::Apis::BigqueryV2::Expr, decorator: Google::Apis::BigqueryV2::Expr::Representation
1804
+
1803
1805
  property :dataset, as: 'dataset', class: Google::Apis::BigqueryV2::DatasetAccessEntry, decorator: Google::Apis::BigqueryV2::DatasetAccessEntry::Representation
1804
1806
 
1805
1807
  property :domain, as: 'domain'
@@ -3628,6 +3630,7 @@ module Google
3628
3630
  hash :labels, as: 'labels'
3629
3631
  property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
3630
3632
  property :location, as: 'location'
3633
+ property :managed_table_type, as: 'managedTableType'
3631
3634
  property :materialized_view, as: 'materializedView', class: Google::Apis::BigqueryV2::MaterializedViewDefinition, decorator: Google::Apis::BigqueryV2::MaterializedViewDefinition::Representation
3632
3635
 
3633
3636
  property :materialized_view_status, as: 'materializedViewStatus', class: Google::Apis::BigqueryV2::MaterializedViewStatus, decorator: Google::Apis::BigqueryV2::MaterializedViewStatus::Representation
@@ -94,6 +94,20 @@ module Google
94
94
  # Required. Project ID of the requested dataset
95
95
  # @param [String] dataset_id
96
96
  # 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.
97
111
  # @param [String] dataset_view
98
112
  # Optional. Specifies the view that determines which dataset information is
99
113
  # returned. By default, metadata and ACL information are returned.
@@ -114,12 +128,13 @@ module Google
114
128
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
129
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
130
  # @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)
118
132
  command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}', options)
119
133
  command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
120
134
  command.response_class = Google::Apis::BigqueryV2::Dataset
121
135
  command.params['projectId'] = project_id unless project_id.nil?
122
136
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
137
+ command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
123
138
  command.query['datasetView'] = dataset_view unless dataset_view.nil?
124
139
  command.query['fields'] = fields unless fields.nil?
125
140
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -130,6 +145,18 @@ module Google
130
145
  # @param [String] project_id
131
146
  # Required. Project ID of the new dataset
132
147
  # @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.
133
160
  # @param [String] fields
134
161
  # Selector specifying which fields to include in a partial response.
135
162
  # @param [String] quota_user
@@ -147,13 +174,14 @@ module Google
147
174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
148
175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
149
176
  # @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)
151
178
  command = make_simple_command(:post, 'projects/{+projectId}/datasets', options)
152
179
  command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
153
180
  command.request_object = dataset_object
154
181
  command.response_representation = Google::Apis::BigqueryV2::Dataset::Representation
155
182
  command.response_class = Google::Apis::BigqueryV2::Dataset
156
183
  command.params['projectId'] = project_id unless project_id.nil?
184
+ command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
157
185
  command.query['fields'] = fields unless fields.nil?
158
186
  command.query['quotaUser'] = quota_user unless quota_user.nil?
159
187
  execute_or_queue_command(command, &block)
@@ -216,6 +244,20 @@ module Google
216
244
  # @param [String] dataset_id
217
245
  # Required. Dataset ID of the dataset being updated
218
246
  # @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.
219
261
  # @param [String] fields
220
262
  # Selector specifying which fields to include in a partial response.
221
263
  # @param [String] quota_user
@@ -233,7 +275,7 @@ module Google
233
275
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234
276
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235
277
  # @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)
237
279
  command = make_simple_command(:patch, 'projects/{+projectId}/datasets/{+datasetId}', options)
238
280
  command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
239
281
  command.request_object = dataset_object
@@ -241,6 +283,7 @@ module Google
241
283
  command.response_class = Google::Apis::BigqueryV2::Dataset
242
284
  command.params['projectId'] = project_id unless project_id.nil?
243
285
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
286
+ command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
244
287
  command.query['fields'] = fields unless fields.nil?
245
288
  command.query['quotaUser'] = quota_user unless quota_user.nil?
246
289
  execute_or_queue_command(command, &block)
@@ -292,6 +335,20 @@ module Google
292
335
  # @param [String] dataset_id
293
336
  # Required. Dataset ID of the dataset being updated
294
337
  # @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.
295
352
  # @param [String] fields
296
353
  # Selector specifying which fields to include in a partial response.
297
354
  # @param [String] quota_user
@@ -309,7 +366,7 @@ module Google
309
366
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
310
367
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
311
368
  # @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)
313
370
  command = make_simple_command(:put, 'projects/{+projectId}/datasets/{+datasetId}', options)
314
371
  command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
315
372
  command.request_object = dataset_object
@@ -317,6 +374,7 @@ module Google
317
374
  command.response_class = Google::Apis::BigqueryV2::Dataset
318
375
  command.params['projectId'] = project_id unless project_id.nil?
319
376
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
377
+ command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
320
378
  command.query['fields'] = fields unless fields.nil?
321
379
  command.query['quotaUser'] = quota_user unless quota_user.nil?
322
380
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigquery_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.79.0
4
+ version: 0.81.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-06 00:00:00.000000000 Z
11
+ date: 2024-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquery_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.79.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.81.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquery_v2
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.5.6
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for BigQuery API V2