lemboy-google-api-client 0.9.26

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