google-api-client 0.11.3 → 0.12.0

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/CHANGELOG.md +51 -0
  3. data/api_names.yaml +32317 -34465
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  14. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  15. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  19. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  20. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  21. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  22. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  23. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  24. data/generated/google/apis/analytics_v3/service.rb +82 -82
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
  27. data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
  28. data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
  29. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  30. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  31. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  32. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  33. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  34. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  35. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  36. data/generated/google/apis/appengine_v1.rb +1 -1
  37. data/generated/google/apis/appengine_v1/classes.rb +825 -817
  38. data/generated/google/apis/appengine_v1/representations.rb +185 -184
  39. data/generated/google/apis/appengine_v1/service.rb +220 -216
  40. data/generated/google/apis/appstate_v1.rb +1 -1
  41. data/generated/google/apis/bigquery_v2.rb +1 -1
  42. data/generated/google/apis/bigquery_v2/classes.rb +9 -7
  43. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  44. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  45. data/generated/google/apis/blogger_v3/service.rb +3 -3
  46. data/generated/google/apis/books_v1/classes.rb +55 -55
  47. data/generated/google/apis/books_v1/representations.rb +67 -67
  48. data/generated/google/apis/books_v1/service.rb +82 -82
  49. data/generated/google/apis/calendar_v3.rb +1 -1
  50. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  51. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  52. data/generated/google/apis/calendar_v3/service.rb +2 -2
  53. data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
  55. data/generated/google/apis/civicinfo_v2/service.rb +8 -8
  56. data/generated/google/apis/classroom_v1.rb +24 -24
  57. data/generated/google/apis/classroom_v1/classes.rb +381 -381
  58. data/generated/google/apis/classroom_v1/representations.rb +108 -108
  59. data/generated/google/apis/classroom_v1/service.rb +503 -503
  60. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  61. data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
  62. data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
  63. data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
  64. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  65. data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
  66. data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
  67. data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
  68. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  69. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
  70. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
  71. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
  72. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  73. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  74. data/generated/google/apis/cloudkms_v1.rb +3 -3
  75. data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
  76. data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
  77. data/generated/google/apis/cloudkms_v1/service.rb +224 -224
  78. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  79. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
  80. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
  81. data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
  85. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  88. data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_beta/classes.rb +57 -15
  91. data/generated/google/apis/compute_beta/representations.rb +30 -14
  92. data/generated/google/apis/compute_beta/service.rb +52 -52
  93. data/generated/google/apis/compute_v1.rb +1 -1
  94. data/generated/google/apis/compute_v1/classes.rb +223 -10
  95. data/generated/google/apis/compute_v1/representations.rb +85 -16
  96. data/generated/google/apis/compute_v1/service.rb +327 -51
  97. data/generated/google/apis/container_v1/classes.rb +267 -267
  98. data/generated/google/apis/container_v1/representations.rb +61 -61
  99. data/generated/google/apis/container_v1/service.rb +123 -123
  100. data/generated/google/apis/content_v2.rb +1 -1
  101. data/generated/google/apis/content_v2/classes.rb +71 -71
  102. data/generated/google/apis/content_v2/representations.rb +105 -105
  103. data/generated/google/apis/content_v2/service.rb +120 -120
  104. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  105. data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
  106. data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
  107. data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
  108. data/generated/google/apis/dataproc_v1.rb +1 -1
  109. data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
  110. data/generated/google/apis/dataproc_v1/representations.rb +147 -147
  111. data/generated/google/apis/dataproc_v1/service.rb +309 -305
  112. data/generated/google/apis/datastore_v1.rb +1 -1
  113. data/generated/google/apis/datastore_v1/classes.rb +818 -818
  114. data/generated/google/apis/datastore_v1/representations.rb +151 -151
  115. data/generated/google/apis/datastore_v1/service.rb +62 -62
  116. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  117. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  118. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  119. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  120. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  121. data/generated/google/apis/discovery_v1/service.rb +1 -1
  122. data/generated/google/apis/dns_v1.rb +1 -1
  123. data/generated/google/apis/dns_v1/classes.rb +3 -3
  124. data/generated/google/apis/dns_v1/representations.rb +6 -6
  125. data/generated/google/apis/dns_v1/service.rb +12 -12
  126. data/generated/google/apis/dns_v2beta1.rb +1 -1
  127. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  128. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  129. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  130. data/generated/google/apis/drive_v2/service.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +188 -188
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
  136. data/generated/google/apis/firebaserules_v1.rb +1 -1
  137. data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
  138. data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
  139. data/generated/google/apis/firebaserules_v1/service.rb +89 -89
  140. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  143. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  144. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  145. data/generated/google/apis/games_management_v1management.rb +1 -1
  146. data/generated/google/apis/games_v1.rb +1 -1
  147. data/generated/google/apis/games_v1/classes.rb +23 -23
  148. data/generated/google/apis/games_v1/representations.rb +43 -43
  149. data/generated/google/apis/games_v1/service.rb +72 -72
  150. data/generated/google/apis/genomics_v1.rb +7 -7
  151. data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
  152. data/generated/google/apis/genomics_v1/representations.rb +298 -298
  153. data/generated/google/apis/genomics_v1/service.rb +1160 -1160
  154. data/generated/google/apis/groupssettings_v1/service.rb +0 -3
  155. data/generated/google/apis/iam_v1.rb +1 -1
  156. data/generated/google/apis/iam_v1/classes.rb +235 -235
  157. data/generated/google/apis/iam_v1/representations.rb +72 -72
  158. data/generated/google/apis/iam_v1/service.rb +189 -189
  159. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  160. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  161. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  162. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  163. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  164. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  165. data/generated/google/apis/language_v1/classes.rb +220 -220
  166. data/generated/google/apis/language_v1/representations.rb +81 -81
  167. data/generated/google/apis/language_v1/service.rb +43 -43
  168. data/generated/google/apis/language_v1beta1/classes.rb +448 -448
  169. data/generated/google/apis/language_v1beta1/representations.rb +106 -106
  170. data/generated/google/apis/language_v1beta1/service.rb +31 -31
  171. data/generated/google/apis/licensing_v1/service.rb +2 -2
  172. data/generated/google/apis/logging_v2/classes.rb +737 -737
  173. data/generated/google/apis/logging_v2/representations.rb +120 -120
  174. data/generated/google/apis/logging_v2/service.rb +479 -479
  175. data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
  176. data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
  177. data/generated/google/apis/logging_v2beta1/service.rb +349 -349
  178. data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
  179. data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
  180. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  181. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  182. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  183. data/generated/google/apis/mirror_v1/service.rb +20 -20
  184. data/generated/google/apis/ml_v1.rb +1 -1
  185. data/generated/google/apis/ml_v1/classes.rb +1285 -1205
  186. data/generated/google/apis/ml_v1/representations.rb +204 -174
  187. data/generated/google/apis/ml_v1/service.rb +150 -145
  188. data/generated/google/apis/monitoring_v3.rb +1 -1
  189. data/generated/google/apis/monitoring_v3/classes.rb +880 -880
  190. data/generated/google/apis/monitoring_v3/representations.rb +154 -154
  191. data/generated/google/apis/monitoring_v3/service.rb +299 -299
  192. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  193. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  194. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  195. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  196. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  197. data/generated/google/apis/partners_v2.rb +1 -1
  198. data/generated/google/apis/partners_v2/classes.rb +524 -509
  199. data/generated/google/apis/partners_v2/representations.rb +115 -111
  200. data/generated/google/apis/partners_v2/service.rb +287 -287
  201. data/generated/google/apis/people_v1.rb +13 -13
  202. data/generated/google/apis/people_v1/classes.rb +1150 -1150
  203. data/generated/google/apis/people_v1/representations.rb +258 -258
  204. data/generated/google/apis/people_v1/service.rb +7 -7
  205. data/generated/google/apis/plus_domains_v1.rb +1 -1
  206. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  207. data/generated/google/apis/plus_v1.rb +1 -1
  208. data/generated/google/apis/plus_v1/service.rb +1 -1
  209. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  210. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
  211. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
  212. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
  213. data/generated/google/apis/pubsub_v1/classes.rb +228 -228
  214. data/generated/google/apis/pubsub_v1/representations.rb +69 -69
  215. data/generated/google/apis/pubsub_v1/service.rb +182 -182
  216. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  217. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  218. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  219. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  220. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  221. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  222. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  223. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  226. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  227. data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
  228. data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
  229. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  230. data/generated/google/apis/script_v1.rb +9 -9
  231. data/generated/google/apis/script_v1/classes.rb +94 -94
  232. data/generated/google/apis/script_v1/representations.rb +26 -26
  233. data/generated/google/apis/searchconsole_v1.rb +1 -1
  234. data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
  235. data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
  236. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  237. data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
  238. data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
  239. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  240. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  241. data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
  242. data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
  243. data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
  244. data/generated/google/apis/serviceuser_v1.rb +4 -4
  245. data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
  246. data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
  247. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  248. data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
  249. data/generated/google/apis/sheets_v4/representations.rb +324 -324
  250. data/generated/google/apis/sheets_v4/service.rb +49 -49
  251. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  252. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  253. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  254. data/generated/google/apis/slides_v1.rb +4 -4
  255. data/generated/google/apis/slides_v1/classes.rb +2907 -2907
  256. data/generated/google/apis/slides_v1/representations.rb +695 -695
  257. data/generated/google/apis/slides_v1/service.rb +40 -40
  258. data/generated/google/apis/sourcerepo_v1.rb +7 -1
  259. data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
  260. data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
  261. data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
  262. data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
  263. data/generated/google/apis/spanner_v1/representations.rb +205 -205
  264. data/generated/google/apis/spanner_v1/service.rb +525 -525
  265. data/generated/google/apis/speech_v1beta1.rb +1 -1
  266. data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
  267. data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
  268. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  269. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  270. data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
  271. data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
  272. data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
  273. data/generated/google/apis/storage_v1/classes.rb +6 -6
  274. data/generated/google/apis/storage_v1/representations.rb +4 -4
  275. data/generated/google/apis/storage_v1/service.rb +1 -1
  276. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  277. data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
  278. data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
  279. data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
  280. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  281. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  282. data/generated/google/apis/translate_v2.rb +1 -1
  283. data/generated/google/apis/translate_v2/classes.rb +46 -46
  284. data/generated/google/apis/translate_v2/representations.rb +22 -22
  285. data/generated/google/apis/translate_v2/service.rb +81 -74
  286. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  287. data/generated/google/apis/vision_v1/representations.rb +166 -166
  288. data/generated/google/apis/vision_v1/service.rb +6 -6
  289. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  290. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  291. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  292. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  293. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  294. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  295. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  296. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  297. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  298. data/generated/google/apis/youtube_v3/service.rb +80 -80
  299. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  300. data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
  301. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  302. data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
  303. data/google-api-client.gemspec +3 -3
  304. data/lib/google/apis/core/base_service.rb +6 -0
  305. data/lib/google/apis/generator/annotator.rb +2 -2
  306. data/lib/google/apis/generator/model.rb +2 -2
  307. data/lib/google/apis/version.rb +1 -1
  308. metadata +11 -94
  309. data/dl.rb +0 -0
  310. data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
  311. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
  312. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
  313. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
  314. data/generated/google/apis/appengine_v1beta4.rb +0 -35
  315. data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
  316. data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
  317. data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
  318. data/generated/google/apis/appengine_v1beta5.rb +0 -40
  319. data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
  320. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
  321. data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
  322. data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
  323. data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
  324. data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
  325. data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
  326. data/generated/google/apis/classroom_v1beta1.rb +0 -49
  327. data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
  328. data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
  329. data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
  330. data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
  331. data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
  332. data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
  333. data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
  334. data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
  335. data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
  336. data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
  337. data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
  338. data/generated/google/apis/container_v1beta1.rb +0 -35
  339. data/generated/google/apis/container_v1beta1/classes.rb +0 -466
  340. data/generated/google/apis/container_v1beta1/representations.rb +0 -177
  341. data/generated/google/apis/container_v1beta1/service.rb +0 -394
  342. data/generated/google/apis/coordinate_v1.rb +0 -37
  343. data/generated/google/apis/coordinate_v1/classes.rb +0 -669
  344. data/generated/google/apis/coordinate_v1/representations.rb +0 -321
  345. data/generated/google/apis/coordinate_v1/service.rb +0 -678
  346. data/generated/google/apis/datastore_v1beta2.rb +0 -40
  347. data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
  348. data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
  349. data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
  350. data/generated/google/apis/datastore_v1beta3.rb +0 -38
  351. data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
  352. data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
  353. data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
  354. data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
  355. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
  356. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
  357. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
  358. data/generated/google/apis/dfareporting_v2_1.rb +0 -37
  359. data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
  360. data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
  361. data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
  362. data/generated/google/apis/dfareporting_v2_3.rb +0 -37
  363. data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
  364. data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
  365. data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
  366. data/generated/google/apis/dfareporting_v2_5.rb +0 -40
  367. data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
  368. data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
  369. data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
  370. data/generated/google/apis/dfareporting_v2_6.rb +0 -40
  371. data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
  372. data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
  373. data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
  374. data/generated/google/apis/gan_v1beta1.rb +0 -31
  375. data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
  376. data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
  377. data/generated/google/apis/gan_v1beta1/service.rb +0 -682
  378. data/generated/google/apis/genomics_v1beta2.rb +0 -46
  379. data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
  380. data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
  381. data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
  382. data/generated/google/apis/logging_v1beta3.rb +0 -47
  383. data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
  384. data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
  385. data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
  386. data/generated/google/apis/manager_v1beta2.rb +0 -53
  387. data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
  388. data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
  389. data/generated/google/apis/manager_v1beta2/service.rb +0 -372
  390. data/generated/google/apis/pubsub_v1beta2.rb +0 -37
  391. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
  392. data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
  393. data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
  394. data/generated/google/apis/tracing_v1.rb +0 -40
  395. data/generated/google/apis/tracing_v1/classes.rb +0 -664
  396. data/generated/google/apis/tracing_v1/representations.rb +0 -279
  397. data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/datastore/
