google-api-client 0.32.1 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (948) hide show
  1. checksums.yaml +5 -5
  2. data/.kokoro/continuous/linux.cfg +2 -2
  3. data/.kokoro/continuous/post.cfg +30 -0
  4. data/.kokoro/presubmit/linux.cfg +1 -1
  5. data/.kokoro/release.cfg +94 -0
  6. data/.repo-metadata.json +5 -0
  7. data/.rubocop.yml +5 -0
  8. data/.yardopts +16 -2
  9. data/CHANGELOG.md +1354 -0
  10. data/Gemfile +1 -0
  11. data/OVERVIEW.md +36 -0
  12. data/README.md +50 -2
  13. data/Rakefile +71 -2
  14. data/api_list_config.yaml +1 -0
  15. data/api_names.yaml +2 -0
  16. data/bin/generate-api +10 -2
  17. data/docs/api-keys.md +20 -0
  18. data/docs/auth.md +53 -0
  19. data/docs/client-secrets.md +69 -0
  20. data/docs/getting-started.md +340 -0
  21. data/docs/installation.md +0 -0
  22. data/docs/logging.md +34 -0
  23. data/docs/media-upload.md +25 -0
  24. data/docs/oauth-installed.md +191 -0
  25. data/docs/oauth-server.md +135 -0
  26. data/docs/oauth-web.md +280 -0
  27. data/docs/oauth.md +268 -0
  28. data/docs/pagination.md +29 -0
  29. data/docs/performance.md +25 -0
  30. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -4
  31. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  32. data/generated/google/apis/accessapproval_v1/classes.rb +417 -0
  33. data/generated/google/apis/accessapproval_v1/representations.rb +203 -0
  34. data/generated/google/apis/accessapproval_v1/service.rb +869 -0
  35. data/generated/google/apis/{servicebroker_v1.rb → accessapproval_v1.rb} +8 -10
  36. data/generated/google/apis/accessapproval_v1beta1/classes.rb +35 -2
  37. data/generated/google/apis/accessapproval_v1beta1/representations.rb +13 -0
  38. data/generated/google/apis/accessapproval_v1beta1/service.rb +108 -6
  39. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  40. data/generated/google/apis/accesscontextmanager_v1/classes.rb +357 -56
  41. data/generated/google/apis/accesscontextmanager_v1/representations.rb +137 -6
  42. data/generated/google/apis/accesscontextmanager_v1/service.rb +143 -5
  43. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  44. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +133 -125
  45. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +21 -27
  46. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +6 -5
  47. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  48. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +35 -5
  49. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +4 -0
  50. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  51. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +24 -2
  52. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +1 -0
  53. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  54. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -3
  55. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  56. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  57. data/generated/google/apis/adexperiencereport_v1.rb +1 -4
  58. data/generated/google/apis/admin_datatransfer_v1/classes.rb +5 -5
  59. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -2
  60. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  61. data/generated/google/apis/admin_directory_v1/classes.rb +4 -150
  62. data/generated/google/apis/admin_directory_v1/representations.rb +0 -54
  63. data/generated/google/apis/admin_directory_v1/service.rb +0 -60
  64. data/generated/google/apis/admin_directory_v1.rb +4 -1
  65. data/generated/google/apis/admin_reports_v1/classes.rb +87 -44
  66. data/generated/google/apis/admin_reports_v1/service.rb +310 -64
  67. data/generated/google/apis/admin_reports_v1.rb +2 -2
  68. data/generated/google/apis/admob_v1/classes.rb +951 -0
  69. data/generated/google/apis/admob_v1/representations.rb +378 -0
  70. data/generated/google/apis/admob_v1/service.rb +196 -0
  71. data/generated/google/apis/{analytics_v2_4/classes.rb → admob_v1.rb} +11 -6
  72. data/generated/google/apis/adsense_v1_4.rb +1 -1
  73. data/generated/google/apis/adsensehost_v4_1/service.rb +5 -1
  74. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  75. data/generated/google/apis/alertcenter_v1beta1/classes.rb +259 -7
  76. data/generated/google/apis/alertcenter_v1beta1/representations.rb +126 -0
  77. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  78. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  79. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -2
  80. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  81. data/generated/google/apis/androidenterprise_v1/classes.rb +39 -60
  82. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  83. data/generated/google/apis/androidenterprise_v1/service.rb +0 -403
  84. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  85. data/generated/google/apis/androidmanagement_v1/classes.rb +203 -6
  86. data/generated/google/apis/androidmanagement_v1/representations.rb +68 -0
  87. data/generated/google/apis/androidmanagement_v1/service.rb +6 -1
  88. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  89. data/generated/google/apis/androidpublisher_v1/classes.rb +0 -41
  90. data/generated/google/apis/androidpublisher_v1/representations.rb +0 -16
  91. data/generated/google/apis/androidpublisher_v1/service.rb +1 -81
  92. data/generated/google/apis/androidpublisher_v1.rb +1 -4
  93. data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -41
  94. data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -16
  95. data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -80
  96. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  97. data/generated/google/apis/androidpublisher_v2/classes.rb +37 -1755
  98. data/generated/google/apis/androidpublisher_v2/representations.rb +15 -804
  99. data/generated/google/apis/androidpublisher_v2/service.rb +0 -2359
  100. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  101. data/generated/google/apis/androidpublisher_v3/classes.rb +404 -65
  102. data/generated/google/apis/androidpublisher_v3/representations.rb +180 -27
  103. data/generated/google/apis/androidpublisher_v3/service.rb +162 -3
  104. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  105. data/generated/google/apis/apigee_v1/classes.rb +4928 -0
  106. data/generated/google/apis/apigee_v1/representations.rb +1822 -0
  107. data/generated/google/apis/apigee_v1/service.rb +5578 -0
  108. data/generated/google/apis/apigee_v1.rb +40 -0
  109. data/generated/google/apis/appengine_v1/classes.rb +7 -0
  110. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  111. data/generated/google/apis/appengine_v1/service.rb +10 -6
  112. data/generated/google/apis/appengine_v1.rb +1 -1
  113. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  114. data/generated/google/apis/appengine_v1beta/classes.rb +7 -38
  115. data/generated/google/apis/appengine_v1beta/representations.rb +1 -17
  116. data/generated/google/apis/appengine_v1beta/service.rb +10 -6
  117. data/generated/google/apis/appengine_v1beta.rb +1 -1
  118. data/generated/google/apis/appsactivity_v1.rb +1 -1
  119. data/generated/google/apis/appsmarket_v2.rb +1 -1
  120. data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1 → artifactregistry_v1beta1}/classes.rb +591 -765
  121. data/generated/google/apis/{servicebroker_v1alpha1 → artifactregistry_v1beta1}/representations.rb +128 -115
  122. data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
  123. data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
  124. data/generated/google/apis/bigquery_v2/classes.rb +993 -43
  125. data/generated/google/apis/bigquery_v2/representations.rb +273 -2
  126. data/generated/google/apis/bigquery_v2/service.rb +137 -4
  127. data/generated/google/apis/bigquery_v2.rb +1 -1
  128. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +149 -59
  129. data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +2 -0
  130. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +11 -10
  131. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  132. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +49 -0
  133. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +19 -0
  134. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +90 -34
  135. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  136. data/generated/google/apis/bigqueryreservation_v1/classes.rb +392 -16
  137. data/generated/google/apis/bigqueryreservation_v1/representations.rb +174 -6
  138. data/generated/google/apis/bigqueryreservation_v1/service.rb +758 -0
  139. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  140. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +109 -10
  141. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +26 -3
  142. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +71 -0
  143. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  144. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +166 -160
  145. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +49 -38
  146. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +257 -146
  147. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  148. data/generated/google/apis/bigtableadmin_v1/classes.rb +21 -18
  149. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  150. data/generated/google/apis/bigtableadmin_v2/classes.rb +189 -82
  151. data/generated/google/apis/bigtableadmin_v2/service.rb +170 -58
  152. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  153. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +413 -0
  154. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +197 -0
  155. data/generated/google/apis/billingbudgets_v1beta1/service.rb +244 -0
  156. data/generated/google/apis/{servicebroker_v1beta1.rb → billingbudgets_v1beta1.rb} +9 -10
  157. data/generated/google/apis/binaryauthorization_v1/classes.rb +143 -58
  158. data/generated/google/apis/binaryauthorization_v1/service.rb +10 -2
  159. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  160. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +139 -57
  161. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +10 -2
  162. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  163. data/generated/google/apis/blogger_v2/classes.rb +297 -45
  164. data/generated/google/apis/blogger_v2/representations.rb +105 -26
  165. data/generated/google/apis/blogger_v2/service.rb +79 -134
  166. data/generated/google/apis/blogger_v2.rb +5 -4
  167. data/generated/google/apis/blogger_v3/classes.rb +60 -53
  168. data/generated/google/apis/blogger_v3/representations.rb +10 -18
  169. data/generated/google/apis/blogger_v3/service.rb +183 -463
  170. data/generated/google/apis/blogger_v3.rb +4 -3
  171. data/generated/google/apis/books_v1/classes.rb +494 -242
  172. data/generated/google/apis/books_v1/representations.rb +145 -72
  173. data/generated/google/apis/books_v1/service.rb +354 -484
  174. data/generated/google/apis/books_v1.rb +3 -3
  175. data/generated/google/apis/calendar_v3/classes.rb +8 -21
  176. data/generated/google/apis/calendar_v3/service.rb +18 -30
  177. data/generated/google/apis/calendar_v3.rb +1 -1
  178. data/generated/google/apis/chat_v1/classes.rb +29 -3
  179. data/generated/google/apis/chat_v1/representations.rb +3 -0
  180. data/generated/google/apis/chat_v1/service.rb +5 -2
  181. data/generated/google/apis/chat_v1.rb +1 -1
  182. data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
  183. data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
  184. data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
  185. data/generated/google/apis/{pagespeedonline_v1.rb → chromeuxreport_v1.rb} +9 -9
  186. data/generated/google/apis/civicinfo_v2/classes.rb +0 -156
  187. data/generated/google/apis/civicinfo_v2/representations.rb +2 -60
  188. data/generated/google/apis/civicinfo_v2.rb +1 -1
  189. data/generated/google/apis/classroom_v1/classes.rb +14 -14
  190. data/generated/google/apis/classroom_v1/service.rb +11 -11
  191. data/generated/google/apis/classroom_v1.rb +1 -1
  192. data/generated/google/apis/cloudasset_v1/classes.rb +917 -195
  193. data/generated/google/apis/cloudasset_v1/representations.rb +234 -6
  194. data/generated/google/apis/cloudasset_v1/service.rb +363 -12
  195. data/generated/google/apis/cloudasset_v1.rb +2 -2
  196. data/generated/google/apis/cloudasset_v1beta1/classes.rb +139 -57
  197. data/generated/google/apis/cloudasset_v1beta1/service.rb +13 -4
  198. data/generated/google/apis/cloudasset_v1beta1.rb +2 -2
  199. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +701 -0
  200. data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +201 -0
  201. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +189 -0
  202. data/generated/google/apis/cloudasset_v1p1beta1.rb +34 -0
  203. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +924 -0
  204. data/generated/google/apis/cloudasset_v1p4beta1/representations.rb +377 -0
  205. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +217 -0
  206. data/generated/google/apis/cloudasset_v1p4beta1.rb +34 -0
  207. data/generated/google/apis/cloudbilling_v1/classes.rb +179 -68
  208. data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
  209. data/generated/google/apis/cloudbilling_v1/service.rb +16 -9
  210. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  211. data/generated/google/apis/cloudbuild_v1/classes.rb +55 -10
  212. data/generated/google/apis/cloudbuild_v1/representations.rb +5 -0
  213. data/generated/google/apis/cloudbuild_v1/service.rb +139 -18
  214. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  215. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +170 -5
  216. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +63 -0
  217. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -5
  218. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  219. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +1283 -0
  220. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +491 -0
  221. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +353 -0
  222. data/generated/google/apis/cloudbuild_v1alpha2.rb +34 -0
  223. data/generated/google/apis/clouddebugger_v2/classes.rb +34 -0
  224. data/generated/google/apis/clouddebugger_v2/representations.rb +4 -0
  225. data/generated/google/apis/clouddebugger_v2/service.rb +24 -17
  226. data/generated/google/apis/clouddebugger_v2.rb +2 -2
  227. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
  228. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +13 -13
  229. data/generated/google/apis/clouderrorreporting_v1beta1.rb +2 -2
  230. data/generated/google/apis/cloudfunctions_v1/classes.rb +161 -59
  231. data/generated/google/apis/cloudfunctions_v1/representations.rb +3 -0
  232. data/generated/google/apis/cloudfunctions_v1/service.rb +13 -4
  233. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  234. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
  235. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  236. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +10 -4
  237. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  238. data/generated/google/apis/cloudidentity_v1/classes.rb +11 -8
  239. data/generated/google/apis/cloudidentity_v1/service.rb +22 -14
  240. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  241. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1009 -69
  242. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +390 -0
  243. data/generated/google/apis/cloudidentity_v1beta1/service.rb +189 -78
  244. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  245. data/generated/google/apis/cloudiot_v1/classes.rb +142 -57
  246. data/generated/google/apis/cloudiot_v1.rb +1 -1
  247. data/generated/google/apis/cloudkms_v1/classes.rb +461 -61
  248. data/generated/google/apis/cloudkms_v1/representations.rb +33 -0
  249. data/generated/google/apis/cloudkms_v1/service.rb +15 -3
  250. data/generated/google/apis/cloudkms_v1.rb +1 -1
  251. data/generated/google/apis/cloudprofiler_v2.rb +1 -1
  252. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +155 -71
  253. data/generated/google/apis/cloudresourcemanager_v1/service.rb +6 -3
  254. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  255. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +143 -59
  256. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
  257. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  258. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +147 -67
  259. data/generated/google/apis/cloudresourcemanager_v2/service.rb +11 -13
  260. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  261. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +147 -67
  262. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +11 -13
  263. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  264. data/generated/google/apis/cloudscheduler_v1/classes.rb +3 -2
  265. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  266. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +3 -2
  267. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  268. data/generated/google/apis/cloudsearch_v1/classes.rb +86 -195
  269. data/generated/google/apis/cloudsearch_v1/representations.rb +1 -75
  270. data/generated/google/apis/cloudsearch_v1/service.rb +62 -10
  271. data/generated/google/apis/cloudsearch_v1.rb +8 -8
  272. data/generated/google/apis/cloudshell_v1/classes.rb +24 -1
  273. data/generated/google/apis/cloudshell_v1/representations.rb +3 -0
  274. data/generated/google/apis/cloudshell_v1.rb +1 -1
  275. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +30 -1
  276. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +5 -0
  277. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  278. data/generated/google/apis/cloudtasks_v2/classes.rb +388 -70
  279. data/generated/google/apis/cloudtasks_v2/representations.rb +65 -0
  280. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  281. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +148 -66
  282. data/generated/google/apis/cloudtasks_v2beta2/service.rb +6 -1
  283. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  284. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +156 -74
  285. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  286. data/generated/google/apis/cloudtrace_v1/service.rb +10 -4
  287. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  288. data/generated/google/apis/cloudtrace_v2/classes.rb +8 -7
  289. data/generated/google/apis/cloudtrace_v2/service.rb +8 -4
  290. data/generated/google/apis/cloudtrace_v2.rb +5 -5
  291. data/generated/google/apis/cloudtrace_v2beta1/classes.rb +143 -0
  292. data/generated/google/apis/{oauth2_v1 → cloudtrace_v2beta1}/representations.rb +36 -27
  293. data/generated/google/apis/cloudtrace_v2beta1/service.rb +258 -0
  294. data/generated/google/apis/cloudtrace_v2beta1.rb +44 -0
  295. data/generated/google/apis/composer_v1/classes.rb +180 -0
  296. data/generated/google/apis/composer_v1/representations.rb +54 -0
  297. data/generated/google/apis/composer_v1.rb +1 -1
  298. data/generated/google/apis/composer_v1beta1/classes.rb +152 -5
  299. data/generated/google/apis/composer_v1beta1/representations.rb +64 -0
  300. data/generated/google/apis/composer_v1beta1/service.rb +5 -0
  301. data/generated/google/apis/composer_v1beta1.rb +1 -1
  302. data/generated/google/apis/compute_alpha/classes.rb +3252 -973
  303. data/generated/google/apis/compute_alpha/representations.rb +634 -69
  304. data/generated/google/apis/compute_alpha/service.rb +9085 -6210
  305. data/generated/google/apis/compute_alpha.rb +1 -1
  306. data/generated/google/apis/compute_beta/classes.rb +4787 -1066
  307. data/generated/google/apis/compute_beta/representations.rb +1394 -31
  308. data/generated/google/apis/compute_beta/service.rb +8858 -5018
  309. data/generated/google/apis/compute_beta.rb +1 -1
  310. data/generated/google/apis/compute_v1/classes.rb +2976 -599
  311. data/generated/google/apis/compute_v1/representations.rb +850 -0
  312. data/generated/google/apis/compute_v1/service.rb +4634 -2481
  313. data/generated/google/apis/compute_v1.rb +1 -1
  314. data/generated/google/apis/container_v1/classes.rb +925 -164
  315. data/generated/google/apis/container_v1/representations.rb +278 -0
  316. data/generated/google/apis/container_v1/service.rb +175 -158
  317. data/generated/google/apis/container_v1.rb +1 -1
  318. data/generated/google/apis/container_v1beta1/classes.rb +803 -340
  319. data/generated/google/apis/container_v1beta1/representations.rb +185 -39
  320. data/generated/google/apis/container_v1beta1/service.rb +294 -277
  321. data/generated/google/apis/container_v1beta1.rb +1 -1
  322. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +142 -57
  323. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  324. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +478 -59
  325. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +159 -0
  326. data/generated/google/apis/containeranalysis_v1beta1/service.rb +26 -20
  327. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  328. data/generated/google/apis/content_v2/classes.rb +1566 -634
  329. data/generated/google/apis/content_v2/representations.rb +78 -115
  330. data/generated/google/apis/content_v2/service.rb +81 -206
  331. data/generated/google/apis/content_v2.rb +1 -1
  332. data/generated/google/apis/content_v2_1/classes.rb +2706 -683
  333. data/generated/google/apis/content_v2_1/representations.rb +551 -0
  334. data/generated/google/apis/content_v2_1/service.rb +520 -46
  335. data/generated/google/apis/content_v2_1.rb +1 -1
  336. data/generated/google/apis/customsearch_v1/classes.rb +1194 -353
  337. data/generated/google/apis/customsearch_v1/representations.rb +166 -95
  338. data/generated/google/apis/customsearch_v1/service.rb +373 -104
  339. data/generated/google/apis/customsearch_v1.rb +3 -3
  340. data/generated/google/apis/datacatalog_v1beta1/classes.rb +1907 -0
  341. data/generated/google/apis/datacatalog_v1beta1/representations.rb +739 -0
  342. data/generated/google/apis/datacatalog_v1beta1/service.rb +2247 -0
  343. data/generated/google/apis/{cloudprivatecatalog_v1beta1.rb → datacatalog_v1beta1.rb} +9 -9
  344. data/generated/google/apis/dataflow_v1b3/classes.rb +786 -11
  345. data/generated/google/apis/dataflow_v1b3/representations.rb +377 -1
  346. data/generated/google/apis/dataflow_v1b3/service.rb +626 -0
  347. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  348. data/generated/google/apis/datafusion_v1beta1/classes.rb +245 -362
  349. data/generated/google/apis/datafusion_v1beta1/representations.rb +29 -112
  350. data/generated/google/apis/datafusion_v1beta1/service.rb +15 -2
  351. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  352. data/generated/google/apis/dataproc_v1/classes.rb +533 -177
  353. data/generated/google/apis/dataproc_v1/representations.rb +85 -0
  354. data/generated/google/apis/dataproc_v1/service.rb +102 -36
  355. data/generated/google/apis/dataproc_v1.rb +1 -1
  356. data/generated/google/apis/dataproc_v1beta2/classes.rb +477 -182
  357. data/generated/google/apis/dataproc_v1beta2/representations.rb +81 -0
  358. data/generated/google/apis/dataproc_v1beta2/service.rb +199 -43
  359. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  360. data/generated/google/apis/datastore_v1/classes.rb +17 -23
  361. data/generated/google/apis/datastore_v1/service.rb +93 -9
  362. data/generated/google/apis/datastore_v1.rb +1 -1
  363. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  364. data/generated/google/apis/datastore_v1beta3/classes.rb +6 -5
  365. data/generated/google/apis/datastore_v1beta3/service.rb +7 -7
  366. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  367. data/generated/google/apis/deploymentmanager_alpha/classes.rb +362 -176
  368. data/generated/google/apis/deploymentmanager_alpha/representations.rb +22 -4
  369. data/generated/google/apis/deploymentmanager_alpha/service.rb +198 -311
  370. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  371. data/generated/google/apis/deploymentmanager_v2/classes.rb +295 -146
  372. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -1
  373. data/generated/google/apis/deploymentmanager_v2/service.rb +101 -99
  374. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  375. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +350 -170
  376. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +18 -1
  377. data/generated/google/apis/deploymentmanager_v2beta/service.rb +154 -152
  378. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  379. data/generated/google/apis/dfareporting_v3_3/classes.rb +39 -13
  380. data/generated/google/apis/dfareporting_v3_3/service.rb +9 -8
  381. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  382. data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/classes.rb +1361 -813
  383. data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/representations.rb +639 -396
  384. data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/service.rb +969 -1076
  385. data/generated/google/apis/{dfareporting_v3_2.rb → dfareporting_v3_4.rb} +6 -6
  386. data/generated/google/apis/dialogflow_v2/classes.rb +1778 -219
  387. data/generated/google/apis/dialogflow_v2/representations.rb +603 -0
  388. data/generated/google/apis/dialogflow_v2/service.rb +849 -158
  389. data/generated/google/apis/dialogflow_v2.rb +1 -1
  390. data/generated/google/apis/dialogflow_v2beta1/classes.rb +1776 -242
  391. data/generated/google/apis/dialogflow_v2beta1/representations.rb +592 -0
  392. data/generated/google/apis/dialogflow_v2beta1/service.rb +436 -172
  393. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  394. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +5579 -0
  395. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +2295 -0
  396. data/generated/google/apis/dialogflow_v3alpha1/service.rb +296 -0
  397. data/generated/google/apis/dialogflow_v3alpha1.rb +38 -0
  398. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  399. data/generated/google/apis/displayvideo_v1/classes.rb +7527 -0
  400. data/generated/google/apis/displayvideo_v1/representations.rb +3034 -0
  401. data/generated/google/apis/displayvideo_v1/service.rb +3126 -0
  402. data/generated/google/apis/displayvideo_v1.rb +38 -0
  403. data/generated/google/apis/dlp_v2/classes.rb +798 -130
  404. data/generated/google/apis/dlp_v2/representations.rb +277 -3
  405. data/generated/google/apis/dlp_v2/service.rb +2074 -231
  406. data/generated/google/apis/dlp_v2.rb +1 -1
  407. data/generated/google/apis/dns_v1/classes.rb +220 -251
  408. data/generated/google/apis/dns_v1/representations.rb +49 -0
  409. data/generated/google/apis/dns_v1/service.rb +21 -141
  410. data/generated/google/apis/dns_v1.rb +1 -1
  411. data/generated/google/apis/dns_v1beta2/classes.rb +224 -261
  412. data/generated/google/apis/dns_v1beta2/representations.rb +49 -0
  413. data/generated/google/apis/dns_v1beta2/service.rb +21 -141
  414. data/generated/google/apis/dns_v1beta2.rb +1 -1
  415. data/generated/google/apis/dns_v2beta1/classes.rb +220 -251
  416. data/generated/google/apis/dns_v2beta1/representations.rb +49 -0
  417. data/generated/google/apis/dns_v2beta1/service.rb +21 -141
  418. data/generated/google/apis/dns_v2beta1.rb +1 -1
  419. data/generated/google/apis/docs_v1/classes.rb +608 -2
  420. data/generated/google/apis/docs_v1/representations.rb +211 -0
  421. data/generated/google/apis/docs_v1.rb +1 -1
  422. data/generated/google/apis/domainsrdap_v1.rb +1 -1
  423. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  424. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  425. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +860 -0
  426. data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +388 -0
  427. data/generated/google/apis/{surveys_v2 → doubleclickbidmanager_v1_1}/service.rb +140 -110
  428. data/generated/google/apis/{proximitybeacon_v1beta1.rb → doubleclickbidmanager_v1_1.rb} +11 -11
  429. data/generated/google/apis/doubleclicksearch_v2/service.rb +0 -55
  430. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  431. data/generated/google/apis/drive_v2/classes.rb +58 -5
  432. data/generated/google/apis/drive_v2/representations.rb +18 -0
  433. data/generated/google/apis/drive_v2/service.rb +92 -118
  434. data/generated/google/apis/drive_v2.rb +1 -1
  435. data/generated/google/apis/drive_v3/classes.rb +66 -5
  436. data/generated/google/apis/drive_v3/representations.rb +18 -0
  437. data/generated/google/apis/drive_v3/service.rb +46 -14
  438. data/generated/google/apis/drive_v3.rb +1 -1
  439. data/generated/google/apis/driveactivity_v2/classes.rb +15 -5
  440. data/generated/google/apis/driveactivity_v2/representations.rb +2 -0
  441. data/generated/google/apis/driveactivity_v2.rb +1 -1
  442. data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
  443. data/generated/google/apis/fcm_v1/classes.rb +15 -0
  444. data/generated/google/apis/fcm_v1/representations.rb +2 -0
  445. data/generated/google/apis/fcm_v1.rb +1 -1
  446. data/generated/google/apis/file_v1/classes.rb +1235 -158
  447. data/generated/google/apis/file_v1/representations.rb +401 -22
  448. data/generated/google/apis/file_v1/service.rb +14 -10
  449. data/generated/google/apis/file_v1.rb +1 -1
  450. data/generated/google/apis/file_v1beta1/classes.rb +1236 -159
  451. data/generated/google/apis/file_v1beta1/representations.rb +401 -22
  452. data/generated/google/apis/file_v1beta1/service.rb +18 -11
  453. data/generated/google/apis/file_v1beta1.rb +1 -1
  454. data/generated/google/apis/firebase_v1beta1/classes.rb +20 -16
  455. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
  456. data/generated/google/apis/firebase_v1beta1/service.rb +22 -16
  457. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  458. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  459. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +174 -1
  460. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +65 -0
  461. data/generated/google/apis/firebasehosting_v1beta1/service.rb +805 -2
  462. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  463. data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
  464. data/generated/google/apis/{servicebroker_v1 → firebaseml_v1}/representations.rb +26 -28
  465. data/generated/google/apis/firebaseml_v1/service.rb +181 -0
  466. data/generated/google/apis/firebaseml_v1.rb +34 -0
  467. data/generated/google/apis/firebaseml_v1beta2/classes.rb +344 -0
  468. data/generated/google/apis/{cloudprivatecatalog_v1beta1 → firebaseml_v1beta2}/representations.rb +62 -31
  469. data/generated/google/apis/firebaseml_v1beta2/service.rb +267 -0
  470. data/generated/google/apis/firebaseml_v1beta2.rb +34 -0
  471. data/generated/google/apis/firebaserules_v1/classes.rb +113 -0
  472. data/generated/google/apis/firebaserules_v1/representations.rb +52 -0
  473. data/generated/google/apis/firebaserules_v1.rb +1 -1
  474. data/generated/google/apis/firestore_v1/classes.rb +16 -5
  475. data/generated/google/apis/firestore_v1/representations.rb +2 -0
  476. data/generated/google/apis/firestore_v1/service.rb +26 -24
  477. data/generated/google/apis/firestore_v1.rb +1 -1
  478. data/generated/google/apis/firestore_v1beta1/classes.rb +16 -5
  479. data/generated/google/apis/firestore_v1beta1/representations.rb +2 -0
  480. data/generated/google/apis/firestore_v1beta1/service.rb +18 -16
  481. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  482. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  483. data/generated/google/apis/fitness_v1/classes.rb +189 -153
  484. data/generated/google/apis/fitness_v1/service.rb +192 -198
  485. data/generated/google/apis/fitness_v1.rb +14 -14
  486. data/generated/google/apis/games_configuration_v1configuration/classes.rb +38 -53
  487. data/generated/google/apis/games_configuration_v1configuration/service.rb +58 -169
  488. data/generated/google/apis/games_configuration_v1configuration.rb +4 -3
  489. data/generated/google/apis/games_management_v1management/classes.rb +50 -109
  490. data/generated/google/apis/games_management_v1management/representations.rb +0 -30
  491. data/generated/google/apis/games_management_v1management/service.rb +116 -452
  492. data/generated/google/apis/games_management_v1management.rb +6 -4
  493. data/generated/google/apis/games_v1/classes.rb +14 -293
  494. data/generated/google/apis/games_v1/representations.rb +2 -98
  495. data/generated/google/apis/games_v1/service.rb +3 -135
  496. data/generated/google/apis/games_v1.rb +1 -1
  497. data/generated/google/apis/gameservices_v1beta/classes.rb +2354 -0
  498. data/generated/google/apis/gameservices_v1beta/representations.rb +971 -0
  499. data/generated/google/apis/gameservices_v1beta/service.rb +1472 -0
  500. data/generated/google/apis/gameservices_v1beta.rb +34 -0
  501. data/generated/google/apis/genomics_v1.rb +1 -1
  502. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  503. data/generated/google/apis/genomics_v2alpha1/classes.rb +32 -0
  504. data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
  505. data/generated/google/apis/genomics_v2alpha1/service.rb +34 -0
  506. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  507. data/generated/google/apis/gmail_v1/classes.rb +6 -2
  508. data/generated/google/apis/gmail_v1/service.rb +1 -1
  509. data/generated/google/apis/gmail_v1.rb +13 -1
  510. data/generated/google/apis/healthcare_v1/classes.rb +2659 -0
  511. data/generated/google/apis/healthcare_v1/representations.rb +1114 -0
  512. data/generated/google/apis/healthcare_v1/service.rb +3439 -0
  513. data/generated/google/apis/healthcare_v1.rb +34 -0
  514. data/generated/google/apis/healthcare_v1beta1/classes.rb +1013 -128
  515. data/generated/google/apis/healthcare_v1beta1/representations.rb +341 -1
  516. data/generated/google/apis/healthcare_v1beta1/service.rb +762 -275
  517. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  518. data/generated/google/apis/homegraph_v1/classes.rb +79 -56
  519. data/generated/google/apis/homegraph_v1/representations.rb +2 -1
  520. data/generated/google/apis/homegraph_v1/service.rb +43 -47
  521. data/generated/google/apis/homegraph_v1.rb +1 -1
  522. data/generated/google/apis/iam_v1/classes.rb +201 -169
  523. data/generated/google/apis/iam_v1/representations.rb +1 -6
  524. data/generated/google/apis/iam_v1/service.rb +18 -21
  525. data/generated/google/apis/iam_v1.rb +1 -1
  526. data/generated/google/apis/iamcredentials_v1/classes.rb +40 -8
  527. data/generated/google/apis/iamcredentials_v1/service.rb +4 -4
  528. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  529. data/generated/google/apis/iap_v1/classes.rb +691 -59
  530. data/generated/google/apis/iap_v1/representations.rb +254 -0
  531. data/generated/google/apis/iap_v1/service.rb +362 -0
  532. data/generated/google/apis/iap_v1.rb +1 -1
  533. data/generated/google/apis/iap_v1beta1/classes.rb +144 -59
  534. data/generated/google/apis/iap_v1beta1.rb +1 -1
  535. data/generated/google/apis/indexing_v3.rb +1 -1
  536. data/generated/google/apis/jobs_v2/classes.rb +167 -0
  537. data/generated/google/apis/jobs_v2/representations.rb +40 -0
  538. data/generated/google/apis/jobs_v2.rb +1 -1
  539. data/generated/google/apis/jobs_v3/classes.rb +180 -0
  540. data/generated/google/apis/jobs_v3/representations.rb +41 -0
  541. data/generated/google/apis/jobs_v3.rb +1 -1
  542. data/generated/google/apis/jobs_v3p1beta1/classes.rb +187 -2
  543. data/generated/google/apis/jobs_v3p1beta1/representations.rb +41 -0
  544. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  545. data/generated/google/apis/kgsearch_v1.rb +1 -1
  546. data/generated/google/apis/language_v1/classes.rb +6 -6
  547. data/generated/google/apis/language_v1.rb +1 -1
  548. data/generated/google/apis/language_v1beta1/classes.rb +5 -5
  549. data/generated/google/apis/language_v1beta1.rb +1 -1
  550. data/generated/google/apis/language_v1beta2/classes.rb +23 -7
  551. data/generated/google/apis/language_v1beta2/representations.rb +2 -0
  552. data/generated/google/apis/language_v1beta2.rb +1 -1
  553. data/generated/google/apis/libraryagent_v1.rb +1 -1
  554. data/generated/google/apis/licensing_v1/classes.rb +15 -7
  555. data/generated/google/apis/licensing_v1/service.rb +81 -37
  556. data/generated/google/apis/licensing_v1.rb +4 -4
  557. data/generated/google/apis/lifesciences_v2beta/classes.rb +1329 -0
  558. data/generated/google/apis/lifesciences_v2beta/representations.rb +533 -0
  559. data/generated/google/apis/lifesciences_v2beta/service.rb +303 -0
  560. data/generated/google/apis/lifesciences_v2beta.rb +35 -0
  561. data/generated/google/apis/logging_v2/classes.rb +292 -91
  562. data/generated/google/apis/logging_v2/representations.rb +51 -0
  563. data/generated/google/apis/logging_v2/service.rb +888 -15
  564. data/generated/google/apis/logging_v2.rb +6 -6
  565. data/generated/google/apis/managedidentities_v1/classes.rb +1571 -0
  566. data/generated/google/apis/managedidentities_v1/representations.rb +560 -0
  567. data/generated/google/apis/managedidentities_v1/service.rb +779 -0
  568. data/generated/google/apis/managedidentities_v1.rb +35 -0
  569. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +1570 -0
  570. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +560 -0
  571. data/generated/google/apis/managedidentities_v1alpha1/service.rb +782 -0
  572. data/generated/google/apis/{servicebroker_v1alpha1.rb → managedidentities_v1alpha1.rb} +9 -10
  573. data/generated/google/apis/managedidentities_v1beta1/classes.rb +1568 -0
  574. data/generated/google/apis/managedidentities_v1beta1/representations.rb +560 -0
  575. data/generated/google/apis/managedidentities_v1beta1/service.rb +778 -0
  576. data/generated/google/apis/managedidentities_v1beta1.rb +35 -0
  577. data/generated/google/apis/manufacturers_v1/classes.rb +7 -0
  578. data/generated/google/apis/manufacturers_v1/representations.rb +1 -0
  579. data/generated/google/apis/manufacturers_v1.rb +1 -1
  580. data/generated/google/apis/memcache_v1beta2/classes.rb +1587 -0
  581. data/generated/google/apis/memcache_v1beta2/representations.rb +557 -0
  582. data/generated/google/apis/memcache_v1beta2/service.rb +677 -0
  583. data/generated/google/apis/memcache_v1beta2.rb +35 -0
  584. data/generated/google/apis/ml_v1/classes.rb +1518 -233
  585. data/generated/google/apis/ml_v1/representations.rb +559 -0
  586. data/generated/google/apis/ml_v1/service.rb +560 -25
  587. data/generated/google/apis/ml_v1.rb +5 -2
  588. data/generated/google/apis/monitoring_v1/classes.rb +1231 -0
  589. data/generated/google/apis/monitoring_v1/representations.rb +513 -0
  590. data/generated/google/apis/monitoring_v1/service.rb +246 -0
  591. data/generated/google/apis/monitoring_v1.rb +47 -0
  592. data/generated/google/apis/monitoring_v3/classes.rb +1330 -172
  593. data/generated/google/apis/monitoring_v3/representations.rb +482 -1
  594. data/generated/google/apis/monitoring_v3/service.rb +614 -162
  595. data/generated/google/apis/monitoring_v3.rb +7 -8
  596. data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
  597. data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
  598. data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
  599. data/generated/google/apis/networkmanagement_v1.rb +35 -0
  600. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +1868 -0
  601. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +661 -0
  602. data/generated/google/apis/networkmanagement_v1beta1/service.rb +667 -0
  603. data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1.rb → networkmanagement_v1beta1.rb} +9 -9
  604. data/generated/google/apis/oauth2_v2/classes.rb +1 -81
  605. data/generated/google/apis/oauth2_v2/representations.rb +2 -36
  606. data/generated/google/apis/oauth2_v2/service.rb +10 -42
  607. data/generated/google/apis/oauth2_v2.rb +5 -5
  608. data/generated/google/apis/osconfig_v1/classes.rb +1225 -0
  609. data/generated/google/apis/osconfig_v1/representations.rb +506 -0
  610. data/generated/google/apis/osconfig_v1/service.rb +386 -0
  611. data/generated/google/apis/osconfig_v1.rb +35 -0
  612. data/generated/google/apis/osconfig_v1beta/classes.rb +2362 -0
  613. data/generated/google/apis/osconfig_v1beta/representations.rb +966 -0
  614. data/generated/google/apis/osconfig_v1beta/service.rb +605 -0
  615. data/generated/google/apis/osconfig_v1beta.rb +35 -0
  616. data/generated/google/apis/oslogin_v1/classes.rb +1 -1
  617. data/generated/google/apis/oslogin_v1/service.rb +10 -7
  618. data/generated/google/apis/oslogin_v1.rb +1 -2
  619. data/generated/google/apis/oslogin_v1alpha/service.rb +0 -1
  620. data/generated/google/apis/oslogin_v1alpha.rb +1 -2
  621. data/generated/google/apis/oslogin_v1beta/classes.rb +1 -1
  622. data/generated/google/apis/oslogin_v1beta/service.rb +9 -6
  623. data/generated/google/apis/oslogin_v1beta.rb +1 -2
  624. data/generated/google/apis/pagespeedonline_v5/classes.rb +534 -495
  625. data/generated/google/apis/pagespeedonline_v5/representations.rb +226 -221
  626. data/generated/google/apis/pagespeedonline_v5/service.rb +22 -24
  627. data/generated/google/apis/pagespeedonline_v5.rb +9 -4
  628. data/generated/google/apis/people_v1/classes.rb +104 -81
  629. data/generated/google/apis/people_v1/representations.rb +1 -0
  630. data/generated/google/apis/people_v1/service.rb +72 -79
  631. data/generated/google/apis/people_v1.rb +10 -1
  632. data/generated/google/apis/policytroubleshooter_v1/classes.rb +765 -0
  633. data/generated/google/apis/policytroubleshooter_v1/representations.rb +203 -0
  634. data/generated/google/apis/policytroubleshooter_v1/service.rb +90 -0
  635. data/generated/google/apis/policytroubleshooter_v1.rb +34 -0
  636. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +254 -111
  637. data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -3
  638. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  639. data/generated/google/apis/poly_v1.rb +1 -1
  640. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +1137 -0
  641. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +532 -0
  642. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +1676 -0
  643. data/generated/google/apis/{pagespeedonline_v4.rb → prod_tt_sasportal_v1alpha1.rb} +12 -10
  644. data/generated/google/apis/pubsub_v1/classes.rb +248 -76
  645. data/generated/google/apis/pubsub_v1/representations.rb +18 -0
  646. data/generated/google/apis/pubsub_v1/service.rb +43 -31
  647. data/generated/google/apis/pubsub_v1.rb +1 -1
  648. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  649. data/generated/google/apis/pubsub_v1beta2/classes.rb +144 -59
  650. data/generated/google/apis/pubsub_v1beta2/service.rb +10 -2
  651. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  652. data/generated/google/apis/recommender_v1beta1/classes.rb +221 -7
  653. data/generated/google/apis/recommender_v1beta1/representations.rb +96 -0
  654. data/generated/google/apis/recommender_v1beta1/service.rb +146 -19
  655. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  656. data/generated/google/apis/redis_v1/classes.rb +48 -18
  657. data/generated/google/apis/redis_v1/representations.rb +14 -0
  658. data/generated/google/apis/redis_v1/service.rb +41 -5
  659. data/generated/google/apis/redis_v1.rb +1 -1
  660. data/generated/google/apis/redis_v1beta1/classes.rb +48 -18
  661. data/generated/google/apis/redis_v1beta1/representations.rb +14 -0
  662. data/generated/google/apis/redis_v1beta1/service.rb +41 -5
  663. data/generated/google/apis/redis_v1beta1.rb +1 -1
  664. data/generated/google/apis/remotebuildexecution_v1/classes.rb +352 -37
  665. data/generated/google/apis/remotebuildexecution_v1/representations.rb +99 -0
  666. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  667. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +352 -37
  668. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +99 -0
  669. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  670. data/generated/google/apis/remotebuildexecution_v2/classes.rb +362 -45
  671. data/generated/google/apis/remotebuildexecution_v2/representations.rb +100 -0
  672. data/generated/google/apis/remotebuildexecution_v2/service.rb +5 -1
  673. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  674. data/generated/google/apis/reseller_v1/service.rb +1 -1
  675. data/generated/google/apis/reseller_v1.rb +1 -1
  676. data/generated/google/apis/run_v1/classes.rb +308 -325
  677. data/generated/google/apis/run_v1/representations.rb +63 -103
  678. data/generated/google/apis/run_v1/service.rb +336 -933
  679. data/generated/google/apis/run_v1.rb +1 -1
  680. data/generated/google/apis/run_v1alpha1/classes.rb +1045 -392
  681. data/generated/google/apis/run_v1alpha1/representations.rb +343 -144
  682. data/generated/google/apis/run_v1alpha1/service.rb +1735 -492
  683. data/generated/google/apis/run_v1alpha1.rb +1 -1
  684. data/generated/google/apis/run_v1beta1/classes.rb +1 -1
  685. data/generated/google/apis/run_v1beta1.rb +4 -1
  686. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  687. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +139 -57
  688. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +8 -5
  689. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  690. data/generated/google/apis/safebrowsing_v4/classes.rb +2 -2
  691. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  692. data/generated/google/apis/sasportal_v1alpha1/classes.rb +1137 -0
  693. data/generated/google/apis/sasportal_v1alpha1/representations.rb +532 -0
  694. data/generated/google/apis/sasportal_v1alpha1/service.rb +1676 -0
  695. data/generated/google/apis/{pagespeedonline_v2.rb → sasportal_v1alpha1.rb} +12 -10
  696. data/generated/google/apis/script_v1/classes.rb +4 -22
  697. data/generated/google/apis/script_v1.rb +1 -1
  698. data/generated/google/apis/searchconsole_v1.rb +1 -1
  699. data/generated/google/apis/secretmanager_v1/classes.rb +982 -0
  700. data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1 → secretmanager_v1}/representations.rb +105 -116
  701. data/generated/google/apis/secretmanager_v1/service.rb +681 -0
  702. data/generated/google/apis/secretmanager_v1.rb +35 -0
  703. data/generated/google/apis/secretmanager_v1beta1/classes.rb +982 -0
  704. data/generated/google/apis/{servicebroker_v1beta1 → secretmanager_v1beta1}/representations.rb +114 -142
  705. data/generated/google/apis/secretmanager_v1beta1/service.rb +681 -0
  706. data/generated/google/apis/secretmanager_v1beta1.rb +35 -0
  707. data/generated/google/apis/securitycenter_v1/classes.rb +862 -138
  708. data/generated/google/apis/securitycenter_v1/representations.rb +221 -0
  709. data/generated/google/apis/securitycenter_v1/service.rb +225 -21
  710. data/generated/google/apis/securitycenter_v1.rb +4 -4
  711. data/generated/google/apis/securitycenter_v1beta1/classes.rb +782 -125
  712. data/generated/google/apis/securitycenter_v1beta1/representations.rb +192 -2
  713. data/generated/google/apis/securitycenter_v1beta1/service.rb +53 -51
  714. data/generated/google/apis/securitycenter_v1beta1.rb +4 -4
  715. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +568 -0
  716. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +190 -0
  717. data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +3 -3
  718. data/generated/google/apis/securitycenter_v1p1alpha1.rb +4 -4
  719. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +2205 -0
  720. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +751 -0
  721. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +1329 -0
  722. data/generated/google/apis/securitycenter_v1p1beta1.rb +35 -0
  723. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +419 -64
  724. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +98 -0
  725. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  726. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +4159 -0
  727. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1307 -0
  728. data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +428 -0
  729. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +34 -0
  730. data/generated/google/apis/servicecontrol_v1/classes.rb +255 -20
  731. data/generated/google/apis/servicecontrol_v1/representations.rb +87 -1
  732. data/generated/google/apis/servicecontrol_v1/service.rb +2 -1
  733. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  734. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +816 -0
  735. data/generated/google/apis/{surveys_v2 → servicedirectory_v1beta1}/representations.rb +103 -104
  736. data/generated/google/apis/servicedirectory_v1beta1/service.rb +992 -0
  737. data/generated/google/apis/servicedirectory_v1beta1.rb +35 -0
  738. data/generated/google/apis/servicemanagement_v1/classes.rb +459 -125
  739. data/generated/google/apis/servicemanagement_v1/representations.rb +61 -0
  740. data/generated/google/apis/servicemanagement_v1/service.rb +40 -29
  741. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  742. data/generated/google/apis/servicenetworking_v1/classes.rb +986 -68
  743. data/generated/google/apis/servicenetworking_v1/representations.rb +403 -0
  744. data/generated/google/apis/servicenetworking_v1/service.rb +351 -23
  745. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  746. data/generated/google/apis/servicenetworking_v1beta/classes.rb +575 -57
  747. data/generated/google/apis/servicenetworking_v1beta/representations.rb +223 -0
  748. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  749. data/generated/google/apis/serviceusage_v1/classes.rb +417 -64
  750. data/generated/google/apis/serviceusage_v1/representations.rb +110 -0
  751. data/generated/google/apis/serviceusage_v1/service.rb +42 -0
  752. data/generated/google/apis/serviceusage_v1.rb +1 -1
  753. data/generated/google/apis/serviceusage_v1beta1/classes.rb +644 -64
  754. data/generated/google/apis/serviceusage_v1beta1/representations.rb +198 -0
  755. data/generated/google/apis/serviceusage_v1beta1/service.rb +472 -0
  756. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  757. data/generated/google/apis/sheets_v4/classes.rb +1741 -253
  758. data/generated/google/apis/sheets_v4/representations.rb +283 -0
  759. data/generated/google/apis/sheets_v4/service.rb +9 -11
  760. data/generated/google/apis/sheets_v4.rb +1 -1
  761. data/generated/google/apis/slides_v1/classes.rb +1 -1
  762. data/generated/google/apis/slides_v1/service.rb +1 -1
  763. data/generated/google/apis/slides_v1.rb +1 -1
  764. data/generated/google/apis/sourcerepo_v1/classes.rb +173 -67
  765. data/generated/google/apis/sourcerepo_v1/service.rb +9 -1
  766. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  767. data/generated/google/apis/spanner_v1/classes.rb +706 -71
  768. data/generated/google/apis/spanner_v1/representations.rb +194 -0
  769. data/generated/google/apis/spanner_v1/service.rb +770 -7
  770. data/generated/google/apis/spanner_v1.rb +1 -1
  771. data/generated/google/apis/speech_v1/classes.rb +15 -11
  772. data/generated/google/apis/speech_v1/representations.rb +2 -1
  773. data/generated/google/apis/speech_v1.rb +1 -1
  774. data/generated/google/apis/speech_v1p1beta1/classes.rb +197 -11
  775. data/generated/google/apis/speech_v1p1beta1/representations.rb +79 -1
  776. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  777. data/generated/google/apis/{speech_v2beta → speech_v2beta1}/classes.rb +16 -8
  778. data/generated/google/apis/{speech_v2beta → speech_v2beta1}/representations.rb +7 -6
  779. data/generated/google/apis/{speech_v2beta → speech_v2beta1}/service.rb +13 -13
  780. data/generated/google/apis/{speech_v2beta.rb → speech_v2beta1.rb} +6 -6
  781. data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/classes.rb +701 -383
  782. data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/representations.rb +209 -104
  783. data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/service.rb +579 -597
  784. data/generated/google/apis/{sqladmin_v1beta4.rb → sql_v1beta4.rb} +7 -8
  785. data/generated/google/apis/storage_v1/classes.rb +73 -7
  786. data/generated/google/apis/storage_v1/representations.rb +10 -0
  787. data/generated/google/apis/storage_v1/service.rb +29 -4
  788. data/generated/google/apis/storage_v1.rb +1 -1
  789. data/generated/google/apis/storage_v1beta2/service.rb +1 -1
  790. data/generated/google/apis/storage_v1beta2.rb +1 -1
  791. data/generated/google/apis/storagetransfer_v1/classes.rb +280 -79
  792. data/generated/google/apis/storagetransfer_v1/representations.rb +52 -0
  793. data/generated/google/apis/storagetransfer_v1/service.rb +19 -41
  794. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  795. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
  796. data/generated/google/apis/streetviewpublish_v1/service.rb +1 -1
  797. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  798. data/generated/google/apis/tagmanager_v1/classes.rb +2 -0
  799. data/generated/google/apis/tagmanager_v1/service.rb +1 -1
  800. data/generated/google/apis/tagmanager_v1.rb +1 -1
  801. data/generated/google/apis/tagmanager_v2/classes.rb +170 -0
  802. data/generated/google/apis/tagmanager_v2/representations.rb +49 -0
  803. data/generated/google/apis/tagmanager_v2/service.rb +1 -1
  804. data/generated/google/apis/tagmanager_v2.rb +1 -1
  805. data/generated/google/apis/tasks_v1/classes.rb +26 -25
  806. data/generated/google/apis/tasks_v1/representations.rb +4 -8
  807. data/generated/google/apis/tasks_v1/service.rb +78 -124
  808. data/generated/google/apis/tasks_v1.rb +3 -3
  809. data/generated/google/apis/testing_v1/classes.rb +187 -1
  810. data/generated/google/apis/testing_v1/representations.rb +93 -0
  811. data/generated/google/apis/testing_v1.rb +1 -1
  812. data/generated/google/apis/texttospeech_v1.rb +1 -1
  813. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  814. data/generated/google/apis/toolresults_v1beta3/classes.rb +2061 -1133
  815. data/generated/google/apis/toolresults_v1beta3/representations.rb +723 -13
  816. data/generated/google/apis/toolresults_v1beta3/service.rb +663 -591
  817. data/generated/google/apis/toolresults_v1beta3.rb +2 -2
  818. data/generated/google/apis/tpu_v1/classes.rb +3 -4
  819. data/generated/google/apis/tpu_v1.rb +1 -1
  820. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -4
  821. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  822. data/generated/google/apis/translate_v3/classes.rb +946 -0
  823. data/generated/google/apis/translate_v3/representations.rb +439 -0
  824. data/generated/google/apis/translate_v3/service.rb +781 -0
  825. data/generated/google/apis/translate_v3.rb +37 -0
  826. data/generated/google/apis/translate_v3beta1.rb +1 -1
  827. data/generated/google/apis/vault_v1/classes.rb +10 -7
  828. data/generated/google/apis/vault_v1/service.rb +7 -7
  829. data/generated/google/apis/vault_v1.rb +1 -1
  830. data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
  831. data/generated/google/apis/verifiedaccess_v1.rb +3 -3
  832. data/generated/google/apis/videointelligence_v1/classes.rb +1205 -118
  833. data/generated/google/apis/videointelligence_v1/representations.rb +492 -0
  834. data/generated/google/apis/videointelligence_v1.rb +1 -1
  835. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1205 -118
  836. data/generated/google/apis/videointelligence_v1beta2/representations.rb +492 -0
  837. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  838. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1216 -129
  839. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +492 -0
  840. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  841. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1205 -118
  842. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +492 -0
  843. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  844. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1290 -116
  845. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +526 -0
  846. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  847. data/generated/google/apis/vision_v1/classes.rb +67 -1
  848. data/generated/google/apis/vision_v1/representations.rb +32 -0
  849. data/generated/google/apis/vision_v1/service.rb +1 -1
  850. data/generated/google/apis/vision_v1.rb +1 -1
  851. data/generated/google/apis/vision_v1p1beta1/classes.rb +67 -1
  852. data/generated/google/apis/vision_v1p1beta1/representations.rb +32 -0
  853. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  854. data/generated/google/apis/vision_v1p2beta1/classes.rb +67 -1
  855. data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
  856. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  857. data/generated/google/apis/websecurityscanner_v1/classes.rb +75 -4
  858. data/generated/google/apis/websecurityscanner_v1/representations.rb +32 -0
  859. data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
  860. data/generated/google/apis/websecurityscanner_v1.rb +2 -2
  861. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
  862. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  863. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  864. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +77 -6
  865. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +32 -0
  866. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  867. data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
  868. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  869. data/generated/google/apis/youtube_analytics_v2.rb +1 -1
  870. data/generated/google/apis/youtube_partner_v1/service.rb +2 -2
  871. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  872. data/generated/google/apis/youtube_v3/classes.rb +1376 -1262
  873. data/generated/google/apis/youtube_v3/representations.rb +99 -191
  874. data/generated/google/apis/youtube_v3/service.rb +1829 -2150
  875. data/generated/google/apis/youtube_v3.rb +8 -5
  876. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  877. data/google-api-client.gemspec +6 -3
  878. data/lib/google/apis/core/api_command.rb +7 -0
  879. data/lib/google/apis/core/base_service.rb +1 -1
  880. data/lib/google/apis/core/http_command.rb +11 -10
  881. data/lib/google/apis/core/upload.rb +4 -0
  882. data/lib/google/apis/generator/annotator.rb +1 -1
  883. data/lib/google/apis/version.rb +9 -4
  884. data/rakelib/devsite/devsite_builder.rb +126 -0
  885. data/rakelib/devsite/link_checker.rb +64 -0
  886. data/rakelib/devsite/repo_metadata.rb +56 -0
  887. metadata +193 -110
  888. data/generated/google/apis/analytics_v2_4/representations.rb +0 -26
  889. data/generated/google/apis/analytics_v2_4/service.rb +0 -331
  890. data/generated/google/apis/analytics_v2_4.rb +0 -37
  891. data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +0 -358
  892. data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +0 -486
  893. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +0 -1081
  894. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +0 -485
  895. data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +0 -210
  896. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +0 -124
  897. data/generated/google/apis/commentanalyzer_v1alpha1.rb +0 -39
  898. data/generated/google/apis/fusiontables_v1/classes.rb +0 -977
  899. data/generated/google/apis/fusiontables_v1/representations.rb +0 -449
  900. data/generated/google/apis/fusiontables_v1/service.rb +0 -1307
  901. data/generated/google/apis/fusiontables_v1.rb +0 -37
  902. data/generated/google/apis/fusiontables_v2/classes.rb +0 -1049
  903. data/generated/google/apis/fusiontables_v2/representations.rb +0 -457
  904. data/generated/google/apis/fusiontables_v2/service.rb +0 -1431
  905. data/generated/google/apis/fusiontables_v2.rb +0 -37
  906. data/generated/google/apis/mirror_v1/classes.rb +0 -1072
  907. data/generated/google/apis/mirror_v1/representations.rb +0 -390
  908. data/generated/google/apis/mirror_v1/service.rb +0 -928
  909. data/generated/google/apis/mirror_v1.rb +0 -37
  910. data/generated/google/apis/oauth2_v1/classes.rb +0 -197
  911. data/generated/google/apis/oauth2_v1/service.rb +0 -160
  912. data/generated/google/apis/oauth2_v1.rb +0 -40
  913. data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
  914. data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
  915. data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
  916. data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
  917. data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
  918. data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
  919. data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
  920. data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
  921. data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
  922. data/generated/google/apis/plus_domains_v1/classes.rb +0 -2609
  923. data/generated/google/apis/plus_domains_v1/representations.rb +0 -1111
  924. data/generated/google/apis/plus_domains_v1/service.rb +0 -489
  925. data/generated/google/apis/plus_domains_v1.rb +0 -55
  926. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +0 -845
  927. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +0 -350
  928. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +0 -933
  929. data/generated/google/apis/replicapool_v1beta1/classes.rb +0 -918
  930. data/generated/google/apis/replicapool_v1beta1/representations.rb +0 -409
  931. data/generated/google/apis/replicapool_v1beta1/service.rb +0 -489
  932. data/generated/google/apis/replicapool_v1beta1.rb +0 -50
  933. data/generated/google/apis/servicebroker_v1/classes.rb +0 -333
  934. data/generated/google/apis/servicebroker_v1/service.rb +0 -177
  935. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +0 -1037
  936. data/generated/google/apis/servicebroker_v1alpha1/service.rb +0 -737
  937. data/generated/google/apis/servicebroker_v1beta1/classes.rb +0 -1173
  938. data/generated/google/apis/servicebroker_v1beta1/service.rb +0 -926
  939. data/generated/google/apis/storage_v1beta1/classes.rb +0 -616
  940. data/generated/google/apis/storage_v1beta1/representations.rb +0 -249
  941. data/generated/google/apis/storage_v1beta1/service.rb +0 -1032
  942. data/generated/google/apis/storage_v1beta1.rb +0 -40
  943. data/generated/google/apis/surveys_v2/classes.rb +0 -691
  944. data/generated/google/apis/surveys_v2.rb +0 -40
  945. data/generated/google/apis/urlshortener_v1/classes.rb +0 -246
  946. data/generated/google/apis/urlshortener_v1/representations.rb +0 -121
  947. data/generated/google/apis/urlshortener_v1/service.rb +0 -169
  948. data/generated/google/apis/urlshortener_v1.rb +0 -34
