Skip to content

Commit 9076882

Browse files
feat: Automated regeneration of bigquery v2 client (googleapis#21480)
Auto-created at 2025-01-26 10:11:00 +0000 using the toys pull request generator.
1 parent 5bbc848 commit 9076882

File tree

5 files changed

+67
-4
lines changed

5 files changed

+67
-4
lines changed

api_names_out.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48803,13 +48803,16 @@
4880348803
"/bigquery:v2/QueryRequest/useQueryCache": use_query_cache
4880448804
"/bigquery:v2/QueryResponse": query_response
4880548805
"/bigquery:v2/QueryResponse/cacheHit": cache_hit
48806+
"/bigquery:v2/QueryResponse/creationTime": creation_time
4880648807
"/bigquery:v2/QueryResponse/dmlStats": dml_stats
48808+
"/bigquery:v2/QueryResponse/endTime": end_time
4880748809
"/bigquery:v2/QueryResponse/errors": errors
4880848810
"/bigquery:v2/QueryResponse/errors/error": error
4880948811
"/bigquery:v2/QueryResponse/jobComplete": job_complete
4881048812
"/bigquery:v2/QueryResponse/jobCreationReason": job_creation_reason
4881148813
"/bigquery:v2/QueryResponse/jobReference": job_reference
4881248814
"/bigquery:v2/QueryResponse/kind": kind
48815+
"/bigquery:v2/QueryResponse/location": location
4881348816
"/bigquery:v2/QueryResponse/numDmlAffectedRows": num_dml_affected_rows
4881448817
"/bigquery:v2/QueryResponse/pageToken": page_token
4881548818
"/bigquery:v2/QueryResponse/queryId": query_id
@@ -48818,8 +48821,11 @@
4881848821
"/bigquery:v2/QueryResponse/schema": schema
4881948822
"/bigquery:v2/QueryResponse/sessionInfo": session_info
4882048823
"/bigquery:v2/QueryResponse/sessionInfoTemplate": session_info_template
48824+
"/bigquery:v2/QueryResponse/startTime": start_time
48825+
"/bigquery:v2/QueryResponse/totalBytesBilled": total_bytes_billed
4882148826
"/bigquery:v2/QueryResponse/totalBytesProcessed": total_bytes_processed
4882248827
"/bigquery:v2/QueryResponse/totalRows": total_rows
48828+
"/bigquery:v2/QueryResponse/totalSlotMs": total_slot_ms
4882348829
"/bigquery:v2/QueryTimelineSample": query_timeline_sample
4882448830
"/bigquery:v2/QueryTimelineSample/activeInputs": active_inputs
4882548831
"/bigquery:v2/QueryTimelineSample/activeUnits": active_units

generated/google-apis-bigquery_v2/CHANGELOG.md

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

3+
### v0.84.0 (2025-01-26)
4+
5+
* Regenerated from discovery document revision 20250112
6+
* Regenerated using generator version 0.16.0
7+
38
### v0.83.0 (2025-01-05)
49

510
* Regenerated from discovery document revision 20241222

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

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6444,7 +6444,9 @@ class MaterializedViewDefinition
64446444
include Google::Apis::Core::Hashable
64456445

64466446
# Optional. This option declares the intention to construct a materialized view
6447-
# that isn't refreshed incrementally.
6447+
# that isn't refreshed incrementally. Non-incremental materialized views support
6448+
# an expanded range of SQL queries. The `allow_non_incremental_definition`
6449+
# option can't be changed after the materialized view is created.
64486450
# Corresponds to the JSON property `allowNonIncrementalDefinition`
64496451
# @return [Boolean]
64506452
attr_accessor :allow_non_incremental_definition
@@ -7693,11 +7695,23 @@ class QueryResponse
76937695
attr_accessor :cache_hit
76947696
alias_method :cache_hit?, :cache_hit
76957697

7698+
# Output only. Creation time of this query, in milliseconds since the epoch.
7699+
# This field will be present on all queries.
7700+
# Corresponds to the JSON property `creationTime`
7701+
# @return [Fixnum]
7702+
attr_accessor :creation_time
7703+
76967704
# Detailed statistics for DML statements
76977705
# Corresponds to the JSON property `dmlStats`
76987706
# @return [Google::Apis::BigqueryV2::DmlStatistics]
76997707
attr_accessor :dml_stats
77007708

7709+
# Output only. End time of this query, in milliseconds since the epoch. This
7710+
# field will be present whenever a query job is in the DONE state.
7711+
# Corresponds to the JSON property `endTime`
7712+
# @return [Fixnum]
7713+
attr_accessor :end_time
7714+
77017715
# Output only. The first errors or warnings encountered during the running of
77027716
# the job. The final message includes the number of errors that caused the
77037717
# process to stop. Errors here do not necessarily mean that the job has
@@ -7734,6 +7748,12 @@ class QueryResponse
77347748
# @return [String]
77357749
attr_accessor :kind
77367750

7751+
# Output only. The geographic location of the query. For more information about
7752+
# BigQuery locations, see: https://cloud.google.com/bigquery/docs/locations
7753+
# Corresponds to the JSON property `location`
7754+
# @return [String]
7755+
attr_accessor :location
7756+
77377757
# Output only. The number of rows affected by a DML statement. Present only for
77387758
# DML statements INSERT, UPDATE or DELETE.
77397759
# Corresponds to the JSON property `numDmlAffectedRows`
@@ -7772,6 +7792,21 @@ class QueryResponse
77727792
# @return [Google::Apis::BigqueryV2::SessionInfo]
77737793
attr_accessor :session_info
77747794

7795+
# Output only. Start time of this query, in milliseconds since the epoch. This
7796+
# field will be present when the query job transitions from the PENDING state to
7797+
# either RUNNING or DONE.
7798+
# Corresponds to the JSON property `startTime`
7799+
# @return [Fixnum]
7800+
attr_accessor :start_time
7801+
7802+
# Output only. If the project is configured to use on-demand pricing, then this
7803+
# field contains the total bytes billed for the job. If the project is
7804+
# configured to use flat-rate pricing, then you are not billed for bytes and
7805+
# this field is informational only.
7806+
# Corresponds to the JSON property `totalBytesBilled`
7807+
# @return [Fixnum]
7808+
attr_accessor :total_bytes_billed
7809+
77757810
# The total number of bytes processed for this query. If this query was a dry
77767811
# run, this is the number of bytes that would be processed if the query were run.
77777812
# Corresponds to the JSON property `totalBytesProcessed`
@@ -7784,27 +7819,38 @@ class QueryResponse
77847819
# @return [Fixnum]
77857820
attr_accessor :total_rows
77867821

7822+
# Output only. Number of slot ms the user is actually billed for.
7823+
# Corresponds to the JSON property `totalSlotMs`
7824+
# @return [Fixnum]
7825+
attr_accessor :total_slot_ms
7826+
77877827
def initialize(**args)
77887828
update!(**args)
77897829
end
77907830

77917831
# Update properties of this object
77927832
def update!(**args)
77937833
@cache_hit = args[:cache_hit] if args.key?(:cache_hit)
7834+
@creation_time = args[:creation_time] if args.key?(:creation_time)
77947835
@dml_stats = args[:dml_stats] if args.key?(:dml_stats)
7836+
@end_time = args[:end_time] if args.key?(:end_time)
77957837
@errors = args[:errors] if args.key?(:errors)
77967838
@job_complete = args[:job_complete] if args.key?(:job_complete)
77977839
@job_creation_reason = args[:job_creation_reason] if args.key?(:job_creation_reason)
77987840
@job_reference = args[:job_reference] if args.key?(:job_reference)
77997841
@kind = args[:kind] if args.key?(:kind)
7842+
@location = args[:location] if args.key?(:location)
78007843
@num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
78017844
@page_token = args[:page_token] if args.key?(:page_token)
78027845
@query_id = args[:query_id] if args.key?(:query_id)
78037846
@rows = args[:rows] if args.key?(:rows)
78047847
@schema = args[:schema] if args.key?(:schema)
78057848
@session_info = args[:session_info] if args.key?(:session_info)
7849+
@start_time = args[:start_time] if args.key?(:start_time)
7850+
@total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
78067851
@total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
78077852
@total_rows = args[:total_rows] if args.key?(:total_rows)
7853+
@total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
78087854
end
78097855
end
78107856

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

Lines changed: 3 additions & 3 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.83.0"
19+
GEM_VERSION = "0.84.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.1"
22+
GENERATOR_VERSION = "0.16.0"
2323

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

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3196,8 +3196,10 @@ class QueryResponse
31963196
# @private
31973197
class Representation < Google::Apis::Core::JsonRepresentation
31983198
property :cache_hit, as: 'cacheHit'
3199+
property :creation_time, :numeric_string => true, as: 'creationTime'
31993200
property :dml_stats, as: 'dmlStats', class: Google::Apis::BigqueryV2::DmlStatistics, decorator: Google::Apis::BigqueryV2::DmlStatistics::Representation
32003201

3202+
property :end_time, :numeric_string => true, as: 'endTime'
32013203
collection :errors, as: 'errors', class: Google::Apis::BigqueryV2::ErrorProto, decorator: Google::Apis::BigqueryV2::ErrorProto::Representation
32023204

32033205
property :job_complete, as: 'jobComplete'
@@ -3206,6 +3208,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
32063208
property :job_reference, as: 'jobReference', class: Google::Apis::BigqueryV2::JobReference, decorator: Google::Apis::BigqueryV2::JobReference::Representation
32073209

32083210
property :kind, as: 'kind'
3211+
property :location, as: 'location'
32093212
property :num_dml_affected_rows, :numeric_string => true, as: 'numDmlAffectedRows'
32103213
property :page_token, as: 'pageToken'
32113214
property :query_id, as: 'queryId'
@@ -3215,8 +3218,11 @@ class Representation < Google::Apis::Core::JsonRepresentation
32153218

32163219
property :session_info, as: 'sessionInfo', class: Google::Apis::BigqueryV2::SessionInfo, decorator: Google::Apis::BigqueryV2::SessionInfo::Representation
32173220

3221+
property :start_time, :numeric_string => true, as: 'startTime'
3222+
property :total_bytes_billed, :numeric_string => true, as: 'totalBytesBilled'
32183223
property :total_bytes_processed, :numeric_string => true, as: 'totalBytesProcessed'
32193224
property :total_rows, :numeric_string => true, as: 'totalRows'
3225+
property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
32203226
end
32213227
end
32223228

0 commit comments

Comments
 (0)