27
27
  module DatastoreV1
28
28
  VERSION = 'V1'
29
- REVISION = '20170516'
29
+ REVISION = '20170523'
30
30
 
31
31
  # View and manage your Google Cloud Datastore data
32
32
  AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
@@ -22,16 +22,15 @@ module Google
22
22
  module Apis
23
23
  module DatastoreV1
24
24
 
25
- # An array value.
26
- class ArrayValue
25
+ # The response for Datastore.BeginTransaction.
26
+ class BeginTransactionResponse
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # Values in the array.
30
- # The order of this array may not be preserved if it contains a mix of
31
- # indexed and unindexed values.
32
- # Corresponds to the JSON property `values`
33
- # @return [Array<Google::Apis::DatastoreV1::Value>]
34
- attr_accessor :values
29
+ # The transaction identifier (always present).
30
+ # Corresponds to the JSON property `transaction`
31
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
32
+ # @return [String]
33
+ attr_accessor :transaction
35
34
 
36
35
  def initialize(**args)
37
36
  update!(**args)
@@ -39,18 +38,23 @@ module Google
39
38
 
40
39
  # Update properties of this object
41
40
  def update!(**args)
42
- @values = args[:values] if args.key?(:values)
41
+ @transaction = args[:transaction] if args.key?(:transaction)
43
42
  end
44
43
  end
45
44
 
46
- # A representation of a property in a projection.
47
- class Projection
45
+ # The response for Datastore.RunQuery.
46
+ class RunQueryResponse
48
47
  include Google::Apis::Core::Hashable
49
48
 
50
- # A reference to a property relative to the kind expressions.
51
- # Corresponds to the JSON property `property`
52
- # @return [Google::Apis::DatastoreV1::PropertyReference]
53
- attr_accessor :property
49
+ # A query for entities.
50
+ # Corresponds to the JSON property `query`
51
+ # @return [Google::Apis::DatastoreV1::Query]
52
+ attr_accessor :query
53
+
54
+ # A batch of results produced by a query.
55
+ # Corresponds to the JSON property `batch`
56
+ # @return [Google::Apis::DatastoreV1::QueryResultBatch]
57
+ attr_accessor :batch
54
58
 
55
59
  def initialize(**args)
56
60
  update!(**args)
@@ -58,51 +62,57 @@ module Google
58
62
 
59
63
  # Update properties of this object
60
64
  def update!(**args)
61
- @property = args[:property] if args.key?(:property)
65
+ @query = args[:query] if args.key?(:query)
66
+ @batch = args[:batch] if args.key?(:batch)
62
67
  end
63
68
  end
64
69
 
65
- # A mutation to apply to an entity.
66
- class Mutation
70
+ # The response for Datastore.Lookup.
71
+ class LookupResponse
67
72
  include Google::Apis::Core::Hashable
68
73
 
69
- # A unique identifier for an entity.
70
- # If a key's partition ID or any of its path kinds or names are
71
- # reserved/read-only, the key is reserved/read-only.
72
- # A reserved/read-only key is forbidden in certain documented contexts.
73
- # Corresponds to the JSON property `delete`
74
- # @return [Google::Apis::DatastoreV1::Key]
75
- attr_accessor :delete
74
+ # Entities found as `ResultType.FULL` entities. The order of results in this
75
+ # field is undefined and has no relation to the order of the keys in the
76
+ # input.
77
+ # Corresponds to the JSON property `found`
78
+ # @return [Array<Google::Apis::DatastoreV1::EntityResult>]
79
+ attr_accessor :found
76
80
 
77
- # A Datastore data object.
78
- # An entity is limited to 1 megabyte when stored. That _roughly_
79
- # corresponds to a limit of 1 megabyte for the serialized form of this
80
- # message.
81
- # Corresponds to the JSON property `insert`
82
- # @return [Google::Apis::DatastoreV1::Entity]
83
- attr_accessor :insert
81
+ # Entities not found as `ResultType.KEY_ONLY` entities. The order of results
82
+ # in this field is undefined and has no relation to the order of the keys
83
+ # in the input.
84
+ # Corresponds to the JSON property `missing`
85
+ # @return [Array<Google::Apis::DatastoreV1::EntityResult>]
86
+ attr_accessor :missing
84
87
 
85
- # The version of the entity that this mutation is being applied to. If this
86
- # does not match the current version on the server, the mutation conflicts.
87
- # Corresponds to the JSON property `baseVersion`
88
- # @return [Fixnum]
89
- attr_accessor :base_version
88
+ # A list of keys that were not looked up due to resource constraints. The
89
+ # order of results in this field is undefined and has no relation to the
90
+ # order of the keys in the input.
91
+ # Corresponds to the JSON property `deferred`
92
+ # @return [Array<Google::Apis::DatastoreV1::Key>]
93
+ attr_accessor :deferred
90
94
 
91
- # A Datastore data object.
92
- # An entity is limited to 1 megabyte when stored. That _roughly_
93
- # corresponds to a limit of 1 megabyte for the serialized form of this
94
- # message.
95
- # Corresponds to the JSON property `update`
96
- # @return [Google::Apis::DatastoreV1::Entity]
97
- attr_accessor :update
95
+ def initialize(**args)
96
+ update!(**args)
97
+ end
98
98
 
99
- # A Datastore data object.
100
- # An entity is limited to 1 megabyte when stored. That _roughly_
101
- # corresponds to a limit of 1 megabyte for the serialized form of this
102
- # message.
103
- # Corresponds to the JSON property `upsert`
104
- # @return [Google::Apis::DatastoreV1::Entity]
105
- attr_accessor :upsert
99
+ # Update properties of this object
100
+ def update!(**args)
101
+ @found = args[:found] if args.key?(:found)
102
+ @missing = args[:missing] if args.key?(:missing)
103
+ @deferred = args[:deferred] if args.key?(:deferred)
104
+ end
105
+ end
106
+
107
+ # The request for Datastore.AllocateIds.
108
+ class AllocateIdsRequest
109
+ include Google::Apis::Core::Hashable
110
+
111
+ # A list of keys with incomplete key paths for which to allocate IDs.
112
+ # No key may be reserved/read-only.
113
+ # Corresponds to the JSON property `keys`
114
+ # @return [Array<Google::Apis::DatastoreV1::Key>]
115
+ attr_accessor :keys
106
116
 
107
117
  def initialize(**args)
108
118
  update!(**args)
@@ -110,25 +120,15 @@ module Google
110
120
 
111
121
  # Update properties of this object
112
122
  def update!(**args)
113
- @delete = args[:delete] if args.key?(:delete)
114
- @insert = args[:insert] if args.key?(:insert)
115
- @base_version = args[:base_version] if args.key?(:base_version)
116
- @update = args[:update] if args.key?(:update)
117
- @upsert = args[:upsert] if args.key?(:upsert)
123
+ @keys = args[:keys] if args.key?(:keys)
118
124
  end
119
125
  end
120
126
 
121
- # The options shared by read requests.
122
- class ReadOptions
127
+ # The request for Datastore.Commit.
128
+ class CommitRequest
123
129
  include Google::Apis::Core::Hashable
124
130
 
125
- # The non-transactional read consistency to use.
126
- # Cannot be set to `STRONG` for global queries.
127
- # Corresponds to the JSON property `readConsistency`
128
- # @return [String]
129
- attr_accessor :read_consistency
130
-
131
- # The identifier of the transaction in which to read. A
131
+ # The identifier of the transaction associated with the commit. A
132
132
  # transaction identifier is returned by a call to
133
133
  # Datastore.BeginTransaction.
134
134
  # Corresponds to the JSON property `transaction`
@@ -136,20 +136,39 @@ module Google
136
136
  # @return [String]
137
137
  attr_accessor :transaction
138
138
 
139
+ # The type of commit to perform. Defaults to `TRANSACTIONAL`.
140
+ # Corresponds to the JSON property `mode`
141
+ # @return [String]
142
+ attr_accessor :mode
143
+
144
+ # The mutations to perform.
145
+ # When mode is `TRANSACTIONAL`, mutations affecting a single entity are
146
+ # applied in order. The following sequences of mutations affecting a single
147
+ # entity are not permitted in a single `Commit` request:
148
+ # - `insert` followed by `insert`
149
+ # - `update` followed by `insert`
150
+ # - `upsert` followed by `insert`
151
+ # - `delete` followed by `update`
152
+ # When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
153
+ # entity.
154
+ # Corresponds to the JSON property `mutations`
155
+ # @return [Array<Google::Apis::DatastoreV1::Mutation>]
156
+ attr_accessor :mutations
157
+
139
158
  def initialize(**args)
140
159
  update!(**args)
141
160
  end
142
161
 
143
162
  # Update properties of this object
144
163
  def update!(**args)
145
- @read_consistency = args[:read_consistency] if args.key?(:read_consistency)
146
164
  @transaction = args[:transaction] if args.key?(:transaction)
165
+ @mode = args[:mode] if args.key?(:mode)
166
+ @mutations = args[:mutations] if args.key?(:mutations)
147
167
  end
148
168
  end
149
169
 
150
- # The response for Datastore.Rollback.
151
- # (an empty message).
152
- class RollbackResponse
170
+ # The request for Datastore.BeginTransaction.
171
+ class BeginTransactionRequest
153
172
  include Google::Apis::Core::Hashable
154
173
 
155
174
  def initialize(**args)
@@ -161,33 +180,19 @@ module Google
161
180
  end
162
181
  end
163
182
 
164
- # The result of applying a mutation.
165
- class MutationResult
183
+ # The desired order for a specific property.
184
+ class PropertyOrder
166
185
  include Google::Apis::Core::Hashable
167
186
 
168
- # The version of the entity on the server after processing the mutation. If
169
- # the mutation doesn't change anything on the server, then the version will
170
- # be the version of the current entity or, if no entity is present, a version
171
- # that is strictly greater than the version of any previous entity and less
172
- # than the version of any possible future entity.
173
- # Corresponds to the JSON property `version`
174
- # @return [Fixnum]
175
- attr_accessor :version
176
-
177
- # Whether a conflict was detected for this mutation. Always false when a
178
- # conflict detection strategy field is not set in the mutation.
179
- # Corresponds to the JSON property `conflictDetected`
180
- # @return [Boolean]
181
- attr_accessor :conflict_detected
182
- alias_method :conflict_detected?, :conflict_detected
187
+ # A reference to a property relative to the kind expressions.
188
+ # Corresponds to the JSON property `property`
189
+ # @return [Google::Apis::DatastoreV1::PropertyReference]
190
+ attr_accessor :property
183
191
 
184
- # A unique identifier for an entity.
185
- # If a key's partition ID or any of its path kinds or names are
186
- # reserved/read-only, the key is reserved/read-only.
187
- # A reserved/read-only key is forbidden in certain documented contexts.
188
- # Corresponds to the JSON property `key`
189
- # @return [Google::Apis::DatastoreV1::Key]
190
- attr_accessor :key
192
+ # The direction to order by. Defaults to `ASCENDING`.
193
+ # Corresponds to the JSON property `direction`
194
+ # @return [String]
195
+ attr_accessor :direction
191
196
 
192
197
  def initialize(**args)
193
198
  update!(**args)
@@ -195,46 +200,19 @@ module Google
195
200
 
