| 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 } | 203 } |
| 204 | 204 |
| 205 | 205 |
| 206 class DatabasesResourceApi { | 206 class DatabasesResourceApi { |
| 207 final commons.ApiRequester _requester; | 207 final commons.ApiRequester _requester; |
| 208 | 208 |
| 209 DatabasesResourceApi(commons.ApiRequester client) : | 209 DatabasesResourceApi(commons.ApiRequester client) : |
| 210 _requester = client; | 210 _requester = client; |
| 211 | 211 |
| 212 /** | 212 /** |
| 213 * Deletes a resource containing information about a database inside a Cloud | 213 * Deletes a database from a Cloud SQL instance. |
| 214 * SQL instance. | |
| 215 * | 214 * |
| 216 * Request parameters: | 215 * Request parameters: |
| 217 * | 216 * |
| 218 * [project] - Project ID of the project that contains the instance. | 217 * [project] - Project ID of the project that contains the instance. |
| 219 * | 218 * |
| 220 * [instance] - Database instance ID. This does not include the project ID. | 219 * [instance] - Database instance ID. This does not include the project ID. |
| 221 * | 220 * |
| 222 * [database] - Name of the database to be deleted in the instance. | 221 * [database] - Name of the database to be deleted in the instance. |
| 223 * | 222 * |
| 224 * Completes with a [Operation]. | 223 * Completes with a [Operation]. |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 } | 559 } |
| 561 | 560 |
| 562 | 561 |
| 563 class InstancesResourceApi { | 562 class InstancesResourceApi { |
| 564 final commons.ApiRequester _requester; | 563 final commons.ApiRequester _requester; |
| 565 | 564 |
| 566 InstancesResourceApi(commons.ApiRequester client) : | 565 InstancesResourceApi(commons.ApiRequester client) : |
| 567 _requester = client; | 566 _requester = client; |
| 568 | 567 |
| 569 /** | 568 /** |
| 570 * Creates a Cloud SQL instance as a clone of the source instance. | 569 * Creates a Cloud SQL instance as a clone of the source instance. The API is |
| 570 * not ready for Second Generation instances yet. |
| 571 * | 571 * |
| 572 * [request] - The metadata request object. | 572 * [request] - The metadata request object. |
| 573 * | 573 * |
| 574 * Request parameters: | 574 * Request parameters: |
| 575 * | 575 * |
| 576 * [project] - Project ID of the source as well as the clone Cloud SQL | 576 * [project] - Project ID of the source as well as the clone Cloud SQL |
| 577 * instance. | 577 * instance. |
| 578 * | 578 * |
| 579 * [instance] - The ID of the Cloud SQL instance to be cloned (source). This | 579 * [instance] - The ID of the Cloud SQL instance to be cloned (source). This |
| 580 * does not include the project ID. | 580 * does not include the project ID. |
| (...skipping 1845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2426 _json["name"] = name; | 2426 _json["name"] = name; |
| 2427 } | 2427 } |
| 2428 if (value != null) { | 2428 if (value != null) { |
| 2429 _json["value"] = value; | 2429 _json["value"] = value; |
| 2430 } | 2430 } |
| 2431 return _json; | 2431 return _json; |
| 2432 } | 2432 } |
| 2433 } | 2433 } |
| 2434 | 2434 |
| 2435 /** | 2435 /** |
| 2436 * The name and status of the failover replica. Only applies to Second | 2436 * The name and status of the failover replica. This property is applicable only |
| 2437 * Generation instances. | 2437 * to Second Generation instances. |
| 2438 */ | 2438 */ |
| 2439 class DatabaseInstanceFailoverReplica { | 2439 class DatabaseInstanceFailoverReplica { |
| 2440 /** |
| 2441 * The availability status of the failover replica. A false status indicates |
| 2442 * that the failover replica is out of sync. The master can only failover to |
| 2443 * the falover replica when the status is true. |
| 2444 */ |
| 2440 core.bool available; | 2445 core.bool available; |
| 2446 /** The name of the failover replica. */ |
| 2441 core.String name; | 2447 core.String name; |
| 2442 | 2448 |
| 2443 DatabaseInstanceFailoverReplica(); | 2449 DatabaseInstanceFailoverReplica(); |
| 2444 | 2450 |
| 2445 DatabaseInstanceFailoverReplica.fromJson(core.Map _json) { | 2451 DatabaseInstanceFailoverReplica.fromJson(core.Map _json) { |
| 2446 if (_json.containsKey("available")) { | 2452 if (_json.containsKey("available")) { |
| 2447 available = _json["available"]; | 2453 available = _json["available"]; |
| 2448 } | 2454 } |
| 2449 if (_json.containsKey("name")) { | 2455 if (_json.containsKey("name")) { |
| 2450 name = _json["name"]; | 2456 name = _json["name"]; |
| 2451 } | 2457 } |
| 2452 } | 2458 } |
| 2453 | 2459 |
| 2454 core.Map toJson() { | 2460 core.Map toJson() { |
| 2455 var _json = new core.Map(); | 2461 var _json = new core.Map(); |
| 2456 if (available != null) { | 2462 if (available != null) { |
| 2457 _json["available"] = available; | 2463 _json["available"] = available; |
| 2458 } | 2464 } |
| 2459 if (name != null) { | 2465 if (name != null) { |
| 2460 _json["name"] = name; | 2466 _json["name"] = name; |
| 2461 } | 2467 } |
| 2462 return _json; | 2468 return _json; |
| 2463 } | 2469 } |
| 2464 } | 2470 } |
| 2465 | 2471 |
| 2466 /** A Cloud SQL instance resource. */ | 2472 /** A Cloud SQL instance resource. */ |
| 2467 class DatabaseInstance { | 2473 class DatabaseInstance { |
| 2468 /** The current disk usage of the instance in bytes. */ | 2474 /** |
| 2475 * FIRST_GEN: Basic Cloud SQL instance that runs in a Google-managed |
| 2476 * container. |
| 2477 * SECOND_GEN: A newer Cloud SQL backend that runs in a Compute Engine VM. |
| 2478 * EXTERNAL: A MySQL server that is not managed by Google. |
| 2479 */ |
| 2480 core.String backendType; |
| 2481 /** |
| 2482 * The current disk usage of the instance in bytes. This property has been |
| 2483 * deprecated. Users should use the |
| 2484 * "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud |
| 2485 * Monitoring API instead. Please see |
| 2486 * https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFt
dFeAgAJ |
| 2487 * for details. |
| 2488 */ |
| 2469 core.String currentDiskSize; | 2489 core.String currentDiskSize; |
| 2470 /** | 2490 /** |
| 2471 * The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. | 2491 * The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. |
| 2472 * Defaults to MYSQL_5_5. The databaseVersion can not be changed after | 2492 * Defaults to MYSQL_5_6. The databaseVersion can not be changed after |
| 2473 * instance creation. | 2493 * instance creation. |
| 2474 */ | 2494 */ |
| 2475 core.String databaseVersion; | 2495 core.String databaseVersion; |
| 2476 /** HTTP 1.1 Entity tag for the resource. */ | 2496 /** HTTP 1.1 Entity tag for the resource. */ |
| 2477 core.String etag; | 2497 core.String etag; |
| 2478 /** | 2498 /** |
| 2479 * The name and status of the failover replica. Only applies to Second | 2499 * The name and status of the failover replica. This property is applicable |
| 2480 * Generation instances. | 2500 * only to Second Generation instances. |
| 2481 */ | 2501 */ |
| 2482 DatabaseInstanceFailoverReplica failoverReplica; | 2502 DatabaseInstanceFailoverReplica failoverReplica; |
| 2483 /** | 2503 /** |
| 2484 * The instance type. This can be one of the following. | 2504 * The instance type. This can be one of the following. |
| 2485 * CLOUD_SQL_INSTANCE: A Cloud SQL instance that is not replicating from a | 2505 * CLOUD_SQL_INSTANCE: A Cloud SQL instance that is not replicating from a |
| 2486 * master. | 2506 * master. |
| 2487 * ON_PREMISES_INSTANCE: An instance running on the customer's premises. | 2507 * ON_PREMISES_INSTANCE: An instance running on the customer's premises. |
| 2488 * READ_REPLICA_INSTANCE: A Cloud SQL instance configured as a read-replica. | 2508 * READ_REPLICA_INSTANCE: A Cloud SQL instance configured as a read-replica. |
| 2489 */ | 2509 */ |
| 2490 core.String instanceType; | 2510 core.String instanceType; |
| 2491 /** The assigned IP addresses for the instance. */ | 2511 /** The assigned IP addresses for the instance. */ |
| 2492 core.List<IpMapping> ipAddresses; | 2512 core.List<IpMapping> ipAddresses; |
| 2493 /** The IPv6 address assigned to the instance. */ | 2513 /** |
| 2514 * The IPv6 address assigned to the instance. This property is applicable only |
| 2515 * to First Generation instances. |
| 2516 */ |
| 2494 core.String ipv6Address; | 2517 core.String ipv6Address; |
| 2495 /** This is always sql#instance. */ | 2518 /** This is always sql#instance. */ |
| 2496 core.String kind; | 2519 core.String kind; |
| 2497 /** | 2520 /** |
| 2498 * The name of the instance which will act as master in the replication setup. | 2521 * The name of the instance which will act as master in the replication setup. |
| 2499 */ | 2522 */ |
| 2500 core.String masterInstanceName; | 2523 core.String masterInstanceName; |
| 2501 /** The maximum disk size of the instance in bytes. */ | 2524 /** The maximum disk size of the instance in bytes. */ |
| 2502 core.String maxDiskSize; | 2525 core.String maxDiskSize; |
| 2503 /** Name of the Cloud SQL instance. This does not include the project ID. */ | 2526 /** Name of the Cloud SQL instance. This does not include the project ID. */ |
| 2504 core.String name; | 2527 core.String name; |
| 2505 /** Configuration specific to on-premises instances. */ | 2528 /** Configuration specific to on-premises instances. */ |
| 2506 OnPremisesConfiguration onPremisesConfiguration; | 2529 OnPremisesConfiguration onPremisesConfiguration; |
| 2507 /** | 2530 /** |
| 2508 * The project ID of the project containing the Cloud SQL instance. The Google | 2531 * The project ID of the project containing the Cloud SQL instance. The Google |
| 2509 * apps domain is prefixed if applicable. | 2532 * apps domain is prefixed if applicable. |
| 2510 */ | 2533 */ |
| 2511 core.String project; | 2534 core.String project; |
| 2512 /** | 2535 /** |
| 2513 * The geographical region. Can be us-central, asia-east1 or europe-west1. | 2536 * The geographical region. Can be us-central (FIRST_GEN instances only), |
| 2514 * Defaults to us-central. The region can not be changed after instance | 2537 * us-central1 (SECOND_GEN instances only), asia-east1 or europe-west1. |
| 2515 * creation. | 2538 * Defaults to us-central or us-central1 depending on the instance type (First |
| 2539 * Generation or Second Generation). The region can not be changed after |
| 2540 * instance creation. |
| 2516 */ | 2541 */ |
| 2517 core.String region; | 2542 core.String region; |
| 2518 /** | 2543 /** |
| 2519 * Configuration specific to read-replicas replicating from on-premises | 2544 * Configuration specific to read-replicas replicating from on-premises |
| 2520 * masters. | 2545 * masters. |
| 2521 */ | 2546 */ |
| 2522 ReplicaConfiguration replicaConfiguration; | 2547 ReplicaConfiguration replicaConfiguration; |
| 2523 /** The replicas of the instance. */ | 2548 /** The replicas of the instance. */ |
| 2524 core.List<core.String> replicaNames; | 2549 core.List<core.String> replicaNames; |
| 2525 /** The URI of this resource. */ | 2550 /** The URI of this resource. */ |
| 2526 core.String selfLink; | 2551 core.String selfLink; |
| 2527 /** SSL configuration. */ | 2552 /** SSL configuration. */ |
| 2528 SslCert serverCaCert; | 2553 SslCert serverCaCert; |
| 2529 /** The service account email address assigned to the instance. */ | 2554 /** |
| 2555 * The service account email address assigned to the instance. This property |
| 2556 * is applicable only to Second Generation instances. |
| 2557 */ |
| 2530 core.String serviceAccountEmailAddress; | 2558 core.String serviceAccountEmailAddress; |
| 2531 /** The user settings. */ | 2559 /** The user settings. */ |
| 2532 Settings settings; | 2560 Settings settings; |
| 2533 /** | 2561 /** |
| 2534 * The current serving state of the Cloud SQL instance. This can be one of the | 2562 * The current serving state of the Cloud SQL instance. This can be one of the |
| 2535 * following. | 2563 * following. |
| 2536 * RUNNABLE: The instance is running, or is ready to run when accessed. | 2564 * RUNNABLE: The instance is running, or is ready to run when accessed. |
| 2537 * SUSPENDED: The instance is not available, for example due to problems with | 2565 * SUSPENDED: The instance is not available, for example due to problems with |
| 2538 * billing. | 2566 * billing. |
| 2539 * PENDING_CREATE: The instance is being created. | 2567 * PENDING_CREATE: The instance is being created. |
| 2540 * MAINTENANCE: The instance is down for maintenance. | 2568 * MAINTENANCE: The instance is down for maintenance. |
| 2541 * FAILED: The instance creation failed. | 2569 * FAILED: The instance creation failed. |
| 2542 * UNKNOWN_STATE: The state of the instance is unknown. | 2570 * UNKNOWN_STATE: The state of the instance is unknown. |
| 2543 */ | 2571 */ |
| 2544 core.String state; | 2572 core.String state; |
| 2573 /** If the instance state is SUSPENDED, the reason for the suspension. */ |
| 2574 core.List<core.String> suspensionReason; |
| 2545 | 2575 |
| 2546 DatabaseInstance(); | 2576 DatabaseInstance(); |
| 2547 | 2577 |
| 2548 DatabaseInstance.fromJson(core.Map _json) { | 2578 DatabaseInstance.fromJson(core.Map _json) { |
| 2579 if (_json.containsKey("backendType")) { |
| 2580 backendType = _json["backendType"]; |
| 2581 } |
| 2549 if (_json.containsKey("currentDiskSize")) { | 2582 if (_json.containsKey("currentDiskSize")) { |
| 2550 currentDiskSize = _json["currentDiskSize"]; | 2583 currentDiskSize = _json["currentDiskSize"]; |
| 2551 } | 2584 } |
| 2552 if (_json.containsKey("databaseVersion")) { | 2585 if (_json.containsKey("databaseVersion")) { |
| 2553 databaseVersion = _json["databaseVersion"]; | 2586 databaseVersion = _json["databaseVersion"]; |
| 2554 } | 2587 } |
| 2555 if (_json.containsKey("etag")) { | 2588 if (_json.containsKey("etag")) { |
| 2556 etag = _json["etag"]; | 2589 etag = _json["etag"]; |
| 2557 } | 2590 } |
| 2558 if (_json.containsKey("failoverReplica")) { | 2591 if (_json.containsKey("failoverReplica")) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2602 } | 2635 } |
| 2603 if (_json.containsKey("serviceAccountEmailAddress")) { | 2636 if (_json.containsKey("serviceAccountEmailAddress")) { |
| 2604 serviceAccountEmailAddress = _json["serviceAccountEmailAddress"]; | 2637 serviceAccountEmailAddress = _json["serviceAccountEmailAddress"]; |
| 2605 } | 2638 } |
| 2606 if (_json.containsKey("settings")) { | 2639 if (_json.containsKey("settings")) { |
| 2607 settings = new Settings.fromJson(_json["settings"]); | 2640 settings = new Settings.fromJson(_json["settings"]); |
| 2608 } | 2641 } |
| 2609 if (_json.containsKey("state")) { | 2642 if (_json.containsKey("state")) { |
| 2610 state = _json["state"]; | 2643 state = _json["state"]; |
| 2611 } | 2644 } |
| 2645 if (_json.containsKey("suspensionReason")) { |
| 2646 suspensionReason = _json["suspensionReason"]; |
| 2647 } |
| 2612 } | 2648 } |
| 2613 | 2649 |
| 2614 core.Map toJson() { | 2650 core.Map toJson() { |
| 2615 var _json = new core.Map(); | 2651 var _json = new core.Map(); |
| 2652 if (backendType != null) { |
| 2653 _json["backendType"] = backendType; |
| 2654 } |
| 2616 if (currentDiskSize != null) { | 2655 if (currentDiskSize != null) { |
| 2617 _json["currentDiskSize"] = currentDiskSize; | 2656 _json["currentDiskSize"] = currentDiskSize; |
| 2618 } | 2657 } |
| 2619 if (databaseVersion != null) { | 2658 if (databaseVersion != null) { |
| 2620 _json["databaseVersion"] = databaseVersion; | 2659 _json["databaseVersion"] = databaseVersion; |
| 2621 } | 2660 } |
| 2622 if (etag != null) { | 2661 if (etag != null) { |
| 2623 _json["etag"] = etag; | 2662 _json["etag"] = etag; |
| 2624 } | 2663 } |
| 2625 if (failoverReplica != null) { | 2664 if (failoverReplica != null) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2669 } | 2708 } |
| 2670 if (serviceAccountEmailAddress != null) { | 2709 if (serviceAccountEmailAddress != null) { |
| 2671 _json["serviceAccountEmailAddress"] = serviceAccountEmailAddress; | 2710 _json["serviceAccountEmailAddress"] = serviceAccountEmailAddress; |
| 2672 } | 2711 } |
| 2673 if (settings != null) { | 2712 if (settings != null) { |
| 2674 _json["settings"] = (settings).toJson(); | 2713 _json["settings"] = (settings).toJson(); |
| 2675 } | 2714 } |
| 2676 if (state != null) { | 2715 if (state != null) { |
| 2677 _json["state"] = state; | 2716 _json["state"] = state; |
| 2678 } | 2717 } |
| 2718 if (suspensionReason != null) { |
| 2719 _json["suspensionReason"] = suspensionReason; |
| 2720 } |
| 2679 return _json; | 2721 return _json; |
| 2680 } | 2722 } |
| 2681 } | 2723 } |
| 2682 | 2724 |
| 2683 /** Database list response. */ | 2725 /** Database list response. */ |
| 2684 class DatabasesListResponse { | 2726 class DatabasesListResponse { |
| 2685 /** List of database resources in the instance. */ | 2727 /** List of database resources in the instance. */ |
| 2686 core.List<Database> items; | 2728 core.List<Database> items; |
| 2687 /** This is always sql#databasesList. */ | 2729 /** This is always sql#databasesList. */ |
| 2688 core.String kind; | 2730 core.String kind; |
| (...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3931 } | 3973 } |
| 3932 | 3974 |
| 3933 /** Database instance settings. */ | 3975 /** Database instance settings. */ |
| 3934 class Settings { | 3976 class Settings { |
| 3935 /** | 3977 /** |
| 3936 * The activation policy for this instance. This specifies when the instance | 3978 * The activation policy for this instance. This specifies when the instance |
| 3937 * should be activated and is applicable only when the instance state is | 3979 * should be activated and is applicable only when the instance state is |
| 3938 * RUNNABLE. This can be one of the following. | 3980 * RUNNABLE. This can be one of the following. |
| 3939 * ALWAYS: The instance should always be active. | 3981 * ALWAYS: The instance should always be active. |
| 3940 * NEVER: The instance should never be activated. | 3982 * NEVER: The instance should never be activated. |
| 3941 * ON_DEMAND: The instance is activated upon receiving requests. | 3983 * ON_DEMAND: The instance is activated upon receiving requests; only |
| 3984 * applicable to First Generation instances. |
| 3942 */ | 3985 */ |
| 3943 core.String activationPolicy; | 3986 core.String activationPolicy; |
| 3944 /** The App Engine app IDs that can access this instance. */ | 3987 /** |
| 3988 * The App Engine app IDs that can access this instance. This property is only |
| 3989 * applicable to First Generation instances. |
| 3990 */ |
| 3945 core.List<core.String> authorizedGaeApplications; | 3991 core.List<core.String> authorizedGaeApplications; |
| 3946 /** The daily backup configuration for the instance. */ | 3992 /** The daily backup configuration for the instance. */ |
| 3947 BackupConfiguration backupConfiguration; | 3993 BackupConfiguration backupConfiguration; |
| 3948 /** | 3994 /** |
| 3949 * Configuration specific to read replica instances. Indicates whether | 3995 * Configuration specific to read replica instances. Indicates whether |
| 3950 * database flags for crash-safe replication are enabled. | 3996 * database flags for crash-safe replication are enabled. This property is |
| 3997 * only applicable to First Generation instances. |
| 3951 */ | 3998 */ |
| 3952 core.bool crashSafeReplicationEnabled; | 3999 core.bool crashSafeReplicationEnabled; |
| 3953 /** | 4000 /** |
| 3954 * The size of data disk, in GB. Only supported for 2nd Generation instances. | 4001 * The size of data disk, in GB. The data disk size minimum is 10GB. This |
| 3955 * The data disk size minimum is 10GB. | 4002 * property is only applicable to Second Generation instances. |
| 3956 */ | 4003 */ |
| 3957 core.String dataDiskSizeGb; | 4004 core.String dataDiskSizeGb; |
| 3958 /** | 4005 /** |
| 3959 * The type of data disk. Only supported for 2nd Generation instances. The | 4006 * The type of data disk. Only supported for Second Generation instances. The |
| 3960 * default type is SSD. | 4007 * default type is PD_SSD. This property is only applicable to Second |
| 4008 * Generation instances. |
| 3961 */ | 4009 */ |
| 3962 core.String dataDiskType; | 4010 core.String dataDiskType; |
| 3963 /** The database flags passed to the instance at startup. */ | 4011 /** The database flags passed to the instance at startup. */ |
| 3964 core.List<DatabaseFlags> databaseFlags; | 4012 core.List<DatabaseFlags> databaseFlags; |
| 3965 /** | 4013 /** |
| 3966 * Configuration specific to read replica instances. Indicates whether | 4014 * Configuration specific to read replica instances. Indicates whether |
| 3967 * replication is enabled or not. | 4015 * replication is enabled or not. |
| 3968 */ | 4016 */ |
| 3969 core.bool databaseReplicationEnabled; | 4017 core.bool databaseReplicationEnabled; |
| 3970 /** | 4018 /** |
| 3971 * The settings for IP Management. This allows to enable or disable the | 4019 * The settings for IP Management. This allows to enable or disable the |
| 3972 * instance IP and manage which external networks can connect to the instance. | 4020 * instance IP and manage which external networks can connect to the instance. |
| 4021 * The IPv4 address cannot be disabled for Second Generation instances. |
| 3973 */ | 4022 */ |
| 3974 IpConfiguration ipConfiguration; | 4023 IpConfiguration ipConfiguration; |
| 3975 /** This is always sql#settings. */ | 4024 /** This is always sql#settings. */ |
| 3976 core.String kind; | 4025 core.String kind; |
| 3977 /** | 4026 /** |
| 3978 * The location preference settings. This allows the instance to be located as | 4027 * The location preference settings. This allows the instance to be located as |
| 3979 * near as possible to either an App Engine app or GCE zone for better | 4028 * near as possible to either an App Engine app or GCE zone for better |
| 3980 * performance. | 4029 * performance. App Engine co-location is only applicable to First Generation |
| 4030 * instances. |
| 3981 */ | 4031 */ |
| 3982 LocationPreference locationPreference; | 4032 LocationPreference locationPreference; |
| 3983 /** | 4033 /** |
| 3984 * The maintenance window for this instance. This specifies when the instance | 4034 * The maintenance window for this instance. This specifies when the instance |
| 3985 * may be restarted for maintenance purposes. | 4035 * may be restarted for maintenance purposes. This property is only applicable |
| 4036 * to Second Generation instances. |
| 3986 */ | 4037 */ |
| 3987 MaintenanceWindow maintenanceWindow; | 4038 MaintenanceWindow maintenanceWindow; |
| 3988 /** | 4039 /** |
| 3989 * The pricing plan for this instance. This can be either PER_USE or PACKAGE. | 4040 * The pricing plan for this instance. This can be either PER_USE or PACKAGE. |
| 4041 * Only PER_USE is supported for Second Generation instances. |
| 3990 */ | 4042 */ |
| 3991 core.String pricingPlan; | 4043 core.String pricingPlan; |
| 3992 /** | 4044 /** |
| 3993 * The type of replication this instance uses. This can be either ASYNCHRONOUS | 4045 * The type of replication this instance uses. This can be either ASYNCHRONOUS |
| 3994 * or SYNCHRONOUS. | 4046 * or SYNCHRONOUS. This property is only applicable to First Generation |
| 4047 * instances. |
| 3995 */ | 4048 */ |
| 3996 core.String replicationType; | 4049 core.String replicationType; |
| 3997 /** | 4050 /** |
| 3998 * The version of instance settings. This is a required field for update | 4051 * The version of instance settings. This is a required field for update |
| 3999 * method to make sure concurrent updates are handled properly. During update, | 4052 * method to make sure concurrent updates are handled properly. During update, |
| 4000 * use the most recent settingsVersion value for this instance and do not try | 4053 * use the most recent settingsVersion value for this instance and do not try |
| 4001 * to update this value. | 4054 * to update this value. |
| 4002 */ | 4055 */ |
| 4003 core.String settingsVersion; | 4056 core.String settingsVersion; |
| 4004 /** | 4057 /** |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4452 } | 4505 } |
| 4453 } | 4506 } |
| 4454 | 4507 |
| 4455 /** A Cloud SQL user resource. */ | 4508 /** A Cloud SQL user resource. */ |
| 4456 class User { | 4509 class User { |
| 4457 /** HTTP 1.1 Entity tag for the resource. */ | 4510 /** HTTP 1.1 Entity tag for the resource. */ |
| 4458 core.String etag; | 4511 core.String etag; |
| 4459 /** | 4512 /** |
| 4460 * The host name from which the user can connect. For insert operations, host | 4513 * The host name from which the user can connect. For insert operations, host |
| 4461 * defaults to an empty string. For update operations, host is specified as | 4514 * defaults to an empty string. For update operations, host is specified as |
| 4462 * part of the request URL. The host name is not mutable with this API. | 4515 * part of the request URL. The host name cannot be updated after insertion. |
| 4463 */ | 4516 */ |
| 4464 core.String host; | 4517 core.String host; |
| 4465 /** | 4518 /** |
| 4466 * The name of the Cloud SQL instance. This does not include the project ID. | 4519 * The name of the Cloud SQL instance. This does not include the project ID. |
| 4467 * Can be omitted for update since it is already specified on the URL. | 4520 * Can be omitted for update since it is already specified on the URL. |
| 4468 */ | 4521 */ |
| 4469 core.String instance; | 4522 core.String instance; |
| 4470 /** This is always sql#user. */ | 4523 /** This is always sql#user. */ |
| 4471 core.String kind; | 4524 core.String kind; |
| 4472 /** | 4525 /** |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4570 } | 4623 } |
| 4571 if (kind != null) { | 4624 if (kind != null) { |
| 4572 _json["kind"] = kind; | 4625 _json["kind"] = kind; |
| 4573 } | 4626 } |
| 4574 if (nextPageToken != null) { | 4627 if (nextPageToken != null) { |
| 4575 _json["nextPageToken"] = nextPageToken; | 4628 _json["nextPageToken"] = nextPageToken; |
| 4576 } | 4629 } |
| 4577 return _json; | 4630 return _json; |
| 4578 } | 4631 } |
| 4579 } | 4632 } |
| OLD | NEW |