google-api-client 0.11.3 → 0.12.0

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