196
201
  # Update properties of this object
197
202
  def update!(**args)
198
- @version = args[:version] if args.key?(:version)
199
- @conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
200
- @key = args[:key] if args.key?(:key)
203
+ @property = args[:property] if args.key?(:property)
204
+ @direction = args[:direction] if args.key?(:direction)
201
205
  end
202
206
  end
203
207
 
204
- # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
205
- class GqlQuery
208
+ # A representation of a kind.
209
+ class KindExpression
206
210
  include Google::Apis::Core::Hashable
207
211
 
208
- # A string of the format described
209
- # [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
210
- # Corresponds to the JSON property `queryString`
212
+ # The name of the kind.
213
+ # Corresponds to the JSON property `name`
211
214
  # @return [String]
212
- attr_accessor :query_string
213
-
214
- # When false, the query string must not contain any literals and instead must
215
- # bind all values. For example,
216
- # `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
217
- # `SELECT * FROM Kind WHERE a = @value` is.
218
- # Corresponds to the JSON property `allowLiterals`
219
- # @return [Boolean]
220
- attr_accessor :allow_literals
221
- alias_method :allow_literals?, :allow_literals
222
-
223
- # For each non-reserved named binding site in the query string, there must be
224
- # a named parameter with that name, but not necessarily the inverse.
225
- # Key must match regex `A-Za-z_$*`, must not match regex
226
- # `__.*__`, and must not be `""`.
227
- # Corresponds to the JSON property `namedBindings`
228
- # @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
229
- attr_accessor :named_bindings
230
-
231
- # Numbered binding site @1 references the first numbered parameter,
232
- # effectively using 1-based indexing, rather than the usual 0.
233
- # For each binding site numbered i in `query_string`, there must be an i-th
234
- # numbered parameter. The inverse must also be true.
235
- # Corresponds to the JSON property `positionalBindings`
236
- # @return [Array<Google::Apis::DatastoreV1::GqlQueryParameter>]
237
- attr_accessor :positional_bindings
215
+ attr_accessor :name
238
216
 
239
217
  def initialize(**args)
240
218
  update!(**args)
@@ -242,42 +220,94 @@ module Google
242
220
 
243
221
  # Update properties of this object
244
222
  def update!(**args)
245
- @query_string = args[:query_string] if args.key?(:query_string)
246
- @allow_literals = args[:allow_literals] if args.key?(:allow_literals)
247
- @named_bindings = args[:named_bindings] if args.key?(:named_bindings)
248
- @positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings)
223
+ @name = args[:name] if args.key?(:name)
249
224
  end
250
225
  end
251
226
 
252
- # A holder for any type of filter.
253
- class Filter
254
- include Google::Apis::Core::Hashable
255
-
256
- # A filter that merges multiple other filters using the given operator.
257
- # Corresponds to the JSON property `compositeFilter`
258
- # @return [Google::Apis::DatastoreV1::CompositeFilter]
259
- attr_accessor :composite_filter
260
-
261
- # A filter on a specific property.
262
- # Corresponds to the JSON property `propertyFilter`
263
- # @return [Google::Apis::DatastoreV1::PropertyFilter]
264
- attr_accessor :property_filter
265
-
266
- def initialize(**args)
267
- update!(**args)
268
- end
269
-
270
- # Update properties of this object
227
+ # An object representing a latitude/longitude pair. This is expressed as a pair
228
+ # of doubles representing degrees latitude and degrees longitude. Unless
229
+ # specified otherwise, this must conform to the
230
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
231
+ # standard</a>. Values must be within normalized ranges.
232
+ # Example of normalization code in Python:
233
+ # def NormalizeLongitude(longitude):
234
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
235
+ # q, r = divmod(longitude, 360.0)
236
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
237
+ # return r - 360.0
238
+ # return r
239
+ # def NormalizeLatLng(latitude, longitude):
240
+ # """Wraps decimal degrees latitude and longitude to
241
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
242
+ # r = latitude % 360.0
243
+ # if r <= 90.0:
244
+ # return r, NormalizeLongitude(longitude)
245
+ # elif r >= 270.0:
246
+ # return r - 360, NormalizeLongitude(longitude)
247
+ # else:
248
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
249
+ # assert 180.0 == NormalizeLongitude(180.0)
250
+ # assert -180.0 == NormalizeLongitude(-180.0)
251
+ # assert -179.0 == NormalizeLongitude(181.0)
252
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
253
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
254
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
255
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
256
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
257
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
258
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
259
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
260
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
261
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
262
+ class LatLng
263
+ include Google::Apis::Core::Hashable
264
+
265
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
266
+ # Corresponds to the JSON property `latitude`
267
+ # @return [Float]
268
+ attr_accessor :latitude
269
+
270
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
271
+ # Corresponds to the JSON property `longitude`
272
+ # @return [Float]
273
+ attr_accessor :longitude
274
+
275
+ def initialize(**args)
276
+ update!(**args)
277
+ end
278
+
279
+ # Update properties of this object
271
280
  def update!(**args)
272
- @composite_filter = args[:composite_filter] if args.key?(:composite_filter)
273
- @property_filter = args[:property_filter] if args.key?(:property_filter)
281
+ @latitude = args[:latitude] if args.key?(:latitude)
282
+ @longitude = args[:longitude] if args.key?(:longitude)
274
283
  end
275
284
  end
276
285
 
277
- # The request for Datastore.RunQuery.
278
- class RunQueryRequest
286
+ # A unique identifier for an entity.
287
+ # If a key's partition ID or any of its path kinds or names are
288
+ # reserved/read-only, the key is reserved/read-only.
289
+ # A reserved/read-only key is forbidden in certain documented contexts.
290
+ class Key
279
291
  include Google::Apis::Core::Hashable
280
292
 
293
+ # The entity path.
294
+ # An entity path consists of one or more elements composed of a kind and a
295
+ # string or numerical identifier, which identify entities. The first
296
+ # element identifies a _root entity_, the second element identifies
297
+ # a _child_ of the root entity, the third element identifies a child of the
298
+ # second entity, and so forth. The entities identified by all prefixes of
299
+ # the path are called the element's _ancestors_.
300
+ # An entity path is always fully complete: *all* of the entity's ancestors
301
+ # are required to be in the path along with the entity identifier itself.
302
+ # The only exception is that in some documented cases, the identifier in the
303
+ # last path element (for the entity) itself may be omitted. For example,
304
+ # the last path element of the key of `Mutation.insert` may have no
305
+ # identifier.
306
+ # A path can never be empty, and a path can have at most 100 elements.
307
+ # Corresponds to the JSON property `path`
308
+ # @return [Array<Google::Apis::DatastoreV1::PathElement>]
309
+ attr_accessor :path
310
+
281
311
  # A partition ID identifies a grouping of entities. The grouping is always
282
312
  # by project and namespace, however the namespace ID may be empty.
283
313
  # A partition ID contains several dimensions:
@@ -298,44 +328,26 @@ module Google
298
328
  # @return [Google::Apis::DatastoreV1::PartitionId]
299
329
  attr_accessor :partition_id
300
330
 
301
- # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
302
- # Corresponds to the JSON property `gqlQuery`
303
- # @return [Google::Apis::DatastoreV1::GqlQuery]
304
- attr_accessor :gql_query
305
-
306
- # The options shared by read requests.
307
- # Corresponds to the JSON property `readOptions`
308
- # @return [Google::Apis::DatastoreV1::ReadOptions]
309
- attr_accessor :read_options
310
-
311
- # A query for entities.
312
- # Corresponds to the JSON property `query`
313
- # @return [Google::Apis::DatastoreV1::Query]
314
- attr_accessor :query
315
-
316
331
  def initialize(**args)
317
332
  update!(**args)
318
333
  end
319
334
 
320
335
  # Update properties of this object
321
336
  def update!(**args)
337
+ @path = args[:path] if args.key?(:path)
322
338
  @partition_id = args[:partition_id] if args.key?(:partition_id)
323
- @gql_query = args[:gql_query] if args.key?(:gql_query)
324
- @read_options = args[:read_options] if args.key?(:read_options)
325
- @query = args[:query] if args.key?(:query)
326
339
  end
327
340
  end
328
341
 
329
- # The request for Datastore.Rollback.
330
- class RollbackRequest
342
+ # A reference to a property relative to the kind expressions.
343
+ class PropertyReference
331
344
  include Google::Apis::Core::Hashable
332
345
 
333
- # The transaction identifier, returned by a call to
334
- # Datastore.BeginTransaction.
335
- # Corresponds to the JSON property `transaction`
336
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
346
+ # The name of the property.
347
+ # If name includes "."s, it may be interpreted as a property name path.
348
+ # Corresponds to the JSON property `name`
337
349
  # @return [String]
338
- attr_accessor :transaction
350
+ attr_accessor :name
339
351
 
340
352
  def initialize(**args)
341
353
  update!(**args)
@@ -343,24 +355,20 @@ module Google
343
355
 
344
356
  # Update properties of this object
345
357
  def update!(**args)
346
- @transaction = args[:transaction] if args.key?(:transaction)
358
+ @name = args[:name] if args.key?(:name)
347
359
  end
348
360
  end
349
361
 
350
- # A filter that merges multiple other filters using the given operator.
351
- class CompositeFilter
362
+ # An array value.
363
+ class ArrayValue
352
364
  include Google::Apis::Core::Hashable
353
365
 
354
- # The list of filters to combine.
355
- # Must contain at least one filter.
356
- # Corresponds to the JSON property `filters`
357
- # @return [Array<Google::Apis::DatastoreV1::Filter>]
358
- attr_accessor :filters
359
-
360
- # The operator for combining multiple filters.
361
- # Corresponds to the JSON property `op`
362
- # @return [String]
363
- attr_accessor :op
366
+ # Values in the array.
367
+ # The order of this array may not be preserved if it contains a mix of
368
+ # indexed and unindexed values.
369
+ # Corresponds to the JSON property `values`
370
+ # @return [Array<Google::Apis::DatastoreV1::Value>]
371
+ attr_accessor :values
364
372
 
365
373
  def initialize(**args)
366
374
  update!(**args)
@@ -368,20 +376,18 @@ module Google
368
376
 
369
377
  # Update properties of this object
370
378
  def update!(**args)
371
- @filters = args[:filters] if args.key?(:filters)
372
- @op = args[:op] if args.key?(:op)
379
+ @values = args[:values] if args.key?(:values)
373
380
  end
374
381
  end
375
382
 
376
- # The response for Datastore.AllocateIds.
377
- class AllocateIdsResponse
383
+ # A representation of a property in a projection.
384
+ class Projection
378
385
  include Google::Apis::Core::Hashable
379
386
 
380
- # The keys specified in the request (in the same order), each with
381
- # its key path completed with a newly allocated ID.
382
- # Corresponds to the JSON property `keys`
383
- # @return [Array<Google::Apis::DatastoreV1::Key>]
384
- attr_accessor :keys
387
+ # A reference to a property relative to the kind expressions.
388
+ # Corresponds to the JSON property `property`
389
+ # @return [Google::Apis::DatastoreV1::PropertyReference]
390
+ attr_accessor :property
385
391
 
386
392
  def initialize(**args)
387
393
  update!(**args)
@@ -389,73 +395,51 @@ module Google
389
395
 
390
396
  # Update properties of this object
391
397
  def update!(**args)
392
- @keys = args[:keys] if args.key?(:keys)
398
+ @property = args[:property] if args.key?(:property)
393
399
  end
394
400
  end
395
401
 
396
- # A query for entities.
397
- class Query
402
+ # A mutation to apply to an entity.
403
+ class Mutation
398
404
  include Google::Apis::Core::Hashable
399
405
 
400
- # A starting point for the query results. Query cursors are
401
- # returned in query result batches and
402
- # [can only be used to continue the same query](https://cloud.google.com/
403
- # datastore/docs/concepts/queries#cursors_limits_and_offsets).
404
- # Corresponds to the JSON property `startCursor`
405
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
406
- # @return [String]
407
- attr_accessor :start_cursor
408
-
409
- # The number of results to skip. Applies before limit, but after all other
410
- # constraints. Optional. Must be >= 0 if specified.
411
- # Corresponds to the JSON property `offset`
412
- # @return [Fixnum]
413
- attr_accessor :offset
414
-
415
- # The kinds to query (if empty, returns entities of all kinds).
416
- # Currently at most 1 kind may be specified.
417
- # Corresponds to the JSON property `kind`
418
- # @return [Array<Google::Apis::DatastoreV1::KindExpression>]
419
- attr_accessor :kind
420
-
421
- # The properties to make distinct. The query results will contain the first
422
- # result for each distinct combination of values for the given properties
423
- # (if empty, all results are returned).
424
- # Corresponds to the JSON property `distinctOn`
425
- # @return [Array<Google::Apis::DatastoreV1::PropertyReference>]
426
- attr_accessor :distinct_on
427
-
428
- # The order to apply to the query results (if empty, order is unspecified).
429
- # Corresponds to the JSON property `order`
430
- # @return [Array<Google::Apis::DatastoreV1::PropertyOrder>]
431
- attr_accessor :order
406
+ # A Datastore data object.
407
+ # An entity is limited to 1 megabyte when stored. That _roughly_
408
+ # corresponds to a limit of 1 megabyte for the serialized form of this
409
+ # message.
410
+ # Corresponds to the JSON property `update`
411
+ # @return [Google::Apis::DatastoreV1::Entity]
412
+ attr_accessor :update
432
413
 