@@ -19,19 +19,18 @@ require 'google/apis/errors'
19
19
 
20
20
  module Google
21
21
  module Apis
22
- module SqladminV1beta4
22
+ module SqlV1beta4
23
23
  # Cloud SQL Admin API
24
24
  #
25
- # Creates and manages Cloud SQL instances, which provide fully managed MySQL or
26
- # PostgreSQL databases.
25
+ # API for Cloud SQL database instance management
27
26
  #
28
27
  # @example
29
- # require 'google/apis/sqladmin_v1beta4'
28
+ # require 'google/apis/sql_v1beta4'
30
29
  #
31
- # Sqladmin = Google::Apis::SqladminV1beta4 # Alias the module
32
- # service = Sqladmin::SQLAdminService.new
30
+ # Sql = Google::Apis::SqlV1beta4 # Alias the module
31
+ # service = Sql::SQLAdminService.new
33
32
  #
34
- # @see https://cloud.google.com/sql/docs/reference/latest
33
+ # @see https://developers.google.com/cloud-sql/
35
34
  class SQLAdminService < Google::Apis::Core::BaseService
36
35
  # @return [String]
37
36
  # API key. Your API key identifies your project and provides you with API access,
@@ -39,17 +38,13 @@ module Google
39
38
  attr_accessor :key
