Bump version, regen APIs
Revert api_names.yaml to pick up the manual overrides lost in v0.12.0
This commit is contained in:
1 parent
ebd954a53c
commit
749539e46a
314 files changed
+85436
-117727
No files matched your search
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -32,16 +32,16 @@ module Google
|
||||
#
|
||||
# @see https://cloud.google.com/dataflow
|
||||
class DataflowService < Google::Apis::Core::BaseService
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
# @return [String]
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
attr_accessor :quota_user
|
||||
|
||||
# @return [String]
|
||||
# API key. Your API key identifies your project and provides you with API access,
|
||||
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
||||
attr_accessor :key
|
||||
|
||||
def initialize
|
||||
super('https://dataflow.googleapis.com/', '')
|
||||
@batch_path = 'batch'
|
||||
@@ -80,6 +80,80 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get the template associated with a template.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] view
|
||||
# The view to retrieve. Defaults to METADATA_ONLY.
|
||||
# @param [String] gcs_path
|
||||
# Required. A Cloud Storage path to the template from which to
|
||||
# create the job.
|
||||
# Must be a valid Cloud Storage URL, beginning with `gs://`.
|
||||
# @param [String] location
|
||||
# The location to which to direct the request.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
|
||||
#
|
||||
# @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_project_template(project_id, view: nil, gcs_path: nil, location: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/templates:get', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
||||
command.query['location'] = location unless location.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a Cloud Dataflow job from a template.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::Job]
|
||||
#
|
||||
# @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 create_job_from_template(project_id, create_job_from_template_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
|
||||
command.request_object = create_job_from_template_request_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Launch a template.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
@@ -125,80 +199,6 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get the template associated with a template.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] location
|
||||
# The location to which to direct the request.
|
||||
# @param [String] view
|
||||
# The view to retrieve. Defaults to METADATA_ONLY.
|
||||
# @param [String] gcs_path
|
||||
# Required. A Cloud Storage path to the template from which to
|
||||
# create the job.
|
||||
# Must be a valid Cloud Storage URL, beginning with `gs://`.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
|
||||
#
|
||||
# @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_project_template(project_id, location: nil, view: nil, gcs_path: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/templates:get', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['location'] = location unless location.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a Cloud Dataflow job from a template.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::Job]
|
||||
#
|
||||
# @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 create_job_from_template(project_id, create_job_from_template_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
|
||||
command.request_object = create_job_from_template_request_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Send a worker_message to the service.
|
||||
# @param [String] project_id
|
||||
# The project to send the WorkerMessages to.
|
||||
@@ -235,16 +235,98 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a Cloud Dataflow job.
|
||||
# Launch a template.
|
||||
# @param [String] project_id
|
||||
# The ID of the Cloud Platform project that the job belongs to.
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] location
|
||||
# The location that contains this job.
|
||||
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
||||
# The location to which to direct the request.
|
||||
# @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
|
||||
# @param [Boolean] validate_only
|
||||
# If true, the request is validated but not actually executed.
|
||||
# Defaults to false.
|
||||
# @param [String] gcs_path
|
||||
# Required. A Cloud Storage path to the template from which to create
|
||||
# the job.
|
||||
# Must be valid Cloud Storage URL, beginning with 'gs://'.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::LaunchTemplateResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse]
|
||||
#
|
||||
# @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 launch_project_location_template(project_id, location, launch_template_parameters_object = nil, validate_only: nil, gcs_path: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates:launch', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
|
||||
command.request_object = launch_template_parameters_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
||||
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get the template associated with a template.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] location
|
||||
# The location to which to direct the request.
|
||||
# @param [String] gcs_path
|
||||
# Required. A Cloud Storage path to the template from which to
|
||||
# create the job.
|
||||
# Must be a valid Cloud Storage URL, beginning with `gs://`.
|
||||
# @param [String] view
|
||||
# The level of information requested in response.
|
||||
# @param [String] replace_job_id
|
||||
# Deprecated. This field is now in the Job message.
|
||||
# The view to retrieve. Defaults to METADATA_ONLY.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
|
||||
#
|
||||
# @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_project_location_template(project_id, location, gcs_path: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/templates:get', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a Cloud Dataflow job from a template.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] location
|
||||
# The location to which to direct the request.
|
||||
# @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
@@ -262,7 +344,86 @@ 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 create_project_location_job(project_id, location, job_object = nil, view: nil, replace_job_id: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
def create_job_from_template_with_location(project_id, location, create_job_from_template_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
|
||||
command.request_object = create_job_from_template_request_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the state of an existing Cloud Dataflow job.
|
||||
# @param [String] project_id
|
||||
# The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] location
|
||||
# The location that contains this job.
|
||||
# @param [String] job_id
|
||||
# The job ID.
|
||||
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::Job]
|
||||
#
|
||||
# @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 update_project_location_job(project_id, location, job_id, job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||
command.request_object = job_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a Cloud Dataflow job.
|
||||
# @param [String] project_id
|
||||
# The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] location
|
||||
# The location that contains this job.
|
||||
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
||||
# @param [String] replace_job_id
|
||||
# Deprecated. This field is now in the Job message.
|
||||
# @param [String] view
|
||||
# The level of information requested in response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::Job]
|
||||
#
|
||||
# @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 create_project_location_job(project_id, location, job_object = nil, replace_job_id: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||
command.request_object = job_object
|
||||
@@ -270,8 +431,8 @@ module Google
|
||||
command.response_class = Google::Apis::DataflowV1b3::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -404,45 +565,6 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Updates the state of an existing Cloud Dataflow job.
|
||||
# @param [String] project_id
|
||||
# The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] location
|
||||
# The location that contains this job.
|
||||
# @param [String] job_id
|
||||
# The job ID.
|
||||
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::Job]
|
||||
#
|
||||
# @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 update_project_location_job(project_id, location, job_id, job_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:put, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||
command.request_object = job_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get encoded debug configuration for component. Not cacheable.
|
||||
# @param [String] project_id
|
||||
# The project id.
|
||||
@@ -656,19 +778,16 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Launch a template.
|
||||
# Request the job status.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
# A project id.
|
||||
# @param [String] job_id
|
||||
# The job to get messages for.
|
||||
# @param [String] location
|
||||
# The location to which to direct the request.
|
||||
# @param [Google::Apis::DataflowV1b3::LaunchTemplateParameters] launch_template_parameters_object
|
||||
# @param [Boolean] validate_only
|
||||
# If true, the request is validated but not actually executed.
|
||||
# Defaults to false.
|
||||
# @param [String] gcs_path
|
||||
# Required. A Cloud Storage path to the template from which to create
|
||||
# the job.
|
||||
# Must be valid Cloud Storage URL, beginning with 'gs://'.
|
||||
# The location which contains the job specified by job_id.
|
||||
# @param [String] start_time
|
||||
# Return only metric data that has changed since this time.
|
||||
# Default is to return all information about all metrics for the job.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
@@ -678,101 +797,22 @@ module Google
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::LaunchTemplateResponse] parsed result object
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::LaunchTemplateResponse]
|
||||
# @return [Google::Apis::DataflowV1b3::JobMetrics]
|
||||
#
|
||||
# @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 launch_project_location_template(project_id, location, launch_template_parameters_object = nil, validate_only: nil, gcs_path: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates:launch', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::LaunchTemplateParameters::Representation
|
||||
command.request_object = launch_template_parameters_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::LaunchTemplateResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::LaunchTemplateResponse
|
||||
def get_project_job_metrics(project_id, job_id, location: nil, start_time: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
||||
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get the template associated with a template.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] location
|
||||
# The location to which to direct the request.
|
||||
# @param [String] view
|
||||
# The view to retrieve. Defaults to METADATA_ONLY.
|
||||
# @param [String] gcs_path
|
||||
# Required. A Cloud Storage path to the template from which to
|
||||
# create the job.
|
||||
# Must be a valid Cloud Storage URL, beginning with `gs://`.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::GetTemplateResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::GetTemplateResponse]
|
||||
#
|
||||
# @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_project_location_template(project_id, location, view: nil, gcs_path: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/templates:get', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::GetTemplateResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::GetTemplateResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['gcsPath'] = gcs_path unless gcs_path.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Creates a Cloud Dataflow job from a template.
|
||||
# @param [String] project_id
|
||||
# Required. The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] location
|
||||
# The location to which to direct the request.
|
||||
# @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::Job]
|
||||
#
|
||||
# @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 create_job_from_template_with_location(project_id, location, create_job_from_template_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/templates', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
|
||||
command.request_object = create_job_from_template_request_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['location'] = location unless location.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['location'] = location unless location.nil?
|
||||
command.query['startTime'] = start_time unless start_time.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -783,10 +823,10 @@ module Google
|
||||
# The ID of the Cloud Platform project that the job belongs to.
|
||||
# @param [String] job_id
|
||||
# The job ID.
|
||||
# @param [String] view
|
||||
# The level of information requested in response.
|
||||
# @param [String] location
|
||||
# The location that contains this job.
|
||||
# @param [String] view
|
||||
# The level of information requested in response.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
@@ -804,14 +844,14 @@ 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_project_job(project_id, job_id, view: nil, location: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
def get_project_job(project_id, job_id, location: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::Job
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['location'] = location unless location.nil?
|
||||
command.query['view'] = view unless view.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -946,46 +986,6 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Request the job status.
|
||||
# @param [String] project_id
|
||||
# A project id.
|
||||
# @param [String] job_id
|
||||
# The job to get messages for.
|
||||
# @param [String] location
|
||||
# The location which contains the job specified by job_id.
|
||||
# @param [String] start_time
|
||||
# Return only metric data that has changed since this time.
|
||||
# Default is to return all information about all metrics for the job.
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::JobMetrics]
|
||||
#
|
||||
# @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_project_job_metrics(project_id, job_id, location: nil, start_time: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
|
||||
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['startTime'] = start_time unless start_time.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Get encoded debug configuration for component. Not cacheable.
|
||||
# @param [String] project_id
|
||||
# The project id.
|
||||
@@ -1058,42 +1058,6 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Leases a dataflow WorkItem to run.
|
||||
# @param [String] project_id
|
||||
# Identifies the project this worker belongs to.
|
||||
# @param [String] job_id
|
||||
# Identifies the workflow job this worker belongs to.
|
||||
# @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
|
||||
#
|
||||
# @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 lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
|
||||
command.request_object = lease_work_item_request_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Reports the status of dataflow WorkItems leased by a worker.
|
||||
# @param [String] project_id
|
||||
# The project which owns the WorkItem's job.
|
||||
@@ -1130,16 +1094,47 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Leases a dataflow WorkItem to run.
|
||||
# @param [String] project_id
|
||||
# Identifies the project this worker belongs to.
|
||||
# @param [String] job_id
|
||||
# Identifies the workflow job this worker belongs to.
|
||||
# @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [Google::Apis::RequestOptions] options
|
||||
# Request-specific options
|
||||
#
|
||||
# @yield [result, err] Result & error if block supplied
|
||||
# @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
|
||||
#
|
||||
# @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 lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
|
||||
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
|
||||
command.request_object = lease_work_item_request_object
|
||||
command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
|
||||
command.params['projectId'] = project_id unless project_id.nil?
|
||||
command.params['jobId'] = job_id unless job_id.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Request the job status.
|
||||
# @param [String] project_id
|
||||
# A project id.
|
||||
# @param [String] job_id
|
||||
# The job to get messages about.
|
||||
# @param [String] location
|
||||
# The location which contains the job specified by job_id.
|
||||
# @param [String] end_time
|
||||
# Return only messages with timestamps < end_time. The default is now
|
||||
# (i.e. return up to the latest messages available).
|
||||
# @param [String] page_token
|
||||
# If supplied, this should be the value of next_page_token returned
|
||||
# by an earlier call. This will cause the next page of results to
|
||||
@@ -1153,6 +1148,11 @@ module Google
|
||||
# default, or may return an arbitrarily large number of results.
|
||||
# @param [String] minimum_importance
|
||||
# Filter to only get messages with importance >= level
|
||||
# @param [String] location
|
||||
# The location which contains the job specified by job_id.
|
||||
# @param [String] end_time
|
||||
# Return only messages with timestamps < end_time. The default is now
|
||||
# (i.e. return up to the latest messages available).
|
||||
# @param [String] quota_user
|
||||
# Available to use for quota purposes for server-side applications. Can be any
|
||||
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||
@@ -1170,18 +1170,18 @@ 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_project_job_messages(project_id, job_id, location: nil, end_time: nil, page_token: nil, start_time: nil, page_size: nil, minimum_importance: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
def list_project_job_messages(project_id, job_id, page_token: nil, start_time: nil, page_size: nil, minimum_importance: nil, location: nil, end_time: nil, quota_user: nil, fields: nil, options: nil, &block)
|
||||
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
|
||||
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
||||
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
||||
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['endTime'] = end_time unless end_time.nil?
|
||||
command.query['pageToken'] = page_token unless page_token.nil?
|
||||
command.query['startTime'] = start_time unless start_time.nil?
|
||||
command.query['pageSize'] = page_size unless page_size.nil?
|
||||
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
||||
command.query['location'] = location unless location.nil?
|
||||
command.query['endTime'] = end_time unless end_time.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['fields'] = fields unless fields.nil?
|
||||
execute_or_queue_command(command, &block)
|
||||
@@ -1190,8 +1190,8 @@ module Google
|
||||
protected
|
||||
|
||||
def apply_command_defaults(command)
|
||||
command.query['key'] = key unless key.nil?
|
||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||
command.query['key'] = key unless key.nil?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user