@nirvana-labs/nirvana 1.55.4 → 1.56.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/bin/migration-config.json +300 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/nks/clusters/availability.d.mts +65 -0
- package/resources/nks/clusters/availability.d.mts.map +1 -0
- package/resources/nks/clusters/availability.d.ts +65 -0
- package/resources/nks/clusters/availability.d.ts.map +1 -0
- package/resources/nks/clusters/availability.js +46 -0
- package/resources/nks/clusters/availability.js.map +1 -0
- package/resources/nks/clusters/availability.mjs +42 -0
- package/resources/nks/clusters/availability.mjs.map +1 -0
- package/resources/nks/clusters/clusters.d.mts +191 -0
- package/resources/nks/clusters/clusters.d.mts.map +1 -0
- package/resources/nks/clusters/clusters.d.ts +191 -0
- package/resources/nks/clusters/clusters.d.ts.map +1 -0
- package/resources/nks/clusters/clusters.js +96 -0
- package/resources/nks/clusters/clusters.js.map +1 -0
- package/resources/nks/clusters/clusters.mjs +91 -0
- package/resources/nks/clusters/clusters.mjs.map +1 -0
- package/resources/nks/clusters/index.d.mts +4 -0
- package/resources/nks/clusters/index.d.mts.map +1 -0
- package/resources/nks/clusters/index.d.ts +4 -0
- package/resources/nks/clusters/index.d.ts.map +1 -0
- package/resources/nks/clusters/index.js +11 -0
- package/resources/nks/clusters/index.js.map +1 -0
- package/resources/nks/clusters/index.mjs +5 -0
- package/resources/nks/clusters/index.mjs.map +1 -0
- package/resources/nks/clusters/kubeconfig.d.mts +18 -0
- package/resources/nks/clusters/kubeconfig.d.mts.map +1 -0
- package/resources/nks/clusters/kubeconfig.d.ts +18 -0
- package/resources/nks/clusters/kubeconfig.d.ts.map +1 -0
- package/resources/nks/clusters/kubeconfig.js +23 -0
- package/resources/nks/clusters/kubeconfig.js.map +1 -0
- package/resources/nks/clusters/kubeconfig.mjs +19 -0
- package/resources/nks/clusters/kubeconfig.mjs.map +1 -0
- package/resources/nks/clusters/pools/availability.d.mts +74 -0
- package/resources/nks/clusters/pools/availability.d.mts.map +1 -0
- package/resources/nks/clusters/pools/availability.d.ts +74 -0
- package/resources/nks/clusters/pools/availability.d.ts.map +1 -0
- package/resources/nks/clusters/pools/availability.js +56 -0
- package/resources/nks/clusters/pools/availability.js.map +1 -0
- package/resources/nks/clusters/pools/availability.mjs +52 -0
- package/resources/nks/clusters/pools/availability.mjs.map +1 -0
- package/resources/nks/clusters/pools/index.d.mts +4 -0
- package/resources/nks/clusters/pools/index.d.mts.map +1 -0
- package/resources/nks/clusters/pools/index.d.ts +4 -0
- package/resources/nks/clusters/pools/index.d.ts.map +1 -0
- package/resources/nks/clusters/pools/index.js +11 -0
- package/resources/nks/clusters/pools/index.js.map +1 -0
- package/resources/nks/clusters/pools/index.mjs +5 -0
- package/resources/nks/clusters/pools/index.mjs.map +1 -0
- package/resources/nks/clusters/pools/nodes/index.d.mts +3 -0
- package/resources/nks/clusters/pools/nodes/index.d.mts.map +1 -0
- package/resources/nks/clusters/pools/nodes/index.d.ts +3 -0
- package/resources/nks/clusters/pools/nodes/index.d.ts.map +1 -0
- package/resources/nks/clusters/pools/nodes/index.js +9 -0
- package/resources/nks/clusters/pools/nodes/index.js.map +1 -0
- package/resources/nks/clusters/pools/nodes/index.mjs +4 -0
- package/resources/nks/clusters/pools/nodes/index.mjs.map +1 -0
- package/resources/nks/clusters/pools/nodes/nodes.d.mts +95 -0
- package/resources/nks/clusters/pools/nodes/nodes.d.mts.map +1 -0
- package/resources/nks/clusters/pools/nodes/nodes.d.ts +95 -0
- package/resources/nks/clusters/pools/nodes/nodes.d.ts.map +1 -0
- package/resources/nks/clusters/pools/nodes/nodes.js +52 -0
- package/resources/nks/clusters/pools/nodes/nodes.js.map +1 -0
- package/resources/nks/clusters/pools/nodes/nodes.mjs +47 -0
- package/resources/nks/clusters/pools/nodes/nodes.mjs.map +1 -0
- package/resources/nks/clusters/pools/nodes/volumes.d.mts +109 -0
- package/resources/nks/clusters/pools/nodes/volumes.d.mts.map +1 -0
- package/resources/nks/clusters/pools/nodes/volumes.d.ts +109 -0
- package/resources/nks/clusters/pools/nodes/volumes.d.ts.map +1 -0
- package/resources/nks/clusters/pools/nodes/volumes.js +49 -0
- package/resources/nks/clusters/pools/nodes/volumes.js.map +1 -0
- package/resources/nks/clusters/pools/nodes/volumes.mjs +45 -0
- package/resources/nks/clusters/pools/nodes/volumes.mjs.map +1 -0
- package/resources/nks/clusters/pools/nodes.d.mts +2 -0
- package/resources/nks/clusters/pools/nodes.d.mts.map +1 -0
- package/resources/nks/clusters/pools/nodes.d.ts +2 -0
- package/resources/nks/clusters/pools/nodes.d.ts.map +1 -0
- package/resources/nks/clusters/pools/nodes.js +6 -0
- package/resources/nks/clusters/pools/nodes.js.map +1 -0
- package/resources/nks/clusters/pools/nodes.mjs +3 -0
- package/resources/nks/clusters/pools/nodes.mjs.map +1 -0
- package/resources/nks/clusters/pools/pools.d.mts +221 -0
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -0
- package/resources/nks/clusters/pools/pools.d.ts +221 -0
- package/resources/nks/clusters/pools/pools.d.ts.map +1 -0
- package/resources/nks/clusters/pools/pools.js +109 -0
- package/resources/nks/clusters/pools/pools.js.map +1 -0
- package/resources/nks/clusters/pools/pools.mjs +104 -0
- package/resources/nks/clusters/pools/pools.mjs.map +1 -0
- package/resources/nks/clusters/pools.d.mts +2 -0
- package/resources/nks/clusters/pools.d.mts.map +1 -0
- package/resources/nks/clusters/pools.d.ts +2 -0
- package/resources/nks/clusters/pools.d.ts.map +1 -0
- package/resources/nks/clusters/pools.js +6 -0
- package/resources/nks/clusters/pools.js.map +1 -0
- package/resources/nks/clusters/pools.mjs +3 -0
- package/resources/nks/clusters/pools.mjs.map +1 -0
- package/resources/nks/clusters.d.mts +2 -0
- package/resources/nks/clusters.d.mts.map +1 -0
- package/resources/nks/clusters.d.ts +2 -0
- package/resources/nks/clusters.d.ts.map +1 -0
- package/resources/nks/clusters.js +6 -0
- package/resources/nks/clusters.js.map +1 -0
- package/resources/nks/clusters.mjs +3 -0
- package/resources/nks/clusters.mjs.map +1 -0
- package/resources/nks/index.d.mts +3 -0
- package/resources/nks/index.d.mts.map +1 -0
- package/resources/nks/index.d.ts +3 -0
- package/resources/nks/index.d.ts.map +1 -0
- package/resources/nks/index.js +9 -0
- package/resources/nks/index.js.map +1 -0
- package/resources/nks/index.mjs +4 -0
- package/resources/nks/index.mjs.map +1 -0
- package/resources/nks/nks.d.mts +10 -0
- package/resources/nks/nks.d.mts.map +1 -0
- package/resources/nks/nks.d.ts +10 -0
- package/resources/nks/nks.d.ts.map +1 -0
- package/resources/nks/nks.js +17 -0
- package/resources/nks/nks.js.map +1 -0
- package/resources/nks/nks.mjs +12 -0
- package/resources/nks/nks.mjs.map +1 -0
- package/resources/nks.d.mts +2 -0
- package/resources/nks.d.mts.map +1 -0
- package/resources/nks.d.ts +2 -0
- package/resources/nks.d.ts.map +1 -0
- package/resources/nks.js +6 -0
- package/resources/nks.js.map +1 -0
- package/resources/nks.mjs +3 -0
- package/resources/nks.mjs.map +1 -0
- package/resources/operations/operations.d.mts +1 -1
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +1 -1
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/regions/regions.d.mts +13 -0
- package/resources/regions/regions.d.mts.map +1 -1
- package/resources/regions/regions.d.ts +13 -0
- package/resources/regions/regions.d.ts.map +1 -1
- package/src/client.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/nks/api.md +77 -0
- package/src/resources/nks/clusters/availability.ts +93 -0
- package/src/resources/nks/clusters/clusters.ts +273 -0
- package/src/resources/nks/clusters/index.ts +25 -0
- package/src/resources/nks/clusters/kubeconfig.ts +23 -0
- package/src/resources/nks/clusters/pools/availability.ts +103 -0
- package/src/resources/nks/clusters/pools/index.ts +23 -0
- package/src/resources/nks/clusters/pools/nodes/index.ts +18 -0
- package/src/resources/nks/clusters/pools/nodes/nodes.ts +150 -0
- package/src/resources/nks/clusters/pools/nodes/volumes.ts +152 -0
- package/src/resources/nks/clusters/pools/nodes.ts +3 -0
- package/src/resources/nks/clusters/pools/pools.ts +311 -0
- package/src/resources/nks/clusters/pools.ts +3 -0
- package/src/resources/nks/clusters.ts +3 -0
- package/src/resources/nks/index.ts +13 -0
- package/src/resources/nks/nks.ts +33 -0
- package/src/resources/nks.ts +3 -0
- package/src/resources/operations/operations.ts +1 -1
- package/src/resources/regions/regions.ts +15 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nks.d.ts","sourceRoot":"","sources":["../src/resources/nks.ts"],"names":[],"mappings":""}
|
package/resources/nks.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./nks/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=nks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nks.js","sourceRoot":"","sources":["../src/resources/nks.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,yDAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nks.mjs","sourceRoot":"","sources":["../src/resources/nks.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -54,7 +54,7 @@ export interface Operation {
|
|
|
54
54
|
/**
|
|
55
55
|
* Kind of Operation.
|
|
56
56
|
*/
|
|
57
|
-
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
57
|
+
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule' | 'nks_cluster' | 'nks_node_pool';
|
|
58
58
|
export interface OperationList {
|
|
59
59
|
items: Array<Operation>;
|
|
60
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.mts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,gBAAgB,EAAE,SAAS,CAAC;IAIpG;;OAEG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAG1E;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,KAAK,GAAG,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"operations.d.mts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,gBAAgB,EAAE,SAAS,CAAC;IAIpG;;OAEG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAG1E;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAEjD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,QAAQ,GAAG,KAAK,GAAG,eAAe,GAAG,aAAa,GAAG,eAAe,CAAC;AAExG,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAExB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvE,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -54,7 +54,7 @@ export interface Operation {
|
|
|
54
54
|
/**
|
|
55
55
|
* Kind of Operation.
|
|
56
56
|
*/
|
|
57
|
-
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
57
|
+
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule' | 'nks_cluster' | 'nks_node_pool';
|
|
58
58
|
export interface OperationList {
|
|
59
59
|
items: Array<Operation>;
|
|
60
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAA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AAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -47,6 +47,10 @@ export interface Region {
|
|
|
47
47
|
* Networking products available in this region.
|
|
48
48
|
*/
|
|
49
49
|
networking: Region.Networking;
|
|
50
|
+
/**
|
|
51
|
+
* NKS products available in this region.
|
|
52
|
+
*/
|
|
53
|
+
nks: Region.NKS;
|
|
50
54
|
/**
|
|
51
55
|
* Storage products available in this region.
|
|
52
56
|
*/
|
|
@@ -75,6 +79,15 @@ export declare namespace Region {
|
|
|
75
79
|
*/
|
|
76
80
|
vpcs: boolean;
|
|
77
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* NKS products available in this region.
|
|
84
|
+
*/
|
|
85
|
+
interface NKS {
|
|
86
|
+
/**
|
|
87
|
+
* Clusters indicates if NKS managed Kubernetes clusters are available.
|
|
88
|
+
*/
|
|
89
|
+
clusters: boolean;
|
|
90
|
+
}
|
|
78
91
|
/**
|
|
79
92
|
* Storage products available in this region.
|
|
80
93
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regions.d.mts","sourceRoot":"","sources":["../../src/resources/regions/regions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC;IAIrC;;;;;;;OAOG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,EAAE,OAAO,CAAC;KACf;IAED;;OAEG;IACH,UAAiB,GAAG;QAClB;;WAEG;QACH,QAAQ,EAAE,OAAO,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,GAAG,EAAE,OAAO,CAAC;QAEb;;WAEG;QACH,UAAU,EAAE,OAAO,CAAC;KACrB;CACF;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,QAAQ,CAAC;AAE/E,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAErB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;CAAG;AAEzD,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,MAAM,IAAI,MAAM,EACrB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
|
@@ -47,6 +47,10 @@ export interface Region {
|
|
|
47
47
|
* Networking products available in this region.
|
|
48
48
|
*/
|
|
49
49
|
networking: Region.Networking;
|
|
50
|
+
/**
|
|
51
|
+
* NKS products available in this region.
|
|
52
|
+
*/
|
|
53
|
+
nks: Region.NKS;
|
|
50
54
|
/**
|
|
51
55
|
* Storage products available in this region.
|
|
52
56
|
*/
|
|
@@ -75,6 +79,15 @@ export declare namespace Region {
|
|
|
75
79
|
*/
|
|
76
80
|
vpcs: boolean;
|
|
77
81
|
}
|
|
82
|
+
/**
|
|
83
|
+
* NKS products available in this region.
|
|
84
|
+
*/
|
|
85
|
+
interface NKS {
|
|
86
|
+
/**
|
|
87
|
+
* Clusters indicates if NKS managed Kubernetes clusters are available.
|
|
88
|
+
*/
|
|
89
|
+
clusters: boolean;
|
|
90
|
+
}
|
|
78
91
|
/**
|
|
79
92
|
* Storage products available in this region.
|
|
80
93
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regions.d.ts","sourceRoot":"","sources":["../../src/resources/regions/regions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC;IAIrC;;;;;;;OAOG;IACH,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC;CAGhE;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB;;OAEG;IACH,YAAY,EAAE,kBAAkB,CAAC;IAEjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC;IAExB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;IAE9B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC;CACzB;AAED,yBAAiB,MAAM,CAAC;IACtB;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,GAAG,EAAE,OAAO,CAAC;KACd;IAED;;OAEG;IACH,UAAiB,UAAU;QACzB;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,OAAO,CAAC;KACf;IAED;;OA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KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
|
package/src/client.ts
CHANGED
|
@@ -23,6 +23,7 @@ import { APIKeys } from './resources/api-keys/api-keys';
|
|
|
23
23
|
import { AuditLogs } from './resources/audit-logs/audit-logs';
|
|
24
24
|
import { Compute } from './resources/compute/compute';
|
|
25
25
|
import { Networking } from './resources/networking/networking';
|
|
26
|
+
import { NKS } from './resources/nks/nks';
|
|
26
27
|
import { Operations } from './resources/operations/operations';
|
|
27
28
|
import { Organizations } from './resources/organizations/organizations';
|
|
28
29
|
import { Projects } from './resources/projects/projects';
|
|
@@ -763,6 +764,7 @@ export class NirvanaLabs {
|
|
|
763
764
|
compute: API.Compute = new API.Compute(this);
|
|
764
765
|
networking: API.Networking = new API.Networking(this);
|
|
765
766
|
rpcNodes: API.RPCNodes = new API.RPCNodes(this);
|
|
767
|
+
nks: API.NKS = new API.NKS(this);
|
|
766
768
|
}
|
|
767
769
|
|
|
768
770
|
NirvanaLabs.UserResource = UserResource;
|
|
@@ -775,6 +777,7 @@ NirvanaLabs.Regions = Regions;
|
|
|
775
777
|
NirvanaLabs.Compute = Compute;
|
|
776
778
|
NirvanaLabs.Networking = Networking;
|
|
777
779
|
NirvanaLabs.RPCNodes = RPCNodes;
|
|
780
|
+
NirvanaLabs.NKS = NKS;
|
|
778
781
|
|
|
779
782
|
export declare namespace NirvanaLabs {
|
|
780
783
|
export type RequestOptions = Opts.RequestOptions;
|
|
@@ -802,6 +805,8 @@ export declare namespace NirvanaLabs {
|
|
|
802
805
|
|
|
803
806
|
export { RPCNodes as RPCNodes };
|
|
804
807
|
|
|
808
|
+
export { NKS as NKS };
|
|
809
|
+
|
|
805
810
|
export type Pagination = API.Pagination;
|
|
806
811
|
export type RegionName = API.RegionName;
|
|
807
812
|
export type ResourceStatus = API.ResourceStatus;
|
package/src/resources/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './shared';
|
|
|
4
4
|
export { APIKeys } from './api-keys';
|
|
5
5
|
export { AuditLogs } from './audit-logs';
|
|
6
6
|
export { Compute } from './compute/compute';
|
|
7
|
+
export { NKS } from './nks/nks';
|
|
7
8
|
export { Networking } from './networking/networking';
|
|
8
9
|
export { Operations } from './operations';
|
|
9
10
|
export { Organizations } from './organizations';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# NKS
|
|
2
|
+
|
|
3
|
+
## Clusters
|
|
4
|
+
|
|
5
|
+
Types:
|
|
6
|
+
|
|
7
|
+
- <code><a href="./src/resources/nks/clusters/clusters.ts">Kubeconfig</a></code>
|
|
8
|
+
- <code><a href="./src/resources/nks/clusters/clusters.ts">NKSCluster</a></code>
|
|
9
|
+
- <code><a href="./src/resources/nks/clusters/clusters.ts">NKSClusterList</a></code>
|
|
10
|
+
|
|
11
|
+
Methods:
|
|
12
|
+
|
|
13
|
+
- <code title="post /v1/nks/clusters">client.nks.clusters.<a href="./src/resources/nks/clusters/clusters.ts">create</a>({ ...params }) -> Operation</code>
|
|
14
|
+
- <code title="patch /v1/nks/clusters/{cluster_id}">client.nks.clusters.<a href="./src/resources/nks/clusters/clusters.ts">update</a>(clusterID, { ...params }) -> NKSCluster</code>
|
|
15
|
+
- <code title="get /v1/nks/clusters">client.nks.clusters.<a href="./src/resources/nks/clusters/clusters.ts">list</a>({ ...params }) -> NKSClustersCursor</code>
|
|
16
|
+
- <code title="delete /v1/nks/clusters/{cluster_id}">client.nks.clusters.<a href="./src/resources/nks/clusters/clusters.ts">delete</a>(clusterID) -> Operation</code>
|
|
17
|
+
- <code title="get /v1/nks/clusters/{cluster_id}">client.nks.clusters.<a href="./src/resources/nks/clusters/clusters.ts">get</a>(clusterID) -> NKSCluster</code>
|
|
18
|
+
|
|
19
|
+
### Availability
|
|
20
|
+
|
|
21
|
+
Methods:
|
|
22
|
+
|
|
23
|
+
- <code title="post /v1/nks/clusters/availability">client.nks.clusters.availability.<a href="./src/resources/nks/clusters/availability.ts">create</a>({ ...params }) -> void</code>
|
|
24
|
+
- <code title="patch /v1/nks/clusters/{cluster_id}/availability">client.nks.clusters.availability.<a href="./src/resources/nks/clusters/availability.ts">update</a>(clusterID, { ...params }) -> void</code>
|
|
25
|
+
|
|
26
|
+
### Kubeconfig
|
|
27
|
+
|
|
28
|
+
Methods:
|
|
29
|
+
|
|
30
|
+
- <code title="get /v1/nks/clusters/{cluster_id}/kubeconfig">client.nks.clusters.kubeconfig.<a href="./src/resources/nks/clusters/kubeconfig.ts">get</a>(clusterID) -> Kubeconfig</code>
|
|
31
|
+
|
|
32
|
+
### Pools
|
|
33
|
+
|
|
34
|
+
Types:
|
|
35
|
+
|
|
36
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodeConfig</a></code>
|
|
37
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePool</a></code>
|
|
38
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolList</a></code>
|
|
39
|
+
|
|
40
|
+
Methods:
|
|
41
|
+
|
|
42
|
+
- <code title="post /v1/nks/clusters/{cluster_id}/pools">client.nks.clusters.pools.<a href="./src/resources/nks/clusters/pools/pools.ts">create</a>(clusterID, { ...params }) -> Operation</code>
|
|
43
|
+
- <code title="patch /v1/nks/clusters/{cluster_id}/pools/{pool_id}">client.nks.clusters.pools.<a href="./src/resources/nks/clusters/pools/pools.ts">update</a>(poolID, { ...params }) -> NKSNodePool</code>
|
|
44
|
+
- <code title="get /v1/nks/clusters/{cluster_id}/pools">client.nks.clusters.pools.<a href="./src/resources/nks/clusters/pools/pools.ts">list</a>(clusterID, { ...params }) -> NKSNodePoolsCursor</code>
|
|
45
|
+
- <code title="delete /v1/nks/clusters/{cluster_id}/pools/{pool_id}">client.nks.clusters.pools.<a href="./src/resources/nks/clusters/pools/pools.ts">delete</a>(poolID, { ...params }) -> Operation</code>
|
|
46
|
+
- <code title="get /v1/nks/clusters/{cluster_id}/pools/{pool_id}">client.nks.clusters.pools.<a href="./src/resources/nks/clusters/pools/pools.ts">get</a>(poolID, { ...params }) -> NKSNodePool</code>
|
|
47
|
+
|
|
48
|
+
#### Availability
|
|
49
|
+
|
|
50
|
+
Methods:
|
|
51
|
+
|
|
52
|
+
- <code title="post /v1/nks/clusters/{cluster_id}/pools/availability">client.nks.clusters.pools.availability.<a href="./src/resources/nks/clusters/pools/availability.ts">create</a>(clusterID, { ...params }) -> void</code>
|
|
53
|
+
- <code title="patch /v1/nks/clusters/{cluster_id}/pools/{pool_id}/availability">client.nks.clusters.pools.availability.<a href="./src/resources/nks/clusters/pools/availability.ts">update</a>(poolID, { ...params }) -> void</code>
|
|
54
|
+
|
|
55
|
+
#### Nodes
|
|
56
|
+
|
|
57
|
+
Types:
|
|
58
|
+
|
|
59
|
+
- <code><a href="./src/resources/nks/clusters/pools/nodes/nodes.ts">NKSNode</a></code>
|
|
60
|
+
- <code><a href="./src/resources/nks/clusters/pools/nodes/nodes.ts">NKSNodeList</a></code>
|
|
61
|
+
|
|
62
|
+
Methods:
|
|
63
|
+
|
|
64
|
+
- <code title="get /v1/nks/clusters/{cluster_id}/pools/{pool_id}/nodes">client.nks.clusters.pools.nodes.<a href="./src/resources/nks/clusters/pools/nodes/nodes.ts">list</a>(poolID, { ...params }) -> NKSNodesCursor</code>
|
|
65
|
+
- <code title="get /v1/nks/clusters/{cluster_id}/pools/{pool_id}/nodes/{node_id}">client.nks.clusters.pools.nodes.<a href="./src/resources/nks/clusters/pools/nodes/nodes.ts">get</a>(nodeID, { ...params }) -> NKSNode</code>
|
|
66
|
+
|
|
67
|
+
##### Volumes
|
|
68
|
+
|
|
69
|
+
Types:
|
|
70
|
+
|
|
71
|
+
- <code><a href="./src/resources/nks/clusters/pools/nodes/volumes.ts">NKSNodeVolume</a></code>
|
|
72
|
+
- <code><a href="./src/resources/nks/clusters/pools/nodes/volumes.ts">NKSNodeVolumeList</a></code>
|
|
73
|
+
|
|
74
|
+
Methods:
|
|
75
|
+
|
|
76
|
+
- <code title="get /v1/nks/clusters/{cluster_id}/pools/{pool_id}/nodes/{node_id}/volumes">client.nks.clusters.pools.nodes.volumes.<a href="./src/resources/nks/clusters/pools/nodes/volumes.ts">list</a>(nodeID, { ...params }) -> NKSNodeVolumesCursor</code>
|
|
77
|
+
- <code title="get /v1/nks/clusters/{cluster_id}/pools/{pool_id}/nodes/{node_id}/volumes/{volume_id}">client.nks.clusters.pools.nodes.volumes.<a href="./src/resources/nks/clusters/pools/nodes/volumes.ts">get</a>(volumeID, { ...params }) -> NKSNodeVolume</code>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as Shared from '../../shared';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
import { path } from '../../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Availability extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Check if an NKS cluster can be created
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* await client.nks.clusters.availability.create({
|
|
17
|
+
* name: 'my-cluster',
|
|
18
|
+
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
19
|
+
* region: 'us-wdc-1',
|
|
20
|
+
* vpc_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(body: AvailabilityCreateParams, options?: RequestOptions): APIPromise<void> {
|
|
25
|
+
return this._client.post('/v1/nks/clusters/availability', {
|
|
26
|
+
body,
|
|
27
|
+
...options,
|
|
28
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Check if an NKS cluster can be updated
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* await client.nks.clusters.availability.update('cluster_id');
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
update(clusterID: string, body: AvailabilityUpdateParams, options?: RequestOptions): APIPromise<void> {
|
|
41
|
+
return this._client.patch(path`/v1/nks/clusters/${clusterID}/availability`, {
|
|
42
|
+
body,
|
|
43
|
+
...options,
|
|
44
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface AvailabilityCreateParams {
|
|
50
|
+
/**
|
|
51
|
+
* Name of the Cluster.
|
|
52
|
+
*/
|
|
53
|
+
name: string;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Project ID to create the Cluster in.
|
|
57
|
+
*/
|
|
58
|
+
project_id: string;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Region the resource is in.
|
|
62
|
+
*/
|
|
63
|
+
region: Shared.RegionName;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* ID of the VPC to use for the Cluster.
|
|
67
|
+
*/
|
|
68
|
+
vpc_id: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Tags to attach to the Cluster.
|
|
72
|
+
*/
|
|
73
|
+
tags?: Array<string>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface AvailabilityUpdateParams {
|
|
77
|
+
/**
|
|
78
|
+
* Name of the Cluster.
|
|
79
|
+
*/
|
|
80
|
+
name?: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Tags to attach to the Cluster.
|
|
84
|
+
*/
|
|
85
|
+
tags?: Array<string>;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export declare namespace Availability {
|
|
89
|
+
export {
|
|
90
|
+
type AvailabilityCreateParams as AvailabilityCreateParams,
|
|
91
|
+
type AvailabilityUpdateParams as AvailabilityUpdateParams,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as Shared from '../../shared';
|
|
5
|
+
import * as OperationsAPI from '../../operations/operations';
|
|
6
|
+
import * as AvailabilityAPI from './availability';
|
|
7
|
+
import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from './availability';
|
|
8
|
+
import * as KubeconfigAPI from './kubeconfig';
|
|
9
|
+
import * as PoolsAPI from './pools/pools';
|
|
10
|
+
import {
|
|
11
|
+
NKSNodeConfig,
|
|
12
|
+
NKSNodePool,
|
|
13
|
+
NKSNodePoolList,
|
|
14
|
+
NKSNodePoolsCursor,
|
|
15
|
+
PoolCreateParams,
|
|
16
|
+
PoolDeleteParams,
|
|
17
|
+
PoolGetParams,
|
|
18
|
+
PoolListParams,
|
|
19
|
+
PoolUpdateParams,
|
|
20
|
+
Pools,
|
|
21
|
+
} from './pools/pools';
|
|
22
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
23
|
+
import { Cursor, type CursorParams, PagePromise } from '../../../core/pagination';
|
|
24
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
25
|
+
import { path } from '../../../internal/utils/path';
|
|
26
|
+
|
|
27
|
+
export class Clusters extends APIResource {
|
|
28
|
+
availability: AvailabilityAPI.Availability = new AvailabilityAPI.Availability(this._client);
|
|
29
|
+
kubeconfig: KubeconfigAPI.Kubeconfig = new KubeconfigAPI.Kubeconfig(this._client);
|
|
30
|
+
pools: PoolsAPI.Pools = new PoolsAPI.Pools(this._client);
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Create an NKS Cluster
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const operation = await client.nks.clusters.create({
|
|
38
|
+
* name: 'my-cluster',
|
|
39
|
+
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
40
|
+
* region: 'us-wdc-1',
|
|
41
|
+
* vpc_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
create(body: ClusterCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
46
|
+
return this._client.post('/v1/nks/clusters', { body, ...options });
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Update an NKS cluster
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* ```ts
|
|
54
|
+
* const nksCluster = await client.nks.clusters.update(
|
|
55
|
+
* 'cluster_id',
|
|
56
|
+
* );
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
update(clusterID: string, body: ClusterUpdateParams, options?: RequestOptions): APIPromise<NKSCluster> {
|
|
60
|
+
return this._client.patch(path`/v1/nks/clusters/${clusterID}`, { body, ...options });
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* List all NKS clusters
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* // Automatically fetches more pages as needed.
|
|
69
|
+
* for await (const nksCluster of client.nks.clusters.list({
|
|
70
|
+
* project_id: 'project_id',
|
|
71
|
+
* })) {
|
|
72
|
+
* // ...
|
|
73
|
+
* }
|
|
74
|
+
* ```
|
|
75
|
+
*/
|
|
76
|
+
list(query: ClusterListParams, options?: RequestOptions): PagePromise<NKSClustersCursor, NKSCluster> {
|
|
77
|
+
return this._client.getAPIList('/v1/nks/clusters', Cursor<NKSCluster>, { query, ...options });
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Delete an NKS cluster
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const operation = await client.nks.clusters.delete(
|
|
86
|
+
* 'cluster_id',
|
|
87
|
+
* );
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
delete(clusterID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
91
|
+
return this._client.delete(path`/v1/nks/clusters/${clusterID}`, options);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Get details about an NKS cluster
|
|
96
|
+
*
|
|
97
|
+
* @example
|
|
98
|
+
* ```ts
|
|
99
|
+
* const nksCluster = await client.nks.clusters.get(
|
|
100
|
+
* 'cluster_id',
|
|
101
|
+
* );
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
get(clusterID: string, options?: RequestOptions): APIPromise<NKSCluster> {
|
|
105
|
+
return this._client.get(path`/v1/nks/clusters/${clusterID}`, options);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type NKSClustersCursor = Cursor<NKSCluster>;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Kubeconfig for an NKS Cluster.
|
|
113
|
+
*/
|
|
114
|
+
export interface Kubeconfig {
|
|
115
|
+
/**
|
|
116
|
+
* Kubeconfig content for the Cluster.
|
|
117
|
+
*/
|
|
118
|
+
kubeconfig: string;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* NKS Cluster details.
|
|
123
|
+
*/
|
|
124
|
+
export interface NKSCluster {
|
|
125
|
+
/**
|
|
126
|
+
* Unique identifier for the Cluster.
|
|
127
|
+
*/
|
|
128
|
+
id: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* When the Cluster was created.
|
|
132
|
+
*/
|
|
133
|
+
created_at: string;
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Name of the Cluster.
|
|
137
|
+
*/
|
|
138
|
+
name: string;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* IDs of pools belonging to this Cluster.
|
|
142
|
+
*/
|
|
143
|
+
pool_ids: Array<string>;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Private IP (VIP) of the Cluster.
|
|
147
|
+
*/
|
|
148
|
+
private_ip: string;
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* Project ID the Cluster belongs to.
|
|
152
|
+
*/
|
|
153
|
+
project_id: string;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Public IP of the Cluster.
|
|
157
|
+
*/
|
|
158
|
+
public_ip: string;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Region the resource is in.
|
|
162
|
+
*/
|
|
163
|
+
region: Shared.RegionName;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Status of the resource.
|
|
167
|
+
*/
|
|
168
|
+
status: Shared.ResourceStatus;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Tags attached to the Cluster.
|
|
172
|
+
*/
|
|
173
|
+
tags: Array<string>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* When the Cluster was last updated.
|
|
177
|
+
*/
|
|
178
|
+
updated_at: string;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* ID of the VPC the Cluster is in.
|
|
182
|
+
*/
|
|
183
|
+
vpc_id: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export interface NKSClusterList {
|
|
187
|
+
items: Array<NKSCluster>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Pagination response details.
|
|
191
|
+
*/
|
|
192
|
+
pagination: Shared.Pagination;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface ClusterCreateParams {
|
|
196
|
+
/**
|
|
197
|
+
* Name of the Cluster.
|
|
198
|
+
*/
|
|
199
|
+
name: string;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Project ID to create the Cluster in.
|
|
203
|
+
*/
|
|
204
|
+
project_id: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Region the resource is in.
|
|
208
|
+
*/
|
|
209
|
+
region: Shared.RegionName;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* ID of the VPC to use for the Cluster.
|
|
213
|
+
*/
|
|
214
|
+
vpc_id: string;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Tags to attach to the Cluster.
|
|
218
|
+
*/
|
|
219
|
+
tags?: Array<string>;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface ClusterUpdateParams {
|
|
223
|
+
/**
|
|
224
|
+
* Name of the Cluster.
|
|
225
|
+
*/
|
|
226
|
+
name?: string;
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Tags to attach to the Cluster.
|
|
230
|
+
*/
|
|
231
|
+
tags?: Array<string>;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface ClusterListParams extends CursorParams {
|
|
235
|
+
/**
|
|
236
|
+
* Project ID of resources to request
|
|
237
|
+
*/
|
|
238
|
+
project_id: string;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
Clusters.Availability = Availability;
|
|
242
|
+
Clusters.Pools = Pools;
|
|
243
|
+
|
|
244
|
+
export declare namespace Clusters {
|
|
245
|
+
export {
|
|
246
|
+
type Kubeconfig as Kubeconfig,
|
|
247
|
+
type NKSCluster as NKSCluster,
|
|
248
|
+
type NKSClusterList as NKSClusterList,
|
|
249
|
+
type NKSClustersCursor as NKSClustersCursor,
|
|
250
|
+
type ClusterCreateParams as ClusterCreateParams,
|
|
251
|
+
type ClusterUpdateParams as ClusterUpdateParams,
|
|
252
|
+
type ClusterListParams as ClusterListParams,
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
export {
|
|
256
|
+
Availability as Availability,
|
|
257
|
+
type AvailabilityCreateParams as AvailabilityCreateParams,
|
|
258
|
+
type AvailabilityUpdateParams as AvailabilityUpdateParams,
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
export {
|
|
262
|
+
Pools as Pools,
|
|
263
|
+
type NKSNodeConfig as NKSNodeConfig,
|
|
264
|
+
type NKSNodePool as NKSNodePool,
|
|
265
|
+
type NKSNodePoolList as NKSNodePoolList,
|
|
266
|
+
type NKSNodePoolsCursor as NKSNodePoolsCursor,
|
|
267
|
+
type PoolCreateParams as PoolCreateParams,
|
|
268
|
+
type PoolUpdateParams as PoolUpdateParams,
|
|
269
|
+
type PoolListParams as PoolListParams,
|
|
270
|
+
type PoolDeleteParams as PoolDeleteParams,
|
|
271
|
+
type PoolGetParams as PoolGetParams,
|
|
272
|
+
};
|
|
273
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export { Availability, type AvailabilityCreateParams, type AvailabilityUpdateParams } from './availability';
|
|
4
|
+
export {
|
|
5
|
+
Clusters,
|
|
6
|
+
type Kubeconfig,
|
|
7
|
+
type NKSCluster,
|
|
8
|
+
type NKSClusterList,
|
|
9
|
+
type ClusterCreateParams,
|
|
10
|
+
type ClusterUpdateParams,
|
|
11
|
+
type ClusterListParams,
|
|
12
|
+
type NKSClustersCursor,
|
|
13
|
+
} from './clusters';
|
|
14
|
+
export {
|
|
15
|
+
Pools,
|
|
16
|
+
type NKSNodeConfig,
|
|
17
|
+
type NKSNodePool,
|
|
18
|
+
type NKSNodePoolList,
|
|
19
|
+
type PoolCreateParams,
|
|
20
|
+
type PoolUpdateParams,
|
|
21
|
+
type PoolListParams,
|
|
22
|
+
type PoolDeleteParams,
|
|
23
|
+
type PoolGetParams,
|
|
24
|
+
type NKSNodePoolsCursor,
|
|
25
|
+
} from './pools/index';
|