@nirvana-labs/nirvana 1.18.3 → 1.20.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 +26 -0
- package/README.md +7 -7
- package/package.json +1 -1
- package/resources/compute/vms/availability.d.mts +17 -1
- package/resources/compute/vms/availability.d.mts.map +1 -1
- package/resources/compute/vms/availability.d.ts +17 -1
- package/resources/compute/vms/availability.d.ts.map +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 +21 -1
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +21 -1
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +1 -1
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +1 -1
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/volumes/availability.d.mts +8 -0
- package/resources/compute/volumes/availability.d.mts.map +1 -1
- package/resources/compute/volumes/availability.d.ts +8 -0
- package/resources/compute/volumes/availability.d.ts.map +1 -1
- package/resources/compute/volumes/volumes.d.mts +12 -0
- package/resources/compute/volumes/volumes.d.mts.map +1 -1
- package/resources/compute/volumes/volumes.d.ts +12 -0
- package/resources/compute/volumes/volumes.d.ts.map +1 -1
- package/resources/compute/volumes/volumes.js.map +1 -1
- package/resources/compute/volumes/volumes.mjs.map +1 -1
- package/resources/connect/connect.d.mts +3 -3
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +3 -3
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js +2 -2
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs +3 -3
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/flux/flux.d.mts +6 -204
- package/resources/connect/flux/flux.d.mts.map +1 -1
- package/resources/connect/flux/flux.d.ts +6 -204
- package/resources/connect/flux/flux.d.ts.map +1 -1
- package/resources/connect/flux/flux.js +7 -73
- package/resources/connect/flux/flux.js.map +1 -1
- package/resources/connect/flux/flux.mjs +5 -71
- package/resources/connect/flux/flux.mjs.map +1 -1
- package/resources/connect/flux/index.d.mts +2 -2
- package/resources/connect/flux/index.d.mts.map +1 -1
- package/resources/connect/flux/index.d.ts +2 -2
- package/resources/connect/flux/index.d.ts.map +1 -1
- package/resources/connect/flux/index.js +4 -4
- package/resources/connect/flux/index.js.map +1 -1
- package/resources/connect/flux/index.mjs +2 -2
- package/resources/connect/flux/index.mjs.map +1 -1
- package/resources/connect/flux/routes.d.mts +4 -0
- package/resources/connect/flux/routes.d.mts.map +1 -0
- package/resources/connect/flux/routes.d.ts +4 -0
- package/resources/connect/flux/routes.d.ts.map +1 -0
- package/resources/connect/flux/routes.js +9 -0
- package/resources/connect/flux/routes.js.map +1 -0
- package/resources/connect/flux/routes.mjs +5 -0
- package/resources/connect/flux/routes.mjs.map +1 -0
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js +2 -2
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/networking/connect/connect.d.mts +130 -0
- package/resources/networking/connect/connect.d.mts.map +1 -0
- package/resources/networking/connect/connect.d.ts +130 -0
- package/resources/networking/connect/connect.d.ts.map +1 -0
- package/resources/networking/connect/connect.js +21 -0
- package/resources/networking/connect/connect.js.map +1 -0
- package/resources/networking/connect/connect.mjs +16 -0
- package/resources/networking/connect/connect.mjs.map +1 -0
- package/resources/networking/connect/connections.d.mts +114 -0
- package/resources/networking/connect/connections.d.mts.map +1 -0
- package/resources/networking/connect/connections.d.ts +114 -0
- package/resources/networking/connect/connections.d.ts.map +1 -0
- package/resources/networking/connect/connections.js +82 -0
- package/resources/networking/connect/connections.js.map +1 -0
- package/resources/networking/connect/connections.mjs +78 -0
- package/resources/networking/connect/connections.mjs.map +1 -0
- package/resources/networking/connect/index.d.mts +4 -0
- package/resources/networking/connect/index.d.mts.map +1 -0
- package/resources/networking/connect/index.d.ts +4 -0
- package/resources/networking/connect/index.d.ts.map +1 -0
- package/resources/networking/connect/index.js +11 -0
- package/resources/networking/connect/index.js.map +1 -0
- package/resources/networking/connect/index.mjs +5 -0
- package/resources/networking/connect/index.mjs.map +1 -0
- package/resources/networking/connect/routes.d.mts +17 -0
- package/resources/networking/connect/routes.d.mts.map +1 -0
- package/resources/networking/connect/routes.d.ts +17 -0
- package/resources/networking/connect/routes.d.ts.map +1 -0
- package/resources/networking/connect/routes.js +21 -0
- package/resources/networking/connect/routes.js.map +1 -0
- package/resources/networking/connect/routes.mjs +17 -0
- package/resources/networking/connect/routes.mjs.map +1 -0
- package/resources/networking/connect.d.mts +2 -0
- package/resources/networking/connect.d.mts.map +1 -0
- package/resources/networking/connect.d.ts +2 -0
- package/resources/networking/connect.d.ts.map +1 -0
- package/resources/networking/connect.js +6 -0
- package/resources/networking/connect.js.map +1 -0
- package/resources/networking/connect.mjs +3 -0
- package/resources/networking/connect.mjs.map +1 -0
- package/resources/networking/firewall-rules.d.mts +12 -0
- package/resources/networking/firewall-rules.d.mts.map +1 -1
- package/resources/networking/firewall-rules.d.ts +12 -0
- package/resources/networking/firewall-rules.d.ts.map +1 -1
- package/resources/networking/index.d.mts +1 -0
- package/resources/networking/index.d.mts.map +1 -1
- package/resources/networking/index.d.ts +1 -0
- package/resources/networking/index.d.ts.map +1 -1
- package/resources/networking/index.js +5 -3
- package/resources/networking/index.js.map +1 -1
- package/resources/networking/index.mjs +1 -0
- package/resources/networking/index.mjs.map +1 -1
- package/resources/networking/networking.d.mts +4 -0
- package/resources/networking/networking.d.mts.map +1 -1
- package/resources/networking/networking.d.ts +4 -0
- package/resources/networking/networking.d.ts.map +1 -1
- package/resources/networking/networking.js +4 -0
- package/resources/networking/networking.js.map +1 -1
- package/resources/networking/networking.mjs +4 -0
- package/resources/networking/networking.mjs.map +1 -1
- package/resources/networking/vpcs/availability.d.mts +8 -0
- package/resources/networking/vpcs/availability.d.mts.map +1 -1
- package/resources/networking/vpcs/availability.d.ts +8 -0
- package/resources/networking/vpcs/availability.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.mts +12 -0
- package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.ts +12 -0
- package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.js.map +1 -1
- package/resources/networking/vpcs/vpcs.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.mts +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.ts +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.js +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.js.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.mjs +6 -0
- package/resources/rpc-nodes/dedicated/blockchains.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.mts +17 -0
- package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +17 -0
- package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.js +13 -0
- package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.mjs +13 -0
- package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.mts +6 -0
- package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.ts +6 -0
- package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.js +6 -0
- package/resources/rpc-nodes/flex/blockchains.js.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.mjs +6 -0
- package/resources/rpc-nodes/flex/blockchains.mjs.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +74 -1
- package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +74 -1
- package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.js +51 -0
- package/resources/rpc-nodes/flex/flex.js.map +1 -1
- package/resources/rpc-nodes/flex/flex.mjs +51 -0
- package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
- package/resources/rpc-nodes/flex/index.d.mts +1 -1
- package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/index.d.ts +1 -1
- package/resources/rpc-nodes/flex/index.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/index.js.map +1 -1
- package/resources/rpc-nodes/flex/index.mjs +1 -1
- package/resources/rpc-nodes/flex/index.mjs.map +1 -1
- package/resources/rpc-nodes/index.d.mts +1 -1
- package/resources/rpc-nodes/index.d.mts.map +1 -1
- package/resources/rpc-nodes/index.d.ts +1 -1
- package/resources/rpc-nodes/index.d.ts.map +1 -1
- package/resources/rpc-nodes/index.js.map +1 -1
- package/resources/rpc-nodes/index.mjs.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.mts +2 -2
- package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.ts +2 -2
- package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.mjs +1 -1
- package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
- package/src/resources/compute/vms/availability.ts +21 -1
- package/src/resources/compute/vms/vms.ts +26 -1
- package/src/resources/compute/volumes/availability.ts +10 -0
- package/src/resources/compute/volumes/volumes.ts +15 -0
- package/src/resources/connect/connect.ts +4 -26
- package/src/resources/connect/flux/flux.ts +7 -265
- package/src/resources/connect/flux/index.ts +2 -13
- package/src/resources/connect/flux/routes.ts +5 -0
- package/src/resources/connect/index.ts +1 -12
- package/src/resources/networking/connect/connect.ts +174 -0
- package/src/resources/networking/connect/connections.ts +148 -0
- package/src/resources/networking/connect/index.ts +14 -0
- package/src/resources/networking/connect/routes.ts +21 -0
- package/src/resources/networking/connect.ts +3 -0
- package/src/resources/networking/firewall-rules.ts +15 -0
- package/src/resources/networking/index.ts +10 -0
- package/src/resources/networking/networking.ts +24 -0
- package/src/resources/networking/vpcs/availability.ts +10 -0
- package/src/resources/networking/vpcs/vpcs.ts +15 -0
- package/src/resources/rpc-nodes/dedicated/blockchains.ts +6 -0
- package/src/resources/rpc-nodes/dedicated/dedicated.ts +18 -0
- package/src/resources/rpc-nodes/flex/blockchains.ts +6 -0
- package/src/resources/rpc-nodes/flex/flex.ts +95 -0
- package/src/resources/rpc-nodes/flex/index.ts +9 -1
- package/src/resources/rpc-nodes/index.ts +2 -0
- package/src/resources/rpc-nodes/rpc-nodes.ts +11 -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
- package/resources/connect/flux/providers.d.mts +0 -17
- package/resources/connect/flux/providers.d.mts.map +0 -1
- package/resources/connect/flux/providers.d.ts +0 -17
- package/resources/connect/flux/providers.d.ts.map +0 -1
- package/resources/connect/flux/providers.js +0 -21
- package/resources/connect/flux/providers.js.map +0 -1
- package/resources/connect/flux/providers.mjs +0 -17
- package/resources/connect/flux/providers.mjs.map +0 -1
- package/src/resources/connect/flux/providers.ts +0 -21
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as FluxAPI from "./flux/flux.mjs";
|
|
3
|
-
import { Flux
|
|
3
|
+
import { Flux } from "./flux/flux.mjs";
|
|
4
4
|
export declare class Connect extends APIResource {
|
|
5
|
-
flux: FluxAPI.
|
|
5
|
+
flux: FluxAPI.Flux;
|
|
6
6
|
}
|
|
7
7
|
export declare namespace Connect {
|
|
8
|
-
export {
|
|
8
|
+
export { Flux as Flux };
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=connect.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.mts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,
|
|
1
|
+
{"version":3,"file":"connect.d.mts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;AAEf,qBAAa,OAAQ,SAAQ,WAAW;IACtC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;CACrD;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;CACzB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as FluxAPI from "./flux/flux.js";
|
|
3
|
-
import { Flux
|
|
3
|
+
import { Flux } from "./flux/flux.js";
|
|
4
4
|
export declare class Connect extends APIResource {
|
|
5
|
-
flux: FluxAPI.
|
|
5
|
+
flux: FluxAPI.Flux;
|
|
6
6
|
}
|
|
7
7
|
export declare namespace Connect {
|
|
8
|
-
export {
|
|
8
|
+
export { Flux as Flux };
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=connect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,
|
|
1
|
+
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;AAEf,qBAAa,OAAQ,SAAQ,WAAW;IACtC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;CACrD;AAID,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI,IAAI,IAAI,EAAE,CAAC;CACzB"}
|
|
@@ -9,9 +9,9 @@ const flux_1 = require("./flux/flux.js");
|
|
|
9
9
|
class Connect extends resource_1.APIResource {
|
|
10
10
|
constructor() {
|
|
11
11
|
super(...arguments);
|
|
12
|
-
this.flux = new FluxAPI.
|
|
12
|
+
this.flux = new FluxAPI.Flux(this._client);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.Connect = Connect;
|
|
16
|
-
Connect.
|
|
16
|
+
Connect.Flux = flux_1.Flux;
|
|
17
17
|
//# sourceMappingURL=connect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,gEAAuC;AACvC,
|
|
1
|
+
{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,gEAAuC;AACvC,yCAAmC;AAEnC,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAFD,0BAEC;AAED,OAAO,CAAC,IAAI,GAAG,WAAI,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as FluxAPI from "./flux/flux.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { Flux } from "./flux/flux.mjs";
|
|
5
5
|
export class Connect extends APIResource {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
|
-
this.flux = new FluxAPI.
|
|
8
|
+
this.flux = new FluxAPI.Flux(this._client);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
Connect.
|
|
11
|
+
Connect.Flux = Flux;
|
|
12
12
|
//# sourceMappingURL=connect.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect.mjs","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,
|
|
1
|
+
{"version":3,"file":"connect.mjs","sourceRoot":"","sources":["../../src/resources/connect/connect.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAED,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -1,208 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
7
|
-
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
8
|
-
export declare class FluxResource extends APIResource {
|
|
9
|
-
providers: ProvidersAPI.Providers;
|
|
10
|
-
/**
|
|
11
|
-
* Create a Connect Flux
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const operation = await client.connect.flux.create({
|
|
16
|
-
* bandwidth_mbps: 50,
|
|
17
|
-
* cidrs: ['10.0.0.0/16'],
|
|
18
|
-
* name: 'my-connect-flux',
|
|
19
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
20
|
-
* region: 'us-wdc-1',
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
create(body: FluxCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
25
|
-
/**
|
|
26
|
-
* Update Connect Flux details
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const operation = await client.connect.flux.update(
|
|
31
|
-
* 'flux_id',
|
|
32
|
-
* );
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
update(fluxID: string, body: FluxUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
36
|
-
/**
|
|
37
|
-
* List all Connect Flux
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const fluxList = await client.connect.flux.list();
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
list(options?: RequestOptions): APIPromise<FluxList>;
|
|
45
|
-
/**
|
|
46
|
-
* Delete Connect Flux
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const operation = await client.connect.flux.delete(
|
|
51
|
-
* 'flux_id',
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
delete(fluxID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
56
|
-
/**
|
|
57
|
-
* Get Connect Flux details
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* const flux = await client.connect.flux.get('flux_id');
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
get(fluxID: string, options?: RequestOptions): APIPromise<Flux>;
|
|
2
|
+
import * as RoutesAPI from "./routes.mjs";
|
|
3
|
+
import { Routes } from "./routes.mjs";
|
|
4
|
+
export declare class Flux extends APIResource {
|
|
5
|
+
routes: RoutesAPI.Routes;
|
|
65
6
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
*/
|
|
69
|
-
export interface Flux {
|
|
70
|
-
/**
|
|
71
|
-
* Unique identifier for the Connect Flux
|
|
72
|
-
*/
|
|
73
|
-
id: string;
|
|
74
|
-
/**
|
|
75
|
-
* ASN
|
|
76
|
-
*/
|
|
77
|
-
asn: number | null;
|
|
78
|
-
/**
|
|
79
|
-
* AWS provider configuration
|
|
80
|
-
*/
|
|
81
|
-
aws: FluxProviderAWSConfig | null;
|
|
82
|
-
/**
|
|
83
|
-
* Connect Flux speed in Mbps
|
|
84
|
-
*/
|
|
85
|
-
bandwidth_mbps: FluxBandwidthMbps;
|
|
86
|
-
/**
|
|
87
|
-
* CIDRs for the Connect Flux
|
|
88
|
-
*/
|
|
89
|
-
cidrs: Array<string>;
|
|
90
|
-
/**
|
|
91
|
-
* When the Connect Flux was created
|
|
92
|
-
*/
|
|
93
|
-
created_at: string;
|
|
94
|
-
/**
|
|
95
|
-
* Name of the Connect Flux
|
|
96
|
-
*/
|
|
97
|
-
name: string;
|
|
98
|
-
/**
|
|
99
|
-
* Provider ASN
|
|
100
|
-
*/
|
|
101
|
-
provider_asn: number | null;
|
|
102
|
-
/**
|
|
103
|
-
* Provider CIDRs for the Connect Flux
|
|
104
|
-
*/
|
|
105
|
-
provider_cidrs: Array<string>;
|
|
106
|
-
/**
|
|
107
|
-
* Provider Router IP
|
|
108
|
-
*/
|
|
109
|
-
provider_router_ip: string | null;
|
|
110
|
-
/**
|
|
111
|
-
* Region the resource is in.
|
|
112
|
-
*/
|
|
113
|
-
region: Shared.RegionName;
|
|
114
|
-
/**
|
|
115
|
-
* Router IP
|
|
116
|
-
*/
|
|
117
|
-
router_ip: string | null;
|
|
118
|
-
/**
|
|
119
|
-
* Status of the resource.
|
|
120
|
-
*/
|
|
121
|
-
status: Shared.ResourceStatus;
|
|
122
|
-
/**
|
|
123
|
-
* When the Connect Flux was updated
|
|
124
|
-
*/
|
|
125
|
-
updated_at: string;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Connect Flux speed in Mbps
|
|
129
|
-
*/
|
|
130
|
-
export type FluxBandwidthMbps = 50 | 200 | 500 | 1000 | 2000;
|
|
131
|
-
export interface FluxList {
|
|
132
|
-
items: Array<Flux>;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Provider supported for Connect Flux.
|
|
136
|
-
*/
|
|
137
|
-
export interface FluxProvider {
|
|
138
|
-
/**
|
|
139
|
-
* Provider name.
|
|
140
|
-
*/
|
|
141
|
-
name: string;
|
|
142
|
-
/**
|
|
143
|
-
* Provider region name.
|
|
144
|
-
*/
|
|
145
|
-
region: string;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* AWS provider configuration
|
|
149
|
-
*/
|
|
150
|
-
export interface FluxProviderAWSConfig {
|
|
151
|
-
/**
|
|
152
|
-
* AWS region where the connection is established
|
|
153
|
-
*/
|
|
154
|
-
region: string;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* AWS provider configuration
|
|
158
|
-
*/
|
|
159
|
-
export interface FluxProviderAWSConfigRequest {
|
|
160
|
-
/**
|
|
161
|
-
* AWS account id
|
|
162
|
-
*/
|
|
163
|
-
account_id: string;
|
|
164
|
-
/**
|
|
165
|
-
* AWS region where the connection will be established
|
|
166
|
-
*/
|
|
167
|
-
region: string;
|
|
168
|
-
}
|
|
169
|
-
export interface FluxProviderList {
|
|
170
|
-
items: Array<FluxProvider>;
|
|
171
|
-
}
|
|
172
|
-
export interface FluxCreateParams {
|
|
173
|
-
/**
|
|
174
|
-
* Connect Flux speed in Mbps
|
|
175
|
-
*/
|
|
176
|
-
bandwidth_mbps: FluxBandwidthMbps;
|
|
177
|
-
/**
|
|
178
|
-
* CIDRs for the Connect Flux
|
|
179
|
-
*/
|
|
180
|
-
cidrs: Array<string>;
|
|
181
|
-
/**
|
|
182
|
-
* Name of the Connect Flux
|
|
183
|
-
*/
|
|
184
|
-
name: string;
|
|
185
|
-
/**
|
|
186
|
-
* Provider CIDRs
|
|
187
|
-
*/
|
|
188
|
-
provider_cidrs: Array<string>;
|
|
189
|
-
/**
|
|
190
|
-
* Region the resource is in.
|
|
191
|
-
*/
|
|
192
|
-
region: Shared.RegionName;
|
|
193
|
-
/**
|
|
194
|
-
* AWS provider configuration
|
|
195
|
-
*/
|
|
196
|
-
aws?: FluxProviderAWSConfigRequest;
|
|
197
|
-
}
|
|
198
|
-
export interface FluxUpdateParams {
|
|
199
|
-
/**
|
|
200
|
-
* Name of the Connect Flux.
|
|
201
|
-
*/
|
|
202
|
-
name?: string;
|
|
203
|
-
}
|
|
204
|
-
export declare namespace FluxResource {
|
|
205
|
-
export { type Flux as Flux, type FluxBandwidthMbps as FluxBandwidthMbps, type FluxList as FluxList, type FluxProvider as FluxProvider, type FluxProviderAWSConfig as FluxProviderAWSConfig, type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest, type FluxProviderList as FluxProviderList, type FluxCreateParams as FluxCreateParams, type FluxUpdateParams as FluxUpdateParams, };
|
|
206
|
-
export { Providers as Providers };
|
|
7
|
+
export declare namespace Flux {
|
|
8
|
+
export { Routes as Routes };
|
|
207
9
|
}
|
|
208
10
|
//# sourceMappingURL=flux.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flux.d.mts","sourceRoot":"","sources":["../../../src/resources/connect/flux/flux.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"flux.d.mts","sourceRoot":"","sources":["../../../src/resources/connect/flux/flux.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;AAEjB,qBAAa,IAAK,SAAQ,WAAW;IACnC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -1,208 +1,10 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
7
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
8
|
-
export declare class FluxResource extends APIResource {
|
|
9
|
-
providers: ProvidersAPI.Providers;
|
|
10
|
-
/**
|
|
11
|
-
* Create a Connect Flux
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const operation = await client.connect.flux.create({
|
|
16
|
-
* bandwidth_mbps: 50,
|
|
17
|
-
* cidrs: ['10.0.0.0/16'],
|
|
18
|
-
* name: 'my-connect-flux',
|
|
19
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
20
|
-
* region: 'us-wdc-1',
|
|
21
|
-
* });
|
|
22
|
-
* ```
|
|
23
|
-
*/
|
|
24
|
-
create(body: FluxCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
25
|
-
/**
|
|
26
|
-
* Update Connect Flux details
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const operation = await client.connect.flux.update(
|
|
31
|
-
* 'flux_id',
|
|
32
|
-
* );
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
update(fluxID: string, body: FluxUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
36
|
-
/**
|
|
37
|
-
* List all Connect Flux
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const fluxList = await client.connect.flux.list();
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
list(options?: RequestOptions): APIPromise<FluxList>;
|
|
45
|
-
/**
|
|
46
|
-
* Delete Connect Flux
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const operation = await client.connect.flux.delete(
|
|
51
|
-
* 'flux_id',
|
|
52
|
-
* );
|
|
53
|
-
* ```
|
|
54
|
-
*/
|
|
55
|
-
delete(fluxID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
56
|
-
/**
|
|
57
|
-
* Get Connect Flux details
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* const flux = await client.connect.flux.get('flux_id');
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
get(fluxID: string, options?: RequestOptions): APIPromise<Flux>;
|
|
2
|
+
import * as RoutesAPI from "./routes.js";
|
|
3
|
+
import { Routes } from "./routes.js";
|
|
4
|
+
export declare class Flux extends APIResource {
|
|
5
|
+
routes: RoutesAPI.Routes;
|
|
65
6
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
*/
|
|
69
|
-
export interface Flux {
|
|
70
|
-
/**
|
|
71
|
-
* Unique identifier for the Connect Flux
|
|
72
|
-
*/
|
|
73
|
-
id: string;
|
|
74
|
-
/**
|
|
75
|
-
* ASN
|
|
76
|
-
*/
|
|
77
|
-
asn: number | null;
|
|
78
|
-
/**
|
|
79
|
-
* AWS provider configuration
|
|
80
|
-
*/
|
|
81
|
-
aws: FluxProviderAWSConfig | null;
|
|
82
|
-
/**
|
|
83
|
-
* Connect Flux speed in Mbps
|
|
84
|
-
*/
|
|
85
|
-
bandwidth_mbps: FluxBandwidthMbps;
|
|
86
|
-
/**
|
|
87
|
-
* CIDRs for the Connect Flux
|
|
88
|
-
*/
|
|
89
|
-
cidrs: Array<string>;
|
|
90
|
-
/**
|
|
91
|
-
* When the Connect Flux was created
|
|
92
|
-
*/
|
|
93
|
-
created_at: string;
|
|
94
|
-
/**
|
|
95
|
-
* Name of the Connect Flux
|
|
96
|
-
*/
|
|
97
|
-
name: string;
|
|
98
|
-
/**
|
|
99
|
-
* Provider ASN
|
|
100
|
-
*/
|
|
101
|
-
provider_asn: number | null;
|
|
102
|
-
/**
|
|
103
|
-
* Provider CIDRs for the Connect Flux
|
|
104
|
-
*/
|
|
105
|
-
provider_cidrs: Array<string>;
|
|
106
|
-
/**
|
|
107
|
-
* Provider Router IP
|
|
108
|
-
*/
|
|
109
|
-
provider_router_ip: string | null;
|
|
110
|
-
/**
|
|
111
|
-
* Region the resource is in.
|
|
112
|
-
*/
|
|
113
|
-
region: Shared.RegionName;
|
|
114
|
-
/**
|
|
115
|
-
* Router IP
|
|
116
|
-
*/
|
|
117
|
-
router_ip: string | null;
|
|
118
|
-
/**
|
|
119
|
-
* Status of the resource.
|
|
120
|
-
*/
|
|
121
|
-
status: Shared.ResourceStatus;
|
|
122
|
-
/**
|
|
123
|
-
* When the Connect Flux was updated
|
|
124
|
-
*/
|
|
125
|
-
updated_at: string;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Connect Flux speed in Mbps
|
|
129
|
-
*/
|
|
130
|
-
export type FluxBandwidthMbps = 50 | 200 | 500 | 1000 | 2000;
|
|
131
|
-
export interface FluxList {
|
|
132
|
-
items: Array<Flux>;
|
|
133
|
-
}
|
|
134
|
-
/**
|
|
135
|
-
* Provider supported for Connect Flux.
|
|
136
|
-
*/
|
|
137
|
-
export interface FluxProvider {
|
|
138
|
-
/**
|
|
139
|
-
* Provider name.
|
|
140
|
-
*/
|
|
141
|
-
name: string;
|
|
142
|
-
/**
|
|
143
|
-
* Provider region name.
|
|
144
|
-
*/
|
|
145
|
-
region: string;
|
|
146
|
-
}
|
|
147
|
-
/**
|
|
148
|
-
* AWS provider configuration
|
|
149
|
-
*/
|
|
150
|
-
export interface FluxProviderAWSConfig {
|
|
151
|
-
/**
|
|
152
|
-
* AWS region where the connection is established
|
|
153
|
-
*/
|
|
154
|
-
region: string;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* AWS provider configuration
|
|
158
|
-
*/
|
|
159
|
-
export interface FluxProviderAWSConfigRequest {
|
|
160
|
-
/**
|
|
161
|
-
* AWS account id
|
|
162
|
-
*/
|
|
163
|
-
account_id: string;
|
|
164
|
-
/**
|
|
165
|
-
* AWS region where the connection will be established
|
|
166
|
-
*/
|
|
167
|
-
region: string;
|
|
168
|
-
}
|
|
169
|
-
export interface FluxProviderList {
|
|
170
|
-
items: Array<FluxProvider>;
|
|
171
|
-
}
|
|
172
|
-
export interface FluxCreateParams {
|
|
173
|
-
/**
|
|
174
|
-
* Connect Flux speed in Mbps
|
|
175
|
-
*/
|
|
176
|
-
bandwidth_mbps: FluxBandwidthMbps;
|
|
177
|
-
/**
|
|
178
|
-
* CIDRs for the Connect Flux
|
|
179
|
-
*/
|
|
180
|
-
cidrs: Array<string>;
|
|
181
|
-
/**
|
|
182
|
-
* Name of the Connect Flux
|
|
183
|
-
*/
|
|
184
|
-
name: string;
|
|
185
|
-
/**
|
|
186
|
-
* Provider CIDRs
|
|
187
|
-
*/
|
|
188
|
-
provider_cidrs: Array<string>;
|
|
189
|
-
/**
|
|
190
|
-
* Region the resource is in.
|
|
191
|
-
*/
|
|
192
|
-
region: Shared.RegionName;
|
|
193
|
-
/**
|
|
194
|
-
* AWS provider configuration
|
|
195
|
-
*/
|
|
196
|
-
aws?: FluxProviderAWSConfigRequest;
|
|
197
|
-
}
|
|
198
|
-
export interface FluxUpdateParams {
|
|
199
|
-
/**
|
|
200
|
-
* Name of the Connect Flux.
|
|
201
|
-
*/
|
|
202
|
-
name?: string;
|
|
203
|
-
}
|
|
204
|
-
export declare namespace FluxResource {
|
|
205
|
-
export { type Flux as Flux, type FluxBandwidthMbps as FluxBandwidthMbps, type FluxList as FluxList, type FluxProvider as FluxProvider, type FluxProviderAWSConfig as FluxProviderAWSConfig, type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest, type FluxProviderList as FluxProviderList, type FluxCreateParams as FluxCreateParams, type FluxUpdateParams as FluxUpdateParams, };
|
|
206
|
-
export { Providers as Providers };
|
|
7
|
+
export declare namespace Flux {
|
|
8
|
+
export { Routes as Routes };
|
|
207
9
|
}
|
|
208
10
|
//# sourceMappingURL=flux.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flux.d.ts","sourceRoot":"","sources":["../../../src/resources/connect/flux/flux.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,
|
|
1
|
+
{"version":3,"file":"flux.d.ts","sourceRoot":"","sources":["../../../src/resources/connect/flux/flux.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,MAAM,EAAE;AAEjB,qBAAa,IAAK,SAAQ,WAAW;IACnC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,CAAC;CAC7B"}
|
|
@@ -1,83 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.Flux = void 0;
|
|
5
5
|
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
6
|
const resource_1 = require("../../../core/resource.js");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
class FluxResource extends resource_1.APIResource {
|
|
7
|
+
const RoutesAPI = tslib_1.__importStar(require("./routes.js"));
|
|
8
|
+
const routes_1 = require("./routes.js");
|
|
9
|
+
class Flux extends resource_1.APIResource {
|
|
11
10
|
constructor() {
|
|
12
11
|
super(...arguments);
|
|
13
|
-
this.
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Create a Connect Flux
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const operation = await client.connect.flux.create({
|
|
21
|
-
* bandwidth_mbps: 50,
|
|
22
|
-
* cidrs: ['10.0.0.0/16'],
|
|
23
|
-
* name: 'my-connect-flux',
|
|
24
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
25
|
-
* region: 'us-wdc-1',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
create(body, options) {
|
|
30
|
-
return this._client.post('/v1/connect/flux', { body, ...options });
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Update Connect Flux details
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* const operation = await client.connect.flux.update(
|
|
38
|
-
* 'flux_id',
|
|
39
|
-
* );
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
update(fluxID, body, options) {
|
|
43
|
-
return this._client.patch((0, path_1.path) `/v1/connect/flux/${fluxID}`, { body, ...options });
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* List all Connect Flux
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const fluxList = await client.connect.flux.list();
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
list(options) {
|
|
54
|
-
return this._client.get('/v1/connect/flux', options);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Delete Connect Flux
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* const operation = await client.connect.flux.delete(
|
|
62
|
-
* 'flux_id',
|
|
63
|
-
* );
|
|
64
|
-
* ```
|
|
65
|
-
*/
|
|
66
|
-
delete(fluxID, options) {
|
|
67
|
-
return this._client.delete((0, path_1.path) `/v1/connect/flux/${fluxID}`, options);
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Get Connect Flux details
|
|
71
|
-
*
|
|
72
|
-
* @example
|
|
73
|
-
* ```ts
|
|
74
|
-
* const flux = await client.connect.flux.get('flux_id');
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
get(fluxID, options) {
|
|
78
|
-
return this._client.get((0, path_1.path) `/v1/connect/flux/${fluxID}`, options);
|
|
12
|
+
this.routes = new RoutesAPI.Routes(this._client);
|
|
79
13
|
}
|
|
80
14
|
}
|
|
81
|
-
exports.
|
|
82
|
-
|
|
15
|
+
exports.Flux = Flux;
|
|
16
|
+
Flux.Routes = routes_1.Routes;
|
|
83
17
|
//# sourceMappingURL=flux.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flux.js","sourceRoot":"","sources":["../../../src/resources/connect/flux/flux.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"flux.js","sourceRoot":"","sources":["../../../src/resources/connect/flux/flux.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,wCAAkC;AAElC,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAFD,oBAEC;AAED,IAAI,CAAC,MAAM,GAAG,eAAM,CAAC"}
|