google-apis-bigquery_v2 0.89.0 → 0.91.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: d5723f47c5c6e8789c4135e55514e0c6994fabbc6e340bc5977aa3fd389d3029
4
- data.tar.gz: 68339d2cf221117dcbe8a37bd9c4bb67ed0227138abd0d8928badd0690cbc9b9
3
+ metadata.gz: eb19cc97fd700eb7f160a5caa210c8bee3d22db499b74a2cbc6dd52cfa4a7d29
4
+ data.tar.gz: bd26e93a93040a6ea9c9036fcf82c5b5df2f5eaa5ed876887be0c89f735355ec
5
5
  SHA512:
6
- metadata.gz: 02f8160e3b7966d7dcbd22733e154ed6564ac144e3f18794c4c5b7455b8fd85cd9e714be4f361da93e6e87f81a0f40b29913fc0244a320dd713e6dead1333052
7
- data.tar.gz: 1b69200646bb7af9ccc6be3243a6e09f91d45ec0802be31b2fd05bf242582a2a58ccb8893f4d190adf84e1acaf36bce2b7bc7890265aae1c46c6fb036561dcfb
6
+ metadata.gz: 848fb1cc9f8c853c6a07644f4239bb6e4b7b5d6cf3692b0728b18102cbf41f42ce566790846b17732c8bbca246c28e1e94293aa37739341b025d82fcb17b8d85
7
+ data.tar.gz: 79c717bc7e143c04325da9256795d93ecda0432a2810b0bf5c8c37e3de69df3f819ba6251d337a95d2eea0525cecbe343dadf299df5cb6e78e110c6eb64f9175
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-bigquery_v2
2
2
 
3
+ ### v0.91.0 (2025-07-27)
4
+
5
+ * Regenerated from discovery document revision 20250706
6
+
7
+ ### v0.90.0 (2025-06-29)
8
+
9
+ * Regenerated from discovery document revision 20250615
10
+ * Regenerated using generator version 0.18.0
11
+
3
12
  ### v0.89.0 (2025-05-18)
4
13
 
5
14
  * Regenerated from discovery document revision 20250511
@@ -3414,6 +3414,55 @@ module Google
3414
3414
  end
3415
3415
  end
3416
3416
 
3417
+ # Options for the runtime of the external system.
3418
+ class ExternalRuntimeOptions
3419
+ include Google::Apis::Core::Hashable
3420
+
3421
+ # Optional. Amount of CPU provisioned for the container instance. If not
3422
+ # specified, the default value is 0.33 vCPUs.
3423
+ # Corresponds to the JSON property `containerCpu`
3424
+ # @return [Float]
3425
+ attr_accessor :container_cpu
3426
+
3427
+ # Optional. Amount of memory provisioned for the container instance. Format: `
3428
+ # number``unit` where unit is one of "M", "G", "Mi" and "Gi" (e.g. 1G, 512Mi).
3429
+ # If not specified, the default value is 512Mi.
3430
+ # Corresponds to the JSON property `containerMemory`
3431
+ # @return [String]
3432
+ attr_accessor :container_memory
3433
+
3434
+ # Optional. Maximum number of rows in each batch sent to the external runtime.
3435
+ # If absent or if 0, BigQuery dynamically decides the number of rows in a batch.
3436
+ # Corresponds to the JSON property `maxBatchingRows`
3437
+ # @return [Fixnum]
3438
+ attr_accessor :max_batching_rows
3439
+
3440
+ # Optional. Fully qualified name of the connection whose service account will be
3441
+ # used to execute the code in the container. Format: ```"projects/`project_id`/
3442
+ # locations/`location_id`/connections/`connection_id`"```
3443
+ # Corresponds to the JSON property `runtimeConnection`
3444
+ # @return [String]
3445
+ attr_accessor :runtime_connection
3446
+
3447
+ # Optional. Language runtime version (e.g. python-3.11).
3448
+ # Corresponds to the JSON property `runtimeVersion`
3449
+ # @return [String]
3450
+ attr_accessor :runtime_version
3451
+
3452
+ def initialize(**args)
3453
+ update!(**args)
3454
+ end
3455
+
3456
+ # Update properties of this object
3457
+ def update!(**args)
3458
+ @container_cpu = args[:container_cpu] if args.key?(:container_cpu)
3459
+ @container_memory = args[:container_memory] if args.key?(:container_memory)
3460
+ @max_batching_rows = args[:max_batching_rows] if args.key?(:max_batching_rows)
3461
+ @runtime_connection = args[:runtime_connection] if args.key?(:runtime_connection)
3462
+ @runtime_version = args[:runtime_version] if args.key?(:runtime_version)
3463
+ end
3464
+ end
3465
+
3417
3466
  # The external service cost is a portion of the total cost, these costs are not
