@nirvana-labs/nirvana 1.91.1 → 1.91.3
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 +14 -0
- package/bin/migration-config.json +47 -47
- package/package.json +1 -1
- package/resources/api-keys/api-keys.d.mts +12 -12
- package/resources/api-keys/api-keys.d.mts.map +1 -1
- package/resources/api-keys/api-keys.d.ts +12 -12
- package/resources/api-keys/api-keys.d.ts.map +1 -1
- package/resources/api-keys/api-keys.js +15 -15
- package/resources/api-keys/api-keys.js.map +1 -1
- package/resources/api-keys/api-keys.mjs +15 -15
- package/resources/api-keys/api-keys.mjs.map +1 -1
- package/resources/audit-logs/audit-logs.d.mts +4 -4
- package/resources/audit-logs/audit-logs.d.mts.map +1 -1
- package/resources/audit-logs/audit-logs.d.ts +4 -4
- package/resources/audit-logs/audit-logs.d.ts.map +1 -1
- package/resources/audit-logs/audit-logs.js +6 -6
- package/resources/audit-logs/audit-logs.js.map +1 -1
- package/resources/audit-logs/audit-logs.mjs +6 -6
- package/resources/audit-logs/audit-logs.mjs.map +1 -1
- package/resources/compute/vms/vms.d.mts +14 -14
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +14 -14
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +17 -17
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +17 -17
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/volumes/volumes.d.mts +22 -22
- package/resources/compute/volumes/volumes.d.mts.map +1 -1
- package/resources/compute/volumes/volumes.d.ts +22 -22
- package/resources/compute/volumes/volumes.d.ts.map +1 -1
- package/resources/compute/volumes/volumes.js +26 -26
- package/resources/compute/volumes/volumes.js.map +1 -1
- package/resources/compute/volumes/volumes.mjs +26 -26
- package/resources/compute/volumes/volumes.mjs.map +1 -1
- package/resources/instance-types/instance-types.d.mts +15 -15
- package/resources/instance-types/instance-types.d.mts.map +1 -1
- package/resources/instance-types/instance-types.d.ts +15 -15
- package/resources/instance-types/instance-types.d.ts.map +1 -1
- package/resources/instance-types/instance-types.js +14 -14
- package/resources/instance-types/instance-types.js.map +1 -1
- package/resources/instance-types/instance-types.mjs +14 -14
- package/resources/instance-types/instance-types.mjs.map +1 -1
- package/resources/networking/connect/connections.d.mts +18 -18
- package/resources/networking/connect/connections.d.mts.map +1 -1
- package/resources/networking/connect/connections.d.ts +18 -18
- package/resources/networking/connect/connections.d.ts.map +1 -1
- package/resources/networking/connect/connections.js +21 -21
- package/resources/networking/connect/connections.js.map +1 -1
- package/resources/networking/connect/connections.mjs +21 -21
- package/resources/networking/connect/connections.mjs.map +1 -1
- package/resources/networking/firewall-rules.d.mts +27 -27
- package/resources/networking/firewall-rules.d.mts.map +1 -1
- package/resources/networking/firewall-rules.d.ts +27 -27
- package/resources/networking/firewall-rules.d.ts.map +1 -1
- package/resources/networking/firewall-rules.js +28 -28
- package/resources/networking/firewall-rules.js.map +1 -1
- package/resources/networking/firewall-rules.mjs +28 -28
- package/resources/networking/firewall-rules.mjs.map +1 -1
- package/resources/networking/index.d.mts +1 -1
- package/resources/networking/index.d.mts.map +1 -1
- package/resources/networking/index.d.ts +1 -1
- package/resources/networking/index.d.ts.map +1 -1
- package/resources/networking/networking.d.mts +1 -1
- package/resources/networking/networking.d.mts.map +1 -1
- package/resources/networking/networking.d.ts +1 -1
- package/resources/networking/networking.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.mts +16 -16
- package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.ts +16 -16
- package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.js +19 -19
- package/resources/networking/vpcs/vpcs.js.map +1 -1
- package/resources/networking/vpcs/vpcs.mjs +19 -19
- package/resources/networking/vpcs/vpcs.mjs.map +1 -1
- package/resources/nks/clusters/clusters.d.mts +20 -20
- package/resources/nks/clusters/clusters.d.mts.map +1 -1
- package/resources/nks/clusters/clusters.d.ts +20 -20
- package/resources/nks/clusters/clusters.d.ts.map +1 -1
- package/resources/nks/clusters/clusters.js +19 -19
- package/resources/nks/clusters/clusters.js.map +1 -1
- package/resources/nks/clusters/clusters.mjs +19 -19
- package/resources/nks/clusters/clusters.mjs.map +1 -1
- package/resources/nks/clusters/controllers/controllers.d.mts +17 -17
- package/resources/nks/clusters/controllers/controllers.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/controllers.d.ts +17 -17
- package/resources/nks/clusters/controllers/controllers.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/controllers.js +16 -16
- package/resources/nks/clusters/controllers/controllers.js.map +1 -1
- package/resources/nks/clusters/controllers/controllers.mjs +16 -16
- package/resources/nks/clusters/controllers/controllers.mjs.map +1 -1
- package/resources/nks/clusters/controllers/index.d.mts +2 -2
- package/resources/nks/clusters/controllers/index.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/index.d.ts +2 -2
- package/resources/nks/clusters/controllers/index.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.d.mts +22 -22
- package/resources/nks/clusters/controllers/volumes.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.d.ts +22 -22
- package/resources/nks/clusters/controllers/volumes.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.js +18 -18
- package/resources/nks/clusters/controllers/volumes.js.map +1 -1
- package/resources/nks/clusters/controllers/volumes.mjs +18 -18
- package/resources/nks/clusters/controllers/volumes.mjs.map +1 -1
- package/resources/nks/clusters/index.d.mts +4 -4
- package/resources/nks/clusters/index.d.mts.map +1 -1
- package/resources/nks/clusters/index.d.ts +4 -4
- package/resources/nks/clusters/index.d.ts.map +1 -1
- package/resources/nks/clusters/load-balancers.d.mts +20 -20
- package/resources/nks/clusters/load-balancers.d.mts.map +1 -1
- package/resources/nks/clusters/load-balancers.d.ts +20 -20
- package/resources/nks/clusters/load-balancers.d.ts.map +1 -1
- package/resources/nks/clusters/load-balancers.js +16 -16
- package/resources/nks/clusters/load-balancers.js.map +1 -1
- package/resources/nks/clusters/load-balancers.mjs +16 -16
- package/resources/nks/clusters/load-balancers.mjs.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.d.mts +16 -16
- package/resources/nks/clusters/persistent-volume-claims.d.mts.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.d.ts +16 -16
- package/resources/nks/clusters/persistent-volume-claims.d.ts.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.js +16 -16
- package/resources/nks/clusters/persistent-volume-claims.js.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.mjs +16 -16
- package/resources/nks/clusters/persistent-volume-claims.mjs.map +1 -1
- package/resources/nks/clusters/pools/index.d.mts +2 -2
- package/resources/nks/clusters/pools/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/index.d.ts +2 -2
- package/resources/nks/clusters/pools/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/index.d.mts +2 -2
- package/resources/nks/clusters/pools/nodes/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/index.d.ts +2 -2
- package/resources/nks/clusters/pools/nodes/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.d.mts +25 -25
- package/resources/nks/clusters/pools/nodes/nodes.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.d.ts +25 -25
- package/resources/nks/clusters/pools/nodes/nodes.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.js +19 -19
- package/resources/nks/clusters/pools/nodes/nodes.js.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.mjs +19 -19
- package/resources/nks/clusters/pools/nodes/nodes.mjs.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.d.mts +26 -26
- package/resources/nks/clusters/pools/nodes/volumes.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.d.ts +26 -26
- package/resources/nks/clusters/pools/nodes/volumes.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.js +18 -18
- package/resources/nks/clusters/pools/nodes/volumes.js.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.mjs +18 -18
- package/resources/nks/clusters/pools/nodes/volumes.mjs.map +1 -1
- package/resources/nks/clusters/pools/pools.d.mts +37 -26
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -1
- package/resources/nks/clusters/pools/pools.d.ts +37 -26
- package/resources/nks/clusters/pools/pools.d.ts.map +1 -1
- package/resources/nks/clusters/pools/pools.js +25 -25
- package/resources/nks/clusters/pools/pools.js.map +1 -1
- package/resources/nks/clusters/pools/pools.mjs +25 -25
- package/resources/nks/clusters/pools/pools.mjs.map +1 -1
- package/resources/operations/operations.d.mts +4 -4
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +4 -4
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js +6 -6
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs +6 -6
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/organizations/address.d.mts +8 -8
- package/resources/organizations/address.d.mts.map +1 -1
- package/resources/organizations/address.d.ts +8 -8
- package/resources/organizations/address.d.ts.map +1 -1
- package/resources/organizations/address.js +10 -10
- package/resources/organizations/address.js.map +1 -1
- package/resources/organizations/address.mjs +10 -10
- package/resources/organizations/address.mjs.map +1 -1
- package/resources/organizations/index.d.mts +1 -1
- package/resources/organizations/index.d.mts.map +1 -1
- package/resources/organizations/index.d.ts +1 -1
- package/resources/organizations/index.d.ts.map +1 -1
- package/resources/organizations/memberships.d.mts +16 -16
- package/resources/organizations/memberships.d.mts.map +1 -1
- package/resources/organizations/memberships.d.ts +16 -16
- package/resources/organizations/memberships.d.ts.map +1 -1
- package/resources/organizations/memberships.js +16 -16
- package/resources/organizations/memberships.js.map +1 -1
- package/resources/organizations/memberships.mjs +16 -16
- package/resources/organizations/memberships.mjs.map +1 -1
- package/resources/organizations/organizations.d.mts +12 -12
- package/resources/organizations/organizations.d.mts.map +1 -1
- package/resources/organizations/organizations.d.ts +12 -12
- package/resources/organizations/organizations.d.ts.map +1 -1
- package/resources/organizations/organizations.js +13 -13
- package/resources/organizations/organizations.js.map +1 -1
- package/resources/organizations/organizations.mjs +13 -13
- package/resources/organizations/organizations.mjs.map +1 -1
- package/resources/projects/projects.d.mts +12 -12
- package/resources/projects/projects.d.mts.map +1 -1
- package/resources/projects/projects.d.ts +12 -12
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js +15 -15
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +15 -15
- package/resources/projects/projects.mjs.map +1 -1
- package/resources/quotas/quotas.d.mts +6 -6
- package/resources/quotas/quotas.d.mts.map +1 -1
- package/resources/quotas/quotas.d.ts +6 -6
- package/resources/quotas/quotas.d.ts.map +1 -1
- package/resources/quotas/quotas.js +8 -8
- package/resources/quotas/quotas.js.map +1 -1
- package/resources/quotas/quotas.mjs +8 -8
- package/resources/quotas/quotas.mjs.map +1 -1
- package/resources/regions/regions.d.mts +9 -9
- package/resources/regions/regions.d.mts.map +1 -1
- package/resources/regions/regions.d.ts +9 -9
- package/resources/regions/regions.d.ts.map +1 -1
- package/resources/regions/regions.js +11 -11
- package/resources/regions/regions.js.map +1 -1
- package/resources/regions/regions.mjs +11 -11
- package/resources/regions/regions.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.mts +11 -11
- package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +11 -11
- package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.js +13 -13
- package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.mjs +13 -13
- package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +14 -14
- package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +14 -14
- package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.js +17 -17
- package/resources/rpc-nodes/flex/flex.js.map +1 -1
- package/resources/rpc-nodes/flex/flex.mjs +17 -17
- package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
- package/resources/usage/usage.d.mts +12 -12
- package/resources/usage/usage.d.mts.map +1 -1
- package/resources/usage/usage.d.ts +12 -12
- package/resources/usage/usage.d.ts.map +1 -1
- package/resources/usage/usage.js +14 -14
- package/resources/usage/usage.js.map +1 -1
- package/resources/usage/usage.mjs +14 -14
- package/resources/usage/usage.mjs.map +1 -1
- package/resources/user/security.d.mts +4 -4
- package/resources/user/security.d.mts.map +1 -1
- package/resources/user/security.d.ts +4 -4
- package/resources/user/security.d.ts.map +1 -1
- package/resources/user/security.js +6 -6
- package/resources/user/security.js.map +1 -1
- package/resources/user/security.mjs +6 -6
- package/resources/user/security.mjs.map +1 -1
- package/src/resources/api-keys/api-keys.ts +18 -18
- package/src/resources/api-keys/api.md +2 -2
- package/src/resources/audit-logs/api.md +1 -1
- package/src/resources/audit-logs/audit-logs.ts +7 -7
- package/src/resources/compute/api.md +4 -4
- package/src/resources/compute/vms/vms.ts +17 -17
- package/src/resources/compute/volumes/volumes.ts +28 -28
- package/src/resources/instance-types/api.md +1 -1
- package/src/resources/instance-types/instance-types.ts +19 -19
- package/src/resources/networking/api.md +6 -6
- package/src/resources/networking/connect/connections.ts +30 -30
- package/src/resources/networking/firewall-rules.ts +46 -46
- package/src/resources/networking/index.ts +2 -2
- package/src/resources/networking/networking.ts +2 -2
- package/src/resources/networking/vpcs/vpcs.ts +21 -21
- package/src/resources/nks/api.md +11 -11
- package/src/resources/nks/clusters/clusters.ts +28 -28
- package/src/resources/nks/clusters/controllers/controllers.ts +25 -25
- package/src/resources/nks/clusters/controllers/index.ts +2 -2
- package/src/resources/nks/clusters/controllers/volumes.ts +31 -31
- package/src/resources/nks/clusters/index.ts +5 -5
- package/src/resources/nks/clusters/load-balancers.ts +29 -29
- package/src/resources/nks/clusters/persistent-volume-claims.ts +27 -27
- package/src/resources/nks/clusters/pools/index.ts +4 -4
- package/src/resources/nks/clusters/pools/nodes/index.ts +3 -3
- package/src/resources/nks/clusters/pools/nodes/nodes.ts +39 -39
- package/src/resources/nks/clusters/pools/nodes/volumes.ts +36 -36
- package/src/resources/nks/clusters/pools/pools.ts +57 -44
- package/src/resources/operations/api.md +1 -1
- package/src/resources/operations/operations.ts +6 -6
- package/src/resources/organizations/address.ts +13 -13
- package/src/resources/organizations/api.md +3 -3
- package/src/resources/organizations/index.ts +1 -1
- package/src/resources/organizations/memberships.ts +24 -24
- package/src/resources/organizations/organizations.ts +15 -15
- package/src/resources/projects/api.md +2 -2
- package/src/resources/projects/projects.ts +18 -18
- package/src/resources/quotas/api.md +1 -1
- package/src/resources/quotas/quotas.ts +8 -8
- package/src/resources/regions/api.md +1 -1
- package/src/resources/regions/regions.ts +12 -12
- package/src/resources/rpc-nodes/api.md +3 -3
- package/src/resources/rpc-nodes/dedicated/dedicated.ts +14 -14
- package/src/resources/rpc-nodes/flex/flex.ts +17 -17
- package/src/resources/usage/api.md +1 -1
- package/src/resources/usage/usage.ts +15 -15
- package/src/resources/user/api.md +1 -1
- package/src/resources/user/security.ts +6 -6
- 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
|
@@ -30,6 +30,18 @@ export class VPCs extends APIResource {
|
|
|
30
30
|
return this._client.post('/v1/networking/vpcs', { body, ...options });
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
/**
|
|
34
|
+
* Get details about a VPC
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const vpc = await client.networking.vpcs.get('vpc_id');
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
get(vpcID: string, options?: RequestOptions): APIPromise<VPC> {
|
|
42
|
+
return this._client.get(path`/v1/networking/vpcs/${vpcID}`, options);
|
|
43
|
+
}
|
|
44
|
+
|
|
33
45
|
/**
|
|
34
46
|
* Update a VPC
|
|
35
47
|
*
|
|
@@ -48,23 +60,6 @@ export class VPCs extends APIResource {
|
|
|
48
60
|
return this._client.patch(path`/v1/networking/vpcs/${vpcID}`, { body, ...options });
|
|
49
61
|
}
|
|
50
62
|
|
|
51
|
-
/**
|
|
52
|
-
* List all VPCs
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* // Automatically fetches more pages as needed.
|
|
57
|
-
* for await (const vpc of client.networking.vpcs.list({
|
|
58
|
-
* project_id: 'project_id',
|
|
59
|
-
* })) {
|
|
60
|
-
* // ...
|
|
61
|
-
* }
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
list(query: VPCListParams, options?: RequestOptions): PagePromise<VPCsCursor, VPC> {
|
|
65
|
-
return this._client.getAPIList('/v1/networking/vpcs', Cursor<VPC>, { query, ...options });
|
|
66
|
-
}
|
|
67
|
-
|
|
68
63
|
/**
|
|
69
64
|
* Delete a VPC
|
|
70
65
|
*
|
|
@@ -80,15 +75,20 @@ export class VPCs extends APIResource {
|
|
|
80
75
|
}
|
|
81
76
|
|
|
82
77
|
/**
|
|
83
|
-
*
|
|
78
|
+
* List all VPCs
|
|
84
79
|
*
|
|
85
80
|
* @example
|
|
86
81
|
* ```ts
|
|
87
|
-
*
|
|
82
|
+
* // Automatically fetches more pages as needed.
|
|
83
|
+
* for await (const vpc of client.networking.vpcs.list({
|
|
84
|
+
* project_id: 'project_id',
|
|
85
|
+
* })) {
|
|
86
|
+
* // ...
|
|
87
|
+
* }
|
|
88
88
|
* ```
|
|
89
89
|
*/
|
|
90
|
-
|
|
91
|
-
return this._client.
|
|
90
|
+
list(query: VPCListParams, options?: RequestOptions): PagePromise<VPCsCursor, VPC> {
|
|
91
|
+
return this._client.getAPIList('/v1/networking/vpcs', Cursor<VPC>, { query, ...options });
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
package/src/resources/nks/api.md
CHANGED
|
@@ -20,10 +20,10 @@ Types:
|
|
|
20
20
|
Methods:
|
|
21
21
|
|
|
22
22
|
- <code title="post /v1/nks/clusters">client.nks.clusters.<a href="./src/resources/nks/clusters/clusters.ts">create</a>({ ...params }) -> Operation</code>
|
|
23
|
+
- <code title="get /v1/nks/clusters/{cluster_id}">client.nks.clusters.<a href="./src/resources/nks/clusters/clusters.ts">get</a>(clusterID) -> NKSCluster</code>
|
|
23
24
|
- <code title="patch /v1/nks/clusters/{cluster_id}">client.nks.clusters.<a href="./src/resources/nks/clusters/clusters.ts">update</a>(clusterID, { ...params }) -> Operation</code>
|
|
24
|
-
- <code title="get /v1/nks/clusters">client.nks.clusters.<a href="./src/resources/nks/clusters/clusters.ts">list</a>({ ...params }) -> NKSClustersCursor</code>
|
|
25
25
|
- <code title="delete /v1/nks/clusters/{cluster_id}">client.nks.clusters.<a href="./src/resources/nks/clusters/clusters.ts">delete</a>(clusterID) -> Operation</code>
|
|
26
|
-
- <code title="get /v1/nks/clusters
|
|
26
|
+
- <code title="get /v1/nks/clusters">client.nks.clusters.<a href="./src/resources/nks/clusters/clusters.ts">list</a>({ ...params }) -> NKSClustersCursor</code>
|
|
27
27
|
|
|
28
28
|
### Availability
|
|
29
29
|
|
|
@@ -41,8 +41,8 @@ Types:
|
|
|
41
41
|
|
|
42
42
|
Methods:
|
|
43
43
|
|
|
44
|
-
- <code title="get /v1/nks/clusters/{cluster_id}/persistent_volume_claims">client.nks.clusters.persistentVolumeClaims.<a href="./src/resources/nks/clusters/persistent-volume-claims.ts">list</a>(clusterID, { ...params }) -> PersistentVolumeClaimsCursor</code>
|
|
45
44
|
- <code title="get /v1/nks/clusters/{cluster_id}/persistent_volume_claims/{persistent_volume_claim_id}">client.nks.clusters.persistentVolumeClaims.<a href="./src/resources/nks/clusters/persistent-volume-claims.ts">get</a>(persistentVolumeClaimID, { ...params }) -> PersistentVolumeClaim</code>
|
|
45
|
+
- <code title="get /v1/nks/clusters/{cluster_id}/persistent_volume_claims">client.nks.clusters.persistentVolumeClaims.<a href="./src/resources/nks/clusters/persistent-volume-claims.ts">list</a>(clusterID, { ...params }) -> PersistentVolumeClaimsCursor</code>
|
|
46
46
|
|
|
47
47
|
### Kubeconfig
|
|
48
48
|
|
|
@@ -63,8 +63,8 @@ Types:
|
|
|
63
63
|
|
|
64
64
|
Methods:
|
|
65
65
|
|
|
66
|
-
- <code title="get /v1/nks/clusters/{cluster_id}/controllers">client.nks.clusters.controllers.<a href="./src/resources/nks/clusters/controllers/controllers.ts">list</a>(clusterID, { ...params }) -> NKSControllersCursor</code>
|
|
67
66
|
- <code title="get /v1/nks/clusters/{cluster_id}/controllers/{controller_id}">client.nks.clusters.controllers.<a href="./src/resources/nks/clusters/controllers/controllers.ts">get</a>(controllerID, { ...params }) -> NKSController</code>
|
|
67
|
+
- <code title="get /v1/nks/clusters/{cluster_id}/controllers">client.nks.clusters.controllers.<a href="./src/resources/nks/clusters/controllers/controllers.ts">list</a>(clusterID, { ...params }) -> NKSControllersCursor</code>
|
|
68
68
|
|
|
69
69
|
#### Volumes
|
|
70
70
|
|
|
@@ -75,8 +75,8 @@ Types:
|
|
|
75
75
|
|
|
76
76
|
Methods:
|
|
77
77
|
|
|
78
|
-
- <code title="get /v1/nks/clusters/{cluster_id}/controllers/{controller_id}/volumes">client.nks.clusters.controllers.volumes.<a href="./src/resources/nks/clusters/controllers/volumes.ts">list</a>(controllerID, { ...params }) -> NKSControllerVolumesCursor</code>
|
|
79
78
|
- <code title="get /v1/nks/clusters/{cluster_id}/controllers/{controller_id}/volumes/{volume_id}">client.nks.clusters.controllers.volumes.<a href="./src/resources/nks/clusters/controllers/volumes.ts">get</a>(volumeID, { ...params }) -> NKSControllerVolume</code>
|
|
79
|
+
- <code title="get /v1/nks/clusters/{cluster_id}/controllers/{controller_id}/volumes">client.nks.clusters.controllers.volumes.<a href="./src/resources/nks/clusters/controllers/volumes.ts">list</a>(controllerID, { ...params }) -> NKSControllerVolumesCursor</code>
|
|
80
80
|
|
|
81
81
|
### LoadBalancers
|
|
82
82
|
|
|
@@ -87,9 +87,9 @@ Types:
|
|
|
87
87
|
|
|
88
88
|
Methods:
|
|
89
89
|
|
|
90
|
+
- <code title="get /v1/nks/clusters/{cluster_id}/load_balancers/{load_balancer_id}">client.nks.clusters.loadBalancers.<a href="./src/resources/nks/clusters/load-balancers.ts">get</a>(loadBalancerID, { ...params }) -> NKSLoadBalancer</code>
|
|
90
91
|
- <code title="patch /v1/nks/clusters/{cluster_id}/load_balancers/{load_balancer_id}">client.nks.clusters.loadBalancers.<a href="./src/resources/nks/clusters/load-balancers.ts">update</a>(loadBalancerID, { ...params }) -> Operation</code>
|
|
91
92
|
- <code title="get /v1/nks/clusters/{cluster_id}/load_balancers">client.nks.clusters.loadBalancers.<a href="./src/resources/nks/clusters/load-balancers.ts">list</a>(clusterID, { ...params }) -> NKSLoadBalancersCursor</code>
|
|
92
|
-
- <code title="get /v1/nks/clusters/{cluster_id}/load_balancers/{load_balancer_id}">client.nks.clusters.loadBalancers.<a href="./src/resources/nks/clusters/load-balancers.ts">get</a>(loadBalancerID, { ...params }) -> NKSLoadBalancer</code>
|
|
93
93
|
|
|
94
94
|
### Pools
|
|
95
95
|
|
|
@@ -105,10 +105,10 @@ Types:
|
|
|
105
105
|
Methods:
|
|
106
106
|
|
|
107
107
|
- <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>
|
|
108
|
+
- <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>
|
|
108
109
|
- <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 }) -> Operation</code>
|
|
109
|
-
- <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>
|
|
110
110
|
- <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>
|
|
111
|
-
- <code title="get /v1/nks/clusters/{cluster_id}/pools
|
|
111
|
+
- <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>
|
|
112
112
|
|
|
113
113
|
#### Availability
|
|
114
114
|
|
|
@@ -126,9 +126,9 @@ Types:
|
|
|
126
126
|
|
|
127
127
|
Methods:
|
|
128
128
|
|
|
129
|
-
- <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>
|
|
130
|
-
- <code title="delete /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">delete</a>(nodeID, { ...params }) -> Operation</code>
|
|
131
129
|
- <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>
|
|
130
|
+
- <code title="delete /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">delete</a>(nodeID, { ...params }) -> Operation</code>
|
|
131
|
+
- <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>
|
|
132
132
|
|
|
133
133
|
##### Volumes
|
|
134
134
|
|
|
@@ -139,5 +139,5 @@ Types:
|
|
|
139
139
|
|
|
140
140
|
Methods:
|
|
141
141
|
|
|
142
|
-
- <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>
|
|
143
142
|
- <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>
|
|
143
|
+
- <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>
|
|
@@ -85,38 +85,35 @@ export class Clusters extends APIResource {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
*
|
|
88
|
+
* Get details about an NKS cluster
|
|
89
89
|
*
|
|
90
90
|
* @example
|
|
91
91
|
* ```ts
|
|
92
|
-
* const
|
|
92
|
+
* const nksCluster = await client.nks.clusters.get(
|
|
93
93
|
* 'cluster_id',
|
|
94
94
|
* );
|
|
95
95
|
* ```
|
|
96
96
|
*/
|
|
97
|
-
|
|
98
|
-
clusterID
|
|
99
|
-
body: ClusterUpdateParams,
|
|
100
|
-
options?: RequestOptions,
|
|
101
|
-
): APIPromise<OperationsAPI.Operation> {
|
|
102
|
-
return this._client.patch(path`/v1/nks/clusters/${clusterID}`, { body, ...options });
|
|
97
|
+
get(clusterID: string, options?: RequestOptions): APIPromise<NKSCluster> {
|
|
98
|
+
return this._client.get(path`/v1/nks/clusters/${clusterID}`, options);
|
|
103
99
|
}
|
|
104
100
|
|
|
105
101
|
/**
|
|
106
|
-
*
|
|
102
|
+
* Update an NKS cluster
|
|
107
103
|
*
|
|
108
104
|
* @example
|
|
109
105
|
* ```ts
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
* })) {
|
|
114
|
-
* // ...
|
|
115
|
-
* }
|
|
106
|
+
* const operation = await client.nks.clusters.update(
|
|
107
|
+
* 'cluster_id',
|
|
108
|
+
* );
|
|
116
109
|
* ```
|
|
117
110
|
*/
|
|
118
|
-
|
|
119
|
-
|
|
111
|
+
update(
|
|
112
|
+
clusterID: string,
|
|
113
|
+
body: ClusterUpdateParams,
|
|
114
|
+
options?: RequestOptions,
|
|
115
|
+
): APIPromise<OperationsAPI.Operation> {
|
|
116
|
+
return this._client.patch(path`/v1/nks/clusters/${clusterID}`, { body, ...options });
|
|
120
117
|
}
|
|
121
118
|
|
|
122
119
|
/**
|
|
@@ -134,17 +131,20 @@ export class Clusters extends APIResource {
|
|
|
134
131
|
}
|
|
135
132
|
|
|
136
133
|
/**
|
|
137
|
-
*
|
|
134
|
+
* List all NKS clusters
|
|
138
135
|
*
|
|
139
136
|
* @example
|
|
140
137
|
* ```ts
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
138
|
+
* // Automatically fetches more pages as needed.
|
|
139
|
+
* for await (const nksCluster of client.nks.clusters.list({
|
|
140
|
+
* project_id: 'project_id',
|
|
141
|
+
* })) {
|
|
142
|
+
* // ...
|
|
143
|
+
* }
|
|
144
144
|
* ```
|
|
145
145
|
*/
|
|
146
|
-
|
|
147
|
-
return this._client.
|
|
146
|
+
list(query: ClusterListParams, options?: RequestOptions): PagePromise<NKSClustersCursor, NKSCluster> {
|
|
147
|
+
return this._client.getAPIList('/v1/nks/clusters', Cursor<NKSCluster>, { query, ...options });
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
@@ -323,8 +323,8 @@ export declare namespace Clusters {
|
|
|
323
323
|
type PersistentVolumeClaim as PersistentVolumeClaim,
|
|
324
324
|
type PersistentVolumeClaimList as PersistentVolumeClaimList,
|
|
325
325
|
type PersistentVolumeClaimsCursor as PersistentVolumeClaimsCursor,
|
|
326
|
-
type PersistentVolumeClaimListParams as PersistentVolumeClaimListParams,
|
|
327
326
|
type PersistentVolumeClaimGetParams as PersistentVolumeClaimGetParams,
|
|
327
|
+
type PersistentVolumeClaimListParams as PersistentVolumeClaimListParams,
|
|
328
328
|
};
|
|
329
329
|
|
|
330
330
|
export { KubeconfigResource as KubeconfigResource, type Kubeconfig as Kubeconfig };
|
|
@@ -334,8 +334,8 @@ export declare namespace Clusters {
|
|
|
334
334
|
type NKSController as NKSController,
|
|
335
335
|
type NKSControllerList as NKSControllerList,
|
|
336
336
|
type NKSControllersCursor as NKSControllersCursor,
|
|
337
|
-
type ControllerListParams as ControllerListParams,
|
|
338
337
|
type ControllerGetParams as ControllerGetParams,
|
|
338
|
+
type ControllerListParams as ControllerListParams,
|
|
339
339
|
};
|
|
340
340
|
|
|
341
341
|
export {
|
|
@@ -343,9 +343,9 @@ export declare namespace Clusters {
|
|
|
343
343
|
type NKSLoadBalancer as NKSLoadBalancer,
|
|
344
344
|
type NKSLoadBalancerList as NKSLoadBalancerList,
|
|
345
345
|
type NKSLoadBalancersCursor as NKSLoadBalancersCursor,
|
|
346
|
+
type LoadBalancerGetParams as LoadBalancerGetParams,
|
|
346
347
|
type LoadBalancerUpdateParams as LoadBalancerUpdateParams,
|
|
347
348
|
type LoadBalancerListParams as LoadBalancerListParams,
|
|
348
|
-
type LoadBalancerGetParams as LoadBalancerGetParams,
|
|
349
349
|
};
|
|
350
350
|
|
|
351
351
|
export {
|
|
@@ -358,9 +358,9 @@ export declare namespace Clusters {
|
|
|
358
358
|
type NKSNodePoolNodeConfigResponse as NKSNodePoolNodeConfigResponse,
|
|
359
359
|
type NKSNodePoolsCursor as NKSNodePoolsCursor,
|
|
360
360
|
type PoolCreateParams as PoolCreateParams,
|
|
361
|
+
type PoolGetParams as PoolGetParams,
|
|
361
362
|
type PoolUpdateParams as PoolUpdateParams,
|
|
362
|
-
type PoolListParams as PoolListParams,
|
|
363
363
|
type PoolDeleteParams as PoolDeleteParams,
|
|
364
|
-
type
|
|
364
|
+
type PoolListParams as PoolListParams,
|
|
365
365
|
};
|
|
366
366
|
}
|
|
@@ -19,6 +19,27 @@ import { path } from '../../../../internal/utils/path';
|
|
|
19
19
|
export class Controllers extends APIResource {
|
|
20
20
|
volumes: VolumesAPI.Volumes = new VolumesAPI.Volumes(this._client);
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* Get details about an NKS controller
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const nksController =
|
|
28
|
+
* await client.nks.clusters.controllers.get(
|
|
29
|
+
* 'controller_id',
|
|
30
|
+
* { cluster_id: 'cluster_id' },
|
|
31
|
+
* );
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
get(
|
|
35
|
+
controllerID: string,
|
|
36
|
+
params: ControllerGetParams,
|
|
37
|
+
options?: RequestOptions,
|
|
38
|
+
): APIPromise<NKSController> {
|
|
39
|
+
const { cluster_id } = params;
|
|
40
|
+
return this._client.get(path`/v1/nks/clusters/${cluster_id}/controllers/${controllerID}`, options);
|
|
41
|
+
}
|
|
42
|
+
|
|
22
43
|
/**
|
|
23
44
|
* List all controllers in an NKS cluster
|
|
24
45
|
*
|
|
@@ -42,27 +63,6 @@ export class Controllers extends APIResource {
|
|
|
42
63
|
...options,
|
|
43
64
|
});
|
|
44
65
|
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Get details about an NKS controller
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```ts
|
|
51
|
-
* const nksController =
|
|
52
|
-
* await client.nks.clusters.controllers.get(
|
|
53
|
-
* 'controller_id',
|
|
54
|
-
* { cluster_id: 'cluster_id' },
|
|
55
|
-
* );
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
get(
|
|
59
|
-
controllerID: string,
|
|
60
|
-
params: ControllerGetParams,
|
|
61
|
-
options?: RequestOptions,
|
|
62
|
-
): APIPromise<NKSController> {
|
|
63
|
-
const { cluster_id } = params;
|
|
64
|
-
return this._client.get(path`/v1/nks/clusters/${cluster_id}/controllers/${controllerID}`, options);
|
|
65
|
-
}
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
export type NKSControllersCursor = Cursor<NKSController>;
|
|
@@ -116,8 +116,6 @@ export interface NKSControllerList {
|
|
|
116
116
|
pagination: Shared.Pagination;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
export interface ControllerListParams extends CursorParams {}
|
|
120
|
-
|
|
121
119
|
export interface ControllerGetParams {
|
|
122
120
|
/**
|
|
123
121
|
* Cluster ID
|
|
@@ -125,6 +123,8 @@ export interface ControllerGetParams {
|
|
|
125
123
|
cluster_id: string;
|
|
126
124
|
}
|
|
127
125
|
|
|
126
|
+
export interface ControllerListParams extends CursorParams {}
|
|
127
|
+
|
|
128
128
|
Controllers.Volumes = Volumes;
|
|
129
129
|
|
|
130
130
|
export declare namespace Controllers {
|
|
@@ -132,8 +132,8 @@ export declare namespace Controllers {
|
|
|
132
132
|
type NKSController as NKSController,
|
|
133
133
|
type NKSControllerList as NKSControllerList,
|
|
134
134
|
type NKSControllersCursor as NKSControllersCursor,
|
|
135
|
-
type ControllerListParams as ControllerListParams,
|
|
136
135
|
type ControllerGetParams as ControllerGetParams,
|
|
136
|
+
type ControllerListParams as ControllerListParams,
|
|
137
137
|
};
|
|
138
138
|
|
|
139
139
|
export {
|
|
@@ -141,7 +141,7 @@ export declare namespace Controllers {
|
|
|
141
141
|
type NKSControllerVolume as NKSControllerVolume,
|
|
142
142
|
type NKSControllerVolumeList as NKSControllerVolumeList,
|
|
143
143
|
type NKSControllerVolumesCursor as NKSControllerVolumesCursor,
|
|
144
|
-
type VolumeListParams as VolumeListParams,
|
|
145
144
|
type VolumeGetParams as VolumeGetParams,
|
|
145
|
+
type VolumeListParams as VolumeListParams,
|
|
146
146
|
};
|
|
147
147
|
}
|
|
@@ -4,15 +4,15 @@ export {
|
|
|
4
4
|
Controllers,
|
|
5
5
|
type NKSController,
|
|
6
6
|
type NKSControllerList,
|
|
7
|
-
type ControllerListParams,
|
|
8
7
|
type ControllerGetParams,
|
|
8
|
+
type ControllerListParams,
|
|
9
9
|
type NKSControllersCursor,
|
|
10
10
|
} from './controllers';
|
|
11
11
|
export {
|
|
12
12
|
Volumes,
|
|
13
13
|
type NKSControllerVolume,
|
|
14
14
|
type NKSControllerVolumeList,
|
|
15
|
-
type VolumeListParams,
|
|
16
15
|
type VolumeGetParams,
|
|
16
|
+
type VolumeListParams,
|
|
17
17
|
type NKSControllerVolumesCursor,
|
|
18
18
|
} from './volumes';
|
|
@@ -9,6 +9,29 @@ import { RequestOptions } from '../../../../internal/request-options';
|
|
|
9
9
|
import { path } from '../../../../internal/utils/path';
|
|
10
10
|
|
|
11
11
|
export class Volumes extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get details about a volume attached to an NKS controller
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const nksControllerVolume =
|
|
18
|
+
* await client.nks.clusters.controllers.volumes.get(
|
|
19
|
+
* 'volume_id',
|
|
20
|
+
* {
|
|
21
|
+
* cluster_id: 'cluster_id',
|
|
22
|
+
* controller_id: 'controller_id',
|
|
23
|
+
* },
|
|
24
|
+
* );
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
get(volumeID: string, params: VolumeGetParams, options?: RequestOptions): APIPromise<NKSControllerVolume> {
|
|
28
|
+
const { cluster_id, controller_id } = params;
|
|
29
|
+
return this._client.get(
|
|
30
|
+
path`/v1/nks/clusters/${cluster_id}/controllers/${controller_id}/volumes/${volumeID}`,
|
|
31
|
+
options,
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
12
35
|
/**
|
|
13
36
|
* List all volumes attached to an NKS controller
|
|
14
37
|
*
|
|
@@ -35,29 +58,6 @@ export class Volumes extends APIResource {
|
|
|
35
58
|
{ query, ...options },
|
|
36
59
|
);
|
|
37
60
|
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Get details about a volume attached to an NKS controller
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* const nksControllerVolume =
|
|
45
|
-
* await client.nks.clusters.controllers.volumes.get(
|
|
46
|
-
* 'volume_id',
|
|
47
|
-
* {
|
|
48
|
-
* cluster_id: 'cluster_id',
|
|
49
|
-
* controller_id: 'controller_id',
|
|
50
|
-
* },
|
|
51
|
-
* );
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
get(volumeID: string, params: VolumeGetParams, options?: RequestOptions): APIPromise<NKSControllerVolume> {
|
|
55
|
-
const { cluster_id, controller_id } = params;
|
|
56
|
-
return this._client.get(
|
|
57
|
-
path`/v1/nks/clusters/${cluster_id}/controllers/${controller_id}/volumes/${volumeID}`,
|
|
58
|
-
options,
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export type NKSControllerVolumesCursor = Cursor<NKSControllerVolume>;
|
|
@@ -116,13 +116,6 @@ export interface NKSControllerVolumeList {
|
|
|
116
116
|
pagination: Shared.Pagination;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
export interface VolumeListParams extends CursorParams {
|
|
120
|
-
/**
|
|
121
|
-
* Path param: Cluster ID
|
|
122
|
-
*/
|
|
123
|
-
cluster_id: string;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
119
|
export interface VolumeGetParams {
|
|
127
120
|
/**
|
|
128
121
|
* Cluster ID
|
|
@@ -135,12 +128,19 @@ export interface VolumeGetParams {
|
|
|
135
128
|
controller_id: string;
|
|
136
129
|
}
|
|
137
130
|
|
|
131
|
+
export interface VolumeListParams extends CursorParams {
|
|
132
|
+
/**
|
|
133
|
+
* Path param: Cluster ID
|
|
134
|
+
*/
|
|
135
|
+
cluster_id: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
138
|
export declare namespace Volumes {
|
|
139
139
|
export {
|
|
140
140
|
type NKSControllerVolume as NKSControllerVolume,
|
|
141
141
|
type NKSControllerVolumeList as NKSControllerVolumeList,
|
|
142
142
|
type NKSControllerVolumesCursor as NKSControllerVolumesCursor,
|
|
143
|
-
type VolumeListParams as VolumeListParams,
|
|
144
143
|
type VolumeGetParams as VolumeGetParams,
|
|
144
|
+
type VolumeListParams as VolumeListParams,
|
|
145
145
|
};
|
|
146
146
|
}
|
|
@@ -14,8 +14,8 @@ export {
|
|
|
14
14
|
Controllers,
|
|
15
15
|
type NKSController,
|
|
16
16
|
type NKSControllerList,
|
|
17
|
-
type ControllerListParams,
|
|
18
17
|
type ControllerGetParams,
|
|
18
|
+
type ControllerListParams,
|
|
19
19
|
type NKSControllersCursor,
|
|
20
20
|
} from './controllers/index';
|
|
21
21
|
export { KubeconfigResource, type Kubeconfig } from './kubeconfig';
|
|
@@ -23,17 +23,17 @@ export {
|
|
|
23
23
|
LoadBalancers,
|
|
24
24
|
type NKSLoadBalancer,
|
|
25
25
|
type NKSLoadBalancerList,
|
|
26
|
+
type LoadBalancerGetParams,
|
|
26
27
|
type LoadBalancerUpdateParams,
|
|
27
28
|
type LoadBalancerListParams,
|
|
28
|
-
type LoadBalancerGetParams,
|
|
29
29
|
type NKSLoadBalancersCursor,
|
|
30
30
|
} from './load-balancers';
|
|
31
31
|
export {
|
|
32
32
|
PersistentVolumeClaims,
|
|
33
33
|
type PersistentVolumeClaim,
|
|
34
34
|
type PersistentVolumeClaimList,
|
|
35
|
-
type PersistentVolumeClaimListParams,
|
|
36
35
|
type PersistentVolumeClaimGetParams,
|
|
36
|
+
type PersistentVolumeClaimListParams,
|
|
37
37
|
type PersistentVolumeClaimsCursor,
|
|
38
38
|
} from './persistent-volume-claims';
|
|
39
39
|
export {
|
|
@@ -45,9 +45,9 @@ export {
|
|
|
45
45
|
type NKSNodePoolNodeConfig,
|
|
46
46
|
type NKSNodePoolNodeConfigResponse,
|
|
47
47
|
type PoolCreateParams,
|
|
48
|
+
type PoolGetParams,
|
|
48
49
|
type PoolUpdateParams,
|
|
49
|
-
type PoolListParams,
|
|
50
50
|
type PoolDeleteParams,
|
|
51
|
-
type
|
|
51
|
+
type PoolListParams,
|
|
52
52
|
type NKSNodePoolsCursor,
|
|
53
53
|
} from './pools/index';
|
|
@@ -9,6 +9,27 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
9
9
|
import { path } from '../../../internal/utils/path';
|
|
10
10
|
|
|
11
11
|
export class LoadBalancers extends APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get details about an NKS load balancer
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const nksLoadBalancer =
|
|
18
|
+
* await client.nks.clusters.loadBalancers.get(
|
|
19
|
+
* 'load_balancer_id',
|
|
20
|
+
* { cluster_id: 'cluster_id' },
|
|
21
|
+
* );
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
get(
|
|
25
|
+
loadBalancerID: string,
|
|
26
|
+
params: LoadBalancerGetParams,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): APIPromise<NKSLoadBalancer> {
|
|
29
|
+
const { cluster_id } = params;
|
|
30
|
+
return this._client.get(path`/v1/nks/clusters/${cluster_id}/load_balancers/${loadBalancerID}`, options);
|
|
31
|
+
}
|
|
32
|
+
|
|
12
33
|
/**
|
|
13
34
|
* Update an NKS load balancer
|
|
14
35
|
*
|
|
@@ -57,27 +78,6 @@ export class LoadBalancers extends APIResource {
|
|
|
57
78
|
{ query, ...options },
|
|
58
79
|
);
|
|
59
80
|
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Get details about an NKS load balancer
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* ```ts
|
|
66
|
-
* const nksLoadBalancer =
|
|
67
|
-
* await client.nks.clusters.loadBalancers.get(
|
|
68
|
-
* 'load_balancer_id',
|
|
69
|
-
* { cluster_id: 'cluster_id' },
|
|
70
|
-
* );
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
get(
|
|
74
|
-
loadBalancerID: string,
|
|
75
|
-
params: LoadBalancerGetParams,
|
|
76
|
-
options?: RequestOptions,
|
|
77
|
-
): APIPromise<NKSLoadBalancer> {
|
|
78
|
-
const { cluster_id } = params;
|
|
79
|
-
return this._client.get(path`/v1/nks/clusters/${cluster_id}/load_balancers/${loadBalancerID}`, options);
|
|
80
|
-
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
export type NKSLoadBalancersCursor = Cursor<NKSLoadBalancer>;
|
|
@@ -146,6 +146,13 @@ export interface NKSLoadBalancerList {
|
|
|
146
146
|
pagination: Shared.Pagination;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
export interface LoadBalancerGetParams {
|
|
150
|
+
/**
|
|
151
|
+
* Cluster ID
|
|
152
|
+
*/
|
|
153
|
+
cluster_id: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
149
156
|
export interface LoadBalancerUpdateParams {
|
|
150
157
|
/**
|
|
151
158
|
* Path param: Cluster ID
|
|
@@ -160,20 +167,13 @@ export interface LoadBalancerUpdateParams {
|
|
|
160
167
|
|
|
161
168
|
export interface LoadBalancerListParams extends CursorParams {}
|
|
162
169
|
|
|
163
|
-
export interface LoadBalancerGetParams {
|
|
164
|
-
/**
|
|
165
|
-
* Cluster ID
|
|
166
|
-
*/
|
|
167
|
-
cluster_id: string;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
170
|
export declare namespace LoadBalancers {
|
|
171
171
|
export {
|
|
172
172
|
type NKSLoadBalancer as NKSLoadBalancer,
|
|
173
173
|
type NKSLoadBalancerList as NKSLoadBalancerList,
|
|
174
174
|
type NKSLoadBalancersCursor as NKSLoadBalancersCursor,
|
|
175
|
+
type LoadBalancerGetParams as LoadBalancerGetParams,
|
|
175
176
|
type LoadBalancerUpdateParams as LoadBalancerUpdateParams,
|
|
176
177
|
type LoadBalancerListParams as LoadBalancerListParams,
|
|
177
|
-
type LoadBalancerGetParams as LoadBalancerGetParams,
|
|
178
178
|
};
|
|
179
179
|
}
|