google-apis-bigquery_v2 0.87.0 → 0.92.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: a7da5f69c4edcf7ccd68cd3cf1575052b5e3054190b109e57e1ba4f217835e58
4
- data.tar.gz: a80c1ce3a1a3b60dbf76cff64ed1f4633e34be0c621e9d1ebd77eb363f51f017
3
+ metadata.gz: e6688ea793c403f3e507fc682f6c6f00feb0c6d2a6bb3f8003579f8b0c7d7f95
4
+ data.tar.gz: 507add9ff75d94b451533ac577465533ca8a90154a750073a88ff47e74150476
5
5
  SHA512:
6
- metadata.gz: dd3823d1a79828fb6d6c5a2b23415f2f21070274647edfce779f16d0574cedbb21de50f60ab6bcda06f6c855d8404e1c347f10e4feb2d7a20652db5027106154
7
- data.tar.gz: 4b703bdf7e0094eed6252e218a7e6d0dc02f325e449160488dcf0c29eb131066c6b9274dee6d953873cf21cf9b37692eef2d2eae91f7c88a9c11c97374219ffb
6
+ metadata.gz: 8f55da4a5d2ad70b9b9ec59bbad5e50e85f0372df0f94f137ea005af6d63d8c87e9b35c72bf1957bb4a01f0277e1a84150a75b209c7eb4601271fcef3595a3ec
7
+ data.tar.gz: d28563ca44ff1b740431fd3be0fcca5fe9fdafa280510cfd37537c8bbcec7bffe8bffa9566c1fecdf18aa2df7c23e7f5d44b471783a05396a17aba336468e5c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.92.0 (2025-08-03)
4
+
5
+ * Regenerated from discovery document revision 20250713
6
+
7
+ ### v0.91.0 (2025-07-27)
8
+
9
+ * Regenerated from discovery document revision 20250706
10
+
11
+ ### v0.90.0 (2025-06-29)
12
+
13
+ * Regenerated from discovery document revision 20250615
14
+ * Regenerated using generator version 0.18.0
15
+
16
+ ### v0.89.0 (2025-05-18)
17
+
18
+ * Regenerated from discovery document revision 20250511
19
+
20
+ ### v0.88.0 (2025-05-04)
21
+
22
+ * Regenerated from discovery document revision 20250427
23
+ * Regenerated using generator version 0.17.0
24
+
3
25
  ### v0.87.0 (2025-04-20)
4
26
 
5
27
  * Regenerated from discovery document revision 20250404
