google-api-client 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
- data/generated/google/apis/admin_directory_v1/service.rb +4 -1
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
- data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
- data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +747 -747
- data/generated/google/apis/appengine_v1/representations.rb +158 -158
- data/generated/google/apis/appengine_v1/service.rb +214 -214
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- 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 +6 -0
- data/generated/google/apis/bigquery_v2/representations.rb +2 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +7 -7
- data/generated/google/apis/classroom_v1/classes.rb +517 -515
- data/generated/google/apis/classroom_v1/representations.rb +147 -147
- data/generated/google/apis/classroom_v1/service.rb +1144 -1143
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
- data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
- data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
- data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
- data/generated/google/apis/cloudkms_v1/service.rb +276 -276
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +82 -6
- data/generated/google/apis/compute_beta/representations.rb +4 -0
- data/generated/google/apis/compute_beta/service.rb +1177 -834
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +371 -1
- data/generated/google/apis/compute_v1/representations.rb +139 -0
- data/generated/google/apis/compute_v1/service.rb +257 -9
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1122 -826
- data/generated/google/apis/container_v1/representations.rb +279 -135
- data/generated/google/apis/container_v1/service.rb +440 -98
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/customsearch_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
- data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
- data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +450 -431
- data/generated/google/apis/dataproc_v1/representations.rb +92 -92
- data/generated/google/apis/dataproc_v1/service.rb +200 -200
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +397 -397
- data/generated/google/apis/datastore_v1/representations.rb +100 -100
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
- data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
- data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
- data/generated/google/apis/firebaserules_v1/service.rb +151 -151
- 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 +9 -9
- data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
- data/generated/google/apis/genomics_v1/representations.rb +306 -306
- data/generated/google/apis/genomics_v1/service.rb +1172 -1172
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +243 -243
- data/generated/google/apis/iam_v1/representations.rb +79 -79
- data/generated/google/apis/iam_v1/service.rb +137 -137
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +451 -451
- data/generated/google/apis/language_v1/representations.rb +103 -103
- data/generated/google/apis/language_v1/service.rb +49 -49
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +459 -459
- data/generated/google/apis/language_v1beta1/representations.rb +110 -110
- data/generated/google/apis/language_v1beta1/service.rb +43 -43
- data/generated/google/apis/logging_v2.rb +8 -8
- data/generated/google/apis/logging_v2/classes.rb +915 -915
- data/generated/google/apis/logging_v2/representations.rb +142 -142
- data/generated/google/apis/logging_v2/service.rb +415 -415
- data/generated/google/apis/logging_v2beta1.rb +8 -8
- data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
- data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
- data/generated/google/apis/logging_v2beta1/service.rb +221 -221
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
- data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
- data/generated/google/apis/manufacturers_v1/service.rb +101 -4
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +709 -673
- data/generated/google/apis/ml_v1/representations.rb +154 -151
- data/generated/google/apis/ml_v1/service.rb +341 -354
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +869 -869
- data/generated/google/apis/monitoring_v3/representations.rb +171 -171
- data/generated/google/apis/monitoring_v3/service.rb +340 -340
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1569 -1569
- data/generated/google/apis/partners_v2/representations.rb +256 -256
- data/generated/google/apis/partners_v2/service.rb +530 -530
- data/generated/google/apis/people_v1.rb +7 -7
- data/generated/google/apis/people_v1/classes.rb +1287 -946
- data/generated/google/apis/people_v1/representations.rb +355 -203
- data/generated/google/apis/people_v1/service.rb +409 -32
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +286 -287
- data/generated/google/apis/pubsub_v1/representations.rb +80 -80
- data/generated/google/apis/pubsub_v1/service.rb +178 -178
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
- data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/script_v1.rb +4 -4
- data/generated/google/apis/script_v1/classes.rb +172 -172
- data/generated/google/apis/script_v1/representations.rb +41 -41
- data/generated/google/apis/script_v1/service.rb +6 -6
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
- data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
- data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
- data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
- data/generated/google/apis/servicemanagement_v1.rb +6 -6
- data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
- data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
- data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
- data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
- data/generated/google/apis/serviceuser_v1/service.rb +59 -59
- data/generated/google/apis/sheets_v4.rb +5 -5
- data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
- data/generated/google/apis/sheets_v4/representations.rb +957 -940
- data/generated/google/apis/sheets_v4/service.rb +175 -175
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2932 -2905
- data/generated/google/apis/slides_v1/representations.rb +709 -694
- data/generated/google/apis/slides_v1/service.rb +50 -50
- data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
- data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
- data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
- data/generated/google/apis/spanner_v1.rb +7 -1
- data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
- data/generated/google/apis/spanner_v1/representations.rb +342 -323
- data/generated/google/apis/spanner_v1/service.rb +502 -492
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
- data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
- data/generated/google/apis/speech_v1beta1/service.rb +91 -91
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
- data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
- data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
- data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
- data/generated/google/apis/translate_v2/classes.rb +107 -107
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +81 -81
- data/generated/google/apis/vision_v1.rb +4 -1
- data/generated/google/apis/vision_v1/classes.rb +527 -527
- data/generated/google/apis/vision_v1/representations.rb +115 -115
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
- data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
- data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/analytics.rb +2 -2
- metadata +2 -2
@@ -22,7 +22,25 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DataprocV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class Operation
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
|
28
|
+
include Google::Apis::Core::JsonObjectSupport
|
29
|
+
end
|
30
|
+
|
31
|
+
class JobReference
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
37
|
+
class SubmitJobRequest
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
|
40
|
+
include Google::Apis::Core::JsonObjectSupport
|
41
|
+
end
|
42
|
+
|
43
|
+
class Status
|
26
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
45
|
|
28
46
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -34,7 +52,7 @@ module Google
|
|
34
52
|
include Google::Apis::Core::JsonObjectSupport
|
35
53
|
end
|
36
54
|
|
37
|
-
class
|
55
|
+
class JobScheduling
|
38
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
57
|
|
40
58
|
include Google::Apis::Core::JsonObjectSupport
|
@@ -46,6 +64,12 @@ module Google
|
|
46
64
|
include Google::Apis::Core::JsonObjectSupport
|
47
65
|
end
|
48
66
|
|
67
|
+
class ListJobsResponse
|
68
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
|
+
|
70
|
+
include Google::Apis::Core::JsonObjectSupport
|
71
|
+
end
|
72
|
+
|
49
73
|
class CancelJobRequest
|
50
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
75
|
|
@@ -221,33 +245,39 @@ module Google
|
|
221
245
|
end
|
222
246
|
|
223
247
|
class Operation
|
224
|
-
|
248
|
+
# @private
|
249
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
250
|
+
property :name, as: 'name'
|
251
|
+
property :error, as: 'error', class: Google::Apis::DataprocV1::Status, decorator: Google::Apis::DataprocV1::Status::Representation
|
225
252
|
|
226
|
-
|
253
|
+
hash :metadata, as: 'metadata'
|
254
|
+
property :done, as: 'done'
|
255
|
+
hash :response, as: 'response'
|
256
|
+
end
|
227
257
|
end
|
228
258
|
|
229
259
|
class JobReference
|
230
|
-
|
231
|
-
|
232
|
-
|
260
|
+
# @private
|
261
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
262
|
+
property :job_id, as: 'jobId'
|
263
|
+
property :project_id, as: 'projectId'
|
264
|
+
end
|
233
265
|
end
|
234
266
|
|
235
267
|
class SubmitJobRequest
|
236
|
-
|
268
|
+
# @private
|
269
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
270
|
+
property :job, as: 'job', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
|
237
271
|
|
238
|
-
|
272
|
+
end
|
239
273
|
end
|
240
274
|
|
241
275
|
class Status
|
242
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
243
|
-
|
244
|
-
include Google::Apis::Core::JsonObjectSupport
|
245
|
-
end
|
246
|
-
|
247
|
-
class JobScheduling
|
248
276
|
# @private
|
249
277
|
class Representation < Google::Apis::Core::JsonRepresentation
|
250
|
-
property :
|
278
|
+
property :code, as: 'code'
|
279
|
+
property :message, as: 'message'
|
280
|
+
collection :details, as: 'details'
|
251
281
|
end
|
252
282
|
end
|
253
283
|
|
@@ -268,12 +298,10 @@ module Google
|
|
268
298
|
end
|
269
299
|
end
|
270
300
|
|
271
|
-
class
|
301
|
+
class JobScheduling
|
272
302
|
# @private
|
273
303
|
class Representation < Google::Apis::Core::JsonRepresentation
|
274
|
-
property :
|
275
|
-
collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
|
276
|
-
|
304
|
+
property :max_failures_per_hour, as: 'maxFailuresPerHour'
|
277
305
|
end
|
278
306
|
end
|
279
307
|
|
@@ -285,6 +313,15 @@ module Google
|
|
285
313
|
end
|
286
314
|
end
|
287
315
|
|
316
|
+
class ListJobsResponse
|
317
|
+
# @private
|
318
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
319
|
+
collection :jobs, as: 'jobs', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
|
320
|
+
|
321
|
+
property :next_page_token, as: 'nextPageToken'
|
322
|
+
end
|
323
|
+
end
|
324
|
+
|
288
325
|
class CancelJobRequest
|
289
326
|
# @private
|
290
327
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -294,9 +331,9 @@ module Google
|
|
294
331
|
class SparkSqlJob
|
295
332
|
# @private
|
296
333
|
class Representation < Google::Apis::Core::JsonRepresentation
|
334
|
+
property :query_file_uri, as: 'queryFileUri'
|
297
335
|
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
298
336
|
|
299
|
-
property :query_file_uri, as: 'queryFileUri'
|
300
337
|
hash :script_variables, as: 'scriptVariables'
|
301
338
|
collection :jar_file_uris, as: 'jarFileUris'
|
302
339
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
@@ -309,16 +346,16 @@ module Google
|
|
309
346
|
# @private
|
310
347
|
class Representation < Google::Apis::Core::JsonRepresentation
|
311
348
|
hash :labels, as: 'labels'
|
312
|
-
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
313
|
-
|
314
349
|
property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation
|
315
350
|
|
351
|
+
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
352
|
+
|
316
353
|
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
317
354
|
|
318
355
|
property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation
|
319
356
|
|
320
|
-
property :cluster_name, as: 'clusterName'
|
321
357
|
property :cluster_uuid, as: 'clusterUuid'
|
358
|
+
property :cluster_name, as: 'clusterName'
|
322
359
|
property :project_id, as: 'projectId'
|
323
360
|
end
|
324
361
|
end
|
@@ -326,9 +363,9 @@ module Google
|
|
326
363
|
class ListOperationsResponse
|
327
364
|
# @private
|
328
365
|
class Representation < Google::Apis::Core::JsonRepresentation
|
329
|
-
property :next_page_token, as: 'nextPageToken'
|
330
366
|
collection :operations, as: 'operations', class: Google::Apis::DataprocV1::Operation, decorator: Google::Apis::DataprocV1::Operation::Representation
|
331
367
|
|
368
|
+
property :next_page_token, as: 'nextPageToken'
|
332
369
|
end
|
333
370
|
end
|
334
371
|
|
@@ -361,15 +398,15 @@ module Google
|
|
361
398
|
class PigJob
|
362
399
|
# @private
|
363
400
|
class Representation < Google::Apis::Core::JsonRepresentation
|
401
|
+
property :continue_on_failure, as: 'continueOnFailure'
|
402
|
+
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
403
|
+
|
404
|
+
property :query_file_uri, as: 'queryFileUri'
|
364
405
|
collection :jar_file_uris, as: 'jarFileUris'
|
365
406
|
hash :script_variables, as: 'scriptVariables'
|
366
407
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
367
408
|
|
368
409
|
hash :properties, as: 'properties'
|
369
|
-
property :continue_on_failure, as: 'continueOnFailure'
|
370
|
-
property :query_file_uri, as: 'queryFileUri'
|
371
|
-
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
372
|
-
|
373
410
|
end
|
374
411
|
end
|
375
412
|
|
@@ -385,6 +422,16 @@ module Google
|
|
385
422
|
class Job
|
386
423
|
# @private
|
387
424
|
class Representation < Google::Apis::Core::JsonRepresentation
|
425
|
+
property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation
|
426
|
+
|
427
|
+
hash :labels, as: 'labels'
|
428
|
+
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
|
429
|
+
property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation
|
430
|
+
|
431
|
+
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
432
|
+
|
433
|
+
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
|
434
|
+
|
388
435
|
collection :yarn_applications, as: 'yarnApplications', class: Google::Apis::DataprocV1::YarnApplication, decorator: Google::Apis::DataprocV1::YarnApplication::Representation
|
389
436
|
|
390
437
|
property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1::PySparkJob, decorator: Google::Apis::DataprocV1::PySparkJob::Representation
|
@@ -402,24 +449,12 @@ module Google
|
|
402
449
|
|
403
450
|
property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation
|
404
451
|
|
405
|
-
property :hive_job, as: 'hiveJob', class: Google::Apis::DataprocV1::HiveJob, decorator: Google::Apis::DataprocV1::HiveJob::Representation
|
406
|
-
|
407
|
-
hash :labels, as: 'labels'
|
408
|
-
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
|
409
|
-
property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation
|
410
|
-
|
411
|
-
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
412
|
-
|
413
|
-
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
|
414
|
-
|
415
452
|
end
|
416
453
|
end
|
417
454
|
|
418
455
|
class SparkJob
|
419
456
|
# @private
|
420
457
|
class Representation < Google::Apis::Core::JsonRepresentation
|
421
|
-
collection :args, as: 'args'
|
422
|
-
collection :file_uris, as: 'fileUris'
|
423
458
|
property :main_class, as: 'mainClass'
|
424
459
|
collection :archive_uris, as: 'archiveUris'
|
425
460
|
property :main_jar_file_uri, as: 'mainJarFileUri'
|
@@ -427,16 +462,18 @@ module Google
|
|
427
462
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
428
463
|
|
429
464
|
hash :properties, as: 'properties'
|
465
|
+
collection :args, as: 'args'
|
466
|
+
collection :file_uris, as: 'fileUris'
|
430
467
|
end
|
431
468
|
end
|
432
469
|
|
433
470
|
class JobStatus
|
434
471
|
# @private
|
435
472
|
class Representation < Google::Apis::Core::JsonRepresentation
|
436
|
-
property :substate, as: 'substate'
|
437
|
-
property :state_start_time, as: 'stateStartTime'
|
438
473
|
property :details, as: 'details'
|
439
474
|
property :state, as: 'state'
|
475
|
+
property :substate, as: 'substate'
|
476
|
+
property :state_start_time, as: 'stateStartTime'
|
440
477
|
end
|
441
478
|
end
|
442
479
|
|
@@ -461,7 +498,6 @@ module Google
|
|
461
498
|
class HadoopJob
|
462
499
|
# @private
|
463
500
|
class Representation < Google::Apis::Core::JsonRepresentation
|
464
|
-
property :main_jar_file_uri, as: 'mainJarFileUri'
|
465
501
|
collection :jar_file_uris, as: 'jarFileUris'
|
466
502
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
467
503
|
|
@@ -470,6 +506,7 @@ module Google
|
|
470
506
|
collection :file_uris, as: 'fileUris'
|
471
507
|
property :main_class, as: 'mainClass'
|
472
508
|
collection :archive_uris, as: 'archiveUris'
|
509
|
+
property :main_jar_file_uri, as: 'mainJarFileUri'
|
473
510
|
end
|
474
511
|
end
|
475
512
|
|
@@ -483,10 +520,10 @@ module Google
|
|
483
520
|
class YarnApplication
|
484
521
|
# @private
|
485
522
|
class Representation < Google::Apis::Core::JsonRepresentation
|
486
|
-
property :tracking_url, as: 'trackingUrl'
|
487
|
-
property :progress, as: 'progress'
|
488
523
|
property :state, as: 'state'
|
489
524
|
property :name, as: 'name'
|
525
|
+
property :tracking_url, as: 'trackingUrl'
|
526
|
+
property :progress, as: 'progress'
|
490
527
|
end
|
491
528
|
end
|
492
529
|
|
@@ -499,15 +536,14 @@ module Google
|
|
499
536
|
class DiskConfig
|
500
537
|
# @private
|
501
538
|
class Representation < Google::Apis::Core::JsonRepresentation
|
502
|
-
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
503
539
|
property :num_local_ssds, as: 'numLocalSsds'
|
540
|
+
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
504
541
|
end
|
505
542
|
end
|
506
543
|
|
507
544
|
class ClusterOperationMetadata
|
508
545
|
# @private
|
509
546
|
class Representation < Google::Apis::Core::JsonRepresentation
|
510
|
-
hash :labels, as: 'labels'
|
511
547
|
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
512
548
|
|
513
549
|
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
@@ -517,14 +553,15 @@ module Google
|
|
517
553
|
property :operation_type, as: 'operationType'
|
518
554
|
property :description, as: 'description'
|
519
555
|
collection :warnings, as: 'warnings'
|
556
|
+
hash :labels, as: 'labels'
|
520
557
|
end
|
521
558
|
end
|
522
559
|
|
523
560
|
class HiveJob
|
524
561
|
# @private
|
525
562
|
class Representation < Google::Apis::Core::JsonRepresentation
|
526
|
-
hash :script_variables, as: 'scriptVariables'
|
527
563
|
collection :jar_file_uris, as: 'jarFileUris'
|
564
|
+
hash :script_variables, as: 'scriptVariables'
|
528
565
|
hash :properties, as: 'properties'
|
529
566
|
property :continue_on_failure, as: 'continueOnFailure'
|
530
567
|
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
@@ -549,6 +586,10 @@ module Google
|
|
549
586
|
class ClusterConfig
|
550
587
|
# @private
|
551
588
|
class Representation < Google::Apis::Core::JsonRepresentation
|
589
|
+
property :master_config, as: 'masterConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
590
|
+
|
591
|
+
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
592
|
+
|
552
593
|
collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation
|
553
594
|
|
554
595
|
property :config_bucket, as: 'configBucket'
|
@@ -558,10 +599,6 @@ module Google
|
|
558
599
|
|
559
600
|
property :software_config, as: 'softwareConfig', class: Google::Apis::DataprocV1::SoftwareConfig, decorator: Google::Apis::DataprocV1::SoftwareConfig::Representation
|
560
601
|
|
561
|
-
property :master_config, as: 'masterConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
562
|
-
|
563
|
-
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
564
|
-
|
565
602
|
end
|
566
603
|
end
|
567
604
|
|
@@ -597,16 +634,16 @@ module Google
|
|
597
634
|
class ClusterMetrics
|
598
635
|
# @private
|
599
636
|
class Representation < Google::Apis::Core::JsonRepresentation
|
600
|
-
hash :yarn_metrics, as: 'yarnMetrics'
|
601
637
|
hash :hdfs_metrics, as: 'hdfsMetrics'
|
638
|
+
hash :yarn_metrics, as: 'yarnMetrics'
|
602
639
|
end
|
603
640
|
end
|
604
641
|
|
605
642
|
class AcceleratorConfig
|
606
643
|
# @private
|
607
644
|
class Representation < Google::Apis::Core::JsonRepresentation
|
608
|
-
property :accelerator_type_uri, as: 'acceleratorTypeUri'
|
609
645
|
property :accelerator_count, as: 'acceleratorCount'
|
646
|
+
property :accelerator_type_uri, as: 'acceleratorTypeUri'
|
610
647
|
end
|
611
648
|
end
|
612
649
|
|
@@ -616,43 +653,6 @@ module Google
|
|
616
653
|
hash :driver_log_levels, as: 'driverLogLevels'
|
617
654
|
end
|
618
655
|
end
|
619
|
-
|
620
|
-
class Operation
|
621
|
-
# @private
|
622
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
623
|
-
property :done, as: 'done'
|
624
|
-
hash :response, as: 'response'
|
625
|
-
property :name, as: 'name'
|
626
|
-
property :error, as: 'error', class: Google::Apis::DataprocV1::Status, decorator: Google::Apis::DataprocV1::Status::Representation
|
627
|
-
|
628
|
-
hash :metadata, as: 'metadata'
|
629
|
-
end
|
630
|
-
end
|
631
|
-
|
632
|
-
class JobReference
|
633
|
-
# @private
|
634
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
635
|
-
property :job_id, as: 'jobId'
|
636
|
-
property :project_id, as: 'projectId'
|
637
|
-
end
|
638
|
-
end
|
639
|
-
|
640
|
-
class SubmitJobRequest
|
641
|
-
# @private
|
642
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
643
|
-
property :job, as: 'job', class: Google::Apis::DataprocV1::Job, decorator: Google::Apis::DataprocV1::Job::Representation
|
644
|
-
|
645
|
-
end
|
646
|
-
end
|
647
|
-
|
648
|
-
class Status
|
649
|
-
# @private
|
650
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
651
|
-
collection :details, as: 'details'
|
652
|
-
property :code, as: 'code'
|
653
|
-
property :message, as: 'message'
|
654
|
-
end
|
655
|
-
end
|
656
656
|
end
|
657
657
|
end
|
658
658
|
end
|
@@ -47,6 +47,43 @@ module Google
|
|
47
47
|
@batch_path = 'batch'
|
48
48
|
end
|
49
49
|
|
50
|
+
# Creates a cluster in a project.
|
51
|
+
# @param [String] project_id
|
52
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
53
|
+
# to.
|
54
|
+
# @param [String] region
|
55
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
56
|
+
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
57
|
+
# @param [String] fields
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
59
|
+
# @param [String] quota_user
|
60
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
61
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
62
|
+
# @param [Google::Apis::RequestOptions] options
|
63
|
+
# Request-specific options
|
64
|
+
#
|
65
|
+
# @yield [result, err] Result & error if block supplied
|
66
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
67
|
+
# @yieldparam err [StandardError] error object if request failed
|
68
|
+
#
|
69
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
70
|
+
#
|
71
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
+
def create_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
76
|
+
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
77
|
+
command.request_object = cluster_object
|
78
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
79
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
80
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
81
|
+
command.params['region'] = region unless region.nil?
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
50
87
|
# Gets the resource representation for a cluster in a project.
|
51
88
|
# @param [String] project_id
|
52
89
|
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
@@ -55,11 +92,11 @@ module Google
|
|
55
92
|
# Required. The Cloud Dataproc region in which to handle the request.
|
56
93
|
# @param [String] cluster_name
|
57
94
|
# Required. The cluster name.
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
58
97
|
# @param [String] quota_user
|
59
98
|
# Available to use for quota purposes for server-side applications. Can be any
|
60
99
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
61
|
-
# @param [String] fields
|
62
|
-
# Selector specifying which fields to include in a partial response.
|
63
100
|
# @param [Google::Apis::RequestOptions] options
|
64
101
|
# Request-specific options
|
65
102
|
#
|
@@ -72,15 +109,15 @@ module Google
|
|
72
109
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
110
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
111
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
-
def get_cluster(project_id, region, cluster_name,
|
112
|
+
def get_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
76
113
|
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
77
114
|
command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
|
78
115
|
command.response_class = Google::Apis::DataprocV1::Cluster
|
79
116
|
command.params['projectId'] = project_id unless project_id.nil?
|
80
117
|
command.params['region'] = region unless region.nil?
|
81
118
|
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
82
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
83
119
|
command.query['fields'] = fields unless fields.nil?
|
120
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
121
|
execute_or_queue_command(command, &block)
|
85
122
|
end
|
86
123
|
|
@@ -121,11 +158,11 @@ module Google
|
|
121
158
|
# num_instances</em></strong></td> <td>Resize primary worker group</td> </tr>
|
122
159
|
# <tr> <td><strong><em>config.secondary_worker_config.num_instances</em></
|
123
160
|
# strong></td> <td>Resize secondary worker group</td> </tr> </tbody> </table>
|
161
|
+
# @param [String] fields
|
162
|
+
# Selector specifying which fields to include in a partial response.
|
124
163
|
# @param [String] quota_user
|
125
164
|
# Available to use for quota purposes for server-side applications. Can be any
|
126
165
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
127
|
-
# @param [String] fields
|
128
|
-
# Selector specifying which fields to include in a partial response.
|
129
166
|
# @param [Google::Apis::RequestOptions] options
|
130
167
|
# Request-specific options
|
131
168
|
#
|
@@ -138,7 +175,7 @@ module Google
|
|
138
175
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
139
176
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
140
177
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
141
|
-
def patch_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil,
|
178
|
+
def patch_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
142
179
|
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
143
180
|
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
144
181
|
command.request_object = cluster_object
|
@@ -148,8 +185,8 @@ module Google
|
|
148
185
|
command.params['region'] = region unless region.nil?
|
149
186
|
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
150
187
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
151
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
152
188
|
command.query['fields'] = fields unless fields.nil?
|
189
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
153
190
|
execute_or_queue_command(command, &block)
|
154
191
|
end
|
155
192
|
|
@@ -163,11 +200,11 @@ module Google
|
|
163
200
|
# @param [String] cluster_name
|
164
201
|
# Required. The cluster name.
|
165
202
|
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
|
203
|
+
# @param [String] fields
|
204
|
+
# Selector specifying which fields to include in a partial response.
|
166
205
|
# @param [String] quota_user
|
167
206
|
# Available to use for quota purposes for server-side applications. Can be any
|
168
207
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
169
|
-
# @param [String] fields
|
170
|
-
# Selector specifying which fields to include in a partial response.
|
171
208
|
# @param [Google::Apis::RequestOptions] options
|
172
209
|
# Request-specific options
|
173
210
|
#
|
@@ -180,7 +217,7 @@ module Google
|
|
180
217
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
181
218
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
182
219
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
183
|
-
def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil,
|
220
|
+
def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
184
221
|
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
|
185
222
|
command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
|
186
223
|
command.request_object = diagnose_cluster_request_object
|
@@ -189,8 +226,8 @@ module Google
|
|
189
226
|
command.params['projectId'] = project_id unless project_id.nil?
|
190
227
|
command.params['region'] = region unless region.nil?
|
191
228
|
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
192
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
193
229
|
command.query['fields'] = fields unless fields.nil?
|
230
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
194
231
|
execute_or_queue_command(command, &block)
|
195
232
|
end
|
196
233
|
|
@@ -202,11 +239,11 @@ module Google
|
|
202
239
|
# Required. The Cloud Dataproc region in which to handle the request.
|
203
240
|
# @param [String] cluster_name
|
204
241
|
# Required. The cluster name.
|
242
|
+
# @param [String] fields
|
243
|
+
# Selector specifying which fields to include in a partial response.
|
205
244
|
# @param [String] quota_user
|
206
245
|
# Available to use for quota purposes for server-side applications. Can be any
|
207
246
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
208
|
-
# @param [String] fields
|
209
|
-
# Selector specifying which fields to include in a partial response.
|
210
247
|
# @param [Google::Apis::RequestOptions] options
|
211
248
|
# Request-specific options
|
212
249
|
#
|
@@ -219,15 +256,15 @@ module Google
|
|
219
256
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
220
257
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
221
258
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
222
|
-
def delete_cluster(project_id, region, cluster_name,
|
259
|
+
def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
223
260
|
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
224
261
|
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
225
262
|
command.response_class = Google::Apis::DataprocV1::Operation
|
226
263
|
command.params['projectId'] = project_id unless project_id.nil?
|
227
264
|
command.params['region'] = region unless region.nil?
|
228
265
|
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
229
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
230
266
|
command.query['fields'] = fields unless fields.nil?
|
267
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
231
268
|
execute_or_queue_command(command, &block)
|
232
269
|
end
|
233
270
|
|
@@ -237,6 +274,8 @@ module Google
|
|
237
274
|
# to.
|
238
275
|
# @param [String] region
|
239
276
|
# Required. The Cloud Dataproc region in which to handle the request.
|
277
|
+
# @param [String] page_token
|
278
|
+
# Optional. The standard List page token.
|
240
279
|
# @param [Fixnum] page_size
|
241
280
|
# Optional. The standard List page size.
|
242
281
|
# @param [String] filter
|
@@ -251,13 +290,11 @@ module Google
|
|
251
290
|
# separated items are treated as having an implicit AND operator.Example filter:
|
252
291
|
# status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND
|
253
292
|
# labels.starred = *
|
254
|
-
# @param [String]
|
255
|
-
#
|
293
|
+
# @param [String] fields
|
294
|
+
# Selector specifying which fields to include in a partial response.
|
256
295
|
# @param [String] quota_user
|
257
296
|
# Available to use for quota purposes for server-side applications. Can be any
|
258
297
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
259
|
-
# @param [String] fields
|
260
|
-
# Selector specifying which fields to include in a partial response.
|
261
298
|
# @param [Google::Apis::RequestOptions] options
|
262
299
|
# Request-specific options
|
263
300
|
#
|
@@ -270,124 +307,17 @@ module Google
|
|
270
307
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
271
308
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
272
309
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
273
|
-
def list_clusters(project_id, region,
|
310
|
+
def list_clusters(project_id, region, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
|
274
311
|
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
275
312
|
command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation
|
276
313
|
command.response_class = Google::Apis::DataprocV1::ListClustersResponse
|
277
314
|
command.params['projectId'] = project_id unless project_id.nil?
|
278
315
|
command.params['region'] = region unless region.nil?
|
316
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
279
317
|
command.query['pageSize'] = page_size unless page_size.nil?
|
280
318
|
command.query['filter'] = filter unless filter.nil?
|
281
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
282
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
283
|
-
command.query['fields'] = fields unless fields.nil?
|
284
|
-
execute_or_queue_command(command, &block)
|
285
|
-
end
|
286
|
-
|
287
|
-
# Creates a cluster in a project.
|
288
|
-
# @param [String] project_id
|
289
|
-
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
290
|
-
# to.
|
291
|
-
# @param [String] region
|
292
|
-
# Required. The Cloud Dataproc region in which to handle the request.
|
293
|
-
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
294
|
-
# @param [String] quota_user
|
295
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
296
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
297
|
-
# @param [String] fields
|
298
|
-
# Selector specifying which fields to include in a partial response.
|
299
|
-
# @param [Google::Apis::RequestOptions] options
|
300
|
-
# Request-specific options
|
301
|
-
#
|
302
|
-
# @yield [result, err] Result & error if block supplied
|
303
|
-
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
304
|
-
# @yieldparam err [StandardError] error object if request failed
|
305
|
-
#
|
306
|
-
# @return [Google::Apis::DataprocV1::Operation]
|
307
|
-
#
|
308
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
309
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
310
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
311
|
-
def create_cluster(project_id, region, cluster_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
312
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
313
|
-
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
314
|
-
command.request_object = cluster_object
|
315
|
-
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
316
|
-
command.response_class = Google::Apis::DataprocV1::Operation
|
317
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
318
|
-
command.params['region'] = region unless region.nil?
|
319
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
320
|
-
command.query['fields'] = fields unless fields.nil?
|
321
|
-
execute_or_queue_command(command, &block)
|
322
|
-
end
|
323
|
-
|
324
|
-
# Starts asynchronous cancellation on a long-running operation. The server makes
|
325
|
-
# a best effort to cancel the operation, but success is not guaranteed. If the
|
326
|
-
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
327
|
-
# Clients can use Operations.GetOperation or other methods to check whether the
|
328
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
329
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
330
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
331
|
-
# corresponding to Code.CANCELLED.
|
332
|
-
# @param [String] name
|
333
|
-
# The name of the operation resource to be cancelled.
|
334
|
-
# @param [String] quota_user
|
335
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
336
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
337
|
-
# @param [String] fields
|
338
|
-
# Selector specifying which fields to include in a partial response.
|
339
|
-
# @param [Google::Apis::RequestOptions] options
|
340
|
-
# Request-specific options
|
341
|
-
#
|
342
|
-
# @yield [result, err] Result & error if block supplied
|
343
|
-
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
344
|
-
# @yieldparam err [StandardError] error object if request failed
|
345
|
-
#
|
346
|
-
# @return [Google::Apis::DataprocV1::Empty]
|
347
|
-
#
|
348
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
349
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
350
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
351
|
-
def cancel_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
352
|
-
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
353
|
-
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
354
|
-
command.response_class = Google::Apis::DataprocV1::Empty
|
355
|
-
command.params['name'] = name unless name.nil?
|
356
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
357
319
|
command.query['fields'] = fields unless fields.nil?
|
358
|
-
execute_or_queue_command(command, &block)
|
359
|
-
end
|
360
|
-
|
361
|
-
# Deletes a long-running operation. This method indicates that the client is no
|
362
|
-
# longer interested in the operation result. It does not cancel the operation.
|
363
|
-
# If the server doesn't support this method, it returns google.rpc.Code.
|
364
|
-
# UNIMPLEMENTED.
|
365
|
-
# @param [String] name
|
366
|
-
# The name of the operation resource to be deleted.
|
367
|
-
# @param [String] quota_user
|
368
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
369
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
370
|
-
# @param [String] fields
|
371
|
-
# Selector specifying which fields to include in a partial response.
|
372
|
-
# @param [Google::Apis::RequestOptions] options
|
373
|
-
# Request-specific options
|
374
|
-
#
|
375
|
-
# @yield [result, err] Result & error if block supplied
|
376
|
-
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
377
|
-
# @yieldparam err [StandardError] error object if request failed
|
378
|
-
#
|
379
|
-
# @return [Google::Apis::DataprocV1::Empty]
|
380
|
-
#
|
381
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
382
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
383
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
384
|
-
def delete_operation(name, quota_user: nil, fields: nil, options: nil, &block)
|
385
|
-
command = make_simple_command(:delete, 'v1/{+name}', options)
|
386
|
-
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
387
|
-
command.response_class = Google::Apis::DataprocV1::Empty
|
388
|
-
command.params['name'] = name unless name.nil?
|
389
320
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
390
|
-
command.query['fields'] = fields unless fields.nil?
|
391
321
|
execute_or_queue_command(command, &block)
|
392
322
|
end
|
393
323
|
|
@@ -395,11 +325,11 @@ module Google
|
|
395
325
|
# to poll the operation result at intervals as recommended by the API service.
|
396
326
|
# @param [String] name
|
397
327
|
# The name of the operation resource.
|
328
|
+
# @param [String] fields
|
329
|
+
# Selector specifying which fields to include in a partial response.
|
398
330
|
# @param [String] quota_user
|
399
331
|
# Available to use for quota purposes for server-side applications. Can be any
|
400
332
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
401
|
-
# @param [String] fields
|
402
|
-
# Selector specifying which fields to include in a partial response.
|
403
333
|
# @param [Google::Apis::RequestOptions] options
|
404
334
|
# Request-specific options
|
405
335
|
#
|
@@ -412,13 +342,13 @@ module Google
|
|
412
342
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
413
343
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
414
344
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
415
|
-
def get_operation(name,
|
345
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
416
346
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
417
347
|
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
418
348
|
command.response_class = Google::Apis::DataprocV1::Operation
|
419
349
|
command.params['name'] = name unless name.nil?
|
420
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
421
350
|
command.query['fields'] = fields unless fields.nil?
|
351
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
422
352
|
execute_or_queue_command(command, &block)
|
423
353
|
end
|
424
354
|
|
@@ -438,11 +368,11 @@ module Google
|
|
438
368
|
# The standard list page token.
|
439
369
|
# @param [Fixnum] page_size
|
440
370
|
# The standard list page size.
|
371
|
+
# @param [String] fields
|
372
|
+
# Selector specifying which fields to include in a partial response.
|
441
373
|
# @param [String] quota_user
|
442
374
|
# Available to use for quota purposes for server-side applications. Can be any
|
443
375
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
444
|
-
# @param [String] fields
|
445
|
-
# Selector specifying which fields to include in a partial response.
|
446
376
|
# @param [Google::Apis::RequestOptions] options
|
447
377
|
# Request-specific options
|
448
378
|
#
|
@@ -455,7 +385,7 @@ module Google
|
|
455
385
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
456
386
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
457
387
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
458
|
-
def list_operations(name, filter: nil, page_token: nil, page_size: nil,
|
388
|
+
def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
459
389
|
command = make_simple_command(:get, 'v1/{+name}', options)
|
460
390
|
command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
|
461
391
|
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
|
@@ -463,90 +393,78 @@ module Google
|
|
463
393
|
command.query['filter'] = filter unless filter.nil?
|
464
394
|
command.query['pageToken'] = page_token unless page_token.nil?
|
465
395
|
command.query['pageSize'] = page_size unless page_size.nil?
|
466
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
467
396
|
command.query['fields'] = fields unless fields.nil?
|
397
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
468
398
|
execute_or_queue_command(command, &block)
|
469
399
|
end
|
470
400
|
|
471
|
-
#
|
472
|
-
#
|
473
|
-
#
|
474
|
-
#
|
475
|
-
#
|
476
|
-
#
|
477
|
-
#
|
478
|
-
#
|
479
|
-
# @param [String]
|
480
|
-
#
|
481
|
-
#
|
482
|
-
#
|
483
|
-
# body would specify the new value. <strong>Note:</strong> Currently, <code>
|
484
|
-
# labels</code> is the only field that can be updated.
|
401
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
402
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
403
|
+
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
404
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
405
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
406
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
407
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
408
|
+
# corresponding to Code.CANCELLED.
|
409
|
+
# @param [String] name
|
410
|
+
# The name of the operation resource to be cancelled.
|
411
|
+
# @param [String] fields
|
412
|
+
# Selector specifying which fields to include in a partial response.
|
485
413
|
# @param [String] quota_user
|
486
414
|
# Available to use for quota purposes for server-side applications. Can be any
|
487
415
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
488
|
-
# @param [String] fields
|
489
|
-
# Selector specifying which fields to include in a partial response.
|
490
416
|
# @param [Google::Apis::RequestOptions] options
|
491
417
|
# Request-specific options
|
492
418
|
#
|
493
419
|
# @yield [result, err] Result & error if block supplied
|
494
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
420
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
495
421
|
# @yieldparam err [StandardError] error object if request failed
|
496
422
|
#
|
497
|
-
# @return [Google::Apis::DataprocV1::
|
423
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
498
424
|
#
|
499
425
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
500
426
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
501
427
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
502
|
-
def
|
503
|
-
command = make_simple_command(:
|
504
|
-
command.
|
505
|
-
command.
|
506
|
-
command.
|
507
|
-
command.response_class = Google::Apis::DataprocV1::Job
|
508
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
509
|
-
command.params['region'] = region unless region.nil?
|
510
|
-
command.params['jobId'] = job_id unless job_id.nil?
|
511
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
512
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
428
|
+
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
429
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
430
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
431
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
432
|
+
command.params['name'] = name unless name.nil?
|
513
433
|
command.query['fields'] = fields unless fields.nil?
|
434
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
514
435
|
execute_or_queue_command(command, &block)
|
515
436
|
end
|
516
437
|
|
517
|
-
#
|
518
|
-
#
|
519
|
-
#
|
520
|
-
#
|
521
|
-
#
|
522
|
-
#
|
523
|
-
#
|
438
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
439
|
+
# longer interested in the operation result. It does not cancel the operation.
|
440
|
+
# If the server doesn't support this method, it returns google.rpc.Code.
|
441
|
+
# UNIMPLEMENTED.
|
442
|
+
# @param [String] name
|
443
|
+
# The name of the operation resource to be deleted.
|
444
|
+
# @param [String] fields
|
445
|
+
# Selector specifying which fields to include in a partial response.
|
524
446
|
# @param [String] quota_user
|
525
447
|
# Available to use for quota purposes for server-side applications. Can be any
|
526
448
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
527
|
-
# @param [String] fields
|
528
|
-
# Selector specifying which fields to include in a partial response.
|
529
449
|
# @param [Google::Apis::RequestOptions] options
|
530
450
|
# Request-specific options
|
531
451
|
#
|
532
452
|
# @yield [result, err] Result & error if block supplied
|
533
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
453
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
534
454
|
# @yieldparam err [StandardError] error object if request failed
|
535
455
|
#
|
536
|
-
# @return [Google::Apis::DataprocV1::
|
456
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
537
457
|
#
|
538
458
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
539
459
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
540
460
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
541
|
-
def
|
542
|
-
command = make_simple_command(:
|
543
|
-
command.response_representation = Google::Apis::DataprocV1::
|
544
|
-
command.response_class = Google::Apis::DataprocV1::
|
545
|
-
command.params['
|
546
|
-
command.params['region'] = region unless region.nil?
|
547
|
-
command.params['jobId'] = job_id unless job_id.nil?
|
548
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
461
|
+
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
462
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
463
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
464
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
465
|
+
command.params['name'] = name unless name.nil?
|
549
466
|
command.query['fields'] = fields unless fields.nil?
|
467
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
550
468
|
execute_or_queue_command(command, &block)
|
551
469
|
end
|
552
470
|
|
@@ -556,11 +474,11 @@ module Google
|
|
556
474
|
# @param [String] region
|
557
475
|
# Required. The Cloud Dataproc region in which to handle the request.
|
558
476
|
# @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
|
477
|
+
# @param [String] fields
|
478
|
+
# Selector specifying which fields to include in a partial response.
|
559
479
|
# @param [String] quota_user
|
560
480
|
# Available to use for quota purposes for server-side applications. Can be any
|
561
481
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
562
|
-
# @param [String] fields
|
563
|
-
# Selector specifying which fields to include in a partial response.
|
564
482
|
# @param [Google::Apis::RequestOptions] options
|
565
483
|
# Request-specific options
|
566
484
|
#
|
@@ -573,7 +491,7 @@ module Google
|
|
573
491
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
574
492
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
575
493
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
576
|
-
def submit_job(project_id, region, submit_job_request_object = nil,
|
494
|
+
def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
577
495
|
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
|
578
496
|
command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
|
579
497
|
command.request_object = submit_job_request_object
|
@@ -581,8 +499,8 @@ module Google
|
|
581
499
|
command.response_class = Google::Apis::DataprocV1::Job
|
582
500
|
command.params['projectId'] = project_id unless project_id.nil?
|
583
501
|
command.params['region'] = region unless region.nil?
|
584
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
585
502
|
command.query['fields'] = fields unless fields.nil?
|
503
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
586
504
|
execute_or_queue_command(command, &block)
|
587
505
|
end
|
588
506
|
|
@@ -594,11 +512,11 @@ module Google
|
|
594
512
|
# Required. The Cloud Dataproc region in which to handle the request.
|
595
513
|
# @param [String] job_id
|
596
514
|
# Required. The job ID.
|
515
|
+
# @param [String] fields
|
516
|
+
# Selector specifying which fields to include in a partial response.
|
597
517
|
# @param [String] quota_user
|
598
518
|
# Available to use for quota purposes for server-side applications. Can be any
|
599
519
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
600
|
-
# @param [String] fields
|
601
|
-
# Selector specifying which fields to include in a partial response.
|
602
520
|
# @param [Google::Apis::RequestOptions] options
|
603
521
|
# Request-specific options
|
604
522
|
#
|
@@ -611,15 +529,15 @@ module Google
|
|
611
529
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
612
530
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
613
531
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
614
|
-
def delete_job(project_id, region, job_id,
|
532
|
+
def delete_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
615
533
|
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
616
534
|
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
617
535
|
command.response_class = Google::Apis::DataprocV1::Empty
|
618
536
|
command.params['projectId'] = project_id unless project_id.nil?
|
619
537
|
command.params['region'] = region unless region.nil?
|
620
538
|
command.params['jobId'] = job_id unless job_id.nil?
|
621
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
622
539
|
command.query['fields'] = fields unless fields.nil?
|
540
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
623
541
|
execute_or_queue_command(command, &block)
|
624
542
|
end
|
625
543
|
|
@@ -647,11 +565,11 @@ module Google
|
|
647
565
|
# @param [String] cluster_name
|
648
566
|
# Optional. If set, the returned jobs list includes only jobs that were
|
649
567
|
# submitted to the named cluster.
|
568
|
+
# @param [String] fields
|
569
|
+
# Selector specifying which fields to include in a partial response.
|
650
570
|
# @param [String] quota_user
|
651
571
|
# Available to use for quota purposes for server-side applications. Can be any
|
652
572
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
653
|
-
# @param [String] fields
|
654
|
-
# Selector specifying which fields to include in a partial response.
|
655
573
|
# @param [Google::Apis::RequestOptions] options
|
656
574
|
# Request-specific options
|
657
575
|
#
|
@@ -664,7 +582,7 @@ module Google
|
|
664
582
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
665
583
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
666
584
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
667
|
-
def list_jobs(project_id, region, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, cluster_name: nil,
|
585
|
+
def list_jobs(project_id, region, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, cluster_name: nil, fields: nil, quota_user: nil, options: nil, &block)
|
668
586
|
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
|
669
587
|
command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
|
670
588
|
command.response_class = Google::Apis::DataprocV1::ListJobsResponse
|
@@ -675,8 +593,8 @@ module Google
|
|
675
593
|
command.query['pageToken'] = page_token unless page_token.nil?
|
676
594
|
command.query['pageSize'] = page_size unless page_size.nil?
|
677
595
|
command.query['clusterName'] = cluster_name unless cluster_name.nil?
|
678
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
679
596
|
command.query['fields'] = fields unless fields.nil?
|
597
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
680
598
|
execute_or_queue_command(command, &block)
|
681
599
|
end
|
682
600
|
|
@@ -689,11 +607,11 @@ module Google
|
|
689
607
|
# @param [String] job_id
|
690
608
|
# Required. The job ID.
|
691
609
|
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
|
610
|
+
# @param [String] fields
|
611
|
+
# Selector specifying which fields to include in a partial response.
|
692
612
|
# @param [String] quota_user
|
693
613
|
# Available to use for quota purposes for server-side applications. Can be any
|
694
614
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
695
|
-
# @param [String] fields
|
696
|
-
# Selector specifying which fields to include in a partial response.
|
697
615
|
# @param [Google::Apis::RequestOptions] options
|
698
616
|
# Request-specific options
|
699
617
|
#
|
@@ -706,7 +624,7 @@ module Google
|
|
706
624
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
707
625
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
708
626
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
709
|
-
def cancel_job(project_id, region, job_id, cancel_job_request_object = nil,
|
627
|
+
def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
710
628
|
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
|
711
629
|
command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
|
712
630
|
command.request_object = cancel_job_request_object
|
@@ -715,8 +633,90 @@ module Google
|
|
715
633
|
command.params['projectId'] = project_id unless project_id.nil?
|
716
634
|
command.params['region'] = region unless region.nil?
|
717
635
|
command.params['jobId'] = job_id unless job_id.nil?
|
636
|
+
command.query['fields'] = fields unless fields.nil?
|
637
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
638
|
+
execute_or_queue_command(command, &block)
|
639
|
+
end
|
640
|
+
|
641
|
+
# Gets the resource representation for a job in a project.
|
642
|
+
# @param [String] project_id
|
643
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
644
|
+
# @param [String] region
|
645
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
646
|
+
# @param [String] job_id
|
647
|
+
# Required. The job ID.
|
648
|
+
# @param [String] fields
|
649
|
+
# Selector specifying which fields to include in a partial response.
|
650
|
+
# @param [String] quota_user
|
651
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
652
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
653
|
+
# @param [Google::Apis::RequestOptions] options
|
654
|
+
# Request-specific options
|
655
|
+
#
|
656
|
+
# @yield [result, err] Result & error if block supplied
|
657
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
658
|
+
# @yieldparam err [StandardError] error object if request failed
|
659
|
+
#
|
660
|
+
# @return [Google::Apis::DataprocV1::Job]
|
661
|
+
#
|
662
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
663
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
664
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
665
|
+
def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
666
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
667
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
668
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
669
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
670
|
+
command.params['region'] = region unless region.nil?
|
671
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
672
|
+
command.query['fields'] = fields unless fields.nil?
|
718
673
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
674
|
+
execute_or_queue_command(command, &block)
|
675
|
+
end
|
676
|
+
|
677
|
+
# Updates a job in a project.
|
678
|
+
# @param [String] project_id
|
679
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
680
|
+
# @param [String] region
|
681
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
682
|
+
# @param [String] job_id
|
683
|
+
# Required. The job ID.
|
684
|
+
# @param [Google::Apis::DataprocV1::Job] job_object
|
685
|
+
# @param [String] update_mask
|
686
|
+
# Required. Specifies the path, relative to <code>Job</code>, of the field to
|
687
|
+
# update. For example, to update the labels of a Job the <code>update_mask</code>
|
688
|
+
# parameter would be specified as <code>labels</code>, and the PATCH request
|
689
|
+
# body would specify the new value. <strong>Note:</strong> Currently, <code>
|
690
|
+
# labels</code> is the only field that can be updated.
|
691
|
+
# @param [String] fields
|
692
|
+
# Selector specifying which fields to include in a partial response.
|
693
|
+
# @param [String] quota_user
|
694
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
695
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
696
|
+
# @param [Google::Apis::RequestOptions] options
|
697
|
+
# Request-specific options
|
698
|
+
#
|
699
|
+
# @yield [result, err] Result & error if block supplied
|
700
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
701
|
+
# @yieldparam err [StandardError] error object if request failed
|
702
|
+
#
|
703
|
+
# @return [Google::Apis::DataprocV1::Job]
|
704
|
+
#
|
705
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
706
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
707
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
708
|
+
def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
709
|
+
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
710
|
+
command.request_representation = Google::Apis::DataprocV1::Job::Representation
|
711
|
+
command.request_object = job_object
|
712
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
713
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
714
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
715
|
+
command.params['region'] = region unless region.nil?
|
716
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
717
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
719
718
|
command.query['fields'] = fields unless fields.nil?
|
719
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
720
720
|
execute_or_queue_command(command, &block)
|
721
721
|
end
|
722
722
|
|