@nirvana-labs/nirvana 1.55.4 → 1.57.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 +30 -0
- package/bin/migration-config.json +300 -0
- package/client.d.mts +4 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -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/api-keys/api-keys.d.mts +1 -16
- package/resources/api-keys/api-keys.d.mts.map +1 -1
- package/resources/api-keys/api-keys.d.ts +1 -16
- package/resources/api-keys/api-keys.d.ts.map +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 +219 -0
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -0
- package/resources/nks/clusters/pools/pools.d.ts +219 -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/projects/projects.d.mts +54 -50
- package/resources/projects/projects.d.mts.map +1 -1
- package/resources/projects/projects.d.ts +54 -50
- package/resources/projects/projects.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/resources/shared.d.mts +14 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +14 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/user/security.d.mts +1 -16
- package/resources/user/security.d.mts.map +1 -1
- package/resources/user/security.d.ts +1 -16
- package/resources/user/security.d.ts.map +1 -1
- package/src/client.ts +6 -0
- package/src/resources/api-keys/api-keys.ts +1 -18
- package/src/resources/index.ts +1 -0
- package/src/resources/nks/api.md +78 -0
- package/src/resources/nks/clusters/availability.ts +93 -0
- package/src/resources/nks/clusters/clusters.ts +275 -0
- package/src/resources/nks/clusters/index.ts +26 -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 +24 -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 +310 -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/projects/api.md +3 -0
- package/src/resources/projects/projects.ts +63 -54
- package/src/resources/regions/regions.ts +15 -0
- package/src/resources/shared.ts +16 -8
- package/src/resources/user/security.ts +1 -18
- 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
package/resources/shared.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ export interface Pagination {
|
|
|
9
9
|
/**
|
|
10
10
|
* Region the resource is in.
|
|
11
11
|
*/
|
|
12
|
-
export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-sva-2' | 'us-chi-1' | 'us-wdc-1'
|
|
12
|
+
export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-sva-2' | 'us-chi-1' | 'us-wdc-1';
|
|
13
13
|
/**
|
|
14
14
|
* Status of the resource.
|
|
15
15
|
*/
|
|
@@ -27,4 +27,17 @@ export interface SourceIPRule {
|
|
|
27
27
|
*/
|
|
28
28
|
blocked?: Array<string>;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* IP filter rules.
|
|
32
|
+
*/
|
|
33
|
+
export interface SourceIPRuleResponse {
|
|
34
|
+
/**
|
|
35
|
+
* List of IPv4 CIDR addresses to allow.
|
|
36
|
+
*/
|
|
37
|
+
allowed: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* List of IPv4 CIDR addresses to deny.
|
|
40
|
+
*/
|
|
41
|
+
blocked: Array<string>;
|
|
42
|
+
}
|
|
30
43
|
//# sourceMappingURL=shared.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"shared.d.mts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;AAE9G;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEvB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB"}
|
package/resources/shared.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface Pagination {
|
|
|
9
9
|
/**
|
|
10
10
|
* Region the resource is in.
|
|
11
11
|
*/
|
|
12
|
-
export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-sva-2' | 'us-chi-1' | 'us-wdc-1'
|
|
12
|
+
export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-sva-2' | 'us-chi-1' | 'us-wdc-1';
|
|
13
13
|
/**
|
|
14
14
|
* Status of the resource.
|
|
15
15
|
*/
|
|
@@ -27,4 +27,17 @@ export interface SourceIPRule {
|
|
|
27
27
|
*/
|
|
28
28
|
blocked?: Array<string>;
|
|
29
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* IP filter rules.
|
|
32
|
+
*/
|
|
33
|
+
export interface SourceIPRuleResponse {
|
|
34
|
+
/**
|
|
35
|
+
* List of IPv4 CIDR addresses to allow.
|
|
36
|
+
*/
|
|
37
|
+
allowed: Array<string>;
|
|
38
|
+
/**
|
|
39
|
+
* List of IPv4 CIDR addresses to deny.
|
|
40
|
+
*/
|
|
41
|
+
blocked: Array<string>;
|
|
42
|
+
}
|
|
30
43
|
//# sourceMappingURL=shared.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../src/resources/shared.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AAExF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAC;AAE9G;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAEvB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACxB"}
|
|
@@ -19,7 +19,7 @@ export interface UserSecurity {
|
|
|
19
19
|
/**
|
|
20
20
|
* IP filter rules.
|
|
21
21
|
*/
|
|
22
|
-
source_ip_rule:
|
|
22
|
+
source_ip_rule: Shared.SourceIPRuleResponse;
|
|
23
23
|
/**
|
|
24
24
|
* When the user security settings were created.
|
|
25
25
|
*/
|
|
@@ -29,21 +29,6 @@ export interface UserSecurity {
|
|
|
29
29
|
*/
|
|
30
30
|
updated_at?: string;
|
|
31
31
|
}
|
|
32
|
-
export declare namespace UserSecurity {
|
|
33
|
-
/**
|
|
34
|
-
* IP filter rules.
|
|
35
|
-
*/
|
|
36
|
-
interface SourceIPRule {
|
|
37
|
-
/**
|
|
38
|
-
* List of IPv4 CIDR addresses to allow.
|
|
39
|
-
*/
|
|
40
|
-
allowed: Array<string>;
|
|
41
|
-
/**
|
|
42
|
-
* List of IPv4 CIDR addresses to deny.
|
|
43
|
-
*/
|
|
44
|
-
blocked: Array<string>;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
32
|
export interface SecurityUpdateParams {
|
|
48
33
|
/**
|
|
49
34
|
* IP filter rules.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.mts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAItF;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"security.d.mts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAItF;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAE5C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CACjG"}
|
|
@@ -19,7 +19,7 @@ export interface UserSecurity {
|
|
|
19
19
|
/**
|
|
20
20
|
* IP filter rules.
|
|
21
21
|
*/
|
|
22
|
-
source_ip_rule:
|
|
22
|
+
source_ip_rule: Shared.SourceIPRuleResponse;
|
|
23
23
|
/**
|
|
24
24
|
* When the user security settings were created.
|
|
25
25
|
*/
|
|
@@ -29,21 +29,6 @@ export interface UserSecurity {
|
|
|
29
29
|
*/
|
|
30
30
|
updated_at?: string;
|
|
31
31
|
}
|
|
32
|
-
export declare namespace UserSecurity {
|
|
33
|
-
/**
|
|
34
|
-
* IP filter rules.
|
|
35
|
-
*/
|
|
36
|
-
interface SourceIPRule {
|
|
37
|
-
/**
|
|
38
|
-
* List of IPv4 CIDR addresses to allow.
|
|
39
|
-
*/
|
|
40
|
-
allowed: Array<string>;
|
|
41
|
-
/**
|
|
42
|
-
* List of IPv4 CIDR addresses to deny.
|
|
43
|
-
*/
|
|
44
|
-
blocked: Array<string>;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
32
|
export interface SecurityUpdateParams {
|
|
48
33
|
/**
|
|
49
34
|
* IP filter rules.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAItF;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,EAAE,
|
|
1
|
+
{"version":3,"file":"security.d.ts","sourceRoot":"","sources":["../../src/resources/user/security.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAItF;;OAEG;IACH,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;CAGxD;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,oBAAoB,CAAC;IAE5C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,YAAY,CAAC;CACtC;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EAAE,KAAK,YAAY,IAAI,YAAY,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,CAAC;CACjG"}
|
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,8 +805,11 @@ 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;
|
|
808
813
|
export type SourceIPRule = API.SourceIPRule;
|
|
814
|
+
export type SourceIPRuleResponse = API.SourceIPRuleResponse;
|
|
809
815
|
}
|
|
@@ -111,7 +111,7 @@ export interface APIKey {
|
|
|
111
111
|
/**
|
|
112
112
|
* IP filter rules.
|
|
113
113
|
*/
|
|
114
|
-
source_ip_rule:
|
|
114
|
+
source_ip_rule: Shared.SourceIPRuleResponse;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
117
|
* Status of the API Key.
|
|
@@ -139,23 +139,6 @@ export interface APIKey {
|
|
|
139
139
|
starts_at?: string;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
export namespace APIKey {
|
|
143
|
-
/**
|
|
144
|
-
* IP filter rules.
|
|
145
|
-
*/
|
|
146
|
-
export interface SourceIPRule {
|
|
147
|
-
/**
|
|
148
|
-
* List of IPv4 CIDR addresses to allow.
|
|
149
|
-
*/
|
|
150
|
-
allowed: Array<string>;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* List of IPv4 CIDR addresses to deny.
|
|
154
|
-
*/
|
|
155
|
-
blocked: Array<string>;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
142
|
export interface APIKeyList {
|
|
160
143
|
items: Array<APIKey>;
|
|
161
144
|
|
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,78 @@
|
|
|
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">NKSNodeConfigResponse</a></code>
|
|
38
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePool</a></code>
|
|
39
|
+
- <code><a href="./src/resources/nks/clusters/pools/pools.ts">NKSNodePoolList</a></code>
|
|
40
|
+
|
|
41
|
+
Methods:
|
|
42
|
+
|
|
43
|
+
- <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>
|
|
44
|
+
- <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>
|
|
45
|
+
- <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>
|
|
46
|
+
- <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>
|
|
47
|
+
- <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>
|
|
48
|
+
|
|
49
|
+
#### Availability
|
|
50
|
+
|
|
51
|
+
Methods:
|
|
52
|
+
|
|
53
|
+
- <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>
|
|
54
|
+
- <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>
|
|
55
|
+
|
|
56
|
+
#### Nodes
|
|
57
|
+
|
|
58
|
+
Types:
|
|
59
|
+
|
|
60
|
+
- <code><a href="./src/resources/nks/clusters/pools/nodes/nodes.ts">NKSNode</a></code>
|
|
61
|
+
- <code><a href="./src/resources/nks/clusters/pools/nodes/nodes.ts">NKSNodeList</a></code>
|
|
62
|
+
|
|
63
|
+
Methods:
|
|
64
|
+
|
|
65
|
+
- <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>
|
|
66
|
+
- <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>
|
|
67
|
+
|
|
68
|
+
##### Volumes
|
|
69
|
+
|
|
70
|
+
Types:
|
|
71
|
+
|
|
72
|
+
- <code><a href="./src/resources/nks/clusters/pools/nodes/volumes.ts">NKSNodeVolume</a></code>
|
|
73
|
+
- <code><a href="./src/resources/nks/clusters/pools/nodes/volumes.ts">NKSNodeVolumeList</a></code>
|
|
74
|
+
|
|
75
|
+
Methods:
|
|
76
|
+
|
|
77
|
+
- <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>
|
|
78
|
+
- <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,275 @@
|
|
|
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
|
+
NKSNodeConfigResponse,
|
|
13
|
+
NKSNodePool,
|
|
14
|
+
NKSNodePoolList,
|
|
15
|
+
NKSNodePoolsCursor,
|
|
16
|
+
PoolCreateParams,
|
|
17
|
+
PoolDeleteParams,
|
|
18
|
+
PoolGetParams,
|
|
19
|
+
PoolListParams,
|
|
20
|
+
PoolUpdateParams,
|
|
21
|
+
Pools,
|
|
22
|
+
} from './pools/pools';
|
|
23
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
24
|
+
import { Cursor, type CursorParams, PagePromise } from '../../../core/pagination';
|
|
25
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
26
|
+
import { path } from '../../../internal/utils/path';
|
|
27
|
+
|
|
28
|
+
export class Clusters extends APIResource {
|
|
29
|
+
availability: AvailabilityAPI.Availability = new AvailabilityAPI.Availability(this._client);
|
|
30
|
+
kubeconfig: KubeconfigAPI.Kubeconfig = new KubeconfigAPI.Kubeconfig(this._client);
|
|
31
|
+
pools: PoolsAPI.Pools = new PoolsAPI.Pools(this._client);
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Create an NKS Cluster
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const operation = await client.nks.clusters.create({
|
|
39
|
+
* name: 'my-cluster',
|
|
40
|
+
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
41
|
+
* region: 'us-wdc-1',
|
|
42
|
+
* vpc_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
43
|
+
* });
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
create(body: ClusterCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
47
|
+
return this._client.post('/v1/nks/clusters', { body, ...options });
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Update an NKS cluster
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* const nksCluster = await client.nks.clusters.update(
|
|
56
|
+
* 'cluster_id',
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
update(clusterID: string, body: ClusterUpdateParams, options?: RequestOptions): APIPromise<NKSCluster> {
|
|
61
|
+
return this._client.patch(path`/v1/nks/clusters/${clusterID}`, { body, ...options });
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* List all NKS clusters
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* // Automatically fetches more pages as needed.
|
|
70
|
+
* for await (const nksCluster of client.nks.clusters.list({
|
|
71
|
+
* project_id: 'project_id',
|
|
72
|
+
* })) {
|
|
73
|
+
* // ...
|
|
74
|
+
* }
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
list(query: ClusterListParams, options?: RequestOptions): PagePromise<NKSClustersCursor, NKSCluster> {
|
|
78
|
+
return this._client.getAPIList('/v1/nks/clusters', Cursor<NKSCluster>, { query, ...options });
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Delete an NKS cluster
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const operation = await client.nks.clusters.delete(
|
|
87
|
+
* 'cluster_id',
|
|
88
|
+
* );
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
delete(clusterID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
92
|
+
return this._client.delete(path`/v1/nks/clusters/${clusterID}`, options);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Get details about an NKS cluster
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* ```ts
|
|
100
|
+
* const nksCluster = await client.nks.clusters.get(
|
|
101
|
+
* 'cluster_id',
|
|
102
|
+
* );
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
get(clusterID: string, options?: RequestOptions): APIPromise<NKSCluster> {
|
|
106
|
+
return this._client.get(path`/v1/nks/clusters/${clusterID}`, options);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type NKSClustersCursor = Cursor<NKSCluster>;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Kubeconfig for an NKS Cluster.
|
|
114
|
+
*/
|
|
115
|
+
export interface Kubeconfig {
|
|
116
|
+
/**
|
|
117
|
+
* Kubeconfig content for the Cluster.
|
|
118
|
+
*/
|
|
119
|
+
kubeconfig: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* NKS Cluster details.
|
|
124
|
+
*/
|
|
125
|
+
export interface NKSCluster {
|
|
126
|
+
/**
|
|
127
|
+
* Unique identifier for the Cluster.
|
|
128
|
+
*/
|
|
129
|
+
id: string;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* When the Cluster was created.
|
|
133
|
+
*/
|
|
134
|
+
created_at: string;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Name of the Cluster.
|
|
138
|
+
*/
|
|
139
|
+
name: string;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* IDs of pools belonging to this Cluster.
|
|
143
|
+
*/
|
|
144
|
+
pool_ids: Array<string>;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Private IP (VIP) of the Cluster.
|
|
148
|
+
*/
|
|
149
|
+
private_ip: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* Project ID the Cluster belongs to.
|
|
153
|
+
*/
|
|
154
|
+
project_id: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Public IP of the Cluster.
|
|
158
|
+
*/
|
|
159
|
+
public_ip: string;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* Region the resource is in.
|
|
163
|
+
*/
|
|
164
|
+
region: Shared.RegionName;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Status of the resource.
|
|
168
|
+
*/
|
|
169
|
+
status: Shared.ResourceStatus;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Tags attached to the Cluster.
|
|
173
|
+
*/
|
|
174
|
+
tags: Array<string>;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* When the Cluster was last updated.
|
|
178
|
+
*/
|
|
179
|
+
updated_at: string;
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* ID of the VPC the Cluster is in.
|
|
183
|
+
*/
|
|
184
|
+
vpc_id: string;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export interface NKSClusterList {
|
|
188
|
+
items: Array<NKSCluster>;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Pagination response details.
|
|
192
|
+
*/
|
|
193
|
+
pagination: Shared.Pagination;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface ClusterCreateParams {
|
|
197
|
+
/**
|
|
198
|
+
* Name of the Cluster.
|
|
199
|
+
*/
|
|
200
|
+
name: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Project ID to create the Cluster in.
|
|
204
|
+
*/
|
|
205
|
+
project_id: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Region the resource is in.
|
|
209
|
+
*/
|
|
210
|
+
region: Shared.RegionName;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* ID of the VPC to use for the Cluster.
|
|
214
|
+
*/
|
|
215
|
+
vpc_id: string;
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Tags to attach to the Cluster.
|
|
219
|
+
*/
|
|
220
|
+
tags?: Array<string>;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface ClusterUpdateParams {
|
|
224
|
+
/**
|
|
225
|
+
* Name of the Cluster.
|
|
226
|
+
*/
|
|
227
|
+
name?: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Tags to attach to the Cluster.
|
|
231
|
+
*/
|
|
232
|
+
tags?: Array<string>;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
export interface ClusterListParams extends CursorParams {
|
|
236
|
+
/**
|
|
237
|
+
* Project ID of resources to request
|
|
238
|
+
*/
|
|
239
|
+
project_id: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
Clusters.Availability = Availability;
|
|
243
|
+
Clusters.Pools = Pools;
|
|
244
|
+
|
|
245
|
+
export declare namespace Clusters {
|
|
246
|
+
export {
|
|
247
|
+
type Kubeconfig as Kubeconfig,
|
|
248
|
+
type NKSCluster as NKSCluster,
|
|
249
|
+
type NKSClusterList as NKSClusterList,
|
|
250
|
+
type NKSClustersCursor as NKSClustersCursor,
|
|
251
|
+
type ClusterCreateParams as ClusterCreateParams,
|
|
252
|
+
type ClusterUpdateParams as ClusterUpdateParams,
|
|
253
|
+
type ClusterListParams as ClusterListParams,
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
export {
|
|
257
|
+
Availability as Availability,
|
|
258
|
+
type AvailabilityCreateParams as AvailabilityCreateParams,
|
|
259
|
+
type AvailabilityUpdateParams as AvailabilityUpdateParams,
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
export {
|
|
263
|
+
Pools as Pools,
|
|
264
|
+
type NKSNodeConfig as NKSNodeConfig,
|
|
265
|
+
type NKSNodeConfigResponse as NKSNodeConfigResponse,
|
|
266
|
+
type NKSNodePool as NKSNodePool,
|
|
267
|
+
type NKSNodePoolList as NKSNodePoolList,
|
|
268
|
+
type NKSNodePoolsCursor as NKSNodePoolsCursor,
|
|
269
|
+
type PoolCreateParams as PoolCreateParams,
|
|
270
|
+
type PoolUpdateParams as PoolUpdateParams,
|
|
271
|
+
type PoolListParams as PoolListParams,
|
|
272
|
+
type PoolDeleteParams as PoolDeleteParams,
|
|
273
|
+
type PoolGetParams as PoolGetParams,
|
|
274
|
+
};
|
|
275
|
+
}
|