google-api-client 0.8.6 → 0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +41 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +32 -2
  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.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  25. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  26. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  27. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  28. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  29. data/generated/google/apis/admin_directory_v1.rb +113 -0
  30. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  31. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  32. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  33. data/generated/google/apis/admin_reports_v1.rb +38 -0
  34. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  35. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  36. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  37. data/generated/google/apis/adsense_v1_4.rb +38 -0
  38. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  39. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  40. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  41. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  42. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  43. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  44. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  45. data/generated/google/apis/analytics_v3.rb +49 -0
  46. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  47. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  48. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  49. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  50. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  51. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  52. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  53. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  54. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  55. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  56. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  57. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  58. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  59. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  60. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  61. data/generated/google/apis/appsactivity_v1.rb +46 -0
  62. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  63. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  64. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  65. data/generated/google/apis/appstate_v1.rb +34 -0
  66. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  67. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  68. data/generated/google/apis/appstate_v1/service.rb +260 -0
  69. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  70. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  71. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  72. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  73. data/generated/google/apis/bigquery_v2.rb +52 -0
  74. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  75. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  76. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  77. data/generated/google/apis/blogger_v3.rb +37 -0
  78. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  79. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  80. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  81. data/generated/google/apis/books_v1.rb +34 -0
  82. data/generated/google/apis/books_v1/classes.rb +3956 -0
  83. data/generated/google/apis/books_v1/representations.rb +1538 -0
  84. data/generated/google/apis/books_v1/service.rb +2290 -0
  85. data/generated/google/apis/calendar_v3.rb +37 -0
  86. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  87. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  88. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  89. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  90. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  91. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  92. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  93. data/generated/google/apis/classroom_v1.rb +49 -0
  94. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  95. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  96. data/generated/google/apis/classroom_v1/service.rb +970 -0
  97. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  98. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  99. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  100. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  101. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  102. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  103. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  104. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  105. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  106. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  107. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  108. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  117. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  118. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  119. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  120. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  121. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  122. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  123. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  124. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  125. data/generated/google/apis/compute_beta.rb +49 -0
  126. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  127. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  128. data/generated/google/apis/compute_beta/service.rb +10154 -0
  129. data/generated/google/apis/compute_v1.rb +49 -0
  130. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  131. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  132. data/generated/google/apis/compute_v1/service.rb +9252 -0
  133. data/generated/google/apis/container_v1.rb +35 -0
  134. data/generated/google/apis/container_v1/classes.rb +463 -0
  135. data/generated/google/apis/container_v1/representations.rb +175 -0
  136. data/generated/google/apis/container_v1/service.rb +367 -0
  137. data/generated/google/apis/container_v1beta1.rb +35 -0
  138. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  139. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  140. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  141. data/generated/google/apis/content_v2.rb +35 -0
  142. data/generated/google/apis/content_v2/classes.rb +5986 -0
  143. data/generated/google/apis/content_v2/representations.rb +2288 -0
  144. data/generated/google/apis/content_v2/service.rb +2338 -0
  145. data/generated/google/apis/coordinate_v1.rb +37 -0
  146. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  147. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  148. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  149. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  150. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  151. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  152. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  153. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  154. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  155. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  156. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  157. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  158. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  159. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  160. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  165. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  166. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  167. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  168. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  169. data/generated/google/apis/discovery_v1.rb +32 -0
  170. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  171. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  172. data/generated/google/apis/discovery_v1/service.rb +142 -0
  173. data/generated/google/apis/dns_v1.rb +44 -0
  174. data/generated/google/apis/dns_v1/classes.rb +406 -0
  175. data/generated/google/apis/dns_v1/representations.rb +151 -0
  176. data/generated/google/apis/dns_v1/service.rb +454 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  181. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  182. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  183. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  184. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  185. data/generated/google/apis/drive_v2.rb +58 -0
  186. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  187. data/generated/google/apis/drive_v2/representations.rb +795 -0
  188. data/generated/google/apis/drive_v2/service.rb +2696 -0
  189. data/generated/google/apis/drive_v3.rb +55 -0
  190. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  191. data/generated/google/apis/drive_v3/representations.rb +497 -0
  192. data/generated/google/apis/drive_v3/service.rb +1541 -0
  193. data/generated/google/apis/fitness_v1.rb +49 -0
  194. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  195. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  196. data/generated/google/apis/fitness_v1/service.rb +675 -0
  197. data/generated/google/apis/fusiontables_v2.rb +37 -0
  198. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  199. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  200. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  201. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  202. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  203. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  204. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  205. data/generated/google/apis/games_management_v1management.rb +37 -0
  206. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  207. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  208. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  209. data/generated/google/apis/games_v1.rb +40 -0
  210. data/generated/google/apis/games_v1/classes.rb +4617 -0
  211. data/generated/google/apis/games_v1/representations.rb +1584 -0
  212. data/generated/google/apis/games_v1/service.rb +2290 -0
  213. data/generated/google/apis/gan_v1beta1.rb +31 -0
  214. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  215. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  216. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  217. data/generated/google/apis/genomics_v1.rb +49 -0
  218. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  219. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  220. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  221. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  222. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  223. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  224. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  225. data/generated/google/apis/gmail_v1.rb +52 -0
  226. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  227. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  228. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  229. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  230. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  231. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  232. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  233. data/generated/google/apis/groupssettings_v1.rb +34 -0
  234. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  235. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  236. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  237. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  238. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  239. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  240. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  241. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  242. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  243. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  244. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  245. data/generated/google/apis/licensing_v1.rb +34 -0
  246. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  247. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  248. data/generated/google/apis/licensing_v1/service.rb +369 -0
  249. data/generated/google/apis/logging_v1beta3.rb +47 -0
  250. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  251. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  252. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  253. data/generated/google/apis/manager_v1beta2.rb +53 -0
  254. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  255. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  256. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  257. data/generated/google/apis/mapsengine_v1.rb +38 -0
  258. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  259. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  260. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  261. data/generated/google/apis/mirror_v1.rb +37 -0
  262. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  263. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  264. data/generated/google/apis/mirror_v1/service.rb +977 -0
  265. data/generated/google/apis/oauth2_v2.rb +43 -0
  266. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  267. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  268. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  269. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  270. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  271. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  272. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  273. data/generated/google/apis/partners_v2.rb +32 -0
  274. data/generated/google/apis/partners_v2/classes.rb +942 -0
  275. data/generated/google/apis/partners_v2/representations.rb +402 -0
  276. data/generated/google/apis/partners_v2/service.rb +400 -0
  277. data/generated/google/apis/plus_domains_v1.rb +61 -0
  278. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  279. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  280. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  281. data/generated/google/apis/plus_v1.rb +43 -0
  282. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  283. data/generated/google/apis/plus_v1/representations.rb +805 -0
  284. data/generated/google/apis/plus_v1/service.rb +470 -0
  285. data/generated/google/apis/prediction_v1_6.rb +44 -0
  286. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  287. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  288. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  293. data/generated/google/apis/pubsub_v1.rb +37 -0
  294. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  295. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  296. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  297. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  298. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  299. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  300. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  301. data/generated/google/apis/qpx_express_v1.rb +31 -0
  302. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  303. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  304. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  305. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  306. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  307. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  308. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  313. data/generated/google/apis/reseller_v1.rb +37 -0
  314. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  315. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  316. data/generated/google/apis/reseller_v1/service.rb +623 -0
  317. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  318. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  319. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  320. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  321. data/generated/google/apis/script_v1.rb +61 -0
  322. data/generated/google/apis/script_v1/classes.rb +259 -0
  323. data/generated/google/apis/script_v1/representations.rb +106 -0
  324. data/generated/google/apis/script_v1/service.rb +98 -0
  325. data/generated/google/apis/site_verification_v1.rb +37 -0
  326. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  327. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  328. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  329. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  330. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  331. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  332. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  333. data/generated/google/apis/storage_v1.rb +46 -0
  334. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  335. data/generated/google/apis/storage_v1/representations.rb +445 -0
  336. data/generated/google/apis/storage_v1/service.rb +1903 -0
  337. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  338. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  339. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  340. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  341. data/generated/google/apis/tagmanager_v1.rb +52 -0
  342. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  343. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  344. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  345. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  346. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  347. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  348. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  349. data/generated/google/apis/tasks_v1.rb +37 -0
  350. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  351. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  352. data/generated/google/apis/tasks_v1/service.rb +643 -0
  353. data/generated/google/apis/translate_v2.rb +31 -0
  354. data/generated/google/apis/translate_v2/classes.rb +168 -0
  355. data/generated/google/apis/translate_v2/representations.rb +109 -0
  356. data/generated/google/apis/translate_v2/service.rb +182 -0
  357. data/generated/google/apis/urlshortener_v1.rb +34 -0
  358. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  359. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  360. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  361. data/generated/google/apis/webmasters_v3.rb +37 -0
  362. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  363. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  364. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  365. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  366. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  367. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  368. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  369. data/generated/google/apis/youtube_v3.rb +49 -0
  370. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  371. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  372. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  373. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  374. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  375. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  376. data/generated/google/apis/youtubereporting_v1/service.rb +364 -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 +1 -0
  380. data/lib/google/api_client/auth/storage.rb +4 -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.rb +48 -0
  385. data/lib/google/apis/core/api_command.rb +135 -0
  386. data/lib/google/apis/core/base_service.rb +317 -0
  387. data/lib/google/apis/core/batch.rb +239 -0
  388. data/lib/google/apis/core/download.rb +94 -0
  389. data/lib/google/apis/core/hashable.rb +44 -0
  390. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  391. data/lib/google/apis/core/http_command.rb +312 -0
  392. data/lib/google/apis/core/json_representation.rb +127 -0
  393. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  394. data/lib/google/apis/core/multipart.rb +187 -0
  395. data/lib/google/apis/core/upload.rb +288 -0
  396. data/lib/google/{api_client → apis}/errors.rb +39 -28
  397. data/lib/google/apis/generator.rb +70 -0
  398. data/lib/google/apis/generator/annotator.rb +295 -0
  399. data/lib/google/apis/generator/helpers.rb +74 -0
  400. data/lib/google/apis/generator/model.rb +143 -0
  401. data/lib/google/apis/generator/template.rb +124 -0
  402. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  403. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  404. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  405. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  406. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  407. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  408. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  409. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  410. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  411. data/lib/google/apis/options.rb +85 -0
  412. data/lib/google/apis/version.rb +39 -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.rb +131 -44
  460. data/spec/spec_helper/load_path_spec.rb +33 -0
  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.rb +0 -750
  465. data/lib/google/api_client/auth/file_storage.rb +0 -59
  466. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  467. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  468. data/lib/google/api_client/batch.rb +0 -326
  469. data/lib/google/api_client/charset.rb +0 -33
  470. data/lib/google/api_client/discovery/api.rb +0 -310
  471. data/lib/google/api_client/discovery/media.rb +0 -77
  472. data/lib/google/api_client/discovery/method.rb +0 -363
  473. data/lib/google/api_client/discovery/resource.rb +0 -156
  474. data/lib/google/api_client/discovery/schema.rb +0 -117
  475. data/lib/google/api_client/environment.rb +0 -42
  476. data/lib/google/api_client/gzip.rb +0 -28
  477. data/lib/google/api_client/logging.rb +0 -32
  478. data/lib/google/api_client/media.rb +0 -259
  479. data/lib/google/api_client/railtie.rb +0 -18
  480. data/lib/google/api_client/request.rb +0 -350
  481. data/lib/google/api_client/result.rb +0 -255
  482. data/lib/google/api_client/service.rb +0 -233
  483. data/lib/google/api_client/service/batch.rb +0 -110
  484. data/lib/google/api_client/service/request.rb +0 -144
  485. data/lib/google/api_client/service/resource.rb +0 -40
  486. data/lib/google/api_client/service/result.rb +0 -162
  487. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  488. data/lib/google/api_client/service/stub_generator.rb +0 -61
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -708
  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,2338 @@
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 ContentV2
23
+ # Content API for Shopping
24
+ #
25
+ # Manage product items, inventory, and Merchant Center accounts for Google
26
+ # Shopping.
27
+ #
28
+ # @example
29
+ # require 'google/apis/content_v2'
30
+ #
31
+ # Content = Google::Apis::ContentV2 # Alias the module
32
+ # service = Content::ShoppingContentService.new
33
+ #
34
+ # @see https://developers.google.com/shopping-content
35
+ class ShoppingContentService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ # Overrides userIp if both are provided.
45
+ attr_accessor :quota_user
46
+
47
+ # @return [String]
48
+ # IP address of the site where the request originates. Use this if you want to
49
+ # enforce per-user limits.
50
+ attr_accessor :user_ip
51
+
52
+ def initialize
53
+ super('https://www.googleapis.com/', 'content/v2/')
54
+ end
55
+
56
+ # Returns information about the authenticated user.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # Overrides userIp if both are provided.
63
+ # @param [String] user_ip
64
+ # IP address of the site where the request originates. Use this if you want to
65
+ # enforce per-user limits.
66
+ # @param [Google::Apis::RequestOptions] options
67
+ # Request-specific options
68
+ #
69
+ # @yield [result, err] Result & error if block supplied
70
+ # @yieldparam result [Google::Apis::ContentV2::AccountsAuthInfoResponse] parsed result object
71
+ # @yieldparam err [StandardError] error object if request failed
72
+ #
73
+ # @return [Google::Apis::ContentV2::AccountsAuthInfoResponse]
74
+ #
75
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
78
+ def get_account_authinfo(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
79
+ command = make_simple_command(:get, 'accounts/authinfo', options)
80
+ command.response_representation = Google::Apis::ContentV2::AccountsAuthInfoResponse::Representation
81
+ command.response_class = Google::Apis::ContentV2::AccountsAuthInfoResponse
82
+ command.query['fields'] = fields unless fields.nil?
83
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
84
+ command.query['userIp'] = user_ip unless user_ip.nil?
85
+ execute_or_queue_command(command, &block)
86
+ end
87
+
88
+ # Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)
89
+ # accounts in a single request.
90
+ # @param [Google::Apis::ContentV2::BatchAccountsRequest] batch_accounts_request_object
91
+ # @param [Boolean] dry_run
92
+ # Flag to run the request in dry-run mode.
93
+ # @param [String] fields
94
+ # Selector specifying which fields to include in a partial response.
95
+ # @param [String] quota_user
96
+ # Available to use for quota purposes for server-side applications. Can be any
97
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
98
+ # Overrides userIp if both are provided.
99
+ # @param [String] user_ip
100
+ # IP address of the site where the request originates. Use this if you want to
101
+ # enforce per-user limits.
102
+ # @param [Google::Apis::RequestOptions] options
103
+ # Request-specific options
104
+ #
105
+ # @yield [result, err] Result & error if block supplied
106
+ # @yieldparam result [Google::Apis::ContentV2::BatchAccountsResponse] parsed result object
107
+ # @yieldparam err [StandardError] error object if request failed
108
+ #
109
+ # @return [Google::Apis::ContentV2::BatchAccountsResponse]
110
+ #
111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
114
+ def batch_account(batch_accounts_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
115
+ command = make_simple_command(:post, 'accounts/batch', options)
116
+ command.request_representation = Google::Apis::ContentV2::BatchAccountsRequest::Representation
117
+ command.request_object = batch_accounts_request_object
118
+ command.response_representation = Google::Apis::ContentV2::BatchAccountsResponse::Representation
119
+ command.response_class = Google::Apis::ContentV2::BatchAccountsResponse
120
+ command.query['dryRun'] = dry_run unless dry_run.nil?
121
+ command.query['fields'] = fields unless fields.nil?
122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
123
+ command.query['userIp'] = user_ip unless user_ip.nil?
124
+ execute_or_queue_command(command, &block)
125
+ end
126
+
127
+ # Deletes a Merchant Center sub-account.
128
+ # @param [String] merchant_id
129
+ # The ID of the managing account.
130
+ # @param [String] account_id
131
+ # The ID of the account.
132
+ # @param [Boolean] dry_run
133
+ # Flag to run the request in dry-run mode.
134
+ # @param [String] fields
135
+ # Selector specifying which fields to include in a partial response.
136
+ # @param [String] quota_user
137
+ # Available to use for quota purposes for server-side applications. Can be any
138
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
139
+ # Overrides userIp if both are provided.
140
+ # @param [String] user_ip
141
+ # IP address of the site where the request originates. Use this if you want to
142
+ # enforce per-user limits.
143
+ # @param [Google::Apis::RequestOptions] options
144
+ # Request-specific options
145
+ #
146
+ # @yield [result, err] Result & error if block supplied
147
+ # @yieldparam result [NilClass] No result returned for this method
148
+ # @yieldparam err [StandardError] error object if request failed
149
+ #
150
+ # @return [void]
151
+ #
152
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
153
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
155
+ def delete_account(merchant_id, account_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
156
+ command = make_simple_command(:delete, '{merchantId}/accounts/{accountId}', options)
157
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
158
+ command.params['accountId'] = account_id unless account_id.nil?
159
+ command.query['dryRun'] = dry_run unless dry_run.nil?
160
+ command.query['fields'] = fields unless fields.nil?
161
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
162
+ command.query['userIp'] = user_ip unless user_ip.nil?
163
+ execute_or_queue_command(command, &block)
164
+ end
165
+
166
+ # Retrieves a Merchant Center account.
167
+ # @param [String] merchant_id
168
+ # The ID of the managing account.
169
+ # @param [String] account_id
170
+ # The ID of the account.
171
+ # @param [String] fields
172
+ # Selector specifying which fields to include in a partial response.
173
+ # @param [String] quota_user
174
+ # Available to use for quota purposes for server-side applications. Can be any
175
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
176
+ # Overrides userIp if both are provided.
177
+ # @param [String] user_ip
178
+ # IP address of the site where the request originates. Use this if you want to
179
+ # enforce per-user limits.
180
+ # @param [Google::Apis::RequestOptions] options
181
+ # Request-specific options
182
+ #
183
+ # @yield [result, err] Result & error if block supplied
184
+ # @yieldparam result [Google::Apis::ContentV2::Account] parsed result object
185
+ # @yieldparam err [StandardError] error object if request failed
186
+ #
187
+ # @return [Google::Apis::ContentV2::Account]
188
+ #
189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
192
+ def get_account(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
193
+ command = make_simple_command(:get, '{merchantId}/accounts/{accountId}', options)
194
+ command.response_representation = Google::Apis::ContentV2::Account::Representation
195
+ command.response_class = Google::Apis::ContentV2::Account
196
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
197
+ command.params['accountId'] = account_id unless account_id.nil?
198
+ command.query['fields'] = fields unless fields.nil?
199
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
200
+ command.query['userIp'] = user_ip unless user_ip.nil?
201
+ execute_or_queue_command(command, &block)
202
+ end
203
+
204
+ # Creates a Merchant Center sub-account.
205
+ # @param [String] merchant_id
206
+ # The ID of the managing account.
207
+ # @param [Google::Apis::ContentV2::Account] account_object
208
+ # @param [Boolean] dry_run
209
+ # Flag to run the request in dry-run mode.
210
+ # @param [String] fields
211
+ # Selector specifying which fields to include in a partial response.
212
+ # @param [String] quota_user
213
+ # Available to use for quota purposes for server-side applications. Can be any
214
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
215
+ # Overrides userIp if both are provided.
216
+ # @param [String] user_ip
217
+ # IP address of the site where the request originates. Use this if you want to
218
+ # enforce per-user limits.
219
+ # @param [Google::Apis::RequestOptions] options
220
+ # Request-specific options
221
+ #
222
+ # @yield [result, err] Result & error if block supplied
223
+ # @yieldparam result [Google::Apis::ContentV2::Account] parsed result object
224
+ # @yieldparam err [StandardError] error object if request failed
225
+ #
226
+ # @return [Google::Apis::ContentV2::Account]
227
+ #
228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
231
+ def insert_account(merchant_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
232
+ command = make_simple_command(:post, '{merchantId}/accounts', options)
233
+ command.request_representation = Google::Apis::ContentV2::Account::Representation
234
+ command.request_object = account_object
235
+ command.response_representation = Google::Apis::ContentV2::Account::Representation
236
+ command.response_class = Google::Apis::ContentV2::Account
237
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
238
+ command.query['dryRun'] = dry_run unless dry_run.nil?
239
+ command.query['fields'] = fields unless fields.nil?
240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
241
+ command.query['userIp'] = user_ip unless user_ip.nil?
242
+ execute_or_queue_command(command, &block)
243
+ end
244
+
245
+ # Lists the sub-accounts in your Merchant Center account.
246
+ # @param [String] merchant_id
247
+ # The ID of the managing account.
248
+ # @param [Fixnum] max_results
249
+ # The maximum number of accounts to return in the response, used for paging.
250
+ # @param [String] page_token
251
+ # The token returned by the previous request.
252
+ # @param [String] fields
253
+ # Selector specifying which fields to include in a partial response.
254
+ # @param [String] quota_user
255
+ # Available to use for quota purposes for server-side applications. Can be any
256
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
257
+ # Overrides userIp if both are provided.
258
+ # @param [String] user_ip
259
+ # IP address of the site where the request originates. Use this if you want to
260
+ # enforce per-user limits.
261
+ # @param [Google::Apis::RequestOptions] options
262
+ # Request-specific options
263
+ #
264
+ # @yield [result, err] Result & error if block supplied
265
+ # @yieldparam result [Google::Apis::ContentV2::ListAccountsResponse] parsed result object
266
+ # @yieldparam err [StandardError] error object if request failed
267
+ #
268
+ # @return [Google::Apis::ContentV2::ListAccountsResponse]
269
+ #
270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
273
+ def list_accounts(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
274
+ command = make_simple_command(:get, '{merchantId}/accounts', options)
275
+ command.response_representation = Google::Apis::ContentV2::ListAccountsResponse::Representation
276
+ command.response_class = Google::Apis::ContentV2::ListAccountsResponse
277
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
278
+ command.query['maxResults'] = max_results unless max_results.nil?
279
+ command.query['pageToken'] = page_token unless page_token.nil?
280
+ command.query['fields'] = fields unless fields.nil?
281
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
282
+ command.query['userIp'] = user_ip unless user_ip.nil?
283
+ execute_or_queue_command(command, &block)
284
+ end
285
+
286
+ # Updates a Merchant Center account. This method supports patch semantics.
287
+ # @param [String] merchant_id
288
+ # The ID of the managing account.
289
+ # @param [String] account_id
290
+ # The ID of the account.
291
+ # @param [Google::Apis::ContentV2::Account] account_object
292
+ # @param [Boolean] dry_run
293
+ # Flag to run the request in dry-run mode.
294
+ # @param [String] fields
295
+ # Selector specifying which fields to include in a partial response.
296
+ # @param [String] quota_user
297
+ # Available to use for quota purposes for server-side applications. Can be any
298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
299
+ # Overrides userIp if both are provided.
300
+ # @param [String] user_ip
301
+ # IP address of the site where the request originates. Use this if you want to
302
+ # enforce per-user limits.
303
+ # @param [Google::Apis::RequestOptions] options
304
+ # Request-specific options
305
+ #
306
+ # @yield [result, err] Result & error if block supplied
307
+ # @yieldparam result [Google::Apis::ContentV2::Account] parsed result object
308
+ # @yieldparam err [StandardError] error object if request failed
309
+ #
310
+ # @return [Google::Apis::ContentV2::Account]
311
+ #
312
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
313
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
314
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
315
+ def patch_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
316
+ command = make_simple_command(:patch, '{merchantId}/accounts/{accountId}', options)
317
+ command.request_representation = Google::Apis::ContentV2::Account::Representation
318
+ command.request_object = account_object
319
+ command.response_representation = Google::Apis::ContentV2::Account::Representation
320
+ command.response_class = Google::Apis::ContentV2::Account
321
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
322
+ command.params['accountId'] = account_id unless account_id.nil?
323
+ command.query['dryRun'] = dry_run unless dry_run.nil?
324
+ command.query['fields'] = fields unless fields.nil?
325
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
326
+ command.query['userIp'] = user_ip unless user_ip.nil?
327
+ execute_or_queue_command(command, &block)
328
+ end
329
+
330
+ # Updates a Merchant Center account.
331
+ # @param [String] merchant_id
332
+ # The ID of the managing account.
333
+ # @param [String] account_id
334
+ # The ID of the account.
335
+ # @param [Google::Apis::ContentV2::Account] account_object
336
+ # @param [Boolean] dry_run
337
+ # Flag to run the request in dry-run mode.
338
+ # @param [String] fields
339
+ # Selector specifying which fields to include in a partial response.
340
+ # @param [String] quota_user
341
+ # Available to use for quota purposes for server-side applications. Can be any
342
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
343
+ # Overrides userIp if both are provided.
344
+ # @param [String] user_ip
345
+ # IP address of the site where the request originates. Use this if you want to
346
+ # enforce per-user limits.
347
+ # @param [Google::Apis::RequestOptions] options
348
+ # Request-specific options
349
+ #
350
+ # @yield [result, err] Result & error if block supplied
351
+ # @yieldparam result [Google::Apis::ContentV2::Account] parsed result object
352
+ # @yieldparam err [StandardError] error object if request failed
353
+ #
354
+ # @return [Google::Apis::ContentV2::Account]
355
+ #
356
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
357
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
358
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
359
+ def update_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
360
+ command = make_simple_command(:put, '{merchantId}/accounts/{accountId}', options)
361
+ command.request_representation = Google::Apis::ContentV2::Account::Representation
362
+ command.request_object = account_object
363
+ command.response_representation = Google::Apis::ContentV2::Account::Representation
364
+ command.response_class = Google::Apis::ContentV2::Account
365
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
366
+ command.params['accountId'] = account_id unless account_id.nil?
367
+ command.query['dryRun'] = dry_run unless dry_run.nil?
368
+ command.query['fields'] = fields unless fields.nil?
369
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
370
+ command.query['userIp'] = user_ip unless user_ip.nil?
371
+ execute_or_queue_command(command, &block)
372
+ end
373
+
374
+ # Retrieves and updates the shipping settings of multiple accounts in a single
375
+ # request.
376
+ # @param [Google::Apis::ContentV2::BatchAccountShippingRequest] batch_account_shipping_request_object
377
+ # @param [Boolean] dry_run
378
+ # Flag to run the request in dry-run mode.
379
+ # @param [String] fields
380
+ # Selector specifying which fields to include in a partial response.
381
+ # @param [String] quota_user
382
+ # Available to use for quota purposes for server-side applications. Can be any
383
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
384
+ # Overrides userIp if both are provided.
385
+ # @param [String] user_ip
386
+ # IP address of the site where the request originates. Use this if you want to
387
+ # enforce per-user limits.
388
+ # @param [Google::Apis::RequestOptions] options
389
+ # Request-specific options
390
+ #
391
+ # @yield [result, err] Result & error if block supplied
392
+ # @yieldparam result [Google::Apis::ContentV2::BatchAccountShippingResponse] parsed result object
393
+ # @yieldparam err [StandardError] error object if request failed
394
+ #
395
+ # @return [Google::Apis::ContentV2::BatchAccountShippingResponse]
396
+ #
397
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
398
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
399
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
400
+ def batch_account_shipping(batch_account_shipping_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
401
+ command = make_simple_command(:post, 'accountshipping/batch', options)
402
+ command.request_representation = Google::Apis::ContentV2::BatchAccountShippingRequest::Representation
403
+ command.request_object = batch_account_shipping_request_object
404
+ command.response_representation = Google::Apis::ContentV2::BatchAccountShippingResponse::Representation
405
+ command.response_class = Google::Apis::ContentV2::BatchAccountShippingResponse
406
+ command.query['dryRun'] = dry_run unless dry_run.nil?
407
+ command.query['fields'] = fields unless fields.nil?
408
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
409
+ command.query['userIp'] = user_ip unless user_ip.nil?
410
+ execute_or_queue_command(command, &block)
411
+ end
412
+
413
+ # Retrieves the shipping settings of the account.
414
+ # @param [String] merchant_id
415
+ # The ID of the managing account.
416
+ # @param [String] account_id
417
+ # The ID of the account for which to get/update account shipping settings.
418
+ # @param [String] fields
419
+ # Selector specifying which fields to include in a partial response.
420
+ # @param [String] quota_user
421
+ # Available to use for quota purposes for server-side applications. Can be any
422
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
423
+ # Overrides userIp if both are provided.
424
+ # @param [String] user_ip
425
+ # IP address of the site where the request originates. Use this if you want to
426
+ # enforce per-user limits.
427
+ # @param [Google::Apis::RequestOptions] options
428
+ # Request-specific options
429
+ #
430
+ # @yield [result, err] Result & error if block supplied
431
+ # @yieldparam result [Google::Apis::ContentV2::AccountShipping] parsed result object
432
+ # @yieldparam err [StandardError] error object if request failed
433
+ #
434
+ # @return [Google::Apis::ContentV2::AccountShipping]
435
+ #
436
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
437
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
438
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
439
+ def get_account_shipping(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
440
+ command = make_simple_command(:get, '{merchantId}/accountshipping/{accountId}', options)
441
+ command.response_representation = Google::Apis::ContentV2::AccountShipping::Representation
442
+ command.response_class = Google::Apis::ContentV2::AccountShipping
443
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
444
+ command.params['accountId'] = account_id unless account_id.nil?
445
+ command.query['fields'] = fields unless fields.nil?
446
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
447
+ command.query['userIp'] = user_ip unless user_ip.nil?
448
+ execute_or_queue_command(command, &block)
449
+ end
450
+
451
+ # Lists the shipping settings of the sub-accounts in your Merchant Center
452
+ # account.
453
+ # @param [String] merchant_id
454
+ # The ID of the managing account.
455
+ # @param [Fixnum] max_results
456
+ # The maximum number of shipping settings to return in the response, used for
457
+ # paging.
458
+ # @param [String] page_token
459
+ # The token returned by the previous request.
460
+ # @param [String] fields
461
+ # Selector specifying which fields to include in a partial response.
462
+ # @param [String] quota_user
463
+ # Available to use for quota purposes for server-side applications. Can be any
464
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
465
+ # Overrides userIp if both are provided.
466
+ # @param [String] user_ip
467
+ # IP address of the site where the request originates. Use this if you want to
468
+ # enforce per-user limits.
469
+ # @param [Google::Apis::RequestOptions] options
470
+ # Request-specific options
471
+ #
472
+ # @yield [result, err] Result & error if block supplied
473
+ # @yieldparam result [Google::Apis::ContentV2::ListAccountShippingResponse] parsed result object
474
+ # @yieldparam err [StandardError] error object if request failed
475
+ #
476
+ # @return [Google::Apis::ContentV2::ListAccountShippingResponse]
477
+ #
478
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
479
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
480
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
481
+ def list_account_shippings(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
482
+ command = make_simple_command(:get, '{merchantId}/accountshipping', options)
483
+ command.response_representation = Google::Apis::ContentV2::ListAccountShippingResponse::Representation
484
+ command.response_class = Google::Apis::ContentV2::ListAccountShippingResponse
485
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
486
+ command.query['maxResults'] = max_results unless max_results.nil?
487
+ command.query['pageToken'] = page_token unless page_token.nil?
488
+ command.query['fields'] = fields unless fields.nil?
489
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
490
+ command.query['userIp'] = user_ip unless user_ip.nil?
491
+ execute_or_queue_command(command, &block)
492
+ end
493
+
494
+ # Updates the shipping settings of the account. This method supports patch
495
+ # semantics.
496
+ # @param [String] merchant_id
497
+ # The ID of the managing account.
498
+ # @param [String] account_id
499
+ # The ID of the account for which to get/update account shipping settings.
500
+ # @param [Google::Apis::ContentV2::AccountShipping] account_shipping_object
501
+ # @param [Boolean] dry_run
502
+ # Flag to run the request in dry-run mode.
503
+ # @param [String] fields
504
+ # Selector specifying which fields to include in a partial response.
505
+ # @param [String] quota_user
506
+ # Available to use for quota purposes for server-side applications. Can be any
507
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
508
+ # Overrides userIp if both are provided.
509
+ # @param [String] user_ip
510
+ # IP address of the site where the request originates. Use this if you want to
511
+ # enforce per-user limits.
512
+ # @param [Google::Apis::RequestOptions] options
513
+ # Request-specific options
514
+ #
515
+ # @yield [result, err] Result & error if block supplied
516
+ # @yieldparam result [Google::Apis::ContentV2::AccountShipping] parsed result object
517
+ # @yieldparam err [StandardError] error object if request failed
518
+ #
519
+ # @return [Google::Apis::ContentV2::AccountShipping]
520
+ #
521
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
522
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
523
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
524
+ def patch_account_shipping(merchant_id, account_id, account_shipping_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
525
+ command = make_simple_command(:patch, '{merchantId}/accountshipping/{accountId}', options)
526
+ command.request_representation = Google::Apis::ContentV2::AccountShipping::Representation
527
+ command.request_object = account_shipping_object
528
+ command.response_representation = Google::Apis::ContentV2::AccountShipping::Representation
529
+ command.response_class = Google::Apis::ContentV2::AccountShipping
530
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
531
+ command.params['accountId'] = account_id unless account_id.nil?
532
+ command.query['dryRun'] = dry_run unless dry_run.nil?
533
+ command.query['fields'] = fields unless fields.nil?
534
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
535
+ command.query['userIp'] = user_ip unless user_ip.nil?
536
+ execute_or_queue_command(command, &block)
537
+ end
538
+
539
+ # Updates the shipping settings of the account.
540
+ # @param [String] merchant_id
541
+ # The ID of the managing account.
542
+ # @param [String] account_id
543
+ # The ID of the account for which to get/update account shipping settings.
544
+ # @param [Google::Apis::ContentV2::AccountShipping] account_shipping_object
545
+ # @param [Boolean] dry_run
546
+ # Flag to run the request in dry-run mode.
547
+ # @param [String] fields
548
+ # Selector specifying which fields to include in a partial response.
549
+ # @param [String] quota_user
550
+ # Available to use for quota purposes for server-side applications. Can be any
551
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
552
+ # Overrides userIp if both are provided.
553
+ # @param [String] user_ip
554
+ # IP address of the site where the request originates. Use this if you want to
555
+ # enforce per-user limits.
556
+ # @param [Google::Apis::RequestOptions] options
557
+ # Request-specific options
558
+ #
559
+ # @yield [result, err] Result & error if block supplied
560
+ # @yieldparam result [Google::Apis::ContentV2::AccountShipping] parsed result object
561
+ # @yieldparam err [StandardError] error object if request failed
562
+ #
563
+ # @return [Google::Apis::ContentV2::AccountShipping]
564
+ #
565
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
566
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
567
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
568
+ def update_account_shipping(merchant_id, account_id, account_shipping_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
569
+ command = make_simple_command(:put, '{merchantId}/accountshipping/{accountId}', options)
570
+ command.request_representation = Google::Apis::ContentV2::AccountShipping::Representation
571
+ command.request_object = account_shipping_object
572
+ command.response_representation = Google::Apis::ContentV2::AccountShipping::Representation
573
+ command.response_class = Google::Apis::ContentV2::AccountShipping
574
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
575
+ command.params['accountId'] = account_id unless account_id.nil?
576
+ command.query['dryRun'] = dry_run unless dry_run.nil?
577
+ command.query['fields'] = fields unless fields.nil?
578
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
579
+ command.query['userIp'] = user_ip unless user_ip.nil?
580
+ execute_or_queue_command(command, &block)
581
+ end
582
+
583
+ #
584
+ # @param [Google::Apis::ContentV2::BatchAccountStatusesRequest] batch_account_statuses_request_object
585
+ # @param [String] fields
586
+ # Selector specifying which fields to include in a partial response.
587
+ # @param [String] quota_user
588
+ # Available to use for quota purposes for server-side applications. Can be any
589
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
590
+ # Overrides userIp if both are provided.
591
+ # @param [String] user_ip
592
+ # IP address of the site where the request originates. Use this if you want to
593
+ # enforce per-user limits.
594
+ # @param [Google::Apis::RequestOptions] options
595
+ # Request-specific options
596
+ #
597
+ # @yield [result, err] Result & error if block supplied
598
+ # @yieldparam result [Google::Apis::ContentV2::BatchAccountStatusesResponse] parsed result object
599
+ # @yieldparam err [StandardError] error object if request failed
600
+ #
601
+ # @return [Google::Apis::ContentV2::BatchAccountStatusesResponse]
602
+ #
603
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
604
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
605
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
606
+ def batch_account_status(batch_account_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
607
+ command = make_simple_command(:post, 'accountstatuses/batch', options)
608
+ command.request_representation = Google::Apis::ContentV2::BatchAccountStatusesRequest::Representation
609
+ command.request_object = batch_account_statuses_request_object
610
+ command.response_representation = Google::Apis::ContentV2::BatchAccountStatusesResponse::Representation
611
+ command.response_class = Google::Apis::ContentV2::BatchAccountStatusesResponse
612
+ command.query['fields'] = fields unless fields.nil?
613
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
614
+ command.query['userIp'] = user_ip unless user_ip.nil?
615
+ execute_or_queue_command(command, &block)
616
+ end
617
+
618
+ # Retrieves the status of a Merchant Center account.
619
+ # @param [String] merchant_id
620
+ # The ID of the managing account.
621
+ # @param [String] account_id
622
+ # The ID of the account.
623
+ # @param [String] fields
624
+ # Selector specifying which fields to include in a partial response.
625
+ # @param [String] quota_user
626
+ # Available to use for quota purposes for server-side applications. Can be any
627
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
628
+ # Overrides userIp if both are provided.
629
+ # @param [String] user_ip
630
+ # IP address of the site where the request originates. Use this if you want to
631
+ # enforce per-user limits.
632
+ # @param [Google::Apis::RequestOptions] options
633
+ # Request-specific options
634
+ #
635
+ # @yield [result, err] Result & error if block supplied
636
+ # @yieldparam result [Google::Apis::ContentV2::AccountStatus] parsed result object
637
+ # @yieldparam err [StandardError] error object if request failed
638
+ #
639
+ # @return [Google::Apis::ContentV2::AccountStatus]
640
+ #
641
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
642
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
643
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
644
+ def get_account_status(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
645
+ command = make_simple_command(:get, '{merchantId}/accountstatuses/{accountId}', options)
646
+ command.response_representation = Google::Apis::ContentV2::AccountStatus::Representation
647
+ command.response_class = Google::Apis::ContentV2::AccountStatus
648
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
649
+ command.params['accountId'] = account_id unless account_id.nil?
650
+ command.query['fields'] = fields unless fields.nil?
651
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
652
+ command.query['userIp'] = user_ip unless user_ip.nil?
653
+ execute_or_queue_command(command, &block)
654
+ end
655
+
656
+ # Lists the statuses of the sub-accounts in your Merchant Center account.
657
+ # @param [String] merchant_id
658
+ # The ID of the managing account.
659
+ # @param [Fixnum] max_results
660
+ # The maximum number of account statuses to return in the response, used for
661
+ # paging.
662
+ # @param [String] page_token
663
+ # The token returned by the previous request.
664
+ # @param [String] fields
665
+ # Selector specifying which fields to include in a partial response.
666
+ # @param [String] quota_user
667
+ # Available to use for quota purposes for server-side applications. Can be any
668
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
669
+ # Overrides userIp if both are provided.
670
+ # @param [String] user_ip
671
+ # IP address of the site where the request originates. Use this if you want to
672
+ # enforce per-user limits.
673
+ # @param [Google::Apis::RequestOptions] options
674
+ # Request-specific options
675
+ #
676
+ # @yield [result, err] Result & error if block supplied
677
+ # @yieldparam result [Google::Apis::ContentV2::ListAccountStatusesResponse] parsed result object
678
+ # @yieldparam err [StandardError] error object if request failed
679
+ #
680
+ # @return [Google::Apis::ContentV2::ListAccountStatusesResponse]
681
+ #
682
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
683
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
684
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
685
+ def list_account_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
686
+ command = make_simple_command(:get, '{merchantId}/accountstatuses', options)
687
+ command.response_representation = Google::Apis::ContentV2::ListAccountStatusesResponse::Representation
688
+ command.response_class = Google::Apis::ContentV2::ListAccountStatusesResponse
689
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
690
+ command.query['maxResults'] = max_results unless max_results.nil?
691
+ command.query['pageToken'] = page_token unless page_token.nil?
692
+ command.query['fields'] = fields unless fields.nil?
693
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
694
+ command.query['userIp'] = user_ip unless user_ip.nil?
695
+ execute_or_queue_command(command, &block)
696
+ end
697
+
698
+ # Retrieves and updates tax settings of multiple accounts in a single request.
699
+ # @param [Google::Apis::ContentV2::BatchAccountTaxRequest] batch_account_tax_request_object
700
+ # @param [Boolean] dry_run
701
+ # Flag to run the request in dry-run mode.
702
+ # @param [String] fields
703
+ # Selector specifying which fields to include in a partial response.
704
+ # @param [String] quota_user
705
+ # Available to use for quota purposes for server-side applications. Can be any
706
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
707
+ # Overrides userIp if both are provided.
708
+ # @param [String] user_ip
709
+ # IP address of the site where the request originates. Use this if you want to
710
+ # enforce per-user limits.
711
+ # @param [Google::Apis::RequestOptions] options
712
+ # Request-specific options
713
+ #
714
+ # @yield [result, err] Result & error if block supplied
715
+ # @yieldparam result [Google::Apis::ContentV2::BatchAccountTaxResponse] parsed result object
716
+ # @yieldparam err [StandardError] error object if request failed
717
+ #
718
+ # @return [Google::Apis::ContentV2::BatchAccountTaxResponse]
719
+ #
720
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
721
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
722
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
723
+ def batch_account_tax(batch_account_tax_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
724
+ command = make_simple_command(:post, 'accounttax/batch', options)
725
+ command.request_representation = Google::Apis::ContentV2::BatchAccountTaxRequest::Representation
726
+ command.request_object = batch_account_tax_request_object
727
+ command.response_representation = Google::Apis::ContentV2::BatchAccountTaxResponse::Representation
728
+ command.response_class = Google::Apis::ContentV2::BatchAccountTaxResponse
729
+ command.query['dryRun'] = dry_run unless dry_run.nil?
730
+ command.query['fields'] = fields unless fields.nil?
731
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
732
+ command.query['userIp'] = user_ip unless user_ip.nil?
733
+ execute_or_queue_command(command, &block)
734
+ end
735
+
736
+ # Retrieves the tax settings of the account.
737
+ # @param [String] merchant_id
738
+ # The ID of the managing account.
739
+ # @param [String] account_id
740
+ # The ID of the account for which to get/update account tax settings.
741
+ # @param [String] fields
742
+ # Selector specifying which fields to include in a partial response.
743
+ # @param [String] quota_user
744
+ # Available to use for quota purposes for server-side applications. Can be any
745
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
746
+ # Overrides userIp if both are provided.
747
+ # @param [String] user_ip
748
+ # IP address of the site where the request originates. Use this if you want to
749
+ # enforce per-user limits.
750
+ # @param [Google::Apis::RequestOptions] options
751
+ # Request-specific options
752
+ #
753
+ # @yield [result, err] Result & error if block supplied
754
+ # @yieldparam result [Google::Apis::ContentV2::AccountTax] parsed result object
755
+ # @yieldparam err [StandardError] error object if request failed
756
+ #
757
+ # @return [Google::Apis::ContentV2::AccountTax]
758
+ #
759
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
760
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
761
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
762
+ def get_account_tax(merchant_id, account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
763
+ command = make_simple_command(:get, '{merchantId}/accounttax/{accountId}', options)
764
+ command.response_representation = Google::Apis::ContentV2::AccountTax::Representation
765
+ command.response_class = Google::Apis::ContentV2::AccountTax
766
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
767
+ command.params['accountId'] = account_id unless account_id.nil?
768
+ command.query['fields'] = fields unless fields.nil?
769
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
770
+ command.query['userIp'] = user_ip unless user_ip.nil?
771
+ execute_or_queue_command(command, &block)
772
+ end
773
+
774
+ # Lists the tax settings of the sub-accounts in your Merchant Center account.
775
+ # @param [String] merchant_id
776
+ # The ID of the managing account.
777
+ # @param [Fixnum] max_results
778
+ # The maximum number of tax settings to return in the response, used for paging.
779
+ # @param [String] page_token
780
+ # The token returned by the previous request.
781
+ # @param [String] fields
782
+ # Selector specifying which fields to include in a partial response.
783
+ # @param [String] quota_user
784
+ # Available to use for quota purposes for server-side applications. Can be any
785
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
786
+ # Overrides userIp if both are provided.
787
+ # @param [String] user_ip
788
+ # IP address of the site where the request originates. Use this if you want to
789
+ # enforce per-user limits.
790
+ # @param [Google::Apis::RequestOptions] options
791
+ # Request-specific options
792
+ #
793
+ # @yield [result, err] Result & error if block supplied
794
+ # @yieldparam result [Google::Apis::ContentV2::ListAccountTaxResponse] parsed result object
795
+ # @yieldparam err [StandardError] error object if request failed
796
+ #
797
+ # @return [Google::Apis::ContentV2::ListAccountTaxResponse]
798
+ #
799
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
800
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
801
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
802
+ def list_account_taxes(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
803
+ command = make_simple_command(:get, '{merchantId}/accounttax', options)
804
+ command.response_representation = Google::Apis::ContentV2::ListAccountTaxResponse::Representation
805
+ command.response_class = Google::Apis::ContentV2::ListAccountTaxResponse
806
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
807
+ command.query['maxResults'] = max_results unless max_results.nil?
808
+ command.query['pageToken'] = page_token unless page_token.nil?
809
+ command.query['fields'] = fields unless fields.nil?
810
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
811
+ command.query['userIp'] = user_ip unless user_ip.nil?
812
+ execute_or_queue_command(command, &block)
813
+ end
814
+
815
+ # Updates the tax settings of the account. This method supports patch semantics.
816
+ # @param [String] merchant_id
817
+ # The ID of the managing account.
818
+ # @param [String] account_id
819
+ # The ID of the account for which to get/update account tax settings.
820
+ # @param [Google::Apis::ContentV2::AccountTax] account_tax_object
821
+ # @param [Boolean] dry_run
822
+ # Flag to run the request in dry-run mode.
823
+ # @param [String] fields
824
+ # Selector specifying which fields to include in a partial response.
825
+ # @param [String] quota_user
826
+ # Available to use for quota purposes for server-side applications. Can be any
827
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
828
+ # Overrides userIp if both are provided.
829
+ # @param [String] user_ip
830
+ # IP address of the site where the request originates. Use this if you want to
831
+ # enforce per-user limits.
832
+ # @param [Google::Apis::RequestOptions] options
833
+ # Request-specific options
834
+ #
835
+ # @yield [result, err] Result & error if block supplied
836
+ # @yieldparam result [Google::Apis::ContentV2::AccountTax] parsed result object
837
+ # @yieldparam err [StandardError] error object if request failed
838
+ #
839
+ # @return [Google::Apis::ContentV2::AccountTax]
840
+ #
841
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
842
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
843
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
844
+ def patch_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
845
+ command = make_simple_command(:patch, '{merchantId}/accounttax/{accountId}', options)
846
+ command.request_representation = Google::Apis::ContentV2::AccountTax::Representation
847
+ command.request_object = account_tax_object
848
+ command.response_representation = Google::Apis::ContentV2::AccountTax::Representation
849
+ command.response_class = Google::Apis::ContentV2::AccountTax
850
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
851
+ command.params['accountId'] = account_id unless account_id.nil?
852
+ command.query['dryRun'] = dry_run unless dry_run.nil?
853
+ command.query['fields'] = fields unless fields.nil?
854
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
855
+ command.query['userIp'] = user_ip unless user_ip.nil?
856
+ execute_or_queue_command(command, &block)
857
+ end
858
+
859
+ # Updates the tax settings of the account.
860
+ # @param [String] merchant_id
861
+ # The ID of the managing account.
862
+ # @param [String] account_id
863
+ # The ID of the account for which to get/update account tax settings.
864
+ # @param [Google::Apis::ContentV2::AccountTax] account_tax_object
865
+ # @param [Boolean] dry_run
866
+ # Flag to run the request in dry-run mode.
867
+ # @param [String] fields
868
+ # Selector specifying which fields to include in a partial response.
869
+ # @param [String] quota_user
870
+ # Available to use for quota purposes for server-side applications. Can be any
871
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
872
+ # Overrides userIp if both are provided.
873
+ # @param [String] user_ip
874
+ # IP address of the site where the request originates. Use this if you want to
875
+ # enforce per-user limits.
876
+ # @param [Google::Apis::RequestOptions] options
877
+ # Request-specific options
878
+ #
879
+ # @yield [result, err] Result & error if block supplied
880
+ # @yieldparam result [Google::Apis::ContentV2::AccountTax] parsed result object
881
+ # @yieldparam err [StandardError] error object if request failed
882
+ #
883
+ # @return [Google::Apis::ContentV2::AccountTax]
884
+ #
885
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
886
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
887
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
888
+ def update_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
889
+ command = make_simple_command(:put, '{merchantId}/accounttax/{accountId}', options)
890
+ command.request_representation = Google::Apis::ContentV2::AccountTax::Representation
891
+ command.request_object = account_tax_object
892
+ command.response_representation = Google::Apis::ContentV2::AccountTax::Representation
893
+ command.response_class = Google::Apis::ContentV2::AccountTax
894
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
895
+ command.params['accountId'] = account_id unless account_id.nil?
896
+ command.query['dryRun'] = dry_run unless dry_run.nil?
897
+ command.query['fields'] = fields unless fields.nil?
898
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
899
+ command.query['userIp'] = user_ip unless user_ip.nil?
900
+ execute_or_queue_command(command, &block)
901
+ end
902
+
903
+ #
904
+ # @param [Google::Apis::ContentV2::BatchDatafeedsRequest] batch_datafeeds_request_object
905
+ # @param [Boolean] dry_run
906
+ # Flag to run the request in dry-run mode.
907
+ # @param [String] fields
908
+ # Selector specifying which fields to include in a partial response.
909
+ # @param [String] quota_user
910
+ # Available to use for quota purposes for server-side applications. Can be any
911
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
912
+ # Overrides userIp if both are provided.
913
+ # @param [String] user_ip
914
+ # IP address of the site where the request originates. Use this if you want to
915
+ # enforce per-user limits.
916
+ # @param [Google::Apis::RequestOptions] options
917
+ # Request-specific options
918
+ #
919
+ # @yield [result, err] Result & error if block supplied
920
+ # @yieldparam result [Google::Apis::ContentV2::BatchDatafeedsResponse] parsed result object
921
+ # @yieldparam err [StandardError] error object if request failed
922
+ #
923
+ # @return [Google::Apis::ContentV2::BatchDatafeedsResponse]
924
+ #
925
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
926
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
927
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
928
+ def batch_datafeed(batch_datafeeds_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
929
+ command = make_simple_command(:post, 'datafeeds/batch', options)
930
+ command.request_representation = Google::Apis::ContentV2::BatchDatafeedsRequest::Representation
931
+ command.request_object = batch_datafeeds_request_object
932
+ command.response_representation = Google::Apis::ContentV2::BatchDatafeedsResponse::Representation
933
+ command.response_class = Google::Apis::ContentV2::BatchDatafeedsResponse
934
+ command.query['dryRun'] = dry_run unless dry_run.nil?
935
+ command.query['fields'] = fields unless fields.nil?
936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
937
+ command.query['userIp'] = user_ip unless user_ip.nil?
938
+ execute_or_queue_command(command, &block)
939
+ end
940
+
941
+ # Deletes a datafeed from your Merchant Center account.
942
+ # @param [String] merchant_id
943
+ # @param [String] datafeed_id
944
+ # @param [Boolean] dry_run
945
+ # Flag to run the request in dry-run mode.
946
+ # @param [String] fields
947
+ # Selector specifying which fields to include in a partial response.
948
+ # @param [String] quota_user
949
+ # Available to use for quota purposes for server-side applications. Can be any
950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
951
+ # Overrides userIp if both are provided.
952
+ # @param [String] user_ip
953
+ # IP address of the site where the request originates. Use this if you want to
954
+ # enforce per-user limits.
955
+ # @param [Google::Apis::RequestOptions] options
956
+ # Request-specific options
957
+ #
958
+ # @yield [result, err] Result & error if block supplied
959
+ # @yieldparam result [NilClass] No result returned for this method
960
+ # @yieldparam err [StandardError] error object if request failed
961
+ #
962
+ # @return [void]
963
+ #
964
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
965
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
966
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
967
+ def delete_datafeed(merchant_id, datafeed_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
968
+ command = make_simple_command(:delete, '{merchantId}/datafeeds/{datafeedId}', options)
969
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
970
+ command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
971
+ command.query['dryRun'] = dry_run unless dry_run.nil?
972
+ command.query['fields'] = fields unless fields.nil?
973
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
974
+ command.query['userIp'] = user_ip unless user_ip.nil?
975
+ execute_or_queue_command(command, &block)
976
+ end
977
+
978
+ # Retrieves a datafeed from your Merchant Center account.
979
+ # @param [String] merchant_id
980
+ # @param [String] datafeed_id
981
+ # @param [String] fields
982
+ # Selector specifying which fields to include in a partial response.
983
+ # @param [String] quota_user
984
+ # Available to use for quota purposes for server-side applications. Can be any
985
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
986
+ # Overrides userIp if both are provided.
987
+ # @param [String] user_ip
988
+ # IP address of the site where the request originates. Use this if you want to
989
+ # enforce per-user limits.
990
+ # @param [Google::Apis::RequestOptions] options
991
+ # Request-specific options
992
+ #
993
+ # @yield [result, err] Result & error if block supplied
994
+ # @yieldparam result [Google::Apis::ContentV2::Datafeed] parsed result object
995
+ # @yieldparam err [StandardError] error object if request failed
996
+ #
997
+ # @return [Google::Apis::ContentV2::Datafeed]
998
+ #
999
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1000
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1001
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1002
+ def get_datafeed(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1003
+ command = make_simple_command(:get, '{merchantId}/datafeeds/{datafeedId}', options)
1004
+ command.response_representation = Google::Apis::ContentV2::Datafeed::Representation
1005
+ command.response_class = Google::Apis::ContentV2::Datafeed
1006
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1007
+ command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
1008
+ command.query['fields'] = fields unless fields.nil?
1009
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1010
+ command.query['userIp'] = user_ip unless user_ip.nil?
1011
+ execute_or_queue_command(command, &block)
1012
+ end
1013
+
1014
+ # Registers a datafeed with your Merchant Center account.
1015
+ # @param [String] merchant_id
1016
+ # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
1017
+ # @param [Boolean] dry_run
1018
+ # Flag to run the request in dry-run mode.
1019
+ # @param [String] fields
1020
+ # Selector specifying which fields to include in a partial response.
1021
+ # @param [String] quota_user
1022
+ # Available to use for quota purposes for server-side applications. Can be any
1023
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1024
+ # Overrides userIp if both are provided.
1025
+ # @param [String] user_ip
1026
+ # IP address of the site where the request originates. Use this if you want to
1027
+ # enforce per-user limits.
1028
+ # @param [Google::Apis::RequestOptions] options
1029
+ # Request-specific options
1030
+ #
1031
+ # @yield [result, err] Result & error if block supplied
1032
+ # @yieldparam result [Google::Apis::ContentV2::Datafeed] parsed result object
1033
+ # @yieldparam err [StandardError] error object if request failed
1034
+ #
1035
+ # @return [Google::Apis::ContentV2::Datafeed]
1036
+ #
1037
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1038
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1039
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1040
+ def insert_datafeed(merchant_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1041
+ command = make_simple_command(:post, '{merchantId}/datafeeds', options)
1042
+ command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
1043
+ command.request_object = datafeed_object
1044
+ command.response_representation = Google::Apis::ContentV2::Datafeed::Representation
1045
+ command.response_class = Google::Apis::ContentV2::Datafeed
1046
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1047
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1048
+ command.query['fields'] = fields unless fields.nil?
1049
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1050
+ command.query['userIp'] = user_ip unless user_ip.nil?
1051
+ execute_or_queue_command(command, &block)
1052
+ end
1053
+
1054
+ # Lists the datafeeds in your Merchant Center account.
1055
+ # @param [String] merchant_id
1056
+ # The ID of the managing account.
1057
+ # @param [Fixnum] max_results
1058
+ # The maximum number of products to return in the response, used for paging.
1059
+ # @param [String] page_token
1060
+ # The token returned by the previous request.
1061
+ # @param [String] fields
1062
+ # Selector specifying which fields to include in a partial response.
1063
+ # @param [String] quota_user
1064
+ # Available to use for quota purposes for server-side applications. Can be any
1065
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1066
+ # Overrides userIp if both are provided.
1067
+ # @param [String] user_ip
1068
+ # IP address of the site where the request originates. Use this if you want to
1069
+ # enforce per-user limits.
1070
+ # @param [Google::Apis::RequestOptions] options
1071
+ # Request-specific options
1072
+ #
1073
+ # @yield [result, err] Result & error if block supplied
1074
+ # @yieldparam result [Google::Apis::ContentV2::ListDatafeedsResponse] parsed result object
1075
+ # @yieldparam err [StandardError] error object if request failed
1076
+ #
1077
+ # @return [Google::Apis::ContentV2::ListDatafeedsResponse]
1078
+ #
1079
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1080
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1081
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1082
+ def list_datafeeds(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1083
+ command = make_simple_command(:get, '{merchantId}/datafeeds', options)
1084
+ command.response_representation = Google::Apis::ContentV2::ListDatafeedsResponse::Representation
1085
+ command.response_class = Google::Apis::ContentV2::ListDatafeedsResponse
1086
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1087
+ command.query['maxResults'] = max_results unless max_results.nil?
1088
+ command.query['pageToken'] = page_token unless page_token.nil?
1089
+ command.query['fields'] = fields unless fields.nil?
1090
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1091
+ command.query['userIp'] = user_ip unless user_ip.nil?
1092
+ execute_or_queue_command(command, &block)
1093
+ end
1094
+
1095
+ # Updates a datafeed of your Merchant Center account. This method supports patch
1096
+ # semantics.
1097
+ # @param [String] merchant_id
1098
+ # @param [String] datafeed_id
1099
+ # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
1100
+ # @param [Boolean] dry_run
1101
+ # Flag to run the request in dry-run mode.
1102
+ # @param [String] fields
1103
+ # Selector specifying which fields to include in a partial response.
1104
+ # @param [String] quota_user
1105
+ # Available to use for quota purposes for server-side applications. Can be any
1106
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1107
+ # Overrides userIp if both are provided.
1108
+ # @param [String] user_ip
1109
+ # IP address of the site where the request originates. Use this if you want to
1110
+ # enforce per-user limits.
1111
+ # @param [Google::Apis::RequestOptions] options
1112
+ # Request-specific options
1113
+ #
1114
+ # @yield [result, err] Result & error if block supplied
1115
+ # @yieldparam result [Google::Apis::ContentV2::Datafeed] parsed result object
1116
+ # @yieldparam err [StandardError] error object if request failed
1117
+ #
1118
+ # @return [Google::Apis::ContentV2::Datafeed]
1119
+ #
1120
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1121
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1122
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1123
+ def patch_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1124
+ command = make_simple_command(:patch, '{merchantId}/datafeeds/{datafeedId}', options)
1125
+ command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
1126
+ command.request_object = datafeed_object
1127
+ command.response_representation = Google::Apis::ContentV2::Datafeed::Representation
1128
+ command.response_class = Google::Apis::ContentV2::Datafeed
1129
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1130
+ command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
1131
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1132
+ command.query['fields'] = fields unless fields.nil?
1133
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1134
+ command.query['userIp'] = user_ip unless user_ip.nil?
1135
+ execute_or_queue_command(command, &block)
1136
+ end
1137
+
1138
+ # Updates a datafeed of your Merchant Center account.
1139
+ # @param [String] merchant_id
1140
+ # @param [String] datafeed_id
1141
+ # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
1142
+ # @param [Boolean] dry_run
1143
+ # Flag to run the request in dry-run mode.
1144
+ # @param [String] fields
1145
+ # Selector specifying which fields to include in a partial response.
1146
+ # @param [String] quota_user
1147
+ # Available to use for quota purposes for server-side applications. Can be any
1148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1149
+ # Overrides userIp if both are provided.
1150
+ # @param [String] user_ip
1151
+ # IP address of the site where the request originates. Use this if you want to
1152
+ # enforce per-user limits.
1153
+ # @param [Google::Apis::RequestOptions] options
1154
+ # Request-specific options
1155
+ #
1156
+ # @yield [result, err] Result & error if block supplied
1157
+ # @yieldparam result [Google::Apis::ContentV2::Datafeed] parsed result object
1158
+ # @yieldparam err [StandardError] error object if request failed
1159
+ #
1160
+ # @return [Google::Apis::ContentV2::Datafeed]
1161
+ #
1162
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1163
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1164
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1165
+ def update_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1166
+ command = make_simple_command(:put, '{merchantId}/datafeeds/{datafeedId}', options)
1167
+ command.request_representation = Google::Apis::ContentV2::Datafeed::Representation
1168
+ command.request_object = datafeed_object
1169
+ command.response_representation = Google::Apis::ContentV2::Datafeed::Representation
1170
+ command.response_class = Google::Apis::ContentV2::Datafeed
1171
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1172
+ command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
1173
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1174
+ command.query['fields'] = fields unless fields.nil?
1175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1176
+ command.query['userIp'] = user_ip unless user_ip.nil?
1177
+ execute_or_queue_command(command, &block)
1178
+ end
1179
+
1180
+ #
1181
+ # @param [Google::Apis::ContentV2::BatchDatafeedStatusesRequest] batch_datafeed_statuses_request_object
1182
+ # @param [String] fields
1183
+ # Selector specifying which fields to include in a partial response.
1184
+ # @param [String] quota_user
1185
+ # Available to use for quota purposes for server-side applications. Can be any
1186
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1187
+ # Overrides userIp if both are provided.
1188
+ # @param [String] user_ip
1189
+ # IP address of the site where the request originates. Use this if you want to
1190
+ # enforce per-user limits.
1191
+ # @param [Google::Apis::RequestOptions] options
1192
+ # Request-specific options
1193
+ #
1194
+ # @yield [result, err] Result & error if block supplied
1195
+ # @yieldparam result [Google::Apis::ContentV2::BatchDatafeedStatusesResponse] parsed result object
1196
+ # @yieldparam err [StandardError] error object if request failed
1197
+ #
1198
+ # @return [Google::Apis::ContentV2::BatchDatafeedStatusesResponse]
1199
+ #
1200
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1201
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1202
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1203
+ def batch_datafeed_status(batch_datafeed_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1204
+ command = make_simple_command(:post, 'datafeedstatuses/batch', options)
1205
+ command.request_representation = Google::Apis::ContentV2::BatchDatafeedStatusesRequest::Representation
1206
+ command.request_object = batch_datafeed_statuses_request_object
1207
+ command.response_representation = Google::Apis::ContentV2::BatchDatafeedStatusesResponse::Representation
1208
+ command.response_class = Google::Apis::ContentV2::BatchDatafeedStatusesResponse
1209
+ command.query['fields'] = fields unless fields.nil?
1210
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1211
+ command.query['userIp'] = user_ip unless user_ip.nil?
1212
+ execute_or_queue_command(command, &block)
1213
+ end
1214
+
1215
+ # Retrieves the status of a datafeed from your Merchant Center account.
1216
+ # @param [String] merchant_id
1217
+ # @param [String] datafeed_id
1218
+ # @param [String] fields
1219
+ # Selector specifying which fields to include in a partial response.
1220
+ # @param [String] quota_user
1221
+ # Available to use for quota purposes for server-side applications. Can be any
1222
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1223
+ # Overrides userIp if both are provided.
1224
+ # @param [String] user_ip
1225
+ # IP address of the site where the request originates. Use this if you want to
1226
+ # enforce per-user limits.
1227
+ # @param [Google::Apis::RequestOptions] options
1228
+ # Request-specific options
1229
+ #
1230
+ # @yield [result, err] Result & error if block supplied
1231
+ # @yieldparam result [Google::Apis::ContentV2::DatafeedStatus] parsed result object
1232
+ # @yieldparam err [StandardError] error object if request failed
1233
+ #
1234
+ # @return [Google::Apis::ContentV2::DatafeedStatus]
1235
+ #
1236
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1237
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1238
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1239
+ def get_datafeed_status(merchant_id, datafeed_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1240
+ command = make_simple_command(:get, '{merchantId}/datafeedstatuses/{datafeedId}', options)
1241
+ command.response_representation = Google::Apis::ContentV2::DatafeedStatus::Representation
1242
+ command.response_class = Google::Apis::ContentV2::DatafeedStatus
1243
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1244
+ command.params['datafeedId'] = datafeed_id unless datafeed_id.nil?
1245
+ command.query['fields'] = fields unless fields.nil?
1246
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1247
+ command.query['userIp'] = user_ip unless user_ip.nil?
1248
+ execute_or_queue_command(command, &block)
1249
+ end
1250
+
1251
+ # Lists the statuses of the datafeeds in your Merchant Center account.
1252
+ # @param [String] merchant_id
1253
+ # The ID of the managing account.
1254
+ # @param [Fixnum] max_results
1255
+ # The maximum number of products to return in the response, used for paging.
1256
+ # @param [String] page_token
1257
+ # The token returned by the previous request.
1258
+ # @param [String] fields
1259
+ # Selector specifying which fields to include in a partial response.
1260
+ # @param [String] quota_user
1261
+ # Available to use for quota purposes for server-side applications. Can be any
1262
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1263
+ # Overrides userIp if both are provided.
1264
+ # @param [String] user_ip
1265
+ # IP address of the site where the request originates. Use this if you want to
1266
+ # enforce per-user limits.
1267
+ # @param [Google::Apis::RequestOptions] options
1268
+ # Request-specific options
1269
+ #
1270
+ # @yield [result, err] Result & error if block supplied
1271
+ # @yieldparam result [Google::Apis::ContentV2::ListDatafeedStatusesResponse] parsed result object
1272
+ # @yieldparam err [StandardError] error object if request failed
1273
+ #
1274
+ # @return [Google::Apis::ContentV2::ListDatafeedStatusesResponse]
1275
+ #
1276
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1277
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1278
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1279
+ def list_datafeed_statuses(merchant_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1280
+ command = make_simple_command(:get, '{merchantId}/datafeedstatuses', options)
1281
+ command.response_representation = Google::Apis::ContentV2::ListDatafeedStatusesResponse::Representation
1282
+ command.response_class = Google::Apis::ContentV2::ListDatafeedStatusesResponse
1283
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1284
+ command.query['maxResults'] = max_results unless max_results.nil?
1285
+ command.query['pageToken'] = page_token unless page_token.nil?
1286
+ command.query['fields'] = fields unless fields.nil?
1287
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1288
+ command.query['userIp'] = user_ip unless user_ip.nil?
1289
+ execute_or_queue_command(command, &block)
1290
+ end
1291
+
1292
+ # Updates price and availability for multiple products or stores in a single
1293
+ # request. This operation does not update the expiration date of the products.
1294
+ # @param [Google::Apis::ContentV2::BatchInventoryRequest] batch_inventory_request_object
1295
+ # @param [Boolean] dry_run
1296
+ # Flag to run the request in dry-run mode.
1297
+ # @param [String] fields
1298
+ # Selector specifying which fields to include in a partial response.
1299
+ # @param [String] quota_user
1300
+ # Available to use for quota purposes for server-side applications. Can be any
1301
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1302
+ # Overrides userIp if both are provided.
1303
+ # @param [String] user_ip
1304
+ # IP address of the site where the request originates. Use this if you want to
1305
+ # enforce per-user limits.
1306
+ # @param [Google::Apis::RequestOptions] options
1307
+ # Request-specific options
1308
+ #
1309
+ # @yield [result, err] Result & error if block supplied
1310
+ # @yieldparam result [Google::Apis::ContentV2::BatchInventoryResponse] parsed result object
1311
+ # @yieldparam err [StandardError] error object if request failed
1312
+ #
1313
+ # @return [Google::Apis::ContentV2::BatchInventoryResponse]
1314
+ #
1315
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1316
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1317
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1318
+ def batch_inventory(batch_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1319
+ command = make_simple_command(:post, 'inventory/batch', options)
1320
+ command.request_representation = Google::Apis::ContentV2::BatchInventoryRequest::Representation
1321
+ command.request_object = batch_inventory_request_object
1322
+ command.response_representation = Google::Apis::ContentV2::BatchInventoryResponse::Representation
1323
+ command.response_class = Google::Apis::ContentV2::BatchInventoryResponse
1324
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1325
+ command.query['fields'] = fields unless fields.nil?
1326
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1327
+ command.query['userIp'] = user_ip unless user_ip.nil?
1328
+ execute_or_queue_command(command, &block)
1329
+ end
1330
+
1331
+ # Updates price and availability of a product in your Merchant Center account.
1332
+ # This operation does not update the expiration date of the product.
1333
+ # @param [String] merchant_id
1334
+ # The ID of the managing account.
1335
+ # @param [String] store_code
1336
+ # The code of the store for which to update price and availability. Use online
1337
+ # to update price and availability of an online product.
1338
+ # @param [String] product_id
1339
+ # The ID of the product for which to update price and availability.
1340
+ # @param [Google::Apis::ContentV2::SetInventoryRequest] set_inventory_request_object
1341
+ # @param [Boolean] dry_run
1342
+ # Flag to run the request in dry-run mode.
1343
+ # @param [String] fields
1344
+ # Selector specifying which fields to include in a partial response.
1345
+ # @param [String] quota_user
1346
+ # Available to use for quota purposes for server-side applications. Can be any
1347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1348
+ # Overrides userIp if both are provided.
1349
+ # @param [String] user_ip
1350
+ # IP address of the site where the request originates. Use this if you want to
1351
+ # enforce per-user limits.
1352
+ # @param [Google::Apis::RequestOptions] options
1353
+ # Request-specific options
1354
+ #
1355
+ # @yield [result, err] Result & error if block supplied
1356
+ # @yieldparam result [Google::Apis::ContentV2::SetInventoryResponse] parsed result object
1357
+ # @yieldparam err [StandardError] error object if request failed
1358
+ #
1359
+ # @return [Google::Apis::ContentV2::SetInventoryResponse]
1360
+ #
1361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1364
+ def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1365
+ command = make_simple_command(:post, '{merchantId}/inventory/{storeCode}/products/{productId}', options)
1366
+ command.request_representation = Google::Apis::ContentV2::SetInventoryRequest::Representation
1367
+ command.request_object = set_inventory_request_object
1368
+ command.response_representation = Google::Apis::ContentV2::SetInventoryResponse::Representation
1369
+ command.response_class = Google::Apis::ContentV2::SetInventoryResponse
1370
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1371
+ command.params['storeCode'] = store_code unless store_code.nil?
1372
+ command.params['productId'] = product_id unless product_id.nil?
1373
+ command.query['dryRun'] = dry_run unless dry_run.nil?
1374
+ command.query['fields'] = fields unless fields.nil?
1375
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1376
+ command.query['userIp'] = user_ip unless user_ip.nil?
1377
+ execute_or_queue_command(command, &block)
1378
+ end
1379
+
1380
+ # Marks an order as acknowledged.
1381
+ # @param [String] merchant_id
1382
+ # The ID of the managing account.
1383
+ # @param [String] order_id
1384
+ # The ID of the order.
1385
+ # @param [Google::Apis::ContentV2::OrdersAcknowledgeRequest] orders_acknowledge_request_object
1386
+ # @param [String] fields
1387
+ # Selector specifying which fields to include in a partial response.
1388
+ # @param [String] quota_user
1389
+ # Available to use for quota purposes for server-side applications. Can be any
1390
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1391
+ # Overrides userIp if both are provided.
1392
+ # @param [String] user_ip
1393
+ # IP address of the site where the request originates. Use this if you want to
1394
+ # enforce per-user limits.
1395
+ # @param [Google::Apis::RequestOptions] options
1396
+ # Request-specific options
1397
+ #
1398
+ # @yield [result, err] Result & error if block supplied
1399
+ # @yieldparam result [Google::Apis::ContentV2::OrdersAcknowledgeResponse] parsed result object
1400
+ # @yieldparam err [StandardError] error object if request failed
1401
+ #
1402
+ # @return [Google::Apis::ContentV2::OrdersAcknowledgeResponse]
1403
+ #
1404
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1405
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1406
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1407
+ def acknowledge_order(merchant_id, order_id, orders_acknowledge_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1408
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/acknowledge', options)
1409
+ command.request_representation = Google::Apis::ContentV2::OrdersAcknowledgeRequest::Representation
1410
+ command.request_object = orders_acknowledge_request_object
1411
+ command.response_representation = Google::Apis::ContentV2::OrdersAcknowledgeResponse::Representation
1412
+ command.response_class = Google::Apis::ContentV2::OrdersAcknowledgeResponse
1413
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1414
+ command.params['orderId'] = order_id unless order_id.nil?
1415
+ command.query['fields'] = fields unless fields.nil?
1416
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1417
+ command.query['userIp'] = user_ip unless user_ip.nil?
1418
+ execute_or_queue_command(command, &block)
1419
+ end
1420
+
1421
+ # Sandbox only. Moves a test order from state "inProgress" to state "
1422
+ # pendingShipment".
1423
+ # @param [String] merchant_id
1424
+ # The ID of the managing account.
1425
+ # @param [String] order_id
1426
+ # The ID of the test order to modify.
1427
+ # @param [String] fields
1428
+ # Selector specifying which fields to include in a partial response.
1429
+ # @param [String] quota_user
1430
+ # Available to use for quota purposes for server-side applications. Can be any
1431
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1432
+ # Overrides userIp if both are provided.
1433
+ # @param [String] user_ip
1434
+ # IP address of the site where the request originates. Use this if you want to
1435
+ # enforce per-user limits.
1436
+ # @param [Google::Apis::RequestOptions] options
1437
+ # Request-specific options
1438
+ #
1439
+ # @yield [result, err] Result & error if block supplied
1440
+ # @yieldparam result [Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse] parsed result object
1441
+ # @yieldparam err [StandardError] error object if request failed
1442
+ #
1443
+ # @return [Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse]
1444
+ #
1445
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1446
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1447
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1448
+ def advance_test_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1449
+ command = make_simple_command(:post, '{merchantId}/testorders/{orderId}/advance', options)
1450
+ command.response_representation = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse::Representation
1451
+ command.response_class = Google::Apis::ContentV2::OrdersAdvanceTestOrderResponse
1452
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1453
+ command.params['orderId'] = order_id unless order_id.nil?
1454
+ command.query['fields'] = fields unless fields.nil?
1455
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1456
+ command.query['userIp'] = user_ip unless user_ip.nil?
1457
+ execute_or_queue_command(command, &block)
1458
+ end
1459
+
1460
+ # Cancels all line items in an order.
1461
+ # @param [String] merchant_id
1462
+ # The ID of the managing account.
1463
+ # @param [String] order_id
1464
+ # The ID of the order to cancel.
1465
+ # @param [Google::Apis::ContentV2::OrdersCancelRequest] orders_cancel_request_object
1466
+ # @param [String] fields
1467
+ # Selector specifying which fields to include in a partial response.
1468
+ # @param [String] quota_user
1469
+ # Available to use for quota purposes for server-side applications. Can be any
1470
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1471
+ # Overrides userIp if both are provided.
1472
+ # @param [String] user_ip
1473
+ # IP address of the site where the request originates. Use this if you want to
1474
+ # enforce per-user limits.
1475
+ # @param [Google::Apis::RequestOptions] options
1476
+ # Request-specific options
1477
+ #
1478
+ # @yield [result, err] Result & error if block supplied
1479
+ # @yieldparam result [Google::Apis::ContentV2::OrdersCancelResponse] parsed result object
1480
+ # @yieldparam err [StandardError] error object if request failed
1481
+ #
1482
+ # @return [Google::Apis::ContentV2::OrdersCancelResponse]
1483
+ #
1484
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1485
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1486
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1487
+ def cancel_order(merchant_id, order_id, orders_cancel_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1488
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancel', options)
1489
+ command.request_representation = Google::Apis::ContentV2::OrdersCancelRequest::Representation
1490
+ command.request_object = orders_cancel_request_object
1491
+ command.response_representation = Google::Apis::ContentV2::OrdersCancelResponse::Representation
1492
+ command.response_class = Google::Apis::ContentV2::OrdersCancelResponse
1493
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1494
+ command.params['orderId'] = order_id unless order_id.nil?
1495
+ command.query['fields'] = fields unless fields.nil?
1496
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1497
+ command.query['userIp'] = user_ip unless user_ip.nil?
1498
+ execute_or_queue_command(command, &block)
1499
+ end
1500
+
1501
+ # Cancels a line item.
1502
+ # @param [String] merchant_id
1503
+ # The ID of the managing account.
1504
+ # @param [String] order_id
1505
+ # The ID of the order.
1506
+ # @param [Google::Apis::ContentV2::OrdersCancelLineItemRequest] orders_cancel_line_item_request_object
1507
+ # @param [String] fields
1508
+ # Selector specifying which fields to include in a partial response.
1509
+ # @param [String] quota_user
1510
+ # Available to use for quota purposes for server-side applications. Can be any
1511
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1512
+ # Overrides userIp if both are provided.
1513
+ # @param [String] user_ip
1514
+ # IP address of the site where the request originates. Use this if you want to
1515
+ # enforce per-user limits.
1516
+ # @param [Google::Apis::RequestOptions] options
1517
+ # Request-specific options
1518
+ #
1519
+ # @yield [result, err] Result & error if block supplied
1520
+ # @yieldparam result [Google::Apis::ContentV2::OrdersCancelLineItemResponse] parsed result object
1521
+ # @yieldparam err [StandardError] error object if request failed
1522
+ #
1523
+ # @return [Google::Apis::ContentV2::OrdersCancelLineItemResponse]
1524
+ #
1525
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1526
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1527
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1528
+ def cancel_order_line_item(merchant_id, order_id, orders_cancel_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1529
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/cancelLineItem', options)
1530
+ command.request_representation = Google::Apis::ContentV2::OrdersCancelLineItemRequest::Representation
1531
+ command.request_object = orders_cancel_line_item_request_object
1532
+ command.response_representation = Google::Apis::ContentV2::OrdersCancelLineItemResponse::Representation
1533
+ command.response_class = Google::Apis::ContentV2::OrdersCancelLineItemResponse
1534
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1535
+ command.params['orderId'] = order_id unless order_id.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
+ # Sandbox only. Creates a test order.
1543
+ # @param [String] merchant_id
1544
+ # The ID of the managing account.
1545
+ # @param [Google::Apis::ContentV2::OrdersCreateTestOrderRequest] orders_create_test_order_request_object
1546
+ # @param [String] fields
1547
+ # Selector specifying which fields to include in a partial response.
1548
+ # @param [String] quota_user
1549
+ # Available to use for quota purposes for server-side applications. Can be any
1550
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1551
+ # Overrides userIp if both are provided.
1552
+ # @param [String] user_ip
1553
+ # IP address of the site where the request originates. Use this if you want to
1554
+ # enforce per-user limits.
1555
+ # @param [Google::Apis::RequestOptions] options
1556
+ # Request-specific options
1557
+ #
1558
+ # @yield [result, err] Result & error if block supplied
1559
+ # @yieldparam result [Google::Apis::ContentV2::OrdersCreateTestOrderResponse] parsed result object
1560
+ # @yieldparam err [StandardError] error object if request failed
1561
+ #
1562
+ # @return [Google::Apis::ContentV2::OrdersCreateTestOrderResponse]
1563
+ #
1564
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1565
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1566
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1567
+ def create_test_order(merchant_id, orders_create_test_order_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1568
+ command = make_simple_command(:post, '{merchantId}/testorders', options)
1569
+ command.request_representation = Google::Apis::ContentV2::OrdersCreateTestOrderRequest::Representation
1570
+ command.request_object = orders_create_test_order_request_object
1571
+ command.response_representation = Google::Apis::ContentV2::OrdersCreateTestOrderResponse::Representation
1572
+ command.response_class = Google::Apis::ContentV2::OrdersCreateTestOrderResponse
1573
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1574
+ command.query['fields'] = fields unless fields.nil?
1575
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1576
+ command.query['userIp'] = user_ip unless user_ip.nil?
1577
+ execute_or_queue_command(command, &block)
1578
+ end
1579
+
1580
+ # Retrieves or modifies multiple orders in a single request.
1581
+ # @param [Google::Apis::ContentV2::OrdersCustomBatchRequest] orders_custom_batch_request_object
1582
+ # @param [String] fields
1583
+ # Selector specifying which fields to include in a partial response.
1584
+ # @param [String] quota_user
1585
+ # Available to use for quota purposes for server-side applications. Can be any
1586
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1587
+ # Overrides userIp if both are provided.
1588
+ # @param [String] user_ip
1589
+ # IP address of the site where the request originates. Use this if you want to
1590
+ # enforce per-user limits.
1591
+ # @param [Google::Apis::RequestOptions] options
1592
+ # Request-specific options
1593
+ #
1594
+ # @yield [result, err] Result & error if block supplied
1595
+ # @yieldparam result [Google::Apis::ContentV2::OrdersCustomBatchResponse] parsed result object
1596
+ # @yieldparam err [StandardError] error object if request failed
1597
+ #
1598
+ # @return [Google::Apis::ContentV2::OrdersCustomBatchResponse]
1599
+ #
1600
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1601
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1602
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1603
+ def custom_order_batch(orders_custom_batch_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1604
+ command = make_simple_command(:post, 'orders/batch', options)
1605
+ command.request_representation = Google::Apis::ContentV2::OrdersCustomBatchRequest::Representation
1606
+ command.request_object = orders_custom_batch_request_object
1607
+ command.response_representation = Google::Apis::ContentV2::OrdersCustomBatchResponse::Representation
1608
+ command.response_class = Google::Apis::ContentV2::OrdersCustomBatchResponse
1609
+ command.query['fields'] = fields unless fields.nil?
1610
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1611
+ command.query['userIp'] = user_ip unless user_ip.nil?
1612
+ execute_or_queue_command(command, &block)
1613
+ end
1614
+
1615
+ # Retrieves an order from your Merchant Center account.
1616
+ # @param [String] merchant_id
1617
+ # The ID of the managing account.
1618
+ # @param [String] order_id
1619
+ # The ID of the order.
1620
+ # @param [String] fields
1621
+ # Selector specifying which fields to include in a partial response.
1622
+ # @param [String] quota_user
1623
+ # Available to use for quota purposes for server-side applications. Can be any
1624
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1625
+ # Overrides userIp if both are provided.
1626
+ # @param [String] user_ip
1627
+ # IP address of the site where the request originates. Use this if you want to
1628
+ # enforce per-user limits.
1629
+ # @param [Google::Apis::RequestOptions] options
1630
+ # Request-specific options
1631
+ #
1632
+ # @yield [result, err] Result & error if block supplied
1633
+ # @yieldparam result [Google::Apis::ContentV2::Order] parsed result object
1634
+ # @yieldparam err [StandardError] error object if request failed
1635
+ #
1636
+ # @return [Google::Apis::ContentV2::Order]
1637
+ #
1638
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1639
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1640
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1641
+ def get_order(merchant_id, order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1642
+ command = make_simple_command(:get, '{merchantId}/orders/{orderId}', options)
1643
+ command.response_representation = Google::Apis::ContentV2::Order::Representation
1644
+ command.response_class = Google::Apis::ContentV2::Order
1645
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1646
+ command.params['orderId'] = order_id unless order_id.nil?
1647
+ command.query['fields'] = fields unless fields.nil?
1648
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1649
+ command.query['userIp'] = user_ip unless user_ip.nil?
1650
+ execute_or_queue_command(command, &block)
1651
+ end
1652
+
1653
+ # Retrieves an order using merchant order id.
1654
+ # @param [String] merchant_id
1655
+ # The ID of the managing account.
1656
+ # @param [String] merchant_order_id
1657
+ # The merchant order id to be looked for.
1658
+ # @param [String] fields
1659
+ # Selector specifying which fields to include in a partial response.
1660
+ # @param [String] quota_user
1661
+ # Available to use for quota purposes for server-side applications. Can be any
1662
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1663
+ # Overrides userIp if both are provided.
1664
+ # @param [String] user_ip
1665
+ # IP address of the site where the request originates. Use this if you want to
1666
+ # enforce per-user limits.
1667
+ # @param [Google::Apis::RequestOptions] options
1668
+ # Request-specific options
1669
+ #
1670
+ # @yield [result, err] Result & error if block supplied
1671
+ # @yieldparam result [Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse] parsed result object
1672
+ # @yieldparam err [StandardError] error object if request failed
1673
+ #
1674
+ # @return [Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse]
1675
+ #
1676
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1677
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1678
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1679
+ def get_order_by_merchant_order_id(merchant_id, merchant_order_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1680
+ command = make_simple_command(:get, '{merchantId}/ordersbymerchantid/{merchantOrderId}', options)
1681
+ command.response_representation = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse::Representation
1682
+ command.response_class = Google::Apis::ContentV2::OrdersGetByMerchantOrderIdResponse
1683
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1684
+ command.params['merchantOrderId'] = merchant_order_id unless merchant_order_id.nil?
1685
+ command.query['fields'] = fields unless fields.nil?
1686
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1687
+ command.query['userIp'] = user_ip unless user_ip.nil?
1688
+ execute_or_queue_command(command, &block)
1689
+ end
1690
+
1691
+ # Sandbox only. Retrieves an order template that can be used to quickly create a
1692
+ # new order in sandbox.
1693
+ # @param [String] merchant_id
1694
+ # The ID of the managing account.
1695
+ # @param [String] template_name
1696
+ # The name of the template to retrieve.
1697
+ # @param [String] fields
1698
+ # Selector specifying which fields to include in a partial response.
1699
+ # @param [String] quota_user
1700
+ # Available to use for quota purposes for server-side applications. Can be any
1701
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1702
+ # Overrides userIp if both are provided.
1703
+ # @param [String] user_ip
1704
+ # IP address of the site where the request originates. Use this if you want to
1705
+ # enforce per-user limits.
1706
+ # @param [Google::Apis::RequestOptions] options
1707
+ # Request-specific options
1708
+ #
1709
+ # @yield [result, err] Result & error if block supplied
1710
+ # @yieldparam result [Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse] parsed result object
1711
+ # @yieldparam err [StandardError] error object if request failed
1712
+ #
1713
+ # @return [Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse]
1714
+ #
1715
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1716
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1717
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1718
+ def get_test_order_template(merchant_id, template_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1719
+ command = make_simple_command(:get, '{merchantId}/testordertemplates/{templateName}', options)
1720
+ command.response_representation = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse::Representation
1721
+ command.response_class = Google::Apis::ContentV2::OrdersGetTestOrderTemplateResponse
1722
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1723
+ command.params['templateName'] = template_name unless template_name.nil?
1724
+ command.query['fields'] = fields unless fields.nil?
1725
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1726
+ command.query['userIp'] = user_ip unless user_ip.nil?
1727
+ execute_or_queue_command(command, &block)
1728
+ end
1729
+
1730
+ # Lists the orders in your Merchant Center account.
1731
+ # @param [String] merchant_id
1732
+ # The ID of the managing account.
1733
+ # @param [Boolean] acknowledged
1734
+ # Obtains orders that match the acknowledgement status. When set to true,
1735
+ # obtains orders that have been acknowledged. When false, obtains orders that
1736
+ # have not been acknowledged.
1737
+ # We recommend using this filter set to false, in conjunction with the
1738
+ # acknowledge call, such that only un-acknowledged orders are returned.
1739
+ # @param [Fixnum] max_results
1740
+ # The maximum number of orders to return in the response, used for paging. The
1741
+ # default value is 25 orders per page, and the maximum allowed value is 250
1742
+ # orders per page.
1743
+ # Known issue: All List calls will return all Orders without limit regardless of
1744
+ # the value of this field.
1745
+ # @param [String] order_by
1746
+ # The ordering of the returned list. The only supported value are placedDate
1747
+ # desc and placedDate asc for now, which returns orders sorted by placement date.
1748
+ # "placedDate desc" stands for listing orders by placement date, from oldest to
1749
+ # most recent. "placedDate asc" stands for listing orders by placement date,
1750
+ # from most recent to oldest. In future releases we'll support other sorting
1751
+ # criteria.
1752
+ # @param [String] page_token
1753
+ # The token returned by the previous request.
1754
+ # @param [String] placed_date_end
1755
+ # Obtains orders placed before this date (exclusively), in ISO 8601 format.
1756
+ # @param [String] placed_date_start
1757
+ # Obtains orders placed after this date (inclusively), in ISO 8601 format.
1758
+ # @param [Array<String>, String] statuses
1759
+ # Obtains orders that match any of the specified statuses. Multiple values can
1760
+ # be specified with comma separation. Additionally, please note that active is a
1761
+ # shortcut for pendingShipment and partiallyShipped, and completed is a shortcut
1762
+ # for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and
1763
+ # canceled.
1764
+ # @param [String] fields
1765
+ # Selector specifying which fields to include in a partial response.
1766
+ # @param [String] quota_user
1767
+ # Available to use for quota purposes for server-side applications. Can be any
1768
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1769
+ # Overrides userIp if both are provided.
1770
+ # @param [String] user_ip
1771
+ # IP address of the site where the request originates. Use this if you want to
1772
+ # enforce per-user limits.
1773
+ # @param [Google::Apis::RequestOptions] options
1774
+ # Request-specific options
1775
+ #
1776
+ # @yield [result, err] Result & error if block supplied
1777
+ # @yieldparam result [Google::Apis::ContentV2::OrdersListResponse] parsed result object
1778
+ # @yieldparam err [StandardError] error object if request failed
1779
+ #
1780
+ # @return [Google::Apis::ContentV2::OrdersListResponse]
1781
+ #
1782
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1783
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1784
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1785
+ def list_orders(merchant_id, acknowledged: nil, max_results: nil, order_by: nil, page_token: nil, placed_date_end: nil, placed_date_start: nil, statuses: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1786
+ command = make_simple_command(:get, '{merchantId}/orders', options)
1787
+ command.response_representation = Google::Apis::ContentV2::OrdersListResponse::Representation
1788
+ command.response_class = Google::Apis::ContentV2::OrdersListResponse
1789
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1790
+ command.query['acknowledged'] = acknowledged unless acknowledged.nil?
1791
+ command.query['maxResults'] = max_results unless max_results.nil?
1792
+ command.query['orderBy'] = order_by unless order_by.nil?
1793
+ command.query['pageToken'] = page_token unless page_token.nil?
1794
+ command.query['placedDateEnd'] = placed_date_end unless placed_date_end.nil?
1795
+ command.query['placedDateStart'] = placed_date_start unless placed_date_start.nil?
1796
+ command.query['statuses'] = statuses unless statuses.nil?
1797
+ command.query['fields'] = fields unless fields.nil?
1798
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1799
+ command.query['userIp'] = user_ip unless user_ip.nil?
1800
+ execute_or_queue_command(command, &block)
1801
+ end
1802
+
1803
+ # Refund a portion of the order, up to the full amount paid.
1804
+ # @param [String] merchant_id
1805
+ # The ID of the managing account.
1806
+ # @param [String] order_id
1807
+ # The ID of the order to refund.
1808
+ # @param [Google::Apis::ContentV2::OrdersRefundRequest] orders_refund_request_object
1809
+ # @param [String] fields
1810
+ # Selector specifying which fields to include in a partial response.
1811
+ # @param [String] quota_user
1812
+ # Available to use for quota purposes for server-side applications. Can be any
1813
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1814
+ # Overrides userIp if both are provided.
1815
+ # @param [String] user_ip
1816
+ # IP address of the site where the request originates. Use this if you want to
1817
+ # enforce per-user limits.
1818
+ # @param [Google::Apis::RequestOptions] options
1819
+ # Request-specific options
1820
+ #
1821
+ # @yield [result, err] Result & error if block supplied
1822
+ # @yieldparam result [Google::Apis::ContentV2::OrdersRefundResponse] parsed result object
1823
+ # @yieldparam err [StandardError] error object if request failed
1824
+ #
1825
+ # @return [Google::Apis::ContentV2::OrdersRefundResponse]
1826
+ #
1827
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1828
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1829
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1830
+ def refund_order(merchant_id, order_id, orders_refund_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1831
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/refund', options)
1832
+ command.request_representation = Google::Apis::ContentV2::OrdersRefundRequest::Representation
1833
+ command.request_object = orders_refund_request_object
1834
+ command.response_representation = Google::Apis::ContentV2::OrdersRefundResponse::Representation
1835
+ command.response_class = Google::Apis::ContentV2::OrdersRefundResponse
1836
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1837
+ command.params['orderId'] = order_id unless order_id.nil?
1838
+ command.query['fields'] = fields unless fields.nil?
1839
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1840
+ command.query['userIp'] = user_ip unless user_ip.nil?
1841
+ execute_or_queue_command(command, &block)
1842
+ end
1843
+
1844
+ # Returns a line item.
1845
+ # @param [String] merchant_id
1846
+ # The ID of the managing account.
1847
+ # @param [String] order_id
1848
+ # The ID of the order.
1849
+ # @param [Google::Apis::ContentV2::OrdersReturnLineItemRequest] orders_return_line_item_request_object
1850
+ # @param [String] fields
1851
+ # Selector specifying which fields to include in a partial response.
1852
+ # @param [String] quota_user
1853
+ # Available to use for quota purposes for server-side applications. Can be any
1854
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1855
+ # Overrides userIp if both are provided.
1856
+ # @param [String] user_ip
1857
+ # IP address of the site where the request originates. Use this if you want to
1858
+ # enforce per-user limits.
1859
+ # @param [Google::Apis::RequestOptions] options
1860
+ # Request-specific options
1861
+ #
1862
+ # @yield [result, err] Result & error if block supplied
1863
+ # @yieldparam result [Google::Apis::ContentV2::OrdersReturnLineItemResponse] parsed result object
1864
+ # @yieldparam err [StandardError] error object if request failed
1865
+ #
1866
+ # @return [Google::Apis::ContentV2::OrdersReturnLineItemResponse]
1867
+ #
1868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1871
+ def return_order_line_item(merchant_id, order_id, orders_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1872
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnLineItem', options)
1873
+ command.request_representation = Google::Apis::ContentV2::OrdersReturnLineItemRequest::Representation
1874
+ command.request_object = orders_return_line_item_request_object
1875
+ command.response_representation = Google::Apis::ContentV2::OrdersReturnLineItemResponse::Representation
1876
+ command.response_class = Google::Apis::ContentV2::OrdersReturnLineItemResponse
1877
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1878
+ command.params['orderId'] = order_id unless order_id.nil?
1879
+ command.query['fields'] = fields unless fields.nil?
1880
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1881
+ command.query['userIp'] = user_ip unless user_ip.nil?
1882
+ execute_or_queue_command(command, &block)
1883
+ end
1884
+
1885
+ # Marks line item(s) as shipped.
1886
+ # @param [String] merchant_id
1887
+ # The ID of the managing account.
1888
+ # @param [String] order_id
1889
+ # The ID of the order.
1890
+ # @param [Google::Apis::ContentV2::OrdersShipLineItemsRequest] orders_ship_line_items_request_object
1891
+ # @param [String] fields
1892
+ # Selector specifying which fields to include in a partial response.
1893
+ # @param [String] quota_user
1894
+ # Available to use for quota purposes for server-side applications. Can be any
1895
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1896
+ # Overrides userIp if both are provided.
1897
+ # @param [String] user_ip
1898
+ # IP address of the site where the request originates. Use this if you want to
1899
+ # enforce per-user limits.
1900
+ # @param [Google::Apis::RequestOptions] options
1901
+ # Request-specific options
1902
+ #
1903
+ # @yield [result, err] Result & error if block supplied
1904
+ # @yieldparam result [Google::Apis::ContentV2::OrdersShipLineItemsResponse] parsed result object
1905
+ # @yieldparam err [StandardError] error object if request failed
1906
+ #
1907
+ # @return [Google::Apis::ContentV2::OrdersShipLineItemsResponse]
1908
+ #
1909
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1910
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1911
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1912
+ def shiplineitems_order(merchant_id, order_id, orders_ship_line_items_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1913
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/shipLineItems', options)
1914
+ command.request_representation = Google::Apis::ContentV2::OrdersShipLineItemsRequest::Representation
1915
+ command.request_object = orders_ship_line_items_request_object
1916
+ command.response_representation = Google::Apis::ContentV2::OrdersShipLineItemsResponse::Representation
1917
+ command.response_class = Google::Apis::ContentV2::OrdersShipLineItemsResponse
1918
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1919
+ command.params['orderId'] = order_id unless order_id.nil?
1920
+ command.query['fields'] = fields unless fields.nil?
1921
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1922
+ command.query['userIp'] = user_ip unless user_ip.nil?
1923
+ execute_or_queue_command(command, &block)
1924
+ end
1925
+
1926
+ # Updates the merchant order ID for a given order.
1927
+ # @param [String] merchant_id
1928
+ # The ID of the managing account.
1929
+ # @param [String] order_id
1930
+ # The ID of the order.
1931
+ # @param [Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdRequest] orders_update_merchant_order_id_request_object
1932
+ # @param [String] fields
1933
+ # Selector specifying which fields to include in a partial response.
1934
+ # @param [String] quota_user
1935
+ # Available to use for quota purposes for server-side applications. Can be any
1936
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1937
+ # Overrides userIp if both are provided.
1938
+ # @param [String] user_ip
1939
+ # IP address of the site where the request originates. Use this if you want to
1940
+ # enforce per-user limits.
1941
+ # @param [Google::Apis::RequestOptions] options
1942
+ # Request-specific options
1943
+ #
1944
+ # @yield [result, err] Result & error if block supplied
1945
+ # @yieldparam result [Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse] parsed result object
1946
+ # @yieldparam err [StandardError] error object if request failed
1947
+ #
1948
+ # @return [Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse]
1949
+ #
1950
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1951
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1952
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1953
+ def update_merchant_order_id(merchant_id, order_id, orders_update_merchant_order_id_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1954
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateMerchantOrderId', options)
1955
+ command.request_representation = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdRequest::Representation
1956
+ command.request_object = orders_update_merchant_order_id_request_object
1957
+ command.response_representation = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse::Representation
1958
+ command.response_class = Google::Apis::ContentV2::OrdersUpdateMerchantOrderIdResponse
1959
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1960
+ command.params['orderId'] = order_id unless order_id.nil?
1961
+ command.query['fields'] = fields unless fields.nil?
1962
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1963
+ command.query['userIp'] = user_ip unless user_ip.nil?
1964
+ execute_or_queue_command(command, &block)
1965
+ end
1966
+
1967
+ # Updates a shipment's status, carrier, and/or tracking ID.
1968
+ # @param [String] merchant_id
1969
+ # The ID of the managing account.
1970
+ # @param [String] order_id
1971
+ # The ID of the order.
1972
+ # @param [Google::Apis::ContentV2::OrdersUpdateShipmentRequest] orders_update_shipment_request_object
1973
+ # @param [String] fields
1974
+ # Selector specifying which fields to include in a partial response.
1975
+ # @param [String] quota_user
1976
+ # Available to use for quota purposes for server-side applications. Can be any
1977
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1978
+ # Overrides userIp if both are provided.
1979
+ # @param [String] user_ip
1980
+ # IP address of the site where the request originates. Use this if you want to
1981
+ # enforce per-user limits.
1982
+ # @param [Google::Apis::RequestOptions] options
1983
+ # Request-specific options
1984
+ #
1985
+ # @yield [result, err] Result & error if block supplied
1986
+ # @yieldparam result [Google::Apis::ContentV2::OrdersUpdateShipmentResponse] parsed result object
1987
+ # @yieldparam err [StandardError] error object if request failed
1988
+ #
1989
+ # @return [Google::Apis::ContentV2::OrdersUpdateShipmentResponse]
1990
+ #
1991
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1992
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1993
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1994
+ def update_order_shipment(merchant_id, order_id, orders_update_shipment_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1995
+ command = make_simple_command(:post, '{merchantId}/orders/{orderId}/updateShipment', options)
1996
+ command.request_representation = Google::Apis::ContentV2::OrdersUpdateShipmentRequest::Representation
1997
+ command.request_object = orders_update_shipment_request_object
1998
+ command.response_representation = Google::Apis::ContentV2::OrdersUpdateShipmentResponse::Representation
1999
+ command.response_class = Google::Apis::ContentV2::OrdersUpdateShipmentResponse
2000
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2001
+ command.params['orderId'] = order_id unless order_id.nil?
2002
+ command.query['fields'] = fields unless fields.nil?
2003
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2004
+ command.query['userIp'] = user_ip unless user_ip.nil?
2005
+ execute_or_queue_command(command, &block)
2006
+ end
2007
+
2008
+ # Retrieves, inserts, and deletes multiple products in a single request.
2009
+ # @param [Google::Apis::ContentV2::BatchProductsRequest] batch_products_request_object
2010
+ # @param [Boolean] dry_run
2011
+ # Flag to run the request in dry-run mode.
2012
+ # @param [String] fields
2013
+ # Selector specifying which fields to include in a partial response.
2014
+ # @param [String] quota_user
2015
+ # Available to use for quota purposes for server-side applications. Can be any
2016
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2017
+ # Overrides userIp if both are provided.
2018
+ # @param [String] user_ip
2019
+ # IP address of the site where the request originates. Use this if you want to
2020
+ # enforce per-user limits.
2021
+ # @param [Google::Apis::RequestOptions] options
2022
+ # Request-specific options
2023
+ #
2024
+ # @yield [result, err] Result & error if block supplied
2025
+ # @yieldparam result [Google::Apis::ContentV2::BatchProductsResponse] parsed result object
2026
+ # @yieldparam err [StandardError] error object if request failed
2027
+ #
2028
+ # @return [Google::Apis::ContentV2::BatchProductsResponse]
2029
+ #
2030
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2031
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2032
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2033
+ def batch_product(batch_products_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2034
+ command = make_simple_command(:post, 'products/batch', options)
2035
+ command.request_representation = Google::Apis::ContentV2::BatchProductsRequest::Representation
2036
+ command.request_object = batch_products_request_object
2037
+ command.response_representation = Google::Apis::ContentV2::BatchProductsResponse::Representation
2038
+ command.response_class = Google::Apis::ContentV2::BatchProductsResponse
2039
+ command.query['dryRun'] = dry_run unless dry_run.nil?
2040
+ command.query['fields'] = fields unless fields.nil?
2041
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2042
+ command.query['userIp'] = user_ip unless user_ip.nil?
2043
+ execute_or_queue_command(command, &block)
2044
+ end
2045
+
2046
+ # Deletes a product from your Merchant Center account.
2047
+ # @param [String] merchant_id
2048
+ # The ID of the managing account.
2049
+ # @param [String] product_id
2050
+ # The ID of the product.
2051
+ # @param [Boolean] dry_run
2052
+ # Flag to run the request in dry-run mode.
2053
+ # @param [String] fields
2054
+ # Selector specifying which fields to include in a partial response.
2055
+ # @param [String] quota_user
2056
+ # Available to use for quota purposes for server-side applications. Can be any
2057
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2058
+ # Overrides userIp if both are provided.
2059
+ # @param [String] user_ip
2060
+ # IP address of the site where the request originates. Use this if you want to
2061
+ # enforce per-user limits.
2062
+ # @param [Google::Apis::RequestOptions] options
2063
+ # Request-specific options
2064
+ #
2065
+ # @yield [result, err] Result & error if block supplied
2066
+ # @yieldparam result [NilClass] No result returned for this method
2067
+ # @yieldparam err [StandardError] error object if request failed
2068
+ #
2069
+ # @return [void]
2070
+ #
2071
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2072
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2073
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2074
+ def delete_product(merchant_id, product_id, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2075
+ command = make_simple_command(:delete, '{merchantId}/products/{productId}', options)
2076
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2077
+ command.params['productId'] = product_id unless product_id.nil?
2078
+ command.query['dryRun'] = dry_run unless dry_run.nil?
2079
+ command.query['fields'] = fields unless fields.nil?
2080
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2081
+ command.query['userIp'] = user_ip unless user_ip.nil?
2082
+ execute_or_queue_command(command, &block)
2083
+ end
2084
+
2085
+ # Retrieves a product from your Merchant Center account.
2086
+ # @param [String] merchant_id
2087
+ # The ID of the managing account.
2088
+ # @param [String] product_id
2089
+ # The ID of the product.
2090
+ # @param [String] fields
2091
+ # Selector specifying which fields to include in a partial response.
2092
+ # @param [String] quota_user
2093
+ # Available to use for quota purposes for server-side applications. Can be any
2094
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2095
+ # Overrides userIp if both are provided.
2096
+ # @param [String] user_ip
2097
+ # IP address of the site where the request originates. Use this if you want to
2098
+ # enforce per-user limits.
2099
+ # @param [Google::Apis::RequestOptions] options
2100
+ # Request-specific options
2101
+ #
2102
+ # @yield [result, err] Result & error if block supplied
2103
+ # @yieldparam result [Google::Apis::ContentV2::Product] parsed result object
2104
+ # @yieldparam err [StandardError] error object if request failed
2105
+ #
2106
+ # @return [Google::Apis::ContentV2::Product]
2107
+ #
2108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2111
+ def get_product(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2112
+ command = make_simple_command(:get, '{merchantId}/products/{productId}', options)
2113
+ command.response_representation = Google::Apis::ContentV2::Product::Representation
2114
+ command.response_class = Google::Apis::ContentV2::Product
2115
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2116
+ command.params['productId'] = product_id unless product_id.nil?
2117
+ command.query['fields'] = fields unless fields.nil?
2118
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2119
+ command.query['userIp'] = user_ip unless user_ip.nil?
2120
+ execute_or_queue_command(command, &block)
2121
+ end
2122
+
2123
+ # Uploads a product to your Merchant Center account.
2124
+ # @param [String] merchant_id
2125
+ # The ID of the managing account.
2126
+ # @param [Google::Apis::ContentV2::Product] product_object
2127
+ # @param [Boolean] dry_run
2128
+ # Flag to run the request in dry-run mode.
2129
+ # @param [String] fields
2130
+ # Selector specifying which fields to include in a partial response.
2131
+ # @param [String] quota_user
2132
+ # Available to use for quota purposes for server-side applications. Can be any
2133
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2134
+ # Overrides userIp if both are provided.
2135
+ # @param [String] user_ip
2136
+ # IP address of the site where the request originates. Use this if you want to
2137
+ # enforce per-user limits.
2138
+ # @param [Google::Apis::RequestOptions] options
2139
+ # Request-specific options
2140
+ #
2141
+ # @yield [result, err] Result & error if block supplied
2142
+ # @yieldparam result [Google::Apis::ContentV2::Product] parsed result object
2143
+ # @yieldparam err [StandardError] error object if request failed
2144
+ #
2145
+ # @return [Google::Apis::ContentV2::Product]
2146
+ #
2147
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2148
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2149
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2150
+ def insert_product(merchant_id, product_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2151
+ command = make_simple_command(:post, '{merchantId}/products', options)
2152
+ command.request_representation = Google::Apis::ContentV2::Product::Representation
2153
+ command.request_object = product_object
2154
+ command.response_representation = Google::Apis::ContentV2::Product::Representation
2155
+ command.response_class = Google::Apis::ContentV2::Product
2156
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2157
+ command.query['dryRun'] = dry_run unless dry_run.nil?
2158
+ command.query['fields'] = fields unless fields.nil?
2159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2160
+ command.query['userIp'] = user_ip unless user_ip.nil?
2161
+ execute_or_queue_command(command, &block)
2162
+ end
2163
+
2164
+ # Lists the products in your Merchant Center account.
2165
+ # @param [String] merchant_id
2166
+ # The ID of the managing account.
2167
+ # @param [Boolean] include_invalid_inserted_items
2168
+ # Flag to include the invalid inserted items in the result of the list request.
2169
+ # By default the invalid items are not shown (the default value is false).
2170
+ # @param [Fixnum] max_results
2171
+ # The maximum number of products to return in the response, used for paging.
2172
+ # @param [String] page_token
2173
+ # The token returned by the previous request.
2174
+ # @param [String] fields
2175
+ # Selector specifying which fields to include in a partial response.
2176
+ # @param [String] quota_user
2177
+ # Available to use for quota purposes for server-side applications. Can be any
2178
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2179
+ # Overrides userIp if both are provided.
2180
+ # @param [String] user_ip
2181
+ # IP address of the site where the request originates. Use this if you want to
2182
+ # enforce per-user limits.
2183
+ # @param [Google::Apis::RequestOptions] options
2184
+ # Request-specific options
2185
+ #
2186
+ # @yield [result, err] Result & error if block supplied
2187
+ # @yieldparam result [Google::Apis::ContentV2::ListProductsResponse] parsed result object
2188
+ # @yieldparam err [StandardError] error object if request failed
2189
+ #
2190
+ # @return [Google::Apis::ContentV2::ListProductsResponse]
2191
+ #
2192
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2193
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2194
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2195
+ def list_products(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2196
+ command = make_simple_command(:get, '{merchantId}/products', options)
2197
+ command.response_representation = Google::Apis::ContentV2::ListProductsResponse::Representation
2198
+ command.response_class = Google::Apis::ContentV2::ListProductsResponse
2199
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2200
+ command.query['includeInvalidInsertedItems'] = include_invalid_inserted_items unless include_invalid_inserted_items.nil?
2201
+ command.query['maxResults'] = max_results unless max_results.nil?
2202
+ command.query['pageToken'] = page_token unless page_token.nil?
2203
+ command.query['fields'] = fields unless fields.nil?
2204
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2205
+ command.query['userIp'] = user_ip unless user_ip.nil?
2206
+ execute_or_queue_command(command, &block)
2207
+ end
2208
+
2209
+ # Gets the statuses of multiple products in a single request.
2210
+ # @param [Google::Apis::ContentV2::BatchProductStatusesRequest] batch_product_statuses_request_object
2211
+ # @param [String] fields
2212
+ # Selector specifying which fields to include in a partial response.
2213
+ # @param [String] quota_user
2214
+ # Available to use for quota purposes for server-side applications. Can be any
2215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2216
+ # Overrides userIp if both are provided.
2217
+ # @param [String] user_ip
2218
+ # IP address of the site where the request originates. Use this if you want to
2219
+ # enforce per-user limits.
2220
+ # @param [Google::Apis::RequestOptions] options
2221
+ # Request-specific options
2222
+ #
2223
+ # @yield [result, err] Result & error if block supplied
2224
+ # @yieldparam result [Google::Apis::ContentV2::BatchProductStatusesResponse] parsed result object
2225
+ # @yieldparam err [StandardError] error object if request failed
2226
+ #
2227
+ # @return [Google::Apis::ContentV2::BatchProductStatusesResponse]
2228
+ #
2229
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2230
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2231
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2232
+ def batch_product_status(batch_product_statuses_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2233
+ command = make_simple_command(:post, 'productstatuses/batch', options)
2234
+ command.request_representation = Google::Apis::ContentV2::BatchProductStatusesRequest::Representation
2235
+ command.request_object = batch_product_statuses_request_object
2236
+ command.response_representation = Google::Apis::ContentV2::BatchProductStatusesResponse::Representation
2237
+ command.response_class = Google::Apis::ContentV2::BatchProductStatusesResponse
2238
+ command.query['fields'] = fields unless fields.nil?
2239
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2240
+ command.query['userIp'] = user_ip unless user_ip.nil?
2241
+ execute_or_queue_command(command, &block)
2242
+ end
2243
+
2244
+ # Gets the status of a product from your Merchant Center account.
2245
+ # @param [String] merchant_id
2246
+ # The ID of the managing account.
2247
+ # @param [String] product_id
2248
+ # The ID of the product.
2249
+ # @param [String] fields
2250
+ # Selector specifying which fields to include in a partial response.
2251
+ # @param [String] quota_user
2252
+ # Available to use for quota purposes for server-side applications. Can be any
2253
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2254
+ # Overrides userIp if both are provided.
2255
+ # @param [String] user_ip
2256
+ # IP address of the site where the request originates. Use this if you want to
2257
+ # enforce per-user limits.
2258
+ # @param [Google::Apis::RequestOptions] options
2259
+ # Request-specific options
2260
+ #
2261
+ # @yield [result, err] Result & error if block supplied
2262
+ # @yieldparam result [Google::Apis::ContentV2::ProductStatus] parsed result object
2263
+ # @yieldparam err [StandardError] error object if request failed
2264
+ #
2265
+ # @return [Google::Apis::ContentV2::ProductStatus]
2266
+ #
2267
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2268
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2269
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2270
+ def get_product_status(merchant_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2271
+ command = make_simple_command(:get, '{merchantId}/productstatuses/{productId}', options)
2272
+ command.response_representation = Google::Apis::ContentV2::ProductStatus::Representation
2273
+ command.response_class = Google::Apis::ContentV2::ProductStatus
2274
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2275
+ command.params['productId'] = product_id unless product_id.nil?
2276
+ command.query['fields'] = fields unless fields.nil?
2277
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2278
+ command.query['userIp'] = user_ip unless user_ip.nil?
2279
+ execute_or_queue_command(command, &block)
2280
+ end
2281
+
2282
+ # Lists the statuses of the products in your Merchant Center account.
2283
+ # @param [String] merchant_id
2284
+ # The ID of the managing account.
2285
+ # @param [Boolean] include_invalid_inserted_items
2286
+ # Flag to include the invalid inserted items in the result of the list request.
2287
+ # By default the invalid items are not shown (the default value is false).
2288
+ # @param [Fixnum] max_results
2289
+ # The maximum number of product statuses to return in the response, used for
2290
+ # paging.
2291
+ # @param [String] page_token
2292
+ # The token returned by the previous request.
2293
+ # @param [String] fields
2294
+ # Selector specifying which fields to include in a partial response.
2295
+ # @param [String] quota_user
2296
+ # Available to use for quota purposes for server-side applications. Can be any
2297
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2298
+ # Overrides userIp if both are provided.
2299
+ # @param [String] user_ip
2300
+ # IP address of the site where the request originates. Use this if you want to
2301
+ # enforce per-user limits.
2302
+ # @param [Google::Apis::RequestOptions] options
2303
+ # Request-specific options
2304
+ #
2305
+ # @yield [result, err] Result & error if block supplied
2306
+ # @yieldparam result [Google::Apis::ContentV2::ListProductStatusesResponse] parsed result object
2307
+ # @yieldparam err [StandardError] error object if request failed
2308
+ #
2309
+ # @return [Google::Apis::ContentV2::ListProductStatusesResponse]
2310
+ #
2311
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2312
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2313
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2314
+ def list_product_statuses(merchant_id, include_invalid_inserted_items: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2315
+ command = make_simple_command(:get, '{merchantId}/productstatuses', options)
2316
+ command.response_representation = Google::Apis::ContentV2::ListProductStatusesResponse::Representation
2317
+ command.response_class = Google::Apis::ContentV2::ListProductStatusesResponse
2318
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
2319
+ command.query['includeInvalidInsertedItems'] = include_invalid_inserted_items unless include_invalid_inserted_items.nil?
2320
+ command.query['maxResults'] = max_results unless max_results.nil?
2321
+ command.query['pageToken'] = page_token unless page_token.nil?
2322
+ command.query['fields'] = fields unless fields.nil?
2323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2324
+ command.query['userIp'] = user_ip unless user_ip.nil?
2325
+ execute_or_queue_command(command, &block)
2326
+ end
2327
+
2328
+ protected
2329
+
2330
+ def apply_command_defaults(command)
2331
+ command.query['key'] = key unless key.nil?
2332
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2333
+ command.query['userIp'] = user_ip unless user_ip.nil?
2334
+ end
2335
+ end
2336
+ end
2337
+ end
2338
+ end