OLD | NEW |
1 library googleapis_beta.sqladmin.v1beta3; | 1 library googleapis_beta.sqladmin.v1beta3; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 * | 49 * |
50 * Request parameters: | 50 * Request parameters: |
51 * | 51 * |
52 * [project] - Project ID of the project that contains the instance. | 52 * [project] - Project ID of the project that contains the instance. |
53 * | 53 * |
54 * [instance] - Cloud SQL instance ID. This does not include the project ID. | 54 * [instance] - Cloud SQL instance ID. This does not include the project ID. |
55 * | 55 * |
56 * [backupConfiguration] - Identifier for the backup configuration. This gets | 56 * [backupConfiguration] - Identifier for the backup configuration. This gets |
57 * generated automatically when a backup configuration is created. | 57 * generated automatically when a backup configuration is created. |
58 * | 58 * |
59 * [dueTime] - The time when this run is due to start in RFC 3339 format, for | 59 * [dueTime] - The start time of the four-hour backup window. The backup can |
60 * example 2012-11-15T16:19:00.094Z. | 60 * occur any time in the window. The time is in RFC 3339 format, for example |
| 61 * 2012-11-15T16:19:00.094Z. |
61 * | 62 * |
62 * Completes with a [BackupRun]. | 63 * Completes with a [BackupRun]. |
63 * | 64 * |
64 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 65 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
65 * error. | 66 * error. |
66 * | 67 * |
67 * If the used [http.Client] completes with an error when making a REST call, | 68 * If the used [http.Client] completes with an error when making a REST call, |
68 * this method will complete with the same error. | 69 * this method will complete with the same error. |
69 */ | 70 */ |
70 async.Future<BackupRun> get(core.String project, core.String instance, core.St
ring backupConfiguration, core.String dueTime) { | 71 async.Future<BackupRun> get(core.String project, core.String instance, core.St
ring backupConfiguration, core.String dueTime) { |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 * | 753 * |
753 * Request parameters: | 754 * Request parameters: |
754 * | 755 * |
755 * [project] - Project ID of the project that contains the instance. | 756 * [project] - Project ID of the project that contains the instance. |
756 * | 757 * |
757 * [instance] - Cloud SQL instance ID. This does not include the project ID. | 758 * [instance] - Cloud SQL instance ID. This does not include the project ID. |
758 * | 759 * |
759 * [backupConfiguration] - The identifier of the backup configuration. This | 760 * [backupConfiguration] - The identifier of the backup configuration. This |
760 * gets generated automatically when a backup configuration is created. | 761 * gets generated automatically when a backup configuration is created. |
761 * | 762 * |
762 * [dueTime] - The time when this run is due to start in RFC 3339 format, for | 763 * [dueTime] - The start time of the four-hour backup window. The backup can |
763 * example 2012-11-15T16:19:00.094Z. | 764 * occur any time in the window. The time is in RFC 3339 format, for example |
| 765 * 2012-11-15T16:19:00.094Z. |
764 * | 766 * |
765 * Completes with a [InstancesRestoreBackupResponse]. | 767 * Completes with a [InstancesRestoreBackupResponse]. |
766 * | 768 * |
767 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 769 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
768 * error. | 770 * error. |
769 * | 771 * |
770 * If the used [http.Client] completes with an error when making a REST call, | 772 * If the used [http.Client] completes with an error when making a REST call, |
771 * this method will complete with the same error. | 773 * this method will complete with the same error. |
772 */ | 774 */ |
773 async.Future<InstancesRestoreBackupResponse> restoreBackup(core.String project
, core.String instance, core.String backupConfiguration, core.String dueTime) { | 775 async.Future<InstancesRestoreBackupResponse> restoreBackup(core.String project
, core.String instance, core.String backupConfiguration, core.String dueTime) { |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1683 /** | 1685 /** |
1684 * The instance type. This can be one of the following. | 1686 * The instance type. This can be one of the following. |
1685 * CLOUD_SQL_INSTANCE: Regular Cloud SQL instance. | 1687 * CLOUD_SQL_INSTANCE: Regular Cloud SQL instance. |
1686 * READ_REPLICA_INSTANCE: Cloud SQL instance acting as a read-replica. | 1688 * READ_REPLICA_INSTANCE: Cloud SQL instance acting as a read-replica. |
1687 */ | 1689 */ |
1688 core.String instanceType; | 1690 core.String instanceType; |
1689 | 1691 |
1690 /** The assigned IP addresses for the instance. */ | 1692 /** The assigned IP addresses for the instance. */ |
1691 core.List<IpMapping> ipAddresses; | 1693 core.List<IpMapping> ipAddresses; |
1692 | 1694 |
| 1695 /** The IPv6 address assigned to the instance. */ |
| 1696 core.String ipv6Address; |
| 1697 |
1693 /** This is always sql#instance. */ | 1698 /** This is always sql#instance. */ |
1694 core.String kind; | 1699 core.String kind; |
1695 | 1700 |
1696 /** | 1701 /** |
1697 * The name of the instance which will act as master in the replication setup. | 1702 * The name of the instance which will act as master in the replication setup. |
1698 */ | 1703 */ |
1699 core.String masterInstanceName; | 1704 core.String masterInstanceName; |
1700 | 1705 |
1701 /** The maximum disk size of the instance in bytes. */ | 1706 /** The maximum disk size of the instance in bytes. */ |
1702 core.String maxDiskSize; | 1707 core.String maxDiskSize; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1750 } | 1755 } |
1751 if (_json.containsKey("instance")) { | 1756 if (_json.containsKey("instance")) { |
1752 instance = _json["instance"]; | 1757 instance = _json["instance"]; |
1753 } | 1758 } |
1754 if (_json.containsKey("instanceType")) { | 1759 if (_json.containsKey("instanceType")) { |
1755 instanceType = _json["instanceType"]; | 1760 instanceType = _json["instanceType"]; |
1756 } | 1761 } |
1757 if (_json.containsKey("ipAddresses")) { | 1762 if (_json.containsKey("ipAddresses")) { |
1758 ipAddresses = _json["ipAddresses"].map((value) => new IpMapping.fromJson(v
alue)).toList(); | 1763 ipAddresses = _json["ipAddresses"].map((value) => new IpMapping.fromJson(v
alue)).toList(); |
1759 } | 1764 } |
| 1765 if (_json.containsKey("ipv6Address")) { |
| 1766 ipv6Address = _json["ipv6Address"]; |
| 1767 } |
1760 if (_json.containsKey("kind")) { | 1768 if (_json.containsKey("kind")) { |
1761 kind = _json["kind"]; | 1769 kind = _json["kind"]; |
1762 } | 1770 } |
1763 if (_json.containsKey("masterInstanceName")) { | 1771 if (_json.containsKey("masterInstanceName")) { |
1764 masterInstanceName = _json["masterInstanceName"]; | 1772 masterInstanceName = _json["masterInstanceName"]; |
1765 } | 1773 } |
1766 if (_json.containsKey("maxDiskSize")) { | 1774 if (_json.containsKey("maxDiskSize")) { |
1767 maxDiskSize = _json["maxDiskSize"]; | 1775 maxDiskSize = _json["maxDiskSize"]; |
1768 } | 1776 } |
1769 if (_json.containsKey("project")) { | 1777 if (_json.containsKey("project")) { |
(...skipping 29 matching lines...) Expand all Loading... |
1799 } | 1807 } |
1800 if (instance != null) { | 1808 if (instance != null) { |
1801 _json["instance"] = instance; | 1809 _json["instance"] = instance; |
1802 } | 1810 } |
1803 if (instanceType != null) { | 1811 if (instanceType != null) { |
1804 _json["instanceType"] = instanceType; | 1812 _json["instanceType"] = instanceType; |
1805 } | 1813 } |
1806 if (ipAddresses != null) { | 1814 if (ipAddresses != null) { |
1807 _json["ipAddresses"] = ipAddresses.map((value) => (value).toJson()).toList
(); | 1815 _json["ipAddresses"] = ipAddresses.map((value) => (value).toJson()).toList
(); |
1808 } | 1816 } |
| 1817 if (ipv6Address != null) { |
| 1818 _json["ipv6Address"] = ipv6Address; |
| 1819 } |
1809 if (kind != null) { | 1820 if (kind != null) { |
1810 _json["kind"] = kind; | 1821 _json["kind"] = kind; |
1811 } | 1822 } |
1812 if (masterInstanceName != null) { | 1823 if (masterInstanceName != null) { |
1813 _json["masterInstanceName"] = masterInstanceName; | 1824 _json["masterInstanceName"] = masterInstanceName; |
1814 } | 1825 } |
1815 if (maxDiskSize != null) { | 1826 if (maxDiskSize != null) { |
1816 _json["maxDiskSize"] = maxDiskSize; | 1827 _json["maxDiskSize"] = maxDiskSize; |
1817 } | 1828 } |
1818 if (project != null) { | 1829 if (project != null) { |
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2775 /** | 2786 /** |
2776 * The list of external networks that are allowed to connect to the instance | 2787 * The list of external networks that are allowed to connect to the instance |
2777 * using the IP. In CIDR notation, also known as 'slash' notation (e.g. | 2788 * using the IP. In CIDR notation, also known as 'slash' notation (e.g. |
2778 * 192.168.100.0/24). | 2789 * 192.168.100.0/24). |
2779 */ | 2790 */ |
2780 core.List<core.String> authorizedNetworks; | 2791 core.List<core.String> authorizedNetworks; |
2781 | 2792 |
2782 /** Whether the instance should be assigned an IP address or not. */ | 2793 /** Whether the instance should be assigned an IP address or not. */ |
2783 core.bool enabled; | 2794 core.bool enabled; |
2784 | 2795 |
| 2796 /** This is always sql#ipConfiguration. */ |
| 2797 core.String kind; |
| 2798 |
2785 /** | 2799 /** |
2786 * Whether the mysqld should default to 'REQUIRE X509' for users connecting | 2800 * Whether the mysqld should default to 'REQUIRE X509' for users connecting |
2787 * over IP. | 2801 * over IP. |
2788 */ | 2802 */ |
2789 core.bool requireSsl; | 2803 core.bool requireSsl; |
2790 | 2804 |
2791 | 2805 |
2792 IpConfiguration(); | 2806 IpConfiguration(); |
2793 | 2807 |
2794 IpConfiguration.fromJson(core.Map _json) { | 2808 IpConfiguration.fromJson(core.Map _json) { |
2795 if (_json.containsKey("authorizedNetworks")) { | 2809 if (_json.containsKey("authorizedNetworks")) { |
2796 authorizedNetworks = _json["authorizedNetworks"]; | 2810 authorizedNetworks = _json["authorizedNetworks"]; |
2797 } | 2811 } |
2798 if (_json.containsKey("enabled")) { | 2812 if (_json.containsKey("enabled")) { |
2799 enabled = _json["enabled"]; | 2813 enabled = _json["enabled"]; |
2800 } | 2814 } |
| 2815 if (_json.containsKey("kind")) { |
| 2816 kind = _json["kind"]; |
| 2817 } |
2801 if (_json.containsKey("requireSsl")) { | 2818 if (_json.containsKey("requireSsl")) { |
2802 requireSsl = _json["requireSsl"]; | 2819 requireSsl = _json["requireSsl"]; |
2803 } | 2820 } |
2804 } | 2821 } |
2805 | 2822 |
2806 core.Map toJson() { | 2823 core.Map toJson() { |
2807 var _json = new core.Map(); | 2824 var _json = new core.Map(); |
2808 if (authorizedNetworks != null) { | 2825 if (authorizedNetworks != null) { |
2809 _json["authorizedNetworks"] = authorizedNetworks; | 2826 _json["authorizedNetworks"] = authorizedNetworks; |
2810 } | 2827 } |
2811 if (enabled != null) { | 2828 if (enabled != null) { |
2812 _json["enabled"] = enabled; | 2829 _json["enabled"] = enabled; |
2813 } | 2830 } |
| 2831 if (kind != null) { |
| 2832 _json["kind"] = kind; |
| 2833 } |
2814 if (requireSsl != null) { | 2834 if (requireSsl != null) { |
2815 _json["requireSsl"] = requireSsl; | 2835 _json["requireSsl"] = requireSsl; |
2816 } | 2836 } |
2817 return _json; | 2837 return _json; |
2818 } | 2838 } |
2819 } | 2839 } |
2820 | 2840 |
2821 | 2841 |
2822 /** Database instance IP Mapping. */ | 2842 /** Database instance IP Mapping. */ |
2823 class IpMapping { | 2843 class IpMapping { |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3535 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3555 _json["items"] = items.map((value) => (value).toJson()).toList(); |
3536 } | 3556 } |
3537 if (kind != null) { | 3557 if (kind != null) { |
3538 _json["kind"] = kind; | 3558 _json["kind"] = kind; |
3539 } | 3559 } |
3540 return _json; | 3560 return _json; |
3541 } | 3561 } |
3542 } | 3562 } |
3543 | 3563 |
3544 | 3564 |
OLD | NEW |