433
- # The projection to return. Defaults to returning all properties.
434
- # Corresponds to the JSON property `projection`
435
- # @return [Array<Google::Apis::DatastoreV1::Projection>]
436
- attr_accessor :projection
414
+ # A Datastore data object.
415
+ # An entity is limited to 1 megabyte when stored. That _roughly_
416
+ # corresponds to a limit of 1 megabyte for the serialized form of this
417
+ # message.
418
+ # Corresponds to the JSON property `upsert`
419
+ # @return [Google::Apis::DatastoreV1::Entity]
420
+ attr_accessor :upsert
437
421
 
438
- # An ending point for the query results. Query cursors are
439
- # returned in query result batches and
440
- # [can only be used to limit the same query](https://cloud.google.com/datastore/
441
- # docs/concepts/queries#cursors_limits_and_offsets).
442
- # Corresponds to the JSON property `endCursor`
443
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
444
- # @return [String]
445
- attr_accessor :end_cursor
422
+ # A unique identifier for an entity.
423
+ # If a key's partition ID or any of its path kinds or names are
424
+ # reserved/read-only, the key is reserved/read-only.
425
+ # A reserved/read-only key is forbidden in certain documented contexts.
426
+ # Corresponds to the JSON property `delete`
427
+ # @return [Google::Apis::DatastoreV1::Key]
428
+ attr_accessor :delete
446
429
 
447
- # A holder for any type of filter.
448
- # Corresponds to the JSON property `filter`
449
- # @return [Google::Apis::DatastoreV1::Filter]
450
- attr_accessor :filter
430
+ # A Datastore data object.
431
+ # An entity is limited to 1 megabyte when stored. That _roughly_
432
+ # corresponds to a limit of 1 megabyte for the serialized form of this
433
+ # message.
434
+ # Corresponds to the JSON property `insert`
435
+ # @return [Google::Apis::DatastoreV1::Entity]
436
+ attr_accessor :insert
451
437
 
452
- # The maximum number of results to return. Applies after all other
453
- # constraints. Optional.
454
- # Unspecified is interpreted as no limit.
455
- # Must be >= 0 if specified.
456
- # Corresponds to the JSON property `limit`
438
+ # The version of the entity that this mutation is being applied to. If this
439
+ # does not match the current version on the server, the mutation conflicts.
440
+ # Corresponds to the JSON property `baseVersion`
457
441
  # @return [Fixnum]
458
- attr_accessor :limit
442
+ attr_accessor :base_version
459
443
 
460
444
  def initialize(**args)
461
445
  update!(**args)
@@ -463,37 +447,31 @@ module Google
463
447
 
464
448
  # Update properties of this object
465
449
  def update!(**args)
466
- @start_cursor = args[:start_cursor] if args.key?(:start_cursor)
467
- @offset = args[:offset] if args.key?(:offset)
468
- @kind = args[:kind] if args.key?(:kind)
469
- @distinct_on = args[:distinct_on] if args.key?(:distinct_on)
470
- @order = args[:order] if args.key?(:order)
471
- @projection = args[:projection] if args.key?(:projection)
472
- @end_cursor = args[:end_cursor] if args.key?(:end_cursor)
473
- @filter = args[:filter] if args.key?(:filter)
474
- @limit = args[:limit] if args.key?(:limit)
475
- end
476
- end
477
-
478
- # A filter on a specific property.
479
- class PropertyFilter
480
- include Google::Apis::Core::Hashable
450
+ @update = args[:update] if args.key?(:update)
451
+ @upsert = args[:upsert] if args.key?(:upsert)
452
+ @delete = args[:delete] if args.key?(:delete)
453
+ @insert = args[:insert] if args.key?(:insert)
454
+ @base_version = args[:base_version] if args.key?(:base_version)
455
+ end
456
+ end
481
457
 
482
- # A message that can hold any of the supported value types and associated
483
- # metadata.
484
- # Corresponds to the JSON property `value`
485
- # @return [Google::Apis::DatastoreV1::Value]
486
- attr_accessor :value
458
+ # The options shared by read requests.
459
+ class ReadOptions
460
+ include Google::Apis::Core::Hashable
487
461
 
488
- # A reference to a property relative to the kind expressions.
489
- # Corresponds to the JSON property `property`
490
- # @return [Google::Apis::DatastoreV1::PropertyReference]
491
- attr_accessor :property
462
+ # The non-transactional read consistency to use.
463
+ # Cannot be set to `STRONG` for global queries.
464
+ # Corresponds to the JSON property `readConsistency`
465
+ # @return [String]
466
+ attr_accessor :read_consistency
492
467
 
493
- # The operator to filter by.
494
- # Corresponds to the JSON property `op`
468
+ # The identifier of the transaction in which to read. A
469
+ # transaction identifier is returned by a call to
470
+ # Datastore.BeginTransaction.
471
+ # Corresponds to the JSON property `transaction`
472
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
495
473
  # @return [String]
496
- attr_accessor :op
474
+ attr_accessor :transaction
497
475
 
498
476
  def initialize(**args)
499
477
  update!(**args)
@@ -501,41 +479,52 @@ module Google
501
479
 
502
480
  # Update properties of this object
503
481
  def update!(**args)
504
- @value = args[:value] if args.key?(:value)
505
- @property = args[:property] if args.key?(:property)
506
- @op = args[:op] if args.key?(:op)
482
+ @read_consistency = args[:read_consistency] if args.key?(:read_consistency)
483
+ @transaction = args[:transaction] if args.key?(:transaction)
507
484
  end
508
485
  end
509
486
 
510
- # The result of fetching an entity from Datastore.
511
- class EntityResult
487
+ # The response for Datastore.Rollback.
488
+ # (an empty message).
489
+ class RollbackResponse
512
490
  include Google::Apis::Core::Hashable
513
491
 
514
- # A cursor that points to the position after the result entity.
515
- # Set only when the `EntityResult` is part of a `QueryResultBatch` message.
516
- # Corresponds to the JSON property `cursor`
517
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
518
- # @return [String]
519
- attr_accessor :cursor
492
+ def initialize(**args)
493
+ update!(**args)
494
+ end
520
495
 
521
- # The version of the entity, a strictly positive number that monotonically
522
- # increases with changes to the entity.
523
- # This field is set for `FULL` entity
524
- # results.
525
- # For missing entities in `LookupResponse`, this
526
- # is the version of the snapshot that was used to look up the entity, and it
527
- # is always set except for eventually consistent reads.
496
+ # Update properties of this object
497
+ def update!(**args)
498
+ end
499
+ end
500
+
501
+ # The result of applying a mutation.
502
+ class MutationResult
503
+ include Google::Apis::Core::Hashable
504
+
505
+ # The version of the entity on the server after processing the mutation. If
506
+ # the mutation doesn't change anything on the server, then the version will
507
+ # be the version of the current entity or, if no entity is present, a version
508
+ # that is strictly greater than the version of any previous entity and less
509
+ # than the version of any possible future entity.
528
510
  # Corresponds to the JSON property `version`
529
511
  # @return [Fixnum]
530
512
  attr_accessor :version
531
513
 
532
- # A Datastore data object.
533
- # An entity is limited to 1 megabyte when stored. That _roughly_
534
- # corresponds to a limit of 1 megabyte for the serialized form of this
535
- # message.
536
- # Corresponds to the JSON property `entity`
537
- # @return [Google::Apis::DatastoreV1::Entity]
538
- attr_accessor :entity
514
+ # Whether a conflict was detected for this mutation. Always false when a
515
+ # conflict detection strategy field is not set in the mutation.
516
+ # Corresponds to the JSON property `conflictDetected`
517
+ # @return [Boolean]
518
+ attr_accessor :conflict_detected
519
+ alias_method :conflict_detected?, :conflict_detected
520
+
521
+ # A unique identifier for an entity.
522
+ # If a key's partition ID or any of its path kinds or names are
523
+ # reserved/read-only, the key is reserved/read-only.
524
+ # A reserved/read-only key is forbidden in certain documented contexts.
525
+ # Corresponds to the JSON property `key`
526
+ # @return [Google::Apis::DatastoreV1::Key]
527
+ attr_accessor :key
539
528
 
540
529
  def initialize(**args)
541
530
  update!(**args)
@@ -543,27 +532,46 @@ module Google
543
532
 
544
533
  # Update properties of this object
545
534
  def update!(**args)
546
- @cursor = args[:cursor] if args.key?(:cursor)
547
535
  @version = args[:version] if args.key?(:version)
548
- @entity = args[:entity] if args.key?(:entity)
536
+ @conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
537
+ @key = args[:key] if args.key?(:key)
549
538
  end
550
539
  end
551
540
 
552
- # The response for Datastore.Commit.
553
- class CommitResponse
541
+ # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
542
+ class GqlQuery
554
543
  include Google::Apis::Core::Hashable
555
544
 
556
- # The result of performing the mutations.
557
- # The i-th mutation result corresponds to the i-th mutation in the request.
558
- # Corresponds to the JSON property `mutationResults`
559
- # @return [Array<Google::Apis::DatastoreV1::MutationResult>]
560
- attr_accessor :mutation_results
545
+ # A string of the format described
546
+ # [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
547
+ # Corresponds to the JSON property `queryString`
548
+ # @return [String]
549
+ attr_accessor :query_string
561
550
 
562
- # The number of index entries updated during the commit, or zero if none were
563
- # updated.
564
- # Corresponds to the JSON property `indexUpdates`
565
- # @return [Fixnum]
566
- attr_accessor :index_updates
551
+ # When false, the query string must not contain any literals and instead must
552
+ # bind all values. For example,
553
+ # `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
554
+ # `SELECT * FROM Kind WHERE a = @value` is.
555
+ # Corresponds to the JSON property `allowLiterals`
556
+ # @return [Boolean]
557
+ attr_accessor :allow_literals
558
+ alias_method :allow_literals?, :allow_literals
559
+
560
+ # For each non-reserved named binding site in the query string, there must be
561
+ # a named parameter with that name, but not necessarily the inverse.
562
+ # Key must match regex `A-Za-z_$*`, must not match regex
563
+ # `__.*__`, and must not be `""`.
564
+ # Corresponds to the JSON property `namedBindings`
565
+ # @return [Hash<String,Google::Apis::DatastoreV1::GqlQueryParameter>]
566
+ attr_accessor :named_bindings
567
+
568
+ # Numbered binding site @1 references the first numbered parameter,
569
+ # effectively using 1-based indexing, rather than the usual 0.
570
+ # For each binding site numbered i in `query_string`, there must be an i-th
571
+ # numbered parameter. The inverse must also be true.
572
+ # Corresponds to the JSON property `positionalBindings`
573
+ # @return [Array<Google::Apis::DatastoreV1::GqlQueryParameter>]
574
+ attr_accessor :positional_bindings
567
575
 
568
576
  def initialize(**args)
569
577
  update!(**args)
@@ -571,132 +579,97 @@ module Google
571
579
 
572
580
  # Update properties of this object
573
581
  def update!(**args)
574
- @mutation_results = args[:mutation_results] if args.key?(:mutation_results)
575
- @index_updates = args[:index_updates] if args.key?(:index_updates)
582
+ @query_string = args[:query_string] if args.key?(:query_string)
583
+ @allow_literals = args[:allow_literals] if args.key?(:allow_literals)
584
+ @named_bindings = args[:named_bindings] if args.key?(:named_bindings)
585
+ @positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings)
576
586
  end
577
587
  end
578
588
 
579
- # A message that can hold any of the supported value types and associated
580
- # metadata.
581
- class Value
589
+ # A holder for any type of filter.
590
+ class Filter
582
591
  include Google::Apis::Core::Hashable
583
592
 
