google-api-client 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -48,119 +48,114 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Gets the access control policy for an instance resource. Returns an empty
52
- # policy if an instance exists but does not have a policy set.
53
- # Authorization requires `spanner.instances.getIamPolicy` on
54
- # resource.
55
- # @param [String] resource
56
- # REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
57
- # The format is `projects/<project ID>/instances/<instance ID>` for instance
58
- # resources and `projects/<project ID>/instances/<instance ID>/databases/<
59
- # database ID>` for database resources.
60
- # @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_request_object
51
+ # Gets information about a particular instance configuration.
52
+ # @param [String] name
53
+ # Required. The name of the requested instance configuration. Values are of
54
+ # the form `projects/<project>/instanceConfigs/<config>`.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
61
57
  # @param [String] quota_user
62
58
  # Available to use for quota purposes for server-side applications. Can be any
63
59
  # arbitrary string assigned to a user, but should not exceed 40 characters.
64
- # @param [String] fields
65
- # Selector specifying which fields to include in a partial response.
66
60
  # @param [Google::Apis::RequestOptions] options
67
61
  # Request-specific options
68
62
  #
69
63
  # @yield [result, err] Result & error if block supplied
70
- # @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
64
+ # @yieldparam result [Google::Apis::SpannerV1::InstanceConfig] parsed result object
71
65
  # @yieldparam err [StandardError] error object if request failed
72
66
  #
73
- # @return [Google::Apis::SpannerV1::Policy]
67
+ # @return [Google::Apis::SpannerV1::InstanceConfig]
74
68
  #
75
69
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
76
70
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
77
71
  # @raise [Google::Apis::AuthorizationError] Authorization is required
78
- def get_instance_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
79
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
80
- command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
81
- command.request_object = get_iam_policy_request_object
82
- command.response_representation = Google::Apis::SpannerV1::Policy::Representation
83
- command.response_class = Google::Apis::SpannerV1::Policy
84
- command.params['resource'] = resource unless resource.nil?
85
- command.query['quotaUser'] = quota_user unless quota_user.nil?
72
+ def get_project_instance_config(name, fields: nil, quota_user: nil, options: nil, &block)
73
+ command = make_simple_command(:get, 'v1/{+name}', options)
74
+ command.response_representation = Google::Apis::SpannerV1::InstanceConfig::Representation
75
+ command.response_class = Google::Apis::SpannerV1::InstanceConfig
76
+ command.params['name'] = name unless name.nil?
86
77
  command.query['fields'] = fields unless fields.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
87
79
  execute_or_queue_command(command, &block)
88
80
  end
89
81
 
90
- # Gets information about a particular instance.
91
- # @param [String] name
92
- # Required. The name of the requested instance. Values are of the form
93
- # `projects/<project>/instances/<instance>`.
82
+ # Lists the supported instance configurations for a given project.
83
+ # @param [String] parent
84
+ # Required. The name of the project for which a list of supported instance
85
+ # configurations is requested. Values are of the form
86
+ # `projects/<project>`.
87
+ # @param [Fixnum] page_size
88
+ # Number of instance configurations to be returned in the response. If 0 or
89
+ # less, defaults to the server's maximum allowed page size.
90
+ # @param [String] page_token
91
+ # If non-empty, `page_token` should contain a
92
+ # next_page_token
93
+ # from a previous ListInstanceConfigsResponse.
94
+ # @param [String] fields
95
+ # Selector specifying which fields to include in a partial response.
94
96
  # @param [String] quota_user
95
97
  # Available to use for quota purposes for server-side applications. Can be any
96
98
  # arbitrary string assigned to a user, but should not exceed 40 characters.
97
- # @param [String] fields
98
- # Selector specifying which fields to include in a partial response.
99
99
  # @param [Google::Apis::RequestOptions] options
100
100
  # Request-specific options
101
101
  #
102
102
  # @yield [result, err] Result & error if block supplied
103
- # @yieldparam result [Google::Apis::SpannerV1::Instance] parsed result object
103
+ # @yieldparam result [Google::Apis::SpannerV1::ListInstanceConfigsResponse] parsed result object
104
104
  # @yieldparam err [StandardError] error object if request failed
105
105
  #
106
- # @return [Google::Apis::SpannerV1::Instance]
106
+ # @return [Google::Apis::SpannerV1::ListInstanceConfigsResponse]
107
107
  #
108
108
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
109
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
110
  # @raise [Google::Apis::AuthorizationError] Authorization is required
111
- def get_project_instance(name, quota_user: nil, fields: nil, options: nil, &block)
112
- command = make_simple_command(:get, 'v1/{+name}', options)
113
- command.response_representation = Google::Apis::SpannerV1::Instance::Representation
114
- command.response_class = Google::Apis::SpannerV1::Instance
115
- command.params['name'] = name unless name.nil?
116
- command.query['quotaUser'] = quota_user unless quota_user.nil?
111
+ def list_project_instance_configs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
112
+ command = make_simple_command(:get, 'v1/{+parent}/instanceConfigs', options)
113
+ command.response_representation = Google::Apis::SpannerV1::ListInstanceConfigsResponse::Representation
114
+ command.response_class = Google::Apis::SpannerV1::ListInstanceConfigsResponse
115
+ command.params['parent'] = parent unless parent.nil?
116
+ command.query['pageSize'] = page_size unless page_size.nil?
117
+ command.query['pageToken'] = page_token unless page_token.nil?
117
118
  command.query['fields'] = fields unless fields.nil?
119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
118
120
  execute_or_queue_command(command, &block)
119
121
  end
120
122
 
121
- # Updates an instance, and begins allocating or releasing resources
122
- # as requested. The returned long-running
123
- # operation can be used to track the
124
- # progress of updating the instance. If the named instance does not
125
- # exist, returns `NOT_FOUND`.
123
+ # Creates an instance and begins preparing it to begin serving. The
124
+ # returned long-running operation
125
+ # can be used to track the progress of preparing the new
126
+ # instance. The instance name is assigned by the caller. If the
127
+ # named instance already exists, `CreateInstance` returns
128
+ # `ALREADY_EXISTS`.
126
129
  # Immediately upon completion of this request:
127
- # * For resource types for which a decrease in the instance's allocation
128
- # has been requested, billing is based on the newly-requested level.
130
+ # * The instance is readable via the API, with all requested attributes
131
+ # but no allocated resources. Its state is `CREATING`.
129
132
  # Until completion of the returned operation:
130
- # * Cancelling the operation sets its metadata's
131
- # cancel_time, and begins
132
- # restoring resources to their pre-request values. The operation
133
- # is guaranteed to succeed at undoing all resource changes,
134
- # after which point it terminates with a `CANCELLED` status.
133
+ # * Cancelling the operation renders the instance immediately unreadable
134
+ # via the API.
135
+ # * The instance can be deleted.
135
136
  # * All other attempts to modify the instance are rejected.
136
- # * Reading the instance via the API continues to give the pre-request
137
- # resource levels.
138
137
  # Upon completion of the returned operation:
139
- # * Billing begins for all successfully-allocated resources (some types
138
+ # * Billing for all successfully-allocated resources begins (some types
140
139
  # may have lower than the requested levels).
141
- # * All newly-reserved resources are available for serving the instance's
142
- # tables.
143
- # * The instance's new resource levels are readable via the API.
140
+ # * Databases can be created in the instance.
141
+ # * The instance's allocated resource levels are readable via the API.
142
+ # * The instance's state becomes `READY`.
144
143
  # The returned long-running operation will
145
144
  # have a name of the format `<instance_name>/operations/<operation_id>` and
146
- # can be used to track the instance modification. The
145
+ # can be used to track creation of the instance. The
147
146
  # metadata field type is
148
- # UpdateInstanceMetadata.
147
+ # CreateInstanceMetadata.
149
148
  # The response field type is
150
149
  # Instance, if successful.
151
- # Authorization requires `spanner.instances.update` permission on
152
- # resource name.
153
- # @param [String] name
154
- # Required. A unique identifier for the instance, which cannot be changed
155
- # after the instance is created. Values are of the form
156
- # `projects/<project>/instances/a-z*[a-z0-9]`. The final
157
- # segment of the name must be between 6 and 30 characters in length.
158
- # @param [Google::Apis::SpannerV1::UpdateInstanceRequest] update_instance_request_object
150
+ # @param [String] parent
151
+ # Required. The name of the project in which to create the instance. Values
152
+ # are of the form `projects/<project>`.
153
+ # @param [Google::Apis::SpannerV1::CreateInstanceRequest] create_instance_request_object
154
+ # @param [String] fields
155
+ # Selector specifying which fields to include in a partial response.
159
156
  # @param [String] quota_user
160
157
  # Available to use for quota purposes for server-side applications. Can be any
161
158
  # arbitrary string assigned to a user, but should not exceed 40 characters.
162
- # @param [String] fields
163
- # Selector specifying which fields to include in a partial response.
164
159
  # @param [Google::Apis::RequestOptions] options
165
160
  # Request-specific options
166
161
  #
@@ -173,92 +168,122 @@ module Google
173
168
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
174
169
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
175
170
  # @raise [Google::Apis::AuthorizationError] Authorization is required