3418
3467
  # additive with total_bytes_billed. Moreover, this field only track external
3419
3468
  # service costs that will show up as BigQuery costs (e.g. training BigQuery ML
@@ -3427,6 +3476,13 @@ module Google
3427
3476
  class ExternalServiceCost
3428
3477
  include Google::Apis::Core::Hashable
3429
3478
 
3479
+ # The billing method used for the external job. This field is only used when
3480
+ # billed on the services sku, set to "SERVICES_SKU". Otherwise, it is
3481
+ # unspecified for backward compatibility.
3482
+ # Corresponds to the JSON property `billingMethod`
3483
+ # @return [String]
3484
+ attr_accessor :billing_method
3485
+
3430
3486
  # External service cost in terms of bigquery bytes billed.
3431
3487
  # Corresponds to the JSON property `bytesBilled`
3432
3488
  # @return [Fixnum]
@@ -3460,6 +3516,7 @@ module Google
3460
3516
 
3461
3517
  # Update properties of this object
3462
3518
  def update!(**args)
3519
+ @billing_method = args[:billing_method] if args.key?(:billing_method)
3463
3520
  @bytes_billed = args[:bytes_billed] if args.key?(:bytes_billed)
3464
3521
  @bytes_processed = args[:bytes_processed] if args.key?(:bytes_processed)
3465
3522
  @external_service = args[:external_service] if args.key?(:external_service)
@@ -4355,8 +4412,7 @@ module Google
4355
4412
  # com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `
4356
4413
  # JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.
4357
4414
  # google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will
4358
- # always be `REQUESTED`. [Preview](https://cloud.google.com/products/#product-
4359
- # launch-stages)
4415
+ # always be `REQUESTED`.
4360
4416
  # Corresponds to the JSON property `jobCreationReason`
4361
4417
  # @return [Google::Apis::BigqueryV2::JobCreationReason]
4362
4418
  attr_accessor :job_creation_reason
@@ -5397,8 +5453,7 @@ module Google
5397
5453
  # com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `
5398
5454
  # JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.
5399
5455
  # google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will
5400
- # always be `REQUESTED`. [Preview](https://cloud.google.com/products/#product-
5401
- # launch-stages)
5456
+ # always be `REQUESTED`.
5402
5457
  class JobCreationReason
5403
5458
  include Google::Apis::Core::Hashable
5404
5459
 
@@ -6069,6 +6124,14 @@ module Google
6069
6124
  # @return [Fixnum]
6070
6125
  attr_accessor :total_partitions_processed
6071
6126
 
6127
+ # Output only. Total slot-milliseconds for the job that run on external services
6128
+ # and billed on the service SKU. This field is only populated for jobs that have
6129
+ # external service costs, and is the total of the usage for costs whose billing
6130
+ # method is "SERVICES_SKU".
6131
+ # Corresponds to the JSON property `totalServicesSkuSlotMs`
6132
+ # @return [Fixnum]
6133
+ attr_accessor :total_services_sku_slot_ms
6134
+
6072
6135
  # Output only. Slot-milliseconds for the job.
6073
6136
  # Corresponds to the JSON property `totalSlotMs`
6074
6137
  # @return [Fixnum]
