@nirvana-labs/nirvana 1.73.1 → 1.75.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 +16 -0
- package/README.md +7 -7
- package/package.json +1 -1
- package/resources/compute/vms/availability.d.mts +1 -1
- package/resources/compute/vms/availability.d.ts +1 -1
- package/resources/compute/vms/availability.js +1 -1
- package/resources/compute/vms/availability.mjs +1 -1
- package/resources/compute/vms/vms.d.mts +1 -1
- package/resources/compute/vms/vms.d.ts +1 -1
- package/resources/compute/vms/vms.js +1 -1
- package/resources/compute/vms/vms.mjs +1 -1
- package/resources/compute/volumes/availability.d.mts +1 -1
- package/resources/compute/volumes/availability.d.ts +1 -1
- package/resources/compute/volumes/availability.js +1 -1
- package/resources/compute/volumes/availability.mjs +1 -1
- package/resources/compute/volumes/volumes.d.mts +1 -1
- package/resources/compute/volumes/volumes.d.ts +1 -1
- package/resources/compute/volumes/volumes.js +1 -1
- package/resources/compute/volumes/volumes.mjs +1 -1
- package/resources/instance-types/instance-types.d.mts +1 -1
- package/resources/instance-types/instance-types.d.mts.map +1 -1
- package/resources/instance-types/instance-types.d.ts +1 -1
- package/resources/instance-types/instance-types.d.ts.map +1 -1
- package/resources/networking/connect/connections.d.mts +1 -1
- package/resources/networking/connect/connections.d.ts +1 -1
- package/resources/networking/connect/connections.js +1 -1
- package/resources/networking/connect/connections.mjs +1 -1
- package/resources/networking/vpcs/availability.d.mts +1 -1
- package/resources/networking/vpcs/availability.d.ts +1 -1
- package/resources/networking/vpcs/availability.js +1 -1
- package/resources/networking/vpcs/availability.mjs +1 -1
- package/resources/networking/vpcs/vpcs.d.mts +1 -1
- package/resources/networking/vpcs/vpcs.d.ts +1 -1
- package/resources/networking/vpcs/vpcs.js +1 -1
- package/resources/networking/vpcs/vpcs.mjs +1 -1
- package/resources/nks/clusters/availability.d.mts +1 -1
- package/resources/nks/clusters/availability.d.ts +1 -1
- package/resources/nks/clusters/availability.js +1 -1
- package/resources/nks/clusters/availability.mjs +1 -1
- package/resources/nks/clusters/clusters.d.mts +5 -12
- package/resources/nks/clusters/clusters.d.mts.map +1 -1
- package/resources/nks/clusters/clusters.d.ts +5 -12
- package/resources/nks/clusters/clusters.d.ts.map +1 -1
- package/resources/nks/clusters/clusters.js +4 -2
- package/resources/nks/clusters/clusters.js.map +1 -1
- package/resources/nks/clusters/clusters.mjs +4 -2
- package/resources/nks/clusters/clusters.mjs.map +1 -1
- package/resources/nks/clusters/index.d.mts +2 -1
- package/resources/nks/clusters/index.d.mts.map +1 -1
- package/resources/nks/clusters/index.d.ts +2 -1
- package/resources/nks/clusters/index.d.ts.map +1 -1
- package/resources/nks/clusters/index.js +3 -1
- package/resources/nks/clusters/index.js.map +1 -1
- package/resources/nks/clusters/index.mjs +1 -0
- package/resources/nks/clusters/index.mjs.map +1 -1
- package/resources/nks/clusters/kubeconfig.d.mts +14 -3
- package/resources/nks/clusters/kubeconfig.d.mts.map +1 -1
- package/resources/nks/clusters/kubeconfig.d.ts +14 -3
- package/resources/nks/clusters/kubeconfig.d.ts.map +1 -1
- package/resources/nks/clusters/kubeconfig.js +3 -3
- package/resources/nks/clusters/kubeconfig.js.map +1 -1
- package/resources/nks/clusters/kubeconfig.mjs +1 -1
- package/resources/nks/clusters/kubeconfig.mjs.map +1 -1
- package/resources/nks/index.d.mts +1 -1
- package/resources/nks/index.d.mts.map +1 -1
- package/resources/nks/index.d.ts +1 -1
- package/resources/nks/index.d.ts.map +1 -1
- package/resources/nks/index.js.map +1 -1
- package/resources/nks/index.mjs.map +1 -1
- package/resources/nks/nks.d.mts +2 -2
- package/resources/nks/nks.d.mts.map +1 -1
- package/resources/nks/nks.d.ts +2 -2
- package/resources/nks/nks.d.ts.map +1 -1
- package/resources/nks/nks.js.map +1 -1
- package/resources/nks/nks.mjs.map +1 -1
- package/resources/regions/regions.d.mts +1 -1
- package/resources/regions/regions.d.ts +1 -1
- package/resources/regions/regions.js +1 -1
- package/resources/regions/regions.mjs +1 -1
- package/resources/shared.d.mts +1 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +1 -1
- package/resources/shared.d.ts.map +1 -1
- package/src/resources/compute/vms/availability.ts +1 -1
- package/src/resources/compute/vms/vms.ts +1 -1
- package/src/resources/compute/volumes/availability.ts +1 -1
- package/src/resources/compute/volumes/volumes.ts +1 -1
- package/src/resources/instance-types/instance-types.ts +1 -1
- package/src/resources/networking/connect/connections.ts +1 -1
- package/src/resources/networking/vpcs/availability.ts +1 -1
- package/src/resources/networking/vpcs/vpcs.ts +1 -1
- package/src/resources/nks/api.md +4 -1
- package/src/resources/nks/clusters/availability.ts +1 -1
- package/src/resources/nks/clusters/clusters.ts +6 -13
- package/src/resources/nks/clusters/index.ts +1 -1
- package/src/resources/nks/clusters/kubeconfig.ts +16 -3
- package/src/resources/nks/index.ts +0 -1
- package/src/resources/nks/nks.ts +0 -2
- package/src/resources/regions/regions.ts +1 -1
- package/src/resources/shared.ts +1 -1
- 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
|
@@ -6,6 +6,7 @@ import * as OperationsAPI from '../../operations/operations';
|
|
|
6
6
|
import * as AvailabilityAPI from './availability';
|
|
7
7
|
import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from './availability';
|
|
8
8
|
import * as KubeconfigAPI from './kubeconfig';
|
|
9
|
+
import { Kubeconfig, KubeconfigResource } from './kubeconfig';
|
|
9
10
|
import * as LoadBalancersAPI from './load-balancers';
|
|
10
11
|
import {
|
|
11
12
|
LoadBalancerGetParams,
|
|
@@ -58,7 +59,7 @@ export class Clusters extends APIResource {
|
|
|
58
59
|
availability: AvailabilityAPI.Availability = new AvailabilityAPI.Availability(this._client);
|
|
59
60
|
persistentVolumeClaims: PersistentVolumeClaimsAPI.PersistentVolumeClaims =
|
|
60
61
|
new PersistentVolumeClaimsAPI.PersistentVolumeClaims(this._client);
|
|
61
|
-
kubeconfig: KubeconfigAPI.
|
|
62
|
+
kubeconfig: KubeconfigAPI.KubeconfigResource = new KubeconfigAPI.KubeconfigResource(this._client);
|
|
62
63
|
controllers: ControllersAPI.Controllers = new ControllersAPI.Controllers(this._client);
|
|
63
64
|
loadBalancers: LoadBalancersAPI.LoadBalancers = new LoadBalancersAPI.LoadBalancers(this._client);
|
|
64
65
|
pools: PoolsAPI.Pools = new PoolsAPI.Pools(this._client);
|
|
@@ -71,7 +72,7 @@ export class Clusters extends APIResource {
|
|
|
71
72
|
* const operation = await client.nks.clusters.create({
|
|
72
73
|
* name: 'my-cluster',
|
|
73
74
|
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
74
|
-
* region: 'us-
|
|
75
|
+
* region: 'us-sva-2',
|
|
75
76
|
* vpc_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
76
77
|
* });
|
|
77
78
|
* ```
|
|
@@ -142,16 +143,6 @@ export class Clusters extends APIResource {
|
|
|
142
143
|
|
|
143
144
|
export type NKSClustersCursor = Cursor<NKSCluster>;
|
|
144
145
|
|
|
145
|
-
/**
|
|
146
|
-
* Kubeconfig for an NKS Cluster.
|
|
147
|
-
*/
|
|
148
|
-
export interface Kubeconfig {
|
|
149
|
-
/**
|
|
150
|
-
* Kubeconfig content for the Cluster.
|
|
151
|
-
*/
|
|
152
|
-
kubeconfig: string;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
146
|
/**
|
|
156
147
|
* NKS Cluster details.
|
|
157
148
|
*/
|
|
@@ -274,13 +265,13 @@ export interface ClusterListParams extends CursorParams {
|
|
|
274
265
|
|
|
275
266
|
Clusters.Availability = Availability;
|
|
276
267
|
Clusters.PersistentVolumeClaims = PersistentVolumeClaims;
|
|
268
|
+
Clusters.KubeconfigResource = KubeconfigResource;
|
|
277
269
|
Clusters.Controllers = Controllers;
|
|
278
270
|
Clusters.LoadBalancers = LoadBalancers;
|
|
279
271
|
Clusters.Pools = Pools;
|
|
280
272
|
|
|
281
273
|
export declare namespace Clusters {
|
|
282
274
|
export {
|
|
283
|
-
type Kubeconfig as Kubeconfig,
|
|
284
275
|
type NKSCluster as NKSCluster,
|
|
285
276
|
type NKSClusterList as NKSClusterList,
|
|
286
277
|
type NKSClustersCursor as NKSClustersCursor,
|
|
@@ -304,6 +295,8 @@ export declare namespace Clusters {
|
|
|
304
295
|
type PersistentVolumeClaimGetParams as PersistentVolumeClaimGetParams,
|
|
305
296
|
};
|
|
306
297
|
|
|
298
|
+
export { KubeconfigResource as KubeconfigResource, type Kubeconfig as Kubeconfig };
|
|
299
|
+
|
|
307
300
|
export {
|
|
308
301
|
Controllers as Controllers,
|
|
309
302
|
type NKSController as NKSController,
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
export { Availability, type AvailabilityCreateParams, type AvailabilityUpdateParams } from './availability';
|
|
4
4
|
export {
|
|
5
5
|
Clusters,
|
|
6
|
-
type Kubeconfig,
|
|
7
6
|
type NKSCluster,
|
|
8
7
|
type NKSClusterList,
|
|
9
8
|
type ClusterCreateParams,
|
|
@@ -19,6 +18,7 @@ export {
|
|
|
19
18
|
type ControllerGetParams,
|
|
20
19
|
type NKSControllersCursor,
|
|
21
20
|
} from './controllers/index';
|
|
21
|
+
export { KubeconfigResource, type Kubeconfig } from './kubeconfig';
|
|
22
22
|
export {
|
|
23
23
|
LoadBalancers,
|
|
24
24
|
type NKSLoadBalancer,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as ClustersAPI from './clusters';
|
|
5
4
|
import { APIPromise } from '../../../core/api-promise';
|
|
6
5
|
import { RequestOptions } from '../../../internal/request-options';
|
|
7
6
|
import { path } from '../../../internal/utils/path';
|
|
8
7
|
|
|
9
|
-
export class
|
|
8
|
+
export class KubeconfigResource extends APIResource {
|
|
10
9
|
/**
|
|
11
10
|
* Get the kubeconfig for an NKS cluster
|
|
12
11
|
*
|
|
@@ -17,7 +16,21 @@ export class Kubeconfig extends APIResource {
|
|
|
17
16
|
* );
|
|
18
17
|
* ```
|
|
19
18
|
*/
|
|
20
|
-
get(clusterID: string, options?: RequestOptions): APIPromise<
|
|
19
|
+
get(clusterID: string, options?: RequestOptions): APIPromise<Kubeconfig> {
|
|
21
20
|
return this._client.get(path`/v1/nks/clusters/${clusterID}/kubeconfig`, options);
|
|
22
21
|
}
|
|
23
22
|
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Kubeconfig for an NKS Cluster.
|
|
26
|
+
*/
|
|
27
|
+
export interface Kubeconfig {
|
|
28
|
+
/**
|
|
29
|
+
* Kubeconfig content for the Cluster.
|
|
30
|
+
*/
|
|
31
|
+
kubeconfig: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export declare namespace KubeconfigResource {
|
|
35
|
+
export { type Kubeconfig as Kubeconfig };
|
|
36
|
+
}
|
package/src/resources/nks/nks.ts
CHANGED
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
ClusterListParams,
|
|
8
8
|
ClusterUpdateParams,
|
|
9
9
|
Clusters,
|
|
10
|
-
Kubeconfig,
|
|
11
10
|
NKSCluster,
|
|
12
11
|
NKSClusterList,
|
|
13
12
|
NKSClustersCursor,
|
|
@@ -22,7 +21,6 @@ NKS.Clusters = Clusters;
|
|
|
22
21
|
export declare namespace NKS {
|
|
23
22
|
export {
|
|
24
23
|
Clusters as Clusters,
|
|
25
|
-
type Kubeconfig as Kubeconfig,
|
|
26
24
|
type NKSCluster as NKSCluster,
|
|
27
25
|
type NKSClusterList as NKSClusterList,
|
|
28
26
|
type NKSClustersCursor as NKSClustersCursor,
|
|
@@ -31,7 +31,7 @@ export class Regions extends APIResource {
|
|
|
31
31
|
*
|
|
32
32
|
* @example
|
|
33
33
|
* ```ts
|
|
34
|
-
* const region = await client.regions.get('us-
|
|
34
|
+
* const region = await client.regions.get('us-sva-2');
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
37
|
get(name: string, options?: RequestOptions): APIPromise<Region> {
|
package/src/resources/shared.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface Pagination {
|
|
|
14
14
|
/**
|
|
15
15
|
* Region the resource is in.
|
|
16
16
|
*/
|
|
17
|
-
export type RegionName = 'us-sva-1' | 'us-sva-2' | 'us-chi-1' | '
|
|
17
|
+
export type RegionName = 'us-sea-1' | 'us-sva-1' | 'us-sva-2' | 'us-chi-1' | 'ap-sin-1';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Status of the resource.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.75.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.75.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "1.
|
|
1
|
+
export declare const VERSION = "1.75.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.75.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|