lemboy-google-api-client 0.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,1709 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module SqladminV1beta4
23
+ # Cloud SQL Administration API
24
+ #
25
+ # Creates and configures Cloud SQL instances, which provide fully-managed MySQL
26
+ # databases.
27
+ #
28
+ # @example
29
+ # require 'google/apis/sqladmin_v1beta4'
30
+ #
31
+ # Sqladmin = Google::Apis::SqladminV1beta4 # Alias the module
32
+ # service = Sqladmin::SQLAdminService.new
33
+ #
34
+ # @see https://cloud.google.com/sql/docs/reference/latest
35
+ class SQLAdminService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ # Overrides userIp if both are provided.
45
+ attr_accessor :quota_user
46
+
47
+ # @return [String]
48
+ # IP address of the site where the request originates. Use this if you want to
49
+ # enforce per-user limits.
50
+ attr_accessor :user_ip
51
+
52
+ def initialize
53
+ super('https://www.googleapis.com/', 'sql/v1beta4/')
54
+ end
55
+
56
+ # Deletes the backup taken by a backup run.
57
+ # @param [String] project
58
+ # Project ID of the project that contains the instance.
59
+ # @param [String] instance
60
+ # Cloud SQL instance ID. This does not include the project ID.
61
+ # @param [String] id
62
+ # The ID of the Backup Run to delete. To find a Backup Run ID, use the list
63
+ # method.
64
+ # @param [String] fields
65
+ # Selector specifying which fields to include in a partial response.
66
+ # @param [String] quota_user
67
+ # Available to use for quota purposes for server-side applications. Can be any
68
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
69
+ # Overrides userIp if both are provided.
70
+ # @param [String] user_ip
71
+ # IP address of the site where the request originates. Use this if you want to
72
+ # enforce per-user limits.
73
+ # @param [Google::Apis::RequestOptions] options
74
+ # Request-specific options
75
+ #
76
+ # @yield [result, err] Result & error if block supplied
77
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
78
+ # @yieldparam err [StandardError] error object if request failed
79
+ #
80
+ # @return [Google::Apis::SqladminV1beta4::Operation]
81
+ #
82
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
83
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
84
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
85
+ def delete_backup_run(project, instance, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
86
+ command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/backupRuns/{id}', options)
87
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
88
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
89
+ command.params['project'] = project unless project.nil?
90
+ command.params['instance'] = instance unless instance.nil?
91
+ command.params['id'] = id unless id.nil?
92
+ command.query['fields'] = fields unless fields.nil?
93
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
94
+ command.query['userIp'] = user_ip unless user_ip.nil?
95
+ execute_or_queue_command(command, &block)
96
+ end
97
+
98
+ # Retrieves a resource containing information about a backup run.
99
+ # @param [String] project
100
+ # Project ID of the project that contains the instance.
101
+ # @param [String] instance
102
+ # Cloud SQL instance ID. This does not include the project ID.
103
+ # @param [String] id
104
+ # The ID of this Backup Run.
105
+ # @param [String] fields
106
+ # Selector specifying which fields to include in a partial response.
107
+ # @param [String] quota_user
108
+ # Available to use for quota purposes for server-side applications. Can be any
109
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
110
+ # Overrides userIp if both are provided.
111
+ # @param [String] user_ip
112
+ # IP address of the site where the request originates. Use this if you want to
113
+ # enforce per-user limits.
114
+ # @param [Google::Apis::RequestOptions] options
115
+ # Request-specific options
116
+ #
117
+ # @yield [result, err] Result & error if block supplied
118
+ # @yieldparam result [Google::Apis::SqladminV1beta4::BackupRun] parsed result object
119
+ # @yieldparam err [StandardError] error object if request failed
120
+ #
121
+ # @return [Google::Apis::SqladminV1beta4::BackupRun]
122
+ #
123
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
124
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
125
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
126
+ def get_backup_run(project, instance, id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
127
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns/{id}', options)
128
+ command.response_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation
129
+ command.response_class = Google::Apis::SqladminV1beta4::BackupRun
130
+ command.params['project'] = project unless project.nil?
131
+ command.params['instance'] = instance unless instance.nil?
132
+ command.params['id'] = id unless id.nil?
133
+ command.query['fields'] = fields unless fields.nil?
134
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
135
+ command.query['userIp'] = user_ip unless user_ip.nil?
136
+ execute_or_queue_command(command, &block)
137
+ end
138
+
139
+ # Creates a new backup run on demand. This method is applicable only to Second
140
+ # Generation instances.
141
+ # @param [String] project
142
+ # Project ID of the project that contains the instance.
143
+ # @param [String] instance
144
+ # Cloud SQL instance ID. This does not include the project ID.
145
+ # @param [Google::Apis::SqladminV1beta4::BackupRun] backup_run_object
146
+ # @param [String] fields
147
+ # Selector specifying which fields to include in a partial response.
148
+ # @param [String] quota_user
149
+ # Available to use for quota purposes for server-side applications. Can be any
150
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
151
+ # Overrides userIp if both are provided.
152
+ # @param [String] user_ip
153
+ # IP address of the site where the request originates. Use this if you want to
154
+ # enforce per-user limits.
155
+ # @param [Google::Apis::RequestOptions] options
156
+ # Request-specific options
157
+ #
158
+ # @yield [result, err] Result & error if block supplied
159
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
160
+ # @yieldparam err [StandardError] error object if request failed
161
+ #
162
+ # @return [Google::Apis::SqladminV1beta4::Operation]
163
+ #
164
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
165
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
166
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
167
+ def insert_backup_run(project, instance, backup_run_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
168
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/backupRuns', options)
169
+ command.request_representation = Google::Apis::SqladminV1beta4::BackupRun::Representation
170
+ command.request_object = backup_run_object
171
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
172
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
173
+ command.params['project'] = project unless project.nil?
174
+ command.params['instance'] = instance unless instance.nil?
175
+ command.query['fields'] = fields unless fields.nil?
176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ command.query['userIp'] = user_ip unless user_ip.nil?
178
+ execute_or_queue_command(command, &block)
179
+ end
180
+
181
+ # Lists all backup runs associated with a given instance and configuration in
182
+ # the reverse chronological order of the enqueued time.
183
+ # @param [String] project
184
+ # Project ID of the project that contains the instance.
185
+ # @param [String] instance
186
+ # Cloud SQL instance ID. This does not include the project ID.
187
+ # @param [Fixnum] max_results
188
+ # Maximum number of backup runs per response.
189
+ # @param [String] page_token
190
+ # A previously-returned page token representing part of the larger set of
191
+ # results to view.
192
+ # @param [String] fields
193
+ # Selector specifying which fields to include in a partial response.
194
+ # @param [String] quota_user
195
+ # Available to use for quota purposes for server-side applications. Can be any
196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
197
+ # Overrides userIp if both are provided.
198
+ # @param [String] user_ip
199
+ # IP address of the site where the request originates. Use this if you want to
200
+ # enforce per-user limits.
201
+ # @param [Google::Apis::RequestOptions] options
202
+ # Request-specific options
203
+ #
204
+ # @yield [result, err] Result & error if block supplied
205
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListBackupRunsResponse] parsed result object
206
+ # @yieldparam err [StandardError] error object if request failed
207
+ #
208
+ # @return [Google::Apis::SqladminV1beta4::ListBackupRunsResponse]
209
+ #
210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
213
+ def list_backup_runs(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
214
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/backupRuns', options)
215
+ command.response_representation = Google::Apis::SqladminV1beta4::ListBackupRunsResponse::Representation
216
+ command.response_class = Google::Apis::SqladminV1beta4::ListBackupRunsResponse
217
+ command.params['project'] = project unless project.nil?
218
+ command.params['instance'] = instance unless instance.nil?
219
+ command.query['maxResults'] = max_results unless max_results.nil?
220
+ command.query['pageToken'] = page_token unless page_token.nil?
221
+ command.query['fields'] = fields unless fields.nil?
222
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
223
+ command.query['userIp'] = user_ip unless user_ip.nil?
224
+ execute_or_queue_command(command, &block)
225
+ end
226
+
227
+ # Deletes a database from a Cloud SQL instance.
228
+ # @param [String] project
229
+ # Project ID of the project that contains the instance.
230
+ # @param [String] instance
231
+ # Database instance ID. This does not include the project ID.
232
+ # @param [String] database
233
+ # Name of the database to be deleted in the instance.
234
+ # @param [String] fields
235
+ # Selector specifying which fields to include in a partial response.
236
+ # @param [String] quota_user
237
+ # Available to use for quota purposes for server-side applications. Can be any
238
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
239
+ # Overrides userIp if both are provided.
240
+ # @param [String] user_ip
241
+ # IP address of the site where the request originates. Use this if you want to
242
+ # enforce per-user limits.
243
+ # @param [Google::Apis::RequestOptions] options
244
+ # Request-specific options
245
+ #
246
+ # @yield [result, err] Result & error if block supplied
247
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
248
+ # @yieldparam err [StandardError] error object if request failed
249
+ #
250
+ # @return [Google::Apis::SqladminV1beta4::Operation]
251
+ #
252
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
253
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
255
+ def delete_database(project, instance, database, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
256
+ command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/databases/{database}', options)
257
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
258
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
259
+ command.params['project'] = project unless project.nil?
260
+ command.params['instance'] = instance unless instance.nil?
261
+ command.params['database'] = database unless database.nil?
262
+ command.query['fields'] = fields unless fields.nil?
263
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
264
+ command.query['userIp'] = user_ip unless user_ip.nil?
265
+ execute_or_queue_command(command, &block)
266
+ end
267
+
268
+ # Retrieves a resource containing information about a database inside a Cloud
269
+ # SQL instance.
270
+ # @param [String] project
271
+ # Project ID of the project that contains the instance.
272
+ # @param [String] instance
273
+ # Database instance ID. This does not include the project ID.
274
+ # @param [String] database
275
+ # Name of the database in the instance.
276
+ # @param [String] fields
277
+ # Selector specifying which fields to include in a partial response.
278
+ # @param [String] quota_user
279
+ # Available to use for quota purposes for server-side applications. Can be any
280
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
281
+ # Overrides userIp if both are provided.
282
+ # @param [String] user_ip
283
+ # IP address of the site where the request originates. Use this if you want to
284
+ # enforce per-user limits.
285
+ # @param [Google::Apis::RequestOptions] options
286
+ # Request-specific options
287
+ #
288
+ # @yield [result, err] Result & error if block supplied
289
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Database] parsed result object
290
+ # @yieldparam err [StandardError] error object if request failed
291
+ #
292
+ # @return [Google::Apis::SqladminV1beta4::Database]
293
+ #
294
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
295
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
296
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
297
+ def get_database(project, instance, database, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
298
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/databases/{database}', options)
299
+ command.response_representation = Google::Apis::SqladminV1beta4::Database::Representation
300
+ command.response_class = Google::Apis::SqladminV1beta4::Database
301
+ command.params['project'] = project unless project.nil?
302
+ command.params['instance'] = instance unless instance.nil?
303
+ command.params['database'] = database unless database.nil?
304
+ command.query['fields'] = fields unless fields.nil?
305
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
306
+ command.query['userIp'] = user_ip unless user_ip.nil?
307
+ execute_or_queue_command(command, &block)
308
+ end
309
+
310
+ # Inserts a resource containing information about a database inside a Cloud SQL
311
+ # instance.
312
+ # @param [String] project
313
+ # Project ID of the project that contains the instance.
314
+ # @param [String] instance
315
+ # Database instance ID. This does not include the project ID.
316
+ # @param [Google::Apis::SqladminV1beta4::Database] database_object
317
+ # @param [String] fields
318
+ # Selector specifying which fields to include in a partial response.
319
+ # @param [String] quota_user
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.
322
+ # Overrides userIp if both are provided.
323
+ # @param [String] user_ip
324
+ # IP address of the site where the request originates. Use this if you want to
325
+ # enforce per-user limits.
326
+ # @param [Google::Apis::RequestOptions] options
327
+ # Request-specific options
328
+ #
329
+ # @yield [result, err] Result & error if block supplied
330
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
331
+ # @yieldparam err [StandardError] error object if request failed
332
+ #
333
+ # @return [Google::Apis::SqladminV1beta4::Operation]
334
+ #
335
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
336
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
337
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
338
+ def insert_database(project, instance, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
339
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/databases', options)
340
+ command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
341
+ command.request_object = database_object
342
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
343
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
344
+ command.params['project'] = project unless project.nil?
345
+ command.params['instance'] = instance unless instance.nil?
346
+ command.query['fields'] = fields unless fields.nil?
347
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
348
+ command.query['userIp'] = user_ip unless user_ip.nil?
349
+ execute_or_queue_command(command, &block)
350
+ end
351
+
352
+ # Lists databases in the specified Cloud SQL instance.
353
+ # @param [String] project
354
+ # Project ID of the project for which to list Cloud SQL instances.
355
+ # @param [String] instance
356
+ # Cloud SQL instance ID. This does not include the project ID.
357
+ # @param [String] fields
358
+ # Selector specifying which fields to include in a partial response.
359
+ # @param [String] quota_user
360
+ # Available to use for quota purposes for server-side applications. Can be any
361
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
362
+ # Overrides userIp if both are provided.
363
+ # @param [String] user_ip
364
+ # IP address of the site where the request originates. Use this if you want to
365
+ # enforce per-user limits.
366
+ # @param [Google::Apis::RequestOptions] options
367
+ # Request-specific options
368
+ #
369
+ # @yield [result, err] Result & error if block supplied
370
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListDatabasesResponse] parsed result object
371
+ # @yieldparam err [StandardError] error object if request failed
372
+ #
373
+ # @return [Google::Apis::SqladminV1beta4::ListDatabasesResponse]
374
+ #
375
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
376
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
377
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
378
+ def list_databases(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
379
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/databases', options)
380
+ command.response_representation = Google::Apis::SqladminV1beta4::ListDatabasesResponse::Representation
381
+ command.response_class = Google::Apis::SqladminV1beta4::ListDatabasesResponse
382
+ command.params['project'] = project unless project.nil?
383
+ command.params['instance'] = instance unless instance.nil?
384
+ command.query['fields'] = fields unless fields.nil?
385
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
386
+ command.query['userIp'] = user_ip unless user_ip.nil?
387
+ execute_or_queue_command(command, &block)
388
+ end
389
+
390
+ # Updates a resource containing information about a database inside a Cloud SQL
391
+ # instance. This method supports patch semantics.
392
+ # @param [String] project
393
+ # Project ID of the project that contains the instance.
394
+ # @param [String] instance
395
+ # Database instance ID. This does not include the project ID.
396
+ # @param [String] database
397
+ # Name of the database to be updated in the instance.
398
+ # @param [Google::Apis::SqladminV1beta4::Database] database_object
399
+ # @param [String] fields
400
+ # Selector specifying which fields to include in a partial response.
401
+ # @param [String] quota_user
402
+ # Available to use for quota purposes for server-side applications. Can be any
403
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
404
+ # Overrides userIp if both are provided.
405
+ # @param [String] user_ip
406
+ # IP address of the site where the request originates. Use this if you want to
407
+ # enforce per-user limits.
408
+ # @param [Google::Apis::RequestOptions] options
409
+ # Request-specific options
410
+ #
411
+ # @yield [result, err] Result & error if block supplied
412
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
413
+ # @yieldparam err [StandardError] error object if request failed
414
+ #
415
+ # @return [Google::Apis::SqladminV1beta4::Operation]
416
+ #
417
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
418
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
419
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
420
+ def patch_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
421
+ command = make_simple_command(:patch, 'projects/{project}/instances/{instance}/databases/{database}', options)
422
+ command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
423
+ command.request_object = database_object
424
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
425
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
426
+ command.params['project'] = project unless project.nil?
427
+ command.params['instance'] = instance unless instance.nil?
428
+ command.params['database'] = database unless database.nil?
429
+ command.query['fields'] = fields unless fields.nil?
430
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
431
+ command.query['userIp'] = user_ip unless user_ip.nil?
432
+ execute_or_queue_command(command, &block)
433
+ end
434
+
435
+ # Updates a resource containing information about a database inside a Cloud SQL
436
+ # instance.
437
+ # @param [String] project
438
+ # Project ID of the project that contains the instance.
439
+ # @param [String] instance
440
+ # Database instance ID. This does not include the project ID.
441
+ # @param [String] database
442
+ # Name of the database to be updated in the instance.
443
+ # @param [Google::Apis::SqladminV1beta4::Database] database_object
444
+ # @param [String] fields
445
+ # Selector specifying which fields to include in a partial response.
446
+ # @param [String] quota_user
447
+ # Available to use for quota purposes for server-side applications. Can be any
448
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
449
+ # Overrides userIp if both are provided.
450
+ # @param [String] user_ip
451
+ # IP address of the site where the request originates. Use this if you want to
452
+ # enforce per-user limits.
453
+ # @param [Google::Apis::RequestOptions] options
454
+ # Request-specific options
455
+ #
456
+ # @yield [result, err] Result & error if block supplied
457
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
458
+ # @yieldparam err [StandardError] error object if request failed
459
+ #
460
+ # @return [Google::Apis::SqladminV1beta4::Operation]
461
+ #
462
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
463
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
464
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
465
+ def update_database(project, instance, database, database_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
466
+ command = make_simple_command(:put, 'projects/{project}/instances/{instance}/databases/{database}', options)
467
+ command.request_representation = Google::Apis::SqladminV1beta4::Database::Representation
468
+ command.request_object = database_object
469
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
470
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
471
+ command.params['project'] = project unless project.nil?
472
+ command.params['instance'] = instance unless instance.nil?
473
+ command.params['database'] = database unless database.nil?
474
+ command.query['fields'] = fields unless fields.nil?
475
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
476
+ command.query['userIp'] = user_ip unless user_ip.nil?
477
+ execute_or_queue_command(command, &block)
478
+ end
479
+
480
+ # List all available database flags for Google Cloud SQL instances.
481
+ # @param [String] fields
482
+ # Selector specifying which fields to include in a partial response.
483
+ # @param [String] quota_user
484
+ # Available to use for quota purposes for server-side applications. Can be any
485
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
486
+ # Overrides userIp if both are provided.
487
+ # @param [String] user_ip
488
+ # IP address of the site where the request originates. Use this if you want to
489
+ # enforce per-user limits.
490
+ # @param [Google::Apis::RequestOptions] options
491
+ # Request-specific options
492
+ #
493
+ # @yield [result, err] Result & error if block supplied
494
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListFlagsResponse] parsed result object
495
+ # @yieldparam err [StandardError] error object if request failed
496
+ #
497
+ # @return [Google::Apis::SqladminV1beta4::ListFlagsResponse]
498
+ #
499
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
500
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
501
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
502
+ def list_flags(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
503
+ command = make_simple_command(:get, 'flags', options)
504
+ command.response_representation = Google::Apis::SqladminV1beta4::ListFlagsResponse::Representation
505
+ command.response_class = Google::Apis::SqladminV1beta4::ListFlagsResponse
506
+ command.query['fields'] = fields unless fields.nil?
507
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
508
+ command.query['userIp'] = user_ip unless user_ip.nil?
509
+ execute_or_queue_command(command, &block)
510
+ end
511
+
512
+ # Creates a Cloud SQL instance as a clone of the source instance. The API is not
513
+ # ready for Second Generation instances yet.
514
+ # @param [String] project
515
+ # Project ID of the source as well as the clone Cloud SQL instance.
516
+ # @param [String] instance
517
+ # The ID of the Cloud SQL instance to be cloned (source). This does not include
518
+ # the project ID.
519
+ # @param [Google::Apis::SqladminV1beta4::CloneInstancesRequest] clone_instances_request_object
520
+ # @param [String] fields
521
+ # Selector specifying which fields to include in a partial response.
522
+ # @param [String] quota_user
523
+ # Available to use for quota purposes for server-side applications. Can be any
524
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
525
+ # Overrides userIp if both are provided.
526
+ # @param [String] user_ip
527
+ # IP address of the site where the request originates. Use this if you want to
528
+ # enforce per-user limits.
529
+ # @param [Google::Apis::RequestOptions] options
530
+ # Request-specific options
531
+ #
532
+ # @yield [result, err] Result & error if block supplied
533
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
534
+ # @yieldparam err [StandardError] error object if request failed
535
+ #
536
+ # @return [Google::Apis::SqladminV1beta4::Operation]
537
+ #
538
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
539
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
540
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
541
+ def clone_instance(project, instance, clone_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
542
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/clone', options)
543
+ command.request_representation = Google::Apis::SqladminV1beta4::CloneInstancesRequest::Representation
544
+ command.request_object = clone_instances_request_object
545
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
546
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
547
+ command.params['project'] = project unless project.nil?
548
+ command.params['instance'] = instance unless instance.nil?
549
+ command.query['fields'] = fields unless fields.nil?
550
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
551
+ command.query['userIp'] = user_ip unless user_ip.nil?
552
+ execute_or_queue_command(command, &block)
553
+ end
554
+
555
+ # Deletes a Cloud SQL instance.
556
+ # @param [String] project
557
+ # Project ID of the project that contains the instance to be deleted.
558
+ # @param [String] instance
559
+ # Cloud SQL instance ID. This does not include the project ID.
560
+ # @param [String] fields
561
+ # Selector specifying which fields to include in a partial response.
562
+ # @param [String] quota_user
563
+ # Available to use for quota purposes for server-side applications. Can be any
564
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
565
+ # Overrides userIp if both are provided.
566
+ # @param [String] user_ip
567
+ # IP address of the site where the request originates. Use this if you want to
568
+ # enforce per-user limits.
569
+ # @param [Google::Apis::RequestOptions] options
570
+ # Request-specific options
571
+ #
572
+ # @yield [result, err] Result & error if block supplied
573
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
574
+ # @yieldparam err [StandardError] error object if request failed
575
+ #
576
+ # @return [Google::Apis::SqladminV1beta4::Operation]
577
+ #
578
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
579
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
580
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
581
+ def delete_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
582
+ command = make_simple_command(:delete, 'projects/{project}/instances/{instance}', options)
583
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
584
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
585
+ command.params['project'] = project unless project.nil?
586
+ command.params['instance'] = instance unless instance.nil?
587
+ command.query['fields'] = fields unless fields.nil?
588
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
589
+ command.query['userIp'] = user_ip unless user_ip.nil?
590
+ execute_or_queue_command(command, &block)
591
+ end
592
+
593
+ # Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as a
594
+ # MySQL dump file.
595
+ # @param [String] project
596
+ # Project ID of the project that contains the instance to be exported.
597
+ # @param [String] instance
598
+ # Cloud SQL instance ID. This does not include the project ID.
599
+ # @param [Google::Apis::SqladminV1beta4::ExportInstancesRequest] export_instances_request_object
600
+ # @param [String] fields
601
+ # Selector specifying which fields to include in a partial response.
602
+ # @param [String] quota_user
603
+ # Available to use for quota purposes for server-side applications. Can be any
604
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
605
+ # Overrides userIp if both are provided.
606
+ # @param [String] user_ip
607
+ # IP address of the site where the request originates. Use this if you want to
608
+ # enforce per-user limits.
609
+ # @param [Google::Apis::RequestOptions] options
610
+ # Request-specific options
611
+ #
612
+ # @yield [result, err] Result & error if block supplied
613
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
614
+ # @yieldparam err [StandardError] error object if request failed
615
+ #
616
+ # @return [Google::Apis::SqladminV1beta4::Operation]
617
+ #
618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
621
+ def export_instance(project, instance, export_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
622
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/export', options)
623
+ command.request_representation = Google::Apis::SqladminV1beta4::ExportInstancesRequest::Representation
624
+ command.request_object = export_instances_request_object
625
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
626
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
627
+ command.params['project'] = project unless project.nil?
628
+ command.params['instance'] = instance unless instance.nil?
629
+ command.query['fields'] = fields unless fields.nil?
630
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
631
+ command.query['userIp'] = user_ip unless user_ip.nil?
632
+ execute_or_queue_command(command, &block)
633
+ end
634
+
635
+ # Failover the instance to its failover replica instance.
636
+ # @param [String] project
637
+ # ID of the project that contains the read replica.
638
+ # @param [String] instance
639
+ # Cloud SQL instance ID. This does not include the project ID.
640
+ # @param [Google::Apis::SqladminV1beta4::InstancesFailoverRequest] instances_failover_request_object
641
+ # @param [String] fields
642
+ # Selector specifying which fields to include in a partial response.
643
+ # @param [String] quota_user
644
+ # Available to use for quota purposes for server-side applications. Can be any
645
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
646
+ # Overrides userIp if both are provided.
647
+ # @param [String] user_ip
648
+ # IP address of the site where the request originates. Use this if you want to
649
+ # enforce per-user limits.
650
+ # @param [Google::Apis::RequestOptions] options
651
+ # Request-specific options
652
+ #
653
+ # @yield [result, err] Result & error if block supplied
654
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
655
+ # @yieldparam err [StandardError] error object if request failed
656
+ #
657
+ # @return [Google::Apis::SqladminV1beta4::Operation]
658
+ #
659
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
660
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
661
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
662
+ def failover_instance(project, instance, instances_failover_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
663
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/failover', options)
664
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesFailoverRequest::Representation
665
+ command.request_object = instances_failover_request_object
666
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
667
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
668
+ command.params['project'] = project unless project.nil?
669
+ command.params['instance'] = instance unless instance.nil?
670
+ command.query['fields'] = fields unless fields.nil?
671
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
672
+ command.query['userIp'] = user_ip unless user_ip.nil?
673
+ execute_or_queue_command(command, &block)
674
+ end
675
+
676
+ # Retrieves a resource containing information about a Cloud SQL instance.
677
+ # @param [String] project
678
+ # Project ID of the project that contains the instance.
679
+ # @param [String] instance
680
+ # Database instance ID. This does not include the project ID.
681
+ # @param [String] fields
682
+ # Selector specifying which fields to include in a partial response.
683
+ # @param [String] quota_user
684
+ # Available to use for quota purposes for server-side applications. Can be any
685
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
686
+ # Overrides userIp if both are provided.
687
+ # @param [String] user_ip
688
+ # IP address of the site where the request originates. Use this if you want to
689
+ # enforce per-user limits.
690
+ # @param [Google::Apis::RequestOptions] options
691
+ # Request-specific options
692
+ #
693
+ # @yield [result, err] Result & error if block supplied
694
+ # @yieldparam result [Google::Apis::SqladminV1beta4::DatabaseInstance] parsed result object
695
+ # @yieldparam err [StandardError] error object if request failed
696
+ #
697
+ # @return [Google::Apis::SqladminV1beta4::DatabaseInstance]
698
+ #
699
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
700
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
701
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
702
+ def get_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
703
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}', options)
704
+ command.response_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
705
+ command.response_class = Google::Apis::SqladminV1beta4::DatabaseInstance
706
+ command.params['project'] = project unless project.nil?
707
+ command.params['instance'] = instance unless instance.nil?
708
+ command.query['fields'] = fields unless fields.nil?
709
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
710
+ command.query['userIp'] = user_ip unless user_ip.nil?
711
+ execute_or_queue_command(command, &block)
712
+ end
713
+
714
+ # Imports data into a Cloud SQL instance from a MySQL dump file in Google Cloud
715
+ # Storage.
716
+ # @param [String] project
717
+ # Project ID of the project that contains the instance.
718
+ # @param [String] instance
719
+ # Cloud SQL instance ID. This does not include the project ID.
720
+ # @param [Google::Apis::SqladminV1beta4::ImportInstancesRequest] import_instances_request_object
721
+ # @param [String] fields
722
+ # Selector specifying which fields to include in a partial response.
723
+ # @param [String] quota_user
724
+ # Available to use for quota purposes for server-side applications. Can be any
725
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
726
+ # Overrides userIp if both are provided.
727
+ # @param [String] user_ip
728
+ # IP address of the site where the request originates. Use this if you want to
729
+ # enforce per-user limits.
730
+ # @param [Google::Apis::RequestOptions] options
731
+ # Request-specific options
732
+ #
733
+ # @yield [result, err] Result & error if block supplied
734
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
735
+ # @yieldparam err [StandardError] error object if request failed
736
+ #
737
+ # @return [Google::Apis::SqladminV1beta4::Operation]
738
+ #
739
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
740
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
741
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
742
+ def import_instance(project, instance, import_instances_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
743
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/import', options)
744
+ command.request_representation = Google::Apis::SqladminV1beta4::ImportInstancesRequest::Representation
745
+ command.request_object = import_instances_request_object
746
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
747
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
748
+ command.params['project'] = project unless project.nil?
749
+ command.params['instance'] = instance unless instance.nil?
750
+ command.query['fields'] = fields unless fields.nil?
751
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
752
+ command.query['userIp'] = user_ip unless user_ip.nil?
753
+ execute_or_queue_command(command, &block)
754
+ end
755
+
756
+ # Creates a new Cloud SQL instance.
757
+ # @param [String] project
758
+ # Project ID of the project to which the newly created Cloud SQL instances
759
+ # should belong.
760
+ # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object
761
+ # @param [String] fields
762
+ # Selector specifying which fields to include in a partial response.
763
+ # @param [String] quota_user
764
+ # Available to use for quota purposes for server-side applications. Can be any
765
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
766
+ # Overrides userIp if both are provided.
767
+ # @param [String] user_ip
768
+ # IP address of the site where the request originates. Use this if you want to
769
+ # enforce per-user limits.
770
+ # @param [Google::Apis::RequestOptions] options
771
+ # Request-specific options
772
+ #
773
+ # @yield [result, err] Result & error if block supplied
774
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
775
+ # @yieldparam err [StandardError] error object if request failed
776
+ #
777
+ # @return [Google::Apis::SqladminV1beta4::Operation]
778
+ #
779
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
780
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
781
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
782
+ def insert_instance(project, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
783
+ command = make_simple_command(:post, 'projects/{project}/instances', options)
784
+ command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
785
+ command.request_object = database_instance_object
786
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
787
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
788
+ command.params['project'] = project unless project.nil?
789
+ command.query['fields'] = fields unless fields.nil?
790
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
791
+ command.query['userIp'] = user_ip unless user_ip.nil?
792
+ execute_or_queue_command(command, &block)
793
+ end
794
+
795
+ # Lists instances under a given project in the alphabetical order of the
796
+ # instance name.
797
+ # @param [String] project
798
+ # Project ID of the project for which to list Cloud SQL instances.
799
+ # @param [Fixnum] max_results
800
+ # The maximum number of results to return per response.
801
+ # @param [String] page_token
802
+ # A previously-returned page token representing part of the larger set of
803
+ # results to view.
804
+ # @param [String] fields
805
+ # Selector specifying which fields to include in a partial response.
806
+ # @param [String] quota_user
807
+ # Available to use for quota purposes for server-side applications. Can be any
808
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
809
+ # Overrides userIp if both are provided.
810
+ # @param [String] user_ip
811
+ # IP address of the site where the request originates. Use this if you want to
812
+ # enforce per-user limits.
813
+ # @param [Google::Apis::RequestOptions] options
814
+ # Request-specific options
815
+ #
816
+ # @yield [result, err] Result & error if block supplied
817
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListInstancesResponse] parsed result object
818
+ # @yieldparam err [StandardError] error object if request failed
819
+ #
820
+ # @return [Google::Apis::SqladminV1beta4::ListInstancesResponse]
821
+ #
822
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
823
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
824
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
825
+ def list_instances(project, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
826
+ command = make_simple_command(:get, 'projects/{project}/instances', options)
827
+ command.response_representation = Google::Apis::SqladminV1beta4::ListInstancesResponse::Representation
828
+ command.response_class = Google::Apis::SqladminV1beta4::ListInstancesResponse
829
+ command.params['project'] = project unless project.nil?
830
+ command.query['maxResults'] = max_results unless max_results.nil?
831
+ command.query['pageToken'] = page_token unless page_token.nil?
832
+ command.query['fields'] = fields unless fields.nil?
833
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
834
+ command.query['userIp'] = user_ip unless user_ip.nil?
835
+ execute_or_queue_command(command, &block)
836
+ end
837
+
838
+ # Updates settings of a Cloud SQL instance. Caution: This is not a partial
839
+ # update, so you must include values for all the settings that you want to
840
+ # retain. For partial updates, use patch.. This method supports patch semantics.
841
+ # @param [String] project
842
+ # Project ID of the project that contains the instance.
843
+ # @param [String] instance
844
+ # Cloud SQL instance ID. This does not include the project ID.
845
+ # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object
846
+ # @param [String] fields
847
+ # Selector specifying which fields to include in a partial response.
848
+ # @param [String] quota_user
849
+ # Available to use for quota purposes for server-side applications. Can be any
850
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
851
+ # Overrides userIp if both are provided.
852
+ # @param [String] user_ip
853
+ # IP address of the site where the request originates. Use this if you want to
854
+ # enforce per-user limits.
855
+ # @param [Google::Apis::RequestOptions] options
856
+ # Request-specific options
857
+ #
858
+ # @yield [result, err] Result & error if block supplied
859
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
860
+ # @yieldparam err [StandardError] error object if request failed
861
+ #
862
+ # @return [Google::Apis::SqladminV1beta4::Operation]
863
+ #
864
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
865
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
866
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
867
+ def patch_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
868
+ command = make_simple_command(:patch, 'projects/{project}/instances/{instance}', options)
869
+ command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
870
+ command.request_object = database_instance_object
871
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
872
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
873
+ command.params['project'] = project unless project.nil?
874
+ command.params['instance'] = instance unless instance.nil?
875
+ command.query['fields'] = fields unless fields.nil?
876
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
877
+ command.query['userIp'] = user_ip unless user_ip.nil?
878
+ execute_or_queue_command(command, &block)
879
+ end
880
+
881
+ # Promotes the read replica instance to be a stand-alone Cloud SQL instance.
882
+ # @param [String] project
883
+ # ID of the project that contains the read replica.
884
+ # @param [String] instance
885
+ # Cloud SQL read replica instance name.
886
+ # @param [String] fields
887
+ # Selector specifying which fields to include in a partial response.
888
+ # @param [String] quota_user
889
+ # Available to use for quota purposes for server-side applications. Can be any
890
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
891
+ # Overrides userIp if both are provided.
892
+ # @param [String] user_ip
893
+ # IP address of the site where the request originates. Use this if you want to
894
+ # enforce per-user limits.
895
+ # @param [Google::Apis::RequestOptions] options
896
+ # Request-specific options
897
+ #
898
+ # @yield [result, err] Result & error if block supplied
899
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
900
+ # @yieldparam err [StandardError] error object if request failed
901
+ #
902
+ # @return [Google::Apis::SqladminV1beta4::Operation]
903
+ #
904
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
905
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
906
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
907
+ def promote_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
908
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/promoteReplica', options)
909
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
910
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
911
+ command.params['project'] = project unless project.nil?
912
+ command.params['instance'] = instance unless instance.nil?
913
+ command.query['fields'] = fields unless fields.nil?
914
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
915
+ command.query['userIp'] = user_ip unless user_ip.nil?
916
+ execute_or_queue_command(command, &block)
917
+ end
918
+
919
+ # Deletes all client certificates and generates a new server SSL certificate for
920
+ # the instance. The changes will not take effect until the instance is restarted.
921
+ # Existing instances without a server certificate will need to call this once
922
+ # to set a server certificate.
923
+ # @param [String] project
924
+ # Project ID of the project that contains the instance.
925
+ # @param [String] instance
926
+ # Cloud SQL instance ID. This does not include the project ID.
927
+ # @param [String] fields
928
+ # Selector specifying which fields to include in a partial response.
929
+ # @param [String] quota_user
930
+ # Available to use for quota purposes for server-side applications. Can be any
931
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
932
+ # Overrides userIp if both are provided.
933
+ # @param [String] user_ip
934
+ # IP address of the site where the request originates. Use this if you want to
935
+ # enforce per-user limits.
936
+ # @param [Google::Apis::RequestOptions] options
937
+ # Request-specific options
938
+ #
939
+ # @yield [result, err] Result & error if block supplied
940
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
941
+ # @yieldparam err [StandardError] error object if request failed
942
+ #
943
+ # @return [Google::Apis::SqladminV1beta4::Operation]
944
+ #
945
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
946
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
947
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
948
+ def reset_instance_ssl_config(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
949
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/resetSslConfig', options)
950
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
951
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
952
+ command.params['project'] = project unless project.nil?
953
+ command.params['instance'] = instance unless instance.nil?
954
+ command.query['fields'] = fields unless fields.nil?
955
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
956
+ command.query['userIp'] = user_ip unless user_ip.nil?
957
+ execute_or_queue_command(command, &block)
958
+ end
959
+
960
+ # Restarts a Cloud SQL instance.
961
+ # @param [String] project
962
+ # Project ID of the project that contains the instance to be restarted.
963
+ # @param [String] instance
964
+ # Cloud SQL instance ID. This does not include the project ID.
965
+ # @param [String] fields
966
+ # Selector specifying which fields to include in a partial response.
967
+ # @param [String] quota_user
968
+ # Available to use for quota purposes for server-side applications. Can be any
969
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
970
+ # Overrides userIp if both are provided.
971
+ # @param [String] user_ip
972
+ # IP address of the site where the request originates. Use this if you want to
973
+ # enforce per-user limits.
974
+ # @param [Google::Apis::RequestOptions] options
975
+ # Request-specific options
976
+ #
977
+ # @yield [result, err] Result & error if block supplied
978
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
979
+ # @yieldparam err [StandardError] error object if request failed
980
+ #
981
+ # @return [Google::Apis::SqladminV1beta4::Operation]
982
+ #
983
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
984
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
985
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
986
+ def restart_instance(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
987
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restart', options)
988
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
989
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
990
+ command.params['project'] = project unless project.nil?
991
+ command.params['instance'] = instance unless instance.nil?
992
+ command.query['fields'] = fields unless fields.nil?
993
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
994
+ command.query['userIp'] = user_ip unless user_ip.nil?
995
+ execute_or_queue_command(command, &block)
996
+ end
997
+
998
+ # Restores a backup of a Cloud SQL instance.
999
+ # @param [String] project
1000
+ # Project ID of the project that contains the instance.
1001
+ # @param [String] instance
1002
+ # Cloud SQL instance ID. This does not include the project ID.
1003
+ # @param [Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest] restore_instances_backup_request_object
1004
+ # @param [String] fields
1005
+ # Selector specifying which fields to include in a partial response.
1006
+ # @param [String] quota_user
1007
+ # Available to use for quota purposes for server-side applications. Can be any
1008
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1009
+ # Overrides userIp if both are provided.
1010
+ # @param [String] user_ip
1011
+ # IP address of the site where the request originates. Use this if you want to
1012
+ # enforce per-user limits.
1013
+ # @param [Google::Apis::RequestOptions] options
1014
+ # Request-specific options
1015
+ #
1016
+ # @yield [result, err] Result & error if block supplied
1017
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1018
+ # @yieldparam err [StandardError] error object if request failed
1019
+ #
1020
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1021
+ #
1022
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1023
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1024
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1025
+ def restore_instance_backup(project, instance, restore_instances_backup_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1026
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/restoreBackup', options)
1027
+ command.request_representation = Google::Apis::SqladminV1beta4::RestoreInstancesBackupRequest::Representation
1028
+ command.request_object = restore_instances_backup_request_object
1029
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1030
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1031
+ command.params['project'] = project unless project.nil?
1032
+ command.params['instance'] = instance unless instance.nil?
1033
+ command.query['fields'] = fields unless fields.nil?
1034
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1035
+ command.query['userIp'] = user_ip unless user_ip.nil?
1036
+ execute_or_queue_command(command, &block)
1037
+ end
1038
+
1039
+ # Starts the replication in the read replica instance.
1040
+ # @param [String] project
1041
+ # ID of the project that contains the read replica.
1042
+ # @param [String] instance
1043
+ # Cloud SQL read replica instance name.
1044
+ # @param [String] fields
1045
+ # Selector specifying which fields to include in a partial response.
1046
+ # @param [String] quota_user
1047
+ # Available to use for quota purposes for server-side applications. Can be any
1048
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1049
+ # Overrides userIp if both are provided.
1050
+ # @param [String] user_ip
1051
+ # IP address of the site where the request originates. Use this if you want to
1052
+ # enforce per-user limits.
1053
+ # @param [Google::Apis::RequestOptions] options
1054
+ # Request-specific options
1055
+ #
1056
+ # @yield [result, err] Result & error if block supplied
1057
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1058
+ # @yieldparam err [StandardError] error object if request failed
1059
+ #
1060
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1061
+ #
1062
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1063
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1064
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1065
+ def start_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1066
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/startReplica', options)
1067
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1068
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1069
+ command.params['project'] = project unless project.nil?
1070
+ command.params['instance'] = instance unless instance.nil?
1071
+ command.query['fields'] = fields unless fields.nil?
1072
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1073
+ command.query['userIp'] = user_ip unless user_ip.nil?
1074
+ execute_or_queue_command(command, &block)
1075
+ end
1076
+
1077
+ # Stops the replication in the read replica instance.
1078
+ # @param [String] project
1079
+ # ID of the project that contains the read replica.
1080
+ # @param [String] instance
1081
+ # Cloud SQL read replica instance name.
1082
+ # @param [String] fields
1083
+ # Selector specifying which fields to include in a partial response.
1084
+ # @param [String] quota_user
1085
+ # Available to use for quota purposes for server-side applications. Can be any
1086
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1087
+ # Overrides userIp if both are provided.
1088
+ # @param [String] user_ip
1089
+ # IP address of the site where the request originates. Use this if you want to
1090
+ # enforce per-user limits.
1091
+ # @param [Google::Apis::RequestOptions] options
1092
+ # Request-specific options
1093
+ #
1094
+ # @yield [result, err] Result & error if block supplied
1095
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1096
+ # @yieldparam err [StandardError] error object if request failed
1097
+ #
1098
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1099
+ #
1100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1103
+ def stop_instance_replica(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1104
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/stopReplica', options)
1105
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1106
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1107
+ command.params['project'] = project unless project.nil?
1108
+ command.params['instance'] = instance unless instance.nil?
1109
+ command.query['fields'] = fields unless fields.nil?
1110
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1111
+ command.query['userIp'] = user_ip unless user_ip.nil?
1112
+ execute_or_queue_command(command, &block)
1113
+ end
1114
+
1115
+ # Truncate MySQL general and slow query log tables
1116
+ # @param [String] project
1117
+ # Project ID of the Cloud SQL project.
1118
+ # @param [String] instance
1119
+ # Cloud SQL instance ID. This does not include the project ID.
1120
+ # @param [Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest] instances_truncate_log_request_object
1121
+ # @param [String] fields
1122
+ # Selector specifying which fields to include in a partial response.
1123
+ # @param [String] quota_user
1124
+ # Available to use for quota purposes for server-side applications. Can be any
1125
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1126
+ # Overrides userIp if both are provided.
1127
+ # @param [String] user_ip
1128
+ # IP address of the site where the request originates. Use this if you want to
1129
+ # enforce per-user limits.
1130
+ # @param [Google::Apis::RequestOptions] options
1131
+ # Request-specific options
1132
+ #
1133
+ # @yield [result, err] Result & error if block supplied
1134
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1135
+ # @yieldparam err [StandardError] error object if request failed
1136
+ #
1137
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1138
+ #
1139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1142
+ def truncate_instance_log(project, instance, instances_truncate_log_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1143
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/truncateLog', options)
1144
+ command.request_representation = Google::Apis::SqladminV1beta4::InstancesTruncateLogRequest::Representation
1145
+ command.request_object = instances_truncate_log_request_object
1146
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1147
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1148
+ command.params['project'] = project unless project.nil?
1149
+ command.params['instance'] = instance unless instance.nil?
1150
+ command.query['fields'] = fields unless fields.nil?
1151
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1152
+ command.query['userIp'] = user_ip unless user_ip.nil?
1153
+ execute_or_queue_command(command, &block)
1154
+ end
1155
+
1156
+ # Updates settings of a Cloud SQL instance. Caution: This is not a partial
1157
+ # update, so you must include values for all the settings that you want to
1158
+ # retain. For partial updates, use patch.
1159
+ # @param [String] project
1160
+ # Project ID of the project that contains the instance.
1161
+ # @param [String] instance
1162
+ # Cloud SQL instance ID. This does not include the project ID.
1163
+ # @param [Google::Apis::SqladminV1beta4::DatabaseInstance] database_instance_object
1164
+ # @param [String] fields
1165
+ # Selector specifying which fields to include in a partial response.
1166
+ # @param [String] quota_user
1167
+ # Available to use for quota purposes for server-side applications. Can be any
1168
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1169
+ # Overrides userIp if both are provided.
1170
+ # @param [String] user_ip
1171
+ # IP address of the site where the request originates. Use this if you want to
1172
+ # enforce per-user limits.
1173
+ # @param [Google::Apis::RequestOptions] options
1174
+ # Request-specific options
1175
+ #
1176
+ # @yield [result, err] Result & error if block supplied
1177
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1178
+ # @yieldparam err [StandardError] error object if request failed
1179
+ #
1180
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1181
+ #
1182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1185
+ def update_instance(project, instance, database_instance_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1186
+ command = make_simple_command(:put, 'projects/{project}/instances/{instance}', options)
1187
+ command.request_representation = Google::Apis::SqladminV1beta4::DatabaseInstance::Representation
1188
+ command.request_object = database_instance_object
1189
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1190
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1191
+ command.params['project'] = project unless project.nil?
1192
+ command.params['instance'] = instance unless instance.nil?
1193
+ command.query['fields'] = fields unless fields.nil?
1194
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1195
+ command.query['userIp'] = user_ip unless user_ip.nil?
1196
+ execute_or_queue_command(command, &block)
1197
+ end
1198
+
1199
+ # Retrieves an instance operation that has been performed on an instance.
1200
+ # @param [String] project
1201
+ # Project ID of the project that contains the instance.
1202
+ # @param [String] operation
1203
+ # Instance operation ID.
1204
+ # @param [String] fields
1205
+ # Selector specifying which fields to include in a partial response.
1206
+ # @param [String] quota_user
1207
+ # Available to use for quota purposes for server-side applications. Can be any
1208
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1209
+ # Overrides userIp if both are provided.
1210
+ # @param [String] user_ip
1211
+ # IP address of the site where the request originates. Use this if you want to
1212
+ # enforce per-user limits.
1213
+ # @param [Google::Apis::RequestOptions] options
1214
+ # Request-specific options
1215
+ #
1216
+ # @yield [result, err] Result & error if block supplied
1217
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1218
+ # @yieldparam err [StandardError] error object if request failed
1219
+ #
1220
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1221
+ #
1222
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1223
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1224
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1225
+ def get_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1226
+ command = make_simple_command(:get, 'projects/{project}/operations/{operation}', options)
1227
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1228
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1229
+ command.params['project'] = project unless project.nil?
1230
+ command.params['operation'] = operation unless operation.nil?
1231
+ command.query['fields'] = fields unless fields.nil?
1232
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1233
+ command.query['userIp'] = user_ip unless user_ip.nil?
1234
+ execute_or_queue_command(command, &block)
1235
+ end
1236
+
1237
+ # Lists all instance operations that have been performed on the given Cloud SQL
1238
+ # instance in the reverse chronological order of the start time.
1239
+ # @param [String] project
1240
+ # Project ID of the project that contains the instance.
1241
+ # @param [String] instance
1242
+ # Cloud SQL instance ID. This does not include the project ID.
1243
+ # @param [Fixnum] max_results
1244
+ # Maximum number of operations per response.
1245
+ # @param [String] page_token
1246
+ # A previously-returned page token representing part of the larger set of
1247
+ # results to view.
1248
+ # @param [String] fields
1249
+ # Selector specifying which fields to include in a partial response.
1250
+ # @param [String] quota_user
1251
+ # Available to use for quota purposes for server-side applications. Can be any
1252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1253
+ # Overrides userIp if both are provided.
1254
+ # @param [String] user_ip
1255
+ # IP address of the site where the request originates. Use this if you want to
1256
+ # enforce per-user limits.
1257
+ # @param [Google::Apis::RequestOptions] options
1258
+ # Request-specific options
1259
+ #
1260
+ # @yield [result, err] Result & error if block supplied
1261
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListOperationsResponse] parsed result object
1262
+ # @yieldparam err [StandardError] error object if request failed
1263
+ #
1264
+ # @return [Google::Apis::SqladminV1beta4::ListOperationsResponse]
1265
+ #
1266
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1267
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1268
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1269
+ def list_operations(project, instance, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1270
+ command = make_simple_command(:get, 'projects/{project}/operations', options)
1271
+ command.response_representation = Google::Apis::SqladminV1beta4::ListOperationsResponse::Representation
1272
+ command.response_class = Google::Apis::SqladminV1beta4::ListOperationsResponse
1273
+ command.params['project'] = project unless project.nil?
1274
+ command.query['instance'] = instance unless instance.nil?
1275
+ command.query['maxResults'] = max_results unless max_results.nil?
1276
+ command.query['pageToken'] = page_token unless page_token.nil?
1277
+ command.query['fields'] = fields unless fields.nil?
1278
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1279
+ command.query['userIp'] = user_ip unless user_ip.nil?
1280
+ execute_or_queue_command(command, &block)
1281
+ end
1282
+
1283
+ # Generates a short-lived X509 certificate containing the provided public key
1284
+ # and signed by a private key specific to the target instance. Users may use the
1285
+ # certificate to authenticate as themselves when connecting to the database.
1286
+ # @param [String] project
1287
+ # Project ID of the Cloud SQL project.
1288
+ # @param [String] instance
1289
+ # Cloud SQL instance ID. This does not include the project ID.
1290
+ # @param [Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest] ssl_certs_create_ephemeral_request_object
1291
+ # @param [String] fields
1292
+ # Selector specifying which fields to include in a partial response.
1293
+ # @param [String] quota_user
1294
+ # Available to use for quota purposes for server-side applications. Can be any
1295
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1296
+ # Overrides userIp if both are provided.
1297
+ # @param [String] user_ip
1298
+ # IP address of the site where the request originates. Use this if you want to
1299
+ # enforce per-user limits.
1300
+ # @param [Google::Apis::RequestOptions] options
1301
+ # Request-specific options
1302
+ #
1303
+ # @yield [result, err] Result & error if block supplied
1304
+ # @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object
1305
+ # @yieldparam err [StandardError] error object if request failed
1306
+ #
1307
+ # @return [Google::Apis::SqladminV1beta4::SslCert]
1308
+ #
1309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1312
+ 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)
1313
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/createEphemeral', options)
1314
+ command.request_representation = Google::Apis::SqladminV1beta4::SslCertsCreateEphemeralRequest::Representation
1315
+ command.request_object = ssl_certs_create_ephemeral_request_object
1316
+ command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation
1317
+ command.response_class = Google::Apis::SqladminV1beta4::SslCert
1318
+ command.params['project'] = project unless project.nil?
1319
+ command.params['instance'] = instance unless instance.nil?
1320
+ command.query['fields'] = fields unless fields.nil?
1321
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1322
+ command.query['userIp'] = user_ip unless user_ip.nil?
1323
+ execute_or_queue_command(command, &block)
1324
+ end
1325
+
1326
+ # Deletes the SSL certificate. The change will not take effect until the
1327
+ # instance is restarted.
1328
+ # @param [String] project
1329
+ # Project ID of the project that contains the instance to be deleted.
1330
+ # @param [String] instance
1331
+ # Cloud SQL instance ID. This does not include the project ID.
1332
+ # @param [String] sha1_fingerprint
1333
+ # Sha1 FingerPrint.
1334
+ # @param [String] fields
1335
+ # Selector specifying which fields to include in a partial response.
1336
+ # @param [String] quota_user
1337
+ # Available to use for quota purposes for server-side applications. Can be any
1338
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1339
+ # Overrides userIp if both are provided.
1340
+ # @param [String] user_ip
1341
+ # IP address of the site where the request originates. Use this if you want to
1342
+ # enforce per-user limits.
1343
+ # @param [Google::Apis::RequestOptions] options
1344
+ # Request-specific options
1345
+ #
1346
+ # @yield [result, err] Result & error if block supplied
1347
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1348
+ # @yieldparam err [StandardError] error object if request failed
1349
+ #
1350
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1351
+ #
1352
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1353
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1354
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1355
+ def delete_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1356
+ command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
1357
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1358
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1359
+ command.params['project'] = project unless project.nil?
1360
+ command.params['instance'] = instance unless instance.nil?
1361
+ command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil?
1362
+ command.query['fields'] = fields unless fields.nil?
1363
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1364
+ command.query['userIp'] = user_ip unless user_ip.nil?
1365
+ execute_or_queue_command(command, &block)
1366
+ end
1367
+
1368
+ # Retrieves a particular SSL certificate. Does not include the private key (
1369
+ # required for usage). The private key must be saved from the response to
1370
+ # initial creation.
1371
+ # @param [String] project
1372
+ # Project ID of the project that contains the instance.
1373
+ # @param [String] instance
1374
+ # Cloud SQL instance ID. This does not include the project ID.
1375
+ # @param [String] sha1_fingerprint
1376
+ # Sha1 FingerPrint.
1377
+ # @param [String] fields
1378
+ # Selector specifying which fields to include in a partial response.
1379
+ # @param [String] quota_user
1380
+ # Available to use for quota purposes for server-side applications. Can be any
1381
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1382
+ # Overrides userIp if both are provided.
1383
+ # @param [String] user_ip
1384
+ # IP address of the site where the request originates. Use this if you want to
1385
+ # enforce per-user limits.
1386
+ # @param [Google::Apis::RequestOptions] options
1387
+ # Request-specific options
1388
+ #
1389
+ # @yield [result, err] Result & error if block supplied
1390
+ # @yieldparam result [Google::Apis::SqladminV1beta4::SslCert] parsed result object
1391
+ # @yieldparam err [StandardError] error object if request failed
1392
+ #
1393
+ # @return [Google::Apis::SqladminV1beta4::SslCert]
1394
+ #
1395
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1396
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1397
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1398
+ def get_ssl_cert(project, instance, sha1_fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1399
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}', options)
1400
+ command.response_representation = Google::Apis::SqladminV1beta4::SslCert::Representation
1401
+ command.response_class = Google::Apis::SqladminV1beta4::SslCert
1402
+ command.params['project'] = project unless project.nil?
1403
+ command.params['instance'] = instance unless instance.nil?
1404
+ command.params['sha1Fingerprint'] = sha1_fingerprint unless sha1_fingerprint.nil?
1405
+ command.query['fields'] = fields unless fields.nil?
1406
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1407
+ command.query['userIp'] = user_ip unless user_ip.nil?
1408
+ execute_or_queue_command(command, &block)
1409
+ end
1410
+
1411
+ # Creates an SSL certificate and returns it along with the private key and
1412
+ # server certificate authority. The new certificate will not be usable until the
1413
+ # instance is restarted.
1414
+ # @param [String] project
1415
+ # Project ID of the project to which the newly created Cloud SQL instances
1416
+ # should belong.
1417
+ # @param [String] instance
1418
+ # Cloud SQL instance ID. This does not include the project ID.
1419
+ # @param [Google::Apis::SqladminV1beta4::InsertSslCertsRequest] insert_ssl_certs_request_object
1420
+ # @param [String] fields
1421
+ # Selector specifying which fields to include in a partial response.
1422
+ # @param [String] quota_user
1423
+ # Available to use for quota purposes for server-side applications. Can be any
1424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1425
+ # Overrides userIp if both are provided.
1426
+ # @param [String] user_ip
1427
+ # IP address of the site where the request originates. Use this if you want to
1428
+ # enforce per-user limits.
1429
+ # @param [Google::Apis::RequestOptions] options
1430
+ # Request-specific options
1431
+ #
1432
+ # @yield [result, err] Result & error if block supplied
1433
+ # @yieldparam result [Google::Apis::SqladminV1beta4::InsertSslCertsResponse] parsed result object
1434
+ # @yieldparam err [StandardError] error object if request failed
1435
+ #
1436
+ # @return [Google::Apis::SqladminV1beta4::InsertSslCertsResponse]
1437
+ #
1438
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1439
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1440
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1441
+ def insert_ssl_cert(project, instance, insert_ssl_certs_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1442
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/sslCerts', options)
1443
+ command.request_representation = Google::Apis::SqladminV1beta4::InsertSslCertsRequest::Representation
1444
+ command.request_object = insert_ssl_certs_request_object
1445
+ command.response_representation = Google::Apis::SqladminV1beta4::InsertSslCertsResponse::Representation
1446
+ command.response_class = Google::Apis::SqladminV1beta4::InsertSslCertsResponse
1447
+ command.params['project'] = project unless project.nil?
1448
+ command.params['instance'] = instance unless instance.nil?
1449
+ command.query['fields'] = fields unless fields.nil?
1450
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1451
+ command.query['userIp'] = user_ip unless user_ip.nil?
1452
+ execute_or_queue_command(command, &block)
1453
+ end
1454
+
1455
+ # Lists all of the current SSL certificates for the instance.
1456
+ # @param [String] project
1457
+ # Project ID of the project for which to list Cloud SQL instances.
1458
+ # @param [String] instance
1459
+ # Cloud SQL instance ID. This does not include the project ID.
1460
+ # @param [String] fields
1461
+ # Selector specifying which fields to include in a partial response.
1462
+ # @param [String] quota_user
1463
+ # Available to use for quota purposes for server-side applications. Can be any
1464
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1465
+ # Overrides userIp if both are provided.
1466
+ # @param [String] user_ip
1467
+ # IP address of the site where the request originates. Use this if you want to
1468
+ # enforce per-user limits.
1469
+ # @param [Google::Apis::RequestOptions] options
1470
+ # Request-specific options
1471
+ #
1472
+ # @yield [result, err] Result & error if block supplied
1473
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListSslCertsResponse] parsed result object
1474
+ # @yieldparam err [StandardError] error object if request failed
1475
+ #
1476
+ # @return [Google::Apis::SqladminV1beta4::ListSslCertsResponse]
1477
+ #
1478
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1479
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1480
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1481
+ def list_ssl_certs(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1482
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/sslCerts', options)
1483
+ command.response_representation = Google::Apis::SqladminV1beta4::ListSslCertsResponse::Representation
1484
+ command.response_class = Google::Apis::SqladminV1beta4::ListSslCertsResponse
1485
+ command.params['project'] = project unless project.nil?
1486
+ command.params['instance'] = instance unless instance.nil?
1487
+ command.query['fields'] = fields unless fields.nil?
1488
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1489
+ command.query['userIp'] = user_ip unless user_ip.nil?
1490
+ execute_or_queue_command(command, &block)
1491
+ end
1492
+
1493
+ # Lists all available service tiers for Google Cloud SQL, for example D1, D2.
1494
+ # For related information, see Pricing.
1495
+ # @param [String] project
1496
+ # Project ID of the project for which to list tiers.
1497
+ # @param [String] fields
1498
+ # Selector specifying which fields to include in a partial response.
1499
+ # @param [String] quota_user
1500
+ # Available to use for quota purposes for server-side applications. Can be any
1501
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1502
+ # Overrides userIp if both are provided.
1503
+ # @param [String] user_ip
1504
+ # IP address of the site where the request originates. Use this if you want to
1505
+ # enforce per-user limits.
1506
+ # @param [Google::Apis::RequestOptions] options
1507
+ # Request-specific options
1508
+ #
1509
+ # @yield [result, err] Result & error if block supplied
1510
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListTiersResponse] parsed result object
1511
+ # @yieldparam err [StandardError] error object if request failed
1512
+ #
1513
+ # @return [Google::Apis::SqladminV1beta4::ListTiersResponse]
1514
+ #
1515
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1516
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1517
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1518
+ def list_tiers(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1519
+ command = make_simple_command(:get, 'projects/{project}/tiers', options)
1520
+ command.response_representation = Google::Apis::SqladminV1beta4::ListTiersResponse::Representation
1521
+ command.response_class = Google::Apis::SqladminV1beta4::ListTiersResponse
1522
+ command.params['project'] = project unless project.nil?
1523
+ command.query['fields'] = fields unless fields.nil?
1524
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1525
+ command.query['userIp'] = user_ip unless user_ip.nil?
1526
+ execute_or_queue_command(command, &block)
1527
+ end
1528
+
1529
+ # Deletes a user from a Cloud SQL instance.
1530
+ # @param [String] project
1531
+ # Project ID of the project that contains the instance.
1532
+ # @param [String] instance
1533
+ # Database instance ID. This does not include the project ID.
1534
+ # @param [String] host
1535
+ # Host of the user in the instance.
1536
+ # @param [String] name
1537
+ # Name of the user in the instance.
1538
+ # @param [String] fields
1539
+ # Selector specifying which fields to include in a partial response.
1540
+ # @param [String] quota_user
1541
+ # Available to use for quota purposes for server-side applications. Can be any
1542
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1543
+ # Overrides userIp if both are provided.
1544
+ # @param [String] user_ip
1545
+ # IP address of the site where the request originates. Use this if you want to
1546
+ # enforce per-user limits.
1547
+ # @param [Google::Apis::RequestOptions] options
1548
+ # Request-specific options
1549
+ #
1550
+ # @yield [result, err] Result & error if block supplied
1551
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1552
+ # @yieldparam err [StandardError] error object if request failed
1553
+ #
1554
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1555
+ #
1556
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1557
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1558
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1559
+ def delete_user(project, instance, host, name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1560
+ command = make_simple_command(:delete, 'projects/{project}/instances/{instance}/users', options)
1561
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1562
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1563
+ command.params['project'] = project unless project.nil?
1564
+ command.params['instance'] = instance unless instance.nil?
1565
+ command.query['host'] = host unless host.nil?
1566
+ command.query['name'] = name unless name.nil?
1567
+ command.query['fields'] = fields unless fields.nil?
1568
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1569
+ command.query['userIp'] = user_ip unless user_ip.nil?
1570
+ execute_or_queue_command(command, &block)
1571
+ end
1572
+
1573
+ # Creates a new user in a Cloud SQL instance.
1574
+ # @param [String] project
1575
+ # Project ID of the project that contains the instance.
1576
+ # @param [String] instance
1577
+ # Database instance ID. This does not include the project ID.
1578
+ # @param [Google::Apis::SqladminV1beta4::User] user_object
1579
+ # @param [String] fields
1580
+ # Selector specifying which fields to include in a partial response.
1581
+ # @param [String] quota_user
1582
+ # Available to use for quota purposes for server-side applications. Can be any
1583
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1584
+ # Overrides userIp if both are provided.
1585
+ # @param [String] user_ip
1586
+ # IP address of the site where the request originates. Use this if you want to
1587
+ # enforce per-user limits.
1588
+ # @param [Google::Apis::RequestOptions] options
1589
+ # Request-specific options
1590
+ #
1591
+ # @yield [result, err] Result & error if block supplied
1592
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1593
+ # @yieldparam err [StandardError] error object if request failed
1594
+ #
1595
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1596
+ #
1597
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1598
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1599
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1600
+ def insert_user(project, instance, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1601
+ command = make_simple_command(:post, 'projects/{project}/instances/{instance}/users', options)
1602
+ command.request_representation = Google::Apis::SqladminV1beta4::User::Representation
1603
+ command.request_object = user_object
1604
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1605
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1606
+ command.params['project'] = project unless project.nil?
1607
+ command.params['instance'] = instance unless instance.nil?
1608
+ command.query['fields'] = fields unless fields.nil?
1609
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1610
+ command.query['userIp'] = user_ip unless user_ip.nil?
1611
+ execute_or_queue_command(command, &block)
1612
+ end
1613
+
1614
+ # Lists users in the specified Cloud SQL instance.
1615
+ # @param [String] project
1616
+ # Project ID of the project that contains the instance.
1617
+ # @param [String] instance
1618
+ # Database instance ID. This does not include the project ID.
1619
+ # @param [String] fields
1620
+ # Selector specifying which fields to include in a partial response.
1621
+ # @param [String] quota_user
1622
+ # Available to use for quota purposes for server-side applications. Can be any
1623
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1624
+ # Overrides userIp if both are provided.
1625
+ # @param [String] user_ip
1626
+ # IP address of the site where the request originates. Use this if you want to
1627
+ # enforce per-user limits.
1628
+ # @param [Google::Apis::RequestOptions] options
1629
+ # Request-specific options
1630
+ #
1631
+ # @yield [result, err] Result & error if block supplied
1632
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ListUsersResponse] parsed result object
1633
+ # @yieldparam err [StandardError] error object if request failed
1634
+ #
1635
+ # @return [Google::Apis::SqladminV1beta4::ListUsersResponse]
1636
+ #
1637
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1638
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1639
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1640
+ def list_users(project, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1641
+ command = make_simple_command(:get, 'projects/{project}/instances/{instance}/users', options)
1642
+ command.response_representation = Google::Apis::SqladminV1beta4::ListUsersResponse::Representation
1643
+ command.response_class = Google::Apis::SqladminV1beta4::ListUsersResponse
1644
+ command.params['project'] = project unless project.nil?
1645
+ command.params['instance'] = instance unless instance.nil?
1646
+ command.query['fields'] = fields unless fields.nil?
1647
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1648
+ command.query['userIp'] = user_ip unless user_ip.nil?
1649
+ execute_or_queue_command(command, &block)
1650
+ end
1651
+
1652
+ # Updates an existing user in a Cloud SQL instance.
1653
+ # @param [String] project
1654
+ # Project ID of the project that contains the instance.
1655
+ # @param [String] instance
1656
+ # Database instance ID. This does not include the project ID.
1657
+ # @param [String] host
1658
+ # Host of the user in the instance.
1659
+ # @param [String] name
1660
+ # Name of the user in the instance.
1661
+ # @param [Google::Apis::SqladminV1beta4::User] user_object
1662
+ # @param [String] fields
1663
+ # Selector specifying which fields to include in a partial response.
1664
+ # @param [String] quota_user
1665
+ # Available to use for quota purposes for server-side applications. Can be any
1666
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1667
+ # Overrides userIp if both are provided.
1668
+ # @param [String] user_ip
1669
+ # IP address of the site where the request originates. Use this if you want to
1670
+ # enforce per-user limits.
1671
+ # @param [Google::Apis::RequestOptions] options
1672
+ # Request-specific options
1673
+ #
1674
+ # @yield [result, err] Result & error if block supplied
1675
+ # @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
1676
+ # @yieldparam err [StandardError] error object if request failed
1677
+ #
1678
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1679
+ #
1680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1683
+ def update_user(project, instance, host, name, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1684
+ command = make_simple_command(:put, 'projects/{project}/instances/{instance}/users', options)
1685
+ command.request_representation = Google::Apis::SqladminV1beta4::User::Representation
1686
+ command.request_object = user_object
1687
+ command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1688
+ command.response_class = Google::Apis::SqladminV1beta4::Operation
1689
+ command.params['project'] = project unless project.nil?
1690
+ command.params['instance'] = instance unless instance.nil?
1691
+ command.query['host'] = host unless host.nil?
1692
+ command.query['name'] = name unless name.nil?
1693
+ command.query['fields'] = fields unless fields.nil?
1694
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1695
+ command.query['userIp'] = user_ip unless user_ip.nil?
1696
+ execute_or_queue_command(command, &block)
1697
+ end
1698
+
1699
+ protected
1700
+
1701
+ def apply_command_defaults(command)
1702
+ command.query['key'] = key unless key.nil?
1703
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1704
+ command.query['userIp'] = user_ip unless user_ip.nil?
1705
+ end
1706
+ end
1707
+ end
1708
+ end
1709
+ end