@nirvana-labs/nirvana 1.91.3 → 1.91.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/bin/migration-config.json +37 -0
- package/client.d.mts +2 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -0
- package/client.d.ts.map +1 -1
- 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/cost.d.mts +149 -0
- package/resources/compute/vms/cost.d.mts.map +1 -0
- package/resources/compute/vms/cost.d.ts +149 -0
- package/resources/compute/vms/cost.d.ts.map +1 -0
- package/resources/compute/vms/cost.js +47 -0
- package/resources/compute/vms/cost.js.map +1 -0
- package/resources/compute/vms/cost.mjs +43 -0
- package/resources/compute/vms/cost.mjs.map +1 -0
- package/resources/compute/vms/index.d.mts +1 -0
- package/resources/compute/vms/index.d.mts.map +1 -1
- package/resources/compute/vms/index.d.ts +1 -0
- package/resources/compute/vms/index.d.ts.map +1 -1
- package/resources/compute/vms/index.js +3 -1
- package/resources/compute/vms/index.js.map +1 -1
- package/resources/compute/vms/index.mjs +1 -0
- package/resources/compute/vms/index.mjs.map +1 -1
- package/resources/compute/vms/vms.d.mts +5 -1
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +5 -1
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +5 -1
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +5 -1
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/volumes/cost.d.mts +81 -0
- package/resources/compute/volumes/cost.d.mts.map +1 -0
- package/resources/compute/volumes/cost.d.ts +81 -0
- package/resources/compute/volumes/cost.d.ts.map +1 -0
- package/resources/compute/volumes/cost.js +40 -0
- package/resources/compute/volumes/cost.js.map +1 -0
- package/resources/compute/volumes/cost.mjs +36 -0
- package/resources/compute/volumes/cost.mjs.map +1 -0
- package/resources/compute/volumes/index.d.mts +1 -0
- package/resources/compute/volumes/index.d.mts.map +1 -1
- package/resources/compute/volumes/index.d.ts +1 -0
- package/resources/compute/volumes/index.d.ts.map +1 -1
- package/resources/compute/volumes/index.js +3 -1
- package/resources/compute/volumes/index.js.map +1 -1
- package/resources/compute/volumes/index.mjs +1 -0
- package/resources/compute/volumes/index.mjs.map +1 -1
- package/resources/compute/volumes/volumes.d.mts +4 -0
- package/resources/compute/volumes/volumes.d.mts.map +1 -1
- package/resources/compute/volumes/volumes.d.ts +4 -0
- package/resources/compute/volumes/volumes.d.ts.map +1 -1
- package/resources/compute/volumes/volumes.js +4 -0
- package/resources/compute/volumes/volumes.js.map +1 -1
- package/resources/compute/volumes/volumes.mjs +4 -0
- package/resources/compute/volumes/volumes.mjs.map +1 -1
- package/resources/networking/connect/connect.d.mts +2 -2
- package/resources/networking/connect/connect.d.mts.map +1 -1
- package/resources/networking/connect/connect.d.ts +2 -2
- package/resources/networking/connect/connect.d.ts.map +1 -1
- package/resources/networking/connect/connect.js +2 -2
- package/resources/networking/connect/connect.js.map +1 -1
- package/resources/networking/connect/connect.mjs +2 -2
- package/resources/networking/connect/connect.mjs.map +1 -1
- package/resources/networking/connect/connections/connections.d.mts +136 -0
- package/resources/networking/connect/connections/connections.d.mts.map +1 -0
- package/resources/networking/connect/connections/connections.d.ts +136 -0
- package/resources/networking/connect/connections/connections.d.ts.map +1 -0
- package/resources/networking/connect/connections/connections.js +96 -0
- package/resources/networking/connect/connections/connections.js.map +1 -0
- package/resources/networking/connect/connections/connections.mjs +91 -0
- package/resources/networking/connect/connections/connections.mjs.map +1 -0
- package/resources/networking/connect/connections/cost.d.mts +85 -0
- package/resources/networking/connect/connections/cost.d.mts.map +1 -0
- package/resources/networking/connect/connections/cost.d.ts +85 -0
- package/resources/networking/connect/connections/cost.d.ts.map +1 -0
- package/resources/networking/connect/connections/cost.js +47 -0
- package/resources/networking/connect/connections/cost.js.map +1 -0
- package/resources/networking/connect/connections/cost.mjs +43 -0
- package/resources/networking/connect/connections/cost.mjs.map +1 -0
- package/resources/networking/connect/connections/index.d.mts +3 -0
- package/resources/networking/connect/connections/index.d.mts.map +1 -0
- package/resources/networking/connect/connections/index.d.ts +3 -0
- package/resources/networking/connect/connections/index.d.ts.map +1 -0
- package/resources/networking/connect/connections/index.js +9 -0
- package/resources/networking/connect/connections/index.js.map +1 -0
- package/resources/networking/connect/connections/index.mjs +4 -0
- package/resources/networking/connect/connections/index.mjs.map +1 -0
- package/resources/networking/connect/connections.d.mts +1 -131
- package/resources/networking/connect/connections.d.mts.map +1 -1
- package/resources/networking/connect/connections.d.ts +1 -131
- package/resources/networking/connect/connections.d.ts.map +1 -1
- package/resources/networking/connect/connections.js +2 -84
- package/resources/networking/connect/connections.js.map +1 -1
- package/resources/networking/connect/connections.mjs +1 -82
- package/resources/networking/connect/connections.mjs.map +1 -1
- package/resources/networking/connect/index.d.mts +1 -1
- package/resources/networking/connect/index.d.mts.map +1 -1
- package/resources/networking/connect/index.d.ts +1 -1
- package/resources/networking/connect/index.d.ts.map +1 -1
- package/resources/networking/connect/index.js +2 -2
- package/resources/networking/connect/index.js.map +1 -1
- package/resources/networking/connect/index.mjs +1 -1
- package/resources/networking/connect/index.mjs.map +1 -1
- package/resources/networking/vpcs/cost.d.mts +71 -0
- package/resources/networking/vpcs/cost.d.mts.map +1 -0
- package/resources/networking/vpcs/cost.d.ts +71 -0
- package/resources/networking/vpcs/cost.d.ts.map +1 -0
- package/resources/networking/vpcs/cost.js +39 -0
- package/resources/networking/vpcs/cost.js.map +1 -0
- package/resources/networking/vpcs/cost.mjs +35 -0
- package/resources/networking/vpcs/cost.mjs.map +1 -0
- package/resources/networking/vpcs/index.d.mts +1 -0
- package/resources/networking/vpcs/index.d.mts.map +1 -1
- package/resources/networking/vpcs/index.d.ts +1 -0
- package/resources/networking/vpcs/index.d.ts.map +1 -1
- package/resources/networking/vpcs/index.js +3 -1
- package/resources/networking/vpcs/index.js.map +1 -1
- package/resources/networking/vpcs/index.mjs +1 -0
- package/resources/networking/vpcs/index.mjs.map +1 -1
- package/resources/networking/vpcs/vpcs.d.mts +4 -0
- package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.ts +4 -0
- package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.js +4 -0
- package/resources/networking/vpcs/vpcs.js.map +1 -1
- package/resources/networking/vpcs/vpcs.mjs +4 -0
- package/resources/networking/vpcs/vpcs.mjs.map +1 -1
- package/resources/nks/clusters/clusters.d.mts +4 -0
- package/resources/nks/clusters/clusters.d.mts.map +1 -1
- package/resources/nks/clusters/clusters.d.ts +4 -0
- package/resources/nks/clusters/clusters.d.ts.map +1 -1
- package/resources/nks/clusters/clusters.js +4 -0
- package/resources/nks/clusters/clusters.js.map +1 -1
- package/resources/nks/clusters/clusters.mjs +4 -0
- package/resources/nks/clusters/clusters.mjs.map +1 -1
- package/resources/nks/clusters/cost.d.mts +81 -0
- package/resources/nks/clusters/cost.d.mts.map +1 -0
- package/resources/nks/clusters/cost.d.ts +81 -0
- package/resources/nks/clusters/cost.d.ts.map +1 -0
- package/resources/nks/clusters/cost.js +41 -0
- package/resources/nks/clusters/cost.js.map +1 -0
- package/resources/nks/clusters/cost.mjs +37 -0
- package/resources/nks/clusters/cost.mjs.map +1 -0
- package/resources/nks/clusters/index.d.mts +1 -0
- package/resources/nks/clusters/index.d.mts.map +1 -1
- package/resources/nks/clusters/index.d.ts +1 -0
- 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/pools/cost.d.mts +97 -0
- package/resources/nks/clusters/pools/cost.d.mts.map +1 -0
- package/resources/nks/clusters/pools/cost.d.ts +97 -0
- package/resources/nks/clusters/pools/cost.d.ts.map +1 -0
- package/resources/nks/clusters/pools/cost.js +51 -0
- package/resources/nks/clusters/pools/cost.js.map +1 -0
- package/resources/nks/clusters/pools/cost.mjs +47 -0
- package/resources/nks/clusters/pools/cost.mjs.map +1 -0
- package/resources/nks/clusters/pools/index.d.mts +1 -0
- package/resources/nks/clusters/pools/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/index.d.ts +1 -0
- package/resources/nks/clusters/pools/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/index.js +3 -1
- package/resources/nks/clusters/pools/index.js.map +1 -1
- package/resources/nks/clusters/pools/index.mjs +1 -0
- package/resources/nks/clusters/pools/index.mjs.map +1 -1
- package/resources/nks/clusters/pools/pools.d.mts +4 -0
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -1
- package/resources/nks/clusters/pools/pools.d.ts +4 -0
- package/resources/nks/clusters/pools/pools.d.ts.map +1 -1
- package/resources/nks/clusters/pools/pools.js +4 -0
- package/resources/nks/clusters/pools/pools.js.map +1 -1
- package/resources/nks/clusters/pools/pools.mjs +4 -0
- package/resources/nks/clusters/pools/pools.mjs.map +1 -1
- package/resources/shared.d.mts +226 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +226 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/compute/api.md +14 -0
- package/src/resources/compute/vms/availability.ts +1 -1
- package/src/resources/compute/vms/cost.ts +180 -0
- package/src/resources/compute/vms/index.ts +1 -0
- package/src/resources/compute/vms/vms.ts +11 -1
- package/src/resources/compute/volumes/cost.ts +104 -0
- package/src/resources/compute/volumes/index.ts +1 -0
- package/src/resources/compute/volumes/volumes.ts +10 -0
- package/src/resources/networking/api.md +19 -5
- package/src/resources/networking/connect/connect.ts +4 -4
- package/src/resources/networking/connect/connections/connections.ts +189 -0
- package/src/resources/networking/connect/connections/cost.ts +111 -0
- package/src/resources/networking/connect/connections/index.ts +9 -0
- package/src/resources/networking/connect/connections.ts +1 -175
- package/src/resources/networking/connect/index.ts +1 -1
- package/src/resources/networking/vpcs/cost.ts +92 -0
- package/src/resources/networking/vpcs/index.ts +1 -0
- package/src/resources/networking/vpcs/vpcs.ts +10 -0
- package/src/resources/nks/api.md +14 -0
- package/src/resources/nks/clusters/clusters.ts +10 -0
- package/src/resources/nks/clusters/cost.ts +104 -0
- package/src/resources/nks/clusters/index.ts +1 -0
- package/src/resources/nks/clusters/pools/cost.ts +124 -0
- package/src/resources/nks/clusters/pools/index.ts +1 -0
- package/src/resources/nks/clusters/pools/pools.ts +10 -0
- package/src/resources/shared.ts +267 -0
- 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,132 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as Shared from "../../shared.js";
|
|
3
|
-
import * as OperationsAPI from "../../operations/operations.js";
|
|
4
|
-
import * as ConnectAPI from "./connect.js";
|
|
5
|
-
import { ConnectConnectionsCursor } from "./connect.js";
|
|
6
|
-
import { APIPromise } from "../../../core/api-promise.js";
|
|
7
|
-
import { type CursorParams, PagePromise } from "../../../core/pagination.js";
|
|
8
|
-
import { RequestOptions } from "../../../internal/request-options.js";
|
|
9
|
-
export declare class Connections extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create a Connect Connection
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* const operation =
|
|
16
|
-
* await client.networking.connect.connections.create({
|
|
17
|
-
* bandwidth_mbps: 50,
|
|
18
|
-
* cidrs: ['10.0.0.0/16'],
|
|
19
|
-
* name: 'my-connect-connection',
|
|
20
|
-
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
21
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
22
|
-
* region: 'us-sva-2',
|
|
23
|
-
* });
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
27
|
-
/**
|
|
28
|
-
* Get Connect Connection details
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const connectConnection =
|
|
33
|
-
* await client.networking.connect.connections.get(
|
|
34
|
-
* 'connection_id',
|
|
35
|
-
* );
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
get(connectionID: string, options?: RequestOptions): APIPromise<ConnectAPI.ConnectConnection>;
|
|
39
|
-
/**
|
|
40
|
-
* Update Connect Connection details
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* const operation =
|
|
45
|
-
* await client.networking.connect.connections.update(
|
|
46
|
-
* 'connection_id',
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
update(connectionID: string, body: ConnectionUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
51
|
-
/**
|
|
52
|
-
* Delete Connect Connection
|
|
53
|
-
*
|
|
54
|
-
* @example
|
|
55
|
-
* ```ts
|
|
56
|
-
* const operation =
|
|
57
|
-
* await client.networking.connect.connections.delete(
|
|
58
|
-
* 'connection_id',
|
|
59
|
-
* );
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
delete(connectionID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
63
|
-
/**
|
|
64
|
-
* List all Connect Connections
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```ts
|
|
68
|
-
* // Automatically fetches more pages as needed.
|
|
69
|
-
* for await (const connectConnection of client.networking.connect.connections.list(
|
|
70
|
-
* { project_id: 'project_id' },
|
|
71
|
-
* )) {
|
|
72
|
-
* // ...
|
|
73
|
-
* }
|
|
74
|
-
* ```
|
|
75
|
-
*/
|
|
76
|
-
list(query: ConnectionListParams, options?: RequestOptions): PagePromise<ConnectConnectionsCursor, ConnectAPI.ConnectConnection>;
|
|
77
|
-
}
|
|
78
|
-
export interface ConnectionCreateParams {
|
|
79
|
-
/**
|
|
80
|
-
* Connect Connection speed in Mbps
|
|
81
|
-
*/
|
|
82
|
-
bandwidth_mbps: ConnectAPI.ConnectBandwidthMbps;
|
|
83
|
-
/**
|
|
84
|
-
* CIDRs for the Connect Connection. Must be in network-aligned/canonical form.
|
|
85
|
-
*/
|
|
86
|
-
cidrs: Array<string>;
|
|
87
|
-
/**
|
|
88
|
-
* Name of the Connect Connection
|
|
89
|
-
*/
|
|
90
|
-
name: string;
|
|
91
|
-
/**
|
|
92
|
-
* Project ID the Connect Connection belongs to
|
|
93
|
-
*/
|
|
94
|
-
project_id: string;
|
|
95
|
-
/**
|
|
96
|
-
* Provider CIDRs. Must be in network-aligned/canonical form.
|
|
97
|
-
*/
|
|
98
|
-
provider_cidrs: Array<string>;
|
|
99
|
-
/**
|
|
100
|
-
* Region the resource is in.
|
|
101
|
-
*/
|
|
102
|
-
region: Shared.RegionName;
|
|
103
|
-
/**
|
|
104
|
-
* AWS provider configuration
|
|
105
|
-
*/
|
|
106
|
-
aws?: ConnectAPI.ConnectConnectionAWSConfigRequest;
|
|
107
|
-
/**
|
|
108
|
-
* Tags to attach to the Connect Connection
|
|
109
|
-
*/
|
|
110
|
-
tags?: Array<string>;
|
|
111
|
-
}
|
|
112
|
-
export interface ConnectionUpdateParams {
|
|
113
|
-
/**
|
|
114
|
-
* Name of the Connect Connection.
|
|
115
|
-
*/
|
|
116
|
-
name?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Tags to attach to the Connect Connection
|
|
119
|
-
*/
|
|
120
|
-
tags?: Array<string>;
|
|
121
|
-
}
|
|
122
|
-
export interface ConnectionListParams extends CursorParams {
|
|
123
|
-
/**
|
|
124
|
-
* Project ID of resources to request
|
|
125
|
-
*/
|
|
126
|
-
project_id: string;
|
|
127
|
-
}
|
|
128
|
-
export declare namespace Connections {
|
|
129
|
-
export { type ConnectionCreateParams as ConnectionCreateParams, type ConnectionUpdateParams as ConnectionUpdateParams, type ConnectionListParams as ConnectionListParams, };
|
|
130
|
-
}
|
|
131
|
-
export { type ConnectConnectionsCursor };
|
|
1
|
+
export * from "./connections/index.js";
|
|
132
2
|
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":"AAEA,uCAAoC"}
|
|
@@ -1,88 +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 pagination_1 = require("../../../core/pagination.js");
|
|
7
|
-
const path_1 = require("../../../internal/utils/path.js");
|
|
8
|
-
class Connections extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Create a Connect Connection
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts
|
|
14
|
-
* const operation =
|
|
15
|
-
* await client.networking.connect.connections.create({
|
|
16
|
-
* bandwidth_mbps: 50,
|
|
17
|
-
* cidrs: ['10.0.0.0/16'],
|
|
18
|
-
* name: 'my-connect-connection',
|
|
19
|
-
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
20
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
21
|
-
* region: 'us-sva-2',
|
|
22
|
-
* });
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
create(body, options) {
|
|
26
|
-
return this._client.post('/v1/networking/connect/connections', { body, ...options });
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Get Connect Connection details
|
|
30
|
-
*
|
|
31
|
-
* @example
|
|
32
|
-
* ```ts
|
|
33
|
-
* const connectConnection =
|
|
34
|
-
* await client.networking.connect.connections.get(
|
|
35
|
-
* 'connection_id',
|
|
36
|
-
* );
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
get(connectionID, options) {
|
|
40
|
-
return this._client.get((0, path_1.path) `/v1/networking/connect/connections/${connectionID}`, options);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Update Connect Connection details
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* ```ts
|
|
47
|
-
* const operation =
|
|
48
|
-
* await client.networking.connect.connections.update(
|
|
49
|
-
* 'connection_id',
|
|
50
|
-
* );
|
|
51
|
-
* ```
|
|
52
|
-
*/
|
|
53
|
-
update(connectionID, body, options) {
|
|
54
|
-
return this._client.patch((0, path_1.path) `/v1/networking/connect/connections/${connectionID}`, { body, ...options });
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Delete Connect Connection
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* ```ts
|
|
61
|
-
* const operation =
|
|
62
|
-
* await client.networking.connect.connections.delete(
|
|
63
|
-
* 'connection_id',
|
|
64
|
-
* );
|
|
65
|
-
* ```
|
|
66
|
-
*/
|
|
67
|
-
delete(connectionID, options) {
|
|
68
|
-
return this._client.delete((0, path_1.path) `/v1/networking/connect/connections/${connectionID}`, options);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* List all Connect Connections
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```ts
|
|
75
|
-
* // Automatically fetches more pages as needed.
|
|
76
|
-
* for await (const connectConnection of client.networking.connect.connections.list(
|
|
77
|
-
* { project_id: 'project_id' },
|
|
78
|
-
* )) {
|
|
79
|
-
* // ...
|
|
80
|
-
* }
|
|
81
|
-
* ```
|
|
82
|
-
*/
|
|
83
|
-
list(query, options) {
|
|
84
|
-
return this._client.getAPIList('/v1/networking/connect/connections', (pagination_1.Cursor), { query, ...options });
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
exports.Connections = Connections;
|
|
4
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./connections/index.js"), exports);
|
|
88
6
|
//# sourceMappingURL=connections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,iEAAoC"}
|
|
@@ -1,84 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { Cursor } from "../../../core/pagination.mjs";
|
|
4
|
-
import { path } from "../../../internal/utils/path.mjs";
|
|
5
|
-
export class Connections extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* Create a Connect Connection
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```ts
|
|
11
|
-
* const operation =
|
|
12
|
-
* await client.networking.connect.connections.create({
|
|
13
|
-
* bandwidth_mbps: 50,
|
|
14
|
-
* cidrs: ['10.0.0.0/16'],
|
|
15
|
-
* name: 'my-connect-connection',
|
|
16
|
-
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
17
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
18
|
-
* region: 'us-sva-2',
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
create(body, options) {
|
|
23
|
-
return this._client.post('/v1/networking/connect/connections', { body, ...options });
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Get Connect Connection details
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const connectConnection =
|
|
31
|
-
* await client.networking.connect.connections.get(
|
|
32
|
-
* 'connection_id',
|
|
33
|
-
* );
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
get(connectionID, options) {
|
|
37
|
-
return this._client.get(path `/v1/networking/connect/connections/${connectionID}`, options);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Update Connect Connection details
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* const operation =
|
|
45
|
-
* await client.networking.connect.connections.update(
|
|
46
|
-
* 'connection_id',
|
|
47
|
-
* );
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
update(connectionID, body, options) {
|
|
51
|
-
return this._client.patch(path `/v1/networking/connect/connections/${connectionID}`, { body, ...options });
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Delete Connect Connection
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```ts
|
|
58
|
-
* const operation =
|
|
59
|
-
* await client.networking.connect.connections.delete(
|
|
60
|
-
* 'connection_id',
|
|
61
|
-
* );
|
|
62
|
-
* ```
|
|
63
|
-
*/
|
|
64
|
-
delete(connectionID, options) {
|
|
65
|
-
return this._client.delete(path `/v1/networking/connect/connections/${connectionID}`, options);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* List all Connect Connections
|
|
69
|
-
*
|
|
70
|
-
* @example
|
|
71
|
-
* ```ts
|
|
72
|
-
* // Automatically fetches more pages as needed.
|
|
73
|
-
* for await (const connectConnection of client.networking.connect.connections.list(
|
|
74
|
-
* { project_id: 'project_id' },
|
|
75
|
-
* )) {
|
|
76
|
-
* // ...
|
|
77
|
-
* }
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
list(query, options) {
|
|
81
|
-
return this._client.getAPIList('/v1/networking/connect/connections', (Cursor), { query, ...options });
|
|
82
|
-
}
|
|
83
|
-
}
|
|
2
|
+
export * from "./connections/index.mjs";
|
|
84
3
|
//# sourceMappingURL=connections.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,
|
|
1
|
+
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../../src/resources/networking/connect/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,wCAAoC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Connect, type ConnectBandwidthMbps, type ConnectConnection, type ConnectConnectionAWSConfig, type ConnectConnectionAWSConfigRequest, type ConnectConnectionList, type ConnectRoute, type ConnectRouteList, type ConnectConnectionsCursor, type ConnectRoutesCursor, } from "./connect.mjs";
|
|
2
|
-
export { Connections, type ConnectionCreateParams, type ConnectionUpdateParams, type ConnectionListParams, } from "./connections.mjs";
|
|
2
|
+
export { Connections, type ConnectionCreateParams, type ConnectionUpdateParams, type ConnectionListParams, } from "./connections/index.mjs";
|
|
3
3
|
export { Routes, type RouteListParams } from "./routes.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/networking/connect/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,iCAAiC,EACtC,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,GACzB,sBAAkB;AACnB,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/networking/connect/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,iCAAiC,EACtC,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,GACzB,sBAAkB;AACnB,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,gCAA4B;AAC7B,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,qBAAiB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Connect, type ConnectBandwidthMbps, type ConnectConnection, type ConnectConnectionAWSConfig, type ConnectConnectionAWSConfigRequest, type ConnectConnectionList, type ConnectRoute, type ConnectRouteList, type ConnectConnectionsCursor, type ConnectRoutesCursor, } from "./connect.js";
|
|
2
|
-
export { Connections, type ConnectionCreateParams, type ConnectionUpdateParams, type ConnectionListParams, } from "./connections.js";
|
|
2
|
+
export { Connections, type ConnectionCreateParams, type ConnectionUpdateParams, type ConnectionListParams, } from "./connections/index.js";
|
|
3
3
|
export { Routes, type RouteListParams } from "./routes.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/connect/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,iCAAiC,EACtC,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,GACzB,qBAAkB;AACnB,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/connect/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,iCAAiC,EACtC,KAAK,qBAAqB,EAC1B,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,GACzB,qBAAkB;AACnB,OAAO,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,+BAA4B;AAC7B,OAAO,EAAE,MAAM,EAAE,KAAK,eAAe,EAAE,oBAAiB"}
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Routes = exports.Connections = exports.Connect = void 0;
|
|
5
5
|
var connect_1 = require("./connect.js");
|
|
6
6
|
Object.defineProperty(exports, "Connect", { enumerable: true, get: function () { return connect_1.Connect; } });
|
|
7
|
-
var
|
|
8
|
-
Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return
|
|
7
|
+
var index_1 = require("./connections/index.js");
|
|
8
|
+
Object.defineProperty(exports, "Connections", { enumerable: true, get: function () { return index_1.Connections; } });
|
|
9
9
|
var routes_1 = require("./routes.js");
|
|
10
10
|
Object.defineProperty(exports, "Routes", { enumerable: true, get: function () { return routes_1.Routes; } });
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/networking/connect/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAWmB;AAVjB,kGAAA,OAAO,OAAA;AAWT,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/networking/connect/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAWmB;AAVjB,kGAAA,OAAO,OAAA;AAWT,gDAK6B;AAJ3B,oGAAA,WAAW,OAAA;AAKb,sCAAwD;AAA/C,gGAAA,MAAM,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
export { Connect, } from "./connect.mjs";
|
|
3
|
-
export { Connections, } from "./connections.mjs";
|
|
3
|
+
export { Connections, } from "./connections/index.mjs";
|
|
4
4
|
export { Routes } from "./routes.mjs";
|
|
5
5
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/networking/connect/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GAUR,sBAAkB;AACnB,OAAO,EACL,WAAW,GAIZ,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/networking/connect/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GAUR,sBAAkB;AACnB,OAAO,EACL,WAAW,GAIZ,gCAA4B;AAC7B,OAAO,EAAE,MAAM,EAAwB,qBAAiB"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 Cost extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Return a priced cost quote for the proposed VPC.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const costQuote = await client.networking.vpcs.cost.create({
|
|
12
|
+
* name: 'my-vpc',
|
|
13
|
+
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
14
|
+
* region: 'us-sva-2',
|
|
15
|
+
* subnet_name: 'my-subnet',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: CostCreateParams, options?: RequestOptions): APIPromise<Shared.CostQuote>;
|
|
20
|
+
/**
|
|
21
|
+
* Return a priced cost quote for the proposed VPC update plus a diff against the
|
|
22
|
+
* current state.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const costQuoteUpdate =
|
|
27
|
+
* await client.networking.vpcs.cost.update('vpc_id');
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
update(vpcID: string, body: CostUpdateParams, options?: RequestOptions): APIPromise<Shared.CostQuoteUpdate>;
|
|
31
|
+
}
|
|
32
|
+
export interface CostCreateParams {
|
|
33
|
+
/**
|
|
34
|
+
* Name of the VPC.
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Project ID the VPC belongs to.
|
|
39
|
+
*/
|
|
40
|
+
project_id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Region the resource is in.
|
|
43
|
+
*/
|
|
44
|
+
region: Shared.RegionName;
|
|
45
|
+
/**
|
|
46
|
+
* Name of the subnet to create.
|
|
47
|
+
*/
|
|
48
|
+
subnet_name: string;
|
|
49
|
+
/**
|
|
50
|
+
* Tags to attach to the VPC.
|
|
51
|
+
*/
|
|
52
|
+
tags?: Array<string>;
|
|
53
|
+
}
|
|
54
|
+
export interface CostUpdateParams {
|
|
55
|
+
/**
|
|
56
|
+
* Name of the VPC.
|
|
57
|
+
*/
|
|
58
|
+
name?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the subnet to create.
|
|
61
|
+
*/
|
|
62
|
+
subnet_name?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Tags to attach to the VPC.
|
|
65
|
+
*/
|
|
66
|
+
tags?: Array<string>;
|
|
67
|
+
}
|
|
68
|
+
export declare namespace Cost {
|
|
69
|
+
export { type CostCreateParams as CostCreateParams, type CostUpdateParams as CostUpdateParams };
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=cost.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost.d.mts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/cost.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,MAAM,yBAAqB;AACvC,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAGnE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC;IAItF;;;;;;;;;OASG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC;CAGtC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,71 @@
|
|
|
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 Cost extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Return a priced cost quote for the proposed VPC.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const costQuote = await client.networking.vpcs.cost.create({
|
|
12
|
+
* name: 'my-vpc',
|
|
13
|
+
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
14
|
+
* region: 'us-sva-2',
|
|
15
|
+
* subnet_name: 'my-subnet',
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
create(body: CostCreateParams, options?: RequestOptions): APIPromise<Shared.CostQuote>;
|
|
20
|
+
/**
|
|
21
|
+
* Return a priced cost quote for the proposed VPC update plus a diff against the
|
|
22
|
+
* current state.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```ts
|
|
26
|
+
* const costQuoteUpdate =
|
|
27
|
+
* await client.networking.vpcs.cost.update('vpc_id');
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
update(vpcID: string, body: CostUpdateParams, options?: RequestOptions): APIPromise<Shared.CostQuoteUpdate>;
|
|
31
|
+
}
|
|
32
|
+
export interface CostCreateParams {
|
|
33
|
+
/**
|
|
34
|
+
* Name of the VPC.
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Project ID the VPC belongs to.
|
|
39
|
+
*/
|
|
40
|
+
project_id: string;
|
|
41
|
+
/**
|
|
42
|
+
* Region the resource is in.
|
|
43
|
+
*/
|
|
44
|
+
region: Shared.RegionName;
|
|
45
|
+
/**
|
|
46
|
+
* Name of the subnet to create.
|
|
47
|
+
*/
|
|
48
|
+
subnet_name: string;
|
|
49
|
+
/**
|
|
50
|
+
* Tags to attach to the VPC.
|
|
51
|
+
*/
|
|
52
|
+
tags?: Array<string>;
|
|
53
|
+
}
|
|
54
|
+
export interface CostUpdateParams {
|
|
55
|
+
/**
|
|
56
|
+
* Name of the VPC.
|
|
57
|
+
*/
|
|
58
|
+
name?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Name of the subnet to create.
|
|
61
|
+
*/
|
|
62
|
+
subnet_name?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Tags to attach to the VPC.
|
|
65
|
+
*/
|
|
66
|
+
tags?: Array<string>;
|
|
67
|
+
}
|
|
68
|
+
export declare namespace Cost {
|
|
69
|
+
export { type CostCreateParams as CostCreateParams, type CostUpdateParams as CostUpdateParams };
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=cost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/cost.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;AACvC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC;IAItF;;;;;;;;;OASG;IACH,MAAM,CACJ,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,MAAM,CAAC,eAAe,CAAC;CAGtC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC,UAAU,CAAC;IAE1B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACjG"}
|
|
@@ -0,0 +1,39 @@
|
|
|
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.Cost = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
class Cost extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Return a priced cost quote for the proposed VPC.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const costQuote = await client.networking.vpcs.cost.create({
|
|
14
|
+
* name: 'my-vpc',
|
|
15
|
+
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
16
|
+
* region: 'us-sva-2',
|
|
17
|
+
* subnet_name: 'my-subnet',
|
|
18
|
+
* });
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
create(body, options) {
|
|
22
|
+
return this._client.post('/v1/networking/vpcs/cost', { body, ...options });
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Return a priced cost quote for the proposed VPC update plus a diff against the
|
|
26
|
+
* current state.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const costQuoteUpdate =
|
|
31
|
+
* await client.networking.vpcs.cost.update('vpc_id');
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
update(vpcID, body, options) {
|
|
35
|
+
return this._client.patch((0, path_1.path) `/v1/networking/vpcs/${vpcID}/cost`, { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.Cost = Cost;
|
|
39
|
+
//# sourceMappingURL=cost.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost.js","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/cost.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,KAAa,EACb,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uBAAuB,KAAK,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF;AAnCD,oBAmCC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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 Cost extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Return a priced cost quote for the proposed VPC.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const costQuote = await client.networking.vpcs.cost.create({
|
|
11
|
+
* name: 'my-vpc',
|
|
12
|
+
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
13
|
+
* region: 'us-sva-2',
|
|
14
|
+
* subnet_name: 'my-subnet',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
create(body, options) {
|
|
19
|
+
return this._client.post('/v1/networking/vpcs/cost', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Return a priced cost quote for the proposed VPC update plus a diff against the
|
|
23
|
+
* current state.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```ts
|
|
27
|
+
* const costQuoteUpdate =
|
|
28
|
+
* await client.networking.vpcs.cost.update('vpc_id');
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
update(vpcID, body, options) {
|
|
32
|
+
return this._client.patch(path `/v1/networking/vpcs/${vpcID}/cost`, { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=cost.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cost.mjs","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/cost.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAIrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CACJ,KAAa,EACb,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uBAAuB,KAAK,OAAO,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;CACF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { Availability, type AvailabilityCreateParams, type AvailabilityUpdateParams } from "./availability.mjs";
|
|
2
|
+
export { Cost, type CostCreateParams, type CostUpdateParams } from "./cost.mjs";
|
|
2
3
|
export { VPCs, type Subnet, type VPC, type VPCList, type VPCCreateParams, type VPCUpdateParams, type VPCListParams, type VPCsCursor, } from "./vpcs.mjs";
|
|
3
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAE,2BAAuB;AAC5G,OAAO,EACL,IAAI,EACJ,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,UAAU,GAChB,mBAAe"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAE,2BAAuB;AAC5G,OAAO,EAAE,IAAI,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,mBAAe;AAC5E,OAAO,EACL,IAAI,EACJ,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,UAAU,GAChB,mBAAe"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { Availability, type AvailabilityCreateParams, type AvailabilityUpdateParams } from "./availability.js";
|
|
2
|
+
export { Cost, type CostCreateParams, type CostUpdateParams } from "./cost.js";
|
|
2
3
|
export { VPCs, type Subnet, type VPC, type VPCList, type VPCCreateParams, type VPCUpdateParams, type VPCListParams, type VPCsCursor, } from "./vpcs.js";
|
|
3
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAE,0BAAuB;AAC5G,OAAO,EACL,IAAI,EACJ,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,UAAU,GAChB,kBAAe"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/networking/vpcs/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAE,0BAAuB;AAC5G,OAAO,EAAE,IAAI,EAAE,KAAK,gBAAgB,EAAE,KAAK,gBAAgB,EAAE,kBAAe;AAC5E,OAAO,EACL,IAAI,EACJ,KAAK,MAAM,EACX,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,UAAU,GAChB,kBAAe"}
|