@@ -6137,6 +6200,7 @@ module Google
6137
6200
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
6138
6201
  @total_bytes_processed_accuracy = args[:total_bytes_processed_accuracy] if args.key?(:total_bytes_processed_accuracy)
6139
6202
  @total_partitions_processed = args[:total_partitions_processed] if args.key?(:total_partitions_processed)
6203
+ @total_services_sku_slot_ms = args[:total_services_sku_slot_ms] if args.key?(:total_services_sku_slot_ms)
6140
6204
  @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
6141
6205
  @transferred_bytes = args[:transferred_bytes] if args.key?(:transferred_bytes)
6142
6206
  @undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters)
@@ -7502,6 +7566,32 @@ module Google
7502
7566
  end
7503
7567
  end
7504
7568
 
7569
+ # Options for a user-defined Python function.
7570
+ class PythonOptions
7571
+ include Google::Apis::Core::Hashable
7572
+
7573
+ # Required. The entry point function in the user's Python code.
7574
+ # Corresponds to the JSON property `entryPoint`
7575
+ # @return [String]
7576
+ attr_accessor :entry_point
7577
+
7578
+ # Optional. A list of package names along with versions to be installed. Follows
7579
+ # requirements.txt syntax (e.g. numpy==2.0, permutation, urllib3<2.2.1)
7580
+ # Corresponds to the JSON property `packages`
7581
+ # @return [Array<String>]
7582
+ attr_accessor :packages
7583
+
7584
+ def initialize(**args)
7585
+ update!(**args)
7586
+ end
7587
+
7588
+ # Update properties of this object
7589
+ def update!(**args)
7590
+ @entry_point = args[:entry_point] if args.key?(:entry_point)
7591
+ @packages = args[:packages] if args.key?(:packages)
7592
+ end
7593
+ end
7594
+
7505
7595
  # Query optimization information for a QUERY job.
7506
7596
  class QueryInfo
7507
7597
  include Google::Apis::Core::Hashable
@@ -7710,8 +7800,7 @@ module Google
7710
7800
  attr_accessor :format_options
7711
7801
 
7712
7802
  # Optional. If not set, jobs are always required. If set, the query request will
7713
- # follow the behavior described JobCreationMode. [Preview](https://cloud.google.
7714
- # com/products/#product-launch-stages)
7803
+ # follow the behavior described JobCreationMode.
7715
7804
  # Corresponds to the JSON property `jobCreationMode`
7716
7805
  # @return [String]
7717
7806
  attr_accessor :job_creation_mode
@@ -7937,8 +8026,7 @@ module Google
7937
8026
  # com/bigquery/docs/reference/rest/v2/jobs/query) method when used with `
7938
8027
  # JOB_CREATION_OPTIONAL` Job creation mode. For [`jobs.insert`](https://cloud.
7939
8028
  # google.com/bigquery/docs/reference/rest/v2/jobs/insert) method calls it will
7940
- # always be `REQUESTED`. [Preview](https://cloud.google.com/products/#product-
7941
- # launch-stages)
8029
+ # always be `REQUESTED`.
7942
8030
  # Corresponds to the JSON property `jobCreationReason`
7943
8031
  # @return [Google::Apis::BigqueryV2::JobCreationReason]
7944
8032
  attr_accessor :job_creation_reason
@@ -7974,8 +8062,7 @@ module Google
7974
8062
  # @return [String]
7975
8063
  attr_accessor :page_token
7976
8064
 
7977
- # Auto-generated ID for the query. [Preview](https://cloud.google.com/products/#
7978
- # product-launch-stages)
8065
+ # Auto-generated ID for the query.
7979
8066
  # Corresponds to the JSON property `queryId`
7980
8067
  # @return [String]
7981
8068
  attr_accessor :query_id
@@ -8462,6 +8549,11 @@ module Google
8462
8549
  # @return [String]
8463
8550
  attr_accessor :etag
8464
8551
 