data/OVERVIEW.md CHANGED
@@ -83,7 +83,7 @@ The [product documentation](https://cloud.google.com/bigquery/) may provide guid
83
83
 
84
84
  ## Supported Ruby versions
85
85
 
86
- This library is supported on Ruby 2.7+.
86
+ This library is supported on Ruby 3.1+.
87
87
 
88
88
  Google provides official support for Ruby versions that are actively supported by Ruby Core -- that is, Ruby versions that are either in normal maintenance or in security maintenance, and not end of life. Older versions of Ruby _may_ still work, but are unsupported and not recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby support schedule.
89
89
 
@@ -1688,6 +1688,13 @@ module Google
1688
1688
  class DataFormatOptions
1689
1689
  include Google::Apis::Core::Hashable
1690
1690
 
1691
+ # Optional. The API output format for a timestamp. This offers more explicit
1692
+ # control over the timestamp output format as compared to the existing `
1693
+ # use_int64_timestamp` option.
1694
+ # Corresponds to the JSON property `timestampOutputFormat`
1695
+ # @return [String]
1696
+ attr_accessor :timestamp_output_format
1697
+
1691
1698
  # Optional. Output timestamp as usec int64. Default is false.
1692
1699
  # Corresponds to the JSON property `useInt64Timestamp`
1693
1700
  # @return [Boolean]
@@ -1700,6 +1707,7 @@ module Google
1700
1707
 
1701
1708
  # Update properties of this object
1702
1709
  def update!(**args)
1710
+ @timestamp_output_format = args[:timestamp_output_format] if args.key?(:timestamp_output_format)
1703
1711
  @use_int64_timestamp = args[:use_int64_timestamp] if args.key?(:use_int64_timestamp)
1704
1712
  end
1705
1713
  end
@@ -2268,6 +2276,11 @@ module Google
2268
2276
  # @return [Google::Apis::BigqueryV2::DatasetReference]
2269
2277
  attr_accessor :dataset_reference
2270
2278
 
2279
+ # Configures the access a dataset defined in an external metadata storage.
2280
+ # Corresponds to the JSON property `externalDatasetReference`
2281
+ # @return [Google::Apis::BigqueryV2::ExternalDatasetReference]
2282
+ attr_accessor :external_dataset_reference
2283
+
2271
2284
  # An alternate name for the dataset. The friendly name is purely decorative in
2272
2285
  # nature.
2273
2286
  # Corresponds to the JSON property `friendlyName`
@@ -2302,6 +2315,7 @@ module Google
2302
2315
  # Update properties of this object
2303
2316
  def update!(**args)
2304
2317
  @dataset_reference = args[:dataset_reference] if args.key?(:dataset_reference)
2318
+ @external_dataset_reference = args[:external_dataset_reference] if args.key?(:external_dataset_reference)
2305
2319
  @friendly_name = args[:friendly_name] if args.key?(:friendly_name)
2306
2320
  @id = args[:id] if args.key?(:id)
2307
2321
  @kind = args[:kind] if args.key?(:kind)
@@ -3408,6 +3422,59 @@ module Google
3408
3422
  end
3409
3423
  end
3410
3424
 
3425
+ # Options for the runtime of the external system.
3426
+ class ExternalRuntimeOptions
3427
+ include Google::Apis::Core::Hashable
3428
+
3429
+ # Optional. Amount of CPU provisioned for a Python UDF container instance. For
3430
+ # more information, see [Configure container limits for Python UDFs](https://
3431
+ # cloud.google.com/bigquery/docs/user-defined-functions-python#configure-
3432
+ # container-limits)
3433
+ # Corresponds to the JSON property `containerCpu`
3434
+ # @return [Float]
3435
+ attr_accessor :container_cpu
3436
+
3437
+ # Optional. Amount of memory provisioned for a Python UDF container instance.
3438
+ # Format: `number``unit` where unit is one of "M", "G", "Mi" and "Gi" (e.g. 1G,
3439
+ # 512Mi). If not specified, the default value is 512Mi. For more information,
3440
+ # see [Configure container limits for Python UDFs](https://cloud.google.com/
3441
+ # bigquery/docs/user-defined-functions-python#configure-container-limits)
3442
+ # Corresponds to the JSON property `containerMemory`
3443
+ # @return [String]
3444
+ attr_accessor :container_memory
3445
+
3446
+ # Optional. Maximum number of rows in each batch sent to the external runtime.
3447
+ # If absent or if 0, BigQuery dynamically decides the number of rows in a batch.
3448
+ # Corresponds to the JSON property `maxBatchingRows`
3449
+ # @return [Fixnum]
3450
+ attr_accessor :max_batching_rows
3451
+
3452
+ # Optional. Fully qualified name of the connection whose service account will be
3453
+ # used to execute the code in the container. Format: ```"projects/`project_id`/
3454
+ # locations/`location_id`/connections/`connection_id`"```
3455
+ # Corresponds to the JSON property `runtimeConnection`
3456
+ # @return [String]
3457
+ attr_accessor :runtime_connection
3458
+
3459
+ # Optional. Language runtime version. Example: `python-3.11`.
3460
+ # Corresponds to the JSON property `runtimeVersion`
3461
+ # @return [String]
3462
+ attr_accessor :runtime_version
3463
+
3464
+ def initialize(**args)
3465
+ update!(**args)
3466
+ end
3467
+
3468
+ # Update properties of this object
3469
+ def update!(**args)
3470
+ @container_cpu = args[:container_cpu] if args.key?(:container_cpu)
3471
+ @container_memory = args[:container_memory] if args.key?(:container_memory)
3472
+ @max_batching_rows = args[:max_batching_rows] if args.key?(:max_batching_rows)
3473
+ @runtime_connection = args[:runtime_connection] if args.key?(:runtime_connection)
3474
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
3475
+ end
3476
+ end
3477
+
3411
3478
  # The external service cost is a portion of the total cost, these costs are not
3412
3479
  # additive with total_bytes_billed. Moreover, this field only track external
3413
3480
  # service costs that will show up as BigQuery costs (e.g. training BigQuery ML
@@ -3421,6 +3488,13 @@ module Google
3421
3488
  class ExternalServiceCost
3422
3489
  include Google::Apis::Core::Hashable
3423
3490
 
3491
+ # The billing method used for the external job. This field is only used when
3492
+ # billed on the services sku, set to "SERVICES_SKU". Otherwise, it is
3493
+ # unspecified for backward compatibility.
3494
+ # Corresponds to the JSON property `billingMethod`
3495
+ # @return [String]
3496
+ attr_accessor :billing_method
3497
+
3424
3498
  # External service cost in terms of bigquery bytes billed.
3425
3499
  # Corresponds to the JSON property `bytesBilled`
3426
3500
  # @return [Fixnum]
@@ -3454,6 +3528,7 @@ module Google
3454
3528
 
3455
3529
  # Update properties of this object
3456
3530
  def update!(**args)
3531
+ @billing_method = args[:billing_method] if args.key?(:billing_method)
3457
3532
  @bytes_billed = args[:bytes_billed] if args.key?(:bytes_billed)
3458
3533
  @bytes_processed = args[:bytes_processed] if args.key?(:bytes_processed)
3459
3534
  @external_service = args[:external_service] if args.key?(:external_service)
@@ -4349,8 +4424,7 @@ module Google
4349
4424
  # com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `
4350
4425
  # JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.
4351
4426
  # google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will
4352
- # always be `REQUESTED`. [Preview](https://cloud.google.com/products/#product-
4353
- # launch-stages)
4427
+ # always be `REQUESTED`.
4354
4428
  # Corresponds to the JSON property `jobCreationReason`
4355
4429
  # @return [Google::Apis::BigqueryV2::JobCreationReason]
4356
4430
  attr_accessor :job_creation_reason
@@ -4967,8 +5041,8 @@ module Google
4967
5041
  # @return [Google::Apis::BigqueryV2::TimePartitioning]
4968
5042
  attr_accessor :time_partitioning
4969
5043
 
4970
- # Optional. [Experimental] Default time zone that will apply when parsing
4971
- # timestamp values that have no specific time zone.
5044
+ # Optional. Default time zone that will apply when parsing timestamp values that
5045
+ # have no specific time zone.
4972
5046
  # Corresponds to the JSON property `timeZone`
4973
5047
  # @return [String]
4974
5048
  attr_accessor :time_zone
@@ -4989,12 +5063,14 @@ module Google
4989
5063
  # Optional. Specifies the action that occurs if the destination table already
4990
5064
  # exists. The following values are supported: * WRITE_TRUNCATE: If the table
4991
5065
  # already exists, BigQuery overwrites the data, removes the constraints and uses
4992
- # the schema from the load job. * WRITE_APPEND: If the table already exists,
4993
- # BigQuery appends the data to the table. * WRITE_EMPTY: If the table already
4994
- # exists and contains data, a 'duplicate' error is returned in the job result.
4995
- # The default value is WRITE_APPEND. Each action is atomic and only occurs if
4996
- # BigQuery is able to complete the job successfully. Creation, truncation and
4997
- # append actions occur as one atomic update upon job completion.
5066
+ # the schema from the load job. * WRITE_TRUNCATE_DATA: If the table already
5067
+ # exists, BigQuery overwrites the data, but keeps the constraints and schema of
5068
+ # the existing table. * WRITE_APPEND: If the table already exists, BigQuery
5069
+ # appends the data to the table. * WRITE_EMPTY: If the table already exists and
5070
+ # contains data, a 'duplicate' error is returned in the job result. The default
5071
+ # value is WRITE_APPEND. Each action is atomic and only occurs if BigQuery is
5072
+ # able to complete the job successfully. Creation, truncation and append actions
5073
+ # occur as one atomic update upon job completion.
4998
5074
  # Corresponds to the JSON property `writeDisposition`
4999
5075
  # @return [String]
5000
5076
  attr_accessor :write_disposition
@@ -5250,12 +5326,14 @@ module Google
5250
5326
  # Optional. Specifies the action that occurs if the destination table already
5251
5327
  # exists. The following values are supported: * WRITE_TRUNCATE: If the table
5252
5328
  # already exists, BigQuery overwrites the data, removes the constraints, and
5253
- # uses the schema from the query result. * WRITE_APPEND: If the table already
5254
- # exists, BigQuery appends the data to the table. * WRITE_EMPTY: If the table
5255
- # already exists and contains data, a 'duplicate' error is returned in the job
5256
- # result. The default value is WRITE_EMPTY. Each action is atomic and only
5257
- # occurs if BigQuery is able to complete the job successfully. Creation,
5258
- # truncation and append actions occur as one atomic update upon job completion.
5329
+ # uses the schema from the query result. * WRITE_TRUNCATE_DATA: If the table
5330
+ # already exists, BigQuery overwrites the data, but keeps the constraints and
5331
+ # schema of the existing table. * WRITE_APPEND: If the table already exists,
5332
+ # BigQuery appends the data to the table. * WRITE_EMPTY: If the table already
5333
+ # exists and contains data, a 'duplicate' error is returned in the job result.
5334
+ # The default value is WRITE_EMPTY. Each action is atomic and only occurs if
5335
+ # BigQuery is able to complete the job successfully. Creation, truncation and
5336
+ # append actions occur as one atomic update upon job completion.
5259
5337
  # Corresponds to the JSON property `writeDisposition`
5260
5338
  # @return [String]
5261
5339
  attr_accessor :write_disposition
@@ -5387,8 +5465,7 @@ module Google
5387
5465
  # com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `
5388
5466
  # JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.
5389
5467
  # google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will
5390
- # always be `REQUESTED`. [Preview](https://cloud.google.com/products/#product-
5391
- # launch-stages)
5468
+ # always be `REQUESTED`.
5392
5469
  class JobCreationReason
5393
5470
  include Google::Apis::Core::Hashable
5394
5471
 
@@ -5907,8 +5984,7 @@ module Google
5907
5984
  # @return [Array<Google::Apis::BigqueryV2::RoutineReference>]
5908
5985
  attr_accessor :referenced_routines
5909
5986
 
5910
- # Output only. Referenced tables for the job. Queries that reference more than
5911
- # 50 tables will not have a complete list.
5987
+ # Output only. Referenced tables for the job.
5912
5988
  # Corresponds to the JSON property `referencedTables`
5913
5989
  # @return [Array<Google::Apis::BigqueryV2::TableReference>]
5914
5990
  attr_accessor :referenced_tables
@@ -6060,6 +6136,14 @@ module Google
6060
6136
  # @return [Fixnum]
6061
6137
  attr_accessor :total_partitions_processed
6062
6138
 
6139
+ # Output only. Total slot-milliseconds for the job that run on external services
6140
+ # and billed on the service SKU. This field is only populated for jobs that have
6141
+ # external service costs, and is the total of the usage for costs whose billing
6142
+ # method is "SERVICES_SKU".
6143
+ # Corresponds to the JSON property `totalServicesSkuSlotMs`
6144
+ # @return [Fixnum]
6145
+ attr_accessor :total_services_sku_slot_ms
6146
+
6063
6147
  # Output only. Slot-milliseconds for the job.
6064
6148
  # Corresponds to the JSON property `totalSlotMs`
6065
6149
  # @return [Fixnum]
@@ -6128,6 +6212,7 @@ module Google
6128
6212
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
6129
6213
  @total_bytes_processed_accuracy = args[:total_bytes_processed_accuracy] if args.key?(:total_bytes_processed_accuracy)
6130
6214
  @total_partitions_processed = args[:total_partitions_processed] if args.key?(:total_partitions_processed)
6215
+ @total_services_sku_slot_ms = args[:total_services_sku_slot_ms] if args.key?(:total_services_sku_slot_ms)
6131
6216
  @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
6132
6217
  @transferred_bytes = args[:transferred_bytes] if args.key?(:transferred_bytes)
6133
6218
  @undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters)
