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,38 @@
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/sqladmin_v1beta4/service.rb'
16
+ require 'google/apis/sqladmin_v1beta4/classes.rb'
17
+ require 'google/apis/sqladmin_v1beta4/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Cloud SQL Administration API
22
+ #
23
+ # Creates and configures Cloud SQL instances, which provide fully-managed MySQL
24
+ # databases.
25
+ #
26
+ # @see https://cloud.google.com/sql/docs/reference/latest
27
+ module SqladminV1beta4
28
+ VERSION = 'V1beta4'
29
+ REVISION = '20170111'
30
+
31
+ # View and manage your data across Google Cloud Platform services
32
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
33
+
34
+ # Manage your Google SQL Service instances
35
+ AUTH_SQLSERVICE_ADMIN = 'https://www.googleapis.com/auth/sqlservice.admin'
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,2142 @@
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 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module SqladminV1beta4
24
+
25
+ # An entry for an Access Control list.
26
+ class AclEntry
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The time when this access control entry expires in RFC 3339 format, for
30
+ # example 2012-11-15T16:19:00.094Z.
31
+ # Corresponds to the JSON property `expirationTime`
32
+ # @return [DateTime]
33
+ attr_accessor :expiration_time
34
+
35
+ # This is always sql#aclEntry.
36
+ # Corresponds to the JSON property `kind`
37
+ # @return [String]
38
+ attr_accessor :kind
39
+
40
+ # An optional label to identify this entry.
41
+ # Corresponds to the JSON property `name`
42
+ # @return [String]
43
+ attr_accessor :name
44
+
45
+ # The whitelisted value for the access control list.
46
+ # Corresponds to the JSON property `value`
47
+ # @return [String]
48
+ attr_accessor :value
49
+
50
+ def initialize(**args)
51
+ update!(**args)
52
+ end
53
+
54
+ # Update properties of this object
55
+ def update!(**args)
56
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
57
+ @kind = args[:kind] if args.key?(:kind)
58
+ @name = args[:name] if args.key?(:name)
59
+ @value = args[:value] if args.key?(:value)
60
+ end
61
+ end
62
+
63
+ # Database instance backup configuration.
64
+ class BackupConfiguration
65
+ include Google::Apis::Core::Hashable
66
+
67
+ # Whether binary log is enabled. If backup configuration is disabled, binary log
68
+ # must be disabled as well.
69
+ # Corresponds to the JSON property `binaryLogEnabled`
70
+ # @return [Boolean]
71
+ attr_accessor :binary_log_enabled
72
+ alias_method :binary_log_enabled?, :binary_log_enabled
73
+
74
+ # Whether this configuration is enabled.
75
+ # Corresponds to the JSON property `enabled`
76
+ # @return [Boolean]
77
+ attr_accessor :enabled
78
+ alias_method :enabled?, :enabled
79
+
80
+ # This is always sql#backupConfiguration.
81
+ # Corresponds to the JSON property `kind`
82
+ # @return [String]
83
+ attr_accessor :kind
84
+
85
+ # Start time for the daily backup configuration in UTC timezone in the 24 hour
86
+ # format - HH:MM.
87
+ # Corresponds to the JSON property `startTime`
88
+ # @return [String]
89
+ attr_accessor :start_time
90
+
91
+ def initialize(**args)
92
+ update!(**args)
93
+ end
94
+
95
+ # Update properties of this object
96
+ def update!(**args)
97
+ @binary_log_enabled = args[:binary_log_enabled] if args.key?(:binary_log_enabled)
98
+ @enabled = args[:enabled] if args.key?(:enabled)
99
+ @kind = args[:kind] if args.key?(:kind)
100
+ @start_time = args[:start_time] if args.key?(:start_time)
101
+ end
102
+ end
103
+
104
+ # A database instance backup run resource.
105
+ class BackupRun
106
+ include Google::Apis::Core::Hashable
107
+
108
+ # The description of this run, only applicable to on-demand backups.
109
+ # Corresponds to the JSON property `description`
110
+ # @return [String]
111
+ attr_accessor :description
112
+
113
+ # The time the backup operation completed in UTC timezone in RFC 3339 format,
114
+ # for example 2012-11-15T16:19:00.094Z.
115
+ # Corresponds to the JSON property `endTime`
116
+ # @return [DateTime]
117
+ attr_accessor :end_time
118
+
119
+ # The time the run was enqueued in UTC timezone in RFC 3339 format, for example
120
+ # 2012-11-15T16:19:00.094Z.
121
+ # Corresponds to the JSON property `enqueuedTime`
122
+ # @return [DateTime]
123
+ attr_accessor :enqueued_time
124
+
125
+ # Database instance operation error.
126
+ # Corresponds to the JSON property `error`
127
+ # @return [Google::Apis::SqladminV1beta4::OperationError]
128
+ attr_accessor :error
129
+
130
+ # A unique identifier for this backup run. Note that this is unique only within
131
+ # the scope of a particular Cloud SQL instance.
132
+ # Corresponds to the JSON property `id`
133
+ # @return [String]
134
+ attr_accessor :id
135
+
136
+ # Name of the database instance.
137
+ # Corresponds to the JSON property `instance`
138
+ # @return [String]
139
+ attr_accessor :instance
140
+
141
+ # This is always sql#backupRun.
142
+ # Corresponds to the JSON property `kind`
143
+ # @return [String]
144
+ attr_accessor :kind
145
+
146
+ # The URI of this resource.
147
+ # Corresponds to the JSON property `selfLink`
148
+ # @return [String]
149
+ attr_accessor :self_link
150
+
151
+ # The time the backup operation actually started in UTC timezone in RFC 3339
152
+ # format, for example 2012-11-15T16:19:00.094Z.
153
+ # Corresponds to the JSON property `startTime`
154
+ # @return [DateTime]
155
+ attr_accessor :start_time
156
+
157
+ # The status of this run.
158
+ # Corresponds to the JSON property `status`
159
+ # @return [String]
160
+ attr_accessor :status
161
+
162
+ # The type of this run; can be either "AUTOMATED" or "ON_DEMAND".
163
+ # Corresponds to the JSON property `type`
164
+ # @return [String]
165
+ attr_accessor :type
166
+
167
+ # The start time of the backup window during which this the backup was attempted
168
+ # in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
169
+ # Corresponds to the JSON property `windowStartTime`
170
+ # @return [DateTime]
171
+ attr_accessor :window_start_time
172
+
173
+ def initialize(**args)
174
+ update!(**args)
175
+ end
176
+
177
+ # Update properties of this object
178
+ def update!(**args)
179
+ @description = args[:description] if args.key?(:description)
180
+ @end_time = args[:end_time] if args.key?(:end_time)
181
+ @enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time)
182
+ @error = args[:error] if args.key?(:error)
183
+ @id = args[:id] if args.key?(:id)
184
+ @instance = args[:instance] if args.key?(:instance)
185
+ @kind = args[:kind] if args.key?(:kind)
186
+ @self_link = args[:self_link] if args.key?(:self_link)
187
+ @start_time = args[:start_time] if args.key?(:start_time)
188
+ @status = args[:status] if args.key?(:status)
189
+ @type = args[:type] if args.key?(:type)
190
+ @window_start_time = args[:window_start_time] if args.key?(:window_start_time)
191
+ end
192
+ end
193
+
194
+ # Backup run list results.
195
+ class ListBackupRunsResponse
196
+ include Google::Apis::Core::Hashable
197
+
198
+ # A list of backup runs in reverse chronological order of the enqueued time.
199
+ # Corresponds to the JSON property `items`
200
+ # @return [Array<Google::Apis::SqladminV1beta4::BackupRun>]
201
+ attr_accessor :items
202
+
203
+ # This is always sql#backupRunsList.
204
+ # Corresponds to the JSON property `kind`
205
+ # @return [String]
206
+ attr_accessor :kind
207
+
208
+ # The continuation token, used to page through large result sets. Provide this
209
+ # value in a subsequent request to return the next page of results.
210
+ # Corresponds to the JSON property `nextPageToken`
211
+ # @return [String]
212
+ attr_accessor :next_page_token
213
+
214
+ def initialize(**args)
215
+ update!(**args)
216
+ end
217
+
218
+ # Update properties of this object
219
+ def update!(**args)
220
+ @items = args[:items] if args.key?(:items)
221
+ @kind = args[:kind] if args.key?(:kind)
222
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
223
+ end
224
+ end
225
+
226
+ # Binary log coordinates.
227
+ class BinLogCoordinates
228
+ include Google::Apis::Core::Hashable
229
+
230
+ # Name of the binary log file for a Cloud SQL instance.
231
+ # Corresponds to the JSON property `binLogFileName`
232
+ # @return [String]
233
+ attr_accessor :bin_log_file_name
234
+
235
+ # Position (offset) within the binary log file.
236
+ # Corresponds to the JSON property `binLogPosition`
237
+ # @return [String]
238
+ attr_accessor :bin_log_position
239
+
240
+ # This is always sql#binLogCoordinates.
241
+ # Corresponds to the JSON property `kind`
242
+ # @return [String]
243
+ attr_accessor :kind
244
+
245
+ def initialize(**args)
246
+ update!(**args)
247
+ end
248
+
249
+ # Update properties of this object
250
+ def update!(**args)
251
+ @bin_log_file_name = args[:bin_log_file_name] if args.key?(:bin_log_file_name)
252
+ @bin_log_position = args[:bin_log_position] if args.key?(:bin_log_position)
253
+ @kind = args[:kind] if args.key?(:kind)
254
+ end
255
+ end
256
+
257
+ # Database instance clone context.
258
+ class CloneContext
259
+ include Google::Apis::Core::Hashable
260
+
261
+ # Binary log coordinates.
262
+ # Corresponds to the JSON property `binLogCoordinates`
263
+ # @return [Google::Apis::SqladminV1beta4::BinLogCoordinates]
264
+ attr_accessor :bin_log_coordinates
265
+
266
+ # Name of the Cloud SQL instance to be created as a clone.
267
+ # Corresponds to the JSON property `destinationInstanceName`
268
+ # @return [String]
269
+ attr_accessor :destination_instance_name
270
+
271
+ # This is always sql#cloneContext.
272
+ # Corresponds to the JSON property `kind`
273
+ # @return [String]
274
+ attr_accessor :kind
275
+
276
+ def initialize(**args)
277
+ update!(**args)
278
+ end
279
+
280
+ # Update properties of this object
281
+ def update!(**args)
282
+ @bin_log_coordinates = args[:bin_log_coordinates] if args.key?(:bin_log_coordinates)
283
+ @destination_instance_name = args[:destination_instance_name] if args.key?(:destination_instance_name)
284
+ @kind = args[:kind] if args.key?(:kind)
285
+ end
286
+ end
287
+
288
+ # A database resource inside a Cloud SQL instance.
289
+ class Database
290
+ include Google::Apis::Core::Hashable
291
+
292
+ # The MySQL charset value.
293
+ # Corresponds to the JSON property `charset`
294
+ # @return [String]
295
+ attr_accessor :charset
296
+
297
+ # The MySQL collation value.
298
+ # Corresponds to the JSON property `collation`
299
+ # @return [String]
300
+ attr_accessor :collation
301
+
302
+ # HTTP 1.1 Entity tag for the resource.
303
+ # Corresponds to the JSON property `etag`
304
+ # @return [String]
305
+ attr_accessor :etag
306
+
307
+ # The name of the Cloud SQL instance. This does not include the project ID.
308
+ # Corresponds to the JSON property `instance`
309
+ # @return [String]
310
+ attr_accessor :instance
311
+
312
+ # This is always sql#database.
313
+ # Corresponds to the JSON property `kind`
314
+ # @return [String]
315
+ attr_accessor :kind
316
+
317
+ # The name of the database in the Cloud SQL instance. This does not include the
318
+ # project ID or instance name.
319
+ # Corresponds to the JSON property `name`
320
+ # @return [String]
321
+ attr_accessor :name
322
+
323
+ # The project ID of the project containing the Cloud SQL database. The Google
324
+ # apps domain is prefixed if applicable.
325
+ # Corresponds to the JSON property `project`
326
+ # @return [String]
327
+ attr_accessor :project
328
+
329
+ # The URI of this resource.
330
+ # Corresponds to the JSON property `selfLink`
331
+ # @return [String]
332
+ attr_accessor :self_link
333
+
334
+ def initialize(**args)
335
+ update!(**args)
336
+ end
337
+
338
+ # Update properties of this object
339
+ def update!(**args)
340
+ @charset = args[:charset] if args.key?(:charset)
341
+ @collation = args[:collation] if args.key?(:collation)
342
+ @etag = args[:etag] if args.key?(:etag)
343
+ @instance = args[:instance] if args.key?(:instance)
344
+ @kind = args[:kind] if args.key?(:kind)
345
+ @name = args[:name] if args.key?(:name)
346
+ @project = args[:project] if args.key?(:project)
347
+ @self_link = args[:self_link] if args.key?(:self_link)
348
+ end
349
+ end
350
+
351
+ # MySQL flags for Cloud SQL instances.
352
+ class DatabaseFlags
353
+ include Google::Apis::Core::Hashable
354
+
355
+ # The name of the flag. These flags are passed at instance startup, so include
356
+ # both MySQL server options and MySQL system variables. Flags should be
357
+ # specified with underscores, not hyphens. For more information, see Configuring
358
+ # MySQL Flags in the Google Cloud SQL documentation, as well as the official
359
+ # MySQL documentation for server options and system variables.
360
+ # Corresponds to the JSON property `name`
361
+ # @return [String]
362
+ attr_accessor :name
363
+
364
+ # The value of the flag. Booleans should be set to on for true and off for false.
365
+ # This field must be omitted if the flag doesn't take a value.
366
+ # Corresponds to the JSON property `value`
367
+ # @return [String]
368
+ attr_accessor :value
369
+
370
+ def initialize(**args)
371
+ update!(**args)
372
+ end
373
+
374
+ # Update properties of this object
375
+ def update!(**args)
376
+ @name = args[:name] if args.key?(:name)
377
+ @value = args[:value] if args.key?(:value)
378
+ end
379
+ end
380
+
381
+ # A Cloud SQL instance resource.
382
+ class DatabaseInstance
383
+ include Google::Apis::Core::Hashable
384
+
385
+ # FIRST_GEN: Basic Cloud SQL instance that runs in a Google-managed container.
386
+ # SECOND_GEN: A newer Cloud SQL backend that runs in a Compute Engine VM.
387
+ # EXTERNAL: A MySQL server that is not managed by Google.
388
+ # Corresponds to the JSON property `backendType`
389
+ # @return [String]
390
+ attr_accessor :backend_type
391
+
392
+ # Connection name of the Cloud SQL instance used in connection strings.
393
+ # Corresponds to the JSON property `connectionName`
394
+ # @return [String]
395
+ attr_accessor :connection_name
396
+
397
+ # The current disk usage of the instance in bytes. This property has been
398
+ # deprecated. Users should use the "cloudsql.googleapis.com/database/disk/
399
+ # bytes_used" metric in Cloud Monitoring API instead. Please see https://groups.
400
+ # google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ for
401
+ # details.
402
+ # Corresponds to the JSON property `currentDiskSize`
403
+ # @return [String]
404
+ attr_accessor :current_disk_size
405
+
406
+ # The database engine type and version. The databaseVersion can not be changed
407
+ # after instance creation. Can be MYSQL_5_5, MYSQL_5_6 or MYSQL_5_7. Defaults to
408
+ # MYSQL_5_6. MYSQL_5_7 is applicable only to Second Generation instances.
409
+ # Corresponds to the JSON property `databaseVersion`
410
+ # @return [String]
411
+ attr_accessor :database_version
412
+
413
+ # HTTP 1.1 Entity tag for the resource.
414
+ # Corresponds to the JSON property `etag`
415
+ # @return [String]
416
+ attr_accessor :etag
417
+
418
+ # The name and status of the failover replica. This property is applicable only
419
+ # to Second Generation instances.
420
+ # Corresponds to the JSON property `failoverReplica`
421
+ # @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica]
422
+ attr_accessor :failover_replica
423
+
424
+ # The instance type. This can be one of the following.
425
+ # CLOUD_SQL_INSTANCE: A Cloud SQL instance that is not replicating from a master.
426
+ # ON_PREMISES_INSTANCE: An instance running on the customer's premises.
427
+ # READ_REPLICA_INSTANCE: A Cloud SQL instance configured as a read-replica.
428
+ # Corresponds to the JSON property `instanceType`
429
+ # @return [String]
430
+ attr_accessor :instance_type
431
+
432
+ # The assigned IP addresses for the instance.
433
+ # Corresponds to the JSON property `ipAddresses`
434
+ # @return [Array<Google::Apis::SqladminV1beta4::IpMapping>]
435
+ attr_accessor :ip_addresses
436
+
437
+ # The IPv6 address assigned to the instance. This property is applicable only to
438
+ # First Generation instances.
439
+ # Corresponds to the JSON property `ipv6Address`
440
+ # @return [String]
441
+ attr_accessor :ipv6_address
442
+
443
+ # This is always sql#instance.
444
+ # Corresponds to the JSON property `kind`
445
+ # @return [String]
446
+ attr_accessor :kind
447
+
448
+ # The name of the instance which will act as master in the replication setup.
449
+ # Corresponds to the JSON property `masterInstanceName`
450
+ # @return [String]
451
+ attr_accessor :master_instance_name
452
+
453
+ # The maximum disk size of the instance in bytes.
454
+ # Corresponds to the JSON property `maxDiskSize`
455
+ # @return [String]
456
+ attr_accessor :max_disk_size
457
+
458
+ # Name of the Cloud SQL instance. This does not include the project ID.
459
+ # Corresponds to the JSON property `name`
460
+ # @return [String]
461
+ attr_accessor :name
462
+
463
+ # On-premises instance configuration.
464
+ # Corresponds to the JSON property `onPremisesConfiguration`
465
+ # @return [Google::Apis::SqladminV1beta4::OnPremisesConfiguration]
466
+ attr_accessor :on_premises_configuration
467
+
468
+ # The project ID of the project containing the Cloud SQL instance. The Google
469
+ # apps domain is prefixed if applicable.
470
+ # Corresponds to the JSON property `project`
471
+ # @return [String]
472
+ attr_accessor :project
473
+
474
+ # The geographical region. Can be us-central (FIRST_GEN instances only), us-
475
+ # central1 (SECOND_GEN instances only), asia-east1 or europe-west1. Defaults to
476
+ # us-central or us-central1 depending on the instance type (First Generation or
477
+ # Second Generation). The region can not be changed after instance creation.
478
+ # Corresponds to the JSON property `region`
479
+ # @return [String]
480
+ attr_accessor :region
481
+
482
+ # Read-replica configuration for connecting to the master.
483
+ # Corresponds to the JSON property `replicaConfiguration`
484
+ # @return [Google::Apis::SqladminV1beta4::ReplicaConfiguration]
485
+ attr_accessor :replica_configuration
486
+
487
+ # The replicas of the instance.
488
+ # Corresponds to the JSON property `replicaNames`
489
+ # @return [Array<String>]
490
+ attr_accessor :replica_names
491
+
492
+ # The URI of this resource.
493
+ # Corresponds to the JSON property `selfLink`
494
+ # @return [String]
495
+ attr_accessor :self_link
496
+
497
+ # SslCerts Resource
498
+ # Corresponds to the JSON property `serverCaCert`
499
+ # @return [Google::Apis::SqladminV1beta4::SslCert]
500
+ attr_accessor :server_ca_cert
501
+
502
+ # The service account email address assigned to the instance. This property is
503
+ # applicable only to Second Generation instances.
504
+ # Corresponds to the JSON property `serviceAccountEmailAddress`
505
+ # @return [String]
506
+ attr_accessor :service_account_email_address
507
+
508
+ # Database instance settings.
509
+ # Corresponds to the JSON property `settings`
510
+ # @return [Google::Apis::SqladminV1beta4::Settings]
511
+ attr_accessor :settings
512
+
513
+ # The current serving state of the Cloud SQL instance. This can be one of the
514
+ # following.
515
+ # RUNNABLE: The instance is running, or is ready to run when accessed.
516
+ # SUSPENDED: The instance is not available, for example due to problems with
517
+ # billing.
518
+ # PENDING_CREATE: The instance is being created.
519
+ # MAINTENANCE: The instance is down for maintenance.
520
+ # FAILED: The instance creation failed.
521
+ # UNKNOWN_STATE: The state of the instance is unknown.
522
+ # Corresponds to the JSON property `state`
523
+ # @return [String]
524
+ attr_accessor :state
525
+
526
+ # If the instance state is SUSPENDED, the reason for the suspension.
527
+ # Corresponds to the JSON property `suspensionReason`
528
+ # @return [Array<String>]
529
+ attr_accessor :suspension_reason
530
+
531
+ def initialize(**args)
532
+ update!(**args)
533
+ end
534
+
535
+ # Update properties of this object
536
+ def update!(**args)
537
+ @backend_type = args[:backend_type] if args.key?(:backend_type)
538
+ @connection_name = args[:connection_name] if args.key?(:connection_name)
539
+ @current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
540
+ @database_version = args[:database_version] if args.key?(:database_version)
541
+ @etag = args[:etag] if args.key?(:etag)
542
+ @failover_replica = args[:failover_replica] if args.key?(:failover_replica)
543
+ @instance_type = args[:instance_type] if args.key?(:instance_type)
544
+ @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
545
+ @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address)
546
+ @kind = args[:kind] if args.key?(:kind)
547
+ @master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
548
+ @max_disk_size = args[:max_disk_size] if args.key?(:max_disk_size)
549
+ @name = args[:name] if args.key?(:name)
550
+ @on_premises_configuration = args[:on_premises_configuration] if args.key?(:on_premises_configuration)
551
+ @project = args[:project] if args.key?(:project)
552
+ @region = args[:region] if args.key?(:region)
553
+ @replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
554
+ @replica_names = args[:replica_names] if args.key?(:replica_names)
555
+ @self_link = args[:self_link] if args.key?(:self_link)
556
+ @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
557
+ @service_account_email_address = args[:service_account_email_address] if args.key?(:service_account_email_address)
558
+ @settings = args[:settings] if args.key?(:settings)
559
+ @state = args[:state] if args.key?(:state)
560
+ @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
561
+ end
562
+
563
+ # The name and status of the failover replica. This property is applicable only
564
+ # to Second Generation instances.
565
+ class FailoverReplica
566
+ include Google::Apis::Core::Hashable
567
+
568
+ # The availability status of the failover replica. A false status indicates that
569
+ # the failover replica is out of sync. The master can only failover to the
570
+ # falover replica when the status is true.
571
+ # Corresponds to the JSON property `available`
572
+ # @return [Boolean]
573
+ attr_accessor :available
574
+ alias_method :available?, :available
575
+
576
+ # The name of the failover replica. If specified at instance creation, a
577
+ # failover replica is created for the instance. The name doesn't include the
578
+ # project ID. This property is applicable only to Second Generation instances.
579
+ # Corresponds to the JSON property `name`
580
+ # @return [String]
581
+ attr_accessor :name
582
+
583
+ def initialize(**args)
584
+ update!(**args)
585
+ end
586
+
587
+ # Update properties of this object
588
+ def update!(**args)
589
+ @available = args[:available] if args.key?(:available)
590
+ @name = args[:name] if args.key?(:name)
591
+ end
592
+ end
593
+ end
594
+
595
+ # Database list response.
596
+ class ListDatabasesResponse
597
+ include Google::Apis::Core::Hashable
598
+
599
+ # List of database resources in the instance.
600
+ # Corresponds to the JSON property `items`
601
+ # @return [Array<Google::Apis::SqladminV1beta4::Database>]
602
+ attr_accessor :items
603
+
604
+ # This is always sql#databasesList.
605
+ # Corresponds to the JSON property `kind`
606
+ # @return [String]
607
+ attr_accessor :kind
608
+
609
+ def initialize(**args)
610
+ update!(**args)
611
+ end
612
+
613
+ # Update properties of this object
614
+ def update!(**args)
615
+ @items = args[:items] if args.key?(:items)
616
+ @kind = args[:kind] if args.key?(:kind)
617
+ end
618
+ end
619
+
620
+ # Database instance export context.
621
+ class ExportContext
622
+ include Google::Apis::Core::Hashable
623
+
624
+ # Options for exporting data as CSV.
625
+ # Corresponds to the JSON property `csvExportOptions`
626
+ # @return [Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions]
627
+ attr_accessor :csv_export_options
628
+
629
+ # Databases (for example, guestbook) from which the export is made. If fileType
630
+ # is SQL and no database is specified, all databases are exported. If fileType
631
+ # is CSV, you can optionally specify at most one database to export. If
632
+ # csvExportOptions.selectQuery also specifies the database, this field will be
633
+ # ignored.
634
+ # Corresponds to the JSON property `databases`
635
+ # @return [Array<String>]
636
+ attr_accessor :databases
637
+
638
+ # The file type for the specified uri.
639
+ # SQL: The file contains SQL statements.
640
+ # CSV: The file contains CSV data.
641
+ # Corresponds to the JSON property `fileType`
642
+ # @return [String]
643
+ attr_accessor :file_type
644
+
645
+ # This is always sql#exportContext.
646
+ # Corresponds to the JSON property `kind`
647
+ # @return [String]
648
+ attr_accessor :kind
649
+
650
+ # Options for exporting data as SQL statements.
651
+ # Corresponds to the JSON property `sqlExportOptions`
652
+ # @return [Google::Apis::SqladminV1beta4::ExportContext::SqlExportOptions]
653
+ attr_accessor :sql_export_options
654
+
655
+ # The path to the file in Google Cloud Storage where the export will be stored.
656
+ # The URI is in the form gs://bucketName/fileName. If the file already exists,
657
+ # the operation fails. If fileType is SQL and the filename ends with .gz, the
658
+ # contents are compressed.
659
+ # Corresponds to the JSON property `uri`
660
+ # @return [String]
661
+ attr_accessor :uri
662
+
663
+ def initialize(**args)
664
+ update!(**args)
665
+ end
666
+
667
+ # Update properties of this object
668
+ def update!(**args)
669
+ @csv_export_options = args[:csv_export_options] if args.key?(:csv_export_options)
670
+ @databases = args[:databases] if args.key?(:databases)
671
+ @file_type = args[:file_type] if args.key?(:file_type)
672
+ @kind = args[:kind] if args.key?(:kind)
673
+ @sql_export_options = args[:sql_export_options] if args.key?(:sql_export_options)
674
+ @uri = args[:uri] if args.key?(:uri)
675
+ end
676
+
677
+ # Options for exporting data as CSV.
678
+ class CsvExportOptions
679
+ include Google::Apis::Core::Hashable
680
+
681
+ # The select query used to extract the data.
682
+ # Corresponds to the JSON property `selectQuery`
683
+ # @return [String]
684
+ attr_accessor :select_query
685
+
686
+ def initialize(**args)
687
+ update!(**args)
688
+ end
689
+
690
+ # Update properties of this object
691
+ def update!(**args)
692
+ @select_query = args[:select_query] if args.key?(:select_query)
693
+ end
694
+ end
695
+
696
+ # Options for exporting data as SQL statements.
697
+ class SqlExportOptions
698
+ include Google::Apis::Core::Hashable
699
+
700
+ # Export only schemas.
701
+ # Corresponds to the JSON property `schemaOnly`
702
+ # @return [Boolean]
703
+ attr_accessor :schema_only
704
+ alias_method :schema_only?, :schema_only
705
+
706
+ # Tables to export, or that were exported, from the specified database. If you
707
+ # specify tables, specify one and only one database.
708
+ # Corresponds to the JSON property `tables`
709
+ # @return [Array<String>]
710
+ attr_accessor :tables
711
+
712
+ def initialize(**args)
713
+ update!(**args)
714
+ end
715
+
716
+ # Update properties of this object
717
+ def update!(**args)
718
+ @schema_only = args[:schema_only] if args.key?(:schema_only)
719
+ @tables = args[:tables] if args.key?(:tables)
720
+ end
721
+ end
722
+ end
723
+
724
+ # Database instance failover context.
725
+ class FailoverContext
726
+ include Google::Apis::Core::Hashable
727
+
728
+ # This is always sql#failoverContext.
729
+ # Corresponds to the JSON property `kind`
730
+ # @return [String]
731
+ attr_accessor :kind
732
+
733
+ # The current settings version of this instance. Request will be rejected if
734
+ # this version doesn't match the current settings version.
735
+ # Corresponds to the JSON property `settingsVersion`
736
+ # @return [String]
737
+ attr_accessor :settings_version
738
+
739
+ def initialize(**args)
740
+ update!(**args)
741
+ end
742
+
743
+ # Update properties of this object
744
+ def update!(**args)
745
+ @kind = args[:kind] if args.key?(:kind)
746
+ @settings_version = args[:settings_version] if args.key?(:settings_version)
747
+ end
748
+ end
749
+
750
+ # A Google Cloud SQL service flag resource.
751
+ class Flag
752
+ include Google::Apis::Core::Hashable
753
+
754
+ # For STRING flags, a list of strings that the value can be set to.
755
+ # Corresponds to the JSON property `allowedStringValues`
756
+ # @return [Array<String>]
757
+ attr_accessor :allowed_string_values
758
+
759
+ # The database version this flag applies to. Can be MYSQL_5_5, MYSQL_5_6, or
760
+ # MYSQL_5_7. MYSQL_5_7 is applicable only to Second Generation instances.
761
+ # Corresponds to the JSON property `appliesTo`
762
+ # @return [Array<String>]
763
+ attr_accessor :applies_to
764
+
765
+ # This is always sql#flag.
766
+ # Corresponds to the JSON property `kind`
767
+ # @return [String]
768
+ attr_accessor :kind
769
+
770
+ # For INTEGER flags, the maximum allowed value.
771
+ # Corresponds to the JSON property `maxValue`
772
+ # @return [String]
773
+ attr_accessor :max_value
774
+
775
+ # For INTEGER flags, the minimum allowed value.
776
+ # Corresponds to the JSON property `minValue`
777
+ # @return [String]
778
+ attr_accessor :min_value
779
+
780
+ # This is the name of the flag. Flag names always use underscores, not hyphens,
781
+ # e.g. max_allowed_packet
782
+ # Corresponds to the JSON property `name`
783
+ # @return [String]
784
+ attr_accessor :name
785
+
786
+ # Indicates whether changing this flag will trigger a database restart. Only
787
+ # applicable to Second Generation instances.
788
+ # Corresponds to the JSON property `requiresRestart`
789
+ # @return [Boolean]
790
+ attr_accessor :requires_restart
791
+ alias_method :requires_restart?, :requires_restart
792
+
793
+ # The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or
794
+ # NONE. NONE is used for flags which do not take a value, such as
795
+ # skip_grant_tables.
796
+ # Corresponds to the JSON property `type`
797
+ # @return [String]
798
+ attr_accessor :type
799
+
800
+ def initialize(**args)
801
+ update!(**args)
802
+ end
803
+
804
+ # Update properties of this object
805
+ def update!(**args)
806
+ @allowed_string_values = args[:allowed_string_values] if args.key?(:allowed_string_values)
807
+ @applies_to = args[:applies_to] if args.key?(:applies_to)
808
+ @kind = args[:kind] if args.key?(:kind)
809
+ @max_value = args[:max_value] if args.key?(:max_value)
810
+ @min_value = args[:min_value] if args.key?(:min_value)
811
+ @name = args[:name] if args.key?(:name)
812
+ @requires_restart = args[:requires_restart] if args.key?(:requires_restart)
813
+ @type = args[:type] if args.key?(:type)
814
+ end
815
+ end
816
+
817
+ # Flags list response.
818
+ class ListFlagsResponse
819
+ include Google::Apis::Core::Hashable
820
+
821
+ # List of flags.
822
+ # Corresponds to the JSON property `items`
823
+ # @return [Array<Google::Apis::SqladminV1beta4::Flag>]
824
+ attr_accessor :items
825
+
826
+ # This is always sql#flagsList.
827
+ # Corresponds to the JSON property `kind`
828
+ # @return [String]
829
+ attr_accessor :kind
830
+
831
+ def initialize(**args)
832
+ update!(**args)
833
+ end
834
+
835
+ # Update properties of this object
836
+ def update!(**args)
837
+ @items = args[:items] if args.key?(:items)
838
+ @kind = args[:kind] if args.key?(:kind)
839
+ end
840
+ end
841
+
842
+ # Database instance import context.
843
+ class ImportContext
844
+ include Google::Apis::Core::Hashable
845
+
846
+ # Options for importing data as CSV.
847
+ # Corresponds to the JSON property `csvImportOptions`
848
+ # @return [Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions]
849
+ attr_accessor :csv_import_options
850
+
851
+ # The database (for example, guestbook) to which the import is made. If fileType
852
+ # is SQL and no database is specified, it is assumed that the database is
853
+ # specified in the file to be imported. If fileType is CSV, it must be specified.
854
+ # Corresponds to the JSON property `database`
855
+ # @return [String]
856
+ attr_accessor :database
857
+
858
+ # The file type for the specified uri.
859
+ # SQL: The file contains SQL statements.
860
+ # CSV: The file contains CSV data.
861
+ # Corresponds to the JSON property `fileType`
862
+ # @return [String]
863
+ attr_accessor :file_type
864
+
865
+ # This is always sql#importContext.
866
+ # Corresponds to the JSON property `kind`
867
+ # @return [String]
868
+ attr_accessor :kind
869
+
870
+ # A path to the file in Google Cloud Storage from which the import is made. The
871
+ # URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are
872
+ # supported when fileType is SQL.
873
+ # Corresponds to the JSON property `uri`
874
+ # @return [String]
875
+ attr_accessor :uri
876
+
877
+ def initialize(**args)
878
+ update!(**args)
879
+ end
880
+
881
+ # Update properties of this object
882
+ def update!(**args)
883
+ @csv_import_options = args[:csv_import_options] if args.key?(:csv_import_options)
884
+ @database = args[:database] if args.key?(:database)
885
+ @file_type = args[:file_type] if args.key?(:file_type)
886
+ @kind = args[:kind] if args.key?(:kind)
887
+ @uri = args[:uri] if args.key?(:uri)
888
+ end
889
+
890
+ # Options for importing data as CSV.
891
+ class CsvImportOptions
892
+ include Google::Apis::Core::Hashable
893
+
894
+ # The columns to which CSV data is imported. If not specified, all columns of
895
+ # the database table are loaded with CSV data.
896
+ # Corresponds to the JSON property `columns`
897
+ # @return [Array<String>]
898
+ attr_accessor :columns
899
+
900
+ # The table to which CSV data is imported.
901
+ # Corresponds to the JSON property `table`
902
+ # @return [String]
903
+ attr_accessor :table
904
+
905
+ def initialize(**args)
906
+ update!(**args)
907
+ end
908
+
909
+ # Update properties of this object
910
+ def update!(**args)
911
+ @columns = args[:columns] if args.key?(:columns)
912
+ @table = args[:table] if args.key?(:table)
913
+ end
914
+ end
915
+ end
916
+
917
+ # Database instance clone request.
918
+ class CloneInstancesRequest
919
+ include Google::Apis::Core::Hashable
920
+
921
+ # Database instance clone context.
922
+ # Corresponds to the JSON property `cloneContext`
923
+ # @return [Google::Apis::SqladminV1beta4::CloneContext]
924
+ attr_accessor :clone_context
925
+
926
+ def initialize(**args)
927
+ update!(**args)
928
+ end
929
+
930
+ # Update properties of this object
931
+ def update!(**args)
932
+ @clone_context = args[:clone_context] if args.key?(:clone_context)
933
+ end
934
+ end
935
+
936
+ # Database instance export request.
937
+ class ExportInstancesRequest
938
+ include Google::Apis::Core::Hashable
939
+
940
+ # Database instance export context.
941
+ # Corresponds to the JSON property `exportContext`
942
+ # @return [Google::Apis::SqladminV1beta4::ExportContext]
943
+ attr_accessor :export_context
944
+
945
+ def initialize(**args)
946
+ update!(**args)
947
+ end
948
+
949
+ # Update properties of this object
950
+ def update!(**args)
951
+ @export_context = args[:export_context] if args.key?(:export_context)
952
+ end
953
+ end
954
+
955
+ # Instance failover request.
956
+ class InstancesFailoverRequest
957
+ include Google::Apis::Core::Hashable
958
+
959
+ # Database instance failover context.
960
+ # Corresponds to the JSON property `failoverContext`
961
+ # @return [Google::Apis::SqladminV1beta4::FailoverContext]
962
+ attr_accessor :failover_context
963
+
964
+ def initialize(**args)
965
+ update!(**args)
966
+ end
967
+
968
+ # Update properties of this object
969
+ def update!(**args)
970
+ @failover_context = args[:failover_context] if args.key?(:failover_context)
971
+ end
972
+ end
973
+
974
+ # Database instance import request.
975
+ class ImportInstancesRequest
976
+ include Google::Apis::Core::Hashable
977
+
978
+ # Database instance import context.
979
+ # Corresponds to the JSON property `importContext`
980
+ # @return [Google::Apis::SqladminV1beta4::ImportContext]
981
+ attr_accessor :import_context
982
+
983
+ def initialize(**args)
984
+ update!(**args)
985
+ end
986
+
987
+ # Update properties of this object
988
+ def update!(**args)
989
+ @import_context = args[:import_context] if args.key?(:import_context)
990
+ end
991
+ end
992
+
993
+ # Database instances list response.
994
+ class ListInstancesResponse
995
+ include Google::Apis::Core::Hashable
996
+
997
+ # List of database instance resources.
998
+ # Corresponds to the JSON property `items`
999
+ # @return [Array<Google::Apis::SqladminV1beta4::DatabaseInstance>]
1000
+ attr_accessor :items
1001
+
1002
+ # This is always sql#instancesList.
1003
+ # Corresponds to the JSON property `kind`
1004
+ # @return [String]
1005
+ attr_accessor :kind
1006
+
1007
+ # The continuation token, used to page through large result sets. Provide this
1008
+ # value in a subsequent request to return the next page of results.
1009
+ # Corresponds to the JSON property `nextPageToken`
1010
+ # @return [String]
1011
+ attr_accessor :next_page_token
1012
+
1013
+ def initialize(**args)
1014
+ update!(**args)
1015
+ end
1016
+
1017
+ # Update properties of this object
1018
+ def update!(**args)
1019
+ @items = args[:items] if args.key?(:items)
1020
+ @kind = args[:kind] if args.key?(:kind)
1021
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1022
+ end
1023
+ end
1024
+
1025
+ # Database instance restore backup request.
1026
+ class RestoreInstancesBackupRequest
1027
+ include Google::Apis::Core::Hashable
1028
+
1029
+ # Database instance restore from backup context.
1030
+ # Corresponds to the JSON property `restoreBackupContext`
1031
+ # @return [Google::Apis::SqladminV1beta4::RestoreBackupContext]
1032
+ attr_accessor :restore_backup_context
1033
+
1034
+ def initialize(**args)
1035
+ update!(**args)
1036
+ end
1037
+
1038
+ # Update properties of this object
1039
+ def update!(**args)
1040
+ @restore_backup_context = args[:restore_backup_context] if args.key?(:restore_backup_context)
1041
+ end
1042
+ end
1043
+
1044
+ # Instance truncate log request.
1045
+ class InstancesTruncateLogRequest
1046
+ include Google::Apis::Core::Hashable
1047
+
1048
+ # Database Instance truncate log context.
1049
+ # Corresponds to the JSON property `truncateLogContext`
1050
+ # @return [Google::Apis::SqladminV1beta4::TruncateLogContext]
1051
+ attr_accessor :truncate_log_context
1052
+
1053
+ def initialize(**args)
1054
+ update!(**args)
1055
+ end
1056
+
1057
+ # Update properties of this object
1058
+ def update!(**args)
1059
+ @truncate_log_context = args[:truncate_log_context] if args.key?(:truncate_log_context)
1060
+ end
1061
+ end
1062
+
1063
+ # IP Management configuration.
1064
+ class IpConfiguration
1065
+ include Google::Apis::Core::Hashable
1066
+
1067
+ # The list of external networks that are allowed to connect to the instance
1068
+ # using the IP. In CIDR notation, also known as 'slash' notation (e.g. 192.168.
1069
+ # 100.0/24).
1070
+ # Corresponds to the JSON property `authorizedNetworks`
1071
+ # @return [Array<Google::Apis::SqladminV1beta4::AclEntry>]
1072
+ attr_accessor :authorized_networks
1073
+
1074
+ # Whether the instance should be assigned an IP address or not.
1075
+ # Corresponds to the JSON property `ipv4Enabled`
1076
+ # @return [Boolean]
1077
+ attr_accessor :ipv4_enabled
1078
+ alias_method :ipv4_enabled?, :ipv4_enabled
1079
+
1080
+ # Whether the mysqld should default to 'REQUIRE X509' for users connecting over
1081
+ # IP.
1082
+ # Corresponds to the JSON property `requireSsl`
1083
+ # @return [Boolean]
1084
+ attr_accessor :require_ssl
1085
+ alias_method :require_ssl?, :require_ssl
1086
+
1087
+ def initialize(**args)
1088
+ update!(**args)
1089
+ end
1090
+
1091
+ # Update properties of this object
1092
+ def update!(**args)
1093
+ @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
1094
+ @ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
1095
+ @require_ssl = args[:require_ssl] if args.key?(:require_ssl)
1096
+ end
1097
+ end
1098
+
1099
+ # Database instance IP Mapping.
1100
+ class IpMapping
1101
+ include Google::Apis::Core::Hashable
1102
+
1103
+ # The IP address assigned.
1104
+ # Corresponds to the JSON property `ipAddress`
1105
+ # @return [String]
1106
+ attr_accessor :ip_address
1107
+
1108
+ # The due time for this IP to be retired in RFC 3339 format, for example 2012-11-
1109
+ # 15T16:19:00.094Z. This field is only available when the IP is scheduled to be
1110
+ # retired.
1111
+ # Corresponds to the JSON property `timeToRetire`
1112
+ # @return [DateTime]
1113
+ attr_accessor :time_to_retire
1114
+
1115
+ # The type of this IP address. A PRIMARY address is an address that can accept
1116
+ # incoming connections. An OUTGOING address is the source address of connections
1117
+ # originating from the instance, if supported.
1118
+ # Corresponds to the JSON property `type`
1119
+ # @return [String]
1120
+ attr_accessor :type
1121
+
1122
+ def initialize(**args)
1123
+ update!(**args)
1124
+ end
1125
+
1126
+ # Update properties of this object
1127
+ def update!(**args)
1128
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
1129
+ @time_to_retire = args[:time_to_retire] if args.key?(:time_to_retire)
1130
+ @type = args[:type] if args.key?(:type)
1131
+ end
1132
+ end
1133
+
1134
+ # Preferred location. This specifies where a Cloud SQL instance should
1135
+ # preferably be located, either in a specific Compute Engine zone, or co-located
1136
+ # with an App Engine application. Note that if the preferred location is not
1137
+ # available, the instance will be located as close as possible within the region.
1138
+ # Only one location may be specified.
1139
+ class LocationPreference
1140
+ include Google::Apis::Core::Hashable
1141
+
1142
+ # The AppEngine application to follow, it must be in the same region as the
1143
+ # Cloud SQL instance.
1144
+ # Corresponds to the JSON property `followGaeApplication`
1145
+ # @return [String]
1146
+ attr_accessor :follow_gae_application
1147
+
1148
+ # This is always sql#locationPreference.
1149
+ # Corresponds to the JSON property `kind`
1150
+ # @return [String]
1151
+ attr_accessor :kind
1152
+
1153
+ # The preferred Compute Engine zone (e.g. us-centra1-a, us-central1-b, etc.).
1154
+ # Corresponds to the JSON property `zone`
1155
+ # @return [String]
1156
+ attr_accessor :zone
1157
+
1158
+ def initialize(**args)
1159
+ update!(**args)
1160
+ end
1161
+
1162
+ # Update properties of this object
1163
+ def update!(**args)
1164
+ @follow_gae_application = args[:follow_gae_application] if args.key?(:follow_gae_application)
1165
+ @kind = args[:kind] if args.key?(:kind)
1166
+ @zone = args[:zone] if args.key?(:zone)
1167
+ end
1168
+ end
1169
+
1170
+ # Maintenance window. This specifies when a v2 Cloud SQL instance should
1171
+ # preferably be restarted for system maintenance puruposes.
1172
+ class MaintenanceWindow
1173
+ include Google::Apis::Core::Hashable
1174
+
1175
+ # day of week (1-7), starting on Monday.
1176
+ # Corresponds to the JSON property `day`
1177
+ # @return [Fixnum]
1178
+ attr_accessor :day
1179
+
1180
+ # hour of day - 0 to 23.
1181
+ # Corresponds to the JSON property `hour`
1182
+ # @return [Fixnum]
1183
+ attr_accessor :hour
1184
+
1185
+ # This is always sql#maintenanceWindow.
1186
+ # Corresponds to the JSON property `kind`
1187
+ # @return [String]
1188
+ attr_accessor :kind
1189
+
1190
+ #
1191
+ # Corresponds to the JSON property `updateTrack`
1192
+ # @return [String]
1193
+ attr_accessor :update_track
1194
+
1195
+ def initialize(**args)
1196
+ update!(**args)
1197
+ end
1198
+
1199
+ # Update properties of this object
1200
+ def update!(**args)
1201
+ @day = args[:day] if args.key?(:day)
1202
+ @hour = args[:hour] if args.key?(:hour)
1203
+ @kind = args[:kind] if args.key?(:kind)
1204
+ @update_track = args[:update_track] if args.key?(:update_track)
1205
+ end
1206
+ end
1207
+
1208
+ # Read-replica configuration specific to MySQL databases.
1209
+ class MySqlReplicaConfiguration
1210
+ include Google::Apis::Core::Hashable
1211
+
1212
+ # PEM representation of the trusted CA's x509 certificate.
1213
+ # Corresponds to the JSON property `caCertificate`
1214
+ # @return [String]
1215
+ attr_accessor :ca_certificate
1216
+
1217
+ # PEM representation of the slave's x509 certificate.
1218
+ # Corresponds to the JSON property `clientCertificate`
1219
+ # @return [String]
1220
+ attr_accessor :client_certificate
1221
+
1222
+ # PEM representation of the slave's private key. The corresponsing public key is
1223
+ # encoded in the client's certificate.
1224
+ # Corresponds to the JSON property `clientKey`
1225
+ # @return [String]
1226
+ attr_accessor :client_key
1227
+
1228
+ # Seconds to wait between connect retries. MySQL's default is 60 seconds.
1229
+ # Corresponds to the JSON property `connectRetryInterval`
1230
+ # @return [Fixnum]
1231
+ attr_accessor :connect_retry_interval
1232
+
1233
+ # Path to a SQL dump file in Google Cloud Storage from which the slave instance
1234
+ # is to be created. The URI is in the form gs://bucketName/fileName. Compressed
1235
+ # gzip files (.gz) are also supported. Dumps should have the binlog co-ordinates
1236
+ # from which replication should begin. This can be accomplished by setting --
1237
+ # master-data to 1 when using mysqldump.
1238
+ # Corresponds to the JSON property `dumpFilePath`
1239
+ # @return [String]
1240
+ attr_accessor :dump_file_path
1241
+
1242
+ # This is always sql#mysqlReplicaConfiguration.
1243
+ # Corresponds to the JSON property `kind`
1244
+ # @return [String]
1245
+ attr_accessor :kind
1246
+
1247
+ # Interval in milliseconds between replication heartbeats.
1248
+ # Corresponds to the JSON property `masterHeartbeatPeriod`
1249
+ # @return [String]
1250
+ attr_accessor :master_heartbeat_period
1251
+
1252
+ # The password for the replication connection.
1253
+ # Corresponds to the JSON property `password`
1254
+ # @return [String]
1255
+ attr_accessor :password
1256
+
1257
+ # A list of permissible ciphers to use for SSL encryption.
1258
+ # Corresponds to the JSON property `sslCipher`
1259
+ # @return [String]
1260
+ attr_accessor :ssl_cipher
1261
+
1262
+ # The username for the replication connection.
1263
+ # Corresponds to the JSON property `username`
1264
+ # @return [String]
1265
+ attr_accessor :username
1266
+
1267
+ # Whether or not to check the master's Common Name value in the certificate that
1268
+ # it sends during the SSL handshake.
1269
+ # Corresponds to the JSON property `verifyServerCertificate`
1270
+ # @return [Boolean]
1271
+ attr_accessor :verify_server_certificate
1272
+ alias_method :verify_server_certificate?, :verify_server_certificate
1273
+
1274
+ def initialize(**args)
1275
+ update!(**args)
1276
+ end
1277
+
1278
+ # Update properties of this object
1279
+ def update!(**args)
1280
+ @ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate)
1281
+ @client_certificate = args[:client_certificate] if args.key?(:client_certificate)
1282
+ @client_key = args[:client_key] if args.key?(:client_key)
1283
+ @connect_retry_interval = args[:connect_retry_interval] if args.key?(:connect_retry_interval)
1284
+ @dump_file_path = args[:dump_file_path] if args.key?(:dump_file_path)
1285
+ @kind = args[:kind] if args.key?(:kind)
1286
+ @master_heartbeat_period = args[:master_heartbeat_period] if args.key?(:master_heartbeat_period)
1287
+ @password = args[:password] if args.key?(:password)
1288
+ @ssl_cipher = args[:ssl_cipher] if args.key?(:ssl_cipher)
1289
+ @username = args[:username] if args.key?(:username)
1290
+ @verify_server_certificate = args[:verify_server_certificate] if args.key?(:verify_server_certificate)
1291
+ end
1292
+ end
1293
+
1294
+ # On-premises instance configuration.
1295
+ class OnPremisesConfiguration
1296
+ include Google::Apis::Core::Hashable
1297
+
1298
+ # The host and port of the on-premises instance in host:port format
1299
+ # Corresponds to the JSON property `hostPort`
1300
+ # @return [String]
1301
+ attr_accessor :host_port
1302
+
1303
+ # This is always sql#onPremisesConfiguration.
1304
+ # Corresponds to the JSON property `kind`
1305
+ # @return [String]
1306
+ attr_accessor :kind
1307
+
1308
+ def initialize(**args)
1309
+ update!(**args)
1310
+ end
1311
+
1312
+ # Update properties of this object
1313
+ def update!(**args)
1314
+ @host_port = args[:host_port] if args.key?(:host_port)
1315
+ @kind = args[:kind] if args.key?(:kind)
1316
+ end
1317
+ end
1318
+
1319
+ # An Operations resource contains information about database instance operations
1320
+ # such as create, delete, and restart. Operations resources are created in
1321
+ # response to operations that were initiated; you never create them directly.
1322
+ class Operation
1323
+ include Google::Apis::Core::Hashable
1324
+
1325
+ # The time this operation finished in UTC timezone in RFC 3339 format, for
1326
+ # example 2012-11-15T16:19:00.094Z.
1327
+ # Corresponds to the JSON property `endTime`
1328
+ # @return [DateTime]
1329
+ attr_accessor :end_time
1330
+
1331
+ # Database instance operation errors list wrapper.
1332
+ # Corresponds to the JSON property `error`
1333
+ # @return [Google::Apis::SqladminV1beta4::OperationErrors]
1334
+ attr_accessor :error
1335
+
1336
+ # Database instance export context.
1337
+ # Corresponds to the JSON property `exportContext`
1338
+ # @return [Google::Apis::SqladminV1beta4::ExportContext]
1339
+ attr_accessor :export_context
1340
+
1341
+ # Database instance import context.
1342
+ # Corresponds to the JSON property `importContext`
1343
+ # @return [Google::Apis::SqladminV1beta4::ImportContext]
1344
+ attr_accessor :import_context
1345
+
1346
+ # The time this operation was enqueued in UTC timezone in RFC 3339 format, for
1347
+ # example 2012-11-15T16:19:00.094Z.
1348
+ # Corresponds to the JSON property `insertTime`
1349
+ # @return [DateTime]
1350
+ attr_accessor :insert_time
1351
+
1352
+ # This is always sql#operation.
1353
+ # Corresponds to the JSON property `kind`
1354
+ # @return [String]
1355
+ attr_accessor :kind
1356
+
1357
+ # An identifier that uniquely identifies the operation. You can use this
1358
+ # identifier to retrieve the Operations resource that has information about the
1359
+ # operation.
1360
+ # Corresponds to the JSON property `name`
1361
+ # @return [String]
1362
+ attr_accessor :name
1363
+
1364
+ # The type of the operation. Valid values are CREATE, DELETE, UPDATE, RESTART,
1365
+ # IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME, CREATE_USER, DELETE_USER,
1366
+ # CREATE_DATABASE, DELETE_DATABASE .
1367
+ # Corresponds to the JSON property `operationType`
1368
+ # @return [String]
1369
+ attr_accessor :operation_type
1370
+
1371
+ # The URI of this resource.
1372
+ # Corresponds to the JSON property `selfLink`
1373
+ # @return [String]
1374
+ attr_accessor :self_link
1375
+
1376
+ # The time this operation actually started in UTC timezone in RFC 3339 format,
1377
+ # for example 2012-11-15T16:19:00.094Z.
1378
+ # Corresponds to the JSON property `startTime`
1379
+ # @return [DateTime]
1380
+ attr_accessor :start_time
1381
+
1382
+ # The status of an operation. Valid values are PENDING, RUNNING, DONE, UNKNOWN.
1383
+ # Corresponds to the JSON property `status`
1384
+ # @return [String]
1385
+ attr_accessor :status
1386
+
1387
+ # Name of the database instance related to this operation.
1388
+ # Corresponds to the JSON property `targetId`
1389
+ # @return [String]
1390
+ attr_accessor :target_id
1391
+
1392
+ # The URI of the instance related to the operation.
1393
+ # Corresponds to the JSON property `targetLink`
1394
+ # @return [String]
1395
+ attr_accessor :target_link
1396
+
1397
+ # The project ID of the target instance related to this operation.
1398
+ # Corresponds to the JSON property `targetProject`
1399
+ # @return [String]
1400
+ attr_accessor :target_project
1401
+
1402
+ # The email address of the user who initiated this operation.
1403
+ # Corresponds to the JSON property `user`
1404
+ # @return [String]
1405
+ attr_accessor :user
1406
+
1407
+ def initialize(**args)
1408
+ update!(**args)
1409
+ end
1410
+
1411
+ # Update properties of this object
1412
+ def update!(**args)
1413
+ @end_time = args[:end_time] if args.key?(:end_time)
1414
+ @error = args[:error] if args.key?(:error)
1415
+ @export_context = args[:export_context] if args.key?(:export_context)
1416
+ @import_context = args[:import_context] if args.key?(:import_context)
1417
+ @insert_time = args[:insert_time] if args.key?(:insert_time)
1418
+ @kind = args[:kind] if args.key?(:kind)
1419
+ @name = args[:name] if args.key?(:name)
1420
+ @operation_type = args[:operation_type] if args.key?(:operation_type)
1421
+ @self_link = args[:self_link] if args.key?(:self_link)
1422
+ @start_time = args[:start_time] if args.key?(:start_time)
1423
+ @status = args[:status] if args.key?(:status)
1424
+ @target_id = args[:target_id] if args.key?(:target_id)
1425
+ @target_link = args[:target_link] if args.key?(:target_link)
1426
+ @target_project = args[:target_project] if args.key?(:target_project)
1427
+ @user = args[:user] if args.key?(:user)
1428
+ end
1429
+ end
1430
+
1431
+ # Database instance operation error.
1432
+ class OperationError
1433
+ include Google::Apis::Core::Hashable
1434
+
1435
+ # Identifies the specific error that occurred.
1436
+ # Corresponds to the JSON property `code`
1437
+ # @return [String]
1438
+ attr_accessor :code
1439
+
1440
+ # This is always sql#operationError.
1441
+ # Corresponds to the JSON property `kind`
1442
+ # @return [String]
1443
+ attr_accessor :kind
1444
+
1445
+ # Additional information about the error encountered.
1446
+ # Corresponds to the JSON property `message`
1447
+ # @return [String]
1448
+ attr_accessor :message
1449
+
1450
+ def initialize(**args)
1451
+ update!(**args)
1452
+ end
1453
+
1454
+ # Update properties of this object
1455
+ def update!(**args)
1456
+ @code = args[:code] if args.key?(:code)
1457
+ @kind = args[:kind] if args.key?(:kind)
1458
+ @message = args[:message] if args.key?(:message)
1459
+ end
1460
+ end
1461
+
1462
+ # Database instance operation errors list wrapper.
1463
+ class OperationErrors
1464
+ include Google::Apis::Core::Hashable
1465
+
1466
+ # The list of errors encountered while processing this operation.
1467
+ # Corresponds to the JSON property `errors`
1468
+ # @return [Array<Google::Apis::SqladminV1beta4::OperationError>]
1469
+ attr_accessor :errors
1470
+
1471
+ # This is always sql#operationErrors.
1472
+ # Corresponds to the JSON property `kind`
1473
+ # @return [String]
1474
+ attr_accessor :kind
1475
+
1476
+ def initialize(**args)
1477
+ update!(**args)
1478
+ end
1479
+
1480
+ # Update properties of this object
1481
+ def update!(**args)
1482
+ @errors = args[:errors] if args.key?(:errors)
1483
+ @kind = args[:kind] if args.key?(:kind)
1484
+ end
1485
+ end
1486
+
1487
+ # Database instance list operations response.
1488
+ class ListOperationsResponse
1489
+ include Google::Apis::Core::Hashable
1490
+
1491
+ # List of operation resources.
1492
+ # Corresponds to the JSON property `items`
1493
+ # @return [Array<Google::Apis::SqladminV1beta4::Operation>]
1494
+ attr_accessor :items
1495
+
1496
+ # This is always sql#operationsList.
1497
+ # Corresponds to the JSON property `kind`
1498
+ # @return [String]
1499
+ attr_accessor :kind
1500
+
1501
+ # The continuation token, used to page through large result sets. Provide this
1502
+ # value in a subsequent request to return the next page of results.
1503
+ # Corresponds to the JSON property `nextPageToken`
1504
+ # @return [String]
1505
+ attr_accessor :next_page_token
1506
+
1507
+ def initialize(**args)
1508
+ update!(**args)
1509
+ end
1510
+
1511
+ # Update properties of this object
1512
+ def update!(**args)
1513
+ @items = args[:items] if args.key?(:items)
1514
+ @kind = args[:kind] if args.key?(:kind)
1515
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1516
+ end
1517
+ end
1518
+
1519
+ # Read-replica configuration for connecting to the master.
1520
+ class ReplicaConfiguration
1521
+ include Google::Apis::Core::Hashable
1522
+
1523
+ # Specifies if the replica is the failover target. If the field is set to true
1524
+ # the replica will be designated as a failover replica. In case the master
1525
+ # instance fails, the replica instance will be promoted as the new master
1526
+ # instance.
1527
+ # Only one replica can be specified as failover target, and the replica has to
1528
+ # be in different zone with the master instance.
1529
+ # Corresponds to the JSON property `failoverTarget`
1530
+ # @return [Boolean]
1531
+ attr_accessor :failover_target
1532
+ alias_method :failover_target?, :failover_target
1533
+
1534
+ # This is always sql#replicaConfiguration.
1535
+ # Corresponds to the JSON property `kind`
1536
+ # @return [String]
1537
+ attr_accessor :kind
1538
+
1539
+ # Read-replica configuration specific to MySQL databases.
1540
+ # Corresponds to the JSON property `mysqlReplicaConfiguration`
1541
+ # @return [Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration]
1542
+ attr_accessor :mysql_replica_configuration
1543
+
1544
+ def initialize(**args)
1545
+ update!(**args)
1546
+ end
1547
+
1548
+ # Update properties of this object
1549
+ def update!(**args)
1550
+ @failover_target = args[:failover_target] if args.key?(:failover_target)
1551
+ @kind = args[:kind] if args.key?(:kind)
1552
+ @mysql_replica_configuration = args[:mysql_replica_configuration] if args.key?(:mysql_replica_configuration)
1553
+ end
1554
+ end
1555
+
1556
+ # Database instance restore from backup context.
1557
+ class RestoreBackupContext
1558
+ include Google::Apis::Core::Hashable
1559
+
1560
+ # The ID of the backup run to restore from.
1561
+ # Corresponds to the JSON property `backupRunId`
1562
+ # @return [String]
1563
+ attr_accessor :backup_run_id
1564
+
1565
+ # The ID of the instance that the backup was taken from.
1566
+ # Corresponds to the JSON property `instanceId`
1567
+ # @return [String]
1568
+ attr_accessor :instance_id
1569
+
1570
+ # This is always sql#restoreBackupContext.
1571
+ # Corresponds to the JSON property `kind`
1572
+ # @return [String]
1573
+ attr_accessor :kind
1574
+
1575
+ def initialize(**args)
1576
+ update!(**args)
1577
+ end
1578
+
1579
+ # Update properties of this object
1580
+ def update!(**args)
1581
+ @backup_run_id = args[:backup_run_id] if args.key?(:backup_run_id)
1582
+ @instance_id = args[:instance_id] if args.key?(:instance_id)
1583
+ @kind = args[:kind] if args.key?(:kind)
1584
+ end
1585
+ end
1586
+
1587
+ # Database instance settings.
1588
+ class Settings
1589
+ include Google::Apis::Core::Hashable
1590
+
1591
+ # The activation policy specifies when the instance is activated; it is
1592
+ # applicable only when the instance state is RUNNABLE. The activation policy
1593
+ # cannot be updated together with other settings for Second Generation instances.
1594
+ # Valid values:
1595
+ # ALWAYS: The instance is on; it is not deactivated by inactivity.
1596
+ # NEVER: The instance is off; it is not activated, even if a connection request
1597
+ # arrives.
1598
+ # ON_DEMAND: The instance responds to incoming requests, and turns itself off
1599
+ # when not in use. Instances with PER_USE pricing turn off after 15 minutes of
1600
+ # inactivity. Instances with PER_PACKAGE pricing turn off after 12 hours of
1601
+ # inactivity.
1602
+ # Corresponds to the JSON property `activationPolicy`
1603
+ # @return [String]
1604
+ attr_accessor :activation_policy
1605
+
1606
+ # The App Engine app IDs that can access this instance. This property is only
1607
+ # applicable to First Generation instances.
1608
+ # Corresponds to the JSON property `authorizedGaeApplications`
1609
+ # @return [Array<String>]
1610
+ attr_accessor :authorized_gae_applications
1611
+
1612
+ # The availability type. This can be one of the following.
1613
+ # ZONAL: A Cloud SQL instance that is zonally available. The instance is bound
1614
+ # to a single GCE zone and may be inaccessible during an outage for that GCE
1615
+ # zone.
1616
+ # REGIONAL: A Cloud SQL instance that is regionally available. The instance is
1617
+ # provisioned in multiple zones within a region and is able to provide higher
1618
+ # availability than an instance with a zonal availability type.
1619
+ # Corresponds to the JSON property `availabilityType`
1620
+ # @return [String]
1621
+ attr_accessor :availability_type
1622
+
1623
+ # Database instance backup configuration.
1624
+ # Corresponds to the JSON property `backupConfiguration`
1625
+ # @return [Google::Apis::SqladminV1beta4::BackupConfiguration]
1626
+ attr_accessor :backup_configuration
1627
+
1628
+ # Configuration specific to read replica instances. Indicates whether database
1629
+ # flags for crash-safe replication are enabled. This property is only applicable
1630
+ # to First Generation instances.
1631
+ # Corresponds to the JSON property `crashSafeReplicationEnabled`
1632
+ # @return [Boolean]
1633
+ attr_accessor :crash_safe_replication_enabled
1634
+ alias_method :crash_safe_replication_enabled?, :crash_safe_replication_enabled
1635
+
1636
+ # The size of data disk, in GB. The data disk size minimum is 10GB. Applies only
1637
+ # to Second Generation instances.
1638
+ # Corresponds to the JSON property `dataDiskSizeGb`
1639
+ # @return [String]
1640
+ attr_accessor :data_disk_size_gb
1641
+
1642
+ # The type of data disk. Only supported for Second Generation instances. The
1643
+ # default type is PD_SSD. Applies only to Second Generation instances.
1644
+ # Corresponds to the JSON property `dataDiskType`
1645
+ # @return [String]
1646
+ attr_accessor :data_disk_type
1647
+
1648
+ # The database flags passed to the instance at startup.
1649
+ # Corresponds to the JSON property `databaseFlags`
1650
+ # @return [Array<Google::Apis::SqladminV1beta4::DatabaseFlags>]
1651
+ attr_accessor :database_flags
1652
+
1653
+ # Configuration specific to read replica instances. Indicates whether
1654
+ # replication is enabled or not.
1655
+ # Corresponds to the JSON property `databaseReplicationEnabled`
1656
+ # @return [Boolean]
1657
+ attr_accessor :database_replication_enabled
1658
+ alias_method :database_replication_enabled?, :database_replication_enabled
1659
+
1660
+ # IP Management configuration.
1661
+ # Corresponds to the JSON property `ipConfiguration`
1662
+ # @return [Google::Apis::SqladminV1beta4::IpConfiguration]
1663
+ attr_accessor :ip_configuration
1664
+
1665
+ # This is always sql#settings.
1666
+ # Corresponds to the JSON property `kind`
1667
+ # @return [String]
1668
+ attr_accessor :kind
1669
+
1670
+ # Preferred location. This specifies where a Cloud SQL instance should
1671
+ # preferably be located, either in a specific Compute Engine zone, or co-located
1672
+ # with an App Engine application. Note that if the preferred location is not
1673
+ # available, the instance will be located as close as possible within the region.
1674
+ # Only one location may be specified.
1675
+ # Corresponds to the JSON property `locationPreference`
1676
+ # @return [Google::Apis::SqladminV1beta4::LocationPreference]
1677
+ attr_accessor :location_preference
1678
+
1679
+ # Maintenance window. This specifies when a v2 Cloud SQL instance should
1680
+ # preferably be restarted for system maintenance puruposes.
1681
+ # Corresponds to the JSON property `maintenanceWindow`
1682
+ # @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
1683
+ attr_accessor :maintenance_window
1684
+
1685
+ # The pricing plan for this instance. This can be either PER_USE or PACKAGE.
1686
+ # Only PER_USE is supported for Second Generation instances.
1687
+ # Corresponds to the JSON property `pricingPlan`
1688
+ # @return [String]
1689
+ attr_accessor :pricing_plan
1690
+
1691
+ # The type of replication this instance uses. This can be either ASYNCHRONOUS or
1692
+ # SYNCHRONOUS. This property is only applicable to First Generation instances.
1693
+ # Corresponds to the JSON property `replicationType`
1694
+ # @return [String]
1695
+ attr_accessor :replication_type
1696
+
1697
+ # The version of instance settings. This is a required field for update method
1698
+ # to make sure concurrent updates are handled properly. During update, use the
1699
+ # most recent settingsVersion value for this instance and do not try to update
1700
+ # this value.
1701
+ # Corresponds to the JSON property `settingsVersion`
1702
+ # @return [String]
1703
+ attr_accessor :settings_version
1704
+
1705
+ # Configuration to increase storage size automatically. The default value is
1706
+ # false. Applies only to Second Generation instances.
1707
+ # Corresponds to the JSON property `storageAutoResize`
1708
+ # @return [Boolean]
1709
+ attr_accessor :storage_auto_resize
1710
+ alias_method :storage_auto_resize?, :storage_auto_resize
1711
+
1712
+ # The maximum size to which storage capacity can be automatically increased. The
1713
+ # default value is 0, which specifies that there is no limit. Applies only to
1714
+ # Second Generation instances.
1715
+ # Corresponds to the JSON property `storageAutoResizeLimit`
1716
+ # @return [String]
1717
+ attr_accessor :storage_auto_resize_limit
1718
+
1719
+ # The tier of service for this instance, for example D1, D2. For more
1720
+ # information, see pricing.
1721
+ # Corresponds to the JSON property `tier`
1722
+ # @return [String]
1723
+ attr_accessor :tier
1724
+
1725
+ def initialize(**args)
1726
+ update!(**args)
1727
+ end
1728
+
1729
+ # Update properties of this object
1730
+ def update!(**args)
1731
+ @activation_policy = args[:activation_policy] if args.key?(:activation_policy)
1732
+ @authorized_gae_applications = args[:authorized_gae_applications] if args.key?(:authorized_gae_applications)
1733
+ @availability_type = args[:availability_type] if args.key?(:availability_type)
1734
+ @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration)
1735
+ @crash_safe_replication_enabled = args[:crash_safe_replication_enabled] if args.key?(:crash_safe_replication_enabled)
1736
+ @data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
1737
+ @data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
1738
+ @database_flags = args[:database_flags] if args.key?(:database_flags)
1739
+ @database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled)
1740
+ @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration)
1741
+ @kind = args[:kind] if args.key?(:kind)
1742
+ @location_preference = args[:location_preference] if args.key?(:location_preference)
1743
+ @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
1744
+ @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
1745
+ @replication_type = args[:replication_type] if args.key?(:replication_type)
1746
+ @settings_version = args[:settings_version] if args.key?(:settings_version)
1747
+ @storage_auto_resize = args[:storage_auto_resize] if args.key?(:storage_auto_resize)
1748
+ @storage_auto_resize_limit = args[:storage_auto_resize_limit] if args.key?(:storage_auto_resize_limit)
1749
+ @tier = args[:tier] if args.key?(:tier)
1750
+ end
1751
+ end
1752
+
1753
+ # SslCerts Resource
1754
+ class SslCert
1755
+ include Google::Apis::Core::Hashable
1756
+
1757
+ # PEM representation.
1758
+ # Corresponds to the JSON property `cert`
1759
+ # @return [String]
1760
+ attr_accessor :cert
1761
+
1762
+ # Serial number, as extracted from the certificate.
1763
+ # Corresponds to the JSON property `certSerialNumber`
1764
+ # @return [String]
1765
+ attr_accessor :cert_serial_number
1766
+
1767
+ # User supplied name. Constrained to [a-zA-Z.-_ ]+.
1768
+ # Corresponds to the JSON property `commonName`
1769
+ # @return [String]
1770
+ attr_accessor :common_name
1771
+
1772
+ # The time when the certificate was created in RFC 3339 format, for example 2012-
1773
+ # 11-15T16:19:00.094Z
1774
+ # Corresponds to the JSON property `createTime`
1775
+ # @return [DateTime]
1776
+ attr_accessor :create_time
1777
+
1778
+ # The time when the certificate expires in RFC 3339 format, for example 2012-11-
1779
+ # 15T16:19:00.094Z.
1780
+ # Corresponds to the JSON property `expirationTime`
1781
+ # @return [DateTime]
1782
+ attr_accessor :expiration_time
1783
+
1784
+ # Name of the database instance.
1785
+ # Corresponds to the JSON property `instance`
1786
+ # @return [String]
1787
+ attr_accessor :instance
1788
+
1789
+ # This is always sql#sslCert.
1790
+ # Corresponds to the JSON property `kind`
1791
+ # @return [String]
1792
+ attr_accessor :kind
1793
+
1794
+ # The URI of this resource.
1795
+ # Corresponds to the JSON property `selfLink`
1796
+ # @return [String]
1797
+ attr_accessor :self_link
1798
+
1799
+ # Sha1 Fingerprint.
1800
+ # Corresponds to the JSON property `sha1Fingerprint`
1801
+ # @return [String]
1802
+ attr_accessor :sha1_fingerprint
1803
+
1804
+ def initialize(**args)
1805
+ update!(**args)
1806
+ end
1807
+
1808
+ # Update properties of this object
1809
+ def update!(**args)
1810
+ @cert = args[:cert] if args.key?(:cert)
1811
+ @cert_serial_number = args[:cert_serial_number] if args.key?(:cert_serial_number)
1812
+ @common_name = args[:common_name] if args.key?(:common_name)
1813
+ @create_time = args[:create_time] if args.key?(:create_time)
1814
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
1815
+ @instance = args[:instance] if args.key?(:instance)
1816
+ @kind = args[:kind] if args.key?(:kind)
1817
+ @self_link = args[:self_link] if args.key?(:self_link)
1818
+ @sha1_fingerprint = args[:sha1_fingerprint] if args.key?(:sha1_fingerprint)
1819
+ end
1820
+ end
1821
+
1822
+ # SslCertDetail.
1823
+ class SslCertDetail
1824
+ include Google::Apis::Core::Hashable
1825
+
1826
+ # SslCerts Resource
1827
+ # Corresponds to the JSON property `certInfo`
1828
+ # @return [Google::Apis::SqladminV1beta4::SslCert]
1829
+ attr_accessor :cert_info
1830
+
1831
+ # The private key for the client cert, in pem format. Keep private in order to
1832
+ # protect your security.
1833
+ # Corresponds to the JSON property `certPrivateKey`
1834
+ # @return [String]
1835
+ attr_accessor :cert_private_key
1836
+
1837
+ def initialize(**args)
1838
+ update!(**args)
1839
+ end
1840
+
1841
+ # Update properties of this object
1842
+ def update!(**args)
1843
+ @cert_info = args[:cert_info] if args.key?(:cert_info)
1844
+ @cert_private_key = args[:cert_private_key] if args.key?(:cert_private_key)
1845
+ end
1846
+ end
1847
+
1848
+ # SslCerts create ephemeral certificate request.
1849
+ class SslCertsCreateEphemeralRequest
1850
+ include Google::Apis::Core::Hashable
1851
+
1852
+ # PEM encoded public key to include in the signed certificate.
1853
+ # Corresponds to the JSON property `public_key`
1854
+ # @return [String]
1855
+ attr_accessor :public_key
1856
+
1857
+ def initialize(**args)
1858
+ update!(**args)
1859
+ end
1860
+
1861
+ # Update properties of this object
1862
+ def update!(**args)
1863
+ @public_key = args[:public_key] if args.key?(:public_key)
1864
+ end
1865
+ end
1866
+
1867
+ # SslCerts insert request.
1868
+ class InsertSslCertsRequest
1869
+ include Google::Apis::Core::Hashable
1870
+
1871
+ # User supplied name. Must be a distinct name from the other certificates for
1872
+ # this instance. New certificates will not be usable until the instance is
1873
+ # restarted.
1874
+ # Corresponds to the JSON property `commonName`
1875
+ # @return [String]
1876
+ attr_accessor :common_name
1877
+
1878
+ def initialize(**args)
1879
+ update!(**args)
1880
+ end
1881
+
1882
+ # Update properties of this object
1883
+ def update!(**args)
1884
+ @common_name = args[:common_name] if args.key?(:common_name)
1885
+ end
1886
+ end
1887
+
1888
+ # SslCert insert response.
1889
+ class InsertSslCertsResponse
1890
+ include Google::Apis::Core::Hashable
1891
+
1892
+ # SslCertDetail.
1893
+ # Corresponds to the JSON property `clientCert`
1894
+ # @return [Google::Apis::SqladminV1beta4::SslCertDetail]
1895
+ attr_accessor :client_cert
1896
+
1897
+ # This is always sql#sslCertsInsert.
1898
+ # Corresponds to the JSON property `kind`
1899
+ # @return [String]
1900
+ attr_accessor :kind
1901
+
1902
+ # An Operations resource contains information about database instance operations
1903
+ # such as create, delete, and restart. Operations resources are created in
1904
+ # response to operations that were initiated; you never create them directly.
1905
+ # Corresponds to the JSON property `operation`
1906
+ # @return [Google::Apis::SqladminV1beta4::Operation]
1907
+ attr_accessor :operation
1908
+
1909
+ # SslCerts Resource
1910
+ # Corresponds to the JSON property `serverCaCert`
1911
+ # @return [Google::Apis::SqladminV1beta4::SslCert]
1912
+ attr_accessor :server_ca_cert
1913
+
1914
+ def initialize(**args)
1915
+ update!(**args)
1916
+ end
1917
+
1918
+ # Update properties of this object
1919
+ def update!(**args)
1920
+ @client_cert = args[:client_cert] if args.key?(:client_cert)
1921
+ @kind = args[:kind] if args.key?(:kind)
1922
+ @operation = args[:operation] if args.key?(:operation)
1923
+ @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
1924
+ end
1925
+ end
1926
+
1927
+ # SslCerts list response.
1928
+ class ListSslCertsResponse
1929
+ include Google::Apis::Core::Hashable
1930
+
1931
+ # List of client certificates for the instance.
1932
+ # Corresponds to the JSON property `items`
1933
+ # @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
1934
+ attr_accessor :items
1935
+
1936
+ # This is always sql#sslCertsList.
1937
+ # Corresponds to the JSON property `kind`
1938
+ # @return [String]
1939
+ attr_accessor :kind
1940
+
1941
+ def initialize(**args)
1942
+ update!(**args)
1943
+ end
1944
+
1945
+ # Update properties of this object
1946
+ def update!(**args)
1947
+ @items = args[:items] if args.key?(:items)
1948
+ @kind = args[:kind] if args.key?(:kind)
1949
+ end
1950
+ end
1951
+
1952
+ # A Google Cloud SQL service tier resource.
1953
+ class Tier
1954
+ include Google::Apis::Core::Hashable
1955
+
1956
+ # The maximum disk size of this tier in bytes.
1957
+ # Corresponds to the JSON property `DiskQuota`
1958
+ # @return [String]
1959
+ attr_accessor :disk_quota
1960
+
1961
+ # The maximum RAM usage of this tier in bytes.
1962
+ # Corresponds to the JSON property `RAM`
1963
+ # @return [String]
1964
+ attr_accessor :ram
1965
+
1966
+ # This is always sql#tier.
1967
+ # Corresponds to the JSON property `kind`
1968
+ # @return [String]
1969
+ attr_accessor :kind
1970
+
1971
+ # The applicable regions for this tier.
1972
+ # Corresponds to the JSON property `region`
1973
+ # @return [Array<String>]
1974
+ attr_accessor :region
1975
+
1976
+ # An identifier for the service tier, for example D1, D2 etc. For related
1977
+ # information, see Pricing.
1978
+ # Corresponds to the JSON property `tier`
1979
+ # @return [String]
1980
+ attr_accessor :tier
1981
+
1982
+ def initialize(**args)
1983
+ update!(**args)
1984
+ end
1985
+
1986
+ # Update properties of this object
1987
+ def update!(**args)
1988
+ @disk_quota = args[:disk_quota] if args.key?(:disk_quota)
1989
+ @ram = args[:ram] if args.key?(:ram)
1990
+ @kind = args[:kind] if args.key?(:kind)
1991
+ @region = args[:region] if args.key?(:region)
1992
+ @tier = args[:tier] if args.key?(:tier)
1993
+ end
1994
+ end
1995
+
1996
+ # Tiers list response.
1997
+ class ListTiersResponse
1998
+ include Google::Apis::Core::Hashable
1999
+
2000
+ # List of tiers.
2001
+ # Corresponds to the JSON property `items`
2002
+ # @return [Array<Google::Apis::SqladminV1beta4::Tier>]
2003
+ attr_accessor :items
2004
+
2005
+ # This is always sql#tiersList.
2006
+ # Corresponds to the JSON property `kind`
2007
+ # @return [String]
2008
+ attr_accessor :kind
2009
+
2010
+ def initialize(**args)
2011
+ update!(**args)
2012
+ end
2013
+
2014
+ # Update properties of this object
2015
+ def update!(**args)
2016
+ @items = args[:items] if args.key?(:items)
2017
+ @kind = args[:kind] if args.key?(:kind)
2018
+ end
2019
+ end
2020
+
2021
+ # Database Instance truncate log context.
2022
+ class TruncateLogContext
2023
+ include Google::Apis::Core::Hashable
2024
+
2025
+ # This is always sql#truncateLogContext.
2026
+ # Corresponds to the JSON property `kind`
2027
+ # @return [String]
2028
+ attr_accessor :kind
2029
+
2030
+ # The type of log to truncate. Valid values are MYSQL_GENERAL_TABLE and
2031
+ # MYSQL_SLOW_TABLE.
2032
+ # Corresponds to the JSON property `logType`
2033
+ # @return [String]
2034
+ attr_accessor :log_type
2035
+
2036
+ def initialize(**args)
2037
+ update!(**args)
2038
+ end
2039
+
2040
+ # Update properties of this object
2041
+ def update!(**args)
2042
+ @kind = args[:kind] if args.key?(:kind)
2043
+ @log_type = args[:log_type] if args.key?(:log_type)
2044
+ end
2045
+ end
2046
+
2047
+ # A Cloud SQL user resource.
2048
+ class User
2049
+ include Google::Apis::Core::Hashable
2050
+
2051
+ # HTTP 1.1 Entity tag for the resource.
2052
+ # Corresponds to the JSON property `etag`
2053
+ # @return [String]
2054
+ attr_accessor :etag
2055
+
2056
+ # The host name from which the user can connect. For insert operations, host
2057
+ # defaults to an empty string. For update operations, host is specified as part
2058
+ # of the request URL. The host name cannot be updated after insertion.
2059
+ # Corresponds to the JSON property `host`
2060
+ # @return [String]
2061
+ attr_accessor :host
2062
+
2063
+ # The name of the Cloud SQL instance. This does not include the project ID. Can
2064
+ # be omitted for update since it is already specified on the URL.
2065
+ # Corresponds to the JSON property `instance`
2066
+ # @return [String]
2067
+ attr_accessor :instance
2068
+
2069
+ # This is always sql#user.
2070
+ # Corresponds to the JSON property `kind`
2071
+ # @return [String]
2072
+ attr_accessor :kind
2073
+
2074
+ # The name of the user in the Cloud SQL instance. Can be omitted for update
2075
+ # since it is already specified on the URL.
2076
+ # Corresponds to the JSON property `name`
2077
+ # @return [String]
2078
+ attr_accessor :name
2079
+
2080
+ # The password for the user.
2081
+ # Corresponds to the JSON property `password`
2082
+ # @return [String]
2083
+ attr_accessor :password
2084
+
2085
+ # The project ID of the project containing the Cloud SQL database. The Google
2086
+ # apps domain is prefixed if applicable. Can be omitted for update since it is
2087
+ # already specified on the URL.
2088
+ # Corresponds to the JSON property `project`
2089
+ # @return [String]
2090
+ attr_accessor :project
2091
+
2092
+ def initialize(**args)
2093
+ update!(**args)
2094
+ end
2095
+
2096
+ # Update properties of this object
2097
+ def update!(**args)
2098
+ @etag = args[:etag] if args.key?(:etag)
2099
+ @host = args[:host] if args.key?(:host)
2100
+ @instance = args[:instance] if args.key?(:instance)
2101
+ @kind = args[:kind] if args.key?(:kind)
2102
+ @name = args[:name] if args.key?(:name)
2103
+ @password = args[:password] if args.key?(:password)
2104
+ @project = args[:project] if args.key?(:project)
2105
+ end
2106
+ end
2107
+
2108
+ # User list response.
2109
+ class ListUsersResponse
2110
+ include Google::Apis::Core::Hashable
2111
+
2112
+ # List of user resources in the instance.
2113
+ # Corresponds to the JSON property `items`
2114
+ # @return [Array<Google::Apis::SqladminV1beta4::User>]
2115
+ attr_accessor :items
2116
+
2117
+ # This is always sql#usersList.
2118
+ # Corresponds to the JSON property `kind`
2119
+ # @return [String]
2120
+ attr_accessor :kind
2121
+
2122
+ # An identifier that uniquely identifies the operation. You can use this
2123
+ # identifier to retrieve the Operations resource that has information about the
2124
+ # operation.
2125
+ # Corresponds to the JSON property `nextPageToken`
2126
+ # @return [String]
2127
+ attr_accessor :next_page_token
2128
+
2129
+ def initialize(**args)
2130
+ update!(**args)
2131
+ end
2132
+
2133
+ # Update properties of this object
2134
+ def update!(**args)
2135
+ @items = args[:items] if args.key?(:items)
2136
+ @kind = args[:kind] if args.key?(:kind)
2137
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2138
+ end
2139
+ end
2140
+ end
2141
+ end
2142
+ end