8552
+ # Options for the runtime of the external system.
8553
+ # Corresponds to the JSON property `externalRuntimeOptions`
8554
+ # @return [Google::Apis::BigqueryV2::ExternalRuntimeOptions]
8555
+ attr_accessor :external_runtime_options
8556
+
8465
8557
  # Optional. If language = "JAVASCRIPT", this field stores the path of the
8466
8558
  # imported JAVASCRIPT libraries.
8467
8559
  # Corresponds to the JSON property `importedLibraries`
@@ -8480,6 +8572,11 @@ module Google
8480
8572
  # @return [Fixnum]
8481
8573
  attr_accessor :last_modified_time
8482
8574
 
8575
+ # Options for a user-defined Python function.
8576
+ # Corresponds to the JSON property `pythonOptions`
8577
+ # @return [Google::Apis::BigqueryV2::PythonOptions]
8578
+ attr_accessor :python_options
8579
+
8483
8580
  # Options for a remote user-defined function.
8484
8581
  # Corresponds to the JSON property `remoteFunctionOptions`
8485
8582
  # @return [Google::Apis::BigqueryV2::RemoteFunctionOptions]
@@ -8549,9 +8646,11 @@ module Google
8549
8646
  @description = args[:description] if args.key?(:description)
8550
8647
  @determinism_level = args[:determinism_level] if args.key?(:determinism_level)
8551
8648
  @etag = args[:etag] if args.key?(:etag)
8649
+ @external_runtime_options = args[:external_runtime_options] if args.key?(:external_runtime_options)
8552
8650
  @imported_libraries = args[:imported_libraries] if args.key?(:imported_libraries)
8553
8651
  @language = args[:language] if args.key?(:language)
8554
8652
  @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time)
8653
+ @python_options = args[:python_options] if args.key?(:python_options)
8555
8654
  @remote_function_options = args[:remote_function_options] if args.key?(:remote_function_options)
8556
8655
  @return_table_type = args[:return_table_type] if args.key?(:return_table_type)
8557
8656
  @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.89.0"
19
+ GEM_VERSION = "0.91.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.17.0"
22
+ GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250511"
25
+ REVISION = "20250706"
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
 
@@ -2147,9 +2159,21 @@ module Google
2147
2159
  end
2148
2160
  end
2149
2161
 
2162
+ class ExternalRuntimeOptions
2163
+ # @private
2164
+ class Representation < Google::Apis::Core::JsonRepresentation
2165
+ property :container_cpu, as: 'containerCpu'
2166
+ property :container_memory, as: 'containerMemory'
2167
+ property :max_batching_rows, :numeric_string => true, as: 'maxBatchingRows'
2168
+ property :runtime_connection, as: 'runtimeConnection'
2169
+ property :runtime_version, as: 'runtimeVersion'
2170
+ end
2171
+ end
2172
+
2150
2173
  class ExternalServiceCost
2151
2174
  # @private
2152
2175
  class Representation < Google::Apis::Core::JsonRepresentation
2176
+ property :billing_method, as: 'billingMethod'
2153
2177
  property :bytes_billed, :numeric_string => true, as: 'bytesBilled'
2154
2178
  property :bytes_processed, :numeric_string => true, as: 'bytesProcessed'
2155
2179
  property :external_service, as: 'externalService'
@@ -2767,6 +2791,7 @@ module Google
2767
2791
  property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
2768
2792
  property :total_bytes_processed_accuracy, as: 'totalBytesProcessedAccuracy'
2769
2793
  property :total_partitions_processed, :numeric_string => true, as: 'totalPartitionsProcessed'
2794
+ property :total_services_sku_slot_ms, :numeric_string => true, as: 'totalServicesSkuSlotMs'
2770
2795
  property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
2771
2796
  property :transferred_bytes, :numeric_string => true, as: 'transferredBytes'
2772
2797
  collection :undeclared_query_parameters, as: 'undeclaredQueryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
@@ -3152,6 +3177,14 @@ module Google
3152
3177
  end
3153
3178
  end
3154
3179
 