40
39
 
41
40
  # @return [String]
42
- # An opaque string that represents a user for quota purposes. Must not exceed 40
43
- # characters.
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
43
  attr_accessor :quota_user
45
44
 
46
- # @return [String]
47
- # Deprecated. Please use quotaUser instead.
48
- attr_accessor :user_ip
49
-
50
45
  def initialize
51
- super('https://www.googleapis.com/', 'sql/v1beta4/')
52
- @batch_path = 'batch/sqladmin/v1beta4'
46
+ super('https://sqladmin.googleapis.com/', '')
47
+ @batch_path = 'batch'
53
48
  end
54
49
 
55
50
  # Deletes the backup taken by a backup run.
@@ -58,37 +53,35 @@ module Google
58
53
  # @param [String] instance
59
54
  # Cloud SQL instance ID. This does not include the project ID.
60
55
  # @param [Fixnum] id
61
- # The ID of the Backup Run to delete. To find a Backup Run ID, use the list
56
+ # The ID of the Backup Run to delete. To find a Backup Run ID, use the <a
57
+ # href="/sql/docs/db_path/admin-api/rest/v1beta4/backupRuns/list">list</a>
62
58
  # method.
63
59
  # @param [String] fields
64
60
  # Selector specifying which fields to include in a partial response.
65
61
  # @param [String] quota_user
66
- # An opaque string that represents a user for quota purposes. Must not exceed 40
67
- # characters.
68
- # @param [String] user_ip
69
- # Deprecated. Please use quotaUser instead.
62
+ # Available to use for quota purposes for server-side applications. Can be any
63
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
70
64
  # @param [Google::Apis::RequestOptions] options
71
65
  # Request-specific options
