google-api-client 0.11.1 → 0.11.2
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 +4 -0
- data/api_names.yaml +42335 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +28 -28
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +12 -12
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +757 -757
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +162 -162
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +48 -48
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +75 -7
- data/generated/google/apis/admin_directory_v1/representations.rb +20 -0
- data/generated/google/apis/admin_directory_v1/service.rb +61 -61
- 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 +403 -403
- data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +36 -11
- data/generated/google/apis/androidenterprise_v1/representations.rb +2 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/appengine_v1.rb +6 -5
- data/generated/google/apis/appengine_v1/classes.rb +1429 -1421
- data/generated/google/apis/appengine_v1/representations.rb +331 -331
- data/generated/google/apis/appengine_v1/service.rb +173 -168
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +624 -618
- data/generated/google/apis/cloudbuild_v1/representations.rb +126 -125
- data/generated/google/apis/cloudbuild_v1/service.rb +87 -87
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +267 -267
- data/generated/google/apis/clouddebugger_v2/representations.rb +83 -83
- data/generated/google/apis/clouddebugger_v2/service.rb +137 -137
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +131 -131
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +28 -28
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +17 -17
- data/generated/google/apis/cloudfunctions_v1.rb +1 -4
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -47
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -17
- data/generated/google/apis/cloudfunctions_v1/service.rb +0 -30
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +625 -625
- data/generated/google/apis/cloudkms_v1/representations.rb +132 -132
- data/generated/google/apis/cloudkms_v1/service.rb +272 -272
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +242 -242
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +43 -43
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +505 -505
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +172 -172
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +39 -39
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +310 -310
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +96 -69
- data/generated/google/apis/cloudtrace_v1/representations.rb +16 -16
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -15
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +194 -25
- data/generated/google/apis/compute_beta/representations.rb +42 -0
- data/generated/google/apis/compute_beta/service.rb +196 -100
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +69 -18
- data/generated/google/apis/compute_v1/representations.rb +16 -0
- data/generated/google/apis/compute_v1/service.rb +84 -26
- data/generated/google/apis/container_v1.rb +3 -3
- data/generated/google/apis/container_v1/classes.rb +794 -586
- data/generated/google/apis/container_v1/representations.rb +202 -118
- data/generated/google/apis/container_v1/service.rb +396 -167
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/service.rb +4 -4
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +487 -484
- data/generated/google/apis/dataproc_v1/representations.rb +83 -83
- data/generated/google/apis/dataproc_v1/service.rb +299 -297
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +703 -703
- data/generated/google/apis/datastore_v1/representations.rb +148 -148
- 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 +7 -5
- data/generated/google/apis/dfareporting_v2_6.rb +1 -1
- data/generated/google/apis/dfareporting_v2_6/classes.rb +66 -53
- data/generated/google/apis/dfareporting_v2_6/service.rb +30 -30
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +69 -55
- data/generated/google/apis/dfareporting_v2_7/service.rb +38 -37
- data/generated/google/apis/dfareporting_v2_8.rb +40 -0
- data/generated/google/apis/dfareporting_v2_8/classes.rb +12046 -0
- data/generated/google/apis/dfareporting_v2_8/representations.rb +4310 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +9135 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- 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 +15 -0
- data/generated/google/apis/drive_v2/representations.rb +2 -0
- data/generated/google/apis/drive_v2/service.rb +2 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +16 -0
- data/generated/google/apis/drive_v3/representations.rb +2 -0
- data/generated/google/apis/drive_v3/service.rb +2 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +2 -3
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +159 -159
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +55 -55
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -6
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +73 -73
- data/generated/google/apis/firebaserules_v1/representations.rb +25 -25
- data/generated/google/apis/firebaserules_v1/service.rb +118 -118
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- 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 +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +920 -920
- data/generated/google/apis/genomics_v1/representations.rb +202 -202
- data/generated/google/apis/genomics_v1/service.rb +1092 -1092
- 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 +455 -435
- data/generated/google/apis/iam_v1/representations.rb +96 -93
- data/generated/google/apis/iam_v1/service.rb +157 -157
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +12 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +2 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +9 -9
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +455 -455
- data/generated/google/apis/language_v1/representations.rb +102 -102
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +216 -215
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/language_v1beta1/service.rb +45 -45
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +908 -895
- data/generated/google/apis/logging_v2/representations.rb +121 -120
- data/generated/google/apis/logging_v2/service.rb +489 -489
- data/generated/google/apis/logging_v2beta1.rb +4 -4
- data/generated/google/apis/logging_v2beta1/classes.rb +928 -915
- data/generated/google/apis/logging_v2beta1/representations.rb +121 -120
- data/generated/google/apis/logging_v2beta1/service.rb +249 -249
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +294 -294
- data/generated/google/apis/manufacturers_v1/representations.rb +84 -84
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1186 -1183
- data/generated/google/apis/ml_v1/representations.rb +177 -177
- data/generated/google/apis/ml_v1/service.rb +244 -244
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +866 -866
- data/generated/google/apis/monitoring_v3/representations.rb +163 -163
- data/generated/google/apis/monitoring_v3/service.rb +355 -316
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1499 -1499
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +512 -512
- data/generated/google/apis/people_v1.rb +10 -10
- data/generated/google/apis/people_v1/classes.rb +544 -423
- data/generated/google/apis/people_v1/representations.rb +127 -109
- data/generated/google/apis/people_v1/service.rb +8 -8
- 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 +200 -200
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +41 -41
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +80 -80
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +377 -377
- data/generated/google/apis/pubsub_v1/representations.rb +82 -82
- data/generated/google/apis/pubsub_v1/service.rb +93 -93
- data/generated/google/apis/runtimeconfig_v1.rb +6 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +22 -22
- data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
- data/generated/google/apis/runtimeconfig_v1/service.rb +57 -55
- data/generated/google/apis/script_v1.rb +14 -14
- data/generated/google/apis/script_v1/classes.rb +113 -58
- data/generated/google/apis/script_v1/representations.rb +43 -14
- 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 +67 -67
- data/generated/google/apis/searchconsole_v1/representations.rb +29 -29
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1125 -1125
- data/generated/google/apis/servicecontrol_v1/representations.rb +213 -213
- data/generated/google/apis/servicecontrol_v1/service.rb +92 -92
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +3364 -3622
- data/generated/google/apis/servicemanagement_v1/representations.rb +546 -530
- data/generated/google/apis/servicemanagement_v1/service.rb +262 -152
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2616 -2874
- data/generated/google/apis/serviceuser_v1/representations.rb +294 -278
- data/generated/google/apis/serviceuser_v1/service.rb +19 -19
- data/generated/google/apis/sheets_v4.rb +4 -1
- data/generated/google/apis/sheets_v4/classes.rb +4315 -4313
- data/generated/google/apis/sheets_v4/representations.rb +858 -858
- data/generated/google/apis/sheets_v4/service.rb +115 -115
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2890 -2890
- data/generated/google/apis/slides_v1/representations.rb +638 -638
- data/generated/google/apis/slides_v1/service.rb +36 -36
- data/generated/google/apis/sourcerepo_v1.rb +1 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +283 -283
- data/generated/google/apis/sourcerepo_v1/representations.rb +67 -67
- data/generated/google/apis/sourcerepo_v1/service.rb +88 -88
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +2258 -2233
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +466 -466
- data/generated/google/apis/speech_v1beta1.rb +2 -2
- data/generated/google/apis/speech_v1beta1/classes.rb +97 -97
- data/generated/google/apis/speech_v1beta1/representations.rb +29 -29
- data/generated/google/apis/speech_v1beta1/service.rb +49 -49
- 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 +786 -786
- data/generated/google/apis/storagetransfer_v1/representations.rb +133 -133
- data/generated/google/apis/storagetransfer_v1/service.rb +30 -30
- data/generated/google/apis/surveys_v2.rb +1 -1
- data/generated/google/apis/surveys_v2/classes.rb +0 -12
- data/generated/google/apis/surveys_v2/representations.rb +0 -4
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1301 -1302
- data/generated/google/apis/vision_v1/representations.rb +183 -183
- 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 +10 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +64 -64
- data/generated/google/apis/youtubereporting_v1/representations.rb +12 -12
- data/generated/google/apis/youtubereporting_v1/service.rb +94 -94
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -3
|
@@ -40,13 +40,13 @@ module Google
|
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class JobScheduling
|
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
45
45
|
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class InstanceGroupConfig
|
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
51
|
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
|
@@ -106,13 +106,13 @@ module Google
|
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
|
107
107
|
end
|
|
108
108
|
|
|
109
|
-
class
|
|
109
|
+
class ClusterStatus
|
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
111
|
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
-
class
|
|
115
|
+
class PigJob
|
|
116
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
117
117
|
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
|
@@ -154,7 +154,7 @@ module Google
|
|
|
154
154
|
include Google::Apis::Core::JsonObjectSupport
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
class
|
|
157
|
+
class YarnApplication
|
|
158
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
159
|
|
|
160
160
|
include Google::Apis::Core::JsonObjectSupport
|
|
@@ -166,7 +166,7 @@ module Google
|
|
|
166
166
|
include Google::Apis::Core::JsonObjectSupport
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
-
class
|
|
169
|
+
class HadoopJob
|
|
170
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
171
171
|
|
|
172
172
|
include Google::Apis::Core::JsonObjectSupport
|
|
@@ -281,33 +281,33 @@ module Google
|
|
|
281
281
|
class Status
|
|
282
282
|
# @private
|
|
283
283
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
284
|
+
property :message, as: 'message'
|
|
284
285
|
collection :details, as: 'details'
|
|
285
286
|
property :code, as: 'code'
|
|
286
|
-
property :message, as: 'message'
|
|
287
287
|
end
|
|
288
288
|
end
|
|
289
289
|
|
|
290
|
-
class
|
|
290
|
+
class JobScheduling
|
|
291
291
|
# @private
|
|
292
292
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
property :max_failures_per_hour, as: 'maxFailuresPerHour'
|
|
294
|
+
end
|
|
295
|
+
end
|
|
295
296
|
|
|
296
|
-
|
|
297
|
+
class InstanceGroupConfig
|
|
298
|
+
# @private
|
|
299
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
297
300
|
property :disk_config, as: 'diskConfig', class: Google::Apis::DataprocV1::DiskConfig, decorator: Google::Apis::DataprocV1::DiskConfig::Representation
|
|
298
301
|
|
|
299
|
-
property :is_preemptible, as: 'isPreemptible'
|
|
300
|
-
property :machine_type_uri, as: 'machineTypeUri'
|
|
301
302
|
property :image_uri, as: 'imageUri'
|
|
303
|
+
property :machine_type_uri, as: 'machineTypeUri'
|
|
302
304
|
property :managed_group_config, as: 'managedGroupConfig', class: Google::Apis::DataprocV1::ManagedGroupConfig, decorator: Google::Apis::DataprocV1::ManagedGroupConfig::Representation
|
|
303
305
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
+
property :is_preemptible, as: 'isPreemptible'
|
|
307
|
+
collection :instance_names, as: 'instanceNames'
|
|
308
|
+
collection :accelerators, as: 'accelerators', class: Google::Apis::DataprocV1::AcceleratorConfig, decorator: Google::Apis::DataprocV1::AcceleratorConfig::Representation
|
|
306
309
|
|
|
307
|
-
|
|
308
|
-
# @private
|
|
309
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
310
|
-
property :max_failures_per_hour, as: 'maxFailuresPerHour'
|
|
310
|
+
property :num_instances, as: 'numInstances'
|
|
311
311
|
end
|
|
312
312
|
end
|
|
313
313
|
|
|
@@ -337,32 +337,32 @@ module Google
|
|
|
337
337
|
class SparkSqlJob
|
|
338
338
|
# @private
|
|
339
339
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
340
|
-
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
|
341
|
-
|
|
342
|
-
property :query_file_uri, as: 'queryFileUri'
|
|
343
340
|
hash :script_variables, as: 'scriptVariables'
|
|
344
341
|
collection :jar_file_uris, as: 'jarFileUris'
|
|
345
342
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
|
346
343
|
|
|
347
344
|
hash :properties, as: 'properties'
|
|
345
|
+
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
|
346
|
+
|
|
347
|
+
property :query_file_uri, as: 'queryFileUri'
|
|
348
348
|
end
|
|
349
349
|
end
|
|
350
350
|
|
|
351
351
|
class Cluster
|
|
352
352
|
# @private
|
|
353
353
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
354
|
-
hash :labels, as: 'labels'
|
|
355
|
-
property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation
|
|
356
|
-
|
|
357
|
-
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
|
358
|
-
|
|
359
354
|
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
|
360
355
|
|
|
361
356
|
property :config, as: 'config', class: Google::Apis::DataprocV1::ClusterConfig, decorator: Google::Apis::DataprocV1::ClusterConfig::Representation
|
|
362
357
|
|
|
363
|
-
property :cluster_name, as: 'clusterName'
|
|
364
358
|
property :cluster_uuid, as: 'clusterUuid'
|
|
359
|
+
property :cluster_name, as: 'clusterName'
|
|
365
360
|
property :project_id, as: 'projectId'
|
|
361
|
+
hash :labels, as: 'labels'
|
|
362
|
+
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterStatus, decorator: Google::Apis::DataprocV1::ClusterStatus::Representation
|
|
363
|
+
|
|
364
|
+
property :metrics, as: 'metrics', class: Google::Apis::DataprocV1::ClusterMetrics, decorator: Google::Apis::DataprocV1::ClusterMetrics::Representation
|
|
365
|
+
|
|
366
366
|
end
|
|
367
367
|
end
|
|
368
368
|
|
|
@@ -388,8 +388,8 @@ module Google
|
|
|
388
388
|
property :description, as: 'description'
|
|
389
389
|
property :status, as: 'status', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation
|
|
390
390
|
|
|
391
|
-
property :details, as: 'details'
|
|
392
391
|
property :state, as: 'state'
|
|
392
|
+
property :details, as: 'details'
|
|
393
393
|
property :cluster_uuid, as: 'clusterUuid'
|
|
394
394
|
property :cluster_name, as: 'clusterName'
|
|
395
395
|
property :inner_state, as: 'innerState'
|
|
@@ -407,33 +407,33 @@ module Google
|
|
|
407
407
|
class SoftwareConfig
|
|
408
408
|
# @private
|
|
409
409
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
410
|
-
property :image_version, as: 'imageVersion'
|
|
411
410
|
hash :properties, as: 'properties'
|
|
411
|
+
property :image_version, as: 'imageVersion'
|
|
412
412
|
end
|
|
413
413
|
end
|
|
414
414
|
|
|
415
|
-
class
|
|
415
|
+
class ClusterStatus
|
|
416
416
|
# @private
|
|
417
417
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
property :
|
|
418
|
+
property :state, as: 'state'
|
|
419
|
+
property :state_start_time, as: 'stateStartTime'
|
|
420
|
+
property :substate, as: 'substate'
|
|
421
|
+
property :detail, as: 'detail'
|
|
422
|
+
end
|
|
423
|
+
end
|
|
421
424
|
|
|
425
|
+
class PigJob
|
|
426
|
+
# @private
|
|
427
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
422
428
|
hash :properties, as: 'properties'
|
|
423
429
|
property :continue_on_failure, as: 'continueOnFailure'
|
|
430
|
+
property :query_file_uri, as: 'queryFileUri'
|
|
424
431
|
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
|
425
432
|
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
433
|
+
collection :jar_file_uris, as: 'jarFileUris'
|
|
434
|
+
hash :script_variables, as: 'scriptVariables'
|
|
435
|
+
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
|
429
436
|
|
|
430
|
-
class ClusterStatus
|
|
431
|
-
# @private
|
|
432
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
433
|
-
property :state, as: 'state'
|
|
434
|
-
property :state_start_time, as: 'stateStartTime'
|
|
435
|
-
property :substate, as: 'substate'
|
|
436
|
-
property :detail, as: 'detail'
|
|
437
437
|
end
|
|
438
438
|
end
|
|
439
439
|
|
|
@@ -449,6 +449,7 @@ module Google
|
|
|
449
449
|
class SparkJob
|
|
450
450
|
# @private
|
|
451
451
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
452
|
+
property :main_jar_file_uri, as: 'mainJarFileUri'
|
|
452
453
|
collection :jar_file_uris, as: 'jarFileUris'
|
|
453
454
|
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
|
454
455
|
|
|
@@ -457,14 +458,12 @@ module Google
|
|
|
457
458
|
collection :file_uris, as: 'fileUris'
|
|
458
459
|
property :main_class, as: 'mainClass'
|
|
459
460
|
collection :archive_uris, as: 'archiveUris'
|
|
460
|
-
property :main_jar_file_uri, as: 'mainJarFileUri'
|
|
461
461
|
end
|
|
462
462
|
end
|
|
463
463
|
|
|
464
464
|
class Job
|
|
465
465
|
# @private
|
|
466
466
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
467
|
-
property :driver_control_files_uri, as: 'driverControlFilesUri'
|
|
468
467
|
property :scheduling, as: 'scheduling', class: Google::Apis::DataprocV1::JobScheduling, decorator: Google::Apis::DataprocV1::JobScheduling::Representation
|
|
469
468
|
|
|
470
469
|
property :pig_job, as: 'pigJob', class: Google::Apis::DataprocV1::PigJob, decorator: Google::Apis::DataprocV1::PigJob::Representation
|
|
@@ -473,12 +472,12 @@ module Google
|
|
|
473
472
|
|
|
474
473
|
hash :labels, as: 'labels'
|
|
475
474
|
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
|
|
475
|
+
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
|
|
476
|
+
|
|
476
477
|
collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
|
477
478
|
|
|
478
479
|
property :spark_sql_job, as: 'sparkSqlJob', class: Google::Apis::DataprocV1::SparkSqlJob, decorator: Google::Apis::DataprocV1::SparkSqlJob::Representation
|
|
479
480
|
|
|
480
|
-
property :spark_job, as: 'sparkJob', class: Google::Apis::DataprocV1::SparkJob, decorator: Google::Apis::DataprocV1::SparkJob::Representation
|
|
481
|
-
|
|
482
481
|
collection :yarn_applications, as: 'yarnApplications', class: Google::Apis::DataprocV1::YarnApplication, decorator: Google::Apis::DataprocV1::YarnApplication::Representation
|
|
483
482
|
|
|
484
483
|
property :pyspark_job, as: 'pysparkJob', class: Google::Apis::DataprocV1::PySparkJob, decorator: Google::Apis::DataprocV1::PySparkJob::Representation
|
|
@@ -487,20 +486,21 @@ module Google
|
|
|
487
486
|
|
|
488
487
|
property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1::HadoopJob, decorator: Google::Apis::DataprocV1::HadoopJob::Representation
|
|
489
488
|
|
|
490
|
-
property :status, as: 'status', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
|
491
|
-
|
|
492
489
|
property :placement, as: 'placement', class: Google::Apis::DataprocV1::JobPlacement, decorator: Google::Apis::DataprocV1::JobPlacement::Representation
|
|
493
490
|
|
|
491
|
+
property :status, as: 'status', class: Google::Apis::DataprocV1::JobStatus, decorator: Google::Apis::DataprocV1::JobStatus::Representation
|
|
492
|
+
|
|
493
|
+
property :driver_control_files_uri, as: 'driverControlFilesUri'
|
|
494
494
|
end
|
|
495
495
|
end
|
|
496
496
|
|
|
497
497
|
class JobStatus
|
|
498
498
|
# @private
|
|
499
499
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
500
|
-
property :state_start_time, as: 'stateStartTime'
|
|
501
|
-
property :substate, as: 'substate'
|
|
502
500
|
property :state, as: 'state'
|
|
503
501
|
property :details, as: 'details'
|
|
502
|
+
property :state_start_time, as: 'stateStartTime'
|
|
503
|
+
property :substate, as: 'substate'
|
|
504
504
|
end
|
|
505
505
|
end
|
|
506
506
|
|
|
@@ -515,25 +515,20 @@ module Google
|
|
|
515
515
|
class ClusterOperationStatus
|
|
516
516
|
# @private
|
|
517
517
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
518
|
+
property :state_start_time, as: 'stateStartTime'
|
|
518
519
|
property :state, as: 'state'
|
|
519
520
|
property :details, as: 'details'
|
|
520
521
|
property :inner_state, as: 'innerState'
|
|
521
|
-
property :state_start_time, as: 'stateStartTime'
|
|
522
522
|
end
|
|
523
523
|
end
|
|
524
524
|
|
|
525
|
-
class
|
|
525
|
+
class YarnApplication
|
|
526
526
|
# @private
|
|
527
527
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
property :
|
|
532
|
-
collection :archive_uris, as: 'archiveUris'
|
|
533
|
-
property :main_jar_file_uri, as: 'mainJarFileUri'
|
|
534
|
-
collection :jar_file_uris, as: 'jarFileUris'
|
|
535
|
-
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
|
536
|
-
|
|
528
|
+
property :state, as: 'state'
|
|
529
|
+
property :name, as: 'name'
|
|
530
|
+
property :tracking_url, as: 'trackingUrl'
|
|
531
|
+
property :progress, as: 'progress'
|
|
537
532
|
end
|
|
538
533
|
end
|
|
539
534
|
|
|
@@ -544,13 +539,18 @@ module Google
|
|
|
544
539
|
end
|
|
545
540
|
end
|
|
546
541
|
|
|
547
|
-
class
|
|
542
|
+
class HadoopJob
|
|
548
543
|
# @private
|
|
549
544
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
550
|
-
property :
|
|
551
|
-
|
|
552
|
-
property :
|
|
553
|
-
|
|
545
|
+
property :main_class, as: 'mainClass'
|
|
546
|
+
collection :archive_uris, as: 'archiveUris'
|
|
547
|
+
property :main_jar_file_uri, as: 'mainJarFileUri'
|
|
548
|
+
collection :jar_file_uris, as: 'jarFileUris'
|
|
549
|
+
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
|
550
|
+
|
|
551
|
+
hash :properties, as: 'properties'
|
|
552
|
+
collection :args, as: 'args'
|
|
553
|
+
collection :file_uris, as: 'fileUris'
|
|
554
554
|
end
|
|
555
555
|
end
|
|
556
556
|
|
|
@@ -563,14 +563,16 @@ module Google
|
|
|
563
563
|
class DiskConfig
|
|
564
564
|
# @private
|
|
565
565
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
566
|
-
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
|
567
566
|
property :num_local_ssds, as: 'numLocalSsds'
|
|
567
|
+
property :boot_disk_size_gb, as: 'bootDiskSizeGb'
|
|
568
568
|
end
|
|
569
569
|
end
|
|
570
570
|
|
|
571
571
|
class ClusterOperationMetadata
|
|
572
572
|
# @private
|
|
573
573
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
574
|
+
property :operation_type, as: 'operationType'
|
|
575
|
+
property :description, as: 'description'
|
|
574
576
|
collection :warnings, as: 'warnings'
|
|
575
577
|
hash :labels, as: 'labels'
|
|
576
578
|
property :status, as: 'status', class: Google::Apis::DataprocV1::ClusterOperationStatus, decorator: Google::Apis::DataprocV1::ClusterOperationStatus::Representation
|
|
@@ -579,8 +581,6 @@ module Google
|
|
|
579
581
|
|
|
580
582
|
property :cluster_name, as: 'clusterName'
|
|
581
583
|
property :cluster_uuid, as: 'clusterUuid'
|
|
582
|
-
property :operation_type, as: 'operationType'
|
|
583
|
-
property :description, as: 'description'
|
|
584
584
|
end
|
|
585
585
|
end
|
|
586
586
|
|
|
@@ -593,13 +593,13 @@ module Google
|
|
|
593
593
|
class HiveJob
|
|
594
594
|
# @private
|
|
595
595
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
596
|
+
hash :script_variables, as: 'scriptVariables'
|
|
597
|
+
collection :jar_file_uris, as: 'jarFileUris'
|
|
598
|
+
hash :properties, as: 'properties'
|
|
596
599
|
property :continue_on_failure, as: 'continueOnFailure'
|
|
597
600
|
property :query_file_uri, as: 'queryFileUri'
|
|
598
601
|
property :query_list, as: 'queryList', class: Google::Apis::DataprocV1::QueryList, decorator: Google::Apis::DataprocV1::QueryList::Representation
|
|
599
602
|
|
|
600
|
-
collection :jar_file_uris, as: 'jarFileUris'
|
|
601
|
-
hash :script_variables, as: 'scriptVariables'
|
|
602
|
-
hash :properties, as: 'properties'
|
|
603
603
|
end
|
|
604
604
|
end
|
|
605
605
|
|
|
@@ -613,6 +613,9 @@ module Google
|
|
|
613
613
|
class ClusterConfig
|
|
614
614
|
# @private
|
|
615
615
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
616
|
+
collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation
|
|
617
|
+
|
|
618
|
+
property :config_bucket, as: 'configBucket'
|
|
616
619
|
property :worker_config, as: 'workerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
|
617
620
|
|
|
618
621
|
property :gce_cluster_config, as: 'gceClusterConfig', class: Google::Apis::DataprocV1::GceClusterConfig, decorator: Google::Apis::DataprocV1::GceClusterConfig::Representation
|
|
@@ -623,32 +626,29 @@ module Google
|
|
|
623
626
|
|
|
624
627
|
property :secondary_worker_config, as: 'secondaryWorkerConfig', class: Google::Apis::DataprocV1::InstanceGroupConfig, decorator: Google::Apis::DataprocV1::InstanceGroupConfig::Representation
|
|
625
628
|
|
|
626
|
-
collection :initialization_actions, as: 'initializationActions', class: Google::Apis::DataprocV1::NodeInitializationAction, decorator: Google::Apis::DataprocV1::NodeInitializationAction::Representation
|
|
627
|
-
|
|
628
|
-
property :config_bucket, as: 'configBucket'
|
|
629
629
|
end
|
|
630
630
|
end
|
|
631
631
|
|
|
632
632
|
class PySparkJob
|
|
633
633
|
# @private
|
|
634
634
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
635
|
+
collection :jar_file_uris, as: 'jarFileUris'
|
|
636
|
+
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
|
637
|
+
|
|
635
638
|
hash :properties, as: 'properties'
|
|
636
639
|
collection :args, as: 'args'
|
|
637
640
|
collection :file_uris, as: 'fileUris'
|
|
638
641
|
collection :python_file_uris, as: 'pythonFileUris'
|
|
639
642
|
property :main_python_file_uri, as: 'mainPythonFileUri'
|
|
640
643
|
collection :archive_uris, as: 'archiveUris'
|
|
641
|
-
collection :jar_file_uris, as: 'jarFileUris'
|
|
642
|
-
property :logging_config, as: 'loggingConfig', class: Google::Apis::DataprocV1::LoggingConfig, decorator: Google::Apis::DataprocV1::LoggingConfig::Representation
|
|
643
|
-
|
|
644
644
|
end
|
|
645
645
|
end
|
|
646
646
|
|
|
647
647
|
class GceClusterConfig
|
|
648
648
|
# @private
|
|
649
649
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
650
|
-
property :internal_ip_only, as: 'internalIpOnly'
|
|
651
650
|
hash :metadata, as: 'metadata'
|
|
651
|
+
property :internal_ip_only, as: 'internalIpOnly'
|
|
652
652
|
collection :service_account_scopes, as: 'serviceAccountScopes'
|
|
653
653
|
collection :tags, as: 'tags'
|
|
654
654
|
property :service_account, as: 'serviceAccount'
|
|
@@ -691,22 +691,22 @@ module Google
|
|
|
691
691
|
class Operation
|
|
692
692
|
# @private
|
|
693
693
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
694
|
-
property :done, as: 'done'
|
|
695
694
|
hash :response, as: 'response'
|
|
696
695
|
property :name, as: 'name'
|
|
697
696
|
property :error, as: 'error', class: Google::Apis::DataprocV1::Status, decorator: Google::Apis::DataprocV1::Status::Representation
|
|
698
697
|
|
|
699
698
|
hash :metadata, as: 'metadata'
|
|
699
|
+
property :done, as: 'done'
|
|
700
700
|
end
|
|
701
701
|
end
|
|
702
702
|
|
|
703
703
|
class OperationStatus
|
|
704
704
|
# @private
|
|
705
705
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
706
|
+
property :state_start_time, as: 'stateStartTime'
|
|
706
707
|
property :state, as: 'state'
|
|
707
708
|
property :details, as: 'details'
|
|
708
709
|
property :inner_state, as: 'innerState'
|
|
709
|
-
property :state_start_time, as: 'stateStartTime'
|
|
710
710
|
end
|
|
711
711
|
end
|
|
712
712
|
end
|
|
@@ -47,14 +47,12 @@ module Google
|
|
|
47
47
|
@batch_path = 'batch'
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
-
#
|
|
50
|
+
# Submits a job to a cluster.
|
|
51
51
|
# @param [String] project_id
|
|
52
|
-
# Required The ID of the Google Cloud Platform project that the
|
|
53
|
-
# to.
|
|
52
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
|
54
53
|
# @param [String] region
|
|
55
|
-
# Required The Cloud Dataproc region in which to handle the request.
|
|
56
|
-
# @param [
|
|
57
|
-
# Required The cluster name.
|
|
54
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
55
|
+
# @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
|
|
58
56
|
# @param [String] fields
|
|
59
57
|
# Selector specifying which fields to include in a partial response.
|
|
60
58
|
# @param [String] quota_user
|
|
@@ -64,36 +62,35 @@ module Google
|
|
|
64
62
|
# Request-specific options
|
|
65
63
|
#
|
|
66
64
|
# @yield [result, err] Result & error if block supplied
|
|
67
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
65
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
|
68
66
|
# @yieldparam err [StandardError] error object if request failed
|
|
69
67
|
#
|
|
70
|
-
# @return [Google::Apis::DataprocV1::
|
|
68
|
+
# @return [Google::Apis::DataprocV1::Job]
|
|
71
69
|
#
|
|
72
70
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
73
71
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
74
72
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
75
|
-
def
|
|
76
|
-
command = make_simple_command(:
|
|
77
|
-
command.
|
|
78
|
-
command.
|
|
73
|
+
def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
74
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
|
|
75
|
+
command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
|
|
76
|
+
command.request_object = submit_job_request_object
|
|
77
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
78
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
|
79
79
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
80
80
|
command.params['region'] = region unless region.nil?
|
|
81
|
-
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
82
81
|
command.query['fields'] = fields unless fields.nil?
|
|
83
82
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
84
83
|
execute_or_queue_command(command, &block)
|
|
85
84
|
end
|
|
86
85
|
|
|
87
|
-
#
|
|
88
|
-
#
|
|
86
|
+
# Deletes the job from the project. If the job is active, the delete fails, and
|
|
87
|
+
# the response returns FAILED_PRECONDITION.
|
|
89
88
|
# @param [String] project_id
|
|
90
|
-
# Required The ID of the Google Cloud Platform project that the
|
|
91
|
-
# to.
|
|
89
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
|
92
90
|
# @param [String] region
|
|
93
|
-
# Required The Cloud Dataproc region in which to handle the request.
|
|
94
|
-
# @param [String]
|
|
95
|
-
# Required The
|
|
96
|
-
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
|
|
91
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
92
|
+
# @param [String] job_id
|
|
93
|
+
# Required. The job ID.
|
|
97
94
|
# @param [String] fields
|
|
98
95
|
# Selector specifying which fields to include in a partial response.
|
|
99
96
|
# @param [String] quota_user
|
|
@@ -103,50 +100,50 @@ module Google
|
|
|
103
100
|
# Request-specific options
|
|
104
101
|
#
|
|
105
102
|
# @yield [result, err] Result & error if block supplied
|
|
106
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
103
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
|
107
104
|
# @yieldparam err [StandardError] error object if request failed
|
|
108
105
|
#
|
|
109
|
-
# @return [Google::Apis::DataprocV1::
|
|
106
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
|
110
107
|
#
|
|
111
108
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
112
109
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
113
110
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
114
|
-
def
|
|
115
|
-
command = make_simple_command(:
|
|
116
|
-
command.
|
|
117
|
-
command.
|
|
118
|
-
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
119
|
-
command.response_class = Google::Apis::DataprocV1::Operation
|
|
111
|
+
def delete_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
112
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
|
113
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
|
114
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
|
120
115
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
121
116
|
command.params['region'] = region unless region.nil?
|
|
122
|
-
command.params['
|
|
117
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
123
118
|
command.query['fields'] = fields unless fields.nil?
|
|
124
119
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
125
120
|
execute_or_queue_command(command, &block)
|
|
126
121
|
end
|
|
127
122
|
|
|
128
|
-
# Lists
|
|
123
|
+
# Lists regions/`region`/jobs in a project.
|
|
129
124
|
# @param [String] project_id
|
|
130
|
-
# Required The ID of the Google Cloud Platform project that the
|
|
131
|
-
# to.
|
|
125
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
|
132
126
|
# @param [String] region
|
|
133
|
-
# Required The Cloud Dataproc region in which to handle the request.
|
|
127
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
128
|
+
# @param [String] cluster_name
|
|
129
|
+
# Optional. If set, the returned jobs list includes only jobs that were
|
|
130
|
+
# submitted to the named cluster.
|
|
134
131
|
# @param [String] filter
|
|
135
|
-
# Optional A filter constraining the
|
|
136
|
-
#
|
|
137
|
-
#
|
|
138
|
-
#
|
|
139
|
-
#
|
|
140
|
-
#
|
|
141
|
-
#
|
|
142
|
-
#
|
|
143
|
-
#
|
|
144
|
-
#
|
|
145
|
-
# labels.starred = *
|
|
132
|
+
# Optional. A filter constraining the jobs to list. Filters are case-sensitive
|
|
133
|
+
# and have the following syntax:field = value AND field = value ...where field
|
|
134
|
+
# is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
|
|
135
|
+
# match all values. status.state can be either ACTIVE or INACTIVE. Only the
|
|
136
|
+
# logical AND operator is supported; space-separated items are treated as having
|
|
137
|
+
# an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
|
|
138
|
+
# staging AND labels.starred = *
|
|
139
|
+
# @param [String] job_state_matcher
|
|
140
|
+
# Optional. Specifies enumerated categories of jobs to list (default = match ALL
|
|
141
|
+
# jobs).
|
|
146
142
|
# @param [String] page_token
|
|
147
|
-
# Optional The
|
|
143
|
+
# Optional. The page token, returned by a previous call, to request the next
|
|
144
|
+
# page of results.
|
|
148
145
|
# @param [Fixnum] page_size
|
|
149
|
-
# Optional The
|
|
146
|
+
# Optional. The number of results to return in each response.
|
|
150
147
|
# @param [String] fields
|
|
151
148
|
# Selector specifying which fields to include in a partial response.
|
|
152
149
|
# @param [String] quota_user
|
|
@@ -156,21 +153,23 @@ module Google
|
|
|
156
153
|
# Request-specific options
|
|
157
154
|
#
|
|
158
155
|
# @yield [result, err] Result & error if block supplied
|
|
159
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
156
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListJobsResponse] parsed result object
|
|
160
157
|
# @yieldparam err [StandardError] error object if request failed
|
|
161
158
|
#
|
|
162
|
-
# @return [Google::Apis::DataprocV1::
|
|
159
|
+
# @return [Google::Apis::DataprocV1::ListJobsResponse]
|
|
163
160
|
#
|
|
164
161
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
165
162
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
166
163
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
167
|
-
def
|
|
168
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/
|
|
169
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
170
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
164
|
+
def list_jobs(project_id, region, cluster_name: nil, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
165
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
|
|
166
|
+
command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
|
|
167
|
+
command.response_class = Google::Apis::DataprocV1::ListJobsResponse
|
|
171
168
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
172
169
|
command.params['region'] = region unless region.nil?
|
|
170
|
+
command.query['clusterName'] = cluster_name unless cluster_name.nil?
|
|
173
171
|
command.query['filter'] = filter unless filter.nil?
|
|
172
|
+
command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
|
|
174
173
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
175
174
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
176
175
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -178,13 +177,15 @@ module Google
|
|
|
178
177
|
execute_or_queue_command(command, &block)
|
|
179
178
|
end
|
|
180
179
|
|
|
181
|
-
#
|
|
180
|
+
# Starts a job cancellation request. To access the job resource after
|
|
181
|
+
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
|
|
182
182
|
# @param [String] project_id
|
|
183
|
-
# Required The ID of the Google Cloud Platform project that the
|
|
184
|
-
# to.
|
|
183
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
|
185
184
|
# @param [String] region
|
|
186
|
-
# Required The Cloud Dataproc region in which to handle the request.
|
|
187
|
-
# @param [
|
|
185
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
186
|
+
# @param [String] job_id
|
|
187
|
+
# Required. The job ID.
|
|
188
|
+
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
|
|
188
189
|
# @param [String] fields
|
|
189
190
|
# Selector specifying which fields to include in a partial response.
|
|
190
191
|
# @param [String] quota_user
|
|
@@ -194,62 +195,42 @@ module Google
|
|
|
194
195
|
# Request-specific options
|
|
195
196
|
#
|
|
196
197
|
# @yield [result, err] Result & error if block supplied
|
|
197
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
198
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
|
198
199
|
# @yieldparam err [StandardError] error object if request failed
|
|
199
200
|
#
|
|
200
|
-
# @return [Google::Apis::DataprocV1::
|
|
201
|
+
# @return [Google::Apis::DataprocV1::Job]
|
|
201
202
|
#
|
|
202
203
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
203
204
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
204
205
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
205
|
-
def
|
|
206
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/
|
|
207
|
-
command.request_representation = Google::Apis::DataprocV1::
|
|
208
|
-
command.request_object =
|
|
209
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
210
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
206
|
+
def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
207
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
|
|
208
|
+
command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
|
|
209
|
+
command.request_object = cancel_job_request_object
|
|
210
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
211
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
|
211
212
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
212
213
|
command.params['region'] = region unless region.nil?
|
|
214
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
213
215
|
command.query['fields'] = fields unless fields.nil?
|
|
214
216
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
215
217
|
execute_or_queue_command(command, &block)
|
|
216
218
|
end
|
|
217
219
|
|
|
218
|
-
# Updates a
|
|
220
|
+
# Updates a job in a project.
|
|
219
221
|
# @param [String] project_id
|
|
220
|
-
# Required The ID of the Google Cloud Platform project the
|
|
222
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
|
221
223
|
# @param [String] region
|
|
222
|
-
# Required The Cloud Dataproc region in which to handle the request.
|
|
223
|
-
# @param [String]
|
|
224
|
-
# Required The
|
|
225
|
-
# @param [Google::Apis::DataprocV1::
|
|
224
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
225
|
+
# @param [String] job_id
|
|
226
|
+
# Required. The job ID.
|
|
227
|
+
# @param [Google::Apis::DataprocV1::Job] job_object
|
|
226
228
|
# @param [String] update_mask
|
|
227
|
-
# Required Specifies the path, relative to <code>
|
|
228
|
-
# update. For example, to
|
|
229
|
-
#
|
|
230
|
-
#
|
|
231
|
-
# the
|
|
232
|
-
# `
|
|
233
|
-
# "config":`
|
|
234
|
-
# "workerConfig":`
|
|
235
|
-
# "numInstances":"5"
|
|
236
|
-
# `
|
|
237
|
-
# `
|
|
238
|
-
# `
|
|
239
|
-
# Similarly, to change the number of preemptible workers in a cluster to 5, the <
|
|
240
|
-
# code>update_mask</code> parameter would be <code>config.
|
|
241
|
-
# secondary_worker_config.num_instances</code>, and the PATCH request body would
|
|
242
|
-
# be set as follows:
|
|
243
|
-
# `
|
|
244
|
-
# "config":`
|
|
245
|
-
# "secondaryWorkerConfig":`
|
|
246
|
-
# "numInstances":"5"
|
|
247
|
-
# `
|
|
248
|
-
# `
|
|
249
|
-
# `
|
|
250
|
-
# <strong>Note:</strong> Currently, <code>config.worker_config.num_instances</
|
|
251
|
-
# code> and <code>config.secondary_worker_config.num_instances</code> are the
|
|
252
|
-
# only fields that can be updated.
|
|
229
|
+
# Required. Specifies the path, relative to <code>Job</code>, of the field to
|
|
230
|
+
# update. For example, to update the labels of a Job the <code>update_mask</code>
|
|
231
|
+
# parameter would be specified as <code>labels</code>, and the PATCH request
|
|
232
|
+
# body would specify the new value. <strong>Note:</strong> Currently, <code>
|
|
233
|
+
# labels</code> is the only field that can be updated.
|
|
253
234
|
# @param [String] fields
|
|
254
235
|
# Selector specifying which fields to include in a partial response.
|
|
255
236
|
# @param [String] quota_user
|
|
@@ -259,37 +240,36 @@ module Google
|
|
|
259
240
|
# Request-specific options
|
|
260
241
|
#
|
|
261
242
|
# @yield [result, err] Result & error if block supplied
|
|
262
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
243
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
|
263
244
|
# @yieldparam err [StandardError] error object if request failed
|
|
264
245
|
#
|
|
265
|
-
# @return [Google::Apis::DataprocV1::
|
|
246
|
+
# @return [Google::Apis::DataprocV1::Job]
|
|
266
247
|
#
|
|
267
248
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
268
249
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
269
250
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
270
|
-
def
|
|
271
|
-
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/
|
|
272
|
-
command.request_representation = Google::Apis::DataprocV1::
|
|
273
|
-
command.request_object =
|
|
274
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
275
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
251
|
+
def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
252
|
+
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
|
253
|
+
command.request_representation = Google::Apis::DataprocV1::Job::Representation
|
|
254
|
+
command.request_object = job_object
|
|
255
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
256
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
|
276
257
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
277
258
|
command.params['region'] = region unless region.nil?
|
|
278
|
-
command.params['
|
|
259
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
279
260
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
280
261
|
command.query['fields'] = fields unless fields.nil?
|
|
281
262
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
282
263
|
execute_or_queue_command(command, &block)
|
|
283
264
|
end
|
|
284
265
|
|
|
285
|
-
# Gets the resource representation for a
|
|
266
|
+
# Gets the resource representation for a job in a project.
|
|
286
267
|
# @param [String] project_id
|
|
287
|
-
# Required The ID of the Google Cloud Platform project that the
|
|
288
|
-
# to.
|
|
268
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
|
289
269
|
# @param [String] region
|
|
290
|
-
# Required The Cloud Dataproc region in which to handle the request.
|
|
291
|
-
# @param [String]
|
|
292
|
-
# Required The
|
|
270
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
271
|
+
# @param [String] job_id
|
|
272
|
+
# Required. The job ID.
|
|
293
273
|
# @param [String] fields
|
|
294
274
|
# Selector specifying which fields to include in a partial response.
|
|
295
275
|
# @param [String] quota_user
|
|
@@ -299,36 +279,36 @@ module Google
|
|
|
299
279
|
# Request-specific options
|
|
300
280
|
#
|
|
301
281
|
# @yield [result, err] Result & error if block supplied
|
|
302
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
282
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
|
303
283
|
# @yieldparam err [StandardError] error object if request failed
|
|
304
284
|
#
|
|
305
|
-
# @return [Google::Apis::DataprocV1::
|
|
285
|
+
# @return [Google::Apis::DataprocV1::Job]
|
|
306
286
|
#
|
|
307
287
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
308
288
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
309
289
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
310
|
-
def
|
|
311
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/
|
|
312
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
313
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
290
|
+
def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
291
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
|
292
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
293
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
|
314
294
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
315
295
|
command.params['region'] = region unless region.nil?
|
|
316
|
-
command.params['
|
|
296
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
317
297
|
command.query['fields'] = fields unless fields.nil?
|
|
318
298
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
319
299
|
execute_or_queue_command(command, &block)
|
|
320
300
|
end
|
|
321
301
|
|
|
322
|
-
#
|
|
323
|
-
#
|
|
324
|
-
#
|
|
325
|
-
#
|
|
326
|
-
#
|
|
327
|
-
#
|
|
328
|
-
#
|
|
329
|
-
#
|
|
330
|
-
#
|
|
331
|
-
#
|
|
302
|
+
# Gets cluster diagnostic information. After the operation completes, the
|
|
303
|
+
# Operation.response field contains DiagnoseClusterOutputLocation.
|
|
304
|
+
# @param [String] project_id
|
|
305
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
|
306
|
+
# to.
|
|
307
|
+
# @param [String] region
|
|
308
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
309
|
+
# @param [String] cluster_name
|
|
310
|
+
# Required. The cluster name.
|
|
311
|
+
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
|
|
332
312
|
# @param [String] fields
|
|
333
313
|
# Selector specifying which fields to include in a partial response.
|
|
334
314
|
# @param [String] quota_user
|
|
@@ -338,30 +318,36 @@ module Google
|
|
|
338
318
|
# Request-specific options
|
|
339
319
|
#
|
|
340
320
|
# @yield [result, err] Result & error if block supplied
|
|
341
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
321
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
|
342
322
|
# @yieldparam err [StandardError] error object if request failed
|
|
343
323
|
#
|
|
344
|
-
# @return [Google::Apis::DataprocV1::
|
|
324
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
|
345
325
|
#
|
|
346
326
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
347
327
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
348
328
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
349
|
-
def
|
|
350
|
-
command = make_simple_command(:post, 'v1/{
|
|
351
|
-
command.
|
|
352
|
-
command.
|
|
353
|
-
command.
|
|
329
|
+
def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
330
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
|
|
331
|
+
command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
|
|
332
|
+
command.request_object = diagnose_cluster_request_object
|
|
333
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
334
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
|
335
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
336
|
+
command.params['region'] = region unless region.nil?
|
|
337
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
354
338
|
command.query['fields'] = fields unless fields.nil?
|
|
355
339
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
356
340
|
execute_or_queue_command(command, &block)
|
|
357
341
|
end
|
|
358
342
|
|
|
359
|
-
# Deletes a
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
# @param [String]
|
|
364
|
-
# The
|
|
343
|
+
# Deletes a cluster in a project.
|
|
344
|
+
# @param [String] project_id
|
|
345
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
|
346
|
+
# to.
|
|
347
|
+
# @param [String] region
|
|
348
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
349
|
+
# @param [String] cluster_name
|
|
350
|
+
# Required. The cluster name.
|
|
365
351
|
# @param [String] fields
|
|
366
352
|
# Selector specifying which fields to include in a partial response.
|
|
367
353
|
# @param [String] quota_user
|
|
@@ -371,36 +357,48 @@ module Google
|
|
|
371
357
|
# Request-specific options
|
|
372
358
|
#
|
|
373
359
|
# @yield [result, err] Result & error if block supplied
|
|
374
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
360
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
|
375
361
|
# @yieldparam err [StandardError] error object if request failed
|
|
376
362
|
#
|
|
377
|
-
# @return [Google::Apis::DataprocV1::
|
|
363
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
|
378
364
|
#
|
|
379
365
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
380
366
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
381
367
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
382
|
-
def
|
|
383
|
-
command = make_simple_command(:delete, 'v1/{
|
|
384
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
385
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
386
|
-
command.params['
|
|
368
|
+
def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
369
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
|
370
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
371
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
|
372
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
373
|
+
command.params['region'] = region unless region.nil?
|
|
374
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
387
375
|
command.query['fields'] = fields unless fields.nil?
|
|
388
376
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
389
377
|
execute_or_queue_command(command, &block)
|
|
390
378
|
end
|
|
391
379
|
|
|
392
|
-
# Lists
|
|
393
|
-
#
|
|
394
|
-
#
|
|
395
|
-
#
|
|
396
|
-
# @param [String]
|
|
397
|
-
# The
|
|
380
|
+
# Lists all regions/`region`/clusters in a project.
|
|
381
|
+
# @param [String] project_id
|
|
382
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
|
383
|
+
# to.
|
|
384
|
+
# @param [String] region
|
|
385
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
386
|
+
# @param [String] filter
|
|
387
|
+
# Optional. A filter constraining the clusters to list. Filters are case-
|
|
388
|
+
# sensitive and have the following syntax:field = value AND field = value ...
|
|
389
|
+
# where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is
|
|
390
|
+
# a label key. value can be * to match all values. status.state can be one of
|
|
391
|
+
# the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or
|
|
392
|
+
# UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE
|
|
393
|
+
# contains the DELETING and ERROR states. clusterName is the name of the cluster
|
|
394
|
+
# provided at creation time. Only the logical AND operator is supported; space-
|
|
395
|
+
# separated items are treated as having an implicit AND operator.Example filter:
|
|
396
|
+
# status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND
|
|
397
|
+
# labels.starred = *
|
|
398
398
|
# @param [String] page_token
|
|
399
|
-
# The standard
|
|
399
|
+
# Optional. The standard List page token.
|
|
400
400
|
# @param [Fixnum] page_size
|
|
401
|
-
# The standard
|
|
402
|
-
# @param [String] filter
|
|
403
|
-
# The standard list filter.
|
|
401
|
+
# Optional. The standard List page size.
|
|
404
402
|
# @param [String] fields
|
|
405
403
|
# Selector specifying which fields to include in a partial response.
|
|
406
404
|
# @param [String] quota_user
|
|
@@ -410,31 +408,35 @@ module Google
|
|
|
410
408
|
# Request-specific options
|
|
411
409
|
#
|
|
412
410
|
# @yield [result, err] Result & error if block supplied
|
|
413
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
411
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListClustersResponse] parsed result object
|
|
414
412
|
# @yieldparam err [StandardError] error object if request failed
|
|
415
413
|
#
|
|
416
|
-
# @return [Google::Apis::DataprocV1::
|
|
414
|
+
# @return [Google::Apis::DataprocV1::ListClustersResponse]
|
|
417
415
|
#
|
|
418
416
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
419
417
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
420
418
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
421
|
-
def
|
|
422
|
-
command = make_simple_command(:get, 'v1/{
|
|
423
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
424
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
425
|
-
command.params['
|
|
419
|
+
def list_clusters(project_id, region, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
420
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
|
421
|
+
command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation
|
|
422
|
+
command.response_class = Google::Apis::DataprocV1::ListClustersResponse
|
|
423
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
424
|
+
command.params['region'] = region unless region.nil?
|
|
425
|
+
command.query['filter'] = filter unless filter.nil?
|
|
426
426
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
427
427
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
428
|
-
command.query['filter'] = filter unless filter.nil?
|
|
429
428
|
command.query['fields'] = fields unless fields.nil?
|
|
430
429
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
431
430
|
execute_or_queue_command(command, &block)
|
|
432
431
|
end
|
|
433
432
|
|
|
434
|
-
#
|
|
435
|
-
#
|
|
436
|
-
#
|
|
437
|
-
#
|
|
433
|
+
# Creates a cluster in a project.
|
|
434
|
+
# @param [String] project_id
|
|
435
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
|
436
|
+
# to.
|
|
437
|
+
# @param [String] region
|
|
438
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
439
|
+
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
|
438
440
|
# @param [String] fields
|
|
439
441
|
# Selector specifying which fields to include in a partial response.
|
|
440
442
|
# @param [String] quota_user
|
|
@@ -452,25 +454,27 @@ module Google
|
|
|
452
454
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
453
455
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
454
456
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
455
|
-
def
|
|
456
|
-
command = make_simple_command(:
|
|
457
|
+
def create_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
458
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
|
459
|
+
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
|
460
|
+
command.request_object = cluster_object
|
|
457
461
|
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
458
462
|
command.response_class = Google::Apis::DataprocV1::Operation
|
|
459
|
-
command.params['
|
|
463
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
464
|
+
command.params['region'] = region unless region.nil?
|
|
460
465
|
command.query['fields'] = fields unless fields.nil?
|
|
461
466
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
462
467
|
execute_or_queue_command(command, &block)
|
|
463
468
|
end
|
|
464
469
|
|
|
465
|
-
#
|
|
466
|
-
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
|
|
470
|
+
# Gets the resource representation for a cluster in a project.
|
|
467
471
|
# @param [String] project_id
|
|
468
|
-
# Required The ID of the Google Cloud Platform project that the
|
|
472
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
|
473
|
+
# to.
|
|
469
474
|
# @param [String] region
|
|
470
|
-
# Required The Cloud Dataproc region in which to handle the request.
|
|
471
|
-
# @param [String]
|
|
472
|
-
# Required The
|
|
473
|
-
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
|
|
475
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
476
|
+
# @param [String] cluster_name
|
|
477
|
+
# Required. The cluster name.
|
|
474
478
|
# @param [String] fields
|
|
475
479
|
# Selector specifying which fields to include in a partial response.
|
|
476
480
|
# @param [String] quota_user
|
|
@@ -480,42 +484,63 @@ module Google
|
|
|
480
484
|
# Request-specific options
|
|
481
485
|
#
|
|
482
486
|
# @yield [result, err] Result & error if block supplied
|
|
483
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
487
|
+
# @yieldparam result [Google::Apis::DataprocV1::Cluster] parsed result object
|
|
484
488
|
# @yieldparam err [StandardError] error object if request failed
|
|
485
489
|
#
|
|
486
|
-
# @return [Google::Apis::DataprocV1::
|
|
490
|
+
# @return [Google::Apis::DataprocV1::Cluster]
|
|
487
491
|
#
|
|
488
492
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
489
493
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
490
494
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
491
|
-
def
|
|
492
|
-
command = make_simple_command(:
|
|
493
|
-
command.
|
|
494
|
-
command.
|
|
495
|
-
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
496
|
-
command.response_class = Google::Apis::DataprocV1::Job
|
|
495
|
+
def get_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
496
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
|
497
|
+
command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
|
|
498
|
+
command.response_class = Google::Apis::DataprocV1::Cluster
|
|
497
499
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
498
500
|
command.params['region'] = region unless region.nil?
|
|
499
|
-
command.params['
|
|
501
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
500
502
|
command.query['fields'] = fields unless fields.nil?
|
|
501
503
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
502
504
|
execute_or_queue_command(command, &block)
|
|
503
505
|
end
|
|
504
506
|
|
|
505
|
-
# Updates a
|
|
507
|
+
# Updates a cluster in a project.
|
|
506
508
|
# @param [String] project_id
|
|
507
|
-
# Required The ID of the Google Cloud Platform project
|
|
509
|
+
# Required. The ID of the Google Cloud Platform project the cluster belongs to.
|
|
508
510
|
# @param [String] region
|
|
509
|
-
# Required The Cloud Dataproc region in which to handle the request.
|
|
510
|
-
# @param [String]
|
|
511
|
-
# Required The
|
|
512
|
-
# @param [Google::Apis::DataprocV1::
|
|
511
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
|
512
|
+
# @param [String] cluster_name
|
|
513
|
+
# Required. The cluster name.
|
|
514
|
+
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
|
513
515
|
# @param [String] update_mask
|
|
514
|
-
# Required Specifies the path, relative to
|
|
515
|
-
#
|
|
516
|
-
# parameter would be specified as
|
|
517
|
-
# body would specify the new value
|
|
518
|
-
#
|
|
516
|
+
# Required. Specifies the path, relative to Cluster, of the field to update. For
|
|
517
|
+
# example, to change the number of workers in a cluster to 5, the update_mask
|
|
518
|
+
# parameter would be specified as config.worker_config.num_instances, and the
|
|
519
|
+
# PATCH request body would specify the new value, as follows:
|
|
520
|
+
# `
|
|
521
|
+
# "config":`
|
|
522
|
+
# "workerConfig":`
|
|
523
|
+
# "numInstances":"5"
|
|
524
|
+
# `
|
|
525
|
+
# `
|
|
526
|
+
# `
|
|
527
|
+
# Similarly, to change the number of preemptible workers in a cluster to 5, the
|
|
528
|
+
# update_mask parameter would be config.secondary_worker_config.num_instances,
|
|
529
|
+
# and the PATCH request body would be set as follows:
|
|
530
|
+
# `
|
|
531
|
+
# "config":`
|
|
532
|
+
# "secondaryWorkerConfig":`
|
|
533
|
+
# "numInstances":"5"
|
|
534
|
+
# `
|
|
535
|
+
# `
|
|
536
|
+
# `
|
|
537
|
+
# <strong>Note:</strong> Currently, only the following fields can be updated:<
|
|
538
|
+
# table> <tbody> <tr> <td><strong>Mask</strong></td> <td><strong>Purpose</
|
|
539
|
+
# strong></td> </tr> <tr> <td><strong><em>labels</em></strong></td> <td>
|
|
540
|
+
# Update labels</td> </tr> <tr> <td><strong><em>config.worker_config.
|
|
541
|
+
# num_instances</em></strong></td> <td>Resize primary worker group</td> </tr>
|
|
542
|
+
# <tr> <td><strong><em>config.secondary_worker_config.num_instances</em></
|
|
543
|
+
# strong></td> <td>Resize secondary worker group</td> </tr> </tbody> </table>
|
|
519
544
|
# @param [String] fields
|
|
520
545
|
# Selector specifying which fields to include in a partial response.
|
|
521
546
|
# @param [String] quota_user
|
|
@@ -525,36 +550,39 @@ module Google
|
|
|
525
550
|
# Request-specific options
|
|
526
551
|
#
|
|
527
552
|
# @yield [result, err] Result & error if block supplied
|
|
528
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
553
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
|
529
554
|
# @yieldparam err [StandardError] error object if request failed
|
|
530
555
|
#
|
|
531
|
-
# @return [Google::Apis::DataprocV1::
|
|
556
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
|
532
557
|
#
|
|
533
558
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
534
559
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
535
560
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
536
|
-
def
|
|
537
|
-
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/
|
|
538
|
-
command.request_representation = Google::Apis::DataprocV1::
|
|
539
|
-
command.request_object =
|
|
540
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
541
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
561
|
+
def patch_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
562
|
+
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
|
563
|
+
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
|
564
|
+
command.request_object = cluster_object
|
|
565
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
566
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
|
542
567
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
543
568
|
command.params['region'] = region unless region.nil?
|
|
544
|
-
command.params['
|
|
569
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
545
570
|
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
546
571
|
command.query['fields'] = fields unless fields.nil?
|
|
547
572
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
548
573
|
execute_or_queue_command(command, &block)
|
|
549
574
|
end
|
|
550
575
|
|
|
551
|
-
#
|
|
552
|
-
#
|
|
553
|
-
#
|
|
554
|
-
#
|
|
555
|
-
#
|
|
556
|
-
#
|
|
557
|
-
#
|
|
576
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
577
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
578
|
+
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
|
579
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
580
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
581
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
582
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
|
583
|
+
# corresponding to Code.CANCELLED.
|
|
584
|
+
# @param [String] name
|
|
585
|
+
# The name of the operation resource to be cancelled.
|
|
558
586
|
# @param [String] fields
|
|
559
587
|
# Selector specifying which fields to include in a partial response.
|
|
560
588
|
# @param [String] quota_user
|
|
@@ -564,32 +592,30 @@ module Google
|
|
|
564
592
|
# Request-specific options
|
|
565
593
|
#
|
|
566
594
|
# @yield [result, err] Result & error if block supplied
|
|
567
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
595
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
|
568
596
|
# @yieldparam err [StandardError] error object if request failed
|
|
569
597
|
#
|
|
570
|
-
# @return [Google::Apis::DataprocV1::
|
|
598
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
|
571
599
|
#
|
|
572
600
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
573
601
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
574
602
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
575
|
-
def
|
|
576
|
-
command = make_simple_command(:
|
|
577
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
578
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
579
|
-
command.params['
|
|
580
|
-
command.params['region'] = region unless region.nil?
|
|
581
|
-
command.params['jobId'] = job_id unless job_id.nil?
|
|
603
|
+
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
604
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
605
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
|
606
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
|
607
|
+
command.params['name'] = name unless name.nil?
|
|
582
608
|
command.query['fields'] = fields unless fields.nil?
|
|
583
609
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
584
610
|
execute_or_queue_command(command, &block)
|
|
585
611
|
end
|
|
586
612
|
|
|
587
|
-
#
|
|
588
|
-
#
|
|
589
|
-
#
|
|
590
|
-
#
|
|
591
|
-
#
|
|
592
|
-
#
|
|
613
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
614
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
615
|
+
# If the server doesn't support this method, it returns google.rpc.Code.
|
|
616
|
+
# UNIMPLEMENTED.
|
|
617
|
+
# @param [String] name
|
|
618
|
+
# The name of the operation resource to be deleted.
|
|
593
619
|
# @param [String] fields
|
|
594
620
|
# Selector specifying which fields to include in a partial response.
|
|
595
621
|
# @param [String] quota_user
|
|
@@ -599,35 +625,36 @@ module Google
|
|
|
599
625
|
# Request-specific options
|
|
600
626
|
#
|
|
601
627
|
# @yield [result, err] Result & error if block supplied
|
|
602
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
628
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
|
603
629
|
# @yieldparam err [StandardError] error object if request failed
|
|
604
630
|
#
|
|
605
|
-
# @return [Google::Apis::DataprocV1::
|
|
631
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
|
606
632
|
#
|
|
607
633
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
608
634
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
609
635
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
610
|
-
def
|
|
611
|
-
command = make_simple_command(:
|
|
612
|
-
command.
|
|
613
|
-
command.
|
|
614
|
-
command.
|
|
615
|
-
command.response_class = Google::Apis::DataprocV1::Job
|
|
616
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
|
617
|
-
command.params['region'] = region unless region.nil?
|
|
636
|
+
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
637
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
638
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
|
639
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
|
640
|
+
command.params['name'] = name unless name.nil?
|
|
618
641
|
command.query['fields'] = fields unless fields.nil?
|
|
619
642
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
620
643
|
execute_or_queue_command(command, &block)
|
|
621
644
|
end
|
|
622
645
|
|
|
623
|
-
#
|
|
624
|
-
#
|
|
625
|
-
#
|
|
626
|
-
#
|
|
627
|
-
# @param [String]
|
|
628
|
-
#
|
|
629
|
-
# @param [String]
|
|
630
|
-
#
|
|
646
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
647
|
+
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
|
648
|
+
# below allows API services to override the binding to use different resource
|
|
649
|
+
# name schemes, such as users/*/operations.
|
|
650
|
+
# @param [String] name
|
|
651
|
+
# The name of the operation collection.
|
|
652
|
+
# @param [String] filter
|
|
653
|
+
# The standard list filter.
|
|
654
|
+
# @param [String] page_token
|
|
655
|
+
# The standard list page token.
|
|
656
|
+
# @param [Fixnum] page_size
|
|
657
|
+
# The standard list page size.
|
|
631
658
|
# @param [String] fields
|
|
632
659
|
# Selector specifying which fields to include in a partial response.
|
|
633
660
|
# @param [String] quota_user
|
|
@@ -637,50 +664,31 @@ module Google
|
|
|
637
664
|
# Request-specific options
|
|
638
665
|
#
|
|
639
666
|
# @yield [result, err] Result & error if block supplied
|
|
640
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
667
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListOperationsResponse] parsed result object
|
|
641
668
|
# @yieldparam err [StandardError] error object if request failed
|
|
642
669
|
#
|
|
643
|
-
# @return [Google::Apis::DataprocV1::
|
|
670
|
+
# @return [Google::Apis::DataprocV1::ListOperationsResponse]
|
|
644
671
|
#
|
|
645
672
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
646
673
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
647
674
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
648
|
-
def
|
|
649
|
-
command = make_simple_command(:
|
|
650
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
651
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
652
|
-
command.params['
|
|
653
|
-
command.
|
|
654
|
-
command.
|
|
675
|
+
def list_operations(name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
676
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
677
|
+
command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
|
|
678
|
+
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
|
|
679
|
+
command.params['name'] = name unless name.nil?
|
|
680
|
+
command.query['filter'] = filter unless filter.nil?
|
|
681
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
682
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
655
683
|
command.query['fields'] = fields unless fields.nil?
|
|
656
684
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
657
685
|
execute_or_queue_command(command, &block)
|
|
658
686
|
end
|
|
659
687
|
|
|
660
|
-
#
|
|
661
|
-
#
|
|
662
|
-
#
|
|
663
|
-
#
|
|
664
|
-
# Required The Cloud Dataproc region in which to handle the request.
|
|
665
|
-
# @param [String] page_token
|
|
666
|
-
# Optional The page token, returned by a previous call, to request the next page
|
|
667
|
-
# of results.
|
|
668
|
-
# @param [Fixnum] page_size
|
|
669
|
-
# Optional The number of results to return in each response.
|
|
670
|
-
# @param [String] cluster_name
|
|
671
|
-
# Optional If set, the returned jobs list includes only jobs that were submitted
|
|
672
|
-
# to the named cluster.
|
|
673
|
-
# @param [String] filter
|
|
674
|
-
# Optional A filter constraining the jobs to list. Filters are case-sensitive
|
|
675
|
-
# and have the following syntax:field = value AND field = value ...where field
|
|
676
|
-
# is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
|
|
677
|
-
# match all values. status.state can be either ACTIVE or INACTIVE. Only the
|
|
678
|
-
# logical AND operator is supported; space-separated items are treated as having
|
|
679
|
-
# an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
|
|
680
|
-
# staging AND labels.starred = *
|
|
681
|
-
# @param [String] job_state_matcher
|
|
682
|
-
# Optional Specifies enumerated categories of jobs to list (default = match ALL
|
|
683
|
-
# jobs).
|
|
688
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
689
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
690
|
+
# @param [String] name
|
|
691
|
+
# The name of the operation resource.
|
|
684
692
|
# @param [String] fields
|
|
685
693
|
# Selector specifying which fields to include in a partial response.
|
|
686
694
|
# @param [String] quota_user
|
|
@@ -690,25 +698,19 @@ module Google
|
|
|
690
698
|
# Request-specific options
|
|
691
699
|
#
|
|
692
700
|
# @yield [result, err] Result & error if block supplied
|
|
693
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
701
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
|
694
702
|
# @yieldparam err [StandardError] error object if request failed
|
|
695
703
|
#
|
|
696
|
-
# @return [Google::Apis::DataprocV1::
|
|
704
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
|
697
705
|
#
|
|
698
706
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
699
707
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
700
708
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
701
|
-
def
|
|
702
|
-
command = make_simple_command(:get, 'v1/
|
|
703
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
704
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
705
|
-
command.params['
|
|
706
|
-
command.params['region'] = region unless region.nil?
|
|
707
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
708
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
|
709
|
-
command.query['clusterName'] = cluster_name unless cluster_name.nil?
|
|
710
|
-
command.query['filter'] = filter unless filter.nil?
|
|
711
|
-
command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
|
|
709
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
710
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
711
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
712
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
|
713
|
+
command.params['name'] = name unless name.nil?
|
|
712
714
|
command.query['fields'] = fields unless fields.nil?
|
|
713
715
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
714
716
|
execute_or_queue_command(command, &block)
|