google-api-client 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -48,10 +48,11 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Queries for entities.
51
+ # Allocates IDs for the given keys, which is useful for referencing an entity
52
+ # before it is inserted.
52
53
  # @param [String] project_id
53
54
  # The ID of the project against which to make the request.
54
- # @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_request_object
55
+ # @param [Google::Apis::DatastoreV1::AllocateIdsRequest] allocate_ids_request_object
55
56
  # @param [String] fields
56
57
  # Selector specifying which fields to include in a partial response.
57
58
  # @param [String] quota_user
@@ -61,30 +62,30 @@ module Google
61
62
  # Request-specific options
62
63
  #
63
64
  # @yield [result, err] Result & error if block supplied
64
- # @yieldparam result [Google::Apis::DatastoreV1::RunQueryResponse] parsed result object
65
+ # @yieldparam result [Google::Apis::DatastoreV1::AllocateIdsResponse] parsed result object
65
66
  # @yieldparam err [StandardError] error object if request failed
66
67
  #
67
- # @return [Google::Apis::DatastoreV1::RunQueryResponse]
68
+ # @return [Google::Apis::DatastoreV1::AllocateIdsResponse]
68
69
  #
69
70
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70
71
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71
72
  # @raise [Google::Apis::AuthorizationError] Authorization is required
