google-api-client 0.10.3 → 0.11.0

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