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