584
- # A Datastore data object.
585
- # An entity is limited to 1 megabyte when stored. That _roughly_
586
- # corresponds to a limit of 1 megabyte for the serialized form of this
587
- # message.
588
- # Corresponds to the JSON property `entityValue`
589
- # @return [Google::Apis::DatastoreV1::Entity]
590
- attr_accessor :entity_value
593
+ # A filter that merges multiple other filters using the given operator.
594
+ # Corresponds to the JSON property `compositeFilter`
595
+ # @return [Google::Apis::DatastoreV1::CompositeFilter]
596
+ attr_accessor :composite_filter
591
597
 
592
- # An object representing a latitude/longitude pair. This is expressed as a pair
593
- # of doubles representing degrees latitude and degrees longitude. Unless
594
- # specified otherwise, this must conform to the
595
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
596
- # standard</a>. Values must be within normalized ranges.
597
- # Example of normalization code in Python:
598
- # def NormalizeLongitude(longitude):
599
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
600
- # q, r = divmod(longitude, 360.0)
601
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
602
- # return r - 360.0
603
- # return r
604
- # def NormalizeLatLng(latitude, longitude):
605
- # """Wraps decimal degrees latitude and longitude to
606
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
607
- # r = latitude % 360.0
608
- # if r <= 90.0:
609
- # return r, NormalizeLongitude(longitude)
610
- # elif r >= 270.0:
611
- # return r - 360, NormalizeLongitude(longitude)
612
- # else:
613
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
614
- # assert 180.0 == NormalizeLongitude(180.0)
615
- # assert -180.0 == NormalizeLongitude(-180.0)
616
- # assert -179.0 == NormalizeLongitude(181.0)
617
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
618
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
619
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
620
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
621
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
622
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
623
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
624
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
625
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
626
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
627
- # Corresponds to the JSON property `geoPointValue`
628
- # @return [Google::Apis::DatastoreV1::LatLng]
629
- attr_accessor :geo_point_value
598
+ # A filter on a specific property.
599
+ # Corresponds to the JSON property `propertyFilter`
600
+ # @return [Google::Apis::DatastoreV1::PropertyFilter]
601
+ attr_accessor :property_filter
630
602
 
631
- # A unique identifier for an entity.
632
- # If a key's partition ID or any of its path kinds or names are
633
- # reserved/read-only, the key is reserved/read-only.
634
- # A reserved/read-only key is forbidden in certain documented contexts.
635
- # Corresponds to the JSON property `keyValue`
636
- # @return [Google::Apis::DatastoreV1::Key]
637
- attr_accessor :key_value
603
+ def initialize(**args)
604
+ update!(**args)
605
+ end
638
606
 
639
- # An integer value.
640
- # Corresponds to the JSON property `integerValue`
641
- # @return [Fixnum]
642
- attr_accessor :integer_value
607
+ # Update properties of this object
608
+ def update!(**args)
609
+ @composite_filter = args[:composite_filter] if args.key?(:composite_filter)
610
+ @property_filter = args[:property_filter] if args.key?(:property_filter)
611
+ end
612
+ end
643
613
 
644
- # A UTF-8 encoded string value.
645
- # When `exclude_from_indexes` is false (it is indexed) , may have at most 1500
646
- # bytes.
647
- # Otherwise, may be set to at least 1,000,000 bytes.
648
- # Corresponds to the JSON property `stringValue`
614
+ # The request for Datastore.Rollback.
615
+ class RollbackRequest
616
+ include Google::Apis::Core::Hashable
617
+
618
+ # The transaction identifier, returned by a call to
619
+ # Datastore.BeginTransaction.
620
+ # Corresponds to the JSON property `transaction`
621
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
649
622
  # @return [String]
650
- attr_accessor :string_value
623
+ attr_accessor :transaction
651
624
 
652
- # If the value should be excluded from all indexes including those defined
653
- # explicitly.
654
- # Corresponds to the JSON property `excludeFromIndexes`
655
- # @return [Boolean]
656
- attr_accessor :exclude_from_indexes
657
- alias_method :exclude_from_indexes?, :exclude_from_indexes
625
+ def initialize(**args)
626
+ update!(**args)
627
+ end
658
628
 
659
- # A double value.
660
- # Corresponds to the JSON property `doubleValue`
661
- # @return [Float]
662
- attr_accessor :double_value
663
-
664
- # A timestamp value.
665
- # When stored in the Datastore, precise only to microseconds;
666
- # any additional precision is rounded down.
667
- # Corresponds to the JSON property `timestampValue`
668
- # @return [String]
669
- attr_accessor :timestamp_value
629
+ # Update properties of this object
630
+ def update!(**args)
631
+ @transaction = args[:transaction] if args.key?(:transaction)
632
+ end
633
+ end
670
634
 
671
- # A boolean value.
672
- # Corresponds to the JSON property `booleanValue`
673
- # @return [Boolean]
674
- attr_accessor :boolean_value
675
- alias_method :boolean_value?, :boolean_value
635
+ # The request for Datastore.RunQuery.
636
+ class RunQueryRequest
637
+ include Google::Apis::Core::Hashable
676
638
 
677
- # A null value.
678
- # Corresponds to the JSON property `nullValue`
679
- # @return [String]
680
- attr_accessor :null_value
639
+ # The options shared by read requests.
640
+ # Corresponds to the JSON property `readOptions`
641
+ # @return [Google::Apis::DatastoreV1::ReadOptions]
642
+ attr_accessor :read_options
681
643
 
682
- # A blob value.
683
- # May have at most 1,000,000 bytes.
684
- # When `exclude_from_indexes` is false, may have at most 1500 bytes.
685
- # In JSON requests, must be base64-encoded.
686
- # Corresponds to the JSON property `blobValue`
687
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
688
- # @return [String]
689
- attr_accessor :blob_value
644
+ # A query for entities.
645
+ # Corresponds to the JSON property `query`
646
+ # @return [Google::Apis::DatastoreV1::Query]
647
+ attr_accessor :query
690
648
 
691
- # The `meaning` field should only be populated for backwards compatibility.
692
- # Corresponds to the JSON property `meaning`
693
- # @return [Fixnum]
694
- attr_accessor :meaning
649
+ # A partition ID identifies a grouping of entities. The grouping is always
650
+ # by project and namespace, however the namespace ID may be empty.
651
+ # A partition ID contains several dimensions:
652
+ # project ID and namespace ID.
653
+ # Partition dimensions:
654
+ # - May be `""`.
655
+ # - Must be valid UTF-8 bytes.
656
+ # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
657
+ # If the value of any dimension matches regex `__.*__`, the partition is
658
+ # reserved/read-only.
659
+ # A reserved/read-only partition ID is forbidden in certain documented
660
+ # contexts.
661
+ # Foreign partition IDs (in which the project ID does
662
+ # not match the context project ID ) are discouraged.
663
+ # Reads and writes of foreign partition IDs may fail if the project is not in an
664
+ # active state.
665
+ # Corresponds to the JSON property `partitionId`
666
+ # @return [Google::Apis::DatastoreV1::PartitionId]
667
+ attr_accessor :partition_id
695
668
 
696
- # An array value.
697
- # Corresponds to the JSON property `arrayValue`
698
- # @return [Google::Apis::DatastoreV1::ArrayValue]
699
- attr_accessor :array_value
669
+ # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
670
+ # Corresponds to the JSON property `gqlQuery`
671
+ # @return [Google::Apis::DatastoreV1::GqlQuery]
672
+ attr_accessor :gql_query
700
673
 
701
674
  def initialize(**args)
702
675
  update!(**args)
@@ -704,50 +677,27 @@ module Google
704
677
 
705
678
  # Update properties of this object
706
679
  def update!(**args)
707
- @entity_value = args[:entity_value] if args.key?(:entity_value)
708
- @geo_point_value = args[:geo_point_value] if args.key?(:geo_point_value)
709
- @key_value = args[:key_value] if args.key?(:key_value)
710
- @integer_value = args[:integer_value] if args.key?(:integer_value)
711
- @string_value = args[:string_value] if args.key?(:string_value)
712
- @exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes)
713
- @double_value = args[:double_value] if args.key?(:double_value)
714
- @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
715
- @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
716
- @null_value = args[:null_value] if args.key?(:null_value)
717
- @blob_value = args[:blob_value] if args.key?(:blob_value)
718
- @meaning = args[:meaning] if args.key?(:meaning)
719
- @array_value = args[:array_value] if args.key?(:array_value)
680
+ @read_options = args[:read_options] if args.key?(:read_options)
681
+ @query = args[:query] if args.key?(:query)
682
+ @partition_id = args[:partition_id] if args.key?(:partition_id)
683
+ @gql_query = args[:gql_query] if args.key?(:gql_query)
720
684
  end
721
685
  end
722
686
 
723
- # A partition ID identifies a grouping of entities. The grouping is always
724
- # by project and namespace, however the namespace ID may be empty.
725
- # A partition ID contains several dimensions:
726
- # project ID and namespace ID.
727
- # Partition dimensions:
728
- # - May be `""`.
729
- # - Must be valid UTF-8 bytes.
730
- # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
731
- # If the value of any dimension matches regex `__.*__`, the partition is
732
- # reserved/read-only.
733
- # A reserved/read-only partition ID is forbidden in certain documented
734
- # contexts.
735
- # Foreign partition IDs (in which the project ID does
736
- # not match the context project ID ) are discouraged.
737
- # Reads and writes of foreign partition IDs may fail if the project is not in an
738
- # active state.
739
- class PartitionId
687
+ # A filter that merges multiple other filters using the given operator.
688
+ class CompositeFilter
740
689
  include Google::Apis::Core::Hashable
741
690
 
742
- # The ID of the project to which the entities belong.
743
- # Corresponds to the JSON property `projectId`
744
- # @return [String]
745
- attr_accessor :project_id
691
+ # The list of filters to combine.
692
+ # Must contain at least one filter.
693
+ # Corresponds to the JSON property `filters`
694
+ # @return [Array<Google::Apis::DatastoreV1::Filter>]
695
+ attr_accessor :filters
746
696
 
747
- # If not empty, the ID of the namespace to which the entities belong.
748
- # Corresponds to the JSON property `namespaceId`
697
+ # The operator for combining multiple filters.
698
+ # Corresponds to the JSON property `op`
749
699
  # @return [String]
750
- attr_accessor :namespace_id
700
+ attr_accessor :op
751
701
 
752
702
  def initialize(**args)
753
703
  update!(**args)
@@ -755,35 +705,20 @@ module Google
755
705
 
756
706
  # Update properties of this object
757
707
  def update!(**args)
758
- @project_id = args[:project_id] if args.key?(:project_id)
759
- @namespace_id = args[:namespace_id] if args.key?(:namespace_id)
708
+ @filters = args[:filters] if args.key?(:filters)
709
+ @op = args[:op] if args.key?(:op)
760
710
  end
761
711
  end
762
712
 
763
- # A Datastore data object.
764
- # An entity is limited to 1 megabyte when stored. That _roughly_
765
- # corresponds to a limit of 1 megabyte for the serialized form of this
766
- # message.
767
- class Entity
713
+ # The response for Datastore.AllocateIds.
714
+ class AllocateIdsResponse
768
715
  include Google::Apis::Core::Hashable
769
716
 
770
- # A unique identifier for an entity.
771
- # If a key's partition ID or any of its path kinds or names are
772
- # reserved/read-only, the key is reserved/read-only.
773
- # A reserved/read-only key is forbidden in certain documented contexts.
774
- # Corresponds to the JSON property `key`
775
- # @return [Google::Apis::DatastoreV1::Key]
776
- attr_accessor :key
777
-
778
- # The entity's properties.
779
- # The map's keys are property names.
780
- # A property name matching regex `__.*__` is reserved.
781
- # A reserved property name is forbidden in certain documented contexts.
782
- # The name must not contain more than 500 characters.
783
- # The name cannot be `""`.
784
- # Corresponds to the JSON property `properties`
785
- # @return [Hash<String,Google::Apis::DatastoreV1::Value>]
786
- attr_accessor :properties
717
+ # The keys specified in the request (in the same order), each with
718
+ # its key path completed with a newly allocated ID.
719
+ # Corresponds to the JSON property `keys`
720
+ # @return [Array<Google::Apis::DatastoreV1::Key>]
721
+ attr_accessor :keys
787
722
 
788
723
  def initialize(**args)
789
724
  update!(**args)
@@ -791,59 +726,73 @@ module Google
791
726
 
792
727
  # Update properties of this object
793
728
  def update!(**args)
794
- @key = args[:key] if args.key?(:key)
795
- @properties = args[:properties] if args.key?(:properties)
729
+ @keys = args[:keys] if args.key?(:keys)
796
730
  end
797
731
  end
798
732
 
799
- # A batch of results produced by a query.
800
- class QueryResultBatch
733
+ # A query for entities.
734
+ class Query
801
735
  include Google::Apis::Core::Hashable
