@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,109 @@
|
|
|
1
|
+
import { APIResource } from "../../../../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../../../../shared.mjs";
|
|
3
|
+
import * as VolumesAPI from "../../../../compute/volumes/volumes.mjs";
|
|
4
|
+
import { APIPromise } from "../../../../../core/api-promise.mjs";
|
|
5
|
+
import { Cursor, type CursorParams, PagePromise } from "../../../../../core/pagination.mjs";
|
|
6
|
+
import { RequestOptions } from "../../../../../internal/request-options.mjs";
|
|
7
|
+
export declare class Volumes extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List all volumes attached to an NKS node
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const nksNodeVolume of client.nks.clusters.pools.nodes.volumes.list(
|
|
15
|
+
* 'node_id',
|
|
16
|
+
* { cluster_id: 'cluster_id', pool_id: 'pool_id' },
|
|
17
|
+
* )) {
|
|
18
|
+
* // ...
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(nodeID: string, params: VolumeListParams, options?: RequestOptions): PagePromise<NKSNodeVolumesCursor, NKSNodeVolume>;
|
|
23
|
+
/**
|
|
24
|
+
* Get details about a volume attached to an NKS node
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const nksNodeVolume =
|
|
29
|
+
* await client.nks.clusters.pools.nodes.volumes.get(
|
|
30
|
+
* 'volume_id',
|
|
31
|
+
* {
|
|
32
|
+
* cluster_id: 'cluster_id',
|
|
33
|
+
* pool_id: 'pool_id',
|
|
34
|
+
* node_id: 'node_id',
|
|
35
|
+
* },
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
get(volumeID: string, params: VolumeGetParams, options?: RequestOptions): APIPromise<NKSNodeVolume>;
|
|
40
|
+
}
|
|
41
|
+
export type NKSNodeVolumesCursor = Cursor<NKSNodeVolume>;
|
|
42
|
+
/**
|
|
43
|
+
* NKS node volume details.
|
|
44
|
+
*/
|
|
45
|
+
export interface NKSNodeVolume {
|
|
46
|
+
/**
|
|
47
|
+
* Unique identifier for the volume.
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* When the volume was created.
|
|
52
|
+
*/
|
|
53
|
+
created_at: string;
|
|
54
|
+
/**
|
|
55
|
+
* Volume kind.
|
|
56
|
+
*/
|
|
57
|
+
kind: VolumesAPI.VolumeKind;
|
|
58
|
+
/**
|
|
59
|
+
* Name of the volume.
|
|
60
|
+
*/
|
|
61
|
+
name: string;
|
|
62
|
+
/**
|
|
63
|
+
* Status of the resource.
|
|
64
|
+
*/
|
|
65
|
+
status: Shared.ResourceStatus;
|
|
66
|
+
/**
|
|
67
|
+
* Type of the Volume.
|
|
68
|
+
*/
|
|
69
|
+
type: VolumesAPI.VolumeType;
|
|
70
|
+
/**
|
|
71
|
+
* When the volume was last updated.
|
|
72
|
+
*/
|
|
73
|
+
updated_at: string;
|
|
74
|
+
}
|
|
75
|
+
export interface NKSNodeVolumeList {
|
|
76
|
+
items: Array<NKSNodeVolume>;
|
|
77
|
+
/**
|
|
78
|
+
* Pagination response details.
|
|
79
|
+
*/
|
|
80
|
+
pagination: Shared.Pagination;
|
|
81
|
+
}
|
|
82
|
+
export interface VolumeListParams extends CursorParams {
|
|
83
|
+
/**
|
|
84
|
+
* Path param: Cluster ID
|
|
85
|
+
*/
|
|
86
|
+
cluster_id: string;
|
|
87
|
+
/**
|
|
88
|
+
* Path param: Node Pool ID
|
|
89
|
+
*/
|
|
90
|
+
pool_id: string;
|
|
91
|
+
}
|
|
92
|
+
export interface VolumeGetParams {
|
|
93
|
+
/**
|
|
94
|
+
* Cluster ID
|
|
95
|
+
*/
|
|
96
|
+
cluster_id: string;
|
|
97
|
+
/**
|
|
98
|
+
* Node Pool ID
|
|
99
|
+
*/
|
|
100
|
+
pool_id: string;
|
|
101
|
+
/**
|
|
102
|
+
* Node ID
|
|
103
|
+
*/
|
|
104
|
+
node_id: string;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace Volumes {
|
|
107
|
+
export { type NKSNodeVolume as NKSNodeVolume, type NKSNodeVolumeList as NKSNodeVolumeList, type NKSNodeVolumesCursor as NKSNodeVolumesCursor, type VolumeListParams as VolumeListParams, type VolumeGetParams as VolumeGetParams, };
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=volumes.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.d.mts","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/volumes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,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EhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { APIResource } from "../../../../../core/resource.js";
|
|
2
|
+
import * as Shared from "../../../../shared.js";
|
|
3
|
+
import * as VolumesAPI from "../../../../compute/volumes/volumes.js";
|
|
4
|
+
import { APIPromise } from "../../../../../core/api-promise.js";
|
|
5
|
+
import { Cursor, type CursorParams, PagePromise } from "../../../../../core/pagination.js";
|
|
6
|
+
import { RequestOptions } from "../../../../../internal/request-options.js";
|
|
7
|
+
export declare class Volumes extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List all volumes attached to an NKS node
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* // Automatically fetches more pages as needed.
|
|
14
|
+
* for await (const nksNodeVolume of client.nks.clusters.pools.nodes.volumes.list(
|
|
15
|
+
* 'node_id',
|
|
16
|
+
* { cluster_id: 'cluster_id', pool_id: 'pool_id' },
|
|
17
|
+
* )) {
|
|
18
|
+
* // ...
|
|
19
|
+
* }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
list(nodeID: string, params: VolumeListParams, options?: RequestOptions): PagePromise<NKSNodeVolumesCursor, NKSNodeVolume>;
|
|
23
|
+
/**
|
|
24
|
+
* Get details about a volume attached to an NKS node
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const nksNodeVolume =
|
|
29
|
+
* await client.nks.clusters.pools.nodes.volumes.get(
|
|
30
|
+
* 'volume_id',
|
|
31
|
+
* {
|
|
32
|
+
* cluster_id: 'cluster_id',
|
|
33
|
+
* pool_id: 'pool_id',
|
|
34
|
+
* node_id: 'node_id',
|
|
35
|
+
* },
|
|
36
|
+
* );
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
get(volumeID: string, params: VolumeGetParams, options?: RequestOptions): APIPromise<NKSNodeVolume>;
|
|
40
|
+
}
|
|
41
|
+
export type NKSNodeVolumesCursor = Cursor<NKSNodeVolume>;
|
|
42
|
+
/**
|
|
43
|
+
* NKS node volume details.
|
|
44
|
+
*/
|
|
45
|
+
export interface NKSNodeVolume {
|
|
46
|
+
/**
|
|
47
|
+
* Unique identifier for the volume.
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* When the volume was created.
|
|
52
|
+
*/
|
|
53
|
+
created_at: string;
|
|
54
|
+
/**
|
|
55
|
+
* Volume kind.
|
|
56
|
+
*/
|
|
57
|
+
kind: VolumesAPI.VolumeKind;
|
|
58
|
+
/**
|
|
59
|
+
* Name of the volume.
|
|
60
|
+
*/
|
|
61
|
+
name: string;
|
|
62
|
+
/**
|
|
63
|
+
* Status of the resource.
|
|
64
|
+
*/
|
|
65
|
+
status: Shared.ResourceStatus;
|
|
66
|
+
/**
|
|
67
|
+
* Type of the Volume.
|
|
68
|
+
*/
|
|
69
|
+
type: VolumesAPI.VolumeType;
|
|
70
|
+
/**
|
|
71
|
+
* When the volume was last updated.
|
|
72
|
+
*/
|
|
73
|
+
updated_at: string;
|
|
74
|
+
}
|
|
75
|
+
export interface NKSNodeVolumeList {
|
|
76
|
+
items: Array<NKSNodeVolume>;
|
|
77
|
+
/**
|
|
78
|
+
* Pagination response details.
|
|
79
|
+
*/
|
|
80
|
+
pagination: Shared.Pagination;
|
|
81
|
+
}
|
|
82
|
+
export interface VolumeListParams extends CursorParams {
|
|
83
|
+
/**
|
|
84
|
+
* Path param: Cluster ID
|
|
85
|
+
*/
|
|
86
|
+
cluster_id: string;
|
|
87
|
+
/**
|
|
88
|
+
* Path param: Node Pool ID
|
|
89
|
+
*/
|
|
90
|
+
pool_id: string;
|
|
91
|
+
}
|
|
92
|
+
export interface VolumeGetParams {
|
|
93
|
+
/**
|
|
94
|
+
* Cluster ID
|
|
95
|
+
*/
|
|
96
|
+
cluster_id: string;
|
|
97
|
+
/**
|
|
98
|
+
* Node Pool ID
|
|
99
|
+
*/
|
|
100
|
+
pool_id: string;
|
|
101
|
+
/**
|
|
102
|
+
* Node ID
|
|
103
|
+
*/
|
|
104
|
+
node_id: string;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace Volumes {
|
|
107
|
+
export { type NKSNodeVolume as NKSNodeVolume, type NKSNodeVolumeList as NKSNodeVolumeList, type NKSNodeVolumesCursor as NKSNodeVolumesCursor, type VolumeListParams as VolumeListParams, type VolumeGetParams as VolumeGetParams, };
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=volumes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.d.ts","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/volumes.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,UAAU;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,gBAAgB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oBAAoB,EAAE,aAAa,CAAC;IASnD;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC;CAOpG;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC;IAE5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAE9B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAE5B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;CAC/B;AAED,MAAM,WAAW,gBAAiB,SAAQ,YAAY;IACpD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
exports.Volumes = void 0;
|
|
5
|
+
const resource_1 = require("../../../../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../../../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../../../../internal/utils/path.js");
|
|
8
|
+
class Volumes extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List all volumes attached to an NKS node
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* // Automatically fetches more pages as needed.
|
|
15
|
+
* for await (const nksNodeVolume of client.nks.clusters.pools.nodes.volumes.list(
|
|
16
|
+
* 'node_id',
|
|
17
|
+
* { cluster_id: 'cluster_id', pool_id: 'pool_id' },
|
|
18
|
+
* )) {
|
|
19
|
+
* // ...
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
list(nodeID, params, options) {
|
|
24
|
+
const { cluster_id, pool_id, ...query } = params;
|
|
25
|
+
return this._client.getAPIList((0, path_1.path) `/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${nodeID}/volumes`, (pagination_1.Cursor), { query, ...options });
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get details about a volume attached to an NKS node
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const nksNodeVolume =
|
|
33
|
+
* await client.nks.clusters.pools.nodes.volumes.get(
|
|
34
|
+
* 'volume_id',
|
|
35
|
+
* {
|
|
36
|
+
* cluster_id: 'cluster_id',
|
|
37
|
+
* pool_id: 'pool_id',
|
|
38
|
+
* node_id: 'node_id',
|
|
39
|
+
* },
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
get(volumeID, params, options) {
|
|
44
|
+
const { cluster_id, pool_id, node_id } = params;
|
|
45
|
+
return this._client.get((0, path_1.path) `/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${node_id}/volumes/${volumeID}`, options);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.Volumes = Volumes;
|
|
49
|
+
//# sourceMappingURL=volumes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.js","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/volumes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAA2D;AAI3D,kEAAwF;AAExF,gEAA0D;AAE1D,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAA,WAAI,EAAA,oBAAoB,UAAU,UAAU,OAAO,UAAU,MAAM,UAAU,EAC7E,CAAA,mBAAqB,CAAA,EACrB,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,QAAgB,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,oBAAoB,UAAU,UAAU,OAAO,UAAU,OAAO,YAAY,QAAQ,EAAE,EAC1F,OAAO,CACR,CAAC;IACJ,CAAC;CACF;AAnDD,0BAmDC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../../../core/resource.mjs";
|
|
3
|
+
import { Cursor } from "../../../../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../../../../internal/utils/path.mjs";
|
|
5
|
+
export class Volumes extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List all volumes attached to an NKS node
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* // Automatically fetches more pages as needed.
|
|
12
|
+
* for await (const nksNodeVolume of client.nks.clusters.pools.nodes.volumes.list(
|
|
13
|
+
* 'node_id',
|
|
14
|
+
* { cluster_id: 'cluster_id', pool_id: 'pool_id' },
|
|
15
|
+
* )) {
|
|
16
|
+
* // ...
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
list(nodeID, params, options) {
|
|
21
|
+
const { cluster_id, pool_id, ...query } = params;
|
|
22
|
+
return this._client.getAPIList(path `/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${nodeID}/volumes`, (Cursor), { query, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Get details about a volume attached to an NKS node
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const nksNodeVolume =
|
|
30
|
+
* await client.nks.clusters.pools.nodes.volumes.get(
|
|
31
|
+
* 'volume_id',
|
|
32
|
+
* {
|
|
33
|
+
* cluster_id: 'cluster_id',
|
|
34
|
+
* pool_id: 'pool_id',
|
|
35
|
+
* node_id: 'node_id',
|
|
36
|
+
* },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
get(volumeID, params, options) {
|
|
41
|
+
const { cluster_id, pool_id, node_id } = params;
|
|
42
|
+
return this._client.get(path `/v1/nks/clusters/${cluster_id}/pools/${pool_id}/nodes/${node_id}/volumes/${volumeID}`, options);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=volumes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"volumes.mjs","sourceRoot":"","sources":["../../../../../src/resources/nks/clusters/pools/nodes/volumes.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;OAaG;IACH,IAAI,CACF,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QACjD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,IAAI,CAAA,oBAAoB,UAAU,UAAU,OAAO,UAAU,MAAM,UAAU,EAC7E,CAAA,MAAqB,CAAA,EACrB,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,GAAG,CAAC,QAAgB,EAAE,MAAuB,EAAE,OAAwB;QACrE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,oBAAoB,UAAU,UAAU,OAAO,UAAU,OAAO,YAAY,QAAQ,EAAE,EAC1F,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.d.mts","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/nodes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/nodes.ts"],"names":[],"mappings":""}
|
|
@@ -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("./nodes/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=nodes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.js","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/nodes.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodes.mjs","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/nodes.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../../../shared.mjs";
|
|
3
|
+
import * as OperationsAPI from "../../../operations/operations.mjs";
|
|
4
|
+
import * as AvailabilityAPI from "./availability.mjs";
|
|
5
|
+
import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from "./availability.mjs";
|
|
6
|
+
import * as NodesAPI from "./nodes/nodes.mjs";
|
|
7
|
+
import { NKSNode, NKSNodeList, NKSNodesCursor, NodeGetParams, NodeListParams, Nodes } from "./nodes/nodes.mjs";
|
|
8
|
+
import { APIPromise } from "../../../../core/api-promise.mjs";
|
|
9
|
+
import { Cursor, type CursorParams, PagePromise } from "../../../../core/pagination.mjs";
|
|
10
|
+
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
11
|
+
export declare class Pools extends APIResource {
|
|
12
|
+
availability: AvailabilityAPI.Availability;
|
|
13
|
+
nodes: NodesAPI.Nodes;
|
|
14
|
+
/**
|
|
15
|
+
* Create a node pool in an NKS cluster
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```ts
|
|
19
|
+
* const operation = await client.nks.clusters.pools.create(
|
|
20
|
+
* 'cluster_id',
|
|
21
|
+
* {
|
|
22
|
+
* name: 'my-node-pool',
|
|
23
|
+
* node_config: {
|
|
24
|
+
* ram_gi: 8,
|
|
25
|
+
* storage_gi: 100,
|
|
26
|
+
* vcpu: 4,
|
|
27
|
+
* },
|
|
28
|
+
* node_count: 3,
|
|
29
|
+
* },
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
create(clusterID: string, body: PoolCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
34
|
+
/**
|
|
35
|
+
* Update an NKS node pool
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const nksNodePool = await client.nks.clusters.pools.update(
|
|
40
|
+
* 'pool_id',
|
|
41
|
+
* { cluster_id: 'cluster_id' },
|
|
42
|
+
* );
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
update(poolID: string, params: PoolUpdateParams, options?: RequestOptions): APIPromise<NKSNodePool>;
|
|
46
|
+
/**
|
|
47
|
+
* List all node pools in an NKS cluster
|
|
48
|
+
*
|
|
49
|
+
* @example
|
|
50
|
+
* ```ts
|
|
51
|
+
* // Automatically fetches more pages as needed.
|
|
52
|
+
* for await (const nksNodePool of client.nks.clusters.pools.list(
|
|
53
|
+
* 'cluster_id',
|
|
54
|
+
* )) {
|
|
55
|
+
* // ...
|
|
56
|
+
* }
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
list(clusterID: string, query?: PoolListParams | null | undefined, options?: RequestOptions): PagePromise<NKSNodePoolsCursor, NKSNodePool>;
|
|
60
|
+
/**
|
|
61
|
+
* Delete an NKS node pool
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* ```ts
|
|
65
|
+
* const operation = await client.nks.clusters.pools.delete(
|
|
66
|
+
* 'pool_id',
|
|
67
|
+
* { cluster_id: 'cluster_id' },
|
|
68
|
+
* );
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
delete(poolID: string, params: PoolDeleteParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
72
|
+
/**
|
|
73
|
+
* Get details about an NKS node pool
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```ts
|
|
77
|
+
* const nksNodePool = await client.nks.clusters.pools.get(
|
|
78
|
+
* 'pool_id',
|
|
79
|
+
* { cluster_id: 'cluster_id' },
|
|
80
|
+
* );
|
|
81
|
+
* ```
|
|
82
|
+
*/
|
|
83
|
+
get(poolID: string, params: PoolGetParams, options?: RequestOptions): APIPromise<NKSNodePool>;
|
|
84
|
+
}
|
|
85
|
+
export type NKSNodePoolsCursor = Cursor<NKSNodePool>;
|
|
86
|
+
/**
|
|
87
|
+
* Node configuration.
|
|
88
|
+
*/
|
|
89
|
+
export interface NKSNodeConfig {
|
|
90
|
+
/**
|
|
91
|
+
* RAM size in GiB per node.
|
|
92
|
+
*/
|
|
93
|
+
ram_gi: number;
|
|
94
|
+
/**
|
|
95
|
+
* Storage size in GiB per node.
|
|
96
|
+
*/
|
|
97
|
+
storage_gi: number;
|
|
98
|
+
/**
|
|
99
|
+
* Number of virtual CPUs per node.
|
|
100
|
+
*/
|
|
101
|
+
vcpu: number;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* NKS node pool details.
|
|
105
|
+
*/
|
|
106
|
+
export interface NKSNodePool {
|
|
107
|
+
/**
|
|
108
|
+
* Unique identifier for the node pool.
|
|
109
|
+
*/
|
|
110
|
+
id: string;
|
|
111
|
+
/**
|
|
112
|
+
* ID of the Cluster this node pool belongs to.
|
|
113
|
+
*/
|
|
114
|
+
cluster_id: string;
|
|
115
|
+
/**
|
|
116
|
+
* When the node pool was created.
|
|
117
|
+
*/
|
|
118
|
+
created_at: string;
|
|
119
|
+
/**
|
|
120
|
+
* Name of the node pool.
|
|
121
|
+
*/
|
|
122
|
+
name: string;
|
|
123
|
+
/**
|
|
124
|
+
* Node configuration.
|
|
125
|
+
*/
|
|
126
|
+
node_config: NKSNodePool.NodeConfig;
|
|
127
|
+
/**
|
|
128
|
+
* Number of nodes.
|
|
129
|
+
*/
|
|
130
|
+
node_count: number;
|
|
131
|
+
/**
|
|
132
|
+
* Status of the resource.
|
|
133
|
+
*/
|
|
134
|
+
status: Shared.ResourceStatus;
|
|
135
|
+
/**
|
|
136
|
+
* Tags attached to the node pool.
|
|
137
|
+
*/
|
|
138
|
+
tags: Array<string>;
|
|
139
|
+
/**
|
|
140
|
+
* When the node pool was last updated.
|
|
141
|
+
*/
|
|
142
|
+
updated_at: string;
|
|
143
|
+
}
|
|
144
|
+
export declare namespace NKSNodePool {
|
|
145
|
+
/**
|
|
146
|
+
* Node configuration.
|
|
147
|
+
*/
|
|
148
|
+
interface NodeConfig {
|
|
149
|
+
/**
|
|
150
|
+
* RAM size in GiB per node.
|
|
151
|
+
*/
|
|
152
|
+
ram_gi: number;
|
|
153
|
+
/**
|
|
154
|
+
* Storage size in GiB per node.
|
|
155
|
+
*/
|
|
156
|
+
storage_gi: number;
|
|
157
|
+
/**
|
|
158
|
+
* Number of virtual CPUs per node.
|
|
159
|
+
*/
|
|
160
|
+
vcpu: number;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
export interface NKSNodePoolList {
|
|
164
|
+
items: Array<NKSNodePool>;
|
|
165
|
+
/**
|
|
166
|
+
* Pagination response details.
|
|
167
|
+
*/
|
|
168
|
+
pagination: Shared.Pagination;
|
|
169
|
+
}
|
|
170
|
+
export interface PoolCreateParams {
|
|
171
|
+
/**
|
|
172
|
+
* Name of the node pool.
|
|
173
|
+
*/
|
|
174
|
+
name: string;
|
|
175
|
+
/**
|
|
176
|
+
* Node configuration.
|
|
177
|
+
*/
|
|
178
|
+
node_config: NKSNodeConfig;
|
|
179
|
+
/**
|
|
180
|
+
* Number of nodes. Must be between 1 and 100.
|
|
181
|
+
*/
|
|
182
|
+
node_count: number;
|
|
183
|
+
/**
|
|
184
|
+
* Tags to attach to the node pool.
|
|
185
|
+
*/
|
|
186
|
+
tags?: Array<string>;
|
|
187
|
+
}
|
|
188
|
+
export interface PoolUpdateParams {
|
|
189
|
+
/**
|
|
190
|
+
* Path param: Cluster ID
|
|
191
|
+
*/
|
|
192
|
+
cluster_id: string;
|
|
193
|
+
/**
|
|
194
|
+
* Body param: Name of the node pool.
|
|
195
|
+
*/
|
|
196
|
+
name?: string;
|
|
197
|
+
/**
|
|
198
|
+
* Body param: Tags to attach to the node pool.
|
|
199
|
+
*/
|
|
200
|
+
tags?: Array<string>;
|
|
201
|
+
}
|
|
202
|
+
export interface PoolListParams extends CursorParams {
|
|
203
|
+
}
|
|
204
|
+
export interface PoolDeleteParams {
|
|
205
|
+
/**
|
|
206
|
+
* Cluster ID
|
|
207
|
+
*/
|
|
208
|
+
cluster_id: string;
|
|
209
|
+
}
|
|
210
|
+
export interface PoolGetParams {
|
|
211
|
+
/**
|
|
212
|
+
* Cluster ID
|
|
213
|
+
*/
|
|
214
|
+
cluster_id: string;
|
|
215
|
+
}
|
|
216
|
+
export declare namespace Pools {
|
|
217
|
+
export { type NKSNodeConfig as NKSNodeConfig, type NKSNodePool as NKSNodePool, type NKSNodePoolList as NKSNodePoolList, type NKSNodePoolsCursor as NKSNodePoolsCursor, type PoolCreateParams as PoolCreateParams, type PoolUpdateParams as PoolUpdateParams, type PoolListParams as PoolListParams, type PoolDeleteParams as PoolDeleteParams, type PoolGetParams as PoolGetParams, };
|
|
218
|
+
export { Availability as Availability, type AvailabilityCreateParams as AvailabilityCreateParams, type AvailabilityUpdateParams as AvailabilityUpdateParams, };
|
|
219
|
+
export { Nodes as Nodes, type NKSNode as NKSNode, type NKSNodeList as NKSNodeList, type NKSNodesCursor as NKSNodesCursor, type NodeListParams as NodeListParams, type NodeGetParams as NodeGetParams, };
|
|
220
|
+
}
|
|
221
|
+
//# sourceMappingURL=pools.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pools.d.mts","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/pools.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,KAAK,aAAa;OAClB,KAAK,e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