72
66
  #
73
67
  # @yield [result, err] Result & error if block supplied
74
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
68
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
75
69
  # @yieldparam err [StandardError] error object if request failed
76
70
  #
77
- # @return [Google::Apis::SqladminV1beta4::Operation]
71
+ # @return [Google::Apis::SqlV1beta4::Operation]
78
72
  #
79
73
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
80
74
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
75
  # @raise [Google::Apis::AuthorizationError] Authorization is required
82
- def delete_backup_run(project, instance, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
83
- command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/backupRuns/{id}', options)
84
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
85
- command.response_class = Google::Apis::SqladminV1beta4::Operation
76
+ def delete_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options)
78
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
79
+ command.response_class = Google::Apis::SqlV1beta4::Operation
86
80
  command.params['project'] = project unless project.nil?
87
81
  command.params['instance'] = instance unless instance.nil?
88
82
  command.params['id'] = id unless id.nil?
89
83
  command.query['fields'] = fields unless fields.nil?
90
84
  command.query['quotaUser'] = quota_user unless quota_user.nil?
91
- command.query['userIp'] = user_ip unless user_ip.nil?
92
85
  execute_or_queue_command(command, &block)
93
86
  end
94
87
 
@@ -102,72 +95,66 @@ module Google
102
95
  # @param [String] fields
103
96
  # Selector specifying which fields to include in a partial response.
104
97
  # @param [String] quota_user
105
- # An opaque string that represents a user for quota purposes. Must not exceed 40
106
- # characters.
107
- # @param [String] user_ip
108
- # Deprecated. Please use quotaUser instead.
98
+ # Available to use for quota purposes for server-side applications. Can be any
99
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
109
100
  # @param [Google::Apis::RequestOptions] options
110
101
  # Request-specific options
111
102
  #
112
103
  # @yield [result, err] Result & error if block supplied
113
- # @yieldparam result [Google::Apis::SqladminV1beta4::BackupRun] parsed result object
104
+ # @yieldparam result [Google::Apis::SqlV1beta4::BackupRun] parsed result object
114
105
  # @yieldparam err [StandardError] error object if request failed
115
106
  #
116
- # @return [Google::Apis::SqladminV1beta4::BackupRun]
107
+ # @return [Google::Apis::SqlV1beta4::BackupRun]
117
108
  #
118
109
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
119
110
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
120
111
  # @raise [Google::Apis::AuthorizationError] Authorization is required
121
- def get_backup_run(project, instance, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
122
- command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns/{id}', options)
123
- command.response_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation
124
- command.response_class = Google::Apis::SqladminV1beta4::BackupRun
112
+ def get_backup_run(project, instance, id, fields: nil, quota_user: nil, options: nil, &block)
113
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}', options)
114
+ command.response_representation = Google::Apis::SqlV1beta4::BackupRun::Representation
115
+ command.response_class = Google::Apis::SqlV1beta4::BackupRun
125
116
  command.params['project'] = project unless project.nil?
126
117
  command.params['instance'] = instance unless instance.nil?
127
118
  command.params['id'] = id unless id.nil?
128
119
  command.query['fields'] = fields unless fields.nil?
129
120
  command.query['quotaUser'] = quota_user unless quota_user.nil?
130
- command.query['userIp'] = user_ip unless user_ip.nil?
131
121
  execute_or_queue_command(command, &block)
132
122
  end
133
123
 
134
- # Creates a new backup run on demand. This method is applicable only to Second
135
- # Generation instances.
124
+ # Creates a new backup run on demand. This method is applicable only to
125
+ # Second Generation instances.
136
126
  # @param [String] project
137
127
  # Project ID of the project that contains the instance.
138
128
  # @param [String] instance
139
129
  # Cloud SQL instance ID. This does not include the project ID.
140
- # @param [Google::Apis::SqladminV1beta4::BackupRun] backup_run_object
130
+ # @param [Google::Apis::SqlV1beta4::BackupRun] backup_run_object
141
131
  # @param [String] fields
142
132
  # Selector specifying which fields to include in a partial response.
143
133
  # @param [String] quota_user
144
- # An opaque string that represents a user for quota purposes. Must not exceed 40
145
- # characters.
146
- # @param [String] user_ip
147
- # Deprecated. Please use quotaUser instead.
134
+ # Available to use for quota purposes for server-side applications. Can be any
135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
148
136
  # @param [Google::Apis::RequestOptions] options
149
137
  # Request-specific options
150
138
  #
151
139
  # @yield [result, err] Result & error if block supplied
152
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
140
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
153
141
  # @yieldparam err [StandardError] error object if request failed
154
142
  #
155
- # @return [Google::Apis::SqladminV1beta4::Operation]
143
+ # @return [Google::Apis::SqlV1beta4::Operation]
156
144
  #
157
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
158
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
159
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
160
- def insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
161
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/backupRuns', options)
162
- command.request_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation
148
+ def insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options)
150
+ command.request_representation = Google::Apis::SqlV1beta4::BackupRun::Representation
163
151
  command.request_object = backup_run_object
164
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
165
- command.response_class = Google::Apis::SqladminV1beta4::Operation
152
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
153
+ command.response_class = Google::Apis::SqlV1beta4::Operation
166
154
  command.params['project'] = project unless project.nil?
167
155
  command.params['instance'] = instance unless instance.nil?
168
156
  command.query['fields'] = fields unless fields.nil?
169
157
  command.query['quotaUser'] = quota_user unless quota_user.nil?
170
- command.query['userIp'] = user_ip unless user_ip.nil?
171
158
  execute_or_queue_command(command, &block)
172
159
  end
173
160
 
@@ -185,33 +172,30 @@ module Google
185
172
  # @param [String] fields
186
173
  # Selector specifying which fields to include in a partial response.
187
174
  # @param [String] quota_user
188
- # An opaque string that represents a user for quota purposes. Must not exceed 40
189
- # characters.
190
- # @param [String] user_ip
191
- # Deprecated. Please use quotaUser instead.
175
+ # Available to use for quota purposes for server-side applications. Can be any
176
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
177
  # @param [Google::Apis::RequestOptions] options
193
178
  # Request-specific options
194
179
  #
195
180
  # @yield [result, err] Result & error if block supplied
196
- # @yieldparam result [Google::Apis::SqladminV1beta4::ListBackupRunsResponse] parsed result object
181
+ # @yieldparam result [Google::Apis::SqlV1beta4::BackupRunsListResponse] parsed result object
197
182
  # @yieldparam err [StandardError] error object if request failed
198
183
  #
199
- # @return [Google::Apis::SqladminV1beta4::ListBackupRunsResponse]
184
+ # @return [Google::Apis::SqlV1beta4::BackupRunsListResponse]
200
185
  #
201
186
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
187
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
188
  # @raise [Google::Apis::AuthorizationError] Authorization is required
204
- def list_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
205
- command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns', options)
206
- command.response_representation = Google::Apis::SqladminV1beta4::ListBackupRunsResponse::Representation
207
- command.response_class = Google::Apis::SqladminV1beta4::ListBackupRunsResponse
189
+ def list_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
190
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/backupRuns', options)
191
+ command.response_representation = Google::Apis::SqlV1beta4::BackupRunsListResponse::Representation
192
+ command.response_class = Google::Apis::SqlV1beta4::BackupRunsListResponse
208
193
  command.params['project'] = project unless project.nil?
209
194
  command.params['instance'] = instance unless instance.nil?
210
195
  command.query['maxResults'] = max_results unless max_results.nil?
211
196
  command.query['pageToken'] = page_token unless page_token.nil?
212
197
  command.query['fields'] = fields unless fields.nil?
213
198
  command.query['quotaUser'] = quota_user unless quota_user.nil?
214
- command.query['userIp'] = user_ip unless user_ip.nil?
215
199
  execute_or_queue_command(command, &block)
216
200
  end
217
201
 
@@ -225,32 +209,29 @@ module Google
225
209
  # @param [String] fields
226
210
  # Selector specifying which fields to include in a partial response.
227
211
  # @param [String] quota_user
228
- # An opaque string that represents a user for quota purposes. Must not exceed 40
229
- # characters.
230
- # @param [String] user_ip
231
- # Deprecated. Please use quotaUser instead.
212
+ # Available to use for quota purposes for server-side applications. Can be any
213
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
232
214
  # @param [Google::Apis::RequestOptions] options
233
215
  # Request-specific options
234
216
  #
235
217
  # @yield [result, err] Result & error if block supplied
236
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
218
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
237
219
  # @yieldparam err [StandardError] error object if request failed
238
220
  #
239
- # @return [Google::Apis::SqladminV1beta4::Operation]
221
+ # @return [Google::Apis::SqlV1beta4::Operation]
240
222
  #
241
223
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
242
224
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
243
225
  # @raise [Google::Apis::AuthorizationError] Authorization is required
244
- def delete_database(project, instance, database, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
245
- command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/databases/{database}', options)
246
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
247
- command.response_class = Google::Apis::SqladminV1beta4::Operation
226
+ def delete_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block)
227
+ command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
228
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
229
+ command.response_class = Google::Apis::SqlV1beta4::Operation
248
230
  command.params['project'] = project unless project.nil?
249
231
  command.params['instance'] = instance unless instance.nil?
250
232
  command.params['database'] = database unless database.nil?
251
233
  command.query['fields'] = fields unless fields.nil?
252
234
  command.query['quotaUser'] = quota_user unless quota_user.nil?
253
- command.query['userIp'] = user_ip unless user_ip.nil?
254
235
  execute_or_queue_command(command, &block)
255
236
  end
256
237
 
@@ -265,72 +246,66 @@ module Google
265
246
  # @param [String] fields
266
247
  # Selector specifying which fields to include in a partial response.
267
248
  # @param [String] quota_user
268
- # An opaque string that represents a user for quota purposes. Must not exceed 40
269
- # characters.
270
- # @param [String] user_ip
271
- # Deprecated. Please use quotaUser instead.
249
+ # Available to use for quota purposes for server-side applications. Can be any
250
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
272
251
  # @param [Google::Apis::RequestOptions] options
273
252
  # Request-specific options
274
253
  #
275
254
  # @yield [result, err] Result & error if block supplied
276
- # @yieldparam result [Google::Apis::SqladminV1beta4::Database] parsed result object
255
+ # @yieldparam result [Google::Apis::SqlV1beta4::Database] parsed result object
277
256
  # @yieldparam err [StandardError] error object if request failed
278
257
  #
279
- # @return [Google::Apis::SqladminV1beta4::Database]
258
+ # @return [Google::Apis::SqlV1beta4::Database]
280
259
  #
281
260
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
282
261
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
283
262
  # @raise [Google::Apis::AuthorizationError] Authorization is required
284
- def get_database(project, instance, database, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
285
- command = make_simple_command(:get, 'projects/{project}/instances/{instance}/databases/{database}', options)
286
- command.response_representation = Google::Apis::SqladminV1beta4::Database::Representation
287
- command.response_class = Google::Apis::SqladminV1beta4::Database
263
+ def get_database(project, instance, database, fields: nil, quota_user: nil, options: nil, &block)
264
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
265
+ command.response_representation = Google::Apis::SqlV1beta4::Database::Representation
266
+ command.response_class = Google::Apis::SqlV1beta4::Database
288
267
  command.params['project'] = project unless project.nil?
289
268
  command.params['instance'] = instance unless instance.nil?
290
269
  command.params['database'] = database unless database.nil?
291
270
  command.query['fields'] = fields unless fields.nil?
292
271
  command.query['quotaUser'] = quota_user unless quota_user.nil?
293
- command.query['userIp'] = user_ip unless user_ip.nil?
294
272
  execute_or_queue_command(command, &block)
295
273
  end
296
274
 
297
- # Inserts a resource containing information about a database inside a Cloud SQL
298
- # instance.
275
+ # Inserts a resource containing information about a database inside a Cloud
276
+ # SQL instance.
299
277
  # @param [String] project
300
278
  # Project ID of the project that contains the instance.
301
279
  # @param [String] instance
302
280
  # Database instance ID. This does not include the project ID.
303
- # @param [Google::Apis::SqladminV1beta4::Database] database_object
281
+ # @param [Google::Apis::SqlV1beta4::Database] database_object
304
282
  # @param [String] fields
305
283
  # Selector specifying which fields to include in a partial response.
306
284
  # @param [String] quota_user
307
- # An opaque string that represents a user for quota purposes. Must not exceed 40
308
- # characters.
309
- # @param [String] user_ip
310
- # Deprecated. Please use quotaUser instead.
285
+ # Available to use for quota purposes for server-side applications. Can be any
286
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
311
287
  # @param [Google::Apis::RequestOptions] options
312
288
  # Request-specific options
313
289
  #
314
290
  # @yield [result, err] Result & error if block supplied
315
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
291
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
316
292
  # @yieldparam err [StandardError] error object if request failed
317
293
  #
318
- # @return [Google::Apis::SqladminV1beta4::Operation]
294
+ # @return [Google::Apis::SqlV1beta4::Operation]
319
295
  #
320
296
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
321
297
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
322
298
  # @raise [Google::Apis::AuthorizationError] Authorization is required
323
- def insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
324
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/databases', options)
325
- command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
299
+ def insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, options: nil, &block)
300
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options)
301
+ command.request_representation = Google::Apis::SqlV1beta4::Database::Representation
326
302
  command.request_object = database_object
327
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
328
- command.response_class = Google::Apis::SqladminV1beta4::Operation
303
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
304
+ command.response_class = Google::Apis::SqlV1beta4::Operation
329
305
  command.params['project'] = project unless project.nil?
330
306
  command.params['instance'] = instance unless instance.nil?
331
307
  command.query['fields'] = fields unless fields.nil?
332
308
  command.query['quotaUser'] = quota_user unless quota_user.nil?
333
- command.query['userIp'] = user_ip unless user_ip.nil?
334
309
  execute_or_queue_command(command, &block)
335
310
  end
336
311
 
@@ -342,117 +317,108 @@ module Google
342
317
  # @param [String] fields
343
318
  # Selector specifying which fields to include in a partial response.
344
319
  # @param [String] quota_user
345
- # An opaque string that represents a user for quota purposes. Must not exceed 40
346
- # characters.
347
- # @param [String] user_ip
348
- # Deprecated. Please use quotaUser instead.
320
+ # Available to use for quota purposes for server-side applications. Can be any
321
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
349
322
  # @param [Google::Apis::RequestOptions] options
350
323
  # Request-specific options
351
324
  #
352
325
  # @yield [result, err] Result & error if block supplied
353
- # @yieldparam result [Google::Apis::SqladminV1beta4::ListDatabasesResponse] parsed result object
326
+ # @yieldparam result [Google::Apis::SqlV1beta4::DatabasesListResponse] parsed result object
354
327
  # @yieldparam err [StandardError] error object if request failed
355
328
  #
356
- # @return [Google::Apis::SqladminV1beta4::ListDatabasesResponse]
329
+ # @return [Google::Apis::SqlV1beta4::DatabasesListResponse]
357
330
  #
358
331
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
359
332
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
360
333
  # @raise [Google::Apis::AuthorizationError] Authorization is required
361
- def list_databases(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
362
- command = make_simple_command(:get, 'projects/{project}/instances/{instance}/databases', options)
363
- command.response_representation = Google::Apis::SqladminV1beta4::ListDatabasesResponse::Representation
364
- command.response_class = Google::Apis::SqladminV1beta4::ListDatabasesResponse
334
+ def list_databases(project, instance, fields: nil, quota_user: nil, options: nil, &block)
335
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/databases', options)
336
+ command.response_representation = Google::Apis::SqlV1beta4::DatabasesListResponse::Representation
337
+ command.response_class = Google::Apis::SqlV1beta4::DatabasesListResponse
365
338
  command.params['project'] = project unless project.nil?
366
339
  command.params['instance'] = instance unless instance.nil?
367
340
  command.query['fields'] = fields unless fields.nil?
368
341
  command.query['quotaUser'] = quota_user unless quota_user.nil?
369
- command.query['userIp'] = user_ip unless user_ip.nil?
370
342
  execute_or_queue_command(command, &block)
371
343
  end
372
344
 
373
- # Updates a resource containing information about a database inside a Cloud SQL
374
- # instance. This method supports patch semantics.
345
+ # Partially updates a resource containing information about a database inside
346
+ # a Cloud SQL instance. This method supports patch semantics.
375
347
  # @param [String] project
376
348
  # Project ID of the project that contains the instance.
377
349
  # @param [String] instance
378
350
  # Database instance ID. This does not include the project ID.
379
351
  # @param [String] database
380
352
  # Name of the database to be updated in the instance.
381
- # @param [Google::Apis::SqladminV1beta4::Database] database_object
353
+ # @param [Google::Apis::SqlV1beta4::Database] database_object
382
354
  # @param [String] fields
383
355
  # Selector specifying which fields to include in a partial response.
384
356
  # @param [String] quota_user
385
- # An opaque string that represents a user for quota purposes. Must not exceed 40
386
- # characters.
387
- # @param [String] user_ip
388
- # Deprecated. Please use quotaUser instead.
357
+ # Available to use for quota purposes for server-side applications. Can be any
358
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
389
359
  # @param [Google::Apis::RequestOptions] options
390
360
  # Request-specific options
391
361
  #
392
362
  # @yield [result, err] Result & error if block supplied
393
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
363
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
394
364
  # @yieldparam err [StandardError] error object if request failed
395
365
  #
396
- # @return [Google::Apis::SqladminV1beta4::Operation]
366
+ # @return [Google::Apis::SqlV1beta4::Operation]
397
367
  #
398
368
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
399
369
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
400
370
  # @raise [Google::Apis::AuthorizationError] Authorization is required
401
- def patch_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
402
- command = make_simple_command(:patch, 'projects/{project}/instances/{instance}/databases/{database}', options)
403
- command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
371
+ def patch_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil, &block)
372
+ command = make_simple_command(:patch, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
373
+ command.request_representation = Google::Apis::SqlV1beta4::Database::Representation
404
374
  command.request_object = database_object
405
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
406
- command.response_class = Google::Apis::SqladminV1beta4::Operation
375
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
376
+ command.response_class = Google::Apis::SqlV1beta4::Operation
407
377
  command.params['project'] = project unless project.nil?
408
378
  command.params['instance'] = instance unless instance.nil?
409
379
  command.params['database'] = database unless database.nil?
410
380
  command.query['fields'] = fields unless fields.nil?
411
381
  command.query['quotaUser'] = quota_user unless quota_user.nil?
412
- command.query['userIp'] = user_ip unless user_ip.nil?
413
382
  execute_or_queue_command(command, &block)
414
383
  end
415
384
 
416
- # Updates a resource containing information about a database inside a Cloud SQL
417
- # instance.
385
+ # Updates a resource containing information about a database inside a Cloud
386
+ # SQL instance.
418
387
  # @param [String] project
419
388
  # Project ID of the project that contains the instance.
420
389
  # @param [String] instance
421
390
  # Database instance ID. This does not include the project ID.
422
391
  # @param [String] database
423
392
  # Name of the database to be updated in the instance.
424
- # @param [Google::Apis::SqladminV1beta4::Database] database_object
393
+ # @param [Google::Apis::SqlV1beta4::Database] database_object
425
394
  # @param [String] fields
426
395
  # Selector specifying which fields to include in a partial response.
427
396
  # @param [String] quota_user
428
- # An opaque string that represents a user for quota purposes. Must not exceed 40
429
- # characters.
430
- # @param [String] user_ip
431
- # Deprecated. Please use quotaUser instead.
397
+ # Available to use for quota purposes for server-side applications. Can be any
398
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
432
399
  # @param [Google::Apis::RequestOptions] options
433
400
  # Request-specific options
434
401
  #
435
402
  # @yield [result, err] Result & error if block supplied
436
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
403
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
437
404
  # @yieldparam err [StandardError] error object if request failed
438
405
  #
439
- # @return [Google::Apis::SqladminV1beta4::Operation]
406
+ # @return [Google::Apis::SqlV1beta4::Operation]
440
407
  #
441
408
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
442
409
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
443
410
  # @raise [Google::Apis::AuthorizationError] Authorization is required
444
- def update_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
445
- command = make_simple_command(:put, 'projects/{project}/instances/{instance}/databases/{database}', options)
446
- command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
411
+ def update_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, options: nil, &block)
412
+ command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}', options)
413
+ command.request_representation = Google::Apis::SqlV1beta4::Database::Representation
447
414
  command.request_object = database_object
