From ebe77b23ce8c21634031e1f02b4fae81506fc790 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sat, 23 Feb 2019 00:36:57 +0000 Subject: [PATCH] Autogenerated update (2019-02-23) Update: - bigquery_v2 --- api_names_out.yaml | 3 +++ generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 12 ++++++++++++ generated/google/apis/bigquery_v2/representations.rb | 2 ++ generated/google/apis/bigquery_v2/service.rb | 6 +++++- 5 files changed, 23 insertions(+), 2 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 14451e822..731ff418e 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -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 diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index f08114208..6a5ffd2df 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -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' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 827e7d9bb..db3a7adf7 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -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) diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index 61c9ddcb6..0a32c5bb1 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -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' diff --git a/generated/google/apis/bigquery_v2/service.rb b/generated/google/apis/bigquery_v2/service.rb index bbf2efb2f..e06352c3a 100644 --- a/generated/google/apis/bigquery_v2/service.rb +++ b/generated/google/apis/bigquery_v2/service.rb @@ -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] 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?