@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
|
@@ -1,73 +1,6 @@
|
|
|
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
|
-
|
|
5
|
-
|
|
6
|
-
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
-
class VPCs extends resource_1.APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create a VPC
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* const operation = await client.networking.vpcs.create({
|
|
14
|
-
* name: 'my-vpc',
|
|
15
|
-
* region: 'us-wdc-1',
|
|
16
|
-
* subnet_name: 'my-subnet',
|
|
17
|
-
* });
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
create(body, options) {
|
|
21
|
-
return this._client.post('/v1/networking/vpcs', { body, ...options });
|
|
22
|
-
}
|
|
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, body, options) {
|
|
34
|
-
return this._client.patch((0, path_1.path) `/v1/networking/vpcs/${vpcID}`, { body, ...options });
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* List all VPCs
|
|
38
|
-
*
|
|
39
|
-
* @example
|
|
40
|
-
* ```ts
|
|
41
|
-
* const vpcList = await client.networking.vpcs.list();
|
|
42
|
-
* ```
|
|
43
|
-
*/
|
|
44
|
-
list(options) {
|
|
45
|
-
return this._client.get('/v1/networking/vpcs', options);
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Delete a VPC
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```ts
|
|
52
|
-
* const operation = await client.networking.vpcs.delete(
|
|
53
|
-
* 'vpc_id',
|
|
54
|
-
* );
|
|
55
|
-
* ```
|
|
56
|
-
*/
|
|
57
|
-
delete(vpcID, options) {
|
|
58
|
-
return this._client.delete((0, path_1.path) `/v1/networking/vpcs/${vpcID}`, options);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Get details about a VPC
|
|
62
|
-
*
|
|
63
|
-
* @example
|
|
64
|
-
* ```ts
|
|
65
|
-
* const vpc = await client.networking.vpcs.get('vpc_id');
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
get(vpcID, options) {
|
|
69
|
-
return this._client.get((0, path_1.path) `/v1/networking/vpcs/${vpcID}`, options);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
exports.VPCs = VPCs;
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./vpcs/index.js"), exports);
|
|
73
6
|
//# sourceMappingURL=vpcs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpcs.js","sourceRoot":"","sources":["../../src/resources/networking/vpcs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"vpcs.js","sourceRoot":"","sources":["../../src/resources/networking/vpcs.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0DAA6B"}
|
|
@@ -1,69 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
-
export class VPCs extends APIResource {
|
|
5
|
-
/**
|
|
6
|
-
* Create a VPC
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const operation = await client.networking.vpcs.create({
|
|
11
|
-
* name: 'my-vpc',
|
|
12
|
-
* region: 'us-wdc-1',
|
|
13
|
-
* subnet_name: 'my-subnet',
|
|
14
|
-
* });
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
create(body, options) {
|
|
18
|
-
return this._client.post('/v1/networking/vpcs', { body, ...options });
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Update a VPC
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const operation = await client.networking.vpcs.update(
|
|
26
|
-
* 'vpc_id',
|
|
27
|
-
* );
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
update(vpcID, body, options) {
|
|
31
|
-
return this._client.patch(path `/v1/networking/vpcs/${vpcID}`, { body, ...options });
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* List all VPCs
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* ```ts
|
|
38
|
-
* const vpcList = await client.networking.vpcs.list();
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
list(options) {
|
|
42
|
-
return this._client.get('/v1/networking/vpcs', options);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Delete a VPC
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* ```ts
|
|
49
|
-
* const operation = await client.networking.vpcs.delete(
|
|
50
|
-
* 'vpc_id',
|
|
51
|
-
* );
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
delete(vpcID, options) {
|
|
55
|
-
return this._client.delete(path `/v1/networking/vpcs/${vpcID}`, options);
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Get details about a VPC
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* const vpc = await client.networking.vpcs.get('vpc_id');
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
get(vpcID, options) {
|
|
66
|
-
return this._client.get(path `/v1/networking/vpcs/${vpcID}`, options);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
2
|
+
export * from "./vpcs/index.mjs";
|
|
69
3
|
//# sourceMappingURL=vpcs.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpcs.mjs","sourceRoot":"","sources":["../../src/resources/networking/vpcs.ts"],"names":[],"mappings":"AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"vpcs.mjs","sourceRoot":"","sources":["../../src/resources/networking/vpcs.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
FirewallRuleUpdateParams,
|
|
12
12
|
FirewallRules,
|
|
13
13
|
} from './firewall-rules';
|
|
14
|
-
import * as VPCsAPI from './vpcs';
|
|
15
|
-
import { Subnet, VPC, VPCCreateParams, VPCList, VPCUpdateParams, VPCs } from './vpcs';
|
|
14
|
+
import * as VPCsAPI from './vpcs/vpcs';
|
|
15
|
+
import { Subnet, VPC, VPCCreateParams, VPCList, VPCUpdateParams, VPCs } from './vpcs/vpcs';
|
|
16
16
|
|
|
17
17
|
export class Networking extends APIResource {
|
|
18
18
|
vpcs: VPCsAPI.VPCs = new VPCsAPI.VPCs(this._client);
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as Shared from '../../shared';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Availability extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Check if a VPC can be created
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const availability =
|
|
16
|
+
* await client.networking.vpcs.availability.create({
|
|
17
|
+
* name: 'my-vpc',
|
|
18
|
+
* region: 'us-wdc-1',
|
|
19
|
+
* subnet_name: 'my-subnet',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
create(body: AvailabilityCreateParams, options?: RequestOptions): APIPromise<unknown> {
|
|
24
|
+
return this._client.post('/v1/networking/vpcs/availability', { body, ...options });
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Check if a VPC can be updated
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* const availability =
|
|
33
|
+
* await client.networking.vpcs.availability.update(
|
|
34
|
+
* 'vpc_id',
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
update(vpcID: string, body: AvailabilityUpdateParams, options?: RequestOptions): APIPromise<unknown> {
|
|
39
|
+
return this._client.patch(path`/v1/networking/vpcs/${vpcID}/availability`, { body, ...options });
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type AvailabilityCreateResponse = unknown;
|
|
44
|
+
|
|
45
|
+
export type AvailabilityUpdateResponse = unknown;
|
|
46
|
+
|
|
47
|
+
export interface AvailabilityCreateParams {
|
|
48
|
+
/**
|
|
49
|
+
* Name of the VPC.
|
|
50
|
+
*/
|
|
51
|
+
name: string;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Region the resource is in.
|
|
55
|
+
*/
|
|
56
|
+
region: Shared.RegionName;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Name of the subnet to create.
|
|
60
|
+
*/
|
|
61
|
+
subnet_name: string;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export interface AvailabilityUpdateParams {
|
|
65
|
+
/**
|
|
66
|
+
* Name of the VPC.
|
|
67
|
+
*/
|
|
68
|
+
name?: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Name of the subnet to create.
|
|
72
|
+
*/
|
|
73
|
+
subnet_name?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export declare namespace Availability {
|
|
77
|
+
export {
|
|
78
|
+
type AvailabilityCreateResponse as AvailabilityCreateResponse,
|
|
79
|
+
type AvailabilityUpdateResponse as AvailabilityUpdateResponse,
|
|
80
|
+
type AvailabilityCreateParams as AvailabilityCreateParams,
|
|
81
|
+
type AvailabilityUpdateParams as AvailabilityUpdateParams,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Availability,
|
|
5
|
+
type AvailabilityCreateResponse,
|
|
6
|
+
type AvailabilityUpdateResponse,
|
|
7
|
+
type AvailabilityCreateParams,
|
|
8
|
+
type AvailabilityUpdateParams,
|
|
9
|
+
} from './availability';
|
|
10
|
+
export {
|
|
11
|
+
VPCs,
|
|
12
|
+
type Subnet,
|
|
13
|
+
type VPC,
|
|
14
|
+
type VPCList,
|
|
15
|
+
type VPCCreateParams,
|
|
16
|
+
type VPCUpdateParams,
|
|
17
|
+
} from './vpcs';
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as OperationsAPI from '../../operations';
|
|
5
|
+
import * as Shared from '../../shared';
|
|
6
|
+
import * as AvailabilityAPI from './availability';
|
|
7
|
+
import {
|
|
8
|
+
Availability,
|
|
9
|
+
AvailabilityCreateParams,
|
|
10
|
+
AvailabilityCreateResponse,
|
|
11
|
+
AvailabilityUpdateParams,
|
|
12
|
+
AvailabilityUpdateResponse,
|
|
13
|
+
} from './availability';
|
|
14
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
15
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
16
|
+
import { path } from '../../../internal/utils/path';
|
|
17
|
+
|
|
18
|
+
export class VPCs extends APIResource {
|
|
19
|
+
availability: AvailabilityAPI.Availability = new AvailabilityAPI.Availability(this._client);
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Create a VPC
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const operation = await client.networking.vpcs.create({
|
|
27
|
+
* name: 'my-vpc',
|
|
28
|
+
* region: 'us-wdc-1',
|
|
29
|
+
* subnet_name: 'my-subnet',
|
|
30
|
+
* });
|
|
31
|
+
* ```
|
|
32
|
+
*/
|
|
33
|
+
create(body: VPCCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
34
|
+
return this._client.post('/v1/networking/vpcs', { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Update a VPC
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const operation = await client.networking.vpcs.update(
|
|
43
|
+
* 'vpc_id',
|
|
44
|
+
* );
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
update(
|
|
48
|
+
vpcID: string,
|
|
49
|
+
body: VPCUpdateParams,
|
|
50
|
+
options?: RequestOptions,
|
|
51
|
+
): APIPromise<OperationsAPI.Operation> {
|
|
52
|
+
return this._client.patch(path`/v1/networking/vpcs/${vpcID}`, { body, ...options });
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* List all VPCs
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* const vpcList = await client.networking.vpcs.list();
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
list(options?: RequestOptions): APIPromise<VPCList> {
|
|
64
|
+
return this._client.get('/v1/networking/vpcs', options);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Delete a VPC
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const operation = await client.networking.vpcs.delete(
|
|
73
|
+
* 'vpc_id',
|
|
74
|
+
* );
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
delete(vpcID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
78
|
+
return this._client.delete(path`/v1/networking/vpcs/${vpcID}`, options);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Get details about a VPC
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const vpc = await client.networking.vpcs.get('vpc_id');
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
get(vpcID: string, options?: RequestOptions): APIPromise<VPC> {
|
|
90
|
+
return this._client.get(path`/v1/networking/vpcs/${vpcID}`, options);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Subnet of the VPC.
|
|
96
|
+
*/
|
|
97
|
+
export interface Subnet {
|
|
98
|
+
/**
|
|
99
|
+
* Unique identifier for the subnet.
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* CIDR block for the subnet.
|
|
105
|
+
*/
|
|
106
|
+
cidr: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* When the subnet was created.
|
|
110
|
+
*/
|
|
111
|
+
created_at: string;
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Name of the subnet.
|
|
115
|
+
*/
|
|
116
|
+
name: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* When the subnet was updated.
|
|
120
|
+
*/
|
|
121
|
+
updated_at: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* VPC details.
|
|
126
|
+
*/
|
|
127
|
+
export interface VPC {
|
|
128
|
+
/**
|
|
129
|
+
* Unique identifier for the VPC.
|
|
130
|
+
*/
|
|
131
|
+
id: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* When the VPC was created.
|
|
135
|
+
*/
|
|
136
|
+
created_at: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* IDs of the firewall rules associated with the VPC.
|
|
140
|
+
*/
|
|
141
|
+
firewall_rule_ids: Array<string>;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Name of the VPC.
|
|
145
|
+
*/
|
|
146
|
+
name: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Region the resource is in.
|
|
150
|
+
*/
|
|
151
|
+
region: Shared.RegionName;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Status of the resource.
|
|
155
|
+
*/
|
|
156
|
+
status: Shared.ResourceStatus;
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Subnet of the VPC.
|
|
160
|
+
*/
|
|
161
|
+
subnet: Subnet;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* When the VPC was updated.
|
|
165
|
+
*/
|
|
166
|
+
updated_at: string;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export interface VPCList {
|
|
170
|
+
items: Array<VPC>;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface VPCCreateParams {
|
|
174
|
+
/**
|
|
175
|
+
* Name of the VPC.
|
|
176
|
+
*/
|
|
177
|
+
name: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Region the resource is in.
|
|
181
|
+
*/
|
|
182
|
+
region: Shared.RegionName;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Name of the subnet to create.
|
|
186
|
+
*/
|
|
187
|
+
subnet_name: string;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface VPCUpdateParams {
|
|
191
|
+
/**
|
|
192
|
+
* Name of the VPC.
|
|
193
|
+
*/
|
|
194
|
+
name?: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Name of the subnet to create.
|
|
198
|
+
*/
|
|
199
|
+
subnet_name?: string;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
VPCs.Availability = Availability;
|
|
203
|
+
|
|
204
|
+
export declare namespace VPCs {
|
|
205
|
+
export {
|
|
206
|
+
type Subnet as Subnet,
|
|
207
|
+
type VPC as VPC,
|
|
208
|
+
type VPCList as VPCList,
|
|
209
|
+
type VPCCreateParams as VPCCreateParams,
|
|
210
|
+
type VPCUpdateParams as VPCUpdateParams,
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
export {
|
|
214
|
+
Availability as Availability,
|
|
215
|
+
type AvailabilityCreateResponse as AvailabilityCreateResponse,
|
|
216
|
+
type AvailabilityUpdateResponse as AvailabilityUpdateResponse,
|
|
217
|
+
type AvailabilityCreateParams as AvailabilityCreateParams,
|
|
218
|
+
type AvailabilityUpdateParams as AvailabilityUpdateParams,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
@@ -1,200 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import * as OperationsAPI from '../operations';
|
|
5
|
-
import * as Shared from '../shared';
|
|
6
|
-
import { APIPromise } from '../../core/api-promise';
|
|
7
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
-
import { path } from '../../internal/utils/path';
|
|
9
|
-
|
|
10
|
-
export class VPCs extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Create a VPC
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const operation = await client.networking.vpcs.create({
|
|
17
|
-
* name: 'my-vpc',
|
|
18
|
-
* region: 'us-wdc-1',
|
|
19
|
-
* subnet_name: 'my-subnet',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
create(body: VPCCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
24
|
-
return this._client.post('/v1/networking/vpcs', { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Update a VPC
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const operation = await client.networking.vpcs.update(
|
|
33
|
-
* 'vpc_id',
|
|
34
|
-
* );
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
update(
|
|
38
|
-
vpcID: string,
|
|
39
|
-
body: VPCUpdateParams,
|
|
40
|
-
options?: RequestOptions,
|
|
41
|
-
): APIPromise<OperationsAPI.Operation> {
|
|
42
|
-
return this._client.patch(path`/v1/networking/vpcs/${vpcID}`, { body, ...options });
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* List all VPCs
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const vpcList = await client.networking.vpcs.list();
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
list(options?: RequestOptions): APIPromise<VPCList> {
|
|
54
|
-
return this._client.get('/v1/networking/vpcs', options);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Delete a VPC
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* const operation = await client.networking.vpcs.delete(
|
|
63
|
-
* 'vpc_id',
|
|
64
|
-
* );
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
delete(vpcID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
68
|
-
return this._client.delete(path`/v1/networking/vpcs/${vpcID}`, options);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Get details about a VPC
|
|
73
|
-
*
|
|
74
|
-
* @example
|
|
75
|
-
* ```ts
|
|
76
|
-
* const vpc = await client.networking.vpcs.get('vpc_id');
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
get(vpcID: string, options?: RequestOptions): APIPromise<VPC> {
|
|
80
|
-
return this._client.get(path`/v1/networking/vpcs/${vpcID}`, options);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Subnet of the VPC.
|
|
86
|
-
*/
|
|
87
|
-
export interface Subnet {
|
|
88
|
-
/**
|
|
89
|
-
* Unique identifier for the subnet.
|
|
90
|
-
*/
|
|
91
|
-
id: string;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* CIDR block for the subnet.
|
|
95
|
-
*/
|
|
96
|
-
cidr: string;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* When the subnet was created.
|
|
100
|
-
*/
|
|
101
|
-
created_at: string;
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
* Name of the subnet.
|
|
105
|
-
*/
|
|
106
|
-
name: string;
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* When the subnet was updated.
|
|
110
|
-
*/
|
|
111
|
-
updated_at: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/**
|
|
115
|
-
* VPC details.
|
|
116
|
-
*/
|
|
117
|
-
export interface VPC {
|
|
118
|
-
/**
|
|
119
|
-
* Unique identifier for the VPC.
|
|
120
|
-
*/
|
|
121
|
-
id: string;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* When the VPC was created.
|
|
125
|
-
*/
|
|
126
|
-
created_at: string;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* IDs of the firewall rules associated with the VPC.
|
|
130
|
-
*/
|
|
131
|
-
firewall_rule_ids: Array<string>;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Name of the VPC.
|
|
135
|
-
*/
|
|
136
|
-
name: string;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Region the resource is in.
|
|
140
|
-
*/
|
|
141
|
-
region: Shared.RegionName;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* Status of the resource.
|
|
145
|
-
*/
|
|
146
|
-
status: Shared.ResourceStatus;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Subnet of the VPC.
|
|
150
|
-
*/
|
|
151
|
-
subnet: Subnet;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* When the VPC was updated.
|
|
155
|
-
*/
|
|
156
|
-
updated_at: string;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface VPCList {
|
|
160
|
-
items: Array<VPC>;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export interface VPCCreateParams {
|
|
164
|
-
/**
|
|
165
|
-
* Name of the VPC.
|
|
166
|
-
*/
|
|
167
|
-
name: string;
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Region the resource is in.
|
|
171
|
-
*/
|
|
172
|
-
region: Shared.RegionName;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* Name of the subnet to create.
|
|
176
|
-
*/
|
|
177
|
-
subnet_name: string;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export interface VPCUpdateParams {
|
|
181
|
-
/**
|
|
182
|
-
* Name of the VPC.
|
|
183
|
-
*/
|
|
184
|
-
name?: string;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Name of the subnet to create.
|
|
188
|
-
*/
|
|
189
|
-
subnet_name?: string;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
export declare namespace VPCs {
|
|
193
|
-
export {
|
|
194
|
-
type Subnet as Subnet,
|
|
195
|
-
type VPC as VPC,
|
|
196
|
-
type VPCList as VPCList,
|
|
197
|
-
type VPCCreateParams as VPCCreateParams,
|
|
198
|
-
type VPCUpdateParams as VPCUpdateParams,
|
|
199
|
-
};
|
|
200
|
-
}
|
|
3
|
+
export * from './vpcs/index';
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.
|
|
1
|
+
export const VERSION = '1.3.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.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|