google-apis-bigquery_v2 0.91.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: eb19cc97fd700eb7f160a5caa210c8bee3d22db499b74a2cbc6dd52cfa4a7d29
4
- data.tar.gz: bd26e93a93040a6ea9c9036fcf82c5b5df2f5eaa5ed876887be0c89f735355ec
3
+ metadata.gz: e6688ea793c403f3e507fc682f6c6f00feb0c6d2a6bb3f8003579f8b0c7d7f95
4
+ data.tar.gz: 507add9ff75d94b451533ac577465533ca8a90154a750073a88ff47e74150476
5
5
  SHA512:
6
- metadata.gz: 848fb1cc9f8c853c6a07644f4239bb6e4b7b5d6cf3692b0728b18102cbf41f42ce566790846b17732c8bbca246c28e1e94293aa37739341b025d82fcb17b8d85
7
- data.tar.gz: 79c717bc7e143c04325da9256795d93ecda0432a2810b0bf5c8c37e3de69df3f819ba6251d337a95d2eea0525cecbe343dadf299df5cb6e78e110c6eb64f9175
6
+ metadata.gz: 8f55da4a5d2ad70b9b9ec59bbad5e50e85f0372df0f94f137ea005af6d63d8c87e9b35c72bf1957bb4a01f0277e1a84150a75b209c7eb4601271fcef3595a3ec
7
+ data.tar.gz: d28563ca44ff1b740431fd3be0fcca5fe9fdafa280510cfd37537c8bbcec7bffe8bffa9566c1fecdf18aa2df7c23e7f5d44b471783a05396a17aba336468e5c7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.91.0 (2025-07-27)
4
8
 
5
9
  * Regenerated from discovery document revision 20250706
@@ -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
@@ -3418,15 +3426,19 @@ module Google
3418
3426
  class ExternalRuntimeOptions
3419
3427
  include Google::Apis::Core::Hashable
3420
3428
 
3421
- # Optional. Amount of CPU provisioned for the container instance. If not
3422
- # specified, the default value is 0.33 vCPUs.
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)
3423
3433
  # Corresponds to the JSON property `containerCpu`
3424
3434
  # @return [Float]
3425
3435
  attr_accessor :container_cpu
3426
3436
 
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.
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)
3430
3442
  # Corresponds to the JSON property `containerMemory`
3431
3443
  # @return [String]
3432
3444
  attr_accessor :container_memory
@@ -3444,7 +3456,7 @@ module Google
3444
3456
  # @return [String]
3445
3457
  attr_accessor :runtime_connection
3446
3458
 
3447
- # Optional. Language runtime version (e.g. python-3.11).
3459
+ # Optional. Language runtime version. Example: `python-3.11`.
3448
3460
  # Corresponds to the JSON property `runtimeVersion`
3449
3461
  # @return [String]
3450
3462
  attr_accessor :runtime_version
@@ -7570,13 +7582,16 @@ module Google
7570
7582
  class PythonOptions
7571
7583
  include Google::Apis::Core::Hashable
7572
7584
 
7573
- # Required. The entry point function in the user's Python code.
7585
+ # Required. The name of the function defined in Python code as the entry point
7586
+ # when the Python UDF is invoked.
7574
7587
  # Corresponds to the JSON property `entryPoint`
7575
7588
  # @return [String]
7576
7589
  attr_accessor :entry_point
7577
7590
 
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)
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).
7580
7595
  # Corresponds to the JSON property `packages`
7581
7596
  # @return [Array<String>]
7582
7597
  attr_accessor :packages
@@ -7663,6 +7678,13 @@ module Google
7663
7678
  # @return [Array<Google::Apis::BigqueryV2::QueryParameterType::StructType>]
7664
7679
  attr_accessor :struct_types
7665
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
+
7666
7688
  # Required. The top level type of this field.
7667
7689
  # Corresponds to the JSON property `type`
7668
7690
  # @return [String]
