| 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 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 | 962 |
| 963 /** | 963 /** |
| 964 * Lists instances under a given project in the alphabetical order of the | 964 * Lists instances under a given project in the alphabetical order of the |
| 965 * instance name. | 965 * instance name. |
| 966 * | 966 * |
| 967 * Request parameters: | 967 * Request parameters: |
| 968 * | 968 * |
| 969 * [project] - Project ID of the project for which to list Cloud SQL | 969 * [project] - Project ID of the project for which to list Cloud SQL |
| 970 * instances. | 970 * instances. |
| 971 * | 971 * |
| 972 * [filter] - Reserved for future use. | 972 * [filter] - An expression for filtering the results of the request, such as |
| 973 * by name or label. |
| 973 * | 974 * |
| 974 * [maxResults] - The maximum number of results to return per response. | 975 * [maxResults] - The maximum number of results to return per response. |
| 975 * | 976 * |
| 976 * [pageToken] - A previously-returned page token representing part of the | 977 * [pageToken] - A previously-returned page token representing part of the |
| 977 * larger set of results to view. | 978 * larger set of results to view. |
| 978 * | 979 * |
| 979 * Completes with a [InstancesListResponse]. | 980 * Completes with a [InstancesListResponse]. |
| 980 * | 981 * |
| 981 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 982 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 982 * error. | 983 * error. |
| (...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2108 kind = _json["kind"]; | 2109 kind = _json["kind"]; |
| 2109 } | 2110 } |
| 2110 if (_json.containsKey("name")) { | 2111 if (_json.containsKey("name")) { |
| 2111 name = _json["name"]; | 2112 name = _json["name"]; |
| 2112 } | 2113 } |
| 2113 if (_json.containsKey("value")) { | 2114 if (_json.containsKey("value")) { |
| 2114 value = _json["value"]; | 2115 value = _json["value"]; |
| 2115 } | 2116 } |
| 2116 } | 2117 } |
| 2117 | 2118 |
| 2118 core.Map toJson() { | 2119 core.Map<core.String, core.Object> toJson() { |
| 2119 var _json = new core.Map(); | 2120 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2120 if (expirationTime != null) { | 2121 if (expirationTime != null) { |
| 2121 _json["expirationTime"] = (expirationTime).toIso8601String(); | 2122 _json["expirationTime"] = (expirationTime).toIso8601String(); |
| 2122 } | 2123 } |
| 2123 if (kind != null) { | 2124 if (kind != null) { |
| 2124 _json["kind"] = kind; | 2125 _json["kind"] = kind; |
| 2125 } | 2126 } |
| 2126 if (name != null) { | 2127 if (name != null) { |
| 2127 _json["name"] = name; | 2128 _json["name"] = name; |
| 2128 } | 2129 } |
| 2129 if (value != null) { | 2130 if (value != null) { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 2160 enabled = _json["enabled"]; | 2161 enabled = _json["enabled"]; |
| 2161 } | 2162 } |
| 2162 if (_json.containsKey("kind")) { | 2163 if (_json.containsKey("kind")) { |
| 2163 kind = _json["kind"]; | 2164 kind = _json["kind"]; |
| 2164 } | 2165 } |
| 2165 if (_json.containsKey("startTime")) { | 2166 if (_json.containsKey("startTime")) { |
| 2166 startTime = _json["startTime"]; | 2167 startTime = _json["startTime"]; |
| 2167 } | 2168 } |
| 2168 } | 2169 } |
| 2169 | 2170 |
| 2170 core.Map toJson() { | 2171 core.Map<core.String, core.Object> toJson() { |
| 2171 var _json = new core.Map(); | 2172 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2172 if (binaryLogEnabled != null) { | 2173 if (binaryLogEnabled != null) { |
| 2173 _json["binaryLogEnabled"] = binaryLogEnabled; | 2174 _json["binaryLogEnabled"] = binaryLogEnabled; |
| 2174 } | 2175 } |
| 2175 if (enabled != null) { | 2176 if (enabled != null) { |
| 2176 _json["enabled"] = enabled; | 2177 _json["enabled"] = enabled; |
| 2177 } | 2178 } |
| 2178 if (kind != null) { | 2179 if (kind != null) { |
| 2179 _json["kind"] = kind; | 2180 _json["kind"] = kind; |
| 2180 } | 2181 } |
| 2181 if (startTime != null) { | 2182 if (startTime != null) { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2264 status = _json["status"]; | 2265 status = _json["status"]; |
| 2265 } | 2266 } |
| 2266 if (_json.containsKey("type")) { | 2267 if (_json.containsKey("type")) { |
| 2267 type = _json["type"]; | 2268 type = _json["type"]; |
| 2268 } | 2269 } |
| 2269 if (_json.containsKey("windowStartTime")) { | 2270 if (_json.containsKey("windowStartTime")) { |
| 2270 windowStartTime = core.DateTime.parse(_json["windowStartTime"]); | 2271 windowStartTime = core.DateTime.parse(_json["windowStartTime"]); |
| 2271 } | 2272 } |
| 2272 } | 2273 } |
| 2273 | 2274 |
| 2274 core.Map toJson() { | 2275 core.Map<core.String, core.Object> toJson() { |
| 2275 var _json = new core.Map(); | 2276 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2276 if (description != null) { | 2277 if (description != null) { |
| 2277 _json["description"] = description; | 2278 _json["description"] = description; |
| 2278 } | 2279 } |
| 2279 if (endTime != null) { | 2280 if (endTime != null) { |
| 2280 _json["endTime"] = (endTime).toIso8601String(); | 2281 _json["endTime"] = (endTime).toIso8601String(); |
| 2281 } | 2282 } |
| 2282 if (enqueuedTime != null) { | 2283 if (enqueuedTime != null) { |
| 2283 _json["enqueuedTime"] = (enqueuedTime).toIso8601String(); | 2284 _json["enqueuedTime"] = (enqueuedTime).toIso8601String(); |
| 2284 } | 2285 } |
| 2285 if (error != null) { | 2286 if (error != null) { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2334 items = _json["items"].map((value) => new BackupRun.fromJson(value)).toLis
t(); | 2335 items = _json["items"].map((value) => new BackupRun.fromJson(value)).toLis
t(); |
| 2335 } | 2336 } |
| 2336 if (_json.containsKey("kind")) { | 2337 if (_json.containsKey("kind")) { |
| 2337 kind = _json["kind"]; | 2338 kind = _json["kind"]; |
| 2338 } | 2339 } |
| 2339 if (_json.containsKey("nextPageToken")) { | 2340 if (_json.containsKey("nextPageToken")) { |
| 2340 nextPageToken = _json["nextPageToken"]; | 2341 nextPageToken = _json["nextPageToken"]; |
| 2341 } | 2342 } |
| 2342 } | 2343 } |
| 2343 | 2344 |
| 2344 core.Map toJson() { | 2345 core.Map<core.String, core.Object> toJson() { |
| 2345 var _json = new core.Map(); | 2346 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2346 if (items != null) { | 2347 if (items != null) { |
| 2347 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2348 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 2348 } | 2349 } |
| 2349 if (kind != null) { | 2350 if (kind != null) { |
| 2350 _json["kind"] = kind; | 2351 _json["kind"] = kind; |
| 2351 } | 2352 } |
| 2352 if (nextPageToken != null) { | 2353 if (nextPageToken != null) { |
| 2353 _json["nextPageToken"] = nextPageToken; | 2354 _json["nextPageToken"] = nextPageToken; |
| 2354 } | 2355 } |
| 2355 return _json; | 2356 return _json; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2372 binLogFileName = _json["binLogFileName"]; | 2373 binLogFileName = _json["binLogFileName"]; |
| 2373 } | 2374 } |
| 2374 if (_json.containsKey("binLogPosition")) { | 2375 if (_json.containsKey("binLogPosition")) { |
| 2375 binLogPosition = _json["binLogPosition"]; | 2376 binLogPosition = _json["binLogPosition"]; |
| 2376 } | 2377 } |
| 2377 if (_json.containsKey("kind")) { | 2378 if (_json.containsKey("kind")) { |
| 2378 kind = _json["kind"]; | 2379 kind = _json["kind"]; |
| 2379 } | 2380 } |
| 2380 } | 2381 } |
| 2381 | 2382 |
| 2382 core.Map toJson() { | 2383 core.Map<core.String, core.Object> toJson() { |
| 2383 var _json = new core.Map(); | 2384 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2384 if (binLogFileName != null) { | 2385 if (binLogFileName != null) { |
| 2385 _json["binLogFileName"] = binLogFileName; | 2386 _json["binLogFileName"] = binLogFileName; |
| 2386 } | 2387 } |
| 2387 if (binLogPosition != null) { | 2388 if (binLogPosition != null) { |
| 2388 _json["binLogPosition"] = binLogPosition; | 2389 _json["binLogPosition"] = binLogPosition; |
| 2389 } | 2390 } |
| 2390 if (kind != null) { | 2391 if (kind != null) { |
| 2391 _json["kind"] = kind; | 2392 _json["kind"] = kind; |
| 2392 } | 2393 } |
| 2393 return _json; | 2394 return _json; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2414 binLogCoordinates = new BinLogCoordinates.fromJson(_json["binLogCoordinate
s"]); | 2415 binLogCoordinates = new BinLogCoordinates.fromJson(_json["binLogCoordinate
s"]); |
| 2415 } | 2416 } |
| 2416 if (_json.containsKey("destinationInstanceName")) { | 2417 if (_json.containsKey("destinationInstanceName")) { |
| 2417 destinationInstanceName = _json["destinationInstanceName"]; | 2418 destinationInstanceName = _json["destinationInstanceName"]; |
| 2418 } | 2419 } |
| 2419 if (_json.containsKey("kind")) { | 2420 if (_json.containsKey("kind")) { |
| 2420 kind = _json["kind"]; | 2421 kind = _json["kind"]; |
| 2421 } | 2422 } |
| 2422 } | 2423 } |
| 2423 | 2424 |
| 2424 core.Map toJson() { | 2425 core.Map<core.String, core.Object> toJson() { |
| 2425 var _json = new core.Map(); | 2426 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2426 if (binLogCoordinates != null) { | 2427 if (binLogCoordinates != null) { |
| 2427 _json["binLogCoordinates"] = (binLogCoordinates).toJson(); | 2428 _json["binLogCoordinates"] = (binLogCoordinates).toJson(); |
| 2428 } | 2429 } |
| 2429 if (destinationInstanceName != null) { | 2430 if (destinationInstanceName != null) { |
| 2430 _json["destinationInstanceName"] = destinationInstanceName; | 2431 _json["destinationInstanceName"] = destinationInstanceName; |
| 2431 } | 2432 } |
| 2432 if (kind != null) { | 2433 if (kind != null) { |
| 2433 _json["kind"] = kind; | 2434 _json["kind"] = kind; |
| 2434 } | 2435 } |
| 2435 return _json; | 2436 return _json; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2485 name = _json["name"]; | 2486 name = _json["name"]; |
| 2486 } | 2487 } |
| 2487 if (_json.containsKey("project")) { | 2488 if (_json.containsKey("project")) { |
| 2488 project = _json["project"]; | 2489 project = _json["project"]; |
| 2489 } | 2490 } |
| 2490 if (_json.containsKey("selfLink")) { | 2491 if (_json.containsKey("selfLink")) { |
| 2491 selfLink = _json["selfLink"]; | 2492 selfLink = _json["selfLink"]; |
| 2492 } | 2493 } |
| 2493 } | 2494 } |
| 2494 | 2495 |
| 2495 core.Map toJson() { | 2496 core.Map<core.String, core.Object> toJson() { |
| 2496 var _json = new core.Map(); | 2497 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2497 if (charset != null) { | 2498 if (charset != null) { |
| 2498 _json["charset"] = charset; | 2499 _json["charset"] = charset; |
| 2499 } | 2500 } |
| 2500 if (collation != null) { | 2501 if (collation != null) { |
| 2501 _json["collation"] = collation; | 2502 _json["collation"] = collation; |
| 2502 } | 2503 } |
| 2503 if (etag != null) { | 2504 if (etag != null) { |
| 2504 _json["etag"] = etag; | 2505 _json["etag"] = etag; |
| 2505 } | 2506 } |
| 2506 if (instance != null) { | 2507 if (instance != null) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2542 | 2543 |
| 2543 DatabaseFlags.fromJson(core.Map _json) { | 2544 DatabaseFlags.fromJson(core.Map _json) { |
| 2544 if (_json.containsKey("name")) { | 2545 if (_json.containsKey("name")) { |
| 2545 name = _json["name"]; | 2546 name = _json["name"]; |
| 2546 } | 2547 } |
| 2547 if (_json.containsKey("value")) { | 2548 if (_json.containsKey("value")) { |
| 2548 value = _json["value"]; | 2549 value = _json["value"]; |
| 2549 } | 2550 } |
| 2550 } | 2551 } |
| 2551 | 2552 |
| 2552 core.Map toJson() { | 2553 core.Map<core.String, core.Object> toJson() { |
| 2553 var _json = new core.Map(); | 2554 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2554 if (name != null) { | 2555 if (name != null) { |
| 2555 _json["name"] = name; | 2556 _json["name"] = name; |
| 2556 } | 2557 } |
| 2557 if (value != null) { | 2558 if (value != null) { |
| 2558 _json["value"] = value; | 2559 _json["value"] = value; |
| 2559 } | 2560 } |
| 2560 return _json; | 2561 return _json; |
| 2561 } | 2562 } |
| 2562 } | 2563 } |
| 2563 | 2564 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2584 | 2585 |
| 2585 DatabaseInstanceFailoverReplica.fromJson(core.Map _json) { | 2586 DatabaseInstanceFailoverReplica.fromJson(core.Map _json) { |
| 2586 if (_json.containsKey("available")) { | 2587 if (_json.containsKey("available")) { |
| 2587 available = _json["available"]; | 2588 available = _json["available"]; |
| 2588 } | 2589 } |
| 2589 if (_json.containsKey("name")) { | 2590 if (_json.containsKey("name")) { |
| 2590 name = _json["name"]; | 2591 name = _json["name"]; |
| 2591 } | 2592 } |
| 2592 } | 2593 } |
| 2593 | 2594 |
| 2594 core.Map toJson() { | 2595 core.Map<core.String, core.Object> toJson() { |
| 2595 var _json = new core.Map(); | 2596 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2596 if (available != null) { | 2597 if (available != null) { |
| 2597 _json["available"] = available; | 2598 _json["available"] = available; |
| 2598 } | 2599 } |
| 2599 if (name != null) { | 2600 if (name != null) { |
| 2600 _json["name"] = name; | 2601 _json["name"] = name; |
| 2601 } | 2602 } |
| 2602 return _json; | 2603 return _json; |
| 2603 } | 2604 } |
| 2604 } | 2605 } |
| 2605 | 2606 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2780 settings = new Settings.fromJson(_json["settings"]); | 2781 settings = new Settings.fromJson(_json["settings"]); |
| 2781 } | 2782 } |
| 2782 if (_json.containsKey("state")) { | 2783 if (_json.containsKey("state")) { |
| 2783 state = _json["state"]; | 2784 state = _json["state"]; |
| 2784 } | 2785 } |
| 2785 if (_json.containsKey("suspensionReason")) { | 2786 if (_json.containsKey("suspensionReason")) { |
| 2786 suspensionReason = _json["suspensionReason"]; | 2787 suspensionReason = _json["suspensionReason"]; |
| 2787 } | 2788 } |
| 2788 } | 2789 } |
| 2789 | 2790 |
| 2790 core.Map toJson() { | 2791 core.Map<core.String, core.Object> toJson() { |
| 2791 var _json = new core.Map(); | 2792 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2792 if (backendType != null) { | 2793 if (backendType != null) { |
| 2793 _json["backendType"] = backendType; | 2794 _json["backendType"] = backendType; |
| 2794 } | 2795 } |
| 2795 if (connectionName != null) { | 2796 if (connectionName != null) { |
| 2796 _json["connectionName"] = connectionName; | 2797 _json["connectionName"] = connectionName; |
| 2797 } | 2798 } |
| 2798 if (currentDiskSize != null) { | 2799 if (currentDiskSize != null) { |
| 2799 _json["currentDiskSize"] = currentDiskSize; | 2800 _json["currentDiskSize"] = currentDiskSize; |
| 2800 } | 2801 } |
| 2801 if (databaseVersion != null) { | 2802 if (databaseVersion != null) { |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2876 | 2877 |
| 2877 DatabasesListResponse.fromJson(core.Map _json) { | 2878 DatabasesListResponse.fromJson(core.Map _json) { |
| 2878 if (_json.containsKey("items")) { | 2879 if (_json.containsKey("items")) { |
| 2879 items = _json["items"].map((value) => new Database.fromJson(value)).toList
(); | 2880 items = _json["items"].map((value) => new Database.fromJson(value)).toList
(); |
| 2880 } | 2881 } |
| 2881 if (_json.containsKey("kind")) { | 2882 if (_json.containsKey("kind")) { |
| 2882 kind = _json["kind"]; | 2883 kind = _json["kind"]; |
| 2883 } | 2884 } |
| 2884 } | 2885 } |
| 2885 | 2886 |
| 2886 core.Map toJson() { | 2887 core.Map<core.String, core.Object> toJson() { |
| 2887 var _json = new core.Map(); | 2888 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2888 if (items != null) { | 2889 if (items != null) { |
| 2889 _json["items"] = items.map((value) => (value).toJson()).toList(); | 2890 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 2890 } | 2891 } |
| 2891 if (kind != null) { | 2892 if (kind != null) { |
| 2892 _json["kind"] = kind; | 2893 _json["kind"] = kind; |
| 2893 } | 2894 } |
| 2894 return _json; | 2895 return _json; |
| 2895 } | 2896 } |
| 2896 } | 2897 } |
| 2897 | 2898 |
| 2898 /** Options for exporting data as CSV. */ | 2899 /** Options for exporting data as CSV. */ |
| 2899 class ExportContextCsvExportOptions { | 2900 class ExportContextCsvExportOptions { |
| 2900 /** The select query used to extract the data. */ | 2901 /** The select query used to extract the data. */ |
| 2901 core.String selectQuery; | 2902 core.String selectQuery; |
| 2902 | 2903 |
| 2903 ExportContextCsvExportOptions(); | 2904 ExportContextCsvExportOptions(); |
| 2904 | 2905 |
| 2905 ExportContextCsvExportOptions.fromJson(core.Map _json) { | 2906 ExportContextCsvExportOptions.fromJson(core.Map _json) { |
| 2906 if (_json.containsKey("selectQuery")) { | 2907 if (_json.containsKey("selectQuery")) { |
| 2907 selectQuery = _json["selectQuery"]; | 2908 selectQuery = _json["selectQuery"]; |
| 2908 } | 2909 } |
| 2909 } | 2910 } |
| 2910 | 2911 |
| 2911 core.Map toJson() { | 2912 core.Map<core.String, core.Object> toJson() { |
| 2912 var _json = new core.Map(); | 2913 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2913 if (selectQuery != null) { | 2914 if (selectQuery != null) { |
| 2914 _json["selectQuery"] = selectQuery; | 2915 _json["selectQuery"] = selectQuery; |
| 2915 } | 2916 } |
| 2916 return _json; | 2917 return _json; |
| 2917 } | 2918 } |
| 2918 } | 2919 } |
| 2919 | 2920 |
| 2920 /** Options for exporting data as SQL statements. */ | 2921 /** Options for exporting data as SQL statements. */ |
| 2921 class ExportContextSqlExportOptions { | 2922 class ExportContextSqlExportOptions { |
| 2922 /** Export only schemas. */ | 2923 /** Export only schemas. */ |
| 2923 core.bool schemaOnly; | 2924 core.bool schemaOnly; |
| 2924 /** | 2925 /** |
| 2925 * Tables to export, or that were exported, from the specified database. If | 2926 * Tables to export, or that were exported, from the specified database. If |
| 2926 * you specify tables, specify one and only one database. | 2927 * you specify tables, specify one and only one database. |
| 2927 */ | 2928 */ |
| 2928 core.List<core.String> tables; | 2929 core.List<core.String> tables; |
| 2929 | 2930 |
| 2930 ExportContextSqlExportOptions(); | 2931 ExportContextSqlExportOptions(); |
| 2931 | 2932 |
| 2932 ExportContextSqlExportOptions.fromJson(core.Map _json) { | 2933 ExportContextSqlExportOptions.fromJson(core.Map _json) { |
| 2933 if (_json.containsKey("schemaOnly")) { | 2934 if (_json.containsKey("schemaOnly")) { |
| 2934 schemaOnly = _json["schemaOnly"]; | 2935 schemaOnly = _json["schemaOnly"]; |
| 2935 } | 2936 } |
| 2936 if (_json.containsKey("tables")) { | 2937 if (_json.containsKey("tables")) { |
| 2937 tables = _json["tables"]; | 2938 tables = _json["tables"]; |
| 2938 } | 2939 } |
| 2939 } | 2940 } |
| 2940 | 2941 |
| 2941 core.Map toJson() { | 2942 core.Map<core.String, core.Object> toJson() { |
| 2942 var _json = new core.Map(); | 2943 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 2943 if (schemaOnly != null) { | 2944 if (schemaOnly != null) { |
| 2944 _json["schemaOnly"] = schemaOnly; | 2945 _json["schemaOnly"] = schemaOnly; |
| 2945 } | 2946 } |
| 2946 if (tables != null) { | 2947 if (tables != null) { |
| 2947 _json["tables"] = tables; | 2948 _json["tables"] = tables; |
| 2948 } | 2949 } |
| 2949 return _json; | 2950 return _json; |
| 2950 } | 2951 } |
| 2951 } | 2952 } |
| 2952 | 2953 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2996 kind = _json["kind"]; | 2997 kind = _json["kind"]; |
| 2997 } | 2998 } |
| 2998 if (_json.containsKey("sqlExportOptions")) { | 2999 if (_json.containsKey("sqlExportOptions")) { |
| 2999 sqlExportOptions = new ExportContextSqlExportOptions.fromJson(_json["sqlEx
portOptions"]); | 3000 sqlExportOptions = new ExportContextSqlExportOptions.fromJson(_json["sqlEx
portOptions"]); |
| 3000 } | 3001 } |
| 3001 if (_json.containsKey("uri")) { | 3002 if (_json.containsKey("uri")) { |
| 3002 uri = _json["uri"]; | 3003 uri = _json["uri"]; |
| 3003 } | 3004 } |
| 3004 } | 3005 } |
| 3005 | 3006 |
| 3006 core.Map toJson() { | 3007 core.Map<core.String, core.Object> toJson() { |
| 3007 var _json = new core.Map(); | 3008 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3008 if (csvExportOptions != null) { | 3009 if (csvExportOptions != null) { |
| 3009 _json["csvExportOptions"] = (csvExportOptions).toJson(); | 3010 _json["csvExportOptions"] = (csvExportOptions).toJson(); |
| 3010 } | 3011 } |
| 3011 if (databases != null) { | 3012 if (databases != null) { |
| 3012 _json["databases"] = databases; | 3013 _json["databases"] = databases; |
| 3013 } | 3014 } |
| 3014 if (fileType != null) { | 3015 if (fileType != null) { |
| 3015 _json["fileType"] = fileType; | 3016 _json["fileType"] = fileType; |
| 3016 } | 3017 } |
| 3017 if (kind != null) { | 3018 if (kind != null) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3041 | 3042 |
| 3042 FailoverContext.fromJson(core.Map _json) { | 3043 FailoverContext.fromJson(core.Map _json) { |
| 3043 if (_json.containsKey("kind")) { | 3044 if (_json.containsKey("kind")) { |
| 3044 kind = _json["kind"]; | 3045 kind = _json["kind"]; |
| 3045 } | 3046 } |
| 3046 if (_json.containsKey("settingsVersion")) { | 3047 if (_json.containsKey("settingsVersion")) { |
| 3047 settingsVersion = _json["settingsVersion"]; | 3048 settingsVersion = _json["settingsVersion"]; |
| 3048 } | 3049 } |
| 3049 } | 3050 } |
| 3050 | 3051 |
| 3051 core.Map toJson() { | 3052 core.Map<core.String, core.Object> toJson() { |
| 3052 var _json = new core.Map(); | 3053 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3053 if (kind != null) { | 3054 if (kind != null) { |
| 3054 _json["kind"] = kind; | 3055 _json["kind"] = kind; |
| 3055 } | 3056 } |
| 3056 if (settingsVersion != null) { | 3057 if (settingsVersion != null) { |
| 3057 _json["settingsVersion"] = settingsVersion; | 3058 _json["settingsVersion"] = settingsVersion; |
| 3058 } | 3059 } |
| 3059 return _json; | 3060 return _json; |
| 3060 } | 3061 } |
| 3061 } | 3062 } |
| 3062 | 3063 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3114 name = _json["name"]; | 3115 name = _json["name"]; |
| 3115 } | 3116 } |
| 3116 if (_json.containsKey("requiresRestart")) { | 3117 if (_json.containsKey("requiresRestart")) { |
| 3117 requiresRestart = _json["requiresRestart"]; | 3118 requiresRestart = _json["requiresRestart"]; |
| 3118 } | 3119 } |
| 3119 if (_json.containsKey("type")) { | 3120 if (_json.containsKey("type")) { |
| 3120 type = _json["type"]; | 3121 type = _json["type"]; |
| 3121 } | 3122 } |
| 3122 } | 3123 } |
| 3123 | 3124 |
| 3124 core.Map toJson() { | 3125 core.Map<core.String, core.Object> toJson() { |
| 3125 var _json = new core.Map(); | 3126 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3126 if (allowedStringValues != null) { | 3127 if (allowedStringValues != null) { |
| 3127 _json["allowedStringValues"] = allowedStringValues; | 3128 _json["allowedStringValues"] = allowedStringValues; |
| 3128 } | 3129 } |
| 3129 if (appliesTo != null) { | 3130 if (appliesTo != null) { |
| 3130 _json["appliesTo"] = appliesTo; | 3131 _json["appliesTo"] = appliesTo; |
| 3131 } | 3132 } |
| 3132 if (kind != null) { | 3133 if (kind != null) { |
| 3133 _json["kind"] = kind; | 3134 _json["kind"] = kind; |
| 3134 } | 3135 } |
| 3135 if (maxValue != null) { | 3136 if (maxValue != null) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 3162 | 3163 |
| 3163 FlagsListResponse.fromJson(core.Map _json) { | 3164 FlagsListResponse.fromJson(core.Map _json) { |
| 3164 if (_json.containsKey("items")) { | 3165 if (_json.containsKey("items")) { |
| 3165 items = _json["items"].map((value) => new Flag.fromJson(value)).toList(); | 3166 items = _json["items"].map((value) => new Flag.fromJson(value)).toList(); |
| 3166 } | 3167 } |
| 3167 if (_json.containsKey("kind")) { | 3168 if (_json.containsKey("kind")) { |
| 3168 kind = _json["kind"]; | 3169 kind = _json["kind"]; |
| 3169 } | 3170 } |
| 3170 } | 3171 } |
| 3171 | 3172 |
| 3172 core.Map toJson() { | 3173 core.Map<core.String, core.Object> toJson() { |
| 3173 var _json = new core.Map(); | 3174 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3174 if (items != null) { | 3175 if (items != null) { |
| 3175 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3176 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3176 } | 3177 } |
| 3177 if (kind != null) { | 3178 if (kind != null) { |
| 3178 _json["kind"] = kind; | 3179 _json["kind"] = kind; |
| 3179 } | 3180 } |
| 3180 return _json; | 3181 return _json; |
| 3181 } | 3182 } |
| 3182 } | 3183 } |
| 3183 | 3184 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 3195 | 3196 |
| 3196 ImportContextCsvImportOptions.fromJson(core.Map _json) { | 3197 ImportContextCsvImportOptions.fromJson(core.Map _json) { |
| 3197 if (_json.containsKey("columns")) { | 3198 if (_json.containsKey("columns")) { |
| 3198 columns = _json["columns"]; | 3199 columns = _json["columns"]; |
| 3199 } | 3200 } |
| 3200 if (_json.containsKey("table")) { | 3201 if (_json.containsKey("table")) { |
| 3201 table = _json["table"]; | 3202 table = _json["table"]; |
| 3202 } | 3203 } |
| 3203 } | 3204 } |
| 3204 | 3205 |
| 3205 core.Map toJson() { | 3206 core.Map<core.String, core.Object> toJson() { |
| 3206 var _json = new core.Map(); | 3207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3207 if (columns != null) { | 3208 if (columns != null) { |
| 3208 _json["columns"] = columns; | 3209 _json["columns"] = columns; |
| 3209 } | 3210 } |
| 3210 if (table != null) { | 3211 if (table != null) { |
| 3211 _json["table"] = table; | 3212 _json["table"] = table; |
| 3212 } | 3213 } |
| 3213 return _json; | 3214 return _json; |
| 3214 } | 3215 } |
| 3215 } | 3216 } |
| 3216 | 3217 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3261 importUser = _json["importUser"]; | 3262 importUser = _json["importUser"]; |
| 3262 } | 3263 } |
| 3263 if (_json.containsKey("kind")) { | 3264 if (_json.containsKey("kind")) { |
| 3264 kind = _json["kind"]; | 3265 kind = _json["kind"]; |
| 3265 } | 3266 } |
| 3266 if (_json.containsKey("uri")) { | 3267 if (_json.containsKey("uri")) { |
| 3267 uri = _json["uri"]; | 3268 uri = _json["uri"]; |
| 3268 } | 3269 } |
| 3269 } | 3270 } |
| 3270 | 3271 |
| 3271 core.Map toJson() { | 3272 core.Map<core.String, core.Object> toJson() { |
| 3272 var _json = new core.Map(); | 3273 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3273 if (csvImportOptions != null) { | 3274 if (csvImportOptions != null) { |
| 3274 _json["csvImportOptions"] = (csvImportOptions).toJson(); | 3275 _json["csvImportOptions"] = (csvImportOptions).toJson(); |
| 3275 } | 3276 } |
| 3276 if (database != null) { | 3277 if (database != null) { |
| 3277 _json["database"] = database; | 3278 _json["database"] = database; |
| 3278 } | 3279 } |
| 3279 if (fileType != null) { | 3280 if (fileType != null) { |
| 3280 _json["fileType"] = fileType; | 3281 _json["fileType"] = fileType; |
| 3281 } | 3282 } |
| 3282 if (importUser != null) { | 3283 if (importUser != null) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 3298 CloneContext cloneContext; | 3299 CloneContext cloneContext; |
| 3299 | 3300 |
| 3300 InstancesCloneRequest(); | 3301 InstancesCloneRequest(); |
| 3301 | 3302 |
| 3302 InstancesCloneRequest.fromJson(core.Map _json) { | 3303 InstancesCloneRequest.fromJson(core.Map _json) { |
| 3303 if (_json.containsKey("cloneContext")) { | 3304 if (_json.containsKey("cloneContext")) { |
| 3304 cloneContext = new CloneContext.fromJson(_json["cloneContext"]); | 3305 cloneContext = new CloneContext.fromJson(_json["cloneContext"]); |
| 3305 } | 3306 } |
| 3306 } | 3307 } |
| 3307 | 3308 |
| 3308 core.Map toJson() { | 3309 core.Map<core.String, core.Object> toJson() { |
| 3309 var _json = new core.Map(); | 3310 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3310 if (cloneContext != null) { | 3311 if (cloneContext != null) { |
| 3311 _json["cloneContext"] = (cloneContext).toJson(); | 3312 _json["cloneContext"] = (cloneContext).toJson(); |
| 3312 } | 3313 } |
| 3313 return _json; | 3314 return _json; |
| 3314 } | 3315 } |
| 3315 } | 3316 } |
| 3316 | 3317 |
| 3317 /** Database instance export request. */ | 3318 /** Database instance export request. */ |
| 3318 class InstancesExportRequest { | 3319 class InstancesExportRequest { |
| 3319 /** Contains details about the export operation. */ | 3320 /** Contains details about the export operation. */ |
| 3320 ExportContext exportContext; | 3321 ExportContext exportContext; |
| 3321 | 3322 |
| 3322 InstancesExportRequest(); | 3323 InstancesExportRequest(); |
| 3323 | 3324 |
| 3324 InstancesExportRequest.fromJson(core.Map _json) { | 3325 InstancesExportRequest.fromJson(core.Map _json) { |
| 3325 if (_json.containsKey("exportContext")) { | 3326 if (_json.containsKey("exportContext")) { |
| 3326 exportContext = new ExportContext.fromJson(_json["exportContext"]); | 3327 exportContext = new ExportContext.fromJson(_json["exportContext"]); |
| 3327 } | 3328 } |
| 3328 } | 3329 } |
| 3329 | 3330 |
| 3330 core.Map toJson() { | 3331 core.Map<core.String, core.Object> toJson() { |
| 3331 var _json = new core.Map(); | 3332 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3332 if (exportContext != null) { | 3333 if (exportContext != null) { |
| 3333 _json["exportContext"] = (exportContext).toJson(); | 3334 _json["exportContext"] = (exportContext).toJson(); |
| 3334 } | 3335 } |
| 3335 return _json; | 3336 return _json; |
| 3336 } | 3337 } |
| 3337 } | 3338 } |
| 3338 | 3339 |
| 3339 /** Instance failover request. */ | 3340 /** Instance failover request. */ |
| 3340 class InstancesFailoverRequest { | 3341 class InstancesFailoverRequest { |
| 3341 /** Failover Context. */ | 3342 /** Failover Context. */ |
| 3342 FailoverContext failoverContext; | 3343 FailoverContext failoverContext; |
| 3343 | 3344 |
| 3344 InstancesFailoverRequest(); | 3345 InstancesFailoverRequest(); |
| 3345 | 3346 |
| 3346 InstancesFailoverRequest.fromJson(core.Map _json) { | 3347 InstancesFailoverRequest.fromJson(core.Map _json) { |
| 3347 if (_json.containsKey("failoverContext")) { | 3348 if (_json.containsKey("failoverContext")) { |
| 3348 failoverContext = new FailoverContext.fromJson(_json["failoverContext"]); | 3349 failoverContext = new FailoverContext.fromJson(_json["failoverContext"]); |
| 3349 } | 3350 } |
| 3350 } | 3351 } |
| 3351 | 3352 |
| 3352 core.Map toJson() { | 3353 core.Map<core.String, core.Object> toJson() { |
| 3353 var _json = new core.Map(); | 3354 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3354 if (failoverContext != null) { | 3355 if (failoverContext != null) { |
| 3355 _json["failoverContext"] = (failoverContext).toJson(); | 3356 _json["failoverContext"] = (failoverContext).toJson(); |
| 3356 } | 3357 } |
| 3357 return _json; | 3358 return _json; |
| 3358 } | 3359 } |
| 3359 } | 3360 } |
| 3360 | 3361 |
| 3361 /** Database instance import request. */ | 3362 /** Database instance import request. */ |
| 3362 class InstancesImportRequest { | 3363 class InstancesImportRequest { |
| 3363 /** Contains details about the import operation. */ | 3364 /** Contains details about the import operation. */ |
| 3364 ImportContext importContext; | 3365 ImportContext importContext; |
| 3365 | 3366 |
| 3366 InstancesImportRequest(); | 3367 InstancesImportRequest(); |
| 3367 | 3368 |
| 3368 InstancesImportRequest.fromJson(core.Map _json) { | 3369 InstancesImportRequest.fromJson(core.Map _json) { |
| 3369 if (_json.containsKey("importContext")) { | 3370 if (_json.containsKey("importContext")) { |
| 3370 importContext = new ImportContext.fromJson(_json["importContext"]); | 3371 importContext = new ImportContext.fromJson(_json["importContext"]); |
| 3371 } | 3372 } |
| 3372 } | 3373 } |
| 3373 | 3374 |
| 3374 core.Map toJson() { | 3375 core.Map<core.String, core.Object> toJson() { |
| 3375 var _json = new core.Map(); | 3376 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3376 if (importContext != null) { | 3377 if (importContext != null) { |
| 3377 _json["importContext"] = (importContext).toJson(); | 3378 _json["importContext"] = (importContext).toJson(); |
| 3378 } | 3379 } |
| 3379 return _json; | 3380 return _json; |
| 3380 } | 3381 } |
| 3381 } | 3382 } |
| 3382 | 3383 |
| 3383 /** Database instances list response. */ | 3384 /** Database instances list response. */ |
| 3384 class InstancesListResponse { | 3385 class InstancesListResponse { |
| 3385 /** List of database instance resources. */ | 3386 /** List of database instance resources. */ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 3399 items = _json["items"].map((value) => new DatabaseInstance.fromJson(value)
).toList(); | 3400 items = _json["items"].map((value) => new DatabaseInstance.fromJson(value)
).toList(); |
| 3400 } | 3401 } |
| 3401 if (_json.containsKey("kind")) { | 3402 if (_json.containsKey("kind")) { |
| 3402 kind = _json["kind"]; | 3403 kind = _json["kind"]; |
| 3403 } | 3404 } |
| 3404 if (_json.containsKey("nextPageToken")) { | 3405 if (_json.containsKey("nextPageToken")) { |
| 3405 nextPageToken = _json["nextPageToken"]; | 3406 nextPageToken = _json["nextPageToken"]; |
| 3406 } | 3407 } |
| 3407 } | 3408 } |
| 3408 | 3409 |
| 3409 core.Map toJson() { | 3410 core.Map<core.String, core.Object> toJson() { |
| 3410 var _json = new core.Map(); | 3411 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3411 if (items != null) { | 3412 if (items != null) { |
| 3412 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3413 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 3413 } | 3414 } |
| 3414 if (kind != null) { | 3415 if (kind != null) { |
| 3415 _json["kind"] = kind; | 3416 _json["kind"] = kind; |
| 3416 } | 3417 } |
| 3417 if (nextPageToken != null) { | 3418 if (nextPageToken != null) { |
| 3418 _json["nextPageToken"] = nextPageToken; | 3419 _json["nextPageToken"] = nextPageToken; |
| 3419 } | 3420 } |
| 3420 return _json; | 3421 return _json; |
| 3421 } | 3422 } |
| 3422 } | 3423 } |
| 3423 | 3424 |
| 3424 /** Database instance restore backup request. */ | 3425 /** Database instance restore backup request. */ |
| 3425 class InstancesRestoreBackupRequest { | 3426 class InstancesRestoreBackupRequest { |
| 3426 /** Parameters required to perform the restore backup operation. */ | 3427 /** Parameters required to perform the restore backup operation. */ |
| 3427 RestoreBackupContext restoreBackupContext; | 3428 RestoreBackupContext restoreBackupContext; |
| 3428 | 3429 |
| 3429 InstancesRestoreBackupRequest(); | 3430 InstancesRestoreBackupRequest(); |
| 3430 | 3431 |
| 3431 InstancesRestoreBackupRequest.fromJson(core.Map _json) { | 3432 InstancesRestoreBackupRequest.fromJson(core.Map _json) { |
| 3432 if (_json.containsKey("restoreBackupContext")) { | 3433 if (_json.containsKey("restoreBackupContext")) { |
| 3433 restoreBackupContext = new RestoreBackupContext.fromJson(_json["restoreBac
kupContext"]); | 3434 restoreBackupContext = new RestoreBackupContext.fromJson(_json["restoreBac
kupContext"]); |
| 3434 } | 3435 } |
| 3435 } | 3436 } |
| 3436 | 3437 |
| 3437 core.Map toJson() { | 3438 core.Map<core.String, core.Object> toJson() { |
| 3438 var _json = new core.Map(); | 3439 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3439 if (restoreBackupContext != null) { | 3440 if (restoreBackupContext != null) { |
| 3440 _json["restoreBackupContext"] = (restoreBackupContext).toJson(); | 3441 _json["restoreBackupContext"] = (restoreBackupContext).toJson(); |
| 3441 } | 3442 } |
| 3442 return _json; | 3443 return _json; |
| 3443 } | 3444 } |
| 3444 } | 3445 } |
| 3445 | 3446 |
| 3446 /** Instance truncate log request. */ | 3447 /** Instance truncate log request. */ |
| 3447 class InstancesTruncateLogRequest { | 3448 class InstancesTruncateLogRequest { |
| 3448 /** Contains details about the truncate log operation. */ | 3449 /** Contains details about the truncate log operation. */ |
| 3449 TruncateLogContext truncateLogContext; | 3450 TruncateLogContext truncateLogContext; |
| 3450 | 3451 |
| 3451 InstancesTruncateLogRequest(); | 3452 InstancesTruncateLogRequest(); |
| 3452 | 3453 |
| 3453 InstancesTruncateLogRequest.fromJson(core.Map _json) { | 3454 InstancesTruncateLogRequest.fromJson(core.Map _json) { |
| 3454 if (_json.containsKey("truncateLogContext")) { | 3455 if (_json.containsKey("truncateLogContext")) { |
| 3455 truncateLogContext = new TruncateLogContext.fromJson(_json["truncateLogCon
text"]); | 3456 truncateLogContext = new TruncateLogContext.fromJson(_json["truncateLogCon
text"]); |
| 3456 } | 3457 } |
| 3457 } | 3458 } |
| 3458 | 3459 |
| 3459 core.Map toJson() { | 3460 core.Map<core.String, core.Object> toJson() { |
| 3460 var _json = new core.Map(); | 3461 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3461 if (truncateLogContext != null) { | 3462 if (truncateLogContext != null) { |
| 3462 _json["truncateLogContext"] = (truncateLogContext).toJson(); | 3463 _json["truncateLogContext"] = (truncateLogContext).toJson(); |
| 3463 } | 3464 } |
| 3464 return _json; | 3465 return _json; |
| 3465 } | 3466 } |
| 3466 } | 3467 } |
| 3467 | 3468 |
| 3468 /** IP Management configuration. */ | 3469 /** IP Management configuration. */ |
| 3469 class IpConfiguration { | 3470 class IpConfiguration { |
| 3470 /** | 3471 /** |
| (...skipping 17 matching lines...) Expand all Loading... |
| 3488 authorizedNetworks = _json["authorizedNetworks"].map((value) => new AclEnt
ry.fromJson(value)).toList(); | 3489 authorizedNetworks = _json["authorizedNetworks"].map((value) => new AclEnt
ry.fromJson(value)).toList(); |
| 3489 } | 3490 } |
| 3490 if (_json.containsKey("ipv4Enabled")) { | 3491 if (_json.containsKey("ipv4Enabled")) { |
| 3491 ipv4Enabled = _json["ipv4Enabled"]; | 3492 ipv4Enabled = _json["ipv4Enabled"]; |
| 3492 } | 3493 } |
| 3493 if (_json.containsKey("requireSsl")) { | 3494 if (_json.containsKey("requireSsl")) { |
| 3494 requireSsl = _json["requireSsl"]; | 3495 requireSsl = _json["requireSsl"]; |
| 3495 } | 3496 } |
| 3496 } | 3497 } |
| 3497 | 3498 |
| 3498 core.Map toJson() { | 3499 core.Map<core.String, core.Object> toJson() { |
| 3499 var _json = new core.Map(); | 3500 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3500 if (authorizedNetworks != null) { | 3501 if (authorizedNetworks != null) { |
| 3501 _json["authorizedNetworks"] = authorizedNetworks.map((value) => (value).to
Json()).toList(); | 3502 _json["authorizedNetworks"] = authorizedNetworks.map((value) => (value).to
Json()).toList(); |
| 3502 } | 3503 } |
| 3503 if (ipv4Enabled != null) { | 3504 if (ipv4Enabled != null) { |
| 3504 _json["ipv4Enabled"] = ipv4Enabled; | 3505 _json["ipv4Enabled"] = ipv4Enabled; |
| 3505 } | 3506 } |
| 3506 if (requireSsl != null) { | 3507 if (requireSsl != null) { |
| 3507 _json["requireSsl"] = requireSsl; | 3508 _json["requireSsl"] = requireSsl; |
| 3508 } | 3509 } |
| 3509 return _json; | 3510 return _json; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 3534 ipAddress = _json["ipAddress"]; | 3535 ipAddress = _json["ipAddress"]; |
| 3535 } | 3536 } |
| 3536 if (_json.containsKey("timeToRetire")) { | 3537 if (_json.containsKey("timeToRetire")) { |
| 3537 timeToRetire = core.DateTime.parse(_json["timeToRetire"]); | 3538 timeToRetire = core.DateTime.parse(_json["timeToRetire"]); |
| 3538 } | 3539 } |
| 3539 if (_json.containsKey("type")) { | 3540 if (_json.containsKey("type")) { |
| 3540 type = _json["type"]; | 3541 type = _json["type"]; |
| 3541 } | 3542 } |
| 3542 } | 3543 } |
| 3543 | 3544 |
| 3544 core.Map toJson() { | 3545 core.Map<core.String, core.Object> toJson() { |
| 3545 var _json = new core.Map(); | 3546 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3546 if (ipAddress != null) { | 3547 if (ipAddress != null) { |
| 3547 _json["ipAddress"] = ipAddress; | 3548 _json["ipAddress"] = ipAddress; |
| 3548 } | 3549 } |
| 3549 if (timeToRetire != null) { | 3550 if (timeToRetire != null) { |
| 3550 _json["timeToRetire"] = (timeToRetire).toIso8601String(); | 3551 _json["timeToRetire"] = (timeToRetire).toIso8601String(); |
| 3551 } | 3552 } |
| 3552 if (type != null) { | 3553 if (type != null) { |
| 3553 _json["type"] = type; | 3554 _json["type"] = type; |
| 3554 } | 3555 } |
| 3555 return _json; | 3556 return _json; |
| 3556 } | 3557 } |
| 3557 } | 3558 } |
| 3558 | 3559 |
| 3559 /** Reserved for future use. */ | |
| 3560 class Labels { | |
| 3561 /** Reserved for future use. */ | |
| 3562 core.String key; | |
| 3563 /** Reserved for future use. */ | |
| 3564 core.String value; | |
| 3565 | |
| 3566 Labels(); | |
| 3567 | |
| 3568 Labels.fromJson(core.Map _json) { | |
| 3569 if (_json.containsKey("key")) { | |
| 3570 key = _json["key"]; | |
| 3571 } | |
| 3572 if (_json.containsKey("value")) { | |
| 3573 value = _json["value"]; | |
| 3574 } | |
| 3575 } | |
| 3576 | |
| 3577 core.Map toJson() { | |
| 3578 var _json = new core.Map(); | |
| 3579 if (key != null) { | |
| 3580 _json["key"] = key; | |
| 3581 } | |
| 3582 if (value != null) { | |
| 3583 _json["value"] = value; | |
| 3584 } | |
| 3585 return _json; | |
| 3586 } | |
| 3587 } | |
| 3588 | |
| 3589 /** | 3560 /** |
| 3590 * Preferred location. This specifies where a Cloud SQL instance should | 3561 * Preferred location. This specifies where a Cloud SQL instance should |
| 3591 * preferably be located, either in a specific Compute Engine zone, or | 3562 * preferably be located, either in a specific Compute Engine zone, or |
| 3592 * co-located with an App Engine application. Note that if the preferred | 3563 * co-located with an App Engine application. Note that if the preferred |
| 3593 * location is not available, the instance will be located as close as possible | 3564 * location is not available, the instance will be located as close as possible |
| 3594 * within the region. Only one location may be specified. | 3565 * within the region. Only one location may be specified. |
| 3595 */ | 3566 */ |
| 3596 class LocationPreference { | 3567 class LocationPreference { |
| 3597 /** | 3568 /** |
| 3598 * The AppEngine application to follow, it must be in the same region as the | 3569 * The AppEngine application to follow, it must be in the same region as the |
| (...skipping 14 matching lines...) Expand all Loading... |
| 3613 followGaeApplication = _json["followGaeApplication"]; | 3584 followGaeApplication = _json["followGaeApplication"]; |
| 3614 } | 3585 } |
| 3615 if (_json.containsKey("kind")) { | 3586 if (_json.containsKey("kind")) { |
| 3616 kind = _json["kind"]; | 3587 kind = _json["kind"]; |
| 3617 } | 3588 } |
| 3618 if (_json.containsKey("zone")) { | 3589 if (_json.containsKey("zone")) { |
| 3619 zone = _json["zone"]; | 3590 zone = _json["zone"]; |
| 3620 } | 3591 } |
| 3621 } | 3592 } |
| 3622 | 3593 |
| 3623 core.Map toJson() { | 3594 core.Map<core.String, core.Object> toJson() { |
| 3624 var _json = new core.Map(); | 3595 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3625 if (followGaeApplication != null) { | 3596 if (followGaeApplication != null) { |
| 3626 _json["followGaeApplication"] = followGaeApplication; | 3597 _json["followGaeApplication"] = followGaeApplication; |
| 3627 } | 3598 } |
| 3628 if (kind != null) { | 3599 if (kind != null) { |
| 3629 _json["kind"] = kind; | 3600 _json["kind"] = kind; |
| 3630 } | 3601 } |
| 3631 if (zone != null) { | 3602 if (zone != null) { |
| 3632 _json["zone"] = zone; | 3603 _json["zone"] = zone; |
| 3633 } | 3604 } |
| 3634 return _json; | 3605 return _json; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 3658 hour = _json["hour"]; | 3629 hour = _json["hour"]; |
| 3659 } | 3630 } |
| 3660 if (_json.containsKey("kind")) { | 3631 if (_json.containsKey("kind")) { |
| 3661 kind = _json["kind"]; | 3632 kind = _json["kind"]; |
| 3662 } | 3633 } |
| 3663 if (_json.containsKey("updateTrack")) { | 3634 if (_json.containsKey("updateTrack")) { |
| 3664 updateTrack = _json["updateTrack"]; | 3635 updateTrack = _json["updateTrack"]; |
| 3665 } | 3636 } |
| 3666 } | 3637 } |
| 3667 | 3638 |
| 3668 core.Map toJson() { | 3639 core.Map<core.String, core.Object> toJson() { |
| 3669 var _json = new core.Map(); | 3640 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3670 if (day != null) { | 3641 if (day != null) { |
| 3671 _json["day"] = day; | 3642 _json["day"] = day; |
| 3672 } | 3643 } |
| 3673 if (hour != null) { | 3644 if (hour != null) { |
| 3674 _json["hour"] = hour; | 3645 _json["hour"] = hour; |
| 3675 } | 3646 } |
| 3676 if (kind != null) { | 3647 if (kind != null) { |
| 3677 _json["kind"] = kind; | 3648 _json["kind"] = kind; |
| 3678 } | 3649 } |
| 3679 if (updateTrack != null) { | 3650 if (updateTrack != null) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3753 sslCipher = _json["sslCipher"]; | 3724 sslCipher = _json["sslCipher"]; |
| 3754 } | 3725 } |
| 3755 if (_json.containsKey("username")) { | 3726 if (_json.containsKey("username")) { |
| 3756 username = _json["username"]; | 3727 username = _json["username"]; |
| 3757 } | 3728 } |
| 3758 if (_json.containsKey("verifyServerCertificate")) { | 3729 if (_json.containsKey("verifyServerCertificate")) { |
| 3759 verifyServerCertificate = _json["verifyServerCertificate"]; | 3730 verifyServerCertificate = _json["verifyServerCertificate"]; |
| 3760 } | 3731 } |
| 3761 } | 3732 } |
| 3762 | 3733 |
| 3763 core.Map toJson() { | 3734 core.Map<core.String, core.Object> toJson() { |
| 3764 var _json = new core.Map(); | 3735 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3765 if (caCertificate != null) { | 3736 if (caCertificate != null) { |
| 3766 _json["caCertificate"] = caCertificate; | 3737 _json["caCertificate"] = caCertificate; |
| 3767 } | 3738 } |
| 3768 if (clientCertificate != null) { | 3739 if (clientCertificate != null) { |
| 3769 _json["clientCertificate"] = clientCertificate; | 3740 _json["clientCertificate"] = clientCertificate; |
| 3770 } | 3741 } |
| 3771 if (clientKey != null) { | 3742 if (clientKey != null) { |
| 3772 _json["clientKey"] = clientKey; | 3743 _json["clientKey"] = clientKey; |
| 3773 } | 3744 } |
| 3774 if (connectRetryInterval != null) { | 3745 if (connectRetryInterval != null) { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3810 | 3781 |
| 3811 OnPremisesConfiguration.fromJson(core.Map _json) { | 3782 OnPremisesConfiguration.fromJson(core.Map _json) { |
| 3812 if (_json.containsKey("hostPort")) { | 3783 if (_json.containsKey("hostPort")) { |
| 3813 hostPort = _json["hostPort"]; | 3784 hostPort = _json["hostPort"]; |
| 3814 } | 3785 } |
| 3815 if (_json.containsKey("kind")) { | 3786 if (_json.containsKey("kind")) { |
| 3816 kind = _json["kind"]; | 3787 kind = _json["kind"]; |
| 3817 } | 3788 } |
| 3818 } | 3789 } |
| 3819 | 3790 |
| 3820 core.Map toJson() { | 3791 core.Map<core.String, core.Object> toJson() { |
| 3821 var _json = new core.Map(); | 3792 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3822 if (hostPort != null) { | 3793 if (hostPort != null) { |
| 3823 _json["hostPort"] = hostPort; | 3794 _json["hostPort"] = hostPort; |
| 3824 } | 3795 } |
| 3825 if (kind != null) { | 3796 if (kind != null) { |
| 3826 _json["kind"] = kind; | 3797 _json["kind"] = kind; |
| 3827 } | 3798 } |
| 3828 return _json; | 3799 return _json; |
| 3829 } | 3800 } |
| 3830 } | 3801 } |
| 3831 | 3802 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3932 targetLink = _json["targetLink"]; | 3903 targetLink = _json["targetLink"]; |
| 3933 } | 3904 } |
| 3934 if (_json.containsKey("targetProject")) { | 3905 if (_json.containsKey("targetProject")) { |
| 3935 targetProject = _json["targetProject"]; | 3906 targetProject = _json["targetProject"]; |
| 3936 } | 3907 } |
| 3937 if (_json.containsKey("user")) { | 3908 if (_json.containsKey("user")) { |
| 3938 user = _json["user"]; | 3909 user = _json["user"]; |
| 3939 } | 3910 } |
| 3940 } | 3911 } |
| 3941 | 3912 |
| 3942 core.Map toJson() { | 3913 core.Map<core.String, core.Object> toJson() { |
| 3943 var _json = new core.Map(); | 3914 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 3944 if (endTime != null) { | 3915 if (endTime != null) { |
| 3945 _json["endTime"] = (endTime).toIso8601String(); | 3916 _json["endTime"] = (endTime).toIso8601String(); |
| 3946 } | 3917 } |
| 3947 if (error != null) { | 3918 if (error != null) { |
| 3948 _json["error"] = (error).toJson(); | 3919 _json["error"] = (error).toJson(); |
| 3949 } | 3920 } |
| 3950 if (exportContext != null) { | 3921 if (exportContext != null) { |
| 3951 _json["exportContext"] = (exportContext).toJson(); | 3922 _json["exportContext"] = (exportContext).toJson(); |
| 3952 } | 3923 } |
| 3953 if (importContext != null) { | 3924 if (importContext != null) { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4006 code = _json["code"]; | 3977 code = _json["code"]; |
| 4007 } | 3978 } |
| 4008 if (_json.containsKey("kind")) { | 3979 if (_json.containsKey("kind")) { |
| 4009 kind = _json["kind"]; | 3980 kind = _json["kind"]; |
| 4010 } | 3981 } |
| 4011 if (_json.containsKey("message")) { | 3982 if (_json.containsKey("message")) { |
| 4012 message = _json["message"]; | 3983 message = _json["message"]; |
| 4013 } | 3984 } |
| 4014 } | 3985 } |
| 4015 | 3986 |
| 4016 core.Map toJson() { | 3987 core.Map<core.String, core.Object> toJson() { |
| 4017 var _json = new core.Map(); | 3988 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4018 if (code != null) { | 3989 if (code != null) { |
| 4019 _json["code"] = code; | 3990 _json["code"] = code; |
| 4020 } | 3991 } |
| 4021 if (kind != null) { | 3992 if (kind != null) { |
| 4022 _json["kind"] = kind; | 3993 _json["kind"] = kind; |
| 4023 } | 3994 } |
| 4024 if (message != null) { | 3995 if (message != null) { |
| 4025 _json["message"] = message; | 3996 _json["message"] = message; |
| 4026 } | 3997 } |
| 4027 return _json; | 3998 return _json; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4039 | 4010 |
| 4040 OperationErrors.fromJson(core.Map _json) { | 4011 OperationErrors.fromJson(core.Map _json) { |
| 4041 if (_json.containsKey("errors")) { | 4012 if (_json.containsKey("errors")) { |
| 4042 errors = _json["errors"].map((value) => new OperationError.fromJson(value)
).toList(); | 4013 errors = _json["errors"].map((value) => new OperationError.fromJson(value)
).toList(); |
| 4043 } | 4014 } |
| 4044 if (_json.containsKey("kind")) { | 4015 if (_json.containsKey("kind")) { |
| 4045 kind = _json["kind"]; | 4016 kind = _json["kind"]; |
| 4046 } | 4017 } |
| 4047 } | 4018 } |
| 4048 | 4019 |
| 4049 core.Map toJson() { | 4020 core.Map<core.String, core.Object> toJson() { |
| 4050 var _json = new core.Map(); | 4021 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4051 if (errors != null) { | 4022 if (errors != null) { |
| 4052 _json["errors"] = errors.map((value) => (value).toJson()).toList(); | 4023 _json["errors"] = errors.map((value) => (value).toJson()).toList(); |
| 4053 } | 4024 } |
| 4054 if (kind != null) { | 4025 if (kind != null) { |
| 4055 _json["kind"] = kind; | 4026 _json["kind"] = kind; |
| 4056 } | 4027 } |
| 4057 return _json; | 4028 return _json; |
| 4058 } | 4029 } |
| 4059 } | 4030 } |
| 4060 | 4031 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4077 items = _json["items"].map((value) => new Operation.fromJson(value)).toLis
t(); | 4048 items = _json["items"].map((value) => new Operation.fromJson(value)).toLis
t(); |
| 4078 } | 4049 } |
| 4079 if (_json.containsKey("kind")) { | 4050 if (_json.containsKey("kind")) { |
| 4080 kind = _json["kind"]; | 4051 kind = _json["kind"]; |
| 4081 } | 4052 } |
| 4082 if (_json.containsKey("nextPageToken")) { | 4053 if (_json.containsKey("nextPageToken")) { |
| 4083 nextPageToken = _json["nextPageToken"]; | 4054 nextPageToken = _json["nextPageToken"]; |
| 4084 } | 4055 } |
| 4085 } | 4056 } |
| 4086 | 4057 |
| 4087 core.Map toJson() { | 4058 core.Map<core.String, core.Object> toJson() { |
| 4088 var _json = new core.Map(); | 4059 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4089 if (items != null) { | 4060 if (items != null) { |
| 4090 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4061 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 4091 } | 4062 } |
| 4092 if (kind != null) { | 4063 if (kind != null) { |
| 4093 _json["kind"] = kind; | 4064 _json["kind"] = kind; |
| 4094 } | 4065 } |
| 4095 if (nextPageToken != null) { | 4066 if (nextPageToken != null) { |
| 4096 _json["nextPageToken"] = nextPageToken; | 4067 _json["nextPageToken"] = nextPageToken; |
| 4097 } | 4068 } |
| 4098 return _json; | 4069 return _json; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 4129 failoverTarget = _json["failoverTarget"]; | 4100 failoverTarget = _json["failoverTarget"]; |
| 4130 } | 4101 } |
| 4131 if (_json.containsKey("kind")) { | 4102 if (_json.containsKey("kind")) { |
| 4132 kind = _json["kind"]; | 4103 kind = _json["kind"]; |
| 4133 } | 4104 } |
| 4134 if (_json.containsKey("mysqlReplicaConfiguration")) { | 4105 if (_json.containsKey("mysqlReplicaConfiguration")) { |
| 4135 mysqlReplicaConfiguration = new MySqlReplicaConfiguration.fromJson(_json["
mysqlReplicaConfiguration"]); | 4106 mysqlReplicaConfiguration = new MySqlReplicaConfiguration.fromJson(_json["
mysqlReplicaConfiguration"]); |
| 4136 } | 4107 } |
| 4137 } | 4108 } |
| 4138 | 4109 |
| 4139 core.Map toJson() { | 4110 core.Map<core.String, core.Object> toJson() { |
| 4140 var _json = new core.Map(); | 4111 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4141 if (failoverTarget != null) { | 4112 if (failoverTarget != null) { |
| 4142 _json["failoverTarget"] = failoverTarget; | 4113 _json["failoverTarget"] = failoverTarget; |
| 4143 } | 4114 } |
| 4144 if (kind != null) { | 4115 if (kind != null) { |
| 4145 _json["kind"] = kind; | 4116 _json["kind"] = kind; |
| 4146 } | 4117 } |
| 4147 if (mysqlReplicaConfiguration != null) { | 4118 if (mysqlReplicaConfiguration != null) { |
| 4148 _json["mysqlReplicaConfiguration"] = (mysqlReplicaConfiguration).toJson(); | 4119 _json["mysqlReplicaConfiguration"] = (mysqlReplicaConfiguration).toJson(); |
| 4149 } | 4120 } |
| 4150 return _json; | 4121 return _json; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 4167 backupRunId = _json["backupRunId"]; | 4138 backupRunId = _json["backupRunId"]; |
| 4168 } | 4139 } |
| 4169 if (_json.containsKey("instanceId")) { | 4140 if (_json.containsKey("instanceId")) { |
| 4170 instanceId = _json["instanceId"]; | 4141 instanceId = _json["instanceId"]; |
| 4171 } | 4142 } |
| 4172 if (_json.containsKey("kind")) { | 4143 if (_json.containsKey("kind")) { |
| 4173 kind = _json["kind"]; | 4144 kind = _json["kind"]; |
| 4174 } | 4145 } |
| 4175 } | 4146 } |
| 4176 | 4147 |
| 4177 core.Map toJson() { | 4148 core.Map<core.String, core.Object> toJson() { |
| 4178 var _json = new core.Map(); | 4149 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4179 if (backupRunId != null) { | 4150 if (backupRunId != null) { |
| 4180 _json["backupRunId"] = backupRunId; | 4151 _json["backupRunId"] = backupRunId; |
| 4181 } | 4152 } |
| 4182 if (instanceId != null) { | 4153 if (instanceId != null) { |
| 4183 _json["instanceId"] = instanceId; | 4154 _json["instanceId"] = instanceId; |
| 4184 } | 4155 } |
| 4185 if (kind != null) { | 4156 if (kind != null) { |
| 4186 _json["kind"] = kind; | 4157 _json["kind"] = kind; |
| 4187 } | 4158 } |
| 4188 return _json; | 4159 return _json; |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4238 */ | 4209 */ |
| 4239 core.bool databaseReplicationEnabled; | 4210 core.bool databaseReplicationEnabled; |
| 4240 /** | 4211 /** |
| 4241 * The settings for IP Management. This allows to enable or disable the | 4212 * The settings for IP Management. This allows to enable or disable the |
| 4242 * instance IP and manage which external networks can connect to the instance. | 4213 * instance IP and manage which external networks can connect to the instance. |
| 4243 * The IPv4 address cannot be disabled for Second Generation instances. | 4214 * The IPv4 address cannot be disabled for Second Generation instances. |
| 4244 */ | 4215 */ |
| 4245 IpConfiguration ipConfiguration; | 4216 IpConfiguration ipConfiguration; |
| 4246 /** This is always sql#settings. */ | 4217 /** This is always sql#settings. */ |
| 4247 core.String kind; | 4218 core.String kind; |
| 4248 /** Reserved for future use. */ | |
| 4249 core.List<Labels> labels; | |
| 4250 /** | 4219 /** |
| 4251 * The location preference settings. This allows the instance to be located as | 4220 * The location preference settings. This allows the instance to be located as |
| 4252 * near as possible to either an App Engine app or GCE zone for better | 4221 * near as possible to either an App Engine app or GCE zone for better |
| 4253 * performance. App Engine co-location is only applicable to First Generation | 4222 * performance. App Engine co-location is only applicable to First Generation |
| 4254 * instances. | 4223 * instances. |
| 4255 */ | 4224 */ |
| 4256 LocationPreference locationPreference; | 4225 LocationPreference locationPreference; |
| 4257 /** | 4226 /** |
| 4258 * The maintenance window for this instance. This specifies when the instance | 4227 * The maintenance window for this instance. This specifies when the instance |
| 4259 * may be restarted for maintenance purposes. Applies only to Second | 4228 * may be restarted for maintenance purposes. Applies only to Second |
| (...skipping 27 matching lines...) Expand all Loading... |
| 4287 * The maximum size to which storage capacity can be automatically increased. | 4256 * The maximum size to which storage capacity can be automatically increased. |
| 4288 * The default value is 0, which specifies that there is no limit. Applies | 4257 * The default value is 0, which specifies that there is no limit. Applies |
| 4289 * only to Second Generation instances. | 4258 * only to Second Generation instances. |
| 4290 */ | 4259 */ |
| 4291 core.String storageAutoResizeLimit; | 4260 core.String storageAutoResizeLimit; |
| 4292 /** | 4261 /** |
| 4293 * The tier of service for this instance, for example D1, D2. For more | 4262 * The tier of service for this instance, for example D1, D2. For more |
| 4294 * information, see pricing. | 4263 * information, see pricing. |
| 4295 */ | 4264 */ |
| 4296 core.String tier; | 4265 core.String tier; |
| 4266 /** |
| 4267 * User-provided labels, represented as a dictionary where each label is a |
| 4268 * single key value pair. |
| 4269 */ |
| 4270 core.Map<core.String, core.String> userLabels; |
| 4297 | 4271 |
| 4298 Settings(); | 4272 Settings(); |
| 4299 | 4273 |
| 4300 Settings.fromJson(core.Map _json) { | 4274 Settings.fromJson(core.Map _json) { |
| 4301 if (_json.containsKey("activationPolicy")) { | 4275 if (_json.containsKey("activationPolicy")) { |
| 4302 activationPolicy = _json["activationPolicy"]; | 4276 activationPolicy = _json["activationPolicy"]; |
| 4303 } | 4277 } |
| 4304 if (_json.containsKey("authorizedGaeApplications")) { | 4278 if (_json.containsKey("authorizedGaeApplications")) { |
| 4305 authorizedGaeApplications = _json["authorizedGaeApplications"]; | 4279 authorizedGaeApplications = _json["authorizedGaeApplications"]; |
| 4306 } | 4280 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4324 } | 4298 } |
| 4325 if (_json.containsKey("databaseReplicationEnabled")) { | 4299 if (_json.containsKey("databaseReplicationEnabled")) { |
| 4326 databaseReplicationEnabled = _json["databaseReplicationEnabled"]; | 4300 databaseReplicationEnabled = _json["databaseReplicationEnabled"]; |
| 4327 } | 4301 } |
| 4328 if (_json.containsKey("ipConfiguration")) { | 4302 if (_json.containsKey("ipConfiguration")) { |
| 4329 ipConfiguration = new IpConfiguration.fromJson(_json["ipConfiguration"]); | 4303 ipConfiguration = new IpConfiguration.fromJson(_json["ipConfiguration"]); |
| 4330 } | 4304 } |
| 4331 if (_json.containsKey("kind")) { | 4305 if (_json.containsKey("kind")) { |
| 4332 kind = _json["kind"]; | 4306 kind = _json["kind"]; |
| 4333 } | 4307 } |
| 4334 if (_json.containsKey("labels")) { | |
| 4335 labels = _json["labels"].map((value) => new Labels.fromJson(value)).toList
(); | |
| 4336 } | |
| 4337 if (_json.containsKey("locationPreference")) { | 4308 if (_json.containsKey("locationPreference")) { |
| 4338 locationPreference = new LocationPreference.fromJson(_json["locationPrefer
ence"]); | 4309 locationPreference = new LocationPreference.fromJson(_json["locationPrefer
ence"]); |
| 4339 } | 4310 } |
| 4340 if (_json.containsKey("maintenanceWindow")) { | 4311 if (_json.containsKey("maintenanceWindow")) { |
| 4341 maintenanceWindow = new MaintenanceWindow.fromJson(_json["maintenanceWindo
w"]); | 4312 maintenanceWindow = new MaintenanceWindow.fromJson(_json["maintenanceWindo
w"]); |
| 4342 } | 4313 } |
| 4343 if (_json.containsKey("pricingPlan")) { | 4314 if (_json.containsKey("pricingPlan")) { |
| 4344 pricingPlan = _json["pricingPlan"]; | 4315 pricingPlan = _json["pricingPlan"]; |
| 4345 } | 4316 } |
| 4346 if (_json.containsKey("replicationType")) { | 4317 if (_json.containsKey("replicationType")) { |
| 4347 replicationType = _json["replicationType"]; | 4318 replicationType = _json["replicationType"]; |
| 4348 } | 4319 } |
| 4349 if (_json.containsKey("settingsVersion")) { | 4320 if (_json.containsKey("settingsVersion")) { |
| 4350 settingsVersion = _json["settingsVersion"]; | 4321 settingsVersion = _json["settingsVersion"]; |
| 4351 } | 4322 } |
| 4352 if (_json.containsKey("storageAutoResize")) { | 4323 if (_json.containsKey("storageAutoResize")) { |
| 4353 storageAutoResize = _json["storageAutoResize"]; | 4324 storageAutoResize = _json["storageAutoResize"]; |
| 4354 } | 4325 } |
| 4355 if (_json.containsKey("storageAutoResizeLimit")) { | 4326 if (_json.containsKey("storageAutoResizeLimit")) { |
| 4356 storageAutoResizeLimit = _json["storageAutoResizeLimit"]; | 4327 storageAutoResizeLimit = _json["storageAutoResizeLimit"]; |
| 4357 } | 4328 } |
| 4358 if (_json.containsKey("tier")) { | 4329 if (_json.containsKey("tier")) { |
| 4359 tier = _json["tier"]; | 4330 tier = _json["tier"]; |
| 4360 } | 4331 } |
| 4332 if (_json.containsKey("userLabels")) { |
| 4333 userLabels = _json["userLabels"]; |
| 4334 } |
| 4361 } | 4335 } |
| 4362 | 4336 |
| 4363 core.Map toJson() { | 4337 core.Map<core.String, core.Object> toJson() { |
| 4364 var _json = new core.Map(); | 4338 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4365 if (activationPolicy != null) { | 4339 if (activationPolicy != null) { |
| 4366 _json["activationPolicy"] = activationPolicy; | 4340 _json["activationPolicy"] = activationPolicy; |
| 4367 } | 4341 } |
| 4368 if (authorizedGaeApplications != null) { | 4342 if (authorizedGaeApplications != null) { |
| 4369 _json["authorizedGaeApplications"] = authorizedGaeApplications; | 4343 _json["authorizedGaeApplications"] = authorizedGaeApplications; |
| 4370 } | 4344 } |
| 4371 if (availabilityType != null) { | 4345 if (availabilityType != null) { |
| 4372 _json["availabilityType"] = availabilityType; | 4346 _json["availabilityType"] = availabilityType; |
| 4373 } | 4347 } |
| 4374 if (backupConfiguration != null) { | 4348 if (backupConfiguration != null) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 4388 } | 4362 } |
| 4389 if (databaseReplicationEnabled != null) { | 4363 if (databaseReplicationEnabled != null) { |
| 4390 _json["databaseReplicationEnabled"] = databaseReplicationEnabled; | 4364 _json["databaseReplicationEnabled"] = databaseReplicationEnabled; |
| 4391 } | 4365 } |
| 4392 if (ipConfiguration != null) { | 4366 if (ipConfiguration != null) { |
| 4393 _json["ipConfiguration"] = (ipConfiguration).toJson(); | 4367 _json["ipConfiguration"] = (ipConfiguration).toJson(); |
| 4394 } | 4368 } |
| 4395 if (kind != null) { | 4369 if (kind != null) { |
| 4396 _json["kind"] = kind; | 4370 _json["kind"] = kind; |
| 4397 } | 4371 } |
| 4398 if (labels != null) { | |
| 4399 _json["labels"] = labels.map((value) => (value).toJson()).toList(); | |
| 4400 } | |
| 4401 if (locationPreference != null) { | 4372 if (locationPreference != null) { |
| 4402 _json["locationPreference"] = (locationPreference).toJson(); | 4373 _json["locationPreference"] = (locationPreference).toJson(); |
| 4403 } | 4374 } |
| 4404 if (maintenanceWindow != null) { | 4375 if (maintenanceWindow != null) { |
| 4405 _json["maintenanceWindow"] = (maintenanceWindow).toJson(); | 4376 _json["maintenanceWindow"] = (maintenanceWindow).toJson(); |
| 4406 } | 4377 } |
| 4407 if (pricingPlan != null) { | 4378 if (pricingPlan != null) { |
| 4408 _json["pricingPlan"] = pricingPlan; | 4379 _json["pricingPlan"] = pricingPlan; |
| 4409 } | 4380 } |
| 4410 if (replicationType != null) { | 4381 if (replicationType != null) { |
| 4411 _json["replicationType"] = replicationType; | 4382 _json["replicationType"] = replicationType; |
| 4412 } | 4383 } |
| 4413 if (settingsVersion != null) { | 4384 if (settingsVersion != null) { |
| 4414 _json["settingsVersion"] = settingsVersion; | 4385 _json["settingsVersion"] = settingsVersion; |
| 4415 } | 4386 } |
| 4416 if (storageAutoResize != null) { | 4387 if (storageAutoResize != null) { |
| 4417 _json["storageAutoResize"] = storageAutoResize; | 4388 _json["storageAutoResize"] = storageAutoResize; |
| 4418 } | 4389 } |
| 4419 if (storageAutoResizeLimit != null) { | 4390 if (storageAutoResizeLimit != null) { |
| 4420 _json["storageAutoResizeLimit"] = storageAutoResizeLimit; | 4391 _json["storageAutoResizeLimit"] = storageAutoResizeLimit; |
| 4421 } | 4392 } |
| 4422 if (tier != null) { | 4393 if (tier != null) { |
| 4423 _json["tier"] = tier; | 4394 _json["tier"] = tier; |
| 4424 } | 4395 } |
| 4396 if (userLabels != null) { |
| 4397 _json["userLabels"] = userLabels; |
| 4398 } |
| 4425 return _json; | 4399 return _json; |
| 4426 } | 4400 } |
| 4427 } | 4401 } |
| 4428 | 4402 |
| 4429 /** SslCerts Resource */ | 4403 /** SslCerts Resource */ |
| 4430 class SslCert { | 4404 class SslCert { |
| 4431 /** PEM representation. */ | 4405 /** PEM representation. */ |
| 4432 core.String cert; | 4406 core.String cert; |
| 4433 /** Serial number, as extracted from the certificate. */ | 4407 /** Serial number, as extracted from the certificate. */ |
| 4434 core.String certSerialNumber; | 4408 core.String certSerialNumber; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4478 kind = _json["kind"]; | 4452 kind = _json["kind"]; |
| 4479 } | 4453 } |
| 4480 if (_json.containsKey("selfLink")) { | 4454 if (_json.containsKey("selfLink")) { |
| 4481 selfLink = _json["selfLink"]; | 4455 selfLink = _json["selfLink"]; |
| 4482 } | 4456 } |
| 4483 if (_json.containsKey("sha1Fingerprint")) { | 4457 if (_json.containsKey("sha1Fingerprint")) { |
| 4484 sha1Fingerprint = _json["sha1Fingerprint"]; | 4458 sha1Fingerprint = _json["sha1Fingerprint"]; |
| 4485 } | 4459 } |
| 4486 } | 4460 } |
| 4487 | 4461 |
| 4488 core.Map toJson() { | 4462 core.Map<core.String, core.Object> toJson() { |
| 4489 var _json = new core.Map(); | 4463 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4490 if (cert != null) { | 4464 if (cert != null) { |
| 4491 _json["cert"] = cert; | 4465 _json["cert"] = cert; |
| 4492 } | 4466 } |
| 4493 if (certSerialNumber != null) { | 4467 if (certSerialNumber != null) { |
| 4494 _json["certSerialNumber"] = certSerialNumber; | 4468 _json["certSerialNumber"] = certSerialNumber; |
| 4495 } | 4469 } |
| 4496 if (commonName != null) { | 4470 if (commonName != null) { |
| 4497 _json["commonName"] = commonName; | 4471 _json["commonName"] = commonName; |
| 4498 } | 4472 } |
| 4499 if (createTime != null) { | 4473 if (createTime != null) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4532 | 4506 |
| 4533 SslCertDetail.fromJson(core.Map _json) { | 4507 SslCertDetail.fromJson(core.Map _json) { |
| 4534 if (_json.containsKey("certInfo")) { | 4508 if (_json.containsKey("certInfo")) { |
| 4535 certInfo = new SslCert.fromJson(_json["certInfo"]); | 4509 certInfo = new SslCert.fromJson(_json["certInfo"]); |
| 4536 } | 4510 } |
| 4537 if (_json.containsKey("certPrivateKey")) { | 4511 if (_json.containsKey("certPrivateKey")) { |
| 4538 certPrivateKey = _json["certPrivateKey"]; | 4512 certPrivateKey = _json["certPrivateKey"]; |
| 4539 } | 4513 } |
| 4540 } | 4514 } |
| 4541 | 4515 |
| 4542 core.Map toJson() { | 4516 core.Map<core.String, core.Object> toJson() { |
| 4543 var _json = new core.Map(); | 4517 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4544 if (certInfo != null) { | 4518 if (certInfo != null) { |
| 4545 _json["certInfo"] = (certInfo).toJson(); | 4519 _json["certInfo"] = (certInfo).toJson(); |
| 4546 } | 4520 } |
| 4547 if (certPrivateKey != null) { | 4521 if (certPrivateKey != null) { |
| 4548 _json["certPrivateKey"] = certPrivateKey; | 4522 _json["certPrivateKey"] = certPrivateKey; |
| 4549 } | 4523 } |
| 4550 return _json; | 4524 return _json; |
| 4551 } | 4525 } |
| 4552 } | 4526 } |
| 4553 | 4527 |
| 4554 /** SslCerts create ephemeral certificate request. */ | 4528 /** SslCerts create ephemeral certificate request. */ |
| 4555 class SslCertsCreateEphemeralRequest { | 4529 class SslCertsCreateEphemeralRequest { |
| 4556 /** PEM encoded public key to include in the signed certificate. */ | 4530 /** PEM encoded public key to include in the signed certificate. */ |
| 4557 core.String publicKey; | 4531 core.String publicKey; |
| 4558 | 4532 |
| 4559 SslCertsCreateEphemeralRequest(); | 4533 SslCertsCreateEphemeralRequest(); |
| 4560 | 4534 |
| 4561 SslCertsCreateEphemeralRequest.fromJson(core.Map _json) { | 4535 SslCertsCreateEphemeralRequest.fromJson(core.Map _json) { |
| 4562 if (_json.containsKey("public_key")) { | 4536 if (_json.containsKey("public_key")) { |
| 4563 publicKey = _json["public_key"]; | 4537 publicKey = _json["public_key"]; |
| 4564 } | 4538 } |
| 4565 } | 4539 } |
| 4566 | 4540 |
| 4567 core.Map toJson() { | 4541 core.Map<core.String, core.Object> toJson() { |
| 4568 var _json = new core.Map(); | 4542 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4569 if (publicKey != null) { | 4543 if (publicKey != null) { |
| 4570 _json["public_key"] = publicKey; | 4544 _json["public_key"] = publicKey; |
| 4571 } | 4545 } |
| 4572 return _json; | 4546 return _json; |
| 4573 } | 4547 } |
| 4574 } | 4548 } |
| 4575 | 4549 |
| 4576 /** SslCerts insert request. */ | 4550 /** SslCerts insert request. */ |
| 4577 class SslCertsInsertRequest { | 4551 class SslCertsInsertRequest { |
| 4578 /** | 4552 /** |
| 4579 * User supplied name. Must be a distinct name from the other certificates for | 4553 * User supplied name. Must be a distinct name from the other certificates for |
| 4580 * this instance. New certificates will not be usable until the instance is | 4554 * this instance. New certificates will not be usable until the instance is |
| 4581 * restarted. | 4555 * restarted. |
| 4582 */ | 4556 */ |
| 4583 core.String commonName; | 4557 core.String commonName; |
| 4584 | 4558 |
| 4585 SslCertsInsertRequest(); | 4559 SslCertsInsertRequest(); |
| 4586 | 4560 |
| 4587 SslCertsInsertRequest.fromJson(core.Map _json) { | 4561 SslCertsInsertRequest.fromJson(core.Map _json) { |
| 4588 if (_json.containsKey("commonName")) { | 4562 if (_json.containsKey("commonName")) { |
| 4589 commonName = _json["commonName"]; | 4563 commonName = _json["commonName"]; |
| 4590 } | 4564 } |
| 4591 } | 4565 } |
| 4592 | 4566 |
| 4593 core.Map toJson() { | 4567 core.Map<core.String, core.Object> toJson() { |
| 4594 var _json = new core.Map(); | 4568 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4595 if (commonName != null) { | 4569 if (commonName != null) { |
| 4596 _json["commonName"] = commonName; | 4570 _json["commonName"] = commonName; |
| 4597 } | 4571 } |
| 4598 return _json; | 4572 return _json; |
| 4599 } | 4573 } |
| 4600 } | 4574 } |
| 4601 | 4575 |
| 4602 /** SslCert insert response. */ | 4576 /** SslCert insert response. */ |
| 4603 class SslCertsInsertResponse { | 4577 class SslCertsInsertResponse { |
| 4604 /** | 4578 /** |
| (...skipping 22 matching lines...) Expand all Loading... |
| 4627 kind = _json["kind"]; | 4601 kind = _json["kind"]; |
| 4628 } | 4602 } |
| 4629 if (_json.containsKey("operation")) { | 4603 if (_json.containsKey("operation")) { |
| 4630 operation = new Operation.fromJson(_json["operation"]); | 4604 operation = new Operation.fromJson(_json["operation"]); |
| 4631 } | 4605 } |
| 4632 if (_json.containsKey("serverCaCert")) { | 4606 if (_json.containsKey("serverCaCert")) { |
| 4633 serverCaCert = new SslCert.fromJson(_json["serverCaCert"]); | 4607 serverCaCert = new SslCert.fromJson(_json["serverCaCert"]); |
| 4634 } | 4608 } |
| 4635 } | 4609 } |
| 4636 | 4610 |
| 4637 core.Map toJson() { | 4611 core.Map<core.String, core.Object> toJson() { |
| 4638 var _json = new core.Map(); | 4612 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4639 if (clientCert != null) { | 4613 if (clientCert != null) { |
| 4640 _json["clientCert"] = (clientCert).toJson(); | 4614 _json["clientCert"] = (clientCert).toJson(); |
| 4641 } | 4615 } |
| 4642 if (kind != null) { | 4616 if (kind != null) { |
| 4643 _json["kind"] = kind; | 4617 _json["kind"] = kind; |
| 4644 } | 4618 } |
| 4645 if (operation != null) { | 4619 if (operation != null) { |
| 4646 _json["operation"] = (operation).toJson(); | 4620 _json["operation"] = (operation).toJson(); |
| 4647 } | 4621 } |
| 4648 if (serverCaCert != null) { | 4622 if (serverCaCert != null) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 4663 | 4637 |
| 4664 SslCertsListResponse.fromJson(core.Map _json) { | 4638 SslCertsListResponse.fromJson(core.Map _json) { |
| 4665 if (_json.containsKey("items")) { | 4639 if (_json.containsKey("items")) { |
| 4666 items = _json["items"].map((value) => new SslCert.fromJson(value)).toList(
); | 4640 items = _json["items"].map((value) => new SslCert.fromJson(value)).toList(
); |
| 4667 } | 4641 } |
| 4668 if (_json.containsKey("kind")) { | 4642 if (_json.containsKey("kind")) { |
| 4669 kind = _json["kind"]; | 4643 kind = _json["kind"]; |
| 4670 } | 4644 } |
| 4671 } | 4645 } |
| 4672 | 4646 |
| 4673 core.Map toJson() { | 4647 core.Map<core.String, core.Object> toJson() { |
| 4674 var _json = new core.Map(); | 4648 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4675 if (items != null) { | 4649 if (items != null) { |
| 4676 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4650 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 4677 } | 4651 } |
| 4678 if (kind != null) { | 4652 if (kind != null) { |
| 4679 _json["kind"] = kind; | 4653 _json["kind"] = kind; |
| 4680 } | 4654 } |
| 4681 return _json; | 4655 return _json; |
| 4682 } | 4656 } |
| 4683 } | 4657 } |
| 4684 | 4658 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 4711 kind = _json["kind"]; | 4685 kind = _json["kind"]; |
| 4712 } | 4686 } |
| 4713 if (_json.containsKey("region")) { | 4687 if (_json.containsKey("region")) { |
| 4714 region = _json["region"]; | 4688 region = _json["region"]; |
| 4715 } | 4689 } |
| 4716 if (_json.containsKey("tier")) { | 4690 if (_json.containsKey("tier")) { |
| 4717 tier = _json["tier"]; | 4691 tier = _json["tier"]; |
| 4718 } | 4692 } |
| 4719 } | 4693 } |
| 4720 | 4694 |
| 4721 core.Map toJson() { | 4695 core.Map<core.String, core.Object> toJson() { |
| 4722 var _json = new core.Map(); | 4696 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4723 if (DiskQuota != null) { | 4697 if (DiskQuota != null) { |
| 4724 _json["DiskQuota"] = DiskQuota; | 4698 _json["DiskQuota"] = DiskQuota; |
| 4725 } | 4699 } |
| 4726 if (RAM != null) { | 4700 if (RAM != null) { |
| 4727 _json["RAM"] = RAM; | 4701 _json["RAM"] = RAM; |
| 4728 } | 4702 } |
| 4729 if (kind != null) { | 4703 if (kind != null) { |
| 4730 _json["kind"] = kind; | 4704 _json["kind"] = kind; |
| 4731 } | 4705 } |
| 4732 if (region != null) { | 4706 if (region != null) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 4750 | 4724 |
| 4751 TiersListResponse.fromJson(core.Map _json) { | 4725 TiersListResponse.fromJson(core.Map _json) { |
| 4752 if (_json.containsKey("items")) { | 4726 if (_json.containsKey("items")) { |
| 4753 items = _json["items"].map((value) => new Tier.fromJson(value)).toList(); | 4727 items = _json["items"].map((value) => new Tier.fromJson(value)).toList(); |
| 4754 } | 4728 } |
| 4755 if (_json.containsKey("kind")) { | 4729 if (_json.containsKey("kind")) { |
| 4756 kind = _json["kind"]; | 4730 kind = _json["kind"]; |
| 4757 } | 4731 } |
| 4758 } | 4732 } |
| 4759 | 4733 |
| 4760 core.Map toJson() { | 4734 core.Map<core.String, core.Object> toJson() { |
| 4761 var _json = new core.Map(); | 4735 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4762 if (items != null) { | 4736 if (items != null) { |
| 4763 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4737 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 4764 } | 4738 } |
| 4765 if (kind != null) { | 4739 if (kind != null) { |
| 4766 _json["kind"] = kind; | 4740 _json["kind"] = kind; |
| 4767 } | 4741 } |
| 4768 return _json; | 4742 return _json; |
| 4769 } | 4743 } |
| 4770 } | 4744 } |
| 4771 | 4745 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 4783 | 4757 |
| 4784 TruncateLogContext.fromJson(core.Map _json) { | 4758 TruncateLogContext.fromJson(core.Map _json) { |
| 4785 if (_json.containsKey("kind")) { | 4759 if (_json.containsKey("kind")) { |
| 4786 kind = _json["kind"]; | 4760 kind = _json["kind"]; |
| 4787 } | 4761 } |
| 4788 if (_json.containsKey("logType")) { | 4762 if (_json.containsKey("logType")) { |
| 4789 logType = _json["logType"]; | 4763 logType = _json["logType"]; |
| 4790 } | 4764 } |
| 4791 } | 4765 } |
| 4792 | 4766 |
| 4793 core.Map toJson() { | 4767 core.Map<core.String, core.Object> toJson() { |
| 4794 var _json = new core.Map(); | 4768 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4795 if (kind != null) { | 4769 if (kind != null) { |
| 4796 _json["kind"] = kind; | 4770 _json["kind"] = kind; |
| 4797 } | 4771 } |
| 4798 if (logType != null) { | 4772 if (logType != null) { |
| 4799 _json["logType"] = logType; | 4773 _json["logType"] = logType; |
| 4800 } | 4774 } |
| 4801 return _json; | 4775 return _json; |
| 4802 } | 4776 } |
| 4803 } | 4777 } |
| 4804 | 4778 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4852 name = _json["name"]; | 4826 name = _json["name"]; |
| 4853 } | 4827 } |
| 4854 if (_json.containsKey("password")) { | 4828 if (_json.containsKey("password")) { |
| 4855 password = _json["password"]; | 4829 password = _json["password"]; |
| 4856 } | 4830 } |
| 4857 if (_json.containsKey("project")) { | 4831 if (_json.containsKey("project")) { |
| 4858 project = _json["project"]; | 4832 project = _json["project"]; |
| 4859 } | 4833 } |
| 4860 } | 4834 } |
| 4861 | 4835 |
| 4862 core.Map toJson() { | 4836 core.Map<core.String, core.Object> toJson() { |
| 4863 var _json = new core.Map(); | 4837 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4864 if (etag != null) { | 4838 if (etag != null) { |
| 4865 _json["etag"] = etag; | 4839 _json["etag"] = etag; |
| 4866 } | 4840 } |
| 4867 if (host != null) { | 4841 if (host != null) { |
| 4868 _json["host"] = host; | 4842 _json["host"] = host; |
| 4869 } | 4843 } |
| 4870 if (instance != null) { | 4844 if (instance != null) { |
| 4871 _json["instance"] = instance; | 4845 _json["instance"] = instance; |
| 4872 } | 4846 } |
| 4873 if (kind != null) { | 4847 if (kind != null) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4906 items = _json["items"].map((value) => new User.fromJson(value)).toList(); | 4880 items = _json["items"].map((value) => new User.fromJson(value)).toList(); |
| 4907 } | 4881 } |
| 4908 if (_json.containsKey("kind")) { | 4882 if (_json.containsKey("kind")) { |
| 4909 kind = _json["kind"]; | 4883 kind = _json["kind"]; |
| 4910 } | 4884 } |
| 4911 if (_json.containsKey("nextPageToken")) { | 4885 if (_json.containsKey("nextPageToken")) { |
| 4912 nextPageToken = _json["nextPageToken"]; | 4886 nextPageToken = _json["nextPageToken"]; |
| 4913 } | 4887 } |
| 4914 } | 4888 } |
| 4915 | 4889 |
| 4916 core.Map toJson() { | 4890 core.Map<core.String, core.Object> toJson() { |
| 4917 var _json = new core.Map(); | 4891 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 4918 if (items != null) { | 4892 if (items != null) { |
| 4919 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4893 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 4920 } | 4894 } |
| 4921 if (kind != null) { | 4895 if (kind != null) { |
| 4922 _json["kind"] = kind; | 4896 _json["kind"] = kind; |
| 4923 } | 4897 } |
| 4924 if (nextPageToken != null) { | 4898 if (nextPageToken != null) { |
| 4925 _json["nextPageToken"] = nextPageToken; | 4899 _json["nextPageToken"] = nextPageToken; |
| 4926 } | 4900 } |
| 4927 return _json; | 4901 return _json; |
| 4928 } | 4902 } |
| 4929 } | 4903 } |
| OLD | NEW |