google-api-client 0.11.3 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -0
- data/api_names.yaml +32317 -34465
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
- data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
- data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +825 -817
- data/generated/google/apis/appengine_v1/representations.rb +185 -184
- data/generated/google/apis/appengine_v1/service.rb +220 -216
- 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 +9 -7
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
- data/generated/google/apis/civicinfo_v2/service.rb +8 -8
- data/generated/google/apis/classroom_v1.rb +24 -24
- data/generated/google/apis/classroom_v1/classes.rb +381 -381
- data/generated/google/apis/classroom_v1/representations.rb +108 -108
- data/generated/google/apis/classroom_v1/service.rb +503 -503
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
- data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
- data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
- data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
- data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +3 -3
- data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
- data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
- data/generated/google/apis/cloudkms_v1/service.rb +224 -224
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +57 -15
- data/generated/google/apis/compute_beta/representations.rb +30 -14
- data/generated/google/apis/compute_beta/service.rb +52 -52
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +223 -10
- data/generated/google/apis/compute_v1/representations.rb +85 -16
- data/generated/google/apis/compute_v1/service.rb +327 -51
- data/generated/google/apis/container_v1/classes.rb +267 -267
- data/generated/google/apis/container_v1/representations.rb +61 -61
- data/generated/google/apis/container_v1/service.rb +123 -123
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +71 -71
- data/generated/google/apis/content_v2/representations.rb +105 -105
- data/generated/google/apis/content_v2/service.rb +120 -120
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
- data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
- data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
- data/generated/google/apis/dataproc_v1/representations.rb +147 -147
- data/generated/google/apis/dataproc_v1/service.rb +309 -305
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +818 -818
- data/generated/google/apis/datastore_v1/representations.rb +151 -151
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +188 -188
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
- data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
- data/generated/google/apis/firebaserules_v1/service.rb +89 -89
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
- data/generated/google/apis/genomics_v1/representations.rb +298 -298
- data/generated/google/apis/genomics_v1/service.rb +1160 -1160
- data/generated/google/apis/groupssettings_v1/service.rb +0 -3
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +235 -235
- data/generated/google/apis/iam_v1/representations.rb +72 -72
- data/generated/google/apis/iam_v1/service.rb +189 -189
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1/classes.rb +220 -220
- data/generated/google/apis/language_v1/representations.rb +81 -81
- data/generated/google/apis/language_v1/service.rb +43 -43
- data/generated/google/apis/language_v1beta1/classes.rb +448 -448
- data/generated/google/apis/language_v1beta1/representations.rb +106 -106
- data/generated/google/apis/language_v1beta1/service.rb +31 -31
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2/classes.rb +737 -737
- data/generated/google/apis/logging_v2/representations.rb +120 -120
- data/generated/google/apis/logging_v2/service.rb +479 -479
- data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
- data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
- data/generated/google/apis/logging_v2beta1/service.rb +349 -349
- data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
- data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1285 -1205
- data/generated/google/apis/ml_v1/representations.rb +204 -174
- data/generated/google/apis/ml_v1/service.rb +150 -145
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +880 -880
- data/generated/google/apis/monitoring_v3/representations.rb +154 -154
- data/generated/google/apis/monitoring_v3/service.rb +299 -299
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +524 -509
- data/generated/google/apis/partners_v2/representations.rb +115 -111
- data/generated/google/apis/partners_v2/service.rb +287 -287
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +1150 -1150
- data/generated/google/apis/people_v1/representations.rb +258 -258
- data/generated/google/apis/people_v1/service.rb +7 -7
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
- data/generated/google/apis/pubsub_v1/classes.rb +228 -228
- data/generated/google/apis/pubsub_v1/representations.rb +69 -69
- data/generated/google/apis/pubsub_v1/service.rb +182 -182
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
- data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +94 -94
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
- data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
- data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
- data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
- data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
- data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
- data/generated/google/apis/sheets_v4/representations.rb +324 -324
- data/generated/google/apis/sheets_v4/service.rb +49 -49
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2907 -2907
- data/generated/google/apis/slides_v1/representations.rb +695 -695
- data/generated/google/apis/slides_v1/service.rb +40 -40
- data/generated/google/apis/sourcerepo_v1.rb +7 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
- data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
- data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
- data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
- data/generated/google/apis/spanner_v1/representations.rb +205 -205
- data/generated/google/apis/spanner_v1/service.rb +525 -525
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
- data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
- data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
- data/generated/google/apis/storage_v1/classes.rb +6 -6
- data/generated/google/apis/storage_v1/representations.rb +4 -4
- data/generated/google/apis/storage_v1/service.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
- data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
- data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +46 -46
- data/generated/google/apis/translate_v2/representations.rb +22 -22
- data/generated/google/apis/translate_v2/service.rb +81 -74
- data/generated/google/apis/vision_v1/classes.rb +1290 -1290
- data/generated/google/apis/vision_v1/representations.rb +166 -166
- data/generated/google/apis/vision_v1/service.rb +6 -6
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
- data/google-api-client.gemspec +3 -3
- data/lib/google/apis/core/base_service.rb +6 -0
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -94
- data/dl.rb +0 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
- data/generated/google/apis/appengine_v1beta4.rb +0 -35
- data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
- data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
- data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
- data/generated/google/apis/appengine_v1beta5.rb +0 -40
- data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
- data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
- data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
- data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
- data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
- data/generated/google/apis/classroom_v1beta1.rb +0 -49
- data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
- data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
- data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
- data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
- data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
- data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
- data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
- data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
- data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
- data/generated/google/apis/container_v1beta1.rb +0 -35
- data/generated/google/apis/container_v1beta1/classes.rb +0 -466
- data/generated/google/apis/container_v1beta1/representations.rb +0 -177
- data/generated/google/apis/container_v1beta1/service.rb +0 -394
- data/generated/google/apis/coordinate_v1.rb +0 -37
- data/generated/google/apis/coordinate_v1/classes.rb +0 -669
- data/generated/google/apis/coordinate_v1/representations.rb +0 -321
- data/generated/google/apis/coordinate_v1/service.rb +0 -678
- data/generated/google/apis/datastore_v1beta2.rb +0 -40
- data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
- data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
- data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
- data/generated/google/apis/datastore_v1beta3.rb +0 -38
- data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
- data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
- data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
- data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
- data/generated/google/apis/dfareporting_v2_1.rb +0 -37
- data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
- data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
- data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
- data/generated/google/apis/dfareporting_v2_3.rb +0 -37
- data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
- data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
- data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
- data/generated/google/apis/dfareporting_v2_5.rb +0 -40
- data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
- data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
- data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
- data/generated/google/apis/dfareporting_v2_6.rb +0 -40
- data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
- data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
- data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
- data/generated/google/apis/gan_v1beta1.rb +0 -31
- data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
- data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
- data/generated/google/apis/gan_v1beta1/service.rb +0 -682
- data/generated/google/apis/genomics_v1beta2.rb +0 -46
- data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
- data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
- data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
- data/generated/google/apis/logging_v1beta3.rb +0 -47
- data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
- data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
- data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
- data/generated/google/apis/manager_v1beta2.rb +0 -53
- data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
- data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
- data/generated/google/apis/manager_v1beta2/service.rb +0 -372
- data/generated/google/apis/pubsub_v1beta2.rb +0 -37
- data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
- data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
- data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
- data/generated/google/apis/tracing_v1.rb +0 -40
- data/generated/google/apis/tracing_v1/classes.rb +0 -664
- data/generated/google/apis/tracing_v1/representations.rb +0 -279
- data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -47,13 +47,22 @@ module Google
|
|
47
47
|
@batch_path = 'batch'
|
48
48
|
end
|
49
49
|
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
50
|
+
# Lists operations that match the specified filter in the request. If the server
|
51
|
+
# doesn't support this method, it returns UNIMPLEMENTED.NOTE: the name binding
|
52
|
+
# allows API services to override the binding to use different resource name
|
53
|
+
# schemes, such as users/*/operations. To override the binding, API services can
|
54
|
+
# add a binding such as "/v1/`name=users/*`/operations" to their service
|
55
|
+
# configuration. For backwards compatibility, the default name includes the
|
56
|
+
# operations collection id, however overriding users must ensure the name
|
57
|
+
# binding is the parent resource, without the operations collection id.
|
58
|
+
# @param [String] name
|
59
|
+
# The name of the operation's parent resource.
|
60
|
+
# @param [Fixnum] page_size
|
61
|
+
# The standard list page size.
|
62
|
+
# @param [String] filter
|
63
|
+
# The standard list filter.
|
64
|
+
# @param [String] page_token
|
65
|
+
# The standard list page token.
|
57
66
|
# @param [String] fields
|
58
67
|
# Selector specifying which fields to include in a partial response.
|
59
68
|
# @param [String] quota_user
|
@@ -63,64 +72,31 @@ module Google
|
|
63
72
|
# Request-specific options
|
64
73
|
#
|
65
74
|
# @yield [result, err] Result & error if block supplied
|
66
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
75
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListOperationsResponse] parsed result object
|
67
76
|
# @yieldparam err [StandardError] error object if request failed
|
68
77
|
#
|
69
|
-
# @return [Google::Apis::DataprocV1::
|
78
|
+
# @return [Google::Apis::DataprocV1::ListOperationsResponse]
|
70
79
|
#
|
71
80
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
72
81
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
73
82
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
74
|
-
def
|
75
|
-
command = make_simple_command(:
|
76
|
-
command.
|
77
|
-
command.
|
78
|
-
command.
|
79
|
-
command.
|
80
|
-
command.
|
81
|
-
command.
|
83
|
+
def list_project_region_operations(name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
84
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
85
|
+
command.response_representation = Google::Apis::DataprocV1::ListOperationsResponse::Representation
|
86
|
+
command.response_class = Google::Apis::DataprocV1::ListOperationsResponse
|
87
|
+
command.params['name'] = name unless name.nil?
|
88
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
89
|
+
command.query['filter'] = filter unless filter.nil?
|
90
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
82
91
|
command.query['fields'] = fields unless fields.nil?
|
83
92
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
84
93
|
execute_or_queue_command(command, &block)
|
85
94
|
end
|
86
95
|
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
# Required. The Cloud Dataproc region in which to handle the request.
|
92
|
-
# @param [String] cluster_name
|
93
|
-
# Required. The cluster name.
|
94
|
-
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
95
|
-
# @param [String] update_mask
|
96
|
-
# Required. Specifies the path, relative to Cluster, of the field to update. For
|
97
|
-
# example, to change the number of workers in a cluster to 5, the update_mask
|
98
|
-
# parameter would be specified as config.worker_config.num_instances, and the
|
99
|
-
# PATCH request body would specify the new value, as follows:
|
100
|
-
# `
|
101
|
-
# "config":`
|
102
|
-
# "workerConfig":`
|
103
|
-
# "numInstances":"5"
|
104
|
-
# `
|
105
|
-
# `
|
106
|
-
# `
|
107
|
-
# Similarly, to change the number of preemptible workers in a cluster to 5, the
|
108
|
-
# update_mask parameter would be config.secondary_worker_config.num_instances,
|
109
|
-
# and the PATCH request body would be set as follows:
|
110
|
-
# `
|
111
|
-
# "config":`
|
112
|
-
# "secondaryWorkerConfig":`
|
113
|
-
# "numInstances":"5"
|
114
|
-
# `
|
115
|
-
# `
|
116
|
-
# `
|
117
|
-
# <strong>Note:</strong> Currently, only the following fields can be updated:<
|
118
|
-
# table> <tbody> <tr> <td><strong>Mask</strong></td> <td><strong>Purpose</
|
119
|
-
# strong></td> </tr> <tr> <td><strong><em>labels</em></strong></td> <td>
|
120
|
-
# Update labels</td> </tr> <tr> <td><strong><em>config.worker_config.
|
121
|
-
# num_instances</em></strong></td> <td>Resize primary worker group</td> </tr>
|
122
|
-
# <tr> <td><strong><em>config.secondary_worker_config.num_instances</em></
|
123
|
-
# strong></td> <td>Resize secondary worker group</td> </tr> </tbody> </table>
|
96
|
+
# Gets the latest state of a long-running operation. Clients can use this method
|
97
|
+
# to poll the operation result at intervals as recommended by the API service.
|
98
|
+
# @param [String] name
|
99
|
+
# The name of the operation resource.
|
124
100
|
# @param [String] fields
|
125
101
|
# Selector specifying which fields to include in a partial response.
|
126
102
|
# @param [String] quota_user
|
@@ -138,29 +114,26 @@ module Google
|
|
138
114
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
139
115
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
140
116
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
141
|
-
def
|
142
|
-
command = make_simple_command(:
|
143
|
-
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
144
|
-
command.request_object = cluster_object
|
117
|
+
def get_project_region_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
118
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
145
119
|
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
146
120
|
command.response_class = Google::Apis::DataprocV1::Operation
|
147
|
-
command.params['
|
148
|
-
command.params['region'] = region unless region.nil?
|
149
|
-
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
150
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
121
|
+
command.params['name'] = name unless name.nil?
|
151
122
|
command.query['fields'] = fields unless fields.nil?
|
152
123
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
153
124
|
execute_or_queue_command(command, &block)
|
154
125
|
end
|
155
126
|
|
156
|
-
#
|
157
|
-
#
|
158
|
-
#
|
159
|
-
#
|
160
|
-
#
|
161
|
-
#
|
162
|
-
#
|
163
|
-
#
|
127
|
+
# Starts asynchronous cancellation on a long-running operation. The server makes
|
128
|
+
# a best effort to cancel the operation, but success is not guaranteed. If the
|
129
|
+
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
130
|
+
# Clients can use Operations.GetOperation or other methods to check whether the
|
131
|
+
# cancellation succeeded or whether the operation completed despite cancellation.
|
132
|
+
# On successful cancellation, the operation is not deleted; instead, it becomes
|
133
|
+
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
134
|
+
# corresponding to Code.CANCELLED.
|
135
|
+
# @param [String] name
|
136
|
+
# The name of the operation resource to be cancelled.
|
164
137
|
# @param [String] fields
|
165
138
|
# Selector specifying which fields to include in a partial response.
|
166
139
|
# @param [String] quota_user
|
@@ -170,34 +143,30 @@ module Google
|
|
170
143
|
# Request-specific options
|
171
144
|
#
|
172
145
|
# @yield [result, err] Result & error if block supplied
|
173
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
146
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
174
147
|
# @yieldparam err [StandardError] error object if request failed
|
175
148
|
#
|
176
|
-
# @return [Google::Apis::DataprocV1::
|
149
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
177
150
|
#
|
178
151
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
179
152
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
180
153
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
181
|
-
def
|
182
|
-
command = make_simple_command(:
|
183
|
-
command.response_representation = Google::Apis::DataprocV1::
|
184
|
-
command.response_class = Google::Apis::DataprocV1::
|
185
|
-
command.params['
|
186
|
-
command.params['region'] = region unless region.nil?
|
187
|
-
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
154
|
+
def cancel_project_region_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
155
|
+
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
156
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
157
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
158
|
+
command.params['name'] = name unless name.nil?
|
188
159
|
command.query['fields'] = fields unless fields.nil?
|
189
160
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
190
161
|
execute_or_queue_command(command, &block)
|
191
162
|
end
|
192
163
|
|
193
|
-
# Deletes a
|
194
|
-
#
|
195
|
-
#
|
196
|
-
#
|
197
|
-
# @param [String]
|
198
|
-
#
|
199
|
-
# @param [String] cluster_name
|
200
|
-
# Required. The cluster name.
|
164
|
+
# Deletes a long-running operation. This method indicates that the client is no
|
165
|
+
# longer interested in the operation result. It does not cancel the operation.
|
166
|
+
# If the server doesn't support this method, it returns google.rpc.Code.
|
167
|
+
# UNIMPLEMENTED.
|
168
|
+
# @param [String] name
|
169
|
+
# The name of the operation resource to be deleted.
|
201
170
|
# @param [String] fields
|
202
171
|
# Selector specifying which fields to include in a partial response.
|
203
172
|
# @param [String] quota_user
|
@@ -207,36 +176,30 @@ module Google
|
|
207
176
|
# Request-specific options
|
208
177
|
#
|
209
178
|
# @yield [result, err] Result & error if block supplied
|
210
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
179
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
211
180
|
# @yieldparam err [StandardError] error object if request failed
|
212
181
|
#
|
213
|
-
# @return [Google::Apis::DataprocV1::
|
182
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
214
183
|
#
|
215
184
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
216
185
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
217
186
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
218
|
-
def
|
219
|
-
command = make_simple_command(:delete, 'v1/
|
220
|
-
command.response_representation = Google::Apis::DataprocV1::
|
221
|
-
command.response_class = Google::Apis::DataprocV1::
|
222
|
-
command.params['
|
223
|
-
command.params['region'] = region unless region.nil?
|
224
|
-
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
187
|
+
def delete_project_region_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
188
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
189
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
190
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
191
|
+
command.params['name'] = name unless name.nil?
|
225
192
|
command.query['fields'] = fields unless fields.nil?
|
226
193
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
227
194
|
execute_or_queue_command(command, &block)
|
228
195
|
end
|
229
196
|
|
230
|
-
#
|
231
|
-
# Operation.response field contains DiagnoseClusterOutputLocation.
|
197
|
+
# Submits a job to a cluster.
|
232
198
|
# @param [String] project_id
|
233
|
-
# Required. The ID of the Google Cloud Platform project that the
|
234
|
-
# to.
|
199
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
235
200
|
# @param [String] region
|
236
201
|
# Required. The Cloud Dataproc region in which to handle the request.
|
237
|
-
# @param [
|
238
|
-
# Required. The cluster name.
|
239
|
-
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
|
202
|
+
# @param [Google::Apis::DataprocV1::SubmitJobRequest] submit_job_request_object
|
240
203
|
# @param [String] fields
|
241
204
|
# Selector specifying which fields to include in a partial response.
|
242
205
|
# @param [String] quota_user
|
@@ -246,50 +209,35 @@ module Google
|
|
246
209
|
# Request-specific options
|
247
210
|
#
|
248
211
|
# @yield [result, err] Result & error if block supplied
|
249
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
212
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
250
213
|
# @yieldparam err [StandardError] error object if request failed
|
251
214
|
#
|
252
|
-
# @return [Google::Apis::DataprocV1::
|
215
|
+
# @return [Google::Apis::DataprocV1::Job]
|
253
216
|
#
|
254
217
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
255
218
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
256
219
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
257
|
-
def
|
258
|
-
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/
|
259
|
-
command.request_representation = Google::Apis::DataprocV1::
|
260
|
-
command.request_object =
|
261
|
-
command.response_representation = Google::Apis::DataprocV1::
|
262
|
-
command.response_class = Google::Apis::DataprocV1::
|
220
|
+
def submit_job(project_id, region, submit_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
221
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs:submit', options)
|
222
|
+
command.request_representation = Google::Apis::DataprocV1::SubmitJobRequest::Representation
|
223
|
+
command.request_object = submit_job_request_object
|
224
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
225
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
263
226
|
command.params['projectId'] = project_id unless project_id.nil?
|
264
227
|
command.params['region'] = region unless region.nil?
|
265
|
-
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
266
228
|
command.query['fields'] = fields unless fields.nil?
|
267
229
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
268
230
|
execute_or_queue_command(command, &block)
|
269
231
|
end
|
270
232
|
|
271
|
-
#
|
233
|
+
# Deletes the job from the project. If the job is active, the delete fails, and
|
234
|
+
# the response returns FAILED_PRECONDITION.
|
272
235
|
# @param [String] project_id
|
273
|
-
# Required. The ID of the Google Cloud Platform project that the
|
274
|
-
# to.
|
236
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
275
237
|
# @param [String] region
|
276
238
|
# Required. The Cloud Dataproc region in which to handle the request.
|
277
|
-
# @param [String]
|
278
|
-
#
|
279
|
-
# sensitive and have the following syntax:field = value AND field = value ...
|
280
|
-
# where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is
|
281
|
-
# a label key. value can be * to match all values. status.state can be one of
|
282
|
-
# the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or
|
283
|
-
# UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE
|
284
|
-
# contains the DELETING and ERROR states. clusterName is the name of the cluster
|
285
|
-
# provided at creation time. Only the logical AND operator is supported; space-
|
286
|
-
# separated items are treated as having an implicit AND operator.Example filter:
|
287
|
-
# status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND
|
288
|
-
# labels.starred = *
|
289
|
-
# @param [String] page_token
|
290
|
-
# Optional. The standard List page token.
|
291
|
-
# @param [Fixnum] page_size
|
292
|
-
# Optional. The standard List page size.
|
239
|
+
# @param [String] job_id
|
240
|
+
# Required. The job ID.
|
293
241
|
# @param [String] fields
|
294
242
|
# Selector specifying which fields to include in a partial response.
|
295
243
|
# @param [String] quota_user
|
@@ -299,40 +247,50 @@ module Google
|
|
299
247
|
# Request-specific options
|
300
248
|
#
|
301
249
|
# @yield [result, err] Result & error if block supplied
|
302
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
250
|
+
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
303
251
|
# @yieldparam err [StandardError] error object if request failed
|
304
252
|
#
|
305
|
-
# @return [Google::Apis::DataprocV1::
|
253
|
+
# @return [Google::Apis::DataprocV1::Empty]
|
306
254
|
#
|
307
255
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
308
256
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
309
257
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
310
|
-
def
|
311
|
-
command = make_simple_command(:
|
312
|
-
command.response_representation = Google::Apis::DataprocV1::
|
313
|
-
command.response_class = Google::Apis::DataprocV1::
|
258
|
+
def delete_project_region_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
259
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
260
|
+
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
261
|
+
command.response_class = Google::Apis::DataprocV1::Empty
|
314
262
|
command.params['projectId'] = project_id unless project_id.nil?
|
315
263
|
command.params['region'] = region unless region.nil?
|
316
|
-
command.
|
317
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
318
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
264
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
319
265
|
command.query['fields'] = fields unless fields.nil?
|
320
266
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
321
267
|
execute_or_queue_command(command, &block)
|
322
268
|
end
|
323
269
|
|
324
|
-
# Lists
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
270
|
+
# Lists regions/`region`/jobs in a project.
|
271
|
+
# @param [String] project_id
|
272
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
273
|
+
# @param [String] region
|
274
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
275
|
+
# @param [String] cluster_name
|
276
|
+
# Optional. If set, the returned jobs list includes only jobs that were
|
277
|
+
# submitted to the named cluster.
|
330
278
|
# @param [String] filter
|
331
|
-
#
|
279
|
+
# Optional. A filter constraining the jobs to list. Filters are case-sensitive
|
280
|
+
# and have the following syntax:field = value AND field = value ...where field
|
281
|
+
# is status.state or labels.[KEY], and [KEY] is a label key. value can be * to
|
282
|
+
# match all values. status.state can be either ACTIVE or INACTIVE. Only the
|
283
|
+
# logical AND operator is supported; space-separated items are treated as having
|
284
|
+
# an implicit AND operator.Example filter:status.state = ACTIVE AND labels.env =
|
285
|
+
# staging AND labels.starred = *
|
286
|
+
# @param [String] job_state_matcher
|
287
|
+
# Optional. Specifies enumerated categories of jobs to list (default = match ALL
|
288
|
+
# jobs).
|
332
289
|
# @param [String] page_token
|
333
|
-
# The
|
290
|
+
# Optional. The page token, returned by a previous call, to request the next
|
291
|
+
# page of results.
|
334
292
|
# @param [Fixnum] page_size
|
335
|
-
# The
|
293
|
+
# Optional. The number of results to return in each response.
|
336
294
|
# @param [String] fields
|
337
295
|
# Selector specifying which fields to include in a partial response.
|
338
296
|
# @param [String] quota_user
|
@@ -342,20 +300,23 @@ module Google
|
|
342
300
|
# Request-specific options
|
343
301
|
#
|
344
302
|
# @yield [result, err] Result & error if block supplied
|
345
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
303
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListJobsResponse] parsed result object
|
346
304
|
# @yieldparam err [StandardError] error object if request failed
|
347
305
|
#
|
348
|
-
# @return [Google::Apis::DataprocV1::
|
306
|
+
# @return [Google::Apis::DataprocV1::ListJobsResponse]
|
349
307
|
#
|
350
308
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
351
309
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
352
310
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
353
|
-
def
|
354
|
-
command = make_simple_command(:get, 'v1/{
|
355
|
-
command.response_representation = Google::Apis::DataprocV1::
|
356
|
-
command.response_class = Google::Apis::DataprocV1::
|
357
|
-
command.params['
|
311
|
+
def list_project_region_jobs(project_id, region, cluster_name: nil, filter: nil, job_state_matcher: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
312
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs', options)
|
313
|
+
command.response_representation = Google::Apis::DataprocV1::ListJobsResponse::Representation
|
314
|
+
command.response_class = Google::Apis::DataprocV1::ListJobsResponse
|
315
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
316
|
+
command.params['region'] = region unless region.nil?
|
317
|
+
command.query['clusterName'] = cluster_name unless cluster_name.nil?
|
358
318
|
command.query['filter'] = filter unless filter.nil?
|
319
|
+
command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
|
359
320
|
command.query['pageToken'] = page_token unless page_token.nil?
|
360
321
|
command.query['pageSize'] = page_size unless page_size.nil?
|
361
322
|
command.query['fields'] = fields unless fields.nil?
|
@@ -363,80 +324,15 @@ module Google
|
|
363
324
|
execute_or_queue_command(command, &block)
|
364
325
|
end
|
365
326
|
|
366
|
-
#
|
367
|
-
#
|
368
|
-
# @param [String]
|
369
|
-
# The
|
370
|
-
# @param [String]
|
371
|
-
#
|
372
|
-
# @param [String]
|
373
|
-
#
|
374
|
-
#
|
375
|
-
# @param [Google::Apis::RequestOptions] options
|
376
|
-
# Request-specific options
|
377
|
-
#
|
378
|
-
# @yield [result, err] Result & error if block supplied
|
379
|
-
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
380
|
-
# @yieldparam err [StandardError] error object if request failed
|
381
|
-
#
|
382
|
-
# @return [Google::Apis::DataprocV1::Operation]
|
383
|
-
#
|
384
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
385
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
386
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
387
|
-
def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
388
|
-
command = make_simple_command(:get, 'v1/{+name}', options)
|
389
|
-
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
390
|
-
command.response_class = Google::Apis::DataprocV1::Operation
|
391
|
-
command.params['name'] = name unless name.nil?
|
392
|
-
command.query['fields'] = fields unless fields.nil?
|
393
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
394
|
-
execute_or_queue_command(command, &block)
|
395
|
-
end
|
396
|
-
|
397
|
-
# Starts asynchronous cancellation on a long-running operation. The server makes
|
398
|
-
# a best effort to cancel the operation, but success is not guaranteed. If the
|
399
|
-
# server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED.
|
400
|
-
# Clients can use Operations.GetOperation or other methods to check whether the
|
401
|
-
# cancellation succeeded or whether the operation completed despite cancellation.
|
402
|
-
# On successful cancellation, the operation is not deleted; instead, it becomes
|
403
|
-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
|
404
|
-
# corresponding to Code.CANCELLED.
|
405
|
-
# @param [String] name
|
406
|
-
# The name of the operation resource to be cancelled.
|
407
|
-
# @param [String] fields
|
408
|
-
# Selector specifying which fields to include in a partial response.
|
409
|
-
# @param [String] quota_user
|
410
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
411
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
412
|
-
# @param [Google::Apis::RequestOptions] options
|
413
|
-
# Request-specific options
|
414
|
-
#
|
415
|
-
# @yield [result, err] Result & error if block supplied
|
416
|
-
# @yieldparam result [Google::Apis::DataprocV1::Empty] parsed result object
|
417
|
-
# @yieldparam err [StandardError] error object if request failed
|
418
|
-
#
|
419
|
-
# @return [Google::Apis::DataprocV1::Empty]
|
420
|
-
#
|
421
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
422
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
423
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
424
|
-
def cancel_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
425
|
-
command = make_simple_command(:post, 'v1/{+name}:cancel', options)
|
426
|
-
command.response_representation = Google::Apis::DataprocV1::Empty::Representation
|
427
|
-
command.response_class = Google::Apis::DataprocV1::Empty
|
428
|
-
command.params['name'] = name unless name.nil?
|
429
|
-
command.query['fields'] = fields unless fields.nil?
|
430
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
431
|
-
execute_or_queue_command(command, &block)
|
432
|
-
end
|
433
|
-
|
434
|
-
# Deletes a long-running operation. This method indicates that the client is no
|
435
|
-
# longer interested in the operation result. It does not cancel the operation.
|
436
|
-
# If the server doesn't support this method, it returns google.rpc.Code.
|
437
|
-
# UNIMPLEMENTED.
|
438
|
-
# @param [String] name
|
439
|
-
# The name of the operation resource to be deleted.
|
327
|
+
# Starts a job cancellation request. To access the job resource after
|
328
|
+
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
|
329
|
+
# @param [String] project_id
|
330
|
+
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
331
|
+
# @param [String] region
|
332
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
333
|
+
# @param [String] job_id
|
334
|
+
# Required. The job ID.
|
335
|
+
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
|
440
336
|
# @param [String] fields
|
441
337
|
# Selector specifying which fields to include in a partial response.
|
442
338
|
# @param [String] quota_user
|
@@ -446,33 +342,35 @@ module Google
|
|
446
342
|
# Request-specific options
|
447
343
|
#
|
448
344
|
# @yield [result, err] Result & error if block supplied
|
449
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
345
|
+
# @yieldparam result [Google::Apis::DataprocV1::Job] parsed result object
|
450
346
|
# @yieldparam err [StandardError] error object if request failed
|
451
347
|
#
|
452
|
-
# @return [Google::Apis::DataprocV1::
|
348
|
+
# @return [Google::Apis::DataprocV1::Job]
|
453
349
|
#
|
454
350
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
455
351
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
456
352
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
457
|
-
def
|
458
|
-
command = make_simple_command(:
|
459
|
-
command.
|
460
|
-
command.
|
461
|
-
command.
|
353
|
+
def cancel_job(project_id, region, job_id, cancel_job_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
354
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel', options)
|
355
|
+
command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
|
356
|
+
command.request_object = cancel_job_request_object
|
357
|
+
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
358
|
+
command.response_class = Google::Apis::DataprocV1::Job
|
359
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
360
|
+
command.params['region'] = region unless region.nil?
|
361
|
+
command.params['jobId'] = job_id unless job_id.nil?
|
462
362
|
command.query['fields'] = fields unless fields.nil?
|
463
363
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
464
364
|
execute_or_queue_command(command, &block)
|
465
365
|
end
|
466
366
|
|
467
|
-
#
|
468
|
-
# cancellation, call regions/`region`/jobs.list or regions/`region`/jobs.get.
|
367
|
+
# Gets the resource representation for a job in a project.
|
469
368
|
# @param [String] project_id
|
470
369
|
# Required. The ID of the Google Cloud Platform project that the job belongs to.
|
471
370
|
# @param [String] region
|
472
371
|
# Required. The Cloud Dataproc region in which to handle the request.
|
473
372
|
# @param [String] job_id
|
474
373
|
# Required. The job ID.
|
475
|
-
# @param [Google::Apis::DataprocV1::CancelJobRequest] cancel_job_request_object
|
476
374
|
# @param [String] fields
|
477
375
|
# Selector specifying which fields to include in a partial response.
|
478
376
|
# @param [String] quota_user
|
@@ -490,10 +388,8 @@ module Google
|
|
490
388
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
491
389
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
492
390
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
493
|
-
def
|
494
|
-
command = make_simple_command(:
|
495
|
-
command.request_representation = Google::Apis::DataprocV1::CancelJobRequest::Representation
|
496
|
-
command.request_object = cancel_job_request_object
|
391
|
+
def get_project_region_job(project_id, region, job_id, fields: nil, quota_user: nil, options: nil, &block)
|
392
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/jobs/{jobId}', options)
|
497
393
|
command.response_representation = Google::Apis::DataprocV1::Job::Representation
|
498
394
|
command.response_class = Google::Apis::DataprocV1::Job
|
499
395
|
command.params['projectId'] = project_id unless project_id.nil?
|
@@ -550,13 +446,14 @@ module Google
|
|
550
446
|
execute_or_queue_command(command, &block)
|
551
447
|
end
|
552
448
|
|
553
|
-
# Gets the resource representation for a
|
449
|
+
# Gets the resource representation for a cluster in a project.
|
554
450
|
# @param [String] project_id
|
555
|
-
# Required. The ID of the Google Cloud Platform project that the
|
451
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
452
|
+
# to.
|
556
453
|
# @param [String] region
|
557
454
|
# Required. The Cloud Dataproc region in which to handle the request.
|
558
|
-
# @param [String]
|
559
|
-
# Required. The
|
455
|
+
# @param [String] cluster_name
|
456
|
+
# Required. The cluster name.
|
560
457
|
# @param [String] fields
|
561
458
|
# Selector specifying which fields to include in a partial response.
|
562
459
|
# @param [String] quota_user
|
@@ -566,32 +463,63 @@ module Google
|
|
566
463
|
# Request-specific options
|
567
464
|
#
|
568
465
|
# @yield [result, err] Result & error if block supplied
|
569
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
466
|
+
# @yieldparam result [Google::Apis::DataprocV1::Cluster] parsed result object
|
570
467
|
# @yieldparam err [StandardError] error object if request failed
|
571
468
|
#
|
572
|
-
# @return [Google::Apis::DataprocV1::
|
469
|
+
# @return [Google::Apis::DataprocV1::Cluster]
|
573
470
|
#
|
574
471
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
575
472
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
576
473
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
577
|
-
def
|
578
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/
|
579
|
-
command.response_representation = Google::Apis::DataprocV1::
|
580
|
-
command.response_class = Google::Apis::DataprocV1::
|
474
|
+
def get_project_region_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
475
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
476
|
+
command.response_representation = Google::Apis::DataprocV1::Cluster::Representation
|
477
|
+
command.response_class = Google::Apis::DataprocV1::Cluster
|
581
478
|
command.params['projectId'] = project_id unless project_id.nil?
|
582
479
|
command.params['region'] = region unless region.nil?
|
583
|
-
command.params['
|
480
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
584
481
|
command.query['fields'] = fields unless fields.nil?
|
585
482
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
586
483
|
execute_or_queue_command(command, &block)
|
587
484
|
end
|
588
485
|
|
589
|
-
#
|
486
|
+
# Updates a cluster in a project.
|
590
487
|
# @param [String] project_id
|
591
|
-
# Required. The ID of the Google Cloud Platform project
|
488
|
+
# Required. The ID of the Google Cloud Platform project the cluster belongs to.
|
592
489
|
# @param [String] region
|
593
490
|
# Required. The Cloud Dataproc region in which to handle the request.
|
594
|
-
# @param [
|
491
|
+
# @param [String] cluster_name
|
492
|
+
# Required. The cluster name.
|
493
|
+
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
494
|
+
# @param [String] update_mask
|
495
|
+
# Required. Specifies the path, relative to Cluster, of the field to update. For
|
496
|
+
# example, to change the number of workers in a cluster to 5, the update_mask
|
497
|
+
# parameter would be specified as config.worker_config.num_instances, and the
|
498
|
+
# PATCH request body would specify the new value, as follows:
|
499
|
+
# `
|
500
|
+
# "config":`
|
501
|
+
# "workerConfig":`
|
502
|
+
# "numInstances":"5"
|
503
|
+
# `
|
504
|
+
# `
|
505
|
+
# `
|
506
|
+
# Similarly, to change the number of preemptible workers in a cluster to 5, the
|
507
|
+
# update_mask parameter would be config.secondary_worker_config.num_instances,
|
508
|
+
# and the PATCH request body would be set as follows:
|
509
|
+
# `
|
510
|
+
# "config":`
|
511
|
+
# "secondaryWorkerConfig":`
|
512
|
+
# "numInstances":"5"
|
513
|
+
# `
|
514
|
+
# `
|
515
|
+
# `
|
516
|
+
# <strong>Note:</strong> Currently, only the following fields can be updated:<
|
517
|
+
# table> <tbody> <tr> <td><strong>Mask</strong></td> <td><strong>Purpose</
|
518
|
+
# strong></td> </tr> <tr> <td><strong><em>labels</em></strong></td> <td>
|
519
|
+
# Update labels</td> </tr> <tr> <td><strong><em>config.worker_config.
|
520
|
+
# num_instances</em></strong></td> <td>Resize primary worker group</td> </tr>
|
521
|
+
# <tr> <td><strong><em>config.secondary_worker_config.num_instances</em></
|
522
|
+
# strong></td> <td>Resize secondary worker group</td> </tr> </tbody> </table>
|
595
523
|
# @param [String] fields
|
596
524
|
# Selector specifying which fields to include in a partial response.
|
597
525
|
# @param [String] quota_user
|
@@ -601,35 +529,39 @@ module Google
|
|
601
529
|
# Request-specific options
|
602
530
|
#
|
603
531
|
# @yield [result, err] Result & error if block supplied
|
604
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
532
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
605
533
|
# @yieldparam err [StandardError] error object if request failed
|
606
534
|
#
|
607
|
-
# @return [Google::Apis::DataprocV1::
|
535
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
608
536
|
#
|
609
537
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
610
538
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
611
539
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
612
|
-
def
|
613
|
-
command = make_simple_command(:
|
614
|
-
command.request_representation = Google::Apis::DataprocV1::
|
615
|
-
command.request_object =
|
616
|
-
command.response_representation = Google::Apis::DataprocV1::
|
617
|
-
command.response_class = Google::Apis::DataprocV1::
|
540
|
+
def patch_project_region_cluster(project_id, region, cluster_name, cluster_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
541
|
+
command = make_simple_command(:patch, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
542
|
+
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
543
|
+
command.request_object = cluster_object
|
544
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
545
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
618
546
|
command.params['projectId'] = project_id unless project_id.nil?
|
619
547
|
command.params['region'] = region unless region.nil?
|
548
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
549
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
620
550
|
command.query['fields'] = fields unless fields.nil?
|
621
551
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
622
552
|
execute_or_queue_command(command, &block)
|
623
553
|
end
|
624
554
|
|
625
|
-
#
|
626
|
-
#
|
555
|
+
# Gets cluster diagnostic information. After the operation completes, the
|
556
|
+
# Operation.response field contains DiagnoseClusterOutputLocation.
|
627
557
|
# @param [String] project_id
|
628
|
-
# Required. The ID of the Google Cloud Platform project that the
|
558
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
559
|
+
# to.
|
629
560
|
# @param [String] region
|
630
561
|
# Required. The Cloud Dataproc region in which to handle the request.
|
631
|
-
# @param [String]
|
632
|
-
# Required. The
|
562
|
+
# @param [String] cluster_name
|
563
|
+
# Required. The cluster name.
|
564
|
+
# @param [Google::Apis::DataprocV1::DiagnoseClusterRequest] diagnose_cluster_request_object
|
633
565
|
# @param [String] fields
|
634
566
|
# Selector specifying which fields to include in a partial response.
|
635
567
|
# @param [String] quota_user
|
@@ -639,50 +571,87 @@ module Google
|
|
639
571
|
# Request-specific options
|
640
572
|
#
|
641
573
|
# @yield [result, err] Result & error if block supplied
|
642
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
574
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
643
575
|
# @yieldparam err [StandardError] error object if request failed
|
644
576
|
#
|
645
|
-
# @return [Google::Apis::DataprocV1::
|
577
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
646
578
|
#
|
647
579
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
648
580
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
649
581
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
650
|
-
def
|
651
|
-
command = make_simple_command(:
|
652
|
-
command.
|
653
|
-
command.
|
582
|
+
def diagnose_cluster(project_id, region, cluster_name, diagnose_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
583
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose', options)
|
584
|
+
command.request_representation = Google::Apis::DataprocV1::DiagnoseClusterRequest::Representation
|
585
|
+
command.request_object = diagnose_cluster_request_object
|
586
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
587
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
654
588
|
command.params['projectId'] = project_id unless project_id.nil?
|
655
589
|
command.params['region'] = region unless region.nil?
|
656
|
-
command.params['
|
590
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
657
591
|
command.query['fields'] = fields unless fields.nil?
|
658
592
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
659
593
|
execute_or_queue_command(command, &block)
|
660
594
|
end
|
661
595
|
|
662
|
-
#
|
596
|
+
# Deletes a cluster in a project.
|
663
597
|
# @param [String] project_id
|
664
|
-
# Required. The ID of the Google Cloud Platform project that the
|
598
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
599
|
+
# to.
|
665
600
|
# @param [String] region
|
666
601
|
# Required. The Cloud Dataproc region in which to handle the request.
|
667
602
|
# @param [String] cluster_name
|
668
|
-
#
|
669
|
-
#
|
603
|
+
# Required. The cluster name.
|
604
|
+
# @param [String] fields
|
605
|
+
# Selector specifying which fields to include in a partial response.
|
606
|
+
# @param [String] quota_user
|
607
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
608
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
609
|
+
# @param [Google::Apis::RequestOptions] options
|
610
|
+
# Request-specific options
|
611
|
+
#
|
612
|
+
# @yield [result, err] Result & error if block supplied
|
613
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
614
|
+
# @yieldparam err [StandardError] error object if request failed
|
615
|
+
#
|
616
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
617
|
+
#
|
618
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
619
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
620
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
621
|
+
def delete_project_region_cluster(project_id, region, cluster_name, fields: nil, quota_user: nil, options: nil, &block)
|
622
|
+
command = make_simple_command(:delete, 'v1/projects/{projectId}/regions/{region}/clusters/{clusterName}', options)
|
623
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
624
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
625
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
626
|
+
command.params['region'] = region unless region.nil?
|
627
|
+
command.params['clusterName'] = cluster_name unless cluster_name.nil?
|
628
|
+
command.query['fields'] = fields unless fields.nil?
|
629
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
630
|
+
execute_or_queue_command(command, &block)
|
631
|
+
end
|
632
|
+
|
633
|
+
# Lists all regions/`region`/clusters in a project.
|
634
|
+
# @param [String] project_id
|
635
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
636
|
+
# to.
|
637
|
+
# @param [String] region
|
638
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
639
|
+
# @param [Fixnum] page_size
|
640
|
+
# Optional. The standard List page size.
|
670
641
|
# @param [String] filter
|
671
|
-
# Optional. A filter constraining the
|
672
|
-
# and have the following syntax:field = value AND field = value ...
|
673
|
-
# is status.state or labels.[KEY], and [KEY] is
|
674
|
-
# match all values. status.state can be
|
675
|
-
#
|
676
|
-
#
|
677
|
-
#
|
678
|
-
#
|
679
|
-
#
|
680
|
-
#
|
642
|
+
# Optional. A filter constraining the clusters to list. Filters are case-
|
643
|
+
# sensitive and have the following syntax:field = value AND field = value ...
|
644
|
+
# where field is one of status.state, clusterName, or labels.[KEY], and [KEY] is
|
645
|
+
# a label key. value can be * to match all values. status.state can be one of
|
646
|
+
# the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, DELETING, or
|
647
|
+
# UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING states. INACTIVE
|
648
|
+
# contains the DELETING and ERROR states. clusterName is the name of the cluster
|
649
|
+
# provided at creation time. Only the logical AND operator is supported; space-
|
650
|
+
# separated items are treated as having an implicit AND operator.Example filter:
|
651
|
+
# status.state = ACTIVE AND clusterName = mycluster AND labels.env = staging AND
|
652
|
+
# labels.starred = *
|
681
653
|
# @param [String] page_token
|
682
|
-
# Optional. The page token
|
683
|
-
# page of results.
|
684
|
-
# @param [Fixnum] page_size
|
685
|
-
# Optional. The number of results to return in each response.
|
654
|
+
# Optional. The standard List page token.
|
686
655
|
# @param [String] fields
|
687
656
|
# Selector specifying which fields to include in a partial response.
|
688
657
|
# @param [String] quota_user
|
@@ -692,25 +661,60 @@ module Google
|
|
692
661
|
# Request-specific options
|
693
662
|
#
|
694
663
|
# @yield [result, err] Result & error if block supplied
|
695
|
-
# @yieldparam result [Google::Apis::DataprocV1::
|
664
|
+
# @yieldparam result [Google::Apis::DataprocV1::ListClustersResponse] parsed result object
|
696
665
|
# @yieldparam err [StandardError] error object if request failed
|
697
666
|
#
|
698
|
-
# @return [Google::Apis::DataprocV1::
|
667
|
+
# @return [Google::Apis::DataprocV1::ListClustersResponse]
|
699
668
|
#
|
700
669
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
701
670
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
702
671
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
703
|
-
def
|
704
|
-
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/
|
705
|
-
command.response_representation = Google::Apis::DataprocV1::
|
706
|
-
command.response_class = Google::Apis::DataprocV1::
|
672
|
+
def list_project_region_clusters(project_id, region, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
673
|
+
command = make_simple_command(:get, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
674
|
+
command.response_representation = Google::Apis::DataprocV1::ListClustersResponse::Representation
|
675
|
+
command.response_class = Google::Apis::DataprocV1::ListClustersResponse
|
707
676
|
command.params['projectId'] = project_id unless project_id.nil?
|
708
677
|
command.params['region'] = region unless region.nil?
|
709
|
-
command.query['
|
678
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
710
679
|
command.query['filter'] = filter unless filter.nil?
|
711
|
-
command.query['jobStateMatcher'] = job_state_matcher unless job_state_matcher.nil?
|
712
680
|
command.query['pageToken'] = page_token unless page_token.nil?
|
713
|
-
command.query['
|
681
|
+
command.query['fields'] = fields unless fields.nil?
|
682
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
683
|
+
execute_or_queue_command(command, &block)
|
684
|
+
end
|
685
|
+
|
686
|
+
# Creates a cluster in a project.
|
687
|
+
# @param [String] project_id
|
688
|
+
# Required. The ID of the Google Cloud Platform project that the cluster belongs
|
689
|
+
# to.
|
690
|
+
# @param [String] region
|
691
|
+
# Required. The Cloud Dataproc region in which to handle the request.
|
692
|
+
# @param [Google::Apis::DataprocV1::Cluster] cluster_object
|
693
|
+
# @param [String] fields
|
694
|
+
# Selector specifying which fields to include in a partial response.
|
695
|
+
# @param [String] quota_user
|
696
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
697
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
698
|
+
# @param [Google::Apis::RequestOptions] options
|
699
|
+
# Request-specific options
|
700
|
+
#
|
701
|
+
# @yield [result, err] Result & error if block supplied
|
702
|
+
# @yieldparam result [Google::Apis::DataprocV1::Operation] parsed result object
|
703
|
+
# @yieldparam err [StandardError] error object if request failed
|
704
|
+
#
|
705
|
+
# @return [Google::Apis::DataprocV1::Operation]
|
706
|
+
#
|
707
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
708
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
709
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
710
|
+
def create_project_region_cluster(project_id, region, cluster_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
711
|
+
command = make_simple_command(:post, 'v1/projects/{projectId}/regions/{region}/clusters', options)
|
712
|
+
command.request_representation = Google::Apis::DataprocV1::Cluster::Representation
|
713
|
+
command.request_object = cluster_object
|
714
|
+
command.response_representation = Google::Apis::DataprocV1::Operation::Representation
|
715
|
+
command.response_class = Google::Apis::DataprocV1::Operation
|
716
|
+
command.params['projectId'] = project_id unless project_id.nil?
|
717
|
+
command.params['region'] = region unless region.nil?
|
714
718
|
command.query['fields'] = fields unless fields.nil?
|
715
719
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
716
720
|
execute_or_queue_command(command, &block)
|