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,37 @@
|
|
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/blogger_v3/service.rb'
|
16
|
+
require 'google/apis/blogger_v3/classes.rb'
|
17
|
+
require 'google/apis/blogger_v3/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Blogger API
|
22
|
+
#
|
23
|
+
# API for access to the data within Blogger.
|
24
|
+
#
|
25
|
+
# @see https://developers.google.com/blogger/docs/3.0/getting_started
|
26
|
+
module BloggerV3
|
27
|
+
VERSION = 'V3'
|
28
|
+
REVISION = '20150422'
|
29
|
+
|
30
|
+
# Manage your Blogger account
|
31
|
+
AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'
|
32
|
+
|
33
|
+
# View your Blogger account
|
34
|
+
AUTH_BLOGGER_READONLY = 'https://www.googleapis.com/auth/blogger.readonly'
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,1354 @@
|
|
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 BloggerV3
|
24
|
+
|
25
|
+
#
|
26
|
+
class Blog
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The JSON custom meta-data for the Blog
|
30
|
+
# Corresponds to the JSON property `customMetaData`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :custom_meta_data
|
33
|
+
|
34
|
+
# The description of this blog. This is displayed underneath the title.
|
35
|
+
# Corresponds to the JSON property `description`
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :description
|
38
|
+
|
39
|
+
# The identifier for this resource.
|
40
|
+
# Corresponds to the JSON property `id`
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :id
|
43
|
+
|
44
|
+
# The kind of this entry. Always blogger#blog
|
45
|
+
# Corresponds to the JSON property `kind`
|
46
|
+
# @return [String]
|
47
|
+
attr_accessor :kind
|
48
|
+
|
49
|
+
# The locale this Blog is set to.
|
50
|
+
# Corresponds to the JSON property `locale`
|
51
|
+
# @return [Google::Apis::BloggerV3::Blog::Locale]
|
52
|
+
attr_accessor :locale
|
53
|
+
|
54
|
+
# The name of this blog. This is displayed as the title.
|
55
|
+
# Corresponds to the JSON property `name`
|
56
|
+
# @return [String]
|
57
|
+
attr_accessor :name
|
58
|
+
|
59
|
+
# The container of pages in this blog.
|
60
|
+
# Corresponds to the JSON property `pages`
|
61
|
+
# @return [Google::Apis::BloggerV3::Blog::Pages]
|
62
|
+
attr_accessor :pages
|
63
|
+
|
64
|
+
# The container of posts in this blog.
|
65
|
+
# Corresponds to the JSON property `posts`
|
66
|
+
# @return [Google::Apis::BloggerV3::Blog::Posts]
|
67
|
+
attr_accessor :posts
|
68
|
+
|
69
|
+
# RFC 3339 date-time when this blog was published.
|
70
|
+
# Corresponds to the JSON property `published`
|
71
|
+
# @return [DateTime]
|
72
|
+
attr_accessor :published
|
73
|
+
|
74
|
+
# The API REST URL to fetch this resource from.
|
75
|
+
# Corresponds to the JSON property `selfLink`
|
76
|
+
# @return [String]
|
77
|
+
attr_accessor :self_link
|
78
|
+
|
79
|
+
# The status of the blog.
|
80
|
+
# Corresponds to the JSON property `status`
|
81
|
+
# @return [String]
|
82
|
+
attr_accessor :status
|
83
|
+
|
84
|
+
# RFC 3339 date-time when this blog was last updated.
|
85
|
+
# Corresponds to the JSON property `updated`
|
86
|
+
# @return [DateTime]
|
87
|
+
attr_accessor :updated
|
88
|
+
|
89
|
+
# The URL where this blog is published.
|
90
|
+
# Corresponds to the JSON property `url`
|
91
|
+
# @return [String]
|
92
|
+
attr_accessor :url
|
93
|
+
|
94
|
+
def initialize(**args)
|
95
|
+
update!(**args)
|
96
|
+
end
|
97
|
+
|
98
|
+
# Update properties of this object
|
99
|
+
def update!(**args)
|
100
|
+
@custom_meta_data = args[:custom_meta_data] unless args[:custom_meta_data].nil?
|
101
|
+
@description = args[:description] unless args[:description].nil?
|
102
|
+
@id = args[:id] unless args[:id].nil?
|
103
|
+
@kind = args[:kind] unless args[:kind].nil?
|
104
|
+
@locale = args[:locale] unless args[:locale].nil?
|
105
|
+
@name = args[:name] unless args[:name].nil?
|
106
|
+
@pages = args[:pages] unless args[:pages].nil?
|
107
|
+
@posts = args[:posts] unless args[:posts].nil?
|
108
|
+
@published = args[:published] unless args[:published].nil?
|
109
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
110
|
+
@status = args[:status] unless args[:status].nil?
|
111
|
+
@updated = args[:updated] unless args[:updated].nil?
|
112
|
+
@url = args[:url] unless args[:url].nil?
|
113
|
+
end
|
114
|
+
|
115
|
+
# The locale this Blog is set to.
|
116
|
+
class Locale
|
117
|
+
include Google::Apis::Core::Hashable
|
118
|
+
|
119
|
+
# The country this blog's locale is set to.
|
120
|
+
# Corresponds to the JSON property `country`
|
121
|
+
# @return [String]
|
122
|
+
attr_accessor :country
|
123
|
+
|
124
|
+
# The language this blog is authored in.
|
125
|
+
# Corresponds to the JSON property `language`
|
126
|
+
# @return [String]
|
127
|
+
attr_accessor :language
|
128
|
+
|
129
|
+
# The language variant this blog is authored in.
|
130
|
+
# Corresponds to the JSON property `variant`
|
131
|
+
# @return [String]
|
132
|
+
attr_accessor :variant
|
133
|
+
|
134
|
+
def initialize(**args)
|
135
|
+
update!(**args)
|
136
|
+
end
|
137
|
+
|
138
|
+
# Update properties of this object
|
139
|
+
def update!(**args)
|
140
|
+
@country = args[:country] unless args[:country].nil?
|
141
|
+
@language = args[:language] unless args[:language].nil?
|
142
|
+
@variant = args[:variant] unless args[:variant].nil?
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# The container of pages in this blog.
|
147
|
+
class Pages
|
148
|
+
include Google::Apis::Core::Hashable
|
149
|
+
|
150
|
+
# The URL of the container for pages in this blog.
|
151
|
+
# Corresponds to the JSON property `selfLink`
|
152
|
+
# @return [String]
|
153
|
+
attr_accessor :self_link
|
154
|
+
|
155
|
+
# The count of pages in this blog.
|
156
|
+
# Corresponds to the JSON property `totalItems`
|
157
|
+
# @return [Fixnum]
|
158
|
+
attr_accessor :total_items
|
159
|
+
|
160
|
+
def initialize(**args)
|
161
|
+
update!(**args)
|
162
|
+
end
|
163
|
+
|
164
|
+
# Update properties of this object
|
165
|
+
def update!(**args)
|
166
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
167
|
+
@total_items = args[:total_items] unless args[:total_items].nil?
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# The container of posts in this blog.
|
172
|
+
class Posts
|
173
|
+
include Google::Apis::Core::Hashable
|
174
|
+
|
175
|
+
# The List of Posts for this Blog.
|
176
|
+
# Corresponds to the JSON property `items`
|
177
|
+
# @return [Array<Google::Apis::BloggerV3::Post>]
|
178
|
+
attr_accessor :items
|
179
|
+
|
180
|
+
# The URL of the container for posts in this blog.
|
181
|
+
# Corresponds to the JSON property `selfLink`
|
182
|
+
# @return [String]
|
183
|
+
attr_accessor :self_link
|
184
|
+
|
185
|
+
# The count of posts in this blog.
|
186
|
+
# Corresponds to the JSON property `totalItems`
|
187
|
+
# @return [Fixnum]
|
188
|
+
attr_accessor :total_items
|
189
|
+
|
190
|
+
def initialize(**args)
|
191
|
+
update!(**args)
|
192
|
+
end
|
193
|
+
|
194
|
+
# Update properties of this object
|
195
|
+
def update!(**args)
|
196
|
+
@items = args[:items] unless args[:items].nil?
|
197
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
198
|
+
@total_items = args[:total_items] unless args[:total_items].nil?
|
199
|
+
end
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
#
|
204
|
+
class BlogList
|
205
|
+
include Google::Apis::Core::Hashable
|
206
|
+
|
207
|
+
# Admin level list of blog per-user information
|
208
|
+
# Corresponds to the JSON property `blogUserInfos`
|
209
|
+
# @return [Array<Google::Apis::BloggerV3::BlogUserInfo>]
|
210
|
+
attr_accessor :blog_user_infos
|
211
|
+
|
212
|
+
# The list of Blogs this user has Authorship or Admin rights over.
|
213
|
+
# Corresponds to the JSON property `items`
|
214
|
+
# @return [Array<Google::Apis::BloggerV3::Blog>]
|
215
|
+
attr_accessor :items
|
216
|
+
|
217
|
+
# The kind of this entity. Always blogger#blogList
|
218
|
+
# Corresponds to the JSON property `kind`
|
219
|
+
# @return [String]
|
220
|
+
attr_accessor :kind
|
221
|
+
|
222
|
+
def initialize(**args)
|
223
|
+
update!(**args)
|
224
|
+
end
|
225
|
+
|
226
|
+
# Update properties of this object
|
227
|
+
def update!(**args)
|
228
|
+
@blog_user_infos = args[:blog_user_infos] unless args[:blog_user_infos].nil?
|
229
|
+
@items = args[:items] unless args[:items].nil?
|
230
|
+
@kind = args[:kind] unless args[:kind].nil?
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
#
|
235
|
+
class BlogPerUserInfo
|
236
|
+
include Google::Apis::Core::Hashable
|
237
|
+
|
238
|
+
# ID of the Blog resource
|
239
|
+
# Corresponds to the JSON property `blogId`
|
240
|
+
# @return [String]
|
241
|
+
attr_accessor :blog_id
|
242
|
+
|
243
|
+
# True if the user has Admin level access to the blog.
|
244
|
+
# Corresponds to the JSON property `hasAdminAccess`
|
245
|
+
# @return [Boolean]
|
246
|
+
attr_accessor :has_admin_access
|
247
|
+
alias_method :has_admin_access?, :has_admin_access
|
248
|
+
|
249
|
+
# The kind of this entity. Always blogger#blogPerUserInfo
|
250
|
+
# Corresponds to the JSON property `kind`
|
251
|
+
# @return [String]
|
252
|
+
attr_accessor :kind
|
253
|
+
|
254
|
+
# The Photo Album Key for the user when adding photos to the blog
|
255
|
+
# Corresponds to the JSON property `photosAlbumKey`
|
256
|
+
# @return [String]
|
257
|
+
attr_accessor :photos_album_key
|
258
|
+
|
259
|
+
# Access permissions that the user has for the blog (ADMIN, AUTHOR, or READER).
|
260
|
+
# Corresponds to the JSON property `role`
|
261
|
+
# @return [String]
|
262
|
+
attr_accessor :role
|
263
|
+
|
264
|
+
# ID of the User
|
265
|
+
# Corresponds to the JSON property `userId`
|
266
|
+
# @return [String]
|
267
|
+
attr_accessor :user_id
|
268
|
+
|
269
|
+
def initialize(**args)
|
270
|
+
update!(**args)
|
271
|
+
end
|
272
|
+
|
273
|
+
# Update properties of this object
|
274
|
+
def update!(**args)
|
275
|
+
@blog_id = args[:blog_id] unless args[:blog_id].nil?
|
276
|
+
@has_admin_access = args[:has_admin_access] unless args[:has_admin_access].nil?
|
277
|
+
@kind = args[:kind] unless args[:kind].nil?
|
278
|
+
@photos_album_key = args[:photos_album_key] unless args[:photos_album_key].nil?
|
279
|
+
@role = args[:role] unless args[:role].nil?
|
280
|
+
@user_id = args[:user_id] unless args[:user_id].nil?
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
284
|
+
#
|
285
|
+
class BlogUserInfo
|
286
|
+
include Google::Apis::Core::Hashable
|
287
|
+
|
288
|
+
# The Blog resource.
|
289
|
+
# Corresponds to the JSON property `blog`
|
290
|
+
# @return [Google::Apis::BloggerV3::Blog]
|
291
|
+
attr_accessor :blog
|
292
|
+
|
293
|
+
# Information about a User for the Blog.
|
294
|
+
# Corresponds to the JSON property `blog_user_info`
|
295
|
+
# @return [Google::Apis::BloggerV3::BlogPerUserInfo]
|
296
|
+
attr_accessor :blog_user_info
|
297
|
+
|
298
|
+
# The kind of this entity. Always blogger#blogUserInfo
|
299
|
+
# Corresponds to the JSON property `kind`
|
300
|
+
# @return [String]
|
301
|
+
attr_accessor :kind
|
302
|
+
|
303
|
+
def initialize(**args)
|
304
|
+
update!(**args)
|
305
|
+
end
|
306
|
+
|
307
|
+
# Update properties of this object
|
308
|
+
def update!(**args)
|
309
|
+
@blog = args[:blog] unless args[:blog].nil?
|
310
|
+
@blog_user_info = args[:blog_user_info] unless args[:blog_user_info].nil?
|
311
|
+
@kind = args[:kind] unless args[:kind].nil?
|
312
|
+
end
|
313
|
+
end
|
314
|
+
|
315
|
+
#
|
316
|
+
class Comment
|
317
|
+
include Google::Apis::Core::Hashable
|
318
|
+
|
319
|
+
# The author of this Comment.
|
320
|
+
# Corresponds to the JSON property `author`
|
321
|
+
# @return [Google::Apis::BloggerV3::Comment::Author]
|
322
|
+
attr_accessor :author
|
323
|
+
|
324
|
+
# Data about the blog containing this comment.
|
325
|
+
# Corresponds to the JSON property `blog`
|
326
|
+
# @return [Google::Apis::BloggerV3::Comment::Blog]
|
327
|
+
attr_accessor :blog
|
328
|
+
|
329
|
+
# The actual content of the comment. May include HTML markup.
|
330
|
+
# Corresponds to the JSON property `content`
|
331
|
+
# @return [String]
|
332
|
+
attr_accessor :content
|
333
|
+
|
334
|
+
# The identifier for this resource.
|
335
|
+
# Corresponds to the JSON property `id`
|
336
|
+
# @return [String]
|
337
|
+
attr_accessor :id
|
338
|
+
|
339
|
+
# Data about the comment this is in reply to.
|
340
|
+
# Corresponds to the JSON property `inReplyTo`
|
341
|
+
# @return [Google::Apis::BloggerV3::Comment::InReplyTo]
|
342
|
+
attr_accessor :in_reply_to
|
343
|
+
|
344
|
+
# The kind of this entry. Always blogger#comment
|
345
|
+
# Corresponds to the JSON property `kind`
|
346
|
+
# @return [String]
|
347
|
+
attr_accessor :kind
|
348
|
+
|
349
|
+
# Data about the post containing this comment.
|
350
|
+
# Corresponds to the JSON property `post`
|
351
|
+
# @return [Google::Apis::BloggerV3::Comment::Post]
|
352
|
+
attr_accessor :post
|
353
|
+
|
354
|
+
# RFC 3339 date-time when this comment was published.
|
355
|
+
# Corresponds to the JSON property `published`
|
356
|
+
# @return [DateTime]
|
357
|
+
attr_accessor :published
|
358
|
+
|
359
|
+
# The API REST URL to fetch this resource from.
|
360
|
+
# Corresponds to the JSON property `selfLink`
|
361
|
+
# @return [String]
|
362
|
+
attr_accessor :self_link
|
363
|
+
|
364
|
+
# The status of the comment (only populated for admin users)
|
365
|
+
# Corresponds to the JSON property `status`
|
366
|
+
# @return [String]
|
367
|
+
attr_accessor :status
|
368
|
+
|
369
|
+
# RFC 3339 date-time when this comment was last updated.
|
370
|
+
# Corresponds to the JSON property `updated`
|
371
|
+
# @return [DateTime]
|
372
|
+
attr_accessor :updated
|
373
|
+
|
374
|
+
def initialize(**args)
|
375
|
+
update!(**args)
|
376
|
+
end
|
377
|
+
|
378
|
+
# Update properties of this object
|
379
|
+
def update!(**args)
|
380
|
+
@author = args[:author] unless args[:author].nil?
|
381
|
+
@blog = args[:blog] unless args[:blog].nil?
|
382
|
+
@content = args[:content] unless args[:content].nil?
|
383
|
+
@id = args[:id] unless args[:id].nil?
|
384
|
+
@in_reply_to = args[:in_reply_to] unless args[:in_reply_to].nil?
|
385
|
+
@kind = args[:kind] unless args[:kind].nil?
|
386
|
+
@post = args[:post] unless args[:post].nil?
|
387
|
+
@published = args[:published] unless args[:published].nil?
|
388
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
389
|
+
@status = args[:status] unless args[:status].nil?
|
390
|
+
@updated = args[:updated] unless args[:updated].nil?
|
391
|
+
end
|
392
|
+
|
393
|
+
# The author of this Comment.
|
394
|
+
class Author
|
395
|
+
include Google::Apis::Core::Hashable
|
396
|
+
|
397
|
+
# The display name.
|
398
|
+
# Corresponds to the JSON property `displayName`
|
399
|
+
# @return [String]
|
400
|
+
attr_accessor :display_name
|
401
|
+
|
402
|
+
# The identifier of the Comment creator.
|
403
|
+
# Corresponds to the JSON property `id`
|
404
|
+
# @return [String]
|
405
|
+
attr_accessor :id
|
406
|
+
|
407
|
+
# The comment creator's avatar.
|
408
|
+
# Corresponds to the JSON property `image`
|
409
|
+
# @return [Google::Apis::BloggerV3::Comment::Author::Image]
|
410
|
+
attr_accessor :image
|
411
|
+
|
412
|
+
# The URL of the Comment creator's Profile page.
|
413
|
+
# Corresponds to the JSON property `url`
|
414
|
+
# @return [String]
|
415
|
+
attr_accessor :url
|
416
|
+
|
417
|
+
def initialize(**args)
|
418
|
+
update!(**args)
|
419
|
+
end
|
420
|
+
|
421
|
+
# Update properties of this object
|
422
|
+
def update!(**args)
|
423
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
424
|
+
@id = args[:id] unless args[:id].nil?
|
425
|
+
@image = args[:image] unless args[:image].nil?
|
426
|
+
@url = args[:url] unless args[:url].nil?
|
427
|
+
end
|
428
|
+
|
429
|
+
# The comment creator's avatar.
|
430
|
+
class Image
|
431
|
+
include Google::Apis::Core::Hashable
|
432
|
+
|
433
|
+
# The comment creator's avatar URL.
|
434
|
+
# Corresponds to the JSON property `url`
|
435
|
+
# @return [String]
|
436
|
+
attr_accessor :url
|
437
|
+
|
438
|
+
def initialize(**args)
|
439
|
+
update!(**args)
|
440
|
+
end
|
441
|
+
|
442
|
+
# Update properties of this object
|
443
|
+
def update!(**args)
|
444
|
+
@url = args[:url] unless args[:url].nil?
|
445
|
+
end
|
446
|
+
end
|
447
|
+
end
|
448
|
+
|
449
|
+
# Data about the blog containing this comment.
|
450
|
+
class Blog
|
451
|
+
include Google::Apis::Core::Hashable
|
452
|
+
|
453
|
+
# The identifier of the blog containing this comment.
|
454
|
+
# Corresponds to the JSON property `id`
|
455
|
+
# @return [String]
|
456
|
+
attr_accessor :id
|
457
|
+
|
458
|
+
def initialize(**args)
|
459
|
+
update!(**args)
|
460
|
+
end
|
461
|
+
|
462
|
+
# Update properties of this object
|
463
|
+
def update!(**args)
|
464
|
+
@id = args[:id] unless args[:id].nil?
|
465
|
+
end
|
466
|
+
end
|
467
|
+
|
468
|
+
# Data about the comment this is in reply to.
|
469
|
+
class InReplyTo
|
470
|
+
include Google::Apis::Core::Hashable
|
471
|
+
|
472
|
+
# The identified of the parent of this comment.
|
473
|
+
# Corresponds to the JSON property `id`
|
474
|
+
# @return [String]
|
475
|
+
attr_accessor :id
|
476
|
+
|
477
|
+
def initialize(**args)
|
478
|
+
update!(**args)
|
479
|
+
end
|
480
|
+
|
481
|
+
# Update properties of this object
|
482
|
+
def update!(**args)
|
483
|
+
@id = args[:id] unless args[:id].nil?
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
487
|
+
# Data about the post containing this comment.
|
488
|
+
class Post
|
489
|
+
include Google::Apis::Core::Hashable
|
490
|
+
|
491
|
+
# The identifier of the post containing this comment.
|
492
|
+
# Corresponds to the JSON property `id`
|
493
|
+
# @return [String]
|
494
|
+
attr_accessor :id
|
495
|
+
|
496
|
+
def initialize(**args)
|
497
|
+
update!(**args)
|
498
|
+
end
|
499
|
+
|
500
|
+
# Update properties of this object
|
501
|
+
def update!(**args)
|
502
|
+
@id = args[:id] unless args[:id].nil?
|
503
|
+
end
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
507
|
+
#
|
508
|
+
class CommentList
|
509
|
+
include Google::Apis::Core::Hashable
|
510
|
+
|
511
|
+
# Etag of the response.
|
512
|
+
# Corresponds to the JSON property `etag`
|
513
|
+
# @return [String]
|
514
|
+
attr_accessor :etag
|
515
|
+
|
516
|
+
# The List of Comments for a Post.
|
517
|
+
# Corresponds to the JSON property `items`
|
518
|
+
# @return [Array<Google::Apis::BloggerV3::Comment>]
|
519
|
+
attr_accessor :items
|
520
|
+
|
521
|
+
# The kind of this entry. Always blogger#commentList
|
522
|
+
# Corresponds to the JSON property `kind`
|
523
|
+
# @return [String]
|
524
|
+
attr_accessor :kind
|
525
|
+
|
526
|
+
# Pagination token to fetch the next page, if one exists.
|
527
|
+
# Corresponds to the JSON property `nextPageToken`
|
528
|
+
# @return [String]
|
529
|
+
attr_accessor :next_page_token
|
530
|
+
|
531
|
+
# Pagination token to fetch the previous page, if one exists.
|
532
|
+
# Corresponds to the JSON property `prevPageToken`
|
533
|
+
# @return [String]
|
534
|
+
attr_accessor :prev_page_token
|
535
|
+
|
536
|
+
def initialize(**args)
|
537
|
+
update!(**args)
|
538
|
+
end
|
539
|
+
|
540
|
+
# Update properties of this object
|
541
|
+
def update!(**args)
|
542
|
+
@etag = args[:etag] unless args[:etag].nil?
|
543
|
+
@items = args[:items] unless args[:items].nil?
|
544
|
+
@kind = args[:kind] unless args[:kind].nil?
|
545
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
546
|
+
@prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil?
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
550
|
+
#
|
551
|
+
class Page
|
552
|
+
include Google::Apis::Core::Hashable
|
553
|
+
|
554
|
+
# The author of this Page.
|
555
|
+
# Corresponds to the JSON property `author`
|
556
|
+
# @return [Google::Apis::BloggerV3::Page::Author]
|
557
|
+
attr_accessor :author
|
558
|
+
|
559
|
+
# Data about the blog containing this Page.
|
560
|
+
# Corresponds to the JSON property `blog`
|
561
|
+
# @return [Google::Apis::BloggerV3::Page::Blog]
|
562
|
+
attr_accessor :blog
|
563
|
+
|
564
|
+
# The body content of this Page, in HTML.
|
565
|
+
# Corresponds to the JSON property `content`
|
566
|
+
# @return [String]
|
567
|
+
attr_accessor :content
|
568
|
+
|
569
|
+
# Etag of the resource.
|
570
|
+
# Corresponds to the JSON property `etag`
|
571
|
+
# @return [String]
|
572
|
+
attr_accessor :etag
|
573
|
+
|
574
|
+
# The identifier for this resource.
|
575
|
+
# Corresponds to the JSON property `id`
|
576
|
+
# @return [String]
|
577
|
+
attr_accessor :id
|
578
|
+
|
579
|
+
# The kind of this entity. Always blogger#page
|
580
|
+
# Corresponds to the JSON property `kind`
|
581
|
+
# @return [String]
|
582
|
+
attr_accessor :kind
|
583
|
+
|
584
|
+
# RFC 3339 date-time when this Page was published.
|
585
|
+
# Corresponds to the JSON property `published`
|
586
|
+
# @return [DateTime]
|
587
|
+
attr_accessor :published
|
588
|
+
|
589
|
+
# The API REST URL to fetch this resource from.
|
590
|
+
# Corresponds to the JSON property `selfLink`
|
591
|
+
# @return [String]
|
592
|
+
attr_accessor :self_link
|
593
|
+
|
594
|
+
# The status of the page for admin resources (either LIVE or DRAFT).
|
595
|
+
# Corresponds to the JSON property `status`
|
596
|
+
# @return [String]
|
597
|
+
attr_accessor :status
|
598
|
+
|
599
|
+
# The title of this entity. This is the name displayed in the Admin user
|
600
|
+
# interface.
|
601
|
+
# Corresponds to the JSON property `title`
|
602
|
+
# @return [String]
|
603
|
+
attr_accessor :title
|
604
|
+
|
605
|
+
# RFC 3339 date-time when this Page was last updated.
|
606
|
+
# Corresponds to the JSON property `updated`
|
607
|
+
# @return [DateTime]
|
608
|
+
attr_accessor :updated
|
609
|
+
|
610
|
+
# The URL that this Page is displayed at.
|
611
|
+
# Corresponds to the JSON property `url`
|
612
|
+
# @return [String]
|
613
|
+
attr_accessor :url
|
614
|
+
|
615
|
+
def initialize(**args)
|
616
|
+
update!(**args)
|
617
|
+
end
|
618
|
+
|
619
|
+
# Update properties of this object
|
620
|
+
def update!(**args)
|
621
|
+
@author = args[:author] unless args[:author].nil?
|
622
|
+
@blog = args[:blog] unless args[:blog].nil?
|
623
|
+
@content = args[:content] unless args[:content].nil?
|
624
|
+
@etag = args[:etag] unless args[:etag].nil?
|
625
|
+
@id = args[:id] unless args[:id].nil?
|
626
|
+
@kind = args[:kind] unless args[:kind].nil?
|
627
|
+
@published = args[:published] unless args[:published].nil?
|
628
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
629
|
+
@status = args[:status] unless args[:status].nil?
|
630
|
+
@title = args[:title] unless args[:title].nil?
|
631
|
+
@updated = args[:updated] unless args[:updated].nil?
|
632
|
+
@url = args[:url] unless args[:url].nil?
|
633
|
+
end
|
634
|
+
|
635
|
+
# The author of this Page.
|
636
|
+
class Author
|
637
|
+
include Google::Apis::Core::Hashable
|
638
|
+
|
639
|
+
# The display name.
|
640
|
+
# Corresponds to the JSON property `displayName`
|
641
|
+
# @return [String]
|
642
|
+
attr_accessor :display_name
|
643
|
+
|
644
|
+
# The identifier of the Page creator.
|
645
|
+
# Corresponds to the JSON property `id`
|
646
|
+
# @return [String]
|
647
|
+
attr_accessor :id
|
648
|
+
|
649
|
+
# The page author's avatar.
|
650
|
+
# Corresponds to the JSON property `image`
|
651
|
+
# @return [Google::Apis::BloggerV3::Page::Author::Image]
|
652
|
+
attr_accessor :image
|
653
|
+
|
654
|
+
# The URL of the Page creator's Profile page.
|
655
|
+
# Corresponds to the JSON property `url`
|
656
|
+
# @return [String]
|
657
|
+
attr_accessor :url
|
658
|
+
|
659
|
+
def initialize(**args)
|
660
|
+
update!(**args)
|
661
|
+
end
|
662
|
+
|
663
|
+
# Update properties of this object
|
664
|
+
def update!(**args)
|
665
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
666
|
+
@id = args[:id] unless args[:id].nil?
|
667
|
+
@image = args[:image] unless args[:image].nil?
|
668
|
+
@url = args[:url] unless args[:url].nil?
|
669
|
+
end
|
670
|
+
|
671
|
+
# The page author's avatar.
|
672
|
+
class Image
|
673
|
+
include Google::Apis::Core::Hashable
|
674
|
+
|
675
|
+
# The page author's avatar URL.
|
676
|
+
# Corresponds to the JSON property `url`
|
677
|
+
# @return [String]
|
678
|
+
attr_accessor :url
|
679
|
+
|
680
|
+
def initialize(**args)
|
681
|
+
update!(**args)
|
682
|
+
end
|
683
|
+
|
684
|
+
# Update properties of this object
|
685
|
+
def update!(**args)
|
686
|
+
@url = args[:url] unless args[:url].nil?
|
687
|
+
end
|
688
|
+
end
|
689
|
+
end
|
690
|
+
|
691
|
+
# Data about the blog containing this Page.
|
692
|
+
class Blog
|
693
|
+
include Google::Apis::Core::Hashable
|
694
|
+
|
695
|
+
# The identifier of the blog containing this page.
|
696
|
+
# Corresponds to the JSON property `id`
|
697
|
+
# @return [String]
|
698
|
+
attr_accessor :id
|
699
|
+
|
700
|
+
def initialize(**args)
|
701
|
+
update!(**args)
|
702
|
+
end
|
703
|
+
|
704
|
+
# Update properties of this object
|
705
|
+
def update!(**args)
|
706
|
+
@id = args[:id] unless args[:id].nil?
|
707
|
+
end
|
708
|
+
end
|
709
|
+
end
|
710
|
+
|
711
|
+
#
|
712
|
+
class PageList
|
713
|
+
include Google::Apis::Core::Hashable
|
714
|
+
|
715
|
+
# Etag of the response.
|
716
|
+
# Corresponds to the JSON property `etag`
|
717
|
+
# @return [String]
|
718
|
+
attr_accessor :etag
|
719
|
+
|
720
|
+
# The list of Pages for a Blog.
|
721
|
+
# Corresponds to the JSON property `items`
|
722
|
+
# @return [Array<Google::Apis::BloggerV3::Page>]
|
723
|
+
attr_accessor :items
|
724
|
+
|
725
|
+
# The kind of this entity. Always blogger#pageList
|
726
|
+
# Corresponds to the JSON property `kind`
|
727
|
+
# @return [String]
|
728
|
+
attr_accessor :kind
|
729
|
+
|
730
|
+
# Pagination token to fetch the next page, if one exists.
|
731
|
+
# Corresponds to the JSON property `nextPageToken`
|
732
|
+
# @return [String]
|
733
|
+
attr_accessor :next_page_token
|
734
|
+
|
735
|
+
def initialize(**args)
|
736
|
+
update!(**args)
|
737
|
+
end
|
738
|
+
|
739
|
+
# Update properties of this object
|
740
|
+
def update!(**args)
|
741
|
+
@etag = args[:etag] unless args[:etag].nil?
|
742
|
+
@items = args[:items] unless args[:items].nil?
|
743
|
+
@kind = args[:kind] unless args[:kind].nil?
|
744
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
745
|
+
end
|
746
|
+
end
|
747
|
+
|
748
|
+
#
|
749
|
+
class Pageviews
|
750
|
+
include Google::Apis::Core::Hashable
|
751
|
+
|
752
|
+
# Blog Id
|
753
|
+
# Corresponds to the JSON property `blogId`
|
754
|
+
# @return [String]
|
755
|
+
attr_accessor :blog_id
|
756
|
+
|
757
|
+
# The container of posts in this blog.
|
758
|
+
# Corresponds to the JSON property `counts`
|
759
|
+
# @return [Array<Google::Apis::BloggerV3::Pageviews::Count>]
|
760
|
+
attr_accessor :counts
|
761
|
+
|
762
|
+
# The kind of this entry. Always blogger#page_views
|
763
|
+
# Corresponds to the JSON property `kind`
|
764
|
+
# @return [String]
|
765
|
+
attr_accessor :kind
|
766
|
+
|
767
|
+
def initialize(**args)
|
768
|
+
update!(**args)
|
769
|
+
end
|
770
|
+
|
771
|
+
# Update properties of this object
|
772
|
+
def update!(**args)
|
773
|
+
@blog_id = args[:blog_id] unless args[:blog_id].nil?
|
774
|
+
@counts = args[:counts] unless args[:counts].nil?
|
775
|
+
@kind = args[:kind] unless args[:kind].nil?
|
776
|
+
end
|
777
|
+
|
778
|
+
#
|
779
|
+
class Count
|
780
|
+
include Google::Apis::Core::Hashable
|
781
|
+
|
782
|
+
# Count of page views for the given time range
|
783
|
+
# Corresponds to the JSON property `count`
|
784
|
+
# @return [String]
|
785
|
+
attr_accessor :count
|
786
|
+
|
787
|
+
# Time range the given count applies to
|
788
|
+
# Corresponds to the JSON property `timeRange`
|
789
|
+
# @return [String]
|
790
|
+
attr_accessor :time_range
|
791
|
+
|
792
|
+
def initialize(**args)
|
793
|
+
update!(**args)
|
794
|
+
end
|
795
|
+
|
796
|
+
# Update properties of this object
|
797
|
+
def update!(**args)
|
798
|
+
@count = args[:count] unless args[:count].nil?
|
799
|
+
@time_range = args[:time_range] unless args[:time_range].nil?
|
800
|
+
end
|
801
|
+
end
|
802
|
+
end
|
803
|
+
|
804
|
+
#
|
805
|
+
class Post
|
806
|
+
include Google::Apis::Core::Hashable
|
807
|
+
|
808
|
+
# The author of this Post.
|
809
|
+
# Corresponds to the JSON property `author`
|
810
|
+
# @return [Google::Apis::BloggerV3::Post::Author]
|
811
|
+
attr_accessor :author
|
812
|
+
|
813
|
+
# Data about the blog containing this Post.
|
814
|
+
# Corresponds to the JSON property `blog`
|
815
|
+
# @return [Google::Apis::BloggerV3::Post::Blog]
|
816
|
+
attr_accessor :blog
|
817
|
+
|
818
|
+
# The content of the Post. May contain HTML markup.
|
819
|
+
# Corresponds to the JSON property `content`
|
820
|
+
# @return [String]
|
821
|
+
attr_accessor :content
|
822
|
+
|
823
|
+
# The JSON meta-data for the Post.
|
824
|
+
# Corresponds to the JSON property `customMetaData`
|
825
|
+
# @return [String]
|
826
|
+
attr_accessor :custom_meta_data
|
827
|
+
|
828
|
+
# Etag of the resource.
|
829
|
+
# Corresponds to the JSON property `etag`
|
830
|
+
# @return [String]
|
831
|
+
attr_accessor :etag
|
832
|
+
|
833
|
+
# The identifier of this Post.
|
834
|
+
# Corresponds to the JSON property `id`
|
835
|
+
# @return [String]
|
836
|
+
attr_accessor :id
|
837
|
+
|
838
|
+
# Display image for the Post.
|
839
|
+
# Corresponds to the JSON property `images`
|
840
|
+
# @return [Array<Google::Apis::BloggerV3::Post::Image>]
|
841
|
+
attr_accessor :images
|
842
|
+
|
843
|
+
# The kind of this entity. Always blogger#post
|
844
|
+
# Corresponds to the JSON property `kind`
|
845
|
+
# @return [String]
|
846
|
+
attr_accessor :kind
|
847
|
+
|
848
|
+
# The list of labels this Post was tagged with.
|
849
|
+
# Corresponds to the JSON property `labels`
|
850
|
+
# @return [Array<String>]
|
851
|
+
attr_accessor :labels
|
852
|
+
|
853
|
+
# The location for geotagged posts.
|
854
|
+
# Corresponds to the JSON property `location`
|
855
|
+
# @return [Google::Apis::BloggerV3::Post::Location]
|
856
|
+
attr_accessor :location
|
857
|
+
|
858
|
+
# RFC 3339 date-time when this Post was published.
|
859
|
+
# Corresponds to the JSON property `published`
|
860
|
+
# @return [DateTime]
|
861
|
+
attr_accessor :published
|
862
|
+
|
863
|
+
# Comment control and display setting for readers of this post.
|
864
|
+
# Corresponds to the JSON property `readerComments`
|
865
|
+
# @return [String]
|
866
|
+
attr_accessor :reader_comments
|
867
|
+
|
868
|
+
# The container of comments on this Post.
|
869
|
+
# Corresponds to the JSON property `replies`
|
870
|
+
# @return [Google::Apis::BloggerV3::Post::Replies]
|
871
|
+
attr_accessor :replies
|
872
|
+
|
873
|
+
# The API REST URL to fetch this resource from.
|
874
|
+
# Corresponds to the JSON property `selfLink`
|
875
|
+
# @return [String]
|
876
|
+
attr_accessor :self_link
|
877
|
+
|
878
|
+
# Status of the post. Only set for admin-level requests
|
879
|
+
# Corresponds to the JSON property `status`
|
880
|
+
# @return [String]
|
881
|
+
attr_accessor :status
|
882
|
+
|
883
|
+
# The title of the Post.
|
884
|
+
# Corresponds to the JSON property `title`
|
885
|
+
# @return [String]
|
886
|
+
attr_accessor :title
|
887
|
+
|
888
|
+
# The title link URL, similar to atom's related link.
|
889
|
+
# Corresponds to the JSON property `titleLink`
|
890
|
+
# @return [String]
|
891
|
+
attr_accessor :title_link
|
892
|
+
|
893
|
+
# RFC 3339 date-time when this Post was last updated.
|
894
|
+
# Corresponds to the JSON property `updated`
|
895
|
+
# @return [DateTime]
|
896
|
+
attr_accessor :updated
|
897
|
+
|
898
|
+
# The URL where this Post is displayed.
|
899
|
+
# Corresponds to the JSON property `url`
|
900
|
+
# @return [String]
|
901
|
+
attr_accessor :url
|
902
|
+
|
903
|
+
def initialize(**args)
|
904
|
+
update!(**args)
|
905
|
+
end
|
906
|
+
|
907
|
+
# Update properties of this object
|
908
|
+
def update!(**args)
|
909
|
+
@author = args[:author] unless args[:author].nil?
|
910
|
+
@blog = args[:blog] unless args[:blog].nil?
|
911
|
+
@content = args[:content] unless args[:content].nil?
|
912
|
+
@custom_meta_data = args[:custom_meta_data] unless args[:custom_meta_data].nil?
|
913
|
+
@etag = args[:etag] unless args[:etag].nil?
|
914
|
+
@id = args[:id] unless args[:id].nil?
|
915
|
+
@images = args[:images] unless args[:images].nil?
|
916
|
+
@kind = args[:kind] unless args[:kind].nil?
|
917
|
+
@labels = args[:labels] unless args[:labels].nil?
|
918
|
+
@location = args[:location] unless args[:location].nil?
|
919
|
+
@published = args[:published] unless args[:published].nil?
|
920
|
+
@reader_comments = args[:reader_comments] unless args[:reader_comments].nil?
|
921
|
+
@replies = args[:replies] unless args[:replies].nil?
|
922
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
923
|
+
@status = args[:status] unless args[:status].nil?
|
924
|
+
@title = args[:title] unless args[:title].nil?
|
925
|
+
@title_link = args[:title_link] unless args[:title_link].nil?
|
926
|
+
@updated = args[:updated] unless args[:updated].nil?
|
927
|
+
@url = args[:url] unless args[:url].nil?
|
928
|
+
end
|
929
|
+
|
930
|
+
# The author of this Post.
|
931
|
+
class Author
|
932
|
+
include Google::Apis::Core::Hashable
|
933
|
+
|
934
|
+
# The display name.
|
935
|
+
# Corresponds to the JSON property `displayName`
|
936
|
+
# @return [String]
|
937
|
+
attr_accessor :display_name
|
938
|
+
|
939
|
+
# The identifier of the Post creator.
|
940
|
+
# Corresponds to the JSON property `id`
|
941
|
+
# @return [String]
|
942
|
+
attr_accessor :id
|
943
|
+
|
944
|
+
# The Post author's avatar.
|
945
|
+
# Corresponds to the JSON property `image`
|
946
|
+
# @return [Google::Apis::BloggerV3::Post::Author::Image]
|
947
|
+
attr_accessor :image
|
948
|
+
|
949
|
+
# The URL of the Post creator's Profile page.
|
950
|
+
# Corresponds to the JSON property `url`
|
951
|
+
# @return [String]
|
952
|
+
attr_accessor :url
|
953
|
+
|
954
|
+
def initialize(**args)
|
955
|
+
update!(**args)
|
956
|
+
end
|
957
|
+
|
958
|
+
# Update properties of this object
|
959
|
+
def update!(**args)
|
960
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
961
|
+
@id = args[:id] unless args[:id].nil?
|
962
|
+
@image = args[:image] unless args[:image].nil?
|
963
|
+
@url = args[:url] unless args[:url].nil?
|
964
|
+
end
|
965
|
+
|
966
|
+
# The Post author's avatar.
|
967
|
+
class Image
|
968
|
+
include Google::Apis::Core::Hashable
|
969
|
+
|
970
|
+
# The Post author's avatar URL.
|
971
|
+
# Corresponds to the JSON property `url`
|
972
|
+
# @return [String]
|
973
|
+
attr_accessor :url
|
974
|
+
|
975
|
+
def initialize(**args)
|
976
|
+
update!(**args)
|
977
|
+
end
|
978
|
+
|
979
|
+
# Update properties of this object
|
980
|
+
def update!(**args)
|
981
|
+
@url = args[:url] unless args[:url].nil?
|
982
|
+
end
|
983
|
+
end
|
984
|
+
end
|
985
|
+
|
986
|
+
# Data about the blog containing this Post.
|
987
|
+
class Blog
|
988
|
+
include Google::Apis::Core::Hashable
|
989
|
+
|
990
|
+
# The identifier of the Blog that contains this Post.
|
991
|
+
# Corresponds to the JSON property `id`
|
992
|
+
# @return [String]
|
993
|
+
attr_accessor :id
|
994
|
+
|
995
|
+
def initialize(**args)
|
996
|
+
update!(**args)
|
997
|
+
end
|
998
|
+
|
999
|
+
# Update properties of this object
|
1000
|
+
def update!(**args)
|
1001
|
+
@id = args[:id] unless args[:id].nil?
|
1002
|
+
end
|
1003
|
+
end
|
1004
|
+
|
1005
|
+
#
|
1006
|
+
class Image
|
1007
|
+
include Google::Apis::Core::Hashable
|
1008
|
+
|
1009
|
+
#
|
1010
|
+
# Corresponds to the JSON property `url`
|
1011
|
+
# @return [String]
|
1012
|
+
attr_accessor :url
|
1013
|
+
|
1014
|
+
def initialize(**args)
|
1015
|
+
update!(**args)
|
1016
|
+
end
|
1017
|
+
|
1018
|
+
# Update properties of this object
|
1019
|
+
def update!(**args)
|
1020
|
+
@url = args[:url] unless args[:url].nil?
|
1021
|
+
end
|
1022
|
+
end
|
1023
|
+
|
1024
|
+
# The location for geotagged posts.
|
1025
|
+
class Location
|
1026
|
+
include Google::Apis::Core::Hashable
|
1027
|
+
|
1028
|
+
# Location's latitude.
|
1029
|
+
# Corresponds to the JSON property `lat`
|
1030
|
+
# @return [Float]
|
1031
|
+
attr_accessor :lat
|
1032
|
+
|
1033
|
+
# Location's longitude.
|
1034
|
+
# Corresponds to the JSON property `lng`
|
1035
|
+
# @return [Float]
|
1036
|
+
attr_accessor :lng
|
1037
|
+
|
1038
|
+
# Location name.
|
1039
|
+
# Corresponds to the JSON property `name`
|
1040
|
+
# @return [String]
|
1041
|
+
attr_accessor :name
|
1042
|
+
|
1043
|
+
# Location's viewport span. Can be used when rendering a map preview.
|
1044
|
+
# Corresponds to the JSON property `span`
|
1045
|
+
# @return [String]
|
1046
|
+
attr_accessor :span
|
1047
|
+
|
1048
|
+
def initialize(**args)
|
1049
|
+
update!(**args)
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
# Update properties of this object
|
1053
|
+
def update!(**args)
|
1054
|
+
@lat = args[:lat] unless args[:lat].nil?
|
1055
|
+
@lng = args[:lng] unless args[:lng].nil?
|
1056
|
+
@name = args[:name] unless args[:name].nil?
|
1057
|
+
@span = args[:span] unless args[:span].nil?
|
1058
|
+
end
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
# The container of comments on this Post.
|
1062
|
+
class Replies
|
1063
|
+
include Google::Apis::Core::Hashable
|
1064
|
+
|
1065
|
+
# The List of Comments for this Post.
|
1066
|
+
# Corresponds to the JSON property `items`
|
1067
|
+
# @return [Array<Google::Apis::BloggerV3::Comment>]
|
1068
|
+
attr_accessor :items
|
1069
|
+
|
1070
|
+
# The URL of the comments on this post.
|
1071
|
+
# Corresponds to the JSON property `selfLink`
|
1072
|
+
# @return [String]
|
1073
|
+
attr_accessor :self_link
|
1074
|
+
|
1075
|
+
# The count of comments on this post.
|
1076
|
+
# Corresponds to the JSON property `totalItems`
|
1077
|
+
# @return [String]
|
1078
|
+
attr_accessor :total_items
|
1079
|
+
|
1080
|
+
def initialize(**args)
|
1081
|
+
update!(**args)
|
1082
|
+
end
|
1083
|
+
|
1084
|
+
# Update properties of this object
|
1085
|
+
def update!(**args)
|
1086
|
+
@items = args[:items] unless args[:items].nil?
|
1087
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
1088
|
+
@total_items = args[:total_items] unless args[:total_items].nil?
|
1089
|
+
end
|
1090
|
+
end
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
#
|
1094
|
+
class PostList
|
1095
|
+
include Google::Apis::Core::Hashable
|
1096
|
+
|
1097
|
+
# Etag of the response.
|
1098
|
+
# Corresponds to the JSON property `etag`
|
1099
|
+
# @return [String]
|
1100
|
+
attr_accessor :etag
|
1101
|
+
|
1102
|
+
# The list of Posts for this Blog.
|
1103
|
+
# Corresponds to the JSON property `items`
|
1104
|
+
# @return [Array<Google::Apis::BloggerV3::Post>]
|
1105
|
+
attr_accessor :items
|
1106
|
+
|
1107
|
+
# The kind of this entity. Always blogger#postList
|
1108
|
+
# Corresponds to the JSON property `kind`
|
1109
|
+
# @return [String]
|
1110
|
+
attr_accessor :kind
|
1111
|
+
|
1112
|
+
# Pagination token to fetch the next page, if one exists.
|
1113
|
+
# Corresponds to the JSON property `nextPageToken`
|
1114
|
+
# @return [String]
|
1115
|
+
attr_accessor :next_page_token
|
1116
|
+
|
1117
|
+
def initialize(**args)
|
1118
|
+
update!(**args)
|
1119
|
+
end
|
1120
|
+
|
1121
|
+
# Update properties of this object
|
1122
|
+
def update!(**args)
|
1123
|
+
@etag = args[:etag] unless args[:etag].nil?
|
1124
|
+
@items = args[:items] unless args[:items].nil?
|
1125
|
+
@kind = args[:kind] unless args[:kind].nil?
|
1126
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
1127
|
+
end
|
1128
|
+
end
|
1129
|
+
|
1130
|
+
#
|
1131
|
+
class PostPerUserInfo
|
1132
|
+
include Google::Apis::Core::Hashable
|
1133
|
+
|
1134
|
+
# ID of the Blog that the post resource belongs to.
|
1135
|
+
# Corresponds to the JSON property `blogId`
|
1136
|
+
# @return [String]
|
1137
|
+
attr_accessor :blog_id
|
1138
|
+
|
1139
|
+
# True if the user has Author level access to the post.
|
1140
|
+
# Corresponds to the JSON property `hasEditAccess`
|
1141
|
+
# @return [Boolean]
|
1142
|
+
attr_accessor :has_edit_access
|
1143
|
+
alias_method :has_edit_access?, :has_edit_access
|
1144
|
+
|
1145
|
+
# The kind of this entity. Always blogger#postPerUserInfo
|
1146
|
+
# Corresponds to the JSON property `kind`
|
1147
|
+
# @return [String]
|
1148
|
+
attr_accessor :kind
|
1149
|
+
|
1150
|
+
# ID of the Post resource.
|
1151
|
+
# Corresponds to the JSON property `postId`
|
1152
|
+
# @return [String]
|
1153
|
+
attr_accessor :post_id
|
1154
|
+
|
1155
|
+
# ID of the User.
|
1156
|
+
# Corresponds to the JSON property `userId`
|
1157
|
+
# @return [String]
|
1158
|
+
attr_accessor :user_id
|
1159
|
+
|
1160
|
+
def initialize(**args)
|
1161
|
+
update!(**args)
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
# Update properties of this object
|
1165
|
+
def update!(**args)
|
1166
|
+
@blog_id = args[:blog_id] unless args[:blog_id].nil?
|
1167
|
+
@has_edit_access = args[:has_edit_access] unless args[:has_edit_access].nil?
|
1168
|
+
@kind = args[:kind] unless args[:kind].nil?
|
1169
|
+
@post_id = args[:post_id] unless args[:post_id].nil?
|
1170
|
+
@user_id = args[:user_id] unless args[:user_id].nil?
|
1171
|
+
end
|
1172
|
+
end
|
1173
|
+
|
1174
|
+
#
|
1175
|
+
class PostUserInfo
|
1176
|
+
include Google::Apis::Core::Hashable
|
1177
|
+
|
1178
|
+
# The kind of this entity. Always blogger#postUserInfo
|
1179
|
+
# Corresponds to the JSON property `kind`
|
1180
|
+
# @return [String]
|
1181
|
+
attr_accessor :kind
|
1182
|
+
|
1183
|
+
# The Post resource.
|
1184
|
+
# Corresponds to the JSON property `post`
|
1185
|
+
# @return [Google::Apis::BloggerV3::Post]
|
1186
|
+
attr_accessor :post
|
1187
|
+
|
1188
|
+
# Information about a User for the Post.
|
1189
|
+
# Corresponds to the JSON property `post_user_info`
|
1190
|
+
# @return [Google::Apis::BloggerV3::PostPerUserInfo]
|
1191
|
+
attr_accessor :post_user_info
|
1192
|
+
|
1193
|
+
def initialize(**args)
|
1194
|
+
update!(**args)
|
1195
|
+
end
|
1196
|
+
|
1197
|
+
# Update properties of this object
|
1198
|
+
def update!(**args)
|
1199
|
+
@kind = args[:kind] unless args[:kind].nil?
|
1200
|
+
@post = args[:post] unless args[:post].nil?
|
1201
|
+
@post_user_info = args[:post_user_info] unless args[:post_user_info].nil?
|
1202
|
+
end
|
1203
|
+
end
|
1204
|
+
|
1205
|
+
#
|
1206
|
+
class PostUserInfosList
|
1207
|
+
include Google::Apis::Core::Hashable
|
1208
|
+
|
1209
|
+
# The list of Posts with User information for the post, for this Blog.
|
1210
|
+
# Corresponds to the JSON property `items`
|
1211
|
+
# @return [Array<Google::Apis::BloggerV3::PostUserInfo>]
|
1212
|
+
attr_accessor :items
|
1213
|
+
|
1214
|
+
# The kind of this entity. Always blogger#postList
|
1215
|
+
# Corresponds to the JSON property `kind`
|
1216
|
+
# @return [String]
|
1217
|
+
attr_accessor :kind
|
1218
|
+
|
1219
|
+
# Pagination token to fetch the next page, if one exists.
|
1220
|
+
# Corresponds to the JSON property `nextPageToken`
|
1221
|
+
# @return [String]
|
1222
|
+
attr_accessor :next_page_token
|
1223
|
+
|
1224
|
+
def initialize(**args)
|
1225
|
+
update!(**args)
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
# Update properties of this object
|
1229
|
+
def update!(**args)
|
1230
|
+
@items = args[:items] unless args[:items].nil?
|
1231
|
+
@kind = args[:kind] unless args[:kind].nil?
|
1232
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
1233
|
+
end
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
#
|
1237
|
+
class User
|
1238
|
+
include Google::Apis::Core::Hashable
|
1239
|
+
|
1240
|
+
# Profile summary information.
|
1241
|
+
# Corresponds to the JSON property `about`
|
1242
|
+
# @return [String]
|
1243
|
+
attr_accessor :about
|
1244
|
+
|
1245
|
+
# The container of blogs for this user.
|
1246
|
+
# Corresponds to the JSON property `blogs`
|
1247
|
+
# @return [Google::Apis::BloggerV3::User::Blogs]
|
1248
|
+
attr_accessor :blogs
|
1249
|
+
|
1250
|
+
# The timestamp of when this profile was created, in seconds since epoch.
|
1251
|
+
# Corresponds to the JSON property `created`
|
1252
|
+
# @return [DateTime]
|
1253
|
+
attr_accessor :created
|
1254
|
+
|
1255
|
+
# The display name.
|
1256
|
+
# Corresponds to the JSON property `displayName`
|
1257
|
+
# @return [String]
|
1258
|
+
attr_accessor :display_name
|
1259
|
+
|
1260
|
+
# The identifier for this User.
|
1261
|
+
# Corresponds to the JSON property `id`
|
1262
|
+
# @return [String]
|
1263
|
+
attr_accessor :id
|
1264
|
+
|
1265
|
+
# The kind of this entity. Always blogger#user
|
1266
|
+
# Corresponds to the JSON property `kind`
|
1267
|
+
# @return [String]
|
1268
|
+
attr_accessor :kind
|
1269
|
+
|
1270
|
+
# This user's locale
|
1271
|
+
# Corresponds to the JSON property `locale`
|
1272
|
+
# @return [Google::Apis::BloggerV3::User::Locale]
|
1273
|
+
attr_accessor :locale
|
1274
|
+
|
1275
|
+
# The API REST URL to fetch this resource from.
|
1276
|
+
# Corresponds to the JSON property `selfLink`
|
1277
|
+
# @return [String]
|
1278
|
+
attr_accessor :self_link
|
1279
|
+
|
1280
|
+
# The user's profile page.
|
1281
|
+
# Corresponds to the JSON property `url`
|
1282
|
+
# @return [String]
|
1283
|
+
attr_accessor :url
|
1284
|
+
|
1285
|
+
def initialize(**args)
|
1286
|
+
update!(**args)
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
# Update properties of this object
|
1290
|
+
def update!(**args)
|
1291
|
+
@about = args[:about] unless args[:about].nil?
|
1292
|
+
@blogs = args[:blogs] unless args[:blogs].nil?
|
1293
|
+
@created = args[:created] unless args[:created].nil?
|
1294
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
1295
|
+
@id = args[:id] unless args[:id].nil?
|
1296
|
+
@kind = args[:kind] unless args[:kind].nil?
|
1297
|
+
@locale = args[:locale] unless args[:locale].nil?
|
1298
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
1299
|
+
@url = args[:url] unless args[:url].nil?
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
# The container of blogs for this user.
|
1303
|
+
class Blogs
|
1304
|
+
include Google::Apis::Core::Hashable
|
1305
|
+
|
1306
|
+
# The URL of the Blogs for this user.
|
1307
|
+
# Corresponds to the JSON property `selfLink`
|
1308
|
+
# @return [String]
|
1309
|
+
attr_accessor :self_link
|
1310
|
+
|
1311
|
+
def initialize(**args)
|
1312
|
+
update!(**args)
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
# Update properties of this object
|
1316
|
+
def update!(**args)
|
1317
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
1318
|
+
end
|
1319
|
+
end
|
1320
|
+
|
1321
|
+
# This user's locale
|
1322
|
+
class Locale
|
1323
|
+
include Google::Apis::Core::Hashable
|
1324
|
+
|
1325
|
+
# The user's country setting.
|
1326
|
+
# Corresponds to the JSON property `country`
|
1327
|
+
# @return [String]
|
1328
|
+
attr_accessor :country
|
1329
|
+
|
1330
|
+
# The user's language setting.
|
1331
|
+
# Corresponds to the JSON property `language`
|
1332
|
+
# @return [String]
|
1333
|
+
attr_accessor :language
|
1334
|
+
|
1335
|
+
# The user's language variant setting.
|
1336
|
+
# Corresponds to the JSON property `variant`
|
1337
|
+
# @return [String]
|
1338
|
+
attr_accessor :variant
|
1339
|
+
|
1340
|
+
def initialize(**args)
|
1341
|
+
update!(**args)
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
# Update properties of this object
|
1345
|
+
def update!(**args)
|
1346
|
+
@country = args[:country] unless args[:country].nil?
|
1347
|
+
@language = args[:language] unless args[:language].nil?
|
1348
|
+
@variant = args[:variant] unless args[:variant].nil?
|
1349
|
+
end
|
1350
|
+
end
|
1351
|
+
end
|
1352
|
+
end
|
1353
|
+
end
|
1354
|
+
end
|