google-api-client 0.9.pre3 → 0.9.pre4

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 (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -56,6 +56,10 @@ module Google
56
56
 
57
57
  class DatabaseInstance
58
58
  class Representation < Google::Apis::Core::JsonRepresentation; end
59
+
60
+ class FailoverReplica
61
+ class Representation < Google::Apis::Core::JsonRepresentation; end
62
+ end
59
63
  end
60
64
 
61
65
  class ListDatabasesResponse
@@ -74,6 +78,10 @@ module Google
74
78
  end
75
79
  end
76
80
 
81
+ class FailoverContext
82
+ class Representation < Google::Apis::Core::JsonRepresentation; end
83
+ end
84
+
77
85
  class Flag
78
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
79
87
  end
@@ -98,6 +106,10 @@ module Google
98
106
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
107
  end
100
108
 
109
+ class InstancesFailoverRequest
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+ end
112
+
101
113
  class ImportInstancesRequest
102
114
  class Representation < Google::Apis::Core::JsonRepresentation; end
103
115
  end
@@ -122,6 +134,10 @@ module Google
122
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
135
  end
124
136
 
137
+ class MaintenanceWindow
138
+ class Representation < Google::Apis::Core::JsonRepresentation; end
139
+ end
140
+
125
141
  class MySqlReplicaConfiguration
126
142
  class Representation < Google::Apis::Core::JsonRepresentation; end
127
143
  end
@@ -166,6 +182,10 @@ module Google
166
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
167
183
  end
168
184
 
185
+ class SslCertsCreateEphemeralRequest
186
+ class Representation < Google::Apis::Core::JsonRepresentation; end
187
+ end
188
+
169
189
  class InsertSslCertsRequest
170
190
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
191
  end
@@ -293,6 +313,8 @@ module Google
293
313
  property :current_disk_size, as: 'currentDiskSize'
294
314
  property :database_version, as: 'databaseVersion'
295
315
  property :etag, as: 'etag'
316
+ property :failover_replica, as: 'failoverReplica', class: Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica, decorator: Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica::Representation
317
+
296
318
  property :instance_type, as: 'instanceType'
297
319
  collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation
298
320
 
@@ -316,6 +338,14 @@ module Google
316
338
 
317
339
  property :state, as: 'state'
318
340
  end
341
+
342
+ class FailoverReplica
343
+ # @private
344
+ class Representation < Google::Apis::Core::JsonRepresentation
345
+ property :available, as: 'available'
346
+ property :name, as: 'name'
347
+ end
348
+ end
319
349
  end
320
350
 
321
351
  class ListDatabasesResponse
@@ -350,11 +380,20 @@ module Google
350
380
  class SqlExportOptions
351
381
  # @private
352
382
  class Representation < Google::Apis::Core::JsonRepresentation
383
+ property :schema_only, as: 'schemaOnly'
353
384
  collection :tables, as: 'tables'
354
385
  end
355
386
  end
356
387
  end
357
388
 
389
+ class FailoverContext
390
+ # @private
391
+ class Representation < Google::Apis::Core::JsonRepresentation
392
+ property :kind, as: 'kind'
393
+ property :settings_version, as: 'settingsVersion'
394
+ end
395
+ end
396
+
358
397
  class Flag
359
398
  # @private
360
399
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -364,6 +403,7 @@ module Google
364
403
  property :max_value, as: 'maxValue'
365
404
  property :min_value, as: 'minValue'
366
405
  property :name, as: 'name'
406
+ property :requires_restart, as: 'requiresRestart'
367
407
  property :type, as: 'type'
368
408
  end
369
409
  end
@@ -413,6 +453,14 @@ module Google
413
453
  end
414
454
  end
415
455
 
456
+ class InstancesFailoverRequest
457
+ # @private
458
+ class Representation < Google::Apis::Core::JsonRepresentation
459
+ property :failover_context, as: 'failoverContext', class: Google::Apis::SqladminV1beta4::FailoverContext, decorator: Google::Apis::SqladminV1beta4::FailoverContext::Representation
460
+
461
+ end
462
+ end
463
+
416
464
  class ImportInstancesRequest
417
465
  # @private
418
466
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -467,6 +515,16 @@ module Google
467
515
  end
468
516
  end
469
517
 
518
+ class MaintenanceWindow
519
+ # @private
520
+ class Representation < Google::Apis::Core::JsonRepresentation
521
+ property :day, as: 'day'
522
+ property :hour, as: 'hour'
523
+ property :kind, as: 'kind'
524
+ property :update_track, as: 'updateTrack'
525
+ end
526
+ end
527
+
470
528
  class MySqlReplicaConfiguration
471
529
  # @private
472
530
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -550,6 +608,7 @@ module Google
550
608
  class ReplicaConfiguration
551
609
  # @private
552
610
  class Representation < Google::Apis::Core::JsonRepresentation
611
+ property :failover_target, as: 'failoverTarget'
553
612
  property :kind, as: 'kind'
554
613
  property :mysql_replica_configuration, as: 'mysqlReplicaConfiguration', class: Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration, decorator: Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration::Representation
555
614
 
@@ -573,6 +632,8 @@ module Google
573
632
  property :backup_configuration, as: 'backupConfiguration', class: Google::Apis::SqladminV1beta4::BackupConfiguration, decorator: Google::Apis::SqladminV1beta4::BackupConfiguration::Representation
574
633
 
575
634
  property :crash_safe_replication_enabled, as: 'crashSafeReplicationEnabled'
635
+ property :data_disk_size_gb, as: 'dataDiskSizeGb'
636
+ property :data_disk_type, as: 'dataDiskType'
576
637
  collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1beta4::DatabaseFlags, decorator: Google::Apis::SqladminV1beta4::DatabaseFlags::Representation
577
638
 
578
639
  property :database_replication_enabled, as: 'databaseReplicationEnabled'
@@ -581,6 +642,8 @@ module Google
581
642
  property :kind, as: 'kind'
582
643
  property :location_preference, as: 'locationPreference', class: Google::Apis::SqladminV1beta4::LocationPreference, decorator: Google::Apis::SqladminV1beta4::LocationPreference::Representation
583
644
 
645
+ property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::SqladminV1beta4::MaintenanceWindow, decorator: Google::Apis::SqladminV1beta4::MaintenanceWindow::Representation
646
+
584
647
  property :pricing_plan, as: 'pricingPlan'
585
648
  property :replication_type, as: 'replicationType'
586
649
  property :settings_version, as: 'settingsVersion'
@@ -614,6 +677,13 @@ module Google
614
677
  end
615
678
  end
616
679
 
680
+ class SslCertsCreateEphemeralRequest
681
+ # @private
682
+ class Representation < Google::Apis::Core::JsonRepresentation
683
+ property :public_key, as: 'public_key'
684
+ end
685
+ end
686
+
617
687
  class InsertSslCertsRequest
618
688
  # @private
619
689
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -52,6 +52,48 @@ module Google
52
52
  super('https://www.googleapis.com/', 'sql/v1beta4/')
53
53
  end
54
54
 
55
+ # Deletes the backup taken by a backup run.
56
+ # @param [String] project
57
+ # Project ID of the project that contains the instance.
58
+ # @param [String] instance
59
+ # Cloud SQL instance ID. This does not include the project ID.
60
+ # @param [String] id
61
+ # The ID of the Backup Run to delete. To find a Backup Run ID, use the list
62
+ # method.
63
+ # @param [String] fields
64
+ # Selector specifying which fields to include in a partial response.
65
+ # @param [String] quota_user
66
+ # Available to use for quota purposes for server-side applications. Can be any
67
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
68
+ # Overrides userIp if both are provided.
69
+ # @param [String] user_ip
70
+ # IP address of the site where the request originates. Use this if you want to
71
+ # enforce per-user limits.
72
+ # @param [Google::Apis::RequestOptions] options
73
+ # Request-specific options
74
+ #
75
+ # @yield [result, err] Result & error if block supplied
76
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
77
+ # @yieldparam err [StandardError] error object if request failed
78
+ #
79
+ # @return [Google::Apis::SqladminV1beta4::Operation]
80
+ #
81
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
82
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
83
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
84
+ def delete_backup_run(project, instance, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
85
+ command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/backupRuns/{id}', options)
86
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
87
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
88
+ command.params['project'] = project unless project.nil?
89
+ command.params['instance'] = instance unless instance.nil?
90
+ command.params['id'] = id unless id.nil?
91
+ command.query['fields'] = fields unless fields.nil?
92
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
93
+ command.query['userIp'] = user_ip unless user_ip.nil?
94
+ execute_or_queue_command(command, &block)
95
+ end
96
+
55
97
  # Retrieves a resource containing information about a backup run.
56
98
  # @param [String] project
57
99
  # Project ID of the project that contains the instance.
@@ -81,8 +123,7 @@ module Google
81
123
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
124
  # @raise [Google::Apis::AuthorizationError] Authorization is required
83
125
  def get_backup_run(project, instance, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
84
- path = 'projects/{project}/instances/{instance}/backupRuns/{id}'
85
- command = make_simple_command(:get, path, options)
126
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns/{id}', options)
86
127
  command.response_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation
87
128
  command.response_class = Google::Apis::SqladminV1beta4::BackupRun
88
129
  command.params['project'] = project unless project.nil?
@@ -127,8 +168,7 @@ module Google
127
168
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
128
169
  # @raise [Google::Apis::AuthorizationError] Authorization is required
129
170
  def list_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
130
- path = 'projects/{project}/instances/{instance}/backupRuns'
131
- command = make_simple_command(:get, path, options)
171
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns', options)
132
172
  command.response_representation = Google::Apis::SqladminV1beta4::ListBackupRunsResponse::Representation
133
173
  command.response_class = Google::Apis::SqladminV1beta4::ListBackupRunsResponse
134
174
  command.params['project'] = project unless project.nil?
@@ -171,8 +211,7 @@ module Google
171
211
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
172
212
  # @raise [Google::Apis::AuthorizationError] Authorization is required
173
213
  def delete_database(project, instance, database, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
174
- path = 'projects/{project}/instances/{instance}/databases/{database}'
175
- command = make_simple_command(:delete, path, options)
214
+ command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/databases/{database}', options)
176
215
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
177
216
  command.response_class = Google::Apis::SqladminV1beta4::Operation
178
217
  command.params['project'] = project unless project.nil?
@@ -214,8 +253,7 @@ module Google
214
253
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
215
254
  # @raise [Google::Apis::AuthorizationError] Authorization is required
216
255
  def get_database(project, instance, database, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
217
- path = 'projects/{project}/instances/{instance}/databases/{database}'
218
- command = make_simple_command(:get, path, options)
256
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/databases/{database}', options)
219
257
  command.response_representation = Google::Apis::SqladminV1beta4::Database::Representation
220
258
  command.response_class = Google::Apis::SqladminV1beta4::Database
221
259
  command.params['project'] = project unless project.nil?
@@ -256,8 +294,7 @@ module Google
256
294
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
257
295
  # @raise [Google::Apis::AuthorizationError] Authorization is required
258
296
  def insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
259
- path = 'projects/{project}/instances/{instance}/databases'
260
- command = make_simple_command(:post, path, options)
297
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/databases', options)
261
298
  command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
262
299
  command.request_object = database_object
263
300
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
@@ -297,8 +334,7 @@ module Google
297
334
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
298
335
  # @raise [Google::Apis::AuthorizationError] Authorization is required
299
336
  def list_databases(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
300
- path = 'projects/{project}/instances/{instance}/databases'
301
- command = make_simple_command(:get, path, options)
337
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/databases', options)
302
338
  command.response_representation = Google::Apis::SqladminV1beta4::ListDatabasesResponse::Representation
303
339
  command.response_class = Google::Apis::SqladminV1beta4::ListDatabasesResponse
304
340
  command.params['project'] = project unless project.nil?
@@ -340,8 +376,7 @@ module Google
340
376
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
341
377
  # @raise [Google::Apis::AuthorizationError] Authorization is required
342
378
  def patch_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
343
- path = 'projects/{project}/instances/{instance}/databases/{database}'
344
- command = make_simple_command(:patch, path, options)
379
+ command = make_simple_command(:patch, 'projects/{project}/instances/{instance}/databases/{database}', options)
345
380
  command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
346
381
  command.request_object = database_object
347
382
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
@@ -386,8 +421,7 @@ module Google
386
421
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
387
422
  # @raise [Google::Apis::AuthorizationError] Authorization is required
388
423
  def update_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
389
- path = 'projects/{project}/instances/{instance}/databases/{database}'
390
- command = make_simple_command(:put, path, options)
424
+ command = make_simple_command(:put, 'projects/{project}/instances/{instance}/databases/{database}', options)
391
425
  command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
392
426
  command.request_object = database_object
393
427
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
@@ -424,8 +458,7 @@ module Google
424
458
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
425
459
  # @raise [Google::Apis::AuthorizationError] Authorization is required
426
460
  def list_flags(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
427
- path = 'flags'
428
- command = make_simple_command(:get, path, options)
461
+ command = make_simple_command(:get, 'flags', options)
429
462
  command.response_representation = Google::Apis::SqladminV1beta4::ListFlagsResponse::Representation
430
463
  command.response_class = Google::Apis::SqladminV1beta4::ListFlagsResponse
431
464
  command.query['fields'] = fields unless fields.nil?
@@ -463,8 +496,7 @@ module Google
463
496
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
464
497
  # @raise [Google::Apis::AuthorizationError] Authorization is required
465
498
  def clone_instance(project, instance, clone_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
466
- path = 'projects/{project}/instances/{instance}/clone'
467
- command = make_simple_command(:post, path, options)
499
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/clone', options)
468
500
  command.request_representation = Google::Apis::SqladminV1beta4::CloneInstancesRequest::Representation
469
501
  command.request_object = clone_instances_request_object
470
502
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
@@ -504,8 +536,7 @@ module Google
504
536
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
505
537
  # @raise [Google::Apis::AuthorizationError] Authorization is required
506
538
  def delete_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
507
- path = 'projects/{project}/instances/{instance}'
508
- command = make_simple_command(:delete, path, options)
539
+ command = make_simple_command(:delete, 'projects/{project}/instances/{instance}', options)
509
540
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
510
541
  command.response_class = Google::Apis::SqladminV1beta4::Operation
511
542
  command.params['project'] = project unless project.nil?
@@ -545,8 +576,7 @@ module Google
545
576
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546
577
  # @raise [Google::Apis::AuthorizationError] Authorization is required
547
578
  def export_instance(project, instance, export_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
548
- path = 'projects/{project}/instances/{instance}/export'
549
- command = make_simple_command(:post, path, options)
579
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/export', options)
550
580
  command.request_representation = Google::Apis::SqladminV1beta4::ExportInstancesRequest::Representation
551
581
  command.request_object = export_instances_request_object
552
582
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
@@ -559,6 +589,47 @@ module Google
559
589
  execute_or_queue_command(command, &block)
560
590
  end
561
591
 
592
+ # Failover the instance to its failover replica instance.
593
+ # @param [String] project
594
+ # ID of the project that contains the read replica.
595
+ # @param [String] instance
596
+ # Cloud SQL instance ID. This does not include the project ID.
597
+ # @param [Google::Apis::SqladminV1beta4::InstancesFailoverRequest] instances_failover_request_object
598
+ # @param [String] fields
599
+ # Selector specifying which fields to include in a partial response.
600
+ # @param [String] quota_user
601
+ # Available to use for quota purposes for server-side applications. Can be any
602
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
603
+ # Overrides userIp if both are provided.
604
+ # @param [String] user_ip
605
+ # IP address of the site where the request originates. Use this if you want to
606
+ # enforce per-user limits.
607
+ # @param [Google::Apis::RequestOptions] options
608
+ # Request-specific options
609
+ #
610
+ # @yield [result, err] Result & error if block supplied
611
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
612
+ # @yieldparam err [StandardError] error object if request failed
613
+ #
614
+ # @return [Google::Apis::SqladminV1beta4::Operation]
615
+ #
616
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
617
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
618
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
619
+ def failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
620
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/failover', options)
621
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesFailoverRequest::Representation
622
+ command.request_object = instances_failover_request_object
623
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
624
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
625
+ command.params['project'] = project unless project.nil?
626
+ command.params['instance'] = instance unless instance.nil?
627
+ command.query['fields'] = fields unless fields.nil?
628
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
629
+ command.query['userIp'] = user_ip unless user_ip.nil?
630
+ execute_or_queue_command(command, &block)
631
+ end
632
+
562
633
  # Retrieves a resource containing information about a Cloud SQL instance.
563
634
  # @param [String] project
564
635
  # Project ID of the project that contains the instance.
@@ -586,8 +657,7 @@ module Google
586
657
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
587
658
  # @raise [Google::Apis::AuthorizationError] Authorization is required
588
659
  def get_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
589
- path = 'projects/{project}/instances/{instance}'
590
- command = make_simple_command(:get, path, options)
660
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}', options)
591
661
  command.response_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
592
662
  command.response_class = Google::Apis::SqladminV1beta4::DatabaseInstance
593
663
  command.params['project'] = project unless project.nil?
@@ -627,8 +697,7 @@ module Google
627
697
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
628
698
  # @raise [Google::Apis::AuthorizationError] Authorization is required
629
699
  def import_instance(project, instance, import_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
630
- path = 'projects/{project}/instances/{instance}/import'
631
- command = make_simple_command(:post, path, options)
700
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/import', options)
632
701
  command.request_representation = Google::Apis::SqladminV1beta4::ImportInstancesRequest::Representation
633
702
  command.request_object = import_instances_request_object
634
703
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
@@ -668,8 +737,7 @@ module Google
668
737
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
669
738
  # @raise [Google::Apis::AuthorizationError] Authorization is required
670
739
  def insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
671
- path = 'projects/{project}/instances'
672
- command = make_simple_command(:post, path, options)
740
+ command = make_simple_command(:post, 'projects/{project}/instances', options)
673
741
  command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
674
742
  command.request_object = database_instance_object
675
743
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
@@ -712,8 +780,7 @@ module Google
712
780
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
713
781
  # @raise [Google::Apis::AuthorizationError] Authorization is required
714
782
  def list_instances(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
715
- path = 'projects/{project}/instances'
716
- command = make_simple_command(:get, path, options)
783
+ command = make_simple_command(:get, 'projects/{project}/instances', options)
717
784
  command.response_representation = Google::Apis::SqladminV1beta4::ListInstancesResponse::Representation
718
785
  command.response_class = Google::Apis::SqladminV1beta4::ListInstancesResponse
719
786
  command.params['project'] = project unless project.nil?
@@ -755,8 +822,7 @@ module Google
755
822
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
756
823
  # @raise [Google::Apis::AuthorizationError] Authorization is required
757
824
  def patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
758
- path = 'projects/{project}/instances/{instance}'
759
- command = make_simple_command(:patch, path, options)
825
+ command = make_simple_command(:patch, 'projects/{project}/instances/{instance}', options)
760
826
  command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
761
827
  command.request_object = database_instance_object
762
828
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
@@ -795,9 +861,8 @@ module Google
795
861
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
796
862
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
797
863
  # @raise [Google::Apis::AuthorizationError] Authorization is required
798
- def promote_replica_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
799
- path = 'projects/{project}/instances/{instance}/promoteReplica'
800
- command = make_simple_command(:post, path, options)
864
+ def promote_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
865
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/promoteReplica', options)
801
866
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
802
867
  command.response_class = Google::Apis::SqladminV1beta4::Operation
803
868
  command.params['project'] = project unless project.nil?
@@ -837,9 +902,8 @@ module Google
837
902
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
838
903
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
839
904
  # @raise [Google::Apis::AuthorizationError] Authorization is required
840
- def reset_ssl_config_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
841
- path = 'projects/{project}/instances/{instance}/resetSslConfig'
842
- command = make_simple_command(:post, path, options)
905
+ def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
906
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/resetSslConfig', options)
843
907
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
844
908
  command.response_class = Google::Apis::SqladminV1beta4::Operation
845
909
  command.params['project'] = project unless project.nil?
@@ -877,8 +941,7 @@ module Google
877
941
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
878
942
  # @raise [Google::Apis::AuthorizationError] Authorization is required
879
943
  def restart_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
880
- path = 'projects/{project}/instances/{instance}/restart'
881
- command = make_simple_command(:post, path, options)
944
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restart', options)
882
945
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
883
946
  command.response_class = Google::Apis::SqladminV1beta4::Operation
884
947
  command.params['project'] = project unless project.nil?
@@ -916,9 +979,8 @@ module Google
916
979
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
917
980
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
918
981
  # @raise [Google::Apis::AuthorizationError] Authorization is required
919
- def restore_backup_instance(project, instance, restore_instances_backup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
920
- path = 'projects/{project}/instances/{instance}/restoreBackup'
921
- command = make_simple_command(:post, path, options)
982
+ def restore_instance_backup(project, instance, restore_instances_backup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
983
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restoreBackup', options)
922
984
  command.request_representation = Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest::Representation
923
985
  command.request_object = restore_instances_backup_request_object
924
986
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
@@ -957,9 +1019,8 @@ module Google
957
1019
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
958
1020
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
959
1021
  # @raise [Google::Apis::AuthorizationError] Authorization is required
960
- def start_replica_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
961
- path = 'projects/{project}/instances/{instance}/startReplica'
962
- command = make_simple_command(:post, path, options)
1022
+ def start_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1023
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/startReplica', options)
963
1024
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
964
1025
  command.response_class = Google::Apis::SqladminV1beta4::Operation
965
1026
  command.params['project'] = project unless project.nil?
@@ -996,9 +1057,8 @@ module Google
996
1057
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
997
1058
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
998
1059
  # @raise [Google::Apis::AuthorizationError] Authorization is required
999
- def stop_replica_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1000
- path = 'projects/{project}/instances/{instance}/stopReplica'
1001
- command = make_simple_command(:post, path, options)
1060
+ def stop_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1061
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/stopReplica', options)
1002
1062
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1003
1063
  command.response_class = Google::Apis::SqladminV1beta4::Operation
1004
1064
  command.params['project'] = project unless project.nil?
@@ -1039,8 +1099,7 @@ module Google
1039
1099
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1040
1100
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1041
1101
  def update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1042
- path = 'projects/{project}/instances/{instance}'
1043
- command = make_simple_command(:put, path, options)
1102
+ command = make_simple_command(:put, 'projects/{project}/instances/{instance}', options)
1044
1103
  command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
1045
1104
  command.request_object = database_instance_object
1046
1105
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
@@ -1080,8 +1139,7 @@ module Google
1080
1139
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1081
1140
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1082
1141
  def get_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1083
- path = 'projects/{project}/operations/{operation}'
1084
- command = make_simple_command(:get, path, options)
1142
+ command = make_simple_command(:get, 'projects/{project}/operations/{operation}', options)
1085
1143
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1086
1144
  command.response_class = Google::Apis::SqladminV1beta4::Operation
1087
1145
  command.params['project'] = project unless project.nil?
@@ -1125,8 +1183,7 @@ module Google
1125
1183
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1126
1184
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1127
1185
  def list_operations(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1128
- path = 'projects/{project}/operations'
1129
- command = make_simple_command(:get, path, options)
1186
+ command = make_simple_command(:get, 'projects/{project}/operations', options)
1130
1187
  command.response_representation = Google::Apis::SqladminV1beta4::ListOperationsResponse::Representation
1131
1188
  command.response_class = Google::Apis::SqladminV1beta4::ListOperationsResponse
1132
1189
  command.params['project'] = project unless project.nil?
@@ -1139,6 +1196,49 @@ module Google
1139
1196
  execute_or_queue_command(command, &block)
1140
1197
  end
1141
1198
 
1199
+ # Generates a short-lived X509 certificate containing the provided public key
1200
+ # and signed by a private key specific to the target instance. Users may use the
1201
+ # certificate to authenticate as themselves when connecting to the database.
1202
+ # @param [String] project
1203
+ # Project ID of the Cloud SQL project.
1204
+ # @param [String] instance
1205
+ # Cloud SQL instance ID. This does not include the project ID.
1206
+ # @param [Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_request_object
1207
+ # @param [String] fields
1208
+ # Selector specifying which fields to include in a partial response.
1209
+ # @param [String] quota_user
1210
+ # Available to use for quota purposes for server-side applications. Can be any
1211
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1212
+ # Overrides userIp if both are provided.
1213
+ # @param [String] user_ip
1214
+ # IP address of the site where the request originates. Use this if you want to
1215
+ # enforce per-user limits.
1216
+ # @param [Google::Apis::RequestOptions] options
1217
+ # Request-specific options
1218
+ #
1219
+ # @yield [result, err] Result & error if block supplied
1220
+ # @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object
1221
+ # @yieldparam err [StandardError] error object if request failed
1222
+ #
1223
+ # @return [Google::Apis::SqladminV1beta4::SslCert]
1224
+ #
1225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1228
+ def create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1229
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/createEphemeral', options)
1230
+ command.request_representation = Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest::Representation
1231
+ command.request_object = ssl_certs_create_ephemeral_request_object
1232
+ command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation
1233
+ command.response_class = Google::Apis::SqladminV1beta4::SslCert
1234
+ command.params['project'] = project unless project.nil?
1235
+ command.params['instance'] = instance unless instance.nil?
1236
+ command.query['fields'] = fields unless fields.nil?
1237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1238
+ command.query['userIp'] = user_ip unless user_ip.nil?
1239
+ execute_or_queue_command(command, &block)
1240
+ end
1241
+
1142
1242
  # Deletes the SSL certificate. The change will not take effect until the
1143
1243
  # instance is restarted.
1144
1244
  # @param [String] project
@@ -1169,8 +1269,7 @@ module Google
1169
1269
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1170
1270
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1171
1271
  def delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1172
- path = 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}'
1173
- command = make_simple_command(:delete, path, options)
1272
+ command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
1174
1273
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1175
1274
  command.response_class = Google::Apis::SqladminV1beta4::Operation
1176
1275
  command.params['project'] = project unless project.nil?
@@ -1213,8 +1312,7 @@ module Google
1213
1312
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1214
1313
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1215
1314
  def get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1216
- path = 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}'
1217
- command = make_simple_command(:get, path, options)
1315
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
1218
1316
  command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation
1219
1317
  command.response_class = Google::Apis::SqladminV1beta4::SslCert
1220
1318
  command.params['project'] = project unless project.nil?
@@ -1257,8 +1355,7 @@ module Google
1257
1355
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1258
1356
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1259
1357
  def insert_ssl_cert(project, instance, insert_ssl_certs_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1260
- path = 'projects/{project}/instances/{instance}/sslCerts'
1261
- command = make_simple_command(:post, path, options)
1358
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/sslCerts', options)
1262
1359
  command.request_representation = Google::Apis::SqladminV1beta4::InsertSslCertsRequest::Representation
1263
1360
  command.request_object = insert_ssl_certs_request_object
1264
1361
  command.response_representation = Google::Apis::SqladminV1beta4::InsertSslCertsResponse::Representation
@@ -1298,8 +1395,7 @@ module Google
1298
1395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1299
1396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1300
1397
  def list_ssl_certs(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1301
- path = 'projects/{project}/instances/{instance}/sslCerts'
1302
- command = make_simple_command(:get, path, options)
1398
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts', options)
1303
1399
  command.response_representation = Google::Apis::SqladminV1beta4::ListSslCertsResponse::Representation
1304
1400
  command.response_class = Google::Apis::SqladminV1beta4::ListSslCertsResponse
1305
1401
  command.params['project'] = project unless project.nil?
@@ -1336,8 +1432,7 @@ module Google
1336
1432
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1337
1433
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1338
1434
  def list_tiers(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1339
- path = 'projects/{project}/tiers'
1340
- command = make_simple_command(:get, path, options)
1435
+ command = make_simple_command(:get, 'projects/{project}/tiers', options)
1341
1436
  command.response_representation = Google::Apis::SqladminV1beta4::ListTiersResponse::Representation
1342
1437
  command.response_class = Google::Apis::SqladminV1beta4::ListTiersResponse
1343
1438
  command.params['project'] = project unless project.nil?
@@ -1378,8 +1473,7 @@ module Google
1378
1473
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1379
1474
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1380
1475
  def delete_user(project, instance, host, name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1381
- path = 'projects/{project}/instances/{instance}/users'
1382
- command = make_simple_command(:delete, path, options)
1476
+ command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/users', options)
1383
1477
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1384
1478
  command.response_class = Google::Apis::SqladminV1beta4::Operation
1385
1479
  command.params['project'] = project unless project.nil?
@@ -1420,8 +1514,7 @@ module Google
1420
1514
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1421
1515
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1422
1516
  def insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1423
- path = 'projects/{project}/instances/{instance}/users'
1424
- command = make_simple_command(:post, path, options)
1517
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/users', options)
1425
1518
  command.request_representation = Google::Apis::SqladminV1beta4::User::Representation
1426
1519
  command.request_object = user_object
1427
1520
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
@@ -1461,8 +1554,7 @@ module Google
1461
1554
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1462
1555
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1463
1556
  def list_users(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1464
- path = 'projects/{project}/instances/{instance}/users'
1465
- command = make_simple_command(:get, path, options)
1557
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/users', options)
1466
1558
  command.response_representation = Google::Apis::SqladminV1beta4::ListUsersResponse::Representation
1467
1559
  command.response_class = Google::Apis::SqladminV1beta4::ListUsersResponse
1468
1560
  command.params['project'] = project unless project.nil?
@@ -1505,8 +1597,7 @@ module Google
1505
1597
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1506
1598
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1507
1599
  def update_user(project, instance, host, name, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1508
- path = 'projects/{project}/instances/{instance}/users'
1509
- command = make_simple_command(:put, path, options)
1600
+ command = make_simple_command(:put, 'projects/{project}/instances/{instance}/users', options)
1510
1601
  command.request_representation = Google::Apis::SqladminV1beta4::User::Representation
1511
1602
  command.request_object = user_object
1512
1603
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation