@nirvana-labs/nirvana 1.2.0 → 1.3.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 +13 -0
- package/package.json +1 -1
- package/resources/networking/index.d.mts +1 -1
- package/resources/networking/index.d.ts +1 -1
- package/resources/networking/index.js +2 -2
- package/resources/networking/index.js.map +1 -1
- package/resources/networking/index.mjs +1 -1
- package/resources/networking/networking.d.mts +2 -2
- package/resources/networking/networking.d.ts +2 -2
- package/resources/networking/networking.js +2 -2
- package/resources/networking/networking.js.map +1 -1
- package/resources/networking/networking.mjs +2 -2
- package/resources/networking/vpcs/availability.d.mts +62 -0
- package/resources/networking/vpcs/availability.d.mts.map +1 -0
- package/resources/networking/vpcs/availability.d.ts +62 -0
- package/resources/networking/vpcs/availability.d.ts.map +1 -0
- package/resources/networking/vpcs/availability.js +40 -0
- package/resources/networking/vpcs/availability.js.map +1 -0
- package/resources/networking/vpcs/availability.mjs +36 -0
- package/resources/networking/vpcs/availability.mjs.map +1 -0
- package/resources/networking/vpcs/index.d.mts +3 -0
- package/resources/networking/vpcs/index.d.mts.map +1 -0
- package/resources/networking/vpcs/index.d.ts +3 -0
- package/resources/networking/vpcs/index.d.ts.map +1 -0
- package/resources/networking/vpcs/index.js +9 -0
- package/resources/networking/vpcs/index.js.map +1 -0
- package/resources/networking/vpcs/index.mjs +4 -0
- package/resources/networking/vpcs/index.mjs.map +1 -0
- package/resources/networking/vpcs/vpcs.d.mts +157 -0
- package/resources/networking/vpcs/vpcs.d.mts.map +1 -0
- package/resources/networking/vpcs/vpcs.d.ts +157 -0
- package/resources/networking/vpcs/vpcs.d.ts.map +1 -0
- package/resources/networking/vpcs/vpcs.js +81 -0
- package/resources/networking/vpcs/vpcs.js.map +1 -0
- package/resources/networking/vpcs/vpcs.mjs +76 -0
- package/resources/networking/vpcs/vpcs.mjs.map +1 -0
- package/resources/networking/vpcs.d.mts +1 -152
- package/resources/networking/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs.d.ts +1 -152
- package/resources/networking/vpcs.d.ts.map +1 -1
- package/resources/networking/vpcs.js +2 -69
- package/resources/networking/vpcs.js.map +1 -1
- package/resources/networking/vpcs.mjs +1 -67
- package/resources/networking/vpcs.mjs.map +1 -1
- package/src/resources/networking/index.ts +1 -1
- package/src/resources/networking/networking.ts +2 -2
- package/src/resources/networking/vpcs/availability.ts +83 -0
- package/src/resources/networking/vpcs/index.ts +17 -0
- package/src/resources/networking/vpcs/vpcs.ts +220 -0
- package/src/resources/networking/vpcs.ts +1 -198
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.3.0 (2025-05-28)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.2.0...v1.3.0](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.2.0...v1.3.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([1dbdf80](https://github.com/nirvana-labs/nirvana-typescript/commit/1dbdf80857330b8c0dd6ef908e9b7a7aa2d323fd))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* improve publish-npm script --latest tag logic ([a5386d0](https://github.com/nirvana-labs/nirvana-typescript/commit/a5386d023dff600b222c56303168e2731a1ae225))
|
|
15
|
+
|
|
3
16
|
## 1.2.0 (2025-05-23)
|
|
4
17
|
|
|
5
18
|
Full Changelog: [v1.1.2...v1.2.0](https://github.com/nirvana-labs/nirvana-typescript/compare/v1.1.2...v1.2.0)
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { FirewallRules, type FirewallRule, type FirewallRuleList, type FirewallRuleCreateParams, type FirewallRuleUpdateParams, type FirewallRuleDeleteParams, type FirewallRuleGetParams, } from "./firewall-rules.mjs";
|
|
2
2
|
export { Networking } from "./networking.mjs";
|
|
3
|
-
export { VPCs, type Subnet, type VPC, type VPCList, type VPCCreateParams, type VPCUpdateParams, } from "./vpcs.mjs";
|
|
3
|
+
export { VPCs, type Subnet, type VPC, type VPCList, type VPCCreateParams, type VPCUpdateParams, } from "./vpcs/index.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { FirewallRules, type FirewallRule, type FirewallRuleList, type FirewallRuleCreateParams, type FirewallRuleUpdateParams, type FirewallRuleDeleteParams, type FirewallRuleGetParams, } from "./firewall-rules.js";
|
|
2
2
|
export { Networking } from "./networking.js";
|
|
3
|
-
export { VPCs, type Subnet, type VPC, type VPCList, type VPCCreateParams, type VPCUpdateParams, } from "./vpcs.js";
|
|
3
|
+
export { VPCs, type Subnet, type VPC, type VPCList, type VPCCreateParams, type VPCUpdateParams, } from "./vpcs/index.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -6,6 +6,6 @@ var firewall_rules_1 = require("./firewall-rules.js");
|
|
|
6
6
|
Object.defineProperty(exports, "FirewallRules", { enumerable: true, get: function () { return firewall_rules_1.FirewallRules; } });
|
|
7
7
|
var networking_1 = require("./networking.js");
|
|
8
8
|
Object.defineProperty(exports, "Networking", { enumerable: true, get: function () { return networking_1.Networking; } });
|
|
9
|
-
var
|
|
10
|
-
Object.defineProperty(exports, "VPCs", { enumerable: true, get: function () { return
|
|
9
|
+
var index_1 = require("./vpcs/index.js");
|
|
10
|
+
Object.defineProperty(exports, "VPCs", { enumerable: true, get: function () { return index_1.VPCs; } });
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/networking/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAQ0B;AAPxB,+GAAA,aAAa,OAAA;AAQf,8CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/networking/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAQ0B;AAPxB,+GAAA,aAAa,OAAA;AAQf,8CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,yCAOsB;AANpB,6FAAA,IAAI,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { FirewallRules, } from "./firewall-rules.mjs";
|
|
3
3
|
export { Networking } from "./networking.mjs";
|
|
4
|
-
export { VPCs, } from "./vpcs.mjs";
|
|
4
|
+
export { VPCs, } from "./vpcs/index.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
2
|
import * as FirewallRulesAPI from "./firewall-rules.mjs";
|
|
3
3
|
import { FirewallRule, FirewallRuleCreateParams, FirewallRuleDeleteParams, FirewallRuleGetParams, FirewallRuleList, FirewallRuleUpdateParams, FirewallRules } from "./firewall-rules.mjs";
|
|
4
|
-
import * as VPCsAPI from "./vpcs.mjs";
|
|
5
|
-
import { Subnet, VPC, VPCCreateParams, VPCList, VPCUpdateParams, VPCs } from "./vpcs.mjs";
|
|
4
|
+
import * as VPCsAPI from "./vpcs/vpcs.mjs";
|
|
5
|
+
import { Subnet, VPC, VPCCreateParams, VPCList, VPCUpdateParams, VPCs } from "./vpcs/vpcs.mjs";
|
|
6
6
|
export declare class Networking extends APIResource {
|
|
7
7
|
vpcs: VPCsAPI.VPCs;
|
|
8
8
|
firewallRules: FirewallRulesAPI.FirewallRules;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.js";
|
|
2
2
|
import * as FirewallRulesAPI from "./firewall-rules.js";
|
|
3
3
|
import { FirewallRule, FirewallRuleCreateParams, FirewallRuleDeleteParams, FirewallRuleGetParams, FirewallRuleList, FirewallRuleUpdateParams, FirewallRules } from "./firewall-rules.js";
|
|
4
|
-
import * as VPCsAPI from "./vpcs.js";
|
|
5
|
-
import { Subnet, VPC, VPCCreateParams, VPCList, VPCUpdateParams, VPCs } from "./vpcs.js";
|
|
4
|
+
import * as VPCsAPI from "./vpcs/vpcs.js";
|
|
5
|
+
import { Subnet, VPC, VPCCreateParams, VPCList, VPCUpdateParams, VPCs } from "./vpcs/vpcs.js";
|
|
6
6
|
export declare class Networking extends APIResource {
|
|
7
7
|
vpcs: VPCsAPI.VPCs;
|
|
8
8
|
firewallRules: FirewallRulesAPI.FirewallRules;
|
|
@@ -6,8 +6,8 @@ const tslib_1 = require("../../internal/tslib.js");
|
|
|
6
6
|
const resource_1 = require("../../core/resource.js");
|
|
7
7
|
const FirewallRulesAPI = tslib_1.__importStar(require("./firewall-rules.js"));
|
|
8
8
|
const firewall_rules_1 = require("./firewall-rules.js");
|
|
9
|
-
const VPCsAPI = tslib_1.__importStar(require("./vpcs.js"));
|
|
10
|
-
const vpcs_1 = require("./vpcs.js");
|
|
9
|
+
const VPCsAPI = tslib_1.__importStar(require("./vpcs/vpcs.js"));
|
|
10
|
+
const vpcs_1 = require("./vpcs/vpcs.js");
|
|
11
11
|
class Networking extends resource_1.APIResource {
|
|
12
12
|
constructor() {
|
|
13
13
|
super(...arguments);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networking.js","sourceRoot":"","sources":["../../src/resources/networking/networking.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,8EAAqD;AACrD,wDAQ0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"networking.js","sourceRoot":"","sources":["../../src/resources/networking/networking.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,8EAAqD;AACrD,wDAQ0B;AAC1B,gEAAuC;AACvC,yCAA2F;AAE3F,MAAa,UAAW,SAAQ,sBAAW;IAA3C;;QACE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACpD,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnG,CAAC;CAAA;AAHD,gCAGC;AAED,UAAU,CAAC,IAAI,GAAG,WAAI,CAAC;AACvB,UAAU,CAAC,aAAa,GAAG,8BAAa,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { APIResource } from "../../core/resource.mjs";
|
|
3
3
|
import * as FirewallRulesAPI from "./firewall-rules.mjs";
|
|
4
4
|
import { FirewallRules, } from "./firewall-rules.mjs";
|
|
5
|
-
import * as VPCsAPI from "./vpcs.mjs";
|
|
6
|
-
import { VPCs } from "./vpcs.mjs";
|
|
5
|
+
import * as VPCsAPI from "./vpcs/vpcs.mjs";
|
|
6
|
+
import { VPCs } from "./vpcs/vpcs.mjs";
|
|
7
7
|
export class Networking extends APIResource {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as Shared from "../../shared.mjs";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
|
+
export declare class Availability extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Check if a VPC can be created
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const availability =
|
|
12
|
+
* await client.networking.vpcs.availability.create({
|
|
13
|
+
* name: 'my-vpc',
|
|
14
|
+
* region: 'us-wdc-1',
|
|
15
|
+
* subnet_name: 'my-subnet',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: AvailabilityCreateParams, options?: RequestOptions): APIPromise<unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a VPC can be updated
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const availability =
|
|
26
|
+
* await client.networking.vpcs.availability.update(
|
|
27
|
+
* 'vpc_id',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
update(vpcID: string, body: AvailabilityUpdateParams, options?: RequestOptions): APIPromise<unknown>;
|
|
32
|
+
}
|
|
33
|
+
export type AvailabilityCreateResponse = unknown;
|
|
34
|
+
export type AvailabilityUpdateResponse = unknown;
|
|
35
|
+
export interface AvailabilityCreateParams {
|
|
36
|
+
/**
|
|
37
|
+
* Name of the VPC.
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Region the resource is in.
|
|
42
|
+
*/
|
|
43
|
+
region: Shared.RegionName;
|
|
44
|
+
/**
|
|
45
|
+
* Name of the subnet to create.
|
|
46
|
+
*/
|
|
47
|
+
subnet_name: string;
|
|
48
|
+
}
|
|
49
|
+
export interface AvailabilityUpdateParams {
|
|
50
|
+
/**
|
|
51
|
+
* Name of the VPC.
|
|
52
|
+
*/
|
|
53
|
+
name?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Name of the subnet to create.
|
|
56
|
+
*/
|
|
57
|
+
subnet_name?: string;
|
|
58
|
+
}
|
|
59
|
+
export declare namespace Availability {
|
|
60
|
+
export { type AvailabilityCreateResponse as AvailabilityCreateResponse, type AvailabilityUpdateResponse as AvailabilityUpdateResponse, type AvailabilityCreateParams as AvailabilityCreateParams, type AvailabilityUpdateParams as AvailabilityUpdateParams, };
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=availability.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availability.d.mts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/availability.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIrF;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAGrG;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAEjD,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAEjD,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as Shared from "../../shared.js";
|
|
3
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
|
+
export declare class Availability extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Check if a VPC can be created
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const availability =
|
|
12
|
+
* await client.networking.vpcs.availability.create({
|
|
13
|
+
* name: 'my-vpc',
|
|
14
|
+
* region: 'us-wdc-1',
|
|
15
|
+
* subnet_name: 'my-subnet',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: AvailabilityCreateParams, options?: RequestOptions): APIPromise<unknown>;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a VPC can be updated
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* const availability =
|
|
26
|
+
* await client.networking.vpcs.availability.update(
|
|
27
|
+
* 'vpc_id',
|
|
28
|
+
* );
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
update(vpcID: string, body: AvailabilityUpdateParams, options?: RequestOptions): APIPromise<unknown>;
|
|
32
|
+
}
|
|
33
|
+
export type AvailabilityCreateResponse = unknown;
|
|
34
|
+
export type AvailabilityUpdateResponse = unknown;
|
|
35
|
+
export interface AvailabilityCreateParams {
|
|
36
|
+
/**
|
|
37
|
+
* Name of the VPC.
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
40
|
+
/**
|
|
41
|
+
* Region the resource is in.
|
|
42
|
+
*/
|
|
43
|
+
region: Shared.RegionName;
|
|
44
|
+
/**
|
|
45
|
+
* Name of the subnet to create.
|
|
46
|
+
*/
|
|
47
|
+
subnet_name: string;
|
|
48
|
+
}
|
|
49
|
+
export interface AvailabilityUpdateParams {
|
|
50
|
+
/**
|
|
51
|
+
* Name of the VPC.
|
|
52
|
+
*/
|
|
53
|
+
name?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Name of the subnet to create.
|
|
56
|
+
*/
|
|
57
|
+
subnet_name?: string;
|
|
58
|
+
}
|
|
59
|
+
export declare namespace Availability {
|
|
60
|
+
export { type AvailabilityCreateResponse as AvailabilityCreateResponse, type AvailabilityUpdateResponse as AvailabilityUpdateResponse, type AvailabilityCreateParams as AvailabilityCreateParams, type AvailabilityUpdateParams as AvailabilityUpdateParams, };
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=availability.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availability.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/availability.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAIrF;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAGrG;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAEjD,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAEjD,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Availability = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
class Availability extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Check if a VPC can be created
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const availability =
|
|
14
|
+
* await client.networking.vpcs.availability.create({
|
|
15
|
+
* name: 'my-vpc',
|
|
16
|
+
* region: 'us-wdc-1',
|
|
17
|
+
* subnet_name: 'my-subnet',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(body, options) {
|
|
22
|
+
return this._client.post('/v1/networking/vpcs/availability', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Check if a VPC can be updated
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const availability =
|
|
30
|
+
* await client.networking.vpcs.availability.update(
|
|
31
|
+
* 'vpc_id',
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
update(vpcID, body, options) {
|
|
36
|
+
return this._client.patch((0, path_1.path) `/v1/networking/vpcs/${vpcID}/availability`, { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.Availability = Availability;
|
|
40
|
+
//# sourceMappingURL=availability.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availability.js","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/availability.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAa,EAAE,IAA8B,EAAE,OAAwB;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uBAAuB,KAAK,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF;AAhCD,oCAgCC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
export class Availability extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Check if a VPC can be created
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const availability =
|
|
11
|
+
* await client.networking.vpcs.availability.create({
|
|
12
|
+
* name: 'my-vpc',
|
|
13
|
+
* region: 'us-wdc-1',
|
|
14
|
+
* subnet_name: 'my-subnet',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body, options) {
|
|
19
|
+
return this._client.post('/v1/networking/vpcs/availability', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Check if a VPC can be updated
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const availability =
|
|
27
|
+
* await client.networking.vpcs.availability.update(
|
|
28
|
+
* 'vpc_id',
|
|
29
|
+
* );
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
update(vpcID, body, options) {
|
|
33
|
+
return this._client.patch(path `/v1/networking/vpcs/${vpcID}/availability`, { body, ...options });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=availability.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"availability.mjs","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/availability.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAA8B,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAa,EAAE,IAA8B,EAAE,OAAwB;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uBAAuB,KAAK,eAAe,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Availability, type AvailabilityCreateResponse, type AvailabilityUpdateResponse, type AvailabilityCreateParams, type AvailabilityUpdateParams, } from "./availability.mjs";
|
|
2
|
+
export { VPCs, type Subnet, type VPC, type VPCList, type VPCCreateParams, type VPCUpdateParams, } from "./vpcs.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,IAAI,EACJ,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Availability, type AvailabilityCreateResponse, type AvailabilityUpdateResponse, type AvailabilityCreateParams, type AvailabilityUpdateParams, } from "./availability.js";
|
|
2
|
+
export { VPCs, type Subnet, type VPC, type VPCList, type VPCCreateParams, type VPCUpdateParams, } from "./vpcs.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,IAAI,EACJ,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,eAAe,GACrB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.VPCs = exports.Availability = void 0;
|
|
5
|
+
var availability_1 = require("./availability.js");
|
|
6
|
+
Object.defineProperty(exports, "Availability", { enumerable: true, get: function () { return availability_1.Availability; } });
|
|
7
|
+
var vpcs_1 = require("./vpcs.js");
|
|
8
|
+
Object.defineProperty(exports, "VPCs", { enumerable: true, get: function () { return vpcs_1.VPCs; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAMwB;AALtB,4GAAA,YAAY,OAAA;AAMd,kCAOgB;AANd,4FAAA,IAAI,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAKb;OACM,EACL,IAAI,GAML"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as OperationsAPI from "../../operations.mjs";
|
|
3
|
+
import * as Shared from "../../shared.mjs";
|
|
4
|
+
import * as AvailabilityAPI from "./availability.mjs";
|
|
5
|
+
import { Availability, AvailabilityCreateParams, AvailabilityCreateResponse, AvailabilityUpdateParams, AvailabilityUpdateResponse } from "./availability.mjs";
|
|
6
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
7
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
8
|
+
export declare class VPCs extends APIResource {
|
|
9
|
+
availability: AvailabilityAPI.Availability;
|
|
10
|
+
/**
|
|
11
|
+
* Create a VPC
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const operation = await client.networking.vpcs.create({
|
|
16
|
+
* name: 'my-vpc',
|
|
17
|
+
* region: 'us-wdc-1',
|
|
18
|
+
* subnet_name: 'my-subnet',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(body: VPCCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
23
|
+
/**
|
|
24
|
+
* Update a VPC
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const operation = await client.networking.vpcs.update(
|
|
29
|
+
* 'vpc_id',
|
|
30
|
+
* );
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
update(vpcID: string, body: VPCUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
34
|
+
/**
|
|
35
|
+
* List all VPCs
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const vpcList = await client.networking.vpcs.list();
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
list(options?: RequestOptions): APIPromise<VPCList>;
|
|
43
|
+
/**
|
|
44
|
+
* Delete a VPC
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* const operation = await client.networking.vpcs.delete(
|
|
49
|
+
* 'vpc_id',
|
|
50
|
+
* );
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
delete(vpcID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
54
|
+
/**
|
|
55
|
+
* Get details about a VPC
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const vpc = await client.networking.vpcs.get('vpc_id');
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
get(vpcID: string, options?: RequestOptions): APIPromise<VPC>;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Subnet of the VPC.
|
|
66
|
+
*/
|
|
67
|
+
export interface Subnet {
|
|
68
|
+
/**
|
|
69
|
+
* Unique identifier for the subnet.
|
|
70
|
+
*/
|
|
71
|
+
id: string;
|
|
72
|
+
/**
|
|
73
|
+
* CIDR block for the subnet.
|
|
74
|
+
*/
|
|
75
|
+
cidr: string;
|
|
76
|
+
/**
|
|
77
|
+
* When the subnet was created.
|
|
78
|
+
*/
|
|
79
|
+
created_at: string;
|
|
80
|
+
/**
|
|
81
|
+
* Name of the subnet.
|
|
82
|
+
*/
|
|
83
|
+
name: string;
|
|
84
|
+
/**
|
|
85
|
+
* When the subnet was updated.
|
|
86
|
+
*/
|
|
87
|
+
updated_at: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* VPC details.
|
|
91
|
+
*/
|
|
92
|
+
export interface VPC {
|
|
93
|
+
/**
|
|
94
|
+
* Unique identifier for the VPC.
|
|
95
|
+
*/
|
|
96
|
+
id: string;
|
|
97
|
+
/**
|
|
98
|
+
* When the VPC was created.
|
|
99
|
+
*/
|
|
100
|
+
created_at: string;
|
|
101
|
+
/**
|
|
102
|
+
* IDs of the firewall rules associated with the VPC.
|
|
103
|
+
*/
|
|
104
|
+
firewall_rule_ids: Array<string>;
|
|
105
|
+
/**
|
|
106
|
+
* Name of the VPC.
|
|
107
|
+
*/
|
|
108
|
+
name: string;
|
|
109
|
+
/**
|
|
110
|
+
* Region the resource is in.
|
|
111
|
+
*/
|
|
112
|
+
region: Shared.RegionName;
|
|
113
|
+
/**
|
|
114
|
+
* Status of the resource.
|
|
115
|
+
*/
|
|
116
|
+
status: Shared.ResourceStatus;
|
|
117
|
+
/**
|
|
118
|
+
* Subnet of the VPC.
|
|
119
|
+
*/
|
|
120
|
+
subnet: Subnet;
|
|
121
|
+
/**
|
|
122
|
+
* When the VPC was updated.
|
|
123
|
+
*/
|
|
124
|
+
updated_at: string;
|
|
125
|
+
}
|
|
126
|
+
export interface VPCList {
|
|
127
|
+
items: Array<VPC>;
|
|
128
|
+
}
|
|
129
|
+
export interface VPCCreateParams {
|
|
130
|
+
/**
|
|
131
|
+
* Name of the VPC.
|
|
132
|
+
*/
|
|
133
|
+
name: string;
|
|
134
|
+
/**
|
|
135
|
+
* Region the resource is in.
|
|
136
|
+
*/
|
|
137
|
+
region: Shared.RegionName;
|
|
138
|
+
/**
|
|
139
|
+
* Name of the subnet to create.
|
|
140
|
+
*/
|
|
141
|
+
subnet_name: string;
|
|
142
|
+
}
|
|
143
|
+
export interface VPCUpdateParams {
|
|
144
|
+
/**
|
|
145
|
+
* Name of the VPC.
|
|
146
|
+
*/
|
|
147
|
+
name?: string;
|
|
148
|
+
/**
|
|
149
|
+
* Name of the subnet to create.
|
|
150
|
+
*/
|
|
151
|
+
subnet_name?: string;
|
|
152
|
+
}
|
|
153
|
+
export declare namespace VPCs {
|
|
154
|
+
export { type Subnet as Subnet, type VPC as VPC, type VPCList as VPCList, type VPCCreateParams as VPCCreateParams, type VPCUpdateParams as VPCUpdateParams, };
|
|
155
|
+
export { Availability as Availability, type AvailabilityCreateResponse as AvailabilityCreateResponse, type AvailabilityUpdateResponse as AvailabilityUpdateResponse, type AvailabilityCreateParams as AvailabilityCreateParams, type AvailabilityUpdateParams as AvailabilityUpdateParams, };
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=vpcs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vpcs.d.mts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/vpcs.ts"],"names":[],"mappings":"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"}
|