google-api-client 0.8.7 → 0.9.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +7 -0
- data/.rubocop_todo.yml +63 -0
- data/.travis.yml +21 -0
- data/.yardopts +12 -0
- data/CHANGELOG.md +6 -3
- data/CONTRIBUTING.md +31 -0
- data/Gemfile +28 -2
- data/MIGRATING.md +171 -0
- data/README.md +158 -150
- data/Rakefile +1 -40
- data/api_names.yaml +872 -0
- data/api_names_out.yaml +20843 -0
- data/bin/generate-api +93 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1124 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +375 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +893 -0
- data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +682 -0
- data/generated/google/apis/admin_directory_v1.rb +89 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +2389 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +780 -0
- data/generated/google/apis/admin_directory_v1/service.rb +2805 -0
- data/generated/google/apis/admin_reports_v1.rb +38 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
- data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
- data/generated/google/apis/admin_reports_v1/service.rb +341 -0
- data/generated/google/apis/adsense_v1_4.rb +38 -0
- data/generated/google/apis/adsense_v1_4/classes.rb +1279 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +493 -0
- data/generated/google/apis/adsense_v1_4/service.rb +1752 -0
- data/generated/google/apis/adsensehost_v4_1.rb +35 -0
- data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
- data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
- data/generated/google/apis/adsensehost_v4_1/service.rb +1190 -0
- data/generated/google/apis/analytics_v3.rb +49 -0
- data/generated/google/apis/analytics_v3/classes.rb +5113 -0
- data/generated/google/apis/analytics_v3/representations.rb +1661 -0
- data/generated/google/apis/analytics_v3/service.rb +3600 -0
- data/generated/google/apis/androidenterprise_v1.rb +34 -0
- data/generated/google/apis/androidenterprise_v1/classes.rb +1162 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +431 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +1979 -0
- data/generated/google/apis/androidpublisher_v2.rb +34 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +1374 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +630 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +2390 -0
- data/generated/google/apis/appsactivity_v1.rb +46 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
- data/generated/google/apis/appsactivity_v1/service.rb +129 -0
- data/generated/google/apis/appstate_v1.rb +34 -0
- data/generated/google/apis/appstate_v1/classes.rb +154 -0
- data/generated/google/apis/appstate_v1/representations.rb +79 -0
- data/generated/google/apis/appstate_v1/service.rb +265 -0
- data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
- data/generated/google/apis/autoscaler_v1beta2/service.rb +488 -0
- data/generated/google/apis/bigquery_v2.rb +49 -0
- data/generated/google/apis/bigquery_v2/classes.rb +2255 -0
- data/generated/google/apis/bigquery_v2/representations.rb +754 -0
- data/generated/google/apis/bigquery_v2/service.rb +1003 -0
- data/generated/google/apis/blogger_v3.rb +37 -0
- data/generated/google/apis/blogger_v3/classes.rb +1354 -0
- data/generated/google/apis/blogger_v3/representations.rb +562 -0
- data/generated/google/apis/blogger_v3/service.rb +1620 -0
- data/generated/google/apis/books_v1.rb +34 -0
- data/generated/google/apis/books_v1/classes.rb +3515 -0
- data/generated/google/apis/books_v1/representations.rb +1361 -0
- data/generated/google/apis/books_v1/service.rb +2170 -0
- data/generated/google/apis/calendar_v3.rb +37 -0
- data/generated/google/apis/calendar_v3/classes.rb +1702 -0
- data/generated/google/apis/calendar_v3/representations.rb +566 -0
- data/generated/google/apis/calendar_v3/service.rb +1943 -0
- data/generated/google/apis/civicinfo_v2.rb +31 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +1057 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +374 -0
- data/generated/google/apis/civicinfo_v2/service.rb +284 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +34 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +458 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +139 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +65 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +301 -0
- data/generated/google/apis/compute_v1.rb +49 -0
- data/generated/google/apis/compute_v1/classes.rb +6391 -0
- data/generated/google/apis/compute_v1/representations.rb +2209 -0
- data/generated/google/apis/compute_v1/service.rb +6352 -0
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +466 -0
- data/generated/google/apis/container_v1beta1/representations.rb +177 -0
- data/generated/google/apis/container_v1beta1/service.rb +394 -0
- data/generated/google/apis/content_v2.rb +35 -0
- data/generated/google/apis/content_v2/classes.rb +3780 -0
- data/generated/google/apis/content_v2/representations.rb +1456 -0
- data/generated/google/apis/content_v2/service.rb +1706 -0
- data/generated/google/apis/coordinate_v1.rb +37 -0
- data/generated/google/apis/coordinate_v1/classes.rb +669 -0
- data/generated/google/apis/coordinate_v1/representations.rb +285 -0
- data/generated/google/apis/coordinate_v1/service.rb +687 -0
- data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
- data/generated/google/apis/customsearch_v1/classes.rb +771 -0
- data/generated/google/apis/customsearch_v1/representations.rb +276 -0
- data/generated/google/apis/customsearch_v1/service.rb +208 -0
- data/generated/google/apis/datastore_v1beta2.rb +40 -0
- data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
- data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
- data/generated/google/apis/datastore_v1beta2/service.rb +300 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +41 -0
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +820 -0
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +303 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +647 -0
- data/generated/google/apis/dfareporting_v2_1.rb +37 -0
- data/generated/google/apis/dfareporting_v2_1/classes.rb +10755 -0
- data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
- data/generated/google/apis/dfareporting_v2_1/service.rb +8775 -0
- data/generated/google/apis/discovery_v1.rb +32 -0
- data/generated/google/apis/discovery_v1/classes.rb +947 -0
- data/generated/google/apis/discovery_v1/representations.rb +355 -0
- data/generated/google/apis/discovery_v1/service.rb +144 -0
- data/generated/google/apis/dns_v1.rb +41 -0
- data/generated/google/apis/dns_v1/classes.rb +406 -0
- data/generated/google/apis/dns_v1/representations.rb +151 -0
- data/generated/google/apis/dns_v1/service.rb +460 -0
- data/{spec/google/api_client/request_spec.rb → generated/google/apis/doubleclickbidmanager_v1.rb} +15 -13
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +709 -0
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +297 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +349 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +947 -0
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +315 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +490 -0
- data/generated/google/apis/drive_v2.rb +55 -0
- data/generated/google/apis/drive_v2/classes.rb +2519 -0
- data/generated/google/apis/drive_v2/representations.rb +781 -0
- data/generated/google/apis/drive_v2/service.rb +2685 -0
- data/generated/google/apis/fitness_v1.rb +49 -0
- data/generated/google/apis/fitness_v1/classes.rb +809 -0
- data/generated/google/apis/fitness_v1/representations.rb +295 -0
- data/generated/google/apis/fitness_v1/service.rb +684 -0
- data/generated/google/apis/fusiontables_v2.rb +37 -0
- data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
- data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
- data/generated/google/apis/fusiontables_v2/service.rb +1496 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
- data/generated/google/apis/games_configuration_v1configuration/service.rb +578 -0
- data/generated/google/apis/games_v1.rb +40 -0
- data/generated/google/apis/games_v1/classes.rb +4578 -0
- data/generated/google/apis/games_v1/representations.rb +1570 -0
- data/generated/google/apis/games_v1/service.rb +2306 -0
- data/generated/google/apis/gan_v1beta1.rb +31 -0
- data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
- data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
- data/generated/google/apis/gan_v1beta1/service.rb +692 -0
- data/generated/google/apis/genomics_v1beta2.rb +46 -0
- data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
- data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
- data/generated/google/apis/genomics_v1beta2/service.rb +2356 -0
- data/generated/google/apis/gmail_v1.rb +49 -0
- data/generated/google/apis/gmail_v1/classes.rb +794 -0
- data/generated/google/apis/gmail_v1/representations.rb +339 -0
- data/generated/google/apis/gmail_v1/service.rb +1502 -0
- data/generated/google/apis/groupsmigration_v1.rb +34 -0
- data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
- data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
- data/generated/google/apis/groupsmigration_v1/service.rb +111 -0
- data/generated/google/apis/groupssettings_v1.rb +34 -0
- data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
- data/generated/google/apis/groupssettings_v1/service.rb +179 -0
- data/generated/google/apis/identitytoolkit_v3.rb +31 -0
- data/generated/google/apis/identitytoolkit_v3/classes.rb +1229 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +422 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +491 -0
- data/generated/google/apis/licensing_v1.rb +34 -0
- data/generated/google/apis/licensing_v1/classes.rb +132 -0
- data/generated/google/apis/licensing_v1/representations.rb +68 -0
- data/generated/google/apis/licensing_v1/service.rb +376 -0
- data/generated/google/apis/logging_v1beta3.rb +35 -0
- data/generated/google/apis/logging_v1beta3/classes.rb +505 -0
- data/generated/google/apis/logging_v1beta3/representations.rb +222 -0
- data/generated/google/apis/logging_v1beta3/service.rb +670 -0
- data/generated/google/apis/manager_v1beta2.rb +50 -0
- data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
- data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
- data/generated/google/apis/manager_v1beta2/service.rb +380 -0
- data/generated/google/apis/mapsengine_v1.rb +38 -0
- data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
- data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
- data/generated/google/apis/mapsengine_v1/service.rb +3465 -0
- data/generated/google/apis/mirror_v1.rb +37 -0
- data/generated/google/apis/mirror_v1/classes.rb +1072 -0
- data/generated/google/apis/mirror_v1/representations.rb +350 -0
- data/generated/google/apis/mirror_v1/service.rb +1001 -0
- data/generated/google/apis/oauth2_v2.rb +43 -0
- data/generated/google/apis/oauth2_v2/classes.rb +245 -0
- data/generated/google/apis/oauth2_v2/representations.rb +94 -0
- data/generated/google/apis/oauth2_v2/service.rb +203 -0
- data/generated/google/apis/pagespeedonline_v2.rb +32 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
- data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
- data/generated/google/apis/pagespeedonline_v2/service.rb +120 -0
- data/generated/google/apis/plus_domains_v1.rb +61 -0
- data/generated/google/apis/plus_domains_v1/classes.rb +2402 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +873 -0
- data/generated/google/apis/plus_domains_v1/service.rb +924 -0
- data/generated/google/apis/plus_v1.rb +43 -0
- data/generated/google/apis/plus_v1/classes.rb +2384 -0
- data/generated/google/apis/plus_v1/representations.rb +812 -0
- data/generated/google/apis/plus_v1/service.rb +616 -0
- data/generated/google/apis/prediction_v1_6.rb +44 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
- data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
- data/generated/google/apis/prediction_v1_6/service.rb +388 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +824 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +366 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +778 -0
- data/generated/google/apis/qpx_express_v1.rb +31 -0
- data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
- data/generated/google/apis/qpx_express_v1/service.rb +101 -0
- data/generated/google/apis/replicapool_v1beta2.rb +41 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +621 -0
- data/generated/google/apis/replicapool_v1beta2/representations.rb +235 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +620 -0
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +41 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +682 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +247 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +472 -0
- data/generated/google/apis/reseller_v1.rb +37 -0
- data/generated/google/apis/reseller_v1/classes.rb +502 -0
- data/generated/google/apis/reseller_v1/representations.rb +199 -0
- data/generated/google/apis/reseller_v1/service.rb +637 -0
- data/generated/google/apis/resourceviews_v1beta2.rb +47 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +574 -0
- data/generated/google/apis/site_verification_v1.rb +37 -0
- data/generated/google/apis/site_verification_v1/classes.rb +185 -0
- data/generated/google/apis/site_verification_v1/representations.rb +101 -0
- data/generated/google/apis/site_verification_v1/service.rb +322 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +1817 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +688 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1534 -0
- data/generated/google/apis/storage_v1.rb +43 -0
- data/generated/google/apis/storage_v1/classes.rb +1177 -0
- data/generated/google/apis/storage_v1/representations.rb +427 -0
- data/generated/google/apis/storage_v1/service.rb +1920 -0
- data/generated/google/apis/tagmanager_v1.rb +52 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +1226 -0
- data/generated/google/apis/tagmanager_v1/representations.rb +461 -0
- data/generated/google/apis/tagmanager_v1/service.rb +1978 -0
- data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
- data/generated/google/apis/taskqueue_v1beta2/service.rb +416 -0
- data/generated/google/apis/tasks_v1.rb +37 -0
- data/generated/google/apis/tasks_v1/classes.rb +296 -0
- data/generated/google/apis/tasks_v1/representations.rb +115 -0
- data/generated/google/apis/tasks_v1/service.rb +657 -0
- data/generated/google/apis/translate_v2.rb +31 -0
- data/generated/google/apis/translate_v2/classes.rb +168 -0
- data/generated/google/apis/translate_v2/representations.rb +109 -0
- data/generated/google/apis/translate_v2/service.rb +185 -0
- data/generated/google/apis/urlshortener_v1.rb +34 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
- data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
- data/generated/google/apis/urlshortener_v1/service.rb +179 -0
- data/generated/google/apis/webmasters_v3.rb +37 -0
- data/generated/google/apis/webmasters_v3/classes.rb +563 -0
- data/generated/google/apis/webmasters_v3/representations.rb +250 -0
- data/generated/google/apis/webmasters_v3/service.rb +587 -0
- data/generated/google/apis/youtube_analytics_v1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +540 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +242 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +567 -0
- data/generated/google/apis/youtube_v3.rb +49 -0
- data/generated/google/apis/youtube_v3/classes.rb +7225 -0
- data/generated/google/apis/youtube_v3/representations.rb +2529 -0
- data/generated/google/apis/youtube_v3/service.rb +4051 -0
- data/google-api-client.gemspec +27 -39
- data/lib/google/api_client/auth/storage.rb +3 -2
- data/lib/google/api_client/auth/storages/file_store.rb +1 -3
- data/lib/google/api_client/auth/storages/redis_store.rb +6 -2
- data/lib/google/apis.rb +48 -0
- data/lib/google/apis/core/api_command.rb +128 -0
- data/lib/google/apis/core/base_service.rb +314 -0
- data/lib/google/apis/core/batch.rb +222 -0
- data/lib/google/apis/core/download.rb +94 -0
- data/lib/google/apis/core/hashable.rb +44 -0
- data/lib/google/apis/core/http_command.rb +275 -0
- data/lib/google/apis/core/json_representation.rb +122 -0
- data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
- data/lib/google/apis/core/multipart.rb +173 -0
- data/lib/google/apis/core/upload.rb +275 -0
- data/lib/google/{api_client → apis}/errors.rb +32 -28
- data/lib/google/apis/generator.rb +70 -0
- data/lib/google/apis/generator/annotator.rb +271 -0
- data/lib/google/apis/generator/helpers.rb +74 -0
- data/lib/google/apis/generator/model.rb +130 -0
- data/lib/google/apis/generator/template.rb +124 -0
- data/lib/google/apis/generator/templates/_class.tmpl +40 -0
- data/lib/google/apis/generator/templates/_method.tmpl +90 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
- data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
- data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
- data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
- data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
- data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
- data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
- data/lib/google/apis/options.rb +79 -0
- data/lib/google/apis/version.rb +39 -0
- data/rakelib/metrics.rake +22 -0
- data/rakelib/rubocop.rake +10 -0
- data/rakelib/spec.rake +11 -0
- data/rakelib/yard.rake +11 -0
- data/samples/calendar/calendar.rb +43 -0
- data/samples/drive/drive.rb +40 -0
- data/samples/pubsub/pubsub.rb +52 -0
- data/{lib/google/api_client/discovery.rb → samples/translate/translate.rb} +14 -5
- data/script/generate +79 -0
- data/script/package +8 -0
- data/script/release +15 -0
- data/spec/fixtures/files/api_names.yaml +3 -0
- data/spec/fixtures/files/auth_stored_credentials.json +8 -0
- data/spec/fixtures/files/client_secrets.json +1 -0
- data/spec/fixtures/files/test.blah +1 -0
- data/spec/fixtures/files/test.txt +1 -0
- data/spec/fixtures/files/test_api.json +440 -0
- data/spec/google/api_client/auth/storage_spec.rb +1 -3
- data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
- data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
- data/spec/google/apis/core/api_command_spec.rb +170 -0
- data/spec/google/apis/core/batch_spec.rb +128 -0
- data/spec/google/apis/core/download_spec.rb +90 -0
- data/spec/google/apis/core/hashable_spec.rb +60 -0
- data/spec/google/apis/core/http_command_spec.rb +238 -0
- data/spec/google/apis/core/json_representation_spec.rb +192 -0
- data/spec/google/apis/core/service_spec.rb +247 -0
- data/spec/google/apis/core/upload_spec.rb +238 -0
- data/{lib/google/api_client/service_account.rb → spec/google/apis/generated_spec.rb} +14 -8
- data/spec/google/apis/generator/generator_spec.rb +272 -0
- data/spec/google/apis/logging_spec.rb +45 -0
- data/spec/google/apis/options_spec.rb +40 -0
- data/spec/integration_tests/drive_spec.rb +35 -0
- data/spec/integration_tests/pubsub_spec.rb +48 -0
- data/spec/integration_tests/url_shortener_spec.rb +31 -0
- data/spec/spec_helper.rb +102 -46
- metadata +433 -178
- data/lib/compat/multi_json.rb +0 -19
- data/lib/google/api_client.rb +0 -750
- data/lib/google/api_client/auth/file_storage.rb +0 -59
- data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
- data/lib/google/api_client/auth/key_utils.rb +0 -93
- data/lib/google/api_client/auth/pkcs12.rb +0 -41
- data/lib/google/api_client/batch.rb +0 -326
- data/lib/google/api_client/charset.rb +0 -33
- data/lib/google/api_client/discovery/api.rb +0 -310
- data/lib/google/api_client/discovery/media.rb +0 -77
- data/lib/google/api_client/discovery/method.rb +0 -363
- data/lib/google/api_client/discovery/resource.rb +0 -156
- data/lib/google/api_client/discovery/schema.rb +0 -117
- data/lib/google/api_client/environment.rb +0 -42
- data/lib/google/api_client/gzip.rb +0 -28
- data/lib/google/api_client/logging.rb +0 -32
- data/lib/google/api_client/media.rb +0 -259
- data/lib/google/api_client/railtie.rb +0 -18
- data/lib/google/api_client/request.rb +0 -350
- data/lib/google/api_client/result.rb +0 -255
- data/lib/google/api_client/service.rb +0 -233
- data/lib/google/api_client/service/batch.rb +0 -110
- data/lib/google/api_client/service/request.rb +0 -144
- data/lib/google/api_client/service/resource.rb +0 -40
- data/lib/google/api_client/service/result.rb +0 -162
- data/lib/google/api_client/service/simple_file_store.rb +0 -151
- data/lib/google/api_client/service/stub_generator.rb +0 -61
- data/spec/google/api_client/batch_spec.rb +0 -248
- data/spec/google/api_client/discovery_spec.rb +0 -708
- data/spec/google/api_client/gzip_spec.rb +0 -98
- data/spec/google/api_client/media_spec.rb +0 -178
- data/spec/google/api_client/result_spec.rb +0 -207
- data/spec/google/api_client/service_account_spec.rb +0 -169
- data/spec/google/api_client/service_spec.rb +0 -618
- data/spec/google/api_client/simple_file_store_spec.rb +0 -133
- data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,303 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module DeploymentmanagerV2beta2
|
24
|
+
|
25
|
+
class Deployment
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
end
|
28
|
+
|
29
|
+
class DeploymentUpdate
|
30
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
31
|
+
end
|
32
|
+
|
33
|
+
class ListDeploymentsResponse
|
34
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
35
|
+
end
|
36
|
+
|
37
|
+
class ImportFile
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
end
|
40
|
+
|
41
|
+
class Manifest
|
42
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
43
|
+
end
|
44
|
+
|
45
|
+
class ListManifestsResponse
|
46
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
47
|
+
end
|
48
|
+
|
49
|
+
class Operation
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
class Error
|
53
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
54
|
+
|
55
|
+
class Error
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
class Warning
|
61
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
62
|
+
|
63
|
+
class Datum
|
64
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
class ListOperationsResponse
|
70
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
71
|
+
end
|
72
|
+
|
73
|
+
class Resource
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
end
|
76
|
+
|
77
|
+
class ResourceUpdate
|
78
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
79
|
+
end
|
80
|
+
|
81
|
+
class ListResourcesResponse
|
82
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
83
|
+
end
|
84
|
+
|
85
|
+
class TargetConfiguration
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
end
|
88
|
+
|
89
|
+
class Type
|
90
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
91
|
+
end
|
92
|
+
|
93
|
+
class ListTypesResponse
|
94
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
95
|
+
end
|
96
|
+
|
97
|
+
class Deployment
|
98
|
+
# @private
|
99
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
100
|
+
property :description, as: 'description'
|
101
|
+
property :fingerprint, :base64 => true, as: 'fingerprint'
|
102
|
+
property :id, as: 'id'
|
103
|
+
property :insert_time, as: 'insertTime'
|
104
|
+
property :intent, as: 'intent'
|
105
|
+
property :manifest, as: 'manifest'
|
106
|
+
property :name, as: 'name'
|
107
|
+
property :state, as: 'state'
|
108
|
+
property :target, as: 'target', class: Google::Apis::DeploymentmanagerV2beta2::TargetConfiguration, decorator: Google::Apis::DeploymentmanagerV2beta2::TargetConfiguration::Representation
|
109
|
+
|
110
|
+
property :update, as: 'update', class: Google::Apis::DeploymentmanagerV2beta2::DeploymentUpdate, decorator: Google::Apis::DeploymentmanagerV2beta2::DeploymentUpdate::Representation
|
111
|
+
|
112
|
+
property :update_time, as: 'updateTime'
|
113
|
+
end
|
114
|
+
end
|
115
|
+
|
116
|
+
class DeploymentUpdate
|
117
|
+
# @private
|
118
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
119
|
+
collection :errors, as: 'errors'
|
120
|
+
property :manifest, as: 'manifest'
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
class ListDeploymentsResponse
|
125
|
+
# @private
|
126
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
127
|
+
collection :deployments, as: 'deployments', class: Google::Apis::DeploymentmanagerV2beta2::Deployment, decorator: Google::Apis::DeploymentmanagerV2beta2::Deployment::Representation
|
128
|
+
|
129
|
+
property :next_page_token, as: 'nextPageToken'
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
class ImportFile
|
134
|
+
# @private
|
135
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
136
|
+
property :content, as: 'content'
|
137
|
+
property :name, as: 'name'
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
class Manifest
|
142
|
+
# @private
|
143
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
144
|
+
property :config, as: 'config'
|
145
|
+
property :evaluated_config, as: 'evaluatedConfig'
|
146
|
+
property :id, as: 'id'
|
147
|
+
collection :imports, as: 'imports', class: Google::Apis::DeploymentmanagerV2beta2::ImportFile, decorator: Google::Apis::DeploymentmanagerV2beta2::ImportFile::Representation
|
148
|
+
|
149
|
+
property :insert_time, as: 'insertTime'
|
150
|
+
property :layout, as: 'layout'
|
151
|
+
property :name, as: 'name'
|
152
|
+
property :self_link, as: 'selfLink'
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
class ListManifestsResponse
|
157
|
+
# @private
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
159
|
+
collection :manifests, as: 'manifests', class: Google::Apis::DeploymentmanagerV2beta2::Manifest, decorator: Google::Apis::DeploymentmanagerV2beta2::Manifest::Representation
|
160
|
+
|
161
|
+
property :next_page_token, as: 'nextPageToken'
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
class Operation
|
166
|
+
# @private
|
167
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
168
|
+
property :client_operation_id, as: 'clientOperationId'
|
169
|
+
property :creation_timestamp, as: 'creationTimestamp'
|
170
|
+
property :end_time, as: 'endTime'
|
171
|
+
property :error, as: 'error', class: Google::Apis::DeploymentmanagerV2beta2::Operation::Error, decorator: Google::Apis::DeploymentmanagerV2beta2::Operation::Error::Representation
|
172
|
+
|
173
|
+
property :http_error_message, as: 'httpErrorMessage'
|
174
|
+
property :http_error_status_code, as: 'httpErrorStatusCode'
|
175
|
+
property :id, as: 'id'
|
176
|
+
property :insert_time, as: 'insertTime'
|
177
|
+
property :kind, as: 'kind'
|
178
|
+
property :name, as: 'name'
|
179
|
+
property :operation_type, as: 'operationType'
|
180
|
+
property :progress, as: 'progress'
|
181
|
+
property :region, as: 'region'
|
182
|
+
property :self_link, as: 'selfLink'
|
183
|
+
property :start_time, as: 'startTime'
|
184
|
+
property :status, as: 'status'
|
185
|
+
property :status_message, as: 'statusMessage'
|
186
|
+
property :target_id, as: 'targetId'
|
187
|
+
property :target_link, as: 'targetLink'
|
188
|
+
property :user, as: 'user'
|
189
|
+
collection :warnings, as: 'warnings', class: Google::Apis::DeploymentmanagerV2beta2::Operation::Warning, decorator: Google::Apis::DeploymentmanagerV2beta2::Operation::Warning::Representation
|
190
|
+
|
191
|
+
property :zone, as: 'zone'
|
192
|
+
end
|
193
|
+
|
194
|
+
class Error
|
195
|
+
# @private
|
196
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
197
|
+
collection :errors, as: 'errors', class: Google::Apis::DeploymentmanagerV2beta2::Operation::Error::Error, decorator: Google::Apis::DeploymentmanagerV2beta2::Operation::Error::Error::Representation
|
198
|
+
|
199
|
+
end
|
200
|
+
|
201
|
+
class Error
|
202
|
+
# @private
|
203
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
204
|
+
property :code, as: 'code'
|
205
|
+
property :location, as: 'location'
|
206
|
+
property :message, as: 'message'
|
207
|
+
end
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
class Warning
|
212
|
+
# @private
|
213
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
214
|
+
property :code, as: 'code'
|
215
|
+
collection :data, as: 'data', class: Google::Apis::DeploymentmanagerV2beta2::Operation::Warning::Datum, decorator: Google::Apis::DeploymentmanagerV2beta2::Operation::Warning::Datum::Representation
|
216
|
+
|
217
|
+
property :message, as: 'message'
|
218
|
+
end
|
219
|
+
|
220
|
+
class Datum
|
221
|
+
# @private
|
222
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
223
|
+
property :key, as: 'key'
|
224
|
+
property :value, as: 'value'
|
225
|
+
end
|
226
|
+
end
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
class ListOperationsResponse
|
231
|
+
# @private
|
232
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
233
|
+
property :next_page_token, as: 'nextPageToken'
|
234
|
+
collection :operations, as: 'operations', class: Google::Apis::DeploymentmanagerV2beta2::Operation, decorator: Google::Apis::DeploymentmanagerV2beta2::Operation::Representation
|
235
|
+
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
class Resource
|
240
|
+
# @private
|
241
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
242
|
+
property :final_properties, as: 'finalProperties'
|
243
|
+
property :id, as: 'id'
|
244
|
+
property :insert_time, as: 'insertTime'
|
245
|
+
property :manifest, as: 'manifest'
|
246
|
+
property :name, as: 'name'
|
247
|
+
property :properties, as: 'properties'
|
248
|
+
property :type, as: 'type'
|
249
|
+
property :update, as: 'update', class: Google::Apis::DeploymentmanagerV2beta2::ResourceUpdate, decorator: Google::Apis::DeploymentmanagerV2beta2::ResourceUpdate::Representation
|
250
|
+
|
251
|
+
property :update_time, as: 'updateTime'
|
252
|
+
property :url, as: 'url'
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
class ResourceUpdate
|
257
|
+
# @private
|
258
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
259
|
+
collection :errors, as: 'errors'
|
260
|
+
property :final_properties, as: 'finalProperties'
|
261
|
+
property :intent, as: 'intent'
|
262
|
+
property :manifest, as: 'manifest'
|
263
|
+
property :properties, as: 'properties'
|
264
|
+
property :state, as: 'state'
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
class ListResourcesResponse
|
269
|
+
# @private
|
270
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
271
|
+
property :next_page_token, as: 'nextPageToken'
|
272
|
+
collection :resources, as: 'resources', class: Google::Apis::DeploymentmanagerV2beta2::Resource, decorator: Google::Apis::DeploymentmanagerV2beta2::Resource::Representation
|
273
|
+
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
277
|
+
class TargetConfiguration
|
278
|
+
# @private
|
279
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
280
|
+
property :config, as: 'config'
|
281
|
+
collection :imports, as: 'imports', class: Google::Apis::DeploymentmanagerV2beta2::ImportFile, decorator: Google::Apis::DeploymentmanagerV2beta2::ImportFile::Representation
|
282
|
+
|
283
|
+
end
|
284
|
+
end
|
285
|
+
|
286
|
+
class Type
|
287
|
+
# @private
|
288
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
289
|
+
property :name, as: 'name'
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
class ListTypesResponse
|
294
|
+
# @private
|
295
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
296
|
+
property :next_page_token, as: 'nextPageToken'
|
297
|
+
collection :types, as: 'types', class: Google::Apis::DeploymentmanagerV2beta2::Type, decorator: Google::Apis::DeploymentmanagerV2beta2::Type::Representation
|
298
|
+
|
299
|
+
end
|
300
|
+
end
|
301
|
+
end
|
302
|
+
end
|
303
|
+
end
|
@@ -0,0 +1,647 @@
|
|
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 DeploymentmanagerV2beta2
|
23
|
+
# Google Cloud Deployment Manager API V2
|
24
|
+
#
|
25
|
+
# The Deployment Manager API allows users to declaratively configure, deploy and
|
26
|
+
# run complex solutions on the Google Cloud Platform.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/deploymentmanager_v2beta2'
|
30
|
+
#
|
31
|
+
# Deploymentmanager = Google::Apis::DeploymentmanagerV2beta2 # Alias the module
|
32
|
+
# service = Deploymentmanager::DeploymentManagerService.new
|
33
|
+
#
|
34
|
+
# @see https://developers.google.com/deployment-manager/
|
35
|
+
class DeploymentManagerService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
# Overrides userIp if both are provided.
|
45
|
+
attr_accessor :quota_user
|
46
|
+
|
47
|
+
# @return [String]
|
48
|
+
# IP address of the site where the request originates. Use this if you want to
|
49
|
+
# enforce per-user limits.
|
50
|
+
attr_accessor :user_ip
|
51
|
+
|
52
|
+
def initialize
|
53
|
+
super('https://www.googleapis.com/', 'deploymentmanager/v2beta2/projects/')
|
54
|
+
end
|
55
|
+
|
56
|
+
# Deletes a deployment and all of the resources in the deployment.
|
57
|
+
# @param [String] project
|
58
|
+
# The project ID for this request.
|
59
|
+
# @param [String] deployment
|
60
|
+
# The name of the deployment for this request.
|
61
|
+
# @param [String] fields
|
62
|
+
# Selector specifying which fields to include in a partial response.
|
63
|
+
# @param [String] quota_user
|
64
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
65
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
66
|
+
# Overrides userIp if both are provided.
|
67
|
+
# @param [String] user_ip
|
68
|
+
# IP address of the site where the request originates. Use this if you want to
|
69
|
+
# enforce per-user limits.
|
70
|
+
# @param [Google::Apis::RequestOptions] options
|
71
|
+
# Request-specific options
|
72
|
+
#
|
73
|
+
# @yield [result, err] Result & error if block supplied
|
74
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::Operation] parsed result object
|
75
|
+
# @yieldparam err [StandardError] error object if request failed
|
76
|
+
#
|
77
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::Operation]
|
78
|
+
#
|
79
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
80
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
81
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
82
|
+
def delete_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
83
|
+
path = '{project}/global/deployments/{deployment}'
|
84
|
+
command = make_simple_command(:delete, path, options)
|
85
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Operation::Representation
|
86
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::Operation
|
87
|
+
command.params['project'] = project unless project.nil?
|
88
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
89
|
+
command.query['fields'] = fields unless fields.nil?
|
90
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
91
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
92
|
+
execute_or_queue_command(command, &block)
|
93
|
+
end
|
94
|
+
|
95
|
+
# Gets information about a specific deployment.
|
96
|
+
# @param [String] project
|
97
|
+
# The project ID for this request.
|
98
|
+
# @param [String] deployment
|
99
|
+
# The name of the deployment for this request.
|
100
|
+
# @param [String] fields
|
101
|
+
# Selector specifying which fields to include in a partial response.
|
102
|
+
# @param [String] quota_user
|
103
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
104
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
105
|
+
# Overrides userIp if both are provided.
|
106
|
+
# @param [String] user_ip
|
107
|
+
# IP address of the site where the request originates. Use this if you want to
|
108
|
+
# enforce per-user limits.
|
109
|
+
# @param [Google::Apis::RequestOptions] options
|
110
|
+
# Request-specific options
|
111
|
+
#
|
112
|
+
# @yield [result, err] Result & error if block supplied
|
113
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::Deployment] parsed result object
|
114
|
+
# @yieldparam err [StandardError] error object if request failed
|
115
|
+
#
|
116
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::Deployment]
|
117
|
+
#
|
118
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
119
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
120
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
121
|
+
def get_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
122
|
+
path = '{project}/global/deployments/{deployment}'
|
123
|
+
command = make_simple_command(:get, path, options)
|
124
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Deployment::Representation
|
125
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::Deployment
|
126
|
+
command.params['project'] = project unless project.nil?
|
127
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
128
|
+
command.query['fields'] = fields unless fields.nil?
|
129
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
130
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
131
|
+
execute_or_queue_command(command, &block)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Creates a deployment and all of the resources described by the deployment
|
135
|
+
# manifest.
|
136
|
+
# @param [String] project
|
137
|
+
# The project ID for this request.
|
138
|
+
# @param [Google::Apis::DeploymentmanagerV2beta2::Deployment] deployment_object
|
139
|
+
# @param [String] fields
|
140
|
+
# Selector specifying which fields to include in a partial response.
|
141
|
+
# @param [String] quota_user
|
142
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
143
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
144
|
+
# Overrides userIp if both are provided.
|
145
|
+
# @param [String] user_ip
|
146
|
+
# IP address of the site where the request originates. Use this if you want to
|
147
|
+
# enforce per-user limits.
|
148
|
+
# @param [Google::Apis::RequestOptions] options
|
149
|
+
# Request-specific options
|
150
|
+
#
|
151
|
+
# @yield [result, err] Result & error if block supplied
|
152
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::Operation] parsed result object
|
153
|
+
# @yieldparam err [StandardError] error object if request failed
|
154
|
+
#
|
155
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::Operation]
|
156
|
+
#
|
157
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
158
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
159
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
160
|
+
def insert_deployment(project, deployment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
161
|
+
path = '{project}/global/deployments'
|
162
|
+
command = make_simple_command(:post, path, options)
|
163
|
+
command.request_representation = Google::Apis::DeploymentmanagerV2beta2::Deployment::Representation
|
164
|
+
command.request_object = deployment_object
|
165
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Operation::Representation
|
166
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::Operation
|
167
|
+
command.params['project'] = project unless project.nil?
|
168
|
+
command.query['fields'] = fields unless fields.nil?
|
169
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
170
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
171
|
+
execute_or_queue_command(command, &block)
|
172
|
+
end
|
173
|
+
|
174
|
+
# Lists all deployments for a given project.
|
175
|
+
# @param [String] project
|
176
|
+
# The project ID for this request.
|
177
|
+
# @param [String] filter
|
178
|
+
# Filter expression for filtering listed resources.
|
179
|
+
# @param [Fixnum] max_results
|
180
|
+
# Maximum count of results to be returned.
|
181
|
+
# @param [String] page_token
|
182
|
+
# Tag returned by a previous list request when that list was truncated to
|
183
|
+
# maxResults. Used to continue a previous list request.
|
184
|
+
# @param [String] fields
|
185
|
+
# Selector specifying which fields to include in a partial response.
|
186
|
+
# @param [String] quota_user
|
187
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
188
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
189
|
+
# Overrides userIp if both are provided.
|
190
|
+
# @param [String] user_ip
|
191
|
+
# IP address of the site where the request originates. Use this if you want to
|
192
|
+
# enforce per-user limits.
|
193
|
+
# @param [Google::Apis::RequestOptions] options
|
194
|
+
# Request-specific options
|
195
|
+
#
|
196
|
+
# @yield [result, err] Result & error if block supplied
|
197
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::ListDeploymentsResponse] parsed result object
|
198
|
+
# @yieldparam err [StandardError] error object if request failed
|
199
|
+
#
|
200
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::ListDeploymentsResponse]
|
201
|
+
#
|
202
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
203
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
204
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
205
|
+
def list_deployments(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
206
|
+
path = '{project}/global/deployments'
|
207
|
+
command = make_simple_command(:get, path, options)
|
208
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::ListDeploymentsResponse::Representation
|
209
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::ListDeploymentsResponse
|
210
|
+
command.params['project'] = project unless project.nil?
|
211
|
+
command.query['filter'] = filter unless filter.nil?
|
212
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
213
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
214
|
+
command.query['fields'] = fields unless fields.nil?
|
215
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
216
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
217
|
+
execute_or_queue_command(command, &block)
|
218
|
+
end
|
219
|
+
|
220
|
+
# Updates a deployment and all of the resources described by the deployment
|
221
|
+
# manifest. This method supports patch semantics.
|
222
|
+
# @param [String] project
|
223
|
+
# The project ID for this request.
|
224
|
+
# @param [String] deployment
|
225
|
+
# The name of the deployment for this request.
|
226
|
+
# @param [Google::Apis::DeploymentmanagerV2beta2::Deployment] deployment_object
|
227
|
+
# @param [String] create_policy
|
228
|
+
# Sets the policy to use for creating new resources.
|
229
|
+
# @param [String] delete_policy
|
230
|
+
# Sets the policy to use for deleting resources.
|
231
|
+
# @param [String] update_policy
|
232
|
+
# Sets the policy to use for updating resources.
|
233
|
+
# @param [String] fields
|
234
|
+
# Selector specifying which fields to include in a partial response.
|
235
|
+
# @param [String] quota_user
|
236
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
237
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
238
|
+
# Overrides userIp if both are provided.
|
239
|
+
# @param [String] user_ip
|
240
|
+
# IP address of the site where the request originates. Use this if you want to
|
241
|
+
# enforce per-user limits.
|
242
|
+
# @param [Google::Apis::RequestOptions] options
|
243
|
+
# Request-specific options
|
244
|
+
#
|
245
|
+
# @yield [result, err] Result & error if block supplied
|
246
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::Operation] parsed result object
|
247
|
+
# @yieldparam err [StandardError] error object if request failed
|
248
|
+
#
|
249
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::Operation]
|
250
|
+
#
|
251
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
252
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
253
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
254
|
+
def patch_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, update_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
255
|
+
path = '{project}/global/deployments/{deployment}'
|
256
|
+
command = make_simple_command(:patch, path, options)
|
257
|
+
command.request_representation = Google::Apis::DeploymentmanagerV2beta2::Deployment::Representation
|
258
|
+
command.request_object = deployment_object
|
259
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Operation::Representation
|
260
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::Operation
|
261
|
+
command.params['project'] = project unless project.nil?
|
262
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
263
|
+
command.query['createPolicy'] = create_policy unless create_policy.nil?
|
264
|
+
command.query['deletePolicy'] = delete_policy unless delete_policy.nil?
|
265
|
+
command.query['updatePolicy'] = update_policy unless update_policy.nil?
|
266
|
+
command.query['fields'] = fields unless fields.nil?
|
267
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
268
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
269
|
+
execute_or_queue_command(command, &block)
|
270
|
+
end
|
271
|
+
|
272
|
+
# Updates a deployment and all of the resources described by the deployment
|
273
|
+
# manifest.
|
274
|
+
# @param [String] project
|
275
|
+
# The project ID for this request.
|
276
|
+
# @param [String] deployment
|
277
|
+
# The name of the deployment for this request.
|
278
|
+
# @param [Google::Apis::DeploymentmanagerV2beta2::Deployment] deployment_object
|
279
|
+
# @param [String] create_policy
|
280
|
+
# Sets the policy to use for creating new resources.
|
281
|
+
# @param [String] delete_policy
|
282
|
+
# Sets the policy to use for deleting resources.
|
283
|
+
# @param [String] update_policy
|
284
|
+
# Sets the policy to use for updating resources.
|
285
|
+
# @param [String] fields
|
286
|
+
# Selector specifying which fields to include in a partial response.
|
287
|
+
# @param [String] quota_user
|
288
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
289
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
290
|
+
# Overrides userIp if both are provided.
|
291
|
+
# @param [String] user_ip
|
292
|
+
# IP address of the site where the request originates. Use this if you want to
|
293
|
+
# enforce per-user limits.
|
294
|
+
# @param [Google::Apis::RequestOptions] options
|
295
|
+
# Request-specific options
|
296
|
+
#
|
297
|
+
# @yield [result, err] Result & error if block supplied
|
298
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::Operation] parsed result object
|
299
|
+
# @yieldparam err [StandardError] error object if request failed
|
300
|
+
#
|
301
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::Operation]
|
302
|
+
#
|
303
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
304
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
305
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
306
|
+
def update_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, update_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
307
|
+
path = '{project}/global/deployments/{deployment}'
|
308
|
+
command = make_simple_command(:put, path, options)
|
309
|
+
command.request_representation = Google::Apis::DeploymentmanagerV2beta2::Deployment::Representation
|
310
|
+
command.request_object = deployment_object
|
311
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Operation::Representation
|
312
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::Operation
|
313
|
+
command.params['project'] = project unless project.nil?
|
314
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
315
|
+
command.query['createPolicy'] = create_policy unless create_policy.nil?
|
316
|
+
command.query['deletePolicy'] = delete_policy unless delete_policy.nil?
|
317
|
+
command.query['updatePolicy'] = update_policy unless update_policy.nil?
|
318
|
+
command.query['fields'] = fields unless fields.nil?
|
319
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
320
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
321
|
+
execute_or_queue_command(command, &block)
|
322
|
+
end
|
323
|
+
|
324
|
+
# Gets information about a specific manifest.
|
325
|
+
# @param [String] project
|
326
|
+
# The project ID for this request.
|
327
|
+
# @param [String] deployment
|
328
|
+
# The name of the deployment for this request.
|
329
|
+
# @param [String] manifest
|
330
|
+
# The name of the manifest for this request.
|
331
|
+
# @param [String] fields
|
332
|
+
# Selector specifying which fields to include in a partial response.
|
333
|
+
# @param [String] quota_user
|
334
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
335
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
336
|
+
# Overrides userIp if both are provided.
|
337
|
+
# @param [String] user_ip
|
338
|
+
# IP address of the site where the request originates. Use this if you want to
|
339
|
+
# enforce per-user limits.
|
340
|
+
# @param [Google::Apis::RequestOptions] options
|
341
|
+
# Request-specific options
|
342
|
+
#
|
343
|
+
# @yield [result, err] Result & error if block supplied
|
344
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::Manifest] parsed result object
|
345
|
+
# @yieldparam err [StandardError] error object if request failed
|
346
|
+
#
|
347
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::Manifest]
|
348
|
+
#
|
349
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
350
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
351
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
352
|
+
def get_manifest(project, deployment, manifest, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
353
|
+
path = '{project}/global/deployments/{deployment}/manifests/{manifest}'
|
354
|
+
command = make_simple_command(:get, path, options)
|
355
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Manifest::Representation
|
356
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::Manifest
|
357
|
+
command.params['project'] = project unless project.nil?
|
358
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
359
|
+
command.params['manifest'] = manifest unless manifest.nil?
|
360
|
+
command.query['fields'] = fields unless fields.nil?
|
361
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
362
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
363
|
+
execute_or_queue_command(command, &block)
|
364
|
+
end
|
365
|
+
|
366
|
+
# Lists all manifests for a given deployment.
|
367
|
+
# @param [String] project
|
368
|
+
# The project ID for this request.
|
369
|
+
# @param [String] deployment
|
370
|
+
# The name of the deployment for this request.
|
371
|
+
# @param [String] filter
|
372
|
+
# Filter expression for filtering listed resources.
|
373
|
+
# @param [Fixnum] max_results
|
374
|
+
# Maximum count of results to be returned.
|
375
|
+
# @param [String] page_token
|
376
|
+
# Tag returned by a previous list request when that list was truncated to
|
377
|
+
# maxResults. Used to continue a previous list request.
|
378
|
+
# @param [String] fields
|
379
|
+
# Selector specifying which fields to include in a partial response.
|
380
|
+
# @param [String] quota_user
|
381
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
382
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
383
|
+
# Overrides userIp if both are provided.
|
384
|
+
# @param [String] user_ip
|
385
|
+
# IP address of the site where the request originates. Use this if you want to
|
386
|
+
# enforce per-user limits.
|
387
|
+
# @param [Google::Apis::RequestOptions] options
|
388
|
+
# Request-specific options
|
389
|
+
#
|
390
|
+
# @yield [result, err] Result & error if block supplied
|
391
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::ListManifestsResponse] parsed result object
|
392
|
+
# @yieldparam err [StandardError] error object if request failed
|
393
|
+
#
|
394
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::ListManifestsResponse]
|
395
|
+
#
|
396
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
397
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
398
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
399
|
+
def list_manifests(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
400
|
+
path = '{project}/global/deployments/{deployment}/manifests'
|
401
|
+
command = make_simple_command(:get, path, options)
|
402
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::ListManifestsResponse::Representation
|
403
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::ListManifestsResponse
|
404
|
+
command.params['project'] = project unless project.nil?
|
405
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
406
|
+
command.query['filter'] = filter unless filter.nil?
|
407
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
408
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
409
|
+
command.query['fields'] = fields unless fields.nil?
|
410
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
411
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
412
|
+
execute_or_queue_command(command, &block)
|
413
|
+
end
|
414
|
+
|
415
|
+
# Gets information about a specific operation.
|
416
|
+
# @param [String] project
|
417
|
+
# The project ID for this request.
|
418
|
+
# @param [String] operation
|
419
|
+
# The name of the operation for this request.
|
420
|
+
# @param [String] fields
|
421
|
+
# Selector specifying which fields to include in a partial response.
|
422
|
+
# @param [String] quota_user
|
423
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
424
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
425
|
+
# Overrides userIp if both are provided.
|
426
|
+
# @param [String] user_ip
|
427
|
+
# IP address of the site where the request originates. Use this if you want to
|
428
|
+
# enforce per-user limits.
|
429
|
+
# @param [Google::Apis::RequestOptions] options
|
430
|
+
# Request-specific options
|
431
|
+
#
|
432
|
+
# @yield [result, err] Result & error if block supplied
|
433
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::Operation] parsed result object
|
434
|
+
# @yieldparam err [StandardError] error object if request failed
|
435
|
+
#
|
436
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::Operation]
|
437
|
+
#
|
438
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
439
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
440
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
441
|
+
def get_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
442
|
+
path = '{project}/global/operations/{operation}'
|
443
|
+
command = make_simple_command(:get, path, options)
|
444
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Operation::Representation
|
445
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::Operation
|
446
|
+
command.params['project'] = project unless project.nil?
|
447
|
+
command.params['operation'] = operation unless operation.nil?
|
448
|
+
command.query['fields'] = fields unless fields.nil?
|
449
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
450
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
451
|
+
execute_or_queue_command(command, &block)
|
452
|
+
end
|
453
|
+
|
454
|
+
# Lists all operations for a project.
|
455
|
+
# @param [String] project
|
456
|
+
# The project ID for this request.
|
457
|
+
# @param [String] filter
|
458
|
+
# Filter expression for filtering listed resources.
|
459
|
+
# @param [Fixnum] max_results
|
460
|
+
# Maximum count of results to be returned.
|
461
|
+
# @param [String] page_token
|
462
|
+
# Tag returned by a previous list request when that list was truncated to
|
463
|
+
# maxResults. Used to continue a previous list request.
|
464
|
+
# @param [String] fields
|
465
|
+
# Selector specifying which fields to include in a partial response.
|
466
|
+
# @param [String] quota_user
|
467
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
468
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
469
|
+
# Overrides userIp if both are provided.
|
470
|
+
# @param [String] user_ip
|
471
|
+
# IP address of the site where the request originates. Use this if you want to
|
472
|
+
# enforce per-user limits.
|
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::DeploymentmanagerV2beta2::ListOperationsResponse] parsed result object
|
478
|
+
# @yieldparam err [StandardError] error object if request failed
|
479
|
+
#
|
480
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::ListOperationsResponse]
|
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_operations(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
486
|
+
path = '{project}/global/operations'
|
487
|
+
command = make_simple_command(:get, path, options)
|
488
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::ListOperationsResponse::Representation
|
489
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::ListOperationsResponse
|
490
|
+
command.params['project'] = project unless project.nil?
|
491
|
+
command.query['filter'] = filter unless filter.nil?
|
492
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
493
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
494
|
+
command.query['fields'] = fields unless fields.nil?
|
495
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
496
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
497
|
+
execute_or_queue_command(command, &block)
|
498
|
+
end
|
499
|
+
|
500
|
+
# Gets information about a single resource.
|
501
|
+
# @param [String] project
|
502
|
+
# The project ID for this request.
|
503
|
+
# @param [String] deployment
|
504
|
+
# The name of the deployment for this request.
|
505
|
+
# @param [String] resource
|
506
|
+
# The name of the resource for this request.
|
507
|
+
# @param [String] fields
|
508
|
+
# Selector specifying which fields to include in a partial response.
|
509
|
+
# @param [String] quota_user
|
510
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
511
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
512
|
+
# Overrides userIp if both are provided.
|
513
|
+
# @param [String] user_ip
|
514
|
+
# IP address of the site where the request originates. Use this if you want to
|
515
|
+
# enforce per-user limits.
|
516
|
+
# @param [Google::Apis::RequestOptions] options
|
517
|
+
# Request-specific options
|
518
|
+
#
|
519
|
+
# @yield [result, err] Result & error if block supplied
|
520
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::Resource] parsed result object
|
521
|
+
# @yieldparam err [StandardError] error object if request failed
|
522
|
+
#
|
523
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::Resource]
|
524
|
+
#
|
525
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
526
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
527
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
528
|
+
def get_resource(project, deployment, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
529
|
+
path = '{project}/global/deployments/{deployment}/resources/{resource}'
|
530
|
+
command = make_simple_command(:get, path, options)
|
531
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::Resource::Representation
|
532
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::Resource
|
533
|
+
command.params['project'] = project unless project.nil?
|
534
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
535
|
+
command.params['resource'] = resource unless resource.nil?
|
536
|
+
command.query['fields'] = fields unless fields.nil?
|
537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
538
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
539
|
+
execute_or_queue_command(command, &block)
|
540
|
+
end
|
541
|
+
|
542
|
+
# Lists all resources in a given deployment.
|
543
|
+
# @param [String] project
|
544
|
+
# The project ID for this request.
|
545
|
+
# @param [String] deployment
|
546
|
+
# The name of the deployment for this request.
|
547
|
+
# @param [String] filter
|
548
|
+
# Filter expression for filtering listed resources.
|
549
|
+
# @param [Fixnum] max_results
|
550
|
+
# Maximum count of results to be returned.
|
551
|
+
# @param [String] page_token
|
552
|
+
# Tag returned by a previous list request when that list was truncated to
|
553
|
+
# maxResults. Used to continue a previous list request.
|
554
|
+
# @param [String] fields
|
555
|
+
# Selector specifying which fields to include in a partial response.
|
556
|
+
# @param [String] quota_user
|
557
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
558
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
559
|
+
# Overrides userIp if both are provided.
|
560
|
+
# @param [String] user_ip
|
561
|
+
# IP address of the site where the request originates. Use this if you want to
|
562
|
+
# enforce per-user limits.
|
563
|
+
# @param [Google::Apis::RequestOptions] options
|
564
|
+
# Request-specific options
|
565
|
+
#
|
566
|
+
# @yield [result, err] Result & error if block supplied
|
567
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::ListResourcesResponse] parsed result object
|
568
|
+
# @yieldparam err [StandardError] error object if request failed
|
569
|
+
#
|
570
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::ListResourcesResponse]
|
571
|
+
#
|
572
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
573
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
574
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
575
|
+
def list_resources(project, deployment, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
576
|
+
path = '{project}/global/deployments/{deployment}/resources'
|
577
|
+
command = make_simple_command(:get, path, options)
|
578
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::ListResourcesResponse::Representation
|
579
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::ListResourcesResponse
|
580
|
+
command.params['project'] = project unless project.nil?
|
581
|
+
command.params['deployment'] = deployment unless deployment.nil?
|
582
|
+
command.query['filter'] = filter unless filter.nil?
|
583
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
584
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
585
|
+
command.query['fields'] = fields unless fields.nil?
|
586
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
587
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
588
|
+
execute_or_queue_command(command, &block)
|
589
|
+
end
|
590
|
+
|
591
|
+
# Lists all resource types for Deployment Manager.
|
592
|
+
# @param [String] project
|
593
|
+
# The project ID for this request.
|
594
|
+
# @param [String] filter
|
595
|
+
# Filter expression for filtering listed resources.
|
596
|
+
# @param [Fixnum] max_results
|
597
|
+
# Maximum count of results to be returned.
|
598
|
+
# @param [String] page_token
|
599
|
+
# Tag returned by a previous list request when that list was truncated to
|
600
|
+
# maxResults. Used to continue a previous list request.
|
601
|
+
# @param [String] fields
|
602
|
+
# Selector specifying which fields to include in a partial response.
|
603
|
+
# @param [String] quota_user
|
604
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
605
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
606
|
+
# Overrides userIp if both are provided.
|
607
|
+
# @param [String] user_ip
|
608
|
+
# IP address of the site where the request originates. Use this if you want to
|
609
|
+
# enforce per-user limits.
|
610
|
+
# @param [Google::Apis::RequestOptions] options
|
611
|
+
# Request-specific options
|
612
|
+
#
|
613
|
+
# @yield [result, err] Result & error if block supplied
|
614
|
+
# @yieldparam result [Google::Apis::DeploymentmanagerV2beta2::ListTypesResponse] parsed result object
|
615
|
+
# @yieldparam err [StandardError] error object if request failed
|
616
|
+
#
|
617
|
+
# @return [Google::Apis::DeploymentmanagerV2beta2::ListTypesResponse]
|
618
|
+
#
|
619
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
620
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
621
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
622
|
+
def list_types(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
623
|
+
path = '{project}/global/types'
|
624
|
+
command = make_simple_command(:get, path, options)
|
625
|
+
command.response_representation = Google::Apis::DeploymentmanagerV2beta2::ListTypesResponse::Representation
|
626
|
+
command.response_class = Google::Apis::DeploymentmanagerV2beta2::ListTypesResponse
|
627
|
+
command.params['project'] = project unless project.nil?
|
628
|
+
command.query['filter'] = filter unless filter.nil?
|
629
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
630
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
631
|
+
command.query['fields'] = fields unless fields.nil?
|
632
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
633
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
634
|
+
execute_or_queue_command(command, &block)
|
635
|
+
end
|
636
|
+
|
637
|
+
protected
|
638
|
+
|
639
|
+
def apply_command_defaults(command)
|
640
|
+
command.query['key'] = key unless key.nil?
|
641
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
642
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
643
|
+
end
|
644
|
+
end
|
645
|
+
end
|
646
|
+
end
|
647
|
+
end
|