802
736
 
803
- # The version number of the snapshot this batch was returned from.
804
- # This applies to the range of results from the query's `start_cursor` (or
805
- # the beginning of the query if no cursor was given) to this batch's
806
- # `end_cursor` (not the query's `end_cursor`).
807
- # In a single transaction, subsequent query result batches for the same query
808
- # can have a greater snapshot version number. Each batch's snapshot version
809
- # is valid for all preceding batches.
810
- # The value will be zero for eventually consistent queries.
811
- # Corresponds to the JSON property `snapshotVersion`
812
- # @return [Fixnum]
813
- attr_accessor :snapshot_version
737
+ # The projection to return. Defaults to returning all properties.
738
+ # Corresponds to the JSON property `projection`
739
+ # @return [Array<Google::Apis::DatastoreV1::Projection>]
740
+ attr_accessor :projection
814
741
 
815
- # A cursor that points to the position after the last skipped result.
816
- # Will be set when `skipped_results` != 0.
817
- # Corresponds to the JSON property `skippedCursor`
742
+ # An ending point for the query results. Query cursors are
743
+ # returned in query result batches and
744
+ # [can only be used to limit the same query](https://cloud.google.com/datastore/
745
+ # docs/concepts/queries#cursors_limits_and_offsets).
746
+ # Corresponds to the JSON property `endCursor`
818
747
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
819
748
  # @return [String]
820
- attr_accessor :skipped_cursor
749
+ attr_accessor :end_cursor
821
750
 
822
- # The number of results skipped, typically because of an offset.
823
- # Corresponds to the JSON property `skippedResults`
751
+ # The maximum number of results to return. Applies after all other
752
+ # constraints. Optional.
753
+ # Unspecified is interpreted as no limit.
754
+ # Must be >= 0 if specified.
755
+ # Corresponds to the JSON property `limit`
824
756
  # @return [Fixnum]
825
- attr_accessor :skipped_results
757
+ attr_accessor :limit
826
758
 
827
- # The result type for every entity in `entity_results`.
828
- # Corresponds to the JSON property `entityResultType`
829
- # @return [String]
830
- attr_accessor :entity_result_type
759
+ # A holder for any type of filter.
760
+ # Corresponds to the JSON property `filter`
761
+ # @return [Google::Apis::DatastoreV1::Filter]
762
+ attr_accessor :filter
831
763
 
832
- # The results for this batch.
833
- # Corresponds to the JSON property `entityResults`
834
- # @return [Array<Google::Apis::DatastoreV1::EntityResult>]
835
- attr_accessor :entity_results
764
+ # The number of results to skip. Applies before limit, but after all other
765
+ # constraints. Optional. Must be >= 0 if specified.
766
+ # Corresponds to the JSON property `offset`
767
+ # @return [Fixnum]
768
+ attr_accessor :offset
836
769
 
837
- # A cursor that points to the position after the last result in the batch.
838
- # Corresponds to the JSON property `endCursor`
770
+ # A starting point for the query results. Query cursors are
771
+ # returned in query result batches and
772
+ # [can only be used to continue the same query](https://cloud.google.com/
773
+ # datastore/docs/concepts/queries#cursors_limits_and_offsets).
774
+ # Corresponds to the JSON property `startCursor`
839
775
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
840
776
  # @return [String]
841
- attr_accessor :end_cursor
777
+ attr_accessor :start_cursor
842
778
 
843
- # The state of the query after the current batch.
844
- # Corresponds to the JSON property `moreResults`
845
- # @return [String]
846
- attr_accessor :more_results
779
+ # The kinds to query (if empty, returns entities of all kinds).
780
+ # Currently at most 1 kind may be specified.
781
+ # Corresponds to the JSON property `kind`
782
+ # @return [Array<Google::Apis::DatastoreV1::KindExpression>]
783
+ attr_accessor :kind
784
+
785
+ # The properties to make distinct. The query results will contain the first
786
+ # result for each distinct combination of values for the given properties
787
+ # (if empty, all results are returned).
788
+ # Corresponds to the JSON property `distinctOn`
789
+ # @return [Array<Google::Apis::DatastoreV1::PropertyReference>]
790
+ attr_accessor :distinct_on
791
+
792
+ # The order to apply to the query results (if empty, order is unspecified).
793
+ # Corresponds to the JSON property `order`
794
+ # @return [Array<Google::Apis::DatastoreV1::PropertyOrder>]
795
+ attr_accessor :order
847
796
 
848
797
  def initialize(**args)
849
798
  update!(**args)
@@ -851,69 +800,37 @@ module Google
851
800
 
852
801
  # Update properties of this object
853
802
  def update!(**args)
854
- @snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
855
- @skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
856
- @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
857
- @entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
858
- @entity_results = args[:entity_results] if args.key?(:entity_results)
803
+ @projection = args[:projection] if args.key?(:projection)
859
804
  @end_cursor = args[:end_cursor] if args.key?(:end_cursor)
860
- @more_results = args[:more_results] if args.key?(:more_results)
861
- end
862
- end
863
-
864
- # The request for Datastore.Lookup.
865
- class LookupRequest
866
- include Google::Apis::Core::Hashable
867
-
868
- # The options shared by read requests.
869
- # Corresponds to the JSON property `readOptions`
870
- # @return [Google::Apis::DatastoreV1::ReadOptions]
871
- attr_accessor :read_options
872
-
873
- # Keys of entities to look up.
874
- # Corresponds to the JSON property `keys`
875
- # @return [Array<Google::Apis::DatastoreV1::Key>]
876
- attr_accessor :keys
877
-
878
- def initialize(**args)
879
- update!(**args)
880
- end
881
-
882
- # Update properties of this object
883
- def update!(**args)
884
- @read_options = args[:read_options] if args.key?(:read_options)
885
- @keys = args[:keys] if args.key?(:keys)
805
+ @limit = args[:limit] if args.key?(:limit)
806
+ @filter = args[:filter] if args.key?(:filter)
807
+ @offset = args[:offset] if args.key?(:offset)
808
+ @start_cursor = args[:start_cursor] if args.key?(:start_cursor)
809
+ @kind = args[:kind] if args.key?(:kind)
810
+ @distinct_on = args[:distinct_on] if args.key?(:distinct_on)
811
+ @order = args[:order] if args.key?(:order)
886
812
  end
887
813
  end
888
814
 
889
- # A (kind, ID/name) pair used to construct a key path.
890
- # If either name or ID is set, the element is complete.
891
- # If neither is set, the element is incomplete.
892
- class PathElement
815
+ # A filter on a specific property.
816
+ class PropertyFilter
893
817
  include Google::Apis::Core::Hashable
894
818
 
895
- # The name of the entity.
896
- # A name matching regex `__.*__` is reserved/read-only.
897
- # A name must not be more than 1500 bytes when UTF-8 encoded.
898
- # Cannot be `""`.
899
- # Corresponds to the JSON property `name`
900
- # @return [String]
901
- attr_accessor :name
819
+ # A message that can hold any of the supported value types and associated
820
+ # metadata.
821
+ # Corresponds to the JSON property `value`
822
+ # @return [Google::Apis::DatastoreV1::Value]
823
+ attr_accessor :value
902
824
 
903
- # The kind of the entity.
904
- # A kind matching regex `__.*__` is reserved/read-only.
905
- # A kind must not contain more than 1500 bytes when UTF-8 encoded.
906
- # Cannot be `""`.
907
- # Corresponds to the JSON property `kind`
908
- # @return [String]
909
- attr_accessor :kind
825
+ # A reference to a property relative to the kind expressions.
826
+ # Corresponds to the JSON property `property`
827
+ # @return [Google::Apis::DatastoreV1::PropertyReference]
828
+ attr_accessor :property
910
829
 
911
- # The auto-allocated ID of the entity.
912
- # Never equal to zero. Values less than zero are discouraged and may not
913
- # be supported in the future.
914
- # Corresponds to the JSON property `id`
915
- # @return [Fixnum]
916
- attr_accessor :id
830
+ # The operator to filter by.
831
+ # Corresponds to the JSON property `op`
832
+ # @return [String]
833
+ attr_accessor :op
917
834
 
918
835
  def initialize(**args)
919
836
  update!(**args)
@@ -921,28 +838,41 @@ module Google
921
838
 
922
839
  # Update properties of this object
923
840
  def update!(**args)
924
- @name = args[:name] if args.key?(:name)
925
- @kind = args[:kind] if args.key?(:kind)
926
- @id = args[:id] if args.key?(:id)
841
+ @value = args[:value] if args.key?(:value)
842
+ @property = args[:property] if args.key?(:property)
843
+ @op = args[:op] if args.key?(:op)
927
844
  end
928
845
  end
929
846
 
930
- # A binding parameter for a GQL query.
931
- class GqlQueryParameter
847
+ # The result of fetching an entity from Datastore.
848
+ class EntityResult
932
849
  include Google::Apis::Core::Hashable
933
850
 
934
- # A query cursor. Query cursors are returned in query
935
- # result batches.
851
+ # A cursor that points to the position after the result entity.
852
+ # Set only when the `EntityResult` is part of a `QueryResultBatch` message.
936
853
  # Corresponds to the JSON property `cursor`
937
854
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
938
855
  # @return [String]
939
856
  attr_accessor :cursor
940
857
 
941
- # A message that can hold any of the supported value types and associated
942
- # metadata.
943
- # Corresponds to the JSON property `value`
944
- # @return [Google::Apis::DatastoreV1::Value]
945
- attr_accessor :value
858
+ # The version of the entity, a strictly positive number that monotonically
859
+ # increases with changes to the entity.
860
+ # This field is set for `FULL` entity
861
+ # results.
862
+ # For missing entities in `LookupResponse`, this
863
+ # is the version of the snapshot that was used to look up the entity, and it
864
+ # is always set except for eventually consistent reads.
865
+ # Corresponds to the JSON property `version`
866
+ # @return [Fixnum]
867
+ attr_accessor :version
868
+
869
+ # A Datastore data object.
870
+ # An entity is limited to 1 megabyte when stored. That _roughly_
871
+ # corresponds to a limit of 1 megabyte for the serialized form of this
872
+ # message.
873
+ # Corresponds to the JSON property `entity`
874
+ # @return [Google::Apis::DatastoreV1::Entity]
875
+ attr_accessor :entity
946
876
 
947
877
  def initialize(**args)
948
878
  update!(**args)
@@ -951,19 +881,26 @@ module Google
951
881
  # Update properties of this object
952
882
  def update!(**args)
953
883
  @cursor = args[:cursor] if args.key?(:cursor)
954
- @value = args[:value] if args.key?(:value)
884
+ @version = args[:version] if args.key?(:version)
885
+ @entity = args[:entity] if args.key?(:entity)
955
886
  end
956
887
  end
957
888
 
958
- # The response for Datastore.BeginTransaction.
959
- class BeginTransactionResponse
889
+ # The response for Datastore.Commit.
890
+ class CommitResponse
960
891
  include Google::Apis::Core::Hashable
961
892
 
962
- # The transaction identifier (always present).
963
- # Corresponds to the JSON property `transaction`
964
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
965
- # @return [String]
966
- attr_accessor :transaction
893
+ # The number of index entries updated during the commit, or zero if none were
894
+ # updated.
895
+ # Corresponds to the JSON property `indexUpdates`
896
+ # @return [Fixnum]
897
+ attr_accessor :index_updates
898
+
899
+ # The result of performing the mutations.
900
+ # The i-th mutation result corresponds to the i-th mutation in the request.
901
+ # Corresponds to the JSON property `mutationResults`
902
+ # @return [Array<Google::Apis::DatastoreV1::MutationResult>]
903
+ attr_accessor :mutation_results
967
904
 
968
905
  def initialize(**args)
969
906
  update!(**args)
@@ -971,81 +908,132 @@ module Google
971
908
 
972
909
  # Update properties of this object
973
910
  def update!(**args)
974
- @transaction = args[:transaction] if args.key?(:transaction)
911
+ @index_updates = args[:index_updates] if args.key?(:index_updates)
912
+ @mutation_results = args[:mutation_results] if args.key?(:mutation_results)
975
913
  end
976
914
  end
977
915
 
978
- # The response for Datastore.RunQuery.
979
- class RunQueryResponse
916
+ # A message that can hold any of the supported value types and associated
917
+ # metadata.
918
+ class Value
980
919
  include Google::Apis::Core::Hashable
981
920
 
