@nirvana-labs/nirvana 1.98.9 → 2.0.1
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 +24 -0
- package/package.json +1 -1
- package/resources/api-keys/api-keys.d.mts +1 -1
- package/resources/api-keys/api-keys.d.mts.map +1 -1
- package/resources/api-keys/api-keys.d.ts +1 -1
- package/resources/api-keys/api-keys.d.ts.map +1 -1
- package/resources/networking/index.d.mts +0 -1
- package/resources/networking/index.d.mts.map +1 -1
- package/resources/networking/index.d.ts +0 -1
- package/resources/networking/index.d.ts.map +1 -1
- package/resources/networking/index.js +3 -5
- package/resources/networking/index.js.map +1 -1
- package/resources/networking/index.mjs +0 -1
- package/resources/networking/index.mjs.map +1 -1
- package/resources/networking/networking.d.mts +0 -4
- package/resources/networking/networking.d.mts.map +1 -1
- package/resources/networking/networking.d.ts +0 -4
- package/resources/networking/networking.d.ts.map +1 -1
- package/resources/networking/networking.js +0 -4
- package/resources/networking/networking.js.map +1 -1
- package/resources/networking/networking.mjs +0 -4
- package/resources/networking/networking.mjs.map +1 -1
- package/resources/projects/projects.d.mts +0 -4
- package/resources/projects/projects.d.mts.map +1 -1
- package/resources/projects/projects.d.ts +0 -4
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/quotas/quotas.d.mts +0 -4
- package/resources/quotas/quotas.d.mts.map +1 -1
- package/resources/quotas/quotas.d.ts +0 -4
- package/resources/quotas/quotas.d.ts.map +1 -1
- package/resources/regions/regions.d.mts +0 -8
- package/resources/regions/regions.d.mts.map +1 -1
- package/resources/regions/regions.d.ts +0 -8
- package/resources/regions/regions.d.ts.map +1 -1
- package/resources/usage/usage.d.mts +2 -2
- package/resources/usage/usage.d.mts.map +1 -1
- package/resources/usage/usage.d.ts +2 -2
- package/resources/usage/usage.d.ts.map +1 -1
- package/src/resources/api-keys/api-keys.ts +0 -1
- package/src/resources/networking/api.md +0 -35
- package/src/resources/networking/index.ts +0 -12
- package/src/resources/networking/networking.ts +0 -24
- package/src/resources/projects/projects.ts +0 -5
- package/src/resources/quotas/quotas.ts +0 -5
- package/src/resources/regions/regions.ts +0 -10
- package/src/resources/usage/usage.ts +1 -9
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/networking/connect/connect.d.mts +0 -145
- package/resources/networking/connect/connect.d.mts.map +0 -1
- package/resources/networking/connect/connect.d.ts +0 -145
- package/resources/networking/connect/connect.d.ts.map +0 -1
- package/resources/networking/connect/connect.js +0 -21
- package/resources/networking/connect/connect.js.map +0 -1
- package/resources/networking/connect/connect.mjs +0 -16
- package/resources/networking/connect/connect.mjs.map +0 -1
- package/resources/networking/connect/connections/connections.d.mts +0 -170
- package/resources/networking/connect/connections/connections.d.mts.map +0 -1
- package/resources/networking/connect/connections/connections.d.ts +0 -170
- package/resources/networking/connect/connections/connections.d.ts.map +0 -1
- package/resources/networking/connect/connections/connections.js +0 -96
- package/resources/networking/connect/connections/connections.js.map +0 -1
- package/resources/networking/connect/connections/connections.mjs +0 -91
- package/resources/networking/connect/connections/connections.mjs.map +0 -1
- package/resources/networking/connect/connections/cost.d.mts +0 -85
- package/resources/networking/connect/connections/cost.d.mts.map +0 -1
- package/resources/networking/connect/connections/cost.d.ts +0 -85
- package/resources/networking/connect/connections/cost.d.ts.map +0 -1
- package/resources/networking/connect/connections/cost.js +0 -47
- package/resources/networking/connect/connections/cost.js.map +0 -1
- package/resources/networking/connect/connections/cost.mjs +0 -43
- package/resources/networking/connect/connections/cost.mjs.map +0 -1
- package/resources/networking/connect/connections/index.d.mts +0 -3
- package/resources/networking/connect/connections/index.d.mts.map +0 -1
- package/resources/networking/connect/connections/index.d.ts +0 -3
- package/resources/networking/connect/connections/index.d.ts.map +0 -1
- package/resources/networking/connect/connections/index.js +0 -9
- package/resources/networking/connect/connections/index.js.map +0 -1
- package/resources/networking/connect/connections/index.mjs +0 -4
- package/resources/networking/connect/connections/index.mjs.map +0 -1
- package/resources/networking/connect/connections.d.mts +0 -2
- package/resources/networking/connect/connections.d.mts.map +0 -1
- package/resources/networking/connect/connections.d.ts +0 -2
- package/resources/networking/connect/connections.d.ts.map +0 -1
- package/resources/networking/connect/connections.js +0 -6
- package/resources/networking/connect/connections.js.map +0 -1
- package/resources/networking/connect/connections.mjs +0 -3
- package/resources/networking/connect/connections.mjs.map +0 -1
- package/resources/networking/connect/index.d.mts +0 -4
- package/resources/networking/connect/index.d.mts.map +0 -1
- package/resources/networking/connect/index.d.ts +0 -4
- package/resources/networking/connect/index.d.ts.map +0 -1
- package/resources/networking/connect/index.js +0 -11
- package/resources/networking/connect/index.js.map +0 -1
- package/resources/networking/connect/index.mjs +0 -5
- package/resources/networking/connect/index.mjs.map +0 -1
- package/resources/networking/connect/routes.d.mts +0 -43
- package/resources/networking/connect/routes.d.mts.map +0 -1
- package/resources/networking/connect/routes.d.ts +0 -43
- package/resources/networking/connect/routes.d.ts.map +0 -1
- package/resources/networking/connect/routes.js +0 -27
- package/resources/networking/connect/routes.js.map +0 -1
- package/resources/networking/connect/routes.mjs +0 -23
- package/resources/networking/connect/routes.mjs.map +0 -1
- package/resources/networking/connect.d.mts +0 -2
- package/resources/networking/connect.d.mts.map +0 -1
- package/resources/networking/connect.d.ts +0 -2
- package/resources/networking/connect.d.ts.map +0 -1
- package/resources/networking/connect.js +0 -6
- package/resources/networking/connect.js.map +0 -1
- package/resources/networking/connect.mjs +0 -3
- package/resources/networking/connect.mjs.map +0 -1
- package/src/resources/networking/connect/connect.ts +0 -200
- package/src/resources/networking/connect/connections/connections.ts +0 -231
- package/src/resources/networking/connect/connections/cost.ts +0 -111
- package/src/resources/networking/connect/connections/index.ts +0 -9
- package/src/resources/networking/connect/connections.ts +0 -3
- package/src/resources/networking/connect/index.ts +0 -21
- package/src/resources/networking/connect/routes.ts +0 -59
- package/src/resources/networking/connect.ts +0 -3
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
|
-
import * as Shared from "../../../shared.mjs";
|
|
3
|
-
import * as OperationsAPI from "../../../operations/operations.mjs";
|
|
4
|
-
import * as ConnectAPI from "../connect.mjs";
|
|
5
|
-
import { ConnectConnectionsCursor } from "../connect.mjs";
|
|
6
|
-
import * as CostAPI from "./cost.mjs";
|
|
7
|
-
import { Cost, CostCreateParams, CostUpdateParams } from "./cost.mjs";
|
|
8
|
-
import { APIPromise } from "../../../../core/api-promise.mjs";
|
|
9
|
-
import { type CursorParams, PagePromise } from "../../../../core/pagination.mjs";
|
|
10
|
-
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
11
|
-
export declare class Connections extends APIResource {
|
|
12
|
-
cost: CostAPI.Cost;
|
|
13
|
-
/**
|
|
14
|
-
* Create a Connect Connection
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* const operation =
|
|
19
|
-
* await client.networking.connect.connections.create({
|
|
20
|
-
* bandwidth_mbps: 50,
|
|
21
|
-
* cidrs: ['10.0.0.0/16'],
|
|
22
|
-
* name: 'my-connect-connection',
|
|
23
|
-
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
24
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
25
|
-
* region: 'us-sva-2',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
30
|
-
/**
|
|
31
|
-
* Get Connect Connection details
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const connectConnection =
|
|
36
|
-
* await client.networking.connect.connections.get(
|
|
37
|
-
* 'connection_id',
|
|
38
|
-
* );
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
get(connectionID: string, options?: RequestOptions): APIPromise<ConnectAPI.ConnectConnection>;
|
|
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: string, body: ConnectionUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
54
|
-
/**
|
|
55
|
-
* Delete Connect Connection
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const operation =
|
|
60
|
-
* await client.networking.connect.connections.delete(
|
|
61
|
-
* 'connection_id',
|
|
62
|
-
* );
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
delete(connectionID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
66
|
-
/**
|
|
67
|
-
* List all Connect Connections
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```ts
|
|
71
|
-
* // Automatically fetches more pages as needed.
|
|
72
|
-
* for await (const connectConnection of client.networking.connect.connections.list(
|
|
73
|
-
* { project_id: 'project_id' },
|
|
74
|
-
* )) {
|
|
75
|
-
* // ...
|
|
76
|
-
* }
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
list(query: ConnectionListParams, options?: RequestOptions): PagePromise<ConnectConnectionsCursor, ConnectAPI.ConnectConnection>;
|
|
80
|
-
}
|
|
81
|
-
export interface ConnectionCreateParams {
|
|
82
|
-
/**
|
|
83
|
-
* Connect Connection speed in Mbps
|
|
84
|
-
*/
|
|
85
|
-
bandwidth_mbps: ConnectAPI.ConnectBandwidthMbps;
|
|
86
|
-
/**
|
|
87
|
-
* CIDRs for the Connect Connection. Must be in network-aligned/canonical form.
|
|
88
|
-
*/
|
|
89
|
-
cidrs: Array<string>;
|
|
90
|
-
/**
|
|
91
|
-
* Name of the Connect Connection
|
|
92
|
-
*/
|
|
93
|
-
name: string;
|
|
94
|
-
/**
|
|
95
|
-
* Project ID the Connect Connection belongs to
|
|
96
|
-
*/
|
|
97
|
-
project_id: string;
|
|
98
|
-
/**
|
|
99
|
-
* Provider CIDRs. Must be in network-aligned/canonical form.
|
|
100
|
-
*/
|
|
101
|
-
provider_cidrs: Array<string>;
|
|
102
|
-
/**
|
|
103
|
-
* Region the resource is in.
|
|
104
|
-
*/
|
|
105
|
-
region: Shared.RegionName;
|
|
106
|
-
/**
|
|
107
|
-
* AWS provider configuration
|
|
108
|
-
*/
|
|
109
|
-
aws?: ConnectAPI.ConnectConnectionAWSConfigRequest;
|
|
110
|
-
/**
|
|
111
|
-
* Tags to attach to the Connect Connection
|
|
112
|
-
*/
|
|
113
|
-
tags?: Array<string>;
|
|
114
|
-
}
|
|
115
|
-
export interface ConnectionUpdateParams {
|
|
116
|
-
/**
|
|
117
|
-
* Name of the Connect Connection.
|
|
118
|
-
*/
|
|
119
|
-
name?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Tags to attach to the Connect Connection
|
|
122
|
-
*/
|
|
123
|
-
tags?: Array<string>;
|
|
124
|
-
}
|
|
125
|
-
export interface ConnectionListParams extends CursorParams {
|
|
126
|
-
/**
|
|
127
|
-
* Project ID of resources to request
|
|
128
|
-
*/
|
|
129
|
-
project_id: string;
|
|
130
|
-
/**
|
|
131
|
-
* Filter by provisioned bandwidth in Mbps
|
|
132
|
-
*/
|
|
133
|
-
bandwidth_mbps?: 50 | 200 | 500 | 1000 | 2000;
|
|
134
|
-
/**
|
|
135
|
-
* Filter by a case-insensitive substring of the Connect Connection name
|
|
136
|
-
*/
|
|
137
|
-
name?: string;
|
|
138
|
-
/**
|
|
139
|
-
* Filter by provider
|
|
140
|
-
*/
|
|
141
|
-
provider?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Filter by the provider's own region
|
|
144
|
-
*/
|
|
145
|
-
provider_region?: string;
|
|
146
|
-
/**
|
|
147
|
-
* Filter by Nirvana region
|
|
148
|
-
*/
|
|
149
|
-
region?: string;
|
|
150
|
-
/**
|
|
151
|
-
* Comma-separated sort terms in precedence order, each field:asc or field:desc.
|
|
152
|
-
* Fields: created_at, updated_at, name, status, bandwidth_mbps
|
|
153
|
-
*/
|
|
154
|
-
sort?: string;
|
|
155
|
-
/**
|
|
156
|
-
* Filter by Connect Connection status
|
|
157
|
-
*/
|
|
158
|
-
status?: 'pending' | 'creating' | 'updating' | 'ready' | 'deleting' | 'error';
|
|
159
|
-
/**
|
|
160
|
-
* Filter by tags. Repeat the parameter to require several tags; a Connect
|
|
161
|
-
* Connection must carry all of them.
|
|
162
|
-
*/
|
|
163
|
-
tags?: Array<string>;
|
|
164
|
-
}
|
|
165
|
-
export declare namespace Connections {
|
|
166
|
-
export { type ConnectionCreateParams as ConnectionCreateParams, type ConnectionUpdateParams as ConnectionUpdateParams, type ConnectionListParams as ConnectionListParams, };
|
|
167
|
-
export { Cost as Cost, type CostCreateParams as CostCreateParams, type CostUpdateParams as CostUpdateParams, };
|
|
168
|
-
}
|
|
169
|
-
export { type ConnectConnectionsCursor };
|
|
170
|
-
//# sourceMappingURL=connections.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.mts","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/connections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,sCAAkC;AACxD,OAAO,KAAK,MAAM,4BAAwB;AAC1C,OAAO,KAAK,aAAa,2CAAuC;AAChE,OAAO,KAAK,UAAU,uBAAmB;AACzC,OAAO,EAAE,wBAAwB,EAAE,uBAAmB;AACtD,OAAO,KAAK,OAAO,mBAAe;AAClC,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,mBAAe;AAClE,OAAO,EAAE,UAAU,EAAE,yCAAqC;AAC1D,OAAO,EA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 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../../core/resource.js";
|
|
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 * as CostAPI from "./cost.js";
|
|
7
|
-
import { Cost, CostCreateParams, CostUpdateParams } from "./cost.js";
|
|
8
|
-
import { APIPromise } from "../../../../core/api-promise.js";
|
|
9
|
-
import { type CursorParams, PagePromise } from "../../../../core/pagination.js";
|
|
10
|
-
import { RequestOptions } from "../../../../internal/request-options.js";
|
|
11
|
-
export declare class Connections extends APIResource {
|
|
12
|
-
cost: CostAPI.Cost;
|
|
13
|
-
/**
|
|
14
|
-
* Create a Connect Connection
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```ts
|
|
18
|
-
* const operation =
|
|
19
|
-
* await client.networking.connect.connections.create({
|
|
20
|
-
* bandwidth_mbps: 50,
|
|
21
|
-
* cidrs: ['10.0.0.0/16'],
|
|
22
|
-
* name: 'my-connect-connection',
|
|
23
|
-
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
24
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
25
|
-
* region: 'us-sva-2',
|
|
26
|
-
* });
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
create(body: ConnectionCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
30
|
-
/**
|
|
31
|
-
* Get Connect Connection details
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```ts
|
|
35
|
-
* const connectConnection =
|
|
36
|
-
* await client.networking.connect.connections.get(
|
|
37
|
-
* 'connection_id',
|
|
38
|
-
* );
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
get(connectionID: string, options?: RequestOptions): APIPromise<ConnectAPI.ConnectConnection>;
|
|
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: string, body: ConnectionUpdateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
54
|
-
/**
|
|
55
|
-
* Delete Connect Connection
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* ```ts
|
|
59
|
-
* const operation =
|
|
60
|
-
* await client.networking.connect.connections.delete(
|
|
61
|
-
* 'connection_id',
|
|
62
|
-
* );
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
delete(connectionID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation>;
|
|
66
|
-
/**
|
|
67
|
-
* List all Connect Connections
|
|
68
|
-
*
|
|
69
|
-
* @example
|
|
70
|
-
* ```ts
|
|
71
|
-
* // Automatically fetches more pages as needed.
|
|
72
|
-
* for await (const connectConnection of client.networking.connect.connections.list(
|
|
73
|
-
* { project_id: 'project_id' },
|
|
74
|
-
* )) {
|
|
75
|
-
* // ...
|
|
76
|
-
* }
|
|
77
|
-
* ```
|
|
78
|
-
*/
|
|
79
|
-
list(query: ConnectionListParams, options?: RequestOptions): PagePromise<ConnectConnectionsCursor, ConnectAPI.ConnectConnection>;
|
|
80
|
-
}
|
|
81
|
-
export interface ConnectionCreateParams {
|
|
82
|
-
/**
|
|
83
|
-
* Connect Connection speed in Mbps
|
|
84
|
-
*/
|
|
85
|
-
bandwidth_mbps: ConnectAPI.ConnectBandwidthMbps;
|
|
86
|
-
/**
|
|
87
|
-
* CIDRs for the Connect Connection. Must be in network-aligned/canonical form.
|
|
88
|
-
*/
|
|
89
|
-
cidrs: Array<string>;
|
|
90
|
-
/**
|
|
91
|
-
* Name of the Connect Connection
|
|
92
|
-
*/
|
|
93
|
-
name: string;
|
|
94
|
-
/**
|
|
95
|
-
* Project ID the Connect Connection belongs to
|
|
96
|
-
*/
|
|
97
|
-
project_id: string;
|
|
98
|
-
/**
|
|
99
|
-
* Provider CIDRs. Must be in network-aligned/canonical form.
|
|
100
|
-
*/
|
|
101
|
-
provider_cidrs: Array<string>;
|
|
102
|
-
/**
|
|
103
|
-
* Region the resource is in.
|
|
104
|
-
*/
|
|
105
|
-
region: Shared.RegionName;
|
|
106
|
-
/**
|
|
107
|
-
* AWS provider configuration
|
|
108
|
-
*/
|
|
109
|
-
aws?: ConnectAPI.ConnectConnectionAWSConfigRequest;
|
|
110
|
-
/**
|
|
111
|
-
* Tags to attach to the Connect Connection
|
|
112
|
-
*/
|
|
113
|
-
tags?: Array<string>;
|
|
114
|
-
}
|
|
115
|
-
export interface ConnectionUpdateParams {
|
|
116
|
-
/**
|
|
117
|
-
* Name of the Connect Connection.
|
|
118
|
-
*/
|
|
119
|
-
name?: string;
|
|
120
|
-
/**
|
|
121
|
-
* Tags to attach to the Connect Connection
|
|
122
|
-
*/
|
|
123
|
-
tags?: Array<string>;
|
|
124
|
-
}
|
|
125
|
-
export interface ConnectionListParams extends CursorParams {
|
|
126
|
-
/**
|
|
127
|
-
* Project ID of resources to request
|
|
128
|
-
*/
|
|
129
|
-
project_id: string;
|
|
130
|
-
/**
|
|
131
|
-
* Filter by provisioned bandwidth in Mbps
|
|
132
|
-
*/
|
|
133
|
-
bandwidth_mbps?: 50 | 200 | 500 | 1000 | 2000;
|
|
134
|
-
/**
|
|
135
|
-
* Filter by a case-insensitive substring of the Connect Connection name
|
|
136
|
-
*/
|
|
137
|
-
name?: string;
|
|
138
|
-
/**
|
|
139
|
-
* Filter by provider
|
|
140
|
-
*/
|
|
141
|
-
provider?: string;
|
|
142
|
-
/**
|
|
143
|
-
* Filter by the provider's own region
|
|
144
|
-
*/
|
|
145
|
-
provider_region?: string;
|
|
146
|
-
/**
|
|
147
|
-
* Filter by Nirvana region
|
|
148
|
-
*/
|
|
149
|
-
region?: string;
|
|
150
|
-
/**
|
|
151
|
-
* Comma-separated sort terms in precedence order, each field:asc or field:desc.
|
|
152
|
-
* Fields: created_at, updated_at, name, status, bandwidth_mbps
|
|
153
|
-
*/
|
|
154
|
-
sort?: string;
|
|
155
|
-
/**
|
|
156
|
-
* Filter by Connect Connection status
|
|
157
|
-
*/
|
|
158
|
-
status?: 'pending' | 'creating' | 'updating' | 'ready' | 'deleting' | 'error';
|
|
159
|
-
/**
|
|
160
|
-
* Filter by tags. Repeat the parameter to require several tags; a Connect
|
|
161
|
-
* Connection must carry all of them.
|
|
162
|
-
*/
|
|
163
|
-
tags?: Array<string>;
|
|
164
|
-
}
|
|
165
|
-
export declare namespace Connections {
|
|
166
|
-
export { type ConnectionCreateParams as ConnectionCreateParams, type ConnectionUpdateParams as ConnectionUpdateParams, type ConnectionListParams as ConnectionListParams, };
|
|
167
|
-
export { Cost as Cost, type CostCreateParams as CostCreateParams, type CostUpdateParams as CostUpdateParams, };
|
|
168
|
-
}
|
|
169
|
-
export { type ConnectConnectionsCursor };
|
|
170
|
-
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/connections.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,KAAK,MAAM,2BAAwB;AAC1C,OAAO,KAAK,aAAa,0CAAuC;AAChE,OAAO,KAAK,UAAU,sBAAmB;AACzC,OAAO,EAAE,wBAAwB,EAAE,sBAAmB;AACtD,OAAO,KAAK,OAAO,kBAAe;AAClC,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,kBAAe;AAClE,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAC1D,OAAO,EAAU,KAAK,YAAY,EAAE,WAAW,EAAE,uCAAoC;AACrF,OAAO,EAAE,cAAc,EAAE,gD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IBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Connections = void 0;
|
|
5
|
-
const tslib_1 = require("../../../../internal/tslib.js");
|
|
6
|
-
const resource_1 = require("../../../../core/resource.js");
|
|
7
|
-
const CostAPI = tslib_1.__importStar(require("./cost.js"));
|
|
8
|
-
const cost_1 = require("./cost.js");
|
|
9
|
-
const pagination_1 = require("../../../../core/pagination.js");
|
|
10
|
-
const path_1 = require("../../../../internal/utils/path.js");
|
|
11
|
-
class Connections extends resource_1.APIResource {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.cost = new CostAPI.Cost(this._client);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Create a Connect Connection
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts
|
|
21
|
-
* const operation =
|
|
22
|
-
* await client.networking.connect.connections.create({
|
|
23
|
-
* bandwidth_mbps: 50,
|
|
24
|
-
* cidrs: ['10.0.0.0/16'],
|
|
25
|
-
* name: 'my-connect-connection',
|
|
26
|
-
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
27
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
28
|
-
* region: 'us-sva-2',
|
|
29
|
-
* });
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
create(body, options) {
|
|
33
|
-
return this._client.post('/v1/networking/connect/connections', { body, ...options });
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Get Connect Connection details
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* ```ts
|
|
40
|
-
* const connectConnection =
|
|
41
|
-
* await client.networking.connect.connections.get(
|
|
42
|
-
* 'connection_id',
|
|
43
|
-
* );
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
get(connectionID, options) {
|
|
47
|
-
return this._client.get((0, path_1.path) `/v1/networking/connect/connections/${connectionID}`, options);
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* Update Connect Connection details
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* ```ts
|
|
54
|
-
* const operation =
|
|
55
|
-
* await client.networking.connect.connections.update(
|
|
56
|
-
* 'connection_id',
|
|
57
|
-
* );
|
|
58
|
-
* ```
|
|
59
|
-
*/
|
|
60
|
-
update(connectionID, body, options) {
|
|
61
|
-
return this._client.patch((0, path_1.path) `/v1/networking/connect/connections/${connectionID}`, { body, ...options });
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Delete Connect Connection
|
|
65
|
-
*
|
|
66
|
-
* @example
|
|
67
|
-
* ```ts
|
|
68
|
-
* const operation =
|
|
69
|
-
* await client.networking.connect.connections.delete(
|
|
70
|
-
* 'connection_id',
|
|
71
|
-
* );
|
|
72
|
-
* ```
|
|
73
|
-
*/
|
|
74
|
-
delete(connectionID, options) {
|
|
75
|
-
return this._client.delete((0, path_1.path) `/v1/networking/connect/connections/${connectionID}`, options);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* List all Connect Connections
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* ```ts
|
|
82
|
-
* // Automatically fetches more pages as needed.
|
|
83
|
-
* for await (const connectConnection of client.networking.connect.connections.list(
|
|
84
|
-
* { project_id: 'project_id' },
|
|
85
|
-
* )) {
|
|
86
|
-
* // ...
|
|
87
|
-
* }
|
|
88
|
-
* ```
|
|
89
|
-
*/
|
|
90
|
-
list(query, options) {
|
|
91
|
-
return this._client.getAPIList('/v1/networking/connect/connections', (pagination_1.Cursor), { query, ...options });
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
exports.Connections = Connections;
|
|
95
|
-
Connections.Cost = cost_1.Cost;
|
|
96
|
-
//# sourceMappingURL=connections.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/connections.ts"],"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C;CACF;AA/FD,kCA+FC;AAyGD,WAAW,CAAC,IAAI,GAAG,WAAI,CAAC"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../../../core/resource.mjs";
|
|
3
|
-
import * as CostAPI from "./cost.mjs";
|
|
4
|
-
import { Cost } from "./cost.mjs";
|
|
5
|
-
import { Cursor } from "../../../../core/pagination.mjs";
|
|
6
|
-
import { path } from "../../../../internal/utils/path.mjs";
|
|
7
|
-
export class Connections extends APIResource {
|
|
8
|
-
constructor() {
|
|
9
|
-
super(...arguments);
|
|
10
|
-
this.cost = new CostAPI.Cost(this._client);
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Create a Connect Connection
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const operation =
|
|
18
|
-
* await client.networking.connect.connections.create({
|
|
19
|
-
* bandwidth_mbps: 50,
|
|
20
|
-
* cidrs: ['10.0.0.0/16'],
|
|
21
|
-
* name: 'my-connect-connection',
|
|
22
|
-
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
23
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
24
|
-
* region: 'us-sva-2',
|
|
25
|
-
* });
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
create(body, options) {
|
|
29
|
-
return this._client.post('/v1/networking/connect/connections', { body, ...options });
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Get Connect Connection details
|
|
33
|
-
*
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* const connectConnection =
|
|
37
|
-
* await client.networking.connect.connections.get(
|
|
38
|
-
* 'connection_id',
|
|
39
|
-
* );
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
get(connectionID, options) {
|
|
43
|
-
return this._client.get(path `/v1/networking/connect/connections/${connectionID}`, options);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Update Connect Connection details
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* ```ts
|
|
50
|
-
* const operation =
|
|
51
|
-
* await client.networking.connect.connections.update(
|
|
52
|
-
* 'connection_id',
|
|
53
|
-
* );
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
update(connectionID, body, options) {
|
|
57
|
-
return this._client.patch(path `/v1/networking/connect/connections/${connectionID}`, { body, ...options });
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Delete Connect Connection
|
|
61
|
-
*
|
|
62
|
-
* @example
|
|
63
|
-
* ```ts
|
|
64
|
-
* const operation =
|
|
65
|
-
* await client.networking.connect.connections.delete(
|
|
66
|
-
* 'connection_id',
|
|
67
|
-
* );
|
|
68
|
-
* ```
|
|
69
|
-
*/
|
|
70
|
-
delete(connectionID, options) {
|
|
71
|
-
return this._client.delete(path `/v1/networking/connect/connections/${connectionID}`, options);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* List all Connect Connections
|
|
75
|
-
*
|
|
76
|
-
* @example
|
|
77
|
-
* ```ts
|
|
78
|
-
* // Automatically fetches more pages as needed.
|
|
79
|
-
* for await (const connectConnection of client.networking.connect.connections.list(
|
|
80
|
-
* { project_id: 'project_id' },
|
|
81
|
-
* )) {
|
|
82
|
-
* // ...
|
|
83
|
-
* }
|
|
84
|
-
* ```
|
|
85
|
-
*/
|
|
86
|
-
list(query, options) {
|
|
87
|
-
return this._client.getAPIList('/v1/networking/connect/connections', (Cursor), { query, ...options });
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
Connections.Cost = Cost;
|
|
91
|
-
//# sourceMappingURL=connections.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connections.mjs","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/connections.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EA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E,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;CACF;AAyGD,WAAW,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../../../core/resource.mjs";
|
|
2
|
-
import * as Shared from "../../../shared.mjs";
|
|
3
|
-
import * as ConnectAPI from "../connect.mjs";
|
|
4
|
-
import { APIPromise } from "../../../../core/api-promise.mjs";
|
|
5
|
-
import { RequestOptions } from "../../../../internal/request-options.mjs";
|
|
6
|
-
export declare class Cost extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Return a priced cost quote for the proposed Connect Connection.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* const costQuote =
|
|
13
|
-
* await client.networking.connect.connections.cost.create({
|
|
14
|
-
* bandwidth_mbps: 50,
|
|
15
|
-
* cidrs: ['10.0.0.0/16'],
|
|
16
|
-
* name: 'my-connect-connection',
|
|
17
|
-
* project_id: '123e4567-e89b-12d3-a456-426614174000',
|
|
18
|
-
* provider_cidrs: ['172.16.0.0/16'],
|
|
19
|
-
* region: 'us-sva-2',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
create(body: CostCreateParams, options?: RequestOptions): APIPromise<Shared.CostQuote>;
|
|
24
|
-
/**
|
|
25
|
-
* Return a priced cost quote for the proposed Connect Connection update plus a
|
|
26
|
-
* diff against the current state.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* const costQuoteUpdate =
|
|
31
|
-
* await client.networking.connect.connections.cost.update(
|
|
32
|
-
* 'connection_id',
|
|
33
|
-
* );
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
update(connectionID: string, body: CostUpdateParams, options?: RequestOptions): APIPromise<Shared.CostQuoteUpdate>;
|
|
37
|
-
}
|
|
38
|
-
export interface CostCreateParams {
|
|
39
|
-
/**
|
|
40
|
-
* Connect Connection speed in Mbps
|
|
41
|
-
*/
|
|
42
|
-
bandwidth_mbps: ConnectAPI.ConnectBandwidthMbps;
|
|
43
|
-
/**
|
|
44
|
-
* CIDRs for the Connect Connection. Must be in network-aligned/canonical form.
|
|
45
|
-
*/
|
|
46
|
-
cidrs: Array<string>;
|
|
47
|
-
/**
|
|
48
|
-
* Name of the Connect Connection
|
|
49
|
-
*/
|
|
50
|
-
name: string;
|
|
51
|
-
/**
|
|
52
|
-
* Project ID the Connect Connection belongs to
|
|
53
|
-
*/
|
|
54
|
-
project_id: string;
|
|
55
|
-
/**
|
|
56
|
-
* Provider CIDRs. Must be in network-aligned/canonical form.
|
|
57
|
-
*/
|
|
58
|
-
provider_cidrs: Array<string>;
|
|
59
|
-
/**
|
|
60
|
-
* Region the resource is in.
|
|
61
|
-
*/
|
|
62
|
-
region: Shared.RegionName;
|
|
63
|
-
/**
|
|
64
|
-
* AWS provider configuration
|
|
65
|
-
*/
|
|
66
|
-
aws?: ConnectAPI.ConnectConnectionAWSConfigRequest;
|
|
67
|
-
/**
|
|
68
|
-
* Tags to attach to the Connect Connection
|
|
69
|
-
*/
|
|
70
|
-
tags?: Array<string>;
|
|
71
|
-
}
|
|
72
|
-
export interface CostUpdateParams {
|
|
73
|
-
/**
|
|
74
|
-
* Name of the Connect Connection.
|
|
75
|
-
*/
|
|
76
|
-
name?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Tags to attach to the Connect Connection
|
|
79
|
-
*/
|
|
80
|
-
tags?: Array<string>;
|
|
81
|
-
}
|
|
82
|
-
export declare namespace Cost {
|
|
83
|
-
export { type CostCreateParams as CostCreateParams, type CostUpdateParams as CostUpdateParams };
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=cost.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cost.d.mts","sourceRoot":"","sources":["../../../../src/resources/networking/connect/connections/cost.ts"],"names":[],"mappings":"AAEA,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