google-api-client 0.9.8 → 0.10.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/.travis.yml +15 -8
- data/CHANGELOG.md +84 -0
- data/Gemfile +10 -2
- data/README.md +10 -2
- data/api_names.yaml +37172 -135
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
- data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
- data/generated/google/apis/admin_directory_v1/service.rb +41 -2
- data/generated/google/apis/admin_reports_v1.rb +5 -5
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +379 -3
- data/generated/google/apis/analytics_v3/representations.rb +136 -0
- data/generated/google/apis/analytics_v3/service.rb +256 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
- data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
- data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
- data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
- data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
- data/generated/google/apis/appengine_v1beta5.rb +7 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
- data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
- data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
- data/generated/google/apis/appsactivity_v1.rb +3 -3
- data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
- data/generated/google/apis/appsactivity_v1/service.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 +360 -38
- data/generated/google/apis/bigquery_v2/representations.rb +106 -0
- data/generated/google/apis/bigquery_v2/service.rb +18 -4
- data/generated/google/apis/books_v1.rb +2 -2
- data/generated/google/apis/books_v1/classes.rb +83 -0
- data/generated/google/apis/books_v1/representations.rb +35 -0
- data/generated/google/apis/books_v1/service.rb +7 -3
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +208 -5
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/civicinfo_v2.rb +3 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
- data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
- data/generated/google/apis/civicinfo_v2/service.rb +27 -6
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -761
- data/generated/google/apis/classroom_v1/representations.rb +263 -198
- data/generated/google/apis/classroom_v1/service.rb +1349 -672
- data/generated/google/apis/cloudbilling_v1.rb +3 -3
- data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
- data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
- data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
- data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
- data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
- data/generated/google/apis/clouddebugger_v2.rb +5 -8
- data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
- data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
- data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
- data/generated/google/apis/cloudkms_v1.rb +35 -0
- data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1/service.rb +933 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
- 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 +1529 -167
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
- data/generated/google/apis/cloudtrace_v1.rb +9 -9
- data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
- data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
- data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +7007 -3648
- data/generated/google/apis/compute_beta/representations.rb +1459 -120
- data/generated/google/apis/compute_beta/service.rb +7943 -3726
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +2567 -370
- data/generated/google/apis/compute_v1/representations.rb +855 -0
- data/generated/google/apis/compute_v1/service.rb +6388 -2908
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +287 -16
- data/generated/google/apis/container_v1/representations.rb +113 -2
- data/generated/google/apis/container_v1/service.rb +130 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +778 -10
- data/generated/google/apis/content_v2/representations.rb +339 -0
- data/generated/google/apis/content_v2/service.rb +364 -49
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
- data/generated/google/apis/dataproc_v1/representations.rb +299 -225
- data/generated/google/apis/dataproc_v1/service.rb +277 -192
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
- data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +595 -37
- data/generated/google/apis/drive_v2/representations.rb +140 -0
- data/generated/google/apis/drive_v2/service.rb +406 -40
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +507 -40
- data/generated/google/apis/drive_v3/representations.rb +105 -0
- data/generated/google/apis/drive_v3/service.rb +326 -29
- data/generated/google/apis/fitness_v1.rb +38 -2
- data/generated/google/apis/fitness_v1/classes.rb +65 -7
- data/generated/google/apis/fitness_v1/representations.rb +20 -0
- data/generated/google/apis/fitness_v1/service.rb +17 -18
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +10 -12
- data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
- data/generated/google/apis/genomics_v1/representations.rb +468 -496
- data/generated/google/apis/genomics_v1/service.rb +978 -882
- data/generated/google/apis/gmail_v1.rb +11 -2
- data/generated/google/apis/gmail_v1/classes.rb +655 -5
- data/generated/google/apis/gmail_v1/representations.rb +261 -0
- data/generated/google/apis/gmail_v1/service.rb +1211 -48
- data/generated/google/apis/groupssettings_v1.rb +2 -2
- data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
- data/generated/google/apis/iam_v1.rb +2 -2
- data/generated/google/apis/iam_v1/classes.rb +446 -368
- data/generated/google/apis/iam_v1/representations.rb +109 -91
- data/generated/google/apis/iam_v1/service.rb +249 -162
- data/generated/google/apis/identitytoolkit_v3.rb +7 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
- data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
- data/generated/google/apis/kgsearch_v1.rb +2 -3
- data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
- data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
- data/generated/google/apis/kgsearch_v1/service.rb +26 -24
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +185 -0
- data/generated/google/apis/licensing_v1.rb +3 -3
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +6 -6
- data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
- data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
- data/generated/google/apis/logging_v2beta1/service.rb +427 -155
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -0
- data/generated/google/apis/mirror_v1.rb +2 -2
- data/generated/google/apis/mirror_v1/service.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2.rb +1 -1
- data/generated/google/apis/partners_v2.rb +3 -3
- data/generated/google/apis/partners_v2/classes.rb +1831 -477
- data/generated/google/apis/partners_v2/representations.rb +571 -114
- data/generated/google/apis/partners_v2/service.rb +898 -167
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +1047 -859
- data/generated/google/apis/people_v1/representations.rb +252 -213
- data/generated/google/apis/people_v1/service.rb +75 -62
- 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 +527 -456
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +363 -310
- data/generated/google/apis/pubsub_v1/representations.rb +76 -76
- data/generated/google/apis/pubsub_v1/service.rb +464 -335
- data/generated/google/apis/qpx_express_v1.rb +1 -1
- data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2.rb +1 -1
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +222 -61
- data/generated/google/apis/reseller_v1/representations.rb +28 -0
- data/generated/google/apis/reseller_v1/service.rb +240 -47
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +151 -137
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
- data/generated/google/apis/sheets_v4/representations.rb +988 -737
- data/generated/google/apis/sheets_v4/service.rb +266 -99
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4480 -0
- data/generated/google/apis/slides_v1/representations.rb +1926 -0
- data/generated/google/apis/slides_v1/service.rb +245 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
- data/generated/google/apis/speech_v1beta1/service.rb +270 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +205 -21
- data/generated/google/apis/storage_v1/representations.rb +51 -1
- data/generated/google/apis/storage_v1/service.rb +263 -9
- data/generated/google/apis/tagmanager_v1.rb +5 -5
- data/generated/google/apis/translate_v2.rb +2 -2
- data/generated/google/apis/translate_v2/service.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1275 -731
- data/generated/google/apis/vision_v1/representations.rb +378 -111
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
- data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +430 -22
- data/generated/google/apis/youtube_v3/representations.rb +171 -4
- data/generated/google/apis/youtube_v3/service.rb +100 -9
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
- data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
- data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
- data/google-api-client.gemspec +4 -3
- data/lib/google/apis/core/api_command.rb +16 -6
- data/lib/google/apis/core/base_service.rb +17 -9
- data/lib/google/apis/core/download.rb +7 -2
- data/lib/google/apis/core/http_command.rb +5 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/core/upload.rb +7 -1
- data/lib/google/apis/errors.rb +6 -2
- data/lib/google/apis/generator/annotator.rb +6 -0
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +1 -1
- data/samples/cli/lib/samples/gmail.rb +74 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- data/sync.rb +71 -0
- metadata +86 -18
|
@@ -46,13 +46,14 @@ module Google
|
|
|
46
46
|
super('https://dataproc.googleapis.com/', '')
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
#
|
|
49
|
+
# Gets the resource representation for a cluster in a project.
|
|
50
50
|
# @param [String] project_id
|
|
51
|
-
#
|
|
52
|
-
#
|
|
51
|
+
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
|
52
|
+
# to.
|
|
53
53
|
# @param [String] region
|
|
54
|
-
#
|
|
55
|
-
# @param [
|
|
54
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
55
|
+
# @param [String] cluster_name
|
|
56
|
+
# Required The cluster name.
|
|
56
57
|
# @param [String] fields
|
|
57
58
|
# Selector specifying which fields to include in a partial response.
|
|
58
59
|
# @param [String] quota_user
|
|
@@ -62,22 +63,21 @@ module Google
|
|
|
62
63
|
# Request-specific options
|
|
63
64
|
#
|
|
64
65
|
# @yield [result, err] Result & error if block supplied
|
|
65
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
66
|
+
# @yieldparam result [Google::Apis::DataprocV1::Cluster] parsed result object
|
|
66
67
|
# @yieldparam err [StandardError] error object if request failed
|
|
67
68
|
#
|
|
68
|
-
# @return [Google::Apis::DataprocV1::
|
|
69
|
+
# @return [Google::Apis::DataprocV1::Cluster]
|
|
69
70
|
#
|
|
70
71
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
71
72
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
72
73
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
73
|
-
def
|
|
74
|
-
command = make_simple_command(:
|
|
75
|
-
command.
|
|
76
|
-
command.
|
|
77
|
-
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
78
|
-
command.response_class = Google::Apis::DataprocV1::Operation
|
|
74
|
+
def get_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
75
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
|
76
|
+
command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
|
|
77
|
+
command.response_class = Google::Apis::DataprocV1::Cluster
|
|
79
78
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
80
79
|
command.params['region'] = region unless region.nil?
|
|
80
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
81
81
|
command.query['fields'] = fields unless fields.nil?
|
|
82
82
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
83
83
|
execute_or_queue_command(command, &block)
|
|
@@ -85,24 +85,39 @@ module Google
|
|
|
85
85
|
|
|
86
86
|
# Updates a cluster in a project.
|
|
87
87
|
# @param [String] project_id
|
|
88
|
-
#
|
|
88
|
+
# Required The ID of the Google Cloud Platform project the cluster belongs to.
|
|
89
89
|
# @param [String] region
|
|
90
|
-
#
|
|
90
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
91
91
|
# @param [String] cluster_name
|
|
92
|
-
#
|
|
92
|
+
# Required The cluster name.
|
|
93
93
|
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
|
94
94
|
# @param [String] update_mask
|
|
95
|
-
#
|
|
96
|
-
# For example, to change the number of workers in a cluster to 5, the
|
|
97
|
-
# update_mask parameter would be specified as config.
|
|
98
|
-
# and the
|
|
99
|
-
#
|
|
100
|
-
#
|
|
101
|
-
#
|
|
102
|
-
#
|
|
103
|
-
# numInstances":"5"
|
|
104
|
-
#
|
|
105
|
-
#
|
|
95
|
+
# Required Specifies the path, relative to <code>Cluster</code>, of the field to
|
|
96
|
+
# update. For example, to change the number of workers in a cluster to 5, the <
|
|
97
|
+
# code>update_mask</code> parameter would be specified as <code>config.
|
|
98
|
+
# worker_config.num_instances</code>, and the PATCH request body would specify
|
|
99
|
+
# the new value, as follows:
|
|
100
|
+
# `
|
|
101
|
+
# "config":`
|
|
102
|
+
# "workerConfig":`
|
|
103
|
+
# "numInstances":"5"
|
|
104
|
+
# `
|
|
105
|
+
# `
|
|
106
|
+
# `
|
|
107
|
+
# Similarly, to change the number of preemptible workers in a cluster to 5, the <
|
|
108
|
+
# code>update_mask</code> parameter would be <code>config.
|
|
109
|
+
# secondary_worker_config.num_instances</code>, and the PATCH request body would
|
|
110
|
+
# be set as follows:
|
|
111
|
+
# `
|
|
112
|
+
# "config":`
|
|
113
|
+
# "secondaryWorkerConfig":`
|
|
114
|
+
# "numInstances":"5"
|
|
115
|
+
# `
|
|
116
|
+
# `
|
|
117
|
+
# `
|
|
118
|
+
# <strong>Note:</strong> Currently, <code>config.worker_config.num_instances</
|
|
119
|
+
# code> and <code>config.secondary_worker_config.num_instances</code> are the
|
|
120
|
+
# only fields that can be updated.
|
|
106
121
|
# @param [String] fields
|
|
107
122
|
# Selector specifying which fields to include in a partial response.
|
|
108
123
|
# @param [String] quota_user
|
|
@@ -135,14 +150,16 @@ module Google
|
|
|
135
150
|
execute_or_queue_command(command, &block)
|
|
136
151
|
end
|
|
137
152
|
|
|
138
|
-
#
|
|
153
|
+
# Gets cluster diagnostic information. After the operation completes, the
|
|
154
|
+
# Operation.response field contains DiagnoseClusterOutputLocation.
|
|
139
155
|
# @param [String] project_id
|
|
140
|
-
#
|
|
141
|
-
#
|
|
156
|
+
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
|
157
|
+
# to.
|
|
142
158
|
# @param [String] region
|
|
143
|
-
#
|
|
159
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
144
160
|
# @param [String] cluster_name
|
|
145
|
-
#
|
|
161
|
+
# Required The cluster name.
|
|
162
|
+
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
|
|
146
163
|
# @param [String] fields
|
|
147
164
|
# Selector specifying which fields to include in a partial response.
|
|
148
165
|
# @param [String] quota_user
|
|
@@ -160,8 +177,10 @@ module Google
|
|
|
160
177
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
161
178
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
162
179
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
163
|
-
def
|
|
164
|
-
command = make_simple_command(:
|
|
180
|
+
def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
181
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
|
|
182
|
+
command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
|
|
183
|
+
command.request_object = diagnose_cluster_request_object
|
|
165
184
|
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
166
185
|
command.response_class = Google::Apis::DataprocV1::Operation
|
|
167
186
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
@@ -172,14 +191,14 @@ module Google
|
|
|
172
191
|
execute_or_queue_command(command, &block)
|
|
173
192
|
end
|
|
174
193
|
|
|
175
|
-
#
|
|
194
|
+
# Deletes a cluster in a project.
|
|
176
195
|
# @param [String] project_id
|
|
177
|
-
#
|
|
178
|
-
#
|
|
196
|
+
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
|
197
|
+
# to.
|
|
179
198
|
# @param [String] region
|
|
180
|
-
#
|
|
199
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
181
200
|
# @param [String] cluster_name
|
|
182
|
-
#
|
|
201
|
+
# Required The cluster name.
|
|
183
202
|
# @param [String] fields
|
|
184
203
|
# Selector specifying which fields to include in a partial response.
|
|
185
204
|
# @param [String] quota_user
|
|
@@ -189,18 +208,18 @@ module Google
|
|
|
189
208
|
# Request-specific options
|
|
190
209
|
#
|
|
191
210
|
# @yield [result, err] Result & error if block supplied
|
|
192
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
211
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
|
193
212
|
# @yieldparam err [StandardError] error object if request failed
|
|
194
213
|
#
|
|
195
|
-
# @return [Google::Apis::DataprocV1::
|
|
214
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
|
196
215
|
#
|
|
197
216
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
198
217
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
199
218
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
200
|
-
def
|
|
201
|
-
command = make_simple_command(:
|
|
202
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
203
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
219
|
+
def delete_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
|
220
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
|
221
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
222
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
|
204
223
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
205
224
|
command.params['region'] = region unless region.nil?
|
|
206
225
|
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
@@ -211,14 +230,26 @@ module Google
|
|
|
211
230
|
|
|
212
231
|
# Lists all regions/`region`/clusters in a project.
|
|
213
232
|
# @param [String] project_id
|
|
214
|
-
#
|
|
215
|
-
#
|
|
233
|
+
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
|
234
|
+
# to.
|
|
216
235
|
# @param [String] region
|
|
217
|
-
#
|
|
236
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
218
237
|
# @param [Fixnum] page_size
|
|
219
|
-
# The standard List page size.
|
|
238
|
+
# Optional The standard List page size.
|
|
239
|
+
# @param [String] filter
|
|
240
|
+
# Optional A filter constraining the clusters to list. Filters are case-
|
|
241
|
+
# sensitive and have the following syntax:field = value AND field = value ...
|
|
242
|
+
# where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is
|
|
243
|
+
# a label key. value can be * to match all values. status.state can be one of
|
|
244
|
+
# the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or
|
|
245
|
+
# UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE
|
|
246
|
+
# contains the DELETING and ERROR states. clusterName is the name of the cluster
|
|
247
|
+
# provided at creation time. Only the logical AND operator is supported; space-
|
|
248
|
+
# separated items are treated as having an implicit AND operator.Example filter:
|
|
249
|
+
# status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND
|
|
250
|
+
# labels.starred = *
|
|
220
251
|
# @param [String] page_token
|
|
221
|
-
# The standard List page token.
|
|
252
|
+
# Optional The standard List page token.
|
|
222
253
|
# @param [String] fields
|
|
223
254
|
# Selector specifying which fields to include in a partial response.
|
|
224
255
|
# @param [String] quota_user
|
|
@@ -236,29 +267,27 @@ module Google
|
|
|
236
267
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
237
268
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
238
269
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
239
|
-
def list_clusters(project_id, region, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
270
|
+
def list_clusters(project_id, region, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
240
271
|
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
|
241
272
|
command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation
|
|
242
273
|
command.response_class = Google::Apis::DataprocV1::ListClustersResponse
|
|
243
274
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
244
275
|
command.params['region'] = region unless region.nil?
|
|
245
276
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
277
|
+
command.query['filter'] = filter unless filter.nil?
|
|
246
278
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
247
279
|
command.query['fields'] = fields unless fields.nil?
|
|
248
280
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
249
281
|
execute_or_queue_command(command, &block)
|
|
250
282
|
end
|
|
251
283
|
|
|
252
|
-
#
|
|
253
|
-
# Operation.response field contains `DiagnoseClusterOutputLocation`.
|
|
284
|
+
# Creates a cluster in a project.
|
|
254
285
|
# @param [String] project_id
|
|
255
|
-
#
|
|
256
|
-
#
|
|
286
|
+
# Required The ID of the Google Cloud Platform project that the cluster belongs
|
|
287
|
+
# to.
|
|
257
288
|
# @param [String] region
|
|
258
|
-
#
|
|
259
|
-
# @param [
|
|
260
|
-
# [Required] The cluster name.
|
|
261
|
-
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
|
|
289
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
290
|
+
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
|
262
291
|
# @param [String] fields
|
|
263
292
|
# Selector specifying which fields to include in a partial response.
|
|
264
293
|
# @param [String] quota_user
|
|
@@ -276,26 +305,29 @@ module Google
|
|
|
276
305
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
277
306
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
278
307
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
279
|
-
def
|
|
280
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters
|
|
281
|
-
command.request_representation = Google::Apis::DataprocV1::
|
|
282
|
-
command.request_object =
|
|
308
|
+
def create_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
309
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
|
310
|
+
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
|
311
|
+
command.request_object = cluster_object
|
|
283
312
|
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
284
313
|
command.response_class = Google::Apis::DataprocV1::Operation
|
|
285
314
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
286
315
|
command.params['region'] = region unless region.nil?
|
|
287
|
-
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
|
288
316
|
command.query['fields'] = fields unless fields.nil?
|
|
289
317
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
290
318
|
execute_or_queue_command(command, &block)
|
|
291
319
|
end
|
|
292
320
|
|
|
293
|
-
#
|
|
294
|
-
#
|
|
295
|
-
#
|
|
296
|
-
#
|
|
297
|
-
#
|
|
298
|
-
#
|
|
321
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
|
322
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
|
323
|
+
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
|
324
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
|
325
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
|
326
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
|
327
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
|
328
|
+
# corresponding to Code.CANCELLED.
|
|
329
|
+
# @param [String] name
|
|
330
|
+
# The name of the operation resource to be cancelled.
|
|
299
331
|
# @param [String] fields
|
|
300
332
|
# Selector specifying which fields to include in a partial response.
|
|
301
333
|
# @param [String] quota_user
|
|
@@ -305,34 +337,30 @@ module Google
|
|
|
305
337
|
# Request-specific options
|
|
306
338
|
#
|
|
307
339
|
# @yield [result, err] Result & error if block supplied
|
|
308
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
340
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
|
309
341
|
# @yieldparam err [StandardError] error object if request failed
|
|
310
342
|
#
|
|
311
|
-
# @return [Google::Apis::DataprocV1::
|
|
343
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
|
312
344
|
#
|
|
313
345
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
314
346
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
315
347
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
316
|
-
def
|
|
317
|
-
command = make_simple_command(:post, 'v1/
|
|
318
|
-
command.
|
|
319
|
-
command.
|
|
320
|
-
command.
|
|
321
|
-
command.response_class = Google::Apis::DataprocV1::Job
|
|
322
|
-
command.params['projectId'] = project_id unless project_id.nil?
|
|
323
|
-
command.params['region'] = region unless region.nil?
|
|
348
|
+
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
349
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
|
350
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
|
351
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
|
352
|
+
command.params['name'] = name unless name.nil?
|
|
324
353
|
command.query['fields'] = fields unless fields.nil?
|
|
325
354
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
326
355
|
execute_or_queue_command(command, &block)
|
|
327
356
|
end
|
|
328
357
|
|
|
329
|
-
#
|
|
330
|
-
#
|
|
331
|
-
#
|
|
332
|
-
#
|
|
333
|
-
#
|
|
334
|
-
#
|
|
335
|
-
# [Required] The job ID.
|
|
358
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
|
359
|
+
# longer interested in the operation result. It does not cancel the operation.
|
|
360
|
+
# If the server doesn't support this method, it returns google.rpc.Code.
|
|
361
|
+
# UNIMPLEMENTED.
|
|
362
|
+
# @param [String] name
|
|
363
|
+
# The name of the operation resource to be deleted.
|
|
336
364
|
# @param [String] fields
|
|
337
365
|
# Selector specifying which fields to include in a partial response.
|
|
338
366
|
# @param [String] quota_user
|
|
@@ -342,41 +370,36 @@ module Google
|
|
|
342
370
|
# Request-specific options
|
|
343
371
|
#
|
|
344
372
|
# @yield [result, err] Result & error if block supplied
|
|
345
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
373
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
|
346
374
|
# @yieldparam err [StandardError] error object if request failed
|
|
347
375
|
#
|
|
348
|
-
# @return [Google::Apis::DataprocV1::
|
|
376
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
|
349
377
|
#
|
|
350
378
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
351
379
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
352
380
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
353
|
-
def
|
|
354
|
-
command = make_simple_command(:
|
|
355
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
356
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
357
|
-
command.params['
|
|
358
|
-
command.params['region'] = region unless region.nil?
|
|
359
|
-
command.params['jobId'] = job_id unless job_id.nil?
|
|
381
|
+
def delete_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
382
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
|
383
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
|
384
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
|
385
|
+
command.params['name'] = name unless name.nil?
|
|
360
386
|
command.query['fields'] = fields unless fields.nil?
|
|
361
387
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
362
388
|
execute_or_queue_command(command, &block)
|
|
363
389
|
end
|
|
364
390
|
|
|
365
|
-
# Lists
|
|
366
|
-
#
|
|
367
|
-
#
|
|
368
|
-
#
|
|
369
|
-
#
|
|
391
|
+
# Lists operations that match the specified filter in the request. If the server
|
|
392
|
+
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
|
393
|
+
# below allows API services to override the binding to use different resource
|
|
394
|
+
# name schemes, such as users/*/operations.
|
|
395
|
+
# @param [String] name
|
|
396
|
+
# The name of the operation collection.
|
|
370
397
|
# @param [Fixnum] page_size
|
|
371
|
-
#
|
|
398
|
+
# The standard list page size.
|
|
399
|
+
# @param [String] filter
|
|
400
|
+
# The standard list filter.
|
|
372
401
|
# @param [String] page_token
|
|
373
|
-
#
|
|
374
|
-
# page of results.
|
|
375
|
-
# @param [String] cluster_name
|
|
376
|
-
# [Optional] If set, the returned jobs list includes only jobs that were
|
|
377
|
-
# submitted to the named cluster.
|
|
378
|
-
# @param [String] job_state_matcher
|
|
379
|
-
# [Optional] Specifies enumerated categories of jobs to list.
|
|
402
|
+
# The standard list page token.
|
|
380
403
|
# @param [String] fields
|
|
381
404
|
# Selector specifying which fields to include in a partial response.
|
|
382
405
|
# @param [String] quota_user
|
|
@@ -386,39 +409,66 @@ module Google
|
|
|
386
409
|
# Request-specific options
|
|
387
410
|
#
|
|
388
411
|
# @yield [result, err] Result & error if block supplied
|
|
389
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
412
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListOperationsResponse] parsed result object
|
|
390
413
|
# @yieldparam err [StandardError] error object if request failed
|
|
391
414
|
#
|
|
392
|
-
# @return [Google::Apis::DataprocV1::
|
|
415
|
+
# @return [Google::Apis::DataprocV1::ListOperationsResponse]
|
|
393
416
|
#
|
|
394
417
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
395
418
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
396
419
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
397
|
-
def
|
|
398
|
-
command = make_simple_command(:get, 'v1/
|
|
399
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
400
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
401
|
-
command.params['
|
|
402
|
-
command.params['region'] = region unless region.nil?
|
|
420
|
+
def list_operations(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
421
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
422
|
+
command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
|
|
423
|
+
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
|
|
424
|
+
command.params['name'] = name unless name.nil?
|
|
403
425
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
426
|
+
command.query['filter'] = filter unless filter.nil?
|
|
404
427
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
405
|
-
command.query['
|
|
406
|
-
command.query['
|
|
428
|
+
command.query['fields'] = fields unless fields.nil?
|
|
429
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
430
|
+
execute_or_queue_command(command, &block)
|
|
431
|
+
end
|
|
432
|
+
|
|
433
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
|
434
|
+
# to poll the operation result at intervals as recommended by the API service.
|
|
435
|
+
# @param [String] name
|
|
436
|
+
# The name of the operation resource.
|
|
437
|
+
# @param [String] fields
|
|
438
|
+
# Selector specifying which fields to include in a partial response.
|
|
439
|
+
# @param [String] quota_user
|
|
440
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
441
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
442
|
+
# @param [Google::Apis::RequestOptions] options
|
|
443
|
+
# Request-specific options
|
|
444
|
+
#
|
|
445
|
+
# @yield [result, err] Result & error if block supplied
|
|
446
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
|
447
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
448
|
+
#
|
|
449
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
|
450
|
+
#
|
|
451
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
452
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
453
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
454
|
+
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
455
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
|
456
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
|
457
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
|
458
|
+
command.params['name'] = name unless name.nil?
|
|
407
459
|
command.query['fields'] = fields unless fields.nil?
|
|
408
460
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
409
461
|
execute_or_queue_command(command, &block)
|
|
410
462
|
end
|
|
411
463
|
|
|
412
464
|
# Starts a job cancellation request. To access the job resource after
|
|
413
|
-
# cancellation, call
|
|
414
|
-
# projects.regions.jobs/list) or [regions/`region`/jobs.get](/dataproc/reference/
|
|
415
|
-
# rest/v1/projects.regions.jobs/get).
|
|
465
|
+
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
|
|
416
466
|
# @param [String] project_id
|
|
417
|
-
#
|
|
467
|
+
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
|
418
468
|
# @param [String] region
|
|
419
|
-
#
|
|
469
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
420
470
|
# @param [String] job_id
|
|
421
|
-
#
|
|
471
|
+
# Required The job ID.
|
|
422
472
|
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
|
|
423
473
|
# @param [String] fields
|
|
424
474
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -451,14 +501,20 @@ module Google
|
|
|
451
501
|
execute_or_queue_command(command, &block)
|
|
452
502
|
end
|
|
453
503
|
|
|
454
|
-
#
|
|
455
|
-
# the response returns `FAILED_PRECONDITION`.
|
|
504
|
+
# Updates a job in a project.
|
|
456
505
|
# @param [String] project_id
|
|
457
|
-
#
|
|
506
|
+
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
|
458
507
|
# @param [String] region
|
|
459
|
-
#
|
|
508
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
460
509
|
# @param [String] job_id
|
|
461
|
-
#
|
|
510
|
+
# Required The job ID.
|
|
511
|
+
# @param [Google::Apis::DataprocV1::Job] job_object
|
|
512
|
+
# @param [String] update_mask
|
|
513
|
+
# Required Specifies the path, relative to <code>Job</code>, of the field to
|
|
514
|
+
# update. For example, to update the labels of a Job the <code>update_mask</code>
|
|
515
|
+
# parameter would be specified as <code>labels</code>, and the PATCH request
|
|
516
|
+
# body would specify the new value. <strong>Note:</strong> Currently, <code>
|
|
517
|
+
# labels</code> is the only field that can be updated.
|
|
462
518
|
# @param [String] fields
|
|
463
519
|
# Selector specifying which fields to include in a partial response.
|
|
464
520
|
# @param [String] quota_user
|
|
@@ -468,30 +524,36 @@ module Google
|
|
|
468
524
|
# Request-specific options
|
|
469
525
|
#
|
|
470
526
|
# @yield [result, err] Result & error if block supplied
|
|
471
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
527
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
|
472
528
|
# @yieldparam err [StandardError] error object if request failed
|
|
473
529
|
#
|
|
474
|
-
# @return [Google::Apis::DataprocV1::
|
|
530
|
+
# @return [Google::Apis::DataprocV1::Job]
|
|
475
531
|
#
|
|
476
532
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
477
533
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
478
534
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
479
|
-
def
|
|
480
|
-
command = make_simple_command(:
|
|
481
|
-
command.
|
|
482
|
-
command.
|
|
535
|
+
def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
536
|
+
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
|
537
|
+
command.request_representation = Google::Apis::DataprocV1::Job::Representation
|
|
538
|
+
command.request_object = job_object
|
|
539
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
540
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
|
483
541
|
command.params['projectId'] = project_id unless project_id.nil?
|
|
484
542
|
command.params['region'] = region unless region.nil?
|
|
485
543
|
command.params['jobId'] = job_id unless job_id.nil?
|
|
544
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
|
486
545
|
command.query['fields'] = fields unless fields.nil?
|
|
487
546
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
488
547
|
execute_or_queue_command(command, &block)
|
|
489
548
|
end
|
|
490
549
|
|
|
491
|
-
# Gets the
|
|
492
|
-
#
|
|
493
|
-
#
|
|
494
|
-
#
|
|
550
|
+
# Gets the resource representation for a job in a project.
|
|
551
|
+
# @param [String] project_id
|
|
552
|
+
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
|
553
|
+
# @param [String] region
|
|
554
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
555
|
+
# @param [String] job_id
|
|
556
|
+
# Required The job ID.
|
|
495
557
|
# @param [String] fields
|
|
496
558
|
# Selector specifying which fields to include in a partial response.
|
|
497
559
|
# @param [String] quota_user
|
|
@@ -501,36 +563,32 @@ module Google
|
|
|
501
563
|
# Request-specific options
|
|
502
564
|
#
|
|
503
565
|
# @yield [result, err] Result & error if block supplied
|
|
504
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
566
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
|
505
567
|
# @yieldparam err [StandardError] error object if request failed
|
|
506
568
|
#
|
|
507
|
-
# @return [Google::Apis::DataprocV1::
|
|
569
|
+
# @return [Google::Apis::DataprocV1::Job]
|
|
508
570
|
#
|
|
509
571
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
510
572
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
511
573
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
512
|
-
def
|
|
513
|
-
command = make_simple_command(:get, 'v1/{
|
|
514
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
515
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
516
|
-
command.params['
|
|
574
|
+
def get_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
575
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
|
576
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
577
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
|
578
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
579
|
+
command.params['region'] = region unless region.nil?
|
|
580
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
517
581
|
command.query['fields'] = fields unless fields.nil?
|
|
518
582
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
519
583
|
execute_or_queue_command(command, &block)
|
|
520
584
|
end
|
|
521
585
|
|
|
522
|
-
#
|
|
523
|
-
#
|
|
524
|
-
#
|
|
525
|
-
#
|
|
526
|
-
#
|
|
527
|
-
#
|
|
528
|
-
# @param [String] filter
|
|
529
|
-
# The standard list filter.
|
|
530
|
-
# @param [Fixnum] page_size
|
|
531
|
-
# The standard list page size.
|
|
532
|
-
# @param [String] page_token
|
|
533
|
-
# The standard list page token.
|
|
586
|
+
# Submits a job to a cluster.
|
|
587
|
+
# @param [String] project_id
|
|
588
|
+
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
|
589
|
+
# @param [String] region
|
|
590
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
591
|
+
# @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
|
|
534
592
|
# @param [String] fields
|
|
535
593
|
# Selector specifying which fields to include in a partial response.
|
|
536
594
|
# @param [String] quota_user
|
|
@@ -540,34 +598,35 @@ module Google
|
|
|
540
598
|
# Request-specific options
|
|
541
599
|
#
|
|
542
600
|
# @yield [result, err] Result & error if block supplied
|
|
543
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
601
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
|
544
602
|
# @yieldparam err [StandardError] error object if request failed
|
|
545
603
|
#
|
|
546
|
-
# @return [Google::Apis::DataprocV1::
|
|
604
|
+
# @return [Google::Apis::DataprocV1::Job]
|
|
547
605
|
#
|
|
548
606
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
549
607
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
550
608
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
551
|
-
def
|
|
552
|
-
command = make_simple_command(:
|
|
553
|
-
command.
|
|
554
|
-
command.
|
|
555
|
-
command.
|
|
556
|
-
command.
|
|
557
|
-
command.
|
|
558
|
-
command.
|
|
609
|
+
def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
610
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
|
|
611
|
+
command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
|
|
612
|
+
command.request_object = submit_job_request_object
|
|
613
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
|
614
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
|
615
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
616
|
+
command.params['region'] = region unless region.nil?
|
|
559
617
|
command.query['fields'] = fields unless fields.nil?
|
|
560
618
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
561
619
|
execute_or_queue_command(command, &block)
|
|
562
620
|
end
|
|
563
621
|
|
|
564
|
-
#
|
|
565
|
-
#
|
|
566
|
-
#
|
|
567
|
-
#
|
|
568
|
-
#
|
|
569
|
-
#
|
|
570
|
-
#
|
|
622
|
+
# Deletes the job from the project. If the job is active, the delete fails, and
|
|
623
|
+
# the response returns FAILED_PRECONDITION.
|
|
624
|
+
# @param [String] project_id
|
|
625
|
+
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
|
626
|
+
# @param [String] region
|
|
627
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
628
|
+
# @param [String] job_id
|
|
629
|
+
# Required The job ID.
|
|
571
630
|
# @param [String] fields
|
|
572
631
|
# Selector specifying which fields to include in a partial response.
|
|
573
632
|
# @param [String] quota_user
|
|
@@ -585,22 +644,42 @@ module Google
|
|
|
585
644
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
586
645
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
587
646
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
588
|
-
def
|
|
589
|
-
command = make_simple_command(:
|
|
647
|
+
def delete_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
|
648
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
|
590
649
|
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
|
591
650
|
command.response_class = Google::Apis::DataprocV1::Empty
|
|
592
|
-
command.params['
|
|
651
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
652
|
+
command.params['region'] = region unless region.nil?
|
|
653
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
|
593
654
|
command.query['fields'] = fields unless fields.nil?
|
|
594
655
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
595
656
|
execute_or_queue_command(command, &block)
|
|
596
657
|
end
|
|
597
658
|
|
|
598
|
-
#
|
|
599
|
-
#
|
|
600
|
-
#
|
|
601
|
-
#
|
|
602
|
-
#
|
|
603
|
-
#
|
|
659
|
+
# Lists regions/`region`/jobs in a project.
|
|
660
|
+
# @param [String] project_id
|
|
661
|
+
# Required The ID of the Google Cloud Platform project that the job belongs to.
|
|
662
|
+
# @param [String] region
|
|
663
|
+
# Required The Cloud Dataproc region in which to handle the request.
|
|
664
|
+
# @param [String] filter
|
|
665
|
+
# Optional A filter constraining the jobs to list. Filters are case-sensitive
|
|
666
|
+
# and have the following syntax:field = value AND field = value ...where field
|
|
667
|
+
# is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
|
|
668
|
+
# match all values. status.state can be either ACTIVE or INACTIVE. Only the
|
|
669
|
+
# logical AND operator is supported; space-separated items are treated as having
|
|
670
|
+
# an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
|
|
671
|
+
# staging AND labels.starred = *
|
|
672
|
+
# @param [String] job_state_matcher
|
|
673
|
+
# Optional Specifies enumerated categories of jobs to list (default = match ALL
|
|
674
|
+
# jobs).
|
|
675
|
+
# @param [String] page_token
|
|
676
|
+
# Optional The page token, returned by a previous call, to request the next page
|
|
677
|
+
# of results.
|
|
678
|
+
# @param [Fixnum] page_size
|
|
679
|
+
# Optional The number of results to return in each response.
|
|
680
|
+
# @param [String] cluster_name
|
|
681
|
+
# Optional If set, the returned jobs list includes only jobs that were submitted
|
|
682
|
+
# to the named cluster.
|
|
604
683
|
# @param [String] fields
|
|
605
684
|
# Selector specifying which fields to include in a partial response.
|
|
606
685
|
# @param [String] quota_user
|
|
@@ -610,19 +689,25 @@ module Google
|
|
|
610
689
|
# Request-specific options
|
|
611
690
|
#
|
|
612
691
|
# @yield [result, err] Result & error if block supplied
|
|
613
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
|
692
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListJobsResponse] parsed result object
|
|
614
693
|
# @yieldparam err [StandardError] error object if request failed
|
|
615
694
|
#
|
|
616
|
-
# @return [Google::Apis::DataprocV1::
|
|
695
|
+
# @return [Google::Apis::DataprocV1::ListJobsResponse]
|
|
617
696
|
#
|
|
618
697
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
619
698
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
620
699
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
621
|
-
def
|
|
622
|
-
command = make_simple_command(:
|
|
623
|
-
command.response_representation = Google::Apis::DataprocV1::
|
|
624
|
-
command.response_class = Google::Apis::DataprocV1::
|
|
625
|
-
command.params['
|
|
700
|
+
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)
|
|
701
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
|
|
702
|
+
command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
|
|
703
|
+
command.response_class = Google::Apis::DataprocV1::ListJobsResponse
|
|
704
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
|
705
|
+
command.params['region'] = region unless region.nil?
|
|
706
|
+
command.query['filter'] = filter unless filter.nil?
|
|
707
|
+
command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
|
|
708
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
709
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
710
|
+
command.query['clusterName'] = cluster_name unless cluster_name.nil?
|
|
626
711
|
command.query['fields'] = fields unless fields.nil?
|
|
627
712
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
628
713
|
execute_or_queue_command(command, &block)
|