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,812 @@
|
|
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 PlusV1
|
24
|
+
|
25
|
+
class Acl
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
end
|
28
|
+
|
29
|
+
class Activity
|
30
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
31
|
+
|
32
|
+
class Actor
|
33
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
34
|
+
|
35
|
+
class Image
|
36
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
37
|
+
end
|
38
|
+
|
39
|
+
class Name
|
40
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
class Object
|
45
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
46
|
+
|
47
|
+
class Actor
|
48
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
49
|
+
|
50
|
+
class Image
|
51
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
class Attachment
|
56
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
|
+
|
58
|
+
class Embed
|
59
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
60
|
+
end
|
61
|
+
|
62
|
+
class FullImage
|
63
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
64
|
+
end
|
65
|
+
|
66
|
+
class Image
|
67
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
68
|
+
end
|
69
|
+
|
70
|
+
class Thumbnail
|
71
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
72
|
+
|
73
|
+
class Image
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
class Plusoners
|
80
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
|
+
end
|
82
|
+
|
83
|
+
class Replies
|
84
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
85
|
+
end
|
86
|
+
|
87
|
+
class Resharers
|
88
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
class Provider
|
93
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
class ActivityFeed
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
end
|
100
|
+
|
101
|
+
class Comment
|
102
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
103
|
+
|
104
|
+
class Actor
|
105
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
106
|
+
|
107
|
+
class Image
|
108
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
class InReplyTo
|
113
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
114
|
+
end
|
115
|
+
|
116
|
+
class Object
|
117
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
118
|
+
end
|
119
|
+
|
120
|
+
class Plusoners
|
121
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
class CommentFeed
|
126
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
127
|
+
end
|
128
|
+
|
129
|
+
class ItemScope
|
130
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
131
|
+
end
|
132
|
+
|
133
|
+
class Moment
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
end
|
136
|
+
|
137
|
+
class MomentsFeed
|
138
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
139
|
+
end
|
140
|
+
|
141
|
+
class PeopleFeed
|
142
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
143
|
+
end
|
144
|
+
|
145
|
+
class Person
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
class AgeRange
|
149
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
150
|
+
end
|
151
|
+
|
152
|
+
class Cover
|
153
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
154
|
+
|
155
|
+
class CoverInfo
|
156
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
157
|
+
end
|
158
|
+
|
159
|
+
class CoverPhoto
|
160
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
class Email
|
165
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
166
|
+
end
|
167
|
+
|
168
|
+
class Image
|
169
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
170
|
+
end
|
171
|
+
|
172
|
+
class Name
|
173
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
174
|
+
end
|
175
|
+
|
176
|
+
class Organization
|
177
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
178
|
+
end
|
179
|
+
|
180
|
+
class PlacesLived
|
181
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
182
|
+
end
|
183
|
+
|
184
|
+
class Url
|
185
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
186
|
+
end
|
187
|
+
end
|
188
|
+
|
189
|
+
class Place
|
190
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
191
|
+
|
192
|
+
class Address
|
193
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
194
|
+
end
|
195
|
+
|
196
|
+
class Position
|
197
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
class PlusAclentryResource
|
202
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
203
|
+
end
|
204
|
+
|
205
|
+
class Acl
|
206
|
+
# @private
|
207
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
208
|
+
property :description, as: 'description'
|
209
|
+
collection :items, as: 'items', class: Google::Apis::PlusV1::PlusAclentryResource, decorator: Google::Apis::PlusV1::PlusAclentryResource::Representation
|
210
|
+
|
211
|
+
property :kind, as: 'kind'
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
class Activity
|
216
|
+
# @private
|
217
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
218
|
+
property :access, as: 'access', class: Google::Apis::PlusV1::Acl, decorator: Google::Apis::PlusV1::Acl::Representation
|
219
|
+
|
220
|
+
property :actor, as: 'actor', class: Google::Apis::PlusV1::Activity::Actor, decorator: Google::Apis::PlusV1::Activity::Actor::Representation
|
221
|
+
|
222
|
+
property :address, as: 'address'
|
223
|
+
property :annotation, as: 'annotation'
|
224
|
+
property :crosspost_source, as: 'crosspostSource'
|
225
|
+
property :etag, as: 'etag'
|
226
|
+
property :geocode, as: 'geocode'
|
227
|
+
property :id, as: 'id'
|
228
|
+
property :kind, as: 'kind'
|
229
|
+
property :location, as: 'location', class: Google::Apis::PlusV1::Place, decorator: Google::Apis::PlusV1::Place::Representation
|
230
|
+
|
231
|
+
property :object, as: 'object', class: Google::Apis::PlusV1::Activity::Object, decorator: Google::Apis::PlusV1::Activity::Object::Representation
|
232
|
+
|
233
|
+
property :place_id, as: 'placeId'
|
234
|
+
property :place_name, as: 'placeName'
|
235
|
+
property :provider, as: 'provider', class: Google::Apis::PlusV1::Activity::Provider, decorator: Google::Apis::PlusV1::Activity::Provider::Representation
|
236
|
+
|
237
|
+
property :published, as: 'published', type: DateTime
|
238
|
+
|
239
|
+
property :radius, as: 'radius'
|
240
|
+
property :title, as: 'title'
|
241
|
+
property :updated, as: 'updated', type: DateTime
|
242
|
+
|
243
|
+
property :url, as: 'url'
|
244
|
+
property :verb, as: 'verb'
|
245
|
+
end
|
246
|
+
|
247
|
+
class Actor
|
248
|
+
# @private
|
249
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
250
|
+
property :display_name, as: 'displayName'
|
251
|
+
property :id, as: 'id'
|
252
|
+
property :image, as: 'image', class: Google::Apis::PlusV1::Activity::Actor::Image, decorator: Google::Apis::PlusV1::Activity::Actor::Image::Representation
|
253
|
+
|
254
|
+
property :name, as: 'name', class: Google::Apis::PlusV1::Activity::Actor::Name, decorator: Google::Apis::PlusV1::Activity::Actor::Name::Representation
|
255
|
+
|
256
|
+
property :url, as: 'url'
|
257
|
+
end
|
258
|
+
|
259
|
+
class Image
|
260
|
+
# @private
|
261
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
262
|
+
property :url, as: 'url'
|
263
|
+
end
|
264
|
+
end
|
265
|
+
|
266
|
+
class Name
|
267
|
+
# @private
|
268
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
269
|
+
property :family_name, as: 'familyName'
|
270
|
+
property :given_name, as: 'givenName'
|
271
|
+
end
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
class Object
|
276
|
+
# @private
|
277
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
278
|
+
property :actor, as: 'actor', class: Google::Apis::PlusV1::Activity::Object::Actor, decorator: Google::Apis::PlusV1::Activity::Object::Actor::Representation
|
279
|
+
|
280
|
+
collection :attachments, as: 'attachments', class: Google::Apis::PlusV1::Activity::Object::Attachment, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::Representation
|
281
|
+
|
282
|
+
property :content, as: 'content'
|
283
|
+
property :id, as: 'id'
|
284
|
+
property :object_type, as: 'objectType'
|
285
|
+
property :original_content, as: 'originalContent'
|
286
|
+
property :plusoners, as: 'plusoners', class: Google::Apis::PlusV1::Activity::Object::Plusoners, decorator: Google::Apis::PlusV1::Activity::Object::Plusoners::Representation
|
287
|
+
|
288
|
+
property :replies, as: 'replies', class: Google::Apis::PlusV1::Activity::Object::Replies, decorator: Google::Apis::PlusV1::Activity::Object::Replies::Representation
|
289
|
+
|
290
|
+
property :resharers, as: 'resharers', class: Google::Apis::PlusV1::Activity::Object::Resharers, decorator: Google::Apis::PlusV1::Activity::Object::Resharers::Representation
|
291
|
+
|
292
|
+
property :url, as: 'url'
|
293
|
+
end
|
294
|
+
|
295
|
+
class Actor
|
296
|
+
# @private
|
297
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
298
|
+
property :display_name, as: 'displayName'
|
299
|
+
property :id, as: 'id'
|
300
|
+
property :image, as: 'image', class: Google::Apis::PlusV1::Activity::Object::Actor::Image, decorator: Google::Apis::PlusV1::Activity::Object::Actor::Image::Representation
|
301
|
+
|
302
|
+
property :url, as: 'url'
|
303
|
+
end
|
304
|
+
|
305
|
+
class Image
|
306
|
+
# @private
|
307
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
308
|
+
property :url, as: 'url'
|
309
|
+
end
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
class Attachment
|
314
|
+
# @private
|
315
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
316
|
+
property :content, as: 'content'
|
317
|
+
property :display_name, as: 'displayName'
|
318
|
+
property :embed, as: 'embed', class: Google::Apis::PlusV1::Activity::Object::Attachment::Embed, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::Embed::Representation
|
319
|
+
|
320
|
+
property :full_image, as: 'fullImage', class: Google::Apis::PlusV1::Activity::Object::Attachment::FullImage, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::FullImage::Representation
|
321
|
+
|
322
|
+
property :id, as: 'id'
|
323
|
+
property :image, as: 'image', class: Google::Apis::PlusV1::Activity::Object::Attachment::Image, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::Image::Representation
|
324
|
+
|
325
|
+
property :object_type, as: 'objectType'
|
326
|
+
collection :thumbnails, as: 'thumbnails', class: Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail::Representation
|
327
|
+
|
328
|
+
property :url, as: 'url'
|
329
|
+
end
|
330
|
+
|
331
|
+
class Embed
|
332
|
+
# @private
|
333
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
334
|
+
property :type, as: 'type'
|
335
|
+
property :url, as: 'url'
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
339
|
+
class FullImage
|
340
|
+
# @private
|
341
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
342
|
+
property :height, as: 'height'
|
343
|
+
property :type, as: 'type'
|
344
|
+
property :url, as: 'url'
|
345
|
+
property :width, as: 'width'
|
346
|
+
end
|
347
|
+
end
|
348
|
+
|
349
|
+
class Image
|
350
|
+
# @private
|
351
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
352
|
+
property :height, as: 'height'
|
353
|
+
property :type, as: 'type'
|
354
|
+
property :url, as: 'url'
|
355
|
+
property :width, as: 'width'
|
356
|
+
end
|
357
|
+
end
|
358
|
+
|
359
|
+
class Thumbnail
|
360
|
+
# @private
|
361
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
362
|
+
property :description, as: 'description'
|
363
|
+
property :image, as: 'image', class: Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail::Image, decorator: Google::Apis::PlusV1::Activity::Object::Attachment::Thumbnail::Image::Representation
|
364
|
+
|
365
|
+
property :url, as: 'url'
|
366
|
+
end
|
367
|
+
|
368
|
+
class Image
|
369
|
+
# @private
|
370
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
371
|
+
property :height, as: 'height'
|
372
|
+
property :type, as: 'type'
|
373
|
+
property :url, as: 'url'
|
374
|
+
property :width, as: 'width'
|
375
|
+
end
|
376
|
+
end
|
377
|
+
end
|
378
|
+
end
|
379
|
+
|
380
|
+
class Plusoners
|
381
|
+
# @private
|
382
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
383
|
+
property :self_link, as: 'selfLink'
|
384
|
+
property :total_items, as: 'totalItems'
|
385
|
+
end
|
386
|
+
end
|
387
|
+
|
388
|
+
class Replies
|
389
|
+
# @private
|
390
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
391
|
+
property :self_link, as: 'selfLink'
|
392
|
+
property :total_items, as: 'totalItems'
|
393
|
+
end
|
394
|
+
end
|
395
|
+
|
396
|
+
class Resharers
|
397
|
+
# @private
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
399
|
+
property :self_link, as: 'selfLink'
|
400
|
+
property :total_items, as: 'totalItems'
|
401
|
+
end
|
402
|
+
end
|
403
|
+
end
|
404
|
+
|
405
|
+
class Provider
|
406
|
+
# @private
|
407
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
408
|
+
property :title, as: 'title'
|
409
|
+
end
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
413
|
+
class ActivityFeed
|
414
|
+
# @private
|
415
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
416
|
+
property :etag, as: 'etag'
|
417
|
+
property :id, as: 'id'
|
418
|
+
collection :items, as: 'items', class: Google::Apis::PlusV1::Activity, decorator: Google::Apis::PlusV1::Activity::Representation
|
419
|
+
|
420
|
+
property :kind, as: 'kind'
|
421
|
+
property :next_link, as: 'nextLink'
|
422
|
+
property :next_page_token, as: 'nextPageToken'
|
423
|
+
property :self_link, as: 'selfLink'
|
424
|
+
property :title, as: 'title'
|
425
|
+
property :updated, as: 'updated', type: DateTime
|
426
|
+
|
427
|
+
end
|
428
|
+
end
|
429
|
+
|
430
|
+
class Comment
|
431
|
+
# @private
|
432
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
433
|
+
property :actor, as: 'actor', class: Google::Apis::PlusV1::Comment::Actor, decorator: Google::Apis::PlusV1::Comment::Actor::Representation
|
434
|
+
|
435
|
+
property :etag, as: 'etag'
|
436
|
+
property :id, as: 'id'
|
437
|
+
collection :in_reply_to, as: 'inReplyTo', class: Google::Apis::PlusV1::Comment::InReplyTo, decorator: Google::Apis::PlusV1::Comment::InReplyTo::Representation
|
438
|
+
|
439
|
+
property :kind, as: 'kind'
|
440
|
+
property :object, as: 'object', class: Google::Apis::PlusV1::Comment::Object, decorator: Google::Apis::PlusV1::Comment::Object::Representation
|
441
|
+
|
442
|
+
property :plusoners, as: 'plusoners', class: Google::Apis::PlusV1::Comment::Plusoners, decorator: Google::Apis::PlusV1::Comment::Plusoners::Representation
|
443
|
+
|
444
|
+
property :published, as: 'published', type: DateTime
|
445
|
+
|
446
|
+
property :self_link, as: 'selfLink'
|
447
|
+
property :updated, as: 'updated', type: DateTime
|
448
|
+
|
449
|
+
property :verb, as: 'verb'
|
450
|
+
end
|
451
|
+
|
452
|
+
class Actor
|
453
|
+
# @private
|
454
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
455
|
+
property :display_name, as: 'displayName'
|
456
|
+
property :id, as: 'id'
|
457
|
+
property :image, as: 'image', class: Google::Apis::PlusV1::Comment::Actor::Image, decorator: Google::Apis::PlusV1::Comment::Actor::Image::Representation
|
458
|
+
|
459
|
+
property :url, as: 'url'
|
460
|
+
end
|
461
|
+
|
462
|
+
class Image
|
463
|
+
# @private
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
465
|
+
property :url, as: 'url'
|
466
|
+
end
|
467
|
+
end
|
468
|
+
end
|
469
|
+
|
470
|
+
class InReplyTo
|
471
|
+
# @private
|
472
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
473
|
+
property :id, as: 'id'
|
474
|
+
property :url, as: 'url'
|
475
|
+
end
|
476
|
+
end
|
477
|
+
|
478
|
+
class Object
|
479
|
+
# @private
|
480
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
481
|
+
property :content, as: 'content'
|
482
|
+
property :object_type, as: 'objectType'
|
483
|
+
property :original_content, as: 'originalContent'
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
class Plusoners
|
488
|
+
# @private
|
489
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
490
|
+
property :total_items, as: 'totalItems'
|
491
|
+
end
|
492
|
+
end
|
493
|
+
end
|
494
|
+
|
495
|
+
class CommentFeed
|
496
|
+
# @private
|
497
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
498
|
+
property :etag, as: 'etag'
|
499
|
+
property :id, as: 'id'
|
500
|
+
collection :items, as: 'items', class: Google::Apis::PlusV1::Comment, decorator: Google::Apis::PlusV1::Comment::Representation
|
501
|
+
|
502
|
+
property :kind, as: 'kind'
|
503
|
+
property :next_link, as: 'nextLink'
|
504
|
+
property :next_page_token, as: 'nextPageToken'
|
505
|
+
property :title, as: 'title'
|
506
|
+
property :updated, as: 'updated', type: DateTime
|
507
|
+
|
508
|
+
end
|
509
|
+
end
|
510
|
+
|
511
|
+
class ItemScope
|
512
|
+
# @private
|
513
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
514
|
+
property :about, as: 'about', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
515
|
+
|
516
|
+
collection :additional_name, as: 'additionalName'
|
517
|
+
property :address, as: 'address', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
518
|
+
|
519
|
+
property :address_country, as: 'addressCountry'
|
520
|
+
property :address_locality, as: 'addressLocality'
|
521
|
+
property :address_region, as: 'addressRegion'
|
522
|
+
collection :associated_media, as: 'associated_media', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
523
|
+
|
524
|
+
property :attendee_count, as: 'attendeeCount'
|
525
|
+
collection :attendees, as: 'attendees', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
526
|
+
|
527
|
+
property :audio, as: 'audio', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
528
|
+
|
529
|
+
collection :author, as: 'author', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
530
|
+
|
531
|
+
property :best_rating, as: 'bestRating'
|
532
|
+
property :birth_date, as: 'birthDate'
|
533
|
+
property :by_artist, as: 'byArtist', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
534
|
+
|
535
|
+
property :caption, as: 'caption'
|
536
|
+
property :content_size, as: 'contentSize'
|
537
|
+
property :content_url, as: 'contentUrl'
|
538
|
+
collection :contributor, as: 'contributor', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
539
|
+
|
540
|
+
property :date_created, as: 'dateCreated'
|
541
|
+
property :date_modified, as: 'dateModified'
|
542
|
+
property :date_published, as: 'datePublished'
|
543
|
+
property :description, as: 'description'
|
544
|
+
property :duration, as: 'duration'
|
545
|
+
property :embed_url, as: 'embedUrl'
|
546
|
+
property :end_date, as: 'endDate'
|
547
|
+
property :family_name, as: 'familyName'
|
548
|
+
property :gender, as: 'gender'
|
549
|
+
property :geo, as: 'geo', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
550
|
+
|
551
|
+
property :given_name, as: 'givenName'
|
552
|
+
property :height, as: 'height'
|
553
|
+
property :id, as: 'id'
|
554
|
+
property :image, as: 'image'
|
555
|
+
property :in_album, as: 'inAlbum', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
556
|
+
|
557
|
+
property :kind, as: 'kind'
|
558
|
+
property :latitude, as: 'latitude'
|
559
|
+
property :location, as: 'location', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
560
|
+
|
561
|
+
property :longitude, as: 'longitude'
|
562
|
+
property :name, as: 'name'
|
563
|
+
property :part_of_tv_series, as: 'partOfTVSeries', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
564
|
+
|
565
|
+
collection :performers, as: 'performers', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
566
|
+
|
567
|
+
property :player_type, as: 'playerType'
|
568
|
+
property :post_office_box_number, as: 'postOfficeBoxNumber'
|
569
|
+
property :postal_code, as: 'postalCode'
|
570
|
+
property :rating_value, as: 'ratingValue'
|
571
|
+
property :review_rating, as: 'reviewRating', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
572
|
+
|
573
|
+
property :start_date, as: 'startDate'
|
574
|
+
property :street_address, as: 'streetAddress'
|
575
|
+
property :text, as: 'text'
|
576
|
+
property :thumbnail, as: 'thumbnail', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
577
|
+
|
578
|
+
property :thumbnail_url, as: 'thumbnailUrl'
|
579
|
+
property :ticker_symbol, as: 'tickerSymbol'
|
580
|
+
property :type, as: 'type'
|
581
|
+
property :url, as: 'url'
|
582
|
+
property :width, as: 'width'
|
583
|
+
property :worst_rating, as: 'worstRating'
|
584
|
+
end
|
585
|
+
end
|
586
|
+
|
587
|
+
class Moment
|
588
|
+
# @private
|
589
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
590
|
+
property :id, as: 'id'
|
591
|
+
property :kind, as: 'kind'
|
592
|
+
property :object, as: 'object', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
593
|
+
|
594
|
+
property :result, as: 'result', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
595
|
+
|
596
|
+
property :start_date, as: 'startDate', type: DateTime
|
597
|
+
|
598
|
+
property :target, as: 'target', class: Google::Apis::PlusV1::ItemScope, decorator: Google::Apis::PlusV1::ItemScope::Representation
|
599
|
+
|
600
|
+
property :type, as: 'type'
|
601
|
+
end
|
602
|
+
end
|
603
|
+
|
604
|
+
class MomentsFeed
|
605
|
+
# @private
|
606
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
607
|
+
property :etag, as: 'etag'
|
608
|
+
collection :items, as: 'items', class: Google::Apis::PlusV1::Moment, decorator: Google::Apis::PlusV1::Moment::Representation
|
609
|
+
|
610
|
+
property :kind, as: 'kind'
|
611
|
+
property :next_link, as: 'nextLink'
|
612
|
+
property :next_page_token, as: 'nextPageToken'
|
613
|
+
property :self_link, as: 'selfLink'
|
614
|
+
property :title, as: 'title'
|
615
|
+
property :updated, as: 'updated', type: DateTime
|
616
|
+
|
617
|
+
end
|
618
|
+
end
|
619
|
+
|
620
|
+
class PeopleFeed
|
621
|
+
# @private
|
622
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
623
|
+
property :etag, as: 'etag'
|
624
|
+
collection :items, as: 'items', class: Google::Apis::PlusV1::Person, decorator: Google::Apis::PlusV1::Person::Representation
|
625
|
+
|
626
|
+
property :kind, as: 'kind'
|
627
|
+
property :next_page_token, as: 'nextPageToken'
|
628
|
+
property :self_link, as: 'selfLink'
|
629
|
+
property :title, as: 'title'
|
630
|
+
property :total_items, as: 'totalItems'
|
631
|
+
end
|
632
|
+
end
|
633
|
+
|
634
|
+
class Person
|
635
|
+
# @private
|
636
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
637
|
+
property :about_me, as: 'aboutMe'
|
638
|
+
property :age_range, as: 'ageRange', class: Google::Apis::PlusV1::Person::AgeRange, decorator: Google::Apis::PlusV1::Person::AgeRange::Representation
|
639
|
+
|
640
|
+
property :birthday, as: 'birthday'
|
641
|
+
property :bragging_rights, as: 'braggingRights'
|
642
|
+
property :circled_by_count, as: 'circledByCount'
|
643
|
+
property :cover, as: 'cover', class: Google::Apis::PlusV1::Person::Cover, decorator: Google::Apis::PlusV1::Person::Cover::Representation
|
644
|
+
|
645
|
+
property :current_location, as: 'currentLocation'
|
646
|
+
property :display_name, as: 'displayName'
|
647
|
+
property :domain, as: 'domain'
|
648
|
+
collection :emails, as: 'emails', class: Google::Apis::PlusV1::Person::Email, decorator: Google::Apis::PlusV1::Person::Email::Representation
|
649
|
+
|
650
|
+
property :etag, as: 'etag'
|
651
|
+
property :gender, as: 'gender'
|
652
|
+
property :id, as: 'id'
|
653
|
+
property :image, as: 'image', class: Google::Apis::PlusV1::Person::Image, decorator: Google::Apis::PlusV1::Person::Image::Representation
|
654
|
+
|
655
|
+
property :is_plus_user, as: 'isPlusUser'
|
656
|
+
property :kind, as: 'kind'
|
657
|
+
property :language, as: 'language'
|
658
|
+
property :name, as: 'name', class: Google::Apis::PlusV1::Person::Name, decorator: Google::Apis::PlusV1::Person::Name::Representation
|
659
|
+
|
660
|
+
property :nickname, as: 'nickname'
|
661
|
+
property :object_type, as: 'objectType'
|
662
|
+
property :occupation, as: 'occupation'
|
663
|
+
collection :organizations, as: 'organizations', class: Google::Apis::PlusV1::Person::Organization, decorator: Google::Apis::PlusV1::Person::Organization::Representation
|
664
|
+
|
665
|
+
collection :places_lived, as: 'placesLived', class: Google::Apis::PlusV1::Person::PlacesLived, decorator: Google::Apis::PlusV1::Person::PlacesLived::Representation
|
666
|
+
|
667
|
+
property :plus_one_count, as: 'plusOneCount'
|
668
|
+
property :relationship_status, as: 'relationshipStatus'
|
669
|
+
property :skills, as: 'skills'
|
670
|
+
property :tagline, as: 'tagline'
|
671
|
+
property :url, as: 'url'
|
672
|
+
collection :urls, as: 'urls', class: Google::Apis::PlusV1::Person::Url, decorator: Google::Apis::PlusV1::Person::Url::Representation
|
673
|
+
|
674
|
+
property :verified, as: 'verified'
|
675
|
+
end
|
676
|
+
|
677
|
+
class AgeRange
|
678
|
+
# @private
|
679
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
680
|
+
property :max, as: 'max'
|
681
|
+
property :min, as: 'min'
|
682
|
+
end
|
683
|
+
end
|
684
|
+
|
685
|
+
class Cover
|
686
|
+
# @private
|
687
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
688
|
+
property :cover_info, as: 'coverInfo', class: Google::Apis::PlusV1::Person::Cover::CoverInfo, decorator: Google::Apis::PlusV1::Person::Cover::CoverInfo::Representation
|
689
|
+
|
690
|
+
property :cover_photo, as: 'coverPhoto', class: Google::Apis::PlusV1::Person::Cover::CoverPhoto, decorator: Google::Apis::PlusV1::Person::Cover::CoverPhoto::Representation
|
691
|
+
|
692
|
+
property :layout, as: 'layout'
|
693
|
+
end
|
694
|
+
|
695
|
+
class CoverInfo
|
696
|
+
# @private
|
697
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
698
|
+
property :left_image_offset, as: 'leftImageOffset'
|
699
|
+
property :top_image_offset, as: 'topImageOffset'
|
700
|
+
end
|
701
|
+
end
|
702
|
+
|
703
|
+
class CoverPhoto
|
704
|
+
# @private
|
705
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
706
|
+
property :height, as: 'height'
|
707
|
+
property :url, as: 'url'
|
708
|
+
property :width, as: 'width'
|
709
|
+
end
|
710
|
+
end
|
711
|
+
end
|
712
|
+
|
713
|
+
class Email
|
714
|
+
# @private
|
715
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
716
|
+
property :type, as: 'type'
|
717
|
+
property :value, as: 'value'
|
718
|
+
end
|
719
|
+
end
|
720
|
+
|
721
|
+
class Image
|
722
|
+
# @private
|
723
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
724
|
+
property :is_default, as: 'isDefault'
|
725
|
+
property :url, as: 'url'
|
726
|
+
end
|
727
|
+
end
|
728
|
+
|
729
|
+
class Name
|
730
|
+
# @private
|
731
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
732
|
+
property :family_name, as: 'familyName'
|
733
|
+
property :formatted, as: 'formatted'
|
734
|
+
property :given_name, as: 'givenName'
|
735
|
+
property :honorific_prefix, as: 'honorificPrefix'
|
736
|
+
property :honorific_suffix, as: 'honorificSuffix'
|
737
|
+
property :middle_name, as: 'middleName'
|
738
|
+
end
|
739
|
+
end
|
740
|
+
|
741
|
+
class Organization
|
742
|
+
# @private
|
743
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
744
|
+
property :department, as: 'department'
|
745
|
+
property :description, as: 'description'
|
746
|
+
property :end_date, as: 'endDate'
|
747
|
+
property :location, as: 'location'
|
748
|
+
property :name, as: 'name'
|
749
|
+
property :primary, as: 'primary'
|
750
|
+
property :start_date, as: 'startDate'
|
751
|
+
property :title, as: 'title'
|
752
|
+
property :type, as: 'type'
|
753
|
+
end
|
754
|
+
end
|
755
|
+
|
756
|
+
class PlacesLived
|
757
|
+
# @private
|
758
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
759
|
+
property :primary, as: 'primary'
|
760
|
+
property :value, as: 'value'
|
761
|
+
end
|
762
|
+
end
|
763
|
+
|
764
|
+
class Url
|
765
|
+
# @private
|
766
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
767
|
+
property :label, as: 'label'
|
768
|
+
property :type, as: 'type'
|
769
|
+
property :value, as: 'value'
|
770
|
+
end
|
771
|
+
end
|
772
|
+
end
|
773
|
+
|
774
|
+
class Place
|
775
|
+
# @private
|
776
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
777
|
+
property :address, as: 'address', class: Google::Apis::PlusV1::Place::Address, decorator: Google::Apis::PlusV1::Place::Address::Representation
|
778
|
+
|
779
|
+
property :display_name, as: 'displayName'
|
780
|
+
property :id, as: 'id'
|
781
|
+
property :kind, as: 'kind'
|
782
|
+
property :position, as: 'position', class: Google::Apis::PlusV1::Place::Position, decorator: Google::Apis::PlusV1::Place::Position::Representation
|
783
|
+
|
784
|
+
end
|
785
|
+
|
786
|
+
class Address
|
787
|
+
# @private
|
788
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
789
|
+
property :formatted, as: 'formatted'
|
790
|
+
end
|
791
|
+
end
|
792
|
+
|
793
|
+
class Position
|
794
|
+
# @private
|
795
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
796
|
+
property :latitude, as: 'latitude'
|
797
|
+
property :longitude, as: 'longitude'
|
798
|
+
end
|
799
|
+
end
|
800
|
+
end
|
801
|
+
|
802
|
+
class PlusAclentryResource
|
803
|
+
# @private
|
804
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
805
|
+
property :display_name, as: 'displayName'
|
806
|
+
property :id, as: 'id'
|
807
|
+
property :type, as: 'type'
|
808
|
+
end
|
809
|
+
end
|
810
|
+
end
|
811
|
+
end
|
812
|
+
end
|