google-api-client 0.9.8 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -124,7 +124,8 @@ module Google
124
124
  execute_or_queue_command(command, &block)
125
125
  end
126
126
 
127
- # Deletes a Merchant Center sub-account.
127
+ # Deletes a Merchant Center sub-account. This method can only be called for
128
+ # multi-client accounts.
128
129
  # @param [String] merchant_id
129
130
  # The ID of the managing account.
130
131
  # @param [String] account_id
@@ -163,7 +164,9 @@ module Google
163
164
  execute_or_queue_command(command, &block)
164
165
  end
165
166
 
166
- # Retrieves a Merchant Center account.
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.
167
170
  # @param [String] merchant_id
168
171
  # The ID of the managing account.
169
172
  # @param [String] account_id
@@ -201,7 +204,8 @@ module Google
201
204
  execute_or_queue_command(command, &block)
202
205
  end
203
206
 
204
- # Creates a Merchant Center sub-account.
207
+ # Creates a Merchant Center sub-account. This method can only be called for
208
+ # multi-client accounts.
205
209
  # @param [String] merchant_id
206
210
  # The ID of the managing account.
207
211
  # @param [Google::Apis::ContentV2::Account] account_object
@@ -242,7 +246,8 @@ module Google
242
246
  execute_or_queue_command(command, &block)
243
247
  end
244
248
 
245
- # Lists the sub-accounts in your Merchant Center account.
249
+ # Lists the sub-accounts in your Merchant Center account. This method can only
250
+ # be called for multi-client accounts.
246
251
  # @param [String] merchant_id
247
252
  # The ID of the managing account.
248
253
  # @param [Fixnum] max_results
@@ -283,7 +288,10 @@ module Google
283
288
  execute_or_queue_command(command, &block)
284
289
  end
285
290
 
286
- # Updates a Merchant Center account. This method supports patch semantics.
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.
287
295
  # @param [String] merchant_id
288
296
  # The ID of the managing account.
289
297
  # @param [String] account_id
@@ -327,7 +335,9 @@ module Google
327
335
  execute_or_queue_command(command, &block)
328
336
  end
329
337
 
330
- # Updates a Merchant Center account.
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.
331
341
  # @param [String] merchant_id
332
342
  # The ID of the managing account.
333
343
  # @param [String] account_id
@@ -410,7 +420,10 @@ module Google
410
420
  execute_or_queue_command(command, &block)
411
421
  end
412
422
 
413
- # Retrieves the shipping settings of the account.
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.
414
427
  # @param [String] merchant_id
415
428
  # The ID of the managing account.
416
429
  # @param [String] account_id
@@ -449,7 +462,7 @@ module Google
449
462
  end
450
463
 
451
464
  # Lists the shipping settings of the sub-accounts in your Merchant Center
452
- # account.
465
+ # account. This method can only be called for multi-client accounts.
453
466
  # @param [String] merchant_id
454
467
  # The ID of the managing account.
455
468
  # @param [Fixnum] max_results
@@ -491,8 +504,10 @@ module Google
491
504
  execute_or_queue_command(command, &block)
492
505
  end
493
506
 
494
- # Updates the shipping settings of the account. This method supports patch
495
- # semantics.
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.
496
511
  # @param [String] merchant_id
497
512
  # The ID of the managing account.
498
513
  # @param [String] account_id
@@ -536,7 +551,10 @@ module Google
536
551
  execute_or_queue_command(command, &block)
537
552
  end
538
553
 
539
- # Updates the shipping settings of the account.
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.
540
558
  # @param [String] merchant_id
541
559
  # The ID of the managing account.
542
560
  # @param [String] account_id
@@ -615,7 +633,10 @@ module Google
615
633
  execute_or_queue_command(command, &block)
616
634
  end
617
635
 
618
- # Retrieves the status of a Merchant Center account.
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.
619
640
  # @param [String] merchant_id
620
641
  # The ID of the managing account.
621
642
  # @param [String] account_id
@@ -653,7 +674,8 @@ module Google
653
674
  execute_or_queue_command(command, &block)
654
675
  end
655
676
 
656
- # Lists the statuses of the sub-accounts in your Merchant Center account.
677
+ # Lists the statuses of the sub-accounts in your Merchant Center account. This
678
+ # method can only be called for multi-client accounts.
657
679
  # @param [String] merchant_id