982
- # A batch of results produced by a query.
983
- # Corresponds to the JSON property `batch`
984
- # @return [Google::Apis::DatastoreV1::QueryResultBatch]
985
- attr_accessor :batch
921
+ # A Datastore data object.
922
+ # An entity is limited to 1 megabyte when stored. That _roughly_
923
+ # corresponds to a limit of 1 megabyte for the serialized form of this
924
+ # message.
925
+ # Corresponds to the JSON property `entityValue`
926
+ # @return [Google::Apis::DatastoreV1::Entity]
927
+ attr_accessor :entity_value
986
928
 
987
- # A query for entities.
988
- # Corresponds to the JSON property `query`
989
- # @return [Google::Apis::DatastoreV1::Query]
990
- attr_accessor :query
929
+ # An object representing a latitude/longitude pair. This is expressed as a pair
930
+ # of doubles representing degrees latitude and degrees longitude. Unless
931
+ # specified otherwise, this must conform to the
932
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
933
+ # standard</a>. Values must be within normalized ranges.
934
+ # Example of normalization code in Python:
935
+ # def NormalizeLongitude(longitude):
936
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
937
+ # q, r = divmod(longitude, 360.0)
938
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
939
+ # return r - 360.0
940
+ # return r
941
+ # def NormalizeLatLng(latitude, longitude):
942
+ # """Wraps decimal degrees latitude and longitude to
943
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
944
+ # r = latitude % 360.0
945
+ # if r <= 90.0:
946
+ # return r, NormalizeLongitude(longitude)
947
+ # elif r >= 270.0:
948
+ # return r - 360, NormalizeLongitude(longitude)
949
+ # else:
950
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
951
+ # assert 180.0 == NormalizeLongitude(180.0)
952
+ # assert -180.0 == NormalizeLongitude(-180.0)
953
+ # assert -179.0 == NormalizeLongitude(181.0)
954
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
955
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
956
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
957
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
958
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
959
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
960
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
961
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
962
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
963
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
964
+ # Corresponds to the JSON property `geoPointValue`
965
+ # @return [Google::Apis::DatastoreV1::LatLng]
966
+ attr_accessor :geo_point_value
991
967
 
992
- def initialize(**args)
993
- update!(**args)
994
- end
968
+ # A unique identifier for an entity.
969
+ # If a key's partition ID or any of its path kinds or names are
970
+ # reserved/read-only, the key is reserved/read-only.
971
+ # A reserved/read-only key is forbidden in certain documented contexts.
972
+ # Corresponds to the JSON property `keyValue`
973
+ # @return [Google::Apis::DatastoreV1::Key]
974
+ attr_accessor :key_value
995
975
 
996
- # Update properties of this object
997
- def update!(**args)
998
- @batch = args[:batch] if args.key?(:batch)
999
- @query = args[:query] if args.key?(:query)
1000
- end
1001
- end
976
+ # An integer value.
977
+ # Corresponds to the JSON property `integerValue`
978
+ # @return [Fixnum]
979
+ attr_accessor :integer_value
1002
980
 
1003
- # The response for Datastore.Lookup.
1004
- class LookupResponse
1005
- include Google::Apis::Core::Hashable
981
+ # A UTF-8 encoded string value.
982
+ # When `exclude_from_indexes` is false (it is indexed) , may have at most 1500
983
+ # bytes.
984
+ # Otherwise, may be set to at least 1,000,000 bytes.
985
+ # Corresponds to the JSON property `stringValue`
986
+ # @return [String]
987
+ attr_accessor :string_value
1006
988
 
1007
- # Entities found as `ResultType.FULL` entities. The order of results in this
1008
- # field is undefined and has no relation to the order of the keys in the
1009
- # input.
1010
- # Corresponds to the JSON property `found`
1011
- # @return [Array<Google::Apis::DatastoreV1::EntityResult>]
1012
- attr_accessor :found
989
+ # If the value should be excluded from all indexes including those defined
990
+ # explicitly.
991
+ # Corresponds to the JSON property `excludeFromIndexes`
992
+ # @return [Boolean]
993
+ attr_accessor :exclude_from_indexes
994
+ alias_method :exclude_from_indexes?, :exclude_from_indexes
1013
995
 
1014
- # Entities not found as `ResultType.KEY_ONLY` entities. The order of results
1015
- # in this field is undefined and has no relation to the order of the keys
1016
- # in the input.
1017
- # Corresponds to the JSON property `missing`
1018
- # @return [Array<Google::Apis::DatastoreV1::EntityResult>]
1019
- attr_accessor :missing
996
+ # A double value.
997
+ # Corresponds to the JSON property `doubleValue`
998
+ # @return [Float]
999
+ attr_accessor :double_value
1020
1000
 
1021
- # A list of keys that were not looked up due to resource constraints. The
1022
- # order of results in this field is undefined and has no relation to the
1023
- # order of the keys in the input.
1024
- # Corresponds to the JSON property `deferred`
1025
- # @return [Array<Google::Apis::DatastoreV1::Key>]
1026
- attr_accessor :deferred
1001
+ # A timestamp value.
1002
+ # When stored in the Datastore, precise only to microseconds;
1003
+ # any additional precision is rounded down.
1004
+ # Corresponds to the JSON property `timestampValue`
1005
+ # @return [String]
1006
+ attr_accessor :timestamp_value
1027
1007
 
1028
- def initialize(**args)
1029
- update!(**args)
1030
- end
1008
+ # A boolean value.
1009
+ # Corresponds to the JSON property `booleanValue`
1010
+ # @return [Boolean]
1011
+ attr_accessor :boolean_value
1012
+ alias_method :boolean_value?, :boolean_value
1031
1013
 
1032
- # Update properties of this object
1033
- def update!(**args)
1034
- @found = args[:found] if args.key?(:found)
1035
- @missing = args[:missing] if args.key?(:missing)
1036
- @deferred = args[:deferred] if args.key?(:deferred)
1037
- end
1038
- end
1014
+ # A null value.
1015
+ # Corresponds to the JSON property `nullValue`
1016
+ # @return [String]
1017
+ attr_accessor :null_value
1039
1018
 
1040
- # The request for Datastore.AllocateIds.
1041
- class AllocateIdsRequest
1042
- include Google::Apis::Core::Hashable
1019
+ # A blob value.
1020
+ # May have at most 1,000,000 bytes.
1021
+ # When `exclude_from_indexes` is false, may have at most 1500 bytes.
1022
+ # In JSON requests, must be base64-encoded.
1023
+ # Corresponds to the JSON property `blobValue`
1024
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1025
+ # @return [String]
1026
+ attr_accessor :blob_value
1043
1027
 
1044
- # A list of keys with incomplete key paths for which to allocate IDs.
1045
- # No key may be reserved/read-only.
1046
- # Corresponds to the JSON property `keys`
1047
- # @return [Array<Google::Apis::DatastoreV1::Key>]
1048
- attr_accessor :keys
1028
+ # The `meaning` field should only be populated for backwards compatibility.
1029
+ # Corresponds to the JSON property `meaning`
1030
+ # @return [Fixnum]
1031
+ attr_accessor :meaning
1032
+
1033
+ # An array value.
1034
+ # Corresponds to the JSON property `arrayValue`
1035
+ # @return [Google::Apis::DatastoreV1::ArrayValue]
1036
+ attr_accessor :array_value
1049
1037
 
1050
1038
  def initialize(**args)
1051
1039
  update!(**args)
@@ -1053,40 +1041,50 @@ module Google
1053
1041
 
1054
1042
  # Update properties of this object
1055
1043
  def update!(**args)
1056
- @keys = args[:keys] if args.key?(:keys)
1044
+ @entity_value = args[:entity_value] if args.key?(:entity_value)
1045
+ @geo_point_value = args[:geo_point_value] if args.key?(:geo_point_value)
1046
+ @key_value = args[:key_value] if args.key?(:key_value)
1047
+ @integer_value = args[:integer_value] if args.key?(:integer_value)
1048
+ @string_value = args[:string_value] if args.key?(:string_value)
1049
+ @exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes)
1050
+ @double_value = args[:double_value] if args.key?(:double_value)
1051
+ @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
1052
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
1053
+ @null_value = args[:null_value] if args.key?(:null_value)
1054
+ @blob_value = args[:blob_value] if args.key?(:blob_value)
1055
+ @meaning = args[:meaning] if args.key?(:meaning)
1056
+ @array_value = args[:array_value] if args.key?(:array_value)
1057
1057
  end
1058
1058
  end
1059
1059
 
1060
- # The request for Datastore.Commit.
1061
- class CommitRequest
1060
+ # A partition ID identifies a grouping of entities. The grouping is always
1061
+ # by project and namespace, however the namespace ID may be empty.
1062
+ # A partition ID contains several dimensions:
1063
+ # project ID and namespace ID.
1064
+ # Partition dimensions:
1065
+ # - May be `""`.
1066
+ # - Must be valid UTF-8 bytes.
1067
+ # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
1068
+ # If the value of any dimension matches regex `__.*__`, the partition is
1069
+ # reserved/read-only.
1070
+ # A reserved/read-only partition ID is forbidden in certain documented
1071
+ # contexts.
1072
+ # Foreign partition IDs (in which the project ID does
1073
+ # not match the context project ID ) are discouraged.
1074
+ # Reads and writes of foreign partition IDs may fail if the project is not in an
1075
+ # active state.
1076
+ class PartitionId
1062
1077
  include Google::Apis::Core::Hashable
1063
1078
 
1064
- # The identifier of the transaction associated with the commit. A
1065
- # transaction identifier is returned by a call to
1066
- # Datastore.BeginTransaction.
1067
- # Corresponds to the JSON property `transaction`
1068
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
1069
- # @return [String]
1070
- attr_accessor :transaction
1071
-
1072
- # The type of commit to perform. Defaults to `TRANSACTIONAL`.
1073
- # Corresponds to the JSON property `mode`
1079
+ # If not empty, the ID of the namespace to which the entities belong.
1080
+ # Corresponds to the JSON property `namespaceId`
1074
1081
  # @return [String]
1075
- attr_accessor :mode
1082
+ attr_accessor :namespace_id
1076
1083
 
1077
- # The mutations to perform.
1078
- # When mode is `TRANSACTIONAL`, mutations affecting a single entity are
1079
- # applied in order. The following sequences of mutations affecting a single
1080
- # entity are not permitted in a single `Commit` request:
1081
- # - `insert` followed by `insert`
1082
- # - `update` followed by `insert`
1083
- # - `upsert` followed by `insert`
1084
- # - `delete` followed by `update`
1085
- # When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
1086
- # entity.
1087
- # Corresponds to the JSON property `mutations`
1088
- # @return [Array<Google::Apis::DatastoreV1::Mutation>]
1089
- attr_accessor :mutations
1084
+ # The ID of the project to which the entities belong.
1085
+ # Corresponds to the JSON property `projectId`
1086
+ # @return [String]
1087
+ attr_accessor :project_id
1090
1088
 
1091
1089
  def initialize(**args)
1092
1090
  update!(**args)
@@ -1094,58 +1092,95 @@ module Google
1094
1092
 
1095
1093
  # Update properties of this object
1096
1094
  def update!(**args)
1097
- @transaction = args[:transaction] if args.key?(:transaction)
1098
- @mode = args[:mode] if args.key?(:mode)
1099
- @mutations = args[:mutations] if args.key?(:mutations)
1095
+ @namespace_id = args[:namespace_id] if args.key?(:namespace_id)
1096
+ @project_id = args[:project_id] if args.key?(:project_id)
1100
1097
  end
1101
1098
  end
1102
1099
 
1103
- # The request for Datastore.BeginTransaction.
1104
- class BeginTransactionRequest
1100
+ # A Datastore data object.
1101
+ # An entity is limited to 1 megabyte when stored. That _roughly_
1102
+ # corresponds to a limit of 1 megabyte for the serialized form of this
1103
+ # message.
1104
+ class Entity
1105
1105
  include Google::Apis::Core::Hashable
1106
1106
 
1107
+ # A unique identifier for an entity.
1108
+ # If a key's partition ID or any of its path kinds or names are
1109
+ # reserved/read-only, the key is reserved/read-only.
1110
+ # A reserved/read-only key is forbidden in certain documented contexts.
1111
+ # Corresponds to the JSON property `key`
1112
+ # @return [Google::Apis::DatastoreV1::Key]
1113
+ attr_accessor :key
1114
+
1115
+ # The entity's properties.
1116
+ # The map's keys are property names.
1117
+ # A property name matching regex `__.*__` is reserved.
1118
+ # A reserved property name is forbidden in certain documented contexts.
1119
+ # The name must not contain more than 500 characters.
1120
+ # The name cannot be `""`.
1121
+ # Corresponds to the JSON property `properties`
1122
+ # @return [Hash<String,Google::Apis::DatastoreV1::Value>]
1123
+ attr_accessor :properties
1124
+
1107
1125
  def initialize(**args)