176
- def patch_project_instance(name, update_instance_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
177
- command = make_simple_command(:patch, 'v1/{+name}', options)
178
- command.request_representation = Google::Apis::SpannerV1::UpdateInstanceRequest::Representation
179
- command.request_object = update_instance_request_object
171
+ def create_instance(parent, create_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
172
+ command = make_simple_command(:post, 'v1/{+parent}/instances', options)
173
+ command.request_representation = Google::Apis::SpannerV1::CreateInstanceRequest::Representation
174
+ command.request_object = create_instance_request_object
180
175
  command.response_representation = Google::Apis::SpannerV1::Operation::Representation
181
176
  command.response_class = Google::Apis::SpannerV1::Operation
182
- command.params['name'] = name unless name.nil?
183
- command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ command.params['parent'] = parent unless parent.nil?
184
178
  command.query['fields'] = fields unless fields.nil?
179
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
185
180
  execute_or_queue_command(command, &block)
186
181
  end
187
182
 
188
- # Returns permissions that the caller has on the specified instance resource.
189
- # Attempting this RPC on a non-existent Cloud Spanner instance resource will
190
- # result in a NOT_FOUND error if the user has `spanner.instances.list`
191
- # permission on the containing Google Cloud Project. Otherwise returns an
192
- # empty set of permissions.
193
- # @param [String] resource
194
- # REQUIRED: The Cloud Spanner resource for which permissions are being tested.
195
- # The format is `projects/<project ID>/instances/<instance ID>` for instance
196
- # resources and `projects/<project ID>/instances/<instance ID>/databases/<
197
- # database ID>` for database resources.
198
- # @param [Google::Apis::SpannerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
183
+ # Deletes an instance.
184
+ # Immediately upon completion of the request:
185
+ # * Billing ceases for all of the instance's reserved resources.
186
+ # Soon afterward:
187
+ # * The instance and *all of its databases* immediately and
188
+ # irrevocably disappear from the API. All data in the databases
189
+ # is permanently deleted.
190
+ # @param [String] name
191
+ # Required. The name of the instance to be deleted. Values are of the form
192
+ # `projects/<project>/instances/<instance>`
193
+ # @param [String] fields
194
+ # Selector specifying which fields to include in a partial response.
199
195
  # @param [String] quota_user
200
196
  # Available to use for quota purposes for server-side applications. Can be any
201
197
  # arbitrary string assigned to a user, but should not exceed 40 characters.
202
- # @param [String] fields
203
- # Selector specifying which fields to include in a partial response.
204
198
  # @param [Google::Apis::RequestOptions] options
205
199
  # Request-specific options
206
200
  #
207
201
  # @yield [result, err] Result & error if block supplied
208
- # @yieldparam result [Google::Apis::SpannerV1::TestIamPermissionsResponse] parsed result object
202
+ # @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
209
203
  # @yieldparam err [StandardError] error object if request failed
210
204
  #
211
- # @return [Google::Apis::SpannerV1::TestIamPermissionsResponse]
205
+ # @return [Google::Apis::SpannerV1::Empty]
212
206
  #
213
207
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
214
208
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
215
209
  # @raise [Google::Apis::AuthorizationError] Authorization is required
216
- def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
217
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
218
- command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
219
- command.request_object = test_iam_permissions_request_object
220
- command.response_representation = Google::Apis::SpannerV1::TestIamPermissionsResponse::Representation
221
- command.response_class = Google::Apis::SpannerV1::TestIamPermissionsResponse
222
- command.params['resource'] = resource unless resource.nil?
223
- command.query['quotaUser'] = quota_user unless quota_user.nil?
210
+ def delete_project_instance(name, fields: nil, quota_user: nil, options: nil, &block)
211
+ command = make_simple_command(:delete, 'v1/{+name}', options)
212
+ command.response_representation = Google::Apis::SpannerV1::Empty::Representation
213
+ command.response_class = Google::Apis::SpannerV1::Empty
214
+ command.params['name'] = name unless name.nil?
224
215
  command.query['fields'] = fields unless fields.nil?
216
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
225
217
  execute_or_queue_command(command, &block)
226
218
  end
227
219
 
228
- # Deletes an instance.
229
- # Immediately upon completion of the request:
230
- # * Billing ceases for all of the instance's reserved resources.
231
- # Soon afterward:
232
- # * The instance and *all of its databases* immediately and
233
- # irrevocably disappear from the API. All data in the databases
234
- # is permanently deleted.
220
+ # Gets information about a particular instance.
235
221
  # @param [String] name
236
- # Required. The name of the instance to be deleted. Values are of the form
237
- # `projects/<project>/instances/<instance>`
222
+ # Required. The name of the requested instance. Values are of the form
223
+ # `projects/<project>/instances/<instance>`.
224
+ # @param [String] fields
225
+ # Selector specifying which fields to include in a partial response.
238
226
  # @param [String] quota_user
239
227
  # Available to use for quota purposes for server-side applications. Can be any
240
228
  # arbitrary string assigned to a user, but should not exceed 40 characters.
241
- # @param [String] fields
242
- # Selector specifying which fields to include in a partial response.
243
229
  # @param [Google::Apis::RequestOptions] options
244
230
  # Request-specific options
245
231
  #
246
232
  # @yield [result, err] Result & error if block supplied
247
- # @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
233
+ # @yieldparam result [Google::Apis::SpannerV1::Instance] parsed result object
248
234
  # @yieldparam err [StandardError] error object if request failed
249
235
  #
250
- # @return [Google::Apis::SpannerV1::Empty]
236
+ # @return [Google::Apis::SpannerV1::Instance]
251
237
  #
252
238
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
253
239
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254
240
  # @raise [Google::Apis::AuthorizationError] Authorization is required
255
- def delete_project_instance(name, quota_user: nil, fields: nil, options: nil, &block)
256
- command = make_simple_command(:delete, 'v1/{+name}', options)
257
- command.response_representation = Google::Apis::SpannerV1::Empty::Representation
258
- command.response_class = Google::Apis::SpannerV1::Empty
241
+ def get_project_instance(name, fields: nil, quota_user: nil, options: nil, &block)
242
+ command = make_simple_command(:get, 'v1/{+name}', options)
243
+ command.response_representation = Google::Apis::SpannerV1::Instance::Representation
244
+ command.response_class = Google::Apis::SpannerV1::Instance
259
245
  command.params['name'] = name unless name.nil?
246
+ command.query['fields'] = fields unless fields.nil?
260
247
  command.query['quotaUser'] = quota_user unless quota_user.nil?
248
+ execute_or_queue_command(command, &block)
249
+ end
250
+
251
+ # Gets the access control policy for an instance resource. Returns an empty
252
+ # policy if an instance exists but does not have a policy set.
253
+ # Authorization requires `spanner.instances.getIamPolicy` on
254
+ # resource.
255
+ # @param [String] resource
256
+ # REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
257
+ # The format is `projects/<project ID>/instances/<instance ID>` for instance
258
+ # resources and `projects/<project ID>/instances/<instance ID>/databases/<
259
+ # database ID>` for database resources.
260
+ # @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_request_object
261
+ # @param [String] fields
262
+ # Selector specifying which fields to include in a partial response.
263
+ # @param [String] quota_user
264
+ # Available to use for quota purposes for server-side applications. Can be any
265
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
266
+ # @param [Google::Apis::RequestOptions] options
267
+ # Request-specific options
268
+ #
269
+ # @yield [result, err] Result & error if block supplied
270
+ # @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
271
+ # @yieldparam err [StandardError] error object if request failed
272
+ #
273
+ # @return [Google::Apis::SpannerV1::Policy]
274
+ #
275
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
276
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
277
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
278
+ def get_instance_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
279
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
280
+ command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
281
+ command.request_object = get_iam_policy_request_object
282
+ command.response_representation = Google::Apis::SpannerV1::Policy::Representation
283
+ command.response_class = Google::Apis::SpannerV1::Policy
284
+ command.params['resource'] = resource unless resource.nil?
261
285
  command.query['fields'] = fields unless fields.nil?
286
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
262
287
  execute_or_queue_command(command, &block)
263
288
  end
264
289
 
@@ -283,18 +308,18 @@ module Google
283
308
  # * name:howl labels.env:dev --> The instance's name contains "howl" and
284
309
  # it has the label "env" with its value
285
310
  # containing "dev".
311
+ # @param [Fixnum] page_size
312
+ # Number of instances to be returned in the response. If 0 or less, defaults
313
+ # to the server's maximum allowed page size.
286
314
  # @param [String] page_token
287
315
  # If non-empty, `page_token` should contain a
288
316
  # next_page_token from a
289
317
  # previous ListInstancesResponse.
290
- # @param [Fixnum] page_size
291
- # Number of instances to be returned in the response. If 0 or less, defaults
292
- # to the server's maximum allowed page size.
318
+ # @param [String] fields
319
+ # Selector specifying which fields to include in a partial response.
293
320
  # @param [String] quota_user
294
321
  # Available to use for quota purposes for server-side applications. Can be any
295
322
  # arbitrary string assigned to a user, but should not exceed 40 characters.
296
- # @param [String] fields
297
- # Selector specifying which fields to include in a partial response.
298
323
  # @param [Google::Apis::RequestOptions] options
299
324
  # Request-specific options
300
325
  #
@@ -307,94 +332,62 @@ module Google
307
332
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
308
333
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
309
334
  # @raise [Google::Apis::AuthorizationError] Authorization is required
310
- def list_project_instances(parent, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
335
+ def list_project_instances(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
311
336
  command = make_simple_command(:get, 'v1/{+parent}/instances', options)
312
337
  command.response_representation = Google::Apis::SpannerV1::ListInstancesResponse::Representation
313
338
  command.response_class = Google::Apis::SpannerV1::ListInstancesResponse
314
339
  command.params['parent'] = parent unless parent.nil?
315
340
  command.query['filter'] = filter unless filter.nil?
316
- command.query['pageToken'] = page_token unless page_token.nil?
317
341
  command.query['pageSize'] = page_size unless page_size.nil?
318
- command.query['quotaUser'] = quota_user unless quota_user.nil?
342
+ command.query['pageToken'] = page_token unless page_token.nil?
319
343
  command.query['fields'] = fields unless fields.nil?
344
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
320
345
  execute_or_queue_command(command, &block)
321
346
  end
322
347
 
323
- # Sets the access control policy on an instance resource. Replaces any
324
- # existing policy.
325
- # Authorization requires `spanner.instances.setIamPolicy` on
326
- # resource.
327
- # @param [String] resource
328
- # REQUIRED: The Cloud Spanner resource for which the policy is being set. The
329
- # format is `projects/<project ID>/instances/<instance ID>` for instance
330
- # resources and `projects/<project ID>/instances/<instance ID>/databases/<
331
- # database ID>` for databases resources.
332
- # @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_request_object
333
- # @param [String] quota_user
334
- # Available to use for quota purposes for server-side applications. Can be any
335
- # arbitrary string assigned to a user, but should not exceed 40 characters.
336
- # @param [String] fields
337
- # Selector specifying which fields to include in a partial response.
338
- # @param [Google::Apis::RequestOptions] options
339
- # Request-specific options
340
- #
341
- # @yield [result, err] Result & error if block supplied
342
- # @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
343
- # @yieldparam err [StandardError] error object if request failed
344
- #
345
- # @return [Google::Apis::SpannerV1::Policy]
346
- #
347
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
348
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
349
- # @raise [Google::Apis::AuthorizationError] Authorization is required
350
- def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
351
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
352
- command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
353
- command.request_object = set_iam_policy_request_object
354
- command.response_representation = Google::Apis::SpannerV1::Policy::Representation
355
- command.response_class = Google::Apis::SpannerV1::Policy
356
- command.params['resource'] = resource unless resource.nil?
357
- command.query['quotaUser'] = quota_user unless quota_user.nil?
358
- command.query['fields'] = fields unless fields.nil?
359
- execute_or_queue_command(command, &block)
360
- end
361
-
362
- # Creates an instance and begins preparing it to begin serving. The
363
- # returned long-running operation
364
- # can be used to track the progress of preparing the new
365
- # instance. The instance name is assigned by the caller. If the
366
- # named instance already exists, `CreateInstance` returns
367
- # `ALREADY_EXISTS`.
348
+ # Updates an instance, and begins allocating or releasing resources
349
+ # as requested. The returned long-running
350
+ # operation can be used to track the
351
+ # progress of updating the instance. If the named instance does not
352
+ # exist, returns `NOT_FOUND`.
368
353
  # Immediately upon completion of this request:
369
- # * The instance is readable via the API, with all requested attributes
370
- # but no allocated resources. Its state is `CREATING`.
354
+ # * For resource types for which a decrease in the instance's allocation
355
+ # has been requested, billing is based on the newly-requested level.
371
356
  # Until completion of the returned operation:
372
- # * Cancelling the operation renders the instance immediately unreadable
373
- # via the API.
374
- # * The instance can be deleted.
357
+ # * Cancelling the operation sets its metadata's
358
+ # cancel_time, and begins
359
+ # restoring resources to their pre-request values. The operation
360
+ # is guaranteed to succeed at undoing all resource changes,
361
+ # after which point it terminates with a `CANCELLED` status.
375
362
  # * All other attempts to modify the instance are rejected.
363
+ # * Reading the instance via the API continues to give the pre-request
364
+ # resource levels.
376
365
  # Upon completion of the returned operation:
377
- # * Billing for all successfully-allocated resources begins (some types
366
+ # * Billing begins for all successfully-allocated resources (some types
378
367
  # may have lower than the requested levels).
379
- # * Databases can be created in the instance.
380
- # * The instance's allocated resource levels are readable via the API.
381
- # * The instance's state becomes `READY`.
368
+ # * All newly-reserved resources are available for serving the instance's
369
+ # tables.
370
+ # * The instance's new resource levels are readable via the API.
382
371
  # The returned long-running operation will
383
372
  # have a name of the format `<instance_name>/operations/<operation_id>` and
384
- # can be used to track creation of the instance. The
373
+ # can be used to track the instance modification. The
385
374
  # metadata field type is
386
- # CreateInstanceMetadata.
375
+ # UpdateInstanceMetadata.
387
376
  # The response field type is
388
377
  # Instance, if successful.
389
- # @param [String] parent
390
- # Required. The name of the project in which to create the instance. Values
391
- # are of the form `projects/<project>`.
392
- # @param [Google::Apis::SpannerV1::CreateInstanceRequest] create_instance_request_object
378
+ # Authorization requires `spanner.instances.update` permission on
379
+ # resource name.
380
+ # @param [String] name
381
+ # Required. A unique identifier for the instance, which cannot be changed
382
+ # after the instance is created. Values are of the form
383
+ # `projects/<project>/instances/a-z*[a-z0-9]`. The final
384
+ # segment of the name must be between 6 and 30 characters in length.
385
+ # @param [Google::Apis::SpannerV1::UpdateInstanceRequest] update_instance_request_object
386
+ # @param [String] fields
387
+ # Selector specifying which fields to include in a partial response.
393
388
  # @param [String] quota_user
394
389
  # Available to use for quota purposes for server-side applications. Can be any
395
390
  # arbitrary string assigned to a user, but should not exceed 40 characters.
396
- # @param [String] fields
397
- # Selector specifying which fields to include in a partial response.
398
391
  # @param [Google::Apis::RequestOptions] options
399
392
  # Request-specific options
400
393
  #
@@ -407,87 +400,94 @@ module Google
407
400
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
408
401
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
409
402
  # @raise [Google::Apis::AuthorizationError] Authorization is required
410
- def create_instance(parent, create_instance_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
411
- command = make_simple_command(:post, 'v1/{+parent}/instances', options)
412
- command.request_representation = Google::Apis::SpannerV1::CreateInstanceRequest::Representation
413
- command.request_object = create_instance_request_object
403
+ def patch_project_instance(name, update_instance_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
404
+ command = make_simple_command(:patch, 'v1/{+name}', options)
405
+ command.request_representation = Google::Apis::SpannerV1::UpdateInstanceRequest::Representation
406
+ command.request_object = update_instance_request_object
414
407
  command.response_representation = Google::Apis::SpannerV1::Operation::Representation
415
408
  command.response_class = Google::Apis::SpannerV1::Operation
416
- command.params['parent'] = parent unless parent.nil?
417
- command.query['quotaUser'] = quota_user unless quota_user.nil?
409
+ command.params['name'] = name unless name.nil?
418
410
  command.query['fields'] = fields unless fields.nil?
411
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
419
412
  execute_or_queue_command(command, &block)
420
413
  end
421
414
 
422
- # Returns the schema of a Cloud Spanner database as a list of formatted
423
- # DDL statements. This method does not show pending schema updates, those may
424
- # be queried using the Operations API.
425
- # @param [String] database
426
- # Required. The database whose schema we wish to get.
415
+ # Sets the access control policy on an instance resource. Replaces any
416
+ # existing policy.
417
+ # Authorization requires `spanner.instances.setIamPolicy` on
418
+ # resource.
419
+ # @param [String] resource
420
+ # REQUIRED: The Cloud Spanner resource for which the policy is being set. The
421
+ # format is `projects/<project ID>/instances/<instance ID>` for instance
422
+ # resources and `projects/<project ID>/instances/<instance ID>/databases/<
423
+ # database ID>` for databases resources.
424
+ # @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_request_object
425
+ # @param [String] fields
426
+ # Selector specifying which fields to include in a partial response.
427
427
  # @param [String] quota_user
428
428
  # Available to use for quota purposes for server-side applications. Can be any
429
429
  # arbitrary string assigned to a user, but should not exceed 40 characters.
430
- # @param [String] fields
431
- # Selector specifying which fields to include in a partial response.
432
430
  # @param [Google::Apis::RequestOptions] options
433
431
  # Request-specific options
434
432
  #
435
433
  # @yield [result, err] Result & error if block supplied
436
- # @yieldparam result [Google::Apis::SpannerV1::GetDatabaseDdlResponse] parsed result object
434
+ # @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
437
435
  # @yieldparam err [StandardError] error object if request failed
438
436
  #
439
- # @return [Google::Apis::SpannerV1::GetDatabaseDdlResponse]
437
+ # @return [Google::Apis::SpannerV1::Policy]
440
438
  #
441
439
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
442
440
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
443
441
  # @raise [Google::Apis::AuthorizationError] Authorization is required
444
- def get_project_instance_database_ddl(database, quota_user: nil, fields: nil, options: nil, &block)
445
- command = make_simple_command(:get, 'v1/{+database}/ddl', options)
446
- command.response_representation = Google::Apis::SpannerV1::GetDatabaseDdlResponse::Representation
447
- command.response_class = Google::Apis::SpannerV1::GetDatabaseDdlResponse
448
- command.params['database'] = database unless database.nil?
449
- command.query['quotaUser'] = quota_user unless quota_user.nil?
442
+ def set_instance_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
443
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
444
+ command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
445
+ command.request_object = set_iam_policy_request_object
446
+ command.response_representation = Google::Apis::SpannerV1::Policy::Representation
447
+ command.response_class = Google::Apis::SpannerV1::Policy
448
+ command.params['resource'] = resource unless resource.nil?
450
449
  command.query['fields'] = fields unless fields.nil?
450
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
451
451
  execute_or_queue_command(command, &block)
452
452
  end
453
453
 
454
- # Lists Cloud Spanner databases.
455
- # @param [String] parent
456
- # Required. The instance whose databases should be listed.
457
- # Values are of the form `projects/<project>/instances/<instance>`.
458
- # @param [String] page_token
459
- # If non-empty, `page_token` should contain a
460
- # next_page_token from a
461
- # previous ListDatabasesResponse.
462
- # @param [Fixnum] page_size
463
- # Number of databases to be returned in the response. If 0 or less,
464
- # defaults to the server's maximum allowed page size.
454
+ # Returns permissions that the caller has on the specified instance resource.
455
+ # Attempting this RPC on a non-existent Cloud Spanner instance resource will
456
+ # result in a NOT_FOUND error if the user has `spanner.instances.list`
457
+ # permission on the containing Google Cloud Project. Otherwise returns an
458
+ # empty set of permissions.
459
+ # @param [String] resource
460
+ # REQUIRED: The Cloud Spanner resource for which permissions are being tested.
461
+ # The format is `projects/<project ID>/instances/<instance ID>` for instance
462
+ # resources and `projects/<project ID>/instances/<instance ID>/databases/<
463
+ # database ID>` for database resources.
464
+ # @param [Google::Apis::SpannerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
465
+ # @param [String] fields
466
+ # Selector specifying which fields to include in a partial response.
465
467
  # @param [String] quota_user
466
468
  # Available to use for quota purposes for server-side applications. Can be any
467
469
  # arbitrary string assigned to a user, but should not exceed 40 characters.
468
- # @param [String] fields
469
- # Selector specifying which fields to include in a partial response.
470
470
  # @param [Google::Apis::RequestOptions] options
471
471
  # Request-specific options
472
472
  #
473
473
  # @yield [result, err] Result & error if block supplied
474
- # @yieldparam result [Google::Apis::SpannerV1::ListDatabasesResponse] parsed result object
474
+ # @yieldparam result [Google::Apis::SpannerV1::TestIamPermissionsResponse] parsed result object
475
475
  # @yieldparam err [StandardError] error object if request failed
476
476
  #
477
- # @return [Google::Apis::SpannerV1::ListDatabasesResponse]
477
+ # @return [Google::Apis::SpannerV1::TestIamPermissionsResponse]
478
478
  #
479
479
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
480
480
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
481
481
  # @raise [Google::Apis::AuthorizationError] Authorization is required
482
- def list_project_instance_databases(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
483
- command = make_simple_command(:get, 'v1/{+parent}/databases', options)
484
- command.response_representation = Google::Apis::SpannerV1::ListDatabasesResponse::Representation
485
- command.response_class = Google::Apis::SpannerV1::ListDatabasesResponse
486
- command.params['parent'] = parent unless parent.nil?
487
- command.query['pageToken'] = page_token unless page_token.nil?
488
- command.query['pageSize'] = page_size unless page_size.nil?
489
- command.query['quotaUser'] = quota_user unless quota_user.nil?
482
+ def test_instance_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
483
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
484
+ command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
485
+ command.request_object = test_iam_permissions_request_object
486
+ command.response_representation = Google::Apis::SpannerV1::TestIamPermissionsResponse::Representation
487
+ command.response_class = Google::Apis::SpannerV1::TestIamPermissionsResponse
488
+ command.params['resource'] = resource unless resource.nil?
490
489
  command.query['fields'] = fields unless fields.nil?
490
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
491
491
  execute_or_queue_command(command, &block)
492
492
  end
493
493
 
@@ -503,11 +503,11 @@ module Google
503
503
  # Required. The name of the instance that will serve the new database.
504
504
  # Values are of the form `projects/<project>/instances/<instance>`.
505
505
  # @param [Google::Apis::SpannerV1::CreateDatabaseRequest] create_database_request_object
506
+ # @param [String] fields
507
+ # Selector specifying which fields to include in a partial response.
506
508
  # @param [String] quota_user
507
509
  # Available to use for quota purposes for server-side applications. Can be any
508
510
  # arbitrary string assigned to a user, but should not exceed 40 characters.
509
- # @param [String] fields
510
- # Selector specifying which fields to include in a partial response.
511
511
  # @param [Google::Apis::RequestOptions] options
512
512
  # Request-specific options
513
513
  #
@@ -520,93 +520,45 @@ module Google
520
520
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
521
521
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
522
522
  # @raise [Google::Apis::AuthorizationError] Authorization is required
523
- def create_database(parent, create_database_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
523
+ def create_database(parent, create_database_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
524
524
  command = make_simple_command(:post, 'v1/{+parent}/databases', options)
525
525
  command.request_representation = Google::Apis::SpannerV1::CreateDatabaseRequest::Representation
526
526
  command.request_object = create_database_request_object
527
527
  command.response_representation = Google::Apis::SpannerV1::Operation::Representation
528
528
  command.response_class = Google::Apis::SpannerV1::Operation
529
529
  command.params['parent'] = parent unless parent.nil?
530
- command.query['quotaUser'] = quota_user unless quota_user.nil?
531
530
  command.query['fields'] = fields unless fields.nil?
531
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
532
532
  execute_or_queue_command(command, &block)
533
533
  end
534
534
 
535
- # Sets the access control policy on a database resource. Replaces any
536
- # existing policy.
537
- # Authorization requires `spanner.databases.setIamPolicy` permission on
538
- # resource.
539
- # @param [String] resource
540
- # REQUIRED: The Cloud Spanner resource for which the policy is being set. The
541
- # format is `projects/<project ID>/instances/<instance ID>` for instance
542
- # resources and `projects/<project ID>/instances/<instance ID>/databases/<
543
- # database ID>` for databases resources.
544
- # @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_request_object
545
- # @param [String] quota_user
546
- # Available to use for quota purposes for server-side applications. Can be any
547
- # arbitrary string assigned to a user, but should not exceed 40 characters.
535
+ # Drops (aka deletes) a Cloud Spanner database.
536
+ # @param [String] database
537
+ # Required. The database to be dropped.
548
538
  # @param [String] fields
549
539
  # Selector specifying which fields to include in a partial response.
550
- # @param [Google::Apis::RequestOptions] options
551
- # Request-specific options
552
- #
553
- # @yield [result, err] Result & error if block supplied
554
- # @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
555
- # @yieldparam err [StandardError] error object if request failed
556
- #
557
- # @return [Google::Apis::SpannerV1::Policy]
558
- #
559
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
560
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
561
- # @raise [Google::Apis::AuthorizationError] Authorization is required
562
- def set_database_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
563
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
564
- command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
565
- command.request_object = set_iam_policy_request_object
566
- command.response_representation = Google::Apis::SpannerV1::Policy::Representation
567
- command.response_class = Google::Apis::SpannerV1::Policy
568
- command.params['resource'] = resource unless resource.nil?
569
- command.query['quotaUser'] = quota_user unless quota_user.nil?
570
- command.query['fields'] = fields unless fields.nil?
571
- execute_or_queue_command(command, &block)
572
- end
573
-
574
- # Gets the access control policy for a database resource. Returns an empty
575
- # policy if a database exists but does not have a policy set.
576
- # Authorization requires `spanner.databases.getIamPolicy` permission on
577
- # resource.
578
- # @param [String] resource
579
- # REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
580
- # The format is `projects/<project ID>/instances/<instance ID>` for instance
581
- # resources and `projects/<project ID>/instances/<instance ID>/databases/<
582
- # database ID>` for database resources.
583
- # @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_request_object
584
540
  # @param [String] quota_user
585
541
  # Available to use for quota purposes for server-side applications. Can be any
586
542
  # arbitrary string assigned to a user, but should not exceed 40 characters.
587
- # @param [String] fields
588
- # Selector specifying which fields to include in a partial response.
589
543
  # @param [Google::Apis::RequestOptions] options
590
544
  # Request-specific options
591
545
  #
592
546
  # @yield [result, err] Result & error if block supplied
593
- # @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
547
+ # @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
594
548
  # @yieldparam err [StandardError] error object if request failed
595
549
  #
596
- # @return [Google::Apis::SpannerV1::Policy]
550
+ # @return [Google::Apis::SpannerV1::Empty]
597
551
  #
598
552
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
599
553
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
600
554
  # @raise [Google::Apis::AuthorizationError] Authorization is required
601
- def get_database_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
602
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
603
- command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
604
- command.request_object = get_iam_policy_request_object
605
- command.response_representation = Google::Apis::SpannerV1::Policy::Representation
606
- command.response_class = Google::Apis::SpannerV1::Policy
607
- command.params['resource'] = resource unless resource.nil?
608
- command.query['quotaUser'] = quota_user unless quota_user.nil?
555
+ def drop_project_instance_database_database(database, fields: nil, quota_user: nil, options: nil, &block)
556
+ command = make_simple_command(:delete, 'v1/{+database}', options)
557
+ command.response_representation = Google::Apis::SpannerV1::Empty::Representation
558
+ command.response_class = Google::Apis::SpannerV1::Empty
559
+ command.params['database'] = database unless database.nil?
609
560
  command.query['fields'] = fields unless fields.nil?
561
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
610
562
  execute_or_queue_command(command, &block)
611
563
  end
612
564
 
@@ -614,11 +566,11 @@ module Google
614
566
  # @param [String] name
615
567
  # Required. The name of the requested database. Values are of the form
616
568
  # `projects/<project>/instances/<instance>/databases/<database>`.
569
+ # @param [String] fields
570
+ # Selector specifying which fields to include in a partial response.
617
571
  # @param [String] quota_user
618
572
  # Available to use for quota purposes for server-side applications. Can be any
619
573
  # arbitrary string assigned to a user, but should not exceed 40 characters.
620
- # @param [String] fields
621
- # Selector specifying which fields to include in a partial response.
622
574
  # @param [Google::Apis::RequestOptions] options
623
575
  # Request-specific options
624
576
  #
@@ -631,456 +583,468 @@ module Google
631
583
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
632
584
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
633
585
  # @raise [Google::Apis::AuthorizationError] Authorization is required
634
- def get_project_instance_database(name, quota_user: nil, fields: nil, options: nil, &block)
586
+ def get_project_instance_database(name, fields: nil, quota_user: nil, options: nil, &block)
635
587
  command = make_simple_command(:get, 'v1/{+name}', options)
636
588
  command.response_representation = Google::Apis::SpannerV1::Database::Representation
637
589
  command.response_class = Google::Apis::SpannerV1::Database
638
590
  command.params['name'] = name unless name.nil?
639
- command.query['quotaUser'] = quota_user unless quota_user.nil?
640
591
  command.query['fields'] = fields unless fields.nil?
592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
641
593
  execute_or_queue_command(command, &block)
642
594
  end
643
595
 
644
- # Drops (aka deletes) a Cloud Spanner database.
596
+ # Returns the schema of a Cloud Spanner database as a list of formatted
597
+ # DDL statements. This method does not show pending schema updates, those may
598
+ # be queried using the Operations API.
645
599
  # @param [String] database
646
- # Required. The database to be dropped.
600
+ # Required. The database whose schema we wish to get.
601
+ # @param [String] fields
602
+ # Selector specifying which fields to include in a partial response.
647
603
  # @param [String] quota_user
648
604
  # Available to use for quota purposes for server-side applications. Can be any
649
605
  # arbitrary string assigned to a user, but should not exceed 40 characters.
650
- # @param [String] fields
651
- # Selector specifying which fields to include in a partial response.
652
606
  # @param [Google::Apis::RequestOptions] options
653
607
  # Request-specific options
654
608
  #
655
609
  # @yield [result, err] Result & error if block supplied
656
- # @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
610
+ # @yieldparam result [Google::Apis::SpannerV1::GetDatabaseDdlResponse] parsed result object
657
611
  # @yieldparam err [StandardError] error object if request failed
658
612
  #
659
- # @return [Google::Apis::SpannerV1::Empty]
613
+ # @return [Google::Apis::SpannerV1::GetDatabaseDdlResponse]
660
614
  #
661
615
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
662
616
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
663
617
  # @raise [Google::Apis::AuthorizationError] Authorization is required
664
- def drop_project_instance_database_database(database, quota_user: nil, fields: nil, options: nil, &block)
665
- command = make_simple_command(:delete, 'v1/{+database}', options)
666
- command.response_representation = Google::Apis::SpannerV1::Empty::Representation
667
- command.response_class = Google::Apis::SpannerV1::Empty
618
+ def get_project_instance_database_ddl(database, fields: nil, quota_user: nil, options: nil, &block)
619
+ command = make_simple_command(:get, 'v1/{+database}/ddl', options)
620
+ command.response_representation = Google::Apis::SpannerV1::GetDatabaseDdlResponse::Representation
621
+ command.response_class = Google::Apis::SpannerV1::GetDatabaseDdlResponse
668
622
  command.params['database'] = database unless database.nil?
669
- command.query['quotaUser'] = quota_user unless quota_user.nil?
670
623
  command.query['fields'] = fields unless fields.nil?
624
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
671
625
  execute_or_queue_command(command, &block)
672
626
  end
673
627
 
674
- # Updates the schema of a Cloud Spanner database by
675
- # creating/altering/dropping tables, columns, indexes, etc. The returned
676
- # long-running operation will have a name of
677
- # the format `<database_name>/operations/<operation_id>` and can be used to
678
- # track execution of the schema change(s). The
679
- # metadata field type is
680
- # UpdateDatabaseDdlMetadata. The operation has no response.
681
- # @param [String] database
682
- # Required. The database to update.
683
- # @param [Google::Apis::SpannerV1::UpdateDatabaseDdlRequest] update_database_ddl_request_object
628
+ # Gets the access control policy for a database resource. Returns an empty
629
+ # policy if a database exists but does not have a policy set.
630
+ # Authorization requires `spanner.databases.getIamPolicy` permission on
631
+ # resource.
632
+ # @param [String] resource
633
+ # REQUIRED: The Cloud Spanner resource for which the policy is being retrieved.
634
+ # The format is `projects/<project ID>/instances/<instance ID>` for instance
635
+ # resources and `projects/<project ID>/instances/<instance ID>/databases/<
636
+ # database ID>` for database resources.
637
+ # @param [Google::Apis::SpannerV1::GetIamPolicyRequest] get_iam_policy_request_object
638
+ # @param [String] fields
639
+ # Selector specifying which fields to include in a partial response.
684
640
  # @param [String] quota_user
685
641
  # Available to use for quota purposes for server-side applications. Can be any
686
642
  # arbitrary string assigned to a user, but should not exceed 40 characters.
687
- # @param [String] fields
688
- # Selector specifying which fields to include in a partial response.
689
643
  # @param [Google::Apis::RequestOptions] options
690
644
  # Request-specific options
691
645
  #
692
646
  # @yield [result, err] Result & error if block supplied
693
- # @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
647
+ # @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
694
648
  # @yieldparam err [StandardError] error object if request failed
695
649
  #
696
- # @return [Google::Apis::SpannerV1::Operation]
650
+ # @return [Google::Apis::SpannerV1::Policy]
697
651
  #
698
652
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
699
653
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
700
654
  # @raise [Google::Apis::AuthorizationError] Authorization is required
701
- def update_project_instance_database_ddl(database, update_database_ddl_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
702
- command = make_simple_command(:patch, 'v1/{+database}/ddl', options)
703
- command.request_representation = Google::Apis::SpannerV1::UpdateDatabaseDdlRequest::Representation
704
- command.request_object = update_database_ddl_request_object
705
- command.response_representation = Google::Apis::SpannerV1::Operation::Representation
706
- command.response_class = Google::Apis::SpannerV1::Operation
707
- command.params['database'] = database unless database.nil?
708
- command.query['quotaUser'] = quota_user unless quota_user.nil?
655
+ def get_database_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
656
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
657
+ command.request_representation = Google::Apis::SpannerV1::GetIamPolicyRequest::Representation
658
+ command.request_object = get_iam_policy_request_object
659
+ command.response_representation = Google::Apis::SpannerV1::Policy::Representation
660
+ command.response_class = Google::Apis::SpannerV1::Policy
661
+ command.params['resource'] = resource unless resource.nil?
709
662
  command.query['fields'] = fields unless fields.nil?
663
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
710
664
  execute_or_queue_command(command, &block)
711
665
  end
712
666
 
713
- # Returns permissions that the caller has on the specified database resource.
714
- # Attempting this RPC on a non-existent Cloud Spanner database will result in
715
- # a NOT_FOUND error if the user has `spanner.databases.list` permission on
716
- # the containing Cloud Spanner instance. Otherwise returns an empty set of
717
- # permissions.
718
- # @param [String] resource
719
- # REQUIRED: The Cloud Spanner resource for which permissions are being tested.
720
- # The format is `projects/<project ID>/instances/<instance ID>` for instance
721
- # resources and `projects/<project ID>/instances/<instance ID>/databases/<
722
- # database ID>` for database resources.
723
- # @param [Google::Apis::SpannerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
667
+ # Lists Cloud Spanner databases.
668
+ # @param [String] parent
669
+ # Required. The instance whose databases should be listed.
670
+ # Values are of the form `projects/<project>/instances/<instance>`.
671
+ # @param [Fixnum] page_size
672
+ # Number of databases to be returned in the response. If 0 or less,
673
+ # defaults to the server's maximum allowed page size.
674
+ # @param [String] page_token
675
+ # If non-empty, `page_token` should contain a
676
+ # next_page_token from a
677
+ # previous ListDatabasesResponse.
678
+ # @param [String] fields
679
+ # Selector specifying which fields to include in a partial response.
724
680
  # @param [String] quota_user
725
681
  # Available to use for quota purposes for server-side applications. Can be any
726
682
  # arbitrary string assigned to a user, but should not exceed 40 characters.
727
- # @param [String] fields
728
- # Selector specifying which fields to include in a partial response.
729
683
  # @param [Google::Apis::RequestOptions] options
730
684
  # Request-specific options
731
685
  #
732
686
  # @yield [result, err] Result & error if block supplied
733
- # @yieldparam result [Google::Apis::SpannerV1::TestIamPermissionsResponse] parsed result object
687
+ # @yieldparam result [Google::Apis::SpannerV1::ListDatabasesResponse] parsed result object
734
688
  # @yieldparam err [StandardError] error object if request failed
735
689
  #
736
- # @return [Google::Apis::SpannerV1::TestIamPermissionsResponse]
690
+ # @return [Google::Apis::SpannerV1::ListDatabasesResponse]
737
691
  #
738
692
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
739
693
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
740
694
  # @raise [Google::Apis::AuthorizationError] Authorization is required
741
- def test_database_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
742
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
743
- command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
744
- command.request_object = test_iam_permissions_request_object
745
- command.response_representation = Google::Apis::SpannerV1::TestIamPermissionsResponse::Representation
746
- command.response_class = Google::Apis::SpannerV1::TestIamPermissionsResponse
747
- command.params['resource'] = resource unless resource.nil?
748
- command.query['quotaUser'] = quota_user unless quota_user.nil?
695
+ def list_project_instance_databases(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
696
+ command = make_simple_command(:get, 'v1/{+parent}/databases', options)
697
+ command.response_representation = Google::Apis::SpannerV1::ListDatabasesResponse::Representation
698
+ command.response_class = Google::Apis::SpannerV1::ListDatabasesResponse
699
+ command.params['parent'] = parent unless parent.nil?
700
+ command.query['pageSize'] = page_size unless page_size.nil?
701
+ command.query['pageToken'] = page_token unless page_token.nil?
749
702
  command.query['fields'] = fields unless fields.nil?
703
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
750
704
  execute_or_queue_command(command, &block)
751
705
  end
752
706
 
753
- # Reads rows from the database using key lookups and scans, as a
754
- # simple key/value style alternative to
755
- # ExecuteSql. This method cannot be used to
756
- # return a result set larger than 10 MiB; if the read matches more
757
- # data than that, the read fails with a `FAILED_PRECONDITION`
758
- # error.
759
- # Reads inside read-write transactions might return `ABORTED`. If
760
- # this occurs, the application should restart the transaction from
761
- # the beginning. See Transaction for more details.
762
- # Larger result sets can be yielded in streaming fashion by calling
763
- # StreamingRead instead.
764
- # @param [String] session
765
- # Required. The session in which the read should be performed.
766
- # @param [Google::Apis::SpannerV1::ReadRequest] read_request_object
707
+ # Sets the access control policy on a database resource. Replaces any
708
+ # existing policy.
709
+ # Authorization requires `spanner.databases.setIamPolicy` permission on
710
+ # resource.
711
+ # @param [String] resource
712
+ # REQUIRED: The Cloud Spanner resource for which the policy is being set. The
713
+ # format is `projects/<project ID>/instances/<instance ID>` for instance
714
+ # resources and `projects/<project ID>/instances/<instance ID>/databases/<
715
+ # database ID>` for databases resources.
716
+ # @param [Google::Apis::SpannerV1::SetIamPolicyRequest] set_iam_policy_request_object
717
+ # @param [String] fields
718
+ # Selector specifying which fields to include in a partial response.
767
719
  # @param [String] quota_user
768
720
  # Available to use for quota purposes for server-side applications. Can be any
769
721
  # arbitrary string assigned to a user, but should not exceed 40 characters.
770
- # @param [String] fields
771
- # Selector specifying which fields to include in a partial response.
772
722
  # @param [Google::Apis::RequestOptions] options
773
723
  # Request-specific options
774
724
  #
775
725
  # @yield [result, err] Result & error if block supplied
776
- # @yieldparam result [Google::Apis::SpannerV1::ResultSet] parsed result object
726
+ # @yieldparam result [Google::Apis::SpannerV1::Policy] parsed result object
777
727
  # @yieldparam err [StandardError] error object if request failed
778
728
  #
779
- # @return [Google::Apis::SpannerV1::ResultSet]
729
+ # @return [Google::Apis::SpannerV1::Policy]
780
730
  #
781
731
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
782
732
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
783
733
  # @raise [Google::Apis::AuthorizationError] Authorization is required
784
- def read_session(session, read_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
785
- command = make_simple_command(:post, 'v1/{+session}:read', options)
786
- command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
787
- command.request_object = read_request_object
788
- command.response_representation = Google::Apis::SpannerV1::ResultSet::Representation
789
- command.response_class = Google::Apis::SpannerV1::ResultSet
790
- command.params['session'] = session unless session.nil?
791
- command.query['quotaUser'] = quota_user unless quota_user.nil?
734
+ def set_database_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
735
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
736
+ command.request_representation = Google::Apis::SpannerV1::SetIamPolicyRequest::Representation
737
+ command.request_object = set_iam_policy_request_object
738
+ command.response_representation = Google::Apis::SpannerV1::Policy::Representation
739
+ command.response_class = Google::Apis::SpannerV1::Policy
740
+ command.params['resource'] = resource unless resource.nil?
792
741
  command.query['fields'] = fields unless fields.nil?
742
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
793
743
  execute_or_queue_command(command, &block)
794
744
  end
795
745
 
796
- # Gets a session. Returns `NOT_FOUND` if the session does not exist.
797
- # This is mainly useful for determining whether a session is still
798
- # alive.
799
- # @param [String] name
800
- # Required. The name of the session to retrieve.
746
+ # Returns permissions that the caller has on the specified database resource.
747
+ # Attempting this RPC on a non-existent Cloud Spanner database will result in
748
+ # a NOT_FOUND error if the user has `spanner.databases.list` permission on
749
+ # the containing Cloud Spanner instance. Otherwise returns an empty set of
750
+ # permissions.
751
+ # @param [String] resource
752
+ # REQUIRED: The Cloud Spanner resource for which permissions are being tested.
753
+ # The format is `projects/<project ID>/instances/<instance ID>` for instance
754
+ # resources and `projects/<project ID>/instances/<instance ID>/databases/<
755
+ # database ID>` for database resources.
756
+ # @param [Google::Apis::SpannerV1::TestIamPermissionsRequest] test_iam_permissions_request_object
757
+ # @param [String] fields
758
+ # Selector specifying which fields to include in a partial response.
801
759
  # @param [String] quota_user
802
760
  # Available to use for quota purposes for server-side applications. Can be any
803
761
  # arbitrary string assigned to a user, but should not exceed 40 characters.
804
- # @param [String] fields
805
- # Selector specifying which fields to include in a partial response.
806
762
  # @param [Google::Apis::RequestOptions] options
807
763
  # Request-specific options
808
764
  #
809
765
  # @yield [result, err] Result & error if block supplied
810
- # @yieldparam result [Google::Apis::SpannerV1::Session] parsed result object
766
+ # @yieldparam result [Google::Apis::SpannerV1::TestIamPermissionsResponse] parsed result object
811
767
  # @yieldparam err [StandardError] error object if request failed
812
768
  #
813
- # @return [Google::Apis::SpannerV1::Session]
769
+ # @return [Google::Apis::SpannerV1::TestIamPermissionsResponse]
814
770
  #
815
771
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
816
772
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
817
773
  # @raise [Google::Apis::AuthorizationError] Authorization is required
818
- def get_project_instance_database_session(name, quota_user: nil, fields: nil, options: nil, &block)
819
- command = make_simple_command(:get, 'v1/{+name}', options)
820
- command.response_representation = Google::Apis::SpannerV1::Session::Representation
821
- command.response_class = Google::Apis::SpannerV1::Session
822
- command.params['name'] = name unless name.nil?
823
- command.query['quotaUser'] = quota_user unless quota_user.nil?
774
+ def test_database_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
775
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
776
+ command.request_representation = Google::Apis::SpannerV1::TestIamPermissionsRequest::Representation
777
+ command.request_object = test_iam_permissions_request_object
778
+ command.response_representation = Google::Apis::SpannerV1::TestIamPermissionsResponse::Representation
779
+ command.response_class = Google::Apis::SpannerV1::TestIamPermissionsResponse
780
+ command.params['resource'] = resource unless resource.nil?
824
781
  command.query['fields'] = fields unless fields.nil?
782
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
825
783
  execute_or_queue_command(command, &block)
826
784
  end
827
785
 
828
- # Like ExecuteSql, except returns the result
829
- # set as a stream. Unlike ExecuteSql, there
830
- # is no limit on the size of the returned result set. However, no
831
- # individual row in the result set can exceed 100 MiB, and no
832
- # column value can exceed 10 MiB.
833
- # @param [String] session
834
- # Required. The session in which the SQL query should be performed.
835
- # @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_request_object
786
+ # Updates the schema of a Cloud Spanner database by
787
+ # creating/altering/dropping tables, columns, indexes, etc. The returned
788
+ # long-running operation will have a name of
789
+ # the format `<database_name>/operations/<operation_id>` and can be used to
790
+ # track execution of the schema change(s). The
791
+ # metadata field type is
792
+ # UpdateDatabaseDdlMetadata. The operation has no response.
793
+ # @param [String] database
794
+ # Required. The database to update.
795
+ # @param [Google::Apis::SpannerV1::UpdateDatabaseDdlRequest] update_database_ddl_request_object
796
+ # @param [String] fields
797
+ # Selector specifying which fields to include in a partial response.
836
798
  # @param [String] quota_user
837
799
  # Available to use for quota purposes for server-side applications. Can be any
838
800
  # arbitrary string assigned to a user, but should not exceed 40 characters.
839
- # @param [String] fields
840
- # Selector specifying which fields to include in a partial response.
841
801
  # @param [Google::Apis::RequestOptions] options
842
802
  # Request-specific options
843
803
  #
844
804
  # @yield [result, err] Result & error if block supplied
845
- # @yieldparam result [Google::Apis::SpannerV1::PartialResultSet] parsed result object
805
+ # @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
846
806
  # @yieldparam err [StandardError] error object if request failed
847
807
  #
848
- # @return [Google::Apis::SpannerV1::PartialResultSet]
808
+ # @return [Google::Apis::SpannerV1::Operation]
849
809
  #
850
810
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
851
811
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
852
812
  # @raise [Google::Apis::AuthorizationError] Authorization is required
853
- def execute_project_instance_database_session_streaming_sql(session, execute_sql_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
854
- command = make_simple_command(:post, 'v1/{+session}:executeStreamingSql', options)
855
- command.request_representation = Google::Apis::SpannerV1::ExecuteSqlRequest::Representation
856
- command.request_object = execute_sql_request_object
857
- command.response_representation = Google::Apis::SpannerV1::PartialResultSet::Representation
858
- command.response_class = Google::Apis::SpannerV1::PartialResultSet
859
- command.params['session'] = session unless session.nil?
860
- command.query['quotaUser'] = quota_user unless quota_user.nil?
813
+ def update_project_instance_database_ddl(database, update_database_ddl_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
814
+ command = make_simple_command(:patch, 'v1/{+database}/ddl', options)
815
+ command.request_representation = Google::Apis::SpannerV1::UpdateDatabaseDdlRequest::Representation
816
+ command.request_object = update_database_ddl_request_object
817
+ command.response_representation = Google::Apis::SpannerV1::Operation::Representation
818
+ command.response_class = Google::Apis::SpannerV1::Operation
819
+ command.params['database'] = database unless database.nil?
861
820
  command.query['fields'] = fields unless fields.nil?
821
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
862
822
  execute_or_queue_command(command, &block)
863
823
  end
864
824
 
865
- # Commits a transaction. The request includes the mutations to be
866
- # applied to rows in the database.
867
- # `Commit` might return an `ABORTED` error. This can occur at any time;
868
- # commonly, the cause is conflicts with concurrent
869
- # transactions. However, it can also happen for a variety of other
870
- # reasons. If `Commit` returns `ABORTED`, the caller should re-attempt
871
- # the transaction from the beginning, re-using the same session.
872
- # @param [String] session
873
- # Required. The session in which the transaction to be committed is running.
874
- # @param [Google::Apis::SpannerV1::CommitRequest] commit_request_object
825
+ # Starts asynchronous cancellation on a long-running operation. The server
826
+ # makes a best effort to cancel the operation, but success is not
827
+ # guaranteed. If the server doesn't support this method, it returns
828
+ # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
829
+ # Operations.GetOperation or
830
+ # other methods to check whether the cancellation succeeded or whether the
831
+ # operation completed despite cancellation. On successful cancellation,
832
+ # the operation is not deleted; instead, it becomes an operation with
833
+ # an Operation.error value with a google.rpc.Status.code of 1,
834
+ # corresponding to `Code.CANCELLED`.
835
+ # @param [String] name
836
+ # The name of the operation resource to be cancelled.
837
+ # @param [String] fields
838
+ # Selector specifying which fields to include in a partial response.
875
839
  # @param [String] quota_user
876
840
  # Available to use for quota purposes for server-side applications. Can be any
877
841
  # arbitrary string assigned to a user, but should not exceed 40 characters.
878
- # @param [String] fields
879
- # Selector specifying which fields to include in a partial response.
880
842
  # @param [Google::Apis::RequestOptions] options
881
843
  # Request-specific options
882
844
  #
883
845
  # @yield [result, err] Result & error if block supplied
884
- # @yieldparam result [Google::Apis::SpannerV1::CommitResponse] parsed result object
846
+ # @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
885
847
  # @yieldparam err [StandardError] error object if request failed
886
848
  #
887
- # @return [Google::Apis::SpannerV1::CommitResponse]
849
+ # @return [Google::Apis::SpannerV1::Empty]
888
850
  #
889
851
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
890
852
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
891
853
  # @raise [Google::Apis::AuthorizationError] Authorization is required
892
- def commit_session(session, commit_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
893
- command = make_simple_command(:post, 'v1/{+session}:commit', options)
894
- command.request_representation = Google::Apis::SpannerV1::CommitRequest::Representation
895
- command.request_object = commit_request_object
896
- command.response_representation = Google::Apis::SpannerV1::CommitResponse::Representation
897
- command.response_class = Google::Apis::SpannerV1::CommitResponse
898
- command.params['session'] = session unless session.nil?
899
- command.query['quotaUser'] = quota_user unless quota_user.nil?
854
+ def cancel_project_instance_database_operation(name, fields: nil, quota_user: nil, options: nil, &block)
855
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
856
+ command.response_representation = Google::Apis::SpannerV1::Empty::Representation
857
+ command.response_class = Google::Apis::SpannerV1::Empty
858
+ command.params['name'] = name unless name.nil?
900
859
  command.query['fields'] = fields unless fields.nil?
901
- execute_or_queue_command(command, &block)
902
- end
903
-
904
- # Begins a new transaction. This step can often be skipped:
905
- # Read, ExecuteSql and
906
- # Commit can begin a new transaction as a
907
- # side-effect.
908
- # @param [String] session
909
- # Required. The session in which the transaction runs.
910
- # @param [Google::Apis::SpannerV1::BeginTransactionRequest] begin_transaction_request_object
860
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
861
+ execute_or_queue_command(command, &block)
862
+ end
863
+
864
+ # Deletes a long-running operation. This method indicates that the client is
865
+ # no longer interested in the operation result. It does not cancel the
866
+ # operation. If the server doesn't support this method, it returns
867
+ # `google.rpc.Code.UNIMPLEMENTED`.
868
+ # @param [String] name
869
+ # The name of the operation resource to be deleted.
870
+ # @param [String] fields
871
+ # Selector specifying which fields to include in a partial response.
911
872
  # @param [String] quota_user
912
873
  # Available to use for quota purposes for server-side applications. Can be any
913
874
  # arbitrary string assigned to a user, but should not exceed 40 characters.
914
- # @param [String] fields
915
- # Selector specifying which fields to include in a partial response.
916
875
  # @param [Google::Apis::RequestOptions] options
917
876
  # Request-specific options
918
877
  #
919
878
  # @yield [result, err] Result & error if block supplied
920
- # @yieldparam result [Google::Apis::SpannerV1::Transaction] parsed result object
879
+ # @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
921
880
  # @yieldparam err [StandardError] error object if request failed
922
881
  #
923
- # @return [Google::Apis::SpannerV1::Transaction]
882
+ # @return [Google::Apis::SpannerV1::Empty]
924
883
  #
925
884
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
926
885
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
927
886
  # @raise [Google::Apis::AuthorizationError] Authorization is required
928
- def begin_session_transaction(session, begin_transaction_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
929
- command = make_simple_command(:post, 'v1/{+session}:beginTransaction', options)
930
- command.request_representation = Google::Apis::SpannerV1::BeginTransactionRequest::Representation
931
- command.request_object = begin_transaction_request_object
932
- command.response_representation = Google::Apis::SpannerV1::Transaction::Representation
933
- command.response_class = Google::Apis::SpannerV1::Transaction
934
- command.params['session'] = session unless session.nil?
935
- command.query['quotaUser'] = quota_user unless quota_user.nil?
887
+ def delete_project_instance_database_operation(name, fields: nil, quota_user: nil, options: nil, &block)
888
+ command = make_simple_command(:delete, 'v1/{+name}', options)
889
+ command.response_representation = Google::Apis::SpannerV1::Empty::Representation
890
+ command.response_class = Google::Apis::SpannerV1::Empty
891
+ command.params['name'] = name unless name.nil?
936
892
  command.query['fields'] = fields unless fields.nil?
893
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
937
894
  execute_or_queue_command(command, &block)
938
895
  end
939
896
 
940
- # Ends a session, releasing server resources associated with it.
897
+ # Gets the latest state of a long-running operation. Clients can use this
898
+ # method to poll the operation result at intervals as recommended by the API
899
+ # service.
941
900
  # @param [String] name
942
- # Required. The name of the session to delete.
901
+ # The name of the operation resource.
902
+ # @param [String] fields
903
+ # Selector specifying which fields to include in a partial response.
943
904
  # @param [String] quota_user
944
905
  # Available to use for quota purposes for server-side applications. Can be any
945
906
  # arbitrary string assigned to a user, but should not exceed 40 characters.
946
- # @param [String] fields
947
- # Selector specifying which fields to include in a partial response.
948
907
  # @param [Google::Apis::RequestOptions] options
949
908
  # Request-specific options
950
909
  #
951
910
  # @yield [result, err] Result & error if block supplied
952
- # @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
911
+ # @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
953
912
  # @yieldparam err [StandardError] error object if request failed
954
913
  #
955
- # @return [Google::Apis::SpannerV1::Empty]
914
+ # @return [Google::Apis::SpannerV1::Operation]
956
915
  #
957
916
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
958
917
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
959
918
  # @raise [Google::Apis::AuthorizationError] Authorization is required
960
- def delete_project_instance_database_session(name, quota_user: nil, fields: nil, options: nil, &block)
961
- command = make_simple_command(:delete, 'v1/{+name}', options)
962
- command.response_representation = Google::Apis::SpannerV1::Empty::Representation
963
- command.response_class = Google::Apis::SpannerV1::Empty
919
+ def get_project_instance_database_operation(name, fields: nil, quota_user: nil, options: nil, &block)
920
+ command = make_simple_command(:get, 'v1/{+name}', options)
921
+ command.response_representation = Google::Apis::SpannerV1::Operation::Representation
922
+ command.response_class = Google::Apis::SpannerV1::Operation
964
923
  command.params['name'] = name unless name.nil?
965
- command.query['quotaUser'] = quota_user unless quota_user.nil?
966
924
  command.query['fields'] = fields unless fields.nil?
925
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
967
926
  execute_or_queue_command(command, &block)
968
927
  end
969
928
 
970
- # Executes an SQL query, returning all rows in a single reply. This
971
- # method cannot be used to return a result set larger than 10 MiB;
972
- # if the query yields more data than that, the query fails with
973
- # a `FAILED_PRECONDITION` error.
974
- # Queries inside read-write transactions might return `ABORTED`. If
975
- # this occurs, the application should restart the transaction from
976
- # the beginning. See Transaction for more details.
977
- # Larger result sets can be fetched in streaming fashion by calling
978
- # ExecuteStreamingSql instead.
979
- # @param [String] session
980
- # Required. The session in which the SQL query should be performed.
981
- # @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_request_object
929
+ # Lists operations that match the specified filter in the request. If the
930
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
931
+ # NOTE: the `name` binding allows API services to override the binding
932
+ # to use different resource name schemes, such as `users/*/operations`. To
933
+ # override the binding, API services can add a binding such as
934
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
935
+ # For backwards compatibility, the default name includes the operations
936
+ # collection id, however overriding users must ensure the name binding
937
+ # is the parent resource, without the operations collection id.
938
+ # @param [String] name
939
+ # The name of the operation's parent resource.
940
+ # @param [String] filter
941
+ # The standard list filter.
942
+ # @param [Fixnum] page_size
943
+ # The standard list page size.
944
+ # @param [String] page_token
945
+ # The standard list page token.
946
+ # @param [String] fields
947
+ # Selector specifying which fields to include in a partial response.
982
948
  # @param [String] quota_user
983
949
  # Available to use for quota purposes for server-side applications. Can be any
984
950
  # arbitrary string assigned to a user, but should not exceed 40 characters.
985
- # @param [String] fields
986
- # Selector specifying which fields to include in a partial response.
987
951
  # @param [Google::Apis::RequestOptions] options
988
952
  # Request-specific options
989
953
  #
990
954
  # @yield [result, err] Result & error if block supplied
991
- # @yieldparam result [Google::Apis::SpannerV1::ResultSet] parsed result object
955
+ # @yieldparam result [Google::Apis::SpannerV1::ListOperationsResponse] parsed result object
992
956
  # @yieldparam err [StandardError] error object if request failed
993
957
  #
994
- # @return [Google::Apis::SpannerV1::ResultSet]
958
+ # @return [Google::Apis::SpannerV1::ListOperationsResponse]
995
959
  #
996
960
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
997
961
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
998
962
  # @raise [Google::Apis::AuthorizationError] Authorization is required
999
- def execute_session_sql(session, execute_sql_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1000
- command = make_simple_command(:post, 'v1/{+session}:executeSql', options)
1001
- command.request_representation = Google::Apis::SpannerV1::ExecuteSqlRequest::Representation
1002
- command.request_object = execute_sql_request_object
1003
- command.response_representation = Google::Apis::SpannerV1::ResultSet::Representation
1004
- command.response_class = Google::Apis::SpannerV1::ResultSet
1005
- command.params['session'] = session unless session.nil?
1006
- command.query['quotaUser'] = quota_user unless quota_user.nil?
963
+ def list_project_instance_database_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
964
+ command = make_simple_command(:get, 'v1/{+name}', options)
965
+ command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
966
+ command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
967
+ command.params['name'] = name unless name.nil?
968
+ command.query['filter'] = filter unless filter.nil?
969
+ command.query['pageSize'] = page_size unless page_size.nil?
970
+ command.query['pageToken'] = page_token unless page_token.nil?
1007
971
  command.query['fields'] = fields unless fields.nil?
972
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1008
973
  execute_or_queue_command(command, &block)
1009
974
  end
1010
975
 
1011
- # Rolls back a transaction, releasing any locks it holds. It is a good
1012
- # idea to call this for any transaction that includes one or more
1013
- # Read or ExecuteSql requests and
1014
- # ultimately decides not to commit.
1015
- # `Rollback` returns `OK` if it successfully aborts the transaction, the
1016
- # transaction was already aborted, or the transaction is not
1017
- # found. `Rollback` never returns `ABORTED`.
976
+ # Begins a new transaction. This step can often be skipped:
977
+ # Read, ExecuteSql and
978
+ # Commit can begin a new transaction as a
979
+ # side-effect.
1018
980
  # @param [String] session
1019
- # Required. The session in which the transaction to roll back is running.
1020
- # @param [Google::Apis::SpannerV1::RollbackRequest] rollback_request_object
981
+ # Required. The session in which the transaction runs.
982
+ # @param [Google::Apis::SpannerV1::BeginTransactionRequest] begin_transaction_request_object
983
+ # @param [String] fields
984
+ # Selector specifying which fields to include in a partial response.
1021
985
  # @param [String] quota_user
1022
986
  # Available to use for quota purposes for server-side applications. Can be any
1023
987
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1024
- # @param [String] fields
1025
- # Selector specifying which fields to include in a partial response.
1026
988
  # @param [Google::Apis::RequestOptions] options
1027
989
  # Request-specific options
1028
990
  #
1029
991
  # @yield [result, err] Result & error if block supplied
1030
- # @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
992
+ # @yieldparam result [Google::Apis::SpannerV1::Transaction] parsed result object
1031
993
  # @yieldparam err [StandardError] error object if request failed
1032
994
  #
1033
- # @return [Google::Apis::SpannerV1::Empty]
995
+ # @return [Google::Apis::SpannerV1::Transaction]
1034
996
  #
1035
997
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1036
998
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1037
999
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1038
- def rollback_session(session, rollback_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1039
- command = make_simple_command(:post, 'v1/{+session}:rollback', options)
1040
- command.request_representation = Google::Apis::SpannerV1::RollbackRequest::Representation
1041
- command.request_object = rollback_request_object
1042
- command.response_representation = Google::Apis::SpannerV1::Empty::Representation
1043
- command.response_class = Google::Apis::SpannerV1::Empty
1000
+ def begin_session_transaction(session, begin_transaction_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1001
+ command = make_simple_command(:post, 'v1/{+session}:beginTransaction', options)
1002
+ command.request_representation = Google::Apis::SpannerV1::BeginTransactionRequest::Representation
1003
+ command.request_object = begin_transaction_request_object
1004
+ command.response_representation = Google::Apis::SpannerV1::Transaction::Representation
1005
+ command.response_class = Google::Apis::SpannerV1::Transaction
1044
1006
  command.params['session'] = session unless session.nil?
1045
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1046
1007
  command.query['fields'] = fields unless fields.nil?
1008
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1047
1009
  execute_or_queue_command(command, &block)
1048
1010
  end
1049
1011
 
1050
- # Like Read, except returns the result set as a
1051
- # stream. Unlike Read, there is no limit on the
1052
- # size of the returned result set. However, no individual row in
1053
- # the result set can exceed 100 MiB, and no column value can exceed
1054
- # 10 MiB.
1012
+ # Commits a transaction. The request includes the mutations to be
1013
+ # applied to rows in the database.
1014
+ # `Commit` might return an `ABORTED` error. This can occur at any time;
1015
+ # commonly, the cause is conflicts with concurrent
1016
+ # transactions. However, it can also happen for a variety of other
1017
+ # reasons. If `Commit` returns `ABORTED`, the caller should re-attempt
1018
+ # the transaction from the beginning, re-using the same session.
1055
1019
  # @param [String] session
1056
- # Required. The session in which the read should be performed.
1057
- # @param [Google::Apis::SpannerV1::ReadRequest] read_request_object
1020
+ # Required. The session in which the transaction to be committed is running.
1021
+ # @param [Google::Apis::SpannerV1::CommitRequest] commit_request_object
1022
+ # @param [String] fields
1023
+ # Selector specifying which fields to include in a partial response.
1058
1024
  # @param [String] quota_user
1059
1025
  # Available to use for quota purposes for server-side applications. Can be any
1060
1026
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1061
- # @param [String] fields
1062
- # Selector specifying which fields to include in a partial response.
1063
1027
  # @param [Google::Apis::RequestOptions] options
1064
1028
  # Request-specific options
1065
1029
  #
1066
1030
  # @yield [result, err] Result & error if block supplied
1067
- # @yieldparam result [Google::Apis::SpannerV1::PartialResultSet] parsed result object
1031
+ # @yieldparam result [Google::Apis::SpannerV1::CommitResponse] parsed result object
1068
1032
  # @yieldparam err [StandardError] error object if request failed
1069
1033
  #
1070
- # @return [Google::Apis::SpannerV1::PartialResultSet]
1034
+ # @return [Google::Apis::SpannerV1::CommitResponse]
1071
1035
  #
1072
1036
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1073
1037
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1074
1038
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1075
- def streaming_project_instance_database_session_read(session, read_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
1076
- command = make_simple_command(:post, 'v1/{+session}:streamingRead', options)
1077
- command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
1078
- command.request_object = read_request_object
1079
- command.response_representation = Google::Apis::SpannerV1::PartialResultSet::Representation
1080
- command.response_class = Google::Apis::SpannerV1::PartialResultSet
1039
+ def commit_session(session, commit_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1040
+ command = make_simple_command(:post, 'v1/{+session}:commit', options)
1041
+ command.request_representation = Google::Apis::SpannerV1::CommitRequest::Representation
1042
+ command.request_object = commit_request_object
1043
+ command.response_representation = Google::Apis::SpannerV1::CommitResponse::Representation
1044
+ command.response_class = Google::Apis::SpannerV1::CommitResponse
1081
1045
  command.params['session'] = session unless session.nil?
1082
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1083
1046
  command.query['fields'] = fields unless fields.nil?
1047
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1084
1048
  execute_or_queue_command(command, &block)
1085
1049
  end
1086
1050
 
@@ -1102,11 +1066,11 @@ module Google
1102
1066
  # periodically, e.g., `"SELECT 1"`.
1103
1067
  # @param [String] database
1104
1068
  # Required. The database in which the new session is created.
1069
+ # @param [String] fields
1070
+ # Selector specifying which fields to include in a partial response.
1105
1071
  # @param [String] quota_user
1106
1072
  # Available to use for quota purposes for server-side applications. Can be any
1107
1073
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1108
- # @param [String] fields
1109
- # Selector specifying which fields to include in a partial response.
1110
1074
  # @param [Google::Apis::RequestOptions] options
1111
1075
  # Request-specific options
1112
1076
  #
@@ -1119,33 +1083,24 @@ module Google
1119
1083
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1120
1084
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1121
1085
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1122
- def create_project_instance_database_session(database, quota_user: nil, fields: nil, options: nil, &block)
1086
+ def create_project_instance_database_session(database, fields: nil, quota_user: nil, options: nil, &block)
1123
1087
  command = make_simple_command(:post, 'v1/{+database}/sessions', options)
1124
1088
  command.response_representation = Google::Apis::SpannerV1::Session::Representation
1125
1089
  command.response_class = Google::Apis::SpannerV1::Session
1126
1090
  command.params['database'] = database unless database.nil?
1127
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1128
1091
  command.query['fields'] = fields unless fields.nil?
1092
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1129
1093
  execute_or_queue_command(command, &block)
1130
1094
  end
1131
1095
 
1132
- # Starts asynchronous cancellation on a long-running operation. The server
1133
- # makes a best effort to cancel the operation, but success is not
1134
- # guaranteed. If the server doesn't support this method, it returns
1135
- # `google.rpc.Code.UNIMPLEMENTED`. Clients can use
1136
- # Operations.GetOperation or
1137
- # other methods to check whether the cancellation succeeded or whether the
1138
- # operation completed despite cancellation. On successful cancellation,
1139
- # the operation is not deleted; instead, it becomes an operation with
1140
- # an Operation.error value with a google.rpc.Status.code of 1,
1141
- # corresponding to `Code.CANCELLED`.
1096
+ # Ends a session, releasing server resources associated with it.
1142
1097
  # @param [String] name
1143
- # The name of the operation resource to be cancelled.
1098
+ # Required. The name of the session to delete.
1099
+ # @param [String] fields
1100
+ # Selector specifying which fields to include in a partial response.
1144
1101
  # @param [String] quota_user
1145
1102
  # Available to use for quota purposes for server-side applications. Can be any
1146
1103
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1147
- # @param [String] fields
1148
- # Selector specifying which fields to include in a partial response.
1149
1104
  # @param [Google::Apis::RequestOptions] options
1150
1105
  # Request-specific options
1151
1106
  #
@@ -1158,204 +1113,242 @@ module Google
1158
1113
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1159
1114
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1160
1115
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1161
- def cancel_project_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
1162
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
1116
+ def delete_project_instance_database_session(name, fields: nil, quota_user: nil, options: nil, &block)
1117
+ command = make_simple_command(:delete, 'v1/{+name}', options)
1163
1118
  command.response_representation = Google::Apis::SpannerV1::Empty::Representation
1164
1119
  command.response_class = Google::Apis::SpannerV1::Empty
1165
1120
  command.params['name'] = name unless name.nil?
1166
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1167
1121
  command.query['fields'] = fields unless fields.nil?
1122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1168
1123
  execute_or_queue_command(command, &block)
1169
1124
  end
1170
1125
 
1171
- # Deletes a long-running operation. This method indicates that the client is
1172
- # no longer interested in the operation result. It does not cancel the
1173
- # operation. If the server doesn't support this method, it returns
1174
- # `google.rpc.Code.UNIMPLEMENTED`.
1175
- # @param [String] name
1176
- # The name of the operation resource to be deleted.
1126
+ # Executes an SQL query, returning all rows in a single reply. This
1127
+ # method cannot be used to return a result set larger than 10 MiB;
1128
+ # if the query yields more data than that, the query fails with
1129
+ # a `FAILED_PRECONDITION` error.
1130
+ # Queries inside read-write transactions might return `ABORTED`. If
1131
+ # this occurs, the application should restart the transaction from
1132
+ # the beginning. See Transaction for more details.
1133
+ # Larger result sets can be fetched in streaming fashion by calling
1134
+ # ExecuteStreamingSql instead.
1135
+ # @param [String] session
1136
+ # Required. The session in which the SQL query should be performed.
1137
+ # @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_request_object
1138
+ # @param [String] fields
1139
+ # Selector specifying which fields to include in a partial response.
1177
1140
  # @param [String] quota_user
1178
1141
  # Available to use for quota purposes for server-side applications. Can be any
1179
1142
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1143
+ # @param [Google::Apis::RequestOptions] options
1144
+ # Request-specific options
1145
+ #
1146
+ # @yield [result, err] Result & error if block supplied
1147
+ # @yieldparam result [Google::Apis::SpannerV1::ResultSet] parsed result object
1148
+ # @yieldparam err [StandardError] error object if request failed
1149
+ #
1150
+ # @return [Google::Apis::SpannerV1::ResultSet]
1151
+ #
1152
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1153
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1154
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1155
+ def execute_session_sql(session, execute_sql_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1156
+ command = make_simple_command(:post, 'v1/{+session}:executeSql', options)
1157
+ command.request_representation = Google::Apis::SpannerV1::ExecuteSqlRequest::Representation
1158
+ command.request_object = execute_sql_request_object
1159
+ command.response_representation = Google::Apis::SpannerV1::ResultSet::Representation
1160
+ command.response_class = Google::Apis::SpannerV1::ResultSet
1161
+ command.params['session'] = session unless session.nil?
1162
+ command.query['fields'] = fields unless fields.nil?
1163
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1164
+ execute_or_queue_command(command, &block)
1165
+ end
1166
+
1167
+ # Like ExecuteSql, except returns the result
1168
+ # set as a stream. Unlike ExecuteSql, there
1169
+ # is no limit on the size of the returned result set. However, no
1170
+ # individual row in the result set can exceed 100 MiB, and no
1171
+ # column value can exceed 10 MiB.
1172
+ # @param [String] session
1173
+ # Required. The session in which the SQL query should be performed.
1174
+ # @param [Google::Apis::SpannerV1::ExecuteSqlRequest] execute_sql_request_object
1180
1175
  # @param [String] fields
1181
1176
  # Selector specifying which fields to include in a partial response.
1177
+ # @param [String] quota_user
1178
+ # Available to use for quota purposes for server-side applications. Can be any
1179
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1182
1180
  # @param [Google::Apis::RequestOptions] options
1183
1181
  # Request-specific options
1184
1182
  #
1185
1183
  # @yield [result, err] Result & error if block supplied
1186
- # @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
1184
+ # @yieldparam result [Google::Apis::SpannerV1::PartialResultSet] parsed result object
1187
1185
  # @yieldparam err [StandardError] error object if request failed
1188
1186
  #
1189
- # @return [Google::Apis::SpannerV1::Empty]
1187
+ # @return [Google::Apis::SpannerV1::PartialResultSet]
1190
1188
  #
1191
1189
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1192
1190
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1193
1191
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1194
- def delete_project_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
1195
- command = make_simple_command(:delete, 'v1/{+name}', options)
1196
- command.response_representation = Google::Apis::SpannerV1::Empty::Representation
1197
- command.response_class = Google::Apis::SpannerV1::Empty
1198
- command.params['name'] = name unless name.nil?
1199
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1192
+ def execute_project_instance_database_session_streaming_sql(session, execute_sql_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1193
+ command = make_simple_command(:post, 'v1/{+session}:executeStreamingSql', options)
1194
+ command.request_representation = Google::Apis::SpannerV1::ExecuteSqlRequest::Representation
1195
+ command.request_object = execute_sql_request_object
1196
+ command.response_representation = Google::Apis::SpannerV1::PartialResultSet::Representation
1197
+ command.response_class = Google::Apis::SpannerV1::PartialResultSet
1198
+ command.params['session'] = session unless session.nil?
1200
1199
  command.query['fields'] = fields unless fields.nil?
1200
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1201
1201
  execute_or_queue_command(command, &block)
1202
1202
  end
1203
1203
 
1204
- # Gets the latest state of a long-running operation. Clients can use this
1205
- # method to poll the operation result at intervals as recommended by the API
1206
- # service.
1204
+ # Gets a session. Returns `NOT_FOUND` if the session does not exist.
1205
+ # This is mainly useful for determining whether a session is still
1206
+ # alive.
1207
1207
  # @param [String] name
1208
- # The name of the operation resource.
1208
+ # Required. The name of the session to retrieve.
1209
+ # @param [String] fields
1210
+ # Selector specifying which fields to include in a partial response.
1209
1211
  # @param [String] quota_user
1210
1212
  # Available to use for quota purposes for server-side applications. Can be any
1211
1213
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1212
- # @param [String] fields
1213
- # Selector specifying which fields to include in a partial response.
1214
1214
  # @param [Google::Apis::RequestOptions] options
1215
1215
  # Request-specific options
1216
1216
  #
1217
1217
  # @yield [result, err] Result & error if block supplied
1218
- # @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
1218
+ # @yieldparam result [Google::Apis::SpannerV1::Session] parsed result object
1219
1219
  # @yieldparam err [StandardError] error object if request failed
1220
1220
  #
1221
- # @return [Google::Apis::SpannerV1::Operation]
1221
+ # @return [Google::Apis::SpannerV1::Session]
1222
1222
  #
1223
1223
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1224
1224
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1225
1225
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1226
- def get_project_instance_database_operation(name, quota_user: nil, fields: nil, options: nil, &block)
1226
+ def get_project_instance_database_session(name, fields: nil, quota_user: nil, options: nil, &block)
1227
1227
  command = make_simple_command(:get, 'v1/{+name}', options)
1228
- command.response_representation = Google::Apis::SpannerV1::Operation::Representation
1229
- command.response_class = Google::Apis::SpannerV1::Operation
1228
+ command.response_representation = Google::Apis::SpannerV1::Session::Representation
1229
+ command.response_class = Google::Apis::SpannerV1::Session
1230
1230
  command.params['name'] = name unless name.nil?
1231
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1232
1231
  command.query['fields'] = fields unless fields.nil?
1232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1233
1233
  execute_or_queue_command(command, &block)
1234
1234
  end
1235
1235
 
1236
- # Lists operations that match the specified filter in the request. If the
1237
- # server doesn't support this method, it returns `UNIMPLEMENTED`.
1238
- # NOTE: the `name` binding allows API services to override the binding
1239
- # to use different resource name schemes, such as `users/*/operations`. To
1240
- # override the binding, API services can add a binding such as
1241
- # `"/v1/`name=users/*`/operations"` to their service configuration.
1242
- # For backwards compatibility, the default name includes the operations
1243
- # collection id, however overriding users must ensure the name binding
1244
- # is the parent resource, without the operations collection id.
1245
- # @param [String] name
1246
- # The name of the operation's parent resource.
1247
- # @param [String] filter
1248
- # The standard list filter.
1249
- # @param [String] page_token
1250
- # The standard list page token.
1251
- # @param [Fixnum] page_size
1252
- # The standard list page size.
1236
+ # Reads rows from the database using key lookups and scans, as a
1237
+ # simple key/value style alternative to
1238
+ # ExecuteSql. This method cannot be used to
1239
+ # return a result set larger than 10 MiB; if the read matches more
1240
+ # data than that, the read fails with a `FAILED_PRECONDITION`
1241
+ # error.
1242
+ # Reads inside read-write transactions might return `ABORTED`. If
1243
+ # this occurs, the application should restart the transaction from
1244
+ # the beginning. See Transaction for more details.
1245
+ # Larger result sets can be yielded in streaming fashion by calling
1246
+ # StreamingRead instead.
1247
+ # @param [String] session
1248
+ # Required. The session in which the read should be performed.
1249
+ # @param [Google::Apis::SpannerV1::ReadRequest] read_request_object
1250
+ # @param [String] fields
1251
+ # Selector specifying which fields to include in a partial response.
1253
1252
  # @param [String] quota_user
1254
1253
  # Available to use for quota purposes for server-side applications. Can be any
1255
1254
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1256
- # @param [String] fields
1257
- # Selector specifying which fields to include in a partial response.
1258
1255
  # @param [Google::Apis::RequestOptions] options
1259
1256
  # Request-specific options
1260
1257
  #
1261
1258
  # @yield [result, err] Result & error if block supplied
1262
- # @yieldparam result [Google::Apis::SpannerV1::ListOperationsResponse] parsed result object
1259
+ # @yieldparam result [Google::Apis::SpannerV1::ResultSet] parsed result object
1263
1260
  # @yieldparam err [StandardError] error object if request failed
1264
1261
  #
1265
- # @return [Google::Apis::SpannerV1::ListOperationsResponse]
1262
+ # @return [Google::Apis::SpannerV1::ResultSet]
1266
1263
  #
1267
1264
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1268
1265
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1269
1266
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1270
- def list_project_instance_database_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1271
- command = make_simple_command(:get, 'v1/{+name}', options)
1272
- command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
1273
- command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
1274
- command.params['name'] = name unless name.nil?
1275
- command.query['filter'] = filter unless filter.nil?
1276
- command.query['pageToken'] = page_token unless page_token.nil?
1277
- command.query['pageSize'] = page_size unless page_size.nil?
1278
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1267
+ def read_session(session, read_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1268
+ command = make_simple_command(:post, 'v1/{+session}:read', options)
1269
+ command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
1270
+ command.request_object = read_request_object
1271
+ command.response_representation = Google::Apis::SpannerV1::ResultSet::Representation
1272
+ command.response_class = Google::Apis::SpannerV1::ResultSet
1273
+ command.params['session'] = session unless session.nil?
1279
1274
  command.query['fields'] = fields unless fields.nil?
1275
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1280
1276
  execute_or_queue_command(command, &block)
1281
1277
  end
1282
1278
 
1283
- # Gets the latest state of a long-running operation. Clients can use this
1284
- # method to poll the operation result at intervals as recommended by the API
1285
- # service.
1286
- # @param [String] name
1287
- # The name of the operation resource.
1279
+ # Rolls back a transaction, releasing any locks it holds. It is a good
1280
+ # idea to call this for any transaction that includes one or more
1281
+ # Read or ExecuteSql requests and
1282
+ # ultimately decides not to commit.
1283
+ # `Rollback` returns `OK` if it successfully aborts the transaction, the
1284
+ # transaction was already aborted, or the transaction is not
1285
+ # found. `Rollback` never returns `ABORTED`.
1286
+ # @param [String] session
1287
+ # Required. The session in which the transaction to roll back is running.
1288
+ # @param [Google::Apis::SpannerV1::RollbackRequest] rollback_request_object
1289
+ # @param [String] fields
1290
+ # Selector specifying which fields to include in a partial response.
1288
1291
  # @param [String] quota_user
1289
1292
  # Available to use for quota purposes for server-side applications. Can be any
1290
1293
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1291
- # @param [String] fields
1292
- # Selector specifying which fields to include in a partial response.
1293
1294
  # @param [Google::Apis::RequestOptions] options
1294
1295
  # Request-specific options
1295
1296
  #
1296
1297
  # @yield [result, err] Result & error if block supplied
1297
- # @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
1298
+ # @yieldparam result [Google::Apis::SpannerV1::Empty] parsed result object
1298
1299
  # @yieldparam err [StandardError] error object if request failed
1299
1300
  #
1300
- # @return [Google::Apis::SpannerV1::Operation]
1301
+ # @return [Google::Apis::SpannerV1::Empty]
1301
1302
  #
1302
1303
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1303
1304
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1304
1305
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1305
- def get_project_instance_operation(name, quota_user: nil, fields: nil, options: nil, &block)
1306
- command = make_simple_command(:get, 'v1/{+name}', options)
1307
- command.response_representation = Google::Apis::SpannerV1::Operation::Representation
1308
- command.response_class = Google::Apis::SpannerV1::Operation
1309
- command.params['name'] = name unless name.nil?
1310
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1306
+ def rollback_session(session, rollback_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1307
+ command = make_simple_command(:post, 'v1/{+session}:rollback', options)
1308
+ command.request_representation = Google::Apis::SpannerV1::RollbackRequest::Representation
1309
+ command.request_object = rollback_request_object
1310
+ command.response_representation = Google::Apis::SpannerV1::Empty::Representation
1311
+ command.response_class = Google::Apis::SpannerV1::Empty
1312
+ command.params['session'] = session unless session.nil?
1311
1313
  command.query['fields'] = fields unless fields.nil?
1314
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1312
1315
  execute_or_queue_command(command, &block)
1313
1316
  end
1314
1317
 
1315
- # Lists operations that match the specified filter in the request. If the
1316
- # server doesn't support this method, it returns `UNIMPLEMENTED`.
1317
- # NOTE: the `name` binding allows API services to override the binding
1318
- # to use different resource name schemes, such as `users/*/operations`. To
1319
- # override the binding, API services can add a binding such as
1320
- # `"/v1/`name=users/*`/operations"` to their service configuration.
1321
- # For backwards compatibility, the default name includes the operations
1322
- # collection id, however overriding users must ensure the name binding
1323
- # is the parent resource, without the operations collection id.
1324
- # @param [String] name
1325
- # The name of the operation's parent resource.
1326
- # @param [String] filter
1327
- # The standard list filter.
1328
- # @param [String] page_token
1329
- # The standard list page token.
1330
- # @param [Fixnum] page_size
1331
- # The standard list page size.
1318
+ # Like Read, except returns the result set as a
1319
+ # stream. Unlike Read, there is no limit on the
1320
+ # size of the returned result set. However, no individual row in
1321
+ # the result set can exceed 100 MiB, and no column value can exceed
1322
+ # 10 MiB.
1323
+ # @param [String] session
1324
+ # Required. The session in which the read should be performed.
1325
+ # @param [Google::Apis::SpannerV1::ReadRequest] read_request_object
1326
+ # @param [String] fields
1327
+ # Selector specifying which fields to include in a partial response.
1332
1328
  # @param [String] quota_user
1333
1329
  # Available to use for quota purposes for server-side applications. Can be any
1334
1330
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1335
- # @param [String] fields
1336
- # Selector specifying which fields to include in a partial response.
1337
1331
  # @param [Google::Apis::RequestOptions] options
1338
1332
  # Request-specific options
1339
1333
  #
1340
1334
  # @yield [result, err] Result & error if block supplied
1341
- # @yieldparam result [Google::Apis::SpannerV1::ListOperationsResponse] parsed result object
1335
+ # @yieldparam result [Google::Apis::SpannerV1::PartialResultSet] parsed result object
1342
1336
  # @yieldparam err [StandardError] error object if request failed
1343
1337
  #
1344
- # @return [Google::Apis::SpannerV1::ListOperationsResponse]
1338
+ # @return [Google::Apis::SpannerV1::PartialResultSet]
1345
1339
  #
1346
1340
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1347
1341
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1348
1342
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1349
- def list_project_instance_operations(name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1350
- command = make_simple_command(:get, 'v1/{+name}', options)
1351
- command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
1352
- command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
1353
- command.params['name'] = name unless name.nil?
1354
- command.query['filter'] = filter unless filter.nil?
1355
- command.query['pageToken'] = page_token unless page_token.nil?
1356
- command.query['pageSize'] = page_size unless page_size.nil?
1357
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1343
+ def streaming_project_instance_database_session_read(session, read_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1344
+ command = make_simple_command(:post, 'v1/{+session}:streamingRead', options)
1345
+ command.request_representation = Google::Apis::SpannerV1::ReadRequest::Representation
1346
+ command.request_object = read_request_object
1347
+ command.response_representation = Google::Apis::SpannerV1::PartialResultSet::Representation
1348
+ command.response_class = Google::Apis::SpannerV1::PartialResultSet
1349
+ command.params['session'] = session unless session.nil?
1358
1350
  command.query['fields'] = fields unless fields.nil?
1351
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1359
1352
  execute_or_queue_command(command, &block)
1360
1353
  end
1361
1354
 
@@ -1371,11 +1364,11 @@ module Google
1371
1364
  # corresponding to `Code.CANCELLED`.
1372
1365
  # @param [String] name
1373
1366
  # The name of the operation resource to be cancelled.
1367
+ # @param [String] fields
1368
+ # Selector specifying which fields to include in a partial response.
1374
1369
  # @param [String] quota_user
1375
1370
  # Available to use for quota purposes for server-side applications. Can be any
1376
1371
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1377
- # @param [String] fields
1378
- # Selector specifying which fields to include in a partial response.
1379
1372
  # @param [Google::Apis::RequestOptions] options
1380
1373
  # Request-specific options
1381
1374
  #
@@ -1388,13 +1381,13 @@ module Google
1388
1381
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1389
1382
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1390
1383
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1391
- def cancel_project_instance_operation(name, quota_user: nil, fields: nil, options: nil, &block)
1384
+ def cancel_project_instance_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1392
1385
  command = make_simple_command(:post, 'v1/{+name}:cancel', options)
1393
1386
  command.response_representation = Google::Apis::SpannerV1::Empty::Representation
1394
1387
  command.response_class = Google::Apis::SpannerV1::Empty
1395
1388
  command.params['name'] = name unless name.nil?
1396
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1397
1389
  command.query['fields'] = fields unless fields.nil?
1390
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1398
1391
  execute_or_queue_command(command, &block)
1399
1392
  end
1400
1393
 
@@ -1404,11 +1397,11 @@ module Google
1404
1397
  # `google.rpc.Code.UNIMPLEMENTED`.
1405
1398
  # @param [String] name
1406
1399
  # The name of the operation resource to be deleted.
1400
+ # @param [String] fields
1401
+ # Selector specifying which fields to include in a partial response.
1407
1402
  # @param [String] quota_user
1408
1403
  # Available to use for quota purposes for server-side applications. Can be any
1409
1404
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1410
- # @param [String] fields
1411
- # Selector specifying which fields to include in a partial response.
1412
1405
  # @param [Google::Apis::RequestOptions] options
1413
1406
  # Request-specific options
1414
1407
  #
@@ -1421,85 +1414,92 @@ module Google
1421
1414
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1422
1415
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1423
1416
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1424
- def delete_project_instance_operation(name, quota_user: nil, fields: nil, options: nil, &block)
1417
+ def delete_project_instance_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1425
1418
  command = make_simple_command(:delete, 'v1/{+name}', options)
1426
1419
  command.response_representation = Google::Apis::SpannerV1::Empty::Representation
1427
1420
  command.response_class = Google::Apis::SpannerV1::Empty
1428
1421
  command.params['name'] = name unless name.nil?
1429
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1430
1422
  command.query['fields'] = fields unless fields.nil?
1423
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1431
1424
  execute_or_queue_command(command, &block)
1432
1425
  end
1433
1426
 
1434
- # Gets information about a particular instance configuration.
1427
+ # Gets the latest state of a long-running operation. Clients can use this
1428
+ # method to poll the operation result at intervals as recommended by the API
1429
+ # service.
1435
1430
  # @param [String] name
1436
- # Required. The name of the requested instance configuration. Values are of
1437
- # the form `projects/<project>/instanceConfigs/<config>`.
1431
+ # The name of the operation resource.
1432
+ # @param [String] fields
1433
+ # Selector specifying which fields to include in a partial response.
1438
1434
  # @param [String] quota_user
1439
1435
  # Available to use for quota purposes for server-side applications. Can be any
1440
1436
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1441
- # @param [String] fields
1442
- # Selector specifying which fields to include in a partial response.
1443
1437
  # @param [Google::Apis::RequestOptions] options
1444
1438
  # Request-specific options
1445
1439
  #
1446
1440
  # @yield [result, err] Result & error if block supplied
1447
- # @yieldparam result [Google::Apis::SpannerV1::InstanceConfig] parsed result object
1441
+ # @yieldparam result [Google::Apis::SpannerV1::Operation] parsed result object
1448
1442
  # @yieldparam err [StandardError] error object if request failed
1449
1443
  #
1450
- # @return [Google::Apis::SpannerV1::InstanceConfig]
1444
+ # @return [Google::Apis::SpannerV1::Operation]
1451
1445
  #
1452
1446
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1453
1447
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1454
1448
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1455
- def get_project_instance_config(name, quota_user: nil, fields: nil, options: nil, &block)
1449
+ def get_project_instance_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1456
1450
  command = make_simple_command(:get, 'v1/{+name}', options)
1457
- command.response_representation = Google::Apis::SpannerV1::InstanceConfig::Representation
1458
- command.response_class = Google::Apis::SpannerV1::InstanceConfig
1451
+ command.response_representation = Google::Apis::SpannerV1::Operation::Representation
1452
+ command.response_class = Google::Apis::SpannerV1::Operation
1459
1453
  command.params['name'] = name unless name.nil?
1460
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1461
1454
  command.query['fields'] = fields unless fields.nil?
1455
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1462
1456
  execute_or_queue_command(command, &block)
1463
1457
  end
1464
1458
 
1465
- # Lists the supported instance configurations for a given project.
1466
- # @param [String] parent
1467
- # Required. The name of the project for which a list of supported instance
1468
- # configurations is requested. Values are of the form
1469
- # `projects/<project>`.
1470
- # @param [String] page_token
1471
- # If non-empty, `page_token` should contain a
1472
- # next_page_token
1473
- # from a previous ListInstanceConfigsResponse.
1459
+ # Lists operations that match the specified filter in the request. If the
1460
+ # server doesn't support this method, it returns `UNIMPLEMENTED`.
1461
+ # NOTE: the `name` binding allows API services to override the binding
1462
+ # to use different resource name schemes, such as `users/*/operations`. To
1463
+ # override the binding, API services can add a binding such as
1464
+ # `"/v1/`name=users/*`/operations"` to their service configuration.
1465
+ # For backwards compatibility, the default name includes the operations
1466
+ # collection id, however overriding users must ensure the name binding
1467
+ # is the parent resource, without the operations collection id.
1468
+ # @param [String] name
1469
+ # The name of the operation's parent resource.
1470
+ # @param [String] filter
1471
+ # The standard list filter.
1474
1472
  # @param [Fixnum] page_size
1475
- # Number of instance configurations to be returned in the response. If 0 or
1476
- # less, defaults to the server's maximum allowed page size.
1473
+ # The standard list page size.
1474
+ # @param [String] page_token
1475
+ # The standard list page token.
1476
+ # @param [String] fields
1477
+ # Selector specifying which fields to include in a partial response.
1477
1478
  # @param [String] quota_user
1478
1479
  # Available to use for quota purposes for server-side applications. Can be any
1479
1480
  # arbitrary string assigned to a user, but should not exceed 40 characters.
1480
- # @param [String] fields
1481
- # Selector specifying which fields to include in a partial response.
1482
1481
  # @param [Google::Apis::RequestOptions] options
1483
1482
  # Request-specific options
1484
1483
  #
1485
1484
  # @yield [result, err] Result & error if block supplied
1486
- # @yieldparam result [Google::Apis::SpannerV1::ListInstanceConfigsResponse] parsed result object
1485
+ # @yieldparam result [Google::Apis::SpannerV1::ListOperationsResponse] parsed result object
1487
1486
  # @yieldparam err [StandardError] error object if request failed
1488
1487
  #
1489
- # @return [Google::Apis::SpannerV1::ListInstanceConfigsResponse]
1488
+ # @return [Google::Apis::SpannerV1::ListOperationsResponse]
1490
1489
  #
1491
1490
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1492
1491
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1493
1492
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1494
- def list_project_instance_configs(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
1495
- command = make_simple_command(:get, 'v1/{+parent}/instanceConfigs', options)
1496
- command.response_representation = Google::Apis::SpannerV1::ListInstanceConfigsResponse::Representation
1497
- command.response_class = Google::Apis::SpannerV1::ListInstanceConfigsResponse
1498
- command.params['parent'] = parent unless parent.nil?
1499
- command.query['pageToken'] = page_token unless page_token.nil?
1493
+ def list_project_instance_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1494
+ command = make_simple_command(:get, 'v1/{+name}', options)
1495
+ command.response_representation = Google::Apis::SpannerV1::ListOperationsResponse::Representation
1496
+ command.response_class = Google::Apis::SpannerV1::ListOperationsResponse
1497
+ command.params['name'] = name unless name.nil?
1498
+ command.query['filter'] = filter unless filter.nil?
1500
1499
  command.query['pageSize'] = page_size unless page_size.nil?
1501
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1500
+ command.query['pageToken'] = page_token unless page_token.nil?
1502
1501
  command.query['fields'] = fields unless fields.nil?
1502
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1503
1503
  execute_or_queue_command(command, &block)
1504
1504
  end
1505
1505