@@ -7493,6 +7578,35 @@ module Google
7493
7578
  end
7494
7579
  end
7495
7580
 
7581
+ # Options for a user-defined Python function.
7582
+ class PythonOptions
7583
+ include Google::Apis::Core::Hashable
7584
+
7585
+ # Required. The name of the function defined in Python code as the entry point
7586
+ # when the Python UDF is invoked.
7587
+ # Corresponds to the JSON property `entryPoint`
7588
+ # @return [String]
7589
+ attr_accessor :entry_point
7590
+
7591
+ # Optional. A list of Python package names along with versions to be installed.
7592
+ # Example: ["pandas>=2.1", "google-cloud-translate==3.11"]. For more information,
7593
+ # see [Use third-party packages](https://cloud.google.com/bigquery/docs/user-
7594
+ # defined-functions-python#third-party-packages).
7595
+ # Corresponds to the JSON property `packages`
7596
+ # @return [Array<String>]
7597
+ attr_accessor :packages
7598
+
7599
+ def initialize(**args)
7600
+ update!(**args)
7601
+ end
7602
+
7603
+ # Update properties of this object
7604
+ def update!(**args)
7605
+ @entry_point = args[:entry_point] if args.key?(:entry_point)
7606
+ @packages = args[:packages] if args.key?(:packages)
7607
+ end
7608
+ end
7609
+
7496
7610
  # Query optimization information for a QUERY job.
