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,40 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/datastore_v1beta2/service.rb'
16
+ require 'google/apis/datastore_v1beta2/classes.rb'
17
+ require 'google/apis/datastore_v1beta2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud Datastore API
22
+ #
23
+ # API for accessing Google Cloud Datastore.
24
+ #
25
+ # @see https://developers.google.com/datastore/
26
+ module DatastoreV1beta2
27
+ VERSION = 'V1beta2'
28
+ REVISION = '20150402'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+
33
+ # View and manage your Google Cloud Datastore data
34
+ AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
35
+
36
+ # View your email address
37
+ AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,1186 @@
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 DatastoreV1beta2
24
+
25
+ #
26
+ class AllocateIdsRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # A list of keys with incomplete key paths to allocate IDs for. No key may be
30
+ # reserved/read-only.
31
+ # Corresponds to the JSON property `keys`
32
+ # @return [Array<Google::Apis::DatastoreV1beta2::Key>]
33
+ attr_accessor :keys
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ @keys = args[:keys] unless args[:keys].nil?
42
+ end
43
+ end
44
+
45
+ #
46
+ class AllocateIdsResponse
47
+ include Google::Apis::Core::Hashable
48
+
49
+ #
50
+ # Corresponds to the JSON property `header`
51
+ # @return [Google::Apis::DatastoreV1beta2::ResponseHeader]
52
+ attr_accessor :header
53
+
54
+ # The keys specified in the request (in the same order), each with its key path
55
+ # completed with a newly allocated ID.
56
+ # Corresponds to the JSON property `keys`
57
+ # @return [Array<Google::Apis::DatastoreV1beta2::Key>]
58
+ attr_accessor :keys
59
+
60
+ def initialize(**args)
61
+ update!(**args)
62
+ end
63
+
64
+ # Update properties of this object
65
+ def update!(**args)
66
+ @header = args[:header] unless args[:header].nil?
67
+ @keys = args[:keys] unless args[:keys].nil?
68
+ end
69
+ end
70
+
71
+ #
72
+ class BeginTransactionRequest
73
+ include Google::Apis::Core::Hashable
74
+
75
+ # The transaction isolation level. Either snapshot or serializable. The default
76
+ # isolation level is snapshot isolation, which means that another transaction
77
+ # may not concurrently modify the data that is modified by this transaction.
78
+ # Optionally, a transaction can request to be made serializable which means that
79
+ # another transaction cannot concurrently modify the data that is read or
80
+ # modified by this transaction.
81
+ # Corresponds to the JSON property `isolationLevel`
82
+ # @return [String]
83
+ attr_accessor :isolation_level
84
+
85
+ def initialize(**args)
86
+ update!(**args)
87
+ end
88
+
89
+ # Update properties of this object
90
+ def update!(**args)
91
+ @isolation_level = args[:isolation_level] unless args[:isolation_level].nil?
92
+ end
93
+ end
94
+
95
+ #
96
+ class BeginTransactionResponse
97
+ include Google::Apis::Core::Hashable
98
+
99
+ #
100
+ # Corresponds to the JSON property `header`
101
+ # @return [Google::Apis::DatastoreV1beta2::ResponseHeader]
102
+ attr_accessor :header
103
+
104
+ # The transaction identifier (always present).
105
+ # Corresponds to the JSON property `transaction`
106
+ # @return [String]
107
+ attr_accessor :transaction
108
+
109
+ def initialize(**args)
110
+ update!(**args)
111
+ end
112
+
113
+ # Update properties of this object
114
+ def update!(**args)
115
+ @header = args[:header] unless args[:header].nil?
116
+ @transaction = args[:transaction] unless args[:transaction].nil?
117
+ end
118
+ end
119
+
120
+ #
121
+ class CommitRequest
122
+ include Google::Apis::Core::Hashable
123
+
124
+ #
125
+ # Corresponds to the JSON property `ignoreReadOnly`
126
+ # @return [Boolean]
127
+ attr_accessor :ignore_read_only
128
+ alias_method :ignore_read_only?, :ignore_read_only
129
+
130
+ # The type of commit to perform. Either TRANSACTIONAL or NON_TRANSACTIONAL.
131
+ # Corresponds to the JSON property `mode`
132
+ # @return [String]
133
+ attr_accessor :mode
134
+
135
+ # A set of changes to apply.
136
+ # Corresponds to the JSON property `mutation`
137
+ # @return [Google::Apis::DatastoreV1beta2::Mutation]
138
+ attr_accessor :mutation
139
+
140
+ # The transaction identifier, returned by a call to beginTransaction. Must be
141
+ # set when mode is TRANSACTIONAL.
142
+ # Corresponds to the JSON property `transaction`
143
+ # @return [String]
144
+ attr_accessor :transaction
145
+
146
+ def initialize(**args)
147
+ update!(**args)
148
+ end
149
+
150
+ # Update properties of this object
151
+ def update!(**args)
152
+ @ignore_read_only = args[:ignore_read_only] unless args[:ignore_read_only].nil?
153
+ @mode = args[:mode] unless args[:mode].nil?
154
+ @mutation = args[:mutation] unless args[:mutation].nil?
155
+ @transaction = args[:transaction] unless args[:transaction].nil?
156
+ end
157
+ end
158
+
159
+ #
160
+ class CommitResponse
161
+ include Google::Apis::Core::Hashable
162
+
163
+ #
164
+ # Corresponds to the JSON property `header`
165
+ # @return [Google::Apis::DatastoreV1beta2::ResponseHeader]
166
+ attr_accessor :header
167
+
168
+ # The result of performing the mutation (if any).
169
+ # Corresponds to the JSON property `mutationResult`
170
+ # @return [Google::Apis::DatastoreV1beta2::MutationResult]
171
+ attr_accessor :mutation_result
172
+
173
+ def initialize(**args)
174
+ update!(**args)
175
+ end
176
+
177
+ # Update properties of this object
178
+ def update!(**args)
179
+ @header = args[:header] unless args[:header].nil?
180
+ @mutation_result = args[:mutation_result] unless args[:mutation_result].nil?
181
+ end
182
+ end
183
+
184
+ # A filter that merges the multiple other filters using the given operation.
185
+ class CompositeFilter
186
+ include Google::Apis::Core::Hashable
187
+
188
+ # The list of filters to combine. Must contain at least one filter.
189
+ # Corresponds to the JSON property `filters`
190
+ # @return [Array<Google::Apis::DatastoreV1beta2::Filter>]
191
+ attr_accessor :filters
192
+
193
+ # The operator for combining multiple filters. Only "and" is currently supported.
194
+ # Corresponds to the JSON property `operator`
195
+ # @return [String]
196
+ attr_accessor :operator
197
+
198
+ def initialize(**args)
199
+ update!(**args)
200
+ end
201
+
202
+ # Update properties of this object
203
+ def update!(**args)
204
+ @filters = args[:filters] unless args[:filters].nil?
205
+ @operator = args[:operator] unless args[:operator].nil?
206
+ end
207
+ end
208
+
209
+ # An entity.
210
+ class Entity
211
+ include Google::Apis::Core::Hashable
212
+
213
+ # A unique identifier for an entity.
214
+ # Corresponds to the JSON property `key`
215
+ # @return [Google::Apis::DatastoreV1beta2::Key]
216
+ attr_accessor :key
217
+
218
+ # The entity's properties.
219
+ # Corresponds to the JSON property `properties`
220
+ # @return [Hash<String,Google::Apis::DatastoreV1beta2::Property>]
221
+ attr_accessor :properties
222
+
223
+ def initialize(**args)
224
+ update!(**args)
225
+ end
226
+
227
+ # Update properties of this object
228
+ def update!(**args)
229
+ @key = args[:key] unless args[:key].nil?
230
+ @properties = args[:properties] unless args[:properties].nil?
231
+ end
232
+ end
233
+
234
+ # The result of fetching an entity from the datastore.
235
+ class EntityResult
236
+ include Google::Apis::Core::Hashable
237
+
238
+ # An entity.
239
+ # Corresponds to the JSON property `entity`
240
+ # @return [Google::Apis::DatastoreV1beta2::Entity]
241
+ attr_accessor :entity
242
+
243
+ def initialize(**args)
244
+ update!(**args)
245
+ end
246
+
247
+ # Update properties of this object
248
+ def update!(**args)
249
+ @entity = args[:entity] unless args[:entity].nil?
250
+ end
251
+ end
252
+
253
+ # A holder for any type of filter. Exactly one field should be specified.
254
+ class Filter
255
+ include Google::Apis::Core::Hashable
256
+
257
+ # A filter that merges the multiple other filters using the given operation.
258
+ # Corresponds to the JSON property `compositeFilter`
259
+ # @return [Google::Apis::DatastoreV1beta2::CompositeFilter]
260
+ attr_accessor :composite_filter
261
+
262
+ # A filter on a specific property.
263
+ # Corresponds to the JSON property `propertyFilter`
264
+ # @return [Google::Apis::DatastoreV1beta2::PropertyFilter]
265
+ attr_accessor :property_filter
266
+
267
+ def initialize(**args)
268
+ update!(**args)
269
+ end
270
+
271
+ # Update properties of this object
272
+ def update!(**args)
273
+ @composite_filter = args[:composite_filter] unless args[:composite_filter].nil?
274
+ @property_filter = args[:property_filter] unless args[:property_filter].nil?
275
+ end
276
+ end
277
+
278
+ # A GQL query.
279
+ class GqlQuery
280
+ include Google::Apis::Core::Hashable
281
+
282
+ # When false, the query string must not contain a literal.
283
+ # Corresponds to the JSON property `allowLiteral`
284
+ # @return [Boolean]
285
+ attr_accessor :allow_literal
286
+ alias_method :allow_literal?, :allow_literal
287
+
288
+ # A named argument must set field GqlQueryArg.name. No two named arguments may
289
+ # have the same name. For each non-reserved named binding site in the query
290
+ # string, there must be a named argument with that name, but not necessarily the
291
+ # inverse.
292
+ # Corresponds to the JSON property `nameArgs`
293
+ # @return [Array<Google::Apis::DatastoreV1beta2::GqlQueryArg>]
294
+ attr_accessor :name_args
295
+
296
+ # Numbered binding site @1 references the first numbered argument, effectively
297
+ # using 1-based indexing, rather than the usual 0. A numbered argument must NOT
298
+ # set field GqlQueryArg.name. For each binding site numbered i in query_string,
299
+ # there must be an ith numbered argument. The inverse must also be true.
300
+ # Corresponds to the JSON property `numberArgs`
301
+ # @return [Array<Google::Apis::DatastoreV1beta2::GqlQueryArg>]
302
+ attr_accessor :number_args
303
+
304
+ # The query string.
305
+ # Corresponds to the JSON property `queryString`
306
+ # @return [String]
307
+ attr_accessor :query_string
308
+
309
+ def initialize(**args)
310
+ update!(**args)
311
+ end
312
+
313
+ # Update properties of this object
314
+ def update!(**args)
315
+ @allow_literal = args[:allow_literal] unless args[:allow_literal].nil?
316
+ @name_args = args[:name_args] unless args[:name_args].nil?
317
+ @number_args = args[:number_args] unless args[:number_args].nil?
318
+ @query_string = args[:query_string] unless args[:query_string].nil?
319
+ end
320
+ end
321
+
322
+ # A binding argument for a GQL query.
323
+ class GqlQueryArg
324
+ include Google::Apis::Core::Hashable
325
+
326
+ #
327
+ # Corresponds to the JSON property `cursor`
328
+ # @return [String]
329
+ attr_accessor :cursor
330
+
331
+ # Must match regex "[A-Za-z_$][A-Za-z_$0-9]*". Must not match regex "__.*__".
332
+ # Must not be "".
333
+ # Corresponds to the JSON property `name`
334
+ # @return [String]
335
+ attr_accessor :name
336
+
337
+ # A message that can hold any of the supported value types and associated
338
+ # metadata.
339
+ # Corresponds to the JSON property `value`
340
+ # @return [Google::Apis::DatastoreV1beta2::Value]
341
+ attr_accessor :value
342
+
343
+ def initialize(**args)
344
+ update!(**args)
345
+ end
346
+
347
+ # Update properties of this object
348
+ def update!(**args)
349
+ @cursor = args[:cursor] unless args[:cursor].nil?
350
+ @name = args[:name] unless args[:name].nil?
351
+ @value = args[:value] unless args[:value].nil?
352
+ end
353
+ end
354
+
355
+ # A unique identifier for an entity.
356
+ class Key
357
+ include Google::Apis::Core::Hashable
358
+
359
+ # An identifier for a particular subset of entities.
360
+ # Entities are partitioned into various subsets, each used by different datasets
361
+ # and different namespaces within a dataset and so forth.
362
+ # Corresponds to the JSON property `partitionId`
363
+ # @return [Google::Apis::DatastoreV1beta2::PartitionId]
364
+ attr_accessor :partition_id
365
+
366
+ # The entity path. An entity path consists of one or more elements composed of a
367
+ # kind and a string or numerical identifier, which identify entities. The first
368
+ # element identifies a root entity, the second element identifies a child of the
369
+ # root entity, the third element a child of the second entity, and so forth. The
370
+ # entities identified by all prefixes of the path are called the element's
371
+ # ancestors. An entity path is always fully complete: ALL of the entity's
372
+ # ancestors are required to be in the path along with the entity identifier
373
+ # itself. The only exception is that in some documented cases, the identifier in
374
+ # the last path element (for the entity) itself may be omitted. A path can never
375
+ # be empty. The path can have at most 100 elements.
376
+ # Corresponds to the JSON property `path`
377
+ # @return [Array<Google::Apis::DatastoreV1beta2::KeyPathElement>]
378
+ attr_accessor :path
379
+
380
+ def initialize(**args)
381
+ update!(**args)
382
+ end
383
+
384
+ # Update properties of this object
385
+ def update!(**args)
386
+ @partition_id = args[:partition_id] unless args[:partition_id].nil?
387
+ @path = args[:path] unless args[:path].nil?
388
+ end
389
+ end
390
+
391
+ # A (kind, ID/name) pair used to construct a key path.
392
+ # At most one of name or ID may be set. If either is set, the element is
393
+ # complete. If neither is set, the element is incomplete.
394
+ class KeyPathElement
395
+ include Google::Apis::Core::Hashable
396
+
397
+ # The ID of the entity. Never equal to zero. Values less than zero are
398
+ # discouraged and will not be supported in the future.
399
+ # Corresponds to the JSON property `id`
400
+ # @return [String]
401
+ attr_accessor :id
402
+
403
+ # The kind of the entity. A kind matching regex "__.*__" is reserved/read-only.
404
+ # A kind must not contain more than 500 characters. Cannot be "".
405
+ # Corresponds to the JSON property `kind`
406
+ # @return [String]
407
+ attr_accessor :kind
408
+
409
+ # The name of the entity. A name matching regex "__.*__" is reserved/read-only.
410
+ # A name must not be more than 500 characters. Cannot be "".
411
+ # Corresponds to the JSON property `name`
412
+ # @return [String]
413
+ attr_accessor :name
414
+
415
+ def initialize(**args)
416
+ update!(**args)
417
+ end
418
+
419
+ # Update properties of this object
420
+ def update!(**args)
421
+ @id = args[:id] unless args[:id].nil?
422
+ @kind = args[:kind] unless args[:kind].nil?
423
+ @name = args[:name] unless args[:name].nil?
424
+ end
425
+ end
426
+
427
+ # A representation of a kind.
428
+ class KindExpression
429
+ include Google::Apis::Core::Hashable
430
+
431
+ # The name of the kind.
432
+ # Corresponds to the JSON property `name`
433
+ # @return [String]
434
+ attr_accessor :name
435
+
436
+ def initialize(**args)
437
+ update!(**args)
438
+ end
439
+
440
+ # Update properties of this object
441
+ def update!(**args)
442
+ @name = args[:name] unless args[:name].nil?
443
+ end
444
+ end
445
+
446
+ #
447
+ class LookupRequest
448
+ include Google::Apis::Core::Hashable
449
+
450
+ # Keys of entities to look up from the datastore.
451
+ # Corresponds to the JSON property `keys`
452
+ # @return [Array<Google::Apis::DatastoreV1beta2::Key>]
453
+ attr_accessor :keys
454
+
455
+ # Options for this lookup request. Optional.
456
+ # Corresponds to the JSON property `readOptions`
457
+ # @return [Google::Apis::DatastoreV1beta2::ReadOptions]
458
+ attr_accessor :read_options
459
+
460
+ def initialize(**args)
461
+ update!(**args)
462
+ end
463
+
464
+ # Update properties of this object
465
+ def update!(**args)
466
+ @keys = args[:keys] unless args[:keys].nil?
467
+ @read_options = args[:read_options] unless args[:read_options].nil?
468
+ end
469
+ end
470
+
471
+ #
472
+ class LookupResponse
473
+ include Google::Apis::Core::Hashable
474
+
475
+ # A list of keys that were not looked up due to resource constraints.
476
+ # Corresponds to the JSON property `deferred`
477
+ # @return [Array<Google::Apis::DatastoreV1beta2::Key>]
478
+ attr_accessor :deferred
479
+
480
+ # Entities found.
481
+ # Corresponds to the JSON property `found`
482
+ # @return [Array<Google::Apis::DatastoreV1beta2::EntityResult>]
483
+ attr_accessor :found
484
+
485
+ #
486
+ # Corresponds to the JSON property `header`
487
+ # @return [Google::Apis::DatastoreV1beta2::ResponseHeader]
488
+ attr_accessor :header
489
+
490
+ # Entities not found, with only the key populated.
491
+ # Corresponds to the JSON property `missing`
492
+ # @return [Array<Google::Apis::DatastoreV1beta2::EntityResult>]
493
+ attr_accessor :missing
494
+
495
+ def initialize(**args)
496
+ update!(**args)
497
+ end
498
+
499
+ # Update properties of this object
500
+ def update!(**args)
501
+ @deferred = args[:deferred] unless args[:deferred].nil?
502
+ @found = args[:found] unless args[:found].nil?
503
+ @header = args[:header] unless args[:header].nil?
504
+ @missing = args[:missing] unless args[:missing].nil?
505
+ end
506
+ end
507
+
508
+ # A set of changes to apply.
509
+ class Mutation
510
+ include Google::Apis::Core::Hashable
511
+
512
+ # Keys of entities to delete. Each key must have a complete key path and must
513
+ # not be reserved/read-only.
514
+ # Corresponds to the JSON property `delete`
515
+ # @return [Array<Google::Apis::DatastoreV1beta2::Key>]
516
+ attr_accessor :delete
517
+
518
+ # Ignore a user specified read-only period. Optional.
519
+ # Corresponds to the JSON property `force`
520
+ # @return [Boolean]
521
+ attr_accessor :force
522
+ alias_method :force?, :force
523
+
524
+ # Entities to insert. Each inserted entity's key must have a complete path and
525
+ # must not be reserved/read-only.
526
+ # Corresponds to the JSON property `insert`
527
+ # @return [Array<Google::Apis::DatastoreV1beta2::Entity>]
528
+ attr_accessor :insert
529
+
530
+ # Insert entities with a newly allocated ID. Each inserted entity's key must
531
+ # omit the final identifier in its path and must not be reserved/read-only.
532
+ # Corresponds to the JSON property `insertAutoId`
533
+ # @return [Array<Google::Apis::DatastoreV1beta2::Entity>]
534
+ attr_accessor :insert_auto_id
535
+
536
+ # Entities to update. Each updated entity's key must have a complete path and
537
+ # must not be reserved/read-only.
538
+ # Corresponds to the JSON property `update`
539
+ # @return [Array<Google::Apis::DatastoreV1beta2::Entity>]
540
+ attr_accessor :update
541
+
542
+ # Entities to upsert. Each upserted entity's key must have a complete path and
543
+ # must not be reserved/read-only.
544
+ # Corresponds to the JSON property `upsert`
545
+ # @return [Array<Google::Apis::DatastoreV1beta2::Entity>]
546
+ attr_accessor :upsert
547
+
548
+ def initialize(**args)
549
+ update!(**args)
550
+ end
551
+
552
+ # Update properties of this object
553
+ def update!(**args)
554
+ @delete = args[:delete] unless args[:delete].nil?
555
+ @force = args[:force] unless args[:force].nil?
556
+ @insert = args[:insert] unless args[:insert].nil?
557
+ @insert_auto_id = args[:insert_auto_id] unless args[:insert_auto_id].nil?
558
+ @update = args[:update] unless args[:update].nil?
559
+ @upsert = args[:upsert] unless args[:upsert].nil?
560
+ end
561
+ end
562
+
563
+ #
564
+ class MutationResult
565
+ include Google::Apis::Core::Hashable
566
+
567
+ # Number of index writes.
568
+ # Corresponds to the JSON property `indexUpdates`
569
+ # @return [Fixnum]
570
+ attr_accessor :index_updates
571
+
572
+ # Keys for insertAutoId entities. One per entity from the request, in the same
573
+ # order.
574
+ # Corresponds to the JSON property `insertAutoIdKeys`
575
+ # @return [Array<Google::Apis::DatastoreV1beta2::Key>]
576
+ attr_accessor :insert_auto_id_keys
577
+
578
+ def initialize(**args)
579
+ update!(**args)
580
+ end
581
+
582
+ # Update properties of this object
583
+ def update!(**args)
584
+ @index_updates = args[:index_updates] unless args[:index_updates].nil?
585
+ @insert_auto_id_keys = args[:insert_auto_id_keys] unless args[:insert_auto_id_keys].nil?
586
+ end
587
+ end
588
+
589
+ # An identifier for a particular subset of entities.
590
+ # Entities are partitioned into various subsets, each used by different datasets
591
+ # and different namespaces within a dataset and so forth.
592
+ class PartitionId
593
+ include Google::Apis::Core::Hashable
594
+
595
+ # The dataset ID.
596
+ # Corresponds to the JSON property `datasetId`
597
+ # @return [String]
598
+ attr_accessor :dataset_id
599
+
600
+ # The namespace.
601
+ # Corresponds to the JSON property `namespace`
602
+ # @return [String]
603
+ attr_accessor :namespace
604
+
605
+ def initialize(**args)
606
+ update!(**args)
607
+ end
608
+
609
+ # Update properties of this object
610
+ def update!(**args)
611
+ @dataset_id = args[:dataset_id] unless args[:dataset_id].nil?
612
+ @namespace = args[:namespace] unless args[:namespace].nil?
613
+ end
614
+ end
615
+
616
+ # An entity property.
617
+ class Property
618
+ include Google::Apis::Core::Hashable
619
+
620
+ # A blob key value.
621
+ # Corresponds to the JSON property `blobKeyValue`
622
+ # @return [String]
623
+ attr_accessor :blob_key_value
624
+
625
+ # A blob value. May be a maximum of 1,000,000 bytes. When indexed is true, may
626
+ # have at most 500 bytes.
627
+ # Corresponds to the JSON property `blobValue`
628
+ # @return [String]
629
+ attr_accessor :blob_value
630
+
631
+ # A boolean value.
632
+ # Corresponds to the JSON property `booleanValue`
633
+ # @return [Boolean]
634
+ attr_accessor :boolean_value
635
+ alias_method :boolean_value?, :boolean_value
636
+
637
+ # A timestamp value.
638
+ # Corresponds to the JSON property `dateTimeValue`
639
+ # @return [DateTime]
640
+ attr_accessor :date_time_value
641
+
642
+ # A double value.
643
+ # Corresponds to the JSON property `doubleValue`
644
+ # @return [Float]
645
+ attr_accessor :double_value
646
+
647
+ # An entity.
648
+ # Corresponds to the JSON property `entityValue`
649
+ # @return [Google::Apis::DatastoreV1beta2::Entity]
650
+ attr_accessor :entity_value
651
+
652
+ # If the value should be indexed.
653
+ # The indexed property may be set for a null value. When indexed is true,
654
+ # stringValue is limited to 500 characters and the blob value is limited to 500
655
+ # bytes. Input values by default have indexed set to true; however, you can
656
+ # explicitly set indexed to true if you want. (An output value never has indexed
657
+ # explicitly set to true.) If a value is itself an entity, it cannot have
658
+ # indexed set to true.
659
+ # Corresponds to the JSON property `indexed`
660
+ # @return [Boolean]
661
+ attr_accessor :indexed
662
+ alias_method :indexed?, :indexed
663
+
664
+ # An integer value.
665
+ # Corresponds to the JSON property `integerValue`
666
+ # @return [String]
667
+ attr_accessor :integer_value
668
+
669
+ # A unique identifier for an entity.
670
+ # Corresponds to the JSON property `keyValue`
671
+ # @return [Google::Apis::DatastoreV1beta2::Key]
672
+ attr_accessor :key_value
673
+
674
+ # A list value. Cannot contain another list value. A Value instance that sets
675
+ # field list_value must not set field meaning or field indexed.
676
+ # Corresponds to the JSON property `listValue`
677
+ # @return [Array<Google::Apis::DatastoreV1beta2::Value>]
678
+ attr_accessor :list_value
679
+
680
+ # The meaning field is reserved and should not be used.
681
+ # Corresponds to the JSON property `meaning`
682
+ # @return [Fixnum]
683
+ attr_accessor :meaning
684
+
685
+ # A UTF-8 encoded string value. When indexed is true, may have at most 500
686
+ # characters.
687
+ # Corresponds to the JSON property `stringValue`
688
+ # @return [String]
689
+ attr_accessor :string_value
690
+
691
+ def initialize(**args)
692
+ update!(**args)
693
+ end
694
+
695
+ # Update properties of this object
696
+ def update!(**args)
697
+ @blob_key_value = args[:blob_key_value] unless args[:blob_key_value].nil?
698
+ @blob_value = args[:blob_value] unless args[:blob_value].nil?
699
+ @boolean_value = args[:boolean_value] unless args[:boolean_value].nil?
700
+ @date_time_value = args[:date_time_value] unless args[:date_time_value].nil?
701
+ @double_value = args[:double_value] unless args[:double_value].nil?
702
+ @entity_value = args[:entity_value] unless args[:entity_value].nil?
703
+ @indexed = args[:indexed] unless args[:indexed].nil?
704
+ @integer_value = args[:integer_value] unless args[:integer_value].nil?
705
+ @key_value = args[:key_value] unless args[:key_value].nil?
706
+ @list_value = args[:list_value] unless args[:list_value].nil?
707
+ @meaning = args[:meaning] unless args[:meaning].nil?
708
+ @string_value = args[:string_value] unless args[:string_value].nil?
709
+ end
710
+ end
711
+
712
+ # A representation of a property in a projection.
713
+ class PropertyExpression
714
+ include Google::Apis::Core::Hashable
715
+
716
+ # The aggregation function to apply to the property. Optional. Can only be used
717
+ # when grouping by at least one property. Must then be set on all properties in
718
+ # the projection that are not being grouped by. Aggregation functions: first
719
+ # selects the first result as determined by the query's order.
720
+ # Corresponds to the JSON property `aggregationFunction`
721
+ # @return [String]
722
+ attr_accessor :aggregation_function
723
+
724
+ # A reference to a property relative to the kind expressions.
725
+ # Corresponds to the JSON property `property`
726
+ # @return [Google::Apis::DatastoreV1beta2::PropertyReference]
727
+ attr_accessor :property
728
+
729
+ def initialize(**args)
730
+ update!(**args)
731
+ end
732
+
733
+ # Update properties of this object
734
+ def update!(**args)
735
+ @aggregation_function = args[:aggregation_function] unless args[:aggregation_function].nil?
736
+ @property = args[:property] unless args[:property].nil?
737
+ end
738
+ end
739
+
740
+ # A filter on a specific property.
741
+ class PropertyFilter
742
+ include Google::Apis::Core::Hashable
743
+
744
+ # The operator to filter by. One of lessThan, lessThanOrEqual, greaterThan,
745
+ # greaterThanOrEqual, equal, or hasAncestor.
746
+ # Corresponds to the JSON property `operator`
747
+ # @return [String]
748
+ attr_accessor :operator
749
+
750
+ # A reference to a property relative to the kind expressions.
751
+ # Corresponds to the JSON property `property`
752
+ # @return [Google::Apis::DatastoreV1beta2::PropertyReference]
753
+ attr_accessor :property
754
+
755
+ # A message that can hold any of the supported value types and associated
756
+ # metadata.
757
+ # Corresponds to the JSON property `value`
758
+ # @return [Google::Apis::DatastoreV1beta2::Value]
759
+ attr_accessor :value
760
+
761
+ def initialize(**args)
762
+ update!(**args)
763
+ end
764
+
765
+ # Update properties of this object
766
+ def update!(**args)
767
+ @operator = args[:operator] unless args[:operator].nil?
768
+ @property = args[:property] unless args[:property].nil?
769
+ @value = args[:value] unless args[:value].nil?
770
+ end
771
+ end
772
+
773
+ # The desired order for a specific property.
774
+ class PropertyOrder
775
+ include Google::Apis::Core::Hashable
776
+
777
+ # The direction to order by. One of ascending or descending. Optional, defaults
778
+ # to ascending.
779
+ # Corresponds to the JSON property `direction`
780
+ # @return [String]
781
+ attr_accessor :direction
782
+
783
+ # A reference to a property relative to the kind expressions.
784
+ # Corresponds to the JSON property `property`
785
+ # @return [Google::Apis::DatastoreV1beta2::PropertyReference]
786
+ attr_accessor :property
787
+
788
+ def initialize(**args)
789
+ update!(**args)
790
+ end
791
+
792
+ # Update properties of this object
793
+ def update!(**args)
794
+ @direction = args[:direction] unless args[:direction].nil?
795
+ @property = args[:property] unless args[:property].nil?
796
+ end
797
+ end
798
+
799
+ # A reference to a property relative to the kind expressions.
800
+ class PropertyReference
801
+ include Google::Apis::Core::Hashable
802
+
803
+ # The name of the property.
804
+ # Corresponds to the JSON property `name`
805
+ # @return [String]
806
+ attr_accessor :name
807
+
808
+ def initialize(**args)
809
+ update!(**args)
810
+ end
811
+
812
+ # Update properties of this object
813
+ def update!(**args)
814
+ @name = args[:name] unless args[:name].nil?
815
+ end
816
+ end
817
+
818
+ # A query.
819
+ class Query
820
+ include Google::Apis::Core::Hashable
821
+
822
+ # An ending point for the query results. Optional. Query cursors are returned in
823
+ # query result batches.
824
+ # Corresponds to the JSON property `endCursor`
825
+ # @return [String]
826
+ attr_accessor :end_cursor
827
+
828
+ # A holder for any type of filter. Exactly one field should be specified.
829
+ # Corresponds to the JSON property `filter`
830
+ # @return [Google::Apis::DatastoreV1beta2::Filter]
831
+ attr_accessor :filter
832
+
833
+ # The properties to group by (if empty, no grouping is applied to the result set)
834
+ # .
835
+ # Corresponds to the JSON property `groupBy`
836
+ # @return [Array<Google::Apis::DatastoreV1beta2::PropertyReference>]
837
+ attr_accessor :group_by
838
+
839
+ # The kinds to query (if empty, returns entities from all kinds).
840
+ # Corresponds to the JSON property `kinds`
841
+ # @return [Array<Google::Apis::DatastoreV1beta2::KindExpression>]
842
+ attr_accessor :kinds
843
+
844
+ # The maximum number of results to return. Applies after all other constraints.
845
+ # Optional.
846
+ # Corresponds to the JSON property `limit`
847
+ # @return [Fixnum]
848
+ attr_accessor :limit
849
+
850
+ # The number of results to skip. Applies before limit, but after all other
851
+ # constraints (optional, defaults to 0).
852
+ # Corresponds to the JSON property `offset`
853
+ # @return [Fixnum]
854
+ attr_accessor :offset
855
+
856
+ # The order to apply to the query results (if empty, order is unspecified).
857
+ # Corresponds to the JSON property `order`
858
+ # @return [Array<Google::Apis::DatastoreV1beta2::PropertyOrder>]
859
+ attr_accessor :order
860
+
861
+ # The projection to return. If not set the entire entity is returned.
862
+ # Corresponds to the JSON property `projection`
863
+ # @return [Array<Google::Apis::DatastoreV1beta2::PropertyExpression>]
864
+ attr_accessor :projection
865
+
866
+ # A starting point for the query results. Optional. Query cursors are returned
867
+ # in query result batches.
868
+ # Corresponds to the JSON property `startCursor`
869
+ # @return [String]
870
+ attr_accessor :start_cursor
871
+
872
+ def initialize(**args)
873
+ update!(**args)
874
+ end
875
+
876
+ # Update properties of this object
877
+ def update!(**args)
878
+ @end_cursor = args[:end_cursor] unless args[:end_cursor].nil?
879
+ @filter = args[:filter] unless args[:filter].nil?
880
+ @group_by = args[:group_by] unless args[:group_by].nil?
881
+ @kinds = args[:kinds] unless args[:kinds].nil?
882
+ @limit = args[:limit] unless args[:limit].nil?
883
+ @offset = args[:offset] unless args[:offset].nil?
884
+ @order = args[:order] unless args[:order].nil?
885
+ @projection = args[:projection] unless args[:projection].nil?
886
+ @start_cursor = args[:start_cursor] unless args[:start_cursor].nil?
887
+ end
888
+ end
889
+
890
+ # A batch of results produced by a query.
891
+ class QueryResultBatch
892
+ include Google::Apis::Core::Hashable
893
+
894
+ # A cursor that points to the position after the last result in the batch. May
895
+ # be absent. TODO(arfuller): Once all plans produce cursors update documentation
896
+ # here.
897
+ # Corresponds to the JSON property `endCursor`
898
+ # @return [String]
899
+ attr_accessor :end_cursor
900
+
901
+ # The result type for every entity in entityResults. full for full entities,
902
+ # projection for entities with only projected properties, keyOnly for entities
903
+ # with only a key.
904
+ # Corresponds to the JSON property `entityResultType`
905
+ # @return [String]
906
+ attr_accessor :entity_result_type
907
+
908
+ # The results for this batch.
909
+ # Corresponds to the JSON property `entityResults`
910
+ # @return [Array<Google::Apis::DatastoreV1beta2::EntityResult>]
911
+ attr_accessor :entity_results
912
+
913
+ # The state of the query after the current batch. One of notFinished,
914
+ # moreResultsAfterLimit, noMoreResults.
915
+ # Corresponds to the JSON property `moreResults`
916
+ # @return [String]
917
+ attr_accessor :more_results
918
+
919
+ # The number of results skipped because of Query.offset.
920
+ # Corresponds to the JSON property `skippedResults`
921
+ # @return [Fixnum]
922
+ attr_accessor :skipped_results
923
+
924
+ def initialize(**args)
925
+ update!(**args)
926
+ end
927
+
928
+ # Update properties of this object
929
+ def update!(**args)
930
+ @end_cursor = args[:end_cursor] unless args[:end_cursor].nil?
931
+ @entity_result_type = args[:entity_result_type] unless args[:entity_result_type].nil?
932
+ @entity_results = args[:entity_results] unless args[:entity_results].nil?
933
+ @more_results = args[:more_results] unless args[:more_results].nil?
934
+ @skipped_results = args[:skipped_results] unless args[:skipped_results].nil?
935
+ end
936
+ end
937
+
938
+ #
939
+ class ReadOptions
940
+ include Google::Apis::Core::Hashable
941
+
942
+ # The read consistency to use. One of default, strong, or eventual. Cannot be
943
+ # set when transaction is set. Lookup and ancestor queries default to strong,
944
+ # global queries default to eventual and cannot be set to strong. Optional.
945
+ # Default is default.
946
+ # Corresponds to the JSON property `readConsistency`
947
+ # @return [String]
948
+ attr_accessor :read_consistency
949
+
950
+ # The transaction to use. Optional.
951
+ # Corresponds to the JSON property `transaction`
952
+ # @return [String]
953
+ attr_accessor :transaction
954
+
955
+ def initialize(**args)
956
+ update!(**args)
957
+ end
958
+
959
+ # Update properties of this object
960
+ def update!(**args)
961
+ @read_consistency = args[:read_consistency] unless args[:read_consistency].nil?
962
+ @transaction = args[:transaction] unless args[:transaction].nil?
963
+ end
964
+ end
965
+
966
+ #
967
+ class ResponseHeader
968
+ include Google::Apis::Core::Hashable
969
+
970
+ # Identifies what kind of resource this is. Value: the fixed string "datastore#
971
+ # responseHeader".
972
+ # Corresponds to the JSON property `kind`
973
+ # @return [String]
974
+ attr_accessor :kind
975
+
976
+ def initialize(**args)
977
+ update!(**args)
978
+ end
979
+
980
+ # Update properties of this object
981
+ def update!(**args)
982
+ @kind = args[:kind] unless args[:kind].nil?
983
+ end
984
+ end
985
+
986
+ #
987
+ class RollbackRequest
988
+ include Google::Apis::Core::Hashable
989
+
990
+ # The transaction identifier, returned by a call to beginTransaction.
991
+ # Corresponds to the JSON property `transaction`
992
+ # @return [String]
993
+ attr_accessor :transaction
994
+
995
+ def initialize(**args)
996
+ update!(**args)
997
+ end
998
+
999
+ # Update properties of this object
1000
+ def update!(**args)
1001
+ @transaction = args[:transaction] unless args[:transaction].nil?
1002
+ end
1003
+ end
1004
+
1005
+ #
1006
+ class RollbackResponse
1007
+ include Google::Apis::Core::Hashable
1008
+
1009
+ #
1010
+ # Corresponds to the JSON property `header`
1011
+ # @return [Google::Apis::DatastoreV1beta2::ResponseHeader]
1012
+ attr_accessor :header
1013
+
1014
+ def initialize(**args)
1015
+ update!(**args)
1016
+ end
1017
+
1018
+ # Update properties of this object
1019
+ def update!(**args)
1020
+ @header = args[:header] unless args[:header].nil?
1021
+ end
1022
+ end
1023
+
1024
+ #
1025
+ class RunQueryRequest
1026
+ include Google::Apis::Core::Hashable
1027
+
1028
+ # A GQL query.
1029
+ # Corresponds to the JSON property `gqlQuery`
1030
+ # @return [Google::Apis::DatastoreV1beta2::GqlQuery]
1031
+ attr_accessor :gql_query
1032
+
1033
+ # An identifier for a particular subset of entities.
1034
+ # Entities are partitioned into various subsets, each used by different datasets
1035
+ # and different namespaces within a dataset and so forth.
1036
+ # Corresponds to the JSON property `partitionId`
1037
+ # @return [Google::Apis::DatastoreV1beta2::PartitionId]
1038
+ attr_accessor :partition_id
1039
+
1040
+ # A query.
1041
+ # Corresponds to the JSON property `query`
1042
+ # @return [Google::Apis::DatastoreV1beta2::Query]
1043
+ attr_accessor :query
1044
+
1045
+ # The options for this query.
1046
+ # Corresponds to the JSON property `readOptions`
1047
+ # @return [Google::Apis::DatastoreV1beta2::ReadOptions]
1048
+ attr_accessor :read_options
1049
+
1050
+ def initialize(**args)
1051
+ update!(**args)
1052
+ end
1053
+
1054
+ # Update properties of this object
1055
+ def update!(**args)
1056
+ @gql_query = args[:gql_query] unless args[:gql_query].nil?
1057
+ @partition_id = args[:partition_id] unless args[:partition_id].nil?
1058
+ @query = args[:query] unless args[:query].nil?
1059
+ @read_options = args[:read_options] unless args[:read_options].nil?
1060
+ end
1061
+ end
1062
+
1063
+ #
1064
+ class RunQueryResponse
1065
+ include Google::Apis::Core::Hashable
1066
+
1067
+ # A batch of results produced by a query.
1068
+ # Corresponds to the JSON property `batch`
1069
+ # @return [Google::Apis::DatastoreV1beta2::QueryResultBatch]
1070
+ attr_accessor :batch
1071
+
1072
+ #
1073
+ # Corresponds to the JSON property `header`
1074
+ # @return [Google::Apis::DatastoreV1beta2::ResponseHeader]
1075
+ attr_accessor :header
1076
+
1077
+ def initialize(**args)
1078
+ update!(**args)
1079
+ end
1080
+
1081
+ # Update properties of this object
1082
+ def update!(**args)
1083
+ @batch = args[:batch] unless args[:batch].nil?
1084
+ @header = args[:header] unless args[:header].nil?
1085
+ end
1086
+ end
1087
+
1088
+ # A message that can hold any of the supported value types and associated
1089
+ # metadata.
1090
+ class Value
1091
+ include Google::Apis::Core::Hashable
1092
+
1093
+ # A blob key value.
1094
+ # Corresponds to the JSON property `blobKeyValue`
1095
+ # @return [String]
1096
+ attr_accessor :blob_key_value
1097
+
1098
+ # A blob value. May be a maximum of 1,000,000 bytes. When indexed is true, may
1099
+ # have at most 500 bytes.
1100
+ # Corresponds to the JSON property `blobValue`
1101
+ # @return [String]
1102
+ attr_accessor :blob_value
1103
+
1104
+ # A boolean value.
1105
+ # Corresponds to the JSON property `booleanValue`
1106
+ # @return [Boolean]
1107
+ attr_accessor :boolean_value
1108
+ alias_method :boolean_value?, :boolean_value
1109
+
1110
+ # A timestamp value.
1111
+ # Corresponds to the JSON property `dateTimeValue`
1112
+ # @return [DateTime]
1113
+ attr_accessor :date_time_value
1114
+
1115
+ # A double value.
1116
+ # Corresponds to the JSON property `doubleValue`
1117
+ # @return [Float]
1118
+ attr_accessor :double_value
1119
+
1120
+ # An entity.
1121
+ # Corresponds to the JSON property `entityValue`
1122
+ # @return [Google::Apis::DatastoreV1beta2::Entity]
1123
+ attr_accessor :entity_value
1124
+
1125
+ # If the value should be indexed.
1126
+ # The indexed property may be set for a null value. When indexed is true,
1127
+ # stringValue is limited to 500 characters and the blob value is limited to 500
1128
+ # bytes. Input values by default have indexed set to true; however, you can
1129
+ # explicitly set indexed to true if you want. (An output value never has indexed
1130
+ # explicitly set to true.) If a value is itself an entity, it cannot have
1131
+ # indexed set to true.
1132
+ # Corresponds to the JSON property `indexed`
1133
+ # @return [Boolean]
1134
+ attr_accessor :indexed
1135
+ alias_method :indexed?, :indexed
1136
+
1137
+ # An integer value.
1138
+ # Corresponds to the JSON property `integerValue`
1139
+ # @return [String]
1140
+ attr_accessor :integer_value
1141
+
1142
+ # A unique identifier for an entity.
1143
+ # Corresponds to the JSON property `keyValue`
1144
+ # @return [Google::Apis::DatastoreV1beta2::Key]
1145
+ attr_accessor :key_value
1146
+
1147
+ # A list value. Cannot contain another list value. A Value instance that sets
1148
+ # field list_value must not set field meaning or field indexed.
1149
+ # Corresponds to the JSON property `listValue`
1150
+ # @return [Array<Google::Apis::DatastoreV1beta2::Value>]
1151
+ attr_accessor :list_value
1152
+
1153
+ # The meaning field is reserved and should not be used.
1154
+ # Corresponds to the JSON property `meaning`
1155
+ # @return [Fixnum]
1156
+ attr_accessor :meaning
1157
+
1158
+ # A UTF-8 encoded string value. When indexed is true, may have at most 500
1159
+ # characters.
1160
+ # Corresponds to the JSON property `stringValue`
1161
+ # @return [String]
1162
+ attr_accessor :string_value
1163
+
1164
+ def initialize(**args)
1165
+ update!(**args)
1166
+ end
1167
+
1168
+ # Update properties of this object
1169
+ def update!(**args)
1170
+ @blob_key_value = args[:blob_key_value] unless args[:blob_key_value].nil?
1171
+ @blob_value = args[:blob_value] unless args[:blob_value].nil?
1172
+ @boolean_value = args[:boolean_value] unless args[:boolean_value].nil?
1173
+ @date_time_value = args[:date_time_value] unless args[:date_time_value].nil?
1174
+ @double_value = args[:double_value] unless args[:double_value].nil?
1175
+ @entity_value = args[:entity_value] unless args[:entity_value].nil?
1176
+ @indexed = args[:indexed] unless args[:indexed].nil?
1177
+ @integer_value = args[:integer_value] unless args[:integer_value].nil?
1178
+ @key_value = args[:key_value] unless args[:key_value].nil?
1179
+ @list_value = args[:list_value] unless args[:list_value].nil?
1180
+ @meaning = args[:meaning] unless args[:meaning].nil?
1181
+ @string_value = args[:string_value] unless args[:string_value].nil?
1182
+ end
1183
+ end
1184
+ end
1185
+ end
1186
+ end