658
680
  # The ID of the managing account.
659
681
  # @param [Fixnum] max_results
@@ -733,7 +755,9 @@ module Google
733
755
  execute_or_queue_command(command, &block)
734
756
  end
735
757
 
736
- # Retrieves the tax settings of the account.
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.
737
761
  # @param [String] merchant_id
738
762
  # The ID of the managing account.
739
763
  # @param [String] account_id
@@ -772,6 +796,7 @@ module Google
772
796
  end
773
797
 
774
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.
775
800
  # @param [String] merchant_id
776
801
  # The ID of the managing account.
777
802
  # @param [Fixnum] max_results
@@ -812,7 +837,10 @@ module Google
812
837
  execute_or_queue_command(command, &block)
813
838
  end
814
839
 
815
- # Updates the tax settings of the account. This method supports patch semantics.
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.
816
844
  # @param [String] merchant_id
817
845
  # The ID of the managing account.
818
846
  # @param [String] account_id
@@ -856,7 +884,9 @@ module Google
856
884
  execute_or_queue_command(command, &block)
857
885
  end
858
886
 
859
- # Updates the tax settings of the account.
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.
860
890
  # @param [String] merchant_id
861
891
  # The ID of the managing account.
862
892
  # @param [String] account_id
@@ -938,7 +968,8 @@ module Google
938
968
  execute_or_queue_command(command, &block)
939
969
  end
940
970
 
941
- # Deletes a datafeed from your Merchant Center account.
971
+ # Deletes a datafeed from your Merchant Center account. This method can only be
972
+ # called for non-multi-client accounts.
942
973
  # @param [String] merchant_id
943
974
  # @param [String] datafeed_id
944
975
  # @param [Boolean] dry_run
@@ -975,7 +1006,8 @@ module Google
975
1006
  execute_or_queue_command(command, &block)
976
1007
  end
977
1008
 
978
- # Retrieves a datafeed from your Merchant Center account.
1009
+ # Retrieves a datafeed from your Merchant Center account. This method can only
1010
+ # be called for non-multi-client accounts.
979
1011
  # @param [String] merchant_id
980
1012
  # @param [String] datafeed_id
981
1013
  # @param [String] fields
@@ -1011,7 +1043,8 @@ module Google
1011
1043
  execute_or_queue_command(command, &block)
1012
1044
  end
1013
1045
 
1014
- # Registers a datafeed with your Merchant Center account.
1046
+ # Registers a datafeed with your Merchant Center account. This method can only
1047
+ # be called for non-multi-client accounts.
1015
1048
  # @param [String] merchant_id
1016
1049
  # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
1017
1050
  # @param [Boolean] dry_run
@@ -1051,7 +1084,8 @@ module Google
1051
1084
  execute_or_queue_command(command, &block)
1052
1085
  end
1053
1086
 
1054
- # Lists the datafeeds in your Merchant Center account.
1087
+ # Lists the datafeeds in your Merchant Center account. This method can only be
1088
+ # called for non-multi-client accounts.
1055
1089
  # @param [String] merchant_id
1056
1090
  # The ID of the managing account.
1057
1091
  # @param [Fixnum] max_results
@@ -1092,8 +1126,8 @@ module Google
1092
1126
  execute_or_queue_command(command, &block)
1093
1127
  end
1094
1128
 
1095
- # Updates a datafeed of your Merchant Center account. This method supports patch
1096
- # semantics.
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.
1097
1131
  # @param [String] merchant_id
1098
1132
  # @param [String] datafeed_id
1099
1133
  # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
@@ -1135,7 +1169,8 @@ module Google
1135
1169
  execute_or_queue_command(command, &block)
1136
1170
  end
1137
1171
 
1138
- # Updates a datafeed of your Merchant Center account.
1172
+ # Updates a datafeed of your Merchant Center account. This method can only be
1173
+ # called for non-multi-client accounts.
1139
1174
  # @param [String] merchant_id
1140
1175
  # @param [String] datafeed_id
1141
1176
  # @param [Google::Apis::ContentV2::Datafeed] datafeed_object
@@ -1212,7 +1247,8 @@ module Google
1212
1247
  execute_or_queue_command(command, &block)
1213
1248
  end
1214
1249
 
1215
- # Retrieves the status of a datafeed from your Merchant Center account.
1250
+ # Retrieves the status of a datafeed from your Merchant Center account. This
1251
+ # method can only be called for non-multi-client accounts.
1216
1252
  # @param [String] merchant_id
1217
1253
  # @param [String] datafeed_id
1218
1254
  # @param [String] fields
@@ -1248,7 +1284,8 @@ module Google
1248
1284
  execute_or_queue_command(command, &block)
1249
1285
  end
1250
1286
 
1251
- # Lists the statuses of the datafeeds in your Merchant Center account.
1287
+ # Lists the statuses of the datafeeds in your Merchant Center account. This
1288
+ # method can only be called for non-multi-client accounts.
1252
1289
  # @param [String] merchant_id
1253
1290
  # The ID of the managing account.
1254
1291
  # @param [Fixnum] max_results
@@ -1291,6 +1328,7 @@ module Google
1291
1328
 
1292
1329
  # Updates price and availability for multiple products or stores in a single
1293
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.
1294
1332
  # @param [Google::Apis::ContentV2::BatchInventoryRequest] batch_inventory_request_object
1295
1333
  # @param [Boolean] dry_run
1296
1334
  # Flag to run the request in dry-run mode.
@@ -1329,7 +1367,8 @@ module Google
1329
1367
  end
1330
1368
 
1331
1369
  # Updates price and availability of a product in your Merchant Center account.
1332
- # This operation does not update the expiration date of the product.
1370
+ # This operation does not update the expiration date of the product. This method
1371
+ # can only be called for non-multi-client accounts.
1333
1372
  # @param [String] merchant_id
1334
1373
  # The ID of the managing account.
1335
1374
  # @param [String] store_code
@@ -1377,7 +1416,8 @@ module Google
1377
1416
  execute_or_queue_command(command, &block)
1378
1417
  end
1379
1418
 
1380
- # Marks an order as acknowledged.
1419
+ # Marks an order as acknowledged. This method can only be called for non-multi-
1420
+ # client accounts.
1381
1421
  # @param [String] merchant_id
1382
1422
  # The ID of the managing account.
1383
1423
  # @param [String] order_id
@@ -1419,7 +1459,7 @@ module Google
1419
1459
  end
1420
1460
 
1421
1461
  # Sandbox only. Moves a test order from state "inProgress" to state "
1422
- # pendingShipment".
1462
+ # pendingShipment". This method can only be called for non-multi-client accounts.
1423
1463
  # @param [String] merchant_id
1424
1464
  # The ID of the managing account.
1425
1465
  # @param [String] order_id
@@ -1457,7 +1497,8 @@ module Google
1457
1497
  execute_or_queue_command(command, &block)
1458
1498
  end
1459
1499
 
1460
- # Cancels all line items in an order.
1500
+ # Cancels all line items in an order. This method can only be called for non-
1501
+ # multi-client accounts.
1461
1502
  # @param [String] merchant_id
1462
1503
  # The ID of the managing account.
1463
1504
  # @param [String] order_id
@@ -1498,7 +1539,8 @@ module Google
1498
1539
  execute_or_queue_command(command, &block)
1499
1540
  end
1500
1541
 
1501
- # Cancels a line item.
1542
+ # Cancels a line item. This method can only be called for non-multi-client
1543
+ # accounts.
1502
1544
  # @param [String] merchant_id
1503
1545
  # The ID of the managing account.
1504
1546
  # @param [String] order_id
@@ -1539,7 +1581,8 @@ module Google
1539
1581
  execute_or_queue_command(command, &block)
1540
1582
  end
1541
1583
 
1542
- # Sandbox only. Creates a test order.
1584
+ # Sandbox only. Creates a test order. This method can only be called for non-
1585
+ # multi-client accounts.
1543
1586
  # @param [String] merchant_id
1544
1587
  # The ID of the managing account.
1545
1588
  # @param [Google::Apis::ContentV2::OrdersCreateTestOrderRequest] orders_create_test_order_request_object
@@ -1577,7 +1620,8 @@ module Google
1577
1620
  execute_or_queue_command(command, &block)
1578
1621
  end
1579
1622
 
