OLD | NEW |
1 library googleapis_beta.manager.v1beta2; | 1 library googleapis_beta.manager.v1beta2; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 */ | 42 */ |
43 static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev
.cloudman.readonly"; | 43 static const NdevCloudmanReadonlyScope = "https://www.googleapis.com/auth/ndev
.cloudman.readonly"; |
44 | 44 |
45 | 45 |
46 final common_internal.ApiRequester _requester; | 46 final common_internal.ApiRequester _requester; |
47 | 47 |
48 DeploymentsResourceApi get deployments => new DeploymentsResourceApi(_requeste
r); | 48 DeploymentsResourceApi get deployments => new DeploymentsResourceApi(_requeste
r); |
49 TemplatesResourceApi get templates => new TemplatesResourceApi(_requester); | 49 TemplatesResourceApi get templates => new TemplatesResourceApi(_requester); |
50 | 50 |
51 ManagerApi(http.Client client) : | 51 ManagerApi(http.Client client) : |
52 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "/manager/v1beta2/projects/"); | 52 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "manager/v1beta2/projects/"); |
53 } | 53 } |
54 | 54 |
55 | 55 |
56 /** Not documented yet. */ | 56 /** Not documented yet. */ |
57 class DeploymentsResourceApi { | 57 class DeploymentsResourceApi { |
58 final common_internal.ApiRequester _requester; | 58 final common_internal.ApiRequester _requester; |
59 | 59 |
60 DeploymentsResourceApi(common_internal.ApiRequester client) : | 60 DeploymentsResourceApi(common_internal.ApiRequester client) : |
61 _requester = client; | 61 _requester = client; |
62 | 62 |
(...skipping 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1729 return _json; | 1729 return _json; |
1730 } | 1730 } |
1731 } | 1731 } |
1732 | 1732 |
1733 | 1733 |
1734 /** Initialization parameters for creating a new disk. */ | 1734 /** Initialization parameters for creating a new disk. */ |
1735 class NewDiskInitializeParams { | 1735 class NewDiskInitializeParams { |
1736 /** The size of the created disk in gigabytes. */ | 1736 /** The size of the created disk in gigabytes. */ |
1737 core.String diskSizeGb; | 1737 core.String diskSizeGb; |
1738 | 1738 |
| 1739 /** |
| 1740 * Name of the disk type resource describing which disk type to use to create |
| 1741 * the disk. For example 'pd-ssd' or 'pd-standard'. Default is 'pd-standard' |
| 1742 */ |
| 1743 core.String diskType; |
| 1744 |
1739 /** The fully-qualified URL of a source image to use to create this disk. */ | 1745 /** The fully-qualified URL of a source image to use to create this disk. */ |
1740 core.String sourceImage; | 1746 core.String sourceImage; |
1741 | 1747 |
1742 | 1748 |
1743 NewDiskInitializeParams(); | 1749 NewDiskInitializeParams(); |
1744 | 1750 |
1745 NewDiskInitializeParams.fromJson(core.Map _json) { | 1751 NewDiskInitializeParams.fromJson(core.Map _json) { |
1746 if (_json.containsKey("diskSizeGb")) { | 1752 if (_json.containsKey("diskSizeGb")) { |
1747 diskSizeGb = _json["diskSizeGb"]; | 1753 diskSizeGb = _json["diskSizeGb"]; |
1748 } | 1754 } |
| 1755 if (_json.containsKey("diskType")) { |
| 1756 diskType = _json["diskType"]; |
| 1757 } |
1749 if (_json.containsKey("sourceImage")) { | 1758 if (_json.containsKey("sourceImage")) { |
1750 sourceImage = _json["sourceImage"]; | 1759 sourceImage = _json["sourceImage"]; |
1751 } | 1760 } |
1752 } | 1761 } |
1753 | 1762 |
1754 core.Map toJson() { | 1763 core.Map toJson() { |
1755 var _json = new core.Map(); | 1764 var _json = new core.Map(); |
1756 if (diskSizeGb != null) { | 1765 if (diskSizeGb != null) { |
1757 _json["diskSizeGb"] = diskSizeGb; | 1766 _json["diskSizeGb"] = diskSizeGb; |
1758 } | 1767 } |
| 1768 if (diskType != null) { |
| 1769 _json["diskType"] = diskType; |
| 1770 } |
1759 if (sourceImage != null) { | 1771 if (sourceImage != null) { |
1760 _json["sourceImage"] = sourceImage; | 1772 _json["sourceImage"] = sourceImage; |
1761 } | 1773 } |
1762 return _json; | 1774 return _json; |
1763 } | 1775 } |
1764 } | 1776 } |
1765 | 1777 |
1766 | 1778 |
1767 /** | 1779 /** |
1768 * A specification for overriding parameters in a Template that corresponds to | 1780 * A specification for overriding parameters in a Template that corresponds to |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2246 _json["nextPageToken"] = nextPageToken; | 2258 _json["nextPageToken"] = nextPageToken; |
2247 } | 2259 } |
2248 if (resources != null) { | 2260 if (resources != null) { |
2249 _json["resources"] = resources.map((value) => (value).toJson()).toList(); | 2261 _json["resources"] = resources.map((value) => (value).toJson()).toList(); |
2250 } | 2262 } |
2251 return _json; | 2263 return _json; |
2252 } | 2264 } |
2253 } | 2265 } |
2254 | 2266 |
2255 | 2267 |
OLD | NEW |