7497
7611
  class QueryInfo
7498
7612
  include Google::Apis::Core::Hashable
@@ -7564,6 +7678,13 @@ module Google
7564
7678
  # @return [Array<Google::Apis::BigqueryV2::QueryParameterType::StructType>]
7565
7679
  attr_accessor :struct_types
7566
7680
 
7681
+ # Optional. Precision (maximum number of total digits in base 10) for seconds of
7682
+ # TIMESTAMP type. Possible values include: * 6 (Default, for TIMESTAMP type with
7683
+ # microsecond precision) * 12 (For TIMESTAMP type with picosecond precision)
7684
+ # Corresponds to the JSON property `timestampPrecision`
7685
+ # @return [Fixnum]
7686
+ attr_accessor :timestamp_precision
7687
+
7567
7688
  # Required. The top level type of this field.
7568
7689
  # Corresponds to the JSON property `type`
7569
7690
  # @return [String]
@@ -7578,6 +7699,7 @@ module Google
7578
7699
  @array_type = args[:array_type] if args.key?(:array_type)
7579
7700
  @range_element_type = args[:range_element_type] if args.key?(:range_element_type)
7580
7701
  @struct_types = args[:struct_types] if args.key?(:struct_types)
7702
+ @timestamp_precision = args[:timestamp_precision] if args.key?(:timestamp_precision)
7581
7703
  @type = args[:type] if args.key?(:type)
7582
7704
  end
7583
7705
 
@@ -7701,8 +7823,7 @@ module Google
7701
7823
  attr_accessor :format_options
7702
7824
 
7703
7825
  # Optional. If not set, jobs are always required. If set, the query request will
7704
- # follow the behavior described JobCreationMode. [Preview](https://cloud.google.
7705
- # com/products/#product-launch-stages)
7826
+ # follow the behavior described JobCreationMode.
7706
7827
  # Corresponds to the JSON property `jobCreationMode`
7707
7828
  # @return [String]
7708
7829
  attr_accessor :job_creation_mode
@@ -7928,8 +8049,7 @@ module Google
7928
8049
  # com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `
7929
8050
  # JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.
7930
8051
  # google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will
7931
- # always be `REQUESTED`. [Preview](https://cloud.google.com/products/#product-
7932
- # launch-stages)
8052
+ # always be `REQUESTED`.
7933
8053
  # Corresponds to the JSON property `jobCreationReason`
7934
8054
  # @return [Google::Apis::BigqueryV2::JobCreationReason]
7935
8055
  attr_accessor :job_creation_reason
@@ -7965,8 +8085,7 @@ module Google
7965
8085
  # @return [String]
7966
8086
  attr_accessor :page_token
7967
8087
 
