Autogenerated update (2019-02-23)

Update:
- bigquery_v2
This commit is contained in:
Google APIs 2019-02-23 00:36:57 +00:00
parent 131275fc04
commit ebe77b23ce
5 changed files with 23 additions and 2 deletions

View File

@ -10944,6 +10944,8 @@
"/bigquery:v2/JobStatistics/endTime": end_time
"/bigquery:v2/JobStatistics/extract": extract
"/bigquery:v2/JobStatistics/load": load
"/bigquery:v2/JobStatistics/numChildJobs": num_child_jobs
"/bigquery:v2/JobStatistics/parentJobId": parent_job_id
"/bigquery:v2/JobStatistics/query": query
"/bigquery:v2/JobStatistics/quotaDeferments": quota_deferments
"/bigquery:v2/JobStatistics/quotaDeferments/quota_deferment": quota_deferment
@ -11261,6 +11263,7 @@
"/bigquery:v2/bigquery.jobs.list/maxResults": max_results
"/bigquery:v2/bigquery.jobs.list/minCreationTime": min_creation_time
"/bigquery:v2/bigquery.jobs.list/pageToken": page_token
"/bigquery:v2/bigquery.jobs.list/parentJobId": parent_job_id
"/bigquery:v2/bigquery.jobs.list/projectId": project_id
"/bigquery:v2/bigquery.jobs.list/projection": projection
"/bigquery:v2/bigquery.jobs.list/stateFilter": state_filter

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
REVISION = '20190208'
REVISION = '20190215'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -2199,6 +2199,16 @@ module Google
# @return [Google::Apis::BigqueryV2::JobStatistics3]
attr_accessor :load
# [Output-only] Number of child jobs executed.
# Corresponds to the JSON property `numChildJobs`
# @return [Fixnum]
attr_accessor :num_child_jobs
# [Output-only] If this is a child job, the id of the parent.
# Corresponds to the JSON property `parentJobId`
# @return [String]
attr_accessor :parent_job_id
# [Output-only] Statistics for a query job.
# Corresponds to the JSON property `query`
# @return [Google::Apis::BigqueryV2::JobStatistics2]
@ -2243,6 +2253,8 @@ module Google
@end_time = args[:end_time] if args.key?(:end_time)
@extract = args[:extract] if args.key?(:extract)
@load = args[:load] if args.key?(:load)
@num_child_jobs = args[:num_child_jobs] if args.key?(:num_child_jobs)
@parent_job_id = args[:parent_job_id] if args.key?(:parent_job_id)
@query = args[:query] if args.key?(:query)
@quota_deferments = args[:quota_deferments] if args.key?(:quota_deferments)
@reservation_usage = args[:reservation_usage] if args.key?(:reservation_usage)

View File

@ -938,6 +938,8 @@ module Google
property :load, as: 'load', class: Google::Apis::BigqueryV2::JobStatistics3, decorator: Google::Apis::BigqueryV2::JobStatistics3::Representation
property :num_child_jobs, :numeric_string => true, as: 'numChildJobs'
property :parent_job_id, as: 'parentJobId'
property :query, as: 'query', class: Google::Apis::BigqueryV2::JobStatistics2, decorator: Google::Apis::BigqueryV2::JobStatistics2::Representation
collection :quota_deferments, as: 'quotaDeferments'

View File

@ -499,6 +499,9 @@ module Google
# only jobs created after or at this timestamp are returned
# @param [String] page_token
# Page token, returned by a previous call, to request the next page of results
# @param [String] parent_job_id
# If set, retrieves only jobs whose parent is this job. Otherwise, retrieves
# only jobs which have no parent.
# @param [String] projection
# Restrict information returned to a set of selected fields
# @param [Array<String>, String] state_filter
@ -522,7 +525,7 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_jobs(project_id, all_users: nil, max_creation_time: nil, max_results: nil, min_creation_time: nil, page_token: nil, projection: nil, state_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def list_jobs(project_id, all_users: nil, max_creation_time: nil, max_results: nil, min_creation_time: nil, page_token: nil, parent_job_id: nil, projection: nil, state_filter: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, 'projects/{projectId}/jobs', options)
command.response_representation = Google::Apis::BigqueryV2::JobList::Representation
command.response_class = Google::Apis::BigqueryV2::JobList
@ -532,6 +535,7 @@ module Google
command.query['maxResults'] = max_results unless max_results.nil?
command.query['minCreationTime'] = min_creation_time unless min_creation_time.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['parentJobId'] = parent_job_id unless parent_job_id.nil?
command.query['projection'] = projection unless projection.nil?
command.query['stateFilter'] = state_filter unless state_filter.nil?
command.query['fields'] = fields unless fields.nil?