OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis_beta.sqladmin.v1beta4; | 3 library googleapis_beta.sqladmin.v1beta4; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 4141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4152 * when not in use. Instances with PER_USE pricing turn off after 15 minutes | 4152 * when not in use. Instances with PER_USE pricing turn off after 15 minutes |
4153 * of inactivity. Instances with PER_PACKAGE pricing turn off after 12 hours | 4153 * of inactivity. Instances with PER_PACKAGE pricing turn off after 12 hours |
4154 * of inactivity. | 4154 * of inactivity. |
4155 */ | 4155 */ |
4156 core.String activationPolicy; | 4156 core.String activationPolicy; |
4157 /** | 4157 /** |
4158 * The App Engine app IDs that can access this instance. This property is only | 4158 * The App Engine app IDs that can access this instance. This property is only |
4159 * applicable to First Generation instances. | 4159 * applicable to First Generation instances. |
4160 */ | 4160 */ |
4161 core.List<core.String> authorizedGaeApplications; | 4161 core.List<core.String> authorizedGaeApplications; |
| 4162 /** |
| 4163 * The availability type. This can be one of the following. |
| 4164 * ZONAL: A Cloud SQL instance that is zonally available. The instance is |
| 4165 * bound to a single GCE zone and may be inaccessible during an outage for |
| 4166 * that GCE zone. |
| 4167 * REGIONAL: A Cloud SQL instance that is regionally available. The instance |
| 4168 * is provisioned in multiple zones within a region and is able to provide |
| 4169 * higher availability than an instance with a zonal availability type. |
| 4170 */ |
| 4171 core.String availabilityType; |
4162 /** The daily backup configuration for the instance. */ | 4172 /** The daily backup configuration for the instance. */ |
4163 BackupConfiguration backupConfiguration; | 4173 BackupConfiguration backupConfiguration; |
4164 /** | 4174 /** |
4165 * Configuration specific to read replica instances. Indicates whether | 4175 * Configuration specific to read replica instances. Indicates whether |
4166 * database flags for crash-safe replication are enabled. This property is | 4176 * database flags for crash-safe replication are enabled. This property is |
4167 * only applicable to First Generation instances. | 4177 * only applicable to First Generation instances. |
4168 */ | 4178 */ |
4169 core.bool crashSafeReplicationEnabled; | 4179 core.bool crashSafeReplicationEnabled; |
4170 /** | 4180 /** |
4171 * The size of data disk, in GB. The data disk size minimum is 10GB. Applies | 4181 * The size of data disk, in GB. The data disk size minimum is 10GB. Applies |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4222 * use the most recent settingsVersion value for this instance and do not try | 4232 * use the most recent settingsVersion value for this instance and do not try |
4223 * to update this value. | 4233 * to update this value. |
4224 */ | 4234 */ |
4225 core.String settingsVersion; | 4235 core.String settingsVersion; |
4226 /** | 4236 /** |
4227 * Configuration to increase storage size automatically. The default value is | 4237 * Configuration to increase storage size automatically. The default value is |
4228 * false. Applies only to Second Generation instances. | 4238 * false. Applies only to Second Generation instances. |
4229 */ | 4239 */ |
4230 core.bool storageAutoResize; | 4240 core.bool storageAutoResize; |
4231 /** | 4241 /** |
| 4242 * The maximum size to which storage capacity can be automatically increased. |
| 4243 * The default value is 0, which specifies that there is no limit. Applies |
| 4244 * only to Second Generation instances. |
| 4245 */ |
| 4246 core.String storageAutoResizeLimit; |
| 4247 /** |
4232 * The tier of service for this instance, for example D1, D2. For more | 4248 * The tier of service for this instance, for example D1, D2. For more |
4233 * information, see pricing. | 4249 * information, see pricing. |
4234 */ | 4250 */ |
4235 core.String tier; | 4251 core.String tier; |
4236 | 4252 |
4237 Settings(); | 4253 Settings(); |
4238 | 4254 |
4239 Settings.fromJson(core.Map _json) { | 4255 Settings.fromJson(core.Map _json) { |
4240 if (_json.containsKey("activationPolicy")) { | 4256 if (_json.containsKey("activationPolicy")) { |
4241 activationPolicy = _json["activationPolicy"]; | 4257 activationPolicy = _json["activationPolicy"]; |
4242 } | 4258 } |
4243 if (_json.containsKey("authorizedGaeApplications")) { | 4259 if (_json.containsKey("authorizedGaeApplications")) { |
4244 authorizedGaeApplications = _json["authorizedGaeApplications"]; | 4260 authorizedGaeApplications = _json["authorizedGaeApplications"]; |
4245 } | 4261 } |
| 4262 if (_json.containsKey("availabilityType")) { |
| 4263 availabilityType = _json["availabilityType"]; |
| 4264 } |
4246 if (_json.containsKey("backupConfiguration")) { | 4265 if (_json.containsKey("backupConfiguration")) { |
4247 backupConfiguration = new BackupConfiguration.fromJson(_json["backupConfig
uration"]); | 4266 backupConfiguration = new BackupConfiguration.fromJson(_json["backupConfig
uration"]); |
4248 } | 4267 } |
4249 if (_json.containsKey("crashSafeReplicationEnabled")) { | 4268 if (_json.containsKey("crashSafeReplicationEnabled")) { |
4250 crashSafeReplicationEnabled = _json["crashSafeReplicationEnabled"]; | 4269 crashSafeReplicationEnabled = _json["crashSafeReplicationEnabled"]; |
4251 } | 4270 } |
4252 if (_json.containsKey("dataDiskSizeGb")) { | 4271 if (_json.containsKey("dataDiskSizeGb")) { |
4253 dataDiskSizeGb = _json["dataDiskSizeGb"]; | 4272 dataDiskSizeGb = _json["dataDiskSizeGb"]; |
4254 } | 4273 } |
4255 if (_json.containsKey("dataDiskType")) { | 4274 if (_json.containsKey("dataDiskType")) { |
(...skipping 22 matching lines...) Expand all Loading... |
4278 } | 4297 } |
4279 if (_json.containsKey("replicationType")) { | 4298 if (_json.containsKey("replicationType")) { |
4280 replicationType = _json["replicationType"]; | 4299 replicationType = _json["replicationType"]; |
4281 } | 4300 } |
4282 if (_json.containsKey("settingsVersion")) { | 4301 if (_json.containsKey("settingsVersion")) { |
4283 settingsVersion = _json["settingsVersion"]; | 4302 settingsVersion = _json["settingsVersion"]; |
4284 } | 4303 } |
4285 if (_json.containsKey("storageAutoResize")) { | 4304 if (_json.containsKey("storageAutoResize")) { |
4286 storageAutoResize = _json["storageAutoResize"]; | 4305 storageAutoResize = _json["storageAutoResize"]; |
4287 } | 4306 } |
| 4307 if (_json.containsKey("storageAutoResizeLimit")) { |
| 4308 storageAutoResizeLimit = _json["storageAutoResizeLimit"]; |
| 4309 } |
4288 if (_json.containsKey("tier")) { | 4310 if (_json.containsKey("tier")) { |
4289 tier = _json["tier"]; | 4311 tier = _json["tier"]; |
4290 } | 4312 } |
4291 } | 4313 } |
4292 | 4314 |
4293 core.Map toJson() { | 4315 core.Map toJson() { |
4294 var _json = new core.Map(); | 4316 var _json = new core.Map(); |
4295 if (activationPolicy != null) { | 4317 if (activationPolicy != null) { |
4296 _json["activationPolicy"] = activationPolicy; | 4318 _json["activationPolicy"] = activationPolicy; |
4297 } | 4319 } |
4298 if (authorizedGaeApplications != null) { | 4320 if (authorizedGaeApplications != null) { |
4299 _json["authorizedGaeApplications"] = authorizedGaeApplications; | 4321 _json["authorizedGaeApplications"] = authorizedGaeApplications; |
4300 } | 4322 } |
| 4323 if (availabilityType != null) { |
| 4324 _json["availabilityType"] = availabilityType; |
| 4325 } |
4301 if (backupConfiguration != null) { | 4326 if (backupConfiguration != null) { |
4302 _json["backupConfiguration"] = (backupConfiguration).toJson(); | 4327 _json["backupConfiguration"] = (backupConfiguration).toJson(); |
4303 } | 4328 } |
4304 if (crashSafeReplicationEnabled != null) { | 4329 if (crashSafeReplicationEnabled != null) { |
4305 _json["crashSafeReplicationEnabled"] = crashSafeReplicationEnabled; | 4330 _json["crashSafeReplicationEnabled"] = crashSafeReplicationEnabled; |
4306 } | 4331 } |
4307 if (dataDiskSizeGb != null) { | 4332 if (dataDiskSizeGb != null) { |
4308 _json["dataDiskSizeGb"] = dataDiskSizeGb; | 4333 _json["dataDiskSizeGb"] = dataDiskSizeGb; |
4309 } | 4334 } |
4310 if (dataDiskType != null) { | 4335 if (dataDiskType != null) { |
(...skipping 22 matching lines...) Expand all Loading... |
4333 } | 4358 } |
4334 if (replicationType != null) { | 4359 if (replicationType != null) { |
4335 _json["replicationType"] = replicationType; | 4360 _json["replicationType"] = replicationType; |
4336 } | 4361 } |
4337 if (settingsVersion != null) { | 4362 if (settingsVersion != null) { |
4338 _json["settingsVersion"] = settingsVersion; | 4363 _json["settingsVersion"] = settingsVersion; |
4339 } | 4364 } |
4340 if (storageAutoResize != null) { | 4365 if (storageAutoResize != null) { |
4341 _json["storageAutoResize"] = storageAutoResize; | 4366 _json["storageAutoResize"] = storageAutoResize; |
4342 } | 4367 } |
| 4368 if (storageAutoResizeLimit != null) { |
| 4369 _json["storageAutoResizeLimit"] = storageAutoResizeLimit; |
| 4370 } |
4343 if (tier != null) { | 4371 if (tier != null) { |
4344 _json["tier"] = tier; | 4372 _json["tier"] = tier; |
4345 } | 4373 } |
4346 return _json; | 4374 return _json; |
4347 } | 4375 } |
4348 } | 4376 } |
4349 | 4377 |
4350 /** SslCerts Resource */ | 4378 /** SslCerts Resource */ |
4351 class SslCert { | 4379 class SslCert { |
4352 /** PEM representation. */ | 4380 /** PEM representation. */ |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4841 } | 4869 } |
4842 if (kind != null) { | 4870 if (kind != null) { |
4843 _json["kind"] = kind; | 4871 _json["kind"] = kind; |
4844 } | 4872 } |
4845 if (nextPageToken != null) { | 4873 if (nextPageToken != null) { |
4846 _json["nextPageToken"] = nextPageToken; | 4874 _json["nextPageToken"] = nextPageToken; |
4847 } | 4875 } |
4848 return _json; | 4876 return _json; |
4849 } | 4877 } |
4850 } | 4878 } |
OLD | NEW |