@@ -7677,6 +7699,7 @@ module Google
7677
7699
  @array_type = args[:array_type] if args.key?(:array_type)
7678
7700
  @range_element_type = args[:range_element_type] if args.key?(:range_element_type)
7679
7701
  @struct_types = args[:struct_types] if args.key?(:struct_types)
7702
+ @timestamp_precision = args[:timestamp_precision] if args.key?(:timestamp_precision)
7680
7703
  @type = args[:type] if args.key?(:type)
7681
7704
  end
7682
7705
 
@@ -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.91.0"
19
+ GEM_VERSION = "0.92.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250706"
25
+ REVISION = "20250713"
26
26
  end
27
27
  end
28
28
  end
@@ -1763,6 +1763,7 @@ module Google
1763
1763
  class DataFormatOptions
1764
1764
  # @private
1765
1765
  class Representation < Google::Apis::Core::JsonRepresentation
1766
+ property :timestamp_output_format, as: 'timestampOutputFormat'
1766
1767
  property :use_int64_timestamp, as: 'useInt64Timestamp'
1767
1768
  end
1768
1769
  end
@@ -3212,6 +3213,7 @@ module Google
3212
3213
 
3213
3214
  collection :struct_types, as: 'structTypes', class: Google::Apis::BigqueryV2::QueryParameterType::StructType, decorator: Google::Apis::BigqueryV2::QueryParameterType::StructType::Representation
3214
3215
 
3216
+ property :timestamp_precision, :numeric_string => true, as: 'timestampPrecision'
3215
3217
  property :type, as: 'type'
3216
3218
  end
3217
3219
 
@@ -516,6 +516,10 @@ module Google
516
516
  # Required. Project ID of the query job.
517
517
  # @param [String] job_id
518
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.
519
523
  # @param [Boolean] format_options_use_int64_timestamp
520
524
  # Optional. Output timestamp as usec int64. Default is false.
521
525
  # @param [String] location
@@ -558,12 +562,13 @@ module Google
558
562
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
559
563
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
560
564
  # @raise [Google::Apis::AuthorizationError] Authorization is required
561
- 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)
562
566
  command = make_simple_command(:get, 'projects/{+projectId}/queries/{+jobId}', options)
563
567
  command.response_representation = Google::Apis::BigqueryV2::GetQueryResultsResponse::Representation
564
568
  command.response_class = Google::Apis::BigqueryV2::GetQueryResultsResponse
565
569
  command.params['projectId'] = project_id unless project_id.nil?
566
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?
567
572
  command.query['formatOptions.useInt64Timestamp'] = format_options_use_int64_timestamp unless format_options_use_int64_timestamp.nil?
568
573
  command.query['location'] = location unless location.nil?
569
574
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -1616,6 +1621,10 @@ module Google
1616
1621
  # Required. Dataset id of the table to list.
1617
1622
  # @param [String] table_id
1618
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.
1619
1628
  # @param [Boolean] format_options_use_int64_timestamp
1620
1629
  # Optional. Output timestamp as usec int64. Default is false.
1621
1630
  # @param [Fixnum] max_results
@@ -1646,13 +1655,14 @@ module Google
1646
1655
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1647
1656
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1648
1657
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1649
- 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)
1650
1659
  command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/data', options)
1651
1660
  command.response_representation = Google::Apis::BigqueryV2::TableDataList::Representation
1652
1661
  command.response_class = Google::Apis::BigqueryV2::TableDataList
1653
1662
  command.params['projectId'] = project_id unless project_id.nil?
1654
1663
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
1655
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?
1656
1666
  command.query['formatOptions.useInt64Timestamp'] = format_options_use_int64_timestamp unless format_options_use_int64_timestamp.nil?
1657
1667
  command.query['maxResults'] = max_results unless max_results.nil?
1658
1668
  command.query['pageToken'] = page_token unless page_token.nil?
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.91.0
4
+ version: 0.92.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.91.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: