google-api-client 0.8.7 → 0.9.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +21 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +6 -3
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +28 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +158 -150
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +872 -0
  15. data/api_names_out.yaml +20843 -0
  16. data/bin/generate-api +93 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1124 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +375 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +893 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +682 -0
  25. data/generated/google/apis/admin_directory_v1.rb +89 -0
  26. data/generated/google/apis/admin_directory_v1/classes.rb +2389 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +780 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +2805 -0
  29. data/generated/google/apis/admin_reports_v1.rb +38 -0
  30. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  31. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  32. data/generated/google/apis/admin_reports_v1/service.rb +341 -0
  33. data/generated/google/apis/adsense_v1_4.rb +38 -0
  34. data/generated/google/apis/adsense_v1_4/classes.rb +1279 -0
  35. data/generated/google/apis/adsense_v1_4/representations.rb +493 -0
  36. data/generated/google/apis/adsense_v1_4/service.rb +1752 -0
  37. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  38. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  39. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  40. data/generated/google/apis/adsensehost_v4_1/service.rb +1190 -0
  41. data/generated/google/apis/analytics_v3.rb +49 -0
  42. data/generated/google/apis/analytics_v3/classes.rb +5113 -0
  43. data/generated/google/apis/analytics_v3/representations.rb +1661 -0
  44. data/generated/google/apis/analytics_v3/service.rb +3600 -0
  45. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  46. data/generated/google/apis/androidenterprise_v1/classes.rb +1162 -0
  47. data/generated/google/apis/androidenterprise_v1/representations.rb +431 -0
  48. data/generated/google/apis/androidenterprise_v1/service.rb +1979 -0
  49. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +1374 -0
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +630 -0
  52. data/generated/google/apis/androidpublisher_v2/service.rb +2390 -0
  53. data/generated/google/apis/appsactivity_v1.rb +46 -0
  54. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  55. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  56. data/generated/google/apis/appsactivity_v1/service.rb +129 -0
  57. data/generated/google/apis/appstate_v1.rb +34 -0
  58. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  59. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  60. data/generated/google/apis/appstate_v1/service.rb +265 -0
  61. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  62. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  63. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  64. data/generated/google/apis/autoscaler_v1beta2/service.rb +488 -0
  65. data/generated/google/apis/bigquery_v2.rb +49 -0
  66. data/generated/google/apis/bigquery_v2/classes.rb +2255 -0
  67. data/generated/google/apis/bigquery_v2/representations.rb +754 -0
  68. data/generated/google/apis/bigquery_v2/service.rb +1003 -0
  69. data/generated/google/apis/blogger_v3.rb +37 -0
  70. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  71. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  72. data/generated/google/apis/blogger_v3/service.rb +1620 -0
  73. data/generated/google/apis/books_v1.rb +34 -0
  74. data/generated/google/apis/books_v1/classes.rb +3515 -0
  75. data/generated/google/apis/books_v1/representations.rb +1361 -0
  76. data/generated/google/apis/books_v1/service.rb +2170 -0
  77. data/generated/google/apis/calendar_v3.rb +37 -0
  78. data/generated/google/apis/calendar_v3/classes.rb +1702 -0
  79. data/generated/google/apis/calendar_v3/representations.rb +566 -0
  80. data/generated/google/apis/calendar_v3/service.rb +1943 -0
  81. data/generated/google/apis/civicinfo_v2.rb +31 -0
  82. data/generated/google/apis/civicinfo_v2/classes.rb +1057 -0
  83. data/generated/google/apis/civicinfo_v2/representations.rb +374 -0
  84. data/generated/google/apis/civicinfo_v2/service.rb +284 -0
  85. data/generated/google/apis/cloudmonitoring_v2beta2.rb +34 -0
  86. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  87. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  88. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +458 -0
  89. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  90. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +139 -0
  91. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +65 -0
  92. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +301 -0
  93. data/generated/google/apis/compute_v1.rb +49 -0
  94. data/generated/google/apis/compute_v1/classes.rb +6391 -0
  95. data/generated/google/apis/compute_v1/representations.rb +2209 -0
  96. data/generated/google/apis/compute_v1/service.rb +6352 -0
  97. data/generated/google/apis/container_v1beta1.rb +35 -0
  98. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  99. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  100. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  101. data/generated/google/apis/content_v2.rb +35 -0
  102. data/generated/google/apis/content_v2/classes.rb +3780 -0
  103. data/generated/google/apis/content_v2/representations.rb +1456 -0
  104. data/generated/google/apis/content_v2/service.rb +1706 -0
  105. data/generated/google/apis/coordinate_v1.rb +37 -0
  106. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  107. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  108. data/generated/google/apis/coordinate_v1/service.rb +687 -0
  109. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  110. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  111. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  112. data/generated/google/apis/customsearch_v1/service.rb +208 -0
  113. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  114. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  115. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  116. data/generated/google/apis/datastore_v1beta2/service.rb +300 -0
  117. data/generated/google/apis/deploymentmanager_v2beta2.rb +41 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +820 -0
  119. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +303 -0
  120. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +647 -0
  121. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  122. data/generated/google/apis/dfareporting_v2_1/classes.rb +10755 -0
  123. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +8775 -0
  125. data/generated/google/apis/discovery_v1.rb +32 -0
  126. data/generated/google/apis/discovery_v1/classes.rb +947 -0
  127. data/generated/google/apis/discovery_v1/representations.rb +355 -0
  128. data/generated/google/apis/discovery_v1/service.rb +144 -0
  129. data/generated/google/apis/dns_v1.rb +41 -0
  130. data/generated/google/apis/dns_v1/classes.rb +406 -0
  131. data/generated/google/apis/dns_v1/representations.rb +151 -0
  132. data/generated/google/apis/dns_v1/service.rb +460 -0
  133. data/{spec/google/api_client/request_spec.rb → generated/google/apis/doubleclickbidmanager_v1.rb} +15 -13
  134. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +709 -0
  135. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +297 -0
  136. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +349 -0
  137. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  138. data/generated/google/apis/doubleclicksearch_v2/classes.rb +947 -0
  139. data/generated/google/apis/doubleclicksearch_v2/representations.rb +315 -0
  140. data/generated/google/apis/doubleclicksearch_v2/service.rb +490 -0
  141. data/generated/google/apis/drive_v2.rb +55 -0
  142. data/generated/google/apis/drive_v2/classes.rb +2519 -0
  143. data/generated/google/apis/drive_v2/representations.rb +781 -0
  144. data/generated/google/apis/drive_v2/service.rb +2685 -0
  145. data/generated/google/apis/fitness_v1.rb +49 -0
  146. data/generated/google/apis/fitness_v1/classes.rb +809 -0
  147. data/generated/google/apis/fitness_v1/representations.rb +295 -0
  148. data/generated/google/apis/fitness_v1/service.rb +684 -0
  149. data/generated/google/apis/fusiontables_v2.rb +37 -0
  150. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  151. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  152. data/generated/google/apis/fusiontables_v2/service.rb +1496 -0
  153. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  154. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  155. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  156. data/generated/google/apis/games_configuration_v1configuration/service.rb +578 -0
  157. data/generated/google/apis/games_v1.rb +40 -0
  158. data/generated/google/apis/games_v1/classes.rb +4578 -0
  159. data/generated/google/apis/games_v1/representations.rb +1570 -0
  160. data/generated/google/apis/games_v1/service.rb +2306 -0
  161. data/generated/google/apis/gan_v1beta1.rb +31 -0
  162. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  163. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  164. data/generated/google/apis/gan_v1beta1/service.rb +692 -0
  165. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  166. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  167. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  168. data/generated/google/apis/genomics_v1beta2/service.rb +2356 -0
  169. data/generated/google/apis/gmail_v1.rb +49 -0
  170. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  171. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  172. data/generated/google/apis/gmail_v1/service.rb +1502 -0
  173. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  174. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  175. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  176. data/generated/google/apis/groupsmigration_v1/service.rb +111 -0
  177. data/generated/google/apis/groupssettings_v1.rb +34 -0
  178. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  179. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  180. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  181. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  182. data/generated/google/apis/identitytoolkit_v3/classes.rb +1229 -0
  183. data/generated/google/apis/identitytoolkit_v3/representations.rb +422 -0
  184. data/generated/google/apis/identitytoolkit_v3/service.rb +491 -0
  185. data/generated/google/apis/licensing_v1.rb +34 -0
  186. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  187. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  188. data/generated/google/apis/licensing_v1/service.rb +376 -0
  189. data/generated/google/apis/logging_v1beta3.rb +35 -0
  190. data/generated/google/apis/logging_v1beta3/classes.rb +505 -0
  191. data/generated/google/apis/logging_v1beta3/representations.rb +222 -0
  192. data/generated/google/apis/logging_v1beta3/service.rb +670 -0
  193. data/generated/google/apis/manager_v1beta2.rb +50 -0
  194. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  195. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  196. data/generated/google/apis/manager_v1beta2/service.rb +380 -0
  197. data/generated/google/apis/mapsengine_v1.rb +38 -0
  198. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  199. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  200. data/generated/google/apis/mapsengine_v1/service.rb +3465 -0
  201. data/generated/google/apis/mirror_v1.rb +37 -0
  202. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  203. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  204. data/generated/google/apis/mirror_v1/service.rb +1001 -0
  205. data/generated/google/apis/oauth2_v2.rb +43 -0
  206. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  207. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  208. data/generated/google/apis/oauth2_v2/service.rb +203 -0
  209. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  210. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  211. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  212. data/generated/google/apis/pagespeedonline_v2/service.rb +120 -0
  213. data/generated/google/apis/plus_domains_v1.rb +61 -0
  214. data/generated/google/apis/plus_domains_v1/classes.rb +2402 -0
  215. data/generated/google/apis/plus_domains_v1/representations.rb +873 -0
  216. data/generated/google/apis/plus_domains_v1/service.rb +924 -0
  217. data/generated/google/apis/plus_v1.rb +43 -0
  218. data/generated/google/apis/plus_v1/classes.rb +2384 -0
  219. data/generated/google/apis/plus_v1/representations.rb +812 -0
  220. data/generated/google/apis/plus_v1/service.rb +616 -0
  221. data/generated/google/apis/prediction_v1_6.rb +44 -0
  222. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  223. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  224. data/generated/google/apis/prediction_v1_6/service.rb +388 -0
  225. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  226. data/generated/google/apis/pubsub_v1beta2/classes.rb +824 -0
  227. data/generated/google/apis/pubsub_v1beta2/representations.rb +366 -0
  228. data/generated/google/apis/pubsub_v1beta2/service.rb +778 -0
  229. data/generated/google/apis/qpx_express_v1.rb +31 -0
  230. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  231. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  232. data/generated/google/apis/qpx_express_v1/service.rb +101 -0
  233. data/generated/google/apis/replicapool_v1beta2.rb +41 -0
  234. data/generated/google/apis/replicapool_v1beta2/classes.rb +621 -0
  235. data/generated/google/apis/replicapool_v1beta2/representations.rb +235 -0
  236. data/generated/google/apis/replicapool_v1beta2/service.rb +620 -0
  237. data/generated/google/apis/replicapoolupdater_v1beta1.rb +41 -0
  238. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +682 -0
  239. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +247 -0
  240. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +472 -0
  241. data/generated/google/apis/reseller_v1.rb +37 -0
  242. data/generated/google/apis/reseller_v1/classes.rb +502 -0
  243. data/generated/google/apis/reseller_v1/representations.rb +199 -0
  244. data/generated/google/apis/reseller_v1/service.rb +637 -0
  245. data/generated/google/apis/resourceviews_v1beta2.rb +47 -0
  246. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  247. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  248. data/generated/google/apis/resourceviews_v1beta2/service.rb +574 -0
  249. data/generated/google/apis/site_verification_v1.rb +37 -0
  250. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  251. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  252. data/generated/google/apis/site_verification_v1/service.rb +322 -0
  253. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  254. data/generated/google/apis/sqladmin_v1beta4/classes.rb +1817 -0
  255. data/generated/google/apis/sqladmin_v1beta4/representations.rb +688 -0
  256. data/generated/google/apis/sqladmin_v1beta4/service.rb +1534 -0
  257. data/generated/google/apis/storage_v1.rb +43 -0
  258. data/generated/google/apis/storage_v1/classes.rb +1177 -0
  259. data/generated/google/apis/storage_v1/representations.rb +427 -0
  260. data/generated/google/apis/storage_v1/service.rb +1920 -0
  261. data/generated/google/apis/tagmanager_v1.rb +52 -0
  262. data/generated/google/apis/tagmanager_v1/classes.rb +1226 -0
  263. data/generated/google/apis/tagmanager_v1/representations.rb +461 -0
  264. data/generated/google/apis/tagmanager_v1/service.rb +1978 -0
  265. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  266. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  267. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  268. data/generated/google/apis/taskqueue_v1beta2/service.rb +416 -0
  269. data/generated/google/apis/tasks_v1.rb +37 -0
  270. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  271. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  272. data/generated/google/apis/tasks_v1/service.rb +657 -0
  273. data/generated/google/apis/translate_v2.rb +31 -0
  274. data/generated/google/apis/translate_v2/classes.rb +168 -0
  275. data/generated/google/apis/translate_v2/representations.rb +109 -0
  276. data/generated/google/apis/translate_v2/service.rb +185 -0
  277. data/generated/google/apis/urlshortener_v1.rb +34 -0
  278. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  279. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  280. data/generated/google/apis/urlshortener_v1/service.rb +179 -0
  281. data/generated/google/apis/webmasters_v3.rb +37 -0
  282. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  283. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  284. data/generated/google/apis/webmasters_v3/service.rb +587 -0
  285. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  286. data/generated/google/apis/youtube_analytics_v1/classes.rb +540 -0
  287. data/generated/google/apis/youtube_analytics_v1/representations.rb +242 -0
  288. data/generated/google/apis/youtube_analytics_v1/service.rb +567 -0
  289. data/generated/google/apis/youtube_v3.rb +49 -0
  290. data/generated/google/apis/youtube_v3/classes.rb +7225 -0
  291. data/generated/google/apis/youtube_v3/representations.rb +2529 -0
  292. data/generated/google/apis/youtube_v3/service.rb +4051 -0
  293. data/google-api-client.gemspec +27 -39
  294. data/lib/google/api_client/auth/storage.rb +3 -2
  295. data/lib/google/api_client/auth/storages/file_store.rb +1 -3
  296. data/lib/google/api_client/auth/storages/redis_store.rb +6 -2
  297. data/lib/google/apis.rb +48 -0
  298. data/lib/google/apis/core/api_command.rb +128 -0
  299. data/lib/google/apis/core/base_service.rb +314 -0
  300. data/lib/google/apis/core/batch.rb +222 -0
  301. data/lib/google/apis/core/download.rb +94 -0
  302. data/lib/google/apis/core/hashable.rb +44 -0
  303. data/lib/google/apis/core/http_command.rb +275 -0
  304. data/lib/google/apis/core/json_representation.rb +122 -0
  305. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  306. data/lib/google/apis/core/multipart.rb +173 -0
  307. data/lib/google/apis/core/upload.rb +275 -0
  308. data/lib/google/{api_client → apis}/errors.rb +32 -28
  309. data/lib/google/apis/generator.rb +70 -0
  310. data/lib/google/apis/generator/annotator.rb +271 -0
  311. data/lib/google/apis/generator/helpers.rb +74 -0
  312. data/lib/google/apis/generator/model.rb +130 -0
  313. data/lib/google/apis/generator/template.rb +124 -0
  314. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  315. data/lib/google/apis/generator/templates/_method.tmpl +90 -0
  316. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  317. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  318. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  319. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  320. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  321. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  322. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  323. data/lib/google/apis/options.rb +79 -0
  324. data/lib/google/apis/version.rb +39 -0
  325. data/rakelib/metrics.rake +22 -0
  326. data/rakelib/rubocop.rake +10 -0
  327. data/rakelib/spec.rake +11 -0
  328. data/rakelib/yard.rake +11 -0
  329. data/samples/calendar/calendar.rb +43 -0
  330. data/samples/drive/drive.rb +40 -0
  331. data/samples/pubsub/pubsub.rb +52 -0
  332. data/{lib/google/api_client/discovery.rb → samples/translate/translate.rb} +14 -5
  333. data/script/generate +79 -0
  334. data/script/package +8 -0
  335. data/script/release +15 -0
  336. data/spec/fixtures/files/api_names.yaml +3 -0
  337. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  338. data/spec/fixtures/files/client_secrets.json +1 -0
  339. data/spec/fixtures/files/test.blah +1 -0
  340. data/spec/fixtures/files/test.txt +1 -0
  341. data/spec/fixtures/files/test_api.json +440 -0
  342. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  343. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  344. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  345. data/spec/google/apis/core/api_command_spec.rb +170 -0
  346. data/spec/google/apis/core/batch_spec.rb +128 -0
  347. data/spec/google/apis/core/download_spec.rb +90 -0
  348. data/spec/google/apis/core/hashable_spec.rb +60 -0
  349. data/spec/google/apis/core/http_command_spec.rb +238 -0
  350. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  351. data/spec/google/apis/core/service_spec.rb +247 -0
  352. data/spec/google/apis/core/upload_spec.rb +238 -0
  353. data/{lib/google/api_client/service_account.rb → spec/google/apis/generated_spec.rb} +14 -8
  354. data/spec/google/apis/generator/generator_spec.rb +272 -0
  355. data/spec/google/apis/logging_spec.rb +45 -0
  356. data/spec/google/apis/options_spec.rb +40 -0
  357. data/spec/integration_tests/drive_spec.rb +35 -0
  358. data/spec/integration_tests/pubsub_spec.rb +48 -0
  359. data/spec/integration_tests/url_shortener_spec.rb +31 -0
  360. data/spec/spec_helper.rb +102 -46
  361. metadata +433 -178
  362. data/lib/compat/multi_json.rb +0 -19
  363. data/lib/google/api_client.rb +0 -750
  364. data/lib/google/api_client/auth/file_storage.rb +0 -59
  365. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  366. data/lib/google/api_client/auth/key_utils.rb +0 -93
  367. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  368. data/lib/google/api_client/batch.rb +0 -326
  369. data/lib/google/api_client/charset.rb +0 -33
  370. data/lib/google/api_client/discovery/api.rb +0 -310
  371. data/lib/google/api_client/discovery/media.rb +0 -77
  372. data/lib/google/api_client/discovery/method.rb +0 -363
  373. data/lib/google/api_client/discovery/resource.rb +0 -156
  374. data/lib/google/api_client/discovery/schema.rb +0 -117
  375. data/lib/google/api_client/environment.rb +0 -42
  376. data/lib/google/api_client/gzip.rb +0 -28
  377. data/lib/google/api_client/logging.rb +0 -32
  378. data/lib/google/api_client/media.rb +0 -259
  379. data/lib/google/api_client/railtie.rb +0 -18
  380. data/lib/google/api_client/request.rb +0 -350
  381. data/lib/google/api_client/result.rb +0 -255
  382. data/lib/google/api_client/service.rb +0 -233
  383. data/lib/google/api_client/service/batch.rb +0 -110
  384. data/lib/google/api_client/service/request.rb +0 -144
  385. data/lib/google/api_client/service/resource.rb +0 -40
  386. data/lib/google/api_client/service/result.rb +0 -162
  387. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  388. data/lib/google/api_client/service/stub_generator.rb +0 -61
  389. data/spec/google/api_client/batch_spec.rb +0 -248
  390. data/spec/google/api_client/discovery_spec.rb +0 -708
  391. data/spec/google/api_client/gzip_spec.rb +0 -98
  392. data/spec/google/api_client/media_spec.rb +0 -178
  393. data/spec/google/api_client/result_spec.rb +0 -207
  394. data/spec/google/api_client/service_account_spec.rb +0 -169
  395. data/spec/google/api_client/service_spec.rb +0 -618
  396. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  397. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,1456 @@
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 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ContentV2
24
+
25
+ class Account
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+ end
28
+
29
+ class AccountAdwordsLink
30
+ class Representation < Google::Apis::Core::JsonRepresentation; end
31
+ end
32
+
33
+ class AccountIdentifier
34
+ class Representation < Google::Apis::Core::JsonRepresentation; end
35
+ end
36
+
37
+ class AccountShipping
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+ end
40
+
41
+ class AccountShippingCarrierRate
42
+ class Representation < Google::Apis::Core::JsonRepresentation; end
43
+ end
44
+
45
+ class AccountShippingCondition
46
+ class Representation < Google::Apis::Core::JsonRepresentation; end
47
+ end
48
+
49
+ class AccountShippingLocationGroup
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+ end
52
+
53
+ class AccountShippingPostalCodeRange
54
+ class Representation < Google::Apis::Core::JsonRepresentation; end
55
+ end
56
+
57
+ class AccountShippingRateTable
58
+ class Representation < Google::Apis::Core::JsonRepresentation; end
59
+ end
60
+
61
+ class AccountShippingRateTableCell
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+ end
64
+
65
+ class AccountShippingShippingService
66
+ class Representation < Google::Apis::Core::JsonRepresentation; end
67
+ end
68
+
69
+ class AccountShippingShippingServiceCalculationMethod
70
+ class Representation < Google::Apis::Core::JsonRepresentation; end
71
+ end
72
+
73
+ class AccountShippingShippingServiceCostRule
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+ end
76
+
77
+ class AccountStatus
78
+ class Representation < Google::Apis::Core::JsonRepresentation; end
79
+ end
80
+
81
+ class AccountStatusDataQualityIssue
82
+ class Representation < Google::Apis::Core::JsonRepresentation; end
83
+ end
84
+
85
+ class AccountStatusExampleItem
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+ end
88
+
89
+ class AccountTax
90
+ class Representation < Google::Apis::Core::JsonRepresentation; end
91
+ end
92
+
93
+ class AccountTaxTaxRule
94
+ class Representation < Google::Apis::Core::JsonRepresentation; end
95
+ end
96
+
97
+ class AccountUser
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+ end
100
+
101
+ class AccountsAuthInfoResponse
102
+ class Representation < Google::Apis::Core::JsonRepresentation; end
103
+ end
104
+
105
+ class BatchAccountsRequest
106
+ class Representation < Google::Apis::Core::JsonRepresentation; end
107
+ end
108
+
109
+ class AccountsBatchRequestEntry
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+ end
112
+
113
+ class BatchAccountsResponse
114
+ class Representation < Google::Apis::Core::JsonRepresentation; end
115
+ end
116
+
117
+ class AccountsBatchResponseEntry
118
+ class Representation < Google::Apis::Core::JsonRepresentation; end
119
+ end
120
+
121
+ class ListAccountsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+ end
124
+
125
+ class BatchAccountShippingRequest
126
+ class Representation < Google::Apis::Core::JsonRepresentation; end
127
+ end
128
+
129
+ class AccountShippingBatchRequestEntry
130
+ class Representation < Google::Apis::Core::JsonRepresentation; end
131
+ end
132
+
133
+ class BatchAccountShippingResponse
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+ end
136
+
137
+ class AccountShippingBatchResponseEntry
138
+ class Representation < Google::Apis::Core::JsonRepresentation; end
139
+ end
140
+
141
+ class ListAccountShippingResponse
142
+ class Representation < Google::Apis::Core::JsonRepresentation; end
143
+ end
144
+
145
+ class BatchAccountStatusesRequest
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+ end
148
+
149
+ class AccountStatusesBatchRequestEntry
150
+ class Representation < Google::Apis::Core::JsonRepresentation; end
151
+ end
152
+
153
+ class BatchAccountStatusesResponse
154
+ class Representation < Google::Apis::Core::JsonRepresentation; end
155
+ end
156
+
157
+ class AccountStatusesBatchResponseEntry
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+ end
160
+
161
+ class ListAccountStatusesResponse
162
+ class Representation < Google::Apis::Core::JsonRepresentation; end
163
+ end
164
+
165
+ class BatchAccountTaxRequest
166
+ class Representation < Google::Apis::Core::JsonRepresentation; end
167
+ end
168
+
169
+ class AccountTaxBatchRequestEntry
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+ end
172
+
173
+ class BatchAccountTaxResponse
174
+ class Representation < Google::Apis::Core::JsonRepresentation; end
175
+ end
176
+
177
+ class AccountTaxBatchResponseEntry
178
+ class Representation < Google::Apis::Core::JsonRepresentation; end
179
+ end
180
+
181
+ class ListAccountTaxResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+ end
184
+
185
+ class Datafeed
186
+ class Representation < Google::Apis::Core::JsonRepresentation; end
187
+ end
188
+
189
+ class DatafeedFetchSchedule
190
+ class Representation < Google::Apis::Core::JsonRepresentation; end
191
+ end
192
+
193
+ class DatafeedFormat
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+ end
196
+
197
+ class DatafeedStatus
198
+ class Representation < Google::Apis::Core::JsonRepresentation; end
199
+ end
200
+
201
+ class DatafeedStatusError
202
+ class Representation < Google::Apis::Core::JsonRepresentation; end
203
+ end
204
+
205
+ class DatafeedStatusExample
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+ end
208
+
209
+ class BatchDatafeedsRequest
210
+ class Representation < Google::Apis::Core::JsonRepresentation; end
211
+ end
212
+
213
+ class DatafeedsBatchRequestEntry
214
+ class Representation < Google::Apis::Core::JsonRepresentation; end
215
+ end
216
+
217
+ class BatchDatafeedsResponse
218
+ class Representation < Google::Apis::Core::JsonRepresentation; end
219
+ end
220
+
221
+ class DatafeedsBatchResponseEntry
222
+ class Representation < Google::Apis::Core::JsonRepresentation; end
223
+ end
224
+
225
+ class ListDatafeedsResponse
226
+ class Representation < Google::Apis::Core::JsonRepresentation; end
227
+ end
228
+
229
+ class BatchDatafeedStatusesRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+ end
232
+
233
+ class DatafeedStatusesBatchRequestEntry
234
+ class Representation < Google::Apis::Core::JsonRepresentation; end
235
+ end
236
+
237
+ class BatchDatafeedStatusesResponse
238
+ class Representation < Google::Apis::Core::JsonRepresentation; end
239
+ end
240
+
241
+ class DatafeedStatusesBatchResponseEntry
242
+ class Representation < Google::Apis::Core::JsonRepresentation; end
243
+ end
244
+
245
+ class ListDatafeedStatusesResponse
246
+ class Representation < Google::Apis::Core::JsonRepresentation; end
247
+ end
248
+
249
+ class Error
250
+ class Representation < Google::Apis::Core::JsonRepresentation; end
251
+ end
252
+
253
+ class Errors
254
+ class Representation < Google::Apis::Core::JsonRepresentation; end
255
+ end
256
+
257
+ class Inventory
258
+ class Representation < Google::Apis::Core::JsonRepresentation; end
259
+ end
260
+
261
+ class BatchInventoryRequest
262
+ class Representation < Google::Apis::Core::JsonRepresentation; end
263
+ end
264
+
265
+ class InventoryBatchRequestEntry
266
+ class Representation < Google::Apis::Core::JsonRepresentation; end
267
+ end
268
+
269
+ class BatchInventoryResponse
270
+ class Representation < Google::Apis::Core::JsonRepresentation; end
271
+ end
272
+
273
+ class InventoryBatchResponseEntry
274
+ class Representation < Google::Apis::Core::JsonRepresentation; end
275
+ end
276
+
277
+ class SetInventoryRequest
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+ end
280
+
281
+ class SetInventoryResponse
282
+ class Representation < Google::Apis::Core::JsonRepresentation; end
283
+ end
284
+
285
+ class LoyaltyPoints
286
+ class Representation < Google::Apis::Core::JsonRepresentation; end
287
+ end
288
+
289
+ class Price
290
+ class Representation < Google::Apis::Core::JsonRepresentation; end
291
+ end
292
+
293
+ class Product
294
+ class Representation < Google::Apis::Core::JsonRepresentation; end
295
+ end
296
+
297
+ class ProductAspect
298
+ class Representation < Google::Apis::Core::JsonRepresentation; end
299
+ end
300
+
301
+ class ProductCustomAttribute
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+ end
304
+
305
+ class ProductCustomGroup
306
+ class Representation < Google::Apis::Core::JsonRepresentation; end
307
+ end
308
+
309
+ class ProductDestination
310
+ class Representation < Google::Apis::Core::JsonRepresentation; end
311
+ end
312
+
313
+ class ProductInstallment
314
+ class Representation < Google::Apis::Core::JsonRepresentation; end
315
+ end
316
+
317
+ class ProductShipping
318
+ class Representation < Google::Apis::Core::JsonRepresentation; end
319
+ end
320
+
321
+ class ProductShippingDimension
322
+ class Representation < Google::Apis::Core::JsonRepresentation; end
323
+ end
324
+
325
+ class ProductShippingWeight
326
+ class Representation < Google::Apis::Core::JsonRepresentation; end
327
+ end
328
+
329
+ class ProductStatus
330
+ class Representation < Google::Apis::Core::JsonRepresentation; end
331
+ end
332
+
333
+ class ProductStatusDataQualityIssue
334
+ class Representation < Google::Apis::Core::JsonRepresentation; end
335
+ end
336
+
337
+ class ProductStatusDestinationStatus
338
+ class Representation < Google::Apis::Core::JsonRepresentation; end
339
+ end
340
+
341
+ class ProductTax
342
+ class Representation < Google::Apis::Core::JsonRepresentation; end
343
+ end
344
+
345
+ class ProductUnitPricingBaseMeasure
346
+ class Representation < Google::Apis::Core::JsonRepresentation; end
347
+ end
348
+
349
+ class ProductUnitPricingMeasure
350
+ class Representation < Google::Apis::Core::JsonRepresentation; end
351
+ end
352
+
353
+ class BatchProductsRequest
354
+ class Representation < Google::Apis::Core::JsonRepresentation; end
355
+ end
356
+
357
+ class ProductsBatchRequestEntry
358
+ class Representation < Google::Apis::Core::JsonRepresentation; end
359
+ end
360
+
361
+ class BatchProductsResponse
362
+ class Representation < Google::Apis::Core::JsonRepresentation; end
363
+ end
364
+
365
+ class ProductsBatchResponseEntry
366
+ class Representation < Google::Apis::Core::JsonRepresentation; end
367
+ end
368
+
369
+ class ListProductsResponse
370
+ class Representation < Google::Apis::Core::JsonRepresentation; end
371
+ end
372
+
373
+ class BatchProductStatusesRequest
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+ end
376
+
377
+ class ProductStatusesBatchRequestEntry
378
+ class Representation < Google::Apis::Core::JsonRepresentation; end
379
+ end
380
+
381
+ class BatchProductStatusesResponse
382
+ class Representation < Google::Apis::Core::JsonRepresentation; end
383
+ end
384
+
385
+ class ProductStatusesBatchResponseEntry
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+ end
388
+
389
+ class ListProductStatusesResponse
390
+ class Representation < Google::Apis::Core::JsonRepresentation; end
391
+ end
392
+
393
+ class Weight
394
+ class Representation < Google::Apis::Core::JsonRepresentation; end
395
+ end
396
+
397
+ class Account
398
+ # @private
399
+ class Representation < Google::Apis::Core::JsonRepresentation
400
+ property :adult_content, as: 'adultContent'
401
+ collection :adwords_links, as: 'adwordsLinks', class: Google::Apis::ContentV2::AccountAdwordsLink, decorator: Google::Apis::ContentV2::AccountAdwordsLink::Representation
402
+
403
+ property :id, as: 'id'
404
+ property :kind, as: 'kind'
405
+ property :name, as: 'name'
406
+ property :reviews_url, as: 'reviewsUrl'
407
+ property :seller_id, as: 'sellerId'
408
+ collection :users, as: 'users', class: Google::Apis::ContentV2::AccountUser, decorator: Google::Apis::ContentV2::AccountUser::Representation
409
+
410
+ property :website_url, as: 'websiteUrl'
411
+ end
412
+ end
413
+
414
+ class AccountAdwordsLink
415
+ # @private
416
+ class Representation < Google::Apis::Core::JsonRepresentation
417
+ property :adwords_id, as: 'adwordsId'
418
+ property :status, as: 'status'
419
+ end
420
+ end
421
+
422
+ class AccountIdentifier
423
+ # @private
424
+ class Representation < Google::Apis::Core::JsonRepresentation
425
+ property :aggregator_id, as: 'aggregatorId'
426
+ property :merchant_id, as: 'merchantId'
427
+ end
428
+ end
429
+
430
+ class AccountShipping
431
+ # @private
432
+ class Representation < Google::Apis::Core::JsonRepresentation
433
+ property :account_id, as: 'accountId'
434
+ collection :carrier_rates, as: 'carrierRates', class: Google::Apis::ContentV2::AccountShippingCarrierRate, decorator: Google::Apis::ContentV2::AccountShippingCarrierRate::Representation
435
+
436
+ property :kind, as: 'kind'
437
+ collection :location_groups, as: 'locationGroups', class: Google::Apis::ContentV2::AccountShippingLocationGroup, decorator: Google::Apis::ContentV2::AccountShippingLocationGroup::Representation
438
+
439
+ collection :rate_tables, as: 'rateTables', class: Google::Apis::ContentV2::AccountShippingRateTable, decorator: Google::Apis::ContentV2::AccountShippingRateTable::Representation
440
+
441
+ collection :services, as: 'services', class: Google::Apis::ContentV2::AccountShippingShippingService, decorator: Google::Apis::ContentV2::AccountShippingShippingService::Representation
442
+
443
+ end
444
+ end
445
+
446
+ class AccountShippingCarrierRate
447
+ # @private
448
+ class Representation < Google::Apis::Core::JsonRepresentation
449
+ property :carrier, as: 'carrier'
450
+ property :carrier_service, as: 'carrierService'
451
+ property :modifier_flat_rate, as: 'modifierFlatRate', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
452
+
453
+ property :modifier_percent, as: 'modifierPercent'
454
+ property :name, as: 'name'
455
+ property :sale_country, as: 'saleCountry'
456
+ property :shipping_origin, as: 'shippingOrigin'
457
+ end
458
+ end
459
+
460
+ class AccountShippingCondition
461
+ # @private
462
+ class Representation < Google::Apis::Core::JsonRepresentation
463
+ property :delivery_location_group, as: 'deliveryLocationGroup'
464
+ property :delivery_location_id, as: 'deliveryLocationId'
465
+ property :delivery_postal_code, as: 'deliveryPostalCode'
466
+ property :delivery_postal_code_range, as: 'deliveryPostalCodeRange', class: Google::Apis::ContentV2::AccountShippingPostalCodeRange, decorator: Google::Apis::ContentV2::AccountShippingPostalCodeRange::Representation
467
+
468
+ property :price_max, as: 'priceMax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
469
+
470
+ property :shipping_label, as: 'shippingLabel'
471
+ property :weight_max, as: 'weightMax', class: Google::Apis::ContentV2::Weight, decorator: Google::Apis::ContentV2::Weight::Representation
472
+
473
+ end
474
+ end
475
+
476
+ class AccountShippingLocationGroup
477
+ # @private
478
+ class Representation < Google::Apis::Core::JsonRepresentation
479
+ property :country, as: 'country'
480
+ collection :location_ids, as: 'locationIds'
481
+ property :name, as: 'name'
482
+ collection :postal_code_ranges, as: 'postalCodeRanges', class: Google::Apis::ContentV2::AccountShippingPostalCodeRange, decorator: Google::Apis::ContentV2::AccountShippingPostalCodeRange::Representation
483
+
484
+ collection :postal_codes, as: 'postalCodes'
485
+ end
486
+ end
487
+
488
+ class AccountShippingPostalCodeRange
489
+ # @private
490
+ class Representation < Google::Apis::Core::JsonRepresentation
491
+ property :end, as: 'end'
492
+ property :start, as: 'start'
493
+ end
494
+ end
495
+
496
+ class AccountShippingRateTable
497
+ # @private
498
+ class Representation < Google::Apis::Core::JsonRepresentation
499
+ collection :content, as: 'content', class: Google::Apis::ContentV2::AccountShippingRateTableCell, decorator: Google::Apis::ContentV2::AccountShippingRateTableCell::Representation
500
+
501
+ property :name, as: 'name'
502
+ property :sale_country, as: 'saleCountry'
503
+ end
504
+ end
505
+
506
+ class AccountShippingRateTableCell
507
+ # @private
508
+ class Representation < Google::Apis::Core::JsonRepresentation
509
+ property :condition, as: 'condition', class: Google::Apis::ContentV2::AccountShippingCondition, decorator: Google::Apis::ContentV2::AccountShippingCondition::Representation
510
+
511
+ property :rate, as: 'rate', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
512
+
513
+ end
514
+ end
515
+
516
+ class AccountShippingShippingService
517
+ # @private
518
+ class Representation < Google::Apis::Core::JsonRepresentation
519
+ property :active, as: 'active'
520
+ property :calculation_method, as: 'calculationMethod', class: Google::Apis::ContentV2::AccountShippingShippingServiceCalculationMethod, decorator: Google::Apis::ContentV2::AccountShippingShippingServiceCalculationMethod::Representation
521
+
522
+ property :cost_rule_tree, as: 'costRuleTree', class: Google::Apis::ContentV2::AccountShippingShippingServiceCostRule, decorator: Google::Apis::ContentV2::AccountShippingShippingServiceCostRule::Representation
523
+
524
+ property :name, as: 'name'
525
+ property :sale_country, as: 'saleCountry'
526
+ end
527
+ end
528
+
529
+ class AccountShippingShippingServiceCalculationMethod
530
+ # @private
531
+ class Representation < Google::Apis::Core::JsonRepresentation
532
+ property :carrier_rate, as: 'carrierRate'
533
+ property :excluded, as: 'excluded'
534
+ property :flat_rate, as: 'flatRate', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
535
+
536
+ property :percentage_rate, as: 'percentageRate'
537
+ property :rate_table, as: 'rateTable'
538
+ end
539
+ end
540
+
541
+ class AccountShippingShippingServiceCostRule
542
+ # @private
543
+ class Representation < Google::Apis::Core::JsonRepresentation
544
+ property :calculation_method, as: 'calculationMethod', class: Google::Apis::ContentV2::AccountShippingShippingServiceCalculationMethod, decorator: Google::Apis::ContentV2::AccountShippingShippingServiceCalculationMethod::Representation
545
+
546
+ collection :children, as: 'children', class: Google::Apis::ContentV2::AccountShippingShippingServiceCostRule, decorator: Google::Apis::ContentV2::AccountShippingShippingServiceCostRule::Representation
547
+
548
+ property :condition, as: 'condition', class: Google::Apis::ContentV2::AccountShippingCondition, decorator: Google::Apis::ContentV2::AccountShippingCondition::Representation
549
+
550
+ end
551
+ end
552
+
553
+ class AccountStatus
554
+ # @private
555
+ class Representation < Google::Apis::Core::JsonRepresentation
556
+ property :account_id, as: 'accountId'
557
+ collection :data_quality_issues, as: 'dataQualityIssues', class: Google::Apis::ContentV2::AccountStatusDataQualityIssue, decorator: Google::Apis::ContentV2::AccountStatusDataQualityIssue::Representation
558
+
559
+ property :kind, as: 'kind'
560
+ end
561
+ end
562
+
563
+ class AccountStatusDataQualityIssue
564
+ # @private
565
+ class Representation < Google::Apis::Core::JsonRepresentation
566
+ property :country, as: 'country'
567
+ property :displayed_value, as: 'displayedValue'
568
+ collection :example_items, as: 'exampleItems', class: Google::Apis::ContentV2::AccountStatusExampleItem, decorator: Google::Apis::ContentV2::AccountStatusExampleItem::Representation
569
+
570
+ property :id, as: 'id'
571
+ property :last_checked, as: 'lastChecked'
572
+ property :num_items, as: 'numItems'
573
+ property :severity, as: 'severity'
574
+ property :submitted_value, as: 'submittedValue'
575
+ end
576
+ end
577
+
578
+ class AccountStatusExampleItem
579
+ # @private
580
+ class Representation < Google::Apis::Core::JsonRepresentation
581
+ property :item_id, as: 'itemId'
582
+ property :link, as: 'link'
583
+ property :submitted_value, as: 'submittedValue'
584
+ property :title, as: 'title'
585
+ property :value_on_landing_page, as: 'valueOnLandingPage'
586
+ end
587
+ end
588
+
589
+ class AccountTax
590
+ # @private
591
+ class Representation < Google::Apis::Core::JsonRepresentation
592
+ property :account_id, as: 'accountId'
593
+ property :kind, as: 'kind'
594
+ collection :rules, as: 'rules', class: Google::Apis::ContentV2::AccountTaxTaxRule, decorator: Google::Apis::ContentV2::AccountTaxTaxRule::Representation
595
+
596
+ end
597
+ end
598
+
599
+ class AccountTaxTaxRule
600
+ # @private
601
+ class Representation < Google::Apis::Core::JsonRepresentation
602
+ property :country, as: 'country'
603
+ property :location_id, as: 'locationId'
604
+ property :rate_percent, as: 'ratePercent'
605
+ property :shipping_taxed, as: 'shippingTaxed'
606
+ property :use_global_rate, as: 'useGlobalRate'
607
+ end
608
+ end
609
+
610
+ class AccountUser
611
+ # @private
612
+ class Representation < Google::Apis::Core::JsonRepresentation
613
+ property :admin, as: 'admin'
614
+ property :email_address, as: 'emailAddress'
615
+ end
616
+ end
617
+
618
+ class AccountsAuthInfoResponse
619
+ # @private
620
+ class Representation < Google::Apis::Core::JsonRepresentation
621
+ collection :account_identifiers, as: 'accountIdentifiers', class: Google::Apis::ContentV2::AccountIdentifier, decorator: Google::Apis::ContentV2::AccountIdentifier::Representation
622
+
623
+ property :kind, as: 'kind'
624
+ end
625
+ end
626
+
627
+ class BatchAccountsRequest
628
+ # @private
629
+ class Representation < Google::Apis::Core::JsonRepresentation
630
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountsBatchRequestEntry, decorator: Google::Apis::ContentV2::AccountsBatchRequestEntry::Representation
631
+
632
+ end
633
+ end
634
+
635
+ class AccountsBatchRequestEntry
636
+ # @private
637
+ class Representation < Google::Apis::Core::JsonRepresentation
638
+ property :account, as: 'account', class: Google::Apis::ContentV2::Account, decorator: Google::Apis::ContentV2::Account::Representation
639
+
640
+ property :account_id, as: 'accountId'
641
+ property :batch_id, as: 'batchId'
642
+ property :merchant_id, as: 'merchantId'
643
+ property :request_method, as: 'method'
644
+ end
645
+ end
646
+
647
+ class BatchAccountsResponse
648
+ # @private
649
+ class Representation < Google::Apis::Core::JsonRepresentation
650
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountsBatchResponseEntry, decorator: Google::Apis::ContentV2::AccountsBatchResponseEntry::Representation
651
+
652
+ property :kind, as: 'kind'
653
+ end
654
+ end
655
+
656
+ class AccountsBatchResponseEntry
657
+ # @private
658
+ class Representation < Google::Apis::Core::JsonRepresentation
659
+ property :account, as: 'account', class: Google::Apis::ContentV2::Account, decorator: Google::Apis::ContentV2::Account::Representation
660
+
661
+ property :batch_id, as: 'batchId'
662
+ property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
663
+
664
+ property :kind, as: 'kind'
665
+ end
666
+ end
667
+
668
+ class ListAccountsResponse
669
+ # @private
670
+ class Representation < Google::Apis::Core::JsonRepresentation
671
+ property :kind, as: 'kind'
672
+ property :next_page_token, as: 'nextPageToken'
673
+ collection :resources, as: 'resources', class: Google::Apis::ContentV2::Account, decorator: Google::Apis::ContentV2::Account::Representation
674
+
675
+ end
676
+ end
677
+
678
+ class BatchAccountShippingRequest
679
+ # @private
680
+ class Representation < Google::Apis::Core::JsonRepresentation
681
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountShippingBatchRequestEntry, decorator: Google::Apis::ContentV2::AccountShippingBatchRequestEntry::Representation
682
+
683
+ end
684
+ end
685
+
686
+ class AccountShippingBatchRequestEntry
687
+ # @private
688
+ class Representation < Google::Apis::Core::JsonRepresentation
689
+ property :account_id, as: 'accountId'
690
+ property :account_shipping, as: 'accountShipping', class: Google::Apis::ContentV2::AccountShipping, decorator: Google::Apis::ContentV2::AccountShipping::Representation
691
+
692
+ property :batch_id, as: 'batchId'
693
+ property :merchant_id, as: 'merchantId'
694
+ property :request_method, as: 'method'
695
+ end
696
+ end
697
+
698
+ class BatchAccountShippingResponse
699
+ # @private
700
+ class Representation < Google::Apis::Core::JsonRepresentation
701
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountShippingBatchResponseEntry, decorator: Google::Apis::ContentV2::AccountShippingBatchResponseEntry::Representation
702
+
703
+ property :kind, as: 'kind'
704
+ end
705
+ end
706
+
707
+ class AccountShippingBatchResponseEntry
708
+ # @private
709
+ class Representation < Google::Apis::Core::JsonRepresentation
710
+ property :account_shipping, as: 'accountShipping', class: Google::Apis::ContentV2::AccountShipping, decorator: Google::Apis::ContentV2::AccountShipping::Representation
711
+
712
+ property :batch_id, as: 'batchId'
713
+ property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
714
+
715
+ property :kind, as: 'kind'
716
+ end
717
+ end
718
+
719
+ class ListAccountShippingResponse
720
+ # @private
721
+ class Representation < Google::Apis::Core::JsonRepresentation
722
+ property :kind, as: 'kind'
723
+ property :next_page_token, as: 'nextPageToken'
724
+ collection :resources, as: 'resources', class: Google::Apis::ContentV2::AccountShipping, decorator: Google::Apis::ContentV2::AccountShipping::Representation
725
+
726
+ end
727
+ end
728
+
729
+ class BatchAccountStatusesRequest
730
+ # @private
731
+ class Representation < Google::Apis::Core::JsonRepresentation
732
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountStatusesBatchRequestEntry, decorator: Google::Apis::ContentV2::AccountStatusesBatchRequestEntry::Representation
733
+
734
+ end
735
+ end
736
+
737
+ class AccountStatusesBatchRequestEntry
738
+ # @private
739
+ class Representation < Google::Apis::Core::JsonRepresentation
740
+ property :account_id, as: 'accountId'
741
+ property :batch_id, as: 'batchId'
742
+ property :merchant_id, as: 'merchantId'
743
+ property :request_method, as: 'method'
744
+ end
745
+ end
746
+
747
+ class BatchAccountStatusesResponse
748
+ # @private
749
+ class Representation < Google::Apis::Core::JsonRepresentation
750
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountStatusesBatchResponseEntry, decorator: Google::Apis::ContentV2::AccountStatusesBatchResponseEntry::Representation
751
+
752
+ property :kind, as: 'kind'
753
+ end
754
+ end
755
+
756
+ class AccountStatusesBatchResponseEntry
757
+ # @private
758
+ class Representation < Google::Apis::Core::JsonRepresentation
759
+ property :account_status, as: 'accountStatus', class: Google::Apis::ContentV2::AccountStatus, decorator: Google::Apis::ContentV2::AccountStatus::Representation
760
+
761
+ property :batch_id, as: 'batchId'
762
+ property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
763
+
764
+ end
765
+ end
766
+
767
+ class ListAccountStatusesResponse
768
+ # @private
769
+ class Representation < Google::Apis::Core::JsonRepresentation
770
+ property :kind, as: 'kind'
771
+ property :next_page_token, as: 'nextPageToken'
772
+ collection :resources, as: 'resources', class: Google::Apis::ContentV2::AccountStatus, decorator: Google::Apis::ContentV2::AccountStatus::Representation
773
+
774
+ end
775
+ end
776
+
777
+ class BatchAccountTaxRequest
778
+ # @private
779
+ class Representation < Google::Apis::Core::JsonRepresentation
780
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountTaxBatchRequestEntry, decorator: Google::Apis::ContentV2::AccountTaxBatchRequestEntry::Representation
781
+
782
+ end
783
+ end
784
+
785
+ class AccountTaxBatchRequestEntry
786
+ # @private
787
+ class Representation < Google::Apis::Core::JsonRepresentation
788
+ property :account_id, as: 'accountId'
789
+ property :account_tax, as: 'accountTax', class: Google::Apis::ContentV2::AccountTax, decorator: Google::Apis::ContentV2::AccountTax::Representation
790
+
791
+ property :batch_id, as: 'batchId'
792
+ property :merchant_id, as: 'merchantId'
793
+ property :request_method, as: 'method'
794
+ end
795
+ end
796
+
797
+ class BatchAccountTaxResponse
798
+ # @private
799
+ class Representation < Google::Apis::Core::JsonRepresentation
800
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::AccountTaxBatchResponseEntry, decorator: Google::Apis::ContentV2::AccountTaxBatchResponseEntry::Representation
801
+
802
+ property :kind, as: 'kind'
803
+ end
804
+ end
805
+
806
+ class AccountTaxBatchResponseEntry
807
+ # @private
808
+ class Representation < Google::Apis::Core::JsonRepresentation
809
+ property :account_tax, as: 'accountTax', class: Google::Apis::ContentV2::AccountTax, decorator: Google::Apis::ContentV2::AccountTax::Representation
810
+
811
+ property :batch_id, as: 'batchId'
812
+ property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
813
+
814
+ property :kind, as: 'kind'
815
+ end
816
+ end
817
+
818
+ class ListAccountTaxResponse
819
+ # @private
820
+ class Representation < Google::Apis::Core::JsonRepresentation
821
+ property :kind, as: 'kind'
822
+ property :next_page_token, as: 'nextPageToken'
823
+ collection :resources, as: 'resources', class: Google::Apis::ContentV2::AccountTax, decorator: Google::Apis::ContentV2::AccountTax::Representation
824
+
825
+ end
826
+ end
827
+
828
+ class Datafeed
829
+ # @private
830
+ class Representation < Google::Apis::Core::JsonRepresentation
831
+ property :attribute_language, as: 'attributeLanguage'
832
+ property :content_language, as: 'contentLanguage'
833
+ property :content_type, as: 'contentType'
834
+ property :fetch_schedule, as: 'fetchSchedule', class: Google::Apis::ContentV2::DatafeedFetchSchedule, decorator: Google::Apis::ContentV2::DatafeedFetchSchedule::Representation
835
+
836
+ property :file_name, as: 'fileName'
837
+ property :format, as: 'format', class: Google::Apis::ContentV2::DatafeedFormat, decorator: Google::Apis::ContentV2::DatafeedFormat::Representation
838
+
839
+ property :id, as: 'id'
840
+ collection :intended_destinations, as: 'intendedDestinations'
841
+ property :kind, as: 'kind'
842
+ property :name, as: 'name'
843
+ property :target_country, as: 'targetCountry'
844
+ end
845
+ end
846
+
847
+ class DatafeedFetchSchedule
848
+ # @private
849
+ class Representation < Google::Apis::Core::JsonRepresentation
850
+ property :day_of_month, as: 'dayOfMonth'
851
+ property :fetch_url, as: 'fetchUrl'
852
+ property :hour, as: 'hour'
853
+ property :password, as: 'password'
854
+ property :time_zone, as: 'timeZone'
855
+ property :username, as: 'username'
856
+ property :weekday, as: 'weekday'
857
+ end
858
+ end
859
+
860
+ class DatafeedFormat
861
+ # @private
862
+ class Representation < Google::Apis::Core::JsonRepresentation
863
+ property :column_delimiter, as: 'columnDelimiter'
864
+ property :file_encoding, as: 'fileEncoding'
865
+ property :quoting_mode, as: 'quotingMode'
866
+ end
867
+ end
868
+
869
+ class DatafeedStatus
870
+ # @private
871
+ class Representation < Google::Apis::Core::JsonRepresentation
872
+ property :datafeed_id, as: 'datafeedId'
873
+ collection :errors, as: 'errors', class: Google::Apis::ContentV2::DatafeedStatusError, decorator: Google::Apis::ContentV2::DatafeedStatusError::Representation
874
+
875
+ property :items_total, as: 'itemsTotal'
876
+ property :items_valid, as: 'itemsValid'
877
+ property :kind, as: 'kind'
878
+ property :last_upload_date, as: 'lastUploadDate'
879
+ property :processing_status, as: 'processingStatus'
880
+ collection :warnings, as: 'warnings', class: Google::Apis::ContentV2::DatafeedStatusError, decorator: Google::Apis::ContentV2::DatafeedStatusError::Representation
881
+
882
+ end
883
+ end
884
+
885
+ class DatafeedStatusError
886
+ # @private
887
+ class Representation < Google::Apis::Core::JsonRepresentation
888
+ property :code, as: 'code'
889
+ property :count, as: 'count'
890
+ collection :examples, as: 'examples', class: Google::Apis::ContentV2::DatafeedStatusExample, decorator: Google::Apis::ContentV2::DatafeedStatusExample::Representation
891
+
892
+ property :message, as: 'message'
893
+ end
894
+ end
895
+
896
+ class DatafeedStatusExample
897
+ # @private
898
+ class Representation < Google::Apis::Core::JsonRepresentation
899
+ property :item_id, as: 'itemId'
900
+ property :line_number, as: 'lineNumber'
901
+ property :value, as: 'value'
902
+ end
903
+ end
904
+
905
+ class BatchDatafeedsRequest
906
+ # @private
907
+ class Representation < Google::Apis::Core::JsonRepresentation
908
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedsBatchRequestEntry, decorator: Google::Apis::ContentV2::DatafeedsBatchRequestEntry::Representation
909
+
910
+ end
911
+ end
912
+
913
+ class DatafeedsBatchRequestEntry
914
+ # @private
915
+ class Representation < Google::Apis::Core::JsonRepresentation
916
+ property :batch_id, as: 'batchId'
917
+ property :datafeed, as: 'datafeed', class: Google::Apis::ContentV2::Datafeed, decorator: Google::Apis::ContentV2::Datafeed::Representation
918
+
919
+ property :datafeed_id, as: 'datafeedId'
920
+ property :merchant_id, as: 'merchantId'
921
+ property :request_method, as: 'method'
922
+ end
923
+ end
924
+
925
+ class BatchDatafeedsResponse
926
+ # @private
927
+ class Representation < Google::Apis::Core::JsonRepresentation
928
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedsBatchResponseEntry, decorator: Google::Apis::ContentV2::DatafeedsBatchResponseEntry::Representation
929
+
930
+ property :kind, as: 'kind'
931
+ end
932
+ end
933
+
934
+ class DatafeedsBatchResponseEntry
935
+ # @private
936
+ class Representation < Google::Apis::Core::JsonRepresentation
937
+ property :batch_id, as: 'batchId'
938
+ property :datafeed, as: 'datafeed', class: Google::Apis::ContentV2::Datafeed, decorator: Google::Apis::ContentV2::Datafeed::Representation
939
+
940
+ property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
941
+
942
+ end
943
+ end
944
+
945
+ class ListDatafeedsResponse
946
+ # @private
947
+ class Representation < Google::Apis::Core::JsonRepresentation
948
+ property :kind, as: 'kind'
949
+ property :next_page_token, as: 'nextPageToken'
950
+ collection :resources, as: 'resources', class: Google::Apis::ContentV2::Datafeed, decorator: Google::Apis::ContentV2::Datafeed::Representation
951
+
952
+ end
953
+ end
954
+
955
+ class BatchDatafeedStatusesRequest
956
+ # @private
957
+ class Representation < Google::Apis::Core::JsonRepresentation
958
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedStatusesBatchRequestEntry, decorator: Google::Apis::ContentV2::DatafeedStatusesBatchRequestEntry::Representation
959
+
960
+ end
961
+ end
962
+
963
+ class DatafeedStatusesBatchRequestEntry
964
+ # @private
965
+ class Representation < Google::Apis::Core::JsonRepresentation
966
+ property :batch_id, as: 'batchId'
967
+ property :datafeed_id, as: 'datafeedId'
968
+ property :merchant_id, as: 'merchantId'
969
+ property :request_method, as: 'method'
970
+ end
971
+ end
972
+
973
+ class BatchDatafeedStatusesResponse
974
+ # @private
975
+ class Representation < Google::Apis::Core::JsonRepresentation
976
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::DatafeedStatusesBatchResponseEntry, decorator: Google::Apis::ContentV2::DatafeedStatusesBatchResponseEntry::Representation
977
+
978
+ property :kind, as: 'kind'
979
+ end
980
+ end
981
+
982
+ class DatafeedStatusesBatchResponseEntry
983
+ # @private
984
+ class Representation < Google::Apis::Core::JsonRepresentation
985
+ property :batch_id, as: 'batchId'
986
+ property :datafeed_status, as: 'datafeedStatus', class: Google::Apis::ContentV2::DatafeedStatus, decorator: Google::Apis::ContentV2::DatafeedStatus::Representation
987
+
988
+ property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
989
+
990
+ end
991
+ end
992
+
993
+ class ListDatafeedStatusesResponse
994
+ # @private
995
+ class Representation < Google::Apis::Core::JsonRepresentation
996
+ property :kind, as: 'kind'
997
+ property :next_page_token, as: 'nextPageToken'
998
+ collection :resources, as: 'resources', class: Google::Apis::ContentV2::DatafeedStatus, decorator: Google::Apis::ContentV2::DatafeedStatus::Representation
999
+
1000
+ end
1001
+ end
1002
+
1003
+ class Error
1004
+ # @private
1005
+ class Representation < Google::Apis::Core::JsonRepresentation
1006
+ property :domain, as: 'domain'
1007
+ property :message, as: 'message'
1008
+ property :reason, as: 'reason'
1009
+ end
1010
+ end
1011
+
1012
+ class Errors
1013
+ # @private
1014
+ class Representation < Google::Apis::Core::JsonRepresentation
1015
+ property :code, as: 'code'
1016
+ collection :errors, as: 'errors', class: Google::Apis::ContentV2::Error, decorator: Google::Apis::ContentV2::Error::Representation
1017
+
1018
+ property :message, as: 'message'
1019
+ end
1020
+ end
1021
+
1022
+ class Inventory
1023
+ # @private
1024
+ class Representation < Google::Apis::Core::JsonRepresentation
1025
+ property :availability, as: 'availability'
1026
+ property :kind, as: 'kind'
1027
+ property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
1028
+
1029
+ property :quantity, as: 'quantity'
1030
+ property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
1031
+
1032
+ property :sale_price_effective_date, as: 'salePriceEffectiveDate'
1033
+ end
1034
+ end
1035
+
1036
+ class BatchInventoryRequest
1037
+ # @private
1038
+ class Representation < Google::Apis::Core::JsonRepresentation
1039
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::InventoryBatchRequestEntry, decorator: Google::Apis::ContentV2::InventoryBatchRequestEntry::Representation
1040
+
1041
+ end
1042
+ end
1043
+
1044
+ class InventoryBatchRequestEntry
1045
+ # @private
1046
+ class Representation < Google::Apis::Core::JsonRepresentation
1047
+ property :batch_id, as: 'batchId'
1048
+ property :inventory, as: 'inventory', class: Google::Apis::ContentV2::Inventory, decorator: Google::Apis::ContentV2::Inventory::Representation
1049
+
1050
+ property :merchant_id, as: 'merchantId'
1051
+ property :product_id, as: 'productId'
1052
+ property :store_code, as: 'storeCode'
1053
+ end
1054
+ end
1055
+
1056
+ class BatchInventoryResponse
1057
+ # @private
1058
+ class Representation < Google::Apis::Core::JsonRepresentation
1059
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::InventoryBatchResponseEntry, decorator: Google::Apis::ContentV2::InventoryBatchResponseEntry::Representation
1060
+
1061
+ property :kind, as: 'kind'
1062
+ end
1063
+ end
1064
+
1065
+ class InventoryBatchResponseEntry
1066
+ # @private
1067
+ class Representation < Google::Apis::Core::JsonRepresentation
1068
+ property :batch_id, as: 'batchId'
1069
+ property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
1070
+
1071
+ property :kind, as: 'kind'
1072
+ end
1073
+ end
1074
+
1075
+ class SetInventoryRequest
1076
+ # @private
1077
+ class Representation < Google::Apis::Core::JsonRepresentation
1078
+ property :availability, as: 'availability'
1079
+ property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
1080
+
1081
+ property :quantity, as: 'quantity'
1082
+ property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
1083
+
1084
+ property :sale_price_effective_date, as: 'salePriceEffectiveDate'
1085
+ end
1086
+ end
1087
+
1088
+ class SetInventoryResponse
1089
+ # @private
1090
+ class Representation < Google::Apis::Core::JsonRepresentation
1091
+ property :kind, as: 'kind'
1092
+ end
1093
+ end
1094
+
1095
+ class LoyaltyPoints
1096
+ # @private
1097
+ class Representation < Google::Apis::Core::JsonRepresentation
1098
+ property :name, as: 'name'
1099
+ property :points_value, as: 'pointsValue'
1100
+ property :ratio, as: 'ratio'
1101
+ end
1102
+ end
1103
+
1104
+ class Price
1105
+ # @private
1106
+ class Representation < Google::Apis::Core::JsonRepresentation
1107
+ property :currency, as: 'currency'
1108
+ property :value, as: 'value'
1109
+ end
1110
+ end
1111
+
1112
+ class Product
1113
+ # @private
1114
+ class Representation < Google::Apis::Core::JsonRepresentation
1115
+ collection :additional_image_links, as: 'additionalImageLinks'
1116
+ property :adult, as: 'adult'
1117
+ property :adwords_grouping, as: 'adwordsGrouping'
1118
+ collection :adwords_labels, as: 'adwordsLabels'
1119
+ property :adwords_redirect, as: 'adwordsRedirect'
1120
+ property :age_group, as: 'ageGroup'
1121
+ collection :aspects, as: 'aspects', class: Google::Apis::ContentV2::ProductAspect, decorator: Google::Apis::ContentV2::ProductAspect::Representation
1122
+
1123
+ property :availability, as: 'availability'
1124
+ property :availability_date, as: 'availabilityDate'
1125
+ property :brand, as: 'brand'
1126
+ property :channel, as: 'channel'
1127
+ property :color, as: 'color'
1128
+ property :condition, as: 'condition'
1129
+ property :content_language, as: 'contentLanguage'
1130
+ collection :custom_attributes, as: 'customAttributes', class: Google::Apis::ContentV2::ProductCustomAttribute, decorator: Google::Apis::ContentV2::ProductCustomAttribute::Representation
1131
+
1132
+ collection :custom_groups, as: 'customGroups', class: Google::Apis::ContentV2::ProductCustomGroup, decorator: Google::Apis::ContentV2::ProductCustomGroup::Representation
1133
+
1134
+ property :custom_label0, as: 'customLabel0'
1135
+ property :custom_label1, as: 'customLabel1'
1136
+ property :custom_label2, as: 'customLabel2'
1137
+ property :custom_label3, as: 'customLabel3'
1138
+ property :custom_label4, as: 'customLabel4'
1139
+ property :description, as: 'description'
1140
+ collection :destinations, as: 'destinations', class: Google::Apis::ContentV2::ProductDestination, decorator: Google::Apis::ContentV2::ProductDestination::Representation
1141
+
1142
+ property :display_ads_id, as: 'displayAdsId'
1143
+ property :display_ads_link, as: 'displayAdsLink'
1144
+ collection :display_ads_similar_ids, as: 'displayAdsSimilarIds'
1145
+ property :display_ads_title, as: 'displayAdsTitle'
1146
+ property :display_ads_value, as: 'displayAdsValue'
1147
+ property :energy_efficiency_class, as: 'energyEfficiencyClass'
1148
+ property :expiration_date, as: 'expirationDate'
1149
+ property :gender, as: 'gender'
1150
+ property :google_product_category, as: 'googleProductCategory'
1151
+ property :gtin, as: 'gtin'
1152
+ property :id, as: 'id'
1153
+ property :identifier_exists, as: 'identifierExists'
1154
+ property :image_link, as: 'imageLink'
1155
+ property :installment, as: 'installment', class: Google::Apis::ContentV2::ProductInstallment, decorator: Google::Apis::ContentV2::ProductInstallment::Representation
1156
+
1157
+ property :is_bundle, as: 'isBundle'
1158
+ property :item_group_id, as: 'itemGroupId'
1159
+ property :kind, as: 'kind'
1160
+ property :link, as: 'link'
1161
+ property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2::LoyaltyPoints, decorator: Google::Apis::ContentV2::LoyaltyPoints::Representation
1162
+
1163
+ property :material, as: 'material'
1164
+ property :mobile_link, as: 'mobileLink'
1165
+ property :mpn, as: 'mpn'
1166
+ property :multipack, as: 'multipack'
1167
+ property :offer_id, as: 'offerId'
1168
+ property :online_only, as: 'onlineOnly'
1169
+ property :pattern, as: 'pattern'
1170
+ property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
1171
+
1172
+ property :product_type, as: 'productType'
1173
+ property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
1174
+
1175
+ property :sale_price_effective_date, as: 'salePriceEffectiveDate'
1176
+ collection :shipping, as: 'shipping', class: Google::Apis::ContentV2::ProductShipping, decorator: Google::Apis::ContentV2::ProductShipping::Representation
1177
+
1178
+ property :shipping_height, as: 'shippingHeight', class: Google::Apis::ContentV2::ProductShippingDimension, decorator: Google::Apis::ContentV2::ProductShippingDimension::Representation
1179
+
1180
+ property :shipping_label, as: 'shippingLabel'
1181
+ property :shipping_length, as: 'shippingLength', class: Google::Apis::ContentV2::ProductShippingDimension, decorator: Google::Apis::ContentV2::ProductShippingDimension::Representation
1182
+
1183
+ property :shipping_weight, as: 'shippingWeight', class: Google::Apis::ContentV2::ProductShippingWeight, decorator: Google::Apis::ContentV2::ProductShippingWeight::Representation
1184
+
1185
+ property :shipping_width, as: 'shippingWidth', class: Google::Apis::ContentV2::ProductShippingDimension, decorator: Google::Apis::ContentV2::ProductShippingDimension::Representation
1186
+
1187
+ property :size_system, as: 'sizeSystem'
1188
+ property :size_type, as: 'sizeType'
1189
+ collection :sizes, as: 'sizes'
1190
+ property :target_country, as: 'targetCountry'
1191
+ collection :taxes, as: 'taxes', class: Google::Apis::ContentV2::ProductTax, decorator: Google::Apis::ContentV2::ProductTax::Representation
1192
+
1193
+ property :title, as: 'title'
1194
+ property :unit_pricing_base_measure, as: 'unitPricingBaseMeasure', class: Google::Apis::ContentV2::ProductUnitPricingBaseMeasure, decorator: Google::Apis::ContentV2::ProductUnitPricingBaseMeasure::Representation
1195
+
1196
+ property :unit_pricing_measure, as: 'unitPricingMeasure', class: Google::Apis::ContentV2::ProductUnitPricingMeasure, decorator: Google::Apis::ContentV2::ProductUnitPricingMeasure::Representation
1197
+
1198
+ collection :validated_destinations, as: 'validatedDestinations'
1199
+ collection :warnings, as: 'warnings', class: Google::Apis::ContentV2::Error, decorator: Google::Apis::ContentV2::Error::Representation
1200
+
1201
+ end
1202
+ end
1203
+
1204
+ class ProductAspect
1205
+ # @private
1206
+ class Representation < Google::Apis::Core::JsonRepresentation
1207
+ property :aspect_name, as: 'aspectName'
1208
+ property :destination_name, as: 'destinationName'
1209
+ property :intention, as: 'intention'
1210
+ end
1211
+ end
1212
+
1213
+ class ProductCustomAttribute
1214
+ # @private
1215
+ class Representation < Google::Apis::Core::JsonRepresentation
1216
+ property :name, as: 'name'
1217
+ property :type, as: 'type'
1218
+ property :unit, as: 'unit'
1219
+ property :value, as: 'value'
1220
+ end
1221
+ end
1222
+
1223
+ class ProductCustomGroup
1224
+ # @private
1225
+ class Representation < Google::Apis::Core::JsonRepresentation
1226
+ collection :attributes, as: 'attributes', class: Google::Apis::ContentV2::ProductCustomAttribute, decorator: Google::Apis::ContentV2::ProductCustomAttribute::Representation
1227
+
1228
+ property :name, as: 'name'
1229
+ end
1230
+ end
1231
+
1232
+ class ProductDestination
1233
+ # @private
1234
+ class Representation < Google::Apis::Core::JsonRepresentation
1235
+ property :destination_name, as: 'destinationName'
1236
+ property :intention, as: 'intention'
1237
+ end
1238
+ end
1239
+
1240
+ class ProductInstallment
1241
+ # @private
1242
+ class Representation < Google::Apis::Core::JsonRepresentation
1243
+ property :amount, as: 'amount', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
1244
+
1245
+ property :months, as: 'months'
1246
+ end
1247
+ end
1248
+
1249
+ class ProductShipping
1250
+ # @private
1251
+ class Representation < Google::Apis::Core::JsonRepresentation
1252
+ property :country, as: 'country'
1253
+ property :location_group_name, as: 'locationGroupName'
1254
+ property :location_id, as: 'locationId'
1255
+ property :postal_code, as: 'postalCode'
1256
+ property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
1257
+
1258
+ property :region, as: 'region'
1259
+ property :service, as: 'service'
1260
+ end
1261
+ end
1262
+
1263
+ class ProductShippingDimension
1264
+ # @private
1265
+ class Representation < Google::Apis::Core::JsonRepresentation
1266
+ property :unit, as: 'unit'
1267
+ property :value, as: 'value'
1268
+ end
1269
+ end
1270
+
1271
+ class ProductShippingWeight
1272
+ # @private
1273
+ class Representation < Google::Apis::Core::JsonRepresentation
1274
+ property :unit, as: 'unit'
1275
+ property :value, as: 'value'
1276
+ end
1277
+ end
1278
+
1279
+ class ProductStatus
1280
+ # @private
1281
+ class Representation < Google::Apis::Core::JsonRepresentation
1282
+ property :creation_date, as: 'creationDate'
1283
+ collection :data_quality_issues, as: 'dataQualityIssues', class: Google::Apis::ContentV2::ProductStatusDataQualityIssue, decorator: Google::Apis::ContentV2::ProductStatusDataQualityIssue::Representation
1284
+
1285
+ collection :destination_statuses, as: 'destinationStatuses', class: Google::Apis::ContentV2::ProductStatusDestinationStatus, decorator: Google::Apis::ContentV2::ProductStatusDestinationStatus::Representation
1286
+
1287
+ property :google_expiration_date, as: 'googleExpirationDate'
1288
+ property :kind, as: 'kind'
1289
+ property :last_update_date, as: 'lastUpdateDate'
1290
+ property :link, as: 'link'
1291
+ property :product_id, as: 'productId'
1292
+ property :title, as: 'title'
1293
+ end
1294
+ end
1295
+
1296
+ class ProductStatusDataQualityIssue
1297
+ # @private
1298
+ class Representation < Google::Apis::Core::JsonRepresentation
1299
+ property :detail, as: 'detail'
1300
+ property :fetch_status, as: 'fetchStatus'
1301
+ property :id, as: 'id'
1302
+ property :location, as: 'location'
1303
+ property :severity, as: 'severity'
1304
+ property :timestamp, as: 'timestamp'
1305
+ property :value_on_landing_page, as: 'valueOnLandingPage'
1306
+ property :value_provided, as: 'valueProvided'
1307
+ end
1308
+ end
1309
+
1310
+ class ProductStatusDestinationStatus
1311
+ # @private
1312
+ class Representation < Google::Apis::Core::JsonRepresentation
1313
+ property :approval_status, as: 'approvalStatus'
1314
+ property :destination, as: 'destination'
1315
+ property :intention, as: 'intention'
1316
+ end
1317
+ end
1318
+
1319
+ class ProductTax
1320
+ # @private
1321
+ class Representation < Google::Apis::Core::JsonRepresentation
1322
+ property :country, as: 'country'
1323
+ property :location_id, as: 'locationId'
1324
+ property :postal_code, as: 'postalCode'
1325
+ property :rate, as: 'rate'
1326
+ property :region, as: 'region'
1327
+ property :tax_ship, as: 'taxShip'
1328
+ end
1329
+ end
1330
+
1331
+ class ProductUnitPricingBaseMeasure
1332
+ # @private
1333
+ class Representation < Google::Apis::Core::JsonRepresentation
1334
+ property :unit, as: 'unit'
1335
+ property :value, as: 'value'
1336
+ end
1337
+ end
1338
+
1339
+ class ProductUnitPricingMeasure
1340
+ # @private
1341
+ class Representation < Google::Apis::Core::JsonRepresentation
1342
+ property :unit, as: 'unit'
1343
+ property :value, as: 'value'
1344
+ end
1345
+ end
1346
+
1347
+ class BatchProductsRequest
1348
+ # @private
1349
+ class Representation < Google::Apis::Core::JsonRepresentation
1350
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductsBatchRequestEntry, decorator: Google::Apis::ContentV2::ProductsBatchRequestEntry::Representation
1351
+
1352
+ end
1353
+ end
1354
+
1355
+ class ProductsBatchRequestEntry
1356
+ # @private
1357
+ class Representation < Google::Apis::Core::JsonRepresentation
1358
+ property :batch_id, as: 'batchId'
1359
+ property :merchant_id, as: 'merchantId'
1360
+ property :request_method, as: 'method'
1361
+ property :product, as: 'product', class: Google::Apis::ContentV2::Product, decorator: Google::Apis::ContentV2::Product::Representation
1362
+
1363
+ property :product_id, as: 'productId'
1364
+ end
1365
+ end
1366
+
1367
+ class BatchProductsResponse
1368
+ # @private
1369
+ class Representation < Google::Apis::Core::JsonRepresentation
1370
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductsBatchResponseEntry, decorator: Google::Apis::ContentV2::ProductsBatchResponseEntry::Representation
1371
+
1372
+ property :kind, as: 'kind'
1373
+ end
1374
+ end
1375
+
1376
+ class ProductsBatchResponseEntry
1377
+ # @private
1378
+ class Representation < Google::Apis::Core::JsonRepresentation
1379
+ property :batch_id, as: 'batchId'
1380
+ property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
1381
+
1382
+ property :kind, as: 'kind'
1383
+ property :product, as: 'product', class: Google::Apis::ContentV2::Product, decorator: Google::Apis::ContentV2::Product::Representation
1384
+
1385
+ end
1386
+ end
1387
+
1388
+ class ListProductsResponse
1389
+ # @private
1390
+ class Representation < Google::Apis::Core::JsonRepresentation
1391
+ property :kind, as: 'kind'
1392
+ property :next_page_token, as: 'nextPageToken'
1393
+ collection :resources, as: 'resources', class: Google::Apis::ContentV2::Product, decorator: Google::Apis::ContentV2::Product::Representation
1394
+
1395
+ end
1396
+ end
1397
+
1398
+ class BatchProductStatusesRequest
1399
+ # @private
1400
+ class Representation < Google::Apis::Core::JsonRepresentation
1401
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductStatusesBatchRequestEntry, decorator: Google::Apis::ContentV2::ProductStatusesBatchRequestEntry::Representation
1402
+
1403
+ end
1404
+ end
1405
+
1406
+ class ProductStatusesBatchRequestEntry
1407
+ # @private
1408
+ class Representation < Google::Apis::Core::JsonRepresentation
1409
+ property :batch_id, as: 'batchId'
1410
+ property :merchant_id, as: 'merchantId'
1411
+ property :request_method, as: 'method'
1412
+ property :product_id, as: 'productId'
1413
+ end
1414
+ end
1415
+
1416
+ class BatchProductStatusesResponse
1417
+ # @private
1418
+ class Representation < Google::Apis::Core::JsonRepresentation
1419
+ collection :entries, as: 'entries', class: Google::Apis::ContentV2::ProductStatusesBatchResponseEntry, decorator: Google::Apis::ContentV2::ProductStatusesBatchResponseEntry::Representation
1420
+
1421
+ property :kind, as: 'kind'
1422
+ end
1423
+ end
1424
+
1425
+ class ProductStatusesBatchResponseEntry
1426
+ # @private
1427
+ class Representation < Google::Apis::Core::JsonRepresentation
1428
+ property :batch_id, as: 'batchId'
1429
+ property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
1430
+
1431
+ property :kind, as: 'kind'
1432
+ property :product_status, as: 'productStatus', class: Google::Apis::ContentV2::ProductStatus, decorator: Google::Apis::ContentV2::ProductStatus::Representation
1433
+
1434
+ end
1435
+ end
1436
+
1437
+ class ListProductStatusesResponse
1438
+ # @private
1439
+ class Representation < Google::Apis::Core::JsonRepresentation
1440
+ property :kind, as: 'kind'
1441
+ property :next_page_token, as: 'nextPageToken'
1442
+ collection :resources, as: 'resources', class: Google::Apis::ContentV2::ProductStatus, decorator: Google::Apis::ContentV2::ProductStatus::Representation
1443
+
1444
+ end
1445
+ end
1446
+
1447
+ class Weight
1448
+ # @private
1449
+ class Representation < Google::Apis::Core::JsonRepresentation
1450
+ property :unit, as: 'unit'
1451
+ property :value, as: 'value'
1452
+ end
1453
+ end
1454
+ end
1455
+ end
1456
+ end