3180
+ class PythonOptions
3181
+ # @private
3182
+ class Representation < Google::Apis::Core::JsonRepresentation
3183
+ property :entry_point, as: 'entryPoint'
3184
+ collection :packages, as: 'packages'
3185
+ end
3186
+ end
3187
+
3155
3188
  class QueryInfo
3156
3189
  # @private
3157
3190
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3377,9 +3410,13 @@ module Google
3377
3410
  property :description, as: 'description'
3378
3411
  property :determinism_level, as: 'determinismLevel'
3379
3412
  property :etag, as: 'etag'
3413
+ property :external_runtime_options, as: 'externalRuntimeOptions', class: Google::Apis::BigqueryV2::ExternalRuntimeOptions, decorator: Google::Apis::BigqueryV2::ExternalRuntimeOptions::Representation
3414
+
3380
3415
  collection :imported_libraries, as: 'importedLibraries'
3381
3416
  property :language, as: 'language'
3382
3417
  property :last_modified_time, :numeric_string => true, as: 'lastModifiedTime'
3418
+ property :python_options, as: 'pythonOptions', class: Google::Apis::BigqueryV2::PythonOptions, decorator: Google::Apis::BigqueryV2::PythonOptions::Representation
3419
+
3383
3420
  property :remote_function_options, as: 'remoteFunctionOptions', class: Google::Apis::BigqueryV2::RemoteFunctionOptions, decorator: Google::Apis::BigqueryV2::RemoteFunctionOptions::Representation
3384
3421
 
3385
3422
  property :return_table_type, as: 'returnTableType', class: Google::Apis::BigqueryV2::StandardSqlTableType, decorator: Google::Apis::BigqueryV2::StandardSqlTableType::Representation
@@ -1173,6 +1173,45 @@ module Google
1173
1173
  execute_or_queue_command(command, &block)
1174
1174
  end
1175
1175
 
1176
+ # Returns permissions that a caller has on the specified resource. If the
1177
+ # resource does not exist, this will return an empty set of permissions, not a `
1178
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1179
+ # permission-aware UIs and command-line tools, not for authorization checking.
1180
+ # This operation may "fail open" without warning.
1181
+ # @param [String] resource
1182
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1183
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1184
+ # appropriate value for this field.
1185
+ # @param [Google::Apis::BigqueryV2::TestIamPermissionsRequest] test_iam_permissions_request_object
1186
+ # @param [String] fields
1187
+ # Selector specifying which fields to include in a partial response.
1188
+ # @param [String] quota_user
1189
+ # Available to use for quota purposes for server-side applications. Can be any
1190
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1191
+ # @param [Google::Apis::RequestOptions] options
1192
+ # Request-specific options
1193
+ #
1194
+ # @yield [result, err] Result & error if block supplied
1195
+ # @yieldparam result [Google::Apis::BigqueryV2::TestIamPermissionsResponse] parsed result object
1196
+ # @yieldparam err [StandardError] error object if request failed
1197
+ #
1198
+ # @return [Google::Apis::BigqueryV2::TestIamPermissionsResponse]
1199
+ #
1200
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1201
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1202
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1203
+ def test_routine_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1204
+ command = make_simple_command(:post, '{+resource}:testIamPermissions', options)
1205
+ command.request_representation = Google::Apis::BigqueryV2::TestIamPermissionsRequest::Representation
1206
+ command.request_object = test_iam_permissions_request_object
1207
+ command.response_representation = Google::Apis::BigqueryV2::TestIamPermissionsResponse::Representation
1208
+ command.response_class = Google::Apis::BigqueryV2::TestIamPermissionsResponse
1209
+ command.params['resource'] = resource unless resource.nil?
1210
+ command.query['fields'] = fields unless fields.nil?
1211
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1212
+ execute_or_queue_command(command, &block)
1213
+ end
1214
+
1176
1215
  # Updates information in an existing routine. The update method replaces the
1177
1216
  # entire Routine resource.
1178
1217
  # @param [String] project_id
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-bigquery_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.89.0
4
+ version: 0.91.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -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.89.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-bigquery_v2/v0.91.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:
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.6.8
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: []