Skip to content

Commit 576378c

Browse files
feat: Automated regeneration of bigquery v2 client (#23848)
Auto-created at 2025-08-03 10:22:17 +0000 using the toys pull request generator.
1 parent b906aa1 commit 576378c

File tree

6 files changed

+56
-13
lines changed

6 files changed

+56
-13
lines changed

api_names_out.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51940,6 +51940,7 @@
5194051940
"/bigquery:v2/CsvOptions/skipLeadingRows": skip_leading_rows
5194151941
"/bigquery:v2/CsvOptions/sourceColumnMatch": source_column_match
5194251942
"/bigquery:v2/DataFormatOptions": data_format_options
51943+
"/bigquery:v2/DataFormatOptions/timestampOutputFormat": timestamp_output_format
5194351944
"/bigquery:v2/DataFormatOptions/useInt64Timestamp": use_int64_timestamp
5194451945
"/bigquery:v2/DataMaskingStatistics": data_masking_statistics
5194551946
"/bigquery:v2/DataMaskingStatistics/dataMaskingApplied": data_masking_applied
@@ -52743,6 +52744,7 @@
5274352744
"/bigquery:v2/QueryParameterType/structTypes/struct_type/description": description
5274452745
"/bigquery:v2/QueryParameterType/structTypes/struct_type/name": name
5274552746
"/bigquery:v2/QueryParameterType/structTypes/struct_type/type": type
52747+
"/bigquery:v2/QueryParameterType/timestampPrecision": timestamp_precision
5274652748
"/bigquery:v2/QueryParameterType/type": type
5274752749
"/bigquery:v2/QueryParameterValue": query_parameter_value
5274852750
"/bigquery:v2/QueryParameterValue/arrayValues": array_values
@@ -53421,6 +53423,7 @@
5342153423
"/bigquery:v2/bigquery.jobs.get/location": location
5342253424
"/bigquery:v2/bigquery.jobs.get/projectId": project_id
5342353425
"/bigquery:v2/bigquery.jobs.getQueryResults": get_job_query_results
53426+
"/bigquery:v2/bigquery.jobs.getQueryResults/formatOptions.timestampOutputFormat": format_options_timestamp_output_format
5342453427
"/bigquery:v2/bigquery.jobs.getQueryResults/formatOptions.useInt64Timestamp": format_options_use_int64_timestamp
5342553428
"/bigquery:v2/bigquery.jobs.getQueryResults/jobId": job_id
5342653429
"/bigquery:v2/bigquery.jobs.getQueryResults/location": location
@@ -53536,6 +53539,7 @@
5353653539
"/bigquery:v2/bigquery.tabledata.insertAll/tableId": table_id
5353753540
"/bigquery:v2/bigquery.tabledata.list": list_table_data
5353853541
"/bigquery:v2/bigquery.tabledata.list/datasetId": dataset_id
53542+
"/bigquery:v2/bigquery.tabledata.list/formatOptions.timestampOutputFormat": format_options_timestamp_output_format
5353953543
"/bigquery:v2/bigquery.tabledata.list/formatOptions.useInt64Timestamp": format_options_use_int64_timestamp
5354053544
"/bigquery:v2/bigquery.tabledata.list/maxResults": max_results
5354153545
"/bigquery:v2/bigquery.tabledata.list/pageToken": page_token

generated/google-apis-bigquery_v2/CHANGELOG.md

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

3+
### v0.92.0 (2025-08-03)
4+
5+
* Regenerated from discovery document revision 20250713
6+
37
### v0.91.0 (2025-07-27)
48

59
* Regenerated from discovery document revision 20250706

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

Lines changed: 32 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,6 +1688,13 @@ def update!(**args)
16881688
class DataFormatOptions
16891689
include Google::Apis::Core::Hashable
16901690

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+
16911698
# Optional. Output timestamp as usec int64. Default is false.
16921699
# Corresponds to the JSON property `useInt64Timestamp`
16931700
# @return [Boolean]
@@ -1700,6 +1707,7 @@ def initialize(**args)
17001707

17011708
# Update properties of this object
17021709
def update!(**args)
1710+
@timestamp_output_format = args[:timestamp_output_format] if args.key?(:timestamp_output_format)
17031711
@use_int64_timestamp = args[:use_int64_timestamp] if args.key?(:use_int64_timestamp)
17041712
end
17051713
end
@@ -3418,15 +3426,19 @@ def update!(**args)
34183426
class ExternalRuntimeOptions
34193427
include Google::Apis::Core::Hashable
34203428

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)
34233433
# Corresponds to the JSON property `containerCpu`
34243434
# @return [Float]
34253435
attr_accessor :container_cpu
34263436

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)
34303442
# Corresponds to the JSON property `containerMemory`
34313443
# @return [String]
34323444
attr_accessor :container_memory
@@ -3444,7 +3456,7 @@ class ExternalRuntimeOptions
34443456
# @return [String]
34453457
attr_accessor :runtime_connection
34463458

