google-api-client 0.8.3 → 0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (497) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +22 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +52 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +35 -1
  11. data/MIGRATING.md +171 -0
  12. data/README.md +181 -148
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1036 -0
  15. data/api_names_out.yaml +26053 -0
  16. data/bin/generate-api +95 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  21. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  24. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  25. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  26. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  27. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  28. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  29. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  30. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  31. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  32. data/generated/google/apis/admin_directory_v1.rb +113 -0
  33. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  34. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  35. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  36. data/generated/google/apis/admin_reports_v1.rb +38 -0
  37. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  38. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  39. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  40. data/generated/google/apis/adsense_v1_4.rb +38 -0
  41. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  42. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  43. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  44. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  45. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  46. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  47. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  48. data/generated/google/apis/analytics_v3.rb +49 -0
  49. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  50. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  51. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  52. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  53. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  54. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  55. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  56. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  57. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  58. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  59. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  60. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  61. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  62. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  63. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  64. data/generated/google/apis/appsactivity_v1.rb +46 -0
  65. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  66. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  67. data/generated/google/apis/appstate_v1/service.rb +260 -0
  68. data/generated/google/apis/appstate_v1.rb +34 -0
  69. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  70. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  71. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  72. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  73. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  74. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  75. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  76. data/generated/google/apis/bigquery_v2.rb +52 -0
  77. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  78. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  79. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  80. data/generated/google/apis/blogger_v3.rb +37 -0
  81. data/generated/google/apis/books_v1/classes.rb +3956 -0
  82. data/generated/google/apis/books_v1/representations.rb +1538 -0
  83. data/generated/google/apis/books_v1/service.rb +2290 -0
  84. data/generated/google/apis/books_v1.rb +34 -0
  85. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  86. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  87. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  88. data/generated/google/apis/calendar_v3.rb +37 -0
  89. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  90. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  91. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  92. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  93. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  94. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  95. data/generated/google/apis/classroom_v1/service.rb +970 -0
  96. data/generated/google/apis/classroom_v1.rb +49 -0
  97. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  98. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  99. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  100. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  101. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  102. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  103. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  104. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  105. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  106. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  107. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  108. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  117. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  118. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  119. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  120. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  121. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  122. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  123. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  124. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  125. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  126. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  127. data/generated/google/apis/compute_beta/service.rb +10154 -0
  128. data/generated/google/apis/compute_beta.rb +49 -0
  129. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  130. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  131. data/generated/google/apis/compute_v1/service.rb +9252 -0
  132. data/generated/google/apis/compute_v1.rb +49 -0
  133. data/generated/google/apis/container_v1/classes.rb +463 -0
  134. data/generated/google/apis/container_v1/representations.rb +175 -0
  135. data/generated/google/apis/container_v1/service.rb +367 -0
  136. data/generated/google/apis/container_v1.rb +35 -0
  137. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  138. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  139. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  140. data/generated/google/apis/container_v1beta1.rb +35 -0
  141. data/generated/google/apis/content_v2/classes.rb +5986 -0
  142. data/generated/google/apis/content_v2/representations.rb +2288 -0
  143. data/generated/google/apis/content_v2/service.rb +2338 -0
  144. data/generated/google/apis/content_v2.rb +35 -0
  145. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  146. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  147. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  148. data/generated/google/apis/coordinate_v1.rb +37 -0
  149. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  150. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  151. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  152. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  153. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  154. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  155. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  156. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  157. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  158. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  159. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  160. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  165. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  166. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  167. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  168. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  169. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  170. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  171. data/generated/google/apis/discovery_v1/service.rb +142 -0
  172. data/generated/google/apis/discovery_v1.rb +32 -0
  173. data/generated/google/apis/dns_v1/classes.rb +406 -0
  174. data/generated/google/apis/dns_v1/representations.rb +151 -0
  175. data/generated/google/apis/dns_v1/service.rb +454 -0
  176. data/generated/google/apis/dns_v1.rb +44 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  181. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  182. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  183. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  184. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  185. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  186. data/generated/google/apis/drive_v2/representations.rb +795 -0
  187. data/generated/google/apis/drive_v2/service.rb +2696 -0
  188. data/generated/google/apis/drive_v2.rb +58 -0
  189. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  190. data/generated/google/apis/drive_v3/representations.rb +497 -0
  191. data/generated/google/apis/drive_v3/service.rb +1541 -0
  192. data/generated/google/apis/drive_v3.rb +55 -0
  193. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  194. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  195. data/generated/google/apis/fitness_v1/service.rb +675 -0
  196. data/generated/google/apis/fitness_v1.rb +49 -0
  197. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  198. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  199. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  200. data/generated/google/apis/fusiontables_v2.rb +37 -0
  201. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  202. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  203. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  204. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  205. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  206. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  207. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  208. data/generated/google/apis/games_management_v1management.rb +37 -0
  209. data/generated/google/apis/games_v1/classes.rb +4617 -0
  210. data/generated/google/apis/games_v1/representations.rb +1584 -0
  211. data/generated/google/apis/games_v1/service.rb +2290 -0
  212. data/generated/google/apis/games_v1.rb +40 -0
  213. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  214. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  215. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  216. data/generated/google/apis/gan_v1beta1.rb +31 -0
  217. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  218. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  219. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  220. data/generated/google/apis/genomics_v1.rb +49 -0
  221. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  222. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  223. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  224. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  225. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  226. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  227. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  228. data/generated/google/apis/gmail_v1.rb +52 -0
  229. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  230. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  231. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  232. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  233. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  234. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  235. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  236. data/generated/google/apis/groupssettings_v1.rb +34 -0
  237. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  238. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  239. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  240. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  241. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  242. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  243. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  244. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  245. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  246. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  247. data/generated/google/apis/licensing_v1/service.rb +369 -0
  248. data/generated/google/apis/licensing_v1.rb +34 -0
  249. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  250. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  251. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  252. data/generated/google/apis/logging_v1beta3.rb +47 -0
  253. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  254. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  255. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  256. data/generated/google/apis/manager_v1beta2.rb +53 -0
  257. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  258. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  259. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  260. data/generated/google/apis/mapsengine_v1.rb +38 -0
  261. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  262. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  263. data/generated/google/apis/mirror_v1/service.rb +977 -0
  264. data/generated/google/apis/mirror_v1.rb +37 -0
  265. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  266. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  267. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  268. data/generated/google/apis/oauth2_v2.rb +43 -0
  269. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  270. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  271. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  272. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  273. data/generated/google/apis/partners_v2/classes.rb +942 -0
  274. data/generated/google/apis/partners_v2/representations.rb +402 -0
  275. data/generated/google/apis/partners_v2/service.rb +400 -0
  276. data/generated/google/apis/partners_v2.rb +32 -0
  277. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  278. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  279. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  280. data/generated/google/apis/plus_domains_v1.rb +61 -0
  281. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  282. data/generated/google/apis/plus_v1/representations.rb +805 -0
  283. data/generated/google/apis/plus_v1/service.rb +470 -0
  284. data/generated/google/apis/plus_v1.rb +43 -0
  285. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  286. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  287. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  288. data/generated/google/apis/prediction_v1_6.rb +44 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  293. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  294. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  295. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  296. data/generated/google/apis/pubsub_v1.rb +37 -0
  297. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  298. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  299. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  300. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  301. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  302. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  303. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  304. data/generated/google/apis/qpx_express_v1.rb +31 -0
  305. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  306. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  307. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  308. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  313. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  314. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  315. data/generated/google/apis/reseller_v1/service.rb +623 -0
  316. data/generated/google/apis/reseller_v1.rb +37 -0
  317. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  318. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  319. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  320. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  321. data/generated/google/apis/script_v1/classes.rb +259 -0
  322. data/generated/google/apis/script_v1/representations.rb +106 -0
  323. data/generated/google/apis/script_v1/service.rb +98 -0
  324. data/generated/google/apis/script_v1.rb +61 -0
  325. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  326. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  327. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  328. data/generated/google/apis/site_verification_v1.rb +37 -0
  329. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  330. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  331. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  332. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  333. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  334. data/generated/google/apis/storage_v1/representations.rb +445 -0
  335. data/generated/google/apis/storage_v1/service.rb +1903 -0
  336. data/generated/google/apis/storage_v1.rb +46 -0
  337. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  338. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  339. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  340. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  341. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  342. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  343. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  344. data/generated/google/apis/tagmanager_v1.rb +52 -0
  345. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  346. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  347. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  348. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  349. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  350. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  351. data/generated/google/apis/tasks_v1/service.rb +643 -0
  352. data/generated/google/apis/tasks_v1.rb +37 -0
  353. data/generated/google/apis/translate_v2/classes.rb +168 -0
  354. data/generated/google/apis/translate_v2/representations.rb +109 -0
  355. data/generated/google/apis/translate_v2/service.rb +182 -0
  356. data/generated/google/apis/translate_v2.rb +31 -0
  357. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  358. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  359. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  360. data/generated/google/apis/urlshortener_v1.rb +34 -0
  361. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  362. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  363. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  364. data/generated/google/apis/webmasters_v3.rb +37 -0
  365. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  366. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  367. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  368. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  369. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  370. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  371. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  372. data/generated/google/apis/youtube_v3.rb +49 -0
  373. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  374. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  375. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  376. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  377. data/google-api-client.gemspec +27 -39
  378. data/lib/google/api_client/auth/installed_app.rb +7 -5
  379. data/lib/google/api_client/auth/key_utils.rb +12 -11
  380. data/lib/google/api_client/auth/storage.rb +5 -2
  381. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  382. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  383. data/lib/google/api_client/client_secrets.rb +4 -5
  384. data/lib/google/apis/core/api_command.rb +135 -0
  385. data/lib/google/apis/core/base_service.rb +317 -0
  386. data/lib/google/apis/core/batch.rb +239 -0
  387. data/lib/google/apis/core/download.rb +94 -0
  388. data/lib/google/apis/core/hashable.rb +44 -0
  389. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  390. data/lib/google/apis/core/http_command.rb +312 -0
  391. data/lib/google/apis/core/json_representation.rb +127 -0
  392. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  393. data/lib/google/apis/core/multipart.rb +187 -0
  394. data/lib/google/apis/core/upload.rb +288 -0
  395. data/lib/google/{api_client → apis}/errors.rb +39 -28
  396. data/lib/google/apis/generator/annotator.rb +295 -0
  397. data/lib/google/apis/generator/helpers.rb +74 -0
  398. data/lib/google/apis/generator/model.rb +143 -0
  399. data/lib/google/apis/generator/template.rb +124 -0
  400. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  401. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  402. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  403. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  404. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  405. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  406. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  407. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  408. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  409. data/lib/google/apis/generator.rb +70 -0
  410. data/lib/google/apis/options.rb +85 -0
  411. data/lib/google/apis/version.rb +39 -0
  412. data/lib/google/apis.rb +48 -0
  413. data/rakelib/metrics.rake +22 -0
  414. data/rakelib/rubocop.rake +10 -0
  415. data/rakelib/spec.rake +11 -0
  416. data/rakelib/yard.rake +11 -0
  417. data/samples/Gemfile +7 -0
  418. data/samples/README.md +51 -0
  419. data/samples/google-api-samples +32 -0
  420. data/samples/lib/base_cli.rb +94 -0
  421. data/samples/lib/samples/analytics.rb +62 -0
  422. data/samples/lib/samples/calendar.rb +83 -0
  423. data/samples/lib/samples/drive.rb +82 -0
  424. data/samples/lib/samples/gmail.rb +50 -0
  425. data/samples/lib/samples/pubsub.rb +114 -0
  426. data/samples/lib/samples/translate.rb +44 -0
  427. data/samples/lib/samples/you_tube.rb +44 -0
  428. data/script/generate +95 -0
  429. data/script/package +8 -0
  430. data/script/release +15 -0
  431. data/spec/fixtures/files/api_names.yaml +3 -0
  432. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  433. data/spec/fixtures/files/child/.gitignore +0 -0
  434. data/spec/fixtures/files/client_secrets.json +1 -0
  435. data/spec/fixtures/files/invalid.json +1 -0
  436. data/spec/fixtures/files/test.blah +1 -0
  437. data/spec/fixtures/files/test.txt +1 -0
  438. data/spec/fixtures/files/test_api.json +440 -0
  439. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  440. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  441. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  442. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  443. data/spec/google/apis/core/api_command_spec.rb +209 -0
  444. data/spec/google/apis/core/batch_spec.rb +142 -0
  445. data/spec/google/apis/core/download_spec.rb +103 -0
  446. data/spec/google/apis/core/hashable_spec.rb +60 -0
  447. data/spec/google/apis/core/http_command_spec.rb +284 -0
  448. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  449. data/spec/google/apis/core/service_spec.rb +247 -0
  450. data/spec/google/apis/core/upload_spec.rb +300 -0
  451. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  452. data/spec/google/apis/generator/generator_spec.rb +272 -0
  453. data/spec/google/apis/logging_spec.rb +45 -0
  454. data/spec/google/apis/options_spec.rb +40 -0
  455. data/spec/integration_tests/adsense_spec.rb +29 -0
  456. data/spec/integration_tests/drive_spec.rb +35 -0
  457. data/spec/integration_tests/pubsub_spec.rb +48 -0
  458. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  459. data/spec/spec_helper/load_path_spec.rb +33 -0
  460. data/spec/spec_helper.rb +131 -44
  461. data/third_party/hurley_patches.rb +103 -0
  462. metadata +533 -170
  463. data/lib/compat/multi_json.rb +0 -19
  464. data/lib/google/api_client/auth/file_storage.rb +0 -59
  465. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  466. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  467. data/lib/google/api_client/batch.rb +0 -325
  468. data/lib/google/api_client/charset.rb +0 -33
  469. data/lib/google/api_client/discovery/api.rb +0 -300
  470. data/lib/google/api_client/discovery/media.rb +0 -77
  471. data/lib/google/api_client/discovery/method.rb +0 -363
  472. data/lib/google/api_client/discovery/resource.rb +0 -156
  473. data/lib/google/api_client/discovery/schema.rb +0 -119
  474. data/lib/google/api_client/environment.rb +0 -42
  475. data/lib/google/api_client/gzip.rb +0 -28
  476. data/lib/google/api_client/logging.rb +0 -32
  477. data/lib/google/api_client/media.rb +0 -259
  478. data/lib/google/api_client/railtie.rb +0 -18
  479. data/lib/google/api_client/request.rb +0 -350
  480. data/lib/google/api_client/result.rb +0 -255
  481. data/lib/google/api_client/service/batch.rb +0 -110
  482. data/lib/google/api_client/service/request.rb +0 -144
  483. data/lib/google/api_client/service/resource.rb +0 -40
  484. data/lib/google/api_client/service/result.rb +0 -162
  485. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  486. data/lib/google/api_client/service/stub_generator.rb +0 -61
  487. data/lib/google/api_client/service.rb +0 -233
  488. data/lib/google/api_client.rb +0 -750
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -662
  491. data/spec/google/api_client/gzip_spec.rb +0 -98
  492. data/spec/google/api_client/media_spec.rb +0 -178
  493. data/spec/google/api_client/result_spec.rb +0 -207
  494. data/spec/google/api_client/service_account_spec.rb +0 -169
  495. data/spec/google/api_client/service_spec.rb +0 -618
  496. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  497. data/spec/google/api_client_spec.rb +0 -352
@@ -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