7968
- # Auto-generated ID for the query. [Preview](https://cloud.google.com/products/#
7969
- # product-launch-stages)
8088
+ # Auto-generated ID for the query.
7970
8089
  # Corresponds to the JSON property `queryId`
7971
8090
  # @return [String]
7972
8091
  attr_accessor :query_id
@@ -8083,6 +8202,12 @@ module Google
8083
8202
  # @return [Fixnum]
8084
8203
  attr_accessor :pending_units
8085
8204
 
8205
+ # Total shuffle usage ratio in shuffle RAM per reservation of this query. This
8206
+ # will be provided for reservation customers only.
8207
+ # Corresponds to the JSON property `shuffleRamUsageRatio`
8208
+ # @return [Float]
8209
+ attr_accessor :shuffle_ram_usage_ratio
8210
+
8086
8211
  # Cumulative slot-ms consumed by the query.
8087
8212
  # Corresponds to the JSON property `totalSlotMs`
8088
8213
  # @return [Fixnum]
@@ -8099,6 +8224,7 @@ module Google
8099
8224
  @elapsed_ms = args[:elapsed_ms] if args.key?(:elapsed_ms)
8100
8225
  @estimated_runnable_units = args[:estimated_runnable_units] if args.key?(:estimated_runnable_units)
8101
8226
  @pending_units = args[:pending_units] if args.key?(:pending_units)
8227
+ @shuffle_ram_usage_ratio = args[:shuffle_ram_usage_ratio] if args.key?(:shuffle_ram_usage_ratio)
8102
8228
  @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
8103
8229
  end
8104
8230
  end
@@ -8446,6 +8572,11 @@ module Google
8446
8572
  # @return [String]
8447
8573
  attr_accessor :etag
8448
8574
 
8575
+ # Options for the runtime of the external system.
8576
+ # Corresponds to the JSON property `externalRuntimeOptions`
8577
+ # @return [Google::Apis::BigqueryV2::ExternalRuntimeOptions]
8578
+ attr_accessor :external_runtime_options
8579
+
8449
8580
  # Optional. If language = "JAVASCRIPT", this field stores the path of the
8450
8581
  # imported JAVASCRIPT libraries.
8451
8582
  # Corresponds to the JSON property `importedLibraries`
@@ -8464,6 +8595,11 @@ module Google
8464
8595
  # @return [Fixnum]
8465
8596
  attr_accessor :last_modified_time
8466
8597
 
8598
+ # Options for a user-defined Python function.
8599
+ # Corresponds to the JSON property `pythonOptions`
8600
+ # @return [Google::Apis::BigqueryV2::PythonOptions]
8601
+ attr_accessor :python_options
8602
+
8467
8603
  # Options for a remote user-defined function.
8468
8604
  # Corresponds to the JSON property `remoteFunctionOptions`
8469
8605
  # @return [Google::Apis::BigqueryV2::RemoteFunctionOptions]
@@ -8533,9 +8669,11 @@ module Google
8533
8669
  @description = args[:description] if args.key?(:description)
8534
8670
  @determinism_level = args[:determinism_level] if args.key?(:determinism_level)
8535
8671
  @etag = args[:etag] if args.key?(:etag)
8672
+ @external_runtime_options = args[:external_runtime_options] if args.key?(:external_runtime_options)
8536
8673
  @imported_libraries = args[:imported_libraries] if args.key?(:imported_libraries)
8537
8674
  @language = args[:language] if args.key?(:language)
8538
8675
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
8676
+ @python_options = args[:python_options] if args.key?(:python_options)
8539
8677
  @remote_function_options = args[:remote_function_options] if args.key?(:remote_function_options)
8540
8678
  @return_table_type = args[:return_table_type] if args.key?(:return_table_type)
8541
8679
  @return_type = args[:return_type] if args.key?(:return_type)
@@ -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.87.0"
19
+ GEM_VERSION = "0.92.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.16.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250404"
25
+ REVISION = "20250713"
26
26
  end
27
27
  end
28
28
  end
@@ -430,6 +430,12 @@ module Google
430
430
  include Google::Apis::Core::JsonObjectSupport
431
431
  end
432
432
 
433
+ class ExternalRuntimeOptions
434
+ class Representation < Google::Apis::Core::JsonRepresentation; end
435
+
436
+ include Google::Apis::Core::JsonObjectSupport
437
+ end
438
+
433
439
  class ExternalServiceCost
434
440
  class Representation < Google::Apis::Core::JsonRepresentation; end
435
441
 
@@ -868,6 +874,12 @@ module Google
868
874
  include Google::Apis::Core::JsonObjectSupport
869
875
  end
870
876
 
877
+ class PythonOptions
878
+ class Representation < Google::Apis::Core::JsonRepresentation; end
879
+
880
+ include Google::Apis::Core::JsonObjectSupport
881
+ end
882
+
871
883
  class QueryInfo
872
884
  class Representation < Google::Apis::Core::JsonRepresentation; end
873
885
 
@@ -1751,6 +1763,7 @@ module Google
1751
1763
  class DataFormatOptions
1752
1764
  # @private
1753
1765
  class Representation < Google::Apis::Core::JsonRepresentation
1766
+ property :timestamp_output_format, as: 'timestampOutputFormat'
1754
1767
  property :use_int64_timestamp, as: 'useInt64Timestamp'