3447-
# Optional. Language runtime version (e.g. python-3.11).
3459+
# Optional. Language runtime version. Example: `python-3.11`.
34483460
# Corresponds to the JSON property `runtimeVersion`
34493461
# @return [String]
34503462
attr_accessor :runtime_version
@@ -7570,13 +7582,16 @@ def update!(**args)
75707582
class PythonOptions
75717583
include Google::Apis::Core::Hashable
75727584

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.
75747587
# Corresponds to the JSON property `entryPoint`
75757588
# @return [String]
75767589
attr_accessor :entry_point
75777590

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).
75807595
# Corresponds to the JSON property `packages`
75817596
# @return [Array<String>]
75827597
attr_accessor :packages
@@ -7663,6 +7678,13 @@ class QueryParameterType
76637678
# @return [Array<Google::Apis::BigqueryV2::QueryParameterType::StructType>]
76647679
attr_accessor :struct_types
76657680

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+
76667688
# Required. The top level type of this field.
76677689
# Corresponds to the JSON property `type`
76687690
# @return [String]
@@ -7677,6 +7699,7 @@ def update!(**args)
76777699
@array_type = args[:array_type] if args.key?(:array_type)
76787700
@range_element_type = args[:range_element_type] if args.key?(:range_element_type)
76797701
@struct_types = args[:struct_types] if args.key?(:struct_types)
7702+
@timestamp_precision = args[:timestamp_precision] if args.key?(:timestamp_precision)
76807703
@type = args[:type] if args.key?(:type)
76817704
end
76827705

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

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

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

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

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,6 +1763,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
17631763
class DataFormatOptions
17641764
# @private
17651765
class Representation < Google::Apis::Core::JsonRepresentation
1766+
property :timestamp_output_format, as: 'timestampOutputFormat'
17661767
property :use_int64_timestamp, as: 'useInt64Timestamp'
17671768
end
17681769
end
@@ -3212,6 +3213,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
32123213

32133214
collection :struct_types, as: 'structTypes', class: Google::Apis::BigqueryV2::QueryParameterType::StructType, decorator: Google::Apis::BigqueryV2::QueryParameterType::StructType::Representation
32143215

3216+
property :timestamp_precision, :numeric_string => true, as: 'timestampPrecision'
32153217
property :type, as: 'type'
32163218
end
32173219

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,10 @@ def get_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, opt
516516
# Required. Project ID of the query job.
517517
# @param [String] job_id
518518
# 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.
519523
# @param [Boolean] format_options_use_int64_timestamp
520524
# Optional. Output timestamp as usec int64. Default is false.
521525
# @param [String] location
@@ -558,12 +562,13 @@ def get_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, opt
558562
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
559563
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
560564
# @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)
562566
command = make_simple_command(:get, 'projects/{+projectId}/queries/{+jobId}', options)
563567
command.response_representation = Google::Apis::BigqueryV2::GetQueryResultsResponse::Representation
564568
command.response_class = Google::Apis::BigqueryV2::GetQueryResultsResponse
565569
command.params['projectId'] = project_id unless project_id.nil?
566570
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?
567572
command.query['formatOptions.useInt64Timestamp'] = format_options_use_int64_timestamp unless format_options_use_int64_timestamp.nil?
568573
command.query['location'] = location unless location.nil?
569574
command.query['maxResults'] = max_results unless max_results.nil?
@@ -1616,6 +1621,10 @@ def insert_all_table_data(project_id, dataset_id, table_id, insert_all_table_dat
16161621
# Required. Dataset id of the table to list.
16171622
# @param [String] table_id
16181623
# 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.
16191628
# @param [Boolean] format_options_use_int64_timestamp
16201629
# Optional. Output timestamp as usec int64. Default is false.
16211630
# @param [Fixnum] max_results
@@ -1646,13 +1655,14 @@ def insert_all_table_data(project_id, dataset_id, table_id, insert_all_table_dat
16461655
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16471656
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16481657
# @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)
16501659
command = make_simple_command(:get, 'projects/{+projectId}/datasets/{+datasetId}/tables/{+tableId}/data', options)
16511660
command.response_representation = Google::Apis::BigqueryV2::TableDataList::Representation
16521661
command.response_class = Google::Apis::BigqueryV2::TableDataList
16531662
command.params['projectId'] = project_id unless project_id.nil?
16541663
command.params['datasetId'] = dataset_id unless dataset_id.nil?
16551664
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?
16561666
command.query['formatOptions.useInt64Timestamp'] = format_options_use_int64_timestamp unless format_options_use_int64_timestamp.nil?
16571667
command.query['maxResults'] = max_results unless max_results.nil?
16581668
command.query['pageToken'] = page_token unless page_token.nil?

0 commit comments

Comments
 (0)