google-api-client 0.13.2 → 0.13.3
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 +149 -0
- data/bin/generate-api +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
- data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
- data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
- data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
- data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
- data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
- data/generated/google/apis/adexperiencereport_v1.rb +35 -0
- data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
- data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +37 -0
- data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
- data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
- data/generated/google/apis/analytics_v2_4/service.rb +345 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +15 -2
- data/generated/google/apis/analytics_v3/representations.rb +3 -0
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
- data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
- data/generated/google/apis/androidmanagement_v1.rb +35 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
- data/generated/google/apis/androidpublisher_v1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
- data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
- data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
- data/generated/google/apis/appengine_v1/representations.rb +351 -335
- data/generated/google/apis/appengine_v1/service.rb +255 -239
- data/generated/google/apis/appengine_v1alpha.rb +41 -0
- data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
- data/generated/google/apis/appengine_v1beta.rb +41 -0
- data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
- data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
- data/generated/google/apis/appengine_v1beta4.rb +41 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
- data/generated/google/apis/appengine_v1beta5.rb +41 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +106 -18
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
- data/generated/google/apis/blogger_v2.rb +34 -0
- data/generated/google/apis/blogger_v2/classes.rb +947 -0
- data/generated/google/apis/blogger_v2/representations.rb +465 -0
- data/generated/google/apis/blogger_v2/service.rb +424 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +4 -207
- data/generated/google/apis/calendar_v3/representations.rb +0 -97
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/classroom_v1.rb +27 -27
- data/generated/google/apis/classroom_v1/classes.rb +1037 -926
- data/generated/google/apis/classroom_v1/representations.rb +294 -244
- data/generated/google/apis/classroom_v1/service.rb +1114 -1109
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
- data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
- data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
- data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
- data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
- data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
- data/generated/google/apis/cloudfunctions_v1.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
- data/generated/google/apis/cloudkms_v1/service.rb +320 -320
- 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 +1129 -1129
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
- data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
- data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
- data/generated/google/apis/cloudtrace_v2.rb +43 -0
- data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
- data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
- data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
- data/generated/google/apis/compute_alpha.rb +49 -0
- data/generated/google/apis/compute_alpha/classes.rb +23796 -0
- data/generated/google/apis/compute_alpha/representations.rb +9391 -0
- data/generated/google/apis/compute_alpha/service.rb +24188 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1597 -235
- data/generated/google/apis/compute_beta/representations.rb +477 -0
- data/generated/google/apis/compute_beta/service.rb +2875 -1677
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +319 -197
- data/generated/google/apis/compute_v1/representations.rb +51 -0
- data/generated/google/apis/compute_v1/service.rb +2057 -172
- data/generated/google/apis/consumersurveys_v2.rb +40 -0
- data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
- data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
- data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1072 -936
- data/generated/google/apis/container_v1/representations.rb +266 -202
- data/generated/google/apis/container_v1/service.rb +243 -243
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
- data/generated/google/apis/container_v1beta1/representations.rb +662 -0
- data/generated/google/apis/container_v1beta1/service.rb +1875 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +72 -3
- data/generated/google/apis/content_v2/representations.rb +23 -0
- data/generated/google/apis/content_v2/service.rb +23 -18
- data/generated/google/apis/content_v2sandbox.rb +35 -0
- data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
- data/generated/google/apis/content_v2sandbox/service.rb +709 -0
- data/generated/google/apis/dataflow_v1b3.rb +5 -5
- data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
- data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
- data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
- data/generated/google/apis/dataproc_v1/representations.rb +227 -227
- data/generated/google/apis/dataproc_v1/service.rb +254 -254
- data/generated/google/apis/dataproc_v1beta2.rb +34 -0
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +1311 -773
- data/generated/google/apis/datastore_v1/representations.rb +351 -148
- data/generated/google/apis/datastore_v1/service.rb +206 -55
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
- data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
- data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +36 -0
- data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +406 -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_v3.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
- data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
- data/generated/google/apis/firebaserules_v1/service.rb +113 -113
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +37 -0
- data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
- data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
- data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
- 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 +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
- data/generated/google/apis/genomics_v1/representations.rb +482 -482
- data/generated/google/apis/genomics_v1/service.rb +966 -966
- data/generated/google/apis/genomics_v1alpha2.rb +40 -0
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
- 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 +664 -395
- data/generated/google/apis/iam_v1/representations.rb +194 -81
- data/generated/google/apis/iam_v1/service.rb +657 -92
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +8 -8
- data/generated/google/apis/language_v1.rb +4 -1
- data/generated/google/apis/language_v1/classes.rb +393 -393
- data/generated/google/apis/language_v1/representations.rb +95 -95
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +4 -1
- data/generated/google/apis/language_v1beta1/classes.rb +457 -457
- data/generated/google/apis/language_v1beta1/representations.rb +114 -114
- data/generated/google/apis/language_v1beta1/service.rb +48 -48
- data/generated/google/apis/language_v1beta2.rb +39 -0
- data/generated/google/apis/language_v1beta2/classes.rb +824 -0
- data/generated/google/apis/language_v1beta2/representations.rb +373 -0
- data/generated/google/apis/language_v1beta2/service.rb +217 -0
- data/generated/google/apis/logging_v2.rb +9 -9
- data/generated/google/apis/logging_v2/classes.rb +840 -834
- data/generated/google/apis/logging_v2/representations.rb +168 -167
- data/generated/google/apis/logging_v2/service.rb +667 -463
- data/generated/google/apis/logging_v2beta1.rb +9 -9
- data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
- data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
- data/generated/google/apis/logging_v2beta1/service.rb +253 -255
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
- data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
- data/generated/google/apis/manufacturers_v1/service.rb +8 -7
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1487 -1676
- data/generated/google/apis/ml_v1/representations.rb +229 -299
- data/generated/google/apis/ml_v1/service.rb +359 -253
- data/generated/google/apis/ml_v1beta1.rb +34 -0
- data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
- data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
- data/generated/google/apis/ml_v1beta1/service.rb +975 -0
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +834 -834
- data/generated/google/apis/monitoring_v3/representations.rb +168 -168
- data/generated/google/apis/monitoring_v3/service.rb +330 -330
- data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
- data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
- data/generated/google/apis/mybusiness_v3/service.rb +241 -241
- data/generated/google/apis/oauth2_v1.rb +43 -0
- data/generated/google/apis/oauth2_v1/classes.rb +321 -0
- data/generated/google/apis/oauth2_v1/representations.rb +135 -0
- data/generated/google/apis/oauth2_v1/service.rb +337 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +37 -0
- data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
- data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
- data/generated/google/apis/pagespeedonline_v1.rb +32 -0
- data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
- data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1512 -1512
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +596 -596
- data/generated/google/apis/people_v1.rb +15 -15
- data/generated/google/apis/people_v1/classes.rb +1384 -1383
- data/generated/google/apis/people_v1/representations.rb +311 -311
- data/generated/google/apis/people_v1/service.rb +208 -202
- data/generated/google/apis/playcustomapp_v1.rb +34 -0
- data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
- data/generated/google/apis/playmoviespartner_v1.rb +34 -0
- data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
- data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
- data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_2.rb +44 -0
- data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
- data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
- data/generated/google/apis/prediction_v1_2/service.rb +287 -0
- data/generated/google/apis/prediction_v1_3.rb +44 -0
- data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
- data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
- data/generated/google/apis/prediction_v1_3/service.rb +284 -0
- data/generated/google/apis/prediction_v1_4.rb +44 -0
- data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
- data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
- data/generated/google/apis/prediction_v1_4/service.rb +284 -0
- data/generated/google/apis/prediction_v1_5.rb +44 -0
- data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
- data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
- data/generated/google/apis/prediction_v1_5/service.rb +357 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +352 -352
- data/generated/google/apis/pubsub_v1/representations.rb +77 -77
- data/generated/google/apis/pubsub_v1/service.rb +346 -346
- data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
- data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
- data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
- data/generated/google/apis/replicapool_v1beta1.rb +50 -0
- data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
- data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
- data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
- data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
- data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
- data/generated/google/apis/safebrowsing_v4.rb +32 -0
- data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +99 -157
- data/generated/google/apis/script_v1/representations.rb +17 -47
- data/generated/google/apis/script_v1/service.rb +12 -12
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
- data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
- data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
- data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
- data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
- data/generated/google/apis/serviceuser_v1.rb +5 -5
- data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
- data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
- data/generated/google/apis/serviceuser_v1/service.rb +43 -43
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
- data/generated/google/apis/sheets_v4/representations.rb +931 -930
- data/generated/google/apis/sheets_v4/service.rb +244 -244
- data/generated/google/apis/slides_v1.rb +10 -10
- data/generated/google/apis/slides_v1/classes.rb +2915 -2915
- data/generated/google/apis/slides_v1/representations.rb +698 -698
- data/generated/google/apis/slides_v1/service.rb +35 -35
- data/generated/google/apis/sourcerepo_v1.rb +3 -3
- data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
- data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
- data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
- data/generated/google/apis/spanner_v1.rb +4 -4
- data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
- data/generated/google/apis/spanner_v1/representations.rb +338 -323
- data/generated/google/apis/spanner_v1/service.rb +689 -689
- data/generated/google/apis/spectrum_v1explorer.rb +31 -0
- data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
- data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
- data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
- data/generated/google/apis/speech_v1.rb +34 -0
- data/generated/google/apis/speech_v1/classes.rb +572 -0
- data/generated/google/apis/speech_v1/representations.rb +236 -0
- data/generated/google/apis/speech_v1/service.rb +277 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
- data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
- data/generated/google/apis/speech_v1beta1/service.rb +46 -46
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -6
- data/generated/google/apis/storage_v1/service.rb +51 -29
- data/generated/google/apis/storage_v1beta1.rb +40 -0
- data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
- data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
- data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
- data/generated/google/apis/storage_v1beta2.rb +40 -0
- data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
- data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
- data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
- data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
- data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
- data/generated/google/apis/streetviewpublish_v1.rb +36 -0
- data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
- data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
- data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
- data/generated/google/apis/translate_v2/classes.rb +111 -111
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +94 -94
- data/generated/google/apis/vault_v1.rb +31 -0
- data/generated/google/apis/vault_v1/classes.rb +554 -0
- data/generated/google/apis/vault_v1/representations.rb +318 -0
- data/generated/google/apis/vault_v1/service.rb +677 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
- data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +4 -4
- data/generated/google/apis/vision_v1/classes.rb +1176 -1178
- data/generated/google/apis/vision_v1/representations.rb +235 -235
- 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_v1beta1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
- data/lib/google/apis/version.rb +1 -1
- metadata +246 -2
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'google/apis/dataproc_v1beta2/service.rb'
|
|
16
|
+
require 'google/apis/dataproc_v1beta2/classes.rb'
|
|
17
|
+
require 'google/apis/dataproc_v1beta2/representations.rb'
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Apis
|
|
21
|
+
# Google Cloud Dataproc API
|
|
22
|
+
#
|
|
23
|
+
# Manages Hadoop-based clusters and jobs on Google Cloud Platform.
|
|
24
|
+
#
|
|
25
|
+
# @see https://cloud.google.com/dataproc/
|
|
26
|
+
module DataprocV1beta2
|
|
27
|
+
VERSION = 'V1beta2'
|
|
28
|
+
REVISION = '20170822'
|
|
29
|
+
|
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,1756 @@
|
|
|
1
|
+
# Copyright 2015 Google Inc.
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
require 'date'
|
|
16
|
+
require 'google/apis/core/base_service'
|
|
17
|
+
require 'google/apis/core/json_representation'
|
|
18
|
+
require 'google/apis/core/hashable'
|
|
19
|
+
require 'google/apis/errors'
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Apis
|
|
23
|
+
module DataprocV1beta2
|
|
24
|
+
|
|
25
|
+
# Specifies the type and number of accelerator cards attached to the instances
|
|
26
|
+
# of an instance group (see GPUs on Compute Engine).
|
|
27
|
+
class AcceleratorConfig
|
|
28
|
+
include Google::Apis::Core::Hashable
|
|
29
|
+
|
|
30
|
+
# The number of the accelerator cards of this type exposed to this instance.
|
|
31
|
+
# Corresponds to the JSON property `acceleratorCount`
|
|
32
|
+
# @return [Fixnum]
|
|
33
|
+
attr_accessor :accelerator_count
|
|
34
|
+
|
|
35
|
+
# Full URL, partial URI, or short name of the accelerator type resource to
|
|
36
|
+
# expose to this instance. See Google Compute Engine AcceleratorTypes( /compute/
|
|
37
|
+
# docs/reference/beta/acceleratorTypes)Examples * https://www.googleapis.com/
|
|
38
|
+
# compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
|
|
39
|
+
# tesla-k80 * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-
|
|
40
|
+
# tesla-k80 * nvidia-tesla-k80
|
|
41
|
+
# Corresponds to the JSON property `acceleratorTypeUri`
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :accelerator_type_uri
|
|
44
|
+
|
|
45
|
+
def initialize(**args)
|
|
46
|
+
update!(**args)
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Update properties of this object
|
|
50
|
+
def update!(**args)
|
|
51
|
+
@accelerator_count = args[:accelerator_count] if args.key?(:accelerator_count)
|
|
52
|
+
@accelerator_type_uri = args[:accelerator_type_uri] if args.key?(:accelerator_type_uri)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# A request to cancel a job.
|
|
57
|
+
class CancelJobRequest
|
|
58
|
+
include Google::Apis::Core::Hashable
|
|
59
|
+
|
|
60
|
+
def initialize(**args)
|
|
61
|
+
update!(**args)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Update properties of this object
|
|
65
|
+
def update!(**args)
|
|
66
|
+
end
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Describes the identifying information, config, and status of a cluster of
|
|
70
|
+
# Google Compute Engine instances.
|
|
71
|
+
class Cluster
|
|
72
|
+
include Google::Apis::Core::Hashable
|
|
73
|
+
|
|
74
|
+
# Required. The cluster name. Cluster names within a project must be unique.
|
|
75
|
+
# Names of deleted clusters can be reused.
|
|
76
|
+
# Corresponds to the JSON property `clusterName`
|
|
77
|
+
# @return [String]
|
|
78
|
+
attr_accessor :cluster_name
|
|
79
|
+
|
|
80
|
+
# Output-only. A cluster UUID (Unique Universal Identifier). Cloud Dataproc
|
|
81
|
+
# generates this value when it creates the cluster.
|
|
82
|
+
# Corresponds to the JSON property `clusterUuid`
|
|
83
|
+
# @return [String]
|
|
84
|
+
attr_accessor :cluster_uuid
|
|
85
|
+
|
|
86
|
+
# The cluster config.
|
|
87
|
+
# Corresponds to the JSON property `config`
|
|
88
|
+
# @return [Google::Apis::DataprocV1beta2::ClusterConfig]
|
|
89
|
+
attr_accessor :config
|
|
90
|
+
|
|
91
|
+
# Optional. The labels to associate with this cluster. Label keys must contain 1
|
|
92
|
+
# to 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/
|
|
93
|
+
# rfc1035.txt). Label values may be empty, but, if present, must contain 1 to 63
|
|
94
|
+
# characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
|
|
95
|
+
# . No more than 32 labels can be associated with a cluster.
|
|
96
|
+
# Corresponds to the JSON property `labels`
|
|
97
|
+
# @return [Hash<String,String>]
|
|
98
|
+
attr_accessor :labels
|
|
99
|
+
|
|
100
|
+
# Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
|
|
101
|
+
# This report is available for testing purposes only. It may be changed before
|
|
102
|
+
# final release.
|
|
103
|
+
# Corresponds to the JSON property `metrics`
|
|
104
|
+
# @return [Google::Apis::DataprocV1beta2::ClusterMetrics]
|
|
105
|
+
attr_accessor :metrics
|
|
106
|
+
|
|
107
|
+
# Required. The Google Cloud Platform project ID that the cluster belongs to.
|
|
108
|
+
# Corresponds to the JSON property `projectId`
|
|
109
|
+
# @return [String]
|
|
110
|
+
attr_accessor :project_id
|
|
111
|
+
|
|
112
|
+
# The status of a cluster and its instances.
|
|
113
|
+
# Corresponds to the JSON property `status`
|
|
114
|
+
# @return [Google::Apis::DataprocV1beta2::ClusterStatus]
|
|
115
|
+
attr_accessor :status
|
|
116
|
+
|
|
117
|
+
# Output-only. The previous cluster status.
|
|
118
|
+
# Corresponds to the JSON property `statusHistory`
|
|
119
|
+
# @return [Array<Google::Apis::DataprocV1beta2::ClusterStatus>]
|
|
120
|
+
attr_accessor :status_history
|
|
121
|
+
|
|
122
|
+
def initialize(**args)
|
|
123
|
+
update!(**args)
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Update properties of this object
|
|
127
|
+
def update!(**args)
|
|
128
|
+
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
|
|
129
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
|
130
|
+
@config = args[:config] if args.key?(:config)
|
|
131
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
132
|
+
@metrics = args[:metrics] if args.key?(:metrics)
|
|
133
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
|
134
|
+
@status = args[:status] if args.key?(:status)
|
|
135
|
+
@status_history = args[:status_history] if args.key?(:status_history)
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# The cluster config.
|
|
140
|
+
class ClusterConfig
|
|
141
|
+
include Google::Apis::Core::Hashable
|
|
142
|
+
|
|
143
|
+
# Optional. A Google Cloud Storage staging bucket used for sharing generated SSH
|
|
144
|
+
# keys and config. If you do not specify a staging bucket, Cloud Dataproc will
|
|
145
|
+
# determine an appropriate Cloud Storage location (US, ASIA, or EU) for your
|
|
146
|
+
# cluster's staging bucket according to the Google Compute Engine zone where
|
|
147
|
+
# your cluster is deployed, and then it will create and manage this project-
|
|
148
|
+
# level, per-location bucket for you.
|
|
149
|
+
# Corresponds to the JSON property `configBucket`
|
|
150
|
+
# @return [String]
|
|
151
|
+
attr_accessor :config_bucket
|
|
152
|
+
|
|
153
|
+
# Common config settings for resources of Google Compute Engine cluster
|
|
154
|
+
# instances, applicable to all instances in the cluster.
|
|
155
|
+
# Corresponds to the JSON property `gceClusterConfig`
|
|
156
|
+
# @return [Google::Apis::DataprocV1beta2::GceClusterConfig]
|
|
157
|
+
attr_accessor :gce_cluster_config
|
|
158
|
+
|
|
159
|
+
# Optional. Commands to execute on each node after config is completed. By
|
|
160
|
+
# default, executables are run on master and all worker nodes. You can test a
|
|
161
|
+
# node's <code>role</code> metadata to run an executable on a master or worker
|
|
162
|
+
# node, as shown below using curl (you can also use wget):
|
|
163
|
+
# ROLE=$(curl -H Metadata-Flavor:Google http://metadata/computeMetadata/v1beta2/
|
|
164
|
+
# instance/attributes/dataproc-role)
|
|
165
|
+
# if [[ "$`ROLE`" == 'Master' ]]; then
|
|
166
|
+
# ... master specific actions ...
|
|
167
|
+
# else
|
|
168
|
+
# ... worker specific actions ...
|
|
169
|
+
# fi
|
|
170
|
+
# Corresponds to the JSON property `initializationActions`
|
|
171
|
+
# @return [Array<Google::Apis::DataprocV1beta2::NodeInitializationAction>]
|
|
172
|
+
attr_accessor :initialization_actions
|
|
173
|
+
|
|
174
|
+
# Specifies the cluster auto delete related schedule configuration.
|
|
175
|
+
# Corresponds to the JSON property `lifecycleConfig`
|
|
176
|
+
# @return [Google::Apis::DataprocV1beta2::LifecycleConfig]
|
|
177
|
+
attr_accessor :lifecycle_config
|
|
178
|
+
|
|
179
|
+
# Optional. The config settings for Google Compute Engine resources in an
|
|
180
|
+
# instance group, such as a master or worker group.
|
|
181
|
+
# Corresponds to the JSON property `masterConfig`
|
|
182
|
+
# @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig]
|
|
183
|
+
attr_accessor :master_config
|
|
184
|
+
|
|
185
|
+
# Optional. The config settings for Google Compute Engine resources in an
|
|
186
|
+
# instance group, such as a master or worker group.
|
|
187
|
+
# Corresponds to the JSON property `secondaryWorkerConfig`
|
|
188
|
+
# @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig]
|
|
189
|
+
attr_accessor :secondary_worker_config
|
|
190
|
+
|
|
191
|
+
# Specifies the selection and config of software inside the cluster.
|
|
192
|
+
# Corresponds to the JSON property `softwareConfig`
|
|
193
|
+
# @return [Google::Apis::DataprocV1beta2::SoftwareConfig]
|
|
194
|
+
attr_accessor :software_config
|
|
195
|
+
|
|
196
|
+
# Optional. The config settings for Google Compute Engine resources in an
|
|
197
|
+
# instance group, such as a master or worker group.
|
|
198
|
+
# Corresponds to the JSON property `workerConfig`
|
|
199
|
+
# @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig]
|
|
200
|
+
attr_accessor :worker_config
|
|
201
|
+
|
|
202
|
+
def initialize(**args)
|
|
203
|
+
update!(**args)
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Update properties of this object
|
|
207
|
+
def update!(**args)
|
|
208
|
+
@config_bucket = args[:config_bucket] if args.key?(:config_bucket)
|
|
209
|
+
@gce_cluster_config = args[:gce_cluster_config] if args.key?(:gce_cluster_config)
|
|
210
|
+
@initialization_actions = args[:initialization_actions] if args.key?(:initialization_actions)
|
|
211
|
+
@lifecycle_config = args[:lifecycle_config] if args.key?(:lifecycle_config)
|
|
212
|
+
@master_config = args[:master_config] if args.key?(:master_config)
|
|
213
|
+
@secondary_worker_config = args[:secondary_worker_config] if args.key?(:secondary_worker_config)
|
|
214
|
+
@software_config = args[:software_config] if args.key?(:software_config)
|
|
215
|
+
@worker_config = args[:worker_config] if args.key?(:worker_config)
|
|
216
|
+
end
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
# Contains cluster daemon metrics, such as HDFS and YARN stats.Beta Feature:
|
|
220
|
+
# This report is available for testing purposes only. It may be changed before
|
|
221
|
+
# final release.
|
|
222
|
+
class ClusterMetrics
|
|
223
|
+
include Google::Apis::Core::Hashable
|
|
224
|
+
|
|
225
|
+
# The HDFS metrics.
|
|
226
|
+
# Corresponds to the JSON property `hdfsMetrics`
|
|
227
|
+
# @return [Hash<String,Fixnum>]
|
|
228
|
+
attr_accessor :hdfs_metrics
|
|
229
|
+
|
|
230
|
+
# The YARN metrics.
|
|
231
|
+
# Corresponds to the JSON property `yarnMetrics`
|
|
232
|
+
# @return [Hash<String,Fixnum>]
|
|
233
|
+
attr_accessor :yarn_metrics
|
|
234
|
+
|
|
235
|
+
def initialize(**args)
|
|
236
|
+
update!(**args)
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# Update properties of this object
|
|
240
|
+
def update!(**args)
|
|
241
|
+
@hdfs_metrics = args[:hdfs_metrics] if args.key?(:hdfs_metrics)
|
|
242
|
+
@yarn_metrics = args[:yarn_metrics] if args.key?(:yarn_metrics)
|
|
243
|
+
end
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# Metadata describing the operation.
|
|
247
|
+
class ClusterOperationMetadata
|
|
248
|
+
include Google::Apis::Core::Hashable
|
|
249
|
+
|
|
250
|
+
# Output-only. Name of the cluster for the operation.
|
|
251
|
+
# Corresponds to the JSON property `clusterName`
|
|
252
|
+
# @return [String]
|
|
253
|
+
attr_accessor :cluster_name
|
|
254
|
+
|
|
255
|
+
# Output-only. Cluster UUID for the operation.
|
|
256
|
+
# Corresponds to the JSON property `clusterUuid`
|
|
257
|
+
# @return [String]
|
|
258
|
+
attr_accessor :cluster_uuid
|
|
259
|
+
|
|
260
|
+
# Output-only. Short description of operation.
|
|
261
|
+
# Corresponds to the JSON property `description`
|
|
262
|
+
# @return [String]
|
|
263
|
+
attr_accessor :description
|
|
264
|
+
|
|
265
|
+
# Output-only. Labels associated with the operation
|
|
266
|
+
# Corresponds to the JSON property `labels`
|
|
267
|
+
# @return [Hash<String,String>]
|
|
268
|
+
attr_accessor :labels
|
|
269
|
+
|
|
270
|
+
# Output-only. The operation type.
|
|
271
|
+
# Corresponds to the JSON property `operationType`
|
|
272
|
+
# @return [String]
|
|
273
|
+
attr_accessor :operation_type
|
|
274
|
+
|
|
275
|
+
# The status of the operation.
|
|
276
|
+
# Corresponds to the JSON property `status`
|
|
277
|
+
# @return [Google::Apis::DataprocV1beta2::ClusterOperationStatus]
|
|
278
|
+
attr_accessor :status
|
|
279
|
+
|
|
280
|
+
# Output-only. The previous operation status.
|
|
281
|
+
# Corresponds to the JSON property `statusHistory`
|
|
282
|
+
# @return [Array<Google::Apis::DataprocV1beta2::ClusterOperationStatus>]
|
|
283
|
+
attr_accessor :status_history
|
|
284
|
+
|
|
285
|
+
# Output-only. Errors encountered during operation execution.
|
|
286
|
+
# Corresponds to the JSON property `warnings`
|
|
287
|
+
# @return [Array<String>]
|
|
288
|
+
attr_accessor :warnings
|
|
289
|
+
|
|
290
|
+
def initialize(**args)
|
|
291
|
+
update!(**args)
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
# Update properties of this object
|
|
295
|
+
def update!(**args)
|
|
296
|
+
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
|
|
297
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
|
298
|
+
@description = args[:description] if args.key?(:description)
|
|
299
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
300
|
+
@operation_type = args[:operation_type] if args.key?(:operation_type)
|
|
301
|
+
@status = args[:status] if args.key?(:status)
|
|
302
|
+
@status_history = args[:status_history] if args.key?(:status_history)
|
|
303
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
|
|
307
|
+
# The status of the operation.
|
|
308
|
+
class ClusterOperationStatus
|
|
309
|
+
include Google::Apis::Core::Hashable
|
|
310
|
+
|
|
311
|
+
# Output-only.A message containing any operation metadata details.
|
|
312
|
+
# Corresponds to the JSON property `details`
|
|
313
|
+
# @return [String]
|
|
314
|
+
attr_accessor :details
|
|
315
|
+
|
|
316
|
+
# Output-only. A message containing the detailed operation state.
|
|
317
|
+
# Corresponds to the JSON property `innerState`
|
|
318
|
+
# @return [String]
|
|
319
|
+
attr_accessor :inner_state
|
|
320
|
+
|
|
321
|
+
# Output-only. A message containing the operation state.
|
|
322
|
+
# Corresponds to the JSON property `state`
|
|
323
|
+
# @return [String]
|
|
324
|
+
attr_accessor :state
|
|
325
|
+
|
|
326
|
+
# Output-only. The time this state was entered.
|
|
327
|
+
# Corresponds to the JSON property `stateStartTime`
|
|
328
|
+
# @return [String]
|
|
329
|
+
attr_accessor :state_start_time
|
|
330
|
+
|
|
331
|
+
def initialize(**args)
|
|
332
|
+
update!(**args)
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
# Update properties of this object
|
|
336
|
+
def update!(**args)
|
|
337
|
+
@details = args[:details] if args.key?(:details)
|
|
338
|
+
@inner_state = args[:inner_state] if args.key?(:inner_state)
|
|
339
|
+
@state = args[:state] if args.key?(:state)
|
|
340
|
+
@state_start_time = args[:state_start_time] if args.key?(:state_start_time)
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# The status of a cluster and its instances.
|
|
345
|
+
class ClusterStatus
|
|
346
|
+
include Google::Apis::Core::Hashable
|
|
347
|
+
|
|
348
|
+
# Output-only. Optional details of cluster's state.
|
|
349
|
+
# Corresponds to the JSON property `detail`
|
|
350
|
+
# @return [String]
|
|
351
|
+
attr_accessor :detail
|
|
352
|
+
|
|
353
|
+
# Output-only. The cluster's state.
|
|
354
|
+
# Corresponds to the JSON property `state`
|
|
355
|
+
# @return [String]
|
|
356
|
+
attr_accessor :state
|
|
357
|
+
|
|
358
|
+
# Output-only. Time when this state was entered.
|
|
359
|
+
# Corresponds to the JSON property `stateStartTime`
|
|
360
|
+
# @return [String]
|
|
361
|
+
attr_accessor :state_start_time
|
|
362
|
+
|
|
363
|
+
# Output-only. Additional state information that includes status reported by the
|
|
364
|
+
# agent.
|
|
365
|
+
# Corresponds to the JSON property `substate`
|
|
366
|
+
# @return [String]
|
|
367
|
+
attr_accessor :substate
|
|
368
|
+
|
|
369
|
+
def initialize(**args)
|
|
370
|
+
update!(**args)
|
|
371
|
+
end
|
|
372
|
+
|
|
373
|
+
# Update properties of this object
|
|
374
|
+
def update!(**args)
|
|
375
|
+
@detail = args[:detail] if args.key?(:detail)
|
|
376
|
+
@state = args[:state] if args.key?(:state)
|
|
377
|
+
@state_start_time = args[:state_start_time] if args.key?(:state_start_time)
|
|
378
|
+
@substate = args[:substate] if args.key?(:substate)
|
|
379
|
+
end
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# A request to collect cluster diagnostic information.
|
|
383
|
+
class DiagnoseClusterRequest
|
|
384
|
+
include Google::Apis::Core::Hashable
|
|
385
|
+
|
|
386
|
+
def initialize(**args)
|
|
387
|
+
update!(**args)
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Update properties of this object
|
|
391
|
+
def update!(**args)
|
|
392
|
+
end
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
# The location of diagnostic output.
|
|
396
|
+
class DiagnoseClusterResults
|
|
397
|
+
include Google::Apis::Core::Hashable
|
|
398
|
+
|
|
399
|
+
# Output-only. The Google Cloud Storage URI of the diagnostic output. The output
|
|
400
|
+
# report is a plain text file with a summary of collected diagnostics.
|
|
401
|
+
# Corresponds to the JSON property `outputUri`
|
|
402
|
+
# @return [String]
|
|
403
|
+
attr_accessor :output_uri
|
|
404
|
+
|
|
405
|
+
def initialize(**args)
|
|
406
|
+
update!(**args)
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Update properties of this object
|
|
410
|
+
def update!(**args)
|
|
411
|
+
@output_uri = args[:output_uri] if args.key?(:output_uri)
|
|
412
|
+
end
|
|
413
|
+
end
|
|
414
|
+
|
|
415
|
+
# Specifies the config of disk options for a group of VM instances.
|
|
416
|
+
class DiskConfig
|
|
417
|
+
include Google::Apis::Core::Hashable
|
|
418
|
+
|
|
419
|
+
# Optional. Size in GB of the boot disk (default is 500GB).
|
|
420
|
+
# Corresponds to the JSON property `bootDiskSizeGb`
|
|
421
|
+
# @return [Fixnum]
|
|
422
|
+
attr_accessor :boot_disk_size_gb
|
|
423
|
+
|
|
424
|
+
# Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not
|
|
425
|
+
# attached, the boot disk is used to store runtime logs and HDFS (https://hadoop.
|
|
426
|
+
# apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are
|
|
427
|
+
# attached, this runtime bulk data is spread across them, and the boot disk
|
|
428
|
+
# contains only basic config and installed binaries.
|
|
429
|
+
# Corresponds to the JSON property `numLocalSsds`
|
|
430
|
+
# @return [Fixnum]
|
|
431
|
+
attr_accessor :num_local_ssds
|
|
432
|
+
|
|
433
|
+
def initialize(**args)
|
|
434
|
+
update!(**args)
|
|
435
|
+
end
|
|
436
|
+
|
|
437
|
+
# Update properties of this object
|
|
438
|
+
def update!(**args)
|
|
439
|
+
@boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
|
|
440
|
+
@num_local_ssds = args[:num_local_ssds] if args.key?(:num_local_ssds)
|
|
441
|
+
end
|
|
442
|
+
end
|
|
443
|
+
|
|
444
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
445
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
|
446
|
+
# response type of an API method. For instance:
|
|
447
|
+
# service Foo `
|
|
448
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
|
449
|
+
# `
|
|
450
|
+
# The JSON representation for Empty is empty JSON object ``.
|
|
451
|
+
class Empty
|
|
452
|
+
include Google::Apis::Core::Hashable
|
|
453
|
+
|
|
454
|
+
def initialize(**args)
|
|
455
|
+
update!(**args)
|
|
456
|
+
end
|
|
457
|
+
|
|
458
|
+
# Update properties of this object
|
|
459
|
+
def update!(**args)
|
|
460
|
+
end
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
# Common config settings for resources of Google Compute Engine cluster
|
|
464
|
+
# instances, applicable to all instances in the cluster.
|
|
465
|
+
class GceClusterConfig
|
|
466
|
+
include Google::Apis::Core::Hashable
|
|
467
|
+
|
|
468
|
+
# Optional. If true, all instances in the cluster will only have internal IP
|
|
469
|
+
# addresses. By default, clusters are not restricted to internal IP addresses,
|
|
470
|
+
# and will have ephemeral external IP addresses assigned to each instance. This
|
|
471
|
+
# internal_ip_only restriction can only be enabled for subnetwork enabled
|
|
472
|
+
# networks, and all off-cluster dependencies must be configured to be accessible
|
|
473
|
+
# without external IP addresses.
|
|
474
|
+
# Corresponds to the JSON property `internalIpOnly`
|
|
475
|
+
# @return [Boolean]
|
|
476
|
+
attr_accessor :internal_ip_only
|
|
477
|
+
alias_method :internal_ip_only?, :internal_ip_only
|
|
478
|
+
|
|
479
|
+
# The Google Compute Engine metadata entries to add to all instances (see
|
|
480
|
+
# Project and instance metadata (https://cloud.google.com/compute/docs/storing-
|
|
481
|
+
# retrieving-metadata#project_and_instance_metadata)).
|
|
482
|
+
# Corresponds to the JSON property `metadata`
|
|
483
|
+
# @return [Hash<String,String>]
|
|
484
|
+
attr_accessor :metadata
|
|
485
|
+
|
|
486
|
+
# Optional. The Google Compute Engine network to be used for machine
|
|
487
|
+
# communications. Cannot be specified with subnetwork_uri. If neither
|
|
488
|
+
# network_uri nor subnetwork_uri is specified, the "default" network of the
|
|
489
|
+
# project is used, if it exists. Cannot be a "Custom Subnet Network" (see Using
|
|
490
|
+
# Subnetworks for more information).A full URL, partial URI, or short name are
|
|
491
|
+
# valid. Examples:
|
|
492
|
+
# https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/
|
|
493
|
+
# default
|
|
494
|
+
# projects/[project_id]/regions/global/default
|
|
495
|
+
# default
|
|
496
|
+
# Corresponds to the JSON property `networkUri`
|
|
497
|
+
# @return [String]
|
|
498
|
+
attr_accessor :network_uri
|
|
499
|
+
|
|
500
|
+
# Optional. The service account of the instances. Defaults to the default Google
|
|
501
|
+
# Compute Engine service account. Custom service accounts need permissions
|
|
502
|
+
# equivalent to the folloing IAM roles:
|
|
503
|
+
# roles/logging.logWriter
|
|
504
|
+
# roles/storage.objectAdmin(see https://cloud.google.com/compute/docs/access/
|
|
505
|
+
# service-accounts#custom_service_accounts for more information). Example: [
|
|
506
|
+
# account_id]@[project_id].iam.gserviceaccount.com
|
|
507
|
+
# Corresponds to the JSON property `serviceAccount`
|
|
508
|
+
# @return [String]
|
|
509
|
+
attr_accessor :service_account
|
|
510
|
+
|
|
511
|
+
# Optional. The URIs of service account scopes to be included in Google Compute
|
|
512
|
+
# Engine instances. The following base set of scopes is always included:
|
|
513
|
+
# https://www.googleapis.com/auth/cloud.useraccounts.readonly
|
|
514
|
+
# https://www.googleapis.com/auth/devstorage.read_write
|
|
515
|
+
# https://www.googleapis.com/auth/logging.writeIf no scopes are specified, the
|
|
516
|
+
# following defaults are also provided:
|
|
517
|
+
# https://www.googleapis.com/auth/bigquery
|
|
518
|
+
# https://www.googleapis.com/auth/bigtable.admin.table
|
|
519
|
+
# https://www.googleapis.com/auth/bigtable.data
|
|
520
|
+
# https://www.googleapis.com/auth/devstorage.full_control
|
|
521
|
+
# Corresponds to the JSON property `serviceAccountScopes`
|
|
522
|
+
# @return [Array<String>]
|
|
523
|
+
attr_accessor :service_account_scopes
|
|
524
|
+
|
|
525
|
+
# Optional. The Google Compute Engine subnetwork to be used for machine
|
|
526
|
+
# communications. Cannot be specified with network_uri.A full URL, partial URI,
|
|
527
|
+
# or short name are valid. Examples:
|
|
528
|
+
# https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/
|
|
529
|
+
# sub0
|
|
530
|
+
# projects/[project_id]/regions/us-east1/sub0
|
|
531
|
+
# sub0
|
|
532
|
+
# Corresponds to the JSON property `subnetworkUri`
|
|
533
|
+
# @return [String]
|
|
534
|
+
attr_accessor :subnetwork_uri
|
|
535
|
+
|
|
536
|
+
# The Google Compute Engine tags to add to all instances (see Tagging instances).
|
|
537
|
+
# Corresponds to the JSON property `tags`
|
|
538
|
+
# @return [Array<String>]
|
|
539
|
+
attr_accessor :tags
|
|
540
|
+
|
|
541
|
+
# Optional. The zone where the Google Compute Engine cluster will be located. On
|
|
542
|
+
# a create request, it is required in the "global" region. If omitted in a non-
|
|
543
|
+
# global Cloud Dataproc region, the service will pick a zone in the
|
|
544
|
+
# corresponding Compute Engine region. On a get request, zone will always be
|
|
545
|
+
# present.A full URL, partial URI, or short name are valid. Examples:
|
|
546
|
+
# https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
|
|
547
|
+
# projects/[project_id]/zones/[zone]
|
|
548
|
+
# us-central1-f
|
|
549
|
+
# Corresponds to the JSON property `zoneUri`
|
|
550
|
+
# @return [String]
|
|
551
|
+
attr_accessor :zone_uri
|
|
552
|
+
|
|
553
|
+
def initialize(**args)
|
|
554
|
+
update!(**args)
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
# Update properties of this object
|
|
558
|
+
def update!(**args)
|
|
559
|
+
@internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only)
|
|
560
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
561
|
+
@network_uri = args[:network_uri] if args.key?(:network_uri)
|
|
562
|
+
@service_account = args[:service_account] if args.key?(:service_account)
|
|
563
|
+
@service_account_scopes = args[:service_account_scopes] if args.key?(:service_account_scopes)
|
|
564
|
+
@subnetwork_uri = args[:subnetwork_uri] if args.key?(:subnetwork_uri)
|
|
565
|
+
@tags = args[:tags] if args.key?(:tags)
|
|
566
|
+
@zone_uri = args[:zone_uri] if args.key?(:zone_uri)
|
|
567
|
+
end
|
|
568
|
+
end
|
|
569
|
+
|
|
570
|
+
# A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
|
|
571
|
+
# apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
|
|
572
|
+
# MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
|
|
573
|
+
# docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
|
|
574
|
+
class HadoopJob
|
|
575
|
+
include Google::Apis::Core::Hashable
|
|
576
|
+
|
|
577
|
+
# Optional. HCFS URIs of archives to be extracted in the working directory of
|
|
578
|
+
# Hadoop drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, or .
|
|
579
|
+
# zip.
|
|
580
|
+
# Corresponds to the JSON property `archiveUris`
|
|
581
|
+
# @return [Array<String>]
|
|
582
|
+
attr_accessor :archive_uris
|
|
583
|
+
|
|
584
|
+
# Optional. The arguments to pass to the driver. Do not include arguments, such
|
|
585
|
+
# as -libjars or -Dfoo=bar, that can be set as job properties, since a collision
|
|
586
|
+
# may occur that causes an incorrect job submission.
|
|
587
|
+
# Corresponds to the JSON property `args`
|
|
588
|
+
# @return [Array<String>]
|
|
589
|
+
attr_accessor :args
|
|
590
|
+
|
|
591
|
+
# Optional. HCFS (Hadoop Compatible Filesystem) URIs of files to be copied to
|
|
592
|
+
# the working directory of Hadoop drivers and distributed tasks. Useful for
|
|
593
|
+
# naively parallel tasks.
|
|
594
|
+
# Corresponds to the JSON property `fileUris`
|
|
595
|
+
# @return [Array<String>]
|
|
596
|
+
attr_accessor :file_uris
|
|
597
|
+
|
|
598
|
+
# Optional. Jar file URIs to add to the CLASSPATHs of the Hadoop driver and
|
|
599
|
+
# tasks.
|
|
600
|
+
# Corresponds to the JSON property `jarFileUris`
|
|
601
|
+
# @return [Array<String>]
|
|
602
|
+
attr_accessor :jar_file_uris
|
|
603
|
+
|
|
604
|
+
# The runtime logging config of the job.
|
|
605
|
+
# Corresponds to the JSON property `loggingConfig`
|
|
606
|
+
# @return [Google::Apis::DataprocV1beta2::LoggingConfig]
|
|
607
|
+
attr_accessor :logging_config
|
|
608
|
+
|
|
609
|
+
# The name of the driver's main class. The jar file containing the class must be
|
|
610
|
+
# in the default CLASSPATH or specified in jar_file_uris.
|
|
611
|
+
# Corresponds to the JSON property `mainClass`
|
|
612
|
+
# @return [String]
|
|
613
|
+
attr_accessor :main_class
|
|
614
|
+
|
|
615
|
+
# The HCFS URI of the jar file containing the main class. Examples: 'gs://foo-
|
|
616
|
+
# bucket/analytics-binaries/extract-useful-metrics-mr.jar' 'hdfs:/tmp/test-
|
|
617
|
+
# samples/custom-wordcount.jar' 'file:///home/usr/lib/hadoop-mapreduce/hadoop-
|
|
618
|
+
# mapreduce-examples.jar'
|
|
619
|
+
# Corresponds to the JSON property `mainJarFileUri`
|
|
620
|
+
# @return [String]
|
|
621
|
+
attr_accessor :main_jar_file_uri
|
|
622
|
+
|
|
623
|
+
# Optional. A mapping of property names to values, used to configure Hadoop.
|
|
624
|
+
# Properties that conflict with values set by the Cloud Dataproc API may be
|
|
625
|
+
# overwritten. Can include properties set in /etc/hadoop/conf/*-site and classes
|
|
626
|
+
# in user code.
|
|
627
|
+
# Corresponds to the JSON property `properties`
|
|
628
|
+
# @return [Hash<String,String>]
|
|
629
|
+
attr_accessor :properties
|
|
630
|
+
|
|
631
|
+
def initialize(**args)
|
|
632
|
+
update!(**args)
|
|
633
|
+
end
|
|
634
|
+
|
|
635
|
+
# Update properties of this object
|
|
636
|
+
def update!(**args)
|
|
637
|
+
@archive_uris = args[:archive_uris] if args.key?(:archive_uris)
|
|
638
|
+
@args = args[:args] if args.key?(:args)
|
|
639
|
+
@file_uris = args[:file_uris] if args.key?(:file_uris)
|
|
640
|
+
@jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
|
|
641
|
+
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
|
642
|
+
@main_class = args[:main_class] if args.key?(:main_class)
|
|
643
|
+
@main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
|
|
644
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
645
|
+
end
|
|
646
|
+
end
|
|
647
|
+
|
|
648
|
+
# A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/)
|
|
649
|
+
# queries on YARN.
|
|
650
|
+
class HiveJob
|
|
651
|
+
include Google::Apis::Core::Hashable
|
|
652
|
+
|
|
653
|
+
# Optional. Whether to continue executing queries if a query fails. The default
|
|
654
|
+
# value is false. Setting to true can be useful when executing independent
|
|
655
|
+
# parallel queries.
|
|
656
|
+
# Corresponds to the JSON property `continueOnFailure`
|
|
657
|
+
# @return [Boolean]
|
|
658
|
+
attr_accessor :continue_on_failure
|
|
659
|
+
alias_method :continue_on_failure?, :continue_on_failure
|
|
660
|
+
|
|
661
|
+
# Optional. HCFS URIs of jar files to add to the CLASSPATH of the Hive server
|
|
662
|
+
# and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes and UDFs.
|
|
663
|
+
# Corresponds to the JSON property `jarFileUris`
|
|
664
|
+
# @return [Array<String>]
|
|
665
|
+
attr_accessor :jar_file_uris
|
|
666
|
+
|
|
667
|
+
# Optional. A mapping of property names and values, used to configure Hive.
|
|
668
|
+
# Properties that conflict with values set by the Cloud Dataproc API may be
|
|
669
|
+
# overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
|
|
670
|
+
# hive/conf/hive-site.xml, and classes in user code.
|
|
671
|
+
# Corresponds to the JSON property `properties`
|
|
672
|
+
# @return [Hash<String,String>]
|
|
673
|
+
attr_accessor :properties
|
|
674
|
+
|
|
675
|
+
# The HCFS URI of the script that contains Hive queries.
|
|
676
|
+
# Corresponds to the JSON property `queryFileUri`
|
|
677
|
+
# @return [String]
|
|
678
|
+
attr_accessor :query_file_uri
|
|
679
|
+
|
|
680
|
+
# A list of queries to run on a cluster.
|
|
681
|
+
# Corresponds to the JSON property `queryList`
|
|
682
|
+
# @return [Google::Apis::DataprocV1beta2::QueryList]
|
|
683
|
+
attr_accessor :query_list
|
|
684
|
+
|
|
685
|
+
# Optional. Mapping of query variable names to values (equivalent to the Hive
|
|
686
|
+
# command: SET name="value";).
|
|
687
|
+
# Corresponds to the JSON property `scriptVariables`
|
|
688
|
+
# @return [Hash<String,String>]
|
|
689
|
+
attr_accessor :script_variables
|
|
690
|
+
|
|
691
|
+
def initialize(**args)
|
|
692
|
+
update!(**args)
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
# Update properties of this object
|
|
696
|
+
def update!(**args)
|
|
697
|
+
@continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
|
|
698
|
+
@jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
|
|
699
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
700
|
+
@query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
|
|
701
|
+
@query_list = args[:query_list] if args.key?(:query_list)
|
|
702
|
+
@script_variables = args[:script_variables] if args.key?(:script_variables)
|
|
703
|
+
end
|
|
704
|
+
end
|
|
705
|
+
|
|
706
|
+
# Optional. The config settings for Google Compute Engine resources in an
|
|
707
|
+
# instance group, such as a master or worker group.
|
|
708
|
+
class InstanceGroupConfig
|
|
709
|
+
include Google::Apis::Core::Hashable
|
|
710
|
+
|
|
711
|
+
# Optional. The Google Compute Engine accelerator configuration for these
|
|
712
|
+
# instances.Beta Feature: This feature is still under development. It may be
|
|
713
|
+
# changed before final release.
|
|
714
|
+
# Corresponds to the JSON property `accelerators`
|
|
715
|
+
# @return [Array<Google::Apis::DataprocV1beta2::AcceleratorConfig>]
|
|
716
|
+
attr_accessor :accelerators
|
|
717
|
+
|
|
718
|
+
# Specifies the config of disk options for a group of VM instances.
|
|
719
|
+
# Corresponds to the JSON property `diskConfig`
|
|
720
|
+
# @return [Google::Apis::DataprocV1beta2::DiskConfig]
|
|
721
|
+
attr_accessor :disk_config
|
|
722
|
+
|
|
723
|
+
# Output-only. The Google Compute Engine image resource used for cluster
|
|
724
|
+
# instances. Inferred from SoftwareConfig.image_version.
|
|
725
|
+
# Corresponds to the JSON property `imageUri`
|
|
726
|
+
# @return [String]
|
|
727
|
+
attr_accessor :image_uri
|
|
728
|
+
|
|
729
|
+
# Optional. The list of instance names. Cloud Dataproc derives the names from
|
|
730
|
+
# cluster_name, num_instances, and the instance group if not set by user (
|
|
731
|
+
# recommended practice is to let Cloud Dataproc derive the name).
|
|
732
|
+
# Corresponds to the JSON property `instanceNames`
|
|
733
|
+
# @return [Array<String>]
|
|
734
|
+
attr_accessor :instance_names
|
|
735
|
+
|
|
736
|
+
# Optional. Specifies that this instance group contains preemptible instances.
|
|
737
|
+
# Corresponds to the JSON property `isPreemptible`
|
|
738
|
+
# @return [Boolean]
|
|
739
|
+
attr_accessor :is_preemptible
|
|
740
|
+
alias_method :is_preemptible?, :is_preemptible
|
|
741
|
+
|
|
742
|
+
# Optional. The Google Compute Engine machine type used for cluster instances.A
|
|
743
|
+
# full URL, partial URI, or short name are valid. Examples:
|
|
744
|
+
# https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/
|
|
745
|
+
# machineTypes/n1-standard-2
|
|
746
|
+
# projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
|
|
747
|
+
# n1-standard-2
|
|
748
|
+
# Corresponds to the JSON property `machineTypeUri`
|
|
749
|
+
# @return [String]
|
|
750
|
+
attr_accessor :machine_type_uri
|
|
751
|
+
|
|
752
|
+
# Specifies the resources used to actively manage an instance group.
|
|
753
|
+
# Corresponds to the JSON property `managedGroupConfig`
|
|
754
|
+
# @return [Google::Apis::DataprocV1beta2::ManagedGroupConfig]
|
|
755
|
+
attr_accessor :managed_group_config
|
|
756
|
+
|
|
757
|
+
# Optional. The number of VM instances in the instance group. For master
|
|
758
|
+
# instance groups, must be set to 1.
|
|
759
|
+
# Corresponds to the JSON property `numInstances`
|
|
760
|
+
# @return [Fixnum]
|
|
761
|
+
attr_accessor :num_instances
|
|
762
|
+
|
|
763
|
+
def initialize(**args)
|
|
764
|
+
update!(**args)
|
|
765
|
+
end
|
|
766
|
+
|
|
767
|
+
# Update properties of this object
|
|
768
|
+
def update!(**args)
|
|
769
|
+
@accelerators = args[:accelerators] if args.key?(:accelerators)
|
|
770
|
+
@disk_config = args[:disk_config] if args.key?(:disk_config)
|
|
771
|
+
@image_uri = args[:image_uri] if args.key?(:image_uri)
|
|
772
|
+
@instance_names = args[:instance_names] if args.key?(:instance_names)
|
|
773
|
+
@is_preemptible = args[:is_preemptible] if args.key?(:is_preemptible)
|
|
774
|
+
@machine_type_uri = args[:machine_type_uri] if args.key?(:machine_type_uri)
|
|
775
|
+
@managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
|
|
776
|
+
@num_instances = args[:num_instances] if args.key?(:num_instances)
|
|
777
|
+
end
|
|
778
|
+
end
|
|
779
|
+
|
|
780
|
+
# A Cloud Dataproc job resource.
|
|
781
|
+
class Job
|
|
782
|
+
include Google::Apis::Core::Hashable
|
|
783
|
+
|
|
784
|
+
# Output-only. If present, the location of miscellaneous control files which may
|
|
785
|
+
# be used as part of job setup and handling. If not present, control files may
|
|
786
|
+
# be placed in the same location as driver_output_uri.
|
|
787
|
+
# Corresponds to the JSON property `driverControlFilesUri`
|
|
788
|
+
# @return [String]
|
|
789
|
+
attr_accessor :driver_control_files_uri
|
|
790
|
+
|
|
791
|
+
# Output-only. A URI pointing to the location of the stdout of the job's driver
|
|
792
|
+
# program.
|
|
793
|
+
# Corresponds to the JSON property `driverOutputResourceUri`
|
|
794
|
+
# @return [String]
|
|
795
|
+
attr_accessor :driver_output_resource_uri
|
|
796
|
+
|
|
797
|
+
# A Cloud Dataproc job for running Apache Hadoop MapReduce (https://hadoop.
|
|
798
|
+
# apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/
|
|
799
|
+
# MapReduceTutorial.html) jobs on Apache Hadoop YARN (https://hadoop.apache.org/
|
|
800
|
+
# docs/r2.7.1/hadoop-yarn/hadoop-yarn-site/YARN.html).
|
|
801
|
+
# Corresponds to the JSON property `hadoopJob`
|
|
802
|
+
# @return [Google::Apis::DataprocV1beta2::HadoopJob]
|
|
803
|
+
attr_accessor :hadoop_job
|
|
804
|
+
|
|
805
|
+
# A Cloud Dataproc job for running Apache Hive (https://hive.apache.org/)
|
|
806
|
+
# queries on YARN.
|
|
807
|
+
# Corresponds to the JSON property `hiveJob`
|
|
808
|
+
# @return [Google::Apis::DataprocV1beta2::HiveJob]
|
|
809
|
+
attr_accessor :hive_job
|
|
810
|
+
|
|
811
|
+
# Optional. The labels to associate with this job. Label keys must contain 1 to
|
|
812
|
+
# 63 characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.
|
|
813
|
+
# txt). Label values may be empty, but, if present, must contain 1 to 63
|
|
814
|
+
# characters, and must conform to RFC 1035 (https://www.ietf.org/rfc/rfc1035.txt)
|
|
815
|
+
# . No more than 32 labels can be associated with a job.
|
|
816
|
+
# Corresponds to the JSON property `labels`
|
|
817
|
+
# @return [Hash<String,String>]
|
|
818
|
+
attr_accessor :labels
|
|
819
|
+
|
|
820
|
+
# A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
|
|
821
|
+
# on YARN.
|
|
822
|
+
# Corresponds to the JSON property `pigJob`
|
|
823
|
+
# @return [Google::Apis::DataprocV1beta2::PigJob]
|
|
824
|
+
attr_accessor :pig_job
|
|
825
|
+
|
|
826
|
+
# Cloud Dataproc job config.
|
|
827
|
+
# Corresponds to the JSON property `placement`
|
|
828
|
+
# @return [Google::Apis::DataprocV1beta2::JobPlacement]
|
|
829
|
+
attr_accessor :placement
|
|
830
|
+
|
|
831
|
+
# A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/
|
|
832
|
+
# 0.9.0/python-programming-guide.html) applications on YARN.
|
|
833
|
+
# Corresponds to the JSON property `pysparkJob`
|
|
834
|
+
# @return [Google::Apis::DataprocV1beta2::PySparkJob]
|
|
835
|
+
attr_accessor :pyspark_job
|
|
836
|
+
|
|
837
|
+
# Encapsulates the full scoping used to reference a job.
|
|
838
|
+
# Corresponds to the JSON property `reference`
|
|
839
|
+
# @return [Google::Apis::DataprocV1beta2::JobReference]
|
|
840
|
+
attr_accessor :reference
|
|
841
|
+
|
|
842
|
+
# Job scheduling options.Beta Feature: These options are available for testing
|
|
843
|
+
# purposes only. They may be changed before final release.
|
|
844
|
+
# Corresponds to the JSON property `scheduling`
|
|
845
|
+
# @return [Google::Apis::DataprocV1beta2::JobScheduling]
|
|
846
|
+
attr_accessor :scheduling
|
|
847
|
+
|
|
848
|
+
# A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
|
|
849
|
+
# applications on YARN.
|
|
850
|
+
# Corresponds to the JSON property `sparkJob`
|
|
851
|
+
# @return [Google::Apis::DataprocV1beta2::SparkJob]
|
|
852
|
+
attr_accessor :spark_job
|
|
853
|
+
|
|
854
|
+
# A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
|
|
855
|
+
# ) queries.
|
|
856
|
+
# Corresponds to the JSON property `sparkSqlJob`
|
|
857
|
+
# @return [Google::Apis::DataprocV1beta2::SparkSqlJob]
|
|
858
|
+
attr_accessor :spark_sql_job
|
|
859
|
+
|
|
860
|
+
# Cloud Dataproc job status.
|
|
861
|
+
# Corresponds to the JSON property `status`
|
|
862
|
+
# @return [Google::Apis::DataprocV1beta2::JobStatus]
|
|
863
|
+
attr_accessor :status
|
|
864
|
+
|
|
865
|
+
# Output-only. The previous job status.
|
|
866
|
+
# Corresponds to the JSON property `statusHistory`
|
|
867
|
+
# @return [Array<Google::Apis::DataprocV1beta2::JobStatus>]
|
|
868
|
+
attr_accessor :status_history
|
|
869
|
+
|
|
870
|
+
# Output-only. The collection of YARN applications spun up by this job.Beta
|
|
871
|
+
# Feature: This report is available for testing purposes only. It may be changed
|
|
872
|
+
# before final release.
|
|
873
|
+
# Corresponds to the JSON property `yarnApplications`
|
|
874
|
+
# @return [Array<Google::Apis::DataprocV1beta2::YarnApplication>]
|
|
875
|
+
attr_accessor :yarn_applications
|
|
876
|
+
|
|
877
|
+
def initialize(**args)
|
|
878
|
+
update!(**args)
|
|
879
|
+
end
|
|
880
|
+
|
|
881
|
+
# Update properties of this object
|
|
882
|
+
def update!(**args)
|
|
883
|
+
@driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
|
|
884
|
+
@driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
|
|
885
|
+
@hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
|
|
886
|
+
@hive_job = args[:hive_job] if args.key?(:hive_job)
|
|
887
|
+
@labels = args[:labels] if args.key?(:labels)
|
|
888
|
+
@pig_job = args[:pig_job] if args.key?(:pig_job)
|
|
889
|
+
@placement = args[:placement] if args.key?(:placement)
|
|
890
|
+
@pyspark_job = args[:pyspark_job] if args.key?(:pyspark_job)
|
|
891
|
+
@reference = args[:reference] if args.key?(:reference)
|
|
892
|
+
@scheduling = args[:scheduling] if args.key?(:scheduling)
|
|
893
|
+
@spark_job = args[:spark_job] if args.key?(:spark_job)
|
|
894
|
+
@spark_sql_job = args[:spark_sql_job] if args.key?(:spark_sql_job)
|
|
895
|
+
@status = args[:status] if args.key?(:status)
|
|
896
|
+
@status_history = args[:status_history] if args.key?(:status_history)
|
|
897
|
+
@yarn_applications = args[:yarn_applications] if args.key?(:yarn_applications)
|
|
898
|
+
end
|
|
899
|
+
end
|
|
900
|
+
|
|
901
|
+
# Cloud Dataproc job config.
|
|
902
|
+
class JobPlacement
|
|
903
|
+
include Google::Apis::Core::Hashable
|
|
904
|
+
|
|
905
|
+
# Required. The name of the cluster where the job will be submitted.
|
|
906
|
+
# Corresponds to the JSON property `clusterName`
|
|
907
|
+
# @return [String]
|
|
908
|
+
attr_accessor :cluster_name
|
|
909
|
+
|
|
910
|
+
# Output-only. A cluster UUID generated by the Cloud Dataproc service when the
|
|
911
|
+
# job is submitted.
|
|
912
|
+
# Corresponds to the JSON property `clusterUuid`
|
|
913
|
+
# @return [String]
|
|
914
|
+
attr_accessor :cluster_uuid
|
|
915
|
+
|
|
916
|
+
def initialize(**args)
|
|
917
|
+
update!(**args)
|
|
918
|
+
end
|
|
919
|
+
|
|
920
|
+
# Update properties of this object
|
|
921
|
+
def update!(**args)
|
|
922
|
+
@cluster_name = args[:cluster_name] if args.key?(:cluster_name)
|
|
923
|
+
@cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid)
|
|
924
|
+
end
|
|
925
|
+
end
|
|
926
|
+
|
|
927
|
+
# Encapsulates the full scoping used to reference a job.
|
|
928
|
+
class JobReference
|
|
929
|
+
include Google::Apis::Core::Hashable
|
|
930
|
+
|
|
931
|
+
# Optional. The job ID, which must be unique within the project. The job ID is
|
|
932
|
+
# generated by the server upon job submission or provided by the user as a means
|
|
933
|
+
# to perform retries without creating duplicate jobs. The ID must contain only
|
|
934
|
+
# letters (a-z, A-Z), numbers (0-9), underscores (_), or hyphens (-). The
|
|
935
|
+
# maximum length is 100 characters.
|
|
936
|
+
# Corresponds to the JSON property `jobId`
|
|
937
|
+
# @return [String]
|
|
938
|
+
attr_accessor :job_id
|
|
939
|
+
|
|
940
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
|
941
|
+
# Corresponds to the JSON property `projectId`
|
|
942
|
+
# @return [String]
|
|
943
|
+
attr_accessor :project_id
|
|
944
|
+
|
|
945
|
+
def initialize(**args)
|
|
946
|
+
update!(**args)
|
|
947
|
+
end
|
|
948
|
+
|
|
949
|
+
# Update properties of this object
|
|
950
|
+
def update!(**args)
|
|
951
|
+
@job_id = args[:job_id] if args.key?(:job_id)
|
|
952
|
+
@project_id = args[:project_id] if args.key?(:project_id)
|
|
953
|
+
end
|
|
954
|
+
end
|
|
955
|
+
|
|
956
|
+
# Job scheduling options.Beta Feature: These options are available for testing
|
|
957
|
+
# purposes only. They may be changed before final release.
|
|
958
|
+
class JobScheduling
|
|
959
|
+
include Google::Apis::Core::Hashable
|
|
960
|
+
|
|
961
|
+
# Optional. Maximum number of times per hour a driver may be restarted as a
|
|
962
|
+
# result of driver terminating with non-zero code before job is reported failed.
|
|
963
|
+
# A job may be reported as thrashing if driver exits with non-zero code 4 times
|
|
964
|
+
# within 10 minute window.Maximum value is 10.
|
|
965
|
+
# Corresponds to the JSON property `maxFailuresPerHour`
|
|
966
|
+
# @return [Fixnum]
|
|
967
|
+
attr_accessor :max_failures_per_hour
|
|
968
|
+
|
|
969
|
+
def initialize(**args)
|
|
970
|
+
update!(**args)
|
|
971
|
+
end
|
|
972
|
+
|
|
973
|
+
# Update properties of this object
|
|
974
|
+
def update!(**args)
|
|
975
|
+
@max_failures_per_hour = args[:max_failures_per_hour] if args.key?(:max_failures_per_hour)
|
|
976
|
+
end
|
|
977
|
+
end
|
|
978
|
+
|
|
979
|
+
# Cloud Dataproc job status.
|
|
980
|
+
class JobStatus
|
|
981
|
+
include Google::Apis::Core::Hashable
|
|
982
|
+
|
|
983
|
+
# Output-only. Optional job state details, such as an error description if the
|
|
984
|
+
# state is <code>ERROR</code>.
|
|
985
|
+
# Corresponds to the JSON property `details`
|
|
986
|
+
# @return [String]
|
|
987
|
+
attr_accessor :details
|
|
988
|
+
|
|
989
|
+
# Output-only. A state message specifying the overall job state.
|
|
990
|
+
# Corresponds to the JSON property `state`
|
|
991
|
+
# @return [String]
|
|
992
|
+
attr_accessor :state
|
|
993
|
+
|
|
994
|
+
# Output-only. The time when this state was entered.
|
|
995
|
+
# Corresponds to the JSON property `stateStartTime`
|
|
996
|
+
# @return [String]
|
|
997
|
+
attr_accessor :state_start_time
|
|
998
|
+
|
|
999
|
+
# Output-only. Additional state information, which includes status reported by
|
|
1000
|
+
# the agent.
|
|
1001
|
+
# Corresponds to the JSON property `substate`
|
|
1002
|
+
# @return [String]
|
|
1003
|
+
attr_accessor :substate
|
|
1004
|
+
|
|
1005
|
+
def initialize(**args)
|
|
1006
|
+
update!(**args)
|
|
1007
|
+
end
|
|
1008
|
+
|
|
1009
|
+
# Update properties of this object
|
|
1010
|
+
def update!(**args)
|
|
1011
|
+
@details = args[:details] if args.key?(:details)
|
|
1012
|
+
@state = args[:state] if args.key?(:state)
|
|
1013
|
+
@state_start_time = args[:state_start_time] if args.key?(:state_start_time)
|
|
1014
|
+
@substate = args[:substate] if args.key?(:substate)
|
|
1015
|
+
end
|
|
1016
|
+
end
|
|
1017
|
+
|
|
1018
|
+
# Specifies the cluster auto delete related schedule configuration.
|
|
1019
|
+
class LifecycleConfig
|
|
1020
|
+
include Google::Apis::Core::Hashable
|
|
1021
|
+
|
|
1022
|
+
# Optional. The time when cluster will be auto-deleted.
|
|
1023
|
+
# Corresponds to the JSON property `autoDeleteTime`
|
|
1024
|
+
# @return [String]
|
|
1025
|
+
attr_accessor :auto_delete_time
|
|
1026
|
+
|
|
1027
|
+
# Optional. The life duration of cluster, the cluster will be auto-deleted at
|
|
1028
|
+
# the end of this duration.
|
|
1029
|
+
# Corresponds to the JSON property `autoDeleteTtl`
|
|
1030
|
+
# @return [String]
|
|
1031
|
+
attr_accessor :auto_delete_ttl
|
|
1032
|
+
|
|
1033
|
+
# Optional. The longest duration that cluster would keep alive while staying
|
|
1034
|
+
# idle; passing this threshold will cause cluster to be auto-deleted.
|
|
1035
|
+
# Corresponds to the JSON property `idleDeleteTtl`
|
|
1036
|
+
# @return [String]
|
|
1037
|
+
attr_accessor :idle_delete_ttl
|
|
1038
|
+
|
|
1039
|
+
def initialize(**args)
|
|
1040
|
+
update!(**args)
|
|
1041
|
+
end
|
|
1042
|
+
|
|
1043
|
+
# Update properties of this object
|
|
1044
|
+
def update!(**args)
|
|
1045
|
+
@auto_delete_time = args[:auto_delete_time] if args.key?(:auto_delete_time)
|
|
1046
|
+
@auto_delete_ttl = args[:auto_delete_ttl] if args.key?(:auto_delete_ttl)
|
|
1047
|
+
@idle_delete_ttl = args[:idle_delete_ttl] if args.key?(:idle_delete_ttl)
|
|
1048
|
+
end
|
|
1049
|
+
end
|
|
1050
|
+
|
|
1051
|
+
# The list of all clusters in a project.
|
|
1052
|
+
class ListClustersResponse
|
|
1053
|
+
include Google::Apis::Core::Hashable
|
|
1054
|
+
|
|
1055
|
+
# Output-only. The clusters in the project.
|
|
1056
|
+
# Corresponds to the JSON property `clusters`
|
|
1057
|
+
# @return [Array<Google::Apis::DataprocV1beta2::Cluster>]
|
|
1058
|
+
attr_accessor :clusters
|
|
1059
|
+
|
|
1060
|
+
# Output-only. This token is included in the response if there are more results
|
|
1061
|
+
# to fetch. To fetch additional results, provide this value as the page_token in
|
|
1062
|
+
# a subsequent <code>ListClustersRequest</code>.
|
|
1063
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1064
|
+
# @return [String]
|
|
1065
|
+
attr_accessor :next_page_token
|
|
1066
|
+
|
|
1067
|
+
def initialize(**args)
|
|
1068
|
+
update!(**args)
|
|
1069
|
+
end
|
|
1070
|
+
|
|
1071
|
+
# Update properties of this object
|
|
1072
|
+
def update!(**args)
|
|
1073
|
+
@clusters = args[:clusters] if args.key?(:clusters)
|
|
1074
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1075
|
+
end
|
|
1076
|
+
end
|
|
1077
|
+
|
|
1078
|
+
# A list of jobs in a project.
|
|
1079
|
+
class ListJobsResponse
|
|
1080
|
+
include Google::Apis::Core::Hashable
|
|
1081
|
+
|
|
1082
|
+
# Output-only. Jobs list.
|
|
1083
|
+
# Corresponds to the JSON property `jobs`
|
|
1084
|
+
# @return [Array<Google::Apis::DataprocV1beta2::Job>]
|
|
1085
|
+
attr_accessor :jobs
|
|
1086
|
+
|
|
1087
|
+
# Optional. This token is included in the response if there are more results to
|
|
1088
|
+
# fetch. To fetch additional results, provide this value as the page_token in a
|
|
1089
|
+
# subsequent <code>ListJobsRequest</code>.
|
|
1090
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1091
|
+
# @return [String]
|
|
1092
|
+
attr_accessor :next_page_token
|
|
1093
|
+
|
|
1094
|
+
def initialize(**args)
|
|
1095
|
+
update!(**args)
|
|
1096
|
+
end
|
|
1097
|
+
|
|
1098
|
+
# Update properties of this object
|
|
1099
|
+
def update!(**args)
|
|
1100
|
+
@jobs = args[:jobs] if args.key?(:jobs)
|
|
1101
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1102
|
+
end
|
|
1103
|
+
end
|
|
1104
|
+
|
|
1105
|
+
# The response message for Operations.ListOperations.
|
|
1106
|
+
class ListOperationsResponse
|
|
1107
|
+
include Google::Apis::Core::Hashable
|
|
1108
|
+
|
|
1109
|
+
# The standard List next-page token.
|
|
1110
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1111
|
+
# @return [String]
|
|
1112
|
+
attr_accessor :next_page_token
|
|
1113
|
+
|
|
1114
|
+
# A list of operations that matches the specified filter in the request.
|
|
1115
|
+
# Corresponds to the JSON property `operations`
|
|
1116
|
+
# @return [Array<Google::Apis::DataprocV1beta2::Operation>]
|
|
1117
|
+
attr_accessor :operations
|
|
1118
|
+
|
|
1119
|
+
def initialize(**args)
|
|
1120
|
+
update!(**args)
|
|
1121
|
+
end
|
|
1122
|
+
|
|
1123
|
+
# Update properties of this object
|
|
1124
|
+
def update!(**args)
|
|
1125
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
|
1126
|
+
@operations = args[:operations] if args.key?(:operations)
|
|
1127
|
+
end
|
|
1128
|
+
end
|
|
1129
|
+
|
|
1130
|
+
# The runtime logging config of the job.
|
|
1131
|
+
class LoggingConfig
|
|
1132
|
+
include Google::Apis::Core::Hashable
|
|
1133
|
+
|
|
1134
|
+
# The per-package log levels for the driver. This may include "root" package
|
|
1135
|
+
# name to configure rootLogger. Examples: 'com.google = FATAL', 'root = INFO', '
|
|
1136
|
+
# org.apache = DEBUG'
|
|
1137
|
+
# Corresponds to the JSON property `driverLogLevels`
|
|
1138
|
+
# @return [Hash<String,String>]
|
|
1139
|
+
attr_accessor :driver_log_levels
|
|
1140
|
+
|
|
1141
|
+
def initialize(**args)
|
|
1142
|
+
update!(**args)
|
|
1143
|
+
end
|
|
1144
|
+
|
|
1145
|
+
# Update properties of this object
|
|
1146
|
+
def update!(**args)
|
|
1147
|
+
@driver_log_levels = args[:driver_log_levels] if args.key?(:driver_log_levels)
|
|
1148
|
+
end
|
|
1149
|
+
end
|
|
1150
|
+
|
|
1151
|
+
# Specifies the resources used to actively manage an instance group.
|
|
1152
|
+
class ManagedGroupConfig
|
|
1153
|
+
include Google::Apis::Core::Hashable
|
|
1154
|
+
|
|
1155
|
+
# Output-only. The name of the Instance Group Manager for this group.
|
|
1156
|
+
# Corresponds to the JSON property `instanceGroupManagerName`
|
|
1157
|
+
# @return [String]
|
|
1158
|
+
attr_accessor :instance_group_manager_name
|
|
1159
|
+
|
|
1160
|
+
# Output-only. The name of the Instance Template used for the Managed Instance
|
|
1161
|
+
# Group.
|
|
1162
|
+
# Corresponds to the JSON property `instanceTemplateName`
|
|
1163
|
+
# @return [String]
|
|
1164
|
+
attr_accessor :instance_template_name
|
|
1165
|
+
|
|
1166
|
+
def initialize(**args)
|
|
1167
|
+
update!(**args)
|
|
1168
|
+
end
|
|
1169
|
+
|
|
1170
|
+
# Update properties of this object
|
|
1171
|
+
def update!(**args)
|
|
1172
|
+
@instance_group_manager_name = args[:instance_group_manager_name] if args.key?(:instance_group_manager_name)
|
|
1173
|
+
@instance_template_name = args[:instance_template_name] if args.key?(:instance_template_name)
|
|
1174
|
+
end
|
|
1175
|
+
end
|
|
1176
|
+
|
|
1177
|
+
# Specifies an executable to run on a fully configured node and a timeout period
|
|
1178
|
+
# for executable completion.
|
|
1179
|
+
class NodeInitializationAction
|
|
1180
|
+
include Google::Apis::Core::Hashable
|
|
1181
|
+
|
|
1182
|
+
# Required. Google Cloud Storage URI of executable file.
|
|
1183
|
+
# Corresponds to the JSON property `executableFile`
|
|
1184
|
+
# @return [String]
|
|
1185
|
+
attr_accessor :executable_file
|
|
1186
|
+
|
|
1187
|
+
# Optional. Amount of time executable has to complete. Default is 10 minutes.
|
|
1188
|
+
# Cluster creation fails with an explanatory error message (the name of the
|
|
1189
|
+
# executable that caused the error and the exceeded timeout period) if the
|
|
1190
|
+
# executable is not completed at end of the timeout period.
|
|
1191
|
+
# Corresponds to the JSON property `executionTimeout`
|
|
1192
|
+
# @return [String]
|
|
1193
|
+
attr_accessor :execution_timeout
|
|
1194
|
+
|
|
1195
|
+
def initialize(**args)
|
|
1196
|
+
update!(**args)
|
|
1197
|
+
end
|
|
1198
|
+
|
|
1199
|
+
# Update properties of this object
|
|
1200
|
+
def update!(**args)
|
|
1201
|
+
@executable_file = args[:executable_file] if args.key?(:executable_file)
|
|
1202
|
+
@execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout)
|
|
1203
|
+
end
|
|
1204
|
+
end
|
|
1205
|
+
|
|
1206
|
+
# This resource represents a long-running operation that is the result of a
|
|
1207
|
+
# network API call.
|
|
1208
|
+
class Operation
|
|
1209
|
+
include Google::Apis::Core::Hashable
|
|
1210
|
+
|
|
1211
|
+
# If the value is false, it means the operation is still in progress. If true,
|
|
1212
|
+
# the operation is completed, and either error or response is available.
|
|
1213
|
+
# Corresponds to the JSON property `done`
|
|
1214
|
+
# @return [Boolean]
|
|
1215
|
+
attr_accessor :done
|
|
1216
|
+
alias_method :done?, :done
|
|
1217
|
+
|
|
1218
|
+
# The Status type defines a logical error model that is suitable for different
|
|
1219
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
|
1220
|
+
# (https://github.com/grpc). The error model is designed to be:
|
|
1221
|
+
# Simple to use and understand for most users
|
|
1222
|
+
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
|
1223
|
+
# three pieces of data: error code, error message, and error details. The error
|
|
1224
|
+
# code should be an enum value of google.rpc.Code, but it may accept additional
|
|
1225
|
+
# error codes if needed. The error message should be a developer-facing English
|
|
1226
|
+
# message that helps developers understand and resolve the error. If a localized
|
|
1227
|
+
# user-facing error message is needed, put the localized message in the error
|
|
1228
|
+
# details or localize it in the client. The optional error details may contain
|
|
1229
|
+
# arbitrary information about the error. There is a predefined set of error
|
|
1230
|
+
# detail types in the package google.rpc that can be used for common error
|
|
1231
|
+
# conditions.Language mappingThe Status message is the logical representation of
|
|
1232
|
+
# the error model, but it is not necessarily the actual wire format. When the
|
|
1233
|
+
# Status message is exposed in different client libraries and different wire
|
|
1234
|
+
# protocols, it can be mapped differently. For example, it will likely be mapped
|
|
1235
|
+
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
|
1236
|
+
# Other usesThe error model and the Status message can be used in a variety of
|
|
1237
|
+
# environments, either with or without APIs, to provide a consistent developer
|
|
1238
|
+
# experience across different environments.Example uses of this error model
|
|
1239
|
+
# include:
|
|
1240
|
+
# Partial errors. If a service needs to return partial errors to the client, it
|
|
1241
|
+
# may embed the Status in the normal response to indicate the partial errors.
|
|
1242
|
+
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
|
1243
|
+
# Status message for error reporting.
|
|
1244
|
+
# Batch operations. If a client uses batch request and batch response, the
|
|
1245
|
+
# Status message should be used directly inside batch response, one for each
|
|
1246
|
+
# error sub-response.
|
|
1247
|
+
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
1248
|
+
# in its response, the status of those operations should be represented directly
|
|
1249
|
+
# using the Status message.
|
|
1250
|
+
# Logging. If some API errors are stored in logs, the message Status could be
|
|
1251
|
+
# used directly after any stripping needed for security/privacy reasons.
|
|
1252
|
+
# Corresponds to the JSON property `error`
|
|
1253
|
+
# @return [Google::Apis::DataprocV1beta2::Status]
|
|
1254
|
+
attr_accessor :error
|
|
1255
|
+
|
|
1256
|
+
# Service-specific metadata associated with the operation. It typically contains
|
|
1257
|
+
# progress information and common metadata such as create time. Some services
|
|
1258
|
+
# might not provide such metadata. Any method that returns a long-running
|
|
1259
|
+
# operation should document the metadata type, if any.
|
|
1260
|
+
# Corresponds to the JSON property `metadata`
|
|
1261
|
+
# @return [Hash<String,Object>]
|
|
1262
|
+
attr_accessor :metadata
|
|
1263
|
+
|
|
1264
|
+
# The server-assigned name, which is only unique within the same service that
|
|
1265
|
+
# originally returns it. If you use the default HTTP mapping, the name should
|
|
1266
|
+
# have the format of operations/some/unique/name.
|
|
1267
|
+
# Corresponds to the JSON property `name`
|
|
1268
|
+
# @return [String]
|
|
1269
|
+
attr_accessor :name
|
|
1270
|
+
|
|
1271
|
+
# The normal response of the operation in case of success. If the original
|
|
1272
|
+
# method returns no data on success, such as Delete, the response is google.
|
|
1273
|
+
# protobuf.Empty. If the original method is standard Get/Create/Update, the
|
|
1274
|
+
# response should be the resource. For other methods, the response should have
|
|
1275
|
+
# the type XxxResponse, where Xxx is the original method name. For example, if
|
|
1276
|
+
# the original method name is TakeSnapshot(), the inferred response type is
|
|
1277
|
+
# TakeSnapshotResponse.
|
|
1278
|
+
# Corresponds to the JSON property `response`
|
|
1279
|
+
# @return [Hash<String,Object>]
|
|
1280
|
+
attr_accessor :response
|
|
1281
|
+
|
|
1282
|
+
def initialize(**args)
|
|
1283
|
+
update!(**args)
|
|
1284
|
+
end
|
|
1285
|
+
|
|
1286
|
+
# Update properties of this object
|
|
1287
|
+
def update!(**args)
|
|
1288
|
+
@done = args[:done] if args.key?(:done)
|
|
1289
|
+
@error = args[:error] if args.key?(:error)
|
|
1290
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
|
1291
|
+
@name = args[:name] if args.key?(:name)
|
|
1292
|
+
@response = args[:response] if args.key?(:response)
|
|
1293
|
+
end
|
|
1294
|
+
end
|
|
1295
|
+
|
|
1296
|
+
# A Cloud Dataproc job for running Apache Pig (https://pig.apache.org/) queries
|
|
1297
|
+
# on YARN.
|
|
1298
|
+
class PigJob
|
|
1299
|
+
include Google::Apis::Core::Hashable
|
|
1300
|
+
|
|
1301
|
+
# Optional. Whether to continue executing queries if a query fails. The default
|
|
1302
|
+
# value is false. Setting to true can be useful when executing independent
|
|
1303
|
+
# parallel queries.
|
|
1304
|
+
# Corresponds to the JSON property `continueOnFailure`
|
|
1305
|
+
# @return [Boolean]
|
|
1306
|
+
attr_accessor :continue_on_failure
|
|
1307
|
+
alias_method :continue_on_failure?, :continue_on_failure
|
|
1308
|
+
|
|
1309
|
+
# Optional. HCFS URIs of jar files to add to the CLASSPATH of the Pig Client and
|
|
1310
|
+
# Hadoop MapReduce (MR) tasks. Can contain Pig UDFs.
|
|
1311
|
+
# Corresponds to the JSON property `jarFileUris`
|
|
1312
|
+
# @return [Array<String>]
|
|
1313
|
+
attr_accessor :jar_file_uris
|
|
1314
|
+
|
|
1315
|
+
# The runtime logging config of the job.
|
|
1316
|
+
# Corresponds to the JSON property `loggingConfig`
|
|
1317
|
+
# @return [Google::Apis::DataprocV1beta2::LoggingConfig]
|
|
1318
|
+
attr_accessor :logging_config
|
|
1319
|
+
|
|
1320
|
+
# Optional. A mapping of property names to values, used to configure Pig.
|
|
1321
|
+
# Properties that conflict with values set by the Cloud Dataproc API may be
|
|
1322
|
+
# overwritten. Can include properties set in /etc/hadoop/conf/*-site.xml, /etc/
|
|
1323
|
+
# pig/conf/pig.properties, and classes in user code.
|
|
1324
|
+
# Corresponds to the JSON property `properties`
|
|
1325
|
+
# @return [Hash<String,String>]
|
|
1326
|
+
attr_accessor :properties
|
|
1327
|
+
|
|
1328
|
+
# The HCFS URI of the script that contains the Pig queries.
|
|
1329
|
+
# Corresponds to the JSON property `queryFileUri`
|
|
1330
|
+
# @return [String]
|
|
1331
|
+
attr_accessor :query_file_uri
|
|
1332
|
+
|
|
1333
|
+
# A list of queries to run on a cluster.
|
|
1334
|
+
# Corresponds to the JSON property `queryList`
|
|
1335
|
+
# @return [Google::Apis::DataprocV1beta2::QueryList]
|
|
1336
|
+
attr_accessor :query_list
|
|
1337
|
+
|
|
1338
|
+
# Optional. Mapping of query variable names to values (equivalent to the Pig
|
|
1339
|
+
# command: name=[value]).
|
|
1340
|
+
# Corresponds to the JSON property `scriptVariables`
|
|
1341
|
+
# @return [Hash<String,String>]
|
|
1342
|
+
attr_accessor :script_variables
|
|
1343
|
+
|
|
1344
|
+
def initialize(**args)
|
|
1345
|
+
update!(**args)
|
|
1346
|
+
end
|
|
1347
|
+
|
|
1348
|
+
# Update properties of this object
|
|
1349
|
+
def update!(**args)
|
|
1350
|
+
@continue_on_failure = args[:continue_on_failure] if args.key?(:continue_on_failure)
|
|
1351
|
+
@jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
|
|
1352
|
+
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
|
1353
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
1354
|
+
@query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
|
|
1355
|
+
@query_list = args[:query_list] if args.key?(:query_list)
|
|
1356
|
+
@script_variables = args[:script_variables] if args.key?(:script_variables)
|
|
1357
|
+
end
|
|
1358
|
+
end
|
|
1359
|
+
|
|
1360
|
+
# A Cloud Dataproc job for running Apache PySpark (https://spark.apache.org/docs/
|
|
1361
|
+
# 0.9.0/python-programming-guide.html) applications on YARN.
|
|
1362
|
+
class PySparkJob
|
|
1363
|
+
include Google::Apis::Core::Hashable
|
|
1364
|
+
|
|
1365
|
+
# Optional. HCFS URIs of archives to be extracted in the working directory of .
|
|
1366
|
+
# jar, .tar, .tar.gz, .tgz, and .zip.
|
|
1367
|
+
# Corresponds to the JSON property `archiveUris`
|
|
1368
|
+
# @return [Array<String>]
|
|
1369
|
+
attr_accessor :archive_uris
|
|
1370
|
+
|
|
1371
|
+
# Optional. The arguments to pass to the driver. Do not include arguments, such
|
|
1372
|
+
# as --conf, that can be set as job properties, since a collision may occur that
|
|
1373
|
+
# causes an incorrect job submission.
|
|
1374
|
+
# Corresponds to the JSON property `args`
|
|
1375
|
+
# @return [Array<String>]
|
|
1376
|
+
attr_accessor :args
|
|
1377
|
+
|
|
1378
|
+
# Optional. HCFS URIs of files to be copied to the working directory of Python
|
|
1379
|
+
# drivers and distributed tasks. Useful for naively parallel tasks.
|
|
1380
|
+
# Corresponds to the JSON property `fileUris`
|
|
1381
|
+
# @return [Array<String>]
|
|
1382
|
+
attr_accessor :file_uris
|
|
1383
|
+
|
|
1384
|
+
# Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Python driver
|
|
1385
|
+
# and tasks.
|
|
1386
|
+
# Corresponds to the JSON property `jarFileUris`
|
|
1387
|
+
# @return [Array<String>]
|
|
1388
|
+
attr_accessor :jar_file_uris
|
|
1389
|
+
|
|
1390
|
+
# The runtime logging config of the job.
|
|
1391
|
+
# Corresponds to the JSON property `loggingConfig`
|
|
1392
|
+
# @return [Google::Apis::DataprocV1beta2::LoggingConfig]
|
|
1393
|
+
attr_accessor :logging_config
|
|
1394
|
+
|
|
1395
|
+
# Required. The HCFS URI of the main Python file to use as the driver. Must be a
|
|
1396
|
+
# .py file.
|
|
1397
|
+
# Corresponds to the JSON property `mainPythonFileUri`
|
|
1398
|
+
# @return [String]
|
|
1399
|
+
attr_accessor :main_python_file_uri
|
|
1400
|
+
|
|
1401
|
+
# Optional. A mapping of property names to values, used to configure PySpark.
|
|
1402
|
+
# Properties that conflict with values set by the Cloud Dataproc API may be
|
|
1403
|
+
# overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf
|
|
1404
|
+
# and classes in user code.
|
|
1405
|
+
# Corresponds to the JSON property `properties`
|
|
1406
|
+
# @return [Hash<String,String>]
|
|
1407
|
+
attr_accessor :properties
|
|
1408
|
+
|
|
1409
|
+
# Optional. HCFS file URIs of Python files to pass to the PySpark framework.
|
|
1410
|
+
# Supported file types: .py, .egg, and .zip.
|
|
1411
|
+
# Corresponds to the JSON property `pythonFileUris`
|
|
1412
|
+
# @return [Array<String>]
|
|
1413
|
+
attr_accessor :python_file_uris
|
|
1414
|
+
|
|
1415
|
+
def initialize(**args)
|
|
1416
|
+
update!(**args)
|
|
1417
|
+
end
|
|
1418
|
+
|
|
1419
|
+
# Update properties of this object
|
|
1420
|
+
def update!(**args)
|
|
1421
|
+
@archive_uris = args[:archive_uris] if args.key?(:archive_uris)
|
|
1422
|
+
@args = args[:args] if args.key?(:args)
|
|
1423
|
+
@file_uris = args[:file_uris] if args.key?(:file_uris)
|
|
1424
|
+
@jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
|
|
1425
|
+
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
|
1426
|
+
@main_python_file_uri = args[:main_python_file_uri] if args.key?(:main_python_file_uri)
|
|
1427
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
1428
|
+
@python_file_uris = args[:python_file_uris] if args.key?(:python_file_uris)
|
|
1429
|
+
end
|
|
1430
|
+
end
|
|
1431
|
+
|
|
1432
|
+
# A list of queries to run on a cluster.
|
|
1433
|
+
class QueryList
|
|
1434
|
+
include Google::Apis::Core::Hashable
|
|
1435
|
+
|
|
1436
|
+
# Required. The queries to execute. You do not need to terminate a query with a
|
|
1437
|
+
# semicolon. Multiple queries can be specified in one string by separating each
|
|
1438
|
+
# with a semicolon. Here is an example of an Cloud Dataproc API snippet that
|
|
1439
|
+
# uses a QueryList to specify a HiveJob:
|
|
1440
|
+
# "hiveJob": `
|
|
1441
|
+
# "queryList": `
|
|
1442
|
+
# "queries": [
|
|
1443
|
+
# "query1",
|
|
1444
|
+
# "query2",
|
|
1445
|
+
# "query3;query4",
|
|
1446
|
+
# ]
|
|
1447
|
+
# `
|
|
1448
|
+
# `
|
|
1449
|
+
# Corresponds to the JSON property `queries`
|
|
1450
|
+
# @return [Array<String>]
|
|
1451
|
+
attr_accessor :queries
|
|
1452
|
+
|
|
1453
|
+
def initialize(**args)
|
|
1454
|
+
update!(**args)
|
|
1455
|
+
end
|
|
1456
|
+
|
|
1457
|
+
# Update properties of this object
|
|
1458
|
+
def update!(**args)
|
|
1459
|
+
@queries = args[:queries] if args.key?(:queries)
|
|
1460
|
+
end
|
|
1461
|
+
end
|
|
1462
|
+
|
|
1463
|
+
# Specifies the selection and config of software inside the cluster.
|
|
1464
|
+
class SoftwareConfig
|
|
1465
|
+
include Google::Apis::Core::Hashable
|
|
1466
|
+
|
|
1467
|
+
# Optional. The version of software inside the cluster. It must match the
|
|
1468
|
+
# regular expression [0-9]+\.[0-9]+. If unspecified, it defaults to the latest
|
|
1469
|
+
# version (see Cloud Dataproc Versioning).
|
|
1470
|
+
# Corresponds to the JSON property `imageVersion`
|
|
1471
|
+
# @return [String]
|
|
1472
|
+
attr_accessor :image_version
|
|
1473
|
+
|
|
1474
|
+
# Optional. The properties to set on daemon config files.Property keys are
|
|
1475
|
+
# specified in prefix:property format, such as core:fs.defaultFS. The following
|
|
1476
|
+
# are supported prefixes and their mappings:
|
|
1477
|
+
# capacity-scheduler: capacity-scheduler.xml
|
|
1478
|
+
# core: core-site.xml
|
|
1479
|
+
# distcp: distcp-default.xml
|
|
1480
|
+
# hdfs: hdfs-site.xml
|
|
1481
|
+
# hive: hive-site.xml
|
|
1482
|
+
# mapred: mapred-site.xml
|
|
1483
|
+
# pig: pig.properties
|
|
1484
|
+
# spark: spark-defaults.conf
|
|
1485
|
+
# yarn: yarn-site.xmlFor more information, see Cluster properties.
|
|
1486
|
+
# Corresponds to the JSON property `properties`
|
|
1487
|
+
# @return [Hash<String,String>]
|
|
1488
|
+
attr_accessor :properties
|
|
1489
|
+
|
|
1490
|
+
def initialize(**args)
|
|
1491
|
+
update!(**args)
|
|
1492
|
+
end
|
|
1493
|
+
|
|
1494
|
+
# Update properties of this object
|
|
1495
|
+
def update!(**args)
|
|
1496
|
+
@image_version = args[:image_version] if args.key?(:image_version)
|
|
1497
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
1498
|
+
end
|
|
1499
|
+
end
|
|
1500
|
+
|
|
1501
|
+
# A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/)
|
|
1502
|
+
# applications on YARN.
|
|
1503
|
+
class SparkJob
|
|
1504
|
+
include Google::Apis::Core::Hashable
|
|
1505
|
+
|
|
1506
|
+
# Optional. HCFS URIs of archives to be extracted in the working directory of
|
|
1507
|
+
# Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .
|
|
1508
|
+
# zip.
|
|
1509
|
+
# Corresponds to the JSON property `archiveUris`
|
|
1510
|
+
# @return [Array<String>]
|
|
1511
|
+
attr_accessor :archive_uris
|
|
1512
|
+
|
|
1513
|
+
# Optional. The arguments to pass to the driver. Do not include arguments, such
|
|
1514
|
+
# as --conf, that can be set as job properties, since a collision may occur that
|
|
1515
|
+
# causes an incorrect job submission.
|
|
1516
|
+
# Corresponds to the JSON property `args`
|
|
1517
|
+
# @return [Array<String>]
|
|
1518
|
+
attr_accessor :args
|
|
1519
|
+
|
|
1520
|
+
# Optional. HCFS URIs of files to be copied to the working directory of Spark
|
|
1521
|
+
# drivers and distributed tasks. Useful for naively parallel tasks.
|
|
1522
|
+
# Corresponds to the JSON property `fileUris`
|
|
1523
|
+
# @return [Array<String>]
|
|
1524
|
+
attr_accessor :file_uris
|
|
1525
|
+
|
|
1526
|
+
# Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver
|
|
1527
|
+
# and tasks.
|
|
1528
|
+
# Corresponds to the JSON property `jarFileUris`
|
|
1529
|
+
# @return [Array<String>]
|
|
1530
|
+
attr_accessor :jar_file_uris
|
|
1531
|
+
|
|
1532
|
+
# The runtime logging config of the job.
|
|
1533
|
+
# Corresponds to the JSON property `loggingConfig`
|
|
1534
|
+
# @return [Google::Apis::DataprocV1beta2::LoggingConfig]
|
|
1535
|
+
attr_accessor :logging_config
|
|
1536
|
+
|
|
1537
|
+
# The name of the driver's main class. The jar file that contains the class must
|
|
1538
|
+
# be in the default CLASSPATH or specified in jar_file_uris.
|
|
1539
|
+
# Corresponds to the JSON property `mainClass`
|
|
1540
|
+
# @return [String]
|
|
1541
|
+
attr_accessor :main_class
|
|
1542
|
+
|
|
1543
|
+
# The HCFS URI of the jar file that contains the main class.
|
|
1544
|
+
# Corresponds to the JSON property `mainJarFileUri`
|
|
1545
|
+
# @return [String]
|
|
1546
|
+
attr_accessor :main_jar_file_uri
|
|
1547
|
+
|
|
1548
|
+
# Optional. A mapping of property names to values, used to configure Spark.
|
|
1549
|
+
# Properties that conflict with values set by the Cloud Dataproc API may be
|
|
1550
|
+
# overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf
|
|
1551
|
+
# and classes in user code.
|
|
1552
|
+
# Corresponds to the JSON property `properties`
|
|
1553
|
+
# @return [Hash<String,String>]
|
|
1554
|
+
attr_accessor :properties
|
|
1555
|
+
|
|
1556
|
+
def initialize(**args)
|
|
1557
|
+
update!(**args)
|
|
1558
|
+
end
|
|
1559
|
+
|
|
1560
|
+
# Update properties of this object
|
|
1561
|
+
def update!(**args)
|
|
1562
|
+
@archive_uris = args[:archive_uris] if args.key?(:archive_uris)
|
|
1563
|
+
@args = args[:args] if args.key?(:args)
|
|
1564
|
+
@file_uris = args[:file_uris] if args.key?(:file_uris)
|
|
1565
|
+
@jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
|
|
1566
|
+
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
|
1567
|
+
@main_class = args[:main_class] if args.key?(:main_class)
|
|
1568
|
+
@main_jar_file_uri = args[:main_jar_file_uri] if args.key?(:main_jar_file_uri)
|
|
1569
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
1570
|
+
end
|
|
1571
|
+
end
|
|
1572
|
+
|
|
1573
|
+
# A Cloud Dataproc job for running Apache Spark SQL (http://spark.apache.org/sql/
|
|
1574
|
+
# ) queries.
|
|
1575
|
+
class SparkSqlJob
|
|
1576
|
+
include Google::Apis::Core::Hashable
|
|
1577
|
+
|
|
1578
|
+
# Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
|
|
1579
|
+
# Corresponds to the JSON property `jarFileUris`
|
|
1580
|
+
# @return [Array<String>]
|
|
1581
|
+
attr_accessor :jar_file_uris
|
|
1582
|
+
|
|
1583
|
+
# The runtime logging config of the job.
|
|
1584
|
+
# Corresponds to the JSON property `loggingConfig`
|
|
1585
|
+
# @return [Google::Apis::DataprocV1beta2::LoggingConfig]
|
|
1586
|
+
attr_accessor :logging_config
|
|
1587
|
+
|
|
1588
|
+
# Optional. A mapping of property names to values, used to configure Spark SQL's
|
|
1589
|
+
# SparkConf. Properties that conflict with values set by the Cloud Dataproc API
|
|
1590
|
+
# may be overwritten.
|
|
1591
|
+
# Corresponds to the JSON property `properties`
|
|
1592
|
+
# @return [Hash<String,String>]
|
|
1593
|
+
attr_accessor :properties
|
|
1594
|
+
|
|
1595
|
+
# The HCFS URI of the script that contains SQL queries.
|
|
1596
|
+
# Corresponds to the JSON property `queryFileUri`
|
|
1597
|
+
# @return [String]
|
|
1598
|
+
attr_accessor :query_file_uri
|
|
1599
|
+
|
|
1600
|
+
# A list of queries to run on a cluster.
|
|
1601
|
+
# Corresponds to the JSON property `queryList`
|
|
1602
|
+
# @return [Google::Apis::DataprocV1beta2::QueryList]
|
|
1603
|
+
attr_accessor :query_list
|
|
1604
|
+
|
|
1605
|
+
# Optional. Mapping of query variable names to values (equivalent to the Spark
|
|
1606
|
+
# SQL command: SET name="value";).
|
|
1607
|
+
# Corresponds to the JSON property `scriptVariables`
|
|
1608
|
+
# @return [Hash<String,String>]
|
|
1609
|
+
attr_accessor :script_variables
|
|
1610
|
+
|
|
1611
|
+
def initialize(**args)
|
|
1612
|
+
update!(**args)
|
|
1613
|
+
end
|
|
1614
|
+
|
|
1615
|
+
# Update properties of this object
|
|
1616
|
+
def update!(**args)
|
|
1617
|
+
@jar_file_uris = args[:jar_file_uris] if args.key?(:jar_file_uris)
|
|
1618
|
+
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
|
1619
|
+
@properties = args[:properties] if args.key?(:properties)
|
|
1620
|
+
@query_file_uri = args[:query_file_uri] if args.key?(:query_file_uri)
|
|
1621
|
+
@query_list = args[:query_list] if args.key?(:query_list)
|
|
1622
|
+
@script_variables = args[:script_variables] if args.key?(:script_variables)
|
|
1623
|
+
end
|
|
1624
|
+
end
|
|
1625
|
+
|
|
1626
|
+
# The Status type defines a logical error model that is suitable for different
|
|
1627
|
+
# programming environments, including REST APIs and RPC APIs. It is used by gRPC
|
|
1628
|
+
# (https://github.com/grpc). The error model is designed to be:
|
|
1629
|
+
# Simple to use and understand for most users
|
|
1630
|
+
# Flexible enough to meet unexpected needsOverviewThe Status message contains
|
|
1631
|
+
# three pieces of data: error code, error message, and error details. The error
|
|
1632
|
+
# code should be an enum value of google.rpc.Code, but it may accept additional
|
|
1633
|
+
# error codes if needed. The error message should be a developer-facing English
|
|
1634
|
+
# message that helps developers understand and resolve the error. If a localized
|
|
1635
|
+
# user-facing error message is needed, put the localized message in the error
|
|
1636
|
+
# details or localize it in the client. The optional error details may contain
|
|
1637
|
+
# arbitrary information about the error. There is a predefined set of error
|
|
1638
|
+
# detail types in the package google.rpc that can be used for common error
|
|
1639
|
+
# conditions.Language mappingThe Status message is the logical representation of
|
|
1640
|
+
# the error model, but it is not necessarily the actual wire format. When the
|
|
1641
|
+
# Status message is exposed in different client libraries and different wire
|
|
1642
|
+
# protocols, it can be mapped differently. For example, it will likely be mapped
|
|
1643
|
+
# to some exceptions in Java, but more likely mapped to some error codes in C.
|
|
1644
|
+
# Other usesThe error model and the Status message can be used in a variety of
|
|
1645
|
+
# environments, either with or without APIs, to provide a consistent developer
|
|
1646
|
+
# experience across different environments.Example uses of this error model
|
|
1647
|
+
# include:
|
|
1648
|
+
# Partial errors. If a service needs to return partial errors to the client, it
|
|
1649
|
+
# may embed the Status in the normal response to indicate the partial errors.
|
|
1650
|
+
# Workflow errors. A typical workflow has multiple steps. Each step may have a
|
|
1651
|
+
# Status message for error reporting.
|
|
1652
|
+
# Batch operations. If a client uses batch request and batch response, the
|
|
1653
|
+
# Status message should be used directly inside batch response, one for each
|
|
1654
|
+
# error sub-response.
|
|
1655
|
+
# Asynchronous operations. If an API call embeds asynchronous operation results
|
|
1656
|
+
# in its response, the status of those operations should be represented directly
|
|
1657
|
+
# using the Status message.
|
|
1658
|
+
# Logging. If some API errors are stored in logs, the message Status could be
|
|
1659
|
+
# used directly after any stripping needed for security/privacy reasons.
|
|
1660
|
+
class Status
|
|
1661
|
+
include Google::Apis::Core::Hashable
|
|
1662
|
+
|
|
1663
|
+
# The status code, which should be an enum value of google.rpc.Code.
|
|
1664
|
+
# Corresponds to the JSON property `code`
|
|
1665
|
+
# @return [Fixnum]
|
|
1666
|
+
attr_accessor :code
|
|
1667
|
+
|
|
1668
|
+
# A list of messages that carry the error details. There is a common set of
|
|
1669
|
+
# message types for APIs to use.
|
|
1670
|
+
# Corresponds to the JSON property `details`
|
|
1671
|
+
# @return [Array<Hash<String,Object>>]
|
|
1672
|
+
attr_accessor :details
|
|
1673
|
+
|
|
1674
|
+
# A developer-facing error message, which should be in English. Any user-facing
|
|
1675
|
+
# error message should be localized and sent in the google.rpc.Status.details
|
|
1676
|
+
# field, or localized by the client.
|
|
1677
|
+
# Corresponds to the JSON property `message`
|
|
1678
|
+
# @return [String]
|
|
1679
|
+
attr_accessor :message
|
|
1680
|
+
|
|
1681
|
+
def initialize(**args)
|
|
1682
|
+
update!(**args)
|
|
1683
|
+
end
|
|
1684
|
+
|
|
1685
|
+
# Update properties of this object
|
|
1686
|
+
def update!(**args)
|
|
1687
|
+
@code = args[:code] if args.key?(:code)
|
|
1688
|
+
@details = args[:details] if args.key?(:details)
|
|
1689
|
+
@message = args[:message] if args.key?(:message)
|
|
1690
|
+
end
|
|
1691
|
+
end
|
|
1692
|
+
|
|
1693
|
+
# A request to submit a job.
|
|
1694
|
+
class SubmitJobRequest
|
|
1695
|
+
include Google::Apis::Core::Hashable
|
|
1696
|
+
|
|
1697
|
+
# A Cloud Dataproc job resource.
|
|
1698
|
+
# Corresponds to the JSON property `job`
|
|
1699
|
+
# @return [Google::Apis::DataprocV1beta2::Job]
|
|
1700
|
+
attr_accessor :job
|
|
1701
|
+
|
|
1702
|
+
def initialize(**args)
|
|
1703
|
+
update!(**args)
|
|
1704
|
+
end
|
|
1705
|
+
|
|
1706
|
+
# Update properties of this object
|
|
1707
|
+
def update!(**args)
|
|
1708
|
+
@job = args[:job] if args.key?(:job)
|
|
1709
|
+
end
|
|
1710
|
+
end
|
|
1711
|
+
|
|
1712
|
+
# A YARN application created by a job. Application information is a subset of <
|
|
1713
|
+
# code>org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto</code>.
|
|
1714
|
+
# Beta Feature: This report is available for testing purposes only. It may be
|
|
1715
|
+
# changed before final release.
|
|
1716
|
+
class YarnApplication
|
|
1717
|
+
include Google::Apis::Core::Hashable
|
|
1718
|
+
|
|
1719
|
+
# Required. The application name.
|
|
1720
|
+
# Corresponds to the JSON property `name`
|
|
1721
|
+
# @return [String]
|
|
1722
|
+
attr_accessor :name
|
|
1723
|
+
|
|
1724
|
+
# Required. The numerical progress of the application, from 1 to 100.
|
|
1725
|
+
# Corresponds to the JSON property `progress`
|
|
1726
|
+
# @return [Float]
|
|
1727
|
+
attr_accessor :progress
|
|
1728
|
+
|
|
1729
|
+
# Required. The application state.
|
|
1730
|
+
# Corresponds to the JSON property `state`
|
|
1731
|
+
# @return [String]
|
|
1732
|
+
attr_accessor :state
|
|
1733
|
+
|
|
1734
|
+
# Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or
|
|
1735
|
+
# TimelineServer that provides application-specific information. The URL uses
|
|
1736
|
+
# the internal hostname, and requires a proxy server for resolution and,
|
|
1737
|
+
# possibly, access.
|
|
1738
|
+
# Corresponds to the JSON property `trackingUrl`
|
|
1739
|
+
# @return [String]
|
|
1740
|
+
attr_accessor :tracking_url
|
|
1741
|
+
|
|
1742
|
+
def initialize(**args)
|
|
1743
|
+
update!(**args)
|
|
1744
|
+
end
|
|
1745
|
+
|
|
1746
|
+
# Update properties of this object
|
|
1747
|
+
def update!(**args)
|
|
1748
|
+
@name = args[:name] if args.key?(:name)
|
|
1749
|
+
@progress = args[:progress] if args.key?(:progress)
|
|
1750
|
+
@state = args[:state] if args.key?(:state)
|
|
1751
|
+
@tracking_url = args[:tracking_url] if args.key?(:tracking_url)
|
|
1752
|
+
end
|
|
1753
|
+
end
|
|
1754
|
+
end
|
|
1755
|
+
end
|
|
1756
|
+
end
|