72
- def run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
73
- command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
74
- command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
75
- command.request_object = run_query_request_object
76
- command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
77
- command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
73
+ def allocate_project_ids(project_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1/projects/{projectId}:allocateIds', options)
75
+ command.request_representation = Google::Apis::DatastoreV1::AllocateIdsRequest::Representation
76
+ command.request_object = allocate_ids_request_object
77
+ command.response_representation = Google::Apis::DatastoreV1::AllocateIdsResponse::Representation
78
+ command.response_class = Google::Apis::DatastoreV1::AllocateIdsResponse
78
79
  command.params['projectId'] = project_id unless project_id.nil?
79
80
  command.query['fields'] = fields unless fields.nil?
80
81
  command.query['quotaUser'] = quota_user unless quota_user.nil?
81
82
  execute_or_queue_command(command, &block)
82
83
  end
83
84
 
84
- # Rolls back a transaction.
85
+ # Begins a new transaction.
85
86
  # @param [String] project_id
86
87
  # The ID of the project against which to make the request.
87
- # @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
88
+ # @param [Google::Apis::DatastoreV1::BeginTransactionRequest] begin_transaction_request_object
88
89
  # @param [String] fields
89
90
  # Selector specifying which fields to include in a partial response.
90
91
  # @param [String] quota_user
@@ -94,20 +95,54 @@ module Google
94
95
  # Request-specific options
95
96
  #
96
97
  # @yield [result, err] Result & error if block supplied
97
- # @yieldparam result [Google::Apis::DatastoreV1::RollbackResponse] parsed result object
98
+ # @yieldparam result [Google::Apis::DatastoreV1::BeginTransactionResponse] parsed result object
98
99
  # @yieldparam err [StandardError] error object if request failed
99
100
  #
100
- # @return [Google::Apis::DatastoreV1::RollbackResponse]
101
+ # @return [Google::Apis::DatastoreV1::BeginTransactionResponse]
101
102
  #
102
103
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
103
104
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
104
105
  # @raise [Google::Apis::AuthorizationError] Authorization is required
105
- def rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
106
- command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
107
- command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
108
- command.request_object = rollback_request_object
109
- command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
110
- command.response_class = Google::Apis::DatastoreV1::RollbackResponse
106
+ def begin_project_transaction(project_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
107
+ command = make_simple_command(:post, 'v1/projects/{projectId}:beginTransaction', options)
108
+ command.request_representation = Google::Apis::DatastoreV1::BeginTransactionRequest::Representation
109
+ command.request_object = begin_transaction_request_object
110
+ command.response_representation = Google::Apis::DatastoreV1::BeginTransactionResponse::Representation
111
+ command.response_class = Google::Apis::DatastoreV1::BeginTransactionResponse
112
+ command.params['projectId'] = project_id unless project_id.nil?
113
+ command.query['fields'] = fields unless fields.nil?
114
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
115
+ execute_or_queue_command(command, &block)
116
+ end
117
+
118
+ # Commits a transaction, optionally creating, deleting or modifying some
119
+ # entities.
120
+ # @param [String] project_id
121
+ # The ID of the project against which to make the request.
122
+ # @param [Google::Apis::DatastoreV1::CommitRequest] commit_request_object
123
+ # @param [String] fields
124
+ # Selector specifying which fields to include in a partial response.
125
+ # @param [String] quota_user
126
+ # Available to use for quota purposes for server-side applications. Can be any
127
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
128
+ # @param [Google::Apis::RequestOptions] options
129
+ # Request-specific options
130
+ #
131
+ # @yield [result, err] Result & error if block supplied
132
+ # @yieldparam result [Google::Apis::DatastoreV1::CommitResponse] parsed result object
133
+ # @yieldparam err [StandardError] error object if request failed
134
+ #
135
+ # @return [Google::Apis::DatastoreV1::CommitResponse]
136
+ #
137
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
138
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
139
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
140
+ def commit_project(project_id, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
141
+ command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options)
142
+ command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation
143
+ command.request_object = commit_request_object
144
+ command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation
145
+ command.response_class = Google::Apis::DatastoreV1::CommitResponse
111
146
  command.params['projectId'] = project_id unless project_id.nil?
112
147
  command.query['fields'] = fields unless fields.nil?
113
148
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -147,11 +182,10 @@ module Google
147
182
  execute_or_queue_command(command, &block)
148
183
  end
149
184
 
150
- # Allocates IDs for the given keys, which is useful for referencing an entity
151
- # before it is inserted.
185
+ # Rolls back a transaction.
152
186
  # @param [String] project_id
153
187
  # The ID of the project against which to make the request.
154
- # @param [Google::Apis::DatastoreV1::AllocateIdsRequest] allocate_ids_request_object
188
+ # @param [Google::Apis::DatastoreV1::RollbackRequest] rollback_request_object
155
189
  # @param [String] fields
156
190
  # Selector specifying which fields to include in a partial response.
157
191
  # @param [String] quota_user
@@ -161,30 +195,30 @@ module Google
161
195
  # Request-specific options
162
196
  #
163
197
  # @yield [result, err] Result & error if block supplied
164
- # @yieldparam result [Google::Apis::DatastoreV1::AllocateIdsResponse] parsed result object
198
+ # @yieldparam result [Google::Apis::DatastoreV1::RollbackResponse] parsed result object
165
199
  # @yieldparam err [StandardError] error object if request failed
166
200
  #
167
- # @return [Google::Apis::DatastoreV1::AllocateIdsResponse]
201
+ # @return [Google::Apis::DatastoreV1::RollbackResponse]
168
202
  #
169
203
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
170
204
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
171
205
  # @raise [Google::Apis::AuthorizationError] Authorization is required
172
- def allocate_project_ids(project_id, allocate_ids_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
173
- command = make_simple_command(:post, 'v1/projects/{projectId}:allocateIds', options)
174
- command.request_representation = Google::Apis::DatastoreV1::AllocateIdsRequest::Representation
175
- command.request_object = allocate_ids_request_object
176
- command.response_representation = Google::Apis::DatastoreV1::AllocateIdsResponse::Representation
177
- command.response_class = Google::Apis::DatastoreV1::AllocateIdsResponse
206
+ def rollback_project(project_id, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
207
+ command = make_simple_command(:post, 'v1/projects/{projectId}:rollback', options)
208
+ command.request_representation = Google::Apis::DatastoreV1::RollbackRequest::Representation
209
+ command.request_object = rollback_request_object
210
+ command.response_representation = Google::Apis::DatastoreV1::RollbackResponse::Representation
211
+ command.response_class = Google::Apis::DatastoreV1::RollbackResponse
178
212
  command.params['projectId'] = project_id unless project_id.nil?
179
213
  command.query['fields'] = fields unless fields.nil?
180
214
  command.query['quotaUser'] = quota_user unless quota_user.nil?
181
215
  execute_or_queue_command(command, &block)
182
216
  end
183
217
 
184
- # Begins a new transaction.
218
+ # Queries for entities.
185
219
  # @param [String] project_id
186
220
  # The ID of the project against which to make the request.
187
- # @param [Google::Apis::DatastoreV1::BeginTransactionRequest] begin_transaction_request_object
221
+ # @param [Google::Apis::DatastoreV1::RunQueryRequest] run_query_request_object
188
222
  # @param [String] fields
189
223
  # Selector specifying which fields to include in a partial response.
190
224
  # @param [String] quota_user
@@ -194,31 +228,38 @@ module Google
194
228
  # Request-specific options
195
229
  #
196
230
  # @yield [result, err] Result & error if block supplied
197
- # @yieldparam result [Google::Apis::DatastoreV1::BeginTransactionResponse] parsed result object
231
+ # @yieldparam result [Google::Apis::DatastoreV1::RunQueryResponse] parsed result object
198
232
  # @yieldparam err [StandardError] error object if request failed
199
233
  #
200
- # @return [Google::Apis::DatastoreV1::BeginTransactionResponse]
234
+ # @return [Google::Apis::DatastoreV1::RunQueryResponse]
201
235
  #
202
236
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
237
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
238
  # @raise [Google::Apis::AuthorizationError] Authorization is required
205
- def begin_project_transaction(project_id, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
206
- command = make_simple_command(:post, 'v1/projects/{projectId}:beginTransaction', options)
207
- command.request_representation = Google::Apis::DatastoreV1::BeginTransactionRequest::Representation
208
- command.request_object = begin_transaction_request_object
209
- command.response_representation = Google::Apis::DatastoreV1::BeginTransactionResponse::Representation
210
- command.response_class = Google::Apis::DatastoreV1::BeginTransactionResponse
239
+ def run_project_query(project_id, run_query_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
240
+ command = make_simple_command(:post, 'v1/projects/{projectId}:runQuery', options)
241
+ command.request_representation = Google::Apis::DatastoreV1::RunQueryRequest::Representation
242
+ command.request_object = run_query_request_object
243
+ command.response_representation = Google::Apis::DatastoreV1::RunQueryResponse::Representation
244
+ command.response_class = Google::Apis::DatastoreV1::RunQueryResponse
211
245
  command.params['projectId'] = project_id unless project_id.nil?
212
246
  command.query['fields'] = fields unless fields.nil?
213
247
  command.query['quotaUser'] = quota_user unless quota_user.nil?
214
248
  execute_or_queue_command(command, &block)
215
249
  end
216
250
 
217
- # Commits a transaction, optionally creating, deleting or modifying some
218
- # entities.
219
- # @param [String] project_id
220
- # The ID of the project against which to make the request.
221
- # @param [Google::Apis::DatastoreV1::CommitRequest] commit_request_object
251
+ # Starts asynchronous cancellation on a long-running operation. The server
252
+ # makes a best effort to cancel the operation, but success is not
253
+ # guaranteed. If the server doesn't support this method, it returns
254
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
255
+ # Operations.GetOperation or
256
+ # other methods to check whether the cancellation succeeded or whether the
257
+ # operation completed despite cancellation. On successful cancellation,
258
+ # the operation is not deleted; instead, it becomes an operation with
259
+ # an Operation.error value with a google.rpc.Status.code of 1,
260
+ # corresponding to `Code.CANCELLED`.
261
+ # @param [String] name
262
+ # The name of the operation resource to be cancelled.
222
263
  # @param [String] fields
223
264
  # Selector specifying which fields to include in a partial response.
224
265
  # @param [String] quota_user
@@ -228,21 +269,131 @@ module Google
228
269
  # Request-specific options
229
270
  #
230
271
  # @yield [result, err] Result & error if block supplied
231
- # @yieldparam result [Google::Apis::DatastoreV1::CommitResponse] parsed result object
272
+ # @yieldparam result [Google::Apis::DatastoreV1::Empty] parsed result object
232
273
  # @yieldparam err [StandardError] error object if request failed
233
274
  #
234
- # @return [Google::Apis::DatastoreV1::CommitResponse]
275
+ # @return [Google::Apis::DatastoreV1::Empty]
235
276
  #
236
277
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
237
278
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
238
279
  # @raise [Google::Apis::AuthorizationError] Authorization is required
239
- def commit_project(project_id, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
240
- command = make_simple_command(:post, 'v1/projects/{projectId}:commit', options)
241
- command.request_representation = Google::Apis::DatastoreV1::CommitRequest::Representation
242
- command.request_object = commit_request_object
243
- command.response_representation = Google::Apis::DatastoreV1::CommitResponse::Representation
244
- command.response_class = Google::Apis::DatastoreV1::CommitResponse
245
- command.params['projectId'] = project_id unless project_id.nil?
280
+ def cancel_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
281
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
282
+ command.response_representation = Google::Apis::DatastoreV1::Empty::Representation
283
+ command.response_class = Google::Apis::DatastoreV1::Empty
284
+ command.params['name'] = name unless name.nil?
285
+ command.query['fields'] = fields unless fields.nil?
286
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
287
+ execute_or_queue_command(command, &block)
288
+ end
289
+
290
+ # Deletes a long-running operation. This method indicates that the client is
291
+ # no longer interested in the operation result. It does not cancel the
292
+ # operation. If the server doesn't support this method, it returns
293
+ # `google.rpc.Code.UNIMPLEMENTED`.
294
+ # @param [String] name
295
+ # The name of the operation resource to be deleted.
296
+ # @param [String] fields
297
+ # Selector specifying which fields to include in a partial response.
298
+ # @param [String] quota_user
299
+ # Available to use for quota purposes for server-side applications. Can be any
300
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
301
+ # @param [Google::Apis::RequestOptions] options
302
+ # Request-specific options
303
+ #
304
+ # @yield [result, err] Result & error if block supplied
305
+ # @yieldparam result [Google::Apis::DatastoreV1::Empty] parsed result object
306
+ # @yieldparam err [StandardError] error object if request failed
307
+ #
308
+ # @return [Google::Apis::DatastoreV1::Empty]
309
+ #
310
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
311
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
312
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
313
+ def delete_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
314
+ command = make_simple_command(:delete, 'v1/{+name}', options)
315
+ command.response_representation = Google::Apis::DatastoreV1::Empty::Representation
316
+ command.response_class = Google::Apis::DatastoreV1::Empty
317
+ command.params['name'] = name unless name.nil?
318
+ command.query['fields'] = fields unless fields.nil?
319
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
320
+ execute_or_queue_command(command, &block)
321
+ end
322
+
323
+ # Gets the latest state of a long-running operation. Clients can use this
324
+ # method to poll the operation result at intervals as recommended by the API
325
+ # service.
326
+ # @param [String] name
327
+ # The name of the operation resource.
328
+ # @param [String] fields
329
+ # Selector specifying which fields to include in a partial response.
330
+ # @param [String] quota_user
331
+ # Available to use for quota purposes for server-side applications. Can be any
332
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
333
+ # @param [Google::Apis::RequestOptions] options
334
+ # Request-specific options
335
+ #
336
+ # @yield [result, err] Result & error if block supplied
337
+ # @yieldparam result [Google::Apis::DatastoreV1::GoogleLongrunningOperation] parsed result object
338
+ # @yieldparam err [StandardError] error object if request failed
339
+ #
340
+ # @return [Google::Apis::DatastoreV1::GoogleLongrunningOperation]
341
+ #
342
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
343
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
344
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
345
+ def get_project_operation(name, fields: nil, quota_user: nil, options: nil, &block)
346
+ command = make_simple_command(:get, 'v1/{+name}', options)
347
+ command.response_representation = Google::Apis::DatastoreV1::GoogleLongrunningOperation::Representation
348
+ command.response_class = Google::Apis::DatastoreV1::GoogleLongrunningOperation
349
+ command.params['name'] = name unless name.nil?
350
+ command.query['fields'] = fields unless fields.nil?
351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
352
+ execute_or_queue_command(command, &block)
353
+ end
354
+
355
+ # Lists operations that match the specified filter in the request. If the
356
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
357
+ # NOTE: the `name` binding allows API services to override the binding
358
+ # to use different resource name schemes, such as `users/*/operations`. To
359
+ # override the binding, API services can add a binding such as
360
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
361
+ # For backwards compatibility, the default name includes the operations
362
+ # collection id, however overriding users must ensure the name binding
363
+ # is the parent resource, without the operations collection id.
364
+ # @param [String] name
365
+ # The name of the operation's parent resource.
366
+ # @param [String] filter
367
+ # The standard list filter.
368
+ # @param [Fixnum] page_size
369
+ # The standard list page size.
370
+ # @param [String] page_token
371
+ # The standard list page token.
372
+ # @param [String] fields
373
+ # Selector specifying which fields to include in a partial response.
374
+ # @param [String] quota_user
375
+ # Available to use for quota purposes for server-side applications. Can be any
376
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
377
+ # @param [Google::Apis::RequestOptions] options
378
+ # Request-specific options
379
+ #
380
+ # @yield [result, err] Result & error if block supplied
381
+ # @yieldparam result [Google::Apis::DatastoreV1::GoogleLongrunningListOperationsResponse] parsed result object
382
+ # @yieldparam err [StandardError] error object if request failed
383
+ #
384
+ # @return [Google::Apis::DatastoreV1::GoogleLongrunningListOperationsResponse]
385
+ #
386
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
387
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
388
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
389
+ def list_project_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
390
+ command = make_simple_command(:get, 'v1/{+name}/operations', options)
391
+ command.response_representation = Google::Apis::DatastoreV1::GoogleLongrunningListOperationsResponse::Representation
392
+ command.response_class = Google::Apis::DatastoreV1::GoogleLongrunningListOperationsResponse
393
+ command.params['name'] = name unless name.nil?
394
+ command.query['filter'] = filter unless filter.nil?
395
+ command.query['pageSize'] = page_size unless page_size.nil?
396
+ command.query['pageToken'] = page_token unless page_token.nil?
246
397
  command.query['fields'] = fields unless fields.nil?
247
398
  command.query['quotaUser'] = quota_user unless quota_user.nil?
248
399
  execute_or_queue_command(command, &block)
@@ -0,0 +1,38 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/datastore_v1beta3/service.rb'
16
+ require 'google/apis/datastore_v1beta3/classes.rb'
17
+ require 'google/apis/datastore_v1beta3/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud Datastore API
22
+ #
23
+ # Accesses the schemaless NoSQL database to provide fully managed, robust,
24
+ # scalable storage for your application.
25
+ #
26
+ # @see https://cloud.google.com/datastore/
27
+ module DatastoreV1beta3
28
+ VERSION = 'V1beta3'
29
+ REVISION = '20170811'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+
34
+ # View and manage your Google Cloud Datastore data
35
+ AUTH_DATASTORE = 'https://www.googleapis.com/auth/datastore'
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,1621 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DatastoreV1beta3
24
+
25
+ # The request for Datastore.AllocateIds.
26
+ class AllocateIdsRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # A list of keys with incomplete key paths for which to allocate IDs.
30
+ # No key may be reserved/read-only.
31
+ # Corresponds to the JSON property `keys`
32
+ # @return [Array<Google::Apis::DatastoreV1beta3::Key>]
33
+ attr_accessor :keys
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ @keys = args[:keys] if args.key?(:keys)
42
+ end
43
+ end
44
+
45
+ # The response for Datastore.AllocateIds.
46
+ class AllocateIdsResponse
47
+ include Google::Apis::Core::Hashable
48
+
49
+ # The keys specified in the request (in the same order), each with
50
+ # its key path completed with a newly allocated ID.
51
+ # Corresponds to the JSON property `keys`
52
+ # @return [Array<Google::Apis::DatastoreV1beta3::Key>]
53
+ attr_accessor :keys
54
+
55
+ def initialize(**args)
56
+ update!(**args)
57
+ end
58
+
59
+ # Update properties of this object
60
+ def update!(**args)
61
+ @keys = args[:keys] if args.key?(:keys)
62
+ end
63
+ end
64
+
65
+ # An array value.
66
+ class ArrayValue
67
+ include Google::Apis::Core::Hashable
68
+
69
+ # Values in the array.
70
+ # The order of this array may not be preserved if it contains a mix of
71
+ # indexed and unindexed values.
72
+ # Corresponds to the JSON property `values`
73
+ # @return [Array<Google::Apis::DatastoreV1beta3::Value>]
74
+ attr_accessor :values
75
+
76
+ def initialize(**args)
77
+ update!(**args)
78
+ end
79
+
80
+ # Update properties of this object
81
+ def update!(**args)
82
+ @values = args[:values] if args.key?(:values)
83
+ end
84
+ end
85
+
86
+ # The request for Datastore.BeginTransaction.
87
+ class BeginTransactionRequest
88
+ include Google::Apis::Core::Hashable
89
+
90
+ # Options for beginning a new transaction.
91
+ # Transactions can be created explicitly with calls to
92
+ # Datastore.BeginTransaction or implicitly by setting
93
+ # ReadOptions.new_transaction in read requests.
94
+ # Corresponds to the JSON property `transactionOptions`
95
+ # @return [Google::Apis::DatastoreV1beta3::TransactionOptions]
96
+ attr_accessor :transaction_options
97
+
98
+ def initialize(**args)
99
+ update!(**args)
100
+ end
101
+
102
+ # Update properties of this object
103
+ def update!(**args)
104
+ @transaction_options = args[:transaction_options] if args.key?(:transaction_options)
105
+ end
106
+ end
107
+
108
+ # The response for Datastore.BeginTransaction.
109
+ class BeginTransactionResponse
110
+ include Google::Apis::Core::Hashable
111
+
112
+ # The transaction identifier (always present).
113
+ # Corresponds to the JSON property `transaction`
114
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
115
+ # @return [String]
116
+ attr_accessor :transaction
117
+
118
+ def initialize(**args)
119
+ update!(**args)
120
+ end
121
+
122
+ # Update properties of this object
123
+ def update!(**args)
124
+ @transaction = args[:transaction] if args.key?(:transaction)
125
+ end
126
+ end
127
+
128
+ # The request for Datastore.Commit.
129
+ class CommitRequest
130
+ include Google::Apis::Core::Hashable
131
+
132
+ # The type of commit to perform. Defaults to `TRANSACTIONAL`.
133
+ # Corresponds to the JSON property `mode`
134
+ # @return [String]
135
+ attr_accessor :mode
136
+
137
+ # The mutations to perform.
138
+ # When mode is `TRANSACTIONAL`, mutations affecting a single entity are
139
+ # applied in order. The following sequences of mutations affecting a single
140
+ # entity are not permitted in a single `Commit` request:
141
+ # - `insert` followed by `insert`
142
+ # - `update` followed by `insert`
143
+ # - `upsert` followed by `insert`
144
+ # - `delete` followed by `update`
145
+ # When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single
146
+ # entity.
147
+ # Corresponds to the JSON property `mutations`
148
+ # @return [Array<Google::Apis::DatastoreV1beta3::Mutation>]
149
+ attr_accessor :mutations
150
+
151
+ # The identifier of the transaction associated with the commit. A
152
+ # transaction identifier is returned by a call to
153
+ # Datastore.BeginTransaction.
154
+ # Corresponds to the JSON property `transaction`
155
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
156
+ # @return [String]
157
+ attr_accessor :transaction
158
+
159
+ def initialize(**args)
160
+ update!(**args)
161
+ end
162
+
163
+ # Update properties of this object
164
+ def update!(**args)
165
+ @mode = args[:mode] if args.key?(:mode)
166
+ @mutations = args[:mutations] if args.key?(:mutations)
167
+ @transaction = args[:transaction] if args.key?(:transaction)
168
+ end
169
+ end
170
+
171
+ # The response for Datastore.Commit.
172
+ class CommitResponse
173
+ include Google::Apis::Core::Hashable
174
+
175
+ # The number of index entries updated during the commit, or zero if none were
176
+ # updated.
177
+ # Corresponds to the JSON property `indexUpdates`
178
+ # @return [Fixnum]
179
+ attr_accessor :index_updates
180
+
181
+ # The result of performing the mutations.
182
+ # The i-th mutation result corresponds to the i-th mutation in the request.
183
+ # Corresponds to the JSON property `mutationResults`
184
+ # @return [Array<Google::Apis::DatastoreV1beta3::MutationResult>]
185
+ attr_accessor :mutation_results
186
+
187
+ def initialize(**args)
188
+ update!(**args)
189
+ end
190
+
191
+ # Update properties of this object
192
+ def update!(**args)
193
+ @index_updates = args[:index_updates] if args.key?(:index_updates)
194
+ @mutation_results = args[:mutation_results] if args.key?(:mutation_results)
195
+ end
196
+ end
197
+
198
+ # A filter that merges multiple other filters using the given operator.
199
+ class CompositeFilter
200
+ include Google::Apis::Core::Hashable
201
+
202
+ # The list of filters to combine.
203
+ # Must contain at least one filter.
204
+ # Corresponds to the JSON property `filters`
205
+ # @return [Array<Google::Apis::DatastoreV1beta3::Filter>]
206
+ attr_accessor :filters
207
+
208
+ # The operator for combining multiple filters.
209
+ # Corresponds to the JSON property `op`
210
+ # @return [String]
211
+ attr_accessor :op
212
+
213
+ def initialize(**args)
214
+ update!(**args)
215
+ end
216
+
217
+ # Update properties of this object
218
+ def update!(**args)
219
+ @filters = args[:filters] if args.key?(:filters)
220
+ @op = args[:op] if args.key?(:op)
221
+ end
222
+ end
223
+
224
+ # A Datastore data object.
225
+ # An entity is limited to 1 megabyte when stored. That _roughly_
226
+ # corresponds to a limit of 1 megabyte for the serialized form of this
227
+ # message.
228
+ class Entity
229
+ include Google::Apis::Core::Hashable
230
+
231
+ # A unique identifier for an entity.
232
+ # If a key's partition ID or any of its path kinds or names are
233
+ # reserved/read-only, the key is reserved/read-only.
234
+ # A reserved/read-only key is forbidden in certain documented contexts.
235
+ # Corresponds to the JSON property `key`
236
+ # @return [Google::Apis::DatastoreV1beta3::Key]
237
+ attr_accessor :key
238
+
239
+ # The entity's properties.
240
+ # The map's keys are property names.
241
+ # A property name matching regex `__.*__` is reserved.
242
+ # A reserved property name is forbidden in certain documented contexts.
243
+ # The name must not contain more than 500 characters.
244
+ # The name cannot be `""`.
245
+ # Corresponds to the JSON property `properties`
246
+ # @return [Hash<String,Google::Apis::DatastoreV1beta3::Value>]
247
+ attr_accessor :properties
248
+
249
+ def initialize(**args)
250
+ update!(**args)
251
+ end
252
+
253
+ # Update properties of this object
254
+ def update!(**args)
255
+ @key = args[:key] if args.key?(:key)
256
+ @properties = args[:properties] if args.key?(:properties)
257
+ end
258
+ end
259
+
260
+ # The result of fetching an entity from Datastore.
261
+ class EntityResult
262
+ include Google::Apis::Core::Hashable
263
+
264
+ # A cursor that points to the position after the result entity.
265
+ # Set only when the `EntityResult` is part of a `QueryResultBatch` message.
266
+ # Corresponds to the JSON property `cursor`
267
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
268
+ # @return [String]
269
+ attr_accessor :cursor
270
+
271
+ # A Datastore data object.
272
+ # An entity is limited to 1 megabyte when stored. That _roughly_
273
+ # corresponds to a limit of 1 megabyte for the serialized form of this
274
+ # message.
275
+ # Corresponds to the JSON property `entity`
276
+ # @return [Google::Apis::DatastoreV1beta3::Entity]
277
+ attr_accessor :entity
278
+
279
+ # The version of the entity, a strictly positive number that monotonically
280
+ # increases with changes to the entity.
281
+ # This field is set for `FULL` entity
282
+ # results.
283
+ # For missing entities in `LookupResponse`, this
284
+ # is the version of the snapshot that was used to look up the entity, and it
285
+ # is always set except for eventually consistent reads.
286
+ # Corresponds to the JSON property `version`
287
+ # @return [Fixnum]
288
+ attr_accessor :version
289
+
290
+ def initialize(**args)
291
+ update!(**args)
292
+ end
293
+
294
+ # Update properties of this object
295
+ def update!(**args)
296
+ @cursor = args[:cursor] if args.key?(:cursor)
297
+ @entity = args[:entity] if args.key?(:entity)
298
+ @version = args[:version] if args.key?(:version)
299
+ end
300
+ end
301
+
302
+ # A holder for any type of filter.
303
+ class Filter
304
+ include Google::Apis::Core::Hashable
305
+
306
+ # A filter that merges multiple other filters using the given operator.
307
+ # Corresponds to the JSON property `compositeFilter`
308
+ # @return [Google::Apis::DatastoreV1beta3::CompositeFilter]
309
+ attr_accessor :composite_filter
310
+
311
+ # A filter on a specific property.
312
+ # Corresponds to the JSON property `propertyFilter`
313
+ # @return [Google::Apis::DatastoreV1beta3::PropertyFilter]
314
+ attr_accessor :property_filter
315
+
316
+ def initialize(**args)
317
+ update!(**args)
318
+ end
319
+
320
+ # Update properties of this object
321
+ def update!(**args)
322
+ @composite_filter = args[:composite_filter] if args.key?(:composite_filter)
323
+ @property_filter = args[:property_filter] if args.key?(:property_filter)
324
+ end
325
+ end
326
+
327
+ # Metadata common to all Datastore Admin operations.
328
+ class GoogleDatastoreAdminV1beta1CommonMetadata
329
+ include Google::Apis::Core::Hashable
330
+
331
+ # The time the operation ended, either successfully or otherwise.
332
+ # Corresponds to the JSON property `endTime`
333
+ # @return [String]
334
+ attr_accessor :end_time
335
+
336
+ # The client-assigned labels which were provided when the operation was
337
+ # created. May also include additional labels.
338
+ # Corresponds to the JSON property `labels`
339
+ # @return [Hash<String,String>]
340
+ attr_accessor :labels
341
+
342
+ # The type of the operation. Can be used as a filter in
343
+ # ListOperationsRequest.
344
+ # Corresponds to the JSON property `operationType`
345
+ # @return [String]
346
+ attr_accessor :operation_type
347
+
348
+ # The time that work began on the operation.
349
+ # Corresponds to the JSON property `startTime`
350
+ # @return [String]
351
+ attr_accessor :start_time
352
+
353
+ # The current state of the Operation.
354
+ # Corresponds to the JSON property `state`
355
+ # @return [String]
356
+ attr_accessor :state
357
+
358
+ def initialize(**args)
359
+ update!(**args)
360
+ end
361
+
362
+ # Update properties of this object
363
+ def update!(**args)
364
+ @end_time = args[:end_time] if args.key?(:end_time)
365
+ @labels = args[:labels] if args.key?(:labels)
366
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
367
+ @start_time = args[:start_time] if args.key?(:start_time)
368
+ @state = args[:state] if args.key?(:state)
369
+ end
370
+ end
371
+
372
+ # Identifies a subset of entities in a project. This is specified as
373
+ # combinations of kind + namespace (either or both of which may be all, as
374
+ # described in the following examples).
375
+ # Example usage:
376
+ # Entire project:
377
+ # kinds=[], namespace_ids=[]
378
+ # Kinds Foo and Bar in all namespaces:
379
+ # kinds=['Foo', 'Bar'], namespace_ids=[]
380
+ # Kinds Foo and Bar only in the default namespace:
381
+ # kinds=['Foo', 'Bar'], namespace_ids=['']
382
+ # Kinds Foo and Bar in both the default and Baz namespaces:
383
+ # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
384
+ # The entire Baz namespace:
385
+ # kinds=[], namespace_ids=['Baz']
386
+ class GoogleDatastoreAdminV1beta1EntityFilter
387
+ include Google::Apis::Core::Hashable
388
+
389
+ # If empty, then this represents all kinds.
390
+ # Corresponds to the JSON property `kinds`
391
+ # @return [Array<String>]
392
+ attr_accessor :kinds
393
+
394
+ # An empty list represents all namespaces. This is the preferred
395
+ # usage for projects that don't use namespaces.
396
+ # An empty string element represents the default namespace. This should be
397
+ # used if the project has data in non-default namespaces, but doesn't want to
398
+ # include them.
399
+ # Each namespace in this list must be unique.
400
+ # Corresponds to the JSON property `namespaceIds`
401
+ # @return [Array<String>]
402
+ attr_accessor :namespace_ids
403
+
404
+ def initialize(**args)
405
+ update!(**args)
406
+ end
407
+
408
+ # Update properties of this object
409
+ def update!(**args)
410
+ @kinds = args[:kinds] if args.key?(:kinds)
411
+ @namespace_ids = args[:namespace_ids] if args.key?(:namespace_ids)
412
+ end
413
+ end
414
+
415
+ # Metadata for ExportEntities operations.
416
+ class GoogleDatastoreAdminV1beta1ExportEntitiesMetadata
417
+ include Google::Apis::Core::Hashable
418
+
419
+ # Metadata common to all Datastore Admin operations.
420
+ # Corresponds to the JSON property `common`
421
+ # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1beta1CommonMetadata]
422
+ attr_accessor :common
423
+
424
+ # Identifies a subset of entities in a project. This is specified as
425
+ # combinations of kind + namespace (either or both of which may be all, as
426
+ # described in the following examples).
427
+ # Example usage:
428
+ # Entire project:
429
+ # kinds=[], namespace_ids=[]
430
+ # Kinds Foo and Bar in all namespaces:
431
+ # kinds=['Foo', 'Bar'], namespace_ids=[]
432
+ # Kinds Foo and Bar only in the default namespace:
433
+ # kinds=['Foo', 'Bar'], namespace_ids=['']
434
+ # Kinds Foo and Bar in both the default and Baz namespaces:
435
+ # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
436
+ # The entire Baz namespace:
437
+ # kinds=[], namespace_ids=['Baz']
438
+ # Corresponds to the JSON property `entityFilter`
439
+ # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1beta1EntityFilter]
440
+ attr_accessor :entity_filter
441
+
442
+ # Location for the export metadata and data files. This will be the same
443
+ # value as the
444
+ # google.datastore.admin.v1beta1.ExportEntitiesRequest.output_url_prefix
445
+ # field. The final output location is provided in
446
+ # google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url.
447
+ # Corresponds to the JSON property `outputUrlPrefix`
448
+ # @return [String]
449
+ attr_accessor :output_url_prefix
450
+
451
+ # Measures the progress of a particular metric.
452
+ # Corresponds to the JSON property `progressBytes`
453
+ # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1beta1Progress]
454
+ attr_accessor :progress_bytes
455
+
456
+ # Measures the progress of a particular metric.
457
+ # Corresponds to the JSON property `progressEntities`
458
+ # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1beta1Progress]
459
+ attr_accessor :progress_entities
460
+
461
+ def initialize(**args)
462
+ update!(**args)
463
+ end
464
+
465
+ # Update properties of this object
466
+ def update!(**args)
467
+ @common = args[:common] if args.key?(:common)
468
+ @entity_filter = args[:entity_filter] if args.key?(:entity_filter)
469
+ @output_url_prefix = args[:output_url_prefix] if args.key?(:output_url_prefix)
470
+ @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
471
+ @progress_entities = args[:progress_entities] if args.key?(:progress_entities)
472
+ end
473
+ end
474
+
475
+ # The response for
476
+ # google.datastore.admin.v1beta1.DatastoreAdmin.ExportEntities.
477
+ class GoogleDatastoreAdminV1beta1ExportEntitiesResponse
478
+ include Google::Apis::Core::Hashable
479
+
480
+ # Location of the output metadata file. This can be used to begin an import
481
+ # into Cloud Datastore (this project or another project). See
482
+ # google.datastore.admin.v1beta1.ImportEntitiesRequest.input_url.
483
+ # Only present if the operation completed successfully.
484
+ # Corresponds to the JSON property `outputUrl`
485
+ # @return [String]
486
+ attr_accessor :output_url
487
+
488
+ def initialize(**args)
489
+ update!(**args)
490
+ end
491
+
492
+ # Update properties of this object
493
+ def update!(**args)
494
+ @output_url = args[:output_url] if args.key?(:output_url)
495
+ end
496
+ end
497
+
498
+ # Metadata for ImportEntities operations.
499
+ class GoogleDatastoreAdminV1beta1ImportEntitiesMetadata
500
+ include Google::Apis::Core::Hashable
501
+
502
+ # Metadata common to all Datastore Admin operations.
503
+ # Corresponds to the JSON property `common`
504
+ # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1beta1CommonMetadata]
505
+ attr_accessor :common
506
+
507
+ # Identifies a subset of entities in a project. This is specified as
508
+ # combinations of kind + namespace (either or both of which may be all, as
509
+ # described in the following examples).
510
+ # Example usage:
511
+ # Entire project:
512
+ # kinds=[], namespace_ids=[]
513
+ # Kinds Foo and Bar in all namespaces:
514
+ # kinds=['Foo', 'Bar'], namespace_ids=[]
515
+ # Kinds Foo and Bar only in the default namespace:
516
+ # kinds=['Foo', 'Bar'], namespace_ids=['']
517
+ # Kinds Foo and Bar in both the default and Baz namespaces:
518
+ # kinds=['Foo', 'Bar'], namespace_ids=['', 'Baz']
519
+ # The entire Baz namespace:
520
+ # kinds=[], namespace_ids=['Baz']
521
+ # Corresponds to the JSON property `entityFilter`
522
+ # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1beta1EntityFilter]
523
+ attr_accessor :entity_filter
524
+
525
+ # The location of the import metadata file. This will be the same value as
526
+ # the google.datastore.admin.v1beta1.ExportEntitiesResponse.output_url
527
+ # field.
528
+ # Corresponds to the JSON property `inputUrl`
529
+ # @return [String]
530
+ attr_accessor :input_url
531
+
532
+ # Measures the progress of a particular metric.
533
+ # Corresponds to the JSON property `progressBytes`
534
+ # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1beta1Progress]
535
+ attr_accessor :progress_bytes
536
+
537
+ # Measures the progress of a particular metric.
538
+ # Corresponds to the JSON property `progressEntities`
539
+ # @return [Google::Apis::DatastoreV1beta3::GoogleDatastoreAdminV1beta1Progress]
540
+ attr_accessor :progress_entities
541
+
542
+ def initialize(**args)
543
+ update!(**args)
544
+ end
545
+
546
+ # Update properties of this object
547
+ def update!(**args)
548
+ @common = args[:common] if args.key?(:common)
549
+ @entity_filter = args[:entity_filter] if args.key?(:entity_filter)
550
+ @input_url = args[:input_url] if args.key?(:input_url)
551
+ @progress_bytes = args[:progress_bytes] if args.key?(:progress_bytes)
552
+ @progress_entities = args[:progress_entities] if args.key?(:progress_entities)
553
+ end
554
+ end
555
+
556
+ # Measures the progress of a particular metric.
557
+ class GoogleDatastoreAdminV1beta1Progress
558
+ include Google::Apis::Core::Hashable
559
+
560
+ # Note that this may be greater than work_estimated.
561
+ # Corresponds to the JSON property `workCompleted`
562
+ # @return [Fixnum]
563
+ attr_accessor :work_completed
564
+
565
+ # An estimate of how much work needs to be performed. May be zero if the
566
+ # work estimate is unavailable.
567
+ # Corresponds to the JSON property `workEstimated`
568
+ # @return [Fixnum]
569
+ attr_accessor :work_estimated
570
+
571
+ def initialize(**args)
572
+ update!(**args)
573
+ end
574
+
575
+ # Update properties of this object
576
+ def update!(**args)
577
+ @work_completed = args[:work_completed] if args.key?(:work_completed)
578
+ @work_estimated = args[:work_estimated] if args.key?(:work_estimated)
579
+ end
580
+ end
581
+
582
+ # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
583
+ class GqlQuery
584
+ include Google::Apis::Core::Hashable
585
+
586
+ # When false, the query string must not contain any literals and instead must
587
+ # bind all values. For example,
588
+ # `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while
589
+ # `SELECT * FROM Kind WHERE a = @value` is.
590
+ # Corresponds to the JSON property `allowLiterals`
591
+ # @return [Boolean]
592
+ attr_accessor :allow_literals
593
+ alias_method :allow_literals?, :allow_literals
594
+
595
+ # For each non-reserved named binding site in the query string, there must be
596
+ # a named parameter with that name, but not necessarily the inverse.
597
+ # Key must match regex `A-Za-z_$*`, must not match regex
598
+ # `__.*__`, and must not be `""`.
599
+ # Corresponds to the JSON property `namedBindings`
600
+ # @return [Hash<String,Google::Apis::DatastoreV1beta3::GqlQueryParameter>]
601
+ attr_accessor :named_bindings
602
+
603
+ # Numbered binding site @1 references the first numbered parameter,
604
+ # effectively using 1-based indexing, rather than the usual 0.
605
+ # For each binding site numbered i in `query_string`, there must be an i-th
606
+ # numbered parameter. The inverse must also be true.
607
+ # Corresponds to the JSON property `positionalBindings`
608
+ # @return [Array<Google::Apis::DatastoreV1beta3::GqlQueryParameter>]
609
+ attr_accessor :positional_bindings
610
+
611
+ # A string of the format described
612
+ # [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
613
+ # Corresponds to the JSON property `queryString`
614
+ # @return [String]
615
+ attr_accessor :query_string
616
+
617
+ def initialize(**args)
618
+ update!(**args)
619
+ end
620
+
621
+ # Update properties of this object
622
+ def update!(**args)
623
+ @allow_literals = args[:allow_literals] if args.key?(:allow_literals)
624
+ @named_bindings = args[:named_bindings] if args.key?(:named_bindings)
625
+ @positional_bindings = args[:positional_bindings] if args.key?(:positional_bindings)
626
+ @query_string = args[:query_string] if args.key?(:query_string)
627
+ end
628
+ end
629
+
630
+ # A binding parameter for a GQL query.
631
+ class GqlQueryParameter
632
+ include Google::Apis::Core::Hashable
633
+
634
+ # A query cursor. Query cursors are returned in query
635
+ # result batches.
636
+ # Corresponds to the JSON property `cursor`
637
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
638
+ # @return [String]
639
+ attr_accessor :cursor
640
+
641
+ # A message that can hold any of the supported value types and associated
642
+ # metadata.
643
+ # Corresponds to the JSON property `value`
644
+ # @return [Google::Apis::DatastoreV1beta3::Value]
645
+ attr_accessor :value
646
+
647
+ def initialize(**args)
648
+ update!(**args)
649
+ end
650
+
651
+ # Update properties of this object
652
+ def update!(**args)
653
+ @cursor = args[:cursor] if args.key?(:cursor)
654
+ @value = args[:value] if args.key?(:value)
655
+ end
656
+ end
657
+
658
+ # A unique identifier for an entity.
659
+ # If a key's partition ID or any of its path kinds or names are
660
+ # reserved/read-only, the key is reserved/read-only.
661
+ # A reserved/read-only key is forbidden in certain documented contexts.
662
+ class Key
663
+ include Google::Apis::Core::Hashable
664
+
665
+ # A partition ID identifies a grouping of entities. The grouping is always
666
+ # by project and namespace, however the namespace ID may be empty.
667
+ # A partition ID contains several dimensions:
668
+ # project ID and namespace ID.
669
+ # Partition dimensions:
670
+ # - May be `""`.
671
+ # - Must be valid UTF-8 bytes.
672
+ # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
673
+ # If the value of any dimension matches regex `__.*__`, the partition is
674
+ # reserved/read-only.
675
+ # A reserved/read-only partition ID is forbidden in certain documented
676
+ # contexts.
677
+ # Foreign partition IDs (in which the project ID does
678
+ # not match the context project ID ) are discouraged.
679
+ # Reads and writes of foreign partition IDs may fail if the project is not in an
680
+ # active state.
681
+ # Corresponds to the JSON property `partitionId`
682
+ # @return [Google::Apis::DatastoreV1beta3::PartitionId]
683
+ attr_accessor :partition_id
684
+
685
+ # The entity path.
686
+ # An entity path consists of one or more elements composed of a kind and a
687
+ # string or numerical identifier, which identify entities. The first
688
+ # element identifies a _root entity_, the second element identifies
689
+ # a _child_ of the root entity, the third element identifies a child of the
690
+ # second entity, and so forth. The entities identified by all prefixes of
691
+ # the path are called the element's _ancestors_.
692
+ # An entity path is always fully complete: *all* of the entity's ancestors
693
+ # are required to be in the path along with the entity identifier itself.
694
+ # The only exception is that in some documented cases, the identifier in the
695
+ # last path element (for the entity) itself may be omitted. For example,
696
+ # the last path element of the key of `Mutation.insert` may have no
697
+ # identifier.
698
+ # A path can never be empty, and a path can have at most 100 elements.
699
+ # Corresponds to the JSON property `path`
700
+ # @return [Array<Google::Apis::DatastoreV1beta3::PathElement>]
701
+ attr_accessor :path
702
+
703
+ def initialize(**args)
704
+ update!(**args)
705
+ end
706
+
707
+ # Update properties of this object
708
+ def update!(**args)
709
+ @partition_id = args[:partition_id] if args.key?(:partition_id)
710
+ @path = args[:path] if args.key?(:path)
711
+ end
712
+ end
713
+
714
+ # A representation of a kind.
715
+ class KindExpression
716
+ include Google::Apis::Core::Hashable
717
+
718
+ # The name of the kind.
719
+ # Corresponds to the JSON property `name`
720
+ # @return [String]
721
+ attr_accessor :name
722
+
723
+ def initialize(**args)
724
+ update!(**args)
725
+ end
726
+
727
+ # Update properties of this object
728
+ def update!(**args)
729
+ @name = args[:name] if args.key?(:name)
730
+ end
731
+ end
732
+
733
+ # An object representing a latitude/longitude pair. This is expressed as a pair
734
+ # of doubles representing degrees latitude and degrees longitude. Unless
735
+ # specified otherwise, this must conform to the
736
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
737
+ # standard</a>. Values must be within normalized ranges.
738
+ # Example of normalization code in Python:
739
+ # def NormalizeLongitude(longitude):
740
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
741
+ # q, r = divmod(longitude, 360.0)
742
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
743
+ # return r - 360.0
744
+ # return r
745
+ # def NormalizeLatLng(latitude, longitude):
746
+ # """Wraps decimal degrees latitude and longitude to
747
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
748
+ # r = latitude % 360.0
749
+ # if r <= 90.0:
750
+ # return r, NormalizeLongitude(longitude)
751
+ # elif r >= 270.0:
752
+ # return r - 360, NormalizeLongitude(longitude)
753
+ # else:
754
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
755
+ # assert 180.0 == NormalizeLongitude(180.0)
756
+ # assert -180.0 == NormalizeLongitude(-180.0)
757
+ # assert -179.0 == NormalizeLongitude(181.0)
758
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
759
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
760
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
761
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
762
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
763
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
764
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
765
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
766
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
767
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
768
+ class LatLng
769
+ include Google::Apis::Core::Hashable
770
+
771
+ # The latitude in degrees. It must be in the range [-90.0, +90.0].
772
+ # Corresponds to the JSON property `latitude`
773
+ # @return [Float]
774
+ attr_accessor :latitude
775
+
776
+ # The longitude in degrees. It must be in the range [-180.0, +180.0].
777
+ # Corresponds to the JSON property `longitude`
778
+ # @return [Float]
779
+ attr_accessor :longitude
780
+
781
+ def initialize(**args)
782
+ update!(**args)
783
+ end
784
+
785
+ # Update properties of this object
786
+ def update!(**args)
787
+ @latitude = args[:latitude] if args.key?(:latitude)
788
+ @longitude = args[:longitude] if args.key?(:longitude)
789
+ end
790
+ end
791
+
792
+ # The request for Datastore.Lookup.
793
+ class LookupRequest
794
+ include Google::Apis::Core::Hashable
795
+
796
+ # Keys of entities to look up.
797
+ # Corresponds to the JSON property `keys`
798
+ # @return [Array<Google::Apis::DatastoreV1beta3::Key>]
799
+ attr_accessor :keys
800
+
801
+ # The options shared by read requests.
802
+ # Corresponds to the JSON property `readOptions`
803
+ # @return [Google::Apis::DatastoreV1beta3::ReadOptions]
804
+ attr_accessor :read_options
805
+
806
+ def initialize(**args)
807
+ update!(**args)
808
+ end
809
+
810
+ # Update properties of this object
811
+ def update!(**args)
812
+ @keys = args[:keys] if args.key?(:keys)
813
+ @read_options = args[:read_options] if args.key?(:read_options)
814
+ end
815
+ end
816
+
817
+ # The response for Datastore.Lookup.
818
+ class LookupResponse
819
+ include Google::Apis::Core::Hashable
820
+
821
+ # A list of keys that were not looked up due to resource constraints. The
822
+ # order of results in this field is undefined and has no relation to the
823
+ # order of the keys in the input.
824
+ # Corresponds to the JSON property `deferred`
825
+ # @return [Array<Google::Apis::DatastoreV1beta3::Key>]
826
+ attr_accessor :deferred
827
+
828
+ # Entities found as `ResultType.FULL` entities. The order of results in this
829
+ # field is undefined and has no relation to the order of the keys in the
830
+ # input.
831
+ # Corresponds to the JSON property `found`
832
+ # @return [Array<Google::Apis::DatastoreV1beta3::EntityResult>]
833
+ attr_accessor :found
834
+
835
+ # Entities not found as `ResultType.KEY_ONLY` entities. The order of results
836
+ # in this field is undefined and has no relation to the order of the keys
837
+ # in the input.
838
+ # Corresponds to the JSON property `missing`
839
+ # @return [Array<Google::Apis::DatastoreV1beta3::EntityResult>]
840
+ attr_accessor :missing
841
+
842
+ def initialize(**args)
843
+ update!(**args)
844
+ end
845
+
846
+ # Update properties of this object
847
+ def update!(**args)
848
+ @deferred = args[:deferred] if args.key?(:deferred)
849
+ @found = args[:found] if args.key?(:found)
850
+ @missing = args[:missing] if args.key?(:missing)
851
+ end
852
+ end
853
+
854
+ # A mutation to apply to an entity.
855
+ class Mutation
856
+ include Google::Apis::Core::Hashable
857
+
858
+ # The version of the entity that this mutation is being applied to. If this
859
+ # does not match the current version on the server, the mutation conflicts.
860
+ # Corresponds to the JSON property `baseVersion`
861
+ # @return [Fixnum]
862
+ attr_accessor :base_version
863
+
864
+ # A unique identifier for an entity.
865
+ # If a key's partition ID or any of its path kinds or names are
866
+ # reserved/read-only, the key is reserved/read-only.
867
+ # A reserved/read-only key is forbidden in certain documented contexts.
868
+ # Corresponds to the JSON property `delete`
869
+ # @return [Google::Apis::DatastoreV1beta3::Key]
870
+ attr_accessor :delete
871
+
872
+ # A Datastore data object.
873
+ # An entity is limited to 1 megabyte when stored. That _roughly_
874
+ # corresponds to a limit of 1 megabyte for the serialized form of this
875
+ # message.
876
+ # Corresponds to the JSON property `insert`
877
+ # @return [Google::Apis::DatastoreV1beta3::Entity]
878
+ attr_accessor :insert
879
+
880
+ # A Datastore data object.
881
+ # An entity is limited to 1 megabyte when stored. That _roughly_
882
+ # corresponds to a limit of 1 megabyte for the serialized form of this
883
+ # message.
884
+ # Corresponds to the JSON property `update`
885
+ # @return [Google::Apis::DatastoreV1beta3::Entity]
886
+ attr_accessor :update
887
+
888
+ # A Datastore data object.
889
+ # An entity is limited to 1 megabyte when stored. That _roughly_
890
+ # corresponds to a limit of 1 megabyte for the serialized form of this
891
+ # message.
892
+ # Corresponds to the JSON property `upsert`
893
+ # @return [Google::Apis::DatastoreV1beta3::Entity]
894
+ attr_accessor :upsert
895
+
896
+ def initialize(**args)
897
+ update!(**args)
898
+ end
899
+
900
+ # Update properties of this object
901
+ def update!(**args)
902
+ @base_version = args[:base_version] if args.key?(:base_version)
903
+ @delete = args[:delete] if args.key?(:delete)
904
+ @insert = args[:insert] if args.key?(:insert)
905
+ @update = args[:update] if args.key?(:update)
906
+ @upsert = args[:upsert] if args.key?(:upsert)
907
+ end
908
+ end
909
+
910
+ # The result of applying a mutation.
911
+ class MutationResult
912
+ include Google::Apis::Core::Hashable
913
+
914
+ # Whether a conflict was detected for this mutation. Always false when a
915
+ # conflict detection strategy field is not set in the mutation.
916
+ # Corresponds to the JSON property `conflictDetected`
917
+ # @return [Boolean]
918
+ attr_accessor :conflict_detected
919
+ alias_method :conflict_detected?, :conflict_detected
920
+
921
+ # A unique identifier for an entity.
922
+ # If a key's partition ID or any of its path kinds or names are
923
+ # reserved/read-only, the key is reserved/read-only.
924
+ # A reserved/read-only key is forbidden in certain documented contexts.
925
+ # Corresponds to the JSON property `key`
926
+ # @return [Google::Apis::DatastoreV1beta3::Key]
927
+ attr_accessor :key
928
+
929
+ # The version of the entity on the server after processing the mutation. If
930
+ # the mutation doesn't change anything on the server, then the version will
931
+ # be the version of the current entity or, if no entity is present, a version
932
+ # that is strictly greater than the version of any previous entity and less
933
+ # than the version of any possible future entity.
934
+ # Corresponds to the JSON property `version`
935
+ # @return [Fixnum]
936
+ attr_accessor :version
937
+
938
+ def initialize(**args)
939
+ update!(**args)
940
+ end
941
+
942
+ # Update properties of this object
943
+ def update!(**args)
944
+ @conflict_detected = args[:conflict_detected] if args.key?(:conflict_detected)
945
+ @key = args[:key] if args.key?(:key)
946
+ @version = args[:version] if args.key?(:version)
947
+ end
948
+ end
949
+
950
+ # A partition ID identifies a grouping of entities. The grouping is always
951
+ # by project and namespace, however the namespace ID may be empty.
952
+ # A partition ID contains several dimensions:
953
+ # project ID and namespace ID.
954
+ # Partition dimensions:
955
+ # - May be `""`.
956
+ # - Must be valid UTF-8 bytes.
957
+ # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
958
+ # If the value of any dimension matches regex `__.*__`, the partition is
959
+ # reserved/read-only.
960
+ # A reserved/read-only partition ID is forbidden in certain documented
961
+ # contexts.
962
+ # Foreign partition IDs (in which the project ID does
963
+ # not match the context project ID ) are discouraged.
964
+ # Reads and writes of foreign partition IDs may fail if the project is not in an
965
+ # active state.
966
+ class PartitionId
967
+ include Google::Apis::Core::Hashable
968
+
969
+ # If not empty, the ID of the namespace to which the entities belong.
970
+ # Corresponds to the JSON property `namespaceId`
971
+ # @return [String]
972
+ attr_accessor :namespace_id
973
+
974
+ # The ID of the project to which the entities belong.
975
+ # Corresponds to the JSON property `projectId`
976
+ # @return [String]
977
+ attr_accessor :project_id
978
+
979
+ def initialize(**args)
980
+ update!(**args)
981
+ end
982
+
983
+ # Update properties of this object
984
+ def update!(**args)
985
+ @namespace_id = args[:namespace_id] if args.key?(:namespace_id)
986
+ @project_id = args[:project_id] if args.key?(:project_id)
987
+ end
988
+ end
989
+
990
+ # A (kind, ID/name) pair used to construct a key path.
991
+ # If either name or ID is set, the element is complete.
992
+ # If neither is set, the element is incomplete.
993
+ class PathElement
994
+ include Google::Apis::Core::Hashable
995
+
996
+ # The auto-allocated ID of the entity.
997
+ # Never equal to zero. Values less than zero are discouraged and may not
998
+ # be supported in the future.
999
+ # Corresponds to the JSON property `id`
1000
+ # @return [Fixnum]
1001
+ attr_accessor :id
1002
+
1003
+ # The kind of the entity.
1004
+ # A kind matching regex `__.*__` is reserved/read-only.
1005
+ # A kind must not contain more than 1500 bytes when UTF-8 encoded.
1006
+ # Cannot be `""`.
1007
+ # Corresponds to the JSON property `kind`
1008
+ # @return [String]
1009
+ attr_accessor :kind
1010
+
1011
+ # The name of the entity.
1012
+ # A name matching regex `__.*__` is reserved/read-only.
1013
+ # A name must not be more than 1500 bytes when UTF-8 encoded.
1014
+ # Cannot be `""`.
1015
+ # Corresponds to the JSON property `name`
1016
+ # @return [String]
1017
+ attr_accessor :name
1018
+
1019
+ def initialize(**args)
1020
+ update!(**args)
1021
+ end
1022
+
1023
+ # Update properties of this object
1024
+ def update!(**args)
1025
+ @id = args[:id] if args.key?(:id)
1026
+ @kind = args[:kind] if args.key?(:kind)
1027
+ @name = args[:name] if args.key?(:name)
1028
+ end
1029
+ end
1030
+
1031
+ # A representation of a property in a projection.
1032
+ class Projection
1033
+ include Google::Apis::Core::Hashable
1034
+
1035
+ # A reference to a property relative to the kind expressions.
1036
+ # Corresponds to the JSON property `property`
1037
+ # @return [Google::Apis::DatastoreV1beta3::PropertyReference]
1038
+ attr_accessor :property
1039
+
1040
+ def initialize(**args)
1041
+ update!(**args)
1042
+ end
1043
+
1044
+ # Update properties of this object
1045
+ def update!(**args)
1046
+ @property = args[:property] if args.key?(:property)
1047
+ end
1048
+ end
1049
+
1050
+ # A filter on a specific property.
1051
+ class PropertyFilter
1052
+ include Google::Apis::Core::Hashable
1053
+
1054
+ # The operator to filter by.
1055
+ # Corresponds to the JSON property `op`
1056
+ # @return [String]
1057
+ attr_accessor :op
1058
+
1059
+ # A reference to a property relative to the kind expressions.
1060
+ # Corresponds to the JSON property `property`
1061
+ # @return [Google::Apis::DatastoreV1beta3::PropertyReference]
1062
+ attr_accessor :property
1063
+
1064
+ # A message that can hold any of the supported value types and associated
1065
+ # metadata.
1066
+ # Corresponds to the JSON property `value`
1067
+ # @return [Google::Apis::DatastoreV1beta3::Value]
1068
+ attr_accessor :value
1069
+
1070
+ def initialize(**args)
1071
+ update!(**args)
1072
+ end
1073
+
1074
+ # Update properties of this object
1075
+ def update!(**args)
1076
+ @op = args[:op] if args.key?(:op)
1077
+ @property = args[:property] if args.key?(:property)
1078
+ @value = args[:value] if args.key?(:value)
1079
+ end
1080
+ end
1081
+
1082
+ # The desired order for a specific property.
1083
+ class PropertyOrder
1084
+ include Google::Apis::Core::Hashable
1085
+
1086
+ # The direction to order by. Defaults to `ASCENDING`.
1087
+ # Corresponds to the JSON property `direction`
1088
+ # @return [String]
1089
+ attr_accessor :direction
1090
+
1091
+ # A reference to a property relative to the kind expressions.
1092
+ # Corresponds to the JSON property `property`
1093
+ # @return [Google::Apis::DatastoreV1beta3::PropertyReference]
1094
+ attr_accessor :property
1095
+
1096
+ def initialize(**args)
1097
+ update!(**args)
1098
+ end
1099
+
1100
+ # Update properties of this object
1101
+ def update!(**args)
1102
+ @direction = args[:direction] if args.key?(:direction)
1103
+ @property = args[:property] if args.key?(:property)
1104
+ end
1105
+ end
1106
+
1107
+ # A reference to a property relative to the kind expressions.
1108
+ class PropertyReference
1109
+ include Google::Apis::Core::Hashable
1110
+
1111
+ # The name of the property.
1112
+ # If name includes "."s, it may be interpreted as a property name path.
1113
+ # Corresponds to the JSON property `name`
1114
+ # @return [String]
1115
+ attr_accessor :name
1116
+
1117
+ def initialize(**args)
1118
+ update!(**args)
1119
+ end
1120
+
1121
+ # Update properties of this object
1122
+ def update!(**args)
1123
+ @name = args[:name] if args.key?(:name)
1124
+ end
1125
+ end
1126
+
1127
+ # A query for entities.
1128
+ class Query
1129
+ include Google::Apis::Core::Hashable
1130
+
1131
+ # The properties to make distinct. The query results will contain the first
1132
+ # result for each distinct combination of values for the given properties
1133
+ # (if empty, all results are returned).
1134
+ # Corresponds to the JSON property `distinctOn`
1135
+ # @return [Array<Google::Apis::DatastoreV1beta3::PropertyReference>]
1136
+ attr_accessor :distinct_on
1137
+
1138
+ # An ending point for the query results. Query cursors are
1139
+ # returned in query result batches and
1140
+ # [can only be used to limit the same query](https://cloud.google.com/datastore/
1141
+ # docs/concepts/queries#cursors_limits_and_offsets).
1142
+ # Corresponds to the JSON property `endCursor`
1143
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1144
+ # @return [String]
1145
+ attr_accessor :end_cursor
1146
+
1147
+ # A holder for any type of filter.
1148
+ # Corresponds to the JSON property `filter`
1149
+ # @return [Google::Apis::DatastoreV1beta3::Filter]
1150
+ attr_accessor :filter
1151
+
1152
+ # The kinds to query (if empty, returns entities of all kinds).
1153
+ # Currently at most 1 kind may be specified.
1154
+ # Corresponds to the JSON property `kind`
1155
+ # @return [Array<Google::Apis::DatastoreV1beta3::KindExpression>]
1156
+ attr_accessor :kind
1157
+
1158
+ # The maximum number of results to return. Applies after all other
1159
+ # constraints. Optional.
1160
+ # Unspecified is interpreted as no limit.
1161
+ # Must be >= 0 if specified.
1162
+ # Corresponds to the JSON property `limit`
1163
+ # @return [Fixnum]
1164
+ attr_accessor :limit
1165
+
1166
+ # The number of results to skip. Applies before limit, but after all other
1167
+ # constraints. Optional. Must be >= 0 if specified.
1168
+ # Corresponds to the JSON property `offset`
1169
+ # @return [Fixnum]
1170
+ attr_accessor :offset
1171
+
1172
+ # The order to apply to the query results (if empty, order is unspecified).
1173
+ # Corresponds to the JSON property `order`
1174
+ # @return [Array<Google::Apis::DatastoreV1beta3::PropertyOrder>]
1175
+ attr_accessor :order
1176
+
1177
+ # The projection to return. Defaults to returning all properties.
1178
+ # Corresponds to the JSON property `projection`
1179
+ # @return [Array<Google::Apis::DatastoreV1beta3::Projection>]
1180
+ attr_accessor :projection
1181
+
1182
+ # A starting point for the query results. Query cursors are
1183
+ # returned in query result batches and
1184
+ # [can only be used to continue the same query](https://cloud.google.com/
1185
+ # datastore/docs/concepts/queries#cursors_limits_and_offsets).
1186
+ # Corresponds to the JSON property `startCursor`
1187
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1188
+ # @return [String]
1189
+ attr_accessor :start_cursor
1190
+
1191
+ def initialize(**args)
1192
+ update!(**args)
1193
+ end
1194
+
1195
+ # Update properties of this object
1196
+ def update!(**args)
1197
+ @distinct_on = args[:distinct_on] if args.key?(:distinct_on)
1198
+ @end_cursor = args[:end_cursor] if args.key?(:end_cursor)
1199
+ @filter = args[:filter] if args.key?(:filter)
1200
+ @kind = args[:kind] if args.key?(:kind)
1201
+ @limit = args[:limit] if args.key?(:limit)
1202
+ @offset = args[:offset] if args.key?(:offset)
1203
+ @order = args[:order] if args.key?(:order)
1204
+ @projection = args[:projection] if args.key?(:projection)
1205
+ @start_cursor = args[:start_cursor] if args.key?(:start_cursor)
1206
+ end
1207
+ end
1208
+
1209
+ # A batch of results produced by a query.
1210
+ class QueryResultBatch
1211
+ include Google::Apis::Core::Hashable
1212
+
1213
+ # A cursor that points to the position after the last result in the batch.
1214
+ # Corresponds to the JSON property `endCursor`
1215
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1216
+ # @return [String]
1217
+ attr_accessor :end_cursor
1218
+
1219
+ # The result type for every entity in `entity_results`.
1220
+ # Corresponds to the JSON property `entityResultType`
1221
+ # @return [String]
1222
+ attr_accessor :entity_result_type
1223
+
1224
+ # The results for this batch.
1225
+ # Corresponds to the JSON property `entityResults`
1226
+ # @return [Array<Google::Apis::DatastoreV1beta3::EntityResult>]
1227
+ attr_accessor :entity_results
1228
+
1229
+ # The state of the query after the current batch.
1230
+ # Corresponds to the JSON property `moreResults`
1231
+ # @return [String]
1232
+ attr_accessor :more_results
1233
+
1234
+ # A cursor that points to the position after the last skipped result.
1235
+ # Will be set when `skipped_results` != 0.
1236
+ # Corresponds to the JSON property `skippedCursor`
1237
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1238
+ # @return [String]
1239
+ attr_accessor :skipped_cursor
1240
+
1241
+ # The number of results skipped, typically because of an offset.
1242
+ # Corresponds to the JSON property `skippedResults`
1243
+ # @return [Fixnum]
1244
+ attr_accessor :skipped_results
1245
+
1246
+ # The version number of the snapshot this batch was returned from.
1247
+ # This applies to the range of results from the query's `start_cursor` (or
1248
+ # the beginning of the query if no cursor was given) to this batch's
1249
+ # `end_cursor` (not the query's `end_cursor`).
1250
+ # In a single transaction, subsequent query result batches for the same query
1251
+ # can have a greater snapshot version number. Each batch's snapshot version
1252
+ # is valid for all preceding batches.
1253
+ # The value will be zero for eventually consistent queries.
1254
+ # Corresponds to the JSON property `snapshotVersion`
1255
+ # @return [Fixnum]
1256
+ attr_accessor :snapshot_version
1257
+
1258
+ def initialize(**args)
1259
+ update!(**args)
1260
+ end
1261
+
1262
+ # Update properties of this object
1263
+ def update!(**args)
1264
+ @end_cursor = args[:end_cursor] if args.key?(:end_cursor)
1265
+ @entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type)
1266
+ @entity_results = args[:entity_results] if args.key?(:entity_results)
1267
+ @more_results = args[:more_results] if args.key?(:more_results)
1268
+ @skipped_cursor = args[:skipped_cursor] if args.key?(:skipped_cursor)
1269
+ @skipped_results = args[:skipped_results] if args.key?(:skipped_results)
1270
+ @snapshot_version = args[:snapshot_version] if args.key?(:snapshot_version)
1271
+ end
1272
+ end
1273
+
1274
+ # Options specific to read-only transactions.
1275
+ class ReadOnly
1276
+ include Google::Apis::Core::Hashable
1277
+
1278
+ def initialize(**args)
1279
+ update!(**args)
1280
+ end
1281
+
1282
+ # Update properties of this object
1283
+ def update!(**args)
1284
+ end
1285
+ end
1286
+
1287
+ # The options shared by read requests.
1288
+ class ReadOptions
1289
+ include Google::Apis::Core::Hashable
1290
+
1291
+ # The non-transactional read consistency to use.
1292
+ # Cannot be set to `STRONG` for global queries.
1293
+ # Corresponds to the JSON property `readConsistency`
1294
+ # @return [String]
1295
+ attr_accessor :read_consistency
1296
+
1297
+ # The identifier of the transaction in which to read. A
1298
+ # transaction identifier is returned by a call to
1299
+ # Datastore.BeginTransaction.
1300
+ # Corresponds to the JSON property `transaction`
1301
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1302
+ # @return [String]
1303
+ attr_accessor :transaction
1304
+
1305
+ def initialize(**args)
1306
+ update!(**args)
1307
+ end
1308
+
1309
+ # Update properties of this object
1310
+ def update!(**args)
1311
+ @read_consistency = args[:read_consistency] if args.key?(:read_consistency)
1312
+ @transaction = args[:transaction] if args.key?(:transaction)
1313
+ end
1314
+ end
1315
+
1316
+ # Options specific to read / write transactions.
1317
+ class ReadWrite
1318
+ include Google::Apis::Core::Hashable
1319
+
1320
+ # The transaction identifier of the transaction being retried.
1321
+ # Corresponds to the JSON property `previousTransaction`
1322
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1323
+ # @return [String]
1324
+ attr_accessor :previous_transaction
1325
+
1326
+ def initialize(**args)
1327
+ update!(**args)
1328
+ end
1329
+
1330
+ # Update properties of this object
1331
+ def update!(**args)
1332
+ @previous_transaction = args[:previous_transaction] if args.key?(:previous_transaction)
1333
+ end
1334
+ end
1335
+
1336
+ # The request for Datastore.Rollback.
1337
+ class RollbackRequest
1338
+ include Google::Apis::Core::Hashable
1339
+
1340
+ # The transaction identifier, returned by a call to
1341
+ # Datastore.BeginTransaction.
1342
+ # Corresponds to the JSON property `transaction`
1343
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1344
+ # @return [String]
1345
+ attr_accessor :transaction
1346
+
1347
+ def initialize(**args)
1348
+ update!(**args)
1349
+ end
1350
+
1351
+ # Update properties of this object
1352
+ def update!(**args)
1353
+ @transaction = args[:transaction] if args.key?(:transaction)
1354
+ end
1355
+ end
1356
+
1357
+ # The response for Datastore.Rollback.
1358
+ # (an empty message).
1359
+ class RollbackResponse
1360
+ include Google::Apis::Core::Hashable
1361
+
1362
+ def initialize(**args)
1363
+ update!(**args)
1364
+ end
1365
+
1366
+ # Update properties of this object
1367
+ def update!(**args)
1368
+ end
1369
+ end
1370
+
1371
+ # The request for Datastore.RunQuery.
1372
+ class RunQueryRequest
1373
+ include Google::Apis::Core::Hashable
1374
+
1375
+ # A [GQL query](https://cloud.google.com/datastore/docs/apis/gql/gql_reference).
1376
+ # Corresponds to the JSON property `gqlQuery`
1377
+ # @return [Google::Apis::DatastoreV1beta3::GqlQuery]
1378
+ attr_accessor :gql_query
1379
+
1380
+ # A partition ID identifies a grouping of entities. The grouping is always
1381
+ # by project and namespace, however the namespace ID may be empty.
1382
+ # A partition ID contains several dimensions:
1383
+ # project ID and namespace ID.
1384
+ # Partition dimensions:
1385
+ # - May be `""`.
1386
+ # - Must be valid UTF-8 bytes.
1387
+ # - Must have values that match regex `[A-Za-z\d\.\-_]`1,100``
1388
+ # If the value of any dimension matches regex `__.*__`, the partition is
1389
+ # reserved/read-only.
1390
+ # A reserved/read-only partition ID is forbidden in certain documented
1391
+ # contexts.
1392
+ # Foreign partition IDs (in which the project ID does
1393
+ # not match the context project ID ) are discouraged.
1394
+ # Reads and writes of foreign partition IDs may fail if the project is not in an
1395
+ # active state.
1396
+ # Corresponds to the JSON property `partitionId`
1397
+ # @return [Google::Apis::DatastoreV1beta3::PartitionId]
1398
+ attr_accessor :partition_id
1399
+
1400
+ # A query for entities.
1401
+ # Corresponds to the JSON property `query`
1402
+ # @return [Google::Apis::DatastoreV1beta3::Query]
1403
+ attr_accessor :query
1404
+
1405
+ # The options shared by read requests.
1406
+ # Corresponds to the JSON property `readOptions`
1407
+ # @return [Google::Apis::DatastoreV1beta3::ReadOptions]
1408
+ attr_accessor :read_options
1409
+
1410
+ def initialize(**args)
1411
+ update!(**args)
1412
+ end
1413
+
1414
+ # Update properties of this object
1415
+ def update!(**args)
1416
+ @gql_query = args[:gql_query] if args.key?(:gql_query)
1417
+ @partition_id = args[:partition_id] if args.key?(:partition_id)
1418
+ @query = args[:query] if args.key?(:query)
1419
+ @read_options = args[:read_options] if args.key?(:read_options)
1420
+ end
1421
+ end
1422
+
1423
+ # The response for Datastore.RunQuery.
1424
+ class RunQueryResponse
1425
+ include Google::Apis::Core::Hashable
1426
+
1427
+ # A batch of results produced by a query.
1428
+ # Corresponds to the JSON property `batch`
1429
+ # @return [Google::Apis::DatastoreV1beta3::QueryResultBatch]
1430
+ attr_accessor :batch
1431
+
1432
+ # A query for entities.
1433
+ # Corresponds to the JSON property `query`
1434
+ # @return [Google::Apis::DatastoreV1beta3::Query]
1435
+ attr_accessor :query
1436
+
1437
+ def initialize(**args)
1438
+ update!(**args)
1439
+ end
1440
+
1441
+ # Update properties of this object
1442
+ def update!(**args)
1443
+ @batch = args[:batch] if args.key?(:batch)
1444
+ @query = args[:query] if args.key?(:query)
1445
+ end
1446
+ end
1447
+
1448
+ # Options for beginning a new transaction.
1449
+ # Transactions can be created explicitly with calls to
1450
+ # Datastore.BeginTransaction or implicitly by setting
1451
+ # ReadOptions.new_transaction in read requests.
1452
+ class TransactionOptions
1453
+ include Google::Apis::Core::Hashable
1454
+
1455
+ # Options specific to read-only transactions.
1456
+ # Corresponds to the JSON property `readOnly`
1457
+ # @return [Google::Apis::DatastoreV1beta3::ReadOnly]
1458
+ attr_accessor :read_only
1459
+
1460
+ # Options specific to read / write transactions.
1461
+ # Corresponds to the JSON property `readWrite`
1462
+ # @return [Google::Apis::DatastoreV1beta3::ReadWrite]
1463
+ attr_accessor :read_write
1464
+
1465
+ def initialize(**args)
1466
+ update!(**args)
1467
+ end
1468
+
1469
+ # Update properties of this object
1470
+ def update!(**args)
1471
+ @read_only = args[:read_only] if args.key?(:read_only)
1472
+ @read_write = args[:read_write] if args.key?(:read_write)
1473
+ end
1474
+ end
1475
+
1476
+ # A message that can hold any of the supported value types and associated
1477
+ # metadata.
1478
+ class Value
1479
+ include Google::Apis::Core::Hashable
1480
+
1481
+ # An array value.
1482
+ # Corresponds to the JSON property `arrayValue`
1483
+ # @return [Google::Apis::DatastoreV1beta3::ArrayValue]
1484
+ attr_accessor :array_value
1485
+
1486
+ # A blob value.
1487
+ # May have at most 1,000,000 bytes.
1488
+ # When `exclude_from_indexes` is false, may have at most 1500 bytes.
1489
+ # In JSON requests, must be base64-encoded.
1490
+ # Corresponds to the JSON property `blobValue`
1491
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1492
+ # @return [String]
1493
+ attr_accessor :blob_value
1494
+
1495
+ # A boolean value.
1496
+ # Corresponds to the JSON property `booleanValue`
1497
+ # @return [Boolean]
1498
+ attr_accessor :boolean_value
1499
+ alias_method :boolean_value?, :boolean_value
1500
+
1501
+ # A double value.
1502
+ # Corresponds to the JSON property `doubleValue`
1503
+ # @return [Float]
1504
+ attr_accessor :double_value
1505
+
1506
+ # A Datastore data object.
1507
+ # An entity is limited to 1 megabyte when stored. That _roughly_
1508
+ # corresponds to a limit of 1 megabyte for the serialized form of this
1509
+ # message.
1510
+ # Corresponds to the JSON property `entityValue`
1511
+ # @return [Google::Apis::DatastoreV1beta3::Entity]
1512
+ attr_accessor :entity_value
1513
+
1514
+ # If the value should be excluded from all indexes including those defined
1515
+ # explicitly.
1516
+ # Corresponds to the JSON property `excludeFromIndexes`
1517
+ # @return [Boolean]
1518
+ attr_accessor :exclude_from_indexes
1519
+ alias_method :exclude_from_indexes?, :exclude_from_indexes
1520
+
1521
+ # An object representing a latitude/longitude pair. This is expressed as a pair
1522
+ # of doubles representing degrees latitude and degrees longitude. Unless
1523
+ # specified otherwise, this must conform to the
1524
+ # <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
1525
+ # standard</a>. Values must be within normalized ranges.
1526
+ # Example of normalization code in Python:
1527
+ # def NormalizeLongitude(longitude):
1528
+ # """Wraps decimal degrees longitude to [-180.0, 180.0]."""
1529
+ # q, r = divmod(longitude, 360.0)
1530
+ # if r > 180.0 or (r == 180.0 and q <= -1.0):
1531
+ # return r - 360.0
1532
+ # return r
1533
+ # def NormalizeLatLng(latitude, longitude):
1534
+ # """Wraps decimal degrees latitude and longitude to
1535
+ # [-90.0, 90.0] and [-180.0, 180.0], respectively."""
1536
+ # r = latitude % 360.0
1537
+ # if r <= 90.0:
1538
+ # return r, NormalizeLongitude(longitude)
1539
+ # elif r >= 270.0:
1540
+ # return r - 360, NormalizeLongitude(longitude)
1541
+ # else:
1542
+ # return 180 - r, NormalizeLongitude(longitude + 180.0)
1543
+ # assert 180.0 == NormalizeLongitude(180.0)
1544
+ # assert -180.0 == NormalizeLongitude(-180.0)
1545
+ # assert -179.0 == NormalizeLongitude(181.0)
1546
+ # assert (0.0, 0.0) == NormalizeLatLng(360.0, 0.0)
1547
+ # assert (0.0, 0.0) == NormalizeLatLng(-360.0, 0.0)
1548
+ # assert (85.0, 180.0) == NormalizeLatLng(95.0, 0.0)
1549
+ # assert (-85.0, -170.0) == NormalizeLatLng(-95.0, 10.0)
1550
+ # assert (90.0, 10.0) == NormalizeLatLng(90.0, 10.0)
1551
+ # assert (-90.0, -10.0) == NormalizeLatLng(-90.0, -10.0)
1552
+ # assert (0.0, -170.0) == NormalizeLatLng(-180.0, 10.0)
1553
+ # assert (0.0, -170.0) == NormalizeLatLng(180.0, 10.0)
1554
+ # assert (-90.0, 10.0) == NormalizeLatLng(270.0, 10.0)
1555
+ # assert (90.0, 10.0) == NormalizeLatLng(-270.0, 10.0)
1556
+ # Corresponds to the JSON property `geoPointValue`
1557
+ # @return [Google::Apis::DatastoreV1beta3::LatLng]
1558
+ attr_accessor :geo_point_value
1559
+
1560
+ # An integer value.
1561
+ # Corresponds to the JSON property `integerValue`
1562
+ # @return [Fixnum]
1563
+ attr_accessor :integer_value
1564
+
1565
+ # A unique identifier for an entity.
1566
+ # If a key's partition ID or any of its path kinds or names are
1567
+ # reserved/read-only, the key is reserved/read-only.
1568
+ # A reserved/read-only key is forbidden in certain documented contexts.
1569
+ # Corresponds to the JSON property `keyValue`
1570
+ # @return [Google::Apis::DatastoreV1beta3::Key]
1571
+ attr_accessor :key_value
1572
+
1573
+ # The `meaning` field should only be populated for backwards compatibility.
1574
+ # Corresponds to the JSON property `meaning`
1575
+ # @return [Fixnum]
1576
+ attr_accessor :meaning
1577
+
1578
+ # A null value.
1579
+ # Corresponds to the JSON property `nullValue`
1580
+ # @return [String]
1581
+ attr_accessor :null_value
1582
+
1583
+ # A UTF-8 encoded string value.
1584
+ # When `exclude_from_indexes` is false (it is indexed) , may have at most 1500
1585
+ # bytes.
1586
+ # Otherwise, may be set to at least 1,000,000 bytes.
1587
+ # Corresponds to the JSON property `stringValue`
1588
+ # @return [String]
1589
+ attr_accessor :string_value
1590
+
1591
+ # A timestamp value.
1592
+ # When stored in the Datastore, precise only to microseconds;
1593
+ # any additional precision is rounded down.
1594
+ # Corresponds to the JSON property `timestampValue`
1595
+ # @return [String]
1596
+ attr_accessor :timestamp_value
1597
+
1598
+ def initialize(**args)
1599
+ update!(**args)
1600
+ end
1601
+
1602
+ # Update properties of this object
1603
+ def update!(**args)
1604
+ @array_value = args[:array_value] if args.key?(:array_value)
1605
+ @blob_value = args[:blob_value] if args.key?(:blob_value)
1606
+ @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
1607
+ @double_value = args[:double_value] if args.key?(:double_value)
1608
+ @entity_value = args[:entity_value] if args.key?(:entity_value)
1609
+ @exclude_from_indexes = args[:exclude_from_indexes] if args.key?(:exclude_from_indexes)
1610
+ @geo_point_value = args[:geo_point_value] if args.key?(:geo_point_value)
1611
+ @integer_value = args[:integer_value] if args.key?(:integer_value)
1612
+ @key_value = args[:key_value] if args.key?(:key_value)
1613
+ @meaning = args[:meaning] if args.key?(:meaning)
1614
+ @null_value = args[:null_value] if args.key?(:null_value)
1615
+ @string_value = args[:string_value] if args.key?(:string_value)
1616
+ @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
1617
+ end
1618
+ end
1619
+ end
1620
+ end
1621
+ end