448
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
449
- command.response_class = Google::Apis::SqladminV1beta4::Operation
415
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
416
+ command.response_class = Google::Apis::SqlV1beta4::Operation
450
417
  command.params['project'] = project unless project.nil?
451
418
  command.params['instance'] = instance unless instance.nil?
452
419
  command.params['database'] = database unless database.nil?
453
420
  command.query['fields'] = fields unless fields.nil?
454
421
  command.query['quotaUser'] = quota_user unless quota_user.nil?
455
- command.query['userIp'] = user_ip unless user_ip.nil?
456
422
  execute_or_queue_command(command, &block)
457
423
  end
458
424
 
@@ -463,38 +429,35 @@ module Google
463
429
  # @param [String] fields
464
430
  # Selector specifying which fields to include in a partial response.
465
431
  # @param [String] quota_user
466
- # An opaque string that represents a user for quota purposes. Must not exceed 40
467
- # characters.
468
- # @param [String] user_ip
469
- # Deprecated. Please use quotaUser instead.
432
+ # Available to use for quota purposes for server-side applications. Can be any
433
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
470
434
  # @param [Google::Apis::RequestOptions] options
471
435
  # Request-specific options
472
436
  #
473
437
  # @yield [result, err] Result & error if block supplied
474
- # @yieldparam result [Google::Apis::SqladminV1beta4::ListFlagsResponse] parsed result object
438
+ # @yieldparam result [Google::Apis::SqlV1beta4::FlagsListResponse] parsed result object
475
439
  # @yieldparam err [StandardError] error object if request failed
476
440
  #
477
- # @return [Google::Apis::SqladminV1beta4::ListFlagsResponse]
441
+ # @return [Google::Apis::SqlV1beta4::FlagsListResponse]
478
442
  #
479
443
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
480
444
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
481
445
  # @raise [Google::Apis::AuthorizationError] Authorization is required