1580
- # Retrieves or modifies multiple orders in a single request.
1623
+ # Retrieves or modifies multiple orders in a single request. This method can
1624
+ # only be called for non-multi-client accounts.
1581
1625
  # @param [Google::Apis::ContentV2::OrdersCustomBatchRequest] orders_custom_batch_request_object
1582
1626
  # @param [String] fields
1583
1627
  # Selector specifying which fields to include in a partial response.
@@ -1612,7 +1656,8 @@ module Google
1612
1656
  execute_or_queue_command(command, &block)
1613
1657
  end
1614
1658
 
1615
- # Retrieves an order from your Merchant Center account.
1659
+ # Retrieves an order from your Merchant Center account. This method can only be
1660
+ # called for non-multi-client accounts.
1616
1661
  # @param [String] merchant_id
1617
1662
  # The ID of the managing account.
1618
1663
  # @param [String] order_id
@@ -1650,7 +1695,8 @@ module Google
1650
1695
  execute_or_queue_command(command, &block)
1651
1696
  end
1652
1697
 
1653
- # Retrieves an order using merchant order id.
1698
+ # Retrieves an order using merchant order id. This method can only be called for
1699
+ # non-multi-client accounts.
1654
1700
  # @param [String] merchant_id
1655
1701
  # The ID of the managing account.
1656
1702
  # @param [String] merchant_order_id
@@ -1689,7 +1735,8 @@ module Google
1689
1735
  end
1690
1736
 
1691
1737
  # Sandbox only. Retrieves an order template that can be used to quickly create a
1692
- # new order in sandbox.
1738
+ # new order in sandbox. This method can only be called for non-multi-client
1739
+ # accounts.
1693
1740
  # @param [String] merchant_id
1694
1741
  # The ID of the managing account.
1695
1742
  # @param [String] template_name
@@ -1727,7 +1774,8 @@ module Google
1727
1774
  execute_or_queue_command(command, &block)
1728
1775
  end
1729
1776
 
1730
- # Lists the orders in your Merchant Center account.
1777
+ # Lists the orders in your Merchant Center account. This method can only be
1778
+ # called for non-multi-client accounts.
1731
1779
  # @param [String] merchant_id
1732
1780
  # The ID of the managing account.
1733
1781
  # @param [Boolean] acknowledged
@@ -1800,7 +1848,8 @@ module Google
1800
1848
  execute_or_queue_command(command, &block)
1801
1849
  end
1802
1850
 
1803
- # Refund a portion of the order, up to the full amount paid.
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.
1804
1853
  # @param [String] merchant_id
1805
1854
  # The ID of the managing account.
1806
1855
  # @param [String] order_id
@@ -1841,7 +1890,8 @@ module Google
1841
1890
  execute_or_queue_command(command, &block)
1842
1891
  end
1843
1892
 
1844
- # Returns a line item.
1893
+ # Returns a line item. This method can only be called for non-multi-client
1894
+ # accounts.
1845
1895
  # @param [String] merchant_id
1846
1896
  # The ID of the managing account.
1847
1897
  # @param [String] order_id
@@ -1882,7 +1932,8 @@ module Google
1882
1932
  execute_or_queue_command(command, &block)
1883
1933
  end
1884
1934
 
1885
- # Marks line item(s) as shipped.
1935
+ # Marks line item(s) as shipped. This method can only be called for non-multi-
1936
+ # client accounts.
1886
1937
  # @param [String] merchant_id
1887
1938
  # The ID of the managing account.
1888
1939
  # @param [String] order_id
@@ -1923,7 +1974,8 @@ module Google
1923
1974
  execute_or_queue_command(command, &block)
1924
1975
  end
1925
1976
 
1926
- # Updates the merchant order ID for a given order.
1977
+ # Updates the merchant order ID for a given order. This method can only be
1978
+ # called for non-multi-client accounts.
1927
1979
  # @param [String] merchant_id
1928
1980
  # The ID of the managing account.
1929
1981
  # @param [String] order_id
@@ -1964,7 +2016,8 @@ module Google
1964
2016
  execute_or_queue_command(command, &block)
1965
2017
  end
1966
2018
 
1967
- # Updates a shipment's status, carrier, and/or tracking ID.
2019
+ # Updates a shipment's status, carrier, and/or tracking ID. This method can only
2020
+ # be called for non-multi-client accounts.
1968
2021
  # @param [String] merchant_id
1969
2022
  # The ID of the managing account.
