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.v1beta3; | 3 library googleapis_beta.sqladmin.v1beta3; |
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 1580 matching lines...) Loading... |
1591 } | 1591 } |
1592 if (value != null) { | 1592 if (value != null) { |
1593 _json["value"] = value; | 1593 _json["value"] = value; |
1594 } | 1594 } |
1595 return _json; | 1595 return _json; |
1596 } | 1596 } |
1597 } | 1597 } |
1598 | 1598 |
1599 /** A Cloud SQL instance resource. */ | 1599 /** A Cloud SQL instance resource. */ |
1600 class DatabaseInstance { | 1600 class DatabaseInstance { |
| 1601 /** Connection name of the Cloud SQL instance used in connection strings. */ |
| 1602 core.String connectionName; |
1601 /** The current disk usage of the instance in bytes. */ | 1603 /** The current disk usage of the instance in bytes. */ |
1602 core.String currentDiskSize; | 1604 core.String currentDiskSize; |
1603 /** | 1605 /** |
1604 * The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. | 1606 * The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. |
1605 * Defaults to MYSQL_5_5. The databaseVersion cannot be changed after instance | 1607 * Defaults to MYSQL_5_5. The databaseVersion cannot be changed after instance |
1606 * creation. | 1608 * creation. |
1607 */ | 1609 */ |
1608 core.String databaseVersion; | 1610 core.String databaseVersion; |
1609 /** HTTP 1.1 Entity tag for the resource. */ | 1611 /** HTTP 1.1 Entity tag for the resource. */ |
1610 core.String etag; | 1612 core.String etag; |
(...skipping 44 matching lines...) Loading... |
1655 * billing. | 1657 * billing. |
1656 * PENDING_CREATE: The instance is being created. | 1658 * PENDING_CREATE: The instance is being created. |
1657 * MAINTENANCE: The instance is down for maintenance. | 1659 * MAINTENANCE: The instance is down for maintenance. |
1658 * UNKNOWN_STATE: The state of the instance is unknown. | 1660 * UNKNOWN_STATE: The state of the instance is unknown. |
1659 */ | 1661 */ |
1660 core.String state; | 1662 core.String state; |
1661 | 1663 |
1662 DatabaseInstance(); | 1664 DatabaseInstance(); |
1663 | 1665 |
1664 DatabaseInstance.fromJson(core.Map _json) { | 1666 DatabaseInstance.fromJson(core.Map _json) { |
| 1667 if (_json.containsKey("connectionName")) { |
| 1668 connectionName = _json["connectionName"]; |
| 1669 } |
1665 if (_json.containsKey("currentDiskSize")) { | 1670 if (_json.containsKey("currentDiskSize")) { |
1666 currentDiskSize = _json["currentDiskSize"]; | 1671 currentDiskSize = _json["currentDiskSize"]; |
1667 } | 1672 } |
1668 if (_json.containsKey("databaseVersion")) { | 1673 if (_json.containsKey("databaseVersion")) { |
1669 databaseVersion = _json["databaseVersion"]; | 1674 databaseVersion = _json["databaseVersion"]; |
1670 } | 1675 } |
1671 if (_json.containsKey("etag")) { | 1676 if (_json.containsKey("etag")) { |
1672 etag = _json["etag"]; | 1677 etag = _json["etag"]; |
1673 } | 1678 } |
1674 if (_json.containsKey("instance")) { | 1679 if (_json.containsKey("instance")) { |
(...skipping 35 matching lines...) Loading... |
1710 if (_json.containsKey("settings")) { | 1715 if (_json.containsKey("settings")) { |
1711 settings = new Settings.fromJson(_json["settings"]); | 1716 settings = new Settings.fromJson(_json["settings"]); |
1712 } | 1717 } |
1713 if (_json.containsKey("state")) { | 1718 if (_json.containsKey("state")) { |
1714 state = _json["state"]; | 1719 state = _json["state"]; |
1715 } | 1720 } |
1716 } | 1721 } |
1717 | 1722 |
1718 core.Map toJson() { | 1723 core.Map toJson() { |
1719 var _json = new core.Map(); | 1724 var _json = new core.Map(); |
| 1725 if (connectionName != null) { |
| 1726 _json["connectionName"] = connectionName; |
| 1727 } |
1720 if (currentDiskSize != null) { | 1728 if (currentDiskSize != null) { |
1721 _json["currentDiskSize"] = currentDiskSize; | 1729 _json["currentDiskSize"] = currentDiskSize; |
1722 } | 1730 } |
1723 if (databaseVersion != null) { | 1731 if (databaseVersion != null) { |
1724 _json["databaseVersion"] = databaseVersion; | 1732 _json["databaseVersion"] = databaseVersion; |
1725 } | 1733 } |
1726 if (etag != null) { | 1734 if (etag != null) { |
1727 _json["etag"] = etag; | 1735 _json["etag"] = etag; |
1728 } | 1736 } |
1729 if (instance != null) { | 1737 if (instance != null) { |
(...skipping 1601 matching lines...) Loading... |
3331 var _json = new core.Map(); | 3339 var _json = new core.Map(); |
3332 if (items != null) { | 3340 if (items != null) { |
3333 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3341 _json["items"] = items.map((value) => (value).toJson()).toList(); |
3334 } | 3342 } |
3335 if (kind != null) { | 3343 if (kind != null) { |
3336 _json["kind"] = kind; | 3344 _json["kind"] = kind; |
3337 } | 3345 } |
3338 return _json; | 3346 return _json; |
3339 } | 3347 } |
3340 } | 3348 } |
OLD | NEW |