Autogenerated update (2018-02-03)
Update: - bigquery_v2 - calendar_v3 - gmail_v1 - testing_v1 - tpu_v1alpha1
This commit is contained in:
1 parent
64cc6eadab
commit
acfe5de548
12 files changed
+172
-39
No files matched your search
@@ -514,6 +514,11 @@ module Google
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# [Experimental] The geographic location where the data resides.
|
||||
# Corresponds to the JSON property `location`
|
||||
# @return [String]
|
||||
attr_accessor :location
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -525,6 +530,7 @@ module Google
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1184,6 +1190,12 @@ module Google
|
||||
# @return [Google::Apis::BigqueryV2::JobConfigurationExtract]
|
||||
attr_accessor :extract
|
||||
|
||||
# [Optional] Job timeout in milliseconds. If this time limit is exceeded,
|
||||
# BigQuery may attempt to terminate the job.
|
||||
# Corresponds to the JSON property `jobTimeoutMs`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :job_timeout_ms
|
||||
|
||||
# The labels associated with this job. You can use these to organize and group
|
||||
# your jobs. Label keys and values can be no longer than 63 characters, can only
|
||||
# contain lowercase letters, numeric characters, underscores and dashes.
|
||||
@@ -1212,6 +1224,7 @@ module Google
|
||||
@copy = args[:copy] if args.key?(:copy)
|
||||
@dry_run = args[:dry_run] if args.key?(:dry_run)
|
||||
@extract = args[:extract] if args.key?(:extract)
|
||||
@job_timeout_ms = args[:job_timeout_ms] if args.key?(:job_timeout_ms)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@load = args[:load] if args.key?(:load)
|
||||
@query = args[:query] if args.key?(:query)
|
||||
@@ -1864,6 +1877,12 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :job_id
|
||||
|
||||
# [Experimental] The geographic location of the job. Required except for US and
|
||||
# EU.
|
||||
# Corresponds to the JSON property `location`
|
||||
# @return [String]
|
||||
attr_accessor :location
|
||||
|
||||
# [Required] The ID of the project containing this job.
|
||||
# Corresponds to the JSON property `projectId`
|
||||
# @return [String]
|
||||
@@ -1876,6 +1895,7 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@job_id = args[:job_id] if args.key?(:job_id)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@project_id = args[:project_id] if args.key?(:project_id)
|
||||
end
|
||||
end
|
||||
@@ -1884,6 +1904,12 @@ module Google
|
||||
class JobStatistics
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Experimental] [Output-only] Job progress (0.0 -> 1.0) for LOAD and EXTRACT
|
||||
# jobs.
|
||||
# Corresponds to the JSON property `completionRatio`
|
||||
# @return [Float]
|
||||
attr_accessor :completion_ratio
|
||||
|
||||
# [Output-only] Creation time of this job, in milliseconds since the epoch. This
|
||||
# field will be present on all jobs.
|
||||
# Corresponds to the JSON property `creationTime`
|
||||
@@ -1930,6 +1956,7 @@ module Google
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@completion_ratio = args[:completion_ratio] if args.key?(:completion_ratio)
|
||||
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
||||
@end_time = args[:end_time] if args.key?(:end_time)
|
||||
@extract = args[:extract] if args.key?(:extract)
|
||||
@@ -2426,6 +2453,12 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
||||
# [Experimental] The geographic location where the job should run. Required
|
||||
# except for US and EU.
|
||||
# Corresponds to the JSON property `location`
|
||||
# @return [String]
|
||||
attr_accessor :location
|
||||
|
||||
# [Optional] The maximum number of rows of data to return per page of results.
|
||||
# Setting this flag to a small value such as 1000 and then paging through
|
||||
# results might improve reliability when the query result set is large. In
|
||||
@@ -2496,6 +2529,7 @@ module Google
|
||||
@default_dataset = args[:default_dataset] if args.key?(:default_dataset)
|
||||
@dry_run = args[:dry_run] if args.key?(:dry_run)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@location = args[:location] if args.key?(:location)
|
||||
@max_results = args[:max_results] if args.key?(:max_results)
|
||||
@parameter_mode = args[:parameter_mode] if args.key?(:parameter_mode)
|
||||
@preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls)
|
||||
@@ -2616,11 +2650,6 @@ module Google
|
||||
# @return [Fixnum]
|
||||
attr_accessor :completed_inputs
|
||||
|
||||
# Total parallel units of work completed by the currently active stages.
|
||||
# Corresponds to the JSON property `completedInputsForActiveStages`
|
||||
# @return [Fixnum]
|
||||
attr_accessor :completed_inputs_for_active_stages
|
||||
|
||||
# Milliseconds elapsed since the start of query execution.
|
||||
# Corresponds to the JSON property `elapsedMs`
|
||||
# @return [Fixnum]
|
||||
@@ -2644,7 +2673,6 @@ module Google
|
||||
def update!(**args)
|
||||
@active_inputs = args[:active_inputs] if args.key?(:active_inputs)
|
||||
@completed_inputs = args[:completed_inputs] if args.key?(:completed_inputs)
|
||||
@completed_inputs_for_active_stages = args[:completed_inputs_for_active_stages] if args.key?(:completed_inputs_for_active_stages)
|
||||
@elapsed_ms = args[:elapsed_ms] if args.key?(:elapsed_ms)
|
||||
@pending_inputs = args[:pending_inputs] if args.key?(:pending_inputs)
|
||||
@total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
|
||||
|
||||
@@ -481,6 +481,7 @@ module Google
|
||||
property :id, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
hash :labels, as: 'labels'
|
||||
property :location, as: 'location'
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -644,6 +645,7 @@ module Google
|
||||
property :dry_run, as: 'dryRun'
|
||||
property :extract, as: 'extract', class: Google::Apis::BigqueryV2::JobConfigurationExtract, decorator: Google::Apis::BigqueryV2::JobConfigurationExtract::Representation
|
||||
|
||||
property :job_timeout_ms, :numeric_string => true, as: 'jobTimeoutMs'
|
||||
hash :labels, as: 'labels'
|
||||
property :load, as: 'load', class: Google::Apis::BigqueryV2::JobConfigurationLoad, decorator: Google::Apis::BigqueryV2::JobConfigurationLoad::Representation
|
||||
|
||||
@@ -782,6 +784,7 @@ module Google
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :job_id, as: 'jobId'
|
||||
property :location, as: 'location'
|
||||
property :project_id, as: 'projectId'
|
||||
end
|
||||
end
|
||||
@@ -789,6 +792,7 @@ module Google
|
||||
class JobStatistics
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :completion_ratio, as: 'completionRatio'
|
||||
property :creation_time, :numeric_string => true, as: 'creationTime'
|
||||
property :end_time, :numeric_string => true, as: 'endTime'
|
||||
property :extract, as: 'extract', class: Google::Apis::BigqueryV2::JobStatistics4, decorator: Google::Apis::BigqueryV2::JobStatistics4::Representation
|
||||
@@ -939,6 +943,7 @@ module Google
|
||||
|
||||
property :dry_run, as: 'dryRun'
|
||||
property :kind, as: 'kind'
|
||||
property :location, as: 'location'
|
||||
property :max_results, as: 'maxResults'
|
||||
property :parameter_mode, as: 'parameterMode'
|
||||
property :preserve_nulls, as: 'preserveNulls'
|
||||
@@ -977,7 +982,6 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :active_inputs, as: 'activeInputs'
|
||||
property :completed_inputs, as: 'completedInputs'
|
||||
property :completed_inputs_for_active_stages, as: 'completedInputsForActiveStages'
|
||||
property :elapsed_ms, :numeric_string => true, as: 'elapsedMs'
|
||||
property :pending_inputs, :numeric_string => true, as: 'pendingInputs'
|
||||
property :total_slot_ms, :numeric_string => true, as: 'totalSlotMs'
|
||||
|
||||
@@ -317,6 +317,9 @@ module Google
|
||||
# [Required] Project ID of the job to cancel
|
||||
# @param [String] job_id
|
||||
# [Required] Job ID of the job to cancel
|
||||
# @param [String] location
|
||||
# [Experimental] The geographic location of the job. Required except for US and
|
||||
# EU.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -338,12 +341,13 @@ 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 cancel_job(project_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def cancel_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'projects/{projectId}/jobs/{jobId}/cancel', options)
|
||||
command.response_representation = Google::Apis::BigqueryV2::CancelJobResponse::Representation
|
||||
command.response_class = Google::Apis::BigqueryV2::CancelJobResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['location'] = location unless location.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
@@ -357,6 +361,9 @@ module Google
|
||||
# [Required] Project ID of the requested job
|
||||
# @param [String] job_id
|
||||
# [Required] Job ID of the requested job
|
||||
# @param [String] location
|
||||
# [Experimental] The geographic location of the job. Required except for US and
|
||||
# EU.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -378,12 +385,13 @@ 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 get_job(project_id, job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def get_job(project_id, job_id, location: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'projects/{projectId}/jobs/{jobId}', options)
|
||||
command.response_representation = Google::Apis::BigqueryV2::Job::Representation
|
||||
command.response_class = Google::Apis::BigqueryV2::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['location'] = location unless location.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
||||
@@ -395,6 +403,9 @@ module Google
|
||||
# [Required] Project ID of the query job
|
||||
# @param [String] job_id
|
||||
# [Required] Job ID of the query job
|
||||
# @param [String] location
|
||||
# [Experimental] The geographic location where the job should run. Required
|
||||
# except for US and EU.
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum number of results to read
|
||||
# @param [String] page_token
|
||||
@@ -426,12 +437,13 @@ 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 get_job_query_results(project_id, job_id, max_results: nil, page_token: nil, start_index: nil, timeout_ms: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
def get_job_query_results(project_id, job_id, location: nil, max_results: nil, page_token: nil, start_index: nil, timeout_ms: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'projects/{projectId}/queries/{jobId}', options)
|
||||
command.response_representation = Google::Apis::BigqueryV2::GetQueryResultsResponse::Representation
|
||||
command.response_class = Google::Apis::BigqueryV2::GetQueryResultsResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['location'] = location unless location.nil?
|
||||
command.query['maxResults'] = max_results unless max_results.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['startIndex'] = start_index unless start_index.nil?
|
||||
|
||||
Reference in new issue
Block a user