google-api-client 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +149 -0
- data/bin/generate-api +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
- data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
- data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
- data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
- data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
- data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
- data/generated/google/apis/adexperiencereport_v1.rb +35 -0
- data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
- data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +37 -0
- data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
- data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
- data/generated/google/apis/analytics_v2_4/service.rb +345 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +15 -2
- data/generated/google/apis/analytics_v3/representations.rb +3 -0
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
- data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
- data/generated/google/apis/androidmanagement_v1.rb +35 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
- data/generated/google/apis/androidpublisher_v1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
- data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
- data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
- data/generated/google/apis/appengine_v1/representations.rb +351 -335
- data/generated/google/apis/appengine_v1/service.rb +255 -239
- data/generated/google/apis/appengine_v1alpha.rb +41 -0
- data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
- data/generated/google/apis/appengine_v1beta.rb +41 -0
- data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
- data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
- data/generated/google/apis/appengine_v1beta4.rb +41 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
- data/generated/google/apis/appengine_v1beta5.rb +41 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +106 -18
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
- data/generated/google/apis/blogger_v2.rb +34 -0
- data/generated/google/apis/blogger_v2/classes.rb +947 -0
- data/generated/google/apis/blogger_v2/representations.rb +465 -0
- data/generated/google/apis/blogger_v2/service.rb +424 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +4 -207
- data/generated/google/apis/calendar_v3/representations.rb +0 -97
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/classroom_v1.rb +27 -27
- data/generated/google/apis/classroom_v1/classes.rb +1037 -926
- data/generated/google/apis/classroom_v1/representations.rb +294 -244
- data/generated/google/apis/classroom_v1/service.rb +1114 -1109
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
- data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
- data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
- data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
- data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
- data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
- data/generated/google/apis/cloudfunctions_v1.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
- data/generated/google/apis/cloudkms_v1/service.rb +320 -320
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
- data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
- data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
- data/generated/google/apis/cloudtrace_v2.rb +43 -0
- data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
- data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
- data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
- data/generated/google/apis/compute_alpha.rb +49 -0
- data/generated/google/apis/compute_alpha/classes.rb +23796 -0
- data/generated/google/apis/compute_alpha/representations.rb +9391 -0
- data/generated/google/apis/compute_alpha/service.rb +24188 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1597 -235
- data/generated/google/apis/compute_beta/representations.rb +477 -0
- data/generated/google/apis/compute_beta/service.rb +2875 -1677
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +319 -197
- data/generated/google/apis/compute_v1/representations.rb +51 -0
- data/generated/google/apis/compute_v1/service.rb +2057 -172
- data/generated/google/apis/consumersurveys_v2.rb +40 -0
- data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
- data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
- data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1072 -936
- data/generated/google/apis/container_v1/representations.rb +266 -202
- data/generated/google/apis/container_v1/service.rb +243 -243
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
- data/generated/google/apis/container_v1beta1/representations.rb +662 -0
- data/generated/google/apis/container_v1beta1/service.rb +1875 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +72 -3
- data/generated/google/apis/content_v2/representations.rb +23 -0
- data/generated/google/apis/content_v2/service.rb +23 -18
- data/generated/google/apis/content_v2sandbox.rb +35 -0
- data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
- data/generated/google/apis/content_v2sandbox/service.rb +709 -0
- data/generated/google/apis/dataflow_v1b3.rb +5 -5
- data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
- data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
- data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
- data/generated/google/apis/dataproc_v1/representations.rb +227 -227
- data/generated/google/apis/dataproc_v1/service.rb +254 -254
- data/generated/google/apis/dataproc_v1beta2.rb +34 -0
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +1311 -773
- data/generated/google/apis/datastore_v1/representations.rb +351 -148
- data/generated/google/apis/datastore_v1/service.rb +206 -55
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
- data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
- data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +36 -0
- data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
- data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
- data/generated/google/apis/firebaserules_v1/service.rb +113 -113
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +37 -0
- data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
- data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
- data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
- data/generated/google/apis/genomics_v1/representations.rb +482 -482
- data/generated/google/apis/genomics_v1/service.rb +966 -966
- data/generated/google/apis/genomics_v1alpha2.rb +40 -0
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +664 -395
- data/generated/google/apis/iam_v1/representations.rb +194 -81
- data/generated/google/apis/iam_v1/service.rb +657 -92
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +8 -8
- data/generated/google/apis/language_v1.rb +4 -1
- data/generated/google/apis/language_v1/classes.rb +393 -393
- data/generated/google/apis/language_v1/representations.rb +95 -95
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +4 -1
- data/generated/google/apis/language_v1beta1/classes.rb +457 -457
- data/generated/google/apis/language_v1beta1/representations.rb +114 -114
- data/generated/google/apis/language_v1beta1/service.rb +48 -48
- data/generated/google/apis/language_v1beta2.rb +39 -0
- data/generated/google/apis/language_v1beta2/classes.rb +824 -0
- data/generated/google/apis/language_v1beta2/representations.rb +373 -0
- data/generated/google/apis/language_v1beta2/service.rb +217 -0
- data/generated/google/apis/logging_v2.rb +9 -9
- data/generated/google/apis/logging_v2/classes.rb +840 -834
- data/generated/google/apis/logging_v2/representations.rb +168 -167
- data/generated/google/apis/logging_v2/service.rb +667 -463
- data/generated/google/apis/logging_v2beta1.rb +9 -9
- data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
- data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
- data/generated/google/apis/logging_v2beta1/service.rb +253 -255
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
- data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
- data/generated/google/apis/manufacturers_v1/service.rb +8 -7
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1487 -1676
- data/generated/google/apis/ml_v1/representations.rb +229 -299
- data/generated/google/apis/ml_v1/service.rb +359 -253
- data/generated/google/apis/ml_v1beta1.rb +34 -0
- data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
- data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
- data/generated/google/apis/ml_v1beta1/service.rb +975 -0
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +834 -834
- data/generated/google/apis/monitoring_v3/representations.rb +168 -168
- data/generated/google/apis/monitoring_v3/service.rb +330 -330
- data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
- data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
- data/generated/google/apis/mybusiness_v3/service.rb +241 -241
- data/generated/google/apis/oauth2_v1.rb +43 -0
- data/generated/google/apis/oauth2_v1/classes.rb +321 -0
- data/generated/google/apis/oauth2_v1/representations.rb +135 -0
- data/generated/google/apis/oauth2_v1/service.rb +337 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +37 -0
- data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
- data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
- data/generated/google/apis/pagespeedonline_v1.rb +32 -0
- data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
- data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1512 -1512
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +596 -596
- data/generated/google/apis/people_v1.rb +15 -15
- data/generated/google/apis/people_v1/classes.rb +1384 -1383
- data/generated/google/apis/people_v1/representations.rb +311 -311
- data/generated/google/apis/people_v1/service.rb +208 -202
- data/generated/google/apis/playcustomapp_v1.rb +34 -0
- data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
- data/generated/google/apis/playmoviespartner_v1.rb +34 -0
- data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
- data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
- data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_2.rb +44 -0
- data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
- data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
- data/generated/google/apis/prediction_v1_2/service.rb +287 -0
- data/generated/google/apis/prediction_v1_3.rb +44 -0
- data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
- data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
- data/generated/google/apis/prediction_v1_3/service.rb +284 -0
- data/generated/google/apis/prediction_v1_4.rb +44 -0
- data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
- data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
- data/generated/google/apis/prediction_v1_4/service.rb +284 -0
- data/generated/google/apis/prediction_v1_5.rb +44 -0
- data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
- data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
- data/generated/google/apis/prediction_v1_5/service.rb +357 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +352 -352
- data/generated/google/apis/pubsub_v1/representations.rb +77 -77
- data/generated/google/apis/pubsub_v1/service.rb +346 -346
- data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
- data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
- data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
- data/generated/google/apis/replicapool_v1beta1.rb +50 -0
- data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
- data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
- data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
- data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
- data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
- data/generated/google/apis/safebrowsing_v4.rb +32 -0
- data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +99 -157
- data/generated/google/apis/script_v1/representations.rb +17 -47
- data/generated/google/apis/script_v1/service.rb +12 -12
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
- data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
- data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
- data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
- data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
- data/generated/google/apis/serviceuser_v1.rb +5 -5
- data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
- data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
- data/generated/google/apis/serviceuser_v1/service.rb +43 -43
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
- data/generated/google/apis/sheets_v4/representations.rb +931 -930
- data/generated/google/apis/sheets_v4/service.rb +244 -244
- data/generated/google/apis/slides_v1.rb +10 -10
- data/generated/google/apis/slides_v1/classes.rb +2915 -2915
- data/generated/google/apis/slides_v1/representations.rb +698 -698
- data/generated/google/apis/slides_v1/service.rb +35 -35
- data/generated/google/apis/sourcerepo_v1.rb +3 -3
- data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
- data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
- data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
- data/generated/google/apis/spanner_v1.rb +4 -4
- data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
- data/generated/google/apis/spanner_v1/representations.rb +338 -323
- data/generated/google/apis/spanner_v1/service.rb +689 -689
- data/generated/google/apis/spectrum_v1explorer.rb +31 -0
- data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
- data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
- data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
- data/generated/google/apis/speech_v1.rb +34 -0
- data/generated/google/apis/speech_v1/classes.rb +572 -0
- data/generated/google/apis/speech_v1/representations.rb +236 -0
- data/generated/google/apis/speech_v1/service.rb +277 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
- data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
- data/generated/google/apis/speech_v1beta1/service.rb +46 -46
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -6
- data/generated/google/apis/storage_v1/service.rb +51 -29
- data/generated/google/apis/storage_v1beta1.rb +40 -0
- data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
- data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
- data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
- data/generated/google/apis/storage_v1beta2.rb +40 -0
- data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
- data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
- data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
- data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
- data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
- data/generated/google/apis/streetviewpublish_v1.rb +36 -0
- data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
- data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
- data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
- data/generated/google/apis/translate_v2/classes.rb +111 -111
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +94 -94
- data/generated/google/apis/vault_v1.rb +31 -0
- data/generated/google/apis/vault_v1/classes.rb +554 -0
- data/generated/google/apis/vault_v1/representations.rb +318 -0
- data/generated/google/apis/vault_v1/service.rb +677 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
- data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +4 -4
- data/generated/google/apis/vision_v1/classes.rb +1176 -1178
- data/generated/google/apis/vision_v1/representations.rb +235 -235
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
- data/lib/google/apis/version.rb +1 -1
- metadata +246 -2
@@ -0,0 +1,739 @@
|
|
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/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module DataprocV1beta2
|
23
|
+
# Google Cloud Dataproc API
|
24
|
+
#
|
25
|
+
# Manages Hadoop-based clusters and jobs on Google Cloud Platform.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/dataproc_v1beta2'
|
29
|
+
#
|
30
|
+
# Dataproc = Google::Apis::DataprocV1beta2 # Alias the module
|
31
|
+
# service = Dataproc::DataprocService.new
|
32
|
+
#
|
33
|
+
# @see https://cloud.google.com/dataproc/
|
34
|
+
class DataprocService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
|
+
def initialize
|
46
|
+
super('https://dataproc.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
48
|
+
end
|
49
|
+
|
50
|
+
# Creates a cluster in a project.
|
51
|
+
# @param [String] project_id
|
52
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
53
|
+
# to.
|
54
|
+
# @param [String] region
|
55
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
56
|
+
# @param [Google::Apis::DataprocV1beta2::Cluster] cluster_object
|
57
|
+
# @param [String] fields
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
59
|
+
# @param [String] quota_user
|
60
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
61
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
62
|
+
# @param [Google::Apis::RequestOptions] options
|
63
|
+
# Request-specific options
|
64
|
+
#
|
65
|
+
# @yield [result, err] Result & error if block supplied
|
66
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Operation] parsed result object
|
67
|
+
# @yieldparam err [StandardError] error object if request failed
|
68
|
+
#
|
69
|
+
# @return [Google::Apis::DataprocV1beta2::Operation]
|
70
|
+
#
|
71
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
+
def create_project_region_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:post, 'v1beta2/projects/{projectId}/regions/{region}/clusters', options)
|
76
|
+
command.request_representation = Google::Apis::DataprocV1beta2::Cluster::Representation
|
77
|
+
command.request_object = cluster_object
|
78
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation
|
79
|
+
command.response_class = Google::Apis::DataprocV1beta2::Operation
|
80
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
81
|
+
command.params['region'] = region unless region.nil?
|
82
|
+
command.query['fields'] = fields unless fields.nil?
|
83
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
|
+
execute_or_queue_command(command, &block)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Deletes a cluster in a project.
|
88
|
+
# @param [String] project_id
|
89
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
90
|
+
# to.
|
91
|
+
# @param [String] region
|
92
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
93
|
+
# @param [String] cluster_name
|
94
|
+
# Required. The cluster name.
|
95
|
+
# @param [String] fields
|
96
|
+
# Selector specifying which fields to include in a partial response.
|
97
|
+
# @param [String] quota_user
|
98
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
99
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
100
|
+
# @param [Google::Apis::RequestOptions] options
|
101
|
+
# Request-specific options
|
102
|
+
#
|
103
|
+
# @yield [result, err] Result & error if block supplied
|
104
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Operation] parsed result object
|
105
|
+
# @yieldparam err [StandardError] error object if request failed
|
106
|
+
#
|
107
|
+
# @return [Google::Apis::DataprocV1beta2::Operation]
|
108
|
+
#
|
109
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
110
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
111
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
112
|
+
def delete_project_region_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
113
|
+
command = make_simple_command(:delete, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
114
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation
|
115
|
+
command.response_class = Google::Apis::DataprocV1beta2::Operation
|
116
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
117
|
+
command.params['region'] = region unless region.nil?
|
118
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
119
|
+
command.query['fields'] = fields unless fields.nil?
|
120
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
121
|
+
execute_or_queue_command(command, &block)
|
122
|
+
end
|
123
|
+
|
124
|
+
# Gets cluster diagnostic information. After the operation completes, the
|
125
|
+
# Operation.response field contains DiagnoseClusterOutputLocation.
|
126
|
+
# @param [String] project_id
|
127
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
128
|
+
# to.
|
129
|
+
# @param [String] region
|
130
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
131
|
+
# @param [String] cluster_name
|
132
|
+
# Required. The cluster name.
|
133
|
+
# @param [Google::Apis::DataprocV1beta2::DiagnoseClusterRequest] diagnose_cluster_request_object
|
134
|
+
# @param [String] fields
|
135
|
+
# Selector specifying which fields to include in a partial response.
|
136
|
+
# @param [String] quota_user
|
137
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
138
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
139
|
+
# @param [Google::Apis::RequestOptions] options
|
140
|
+
# Request-specific options
|
141
|
+
#
|
142
|
+
# @yield [result, err] Result & error if block supplied
|
143
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Operation] parsed result object
|
144
|
+
# @yieldparam err [StandardError] error object if request failed
|
145
|
+
#
|
146
|
+
# @return [Google::Apis::DataprocV1beta2::Operation]
|
147
|
+
#
|
148
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
149
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
150
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
151
|
+
def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
152
|
+
command = make_simple_command(:post, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
|
153
|
+
command.request_representation = Google::Apis::DataprocV1beta2::DiagnoseClusterRequest::Representation
|
154
|
+
command.request_object = diagnose_cluster_request_object
|
155
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation
|
156
|
+
command.response_class = Google::Apis::DataprocV1beta2::Operation
|
157
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
158
|
+
command.params['region'] = region unless region.nil?
|
159
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
160
|
+
command.query['fields'] = fields unless fields.nil?
|
161
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
162
|
+
execute_or_queue_command(command, &block)
|
163
|
+
end
|
164
|
+
|
165
|
+
# Gets the resource representation for a cluster in a project.
|
166
|
+
# @param [String] project_id
|
167
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
168
|
+
# to.
|
169
|
+
# @param [String] region
|
170
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
171
|
+
# @param [String] cluster_name
|
172
|
+
# Required. The cluster name.
|
173
|
+
# @param [String] fields
|
174
|
+
# Selector specifying which fields to include in a partial response.
|
175
|
+
# @param [String] quota_user
|
176
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
177
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
178
|
+
# @param [Google::Apis::RequestOptions] options
|
179
|
+
# Request-specific options
|
180
|
+
#
|
181
|
+
# @yield [result, err] Result & error if block supplied
|
182
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Cluster] parsed result object
|
183
|
+
# @yieldparam err [StandardError] error object if request failed
|
184
|
+
#
|
185
|
+
# @return [Google::Apis::DataprocV1beta2::Cluster]
|
186
|
+
#
|
187
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
188
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
189
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
190
|
+
def get_project_region_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
191
|
+
command = make_simple_command(:get, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
192
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Cluster::Representation
|
193
|
+
command.response_class = Google::Apis::DataprocV1beta2::Cluster
|
194
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
195
|
+
command.params['region'] = region unless region.nil?
|
196
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
197
|
+
command.query['fields'] = fields unless fields.nil?
|
198
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
199
|
+
execute_or_queue_command(command, &block)
|
200
|
+
end
|
201
|
+
|
202
|
+
# Lists all regions/`region`/clusters in a project.
|
203
|
+
# @param [String] project_id
|
204
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
205
|
+
# to.
|
206
|
+
# @param [String] region
|
207
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
208
|
+
# @param [String] filter
|
209
|
+
# Optional. A filter constraining the clusters to list. Filters are case-
|
210
|
+
# sensitive and have the following syntax:field = value AND field = value ...
|
211
|
+
# where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is
|
212
|
+
# a label key. value can be * to match all values. status.state can be one of
|
213
|
+
# the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or
|
214
|
+
# UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE
|
215
|
+
# contains the DELETING and ERROR states. clusterName is the name of the cluster
|
216
|
+
# provided at creation time. Only the logical AND operator is supported; space-
|
217
|
+
# separated items are treated as having an implicit AND operator.Example filter:
|
218
|
+
# status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND
|
219
|
+
# labels.starred = *
|
220
|
+
# @param [Fixnum] page_size
|
221
|
+
# Optional. The standard List page size.
|
222
|
+
# @param [String] page_token
|
223
|
+
# Optional. The standard List page token.
|
224
|
+
# @param [String] fields
|
225
|
+
# Selector specifying which fields to include in a partial response.
|
226
|
+
# @param [String] quota_user
|
227
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
228
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
229
|
+
# @param [Google::Apis::RequestOptions] options
|
230
|
+
# Request-specific options
|
231
|
+
#
|
232
|
+
# @yield [result, err] Result & error if block supplied
|
233
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::ListClustersResponse] parsed result object
|
234
|
+
# @yieldparam err [StandardError] error object if request failed
|
235
|
+
#
|
236
|
+
# @return [Google::Apis::DataprocV1beta2::ListClustersResponse]
|
237
|
+
#
|
238
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
239
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
240
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
241
|
+
def list_project_region_clusters(project_id, region, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
242
|
+
command = make_simple_command(:get, 'v1beta2/projects/{projectId}/regions/{region}/clusters', options)
|
243
|
+
command.response_representation = Google::Apis::DataprocV1beta2::ListClustersResponse::Representation
|
244
|
+
command.response_class = Google::Apis::DataprocV1beta2::ListClustersResponse
|
245
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
246
|
+
command.params['region'] = region unless region.nil?
|
247
|
+
command.query['filter'] = filter unless filter.nil?
|
248
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
249
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
250
|
+
command.query['fields'] = fields unless fields.nil?
|
251
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
252
|
+
execute_or_queue_command(command, &block)
|
253
|
+
end
|
254
|
+
|
255
|
+
# Updates a cluster in a project.
|
256
|
+
# @param [String] project_id
|
257
|
+
# Required. The ID of the Google Cloud Platform project the cluster belongs to.
|
258
|
+
# @param [String] region
|
259
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
260
|
+
# @param [String] cluster_name
|
261
|
+
# Required. The cluster name.
|
262
|
+
# @param [Google::Apis::DataprocV1beta2::Cluster] cluster_object
|
263
|
+
# @param [String] graceful_decommission_timeout
|
264
|
+
# Optional. Timeout for graceful YARN decomissioning. Graceful decommissioning
|
265
|
+
# allows removing nodes from the cluster without interrupting jobs in progress.
|
266
|
+
# Timeout specifies how long to wait for jobs in progress to finish before
|
267
|
+
# forcefully removing nodes (and potentially interrupting jobs). Default timeout
|
268
|
+
# is 0 (for forceful decommission), and the maximum allowed timeout is 1 day.
|
269
|
+
# Only supported on Dataproc image versions 1.2 and higher.
|
270
|
+
# @param [String] update_mask
|
271
|
+
# Required. Specifies the path, relative to <code>Cluster</code>, of the field
|
272
|
+
# to update. For example, to change the number of workers in a cluster to 5, the
|
273
|
+
# <code>update_mask</code> parameter would be specified as <code>config.
|
274
|
+
# worker_config.num_instances</code>, and the PATCH request body would specify
|
275
|
+
# the new value, as follows:
|
276
|
+
# `
|
277
|
+
# "config":`
|
278
|
+
# "workerConfig":`
|
279
|
+
# "numInstances":"5"
|
280
|
+
# `
|
281
|
+
# `
|
282
|
+
# `
|
283
|
+
# Similarly, to change the number of preemptible workers in a cluster to 5, the <
|
284
|
+
# code>update_mask</code> parameter would be <code>config.
|
285
|
+
# secondary_worker_config.num_instances</code>, and the PATCH request body would
|
286
|
+
# be set as follows:
|
287
|
+
# `
|
288
|
+
# "config":`
|
289
|
+
# "secondaryWorkerConfig":`
|
290
|
+
# "numInstances":"5"
|
291
|
+
# `
|
292
|
+
# `
|
293
|
+
# `
|
294
|
+
# <strong>Note:</strong> currently only some fields can be updated: |Mask|
|
295
|
+
# Purpose| |labels|Updates labels| |config.worker_config.num_instances|Resize
|
296
|
+
# primary worker group| |config.secondary_worker_config.num_instances|Resize
|
297
|
+
# secondary worker group|
|
298
|
+
# @param [String] fields
|
299
|
+
# Selector specifying which fields to include in a partial response.
|
300
|
+
# @param [String] quota_user
|
301
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
302
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
303
|
+
# @param [Google::Apis::RequestOptions] options
|
304
|
+
# Request-specific options
|
305
|
+
#
|
306
|
+
# @yield [result, err] Result & error if block supplied
|
307
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Operation] parsed result object
|
308
|
+
# @yieldparam err [StandardError] error object if request failed
|
309
|
+
#
|
310
|
+
# @return [Google::Apis::DataprocV1beta2::Operation]
|
311
|
+
#
|
312
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
313
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
314
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
315
|
+
def patch_project_region_cluster(project_id, region, cluster_name, cluster_object = nil, graceful_decommission_timeout: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
316
|
+
command = make_simple_command(:patch, 'v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
317
|
+
command.request_representation = Google::Apis::DataprocV1beta2::Cluster::Representation
|
318
|
+
command.request_object = cluster_object
|
319
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation
|
320
|
+
command.response_class = Google::Apis::DataprocV1beta2::Operation
|
321
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
322
|
+
command.params['region'] = region unless region.nil?
|
323
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
324
|
+
command.query['gracefulDecommissionTimeout'] = graceful_decommission_timeout unless graceful_decommission_timeout.nil?
|
325
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
326
|
+
command.query['fields'] = fields unless fields.nil?
|
327
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
328
|
+
execute_or_queue_command(command, &block)
|
329
|
+
end
|
330
|
+
|
331
|
+
# Starts a job cancellation request. To access the job resource after
|
332
|
+
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
|
333
|
+
# @param [String] project_id
|
334
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
335
|
+
# @param [String] region
|
336
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
337
|
+
# @param [String] job_id
|
338
|
+
# Required. The job ID.
|
339
|
+
# @param [Google::Apis::DataprocV1beta2::CancelJobRequest] cancel_job_request_object
|
340
|
+
# @param [String] fields
|
341
|
+
# Selector specifying which fields to include in a partial response.
|
342
|
+
# @param [String] quota_user
|
343
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
344
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
345
|
+
# @param [Google::Apis::RequestOptions] options
|
346
|
+
# Request-specific options
|
347
|
+
#
|
348
|
+
# @yield [result, err] Result & error if block supplied
|
349
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Job] parsed result object
|
350
|
+
# @yieldparam err [StandardError] error object if request failed
|
351
|
+
#
|
352
|
+
# @return [Google::Apis::DataprocV1beta2::Job]
|
353
|
+
#
|
354
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
355
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
356
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
357
|
+
def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
358
|
+
command = make_simple_command(:post, 'v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
|
359
|
+
command.request_representation = Google::Apis::DataprocV1beta2::CancelJobRequest::Representation
|
360
|
+
command.request_object = cancel_job_request_object
|
361
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Job::Representation
|
362
|
+
command.response_class = Google::Apis::DataprocV1beta2::Job
|
363
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
364
|
+
command.params['region'] = region unless region.nil?
|
365
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
366
|
+
command.query['fields'] = fields unless fields.nil?
|
367
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
368
|
+
execute_or_queue_command(command, &block)
|
369
|
+
end
|
370
|
+
|
371
|
+
# Deletes the job from the project. If the job is active, the delete fails, and
|
372
|
+
# the response returns FAILED_PRECONDITION.
|
373
|
+
# @param [String] project_id
|
374
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
375
|
+
# @param [String] region
|
376
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
377
|
+
# @param [String] job_id
|
378
|
+
# Required. The job ID.
|
379
|
+
# @param [String] fields
|
380
|
+
# Selector specifying which fields to include in a partial response.
|
381
|
+
# @param [String] quota_user
|
382
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
383
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
384
|
+
# @param [Google::Apis::RequestOptions] options
|
385
|
+
# Request-specific options
|
386
|
+
#
|
387
|
+
# @yield [result, err] Result & error if block supplied
|
388
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Empty] parsed result object
|
389
|
+
# @yieldparam err [StandardError] error object if request failed
|
390
|
+
#
|
391
|
+
# @return [Google::Apis::DataprocV1beta2::Empty]
|
392
|
+
#
|
393
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
394
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
395
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
396
|
+
def delete_project_region_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
397
|
+
command = make_simple_command(:delete, 'v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
398
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Empty::Representation
|
399
|
+
command.response_class = Google::Apis::DataprocV1beta2::Empty
|
400
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
401
|
+
command.params['region'] = region unless region.nil?
|
402
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
403
|
+
command.query['fields'] = fields unless fields.nil?
|
404
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
405
|
+
execute_or_queue_command(command, &block)
|
406
|
+
end
|
407
|
+
|
408
|
+
# Gets the resource representation for a job in a project.
|
409
|
+
# @param [String] project_id
|
410
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
411
|
+
# @param [String] region
|
412
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
413
|
+
# @param [String] job_id
|
414
|
+
# Required. The job ID.
|
415
|
+
# @param [String] fields
|
416
|
+
# Selector specifying which fields to include in a partial response.
|
417
|
+
# @param [String] quota_user
|
418
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
419
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
420
|
+
# @param [Google::Apis::RequestOptions] options
|
421
|
+
# Request-specific options
|
422
|
+
#
|
423
|
+
# @yield [result, err] Result & error if block supplied
|
424
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Job] parsed result object
|
425
|
+
# @yieldparam err [StandardError] error object if request failed
|
426
|
+
#
|
427
|
+
# @return [Google::Apis::DataprocV1beta2::Job]
|
428
|
+
#
|
429
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
430
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
431
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
432
|
+
def get_project_region_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
433
|
+
command = make_simple_command(:get, 'v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
434
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Job::Representation
|
435
|
+
command.response_class = Google::Apis::DataprocV1beta2::Job
|
436
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
437
|
+
command.params['region'] = region unless region.nil?
|
438
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
439
|
+
command.query['fields'] = fields unless fields.nil?
|
440
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
441
|
+
execute_or_queue_command(command, &block)
|
442
|
+
end
|
443
|
+
|
444
|
+
# Lists regions/`region`/jobs in a project.
|
445
|
+
# @param [String] project_id
|
446
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
447
|
+
# @param [String] region
|
448
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
449
|
+
# @param [String] cluster_name
|
450
|
+
# Optional. If set, the returned jobs list includes only jobs that were
|
451
|
+
# submitted to the named cluster.
|
452
|
+
# @param [String] filter
|
453
|
+
# Optional. A filter constraining the jobs to list. Filters are case-sensitive
|
454
|
+
# and have the following syntax:field = value AND field = value ...where field
|
455
|
+
# is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
|
456
|
+
# match all values. status.state can be either ACTIVE or INACTIVE. Only the
|
457
|
+
# logical AND operator is supported; space-separated items are treated as having
|
458
|
+
# an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
|
459
|
+
# staging AND labels.starred = *
|
460
|
+
# @param [String] job_state_matcher
|
461
|
+
# Optional. Specifies enumerated categories of jobs to list (default = match ALL
|
462
|
+
# jobs).
|
463
|
+
# @param [Fixnum] page_size
|
464
|
+
# Optional. The number of results to return in each response.
|
465
|
+
# @param [String] page_token
|
466
|
+
# Optional. The page token, returned by a previous call, to request the next
|
467
|
+
# page of results.
|
468
|
+
# @param [String] fields
|
469
|
+
# Selector specifying which fields to include in a partial response.
|
470
|
+
# @param [String] quota_user
|
471
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
472
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
473
|
+
# @param [Google::Apis::RequestOptions] options
|
474
|
+
# Request-specific options
|
475
|
+
#
|
476
|
+
# @yield [result, err] Result & error if block supplied
|
477
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::ListJobsResponse] parsed result object
|
478
|
+
# @yieldparam err [StandardError] error object if request failed
|
479
|
+
#
|
480
|
+
# @return [Google::Apis::DataprocV1beta2::ListJobsResponse]
|
481
|
+
#
|
482
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
483
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
484
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
485
|
+
def list_project_region_jobs(project_id, region, cluster_name: nil, filter: nil, job_state_matcher: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
486
|
+
command = make_simple_command(:get, 'v1beta2/projects/{projectId}/regions/{region}/jobs', options)
|
487
|
+
command.response_representation = Google::Apis::DataprocV1beta2::ListJobsResponse::Representation
|
488
|
+
command.response_class = Google::Apis::DataprocV1beta2::ListJobsResponse
|
489
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
490
|
+
command.params['region'] = region unless region.nil?
|
491
|
+
command.query['clusterName'] = cluster_name unless cluster_name.nil?
|
492
|
+
command.query['filter'] = filter unless filter.nil?
|
493
|
+
command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
|
494
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
495
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
496
|
+
command.query['fields'] = fields unless fields.nil?
|
497
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
498
|
+
execute_or_queue_command(command, &block)
|
499
|
+
end
|
500
|
+
|
501
|
+
# Updates a job in a project.
|
502
|
+
# @param [String] project_id
|
503
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
504
|
+
# @param [String] region
|
505
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
506
|
+
# @param [String] job_id
|
507
|
+
# Required. The job ID.
|
508
|
+
# @param [Google::Apis::DataprocV1beta2::Job] job_object
|
509
|
+
# @param [String] update_mask
|
510
|
+
# Required. Specifies the path, relative to <code>Job</code>, of the field to
|
511
|
+
# update. For example, to update the labels of a Job the <code>update_mask</code>
|
512
|
+
# parameter would be specified as <code>labels</code>, and the PATCH request
|
513
|
+
# body would specify the new value. <strong>Note:</strong> Currently, <code>
|
514
|
+
# labels</code> is the only field that can be updated.
|
515
|
+
# @param [String] fields
|
516
|
+
# Selector specifying which fields to include in a partial response.
|
517
|
+
# @param [String] quota_user
|
518
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
519
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
520
|
+
# @param [Google::Apis::RequestOptions] options
|
521
|
+
# Request-specific options
|
522
|
+
#
|
523
|
+
# @yield [result, err] Result & error if block supplied
|
524
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Job] parsed result object
|
525
|
+
# @yieldparam err [StandardError] error object if request failed
|
526
|
+
#
|
527
|
+
# @return [Google::Apis::DataprocV1beta2::Job]
|
528
|
+
#
|
529
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
530
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
531
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
532
|
+
def patch_project_region_job(project_id, region, job_id, job_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
533
|
+
command = make_simple_command(:patch, 'v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
534
|
+
command.request_representation = Google::Apis::DataprocV1beta2::Job::Representation
|
535
|
+
command.request_object = job_object
|
536
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Job::Representation
|
537
|
+
command.response_class = Google::Apis::DataprocV1beta2::Job
|
538
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
539
|
+
command.params['region'] = region unless region.nil?
|
540
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
541
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
542
|
+
command.query['fields'] = fields unless fields.nil?
|
543
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
544
|
+
execute_or_queue_command(command, &block)
|
545
|
+
end
|
546
|
+
|
547
|
+
# Submits a job to a cluster.
|
548
|
+
# @param [String] project_id
|
549
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
550
|
+
# @param [String] region
|
551
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
552
|
+
# @param [Google::Apis::DataprocV1beta2::SubmitJobRequest] submit_job_request_object
|
553
|
+
# @param [String] fields
|
554
|
+
# Selector specifying which fields to include in a partial response.
|
555
|
+
# @param [String] quota_user
|
556
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
557
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
558
|
+
# @param [Google::Apis::RequestOptions] options
|
559
|
+
# Request-specific options
|
560
|
+
#
|
561
|
+
# @yield [result, err] Result & error if block supplied
|
562
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Job] parsed result object
|
563
|
+
# @yieldparam err [StandardError] error object if request failed
|
564
|
+
#
|
565
|
+
# @return [Google::Apis::DataprocV1beta2::Job]
|
566
|
+
#
|
567
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
568
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
569
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
570
|
+
def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
571
|
+
command = make_simple_command(:post, 'v1beta2/projects/{projectId}/regions/{region}/jobs:submit', options)
|
572
|
+
command.request_representation = Google::Apis::DataprocV1beta2::SubmitJobRequest::Representation
|
573
|
+
command.request_object = submit_job_request_object
|
574
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Job::Representation
|
575
|
+
command.response_class = Google::Apis::DataprocV1beta2::Job
|
576
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
577
|
+
command.params['region'] = region unless region.nil?
|
578
|
+
command.query['fields'] = fields unless fields.nil?
|
579
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
580
|
+
execute_or_queue_command(command, &block)
|
581
|
+
end
|
582
|
+
|
583
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
584
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
585
|
+
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
586
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
587
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
588
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
589
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
590
|
+
# corresponding to Code.CANCELLED.
|
591
|
+
# @param [String] name
|
592
|
+
# The name of the operation resource to be cancelled.
|
593
|
+
# @param [String] fields
|
594
|
+
# Selector specifying which fields to include in a partial response.
|
595
|
+
# @param [String] quota_user
|
596
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
597
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
598
|
+
# @param [Google::Apis::RequestOptions] options
|
599
|
+
# Request-specific options
|
600
|
+
#
|
601
|
+
# @yield [result, err] Result & error if block supplied
|
602
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Empty] parsed result object
|
603
|
+
# @yieldparam err [StandardError] error object if request failed
|
604
|
+
#
|
605
|
+
# @return [Google::Apis::DataprocV1beta2::Empty]
|
606
|
+
#
|
607
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
608
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
609
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
610
|
+
def cancel_project_region_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
611
|
+
command = make_simple_command(:post, 'v1beta2/{+name}:cancel', options)
|
612
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Empty::Representation
|
613
|
+
command.response_class = Google::Apis::DataprocV1beta2::Empty
|
614
|
+
command.params['name'] = name unless name.nil?
|
615
|
+
command.query['fields'] = fields unless fields.nil?
|
616
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
617
|
+
execute_or_queue_command(command, &block)
|
618
|
+
end
|
619
|
+
|
620
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
621
|
+
# longer interested in the operation result. It does not cancel the operation.
|
622
|
+
# If the server doesn't support this method, it returns google.rpc.Code.
|
623
|
+
# UNIMPLEMENTED.
|
624
|
+
# @param [String] name
|
625
|
+
# The name of the operation resource to be deleted.
|
626
|
+
# @param [String] fields
|
627
|
+
# Selector specifying which fields to include in a partial response.
|
628
|
+
# @param [String] quota_user
|
629
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
630
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
631
|
+
# @param [Google::Apis::RequestOptions] options
|
632
|
+
# Request-specific options
|
633
|
+
#
|
634
|
+
# @yield [result, err] Result & error if block supplied
|
635
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Empty] parsed result object
|
636
|
+
# @yieldparam err [StandardError] error object if request failed
|
637
|
+
#
|
638
|
+
# @return [Google::Apis::DataprocV1beta2::Empty]
|
639
|
+
#
|
640
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
641
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
642
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
643
|
+
def delete_project_region_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
644
|
+
command = make_simple_command(:delete, 'v1beta2/{+name}', options)
|
645
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Empty::Representation
|
646
|
+
command.response_class = Google::Apis::DataprocV1beta2::Empty
|
647
|
+
command.params['name'] = name unless name.nil?
|
648
|
+
command.query['fields'] = fields unless fields.nil?
|
649
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
650
|
+
execute_or_queue_command(command, &block)
|
651
|
+
end
|
652
|
+
|
653
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
654
|
+
# to poll the operation result at intervals as recommended by the API service.
|
655
|
+
# @param [String] name
|
656
|
+
# The name of the operation resource.
|
657
|
+
# @param [String] fields
|
658
|
+
# Selector specifying which fields to include in a partial response.
|
659
|
+
# @param [String] quota_user
|
660
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
661
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
662
|
+
# @param [Google::Apis::RequestOptions] options
|
663
|
+
# Request-specific options
|
664
|
+
#
|
665
|
+
# @yield [result, err] Result & error if block supplied
|
666
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::Operation] parsed result object
|
667
|
+
# @yieldparam err [StandardError] error object if request failed
|
668
|
+
#
|
669
|
+
# @return [Google::Apis::DataprocV1beta2::Operation]
|
670
|
+
#
|
671
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
672
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
673
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
674
|
+
def get_project_region_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
675
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
676
|
+
command.response_representation = Google::Apis::DataprocV1beta2::Operation::Representation
|
677
|
+
command.response_class = Google::Apis::DataprocV1beta2::Operation
|
678
|
+
command.params['name'] = name unless name.nil?
|
679
|
+
command.query['fields'] = fields unless fields.nil?
|
680
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
681
|
+
execute_or_queue_command(command, &block)
|
682
|
+
end
|
683
|
+
|
684
|
+
# Lists operations that match the specified filter in the request. If the server
|
685
|
+
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
686
|
+
# allows API services to override the binding to use different resource name
|
687
|
+
# schemes, such as users/*/operations. To override the binding, API services can
|
688
|
+
# add a binding such as "/v1/`name=users/*`/operations" to their service
|
689
|
+
# configuration. For backwards compatibility, the default name includes the
|
690
|
+
# operations collection id, however overriding users must ensure the name
|
691
|
+
# binding is the parent resource, without the operations collection id.
|
692
|
+
# @param [String] name
|
693
|
+
# The name of the operation's parent resource.
|
694
|
+
# @param [String] filter
|
695
|
+
# The standard list filter.
|
696
|
+
# @param [Fixnum] page_size
|
697
|
+
# The standard list page size.
|
698
|
+
# @param [String] page_token
|
699
|
+
# The standard list page token.
|
700
|
+
# @param [String] fields
|
701
|
+
# Selector specifying which fields to include in a partial response.
|
702
|
+
# @param [String] quota_user
|
703
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
704
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
705
|
+
# @param [Google::Apis::RequestOptions] options
|
706
|
+
# Request-specific options
|
707
|
+
#
|
708
|
+
# @yield [result, err] Result & error if block supplied
|
709
|
+
# @yieldparam result [Google::Apis::DataprocV1beta2::ListOperationsResponse] parsed result object
|
710
|
+
# @yieldparam err [StandardError] error object if request failed
|
711
|
+
#
|
712
|
+
# @return [Google::Apis::DataprocV1beta2::ListOperationsResponse]
|
713
|
+
#
|
714
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
715
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
716
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
717
|
+
def list_project_region_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
718
|
+
command = make_simple_command(:get, 'v1beta2/{+name}', options)
|
719
|
+
command.response_representation = Google::Apis::DataprocV1beta2::ListOperationsResponse::Representation
|
720
|
+
command.response_class = Google::Apis::DataprocV1beta2::ListOperationsResponse
|
721
|
+
command.params['name'] = name unless name.nil?
|
722
|
+
command.query['filter'] = filter unless filter.nil?
|
723
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
724
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
725
|
+
command.query['fields'] = fields unless fields.nil?
|
726
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
727
|
+
execute_or_queue_command(command, &block)
|
728
|
+
end
|
729
|
+
|
730
|
+
protected
|
731
|
+
|
732
|
+
def apply_command_defaults(command)
|
733
|
+
command.query['key'] = key unless key.nil?
|
734
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
735
|
+
end
|
736
|
+
end
|
737
|
+
end
|
738
|
+
end
|
739
|
+
end
|