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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 "GET", | 141 "GET", |
142 body: _body, | 142 body: _body, |
143 queryParams: _queryParams, | 143 queryParams: _queryParams, |
144 uploadOptions: _uploadOptions, | 144 uploadOptions: _uploadOptions, |
145 uploadMedia: _uploadMedia, | 145 uploadMedia: _uploadMedia, |
146 downloadOptions: _downloadOptions); | 146 downloadOptions: _downloadOptions); |
147 return _response.then((data) => new BackupRun.fromJson(data)); | 147 return _response.then((data) => new BackupRun.fromJson(data)); |
148 } | 148 } |
149 | 149 |
150 /** | 150 /** |
151 * Creates a new backup run on demand. | 151 * Creates a new backup run on demand. This method is applicable only to |
| 152 * Second Generation instances. |
152 * | 153 * |
153 * [request] - The metadata request object. | 154 * [request] - The metadata request object. |
154 * | 155 * |
155 * Request parameters: | 156 * Request parameters: |
156 * | 157 * |
157 * [project] - Project ID of the project that contains the instance. | 158 * [project] - Project ID of the project that contains the instance. |
158 * | 159 * |
159 * [instance] - Cloud SQL instance ID. This does not include the project ID. | 160 * [instance] - Cloud SQL instance ID. This does not include the project ID. |
160 * | 161 * |
161 * Completes with a [Operation]. | 162 * Completes with a [Operation]. |
(...skipping 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2544 | 2545 |
2545 /** A Cloud SQL instance resource. */ | 2546 /** A Cloud SQL instance resource. */ |
2546 class DatabaseInstance { | 2547 class DatabaseInstance { |
2547 /** | 2548 /** |
2548 * FIRST_GEN: Basic Cloud SQL instance that runs in a Google-managed | 2549 * FIRST_GEN: Basic Cloud SQL instance that runs in a Google-managed |
2549 * container. | 2550 * container. |
2550 * SECOND_GEN: A newer Cloud SQL backend that runs in a Compute Engine VM. | 2551 * SECOND_GEN: A newer Cloud SQL backend that runs in a Compute Engine VM. |
2551 * EXTERNAL: A MySQL server that is not managed by Google. | 2552 * EXTERNAL: A MySQL server that is not managed by Google. |
2552 */ | 2553 */ |
2553 core.String backendType; | 2554 core.String backendType; |
| 2555 /** Connection name of the Cloud SQL instance used in connection strings. */ |
| 2556 core.String connectionName; |
2554 /** | 2557 /** |
2555 * The current disk usage of the instance in bytes. This property has been | 2558 * The current disk usage of the instance in bytes. This property has been |
2556 * deprecated. Users should use the | 2559 * deprecated. Users should use the |
2557 * "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud | 2560 * "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud |
2558 * Monitoring API instead. Please see | 2561 * Monitoring API instead. Please see |
2559 * https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFt
dFeAgAJ | 2562 * https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFt
dFeAgAJ |
2560 * for details. | 2563 * for details. |
2561 */ | 2564 */ |
2562 core.String currentDiskSize; | 2565 core.String currentDiskSize; |
2563 /** | 2566 /** |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2646 core.String state; | 2649 core.String state; |
2647 /** If the instance state is SUSPENDED, the reason for the suspension. */ | 2650 /** If the instance state is SUSPENDED, the reason for the suspension. */ |
2648 core.List<core.String> suspensionReason; | 2651 core.List<core.String> suspensionReason; |
2649 | 2652 |
2650 DatabaseInstance(); | 2653 DatabaseInstance(); |
2651 | 2654 |
2652 DatabaseInstance.fromJson(core.Map _json) { | 2655 DatabaseInstance.fromJson(core.Map _json) { |
2653 if (_json.containsKey("backendType")) { | 2656 if (_json.containsKey("backendType")) { |
2654 backendType = _json["backendType"]; | 2657 backendType = _json["backendType"]; |
2655 } | 2658 } |
| 2659 if (_json.containsKey("connectionName")) { |
| 2660 connectionName = _json["connectionName"]; |
| 2661 } |
2656 if (_json.containsKey("currentDiskSize")) { | 2662 if (_json.containsKey("currentDiskSize")) { |
2657 currentDiskSize = _json["currentDiskSize"]; | 2663 currentDiskSize = _json["currentDiskSize"]; |
2658 } | 2664 } |
2659 if (_json.containsKey("databaseVersion")) { | 2665 if (_json.containsKey("databaseVersion")) { |
2660 databaseVersion = _json["databaseVersion"]; | 2666 databaseVersion = _json["databaseVersion"]; |
2661 } | 2667 } |
2662 if (_json.containsKey("etag")) { | 2668 if (_json.containsKey("etag")) { |
2663 etag = _json["etag"]; | 2669 etag = _json["etag"]; |
2664 } | 2670 } |
2665 if (_json.containsKey("failoverReplica")) { | 2671 if (_json.containsKey("failoverReplica")) { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2719 if (_json.containsKey("suspensionReason")) { | 2725 if (_json.containsKey("suspensionReason")) { |
2720 suspensionReason = _json["suspensionReason"]; | 2726 suspensionReason = _json["suspensionReason"]; |
2721 } | 2727 } |
2722 } | 2728 } |
2723 | 2729 |
2724 core.Map toJson() { | 2730 core.Map toJson() { |
2725 var _json = new core.Map(); | 2731 var _json = new core.Map(); |
2726 if (backendType != null) { | 2732 if (backendType != null) { |
2727 _json["backendType"] = backendType; | 2733 _json["backendType"] = backendType; |
2728 } | 2734 } |
| 2735 if (connectionName != null) { |
| 2736 _json["connectionName"] = connectionName; |
| 2737 } |
2729 if (currentDiskSize != null) { | 2738 if (currentDiskSize != null) { |
2730 _json["currentDiskSize"] = currentDiskSize; | 2739 _json["currentDiskSize"] = currentDiskSize; |
2731 } | 2740 } |
2732 if (databaseVersion != null) { | 2741 if (databaseVersion != null) { |
2733 _json["databaseVersion"] = databaseVersion; | 2742 _json["databaseVersion"] = databaseVersion; |
2734 } | 2743 } |
2735 if (etag != null) { | 2744 if (etag != null) { |
2736 _json["etag"] = etag; | 2745 _json["etag"] = etag; |
2737 } | 2746 } |
2738 if (failoverReplica != null) { | 2747 if (failoverReplica != null) { |
(...skipping 1980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4719 } | 4728 } |
4720 if (kind != null) { | 4729 if (kind != null) { |
4721 _json["kind"] = kind; | 4730 _json["kind"] = kind; |
4722 } | 4731 } |
4723 if (nextPageToken != null) { | 4732 if (nextPageToken != null) { |
4724 _json["nextPageToken"] = nextPageToken; | 4733 _json["nextPageToken"] = nextPageToken; |
4725 } | 4734 } |
4726 return _json; | 4735 return _json; |
4727 } | 4736 } |
4728 } | 4737 } |
OLD | NEW |