482
- def list_flags(database_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
483
- command = make_simple_command(:get, 'flags', options)
484
- command.response_representation = Google::Apis::SqladminV1beta4::ListFlagsResponse::Representation
485
- command.response_class = Google::Apis::SqladminV1beta4::ListFlagsResponse
446
+ def list_flags(database_version: nil, fields: nil, quota_user: nil, options: nil, &block)
447
+ command = make_simple_command(:get, 'sql/v1beta4/flags', options)
448
+ command.response_representation = Google::Apis::SqlV1beta4::FlagsListResponse::Representation
449
+ command.response_class = Google::Apis::SqlV1beta4::FlagsListResponse
486
450
  command.query['databaseVersion'] = database_version unless database_version.nil?
487
451
  command.query['fields'] = fields unless fields.nil?
488
452
  command.query['quotaUser'] = quota_user unless quota_user.nil?
489
- command.query['userIp'] = user_ip unless user_ip.nil?
490
453
  execute_or_queue_command(command, &block)
491
454
  end
492
455
 
493
456
  # Add a new trusted Certificate Authority (CA) version for the specified
494
- # instance. Required to prepare for a certificate rotation. If a CA version was
495
- # previously added but never used in a certificate rotation, this operation
496
- # replaces that version. There cannot be more than one CA version waiting to be
497
- # rotated in.
457
+ # instance. Required to prepare for a certificate rotation. If a CA version
458
+ # was previously added but never used in a certificate rotation, this
459
+ # operation replaces that version. There cannot be more than one CA version
460
+ # waiting to be rotated in.
498
461
  # @param [String] project
499
462
  # Project ID of the project that contains the instance.
500
463
  # @param [String] instance
@@ -502,71 +465,66 @@ module Google
502
465
  # @param [String] fields
503
466
  # Selector specifying which fields to include in a partial response.
504
467
  # @param [String] quota_user
505
- # An opaque string that represents a user for quota purposes. Must not exceed 40
506
- # characters.
507
- # @param [String] user_ip
508
- # Deprecated. Please use quotaUser instead.
468
+ # Available to use for quota purposes for server-side applications. Can be any
469
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
509
470
  # @param [Google::Apis::RequestOptions] options
510
471
  # Request-specific options
511
472
  #
512
473
  # @yield [result, err] Result & error if block supplied
513
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
474
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
514
475
  # @yieldparam err [StandardError] error object if request failed
515
476
  #
516
- # @return [Google::Apis::SqladminV1beta4::Operation]
477
+ # @return [Google::Apis::SqlV1beta4::Operation]
517
478
  #
518
479
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
519
480
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
520
481
  # @raise [Google::Apis::AuthorizationError] Authorization is required
521
- def add_instance_server_ca(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
522
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/addServerCa', options)
523
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
524
- command.response_class = Google::Apis::SqladminV1beta4::Operation
482
+ def add_instance_server_ca(project, instance, fields: nil, quota_user: nil, options: nil, &block)
483
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/addServerCa', options)
484
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
485
+ command.response_class = Google::Apis::SqlV1beta4::Operation
525
486
  command.params['project'] = project unless project.nil?
526
487
  command.params['instance'] = instance unless instance.nil?
527
488
  command.query['fields'] = fields unless fields.nil?
528
489
  command.query['quotaUser'] = quota_user unless quota_user.nil?
529
- command.query['userIp'] = user_ip unless user_ip.nil?
530
490
  execute_or_queue_command(command, &block)
531
491
  end
532
492
 
533
- # Creates a Cloud SQL instance as a clone of the source instance.
493
+ # Creates a Cloud SQL instance as a clone of the source instance. Using this
494
+ # operation might cause your instance to restart.
534
495
  # @param [String] project
535
496
  # Project ID of the source as well as the clone Cloud SQL instance.
536
497
  # @param [String] instance
537
- # The ID of the Cloud SQL instance to be cloned (source). This does not include
538
- # the project ID.
539
- # @param [Google::Apis::SqladminV1beta4::CloneInstancesRequest] clone_instances_request_object
498
+ # The ID of the Cloud SQL instance to be cloned (source). This does not
499
+ # include the project ID.
500
+ # @param [Google::Apis::SqlV1beta4::InstancesCloneRequest] instances_clone_request_object
540
501
  # @param [String] fields
541
502
  # Selector specifying which fields to include in a partial response.
542
503
  # @param [String] quota_user
543
- # An opaque string that represents a user for quota purposes. Must not exceed 40
544
- # characters.
545
- # @param [String] user_ip
546
- # Deprecated. Please use quotaUser instead.
504
+ # Available to use for quota purposes for server-side applications. Can be any
505
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
547
506
  # @param [Google::Apis::RequestOptions] options
548
507
  # Request-specific options
549
508
  #
550
509
  # @yield [result, err] Result & error if block supplied
551
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
510
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
552
511
  # @yieldparam err [StandardError] error object if request failed
553
512
  #
554
- # @return [Google::Apis::SqladminV1beta4::Operation]
513
+ # @return [Google::Apis::SqlV1beta4::Operation]
555
514
  #
556
515
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
557
516
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
558
517
  # @raise [Google::Apis::AuthorizationError] Authorization is required
559
- def clone_instance(project, instance, clone_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
560
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/clone', options)
561
- command.request_representation = Google::Apis::SqladminV1beta4::CloneInstancesRequest::Representation
562
- command.request_object = clone_instances_request_object
563
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
564
- command.response_class = Google::Apis::SqladminV1beta4::Operation
518
+ def clone_instance(project, instance, instances_clone_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
519
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/clone', options)
520
+ command.request_representation = Google::Apis::SqlV1beta4::InstancesCloneRequest::Representation
521
+ command.request_object = instances_clone_request_object
522
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
523
+ command.response_class = Google::Apis::SqlV1beta4::Operation
565
524
  command.params['project'] = project unless project.nil?
566
525
  command.params['instance'] = instance unless instance.nil?
567
526
  command.query['fields'] = fields unless fields.nil?
568
527
  command.query['quotaUser'] = quota_user unless quota_user.nil?
569
- command.query['userIp'] = user_ip unless user_ip.nil?
570
528
  execute_or_queue_command(command, &block)
571
529
  end
572
530
 
@@ -578,31 +536,28 @@ module Google
578
536
  # @param [String] fields
579
537
  # Selector specifying which fields to include in a partial response.
580
538
  # @param [String] quota_user
581
- # An opaque string that represents a user for quota purposes. Must not exceed 40
582
- # characters.
583
- # @param [String] user_ip
584
- # Deprecated. Please use quotaUser instead.
539
+ # Available to use for quota purposes for server-side applications. Can be any
540
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
585
541
  # @param [Google::Apis::RequestOptions] options
586
542
  # Request-specific options
587
543
  #
588
544
  # @yield [result, err] Result & error if block supplied
589
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
545
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
590
546
  # @yieldparam err [StandardError] error object if request failed
591
547
  #
592
- # @return [Google::Apis::SqladminV1beta4::Operation]
548
+ # @return [Google::Apis::SqlV1beta4::Operation]
593
549
  #
594
550
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
595
551
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
596
552
  # @raise [Google::Apis::AuthorizationError] Authorization is required
597
- def delete_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
598
- command = make_simple_command(:delete, 'projects/{project}/instances/{instance}', options)
599
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
600
- command.response_class = Google::Apis::SqladminV1beta4::Operation
553
+ def delete_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
554
+ command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
555
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
556
+ command.response_class = Google::Apis::SqlV1beta4::Operation
601
557
  command.params['project'] = project unless project.nil?
602
558
  command.params['instance'] = instance unless instance.nil?
603
559
  command.query['fields'] = fields unless fields.nil?
604
560
  command.query['quotaUser'] = quota_user unless quota_user.nil?
605
- command.query['userIp'] = user_ip unless user_ip.nil?
606
561
  execute_or_queue_command(command, &block)
607
562
  end
608
563
 
@@ -612,116 +567,108 @@ module Google
612
567
  # ID of the project that contains the instance.
613
568
  # @param [String] instance
614
569
  # Cloud SQL instance name.
615
- # @param [Google::Apis::SqladminV1beta4::InstancesDemoteMasterRequest] instances_demote_master_request_object
570
+ # @param [Google::Apis::SqlV1beta4::InstancesDemoteMasterRequest] instances_demote_master_request_object
616
571
  # @param [String] fields
617
572
  # Selector specifying which fields to include in a partial response.
618
573
  # @param [String] quota_user
619
- # An opaque string that represents a user for quota purposes. Must not exceed 40
620
- # characters.
621
- # @param [String] user_ip
622
- # Deprecated. Please use quotaUser instead.
574
+ # Available to use for quota purposes for server-side applications. Can be any
575
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
623
576
  # @param [Google::Apis::RequestOptions] options
624
577
  # Request-specific options
625
578
  #
626
579
  # @yield [result, err] Result & error if block supplied
627
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
580
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
628
581
  # @yieldparam err [StandardError] error object if request failed
629
582
  #
630
- # @return [Google::Apis::SqladminV1beta4::Operation]
583
+ # @return [Google::Apis::SqlV1beta4::Operation]
631
584
  #
632
585
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
633
586
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
634
587
  # @raise [Google::Apis::AuthorizationError] Authorization is required
635
- def demote_instance_master(project, instance, instances_demote_master_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
636
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/demoteMaster', options)
637
- command.request_representation = Google::Apis::SqladminV1beta4::InstancesDemoteMasterRequest::Representation
588
+ def demote_instance_master(project, instance, instances_demote_master_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
589
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster', options)
590
+ command.request_representation = Google::Apis::SqlV1beta4::InstancesDemoteMasterRequest::Representation
638
591
  command.request_object = instances_demote_master_request_object
639
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
640
- command.response_class = Google::Apis::SqladminV1beta4::Operation
592
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
593
+ command.response_class = Google::Apis::SqlV1beta4::Operation
641
594
  command.params['project'] = project unless project.nil?
642
595
  command.params['instance'] = instance unless instance.nil?
643
596
  command.query['fields'] = fields unless fields.nil?
644
597
  command.query['quotaUser'] = quota_user unless quota_user.nil?
645
- command.query['userIp'] = user_ip unless user_ip.nil?
646
598
  execute_or_queue_command(command, &block)
647
599
  end
648
600
 
649
- # Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL dump
650
- # or CSV file.
601
+ # Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL
602
+ # dump or CSV file.
651
603
  # @param [String] project
652
604
  # Project ID of the project that contains the instance to be exported.
653
605
  # @param [String] instance
654
606
  # Cloud SQL instance ID. This does not include the project ID.
655
- # @param [Google::Apis::SqladminV1beta4::ExportInstancesRequest] export_instances_request_object
607
+ # @param [Google::Apis::SqlV1beta4::InstancesExportRequest] instances_export_request_object
656
608
  # @param [String] fields
657
609
  # Selector specifying which fields to include in a partial response.
658
610
  # @param [String] quota_user
659
- # An opaque string that represents a user for quota purposes. Must not exceed 40
660
- # characters.
661
- # @param [String] user_ip
662
- # Deprecated. Please use quotaUser instead.
611
+ # Available to use for quota purposes for server-side applications. Can be any
612
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
663
613
  # @param [Google::Apis::RequestOptions] options
664
614
  # Request-specific options
665
615
  #
666
616
  # @yield [result, err] Result & error if block supplied
667
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
617
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
668
618
  # @yieldparam err [StandardError] error object if request failed
669
619
  #
670
- # @return [Google::Apis::SqladminV1beta4::Operation]
620
+ # @return [Google::Apis::SqlV1beta4::Operation]
671
621
  #
672
622
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
673
623
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
674
624
  # @raise [Google::Apis::AuthorizationError] Authorization is required
675
- def export_instance(project, instance, export_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
676
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/export', options)
677
- command.request_representation = Google::Apis::SqladminV1beta4::ExportInstancesRequest::Representation
678
- command.request_object = export_instances_request_object
679
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
680
- command.response_class = Google::Apis::SqladminV1beta4::Operation
625
+ def export_instance(project, instance, instances_export_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
626
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/export', options)
627
+ command.request_representation = Google::Apis::SqlV1beta4::InstancesExportRequest::Representation
628
+ command.request_object = instances_export_request_object
629
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
630
+ command.response_class = Google::Apis::SqlV1beta4::Operation
681
631
  command.params['project'] = project unless project.nil?
682
632
  command.params['instance'] = instance unless instance.nil?
683
633
  command.query['fields'] = fields unless fields.nil?
684
634
  command.query['quotaUser'] = quota_user unless quota_user.nil?
685
- command.query['userIp'] = user_ip unless user_ip.nil?
686
635
  execute_or_queue_command(command, &block)
687
636
  end
688
637
 
689
- # Failover the instance to its failover replica instance.
638
+ # Failover the instance to its failover replica instance. Using this
639
+ # operation might cause your instance to restart.
690
640
  # @param [String] project
691
641
  # ID of the project that contains the read replica.
692
642
  # @param [String] instance
693
643
  # Cloud SQL instance ID. This does not include the project ID.
694
- # @param [Google::Apis::SqladminV1beta4::InstancesFailoverRequest] instances_failover_request_object
644
+ # @param [Google::Apis::SqlV1beta4::InstancesFailoverRequest] instances_failover_request_object
695
645
  # @param [String] fields
696
646
  # Selector specifying which fields to include in a partial response.
697
647
  # @param [String] quota_user
698
- # An opaque string that represents a user for quota purposes. Must not exceed 40
699
- # characters.
700
- # @param [String] user_ip
701
- # Deprecated. Please use quotaUser instead.
648
+ # Available to use for quota purposes for server-side applications. Can be any
649
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
702
650
  # @param [Google::Apis::RequestOptions] options
703
651
  # Request-specific options
704
652
  #
705
653
  # @yield [result, err] Result & error if block supplied
706
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
654
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
707
655
  # @yieldparam err [StandardError] error object if request failed
708
656
  #
709
- # @return [Google::Apis::SqladminV1beta4::Operation]
657
+ # @return [Google::Apis::SqlV1beta4::Operation]
710
658
  #
711
659
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
712
660
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
713
661
  # @raise [Google::Apis::AuthorizationError] Authorization is required
714
- def failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
715
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/failover', options)
716
- command.request_representation = Google::Apis::SqladminV1beta4::InstancesFailoverRequest::Representation
662
+ def failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
663
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/failover', options)
664
+ command.request_representation = Google::Apis::SqlV1beta4::InstancesFailoverRequest::Representation
717
665
  command.request_object = instances_failover_request_object
718
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
719
- command.response_class = Google::Apis::SqladminV1beta4::Operation
666
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
667
+ command.response_class = Google::Apis::SqlV1beta4::Operation
720
668
  command.params['project'] = project unless project.nil?
721
669
  command.params['instance'] = instance unless instance.nil?
722
670
  command.query['fields'] = fields unless fields.nil?
723
671
  command.query['quotaUser'] = quota_user unless quota_user.nil?
724
- command.query['userIp'] = user_ip unless user_ip.nil?
725
672
  execute_or_queue_command(command, &block)
726
673
  end
727
674
 
@@ -733,71 +680,65 @@ module Google
733
680
  # @param [String] fields
734
681
  # Selector specifying which fields to include in a partial response.
735
682
  # @param [String] quota_user
736
- # An opaque string that represents a user for quota purposes. Must not exceed 40
737
- # characters.
738
- # @param [String] user_ip
739
- # Deprecated. Please use quotaUser instead.
683
+ # Available to use for quota purposes for server-side applications. Can be any
684
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
740
685
  # @param [Google::Apis::RequestOptions] options
741
686
  # Request-specific options
742
687
  #
743
688
  # @yield [result, err] Result & error if block supplied
744
- # @yieldparam result [Google::Apis::SqladminV1beta4::DatabaseInstance] parsed result object
689
+ # @yieldparam result [Google::Apis::SqlV1beta4::DatabaseInstance] parsed result object
745
690
  # @yieldparam err [StandardError] error object if request failed
746
691
  #
747
- # @return [Google::Apis::SqladminV1beta4::DatabaseInstance]
692
+ # @return [Google::Apis::SqlV1beta4::DatabaseInstance]
748
693
  #
749
694
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
750
695
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
751
696
  # @raise [Google::Apis::AuthorizationError] Authorization is required
752
- def get_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
753
- command = make_simple_command(:get, 'projects/{project}/instances/{instance}', options)
754
- command.response_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
755
- command.response_class = Google::Apis::SqladminV1beta4::DatabaseInstance
697
+ def get_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
698
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
699
+ command.response_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
700
+ command.response_class = Google::Apis::SqlV1beta4::DatabaseInstance
756
701
  command.params['project'] = project unless project.nil?
757
702
  command.params['instance'] = instance unless instance.nil?
758
703
  command.query['fields'] = fields unless fields.nil?
759
704
  command.query['quotaUser'] = quota_user unless quota_user.nil?
760
- command.query['userIp'] = user_ip unless user_ip.nil?
761
705
  execute_or_queue_command(command, &block)
762
706
  end
763
707
 
764
- # Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud
765
- # Storage.
708
+ # Imports data into a Cloud SQL instance from a SQL dump or CSV file in
709
+ # Cloud Storage.
766
710
  # @param [String] project
767
711
  # Project ID of the project that contains the instance.
768
712
  # @param [String] instance
769
713
  # Cloud SQL instance ID. This does not include the project ID.
770
- # @param [Google::Apis::SqladminV1beta4::ImportInstancesRequest] import_instances_request_object
714
+ # @param [Google::Apis::SqlV1beta4::InstancesImportRequest] instances_import_request_object
771
715
  # @param [String] fields
772
716
  # Selector specifying which fields to include in a partial response.
773
717
  # @param [String] quota_user
774
- # An opaque string that represents a user for quota purposes. Must not exceed 40
775
- # characters.
776
- # @param [String] user_ip
777
- # Deprecated. Please use quotaUser instead.
718
+ # Available to use for quota purposes for server-side applications. Can be any
719
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
778
720
  # @param [Google::Apis::RequestOptions] options
779
721
  # Request-specific options
780
722
  #
781
723
  # @yield [result, err] Result & error if block supplied
782
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
724
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
783
725
  # @yieldparam err [StandardError] error object if request failed
784
726
  #
785
- # @return [Google::Apis::SqladminV1beta4::Operation]
727
+ # @return [Google::Apis::SqlV1beta4::Operation]
786
728
  #
787
729
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
788
730
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
789
731
  # @raise [Google::Apis::AuthorizationError] Authorization is required
790
- def import_instance(project, instance, import_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
791
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/import', options)
792
- command.request_representation = Google::Apis::SqladminV1beta4::ImportInstancesRequest::Representation
793
- command.request_object = import_instances_request_object
794
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
795
- command.response_class = Google::Apis::SqladminV1beta4::Operation
732
+ def import_instance(project, instance, instances_import_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
733
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/import', options)
734
+ command.request_representation = Google::Apis::SqlV1beta4::InstancesImportRequest::Representation
735
+ command.request_object = instances_import_request_object
736
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
737
+ command.response_class = Google::Apis::SqlV1beta4::Operation
796
738
  command.params['project'] = project unless project.nil?
797
739
  command.params['instance'] = instance unless instance.nil?
798
740
  command.query['fields'] = fields unless fields.nil?
799
741
  command.query['quotaUser'] = quota_user unless quota_user.nil?
800
- command.query['userIp'] = user_ip unless user_ip.nil?
801
742
  execute_or_queue_command(command, &block)
802
743
  end
803
744
 
@@ -805,46 +746,48 @@ module Google
805
746
  # @param [String] project
806
747
  # Project ID of the project to which the newly created Cloud SQL instances
807
748
  # should belong.
808
- # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object
749
+ # @param [Google::Apis::SqlV1beta4::DatabaseInstance] database_instance_object
809
750
  # @param [String] fields
810
751
  # Selector specifying which fields to include in a partial response.
811
752
  # @param [String] quota_user
812
- # An opaque string that represents a user for quota purposes. Must not exceed 40
813
- # characters.
814
- # @param [String] user_ip
815
- # Deprecated. Please use quotaUser instead.
753
+ # Available to use for quota purposes for server-side applications. Can be any
754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
816
755
  # @param [Google::Apis::RequestOptions] options
817
756
  # Request-specific options
818
757
  #
819
758
  # @yield [result, err] Result & error if block supplied
820
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
759
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
821
760
  # @yieldparam err [StandardError] error object if request failed
822
761
  #
823
- # @return [Google::Apis::SqladminV1beta4::Operation]
762
+ # @return [Google::Apis::SqlV1beta4::Operation]
824
763
  #
825
764
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
826
765
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
827
766
  # @raise [Google::Apis::AuthorizationError] Authorization is required
828
- def insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
829
- command = make_simple_command(:post, 'projects/{project}/instances', options)
830
- command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
767
+ def insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
768
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances', options)
769
+ command.request_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
831
770
  command.request_object = database_instance_object
832
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
833
- command.response_class = Google::Apis::SqladminV1beta4::Operation
771
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
772
+ command.response_class = Google::Apis::SqlV1beta4::Operation
834
773
  command.params['project'] = project unless project.nil?
835
774
  command.query['fields'] = fields unless fields.nil?
836
775
  command.query['quotaUser'] = quota_user unless quota_user.nil?
837
- command.query['userIp'] = user_ip unless user_ip.nil?
838
776
  execute_or_queue_command(command, &block)
839
777
  end
840
778
 
841
- # Lists instances under a given project in the alphabetical order of the
842
- # instance name.
779
+ # Lists instances under a given project.
843
780
  # @param [String] project
844
781
  # Project ID of the project for which to list Cloud SQL instances.
845
782
  # @param [String] filter
846
- # An expression for filtering the results of the request, such as by name or
847
- # label.
783
+ # A filter expression that filters resources listed in the response.
784
+ # The expression is in the form of field:value. For example,
785
+ # 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per
786
+ # their JSON representation, such as 'settings.userLabels.auto_start:true'.
787
+ # Multiple filter queries are space-separated. For example.
788
+ # 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each
789
+ # expression is an AND expression. However, you can include AND and OR
790
+ # expressions explicitly.
848
791
  # @param [Fixnum] max_results
849
792
  # The maximum number of results to return per response.
850
793
  # @param [String] page_token
@@ -853,41 +796,38 @@ module Google
853
796
  # @param [String] fields
854
797
  # Selector specifying which fields to include in a partial response.
855
798
  # @param [String] quota_user
856
- # An opaque string that represents a user for quota purposes. Must not exceed 40
857
- # characters.
858
- # @param [String] user_ip
859
- # Deprecated. Please use quotaUser instead.
799
+ # Available to use for quota purposes for server-side applications. Can be any
800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
860
801
  # @param [Google::Apis::RequestOptions] options
861
802
  # Request-specific options
862
803
  #
863
804
  # @yield [result, err] Result & error if block supplied
864
- # @yieldparam result [Google::Apis::SqladminV1beta4::ListInstancesResponse] parsed result object
805
+ # @yieldparam result [Google::Apis::SqlV1beta4::InstancesListResponse] parsed result object
865
806
  # @yieldparam err [StandardError] error object if request failed
866
807
  #
867
- # @return [Google::Apis::SqladminV1beta4::ListInstancesResponse]
808
+ # @return [Google::Apis::SqlV1beta4::InstancesListResponse]
868
809
  #
869
810
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
870
811
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
871
812
  # @raise [Google::Apis::AuthorizationError] Authorization is required
872
- def list_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
873
- command = make_simple_command(:get, 'projects/{project}/instances', options)
874
- command.response_representation = Google::Apis::SqladminV1beta4::ListInstancesResponse::Representation
875
- command.response_class = Google::Apis::SqladminV1beta4::ListInstancesResponse
813
+ def list_instances(project, filter: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
814
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances', options)
815
+ command.response_representation = Google::Apis::SqlV1beta4::InstancesListResponse::Representation
816
+ command.response_class = Google::Apis::SqlV1beta4::InstancesListResponse
876
817
  command.params['project'] = project unless project.nil?
877
818
  command.query['filter'] = filter unless filter.nil?
878
819
  command.query['maxResults'] = max_results unless max_results.nil?
879
820
  command.query['pageToken'] = page_token unless page_token.nil?
880
821
  command.query['fields'] = fields unless fields.nil?
881
822
  command.query['quotaUser'] = quota_user unless quota_user.nil?
882
- command.query['userIp'] = user_ip unless user_ip.nil?
883
823
  execute_or_queue_command(command, &block)
884
824
  end
885
825
 
886
826
  # Lists all of the trusted Certificate Authorities (CAs) for the specified
887
827
  # instance. There can be up to three CAs listed: the CA that was used to sign
888
- # the certificate that is currently in use, a CA that has been added but not yet
889
- # used to sign a certificate, and a CA used to sign a certificate that has
890
- # previously rotated out.
828
+ # the certificate that is currently in use, a CA that has been added but not
829
+ # yet used to sign a certificate, and a CA used to sign a certificate that
830
+ # has previously rotated out.
891
831
  # @param [String] project
892
832
  # Project ID of the project that contains the instance.
893
833
  # @param [String] instance
@@ -895,76 +835,70 @@ module Google
895
835
  # @param [String] fields
896
836
  # Selector specifying which fields to include in a partial response.
897
837
  # @param [String] quota_user
898
- # An opaque string that represents a user for quota purposes. Must not exceed 40
899
- # characters.
900
- # @param [String] user_ip
901
- # Deprecated. Please use quotaUser instead.
838
+ # Available to use for quota purposes for server-side applications. Can be any
839
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
902
840
  # @param [Google::Apis::RequestOptions] options
903
841
  # Request-specific options
904
842
  #
905
843
  # @yield [result, err] Result & error if block supplied
906
- # @yieldparam result [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse] parsed result object
844
+ # @yieldparam result [Google::Apis::SqlV1beta4::InstancesListServerCasResponse] parsed result object
907
845
  # @yieldparam err [StandardError] error object if request failed
908
846
  #
909
- # @return [Google::Apis::SqladminV1beta4::InstancesListServerCasResponse]
847
+ # @return [Google::Apis::SqlV1beta4::InstancesListServerCasResponse]
910
848
  #
911
849
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
912
850
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
913
851
  # @raise [Google::Apis::AuthorizationError] Authorization is required
914
- def list_instance_server_cas(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
915
- command = make_simple_command(:get, 'projects/{project}/instances/{instance}/listServerCas', options)
916
- command.response_representation = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse::Representation
917
- command.response_class = Google::Apis::SqladminV1beta4::InstancesListServerCasResponse
852
+ def list_instance_server_cas(project, instance, fields: nil, quota_user: nil, options: nil, &block)
853
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/listServerCas', options)
854
+ command.response_representation = Google::Apis::SqlV1beta4::InstancesListServerCasResponse::Representation
855
+ command.response_class = Google::Apis::SqlV1beta4::InstancesListServerCasResponse
918
856
  command.params['project'] = project unless project.nil?
919
857
  command.params['instance'] = instance unless instance.nil?
920
858
  command.query['fields'] = fields unless fields.nil?
921
859
  command.query['quotaUser'] = quota_user unless quota_user.nil?
922
- command.query['userIp'] = user_ip unless user_ip.nil?
923
860
  execute_or_queue_command(command, &block)
924
861
  end
925
862
 
926
- # Updates settings of a Cloud SQL instance. Caution: This is not a partial
927
- # update, so you must include values for all the settings that you want to
928
- # retain. For partial updates, use patch.. This method supports patch semantics.
863
+ # Updates settings of a Cloud SQL instance.
864
+ # This method supports patch semantics.
929
865
  # @param [String] project
930
866
  # Project ID of the project that contains the instance.
931
867
  # @param [String] instance
932
868
  # Cloud SQL instance ID. This does not include the project ID.
933
- # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object
869
+ # @param [Google::Apis::SqlV1beta4::DatabaseInstance] database_instance_object
934
870
  # @param [String] fields
935
871
  # Selector specifying which fields to include in a partial response.
936
872
  # @param [String] quota_user
937
- # An opaque string that represents a user for quota purposes. Must not exceed 40
938
- # characters.
939
- # @param [String] user_ip
940
- # Deprecated. Please use quotaUser instead.
873
+ # Available to use for quota purposes for server-side applications. Can be any
874
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
941
875
  # @param [Google::Apis::RequestOptions] options
942
876
  # Request-specific options
943
877
  #
944
878
  # @yield [result, err] Result & error if block supplied
945
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
879
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
946
880
  # @yieldparam err [StandardError] error object if request failed
947
881
  #
948
- # @return [Google::Apis::SqladminV1beta4::Operation]
882
+ # @return [Google::Apis::SqlV1beta4::Operation]
949
883
  #
950
884
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
951
885
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
952
886
  # @raise [Google::Apis::AuthorizationError] Authorization is required
953
- def patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
954
- command = make_simple_command(:patch, 'projects/{project}/instances/{instance}', options)
955
- command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
887
+ def patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
888
+ command = make_simple_command(:patch, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
889
+ command.request_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
956
890
  command.request_object = database_instance_object
957
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
958
- command.response_class = Google::Apis::SqladminV1beta4::Operation
891
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
892
+ command.response_class = Google::Apis::SqlV1beta4::Operation
959
893
  command.params['project'] = project unless project.nil?
960
894
  command.params['instance'] = instance unless instance.nil?
961
895
  command.query['fields'] = fields unless fields.nil?
962
896
  command.query['quotaUser'] = quota_user unless quota_user.nil?
963
- command.query['userIp'] = user_ip unless user_ip.nil?
964
897
  execute_or_queue_command(command, &block)
965
898
  end
966
899
 
967
900
  # Promotes the read replica instance to be a stand-alone Cloud SQL instance.
901
+ # Using this operation might cause your instance to restart.
968
902
  # @param [String] project
969
903
  # ID of the project that contains the read replica.
970
904
  # @param [String] instance
@@ -972,36 +906,33 @@ module Google
972
906
  # @param [String] fields
973
907
  # Selector specifying which fields to include in a partial response.
974
908
  # @param [String] quota_user
975
- # An opaque string that represents a user for quota purposes. Must not exceed 40
976
- # characters.
977
- # @param [String] user_ip
978
- # Deprecated. Please use quotaUser instead.
909
+ # Available to use for quota purposes for server-side applications. Can be any
910
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
979
911
  # @param [Google::Apis::RequestOptions] options
980
912
  # Request-specific options
981
913
  #
982
914
  # @yield [result, err] Result & error if block supplied
983
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
915
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
984
916
  # @yieldparam err [StandardError] error object if request failed
985
917
  #
986
- # @return [Google::Apis::SqladminV1beta4::Operation]
918
+ # @return [Google::Apis::SqlV1beta4::Operation]
987
919
  #
988
920
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
989
921
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
990
922
  # @raise [Google::Apis::AuthorizationError] Authorization is required
991
- def promote_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
992
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/promoteReplica', options)
993
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
994
- command.response_class = Google::Apis::SqladminV1beta4::Operation
923
+ def promote_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
924
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica', options)
925
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
926
+ command.response_class = Google::Apis::SqlV1beta4::Operation
995
927
  command.params['project'] = project unless project.nil?
996
928
  command.params['instance'] = instance unless instance.nil?
997
929
  command.query['fields'] = fields unless fields.nil?
998
930
  command.query['quotaUser'] = quota_user unless quota_user.nil?
999
- command.query['userIp'] = user_ip unless user_ip.nil?
1000
931
  execute_or_queue_command(command, &block)
1001
932
  end
1002
933
 
1003
- # Deletes all client certificates and generates a new server SSL certificate for
1004
- # the instance.
934
+ # Deletes all client certificates and generates a new server SSL certificate
935
+ # for the instance.
1005
936
  # @param [String] project
1006
937
  # Project ID of the project that contains the instance.
1007
938
  # @param [String] instance
@@ -1009,31 +940,28 @@ module Google
1009
940
  # @param [String] fields
1010
941
  # Selector specifying which fields to include in a partial response.
1011
942
  # @param [String] quota_user
1012
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1013
- # characters.
1014
- # @param [String] user_ip
1015
- # Deprecated. Please use quotaUser instead.
943
+ # Available to use for quota purposes for server-side applications. Can be any
944
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1016
945
  # @param [Google::Apis::RequestOptions] options
1017
946
  # Request-specific options
1018
947
  #
1019
948
  # @yield [result, err] Result & error if block supplied
1020
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
949
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1021
950
  # @yieldparam err [StandardError] error object if request failed
1022
951
  #
1023
- # @return [Google::Apis::SqladminV1beta4::Operation]
952
+ # @return [Google::Apis::SqlV1beta4::Operation]
1024
953
  #
1025
954
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1026
955
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1027
956
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1028
- def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1029
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/resetSslConfig', options)
1030
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1031
- command.response_class = Google::Apis::SqladminV1beta4::Operation
957
+ def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, options: nil, &block)
958
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig', options)
959
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
960
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1032
961
  command.params['project'] = project unless project.nil?
1033
962
  command.params['instance'] = instance unless instance.nil?
1034
963
  command.query['fields'] = fields unless fields.nil?
1035
964
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1036
- command.query['userIp'] = user_ip unless user_ip.nil?
1037
965
  execute_or_queue_command(command, &block)
1038
966
  end
1039
967
 
@@ -1045,110 +973,102 @@ module Google
1045
973
  # @param [String] fields
1046
974
  # Selector specifying which fields to include in a partial response.
1047
975
  # @param [String] quota_user
1048
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1049
- # characters.
1050
- # @param [String] user_ip
1051
- # Deprecated. Please use quotaUser instead.
976
+ # Available to use for quota purposes for server-side applications. Can be any
977
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1052
978
  # @param [Google::Apis::RequestOptions] options
1053
979
  # Request-specific options
1054
980
  #
1055
981
  # @yield [result, err] Result & error if block supplied
1056
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
982
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1057
983
  # @yieldparam err [StandardError] error object if request failed
1058
984
  #
1059
- # @return [Google::Apis::SqladminV1beta4::Operation]
985
+ # @return [Google::Apis::SqlV1beta4::Operation]
1060
986
  #
1061
987
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1062
988
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1063
989
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1064
- def restart_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1065
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restart', options)
1066
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1067
- command.response_class = Google::Apis::SqladminV1beta4::Operation
990
+ def restart_instance(project, instance, fields: nil, quota_user: nil, options: nil, &block)
991
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restart', options)
992
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
993
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1068
994
  command.params['project'] = project unless project.nil?
1069
995
  command.params['instance'] = instance unless instance.nil?
1070
996
  command.query['fields'] = fields unless fields.nil?
1071
997
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1072
- command.query['userIp'] = user_ip unless user_ip.nil?
1073
998
  execute_or_queue_command(command, &block)
1074
999
  end
1075
1000
 
1076
- # Restores a backup of a Cloud SQL instance.
1001
+ # Restores a backup of a Cloud SQL instance. Using this operation might cause
1002
+ # your instance to restart.
1077
1003
  # @param [String] project
1078
1004
  # Project ID of the project that contains the instance.
1079
1005
  # @param [String] instance
1080
1006
  # Cloud SQL instance ID. This does not include the project ID.
1081
- # @param [Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest] restore_instances_backup_request_object
1007
+ # @param [Google::Apis::SqlV1beta4::InstancesRestoreBackupRequest] instances_restore_backup_request_object
1082
1008
  # @param [String] fields
1083
1009
  # Selector specifying which fields to include in a partial response.
1084
1010
  # @param [String] quota_user
1085
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1086
- # characters.
1087
- # @param [String] user_ip
1088
- # Deprecated. Please use quotaUser instead.
1011
+ # Available to use for quota purposes for server-side applications. Can be any
1012
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1089
1013
  # @param [Google::Apis::RequestOptions] options
1090
1014
  # Request-specific options
1091
1015
  #
1092
1016
  # @yield [result, err] Result & error if block supplied
1093
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1017
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1094
1018
  # @yieldparam err [StandardError] error object if request failed
1095
1019
  #
1096
- # @return [Google::Apis::SqladminV1beta4::Operation]
1020
+ # @return [Google::Apis::SqlV1beta4::Operation]
1097
1021
  #
1098
1022
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1099
1023
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1100
1024
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1101
- def restore_instance_backup(project, instance, restore_instances_backup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1102
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restoreBackup', options)
1103
- command.request_representation = Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest::Representation
1104
- command.request_object = restore_instances_backup_request_object
1105
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1106
- command.response_class = Google::Apis::SqladminV1beta4::Operation
1025
+ def restore_instance_backup(project, instance, instances_restore_backup_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1026
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup', options)
1027
+ command.request_representation = Google::Apis::SqlV1beta4::InstancesRestoreBackupRequest::Representation
1028
+ command.request_object = instances_restore_backup_request_object
1029
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1030
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1107
1031
  command.params['project'] = project unless project.nil?
1108
1032
  command.params['instance'] = instance unless instance.nil?
1109
1033
  command.query['fields'] = fields unless fields.nil?
1110
1034
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1111
- command.query['userIp'] = user_ip unless user_ip.nil?
1112
1035
  execute_or_queue_command(command, &block)
1113
1036
  end
1114
1037
 
1115
- # Rotates the server certificate to one signed by the Certificate Authority (CA)
1116
- # version previously added with the addServerCA method.
1038
+ # Rotates the server certificate to one signed by the Certificate Authority
1039
+ # (CA) version previously added with the addServerCA method.
1117
1040
  # @param [String] project
1118
1041
  # Project ID of the project that contains the instance.
1119
1042
  # @param [String] instance
1120
1043
  # Cloud SQL instance ID. This does not include the project ID.
1121
- # @param [Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest] instances_rotate_server_ca_request_object
1044
+ # @param [Google::Apis::SqlV1beta4::InstancesRotateServerCaRequest] instances_rotate_server_ca_request_object
1122
1045
  # @param [String] fields
1123
1046
  # Selector specifying which fields to include in a partial response.
1124
1047
  # @param [String] quota_user
1125
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1126
- # characters.
1127
- # @param [String] user_ip
1128
- # Deprecated. Please use quotaUser instead.
1048
+ # Available to use for quota purposes for server-side applications. Can be any
1049
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1129
1050
  # @param [Google::Apis::RequestOptions] options
1130
1051
  # Request-specific options
1131
1052
  #
1132
1053
  # @yield [result, err] Result & error if block supplied
1133
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1054
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1134
1055
  # @yieldparam err [StandardError] error object if request failed
1135
1056
  #
1136
- # @return [Google::Apis::SqladminV1beta4::Operation]
1057
+ # @return [Google::Apis::SqlV1beta4::Operation]
1137
1058
  #
1138
1059
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1139
1060
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1140
1061
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1141
- def rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1142
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/rotateServerCa', options)
1143
- command.request_representation = Google::Apis::SqladminV1beta4::InstancesRotateServerCaRequest::Representation
1062
+ def rotate_instance_server_ca(project, instance, instances_rotate_server_ca_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1063
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa', options)
1064
+ command.request_representation = Google::Apis::SqlV1beta4::InstancesRotateServerCaRequest::Representation
1144
1065
  command.request_object = instances_rotate_server_ca_request_object
1145
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1146
- command.response_class = Google::Apis::SqladminV1beta4::Operation
1066
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1067
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1147
1068
  command.params['project'] = project unless project.nil?
1148
1069
  command.params['instance'] = instance unless instance.nil?
1149
1070
  command.query['fields'] = fields unless fields.nil?
1150
1071
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1151
- command.query['userIp'] = user_ip unless user_ip.nil?
1152
1072
  execute_or_queue_command(command, &block)
1153
1073
  end
1154
1074
 
@@ -1160,31 +1080,28 @@ module Google
1160
1080
  # @param [String] fields
1161
1081
  # Selector specifying which fields to include in a partial response.
1162
1082
  # @param [String] quota_user
1163
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1164
- # characters.
1165
- # @param [String] user_ip
1166
- # Deprecated. Please use quotaUser instead.
1083
+ # Available to use for quota purposes for server-side applications. Can be any
1084
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1167
1085
  # @param [Google::Apis::RequestOptions] options
1168
1086
  # Request-specific options
1169
1087
  #
1170
1088
  # @yield [result, err] Result & error if block supplied
1171
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1089
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1172
1090
  # @yieldparam err [StandardError] error object if request failed
1173
1091
  #
1174
- # @return [Google::Apis::SqladminV1beta4::Operation]
1092
+ # @return [Google::Apis::SqlV1beta4::Operation]
1175
1093
  #
1176
1094
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1177
1095
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1178
1096
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1179
- def start_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1180
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/startReplica', options)
1181
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1182
- command.response_class = Google::Apis::SqladminV1beta4::Operation
1097
+ def start_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1098
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startReplica', options)
1099
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1100
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1183
1101
  command.params['project'] = project unless project.nil?
1184
1102
  command.params['instance'] = instance unless instance.nil?
1185
1103
  command.query['fields'] = fields unless fields.nil?
1186
1104
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1187
- command.query['userIp'] = user_ip unless user_ip.nil?
1188
1105
  execute_or_queue_command(command, &block)
1189
1106
  end
1190
1107
 
@@ -1196,31 +1113,28 @@ module Google
1196
1113
  # @param [String] fields
1197
1114
  # Selector specifying which fields to include in a partial response.
1198
1115
  # @param [String] quota_user
1199
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1200
- # characters.
1201
- # @param [String] user_ip
1202
- # Deprecated. Please use quotaUser instead.
1116
+ # Available to use for quota purposes for server-side applications. Can be any
1117
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1203
1118
  # @param [Google::Apis::RequestOptions] options
1204
1119
  # Request-specific options
1205
1120
  #
1206
1121
  # @yield [result, err] Result & error if block supplied
1207
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1122
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1208
1123
  # @yieldparam err [StandardError] error object if request failed
1209
1124
  #
1210
- # @return [Google::Apis::SqladminV1beta4::Operation]
1125
+ # @return [Google::Apis::SqlV1beta4::Operation]
1211
1126
  #
1212
1127
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1213
1128
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1214
1129
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1215
- def stop_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1216
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/stopReplica', options)
1217
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1218
- command.response_class = Google::Apis::SqladminV1beta4::Operation
1130
+ def stop_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1131
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/stopReplica', options)
1132
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1133
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1219
1134
  command.params['project'] = project unless project.nil?
1220
1135
  command.params['instance'] = instance unless instance.nil?
1221
1136
  command.query['fields'] = fields unless fields.nil?
1222
1137
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1223
- command.query['userIp'] = user_ip unless user_ip.nil?
1224
1138
  execute_or_queue_command(command, &block)
1225
1139
  end
1226
1140
 
@@ -1229,78 +1143,71 @@ module Google
1229
1143
  # Project ID of the Cloud SQL project.
1230
1144
  # @param [String] instance
1231
1145
  # Cloud SQL instance ID. This does not include the project ID.
1232
- # @param [Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest] instances_truncate_log_request_object
1146
+ # @param [Google::Apis::SqlV1beta4::InstancesTruncateLogRequest] instances_truncate_log_request_object
1233
1147
  # @param [String] fields
1234
1148
  # Selector specifying which fields to include in a partial response.
1235
1149
  # @param [String] quota_user
1236
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1237
- # characters.
1238
- # @param [String] user_ip
1239
- # Deprecated. Please use quotaUser instead.
1150
+ # Available to use for quota purposes for server-side applications. Can be any
1151
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1240
1152
  # @param [Google::Apis::RequestOptions] options
1241
1153
  # Request-specific options
1242
1154
  #
1243
1155
  # @yield [result, err] Result & error if block supplied
1244
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1156
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1245
1157
  # @yieldparam err [StandardError] error object if request failed
1246
1158
  #
1247
- # @return [Google::Apis::SqladminV1beta4::Operation]
1159
+ # @return [Google::Apis::SqlV1beta4::Operation]
1248
1160
  #
1249
1161
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1250
1162
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1251
1163
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1252
- def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1253
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/truncateLog', options)
1254
- command.request_representation = Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest::Representation
1164
+ def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1165
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/truncateLog', options)
1166
+ command.request_representation = Google::Apis::SqlV1beta4::InstancesTruncateLogRequest::Representation
1255
1167
  command.request_object = instances_truncate_log_request_object
1256
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1257
- command.response_class = Google::Apis::SqladminV1beta4::Operation
1168
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1169
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1258
1170
  command.params['project'] = project unless project.nil?
1259
1171
  command.params['instance'] = instance unless instance.nil?
1260
1172
  command.query['fields'] = fields unless fields.nil?
1261
1173
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1262
- command.query['userIp'] = user_ip unless user_ip.nil?
1263
1174
  execute_or_queue_command(command, &block)
1264
1175
  end
1265
1176
 
1266
- # Updates settings of a Cloud SQL instance. Caution: This is not a partial
1267
- # update, so you must include values for all the settings that you want to
1268
- # retain. For partial updates, use patch.
1177
+ # Updates settings of a Cloud SQL instance. Using this operation might cause
1178
+ # your instance to restart.
1269
1179
  # @param [String] project
1270
1180
  # Project ID of the project that contains the instance.
1271
1181
  # @param [String] instance
1272
1182
  # Cloud SQL instance ID. This does not include the project ID.
1273
- # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object
1183
+ # @param [Google::Apis::SqlV1beta4::DatabaseInstance] database_instance_object
1274
1184
  # @param [String] fields
1275
1185
  # Selector specifying which fields to include in a partial response.
1276
1186
  # @param [String] quota_user
1277
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1278
- # characters.
1279
- # @param [String] user_ip
1280
- # Deprecated. Please use quotaUser instead.
1187
+ # Available to use for quota purposes for server-side applications. Can be any
1188
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1281
1189
  # @param [Google::Apis::RequestOptions] options
1282
1190
  # Request-specific options
1283
1191
  #
1284
1192
  # @yield [result, err] Result & error if block supplied
1285
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1193
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1286
1194
  # @yieldparam err [StandardError] error object if request failed
1287
1195
  #
1288
- # @return [Google::Apis::SqladminV1beta4::Operation]
1196
+ # @return [Google::Apis::SqlV1beta4::Operation]
1289
1197
  #
1290
1198
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1291
1199
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1292
1200
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1293
- def update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1294
- command = make_simple_command(:put, 'projects/{project}/instances/{instance}', options)
1295
- command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
1201
+ def update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1202
+ command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}', options)
1203
+ command.request_representation = Google::Apis::SqlV1beta4::DatabaseInstance::Representation
1296
1204
  command.request_object = database_instance_object
1297
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1298
- command.response_class = Google::Apis::SqladminV1beta4::Operation
1205
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1206
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1299
1207
  command.params['project'] = project unless project.nil?
1300
1208
  command.params['instance'] = instance unless instance.nil?
1301
1209
  command.query['fields'] = fields unless fields.nil?
1302
1210
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1303
- command.query['userIp'] = user_ip unless user_ip.nil?
1304
1211
  execute_or_queue_command(command, &block)
1305
1212
  end
1306
1213
 
@@ -1312,36 +1219,33 @@ module Google
1312
1219
  # @param [String] fields
1313
1220
  # Selector specifying which fields to include in a partial response.
1314
1221
  # @param [String] quota_user
1315
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1316
- # characters.
1317
- # @param [String] user_ip
1318
- # Deprecated. Please use quotaUser instead.
1222
+ # Available to use for quota purposes for server-side applications. Can be any
1223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1319
1224
  # @param [Google::Apis::RequestOptions] options
1320
1225
  # Request-specific options
1321
1226
  #
1322
1227
  # @yield [result, err] Result & error if block supplied
1323
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1228
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1324
1229
  # @yieldparam err [StandardError] error object if request failed
1325
1230
  #
1326
- # @return [Google::Apis::SqladminV1beta4::Operation]
1231
+ # @return [Google::Apis::SqlV1beta4::Operation]
1327
1232
  #
1328
1233
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1329
1234
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1330
1235
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1331
- def get_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1332
- command = make_simple_command(:get, 'projects/{project}/operations/{operation}', options)
1333
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1334
- command.response_class = Google::Apis::SqladminV1beta4::Operation
1236
+ def get_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block)
1237
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations/{operation}', options)
1238
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1239
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1335
1240
  command.params['project'] = project unless project.nil?
1336
1241
  command.params['operation'] = operation unless operation.nil?
1337
1242
  command.query['fields'] = fields unless fields.nil?
1338
1243
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1339
- command.query['userIp'] = user_ip unless user_ip.nil?
1340
1244
  execute_or_queue_command(command, &block)
1341
1245
  end
1342
1246
 
1343
- # Lists all instance operations that have been performed on the given Cloud SQL
1344
- # instance in the reverse chronological order of the start time.
1247
+ # Lists all instance operations that have been performed on the given Cloud
1248
+ # SQL instance in the reverse chronological order of the start time.
1345
1249
  # @param [String] project
1346
1250
  # Project ID of the project that contains the instance.
1347
1251
  # @param [String] instance
@@ -1354,79 +1258,185 @@ module Google
1354
1258
  # @param [String] fields
1355
1259
  # Selector specifying which fields to include in a partial response.
1356
1260
  # @param [String] quota_user
1357
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1358
- # characters.
1359
- # @param [String] user_ip
1360
- # Deprecated. Please use quotaUser instead.
1261
+ # Available to use for quota purposes for server-side applications. Can be any
1262
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1361
1263
  # @param [Google::Apis::RequestOptions] options
1362
1264
  # Request-specific options
1363
1265
  #
1364
1266
  # @yield [result, err] Result & error if block supplied
1365
- # @yieldparam result [Google::Apis::SqladminV1beta4::ListOperationsResponse] parsed result object
1267
+ # @yieldparam result [Google::Apis::SqlV1beta4::OperationsListResponse] parsed result object
1366
1268
  # @yieldparam err [StandardError] error object if request failed
1367
1269
  #
1368
- # @return [Google::Apis::SqladminV1beta4::ListOperationsResponse]
1270
+ # @return [Google::Apis::SqlV1beta4::OperationsListResponse]
1369
1271
  #
1370
1272
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1371
1273
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1372
1274
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1373
- def list_operations(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1374
- command = make_simple_command(:get, 'projects/{project}/operations', options)
1375
- command.response_representation = Google::Apis::SqladminV1beta4::ListOperationsResponse::Representation
1376
- command.response_class = Google::Apis::SqladminV1beta4::ListOperationsResponse
1275
+ def list_operations(project, instance: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1276
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/operations', options)
1277
+ command.response_representation = Google::Apis::SqlV1beta4::OperationsListResponse::Representation
1278
+ command.response_class = Google::Apis::SqlV1beta4::OperationsListResponse
1377
1279
  command.params['project'] = project unless project.nil?
1378
1280
  command.query['instance'] = instance unless instance.nil?
1379
1281
  command.query['maxResults'] = max_results unless max_results.nil?
1380
1282
  command.query['pageToken'] = page_token unless page_token.nil?
1381
1283
  command.query['fields'] = fields unless fields.nil?
1382
1284
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1383
- command.query['userIp'] = user_ip unless user_ip.nil?
1285
+ execute_or_queue_command(command, &block)
1286
+ end
1287
+
1288
+ # Reschedules the maintenance on the given instance.
1289
+ # @param [String] project
1290
+ # ID of the project that contains the instance.
1291
+ # @param [String] instance
1292
+ # Cloud SQL instance ID. This does not include the project ID.
1293
+ # @param [Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody] sql_instances_reschedule_maintenance_request_body_object
1294
+ # @param [String] fields
1295
+ # Selector specifying which fields to include in a partial response.
1296
+ # @param [String] quota_user
1297
+ # Available to use for quota purposes for server-side applications. Can be any
1298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1299
+ # @param [Google::Apis::RequestOptions] options
1300
+ # Request-specific options
1301
+ #
1302
+ # @yield [result, err] Result & error if block supplied
1303
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1304
+ # @yieldparam err [StandardError] error object if request failed
1305
+ #
1306
+ # @return [Google::Apis::SqlV1beta4::Operation]
1307
+ #
1308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1311
+ def reschedule_project_instance_maintenance(project, instance, sql_instances_reschedule_maintenance_request_body_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1312
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance', options)
1313
+ command.request_representation = Google::Apis::SqlV1beta4::SqlInstancesRescheduleMaintenanceRequestBody::Representation
1314
+ command.request_object = sql_instances_reschedule_maintenance_request_body_object
1315
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1316
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1317
+ command.params['project'] = project unless project.nil?
1318
+ command.params['instance'] = instance unless instance.nil?
1319
+ command.query['fields'] = fields unless fields.nil?
1320
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1321
+ execute_or_queue_command(command, &block)
1322
+ end
1323
+
1324
+ # Start External master migration.
1325
+ # @param [String] project
1326
+ # ID of the project that contains the first generation instance.
1327
+ # @param [String] instance
1328
+ # Cloud SQL instance ID. This does not include the project ID.
1329
+ # @param [String] sync_mode
1330
+ # External sync mode
1331
+ # @param [String] fields
1332
+ # Selector specifying which fields to include in a partial response.
1333
+ # @param [String] quota_user
1334
+ # Available to use for quota purposes for server-side applications. Can be any
1335
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1336
+ # @param [Google::Apis::RequestOptions] options
1337
+ # Request-specific options
1338
+ #
1339
+ # @yield [result, err] Result & error if block supplied
1340
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1341
+ # @yieldparam err [StandardError] error object if request failed
1342
+ #
1343
+ # @return [Google::Apis::SqlV1beta4::Operation]
1344
+ #
1345
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1346
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1347
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1348
+ def start_project_instance_external_sync(project, instance, sync_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
1349
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync', options)
1350
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1351
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1352
+ command.params['project'] = project unless project.nil?
1353
+ command.params['instance'] = instance unless instance.nil?
1354
+ command.query['syncMode'] = sync_mode unless sync_mode.nil?
1355
+ command.query['fields'] = fields unless fields.nil?
1356
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1357
+ execute_or_queue_command(command, &block)
1358
+ end
1359
+
1360
+ # Verify External master external sync settings.
1361
+ # @param [String] project
1362
+ # Project ID of the project that contains the instance.
1363
+ # @param [String] instance
1364
+ # Cloud SQL instance ID. This does not include the project ID.
1365
+ # @param [String] sync_mode
1366
+ # External sync mode
1367
+ # @param [Boolean] verify_connection_only
1368
+ # Flag to enable verifying connection only
1369
+ # @param [String] fields
1370
+ # Selector specifying which fields to include in a partial response.
1371
+ # @param [String] quota_user
1372
+ # Available to use for quota purposes for server-side applications. Can be any
1373
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1374
+ # @param [Google::Apis::RequestOptions] options
1375
+ # Request-specific options
1376
+ #
1377
+ # @yield [result, err] Result & error if block supplied
1378
+ # @yieldparam result [Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse] parsed result object
1379
+ # @yieldparam err [StandardError] error object if request failed
1380
+ #
1381
+ # @return [Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse]
1382
+ #
1383
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1384
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1385
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1386
+ def verify_project_instance_external_sync_settings(project, instance, sync_mode: nil, verify_connection_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1387
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings', options)
1388
+ command.response_representation = Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse::Representation
1389
+ command.response_class = Google::Apis::SqlV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse
1390
+ command.params['project'] = project unless project.nil?
1391
+ command.params['instance'] = instance unless instance.nil?
1392
+ command.query['syncMode'] = sync_mode unless sync_mode.nil?
1393
+ command.query['verifyConnectionOnly'] = verify_connection_only unless verify_connection_only.nil?
1394
+ command.query['fields'] = fields unless fields.nil?
1395
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1384
1396
  execute_or_queue_command(command, &block)
1385
1397
  end
1386
1398
 
1387
1399
  # Generates a short-lived X509 certificate containing the provided public key
1388
- # and signed by a private key specific to the target instance. Users may use the
1389
- # certificate to authenticate as themselves when connecting to the database.
1400
+ # and signed by a private key specific to the target instance. Users may use
1401
+ # the certificate to authenticate as themselves when connecting to the
1402
+ # database.
1390
1403
  # @param [String] project
1391
1404
  # Project ID of the Cloud SQL project.
1392
1405
  # @param [String] instance
1393
1406
  # Cloud SQL instance ID. This does not include the project ID.
1394
- # @param [Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_request_object
1407
+ # @param [Google::Apis::SqlV1beta4::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_request_object
1395
1408
  # @param [String] fields
1396
1409
  # Selector specifying which fields to include in a partial response.
1397
1410
  # @param [String] quota_user
1398
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1399
- # characters.
1400
- # @param [String] user_ip
1401
- # Deprecated. Please use quotaUser instead.
1411
+ # Available to use for quota purposes for server-side applications. Can be any
1412
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1402
1413
  # @param [Google::Apis::RequestOptions] options
1403
1414
  # Request-specific options
1404
1415
  #
1405
1416
  # @yield [result, err] Result & error if block supplied
1406
- # @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object
1417
+ # @yieldparam result [Google::Apis::SqlV1beta4::SslCert] parsed result object
1407
1418
  # @yieldparam err [StandardError] error object if request failed
1408
1419
  #
1409
- # @return [Google::Apis::SqladminV1beta4::SslCert]
1420
+ # @return [Google::Apis::SqlV1beta4::SslCert]
1410
1421
  #
1411
1422
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1412
1423
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1413
1424
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1414
- 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)
1415
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/createEphemeral', options)
1416
- command.request_representation = Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest::Representation
1425
+ def create_ssl_cert_ephemeral(project, instance, ssl_certs_create_ephemeral_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1426
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral', options)
1427
+ command.request_representation = Google::Apis::SqlV1beta4::SslCertsCreateEphemeralRequest::Representation
1417
1428
  command.request_object = ssl_certs_create_ephemeral_request_object
1418
- command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation
1419
- command.response_class = Google::Apis::SqladminV1beta4::SslCert
1429
+ command.response_representation = Google::Apis::SqlV1beta4::SslCert::Representation
1430
+ command.response_class = Google::Apis::SqlV1beta4::SslCert
1420
1431
  command.params['project'] = project unless project.nil?
1421
1432
  command.params['instance'] = instance unless instance.nil?
1422
1433
  command.query['fields'] = fields unless fields.nil?
1423
1434
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1424
- command.query['userIp'] = user_ip unless user_ip.nil?
1425
1435
  execute_or_queue_command(command, &block)
1426
1436
  end
1427
1437
 
1428
- # Deletes the SSL certificate. For First Generation instances, the certificate
1429
- # remains valid until the instance is restarted.
1438
+ # Deletes the SSL certificate. For First Generation instances, the
1439
+ # certificate remains valid until the instance is restarted.
1430
1440
  # @param [String] project
1431
1441
  # Project ID of the project that contains the instance.
1432
1442
  # @param [String] instance
@@ -1436,37 +1446,34 @@ module Google
1436
1446
  # @param [String] fields
1437
1447
  # Selector specifying which fields to include in a partial response.
1438
1448
  # @param [String] quota_user
1439
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1440
- # characters.
1441
- # @param [String] user_ip
1442
- # Deprecated. Please use quotaUser instead.
1449
+ # Available to use for quota purposes for server-side applications. Can be any
1450
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1443
1451
  # @param [Google::Apis::RequestOptions] options
1444
1452
  # Request-specific options
1445
1453
  #
1446
1454
  # @yield [result, err] Result & error if block supplied
1447
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1455
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1448
1456
  # @yieldparam err [StandardError] error object if request failed
1449
1457
  #
1450
- # @return [Google::Apis::SqladminV1beta4::Operation]
1458
+ # @return [Google::Apis::SqlV1beta4::Operation]
1451
1459
  #
1452
1460
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1453
1461
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1454
1462
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1455
- def delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1456
- command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
1457
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1458
- command.response_class = Google::Apis::SqladminV1beta4::Operation
1463
+ def delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block)
1464
+ command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
1465
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1466
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1459
1467
  command.params['project'] = project unless project.nil?
1460
1468
  command.params['instance'] = instance unless instance.nil?
1461
1469
  command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil?
1462
1470
  command.query['fields'] = fields unless fields.nil?
1463
1471
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1464
- command.query['userIp'] = user_ip unless user_ip.nil?
1465
1472
  execute_or_queue_command(command, &block)
1466
1473
  end
1467
1474
 
1468
- # Retrieves a particular SSL certificate. Does not include the private key (
1469
- # required for usage). The private key must be saved from the response to
1475
+ # Retrieves a particular SSL certificate. Does not include the private key
1476
+ # (required for usage). The private key must be saved from the response to
1470
1477
  # initial creation.
1471
1478
  # @param [String] project
1472
1479
  # Project ID of the project that contains the instance.
@@ -1477,73 +1484,67 @@ module Google
1477
1484
  # @param [String] fields
1478
1485
  # Selector specifying which fields to include in a partial response.
1479
1486
  # @param [String] quota_user
1480
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1481
- # characters.
1482
- # @param [String] user_ip
1483
- # Deprecated. Please use quotaUser instead.
1487
+ # Available to use for quota purposes for server-side applications. Can be any
1488
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1484
1489
  # @param [Google::Apis::RequestOptions] options
1485
1490
  # Request-specific options
1486
1491
  #
1487
1492
  # @yield [result, err] Result & error if block supplied
1488
- # @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object
1493
+ # @yieldparam result [Google::Apis::SqlV1beta4::SslCert] parsed result object
1489
1494
  # @yieldparam err [StandardError] error object if request failed
1490
1495
  #
1491
- # @return [Google::Apis::SqladminV1beta4::SslCert]
1496
+ # @return [Google::Apis::SqlV1beta4::SslCert]
1492
1497
  #
1493
1498
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1494
1499
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1495
1500
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1496
- def get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1497
- command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
1498
- command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation
1499
- command.response_class = Google::Apis::SqladminV1beta4::SslCert
1501
+ def get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, options: nil, &block)
1502
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
1503
+ command.response_representation = Google::Apis::SqlV1beta4::SslCert::Representation
1504
+ command.response_class = Google::Apis::SqlV1beta4::SslCert
1500
1505
  command.params['project'] = project unless project.nil?
1501
1506
  command.params['instance'] = instance unless instance.nil?
1502
1507
  command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil?
1503
1508
  command.query['fields'] = fields unless fields.nil?
1504
1509
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1505
- command.query['userIp'] = user_ip unless user_ip.nil?
1506
1510
  execute_or_queue_command(command, &block)
1507
1511
  end
1508
1512
 
1509
1513
  # Creates an SSL certificate and returns it along with the private key and
1510
- # server certificate authority. The new certificate will not be usable until the
1511
- # instance is restarted.
1514
+ # server certificate authority. The new certificate will not be usable until
1515
+ # the instance is restarted.
1512
1516
  # @param [String] project
1513
1517
  # Project ID of the project that contains the instance.
1514
1518
  # @param [String] instance
1515
1519
  # Cloud SQL instance ID. This does not include the project ID.
1516
- # @param [Google::Apis::SqladminV1beta4::InsertSslCertsRequest] insert_ssl_certs_request_object
1520
+ # @param [Google::Apis::SqlV1beta4::SslCertsInsertRequest] ssl_certs_insert_request_object
1517
1521
  # @param [String] fields
1518
1522
  # Selector specifying which fields to include in a partial response.
1519
1523
  # @param [String] quota_user
1520
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1521
- # characters.
1522
- # @param [String] user_ip
1523
- # Deprecated. Please use quotaUser instead.
1524
+ # Available to use for quota purposes for server-side applications. Can be any
1525
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1524
1526
  # @param [Google::Apis::RequestOptions] options
1525
1527
  # Request-specific options
1526
1528
  #
1527
1529
  # @yield [result, err] Result & error if block supplied
1528
- # @yieldparam result [Google::Apis::SqladminV1beta4::InsertSslCertsResponse] parsed result object
1530
+ # @yieldparam result [Google::Apis::SqlV1beta4::SslCertsInsertResponse] parsed result object
1529
1531
  # @yieldparam err [StandardError] error object if request failed
1530
1532
  #
1531
- # @return [Google::Apis::SqladminV1beta4::InsertSslCertsResponse]
1533
+ # @return [Google::Apis::SqlV1beta4::SslCertsInsertResponse]
1532
1534
  #
1533
1535
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1534
1536
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1535
1537
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1536
- def insert_ssl_cert(project, instance, insert_ssl_certs_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1537
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/sslCerts', options)
1538
- command.request_representation = Google::Apis::SqladminV1beta4::InsertSslCertsRequest::Representation
1539
- command.request_object = insert_ssl_certs_request_object
1540
- command.response_representation = Google::Apis::SqladminV1beta4::InsertSslCertsResponse::Representation
1541
- command.response_class = Google::Apis::SqladminV1beta4::InsertSslCertsResponse
1538
+ def insert_ssl_cert(project, instance, ssl_certs_insert_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1539
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options)
1540
+ command.request_representation = Google::Apis::SqlV1beta4::SslCertsInsertRequest::Representation
1541
+ command.request_object = ssl_certs_insert_request_object
1542
+ command.response_representation = Google::Apis::SqlV1beta4::SslCertsInsertResponse::Representation
1543
+ command.response_class = Google::Apis::SqlV1beta4::SslCertsInsertResponse
1542
1544
  command.params['project'] = project unless project.nil?
1543
1545
  command.params['instance'] = instance unless instance.nil?
1544
1546
  command.query['fields'] = fields unless fields.nil?
1545
1547
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1546
- command.query['userIp'] = user_ip unless user_ip.nil?
1547
1548
  execute_or_queue_command(command, &block)
1548
1549
  end
1549
1550
 
@@ -1555,65 +1556,60 @@ module Google
1555
1556
  # @param [String] fields
1556
1557
  # Selector specifying which fields to include in a partial response.
1557
1558
  # @param [String] quota_user
1558
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1559
- # characters.
1560
- # @param [String] user_ip
1561
- # Deprecated. Please use quotaUser instead.
1559
+ # Available to use for quota purposes for server-side applications. Can be any
1560
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1562
1561
  # @param [Google::Apis::RequestOptions] options
1563
1562
  # Request-specific options
1564
1563
  #
1565
1564
  # @yield [result, err] Result & error if block supplied
1566
- # @yieldparam result [Google::Apis::SqladminV1beta4::ListSslCertsResponse] parsed result object
1565
+ # @yieldparam result [Google::Apis::SqlV1beta4::SslCertsListResponse] parsed result object
1567
1566
  # @yieldparam err [StandardError] error object if request failed
1568
1567
  #
1569
- # @return [Google::Apis::SqladminV1beta4::ListSslCertsResponse]
1568
+ # @return [Google::Apis::SqlV1beta4::SslCertsListResponse]
1570
1569
  #
1571
1570
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1572
1571
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1573
1572
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1574
- def list_ssl_certs(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1575
- command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts', options)
1576
- command.response_representation = Google::Apis::SqladminV1beta4::ListSslCertsResponse::Representation
1577
- command.response_class = Google::Apis::SqladminV1beta4::ListSslCertsResponse
1573
+ def list_ssl_certs(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1574
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/sslCerts', options)
1575
+ command.response_representation = Google::Apis::SqlV1beta4::SslCertsListResponse::Representation
1576
+ command.response_class = Google::Apis::SqlV1beta4::SslCertsListResponse
1578
1577
  command.params['project'] = project unless project.nil?
1579
1578
  command.params['instance'] = instance unless instance.nil?
1580
1579
  command.query['fields'] = fields unless fields.nil?
1581
1580
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1582
- command.query['userIp'] = user_ip unless user_ip.nil?
1583
1581
  execute_or_queue_command(command, &block)
1584
1582
  end
1585
1583
 
1586
- # Lists all available machine types (tiers) for Cloud SQL, for example, db-n1-
1587
- # standard-1. For related information, see Pricing.
1584
+ # Lists all available machine types (tiers) for Cloud SQL, for example,
1585
+ # db-n1-standard-1. For related information, see <a
1586
+ # href="/sql/pricing">Pricing</a>.
1588
1587
  # @param [String] project
1589
1588
  # Project ID of the project for which to list tiers.
1590
1589
  # @param [String] fields
1591
1590
  # Selector specifying which fields to include in a partial response.
1592
1591
  # @param [String] quota_user
1593
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1594
- # characters.
1595
- # @param [String] user_ip
1596
- # Deprecated. Please use quotaUser instead.
1592
+ # Available to use for quota purposes for server-side applications. Can be any
1593
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1597
1594
  # @param [Google::Apis::RequestOptions] options
1598
1595
  # Request-specific options
1599
1596
  #
1600
1597
  # @yield [result, err] Result & error if block supplied
1601
- # @yieldparam result [Google::Apis::SqladminV1beta4::ListTiersResponse] parsed result object
1598
+ # @yieldparam result [Google::Apis::SqlV1beta4::TiersListResponse] parsed result object
1602
1599
  # @yieldparam err [StandardError] error object if request failed
1603
1600
  #
1604
- # @return [Google::Apis::SqladminV1beta4::ListTiersResponse]
1601
+ # @return [Google::Apis::SqlV1beta4::TiersListResponse]
1605
1602
  #
1606
1603
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1607
1604
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1608
1605
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1609
- def list_tiers(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1610
- command = make_simple_command(:get, 'projects/{project}/tiers', options)
1611
- command.response_representation = Google::Apis::SqladminV1beta4::ListTiersResponse::Representation
1612
- command.response_class = Google::Apis::SqladminV1beta4::ListTiersResponse
1606
+ def list_tiers(project, fields: nil, quota_user: nil, options: nil, &block)
1607
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/tiers', options)
1608
+ command.response_representation = Google::Apis::SqlV1beta4::TiersListResponse::Representation
1609
+ command.response_class = Google::Apis::SqlV1beta4::TiersListResponse
1613
1610
  command.params['project'] = project unless project.nil?
1614
1611
  command.query['fields'] = fields unless fields.nil?
1615
1612
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1616
- command.query['userIp'] = user_ip unless user_ip.nil?
1617
1613
  execute_or_queue_command(command, &block)
1618
1614
  end
1619
1615
 
@@ -1629,33 +1625,30 @@ module Google
1629
1625
  # @param [String] fields
1630
1626
  # Selector specifying which fields to include in a partial response.
1631
1627
  # @param [String] quota_user
1632
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1633
- # characters.
1634
- # @param [String] user_ip
1635
- # Deprecated. Please use quotaUser instead.
1628
+ # Available to use for quota purposes for server-side applications. Can be any
1629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1636
1630
  # @param [Google::Apis::RequestOptions] options
1637
1631
  # Request-specific options
1638
1632
  #
1639
1633
  # @yield [result, err] Result & error if block supplied
1640
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1634
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1641
1635
  # @yieldparam err [StandardError] error object if request failed
1642
1636
  #
1643
- # @return [Google::Apis::SqladminV1beta4::Operation]
1637
+ # @return [Google::Apis::SqlV1beta4::Operation]
1644
1638
  #
1645
1639
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1646
1640
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1647
1641
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1648
- def delete_user(project, instance, host, name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1649
- command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/users', options)
1650
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1651
- command.response_class = Google::Apis::SqladminV1beta4::Operation
1642
+ def delete_user(project, instance, host: nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
1643
+ command = make_simple_command(:delete, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
1644
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1645
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1652
1646
  command.params['project'] = project unless project.nil?
1653
1647
  command.params['instance'] = instance unless instance.nil?
1654
1648
  command.query['host'] = host unless host.nil?
1655
1649
  command.query['name'] = name unless name.nil?
1656
1650
  command.query['fields'] = fields unless fields.nil?
1657
1651
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1658
- command.query['userIp'] = user_ip unless user_ip.nil?
1659
1652
  execute_or_queue_command(command, &block)
1660
1653
  end
1661
1654
 
@@ -1664,37 +1657,34 @@ module Google
1664
1657
  # Project ID of the project that contains the instance.
1665
1658
  # @param [String] instance
1666
1659
  # Database instance ID. This does not include the project ID.
1667
- # @param [Google::Apis::SqladminV1beta4::User] user_object
1660
+ # @param [Google::Apis::SqlV1beta4::User] user_object
1668
1661
  # @param [String] fields
1669
1662
  # Selector specifying which fields to include in a partial response.
1670
1663
  # @param [String] quota_user
1671
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1672
- # characters.
1673
- # @param [String] user_ip
1674
- # Deprecated. Please use quotaUser instead.
1664
+ # Available to use for quota purposes for server-side applications. Can be any
1665
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1675
1666
  # @param [Google::Apis::RequestOptions] options
1676
1667
  # Request-specific options
1677
1668
  #
1678
1669
  # @yield [result, err] Result & error if block supplied
1679
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1670
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1680
1671
  # @yieldparam err [StandardError] error object if request failed
1681
1672
  #
1682
- # @return [Google::Apis::SqladminV1beta4::Operation]
1673
+ # @return [Google::Apis::SqlV1beta4::Operation]
1683
1674
  #
1684
1675
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1685
1676
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1686
1677
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1687
- def insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1688
- command = make_simple_command(:post, 'projects/{project}/instances/{instance}/users', options)
1689
- command.request_representation = Google::Apis::SqladminV1beta4::User::Representation
1678
+ def insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1679
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
1680
+ command.request_representation = Google::Apis::SqlV1beta4::User::Representation
1690
1681
  command.request_object = user_object
1691
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1692
- command.response_class = Google::Apis::SqladminV1beta4::Operation
1682
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1683
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1693
1684
  command.params['project'] = project unless project.nil?
1694
1685
  command.params['instance'] = instance unless instance.nil?
1695
1686
  command.query['fields'] = fields unless fields.nil?
1696
1687
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1697
- command.query['userIp'] = user_ip unless user_ip.nil?
1698
1688
  execute_or_queue_command(command, &block)
1699
1689
  end
1700
1690
 
@@ -1706,31 +1696,28 @@ module Google
1706
1696
  # @param [String] fields
1707
1697
  # Selector specifying which fields to include in a partial response.
1708
1698
  # @param [String] quota_user
1709
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1710
- # characters.
1711
- # @param [String] user_ip
1712
- # Deprecated. Please use quotaUser instead.
1699
+ # Available to use for quota purposes for server-side applications. Can be any
1700
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1713
1701
  # @param [Google::Apis::RequestOptions] options
1714
1702
  # Request-specific options
1715
1703
  #
1716
1704
  # @yield [result, err] Result & error if block supplied
1717
- # @yieldparam result [Google::Apis::SqladminV1beta4::ListUsersResponse] parsed result object
1705
+ # @yieldparam result [Google::Apis::SqlV1beta4::UsersListResponse] parsed result object
1718
1706
  # @yieldparam err [StandardError] error object if request failed
1719
1707
  #
1720
- # @return [Google::Apis::SqladminV1beta4::ListUsersResponse]
1708
+ # @return [Google::Apis::SqlV1beta4::UsersListResponse]
1721
1709
  #
1722
1710
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1723
1711
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1724
1712
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1725
- def list_users(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1726
- command = make_simple_command(:get, 'projects/{project}/instances/{instance}/users', options)
1727
- command.response_representation = Google::Apis::SqladminV1beta4::ListUsersResponse::Representation
1728
- command.response_class = Google::Apis::SqladminV1beta4::ListUsersResponse
1713
+ def list_users(project, instance, fields: nil, quota_user: nil, options: nil, &block)
1714
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
1715
+ command.response_representation = Google::Apis::SqlV1beta4::UsersListResponse::Representation
1716
+ command.response_class = Google::Apis::SqlV1beta4::UsersListResponse
1729
1717
  command.params['project'] = project unless project.nil?
1730
1718
  command.params['instance'] = instance unless instance.nil?
1731
1719
  command.query['fields'] = fields unless fields.nil?
1732
1720
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1733
- command.query['userIp'] = user_ip unless user_ip.nil?
1734
1721
  execute_or_queue_command(command, &block)
1735
1722
  end
1736
1723
 
@@ -1739,44 +1726,40 @@ module Google
1739
1726
  # Project ID of the project that contains the instance.
1740
1727
  # @param [String] instance
1741
1728
  # Database instance ID. This does not include the project ID.
1729
+ # @param [Google::Apis::SqlV1beta4::User] user_object
1730
+ # @param [String] host
1731
+ # Optional. Host of the user in the instance.
1742
1732
  # @param [String] name
1743
1733
  # Name of the user in the instance.
1744
- # @param [Google::Apis::SqladminV1beta4::User] user_object
1745
- # @param [String] host
1746
- # Host of the user in the instance. For a MySQL instance, it's required; For a
1747
- # PostgreSQL instance, it's optional.
1748
1734
  # @param [String] fields
1749
1735
  # Selector specifying which fields to include in a partial response.
1750
1736
  # @param [String] quota_user
1751
- # An opaque string that represents a user for quota purposes. Must not exceed 40
1752
- # characters.
1753
- # @param [String] user_ip
1754
- # Deprecated. Please use quotaUser instead.
1737
+ # Available to use for quota purposes for server-side applications. Can be any
1738
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1755
1739
  # @param [Google::Apis::RequestOptions] options
1756
1740
  # Request-specific options
1757
1741
  #
1758
1742
  # @yield [result, err] Result & error if block supplied
1759
- # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1743
+ # @yieldparam result [Google::Apis::SqlV1beta4::Operation] parsed result object
1760
1744
  # @yieldparam err [StandardError] error object if request failed
1761
1745
  #
1762
- # @return [Google::Apis::SqladminV1beta4::Operation]
1746
+ # @return [Google::Apis::SqlV1beta4::Operation]
1763
1747
  #
1764
1748
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1765
1749
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1766
1750
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1767
- def update_user(project, instance, name, user_object = nil, host: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1768
- command = make_simple_command(:put, 'projects/{project}/instances/{instance}/users', options)
1769
- command.request_representation = Google::Apis::SqladminV1beta4::User::Representation
1751
+ def update_user(project, instance, user_object = nil, host: nil, name: nil, fields: nil, quota_user: nil, options: nil, &block)
1752
+ command = make_simple_command(:put, 'sql/v1beta4/projects/{project}/instances/{instance}/users', options)
1753
+ command.request_representation = Google::Apis::SqlV1beta4::User::Representation
1770
1754
  command.request_object = user_object
1771
- command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1772
- command.response_class = Google::Apis::SqladminV1beta4::Operation
1755
+ command.response_representation = Google::Apis::SqlV1beta4::Operation::Representation
1756
+ command.response_class = Google::Apis::SqlV1beta4::Operation
1773
1757
  command.params['project'] = project unless project.nil?
1774
1758
  command.params['instance'] = instance unless instance.nil?
1775
1759
  command.query['host'] = host unless host.nil?
1776
1760
  command.query['name'] = name unless name.nil?
1777
1761
  command.query['fields'] = fields unless fields.nil?
1778
1762
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1779
- command.query['userIp'] = user_ip unless user_ip.nil?
1780
1763
  execute_or_queue_command(command, &block)
1781
1764
  end
1782
1765
 
@@ -1785,7 +1768,6 @@ module Google
1785
1768
  def apply_command_defaults(command)
1786
1769
  command.query['key'] = key unless key.nil?
1787
1770
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1788
- command.query['userIp'] = user_ip unless user_ip.nil?
1789
1771
  end
1790
1772
  end
1791
1773
  end