1970
2023
  # @param [String] order_id
@@ -2005,7 +2058,8 @@ module Google
2005
2058
  execute_or_queue_command(command, &block)
2006
2059
  end
2007
2060
 
2008
- # Retrieves, inserts, and deletes multiple products in a single request.
2061
+ # Retrieves, inserts, and deletes multiple products in a single request. This
2062
+ # method can only be called for non-multi-client accounts.
2009
2063
  # @param [Google::Apis::ContentV2::BatchProductsRequest] batch_products_request_object
2010
2064
  # @param [Boolean] dry_run
2011
2065
  # Flag to run the request in dry-run mode.
@@ -2043,7 +2097,8 @@ module Google
2043
2097
  execute_or_queue_command(command, &block)
2044
2098
  end
2045
2099
 
2046
- # Deletes a product from your Merchant Center account.
2100
+ # Deletes a product from your Merchant Center account. This method can only be
2101
+ # called for non-multi-client accounts.
2047
2102
  # @param [String] merchant_id
2048
2103
  # The ID of the managing account.
2049
2104
  # @param [String] product_id
@@ -2082,7 +2137,8 @@ module Google
2082
2137
  execute_or_queue_command(command, &block)
2083
2138
  end
2084
2139
 
2085
- # Retrieves a product from your Merchant Center account.
2140
+ # Retrieves a product from your Merchant Center account. This method can only be
2141
+ # called for non-multi-client accounts.
2086
2142
  # @param [String] merchant_id
2087
2143
  # The ID of the managing account.
2088
2144
  # @param [String] product_id
@@ -2120,7 +2176,10 @@ module Google
2120
2176
  execute_or_queue_command(command, &block)
2121
2177
  end
2122
2178
 
2123
- # Uploads a product to your Merchant Center account.
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.
2124
2183
  # @param [String] merchant_id
2125
2184
  # The ID of the managing account.
2126
2185
  # @param [Google::Apis::ContentV2::Product] product_object
@@ -2161,7 +2220,8 @@ module Google
2161
2220
  execute_or_queue_command(command, &block)
2162
2221
  end
2163
2222
 
2164
- # Lists the products in your Merchant Center account.
2223
+ # Lists the products in your Merchant Center account. This method can only be
2224
+ # called for non-multi-client accounts.
2165
2225
  # @param [String] merchant_id
2166
2226
  # The ID of the managing account.
2167
2227
  # @param [Boolean] include_invalid_inserted_items
@@ -2206,7 +2266,8 @@ module Google
2206
2266
  execute_or_queue_command(command, &block)
2207
2267
  end
2208
2268
 
2209
- # Gets the statuses of multiple products in a single request.
2269
+ # Gets the statuses of multiple products in a single request. This method can
2270
+ # only be called for non-multi-client accounts.
2210
2271
  # @param [Google::Apis::ContentV2::BatchProductStatusesRequest] batch_product_statuses_request_object
2211
2272
  # @param [String] fields
2212
2273
  # Selector specifying which fields to include in a partial response.
@@ -2241,7 +2302,8 @@ module Google
2241
2302
  execute_or_queue_command(command, &block)
2242
2303
  end
2243
2304
 
2244
- # Gets the status of a product from your Merchant Center account.
2305
+ # Gets the status of a product from your Merchant Center account. This method
2306
+ # can only be called for non-multi-client accounts.
2245
2307
  # @param [String] merchant_id
2246
2308
  # The ID of the managing account.
2247
2309
  # @param [String] product_id
@@ -2279,7 +2341,8 @@ module Google
2279
2341
  execute_or_queue_command(command, &block)
2280
2342
  end
2281
2343
 
2282
- # Lists the statuses of the products in your Merchant Center account.
2344
+ # Lists the statuses of the products in your Merchant Center account. This
2345
+ # method can only be called for non-multi-client accounts.
2283
2346
  # @param [String] merchant_id
2284
2347
  # The ID of the managing account.
2285
2348
  # @param [Boolean] include_invalid_inserted_items
@@ -2324,6 +2387,258 @@ module Google
2324
2387
  command.query['userIp'] = user_ip unless user_ip.nil?
2325
2388
  execute_or_queue_command(command, &block)
2326
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
2327
2642
 
2328
2643
  protected
2329
2644