lemboy-google-api-client 0.9.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +7 -0
- data/.rubocop_todo.yml +63 -0
- data/.travis.yml +27 -0
- data/.yardopts +12 -0
- data/CHANGELOG.md +309 -0
- data/CONTRIBUTING.md +31 -0
- data/Gemfile +53 -0
- data/LICENSE +202 -0
- data/MIGRATING.md +171 -0
- data/README.md +327 -0
- data/Rakefile +2 -0
- data/api_names.yaml +36215 -0
- data/bin/generate-api +109 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
- data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +113 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
- data/generated/google/apis/admin_directory_v1/service.rb +3857 -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 +257 -0
- data/generated/google/apis/admin_reports_v1/service.rb +336 -0
- data/generated/google/apis/adsense_v1_4.rb +37 -0
- data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
- data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
- data/generated/google/apis/adsensehost_v4_1.rb +35 -0
- data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
- data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
- data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
- data/generated/google/apis/analytics_v3.rb +49 -0
- data/generated/google/apis/analytics_v3/classes.rb +5536 -0
- data/generated/google/apis/analytics_v3/representations.rb +1992 -0
- data/generated/google/apis/analytics_v3/service.rb +3785 -0
- data/generated/google/apis/analyticsreporting_v4.rb +37 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
- data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
- data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
- data/generated/google/apis/androidenterprise_v1.rb +34 -0
- data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
- data/generated/google/apis/androidpublisher_v2.rb +34 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
- data/generated/google/apis/appengine_v1beta5.rb +40 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
- data/generated/google/apis/appsactivity_v1.rb +46 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
- data/generated/google/apis/appsactivity_v1/service.rb +128 -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 +87 -0
- data/generated/google/apis/appstate_v1/service.rb +260 -0
- data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
- data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
- data/generated/google/apis/bigquery_v2.rb +52 -0
- data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
- data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
- data/generated/google/apis/bigquery_v2/service.rb +988 -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 +632 -0
- data/generated/google/apis/blogger_v3/service.rb +1587 -0
- data/generated/google/apis/books_v1.rb +34 -0
- data/generated/google/apis/books_v1/classes.rb +4160 -0
- data/generated/google/apis/books_v1/representations.rb +1799 -0
- data/generated/google/apis/books_v1/service.rb +2300 -0
- data/generated/google/apis/calendar_v3.rb +37 -0
- data/generated/google/apis/calendar_v3/classes.rb +1742 -0
- data/generated/google/apis/calendar_v3/representations.rb +631 -0
- data/generated/google/apis/calendar_v3/service.rb +1968 -0
- data/generated/google/apis/civicinfo_v2.rb +32 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
- data/generated/google/apis/civicinfo_v2/service.rb +300 -0
- data/generated/google/apis/classroom_v1.rb +70 -0
- data/generated/google/apis/classroom_v1/classes.rb +1572 -0
- data/generated/google/apis/classroom_v1/representations.rb +729 -0
- data/generated/google/apis/classroom_v1/service.rb +1945 -0
- data/generated/google/apis/classroom_v1beta1.rb +49 -0
- data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
- data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
- data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/cloudbuild_v1.rb +34 -0
- data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
- data/generated/google/apis/clouddebugger_v2.rb +38 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
- data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
- data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
- data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
- data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
- data/generated/google/apis/cloudtrace_v1.rb +43 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +12261 -0
- data/generated/google/apis/compute_beta/representations.rb +4615 -0
- data/generated/google/apis/compute_beta/service.rb +15330 -0
- data/generated/google/apis/compute_v1.rb +49 -0
- data/generated/google/apis/compute_v1/classes.rb +11179 -0
- data/generated/google/apis/compute_v1/representations.rb +4203 -0
- data/generated/google/apis/compute_v1/service.rb +12937 -0
- data/generated/google/apis/container_v1.rb +35 -0
- data/generated/google/apis/container_v1/classes.rb +1040 -0
- data/generated/google/apis/container_v1/representations.rb +415 -0
- data/generated/google/apis/container_v1/service.rb +659 -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 +6887 -0
- data/generated/google/apis/content_v2/representations.rb +2963 -0
- data/generated/google/apis/content_v2/service.rb +2653 -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 +321 -0
- data/generated/google/apis/coordinate_v1/service.rb +678 -0
- data/generated/google/apis/customsearch_v1.rb +31 -0
- data/generated/google/apis/customsearch_v1/classes.rb +771 -0
- data/generated/google/apis/customsearch_v1/representations.rb +302 -0
- data/generated/google/apis/customsearch_v1/service.rb +207 -0
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
- data/generated/google/apis/dataproc_v1.rb +34 -0
- data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
- data/generated/google/apis/dataproc_v1/representations.rb +678 -0
- data/generated/google/apis/dataproc_v1/service.rb +670 -0
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -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 +594 -0
- data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +43 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
- data/generated/google/apis/dfareporting_v2_1.rb +37 -0
- data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
- data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
- data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
- data/generated/google/apis/dfareporting_v2_3.rb +37 -0
- data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
- data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
- data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
- data/generated/google/apis/discovery_v1.rb +32 -0
- data/generated/google/apis/discovery_v1/classes.rb +961 -0
- data/generated/google/apis/discovery_v1/representations.rb +397 -0
- data/generated/google/apis/discovery_v1/service.rb +142 -0
- data/generated/google/apis/dns_v1.rb +43 -0
- data/generated/google/apis/dns_v1/classes.rb +406 -0
- data/generated/google/apis/dns_v1/representations.rb +167 -0
- data/generated/google/apis/dns_v1/service.rb +453 -0
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
- data/generated/google/apis/drive_v2.rb +59 -0
- data/generated/google/apis/drive_v2/classes.rb +2633 -0
- data/generated/google/apis/drive_v2/representations.rb +885 -0
- data/generated/google/apis/drive_v2/service.rb +2754 -0
- data/generated/google/apis/drive_v3.rb +56 -0
- data/generated/google/apis/drive_v3/classes.rb +1611 -0
- data/generated/google/apis/drive_v3/representations.rb +555 -0
- data/generated/google/apis/drive_v3/service.rb +1553 -0
- data/generated/google/apis/fitness_v1.rb +85 -0
- data/generated/google/apis/fitness_v1/classes.rb +943 -0
- data/generated/google/apis/fitness_v1/representations.rb +380 -0
- data/generated/google/apis/fitness_v1/service.rb +674 -0
- data/generated/google/apis/fusiontables_v2.rb +37 -0
- data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
- data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
- data/generated/google/apis/fusiontables_v2/service.rb +1463 -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 +228 -0
- data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +567 -0
- data/generated/google/apis/games_management_v1management/representations.rb +278 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +40 -0
- data/generated/google/apis/games_v1/classes.rb +4667 -0
- data/generated/google/apis/games_v1/representations.rb +1800 -0
- data/generated/google/apis/games_v1/service.rb +2449 -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 +462 -0
- data/generated/google/apis/gan_v1beta1/service.rb +682 -0
- data/generated/google/apis/genomics_v1.rb +46 -0
- data/generated/google/apis/genomics_v1/classes.rb +3477 -0
- data/generated/google/apis/genomics_v1/representations.rb +1284 -0
- data/generated/google/apis/genomics_v1/service.rb +2207 -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 +2392 -0
- data/generated/google/apis/gmail_v1.rb +61 -0
- data/generated/google/apis/gmail_v1/classes.rb +1382 -0
- data/generated/google/apis/gmail_v1/representations.rb +624 -0
- data/generated/google/apis/gmail_v1/service.rb +2447 -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 +40 -0
- data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
- data/generated/google/apis/groupssettings_v1.rb +34 -0
- data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
- data/generated/google/apis/groupssettings_v1/service.rb +179 -0
- data/generated/google/apis/iam_v1.rb +36 -0
- data/generated/google/apis/iam_v1/classes.rb +640 -0
- data/generated/google/apis/iam_v1/representations.rb +316 -0
- data/generated/google/apis/iam_v1/service.rb +554 -0
- data/generated/google/apis/identitytoolkit_v3.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
- data/generated/google/apis/kgsearch_v1.rb +31 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
- data/generated/google/apis/kgsearch_v1/service.rb +113 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +184 -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 +74 -0
- data/generated/google/apis/licensing_v1/service.rb +369 -0
- data/generated/google/apis/logging_v1beta3.rb +47 -0
- data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
- data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
- data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
- data/generated/google/apis/logging_v2beta1.rb +46 -0
- data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
- data/generated/google/apis/logging_v2beta1/service.rb +788 -0
- data/generated/google/apis/manager_v1beta2.rb +53 -0
- data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
- data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
- data/generated/google/apis/manager_v1beta2/service.rb +372 -0
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -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 +390 -0
- data/generated/google/apis/mirror_v1/service.rb +977 -0
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/mybusiness_v3.rb +32 -0
- data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
- data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
- data/generated/google/apis/mybusiness_v3/service.rb +960 -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 +102 -0
- data/generated/google/apis/oauth2_v2/service.rb +199 -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 +272 -0
- data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +454 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/people_v1.rb +59 -0
- data/generated/google/apis/people_v1/classes.rb +1521 -0
- data/generated/google/apis/people_v1/representations.rb +663 -0
- data/generated/google/apis/people_v1/service.rb +189 -0
- data/generated/google/apis/plus_domains_v1.rb +61 -0
- data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
- data/generated/google/apis/plus_domains_v1/service.rb +904 -0
- data/generated/google/apis/plus_v1.rb +43 -0
- data/generated/google/apis/plus_v1/classes.rb +2094 -0
- data/generated/google/apis/plus_v1/representations.rb +907 -0
- data/generated/google/apis/plus_v1/service.rb +470 -0
- data/generated/google/apis/prediction_v1_6.rb +47 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
- data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
- data/generated/google/apis/prediction_v1_6/service.rb +380 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +676 -0
- data/generated/google/apis/pubsub_v1/representations.rb +323 -0
- data/generated/google/apis/pubsub_v1/service.rb +900 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
- data/generated/google/apis/qpx_express_v1.rb +31 -0
- data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
- data/generated/google/apis/qpx_express_v1/service.rb +100 -0
- data/generated/google/apis/replicapool_v1beta2.rb +44 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
- data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
- data/generated/google/apis/reseller_v1.rb +37 -0
- data/generated/google/apis/reseller_v1/classes.rb +540 -0
- data/generated/google/apis/reseller_v1/representations.rb +225 -0
- data/generated/google/apis/reseller_v1/service.rb +623 -0
- data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
- data/generated/google/apis/script_v1.rb +64 -0
- data/generated/google/apis/script_v1/classes.rb +265 -0
- data/generated/google/apis/script_v1/representations.rb +119 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/sheets_v4.rb +43 -0
- data/generated/google/apis/sheets_v4/classes.rb +6368 -0
- data/generated/google/apis/sheets_v4/representations.rb +2289 -0
- data/generated/google/apis/sheets_v4/service.rb +569 -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 +113 -0
- data/generated/google/apis/site_verification_v1/service.rb +315 -0
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4044 -0
- data/generated/google/apis/slides_v1/representations.rb +1765 -0
- data/generated/google/apis/slides_v1/service.rb +202 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
- data/generated/google/apis/speech_v1beta1/service.rb +273 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
- data/generated/google/apis/storage_v1.rb +46 -0
- data/generated/google/apis/storage_v1/classes.rb +1255 -0
- data/generated/google/apis/storage_v1/representations.rb +502 -0
- data/generated/google/apis/storage_v1/service.rb +1906 -0
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +52 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
- data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
- data/generated/google/apis/tagmanager_v1/service.rb +2119 -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 +126 -0
- data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -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 +125 -0
- data/generated/google/apis/tasks_v1/service.rb +643 -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 +121 -0
- data/generated/google/apis/translate_v2/service.rb +182 -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 +121 -0
- data/generated/google/apis/urlshortener_v1/service.rb +176 -0
- data/generated/google/apis/vision_v1.rb +36 -0
- data/generated/google/apis/vision_v1/classes.rb +1267 -0
- data/generated/google/apis/vision_v1/representations.rb +418 -0
- data/generated/google/apis/vision_v1/service.rb +90 -0
- data/generated/google/apis/webmasters_v3.rb +37 -0
- data/generated/google/apis/webmasters_v3/classes.rb +570 -0
- data/generated/google/apis/webmasters_v3/representations.rb +283 -0
- data/generated/google/apis/webmasters_v3/service.rb +573 -0
- data/generated/google/apis/youtube_analytics_v1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
- data/generated/google/apis/youtube_partner_v1.rb +37 -0
- data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
- data/generated/google/apis/youtube_v3.rb +50 -0
- data/generated/google/apis/youtube_v3/classes.rb +8375 -0
- data/generated/google/apis/youtube_v3/representations.rb +3273 -0
- data/generated/google/apis/youtube_v3/service.rb +4440 -0
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
- data/google-api-client.gemspec +33 -0
- data/lib/cacerts.pem +2183 -0
- data/lib/google/api_client/auth/installed_app.rb +128 -0
- data/lib/google/api_client/auth/key_utils.rb +94 -0
- data/lib/google/api_client/auth/storage.rb +104 -0
- data/lib/google/api_client/auth/storages/file_store.rb +57 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
- data/lib/google/api_client/client_secrets.rb +177 -0
- data/lib/google/apis.rb +58 -0
- data/lib/google/apis/core/api_command.rb +146 -0
- data/lib/google/apis/core/base_service.rb +401 -0
- data/lib/google/apis/core/batch.rb +239 -0
- data/lib/google/apis/core/download.rb +108 -0
- data/lib/google/apis/core/hashable.rb +44 -0
- data/lib/google/apis/core/http_client_adapter.rb +82 -0
- data/lib/google/apis/core/http_command.rb +332 -0
- data/lib/google/apis/core/json_representation.rb +145 -0
- data/lib/google/apis/core/logging.rb +30 -0
- data/lib/google/apis/core/multipart.rb +187 -0
- data/lib/google/apis/core/upload.rb +295 -0
- data/lib/google/apis/errors.rb +80 -0
- data/lib/google/apis/generator.rb +70 -0
- data/lib/google/apis/generator/annotator.rb +301 -0
- data/lib/google/apis/generator/helpers.rb +74 -0
- data/lib/google/apis/generator/model.rb +143 -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 +92 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
- data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
- data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
- data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
- 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 +85 -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/cli/.env +4 -0
- data/samples/cli/Gemfile +7 -0
- data/samples/cli/README.md +51 -0
- data/samples/cli/google-api-samples +32 -0
- data/samples/cli/lib/base_cli.rb +95 -0
- data/samples/cli/lib/samples/analytics.rb +62 -0
- data/samples/cli/lib/samples/androidpublisher.rb +47 -0
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +83 -0
- data/samples/cli/lib/samples/drive.rb +82 -0
- data/samples/cli/lib/samples/gmail.rb +124 -0
- data/samples/cli/lib/samples/pubsub.rb +114 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/translate.rb +44 -0
- data/samples/cli/lib/samples/you_tube.rb +44 -0
- data/samples/web/.env +2 -0
- data/samples/web/Gemfile +7 -0
- data/samples/web/README.md +44 -0
- data/samples/web/app.rb +120 -0
- data/samples/web/views/calendar.erb +34 -0
- data/samples/web/views/drive.erb +33 -0
- data/samples/web/views/home.erb +34 -0
- data/samples/web/views/layout.erb +40 -0
- data/sync.rb +71 -0
- data/third_party/hurley_patches.rb +103 -0
- metadata +735 -0
@@ -0,0 +1,1587 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module BloggerV3
|
23
|
+
# Blogger API
|
24
|
+
#
|
25
|
+
# API for access to the data within Blogger.
|
26
|
+
#
|
27
|
+
# @example
|
28
|
+
# require 'google/apis/blogger_v3'
|
29
|
+
#
|
30
|
+
# Blogger = Google::Apis::BloggerV3 # Alias the module
|
31
|
+
# service = Blogger::BloggerService.new
|
32
|
+
#
|
33
|
+
# @see https://developers.google.com/blogger/docs/3.0/getting_started
|
34
|
+
class BloggerService < Google::Apis::Core::BaseService
|
35
|
+
# @return [String]
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
38
|
+
attr_accessor :key
|
39
|
+
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
# Overrides userIp if both are provided.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
# @return [String]
|
47
|
+
# IP address of the site where the request originates. Use this if you want to
|
48
|
+
# enforce per-user limits.
|
49
|
+
attr_accessor :user_ip
|
50
|
+
|
51
|
+
def initialize
|
52
|
+
super('https://www.googleapis.com/', 'blogger/v3/')
|
53
|
+
end
|
54
|
+
|
55
|
+
# Gets one blog and user info pair by blogId and userId.
|
56
|
+
# @param [String] user_id
|
57
|
+
# ID of the user whose blogs are to be fetched. Either the word 'self' (sans
|
58
|
+
# quote marks) or the user's profile identifier.
|
59
|
+
# @param [String] blog_id
|
60
|
+
# The ID of the blog to get.
|
61
|
+
# @param [Fixnum] max_posts
|
62
|
+
# Maximum number of posts to pull back with the blog.
|
63
|
+
# @param [String] fields
|
64
|
+
# Selector specifying which fields to include in a partial response.
|
65
|
+
# @param [String] quota_user
|
66
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
67
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
68
|
+
# Overrides userIp if both are provided.
|
69
|
+
# @param [String] user_ip
|
70
|
+
# IP address of the site where the request originates. Use this if you want to
|
71
|
+
# enforce per-user limits.
|
72
|
+
# @param [Google::Apis::RequestOptions] options
|
73
|
+
# Request-specific options
|
74
|
+
#
|
75
|
+
# @yield [result, err] Result & error if block supplied
|
76
|
+
# @yieldparam result [Google::Apis::BloggerV3::BlogUserInfo] parsed result object
|
77
|
+
# @yieldparam err [StandardError] error object if request failed
|
78
|
+
#
|
79
|
+
# @return [Google::Apis::BloggerV3::BlogUserInfo]
|
80
|
+
#
|
81
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
82
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
83
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
84
|
+
def get_blog_user_info(user_id, blog_id, max_posts: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
85
|
+
command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}', options)
|
86
|
+
command.response_representation = Google::Apis::BloggerV3::BlogUserInfo::Representation
|
87
|
+
command.response_class = Google::Apis::BloggerV3::BlogUserInfo
|
88
|
+
command.params['userId'] = user_id unless user_id.nil?
|
89
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
90
|
+
command.query['maxPosts'] = max_posts unless max_posts.nil?
|
91
|
+
command.query['fields'] = fields unless fields.nil?
|
92
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
93
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
94
|
+
execute_or_queue_command(command, &block)
|
95
|
+
end
|
96
|
+
|
97
|
+
# Gets one blog by ID.
|
98
|
+
# @param [String] blog_id
|
99
|
+
# The ID of the blog to get.
|
100
|
+
# @param [Fixnum] max_posts
|
101
|
+
# Maximum number of posts to pull back with the blog.
|
102
|
+
# @param [String] view
|
103
|
+
# Access level with which to view the blog. Note that some fields require
|
104
|
+
# elevated access.
|
105
|
+
# @param [String] fields
|
106
|
+
# Selector specifying which fields to include in a partial response.
|
107
|
+
# @param [String] quota_user
|
108
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
109
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
110
|
+
# Overrides userIp if both are provided.
|
111
|
+
# @param [String] user_ip
|
112
|
+
# IP address of the site where the request originates. Use this if you want to
|
113
|
+
# enforce per-user limits.
|
114
|
+
# @param [Google::Apis::RequestOptions] options
|
115
|
+
# Request-specific options
|
116
|
+
#
|
117
|
+
# @yield [result, err] Result & error if block supplied
|
118
|
+
# @yieldparam result [Google::Apis::BloggerV3::Blog] parsed result object
|
119
|
+
# @yieldparam err [StandardError] error object if request failed
|
120
|
+
#
|
121
|
+
# @return [Google::Apis::BloggerV3::Blog]
|
122
|
+
#
|
123
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
124
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
125
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
126
|
+
def get_blog(blog_id, max_posts: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
127
|
+
command = make_simple_command(:get, 'blogs/{blogId}', options)
|
128
|
+
command.response_representation = Google::Apis::BloggerV3::Blog::Representation
|
129
|
+
command.response_class = Google::Apis::BloggerV3::Blog
|
130
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
131
|
+
command.query['maxPosts'] = max_posts unless max_posts.nil?
|
132
|
+
command.query['view'] = view unless view.nil?
|
133
|
+
command.query['fields'] = fields unless fields.nil?
|
134
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
135
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
136
|
+
execute_or_queue_command(command, &block)
|
137
|
+
end
|
138
|
+
|
139
|
+
# Retrieve a Blog by URL.
|
140
|
+
# @param [String] url
|
141
|
+
# The URL of the blog to retrieve.
|
142
|
+
# @param [String] view
|
143
|
+
# Access level with which to view the blog. Note that some fields require
|
144
|
+
# elevated access.
|
145
|
+
# @param [String] fields
|
146
|
+
# Selector specifying which fields to include in a partial response.
|
147
|
+
# @param [String] quota_user
|
148
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
149
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
150
|
+
# Overrides userIp if both are provided.
|
151
|
+
# @param [String] user_ip
|
152
|
+
# IP address of the site where the request originates. Use this if you want to
|
153
|
+
# enforce per-user limits.
|
154
|
+
# @param [Google::Apis::RequestOptions] options
|
155
|
+
# Request-specific options
|
156
|
+
#
|
157
|
+
# @yield [result, err] Result & error if block supplied
|
158
|
+
# @yieldparam result [Google::Apis::BloggerV3::Blog] parsed result object
|
159
|
+
# @yieldparam err [StandardError] error object if request failed
|
160
|
+
#
|
161
|
+
# @return [Google::Apis::BloggerV3::Blog]
|
162
|
+
#
|
163
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
164
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
165
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
166
|
+
def get_blog_by_url(url, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
167
|
+
command = make_simple_command(:get, 'blogs/byurl', options)
|
168
|
+
command.response_representation = Google::Apis::BloggerV3::Blog::Representation
|
169
|
+
command.response_class = Google::Apis::BloggerV3::Blog
|
170
|
+
command.query['url'] = url unless url.nil?
|
171
|
+
command.query['view'] = view unless view.nil?
|
172
|
+
command.query['fields'] = fields unless fields.nil?
|
173
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
174
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
175
|
+
execute_or_queue_command(command, &block)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Retrieves a list of blogs, possibly filtered.
|
179
|
+
# @param [String] user_id
|
180
|
+
# ID of the user whose blogs are to be fetched. Either the word 'self' (sans
|
181
|
+
# quote marks) or the user's profile identifier.
|
182
|
+
# @param [Boolean] fetch_user_info
|
183
|
+
# Whether the response is a list of blogs with per-user information instead of
|
184
|
+
# just blogs.
|
185
|
+
# @param [Array<String>, String] role
|
186
|
+
# User access types for blogs to include in the results, e.g. AUTHOR will return
|
187
|
+
# blogs where the user has author level access. If no roles are specified,
|
188
|
+
# defaults to ADMIN and AUTHOR roles.
|
189
|
+
# @param [Array<String>, String] status
|
190
|
+
# Blog statuses to include in the result (default: Live blogs only). Note that
|
191
|
+
# ADMIN access is required to view deleted blogs.
|
192
|
+
# @param [String] view
|
193
|
+
# Access level with which to view the blogs. Note that some fields require
|
194
|
+
# elevated access.
|
195
|
+
# @param [String] fields
|
196
|
+
# Selector specifying which fields to include in a partial response.
|
197
|
+
# @param [String] quota_user
|
198
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
199
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
200
|
+
# Overrides userIp if both are provided.
|
201
|
+
# @param [String] user_ip
|
202
|
+
# IP address of the site where the request originates. Use this if you want to
|
203
|
+
# enforce per-user limits.
|
204
|
+
# @param [Google::Apis::RequestOptions] options
|
205
|
+
# Request-specific options
|
206
|
+
#
|
207
|
+
# @yield [result, err] Result & error if block supplied
|
208
|
+
# @yieldparam result [Google::Apis::BloggerV3::BlogList] parsed result object
|
209
|
+
# @yieldparam err [StandardError] error object if request failed
|
210
|
+
#
|
211
|
+
# @return [Google::Apis::BloggerV3::BlogList]
|
212
|
+
#
|
213
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
214
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
215
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
216
|
+
def list_blogs_by_user(user_id, fetch_user_info: nil, role: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
217
|
+
command = make_simple_command(:get, 'users/{userId}/blogs', options)
|
218
|
+
command.response_representation = Google::Apis::BloggerV3::BlogList::Representation
|
219
|
+
command.response_class = Google::Apis::BloggerV3::BlogList
|
220
|
+
command.params['userId'] = user_id unless user_id.nil?
|
221
|
+
command.query['fetchUserInfo'] = fetch_user_info unless fetch_user_info.nil?
|
222
|
+
command.query['role'] = role unless role.nil?
|
223
|
+
command.query['status'] = status unless status.nil?
|
224
|
+
command.query['view'] = view unless view.nil?
|
225
|
+
command.query['fields'] = fields unless fields.nil?
|
226
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
227
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
228
|
+
execute_or_queue_command(command, &block)
|
229
|
+
end
|
230
|
+
|
231
|
+
# Marks a comment as not spam.
|
232
|
+
# @param [String] blog_id
|
233
|
+
# The ID of the Blog.
|
234
|
+
# @param [String] post_id
|
235
|
+
# The ID of the Post.
|
236
|
+
# @param [String] comment_id
|
237
|
+
# The ID of the comment to mark as not spam.
|
238
|
+
# @param [String] fields
|
239
|
+
# Selector specifying which fields to include in a partial response.
|
240
|
+
# @param [String] quota_user
|
241
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
242
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
243
|
+
# Overrides userIp if both are provided.
|
244
|
+
# @param [String] user_ip
|
245
|
+
# IP address of the site where the request originates. Use this if you want to
|
246
|
+
# enforce per-user limits.
|
247
|
+
# @param [Google::Apis::RequestOptions] options
|
248
|
+
# Request-specific options
|
249
|
+
#
|
250
|
+
# @yield [result, err] Result & error if block supplied
|
251
|
+
# @yieldparam result [Google::Apis::BloggerV3::Comment] parsed result object
|
252
|
+
# @yieldparam err [StandardError] error object if request failed
|
253
|
+
#
|
254
|
+
# @return [Google::Apis::BloggerV3::Comment]
|
255
|
+
#
|
256
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
257
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
258
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
259
|
+
def approve_comment(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
260
|
+
command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve', options)
|
261
|
+
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
262
|
+
command.response_class = Google::Apis::BloggerV3::Comment
|
263
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
264
|
+
command.params['postId'] = post_id unless post_id.nil?
|
265
|
+
command.params['commentId'] = comment_id unless comment_id.nil?
|
266
|
+
command.query['fields'] = fields unless fields.nil?
|
267
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
268
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
269
|
+
execute_or_queue_command(command, &block)
|
270
|
+
end
|
271
|
+
|
272
|
+
# Delete a comment by ID.
|
273
|
+
# @param [String] blog_id
|
274
|
+
# The ID of the Blog.
|
275
|
+
# @param [String] post_id
|
276
|
+
# The ID of the Post.
|
277
|
+
# @param [String] comment_id
|
278
|
+
# The ID of the comment to delete.
|
279
|
+
# @param [String] fields
|
280
|
+
# Selector specifying which fields to include in a partial response.
|
281
|
+
# @param [String] quota_user
|
282
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
283
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
284
|
+
# Overrides userIp if both are provided.
|
285
|
+
# @param [String] user_ip
|
286
|
+
# IP address of the site where the request originates. Use this if you want to
|
287
|
+
# enforce per-user limits.
|
288
|
+
# @param [Google::Apis::RequestOptions] options
|
289
|
+
# Request-specific options
|
290
|
+
#
|
291
|
+
# @yield [result, err] Result & error if block supplied
|
292
|
+
# @yieldparam result [NilClass] No result returned for this method
|
293
|
+
# @yieldparam err [StandardError] error object if request failed
|
294
|
+
#
|
295
|
+
# @return [void]
|
296
|
+
#
|
297
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
298
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
299
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
300
|
+
def delete_comment(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
301
|
+
command = make_simple_command(:delete, 'blogs/{blogId}/posts/{postId}/comments/{commentId}', options)
|
302
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
303
|
+
command.params['postId'] = post_id unless post_id.nil?
|
304
|
+
command.params['commentId'] = comment_id unless comment_id.nil?
|
305
|
+
command.query['fields'] = fields unless fields.nil?
|
306
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
307
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
308
|
+
execute_or_queue_command(command, &block)
|
309
|
+
end
|
310
|
+
|
311
|
+
# Gets one comment by ID.
|
312
|
+
# @param [String] blog_id
|
313
|
+
# ID of the blog to containing the comment.
|
314
|
+
# @param [String] post_id
|
315
|
+
# ID of the post to fetch posts from.
|
316
|
+
# @param [String] comment_id
|
317
|
+
# The ID of the comment to get.
|
318
|
+
# @param [String] view
|
319
|
+
# Access level for the requested comment (default: READER). Note that some
|
320
|
+
# comments will require elevated permissions, for example comments where the
|
321
|
+
# parent posts which is in a draft state, or comments that are pending
|
322
|
+
# moderation.
|
323
|
+
# @param [String] fields
|
324
|
+
# Selector specifying which fields to include in a partial response.
|
325
|
+
# @param [String] quota_user
|
326
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
327
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
328
|
+
# Overrides userIp if both are provided.
|
329
|
+
# @param [String] user_ip
|
330
|
+
# IP address of the site where the request originates. Use this if you want to
|
331
|
+
# enforce per-user limits.
|
332
|
+
# @param [Google::Apis::RequestOptions] options
|
333
|
+
# Request-specific options
|
334
|
+
#
|
335
|
+
# @yield [result, err] Result & error if block supplied
|
336
|
+
# @yieldparam result [Google::Apis::BloggerV3::Comment] parsed result object
|
337
|
+
# @yieldparam err [StandardError] error object if request failed
|
338
|
+
#
|
339
|
+
# @return [Google::Apis::BloggerV3::Comment]
|
340
|
+
#
|
341
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
342
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
343
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
344
|
+
def get_comment(blog_id, post_id, comment_id, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
345
|
+
command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}/comments/{commentId}', options)
|
346
|
+
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
347
|
+
command.response_class = Google::Apis::BloggerV3::Comment
|
348
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
349
|
+
command.params['postId'] = post_id unless post_id.nil?
|
350
|
+
command.params['commentId'] = comment_id unless comment_id.nil?
|
351
|
+
command.query['view'] = view unless view.nil?
|
352
|
+
command.query['fields'] = fields unless fields.nil?
|
353
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
354
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
355
|
+
execute_or_queue_command(command, &block)
|
356
|
+
end
|
357
|
+
|
358
|
+
# Retrieves the comments for a post, possibly filtered.
|
359
|
+
# @param [String] blog_id
|
360
|
+
# ID of the blog to fetch comments from.
|
361
|
+
# @param [String] post_id
|
362
|
+
# ID of the post to fetch posts from.
|
363
|
+
# @param [DateTime] end_date
|
364
|
+
# Latest date of comment to fetch, a date-time with RFC 3339 formatting.
|
365
|
+
# @param [Boolean] fetch_bodies
|
366
|
+
# Whether the body content of the comments is included.
|
367
|
+
# @param [Fixnum] max_results
|
368
|
+
# Maximum number of comments to include in the result.
|
369
|
+
# @param [String] page_token
|
370
|
+
# Continuation token if request is paged.
|
371
|
+
# @param [DateTime] start_date
|
372
|
+
# Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
|
373
|
+
# @param [Array<String>, String] status
|
374
|
+
# @param [String] view
|
375
|
+
# Access level with which to view the returned result. Note that some fields
|
376
|
+
# require elevated access.
|
377
|
+
# @param [String] fields
|
378
|
+
# Selector specifying which fields to include in a partial response.
|
379
|
+
# @param [String] quota_user
|
380
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
381
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
382
|
+
# Overrides userIp if both are provided.
|
383
|
+
# @param [String] user_ip
|
384
|
+
# IP address of the site where the request originates. Use this if you want to
|
385
|
+
# enforce per-user limits.
|
386
|
+
# @param [Google::Apis::RequestOptions] options
|
387
|
+
# Request-specific options
|
388
|
+
#
|
389
|
+
# @yield [result, err] Result & error if block supplied
|
390
|
+
# @yieldparam result [Google::Apis::BloggerV3::CommentList] parsed result object
|
391
|
+
# @yieldparam err [StandardError] error object if request failed
|
392
|
+
#
|
393
|
+
# @return [Google::Apis::BloggerV3::CommentList]
|
394
|
+
#
|
395
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
396
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
397
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
398
|
+
def list_comments(blog_id, post_id, end_date: nil, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
399
|
+
command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}/comments', options)
|
400
|
+
command.response_representation = Google::Apis::BloggerV3::CommentList::Representation
|
401
|
+
command.response_class = Google::Apis::BloggerV3::CommentList
|
402
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
403
|
+
command.params['postId'] = post_id unless post_id.nil?
|
404
|
+
command.query['endDate'] = end_date unless end_date.nil?
|
405
|
+
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
|
406
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
407
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
408
|
+
command.query['startDate'] = start_date unless start_date.nil?
|
409
|
+
command.query['status'] = status unless status.nil?
|
410
|
+
command.query['view'] = view unless view.nil?
|
411
|
+
command.query['fields'] = fields unless fields.nil?
|
412
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
413
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
414
|
+
execute_or_queue_command(command, &block)
|
415
|
+
end
|
416
|
+
|
417
|
+
# Retrieves the comments for a blog, across all posts, possibly filtered.
|
418
|
+
# @param [String] blog_id
|
419
|
+
# ID of the blog to fetch comments from.
|
420
|
+
# @param [DateTime] end_date
|
421
|
+
# Latest date of comment to fetch, a date-time with RFC 3339 formatting.
|
422
|
+
# @param [Boolean] fetch_bodies
|
423
|
+
# Whether the body content of the comments is included.
|
424
|
+
# @param [Fixnum] max_results
|
425
|
+
# Maximum number of comments to include in the result.
|
426
|
+
# @param [String] page_token
|
427
|
+
# Continuation token if request is paged.
|
428
|
+
# @param [DateTime] start_date
|
429
|
+
# Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
|
430
|
+
# @param [Array<String>, String] status
|
431
|
+
# @param [String] fields
|
432
|
+
# Selector specifying which fields to include in a partial response.
|
433
|
+
# @param [String] quota_user
|
434
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
435
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
436
|
+
# Overrides userIp if both are provided.
|
437
|
+
# @param [String] user_ip
|
438
|
+
# IP address of the site where the request originates. Use this if you want to
|
439
|
+
# enforce per-user limits.
|
440
|
+
# @param [Google::Apis::RequestOptions] options
|
441
|
+
# Request-specific options
|
442
|
+
#
|
443
|
+
# @yield [result, err] Result & error if block supplied
|
444
|
+
# @yieldparam result [Google::Apis::BloggerV3::CommentList] parsed result object
|
445
|
+
# @yieldparam err [StandardError] error object if request failed
|
446
|
+
#
|
447
|
+
# @return [Google::Apis::BloggerV3::CommentList]
|
448
|
+
#
|
449
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
450
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
451
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
452
|
+
def list_comments_by_blog(blog_id, end_date: nil, fetch_bodies: nil, max_results: nil, page_token: nil, start_date: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
453
|
+
command = make_simple_command(:get, 'blogs/{blogId}/comments', options)
|
454
|
+
command.response_representation = Google::Apis::BloggerV3::CommentList::Representation
|
455
|
+
command.response_class = Google::Apis::BloggerV3::CommentList
|
456
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
457
|
+
command.query['endDate'] = end_date unless end_date.nil?
|
458
|
+
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
|
459
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
460
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
461
|
+
command.query['startDate'] = start_date unless start_date.nil?
|
462
|
+
command.query['status'] = status unless status.nil?
|
463
|
+
command.query['fields'] = fields unless fields.nil?
|
464
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
465
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
466
|
+
execute_or_queue_command(command, &block)
|
467
|
+
end
|
468
|
+
|
469
|
+
# Marks a comment as spam.
|
470
|
+
# @param [String] blog_id
|
471
|
+
# The ID of the Blog.
|
472
|
+
# @param [String] post_id
|
473
|
+
# The ID of the Post.
|
474
|
+
# @param [String] comment_id
|
475
|
+
# The ID of the comment to mark as spam.
|
476
|
+
# @param [String] fields
|
477
|
+
# Selector specifying which fields to include in a partial response.
|
478
|
+
# @param [String] quota_user
|
479
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
480
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
481
|
+
# Overrides userIp if both are provided.
|
482
|
+
# @param [String] user_ip
|
483
|
+
# IP address of the site where the request originates. Use this if you want to
|
484
|
+
# enforce per-user limits.
|
485
|
+
# @param [Google::Apis::RequestOptions] options
|
486
|
+
# Request-specific options
|
487
|
+
#
|
488
|
+
# @yield [result, err] Result & error if block supplied
|
489
|
+
# @yieldparam result [Google::Apis::BloggerV3::Comment] parsed result object
|
490
|
+
# @yieldparam err [StandardError] error object if request failed
|
491
|
+
#
|
492
|
+
# @return [Google::Apis::BloggerV3::Comment]
|
493
|
+
#
|
494
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
495
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
496
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
497
|
+
def mark_comment_as_spam(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
498
|
+
command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam', options)
|
499
|
+
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
500
|
+
command.response_class = Google::Apis::BloggerV3::Comment
|
501
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
502
|
+
command.params['postId'] = post_id unless post_id.nil?
|
503
|
+
command.params['commentId'] = comment_id unless comment_id.nil?
|
504
|
+
command.query['fields'] = fields unless fields.nil?
|
505
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
506
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
507
|
+
execute_or_queue_command(command, &block)
|
508
|
+
end
|
509
|
+
|
510
|
+
# Removes the content of a comment.
|
511
|
+
# @param [String] blog_id
|
512
|
+
# The ID of the Blog.
|
513
|
+
# @param [String] post_id
|
514
|
+
# The ID of the Post.
|
515
|
+
# @param [String] comment_id
|
516
|
+
# The ID of the comment to delete content from.
|
517
|
+
# @param [String] fields
|
518
|
+
# Selector specifying which fields to include in a partial response.
|
519
|
+
# @param [String] quota_user
|
520
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
521
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
522
|
+
# Overrides userIp if both are provided.
|
523
|
+
# @param [String] user_ip
|
524
|
+
# IP address of the site where the request originates. Use this if you want to
|
525
|
+
# enforce per-user limits.
|
526
|
+
# @param [Google::Apis::RequestOptions] options
|
527
|
+
# Request-specific options
|
528
|
+
#
|
529
|
+
# @yield [result, err] Result & error if block supplied
|
530
|
+
# @yieldparam result [Google::Apis::BloggerV3::Comment] parsed result object
|
531
|
+
# @yieldparam err [StandardError] error object if request failed
|
532
|
+
#
|
533
|
+
# @return [Google::Apis::BloggerV3::Comment]
|
534
|
+
#
|
535
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
536
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
537
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
538
|
+
def remove_comment_content(blog_id, post_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
539
|
+
command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent', options)
|
540
|
+
command.response_representation = Google::Apis::BloggerV3::Comment::Representation
|
541
|
+
command.response_class = Google::Apis::BloggerV3::Comment
|
542
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
543
|
+
command.params['postId'] = post_id unless post_id.nil?
|
544
|
+
command.params['commentId'] = comment_id unless comment_id.nil?
|
545
|
+
command.query['fields'] = fields unless fields.nil?
|
546
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
547
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
548
|
+
execute_or_queue_command(command, &block)
|
549
|
+
end
|
550
|
+
|
551
|
+
# Retrieve pageview stats for a Blog.
|
552
|
+
# @param [String] blog_id
|
553
|
+
# The ID of the blog to get.
|
554
|
+
# @param [Array<String>, String] range
|
555
|
+
# @param [String] fields
|
556
|
+
# Selector specifying which fields to include in a partial response.
|
557
|
+
# @param [String] quota_user
|
558
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
559
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
560
|
+
# Overrides userIp if both are provided.
|
561
|
+
# @param [String] user_ip
|
562
|
+
# IP address of the site where the request originates. Use this if you want to
|
563
|
+
# enforce per-user limits.
|
564
|
+
# @param [Google::Apis::RequestOptions] options
|
565
|
+
# Request-specific options
|
566
|
+
#
|
567
|
+
# @yield [result, err] Result & error if block supplied
|
568
|
+
# @yieldparam result [Google::Apis::BloggerV3::Pageviews] parsed result object
|
569
|
+
# @yieldparam err [StandardError] error object if request failed
|
570
|
+
#
|
571
|
+
# @return [Google::Apis::BloggerV3::Pageviews]
|
572
|
+
#
|
573
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
574
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
575
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
576
|
+
def get_page_view(blog_id, range: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
577
|
+
command = make_simple_command(:get, 'blogs/{blogId}/pageviews', options)
|
578
|
+
command.response_representation = Google::Apis::BloggerV3::Pageviews::Representation
|
579
|
+
command.response_class = Google::Apis::BloggerV3::Pageviews
|
580
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
581
|
+
command.query['range'] = range unless range.nil?
|
582
|
+
command.query['fields'] = fields unless fields.nil?
|
583
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
584
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
585
|
+
execute_or_queue_command(command, &block)
|
586
|
+
end
|
587
|
+
|
588
|
+
# Delete a page by ID.
|
589
|
+
# @param [String] blog_id
|
590
|
+
# The ID of the Blog.
|
591
|
+
# @param [String] page_id
|
592
|
+
# The ID of the Page.
|
593
|
+
# @param [String] fields
|
594
|
+
# Selector specifying which fields to include in a partial response.
|
595
|
+
# @param [String] quota_user
|
596
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
597
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
598
|
+
# Overrides userIp if both are provided.
|
599
|
+
# @param [String] user_ip
|
600
|
+
# IP address of the site where the request originates. Use this if you want to
|
601
|
+
# enforce per-user limits.
|
602
|
+
# @param [Google::Apis::RequestOptions] options
|
603
|
+
# Request-specific options
|
604
|
+
#
|
605
|
+
# @yield [result, err] Result & error if block supplied
|
606
|
+
# @yieldparam result [NilClass] No result returned for this method
|
607
|
+
# @yieldparam err [StandardError] error object if request failed
|
608
|
+
#
|
609
|
+
# @return [void]
|
610
|
+
#
|
611
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
612
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
613
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
614
|
+
def delete_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
615
|
+
command = make_simple_command(:delete, 'blogs/{blogId}/pages/{pageId}', options)
|
616
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
617
|
+
command.params['pageId'] = page_id unless page_id.nil?
|
618
|
+
command.query['fields'] = fields unless fields.nil?
|
619
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
620
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
621
|
+
execute_or_queue_command(command, &block)
|
622
|
+
end
|
623
|
+
|
624
|
+
# Gets one blog page by ID.
|
625
|
+
# @param [String] blog_id
|
626
|
+
# ID of the blog containing the page.
|
627
|
+
# @param [String] page_id
|
628
|
+
# The ID of the page to get.
|
629
|
+
# @param [String] view
|
630
|
+
# @param [String] fields
|
631
|
+
# Selector specifying which fields to include in a partial response.
|
632
|
+
# @param [String] quota_user
|
633
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
634
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
635
|
+
# Overrides userIp if both are provided.
|
636
|
+
# @param [String] user_ip
|
637
|
+
# IP address of the site where the request originates. Use this if you want to
|
638
|
+
# enforce per-user limits.
|
639
|
+
# @param [Google::Apis::RequestOptions] options
|
640
|
+
# Request-specific options
|
641
|
+
#
|
642
|
+
# @yield [result, err] Result & error if block supplied
|
643
|
+
# @yieldparam result [Google::Apis::BloggerV3::Page] parsed result object
|
644
|
+
# @yieldparam err [StandardError] error object if request failed
|
645
|
+
#
|
646
|
+
# @return [Google::Apis::BloggerV3::Page]
|
647
|
+
#
|
648
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
649
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
650
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
651
|
+
def get_page(blog_id, page_id, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
652
|
+
command = make_simple_command(:get, 'blogs/{blogId}/pages/{pageId}', options)
|
653
|
+
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
654
|
+
command.response_class = Google::Apis::BloggerV3::Page
|
655
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
656
|
+
command.params['pageId'] = page_id unless page_id.nil?
|
657
|
+
command.query['view'] = view unless view.nil?
|
658
|
+
command.query['fields'] = fields unless fields.nil?
|
659
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
660
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
661
|
+
execute_or_queue_command(command, &block)
|
662
|
+
end
|
663
|
+
|
664
|
+
# Add a page.
|
665
|
+
# @param [String] blog_id
|
666
|
+
# ID of the blog to add the page to.
|
667
|
+
# @param [Google::Apis::BloggerV3::Page] page_object
|
668
|
+
# @param [Boolean] is_draft
|
669
|
+
# Whether to create the page as a draft (default: false).
|
670
|
+
# @param [String] fields
|
671
|
+
# Selector specifying which fields to include in a partial response.
|
672
|
+
# @param [String] quota_user
|
673
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
674
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
675
|
+
# Overrides userIp if both are provided.
|
676
|
+
# @param [String] user_ip
|
677
|
+
# IP address of the site where the request originates. Use this if you want to
|
678
|
+
# enforce per-user limits.
|
679
|
+
# @param [Google::Apis::RequestOptions] options
|
680
|
+
# Request-specific options
|
681
|
+
#
|
682
|
+
# @yield [result, err] Result & error if block supplied
|
683
|
+
# @yieldparam result [Google::Apis::BloggerV3::Page] parsed result object
|
684
|
+
# @yieldparam err [StandardError] error object if request failed
|
685
|
+
#
|
686
|
+
# @return [Google::Apis::BloggerV3::Page]
|
687
|
+
#
|
688
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
689
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
690
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
691
|
+
def insert_page(blog_id, page_object = nil, is_draft: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
692
|
+
command = make_simple_command(:post, 'blogs/{blogId}/pages', options)
|
693
|
+
command.request_representation = Google::Apis::BloggerV3::Page::Representation
|
694
|
+
command.request_object = page_object
|
695
|
+
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
696
|
+
command.response_class = Google::Apis::BloggerV3::Page
|
697
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
698
|
+
command.query['isDraft'] = is_draft unless is_draft.nil?
|
699
|
+
command.query['fields'] = fields unless fields.nil?
|
700
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
701
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
702
|
+
execute_or_queue_command(command, &block)
|
703
|
+
end
|
704
|
+
|
705
|
+
# Retrieves the pages for a blog, optionally including non-LIVE statuses.
|
706
|
+
# @param [String] blog_id
|
707
|
+
# ID of the blog to fetch Pages from.
|
708
|
+
# @param [Boolean] fetch_bodies
|
709
|
+
# Whether to retrieve the Page bodies.
|
710
|
+
# @param [Fixnum] max_results
|
711
|
+
# Maximum number of Pages to fetch.
|
712
|
+
# @param [String] page_token
|
713
|
+
# Continuation token if the request is paged.
|
714
|
+
# @param [Array<String>, String] status
|
715
|
+
# @param [String] view
|
716
|
+
# Access level with which to view the returned result. Note that some fields
|
717
|
+
# require elevated access.
|
718
|
+
# @param [String] fields
|
719
|
+
# Selector specifying which fields to include in a partial response.
|
720
|
+
# @param [String] quota_user
|
721
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
722
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
723
|
+
# Overrides userIp if both are provided.
|
724
|
+
# @param [String] user_ip
|
725
|
+
# IP address of the site where the request originates. Use this if you want to
|
726
|
+
# enforce per-user limits.
|
727
|
+
# @param [Google::Apis::RequestOptions] options
|
728
|
+
# Request-specific options
|
729
|
+
#
|
730
|
+
# @yield [result, err] Result & error if block supplied
|
731
|
+
# @yieldparam result [Google::Apis::BloggerV3::PageList] parsed result object
|
732
|
+
# @yieldparam err [StandardError] error object if request failed
|
733
|
+
#
|
734
|
+
# @return [Google::Apis::BloggerV3::PageList]
|
735
|
+
#
|
736
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
737
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
738
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
739
|
+
def list_pages(blog_id, fetch_bodies: nil, max_results: nil, page_token: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
740
|
+
command = make_simple_command(:get, 'blogs/{blogId}/pages', options)
|
741
|
+
command.response_representation = Google::Apis::BloggerV3::PageList::Representation
|
742
|
+
command.response_class = Google::Apis::BloggerV3::PageList
|
743
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
744
|
+
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
|
745
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
746
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
747
|
+
command.query['status'] = status unless status.nil?
|
748
|
+
command.query['view'] = view unless view.nil?
|
749
|
+
command.query['fields'] = fields unless fields.nil?
|
750
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
751
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
752
|
+
execute_or_queue_command(command, &block)
|
753
|
+
end
|
754
|
+
|
755
|
+
# Update a page. This method supports patch semantics.
|
756
|
+
# @param [String] blog_id
|
757
|
+
# The ID of the Blog.
|
758
|
+
# @param [String] page_id
|
759
|
+
# The ID of the Page.
|
760
|
+
# @param [Google::Apis::BloggerV3::Page] page_object
|
761
|
+
# @param [Boolean] publish
|
762
|
+
# Whether a publish action should be performed when the page is updated (default:
|
763
|
+
# false).
|
764
|
+
# @param [Boolean] revert
|
765
|
+
# Whether a revert action should be performed when the page is updated (default:
|
766
|
+
# false).
|
767
|
+
# @param [String] fields
|
768
|
+
# Selector specifying which fields to include in a partial response.
|
769
|
+
# @param [String] quota_user
|
770
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
771
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
772
|
+
# Overrides userIp if both are provided.
|
773
|
+
# @param [String] user_ip
|
774
|
+
# IP address of the site where the request originates. Use this if you want to
|
775
|
+
# enforce per-user limits.
|
776
|
+
# @param [Google::Apis::RequestOptions] options
|
777
|
+
# Request-specific options
|
778
|
+
#
|
779
|
+
# @yield [result, err] Result & error if block supplied
|
780
|
+
# @yieldparam result [Google::Apis::BloggerV3::Page] parsed result object
|
781
|
+
# @yieldparam err [StandardError] error object if request failed
|
782
|
+
#
|
783
|
+
# @return [Google::Apis::BloggerV3::Page]
|
784
|
+
#
|
785
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
786
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
787
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
788
|
+
def patch_page(blog_id, page_id, page_object = nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
789
|
+
command = make_simple_command(:patch, 'blogs/{blogId}/pages/{pageId}', options)
|
790
|
+
command.request_representation = Google::Apis::BloggerV3::Page::Representation
|
791
|
+
command.request_object = page_object
|
792
|
+
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
793
|
+
command.response_class = Google::Apis::BloggerV3::Page
|
794
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
795
|
+
command.params['pageId'] = page_id unless page_id.nil?
|
796
|
+
command.query['publish'] = publish unless publish.nil?
|
797
|
+
command.query['revert'] = revert unless revert.nil?
|
798
|
+
command.query['fields'] = fields unless fields.nil?
|
799
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
800
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
801
|
+
execute_or_queue_command(command, &block)
|
802
|
+
end
|
803
|
+
|
804
|
+
# Publishes a draft page.
|
805
|
+
# @param [String] blog_id
|
806
|
+
# The ID of the blog.
|
807
|
+
# @param [String] page_id
|
808
|
+
# The ID of the page.
|
809
|
+
# @param [String] fields
|
810
|
+
# Selector specifying which fields to include in a partial response.
|
811
|
+
# @param [String] quota_user
|
812
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
813
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
814
|
+
# Overrides userIp if both are provided.
|
815
|
+
# @param [String] user_ip
|
816
|
+
# IP address of the site where the request originates. Use this if you want to
|
817
|
+
# enforce per-user limits.
|
818
|
+
# @param [Google::Apis::RequestOptions] options
|
819
|
+
# Request-specific options
|
820
|
+
#
|
821
|
+
# @yield [result, err] Result & error if block supplied
|
822
|
+
# @yieldparam result [Google::Apis::BloggerV3::Page] parsed result object
|
823
|
+
# @yieldparam err [StandardError] error object if request failed
|
824
|
+
#
|
825
|
+
# @return [Google::Apis::BloggerV3::Page]
|
826
|
+
#
|
827
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
828
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
829
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
830
|
+
def publish_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
831
|
+
command = make_simple_command(:post, 'blogs/{blogId}/pages/{pageId}/publish', options)
|
832
|
+
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
833
|
+
command.response_class = Google::Apis::BloggerV3::Page
|
834
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
835
|
+
command.params['pageId'] = page_id unless page_id.nil?
|
836
|
+
command.query['fields'] = fields unless fields.nil?
|
837
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
838
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
839
|
+
execute_or_queue_command(command, &block)
|
840
|
+
end
|
841
|
+
|
842
|
+
# Revert a published or scheduled page to draft state.
|
843
|
+
# @param [String] blog_id
|
844
|
+
# The ID of the blog.
|
845
|
+
# @param [String] page_id
|
846
|
+
# The ID of the page.
|
847
|
+
# @param [String] fields
|
848
|
+
# Selector specifying which fields to include in a partial response.
|
849
|
+
# @param [String] quota_user
|
850
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
851
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
852
|
+
# Overrides userIp if both are provided.
|
853
|
+
# @param [String] user_ip
|
854
|
+
# IP address of the site where the request originates. Use this if you want to
|
855
|
+
# enforce per-user limits.
|
856
|
+
# @param [Google::Apis::RequestOptions] options
|
857
|
+
# Request-specific options
|
858
|
+
#
|
859
|
+
# @yield [result, err] Result & error if block supplied
|
860
|
+
# @yieldparam result [Google::Apis::BloggerV3::Page] parsed result object
|
861
|
+
# @yieldparam err [StandardError] error object if request failed
|
862
|
+
#
|
863
|
+
# @return [Google::Apis::BloggerV3::Page]
|
864
|
+
#
|
865
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
866
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
867
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
868
|
+
def revert_page(blog_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
869
|
+
command = make_simple_command(:post, 'blogs/{blogId}/pages/{pageId}/revert', options)
|
870
|
+
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
871
|
+
command.response_class = Google::Apis::BloggerV3::Page
|
872
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
873
|
+
command.params['pageId'] = page_id unless page_id.nil?
|
874
|
+
command.query['fields'] = fields unless fields.nil?
|
875
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
876
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
877
|
+
execute_or_queue_command(command, &block)
|
878
|
+
end
|
879
|
+
|
880
|
+
# Update a page.
|
881
|
+
# @param [String] blog_id
|
882
|
+
# The ID of the Blog.
|
883
|
+
# @param [String] page_id
|
884
|
+
# The ID of the Page.
|
885
|
+
# @param [Google::Apis::BloggerV3::Page] page_object
|
886
|
+
# @param [Boolean] publish
|
887
|
+
# Whether a publish action should be performed when the page is updated (default:
|
888
|
+
# false).
|
889
|
+
# @param [Boolean] revert
|
890
|
+
# Whether a revert action should be performed when the page is updated (default:
|
891
|
+
# false).
|
892
|
+
# @param [String] fields
|
893
|
+
# Selector specifying which fields to include in a partial response.
|
894
|
+
# @param [String] quota_user
|
895
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
896
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
897
|
+
# Overrides userIp if both are provided.
|
898
|
+
# @param [String] user_ip
|
899
|
+
# IP address of the site where the request originates. Use this if you want to
|
900
|
+
# enforce per-user limits.
|
901
|
+
# @param [Google::Apis::RequestOptions] options
|
902
|
+
# Request-specific options
|
903
|
+
#
|
904
|
+
# @yield [result, err] Result & error if block supplied
|
905
|
+
# @yieldparam result [Google::Apis::BloggerV3::Page] parsed result object
|
906
|
+
# @yieldparam err [StandardError] error object if request failed
|
907
|
+
#
|
908
|
+
# @return [Google::Apis::BloggerV3::Page]
|
909
|
+
#
|
910
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
911
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
912
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
913
|
+
def update_page(blog_id, page_id, page_object = nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
914
|
+
command = make_simple_command(:put, 'blogs/{blogId}/pages/{pageId}', options)
|
915
|
+
command.request_representation = Google::Apis::BloggerV3::Page::Representation
|
916
|
+
command.request_object = page_object
|
917
|
+
command.response_representation = Google::Apis::BloggerV3::Page::Representation
|
918
|
+
command.response_class = Google::Apis::BloggerV3::Page
|
919
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
920
|
+
command.params['pageId'] = page_id unless page_id.nil?
|
921
|
+
command.query['publish'] = publish unless publish.nil?
|
922
|
+
command.query['revert'] = revert unless revert.nil?
|
923
|
+
command.query['fields'] = fields unless fields.nil?
|
924
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
925
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
926
|
+
execute_or_queue_command(command, &block)
|
927
|
+
end
|
928
|
+
|
929
|
+
# Gets one post and user info pair, by post ID and user ID. The post user info
|
930
|
+
# contains per-user information about the post, such as access rights, specific
|
931
|
+
# to the user.
|
932
|
+
# @param [String] user_id
|
933
|
+
# ID of the user for the per-user information to be fetched. Either the word '
|
934
|
+
# self' (sans quote marks) or the user's profile identifier.
|
935
|
+
# @param [String] blog_id
|
936
|
+
# The ID of the blog.
|
937
|
+
# @param [String] post_id
|
938
|
+
# The ID of the post to get.
|
939
|
+
# @param [Fixnum] max_comments
|
940
|
+
# Maximum number of comments to pull back on a post.
|
941
|
+
# @param [String] fields
|
942
|
+
# Selector specifying which fields to include in a partial response.
|
943
|
+
# @param [String] quota_user
|
944
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
945
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
946
|
+
# Overrides userIp if both are provided.
|
947
|
+
# @param [String] user_ip
|
948
|
+
# IP address of the site where the request originates. Use this if you want to
|
949
|
+
# enforce per-user limits.
|
950
|
+
# @param [Google::Apis::RequestOptions] options
|
951
|
+
# Request-specific options
|
952
|
+
#
|
953
|
+
# @yield [result, err] Result & error if block supplied
|
954
|
+
# @yieldparam result [Google::Apis::BloggerV3::PostUserInfo] parsed result object
|
955
|
+
# @yieldparam err [StandardError] error object if request failed
|
956
|
+
#
|
957
|
+
# @return [Google::Apis::BloggerV3::PostUserInfo]
|
958
|
+
#
|
959
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
960
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
961
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
962
|
+
def get_post_user_info(user_id, blog_id, post_id, max_comments: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
963
|
+
command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}/posts/{postId}', options)
|
964
|
+
command.response_representation = Google::Apis::BloggerV3::PostUserInfo::Representation
|
965
|
+
command.response_class = Google::Apis::BloggerV3::PostUserInfo
|
966
|
+
command.params['userId'] = user_id unless user_id.nil?
|
967
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
968
|
+
command.params['postId'] = post_id unless post_id.nil?
|
969
|
+
command.query['maxComments'] = max_comments unless max_comments.nil?
|
970
|
+
command.query['fields'] = fields unless fields.nil?
|
971
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
972
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
973
|
+
execute_or_queue_command(command, &block)
|
974
|
+
end
|
975
|
+
|
976
|
+
# Retrieves a list of post and post user info pairs, possibly filtered. The post
|
977
|
+
# user info contains per-user information about the post, such as access rights,
|
978
|
+
# specific to the user.
|
979
|
+
# @param [String] user_id
|
980
|
+
# ID of the user for the per-user information to be fetched. Either the word '
|
981
|
+
# self' (sans quote marks) or the user's profile identifier.
|
982
|
+
# @param [String] blog_id
|
983
|
+
# ID of the blog to fetch posts from.
|
984
|
+
# @param [DateTime] end_date
|
985
|
+
# Latest post date to fetch, a date-time with RFC 3339 formatting.
|
986
|
+
# @param [Boolean] fetch_bodies
|
987
|
+
# Whether the body content of posts is included. Default is false.
|
988
|
+
# @param [String] labels
|
989
|
+
# Comma-separated list of labels to search for.
|
990
|
+
# @param [Fixnum] max_results
|
991
|
+
# Maximum number of posts to fetch.
|
992
|
+
# @param [String] order_by
|
993
|
+
# Sort order applied to search results. Default is published.
|
994
|
+
# @param [String] page_token
|
995
|
+
# Continuation token if the request is paged.
|
996
|
+
# @param [DateTime] start_date
|
997
|
+
# Earliest post date to fetch, a date-time with RFC 3339 formatting.
|
998
|
+
# @param [Array<String>, String] status
|
999
|
+
# @param [String] view
|
1000
|
+
# Access level with which to view the returned result. Note that some fields
|
1001
|
+
# require elevated access.
|
1002
|
+
# @param [String] fields
|
1003
|
+
# Selector specifying which fields to include in a partial response.
|
1004
|
+
# @param [String] quota_user
|
1005
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1006
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1007
|
+
# Overrides userIp if both are provided.
|
1008
|
+
# @param [String] user_ip
|
1009
|
+
# IP address of the site where the request originates. Use this if you want to
|
1010
|
+
# enforce per-user limits.
|
1011
|
+
# @param [Google::Apis::RequestOptions] options
|
1012
|
+
# Request-specific options
|
1013
|
+
#
|
1014
|
+
# @yield [result, err] Result & error if block supplied
|
1015
|
+
# @yieldparam result [Google::Apis::BloggerV3::PostUserInfosList] parsed result object
|
1016
|
+
# @yieldparam err [StandardError] error object if request failed
|
1017
|
+
#
|
1018
|
+
# @return [Google::Apis::BloggerV3::PostUserInfosList]
|
1019
|
+
#
|
1020
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1021
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1022
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1023
|
+
def list_post_user_info(user_id, blog_id, end_date: nil, fetch_bodies: nil, labels: nil, max_results: nil, order_by: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1024
|
+
command = make_simple_command(:get, 'users/{userId}/blogs/{blogId}/posts', options)
|
1025
|
+
command.response_representation = Google::Apis::BloggerV3::PostUserInfosList::Representation
|
1026
|
+
command.response_class = Google::Apis::BloggerV3::PostUserInfosList
|
1027
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1028
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
1029
|
+
command.query['endDate'] = end_date unless end_date.nil?
|
1030
|
+
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
|
1031
|
+
command.query['labels'] = labels unless labels.nil?
|
1032
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
1033
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1034
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1035
|
+
command.query['startDate'] = start_date unless start_date.nil?
|
1036
|
+
command.query['status'] = status unless status.nil?
|
1037
|
+
command.query['view'] = view unless view.nil?
|
1038
|
+
command.query['fields'] = fields unless fields.nil?
|
1039
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1040
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1041
|
+
execute_or_queue_command(command, &block)
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# Delete a post by ID.
|
1045
|
+
# @param [String] blog_id
|
1046
|
+
# The ID of the Blog.
|
1047
|
+
# @param [String] post_id
|
1048
|
+
# The ID of the Post.
|
1049
|
+
# @param [String] fields
|
1050
|
+
# Selector specifying which fields to include in a partial response.
|
1051
|
+
# @param [String] quota_user
|
1052
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1053
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1054
|
+
# Overrides userIp if both are provided.
|
1055
|
+
# @param [String] user_ip
|
1056
|
+
# IP address of the site where the request originates. Use this if you want to
|
1057
|
+
# enforce per-user limits.
|
1058
|
+
# @param [Google::Apis::RequestOptions] options
|
1059
|
+
# Request-specific options
|
1060
|
+
#
|
1061
|
+
# @yield [result, err] Result & error if block supplied
|
1062
|
+
# @yieldparam result [NilClass] No result returned for this method
|
1063
|
+
# @yieldparam err [StandardError] error object if request failed
|
1064
|
+
#
|
1065
|
+
# @return [void]
|
1066
|
+
#
|
1067
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1068
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1069
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1070
|
+
def delete_post(blog_id, post_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1071
|
+
command = make_simple_command(:delete, 'blogs/{blogId}/posts/{postId}', options)
|
1072
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
1073
|
+
command.params['postId'] = post_id unless post_id.nil?
|
1074
|
+
command.query['fields'] = fields unless fields.nil?
|
1075
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1076
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1077
|
+
execute_or_queue_command(command, &block)
|
1078
|
+
end
|
1079
|
+
|
1080
|
+
# Get a post by ID.
|
1081
|
+
# @param [String] blog_id
|
1082
|
+
# ID of the blog to fetch the post from.
|
1083
|
+
# @param [String] post_id
|
1084
|
+
# The ID of the post
|
1085
|
+
# @param [Boolean] fetch_body
|
1086
|
+
# Whether the body content of the post is included (default: true). This should
|
1087
|
+
# be set to false when the post bodies are not required, to help minimize
|
1088
|
+
# traffic.
|
1089
|
+
# @param [Boolean] fetch_images
|
1090
|
+
# Whether image URL metadata for each post is included (default: false).
|
1091
|
+
# @param [Fixnum] max_comments
|
1092
|
+
# Maximum number of comments to pull back on a post.
|
1093
|
+
# @param [String] view
|
1094
|
+
# Access level with which to view the returned result. Note that some fields
|
1095
|
+
# require elevated access.
|
1096
|
+
# @param [String] fields
|
1097
|
+
# Selector specifying which fields to include in a partial response.
|
1098
|
+
# @param [String] quota_user
|
1099
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1100
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1101
|
+
# Overrides userIp if both are provided.
|
1102
|
+
# @param [String] user_ip
|
1103
|
+
# IP address of the site where the request originates. Use this if you want to
|
1104
|
+
# enforce per-user limits.
|
1105
|
+
# @param [Google::Apis::RequestOptions] options
|
1106
|
+
# Request-specific options
|
1107
|
+
#
|
1108
|
+
# @yield [result, err] Result & error if block supplied
|
1109
|
+
# @yieldparam result [Google::Apis::BloggerV3::Post] parsed result object
|
1110
|
+
# @yieldparam err [StandardError] error object if request failed
|
1111
|
+
#
|
1112
|
+
# @return [Google::Apis::BloggerV3::Post]
|
1113
|
+
#
|
1114
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1115
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1116
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1117
|
+
def get_post(blog_id, post_id, fetch_body: nil, fetch_images: nil, max_comments: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1118
|
+
command = make_simple_command(:get, 'blogs/{blogId}/posts/{postId}', options)
|
1119
|
+
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
1120
|
+
command.response_class = Google::Apis::BloggerV3::Post
|
1121
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
1122
|
+
command.params['postId'] = post_id unless post_id.nil?
|
1123
|
+
command.query['fetchBody'] = fetch_body unless fetch_body.nil?
|
1124
|
+
command.query['fetchImages'] = fetch_images unless fetch_images.nil?
|
1125
|
+
command.query['maxComments'] = max_comments unless max_comments.nil?
|
1126
|
+
command.query['view'] = view unless view.nil?
|
1127
|
+
command.query['fields'] = fields unless fields.nil?
|
1128
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1129
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1130
|
+
execute_or_queue_command(command, &block)
|
1131
|
+
end
|
1132
|
+
|
1133
|
+
# Retrieve a Post by Path.
|
1134
|
+
# @param [String] blog_id
|
1135
|
+
# ID of the blog to fetch the post from.
|
1136
|
+
# @param [String] path
|
1137
|
+
# Path of the Post to retrieve.
|
1138
|
+
# @param [Fixnum] max_comments
|
1139
|
+
# Maximum number of comments to pull back on a post.
|
1140
|
+
# @param [String] view
|
1141
|
+
# Access level with which to view the returned result. Note that some fields
|
1142
|
+
# require elevated access.
|
1143
|
+
# @param [String] fields
|
1144
|
+
# Selector specifying which fields to include in a partial response.
|
1145
|
+
# @param [String] quota_user
|
1146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1148
|
+
# Overrides userIp if both are provided.
|
1149
|
+
# @param [String] user_ip
|
1150
|
+
# IP address of the site where the request originates. Use this if you want to
|
1151
|
+
# enforce per-user limits.
|
1152
|
+
# @param [Google::Apis::RequestOptions] options
|
1153
|
+
# Request-specific options
|
1154
|
+
#
|
1155
|
+
# @yield [result, err] Result & error if block supplied
|
1156
|
+
# @yieldparam result [Google::Apis::BloggerV3::Post] parsed result object
|
1157
|
+
# @yieldparam err [StandardError] error object if request failed
|
1158
|
+
#
|
1159
|
+
# @return [Google::Apis::BloggerV3::Post]
|
1160
|
+
#
|
1161
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1162
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1163
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1164
|
+
def get_post_by_path(blog_id, path, max_comments: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1165
|
+
command = make_simple_command(:get, 'blogs/{blogId}/posts/bypath', options)
|
1166
|
+
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
1167
|
+
command.response_class = Google::Apis::BloggerV3::Post
|
1168
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
1169
|
+
command.query['maxComments'] = max_comments unless max_comments.nil?
|
1170
|
+
command.query['path'] = path unless path.nil?
|
1171
|
+
command.query['view'] = view unless view.nil?
|
1172
|
+
command.query['fields'] = fields unless fields.nil?
|
1173
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1174
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1175
|
+
execute_or_queue_command(command, &block)
|
1176
|
+
end
|
1177
|
+
|
1178
|
+
# Add a post.
|
1179
|
+
# @param [String] blog_id
|
1180
|
+
# ID of the blog to add the post to.
|
1181
|
+
# @param [Google::Apis::BloggerV3::Post] post_object
|
1182
|
+
# @param [Boolean] fetch_body
|
1183
|
+
# Whether the body content of the post is included with the result (default:
|
1184
|
+
# true).
|
1185
|
+
# @param [Boolean] fetch_images
|
1186
|
+
# Whether image URL metadata for each post is included in the returned result (
|
1187
|
+
# default: false).
|
1188
|
+
# @param [Boolean] is_draft
|
1189
|
+
# Whether to create the post as a draft (default: false).
|
1190
|
+
# @param [String] fields
|
1191
|
+
# Selector specifying which fields to include in a partial response.
|
1192
|
+
# @param [String] quota_user
|
1193
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1194
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1195
|
+
# Overrides userIp if both are provided.
|
1196
|
+
# @param [String] user_ip
|
1197
|
+
# IP address of the site where the request originates. Use this if you want to
|
1198
|
+
# enforce per-user limits.
|
1199
|
+
# @param [Google::Apis::RequestOptions] options
|
1200
|
+
# Request-specific options
|
1201
|
+
#
|
1202
|
+
# @yield [result, err] Result & error if block supplied
|
1203
|
+
# @yieldparam result [Google::Apis::BloggerV3::Post] parsed result object
|
1204
|
+
# @yieldparam err [StandardError] error object if request failed
|
1205
|
+
#
|
1206
|
+
# @return [Google::Apis::BloggerV3::Post]
|
1207
|
+
#
|
1208
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1209
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1210
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1211
|
+
def insert_post(blog_id, post_object = nil, fetch_body: nil, fetch_images: nil, is_draft: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1212
|
+
command = make_simple_command(:post, 'blogs/{blogId}/posts', options)
|
1213
|
+
command.request_representation = Google::Apis::BloggerV3::Post::Representation
|
1214
|
+
command.request_object = post_object
|
1215
|
+
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
1216
|
+
command.response_class = Google::Apis::BloggerV3::Post
|
1217
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
1218
|
+
command.query['fetchBody'] = fetch_body unless fetch_body.nil?
|
1219
|
+
command.query['fetchImages'] = fetch_images unless fetch_images.nil?
|
1220
|
+
command.query['isDraft'] = is_draft unless is_draft.nil?
|
1221
|
+
command.query['fields'] = fields unless fields.nil?
|
1222
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1223
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1224
|
+
execute_or_queue_command(command, &block)
|
1225
|
+
end
|
1226
|
+
|
1227
|
+
# Retrieves a list of posts, possibly filtered.
|
1228
|
+
# @param [String] blog_id
|
1229
|
+
# ID of the blog to fetch posts from.
|
1230
|
+
# @param [DateTime] end_date
|
1231
|
+
# Latest post date to fetch, a date-time with RFC 3339 formatting.
|
1232
|
+
# @param [Boolean] fetch_bodies
|
1233
|
+
# Whether the body content of posts is included (default: true). This should be
|
1234
|
+
# set to false when the post bodies are not required, to help minimize traffic.
|
1235
|
+
# @param [Boolean] fetch_images
|
1236
|
+
# Whether image URL metadata for each post is included.
|
1237
|
+
# @param [String] labels
|
1238
|
+
# Comma-separated list of labels to search for.
|
1239
|
+
# @param [Fixnum] max_results
|
1240
|
+
# Maximum number of posts to fetch.
|
1241
|
+
# @param [String] order_by
|
1242
|
+
# Sort search results
|
1243
|
+
# @param [String] page_token
|
1244
|
+
# Continuation token if the request is paged.
|
1245
|
+
# @param [DateTime] start_date
|
1246
|
+
# Earliest post date to fetch, a date-time with RFC 3339 formatting.
|
1247
|
+
# @param [Array<String>, String] status
|
1248
|
+
# Statuses to include in the results.
|
1249
|
+
# @param [String] view
|
1250
|
+
# Access level with which to view the returned result. Note that some fields
|
1251
|
+
# require escalated access.
|
1252
|
+
# @param [String] fields
|
1253
|
+
# Selector specifying which fields to include in a partial response.
|
1254
|
+
# @param [String] quota_user
|
1255
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1256
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1257
|
+
# Overrides userIp if both are provided.
|
1258
|
+
# @param [String] user_ip
|
1259
|
+
# IP address of the site where the request originates. Use this if you want to
|
1260
|
+
# enforce per-user limits.
|
1261
|
+
# @param [Google::Apis::RequestOptions] options
|
1262
|
+
# Request-specific options
|
1263
|
+
#
|
1264
|
+
# @yield [result, err] Result & error if block supplied
|
1265
|
+
# @yieldparam result [Google::Apis::BloggerV3::PostList] parsed result object
|
1266
|
+
# @yieldparam err [StandardError] error object if request failed
|
1267
|
+
#
|
1268
|
+
# @return [Google::Apis::BloggerV3::PostList]
|
1269
|
+
#
|
1270
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1271
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1272
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1273
|
+
def list_posts(blog_id, end_date: nil, fetch_bodies: nil, fetch_images: nil, labels: nil, max_results: nil, order_by: nil, page_token: nil, start_date: nil, status: nil, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1274
|
+
command = make_simple_command(:get, 'blogs/{blogId}/posts', options)
|
1275
|
+
command.response_representation = Google::Apis::BloggerV3::PostList::Representation
|
1276
|
+
command.response_class = Google::Apis::BloggerV3::PostList
|
1277
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
1278
|
+
command.query['endDate'] = end_date unless end_date.nil?
|
1279
|
+
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
|
1280
|
+
command.query['fetchImages'] = fetch_images unless fetch_images.nil?
|
1281
|
+
command.query['labels'] = labels unless labels.nil?
|
1282
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
1283
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1284
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1285
|
+
command.query['startDate'] = start_date unless start_date.nil?
|
1286
|
+
command.query['status'] = status unless status.nil?
|
1287
|
+
command.query['view'] = view unless view.nil?
|
1288
|
+
command.query['fields'] = fields unless fields.nil?
|
1289
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1290
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1291
|
+
execute_or_queue_command(command, &block)
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
# Update a post. This method supports patch semantics.
|
1295
|
+
# @param [String] blog_id
|
1296
|
+
# The ID of the Blog.
|
1297
|
+
# @param [String] post_id
|
1298
|
+
# The ID of the Post.
|
1299
|
+
# @param [Google::Apis::BloggerV3::Post] post_object
|
1300
|
+
# @param [Boolean] fetch_body
|
1301
|
+
# Whether the body content of the post is included with the result (default:
|
1302
|
+
# true).
|
1303
|
+
# @param [Boolean] fetch_images
|
1304
|
+
# Whether image URL metadata for each post is included in the returned result (
|
1305
|
+
# default: false).
|
1306
|
+
# @param [Fixnum] max_comments
|
1307
|
+
# Maximum number of comments to retrieve with the returned post.
|
1308
|
+
# @param [Boolean] publish
|
1309
|
+
# Whether a publish action should be performed when the post is updated (default:
|
1310
|
+
# false).
|
1311
|
+
# @param [Boolean] revert
|
1312
|
+
# Whether a revert action should be performed when the post is updated (default:
|
1313
|
+
# false).
|
1314
|
+
# @param [String] fields
|
1315
|
+
# Selector specifying which fields to include in a partial response.
|
1316
|
+
# @param [String] quota_user
|
1317
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1318
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1319
|
+
# Overrides userIp if both are provided.
|
1320
|
+
# @param [String] user_ip
|
1321
|
+
# IP address of the site where the request originates. Use this if you want to
|
1322
|
+
# enforce per-user limits.
|
1323
|
+
# @param [Google::Apis::RequestOptions] options
|
1324
|
+
# Request-specific options
|
1325
|
+
#
|
1326
|
+
# @yield [result, err] Result & error if block supplied
|
1327
|
+
# @yieldparam result [Google::Apis::BloggerV3::Post] parsed result object
|
1328
|
+
# @yieldparam err [StandardError] error object if request failed
|
1329
|
+
#
|
1330
|
+
# @return [Google::Apis::BloggerV3::Post]
|
1331
|
+
#
|
1332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1335
|
+
def patch_post(blog_id, post_id, post_object = nil, fetch_body: nil, fetch_images: nil, max_comments: nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1336
|
+
command = make_simple_command(:patch, 'blogs/{blogId}/posts/{postId}', options)
|
1337
|
+
command.request_representation = Google::Apis::BloggerV3::Post::Representation
|
1338
|
+
command.request_object = post_object
|
1339
|
+
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
1340
|
+
command.response_class = Google::Apis::BloggerV3::Post
|
1341
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
1342
|
+
command.params['postId'] = post_id unless post_id.nil?
|
1343
|
+
command.query['fetchBody'] = fetch_body unless fetch_body.nil?
|
1344
|
+
command.query['fetchImages'] = fetch_images unless fetch_images.nil?
|
1345
|
+
command.query['maxComments'] = max_comments unless max_comments.nil?
|
1346
|
+
command.query['publish'] = publish unless publish.nil?
|
1347
|
+
command.query['revert'] = revert unless revert.nil?
|
1348
|
+
command.query['fields'] = fields unless fields.nil?
|
1349
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1350
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1351
|
+
execute_or_queue_command(command, &block)
|
1352
|
+
end
|
1353
|
+
|
1354
|
+
# Publishes a draft post, optionally at the specific time of the given
|
1355
|
+
# publishDate parameter.
|
1356
|
+
# @param [String] blog_id
|
1357
|
+
# The ID of the Blog.
|
1358
|
+
# @param [String] post_id
|
1359
|
+
# The ID of the Post.
|
1360
|
+
# @param [DateTime] publish_date
|
1361
|
+
# Optional date and time to schedule the publishing of the Blog. If no
|
1362
|
+
# publishDate parameter is given, the post is either published at the a
|
1363
|
+
# previously saved schedule date (if present), or the current time. If a future
|
1364
|
+
# date is given, the post will be scheduled to be published.
|
1365
|
+
# @param [String] fields
|
1366
|
+
# Selector specifying which fields to include in a partial response.
|
1367
|
+
# @param [String] quota_user
|
1368
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1369
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1370
|
+
# Overrides userIp if both are provided.
|
1371
|
+
# @param [String] user_ip
|
1372
|
+
# IP address of the site where the request originates. Use this if you want to
|
1373
|
+
# enforce per-user limits.
|
1374
|
+
# @param [Google::Apis::RequestOptions] options
|
1375
|
+
# Request-specific options
|
1376
|
+
#
|
1377
|
+
# @yield [result, err] Result & error if block supplied
|
1378
|
+
# @yieldparam result [Google::Apis::BloggerV3::Post] parsed result object
|
1379
|
+
# @yieldparam err [StandardError] error object if request failed
|
1380
|
+
#
|
1381
|
+
# @return [Google::Apis::BloggerV3::Post]
|
1382
|
+
#
|
1383
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1384
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1385
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1386
|
+
def publish_post(blog_id, post_id, publish_date: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1387
|
+
command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/publish', options)
|
1388
|
+
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
1389
|
+
command.response_class = Google::Apis::BloggerV3::Post
|
1390
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
1391
|
+
command.params['postId'] = post_id unless post_id.nil?
|
1392
|
+
command.query['publishDate'] = publish_date unless publish_date.nil?
|
1393
|
+
command.query['fields'] = fields unless fields.nil?
|
1394
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1395
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1396
|
+
execute_or_queue_command(command, &block)
|
1397
|
+
end
|
1398
|
+
|
1399
|
+
# Revert a published or scheduled post to draft state.
|
1400
|
+
# @param [String] blog_id
|
1401
|
+
# The ID of the Blog.
|
1402
|
+
# @param [String] post_id
|
1403
|
+
# The ID of the Post.
|
1404
|
+
# @param [String] fields
|
1405
|
+
# Selector specifying which fields to include in a partial response.
|
1406
|
+
# @param [String] quota_user
|
1407
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1408
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1409
|
+
# Overrides userIp if both are provided.
|
1410
|
+
# @param [String] user_ip
|
1411
|
+
# IP address of the site where the request originates. Use this if you want to
|
1412
|
+
# enforce per-user limits.
|
1413
|
+
# @param [Google::Apis::RequestOptions] options
|
1414
|
+
# Request-specific options
|
1415
|
+
#
|
1416
|
+
# @yield [result, err] Result & error if block supplied
|
1417
|
+
# @yieldparam result [Google::Apis::BloggerV3::Post] parsed result object
|
1418
|
+
# @yieldparam err [StandardError] error object if request failed
|
1419
|
+
#
|
1420
|
+
# @return [Google::Apis::BloggerV3::Post]
|
1421
|
+
#
|
1422
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1423
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1424
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1425
|
+
def revert_post(blog_id, post_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1426
|
+
command = make_simple_command(:post, 'blogs/{blogId}/posts/{postId}/revert', options)
|
1427
|
+
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
1428
|
+
command.response_class = Google::Apis::BloggerV3::Post
|
1429
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
1430
|
+
command.params['postId'] = post_id unless post_id.nil?
|
1431
|
+
command.query['fields'] = fields unless fields.nil?
|
1432
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1433
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1434
|
+
execute_or_queue_command(command, &block)
|
1435
|
+
end
|
1436
|
+
|
1437
|
+
# Search for a post.
|
1438
|
+
# @param [String] blog_id
|
1439
|
+
# ID of the blog to fetch the post from.
|
1440
|
+
# @param [String] q
|
1441
|
+
# Query terms to search this blog for matching posts.
|
1442
|
+
# @param [Boolean] fetch_bodies
|
1443
|
+
# Whether the body content of posts is included (default: true). This should be
|
1444
|
+
# set to false when the post bodies are not required, to help minimize traffic.
|
1445
|
+
# @param [String] order_by
|
1446
|
+
# Sort search results
|
1447
|
+
# @param [String] fields
|
1448
|
+
# Selector specifying which fields to include in a partial response.
|
1449
|
+
# @param [String] quota_user
|
1450
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1451
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1452
|
+
# Overrides userIp if both are provided.
|
1453
|
+
# @param [String] user_ip
|
1454
|
+
# IP address of the site where the request originates. Use this if you want to
|
1455
|
+
# enforce per-user limits.
|
1456
|
+
# @param [Google::Apis::RequestOptions] options
|
1457
|
+
# Request-specific options
|
1458
|
+
#
|
1459
|
+
# @yield [result, err] Result & error if block supplied
|
1460
|
+
# @yieldparam result [Google::Apis::BloggerV3::PostList] parsed result object
|
1461
|
+
# @yieldparam err [StandardError] error object if request failed
|
1462
|
+
#
|
1463
|
+
# @return [Google::Apis::BloggerV3::PostList]
|
1464
|
+
#
|
1465
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1466
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1467
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1468
|
+
def search_posts(blog_id, q, fetch_bodies: nil, order_by: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1469
|
+
command = make_simple_command(:get, 'blogs/{blogId}/posts/search', options)
|
1470
|
+
command.response_representation = Google::Apis::BloggerV3::PostList::Representation
|
1471
|
+
command.response_class = Google::Apis::BloggerV3::PostList
|
1472
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
1473
|
+
command.query['fetchBodies'] = fetch_bodies unless fetch_bodies.nil?
|
1474
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1475
|
+
command.query['q'] = q unless q.nil?
|
1476
|
+
command.query['fields'] = fields unless fields.nil?
|
1477
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1478
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1479
|
+
execute_or_queue_command(command, &block)
|
1480
|
+
end
|
1481
|
+
|
1482
|
+
# Update a post.
|
1483
|
+
# @param [String] blog_id
|
1484
|
+
# The ID of the Blog.
|
1485
|
+
# @param [String] post_id
|
1486
|
+
# The ID of the Post.
|
1487
|
+
# @param [Google::Apis::BloggerV3::Post] post_object
|
1488
|
+
# @param [Boolean] fetch_body
|
1489
|
+
# Whether the body content of the post is included with the result (default:
|
1490
|
+
# true).
|
1491
|
+
# @param [Boolean] fetch_images
|
1492
|
+
# Whether image URL metadata for each post is included in the returned result (
|
1493
|
+
# default: false).
|
1494
|
+
# @param [Fixnum] max_comments
|
1495
|
+
# Maximum number of comments to retrieve with the returned post.
|
1496
|
+
# @param [Boolean] publish
|
1497
|
+
# Whether a publish action should be performed when the post is updated (default:
|
1498
|
+
# false).
|
1499
|
+
# @param [Boolean] revert
|
1500
|
+
# Whether a revert action should be performed when the post is updated (default:
|
1501
|
+
# false).
|
1502
|
+
# @param [String] fields
|
1503
|
+
# Selector specifying which fields to include in a partial response.
|
1504
|
+
# @param [String] quota_user
|
1505
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1506
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1507
|
+
# Overrides userIp if both are provided.
|
1508
|
+
# @param [String] user_ip
|
1509
|
+
# IP address of the site where the request originates. Use this if you want to
|
1510
|
+
# enforce per-user limits.
|
1511
|
+
# @param [Google::Apis::RequestOptions] options
|
1512
|
+
# Request-specific options
|
1513
|
+
#
|
1514
|
+
# @yield [result, err] Result & error if block supplied
|
1515
|
+
# @yieldparam result [Google::Apis::BloggerV3::Post] parsed result object
|
1516
|
+
# @yieldparam err [StandardError] error object if request failed
|
1517
|
+
#
|
1518
|
+
# @return [Google::Apis::BloggerV3::Post]
|
1519
|
+
#
|
1520
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1521
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1522
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1523
|
+
def update_post(blog_id, post_id, post_object = nil, fetch_body: nil, fetch_images: nil, max_comments: nil, publish: nil, revert: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1524
|
+
command = make_simple_command(:put, 'blogs/{blogId}/posts/{postId}', options)
|
1525
|
+
command.request_representation = Google::Apis::BloggerV3::Post::Representation
|
1526
|
+
command.request_object = post_object
|
1527
|
+
command.response_representation = Google::Apis::BloggerV3::Post::Representation
|
1528
|
+
command.response_class = Google::Apis::BloggerV3::Post
|
1529
|
+
command.params['blogId'] = blog_id unless blog_id.nil?
|
1530
|
+
command.params['postId'] = post_id unless post_id.nil?
|
1531
|
+
command.query['fetchBody'] = fetch_body unless fetch_body.nil?
|
1532
|
+
command.query['fetchImages'] = fetch_images unless fetch_images.nil?
|
1533
|
+
command.query['maxComments'] = max_comments unless max_comments.nil?
|
1534
|
+
command.query['publish'] = publish unless publish.nil?
|
1535
|
+
command.query['revert'] = revert unless revert.nil?
|
1536
|
+
command.query['fields'] = fields unless fields.nil?
|
1537
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1538
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1539
|
+
execute_or_queue_command(command, &block)
|
1540
|
+
end
|
1541
|
+
|
1542
|
+
# Gets one user by ID.
|
1543
|
+
# @param [String] user_id
|
1544
|
+
# The ID of the user to get.
|
1545
|
+
# @param [String] fields
|
1546
|
+
# Selector specifying which fields to include in a partial response.
|
1547
|
+
# @param [String] quota_user
|
1548
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1549
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1550
|
+
# Overrides userIp if both are provided.
|
1551
|
+
# @param [String] user_ip
|
1552
|
+
# IP address of the site where the request originates. Use this if you want to
|
1553
|
+
# enforce per-user limits.
|
1554
|
+
# @param [Google::Apis::RequestOptions] options
|
1555
|
+
# Request-specific options
|
1556
|
+
#
|
1557
|
+
# @yield [result, err] Result & error if block supplied
|
1558
|
+
# @yieldparam result [Google::Apis::BloggerV3::User] parsed result object
|
1559
|
+
# @yieldparam err [StandardError] error object if request failed
|
1560
|
+
#
|
1561
|
+
# @return [Google::Apis::BloggerV3::User]
|
1562
|
+
#
|
1563
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1564
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1565
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1566
|
+
def get_user(user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1567
|
+
command = make_simple_command(:get, 'users/{userId}', options)
|
1568
|
+
command.response_representation = Google::Apis::BloggerV3::User::Representation
|
1569
|
+
command.response_class = Google::Apis::BloggerV3::User
|
1570
|
+
command.params['userId'] = user_id unless user_id.nil?
|
1571
|
+
command.query['fields'] = fields unless fields.nil?
|
1572
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1573
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1574
|
+
execute_or_queue_command(command, &block)
|
1575
|
+
end
|
1576
|
+
|
1577
|
+
protected
|
1578
|
+
|
1579
|
+
def apply_command_defaults(command)
|
1580
|
+
command.query['key'] = key unless key.nil?
|
1581
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1582
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1583
|
+
end
|
1584
|
+
end
|
1585
|
+
end
|
1586
|
+
end
|
1587
|
+
end
|