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,41 @@
|
|
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/replicapool_v1beta2/service.rb'
|
16
|
+
require 'google/apis/replicapool_v1beta2/classes.rb'
|
17
|
+
require 'google/apis/replicapool_v1beta2/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Google Compute Engine Instance Group Manager API
|
22
|
+
#
|
23
|
+
# The Google Compute Engine Instance Group Manager API provides groups of
|
24
|
+
# homogenous Compute Engine Instances.
|
25
|
+
#
|
26
|
+
# @see https://developers.google.com/compute/docs/instance-groups/manager/v1beta2
|
27
|
+
module ReplicapoolV1beta2
|
28
|
+
VERSION = 'V1beta2'
|
29
|
+
REVISION = '20150311'
|
30
|
+
|
31
|
+
# View and manage your data across Google Cloud Platform services
|
32
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
33
|
+
|
34
|
+
# View and manage your Google Compute Engine resources
|
35
|
+
AUTH_COMPUTE = 'https://www.googleapis.com/auth/compute'
|
36
|
+
|
37
|
+
# View your Google Compute Engine resources
|
38
|
+
AUTH_COMPUTE_READONLY = 'https://www.googleapis.com/auth/compute.readonly'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,621 @@
|
|
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 ReplicapoolV1beta2
|
24
|
+
|
25
|
+
# An Instance Group Manager resource.
|
26
|
+
class InstanceGroupManager
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The autohealing policy for this managed instance group. You can specify only
|
30
|
+
# one value.
|
31
|
+
# Corresponds to the JSON property `autoHealingPolicies`
|
32
|
+
# @return [Array<Google::Apis::ReplicapoolV1beta2::ReplicaPoolAutoHealingPolicy>]
|
33
|
+
attr_accessor :auto_healing_policies
|
34
|
+
|
35
|
+
# The base instance name to use for instances in this group. The value must be a
|
36
|
+
# valid RFC1035 name. Supported characters are lowercase letters, numbers, and
|
37
|
+
# hyphens (-). Instances are named by appending a hyphen and a random four-
|
38
|
+
# character string to the base instance name.
|
39
|
+
# Corresponds to the JSON property `baseInstanceName`
|
40
|
+
# @return [String]
|
41
|
+
attr_accessor :base_instance_name
|
42
|
+
|
43
|
+
# [Output only] The time the instance group manager was created, in RFC3339 text
|
44
|
+
# format.
|
45
|
+
# Corresponds to the JSON property `creationTimestamp`
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :creation_timestamp
|
48
|
+
|
49
|
+
# [Output only] The number of instances that currently exist and are a part of
|
50
|
+
# this group. This includes instances that are starting but are not yet RUNNING,
|
51
|
+
# and instances that are in the process of being deleted or abandoned.
|
52
|
+
# Corresponds to the JSON property `currentSize`
|
53
|
+
# @return [Fixnum]
|
54
|
+
attr_accessor :current_size
|
55
|
+
|
56
|
+
# An optional textual description of the instance group manager.
|
57
|
+
# Corresponds to the JSON property `description`
|
58
|
+
# @return [String]
|
59
|
+
attr_accessor :description
|
60
|
+
|
61
|
+
# [Output only] Fingerprint of the instance group manager. This field is used
|
62
|
+
# for optimistic locking. An up-to-date fingerprint must be provided in order to
|
63
|
+
# modify the Instance Group Manager resource.
|
64
|
+
# Corresponds to the JSON property `fingerprint`
|
65
|
+
# @return [String]
|
66
|
+
attr_accessor :fingerprint
|
67
|
+
|
68
|
+
# [Output only] The full URL of the instance group created by the manager. This
|
69
|
+
# group contains all of the instances being managed, and cannot contain non-
|
70
|
+
# managed instances.
|
71
|
+
# Corresponds to the JSON property `group`
|
72
|
+
# @return [String]
|
73
|
+
attr_accessor :group
|
74
|
+
|
75
|
+
# [Output only] A server-assigned unique identifier for the resource.
|
76
|
+
# Corresponds to the JSON property `id`
|
77
|
+
# @return [String]
|
78
|
+
attr_accessor :id
|
79
|
+
|
80
|
+
# The full URL to an instance template from which all new instances will be
|
81
|
+
# created.
|
82
|
+
# Corresponds to the JSON property `instanceTemplate`
|
83
|
+
# @return [String]
|
84
|
+
attr_accessor :instance_template
|
85
|
+
|
86
|
+
# [Output only] The resource type. Always replicapool#instanceGroupManager.
|
87
|
+
# Corresponds to the JSON property `kind`
|
88
|
+
# @return [String]
|
89
|
+
attr_accessor :kind
|
90
|
+
|
91
|
+
# The name of the instance group manager. Must be 1-63 characters long and
|
92
|
+
# comply with RFC1035. Supported characters include lowercase letters, numbers,
|
93
|
+
# and hyphens.
|
94
|
+
# Corresponds to the JSON property `name`
|
95
|
+
# @return [String]
|
96
|
+
attr_accessor :name
|
97
|
+
|
98
|
+
# [Output only] The fully qualified URL for this resource.
|
99
|
+
# Corresponds to the JSON property `selfLink`
|
100
|
+
# @return [String]
|
101
|
+
attr_accessor :self_link
|
102
|
+
|
103
|
+
# The full URL of all target pools to which new instances in the group are added.
|
104
|
+
# Updating the target pool values does not affect existing instances.
|
105
|
+
# Corresponds to the JSON property `targetPools`
|
106
|
+
# @return [Array<String>]
|
107
|
+
attr_accessor :target_pools
|
108
|
+
|
109
|
+
# [Output only] The number of instances that the manager is attempting to
|
110
|
+
# maintain. Deleting or abandoning instances affects this number, as does
|
111
|
+
# resizing the group.
|
112
|
+
# Corresponds to the JSON property `targetSize`
|
113
|
+
# @return [Fixnum]
|
114
|
+
attr_accessor :target_size
|
115
|
+
|
116
|
+
def initialize(**args)
|
117
|
+
update!(**args)
|
118
|
+
end
|
119
|
+
|
120
|
+
# Update properties of this object
|
121
|
+
def update!(**args)
|
122
|
+
@auto_healing_policies = args[:auto_healing_policies] unless args[:auto_healing_policies].nil?
|
123
|
+
@base_instance_name = args[:base_instance_name] unless args[:base_instance_name].nil?
|
124
|
+
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
|
125
|
+
@current_size = args[:current_size] unless args[:current_size].nil?
|
126
|
+
@description = args[:description] unless args[:description].nil?
|
127
|
+
@fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
|
128
|
+
@group = args[:group] unless args[:group].nil?
|
129
|
+
@id = args[:id] unless args[:id].nil?
|
130
|
+
@instance_template = args[:instance_template] unless args[:instance_template].nil?
|
131
|
+
@kind = args[:kind] unless args[:kind].nil?
|
132
|
+
@name = args[:name] unless args[:name].nil?
|
133
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
134
|
+
@target_pools = args[:target_pools] unless args[:target_pools].nil?
|
135
|
+
@target_size = args[:target_size] unless args[:target_size].nil?
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
#
|
140
|
+
class InstanceGroupManagerList
|
141
|
+
include Google::Apis::Core::Hashable
|
142
|
+
|
143
|
+
# Unique identifier for the resource; defined by the server (output only).
|
144
|
+
# Corresponds to the JSON property `id`
|
145
|
+
# @return [String]
|
146
|
+
attr_accessor :id
|
147
|
+
|
148
|
+
# A list of instance resources.
|
149
|
+
# Corresponds to the JSON property `items`
|
150
|
+
# @return [Array<Google::Apis::ReplicapoolV1beta2::InstanceGroupManager>]
|
151
|
+
attr_accessor :items
|
152
|
+
|
153
|
+
# Type of resource.
|
154
|
+
# Corresponds to the JSON property `kind`
|
155
|
+
# @return [String]
|
156
|
+
attr_accessor :kind
|
157
|
+
|
158
|
+
# A token used to continue a truncated list request (output only).
|
159
|
+
# Corresponds to the JSON property `nextPageToken`
|
160
|
+
# @return [String]
|
161
|
+
attr_accessor :next_page_token
|
162
|
+
|
163
|
+
# Server defined URL for this resource (output only).
|
164
|
+
# Corresponds to the JSON property `selfLink`
|
165
|
+
# @return [String]
|
166
|
+
attr_accessor :self_link
|
167
|
+
|
168
|
+
def initialize(**args)
|
169
|
+
update!(**args)
|
170
|
+
end
|
171
|
+
|
172
|
+
# Update properties of this object
|
173
|
+
def update!(**args)
|
174
|
+
@id = args[:id] unless args[:id].nil?
|
175
|
+
@items = args[:items] unless args[:items].nil?
|
176
|
+
@kind = args[:kind] unless args[:kind].nil?
|
177
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
178
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
#
|
183
|
+
class AbandonInstancesRequest
|
184
|
+
include Google::Apis::Core::Hashable
|
185
|
+
|
186
|
+
# The names of one or more instances to abandon. For example:
|
187
|
+
# ` 'instances': [ 'instance-c3po', 'instance-r2d2' ] `
|
188
|
+
# Corresponds to the JSON property `instances`
|
189
|
+
# @return [Array<String>]
|
190
|
+
attr_accessor :instances
|
191
|
+
|
192
|
+
def initialize(**args)
|
193
|
+
update!(**args)
|
194
|
+
end
|
195
|
+
|
196
|
+
# Update properties of this object
|
197
|
+
def update!(**args)
|
198
|
+
@instances = args[:instances] unless args[:instances].nil?
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
#
|
203
|
+
class DeleteInstancesRequest
|
204
|
+
include Google::Apis::Core::Hashable
|
205
|
+
|
206
|
+
# Names of instances to delete.
|
207
|
+
# Example: 'instance-foo', 'instance-bar'
|
208
|
+
# Corresponds to the JSON property `instances`
|
209
|
+
# @return [Array<String>]
|
210
|
+
attr_accessor :instances
|
211
|
+
|
212
|
+
def initialize(**args)
|
213
|
+
update!(**args)
|
214
|
+
end
|
215
|
+
|
216
|
+
# Update properties of this object
|
217
|
+
def update!(**args)
|
218
|
+
@instances = args[:instances] unless args[:instances].nil?
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
#
|
223
|
+
class RecreateInstancesRequest
|
224
|
+
include Google::Apis::Core::Hashable
|
225
|
+
|
226
|
+
# The names of one or more instances to recreate. For example:
|
227
|
+
# ` 'instances': [ 'instance-c3po', 'instance-r2d2' ] `
|
228
|
+
# Corresponds to the JSON property `instances`
|
229
|
+
# @return [Array<String>]
|
230
|
+
attr_accessor :instances
|
231
|
+
|
232
|
+
def initialize(**args)
|
233
|
+
update!(**args)
|
234
|
+
end
|
235
|
+
|
236
|
+
# Update properties of this object
|
237
|
+
def update!(**args)
|
238
|
+
@instances = args[:instances] unless args[:instances].nil?
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
#
|
243
|
+
class SetInstanceTemplateRequest
|
244
|
+
include Google::Apis::Core::Hashable
|
245
|
+
|
246
|
+
# The full URL to an Instance Template from which all new instances will be
|
247
|
+
# created.
|
248
|
+
# Corresponds to the JSON property `instanceTemplate`
|
249
|
+
# @return [String]
|
250
|
+
attr_accessor :instance_template
|
251
|
+
|
252
|
+
def initialize(**args)
|
253
|
+
update!(**args)
|
254
|
+
end
|
255
|
+
|
256
|
+
# Update properties of this object
|
257
|
+
def update!(**args)
|
258
|
+
@instance_template = args[:instance_template] unless args[:instance_template].nil?
|
259
|
+
end
|
260
|
+
end
|
261
|
+
|
262
|
+
#
|
263
|
+
class SetTargetPoolsRequest
|
264
|
+
include Google::Apis::Core::Hashable
|
265
|
+
|
266
|
+
# The current fingerprint of the Instance Group Manager resource. If this does
|
267
|
+
# not match the server-side fingerprint of the resource, then the request will
|
268
|
+
# be rejected.
|
269
|
+
# Corresponds to the JSON property `fingerprint`
|
270
|
+
# @return [String]
|
271
|
+
attr_accessor :fingerprint
|
272
|
+
|
273
|
+
# A list of fully-qualified URLs to existing Target Pool resources. New
|
274
|
+
# instances in the Instance Group Manager will be added to the specified target
|
275
|
+
# pools; existing instances are not affected.
|
276
|
+
# Corresponds to the JSON property `targetPools`
|
277
|
+
# @return [Array<String>]
|
278
|
+
attr_accessor :target_pools
|
279
|
+
|
280
|
+
def initialize(**args)
|
281
|
+
update!(**args)
|
282
|
+
end
|
283
|
+
|
284
|
+
# Update properties of this object
|
285
|
+
def update!(**args)
|
286
|
+
@fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
|
287
|
+
@target_pools = args[:target_pools] unless args[:target_pools].nil?
|
288
|
+
end
|
289
|
+
end
|
290
|
+
|
291
|
+
# An operation resource, used to manage asynchronous API requests.
|
292
|
+
class Operation
|
293
|
+
include Google::Apis::Core::Hashable
|
294
|
+
|
295
|
+
# [Output only] An optional identifier specified by the client when the mutation
|
296
|
+
# was initiated. Must be unique for all operation resources in the project.
|
297
|
+
# Corresponds to the JSON property `clientOperationId`
|
298
|
+
# @return [String]
|
299
|
+
attr_accessor :client_operation_id
|
300
|
+
|
301
|
+
# [Output Only] The time that this operation was requested, in RFC3339 text
|
302
|
+
# format.
|
303
|
+
# Corresponds to the JSON property `creationTimestamp`
|
304
|
+
# @return [String]
|
305
|
+
attr_accessor :creation_timestamp
|
306
|
+
|
307
|
+
# [Output Only] The time that this operation was completed, in RFC3339 text
|
308
|
+
# format.
|
309
|
+
# Corresponds to the JSON property `endTime`
|
310
|
+
# @return [String]
|
311
|
+
attr_accessor :end_time
|
312
|
+
|
313
|
+
# [Output Only] If errors occurred during processing of this operation, this
|
314
|
+
# field will be populated.
|
315
|
+
# Corresponds to the JSON property `error`
|
316
|
+
# @return [Google::Apis::ReplicapoolV1beta2::Operation::Error]
|
317
|
+
attr_accessor :error
|
318
|
+
|
319
|
+
# [Output only] If operation fails, the HTTP error message returned.
|
320
|
+
# Corresponds to the JSON property `httpErrorMessage`
|
321
|
+
# @return [String]
|
322
|
+
attr_accessor :http_error_message
|
323
|
+
|
324
|
+
# [Output only] If operation fails, the HTTP error status code returned.
|
325
|
+
# Corresponds to the JSON property `httpErrorStatusCode`
|
326
|
+
# @return [Fixnum]
|
327
|
+
attr_accessor :http_error_status_code
|
328
|
+
|
329
|
+
# [Output Only] Unique identifier for the resource, generated by the server.
|
330
|
+
# Corresponds to the JSON property `id`
|
331
|
+
# @return [String]
|
332
|
+
attr_accessor :id
|
333
|
+
|
334
|
+
# [Output Only] The time that this operation was requested, in RFC3339 text
|
335
|
+
# format.
|
336
|
+
# Corresponds to the JSON property `insertTime`
|
337
|
+
# @return [String]
|
338
|
+
attr_accessor :insert_time
|
339
|
+
|
340
|
+
# [Output only] Type of the resource.
|
341
|
+
# Corresponds to the JSON property `kind`
|
342
|
+
# @return [String]
|
343
|
+
attr_accessor :kind
|
344
|
+
|
345
|
+
# [Output Only] Name of the resource.
|
346
|
+
# Corresponds to the JSON property `name`
|
347
|
+
# @return [String]
|
348
|
+
attr_accessor :name
|
349
|
+
|
350
|
+
# [Output only] Type of the operation. Operations include insert, update, and
|
351
|
+
# delete.
|
352
|
+
# Corresponds to the JSON property `operationType`
|
353
|
+
# @return [String]
|
354
|
+
attr_accessor :operation_type
|
355
|
+
|
356
|
+
# [Output only] An optional progress indicator that ranges from 0 to 100. There
|
357
|
+
# is no requirement that this be linear or support any granularity of operations.
|
358
|
+
# This should not be used to guess at when the operation will be complete. This
|
359
|
+
# number should be monotonically increasing as the operation progresses.
|
360
|
+
# Corresponds to the JSON property `progress`
|
361
|
+
# @return [Fixnum]
|
362
|
+
attr_accessor :progress
|
363
|
+
|
364
|
+
# [Output Only] URL of the region where the operation resides. Only available
|
365
|
+
# when performing regional operations.
|
366
|
+
# Corresponds to the JSON property `region`
|
367
|
+
# @return [String]
|
368
|
+
attr_accessor :region
|
369
|
+
|
370
|
+
# [Output Only] Server-defined fully-qualified URL for this resource.
|
371
|
+
# Corresponds to the JSON property `selfLink`
|
372
|
+
# @return [String]
|
373
|
+
attr_accessor :self_link
|
374
|
+
|
375
|
+
# [Output Only] The time that this operation was started by the server, in
|
376
|
+
# RFC3339 text format.
|
377
|
+
# Corresponds to the JSON property `startTime`
|
378
|
+
# @return [String]
|
379
|
+
attr_accessor :start_time
|
380
|
+
|
381
|
+
# [Output Only] Status of the operation.
|
382
|
+
# Corresponds to the JSON property `status`
|
383
|
+
# @return [String]
|
384
|
+
attr_accessor :status
|
385
|
+
|
386
|
+
# [Output Only] An optional textual description of the current status of the
|
387
|
+
# operation.
|
388
|
+
# Corresponds to the JSON property `statusMessage`
|
389
|
+
# @return [String]
|
390
|
+
attr_accessor :status_message
|
391
|
+
|
392
|
+
# [Output Only] Unique target ID which identifies a particular incarnation of
|
393
|
+
# the target.
|
394
|
+
# Corresponds to the JSON property `targetId`
|
395
|
+
# @return [String]
|
396
|
+
attr_accessor :target_id
|
397
|
+
|
398
|
+
# [Output only] URL of the resource the operation is mutating.
|
399
|
+
# Corresponds to the JSON property `targetLink`
|
400
|
+
# @return [String]
|
401
|
+
attr_accessor :target_link
|
402
|
+
|
403
|
+
# [Output Only] User who requested the operation, for example: user@example.com.
|
404
|
+
# Corresponds to the JSON property `user`
|
405
|
+
# @return [String]
|
406
|
+
attr_accessor :user
|
407
|
+
|
408
|
+
# [Output Only] If there are issues with this operation, a warning is returned.
|
409
|
+
# Corresponds to the JSON property `warnings`
|
410
|
+
# @return [Array<Google::Apis::ReplicapoolV1beta2::Operation::Warning>]
|
411
|
+
attr_accessor :warnings
|
412
|
+
|
413
|
+
# [Output Only] URL of the zone where the operation resides. Only available when
|
414
|
+
# performing per-zone operations.
|
415
|
+
# Corresponds to the JSON property `zone`
|
416
|
+
# @return [String]
|
417
|
+
attr_accessor :zone
|
418
|
+
|
419
|
+
def initialize(**args)
|
420
|
+
update!(**args)
|
421
|
+
end
|
422
|
+
|
423
|
+
# Update properties of this object
|
424
|
+
def update!(**args)
|
425
|
+
@client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil?
|
426
|
+
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
|
427
|
+
@end_time = args[:end_time] unless args[:end_time].nil?
|
428
|
+
@error = args[:error] unless args[:error].nil?
|
429
|
+
@http_error_message = args[:http_error_message] unless args[:http_error_message].nil?
|
430
|
+
@http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil?
|
431
|
+
@id = args[:id] unless args[:id].nil?
|
432
|
+
@insert_time = args[:insert_time] unless args[:insert_time].nil?
|
433
|
+
@kind = args[:kind] unless args[:kind].nil?
|
434
|
+
@name = args[:name] unless args[:name].nil?
|
435
|
+
@operation_type = args[:operation_type] unless args[:operation_type].nil?
|
436
|
+
@progress = args[:progress] unless args[:progress].nil?
|
437
|
+
@region = args[:region] unless args[:region].nil?
|
438
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
439
|
+
@start_time = args[:start_time] unless args[:start_time].nil?
|
440
|
+
@status = args[:status] unless args[:status].nil?
|
441
|
+
@status_message = args[:status_message] unless args[:status_message].nil?
|
442
|
+
@target_id = args[:target_id] unless args[:target_id].nil?
|
443
|
+
@target_link = args[:target_link] unless args[:target_link].nil?
|
444
|
+
@user = args[:user] unless args[:user].nil?
|
445
|
+
@warnings = args[:warnings] unless args[:warnings].nil?
|
446
|
+
@zone = args[:zone] unless args[:zone].nil?
|
447
|
+
end
|
448
|
+
|
449
|
+
# [Output Only] If errors occurred during processing of this operation, this
|
450
|
+
# field will be populated.
|
451
|
+
class Error
|
452
|
+
include Google::Apis::Core::Hashable
|
453
|
+
|
454
|
+
# [Output Only] The array of errors encountered while processing this operation.
|
455
|
+
# Corresponds to the JSON property `errors`
|
456
|
+
# @return [Array<Google::Apis::ReplicapoolV1beta2::Operation::Error::Error>]
|
457
|
+
attr_accessor :errors
|
458
|
+
|
459
|
+
def initialize(**args)
|
460
|
+
update!(**args)
|
461
|
+
end
|
462
|
+
|
463
|
+
# Update properties of this object
|
464
|
+
def update!(**args)
|
465
|
+
@errors = args[:errors] unless args[:errors].nil?
|
466
|
+
end
|
467
|
+
|
468
|
+
#
|
469
|
+
class Error
|
470
|
+
include Google::Apis::Core::Hashable
|
471
|
+
|
472
|
+
# [Output Only] The error type identifier for this error.
|
473
|
+
# Corresponds to the JSON property `code`
|
474
|
+
# @return [String]
|
475
|
+
attr_accessor :code
|
476
|
+
|
477
|
+
# [Output Only] Indicates the field in the request which caused the error. This
|
478
|
+
# property is optional.
|
479
|
+
# Corresponds to the JSON property `location`
|
480
|
+
# @return [String]
|
481
|
+
attr_accessor :location
|
482
|
+
|
483
|
+
# [Output Only] An optional, human-readable error message.
|
484
|
+
# Corresponds to the JSON property `message`
|
485
|
+
# @return [String]
|
486
|
+
attr_accessor :message
|
487
|
+
|
488
|
+
def initialize(**args)
|
489
|
+
update!(**args)
|
490
|
+
end
|
491
|
+
|
492
|
+
# Update properties of this object
|
493
|
+
def update!(**args)
|
494
|
+
@code = args[:code] unless args[:code].nil?
|
495
|
+
@location = args[:location] unless args[:location].nil?
|
496
|
+
@message = args[:message] unless args[:message].nil?
|
497
|
+
end
|
498
|
+
end
|
499
|
+
end
|
500
|
+
|
501
|
+
#
|
502
|
+
class Warning
|
503
|
+
include Google::Apis::Core::Hashable
|
504
|
+
|
505
|
+
# [Output only] The warning type identifier for this warning.
|
506
|
+
# Corresponds to the JSON property `code`
|
507
|
+
# @return [String]
|
508
|
+
attr_accessor :code
|
509
|
+
|
510
|
+
# [Output only] Metadata for this warning in key:value format.
|
511
|
+
# Corresponds to the JSON property `data`
|
512
|
+
# @return [Array<Google::Apis::ReplicapoolV1beta2::Operation::Warning::Datum>]
|
513
|
+
attr_accessor :data
|
514
|
+
|
515
|
+
# [Output only] Optional human-readable details for this warning.
|
516
|
+
# Corresponds to the JSON property `message`
|
517
|
+
# @return [String]
|
518
|
+
attr_accessor :message
|
519
|
+
|
520
|
+
def initialize(**args)
|
521
|
+
update!(**args)
|
522
|
+
end
|
523
|
+
|
524
|
+
# Update properties of this object
|
525
|
+
def update!(**args)
|
526
|
+
@code = args[:code] unless args[:code].nil?
|
527
|
+
@data = args[:data] unless args[:data].nil?
|
528
|
+
@message = args[:message] unless args[:message].nil?
|
529
|
+
end
|
530
|
+
|
531
|
+
#
|
532
|
+
class Datum
|
533
|
+
include Google::Apis::Core::Hashable
|
534
|
+
|
535
|
+
# [Output Only] Metadata key for this warning.
|
536
|
+
# Corresponds to the JSON property `key`
|
537
|
+
# @return [String]
|
538
|
+
attr_accessor :key
|
539
|
+
|
540
|
+
# [Output Only] Metadata value for this warning.
|
541
|
+
# Corresponds to the JSON property `value`
|
542
|
+
# @return [String]
|
543
|
+
attr_accessor :value
|
544
|
+
|
545
|
+
def initialize(**args)
|
546
|
+
update!(**args)
|
547
|
+
end
|
548
|
+
|
549
|
+
# Update properties of this object
|
550
|
+
def update!(**args)
|
551
|
+
@key = args[:key] unless args[:key].nil?
|
552
|
+
@value = args[:value] unless args[:value].nil?
|
553
|
+
end
|
554
|
+
end
|
555
|
+
end
|
556
|
+
end
|
557
|
+
|
558
|
+
#
|
559
|
+
class OperationList
|
560
|
+
include Google::Apis::Core::Hashable
|
561
|
+
|
562
|
+
# Unique identifier for the resource; defined by the server (output only).
|
563
|
+
# Corresponds to the JSON property `id`
|
564
|
+
# @return [String]
|
565
|
+
attr_accessor :id
|
566
|
+
|
567
|
+
# The operation resources.
|
568
|
+
# Corresponds to the JSON property `items`
|
569
|
+
# @return [Array<Google::Apis::ReplicapoolV1beta2::Operation>]
|
570
|
+
attr_accessor :items
|
571
|
+
|
572
|
+
# Type of resource.
|
573
|
+
# Corresponds to the JSON property `kind`
|
574
|
+
# @return [String]
|
575
|
+
attr_accessor :kind
|
576
|
+
|
577
|
+
# A token used to continue a truncated list request (output only).
|
578
|
+
# Corresponds to the JSON property `nextPageToken`
|
579
|
+
# @return [String]
|
580
|
+
attr_accessor :next_page_token
|
581
|
+
|
582
|
+
# Server defined URL for this resource (output only).
|
583
|
+
# Corresponds to the JSON property `selfLink`
|
584
|
+
# @return [String]
|
585
|
+
attr_accessor :self_link
|
586
|
+
|
587
|
+
def initialize(**args)
|
588
|
+
update!(**args)
|
589
|
+
end
|
590
|
+
|
591
|
+
# Update properties of this object
|
592
|
+
def update!(**args)
|
593
|
+
@id = args[:id] unless args[:id].nil?
|
594
|
+
@items = args[:items] unless args[:items].nil?
|
595
|
+
@kind = args[:kind] unless args[:kind].nil?
|
596
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
597
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
598
|
+
end
|
599
|
+
end
|
600
|
+
|
601
|
+
#
|
602
|
+
class ReplicaPoolAutoHealingPolicy
|
603
|
+
include Google::Apis::Core::Hashable
|
604
|
+
|
605
|
+
# The URL for the HealthCheck that signals autohealing.
|
606
|
+
# Corresponds to the JSON property `healthCheck`
|
607
|
+
# @return [String]
|
608
|
+
attr_accessor :health_check
|
609
|
+
|
610
|
+
def initialize(**args)
|
611
|
+
update!(**args)
|
612
|
+
end
|
613
|
+
|
614
|
+
# Update properties of this object
|
615
|
+
def update!(**args)
|
616
|
+
@health_check = args[:health_check] unless args[:health_check].nil?
|
617
|
+
end
|
618
|
+
end
|
619
|
+
end
|
620
|
+
end
|
621
|
+
end
|