1108
1126
  update!(**args)
1109
1127
  end
1110
1128
 
1111
1129
  # Update properties of this object
1112
1130
  def update!(**args)
1131
+ @key = args[:key] if args.key?(:key)
1132
+ @properties = args[:properties] if args.key?(:properties)
1113
1133
  end
1114
1134
  end
1115
1135
 
1116
- # The desired order for a specific property.
1117
- class PropertyOrder
1136
+ # A batch of results produced by a query.
1137
+ class QueryResultBatch
1118
1138
  include Google::Apis::Core::Hashable
1119
1139
 
1120
- # A reference to a property relative to the kind expressions.
1121
- # Corresponds to the JSON property `property`
1122
- # @return [Google::Apis::DatastoreV1::PropertyReference]
1123
- attr_accessor :property
1140
+ # The results for this batch.
1141
+ # Corresponds to the JSON property `entityResults`
1142
+ # @return [Array<Google::Apis::DatastoreV1::EntityResult>]
1143
+ attr_accessor :entity_results
1124
1144
 
1125
- # The direction to order by. Defaults to `ASCENDING`.
1126
- # Corresponds to the JSON property `direction`
1145
+ # A cursor that points to the position after the last result in the batch.
1146
+ # Corresponds to the JSON property `endCursor`
1147
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1127
1148
  # @return [String]
1128
- attr_accessor :direction
1149
+ attr_accessor :end_cursor
1129
1150
 
1130
- def initialize(**args)
1131
- update!(**args)
1132
- end
1151
+ # The state of the query after the current batch.
1152
+ # Corresponds to the JSON property `moreResults`
1153
+ # @return [String]
1154
+ attr_accessor :more_results
1133
1155
 
1134
- # Update properties of this object
1135
- def update!(**args)
1136
- @property = args[:property] if args.key?(:property)
1137
- @direction = args[:direction] if args.key?(:direction)
1138
- end
1139
- end
1156
+ # The version number of the snapshot this batch was returned from.
1157
+ # This applies to the range of results from the query's `start_cursor` (or
1158
+ # the beginning of the query if no cursor was given) to this batch's
1159
+ # `end_cursor` (not the query's `end_cursor`).
1160
+ # In a single transaction, subsequent query result batches for the same query
1161
+ # can have a greater snapshot version number. Each batch's snapshot version
1162
+ # is valid for all preceding batches.
1163
+ # The value will be zero for eventually consistent queries.
1164
+ # Corresponds to the JSON property `snapshotVersion`
1165
+ # @return [Fixnum]
1166
+ attr_accessor :snapshot_version
1140
1167
 
1141
- # A representation of a kind.
1142
- class KindExpression
1143
- include Google::Apis::Core::Hashable
1168
+ # A cursor that points to the position after the last skipped result.
1169
+ # Will be set when `skipped_results` != 0.
1170
+ # Corresponds to the JSON property `skippedCursor`
1171
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1172
+ # @return [String]
1173
+ attr_accessor :skipped_cursor
1144
1174
 
1145
- # The name of the kind.
1146
- # Corresponds to the JSON property `name`
1175
+ # The number of results skipped, typically because of an offset.
1176
+ # Corresponds to the JSON property `skippedResults`
1177
+ # @return [Fixnum]
1178
+ attr_accessor :skipped_results
1179
+
1180
+ # The result type for every entity in `entity_results`.
1181
+ # Corresponds to the JSON property `entityResultType`
1147
1182
  # @return [String]
1148
- attr_accessor :name
1183
+ attr_accessor :entity_result_type
1149
1184
 
1150
1185
  def initialize(**args)
1151
1186
  update!(**args)
@@ -1153,57 +1188,29 @@ module Google
1153
1188
 
1154
1189
  # Update properties of this object
1155
1190
  def update!(**args)
1156
- @name = args[:name] if args.key?(:name)
1191
+ @entity_results = args[:entity_results] if args.key?(:entity_results)
1192
+ @end_cursor = args[:end_cursor] if args.key?(:end_cursor)
1193
+ @more_results = args[:more_results] if args.key?(:more_results)
1194
+ @snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
1195
+ @skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
1196
+ @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
1197
+ @entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
1157
1198
  end
1158
1199
  end
1159
1200
 
1160
- # An object representing a latitude/longitude pair. This is expressed as a pair
1161
- # of doubles representing degrees latitude and degrees longitude. Unless
1162
- # specified otherwise, this must conform to the
1163
- # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1164
- # standard</a>. Values must be within normalized ranges.
1165
- # Example of normalization code in Python:
1166
- # def NormalizeLongitude(longitude):
1167
- # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
1168
- # q, r = divmod(longitude, 360.0)
1169
- # if r > 180.0 or (r == 180.0 and q <= -1.0):
1170
- # return r - 360.0
1171
- # return r
1172
- # def NormalizeLatLng(latitude, longitude):
1173
- # """Wraps decimal degrees latitude and longitude to
1174
- # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
1175
- # r = latitude % 360.0
1176
- # if r <= 90.0:
1177
- # return r, NormalizeLongitude(longitude)
1178
- # elif r >= 270.0:
1179
- # return r - 360, NormalizeLongitude(longitude)
1180
- # else:
1181
- # return 180 - r, NormalizeLongitude(longitude + 180.0)
1182
- # assert 180.0 == NormalizeLongitude(180.0)
1183
- # assert -180.0 == NormalizeLongitude(-180.0)
1184
- # assert -179.0 == NormalizeLongitude(181.0)
1185
- # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
1186
- # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
1187
- # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
1188
- # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
1189
- # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
1190
- # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
1191
- # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
1192
- # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
1193
- # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
1194
- # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
1195
- class LatLng
1201
+ # The request for Datastore.Lookup.
1202
+ class LookupRequest
1196
1203
  include Google::Apis::Core::Hashable
1197
1204
 
1198
- # The latitude in degrees. It must be in the range [-90.0, +90.0].
1199
- # Corresponds to the JSON property `latitude`
1200
- # @return [Float]
1201
- attr_accessor :latitude
1205
+ # The options shared by read requests.
1206
+ # Corresponds to the JSON property `readOptions`
1207
+ # @return [Google::Apis::DatastoreV1::ReadOptions]
1208
+ attr_accessor :read_options
1202
1209
 
1203
- # The longitude in degrees. It must be in the range [-180.0, +180.0].
1204
- # Corresponds to the JSON property `longitude`
1205
- # @return [Float]
1206
- attr_accessor :longitude
1210
+ # Keys of entities to look up.
1211
+ # Corresponds to the JSON property `keys`
1212
+ # @return [Array<Google::Apis::DatastoreV1::Key>]
1213
+ attr_accessor :keys
1207
1214
 
1208
1215
  def initialize(**args)
1209
1216
  update!(**args)
@@ -1211,55 +1218,39 @@ module Google
1211
1218
 
1212
1219
  # Update properties of this object
1213
1220
  def update!(**args)
1214
- @latitude = args[:latitude] if args.key?(:latitude)
1215
- @longitude = args[:longitude] if args.key?(:longitude)
1221
+ @read_options = args[:read_options] if args.key?(:read_options)
1222
+ @keys = args[:keys] if args.key?(:keys)
1216
1223
  end
1217
1224
  end
1218
1225
 
1219
- # A unique identifier for an entity.
1220
- # If a key's partition ID or any of its path kinds or names are
1221
- # reserved/read-only, the key is reserved/read-only.
1222
- # A reserved/read-only key is forbidden in certain documented contexts.
1223
- class Key
1226
+ # A (kind, ID/name) pair used to construct a key path.
1227
+ # If either name or ID is set, the element is complete.
1228
+ # If neither is set, the element is incomplete.
1229
+ class PathElement
1224
1230
  include Google::Apis::Core::Hashable
1225
1231
 
1226
- # The entity path.
1227
- # An entity path consists of one or more elements composed of a kind and a
1228
- # string or numerical identifier, which identify entities. The first
1229
- # element identifies a _root entity_, the second element identifies
1230
- # a _child_ of the root entity, the third element identifies a child of the
1231
- # second entity, and so forth. The entities identified by all prefixes of
1232
- # the path are called the element's _ancestors_.
1233
- # An entity path is always fully complete: *all* of the entity's ancestors
1234
- # are required to be in the path along with the entity identifier itself.
1235
- # The only exception is that in some documented cases, the identifier in the
1236
- # last path element (for the entity) itself may be omitted. For example,
1237
- # the last path element of the key of `Mutation.insert` may have no
1238
- # identifier.
1239
- # A path can never be empty, and a path can have at most 100 elements.
1240
- # Corresponds to the JSON property `path`
1241
- # @return [Array<Google::Apis::DatastoreV1::PathElement>]
1242
- attr_accessor :path
1232
+ # The kind of the entity.
1233
+ # A kind matching regex `__.*__` is reserved/read-only.
1234
+ # A kind must not contain more than 1500 bytes when UTF-8 encoded.
1235
+ # Cannot be `""`.
1236
+ # Corresponds to the JSON property `kind`
1237
+ # @return [String]
1238
+ attr_accessor :kind
1243
1239
 
1244
- # A partition ID identifies a grouping of entities. The grouping is always
1245
- # by project and namespace, however the namespace ID may be empty.
1246
- # A partition ID contains several dimensions:
1247
- # project ID and namespace ID.
1248
- # Partition dimensions:
1249
- # - May be `""`.
1250
- # - Must be valid UTF-8 bytes.
1251
- # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
1252
- # If the value of any dimension matches regex `__.*__`, the partition is
1253
- # reserved/read-only.
1254
- # A reserved/read-only partition ID is forbidden in certain documented
1255
- # contexts.
1256
- # Foreign partition IDs (in which the project ID does
1257
- # not match the context project ID ) are discouraged.
1258
- # Reads and writes of foreign partition IDs may fail if the project is not in an
1259
- # active state.
1260
- # Corresponds to the JSON property `partitionId`
1261
- # @return [Google::Apis::DatastoreV1::PartitionId]
1262
- attr_accessor :partition_id
1240
+ # The auto-allocated ID of the entity.
1241
+ # Never equal to zero. Values less than zero are discouraged and may not
1242
+ # be supported in the future.
1243
+ # Corresponds to the JSON property `id`
1244
+ # @return [Fixnum]
1245
+ attr_accessor :id
1246
+
1247
+ # The name of the entity.
1248
+ # A name matching regex `__.*__` is reserved/read-only.
1249
+ # A name must not be more than 1500 bytes when UTF-8 encoded.
1250
+ # Cannot be `""`.
1251
+ # Corresponds to the JSON property `name`
1252
+ # @return [String]
1253
+ attr_accessor :name
1263
1254
 
1264
1255
  def initialize(**args)
1265
1256
  update!(**args)
@@ -1267,20 +1258,28 @@ module Google
1267
1258
 
1268
1259
  # Update properties of this object
1269
1260
  def update!(**args)
1270
- @path = args[:path] if args.key?(:path)
1271
- @partition_id = args[:partition_id] if args.key?(:partition_id)
1261
+ @kind = args[:kind] if args.key?(:kind)
1262
+ @id = args[:id] if args.key?(:id)
1263
+ @name = args[:name] if args.key?(:name)
1272
1264
  end
1273
1265
  end
1274
1266
 
1275
- # A reference to a property relative to the kind expressions.
1276
- class PropertyReference
1267
+ # A binding parameter for a GQL query.
1268
+ class GqlQueryParameter
1277
1269
  include Google::Apis::Core::Hashable
1278
1270
 
1279
- # The name of the property.
1280
- # If name includes "."s, it may be interpreted as a property name path.
1281
- # Corresponds to the JSON property `name`
1271
+ # A query cursor. Query cursors are returned in query
1272
+ # result batches.
1273
+ # Corresponds to the JSON property `cursor`
1274
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1282
1275
  # @return [String]
1283
- attr_accessor :name
1276
+ attr_accessor :cursor
1277
+
1278
+ # A message that can hold any of the supported value types and associated
1279
+ # metadata.
1280
+ # Corresponds to the JSON property `value`
1281
+ # @return [Google::Apis::DatastoreV1::Value]
1282
+ attr_accessor :value
1284
1283
 
1285
1284
  def initialize(**args)
1286
1285
  update!(**args)
@@ -1288,7 +1287,8 @@ module Google
1288
1287
 
1289
1288
  # Update properties of this object
1290
1289
  def update!(**args)
1291
- @name = args[:name] if args.key?(:name)
1290
+ @cursor = args[:cursor] if args.key?(:cursor)
1291
+ @value = args[:value] if args.key?(:value)
1292
1292
  end
1293
1293
  end
1294
1294
  end