google-api-client 0.9.8 → 0.9.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/Gemfile +9 -1
- data/README.md +10 -2
- data/api_names.yaml +63 -110
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +260 -13
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +81 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +86 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +24 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +2 -2
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +217 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +50 -22
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +813 -49
- data/generated/google/apis/androidenterprise_v1/representations.rb +336 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1234 -145
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +47 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +27 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -0
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +516 -313
- data/generated/google/apis/appengine_v1beta5/representations.rb +115 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +329 -33
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +277 -20
- data/generated/google/apis/bigquery_v2/representations.rb +86 -0
- data/generated/google/apis/bigquery_v2/service.rb +8 -2
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +79 -1
- data/generated/google/apis/books_v1/representations.rb +34 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/classroom_v1/classes.rb +183 -37
- data/generated/google/apis/classroom_v1/representations.rb +74 -9
- data/generated/google/apis/classroom_v1/service.rb +403 -38
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +381 -17
- data/generated/google/apis/cloudbuild_v1/representations.rb +137 -2
- data/generated/google/apis/cloudbuild_v1/service.rb +174 -1
- data/generated/google/apis/clouddebugger_v2.rb +3 -6
- data/generated/google/apis/clouddebugger_v2/service.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +502 -111
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +162 -24
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +274 -30
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +121 -9
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +46 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +71 -58
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +2299 -434
- data/generated/google/apis/compute_beta/representations.rb +752 -33
- data/generated/google/apis/compute_beta/service.rb +6067 -3153
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1681 -207
- data/generated/google/apis/compute_v1/representations.rb +552 -0
- data/generated/google/apis/compute_v1/service.rb +2797 -1171
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +757 -1
- data/generated/google/apis/content_v2/representations.rb +337 -0
- data/generated/google/apis/content_v2/service.rb +244 -0
- data/generated/google/apis/dataflow_v1b3.rb +38 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4053 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1736 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +875 -0
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +213 -68
- data/generated/google/apis/dataproc_v1/representations.rb +38 -0
- data/generated/google/apis/dataproc_v1/service.rb +78 -48
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +384 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +161 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +217 -55
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +27 -3
- data/generated/google/apis/drive_v2/representations.rb +4 -0
- data/generated/google/apis/drive_v2/service.rb +16 -3
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +50 -16
- data/generated/google/apis/drive_v3/representations.rb +4 -0
- data/generated/google/apis/drive_v3/service.rb +12 -2
- data/generated/google/apis/fitness_v1.rb +8 -2
- data/generated/google/apis/fitness_v1/classes.rb +64 -6
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +2 -4
- data/generated/google/apis/genomics_v1/classes.rb +143 -34
- data/generated/google/apis/genomics_v1/representations.rb +48 -11
- data/generated/google/apis/genomics_v1/service.rb +35 -37
- data/generated/google/apis/gmail_v1.rb +10 -1
- data/generated/google/apis/gmail_v1/classes.rb +542 -4
- data/generated/google/apis/gmail_v1/representations.rb +213 -0
- data/generated/google/apis/gmail_v1/service.rb +898 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +181 -206
- data/generated/google/apis/iam_v1/representations.rb +36 -45
- data/generated/google/apis/iam_v1/service.rb +101 -67
- data/generated/google/apis/identitytoolkit_v3.rb +4 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +171 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +26 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +599 -0
- data/generated/google/apis/language_v1beta1/representations.rb +289 -0
- data/generated/google/apis/language_v1beta1/service.rb +152 -0
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +760 -731
- data/generated/google/apis/logging_v2beta1/representations.rb +136 -147
- data/generated/google/apis/logging_v2beta1/service.rb +290 -209
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1337 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +711 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +10 -9
- data/generated/google/apis/pubsub_v1/service.rb +128 -27
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/script_v1.rb +1 -1
- data/generated/google/apis/script_v1/classes.rb +6 -0
- data/generated/google/apis/script_v1/representations.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +910 -89
- data/generated/google/apis/sheets_v4/representations.rb +194 -10
- data/generated/google/apis/sheets_v4/service.rb +216 -49
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +3926 -0
- data/generated/google/apis/slides_v1/representations.rb +1722 -0
- data/generated/google/apis/slides_v1/service.rb +202 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +511 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
- data/generated/google/apis/speech_v1beta1/service.rb +271 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -8
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +3 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +42 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +43 -18
- data/generated/google/apis/storage_v1/representations.rb +4 -1
- data/generated/google/apis/storage_v1/service.rb +5 -2
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +12 -11
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +2 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +15 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +183 -21
- data/generated/google/apis/youtube_v3/representations.rb +85 -4
- data/generated/google/apis/youtube_v3/service.rb +41 -5
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/google-api-client.gemspec +2 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/core/base_service.rb +10 -4
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +2 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/sync.rb +71 -0
- metadata +55 -13
|
@@ -0,0 +1,875 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module DataflowV1b3
|
|
23
|
+
# Google Dataflow API
|
|
24
|
+
#
|
|
25
|
+
# Develops and executes data processing patterns like ETL, batch computation,
|
|
26
|
+
# and continuous computation.
|
|
27
|
+
#
|
|
28
|
+
# @example
|
|
29
|
+
# require 'google/apis/dataflow_v1b3'
|
|
30
|
+
#
|
|
31
|
+
# Dataflow = Google::Apis::DataflowV1b3 # Alias the module
|
|
32
|
+
# service = Dataflow::DataflowService.new
|
|
33
|
+
#
|
|
34
|
+
# @see https://cloud.google.com/dataflow
|
|
35
|
+
class DataflowService < Google::Apis::Core::BaseService
|
|
36
|
+
# @return [String]
|
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
39
|
+
attr_accessor :key
|
|
40
|
+
|
|
41
|
+
# @return [String]
|
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
44
|
+
attr_accessor :quota_user
|
|
45
|
+
|
|
46
|
+
def initialize
|
|
47
|
+
super('https://dataflow.googleapis.com/', '')
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Send a worker_message to the service.
|
|
51
|
+
# @param [String] project_id
|
|
52
|
+
# The project to send the WorkerMessages to.
|
|
53
|
+
# @param [Google::Apis::DataflowV1b3::SendWorkerMessagesRequest] send_worker_messages_request_object
|
|
54
|
+
# @param [String] fields
|
|
55
|
+
# Selector specifying which fields to include in a partial response.
|
|
56
|
+
# @param [String] quota_user
|
|
57
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
58
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
59
|
+
# @param [Google::Apis::RequestOptions] options
|
|
60
|
+
# Request-specific options
|
|
61
|
+
#
|
|
62
|
+
# @yield [result, err] Result & error if block supplied
|
|
63
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::SendWorkerMessagesResponse] parsed result object
|
|
64
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
65
|
+
#
|
|
66
|
+
# @return [Google::Apis::DataflowV1b3::SendWorkerMessagesResponse]
|
|
67
|
+
#
|
|
68
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
69
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
70
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
71
|
+
def worker_project_messages(project_id, send_worker_messages_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
72
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/WorkerMessages', options)
|
|
73
|
+
command.request_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesRequest::Representation
|
|
74
|
+
command.request_object = send_worker_messages_request_object
|
|
75
|
+
command.response_representation = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse::Representation
|
|
76
|
+
command.response_class = Google::Apis::DataflowV1b3::SendWorkerMessagesResponse
|
|
77
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
78
|
+
command.query['fields'] = fields unless fields.nil?
|
|
79
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
80
|
+
execute_or_queue_command(command, &block)
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Creates a dataflow job.
|
|
84
|
+
# @param [String] project_id
|
|
85
|
+
# The project which owns the job.
|
|
86
|
+
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
|
87
|
+
# @param [String] view
|
|
88
|
+
# Level of information requested in response.
|
|
89
|
+
# @param [String] replace_job_id
|
|
90
|
+
# DEPRECATED. This field is now on the Job message.
|
|
91
|
+
# @param [String] location
|
|
92
|
+
# The location which contains this job.
|
|
93
|
+
# @param [String] fields
|
|
94
|
+
# Selector specifying which fields to include in a partial response.
|
|
95
|
+
# @param [String] quota_user
|
|
96
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
97
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
98
|
+
# @param [Google::Apis::RequestOptions] options
|
|
99
|
+
# Request-specific options
|
|
100
|
+
#
|
|
101
|
+
# @yield [result, err] Result & error if block supplied
|
|
102
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
|
103
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
104
|
+
#
|
|
105
|
+
# @return [Google::Apis::DataflowV1b3::Job]
|
|
106
|
+
#
|
|
107
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
108
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
109
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
110
|
+
def create_project_job(project_id, job_object = nil, view: nil, replace_job_id: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
111
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs', options)
|
|
112
|
+
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
113
|
+
command.request_object = job_object
|
|
114
|
+
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
115
|
+
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
116
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
117
|
+
command.query['view'] = view unless view.nil?
|
|
118
|
+
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
|
|
119
|
+
command.query['location'] = location unless location.nil?
|
|
120
|
+
command.query['fields'] = fields unless fields.nil?
|
|
121
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
122
|
+
execute_or_queue_command(command, &block)
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Gets the state of the specified dataflow job.
|
|
126
|
+
# @param [String] project_id
|
|
127
|
+
# The project which owns the job.
|
|
128
|
+
# @param [String] job_id
|
|
129
|
+
# Identifies a single job.
|
|
130
|
+
# @param [String] view
|
|
131
|
+
# Level of information requested in response.
|
|
132
|
+
# @param [String] location
|
|
133
|
+
# The location which contains this job.
|
|
134
|
+
# @param [String] fields
|
|
135
|
+
# Selector specifying which fields to include in a partial response.
|
|
136
|
+
# @param [String] quota_user
|
|
137
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
138
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
139
|
+
# @param [Google::Apis::RequestOptions] options
|
|
140
|
+
# Request-specific options
|
|
141
|
+
#
|
|
142
|
+
# @yield [result, err] Result & error if block supplied
|
|
143
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
|
144
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
145
|
+
#
|
|
146
|
+
# @return [Google::Apis::DataflowV1b3::Job]
|
|
147
|
+
#
|
|
148
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
149
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
150
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
151
|
+
def get_project_job(project_id, job_id, view: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
152
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
|
|
153
|
+
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
154
|
+
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
155
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
156
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
157
|
+
command.query['view'] = view unless view.nil?
|
|
158
|
+
command.query['location'] = location unless location.nil?
|
|
159
|
+
command.query['fields'] = fields unless fields.nil?
|
|
160
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
161
|
+
execute_or_queue_command(command, &block)
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Updates the state of an existing dataflow job.
|
|
165
|
+
# @param [String] project_id
|
|
166
|
+
# The project which owns the job.
|
|
167
|
+
# @param [String] job_id
|
|
168
|
+
# Identifies a single job.
|
|
169
|
+
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
|
170
|
+
# @param [String] location
|
|
171
|
+
# The location which contains this job.
|
|
172
|
+
# @param [String] fields
|
|
173
|
+
# Selector specifying which fields to include in a partial response.
|
|
174
|
+
# @param [String] quota_user
|
|
175
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
176
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
177
|
+
# @param [Google::Apis::RequestOptions] options
|
|
178
|
+
# Request-specific options
|
|
179
|
+
#
|
|
180
|
+
# @yield [result, err] Result & error if block supplied
|
|
181
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
|
182
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
183
|
+
#
|
|
184
|
+
# @return [Google::Apis::DataflowV1b3::Job]
|
|
185
|
+
#
|
|
186
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
187
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
188
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
189
|
+
def update_project_job(project_id, job_id, job_object = nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
190
|
+
command = make_simple_command(:put, 'v1b3/projects/{projectId}/jobs/{jobId}', options)
|
|
191
|
+
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
192
|
+
command.request_object = job_object
|
|
193
|
+
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
194
|
+
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
195
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
196
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
197
|
+
command.query['location'] = location unless location.nil?
|
|
198
|
+
command.query['fields'] = fields unless fields.nil?
|
|
199
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
200
|
+
execute_or_queue_command(command, &block)
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# List the jobs of a project
|
|
204
|
+
# @param [String] project_id
|
|
205
|
+
# The project which owns the jobs.
|
|
206
|
+
# @param [String] filter
|
|
207
|
+
# The kind of filter to use.
|
|
208
|
+
# @param [String] view
|
|
209
|
+
# Level of information requested in response. Default is SUMMARY.
|
|
210
|
+
# @param [Fixnum] page_size
|
|
211
|
+
# If there are many jobs, limit response to at most this many. The actual number
|
|
212
|
+
# of jobs returned will be the lesser of max_responses and an unspecified server-
|
|
213
|
+
# defined limit.
|
|
214
|
+
# @param [String] page_token
|
|
215
|
+
# Set this to the 'next_page_token' field of a previous response to request
|
|
216
|
+
# additional results in a long list.
|
|
217
|
+
# @param [String] location
|
|
218
|
+
# The location which contains this job.
|
|
219
|
+
# @param [String] fields
|
|
220
|
+
# Selector specifying which fields to include in a partial response.
|
|
221
|
+
# @param [String] quota_user
|
|
222
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
223
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
224
|
+
# @param [Google::Apis::RequestOptions] options
|
|
225
|
+
# Request-specific options
|
|
226
|
+
#
|
|
227
|
+
# @yield [result, err] Result & error if block supplied
|
|
228
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::ListJobsResponse] parsed result object
|
|
229
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
230
|
+
#
|
|
231
|
+
# @return [Google::Apis::DataflowV1b3::ListJobsResponse]
|
|
232
|
+
#
|
|
233
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
234
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
235
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
236
|
+
def list_project_jobs(project_id, filter: nil, view: nil, page_size: nil, page_token: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
237
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs', options)
|
|
238
|
+
command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
|
|
239
|
+
command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
|
|
240
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
241
|
+
command.query['filter'] = filter unless filter.nil?
|
|
242
|
+
command.query['view'] = view unless view.nil?
|
|
243
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
244
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
245
|
+
command.query['location'] = location unless location.nil?
|
|
246
|
+
command.query['fields'] = fields unless fields.nil?
|
|
247
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
248
|
+
execute_or_queue_command(command, &block)
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# Request the job status.
|
|
252
|
+
# @param [String] project_id
|
|
253
|
+
# A project id.
|
|
254
|
+
# @param [String] job_id
|
|
255
|
+
# The job to get messages for.
|
|
256
|
+
# @param [String] start_time
|
|
257
|
+
# Return only metric data that has changed since this time. Default is to return
|
|
258
|
+
# all information about all metrics for the job.
|
|
259
|
+
# @param [String] location
|
|
260
|
+
# The location which contains the job specified by job_id.
|
|
261
|
+
# @param [String] fields
|
|
262
|
+
# Selector specifying which fields to include in a partial response.
|
|
263
|
+
# @param [String] quota_user
|
|
264
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
265
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
266
|
+
# @param [Google::Apis::RequestOptions] options
|
|
267
|
+
# Request-specific options
|
|
268
|
+
#
|
|
269
|
+
# @yield [result, err] Result & error if block supplied
|
|
270
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
|
|
271
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
272
|
+
#
|
|
273
|
+
# @return [Google::Apis::DataflowV1b3::JobMetrics]
|
|
274
|
+
#
|
|
275
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
276
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
277
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
278
|
+
def get_project_job_metrics(project_id, job_id, start_time: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
279
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/metrics', options)
|
|
280
|
+
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
|
|
281
|
+
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
|
|
282
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
283
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
284
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
|
285
|
+
command.query['location'] = location unless location.nil?
|
|
286
|
+
command.query['fields'] = fields unless fields.nil?
|
|
287
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
288
|
+
execute_or_queue_command(command, &block)
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
# Get encoded debug configuration for component. Not cacheable.
|
|
292
|
+
# @param [String] project_id
|
|
293
|
+
# The project id.
|
|
294
|
+
# @param [String] job_id
|
|
295
|
+
# The job id.
|
|
296
|
+
# @param [Google::Apis::DataflowV1b3::GetDebugConfigRequest] get_debug_config_request_object
|
|
297
|
+
# @param [String] fields
|
|
298
|
+
# Selector specifying which fields to include in a partial response.
|
|
299
|
+
# @param [String] quota_user
|
|
300
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
301
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
302
|
+
# @param [Google::Apis::RequestOptions] options
|
|
303
|
+
# Request-specific options
|
|
304
|
+
#
|
|
305
|
+
# @yield [result, err] Result & error if block supplied
|
|
306
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::GetDebugConfigResponse] parsed result object
|
|
307
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
308
|
+
#
|
|
309
|
+
# @return [Google::Apis::DataflowV1b3::GetDebugConfigResponse]
|
|
310
|
+
#
|
|
311
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
312
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
313
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
314
|
+
def get_project_job_debug_config(project_id, job_id, get_debug_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
315
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig', options)
|
|
316
|
+
command.request_representation = Google::Apis::DataflowV1b3::GetDebugConfigRequest::Representation
|
|
317
|
+
command.request_object = get_debug_config_request_object
|
|
318
|
+
command.response_representation = Google::Apis::DataflowV1b3::GetDebugConfigResponse::Representation
|
|
319
|
+
command.response_class = Google::Apis::DataflowV1b3::GetDebugConfigResponse
|
|
320
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
321
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
322
|
+
command.query['fields'] = fields unless fields.nil?
|
|
323
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
324
|
+
execute_or_queue_command(command, &block)
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
# Send encoded debug capture data for component.
|
|
328
|
+
# @param [String] project_id
|
|
329
|
+
# The project id.
|
|
330
|
+
# @param [String] job_id
|
|
331
|
+
# The job id.
|
|
332
|
+
# @param [Google::Apis::DataflowV1b3::SendDebugCaptureRequest] send_debug_capture_request_object
|
|
333
|
+
# @param [String] fields
|
|
334
|
+
# Selector specifying which fields to include in a partial response.
|
|
335
|
+
# @param [String] quota_user
|
|
336
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
337
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
338
|
+
# @param [Google::Apis::RequestOptions] options
|
|
339
|
+
# Request-specific options
|
|
340
|
+
#
|
|
341
|
+
# @yield [result, err] Result & error if block supplied
|
|
342
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::SendDebugCaptureResponse] parsed result object
|
|
343
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
344
|
+
#
|
|
345
|
+
# @return [Google::Apis::DataflowV1b3::SendDebugCaptureResponse]
|
|
346
|
+
#
|
|
347
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
348
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
349
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
350
|
+
def send_project_job_debug_capture(project_id, job_id, send_debug_capture_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
351
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture', options)
|
|
352
|
+
command.request_representation = Google::Apis::DataflowV1b3::SendDebugCaptureRequest::Representation
|
|
353
|
+
command.request_object = send_debug_capture_request_object
|
|
354
|
+
command.response_representation = Google::Apis::DataflowV1b3::SendDebugCaptureResponse::Representation
|
|
355
|
+
command.response_class = Google::Apis::DataflowV1b3::SendDebugCaptureResponse
|
|
356
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
357
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
358
|
+
command.query['fields'] = fields unless fields.nil?
|
|
359
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
360
|
+
execute_or_queue_command(command, &block)
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
# Request the job status.
|
|
364
|
+
# @param [String] project_id
|
|
365
|
+
# A project id.
|
|
366
|
+
# @param [String] job_id
|
|
367
|
+
# The job to get messages about.
|
|
368
|
+
# @param [String] minimum_importance
|
|
369
|
+
# Filter to only get messages with importance >= level
|
|
370
|
+
# @param [Fixnum] page_size
|
|
371
|
+
# If specified, determines the maximum number of messages to return. If
|
|
372
|
+
# unspecified, the service may choose an appropriate default, or may return an
|
|
373
|
+
# arbitrarily large number of results.
|
|
374
|
+
# @param [String] page_token
|
|
375
|
+
# If supplied, this should be the value of next_page_token returned by an
|
|
376
|
+
# earlier call. This will cause the next page of results to be returned.
|
|
377
|
+
# @param [String] start_time
|
|
378
|
+
# If specified, return only messages with timestamps >= start_time. The default
|
|
379
|
+
# is the job creation time (i.e. beginning of messages).
|
|
380
|
+
# @param [String] end_time
|
|
381
|
+
# Return only messages with timestamps < end_time. The default is now (i.e.
|
|
382
|
+
# return up to the latest messages available).
|
|
383
|
+
# @param [String] location
|
|
384
|
+
# The location which contains the job specified by job_id.
|
|
385
|
+
# @param [String] fields
|
|
386
|
+
# Selector specifying which fields to include in a partial response.
|
|
387
|
+
# @param [String] quota_user
|
|
388
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
389
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
390
|
+
# @param [Google::Apis::RequestOptions] options
|
|
391
|
+
# Request-specific options
|
|
392
|
+
#
|
|
393
|
+
# @yield [result, err] Result & error if block supplied
|
|
394
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
|
|
395
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
396
|
+
#
|
|
397
|
+
# @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
|
|
398
|
+
#
|
|
399
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
400
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
401
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
402
|
+
def list_project_job_messages(project_id, job_id, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, location: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
403
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/jobs/{jobId}/messages', options)
|
|
404
|
+
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
|
405
|
+
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
|
406
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
407
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
408
|
+
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
|
409
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
410
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
411
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
|
412
|
+
command.query['endTime'] = end_time unless end_time.nil?
|
|
413
|
+
command.query['location'] = location unless location.nil?
|
|
414
|
+
command.query['fields'] = fields unless fields.nil?
|
|
415
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
416
|
+
execute_or_queue_command(command, &block)
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Reports the status of dataflow WorkItems leased by a worker.
|
|
420
|
+
# @param [String] project_id
|
|
421
|
+
# The project which owns the WorkItem's job.
|
|
422
|
+
# @param [String] job_id
|
|
423
|
+
# The job which the WorkItem is part of.
|
|
424
|
+
# @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
|
|
425
|
+
# @param [String] fields
|
|
426
|
+
# Selector specifying which fields to include in a partial response.
|
|
427
|
+
# @param [String] quota_user
|
|
428
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
429
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
430
|
+
# @param [Google::Apis::RequestOptions] options
|
|
431
|
+
# Request-specific options
|
|
432
|
+
#
|
|
433
|
+
# @yield [result, err] Result & error if block supplied
|
|
434
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
|
|
435
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
436
|
+
#
|
|
437
|
+
# @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
|
|
438
|
+
#
|
|
439
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
440
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
441
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
442
|
+
def report_project_job_work_item_status(project_id, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
443
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus', options)
|
|
444
|
+
command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
|
|
445
|
+
command.request_object = report_work_item_status_request_object
|
|
446
|
+
command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
|
|
447
|
+
command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
|
|
448
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
449
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
450
|
+
command.query['fields'] = fields unless fields.nil?
|
|
451
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
452
|
+
execute_or_queue_command(command, &block)
|
|
453
|
+
end
|
|
454
|
+
|
|
455
|
+
# Leases a dataflow WorkItem to run.
|
|
456
|
+
# @param [String] project_id
|
|
457
|
+
# Identifies the project this worker belongs to.
|
|
458
|
+
# @param [String] job_id
|
|
459
|
+
# Identifies the workflow job this worker belongs to.
|
|
460
|
+
# @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
|
|
461
|
+
# @param [String] fields
|
|
462
|
+
# Selector specifying which fields to include in a partial response.
|
|
463
|
+
# @param [String] quota_user
|
|
464
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
465
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
466
|
+
# @param [Google::Apis::RequestOptions] options
|
|
467
|
+
# Request-specific options
|
|
468
|
+
#
|
|
469
|
+
# @yield [result, err] Result & error if block supplied
|
|
470
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
|
|
471
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
472
|
+
#
|
|
473
|
+
# @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
|
|
474
|
+
#
|
|
475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
478
|
+
def lease_project_work_item(project_id, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
479
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease', options)
|
|
480
|
+
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
|
|
481
|
+
command.request_object = lease_work_item_request_object
|
|
482
|
+
command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
|
|
483
|
+
command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
|
|
484
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
485
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
486
|
+
command.query['fields'] = fields unless fields.nil?
|
|
487
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
488
|
+
execute_or_queue_command(command, &block)
|
|
489
|
+
end
|
|
490
|
+
|
|
491
|
+
# Creates a dataflow job.
|
|
492
|
+
# @param [String] project_id
|
|
493
|
+
# The project which owns the job.
|
|
494
|
+
# @param [String] location
|
|
495
|
+
# The location which contains this job.
|
|
496
|
+
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
|
497
|
+
# @param [String] view
|
|
498
|
+
# Level of information requested in response.
|
|
499
|
+
# @param [String] replace_job_id
|
|
500
|
+
# DEPRECATED. This field is now on the Job message.
|
|
501
|
+
# @param [String] fields
|
|
502
|
+
# Selector specifying which fields to include in a partial response.
|
|
503
|
+
# @param [String] quota_user
|
|
504
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
505
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
506
|
+
# @param [Google::Apis::RequestOptions] options
|
|
507
|
+
# Request-specific options
|
|
508
|
+
#
|
|
509
|
+
# @yield [result, err] Result & error if block supplied
|
|
510
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
|
511
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
512
|
+
#
|
|
513
|
+
# @return [Google::Apis::DataflowV1b3::Job]
|
|
514
|
+
#
|
|
515
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
516
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
517
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
518
|
+
def create_project_location_job(project_id, location, job_object = nil, view: nil, replace_job_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
519
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
|
|
520
|
+
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
521
|
+
command.request_object = job_object
|
|
522
|
+
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
523
|
+
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
524
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
525
|
+
command.params['location'] = location unless location.nil?
|
|
526
|
+
command.query['view'] = view unless view.nil?
|
|
527
|
+
command.query['replaceJobId'] = replace_job_id unless replace_job_id.nil?
|
|
528
|
+
command.query['fields'] = fields unless fields.nil?
|
|
529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
530
|
+
execute_or_queue_command(command, &block)
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
# Gets the state of the specified dataflow job.
|
|
534
|
+
# @param [String] project_id
|
|
535
|
+
# The project which owns the job.
|
|
536
|
+
# @param [String] location
|
|
537
|
+
# The location which contains this job.
|
|
538
|
+
# @param [String] job_id
|
|
539
|
+
# Identifies a single job.
|
|
540
|
+
# @param [String] view
|
|
541
|
+
# Level of information requested in response.
|
|
542
|
+
# @param [String] fields
|
|
543
|
+
# Selector specifying which fields to include in a partial response.
|
|
544
|
+
# @param [String] quota_user
|
|
545
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
546
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
547
|
+
# @param [Google::Apis::RequestOptions] options
|
|
548
|
+
# Request-specific options
|
|
549
|
+
#
|
|
550
|
+
# @yield [result, err] Result & error if block supplied
|
|
551
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
|
552
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
553
|
+
#
|
|
554
|
+
# @return [Google::Apis::DataflowV1b3::Job]
|
|
555
|
+
#
|
|
556
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
557
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
558
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
559
|
+
def get_project_location_job(project_id, location, job_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
560
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
|
|
561
|
+
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
562
|
+
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
563
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
564
|
+
command.params['location'] = location unless location.nil?
|
|
565
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
566
|
+
command.query['view'] = view unless view.nil?
|
|
567
|
+
command.query['fields'] = fields unless fields.nil?
|
|
568
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
569
|
+
execute_or_queue_command(command, &block)
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
# Updates the state of an existing dataflow job.
|
|
573
|
+
# @param [String] project_id
|
|
574
|
+
# The project which owns the job.
|
|
575
|
+
# @param [String] location
|
|
576
|
+
# The location which contains this job.
|
|
577
|
+
# @param [String] job_id
|
|
578
|
+
# Identifies a single job.
|
|
579
|
+
# @param [Google::Apis::DataflowV1b3::Job] job_object
|
|
580
|
+
# @param [String] fields
|
|
581
|
+
# Selector specifying which fields to include in a partial response.
|
|
582
|
+
# @param [String] quota_user
|
|
583
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
584
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
585
|
+
# @param [Google::Apis::RequestOptions] options
|
|
586
|
+
# Request-specific options
|
|
587
|
+
#
|
|
588
|
+
# @yield [result, err] Result & error if block supplied
|
|
589
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
|
590
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
591
|
+
#
|
|
592
|
+
# @return [Google::Apis::DataflowV1b3::Job]
|
|
593
|
+
#
|
|
594
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
595
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
596
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
597
|
+
def update_project_location_job(project_id, location, job_id, job_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
598
|
+
command = make_simple_command(:put, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}', options)
|
|
599
|
+
command.request_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
600
|
+
command.request_object = job_object
|
|
601
|
+
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
602
|
+
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
603
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
604
|
+
command.params['location'] = location unless location.nil?
|
|
605
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
606
|
+
command.query['fields'] = fields unless fields.nil?
|
|
607
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
608
|
+
execute_or_queue_command(command, &block)
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
# List the jobs of a project
|
|
612
|
+
# @param [String] project_id
|
|
613
|
+
# The project which owns the jobs.
|
|
614
|
+
# @param [String] location
|
|
615
|
+
# The location which contains this job.
|
|
616
|
+
# @param [String] filter
|
|
617
|
+
# The kind of filter to use.
|
|
618
|
+
# @param [String] view
|
|
619
|
+
# Level of information requested in response. Default is SUMMARY.
|
|
620
|
+
# @param [Fixnum] page_size
|
|
621
|
+
# If there are many jobs, limit response to at most this many. The actual number
|
|
622
|
+
# of jobs returned will be the lesser of max_responses and an unspecified server-
|
|
623
|
+
# defined limit.
|
|
624
|
+
# @param [String] page_token
|
|
625
|
+
# Set this to the 'next_page_token' field of a previous response to request
|
|
626
|
+
# additional results in a long list.
|
|
627
|
+
# @param [String] fields
|
|
628
|
+
# Selector specifying which fields to include in a partial response.
|
|
629
|
+
# @param [String] quota_user
|
|
630
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
631
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
632
|
+
# @param [Google::Apis::RequestOptions] options
|
|
633
|
+
# Request-specific options
|
|
634
|
+
#
|
|
635
|
+
# @yield [result, err] Result & error if block supplied
|
|
636
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::ListJobsResponse] parsed result object
|
|
637
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
638
|
+
#
|
|
639
|
+
# @return [Google::Apis::DataflowV1b3::ListJobsResponse]
|
|
640
|
+
#
|
|
641
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
642
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
643
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
644
|
+
def list_project_location_jobs(project_id, location, filter: nil, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
645
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs', options)
|
|
646
|
+
command.response_representation = Google::Apis::DataflowV1b3::ListJobsResponse::Representation
|
|
647
|
+
command.response_class = Google::Apis::DataflowV1b3::ListJobsResponse
|
|
648
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
649
|
+
command.params['location'] = location unless location.nil?
|
|
650
|
+
command.query['filter'] = filter unless filter.nil?
|
|
651
|
+
command.query['view'] = view unless view.nil?
|
|
652
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
653
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
654
|
+
command.query['fields'] = fields unless fields.nil?
|
|
655
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
656
|
+
execute_or_queue_command(command, &block)
|
|
657
|
+
end
|
|
658
|
+
|
|
659
|
+
# Request the job status.
|
|
660
|
+
# @param [String] project_id
|
|
661
|
+
# A project id.
|
|
662
|
+
# @param [String] location
|
|
663
|
+
# The location which contains the job specified by job_id.
|
|
664
|
+
# @param [String] job_id
|
|
665
|
+
# The job to get messages for.
|
|
666
|
+
# @param [String] start_time
|
|
667
|
+
# Return only metric data that has changed since this time. Default is to return
|
|
668
|
+
# all information about all metrics for the job.
|
|
669
|
+
# @param [String] fields
|
|
670
|
+
# Selector specifying which fields to include in a partial response.
|
|
671
|
+
# @param [String] quota_user
|
|
672
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
673
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
674
|
+
# @param [Google::Apis::RequestOptions] options
|
|
675
|
+
# Request-specific options
|
|
676
|
+
#
|
|
677
|
+
# @yield [result, err] Result & error if block supplied
|
|
678
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::JobMetrics] parsed result object
|
|
679
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
680
|
+
#
|
|
681
|
+
# @return [Google::Apis::DataflowV1b3::JobMetrics]
|
|
682
|
+
#
|
|
683
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
684
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
685
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
686
|
+
def get_project_location_job_metrics(project_id, location, job_id, start_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
687
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics', options)
|
|
688
|
+
command.response_representation = Google::Apis::DataflowV1b3::JobMetrics::Representation
|
|
689
|
+
command.response_class = Google::Apis::DataflowV1b3::JobMetrics
|
|
690
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
691
|
+
command.params['location'] = location unless location.nil?
|
|
692
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
693
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
|
694
|
+
command.query['fields'] = fields unless fields.nil?
|
|
695
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
696
|
+
execute_or_queue_command(command, &block)
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
# Request the job status.
|
|
700
|
+
# @param [String] project_id
|
|
701
|
+
# A project id.
|
|
702
|
+
# @param [String] location
|
|
703
|
+
# The location which contains the job specified by job_id.
|
|
704
|
+
# @param [String] job_id
|
|
705
|
+
# The job to get messages about.
|
|
706
|
+
# @param [String] minimum_importance
|
|
707
|
+
# Filter to only get messages with importance >= level
|
|
708
|
+
# @param [Fixnum] page_size
|
|
709
|
+
# If specified, determines the maximum number of messages to return. If
|
|
710
|
+
# unspecified, the service may choose an appropriate default, or may return an
|
|
711
|
+
# arbitrarily large number of results.
|
|
712
|
+
# @param [String] page_token
|
|
713
|
+
# If supplied, this should be the value of next_page_token returned by an
|
|
714
|
+
# earlier call. This will cause the next page of results to be returned.
|
|
715
|
+
# @param [String] start_time
|
|
716
|
+
# If specified, return only messages with timestamps >= start_time. The default
|
|
717
|
+
# is the job creation time (i.e. beginning of messages).
|
|
718
|
+
# @param [String] end_time
|
|
719
|
+
# Return only messages with timestamps < end_time. The default is now (i.e.
|
|
720
|
+
# return up to the latest messages available).
|
|
721
|
+
# @param [String] fields
|
|
722
|
+
# Selector specifying which fields to include in a partial response.
|
|
723
|
+
# @param [String] quota_user
|
|
724
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
725
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
726
|
+
# @param [Google::Apis::RequestOptions] options
|
|
727
|
+
# Request-specific options
|
|
728
|
+
#
|
|
729
|
+
# @yield [result, err] Result & error if block supplied
|
|
730
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::ListJobMessagesResponse] parsed result object
|
|
731
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
732
|
+
#
|
|
733
|
+
# @return [Google::Apis::DataflowV1b3::ListJobMessagesResponse]
|
|
734
|
+
#
|
|
735
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
736
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
737
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
738
|
+
def list_project_location_job_messages(project_id, location, job_id, minimum_importance: nil, page_size: nil, page_token: nil, start_time: nil, end_time: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
739
|
+
command = make_simple_command(:get, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages', options)
|
|
740
|
+
command.response_representation = Google::Apis::DataflowV1b3::ListJobMessagesResponse::Representation
|
|
741
|
+
command.response_class = Google::Apis::DataflowV1b3::ListJobMessagesResponse
|
|
742
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
743
|
+
command.params['location'] = location unless location.nil?
|
|
744
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
745
|
+
command.query['minimumImportance'] = minimum_importance unless minimum_importance.nil?
|
|
746
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
747
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
748
|
+
command.query['startTime'] = start_time unless start_time.nil?
|
|
749
|
+
command.query['endTime'] = end_time unless end_time.nil?
|
|
750
|
+
command.query['fields'] = fields unless fields.nil?
|
|
751
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
752
|
+
execute_or_queue_command(command, &block)
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
# Reports the status of dataflow WorkItems leased by a worker.
|
|
756
|
+
# @param [String] project_id
|
|
757
|
+
# The project which owns the WorkItem's job.
|
|
758
|
+
# @param [String] location
|
|
759
|
+
# The location which contains the WorkItem's job.
|
|
760
|
+
# @param [String] job_id
|
|
761
|
+
# The job which the WorkItem is part of.
|
|
762
|
+
# @param [Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest] report_work_item_status_request_object
|
|
763
|
+
# @param [String] fields
|
|
764
|
+
# Selector specifying which fields to include in a partial response.
|
|
765
|
+
# @param [String] quota_user
|
|
766
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
767
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
768
|
+
# @param [Google::Apis::RequestOptions] options
|
|
769
|
+
# Request-specific options
|
|
770
|
+
#
|
|
771
|
+
# @yield [result, err] Result & error if block supplied
|
|
772
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse] parsed result object
|
|
773
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
774
|
+
#
|
|
775
|
+
# @return [Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse]
|
|
776
|
+
#
|
|
777
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
778
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
779
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
780
|
+
def report_project_location_job_work_item_status(project_id, location, job_id, report_work_item_status_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
781
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus', options)
|
|
782
|
+
command.request_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusRequest::Representation
|
|
783
|
+
command.request_object = report_work_item_status_request_object
|
|
784
|
+
command.response_representation = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse::Representation
|
|
785
|
+
command.response_class = Google::Apis::DataflowV1b3::ReportWorkItemStatusResponse
|
|
786
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
787
|
+
command.params['location'] = location unless location.nil?
|
|
788
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
789
|
+
command.query['fields'] = fields unless fields.nil?
|
|
790
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
791
|
+
execute_or_queue_command(command, &block)
|
|
792
|
+
end
|
|
793
|
+
|
|
794
|
+
# Leases a dataflow WorkItem to run.
|
|
795
|
+
# @param [String] project_id
|
|
796
|
+
# Identifies the project this worker belongs to.
|
|
797
|
+
# @param [String] location
|
|
798
|
+
# The location which contains the WorkItem's job.
|
|
799
|
+
# @param [String] job_id
|
|
800
|
+
# Identifies the workflow job this worker belongs to.
|
|
801
|
+
# @param [Google::Apis::DataflowV1b3::LeaseWorkItemRequest] lease_work_item_request_object
|
|
802
|
+
# @param [String] fields
|
|
803
|
+
# Selector specifying which fields to include in a partial response.
|
|
804
|
+
# @param [String] quota_user
|
|
805
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
806
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
807
|
+
# @param [Google::Apis::RequestOptions] options
|
|
808
|
+
# Request-specific options
|
|
809
|
+
#
|
|
810
|
+
# @yield [result, err] Result & error if block supplied
|
|
811
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::LeaseWorkItemResponse] parsed result object
|
|
812
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
813
|
+
#
|
|
814
|
+
# @return [Google::Apis::DataflowV1b3::LeaseWorkItemResponse]
|
|
815
|
+
#
|
|
816
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
817
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
818
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
819
|
+
def lease_project_location_work_item(project_id, location, job_id, lease_work_item_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
820
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease', options)
|
|
821
|
+
command.request_representation = Google::Apis::DataflowV1b3::LeaseWorkItemRequest::Representation
|
|
822
|
+
command.request_object = lease_work_item_request_object
|
|
823
|
+
command.response_representation = Google::Apis::DataflowV1b3::LeaseWorkItemResponse::Representation
|
|
824
|
+
command.response_class = Google::Apis::DataflowV1b3::LeaseWorkItemResponse
|
|
825
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
826
|
+
command.params['location'] = location unless location.nil?
|
|
827
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
828
|
+
command.query['fields'] = fields unless fields.nil?
|
|
829
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
830
|
+
execute_or_queue_command(command, &block)
|
|
831
|
+
end
|
|
832
|
+
|
|
833
|
+
# Creates a dataflow job from a template.
|
|
834
|
+
# @param [String] project_id
|
|
835
|
+
# The project which owns the job.
|
|
836
|
+
# @param [Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest] create_job_from_template_request_object
|
|
837
|
+
# @param [String] fields
|
|
838
|
+
# Selector specifying which fields to include in a partial response.
|
|
839
|
+
# @param [String] quota_user
|
|
840
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
841
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
842
|
+
# @param [Google::Apis::RequestOptions] options
|
|
843
|
+
# Request-specific options
|
|
844
|
+
#
|
|
845
|
+
# @yield [result, err] Result & error if block supplied
|
|
846
|
+
# @yieldparam result [Google::Apis::DataflowV1b3::Job] parsed result object
|
|
847
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
848
|
+
#
|
|
849
|
+
# @return [Google::Apis::DataflowV1b3::Job]
|
|
850
|
+
#
|
|
851
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
852
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
853
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
854
|
+
def create_job_from_template(project_id, create_job_from_template_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
855
|
+
command = make_simple_command(:post, 'v1b3/projects/{projectId}/templates', options)
|
|
856
|
+
command.request_representation = Google::Apis::DataflowV1b3::CreateJobFromTemplateRequest::Representation
|
|
857
|
+
command.request_object = create_job_from_template_request_object
|
|
858
|
+
command.response_representation = Google::Apis::DataflowV1b3::Job::Representation
|
|
859
|
+
command.response_class = Google::Apis::DataflowV1b3::Job
|
|
860
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
861
|
+
command.query['fields'] = fields unless fields.nil?
|
|
862
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
863
|
+
execute_or_queue_command(command, &block)
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
protected
|
|
867
|
+
|
|
868
|
+
def apply_command_defaults(command)
|
|
869
|
+
command.query['key'] = key unless key.nil?
|
|
870
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
871
|
+
end
|
|
872
|
+
end
|
|
873
|
+
end
|
|
874
|
+
end
|
|
875
|
+
end
|