1755
1768
  end
1756
1769
  end
@@ -1879,6 +1892,8 @@ module Google
1879
1892
  class Representation < Google::Apis::Core::JsonRepresentation
1880
1893
  property :dataset_reference, as: 'datasetReference', class: Google::Apis::BigqueryV2::DatasetReference, decorator: Google::Apis::BigqueryV2::DatasetReference::Representation
1881
1894
 
1895
+ property :external_dataset_reference, as: 'externalDatasetReference', class: Google::Apis::BigqueryV2::ExternalDatasetReference, decorator: Google::Apis::BigqueryV2::ExternalDatasetReference::Representation
1896
+
1882
1897
  property :friendly_name, as: 'friendlyName'
1883
1898
  property :id, as: 'id'
1884
1899
  property :kind, as: 'kind'
@@ -2145,9 +2160,21 @@ module Google
2145
2160
  end
2146
2161
  end
2147
2162
 
2163
+ class ExternalRuntimeOptions
2164
+ # @private
2165
+ class Representation < Google::Apis::Core::JsonRepresentation
2166
+ property :container_cpu, as: 'containerCpu'
2167
+ property :container_memory, as: 'containerMemory'
2168
+ property :max_batching_rows, :numeric_string => true, as: 'maxBatchingRows'
2169
+ property :runtime_connection, as: 'runtimeConnection'
2170
+ property :runtime_version, as: 'runtimeVersion'
2171
+ end
2172
+ end
2173
+
2148
2174
  class ExternalServiceCost
2149
2175
  # @private
2150
2176
  class Representation < Google::Apis::Core::JsonRepresentation
2177
+ property :billing_method, as: 'billingMethod'
2151
2178
  property :bytes_billed, :numeric_string => true, as: 'bytesBilled'
2152
2179
  property :bytes_processed, :numeric_string => true, as: 'bytesProcessed'
2153
2180
  property :external_service, as: 'externalService'
@@ -2765,6 +2792,7 @@ module Google
2765
2792
  property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
2766
2793
  property :total_bytes_processed_accuracy, as: 'totalBytesProcessedAccuracy'
2767
2794
  property :total_partitions_processed, :numeric_string => true, as: 'totalPartitionsProcessed'
2795
+ property :total_services_sku_slot_ms, :numeric_string => true, as: 'totalServicesSkuSlotMs'
2768
2796
  property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
2769
2797
  property :transferred_bytes, :numeric_string => true, as: 'transferredBytes'
2770
2798
  collection :undeclared_query_parameters, as: 'undeclaredQueryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
@@ -3150,6 +3178,14 @@ module Google
3150
3178
  end
3151
3179
  end
3152
3180
 
3181
+ class PythonOptions
3182
+ # @private
3183
+ class Representation < Google::Apis::Core::JsonRepresentation
3184
+ property :entry_point, as: 'entryPoint'
3185
+ collection :packages, as: 'packages'
3186
+ end
3187
+ end
3188
+
3153
3189
  class QueryInfo
3154
3190
  # @private
3155
3191
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3177,6 +3213,7 @@ module Google
3177
3213
 
3178
3214
  collection :struct_types, as: 'structTypes', class: Google::Apis::BigqueryV2::QueryParameterType::StructType, decorator: Google::Apis::BigqueryV2::QueryParameterType::StructType::Representation
3179
3215
 
3216
+ property :timestamp_precision, :numeric_string => true, as: 'timestampPrecision'
3180
3217
  property :type, as: 'type'
3181
3218
  end
3182
3219
 
@@ -3281,6 +3318,7 @@ module Google
3281
3318
  property :elapsed_ms, :numeric_string => true, as: 'elapsedMs'
3282
3319
  property :estimated_runnable_units, :numeric_string => true, as: 'estimatedRunnableUnits'
3283
3320
  property :pending_units, :numeric_string => true, as: 'pendingUnits'
3321
+ property :shuffle_ram_usage_ratio, as: 'shuffleRamUsageRatio'
3284
3322
  property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
3285
3323
  end
3286
3324
  end
@@ -3374,9 +3412,13 @@ module Google
3374
3412
  property :description, as: 'description'
3375
3413
  property :determinism_level, as: 'determinismLevel'
3376
3414
  property :etag, as: 'etag'
3415
+ property :external_runtime_options, as: 'externalRuntimeOptions', class: Google::Apis::BigqueryV2::ExternalRuntimeOptions, decorator: Google::Apis::BigqueryV2::ExternalRuntimeOptions::Representation
3416
+
3377
3417
  collection :imported_libraries, as: 'importedLibraries'
3378
3418
  property :language, as: 'language'
3379
3419
  property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
3420
+ property :python_options, as: 'pythonOptions', class: Google::Apis::BigqueryV2::PythonOptions, decorator: Google::Apis::BigqueryV2::PythonOptions::Representation
3421
+
3380
3422
  property :remote_function_options, as: 'remoteFunctionOptions', class: Google::Apis::BigqueryV2::RemoteFunctionOptions, decorator: Google::Apis::BigqueryV2::RemoteFunctionOptions::Representation
3381
3423
 
