lemboy-google-api-client 0.9.26

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