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 2607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2618 /** | 2618 /** |
2619 * The current disk usage of the instance in bytes. This property has been | 2619 * The current disk usage of the instance in bytes. This property has been |
2620 * deprecated. Users should use the | 2620 * deprecated. Users should use the |
2621 * "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud | 2621 * "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud |
2622 * Monitoring API instead. Please see | 2622 * Monitoring API instead. Please see |
2623 * https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFt
dFeAgAJ | 2623 * https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFt
dFeAgAJ |
2624 * for details. | 2624 * for details. |
2625 */ | 2625 */ |
2626 core.String currentDiskSize; | 2626 core.String currentDiskSize; |
2627 /** | 2627 /** |
2628 * The database engine type and version. The databaseVersion can not be | 2628 * The database engine type and version. The databaseVersion field can not be |
2629 * changed after instance creation. Can be MYSQL_5_5, MYSQL_5_6 or MYSQL_5_7. | 2629 * changed after instance creation. MySQL Second Generation instances: |
2630 * Defaults to MYSQL_5_6. MYSQL_5_7 is applicable only to Second Generation | 2630 * MYSQL_5_7 (default) or MYSQL_5_6. PostgreSQL instances: POSTGRES_9_6 MySQL |
2631 * instances. | 2631 * First Generation instances: MYSQL_5_6 (default) or MYSQL_5_5 |
2632 */ | 2632 */ |
2633 core.String databaseVersion; | 2633 core.String databaseVersion; |
2634 /** HTTP 1.1 Entity tag for the resource. */ | 2634 /** HTTP 1.1 Entity tag for the resource. */ |
2635 core.String etag; | 2635 core.String etag; |
2636 /** | 2636 /** |
2637 * The name and status of the failover replica. This property is applicable | 2637 * The name and status of the failover replica. This property is applicable |
2638 * only to Second Generation instances. | 2638 * only to Second Generation instances. |
2639 */ | 2639 */ |
2640 DatabaseInstanceFailoverReplica failoverReplica; | 2640 DatabaseInstanceFailoverReplica failoverReplica; |
2641 /** | 2641 /** |
| 2642 * The GCE zone that the instance is serving from. In case when the instance |
| 2643 * is failed over to standby zone, this value may be different with what user |
| 2644 * specified in the settings. |
| 2645 */ |
| 2646 core.String gceZone; |
| 2647 /** |
2642 * The instance type. This can be one of the following. | 2648 * The instance type. This can be one of the following. |
2643 * CLOUD_SQL_INSTANCE: A Cloud SQL instance that is not replicating from a | 2649 * CLOUD_SQL_INSTANCE: A Cloud SQL instance that is not replicating from a |
2644 * master. | 2650 * master. |
2645 * ON_PREMISES_INSTANCE: An instance running on the customer's premises. | 2651 * ON_PREMISES_INSTANCE: An instance running on the customer's premises. |
2646 * READ_REPLICA_INSTANCE: A Cloud SQL instance configured as a read-replica. | 2652 * READ_REPLICA_INSTANCE: A Cloud SQL instance configured as a read-replica. |
2647 */ | 2653 */ |
2648 core.String instanceType; | 2654 core.String instanceType; |
2649 /** The assigned IP addresses for the instance. */ | 2655 /** The assigned IP addresses for the instance. */ |
2650 core.List<IpMapping> ipAddresses; | 2656 core.List<IpMapping> ipAddresses; |
2651 /** | 2657 /** |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2725 } | 2731 } |
2726 if (_json.containsKey("databaseVersion")) { | 2732 if (_json.containsKey("databaseVersion")) { |
2727 databaseVersion = _json["databaseVersion"]; | 2733 databaseVersion = _json["databaseVersion"]; |
2728 } | 2734 } |
2729 if (_json.containsKey("etag")) { | 2735 if (_json.containsKey("etag")) { |
2730 etag = _json["etag"]; | 2736 etag = _json["etag"]; |
2731 } | 2737 } |
2732 if (_json.containsKey("failoverReplica")) { | 2738 if (_json.containsKey("failoverReplica")) { |
2733 failoverReplica = new DatabaseInstanceFailoverReplica.fromJson(_json["fail
overReplica"]); | 2739 failoverReplica = new DatabaseInstanceFailoverReplica.fromJson(_json["fail
overReplica"]); |
2734 } | 2740 } |
| 2741 if (_json.containsKey("gceZone")) { |
| 2742 gceZone = _json["gceZone"]; |
| 2743 } |
2735 if (_json.containsKey("instanceType")) { | 2744 if (_json.containsKey("instanceType")) { |
2736 instanceType = _json["instanceType"]; | 2745 instanceType = _json["instanceType"]; |
2737 } | 2746 } |
2738 if (_json.containsKey("ipAddresses")) { | 2747 if (_json.containsKey("ipAddresses")) { |
2739 ipAddresses = _json["ipAddresses"].map((value) => new IpMapping.fromJson(v
alue)).toList(); | 2748 ipAddresses = _json["ipAddresses"].map((value) => new IpMapping.fromJson(v
alue)).toList(); |
2740 } | 2749 } |
2741 if (_json.containsKey("ipv6Address")) { | 2750 if (_json.containsKey("ipv6Address")) { |
2742 ipv6Address = _json["ipv6Address"]; | 2751 ipv6Address = _json["ipv6Address"]; |
2743 } | 2752 } |
2744 if (_json.containsKey("kind")) { | 2753 if (_json.containsKey("kind")) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2801 } | 2810 } |
2802 if (databaseVersion != null) { | 2811 if (databaseVersion != null) { |
2803 _json["databaseVersion"] = databaseVersion; | 2812 _json["databaseVersion"] = databaseVersion; |
2804 } | 2813 } |
2805 if (etag != null) { | 2814 if (etag != null) { |
2806 _json["etag"] = etag; | 2815 _json["etag"] = etag; |
2807 } | 2816 } |
2808 if (failoverReplica != null) { | 2817 if (failoverReplica != null) { |
2809 _json["failoverReplica"] = (failoverReplica).toJson(); | 2818 _json["failoverReplica"] = (failoverReplica).toJson(); |
2810 } | 2819 } |
| 2820 if (gceZone != null) { |
| 2821 _json["gceZone"] = gceZone; |
| 2822 } |
2811 if (instanceType != null) { | 2823 if (instanceType != null) { |
2812 _json["instanceType"] = instanceType; | 2824 _json["instanceType"] = instanceType; |
2813 } | 2825 } |
2814 if (ipAddresses != null) { | 2826 if (ipAddresses != null) { |
2815 _json["ipAddresses"] = ipAddresses.map((value) => (value).toJson()).toList
(); | 2827 _json["ipAddresses"] = ipAddresses.map((value) => (value).toJson()).toList
(); |
2816 } | 2828 } |
2817 if (ipv6Address != null) { | 2829 if (ipv6Address != null) { |
2818 _json["ipv6Address"] = ipv6Address; | 2830 _json["ipv6Address"] = ipv6Address; |
2819 } | 2831 } |
2820 if (kind != null) { | 2832 if (kind != null) { |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3226 * must be specified. | 3238 * must be specified. |
3227 */ | 3239 */ |
3228 core.String database; | 3240 core.String database; |
3229 /** | 3241 /** |
3230 * The file type for the specified uri. | 3242 * The file type for the specified uri. |
3231 * SQL: The file contains SQL statements. | 3243 * SQL: The file contains SQL statements. |
3232 * CSV: The file contains CSV data. | 3244 * CSV: The file contains CSV data. |
3233 */ | 3245 */ |
3234 core.String fileType; | 3246 core.String fileType; |
3235 /** | 3247 /** |
3236 * The PostgreSQL user to use for this import operation. Defaults to | 3248 * The PostgreSQL user for this import operation. Defaults to |
3237 * cloudsqlsuperuser. Does not apply to MySQL instances. | 3249 * cloudsqlsuperuser. Used only for PostgreSQL instances. |
3238 */ | 3250 */ |
3239 core.String importUser; | 3251 core.String importUser; |
3240 /** This is always sql#importContext. */ | 3252 /** This is always sql#importContext. */ |
3241 core.String kind; | 3253 core.String kind; |
3242 /** | 3254 /** |
3243 * A path to the file in Google Cloud Storage from which the import is made. | 3255 * A path to the file in Google Cloud Storage from which the import is made. |
3244 * The URI is in the form gs://bucketName/fileName. Compressed gzip files | 3256 * The URI is in the form gs://bucketName/fileName. Compressed gzip files |
3245 * (.gz) are supported when fileType is SQL. | 3257 * (.gz) are supported when fileType is SQL. |
3246 */ | 3258 */ |
3247 core.String uri; | 3259 core.String uri; |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3469 /** IP Management configuration. */ | 3481 /** IP Management configuration. */ |
3470 class IpConfiguration { | 3482 class IpConfiguration { |
3471 /** | 3483 /** |
3472 * The list of external networks that are allowed to connect to the instance | 3484 * The list of external networks that are allowed to connect to the instance |
3473 * using the IP. In CIDR notation, also known as 'slash' notation (e.g. | 3485 * using the IP. In CIDR notation, also known as 'slash' notation (e.g. |
3474 * 192.168.100.0/24). | 3486 * 192.168.100.0/24). |
3475 */ | 3487 */ |
3476 core.List<AclEntry> authorizedNetworks; | 3488 core.List<AclEntry> authorizedNetworks; |
3477 /** Whether the instance should be assigned an IP address or not. */ | 3489 /** Whether the instance should be assigned an IP address or not. */ |
3478 core.bool ipv4Enabled; | 3490 core.bool ipv4Enabled; |
3479 /** | 3491 /** Whether SSL connections over IP should be enforced or not. */ |
3480 * Whether the mysqld should default to 'REQUIRE X509' for users connecting | |
3481 * over IP. | |
3482 */ | |
3483 core.bool requireSsl; | 3492 core.bool requireSsl; |
3484 | 3493 |
3485 IpConfiguration(); | 3494 IpConfiguration(); |
3486 | 3495 |
3487 IpConfiguration.fromJson(core.Map _json) { | 3496 IpConfiguration.fromJson(core.Map _json) { |
3488 if (_json.containsKey("authorizedNetworks")) { | 3497 if (_json.containsKey("authorizedNetworks")) { |
3489 authorizedNetworks = _json["authorizedNetworks"].map((value) => new AclEnt
ry.fromJson(value)).toList(); | 3498 authorizedNetworks = _json["authorizedNetworks"].map((value) => new AclEnt
ry.fromJson(value)).toList(); |
3490 } | 3499 } |
3491 if (_json.containsKey("ipv4Enabled")) { | 3500 if (_json.containsKey("ipv4Enabled")) { |
3492 ipv4Enabled = _json["ipv4Enabled"]; | 3501 ipv4Enabled = _json["ipv4Enabled"]; |
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4894 } | 4903 } |
4895 if (kind != null) { | 4904 if (kind != null) { |
4896 _json["kind"] = kind; | 4905 _json["kind"] = kind; |
4897 } | 4906 } |
4898 if (nextPageToken != null) { | 4907 if (nextPageToken != null) { |
4899 _json["nextPageToken"] = nextPageToken; | 4908 _json["nextPageToken"] = nextPageToken; |
4900 } | 4909 } |
4901 return _json; | 4910 return _json; |
4902 } | 4911 } |
4903 } | 4912 } |
OLD | NEW |