3382
3424
  property :return_table_type, as: 'returnTableType', class: Google::Apis::BigqueryV2::StandardSqlTableType, decorator: Google::Apis::BigqueryV2::StandardSqlTableType::Representation
@@ -258,6 +258,9 @@ module Google
258
258
  # value is used for dataset with conditional bindings, request will be rejected.
259
259
  # This field will be mapped to IAM Policy version (https://cloud.google.com/iam/
260
260
  # docs/policies#versions) and will be used to set policy in IAM.
261
+ # @param [String] update_mode
262
+ # Optional. Specifies the fields of dataset that update/patch operation is
263
+ # targeting By default, both metadata and ACL fields are updated.
261
264
  # @param [String] fields
262
265
  # Selector specifying which fields to include in a partial response.
263
266
  # @param [String] quota_user
@@ -275,7 +278,7 @@ module Google
275
278
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
276
279
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
277
280
  # @raise [Google::Apis::AuthorizationError] Authorization is required
278
- def patch_dataset(project_id, dataset_id, dataset_object = nil, access_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
281
+ def patch_dataset(project_id, dataset_id, dataset_object = nil, access_policy_version: nil, update_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
279
282
  command = make_simple_command(:patch, 'projects/{+projectId}/datasets/{+datasetId}', options)
280
283
  command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
281
284
  command.request_object = dataset_object
@@ -284,6 +287,7 @@ module Google
284
287
  command.params['projectId'] = project_id unless project_id.nil?
285
288
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
286
289
  command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
290
+ command.query['updateMode'] = update_mode unless update_mode.nil?
287
291
  command.query['fields'] = fields unless fields.nil?
288
292
  command.query['quotaUser'] = quota_user unless quota_user.nil?
289
293
  execute_or_queue_command(command, &block)
@@ -349,6 +353,9 @@ module Google
349
353
  # value is used for dataset with conditional bindings, request will be rejected.
350
354
  # This field will be mapped to IAM Policy version (https://cloud.google.com/iam/
351
355
  # docs/policies#versions) and will be used to set policy in IAM.
356
+ # @param [String] update_mode
357
+ # Optional. Specifies the fields of dataset that update/patch operation is
358
+ # targeting By default, both metadata and ACL fields are updated.
352
359
  # @param [String] fields
353
360
  # Selector specifying which fields to include in a partial response.
354
361
  # @param [String] quota_user
@@ -366,7 +373,7 @@ module Google
366
373
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
367
374
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
368
375
  # @raise [Google::Apis::AuthorizationError] Authorization is required
369
- def update_dataset(project_id, dataset_id, dataset_object = nil, access_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
376
+ def update_dataset(project_id, dataset_id, dataset_object = nil, access_policy_version: nil, update_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
370
377
  command = make_simple_command(:put, 'projects/{+projectId}/datasets/{+datasetId}', options)
371
378
  command.request_representation = Google::Apis::BigqueryV2::Dataset::Representation
372
379
  command.request_object = dataset_object
@@ -375,6 +382,7 @@ module Google
375
382
  command.params['projectId'] = project_id unless project_id.nil?
376
383
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
377
384
  command.query['accessPolicyVersion'] = access_policy_version unless access_policy_version.nil?
385
+ command.query['updateMode'] = update_mode unless update_mode.nil?
378
386
  command.query['fields'] = fields unless fields.nil?
379
387
  command.query['quotaUser'] = quota_user unless quota_user.nil?
380
388
  execute_or_queue_command(command, &block)
@@ -508,6 +516,10 @@ module Google
508
516
  # Required. Project ID of the query job.
509
517
  # @param [String] job_id
510
518
  # Required. Job ID of the query job.
519
+ # @param [String] format_options_timestamp_output_format
520
+ # Optional. The API output format for a timestamp. This offers more explicit
521
+ # control over the timestamp output format as compared to the existing `
522
+ # use_int64_timestamp` option.
511
523
  # @param [Boolean] format_options_use_int64_timestamp
512
524
  # Optional. Output timestamp as usec int64. Default is false.
513
525
  # @param [String] location
@@ -550,12 +562,13 @@ module Google
550
562
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
551
563
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
552
564
  # @raise [Google::Apis::AuthorizationError] Authorization is required
553
- def get_job_query_results(project_id, job_id, format_options_use_int64_timestamp: nil, location: nil, max_results: nil, page_token: nil, start_index: nil, timeout_ms: nil, fields: nil, quota_user: nil, options: nil, &block)
565
+ def get_job_query_results(project_id, job_id, format_options_timestamp_output_format: nil, format_options_use_int64_timestamp: nil, location: nil, max_results: nil, page_token: nil, start_index: nil, timeout_ms: nil, fields: nil, quota_user: nil, options: nil, &block)
554
566
  command = make_simple_command(:get, 'projects/{+projectId}/queries/{+jobId}', options)
555
567
  command.response_representation = Google::Apis::BigqueryV2::GetQueryResultsResponse::Representation
556
568
  command.response_class = Google::Apis::BigqueryV2::GetQueryResultsResponse
557
569
  command.params['projectId'] = project_id unless project_id.nil?
558
570
  command.params['jobId'] = job_id unless job_id.nil?
571
+ command.query['formatOptions.timestampOutputFormat'] = format_options_timestamp_output_format unless format_options_timestamp_output_format.nil?
559
572
  command.query['formatOptions.useInt64Timestamp'] = format_options_use_int64_timestamp unless format_options_use_int64_timestamp.nil?
560
573
  command.query['location'] = location unless location.nil?
561
574
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -1165,6 +1178,45 @@ module Google
1165
1178
  execute_or_queue_command(command, &block)
1166
1179
  end
1167
1180
 
1181
+ # Returns permissions that a caller has on the specified resource. If the
1182
+ # resource does not exist, this will return an empty set of permissions, not a `
1183
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1184
+ # permission-aware UIs and command-line tools, not for authorization checking.
1185
+ # This operation may "fail open" without warning.
1186
+ # @param [String] resource
1187
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1188
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1189
+ # appropriate value for this field.
1190
+ # @param [Google::Apis::BigqueryV2::TestIamPermissionsRequest] test_iam_permissions_request_object
1191
+ # @param [String] fields
1192
+ # Selector specifying which fields to include in a partial response.
1193
+ # @param [String] quota_user
1194
+ # Available to use for quota purposes for server-side applications. Can be any
1195
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1196
+ # @param [Google::Apis::RequestOptions] options
1197
+ # Request-specific options
1198
+ #
1199
+ # @yield [result, err] Result & error if block supplied
1200
+ # @yieldparam result [Google::Apis::BigqueryV2::TestIamPermissionsResponse] parsed result object
1201
+ # @yieldparam err [StandardError] error object if request failed
1202
+ #
1203
+ # @return [Google::Apis::BigqueryV2::TestIamPermissionsResponse]
1204
+ #
1205
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1206
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1207
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1208
+ def test_routine_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1209
+ command = make_simple_command(:post, '{+resource}:testIamPermissions', options)
1210
+ command.request_representation = Google::Apis::BigqueryV2::TestIamPermissionsRequest::Representation
1211
+ command.request_object = test_iam_permissions_request_object
1212
+ command.response_representation = Google::Apis::BigqueryV2::TestIamPermissionsResponse::Representation
1213
+ command.response_class = Google::Apis::BigqueryV2::TestIamPermissionsResponse
1214
+ command.params['resource'] = resource unless resource.nil?
1215
+ command.query['fields'] = fields unless fields.nil?
1216
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1217
+ execute_or_queue_command(command, &block)
1218
+ end
1219
+
1168
1220
  # Updates information in an existing routine. The update method replaces the
1169
1221
  # entire Routine resource.
1170
1222
  # @param [String] project_id
@@ -1569,6 +1621,10 @@ module Google
1569
1621
  # Required. Dataset id of the table to list.
1570
1622
  # @param [String] table_id
1571
1623
  # Required. Table id of the table to list.
1624
+ # @param [String] format_options_timestamp_output_format
1625
+ # Optional. The API output format for a timestamp. This offers more explicit
1626
+ # control over the timestamp output format as compared to the existing `
1627
+ # use_int64_timestamp` option.
1572
1628
  # @param [Boolean] format_options_use_int64_timestamp
1573
1629
  # Optional. Output timestamp as usec int64. Default is false.
1574
1630
  # @param [Fixnum] max_results
@@ -1599,13 +1655,14 @@ module Google
1599
1655
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1600
1656
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1601
1657
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1602
- def list_table_data(project_id, dataset_id, table_id, format_options_use_int64_timestamp: nil, max_results: nil, page_token: nil, selected_fields: nil, start_index: nil, fields: nil, quota_user: nil, options: nil, &block)
1658
+ def list_table_data(project_id, dataset_id, table_id, format_options_timestamp_output_format: nil, format_options_use_int64_timestamp: nil, max_results: nil, page_token: nil, selected_fields: nil, start_index: nil, fields: nil, quota_user: nil, options: nil, &block)
1603
1659
  command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/data', options)
1604
1660
  command.response_representation = Google::Apis::BigqueryV2::TableDataList::Representation
1605
1661
  command.response_class = Google::Apis::BigqueryV2::TableDataList
1606
1662
  command.params['projectId'] = project_id unless project_id.nil?
1607
1663
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
1608
1664
  command.params['tableId'] = table_id unless table_id.nil?
1665
+ command.query['formatOptions.timestampOutputFormat'] = format_options_timestamp_output_format unless format_options_timestamp_output_format.nil?
1609
1666
  command.query['formatOptions.useInt64Timestamp'] = format_options_use_int64_timestamp unless format_options_use_int64_timestamp.nil?
1610
1667
  command.query['maxResults'] = max_results unless max_results.nil?
1611
1668
  command.query['pageToken'] = page_token unless page_token.nil?
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigquery_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.87.0
4
+ version: 0.92.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-20 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: google-apis-core
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquery_v2/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.87.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.92.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-bigquery_v2
62
62
  rdoc_options: []
63
63
  require_paths:
@@ -66,14 +66,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: '2.7'
69
+ version: '3.1'
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.5
76
+ rubygems_version: 3.6.9
77
77
  specification_version: 4
78
78
  summary: Simple REST client for BigQuery API V2
79
79
  test_files: []