@nirvana-labs/nirvana 1.17.3 → 1.18.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 +50 -0
- package/bin/cli +4 -10
- package/client.d.mts +1 -1
- package/client.d.ts +1 -1
- package/client.js +3 -3
- package/client.js.map +1 -1
- package/client.mjs +3 -3
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/api-keys.d.mts +25 -13
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +25 -13
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/compute/vms/availability.d.mts +3 -3
- package/resources/compute/vms/availability.d.ts +3 -3
- package/resources/compute/vms/vms.d.mts +3 -3
- package/resources/compute/vms/vms.d.ts +3 -3
- package/resources/compute/volumes/availability.d.mts +5 -5
- package/resources/compute/volumes/availability.d.ts +5 -5
- package/resources/compute/volumes/volumes.d.mts +14 -14
- package/resources/compute/volumes/volumes.d.ts +14 -14
- package/resources/connect/connect.d.mts +4 -4
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +4 -4
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js +4 -4
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs +4 -4
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/flux/flux.d.mts +204 -0
- package/resources/connect/flux/flux.d.mts.map +1 -0
- package/resources/connect/flux/flux.d.ts +204 -0
- package/resources/connect/flux/flux.d.ts.map +1 -0
- package/resources/connect/flux/flux.js +83 -0
- package/resources/connect/flux/flux.js.map +1 -0
- package/resources/connect/flux/flux.mjs +78 -0
- package/resources/connect/flux/flux.mjs.map +1 -0
- package/resources/connect/flux/index.d.mts +3 -0
- package/resources/connect/flux/index.d.mts.map +1 -0
- package/resources/connect/flux/index.d.ts +3 -0
- package/resources/connect/flux/index.d.ts.map +1 -0
- package/resources/connect/flux/index.js +9 -0
- package/resources/connect/flux/index.js.map +1 -0
- package/resources/connect/flux/index.mjs +4 -0
- package/resources/connect/flux/index.mjs.map +1 -0
- package/resources/connect/flux/providers.d.mts +17 -0
- package/resources/connect/flux/providers.d.mts.map +1 -0
- package/resources/connect/flux/providers.d.ts +17 -0
- package/resources/connect/flux/providers.d.ts.map +1 -0
- package/resources/connect/flux/providers.js +21 -0
- package/resources/connect/flux/providers.js.map +1 -0
- package/resources/connect/flux/providers.mjs +17 -0
- package/resources/connect/flux/providers.mjs.map +1 -0
- package/resources/connect/flux.d.mts +1 -69
- package/resources/connect/flux.d.mts.map +1 -1
- package/resources/connect/flux.d.ts +1 -69
- package/resources/connect/flux.d.ts.map +1 -1
- package/resources/connect/flux.js +2 -18
- package/resources/connect/flux.js.map +1 -1
- package/resources/connect/flux.mjs +1 -16
- package/resources/connect/flux.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js +3 -3
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/networking/firewall-rules.d.mts +19 -19
- package/resources/networking/firewall-rules.d.ts +19 -19
- package/resources/networking/vpcs/vpcs.d.mts +5 -5
- package/resources/networking/vpcs/vpcs.d.ts +5 -5
- package/resources/operations.d.mts +10 -10
- package/resources/operations.d.ts +10 -10
- package/resources/rpc-nodes/dedicated/blockchains.d.mts +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.ts +1 -1
- package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.mts +12 -12
- package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +12 -12
- package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.js +4 -4
- package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.mjs +2 -2
- package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/index.d.mts +1 -1
- package/resources/rpc-nodes/dedicated/index.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/index.d.ts +1 -1
- package/resources/rpc-nodes/dedicated/index.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/index.js +2 -2
- package/resources/rpc-nodes/dedicated/index.js.map +1 -1
- package/resources/rpc-nodes/dedicated/index.mjs +1 -1
- package/resources/rpc-nodes/dedicated/index.mjs.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.mts +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.ts +1 -1
- package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +12 -12
- package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +12 -12
- package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.js +4 -4
- package/resources/rpc-nodes/flex/flex.js.map +1 -1
- package/resources/rpc-nodes/flex/flex.mjs +2 -2
- package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
- package/resources/rpc-nodes/flex/index.d.mts +1 -1
- package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/index.d.ts +1 -1
- package/resources/rpc-nodes/flex/index.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/index.js +2 -2
- package/resources/rpc-nodes/flex/index.js.map +1 -1
- package/resources/rpc-nodes/flex/index.mjs +1 -1
- package/resources/rpc-nodes/flex/index.mjs.map +1 -1
- package/resources/rpc-nodes/index.d.mts +2 -2
- package/resources/rpc-nodes/index.d.mts.map +1 -1
- package/resources/rpc-nodes/index.d.ts +2 -2
- package/resources/rpc-nodes/index.d.ts.map +1 -1
- package/resources/rpc-nodes/index.js +3 -3
- package/resources/rpc-nodes/index.js.map +1 -1
- package/resources/rpc-nodes/index.mjs +2 -2
- package/resources/rpc-nodes/index.mjs.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.mts +6 -6
- package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.d.ts +6 -6
- package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.js +4 -4
- package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
- package/resources/rpc-nodes/rpc-nodes.mjs +6 -6
- package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
- package/resources/user.d.mts +6 -3
- package/resources/user.d.mts.map +1 -1
- package/resources/user.d.ts +6 -3
- package/resources/user.d.ts.map +1 -1
- package/src/client.ts +3 -3
- package/src/resources/api-keys.ts +28 -13
- package/src/resources/compute/vms/availability.ts +3 -3
- package/src/resources/compute/vms/vms.ts +3 -3
- package/src/resources/compute/volumes/availability.ts +5 -5
- package/src/resources/compute/volumes/volumes.ts +14 -14
- package/src/resources/connect/connect.ts +25 -5
- package/src/resources/connect/flux/flux.ts +267 -0
- package/src/resources/connect/flux/index.ts +14 -0
- package/src/resources/connect/flux/providers.ts +21 -0
- package/src/resources/connect/flux.ts +1 -89
- package/src/resources/connect/index.ts +11 -1
- package/src/resources/networking/firewall-rules.ts +19 -19
- package/src/resources/networking/vpcs/vpcs.ts +5 -5
- package/src/resources/operations.ts +10 -10
- package/src/resources/rpc-nodes/dedicated/blockchains.ts +1 -1
- package/src/resources/rpc-nodes/dedicated/dedicated.ts +16 -16
- package/src/resources/rpc-nodes/dedicated/index.ts +5 -5
- package/src/resources/rpc-nodes/flex/blockchains.ts +1 -1
- package/src/resources/rpc-nodes/flex/flex.ts +16 -16
- package/src/resources/rpc-nodes/flex/index.ts +1 -7
- package/src/resources/rpc-nodes/index.ts +10 -10
- package/src/resources/rpc-nodes/rpc-nodes.ts +19 -25
- package/src/resources/user.ts +6 -3
- 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
|
@@ -0,0 +1,267 @@
|
|
|
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 ProvidersAPI from './providers';
|
|
7
|
+
import { Providers } from './providers';
|
|
8
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
9
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
10
|
+
import { path } from '../../../internal/utils/path';
|
|
11
|
+
|
|
12
|
+
export class FluxResource extends APIResource {
|
|
13
|
+
providers: ProvidersAPI.Providers = new ProvidersAPI.Providers(this._client);
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Create a Connect Flux
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```ts
|
|
20
|
+
* const operation = await client.connect.flux.create({
|
|
21
|
+
* bandwidth_mbps: 50,
|
|
22
|
+
* cidrs: ['10.0.0.0/16'],
|
|
23
|
+
* name: 'my-connect-flux',
|
|
24
|
+
* provider_cidrs: ['172.16.0.0/16'],
|
|
25
|
+
* region: 'us-wdc-1',
|
|
26
|
+
* });
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
create(body: FluxCreateParams, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
30
|
+
return this._client.post('/v1/connect/flux', { body, ...options });
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Update Connect Flux details
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const operation = await client.connect.flux.update(
|
|
39
|
+
* 'flux_id',
|
|
40
|
+
* );
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
update(
|
|
44
|
+
fluxID: string,
|
|
45
|
+
body: FluxUpdateParams,
|
|
46
|
+
options?: RequestOptions,
|
|
47
|
+
): APIPromise<OperationsAPI.Operation> {
|
|
48
|
+
return this._client.patch(path`/v1/connect/flux/${fluxID}`, { body, ...options });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* List all Connect Flux
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const fluxList = await client.connect.flux.list();
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
list(options?: RequestOptions): APIPromise<FluxList> {
|
|
60
|
+
return this._client.get('/v1/connect/flux', options);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Delete Connect Flux
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* const operation = await client.connect.flux.delete(
|
|
69
|
+
* 'flux_id',
|
|
70
|
+
* );
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
delete(fluxID: string, options?: RequestOptions): APIPromise<OperationsAPI.Operation> {
|
|
74
|
+
return this._client.delete(path`/v1/connect/flux/${fluxID}`, options);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Get Connect Flux details
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* const flux = await client.connect.flux.get('flux_id');
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
get(fluxID: string, options?: RequestOptions): APIPromise<Flux> {
|
|
86
|
+
return this._client.get(path`/v1/connect/flux/${fluxID}`, options);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Connect flux details.
|
|
92
|
+
*/
|
|
93
|
+
export interface Flux {
|
|
94
|
+
/**
|
|
95
|
+
* Unique identifier for the Connect Flux
|
|
96
|
+
*/
|
|
97
|
+
id: string;
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* ASN
|
|
101
|
+
*/
|
|
102
|
+
asn: number | null;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* AWS provider configuration
|
|
106
|
+
*/
|
|
107
|
+
aws: FluxProviderAWSConfig | null;
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Connect Flux speed in Mbps
|
|
111
|
+
*/
|
|
112
|
+
bandwidth_mbps: 50 | 200 | 500 | 1000 | 2000;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* CIDRs for the Connect Flux
|
|
116
|
+
*/
|
|
117
|
+
cidrs: Array<string>;
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* When the Connect Flux was created
|
|
121
|
+
*/
|
|
122
|
+
created_at: string;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Name of the Connect Flux
|
|
126
|
+
*/
|
|
127
|
+
name: string;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Provider ASN
|
|
131
|
+
*/
|
|
132
|
+
provider_asn: number | null;
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* Provider CIDRs for the Connect Flux
|
|
136
|
+
*/
|
|
137
|
+
provider_cidrs: Array<string>;
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Provider Router IP
|
|
141
|
+
*/
|
|
142
|
+
provider_router_ip: string | null;
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Region the resource is in.
|
|
146
|
+
*/
|
|
147
|
+
region: Shared.RegionName;
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Router IP
|
|
151
|
+
*/
|
|
152
|
+
router_ip: string | null;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Status of the resource.
|
|
156
|
+
*/
|
|
157
|
+
status: Shared.ResourceStatus;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* When the Connect Flux was updated
|
|
161
|
+
*/
|
|
162
|
+
updated_at: string;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export interface FluxList {
|
|
166
|
+
items: Array<Flux>;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Provider supported for Connect Flux.
|
|
171
|
+
*/
|
|
172
|
+
export interface FluxProvider {
|
|
173
|
+
/**
|
|
174
|
+
* Provider name.
|
|
175
|
+
*/
|
|
176
|
+
name: string;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Provider region name.
|
|
180
|
+
*/
|
|
181
|
+
region: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* AWS provider configuration
|
|
186
|
+
*/
|
|
187
|
+
export interface FluxProviderAWSConfig {
|
|
188
|
+
/**
|
|
189
|
+
* AWS region where the connection is established
|
|
190
|
+
*/
|
|
191
|
+
region: string;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* AWS provider configuration
|
|
196
|
+
*/
|
|
197
|
+
export interface FluxProviderAWSConfigRequest {
|
|
198
|
+
/**
|
|
199
|
+
* AWS account number
|
|
200
|
+
*/
|
|
201
|
+
account_number: string;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* AWS region where the connection will be established
|
|
205
|
+
*/
|
|
206
|
+
region: string;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface FluxProviderList {
|
|
210
|
+
items: Array<FluxProvider>;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface FluxCreateParams {
|
|
214
|
+
/**
|
|
215
|
+
* Connect Flux speed in Mbps
|
|
216
|
+
*/
|
|
217
|
+
bandwidth_mbps: 50 | 200 | 500 | 1000 | 2000;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* CIDRs for the Connect Flux
|
|
221
|
+
*/
|
|
222
|
+
cidrs: Array<string>;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Name of the Connect Flux
|
|
226
|
+
*/
|
|
227
|
+
name: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* Provider CIDRs
|
|
231
|
+
*/
|
|
232
|
+
provider_cidrs: Array<string>;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* Region the resource is in.
|
|
236
|
+
*/
|
|
237
|
+
region: Shared.RegionName;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* AWS provider configuration
|
|
241
|
+
*/
|
|
242
|
+
aws?: FluxProviderAWSConfigRequest;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface FluxUpdateParams {
|
|
246
|
+
/**
|
|
247
|
+
* Name of the Connect Flux.
|
|
248
|
+
*/
|
|
249
|
+
name?: string;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
FluxResource.Providers = Providers;
|
|
253
|
+
|
|
254
|
+
export declare namespace FluxResource {
|
|
255
|
+
export {
|
|
256
|
+
type Flux as Flux,
|
|
257
|
+
type FluxList as FluxList,
|
|
258
|
+
type FluxProvider as FluxProvider,
|
|
259
|
+
type FluxProviderAWSConfig as FluxProviderAWSConfig,
|
|
260
|
+
type FluxProviderAWSConfigRequest as FluxProviderAWSConfigRequest,
|
|
261
|
+
type FluxProviderList as FluxProviderList,
|
|
262
|
+
type FluxCreateParams as FluxCreateParams,
|
|
263
|
+
type FluxUpdateParams as FluxUpdateParams,
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
export { Providers as Providers };
|
|
267
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
FluxResource,
|
|
5
|
+
type Flux,
|
|
6
|
+
type FluxList,
|
|
7
|
+
type FluxProvider,
|
|
8
|
+
type FluxProviderAWSConfig,
|
|
9
|
+
type FluxProviderAWSConfigRequest,
|
|
10
|
+
type FluxProviderList,
|
|
11
|
+
type FluxCreateParams,
|
|
12
|
+
type FluxUpdateParams,
|
|
13
|
+
} from './flux';
|
|
14
|
+
export { Providers } from './providers';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as FluxAPI from './flux';
|
|
5
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
|
|
8
|
+
export class Providers extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List all supported providers with regions for Connect Flux.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const fluxProviderList =
|
|
15
|
+
* await client.connect.flux.providers.list();
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
list(options?: RequestOptions): APIPromise<FluxAPI.FluxProviderList> {
|
|
19
|
+
return this._client.get('/v1/connect/flux/providers', options);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,91 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
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 Flux extends APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* List all Connect Flux
|
|
12
|
-
*/
|
|
13
|
-
list(options?: RequestOptions): APIPromise<ConnectFluxList> {
|
|
14
|
-
return this._client.get('/v1/connect/flux', options);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Get Connect Flux details
|
|
19
|
-
*/
|
|
20
|
-
get(fluxID: string, options?: RequestOptions): APIPromise<ConnectFlux> {
|
|
21
|
-
return this._client.get(path`/v1/connect/flux/${fluxID}`, options);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Connect flux details.
|
|
27
|
-
*/
|
|
28
|
-
export interface ConnectFlux {
|
|
29
|
-
/**
|
|
30
|
-
* Unique identifier for the connect flux
|
|
31
|
-
*/
|
|
32
|
-
id: string;
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Connect flux speed in Mbps
|
|
36
|
-
*/
|
|
37
|
-
bandwidth_mbps: 50 | 100 | 200 | 500 | 1000 | 2000 | 5000;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* CIDRs
|
|
41
|
-
*/
|
|
42
|
-
cidrs: Array<string>;
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* When the connect flux was created
|
|
46
|
-
*/
|
|
47
|
-
created_at: string;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Name of the connect flux
|
|
51
|
-
*/
|
|
52
|
-
name: string;
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Provider CIDRs
|
|
56
|
-
*/
|
|
57
|
-
provider_cidrs: Array<string>;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Provider name
|
|
61
|
-
*/
|
|
62
|
-
provider_name: string;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Provider region
|
|
66
|
-
*/
|
|
67
|
-
provider_region: string;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Region the resource is in.
|
|
71
|
-
*/
|
|
72
|
-
region: Shared.RegionName;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Status of the resource.
|
|
76
|
-
*/
|
|
77
|
-
status: Shared.ResourceStatus;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* When the connect flux was updated
|
|
81
|
-
*/
|
|
82
|
-
updated_at: string;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export interface ConnectFluxList {
|
|
86
|
-
items: Array<ConnectFlux>;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export declare namespace Flux {
|
|
90
|
-
export { type ConnectFlux as ConnectFlux, type ConnectFluxList as ConnectFluxList };
|
|
91
|
-
}
|
|
3
|
+
export * from './flux/index';
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Connect } from './connect';
|
|
4
|
-
export {
|
|
4
|
+
export {
|
|
5
|
+
FluxResource,
|
|
6
|
+
type Flux,
|
|
7
|
+
type FluxList,
|
|
8
|
+
type FluxProvider,
|
|
9
|
+
type FluxProviderAWSConfig,
|
|
10
|
+
type FluxProviderAWSConfigRequest,
|
|
11
|
+
type FluxProviderList,
|
|
12
|
+
type FluxCreateParams,
|
|
13
|
+
type FluxUpdateParams,
|
|
14
|
+
} from './flux/index';
|
|
@@ -116,37 +116,37 @@ export class FirewallRules extends APIResource {
|
|
|
116
116
|
*/
|
|
117
117
|
export interface FirewallRule {
|
|
118
118
|
/**
|
|
119
|
-
* Unique identifier for the
|
|
119
|
+
* Unique identifier for the Firewall Rule.
|
|
120
120
|
*/
|
|
121
121
|
id: string;
|
|
122
122
|
|
|
123
123
|
/**
|
|
124
|
-
* When the
|
|
124
|
+
* When the Firewall Rule was created.
|
|
125
125
|
*/
|
|
126
126
|
created_at: string;
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
* Destination address of the
|
|
129
|
+
* Destination address of the Firewall Rule. Either VPC CIDR or VM in VPC.
|
|
130
130
|
*/
|
|
131
131
|
destination_address: string;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
|
-
* Destination ports of the
|
|
134
|
+
* Destination ports of the Firewall Rule.
|
|
135
135
|
*/
|
|
136
136
|
destination_ports: Array<string>;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* Name of the
|
|
139
|
+
* Name of the Firewall Rule.
|
|
140
140
|
*/
|
|
141
141
|
name: string;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
|
-
* Protocol of the
|
|
144
|
+
* Protocol of the Firewall Rule.
|
|
145
145
|
*/
|
|
146
146
|
protocol: 'tcp' | 'udp';
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
* Source address of the
|
|
149
|
+
* Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask
|
|
150
150
|
* of 0.
|
|
151
151
|
*/
|
|
152
152
|
source_address: string;
|
|
@@ -157,12 +157,12 @@ export interface FirewallRule {
|
|
|
157
157
|
status: Shared.ResourceStatus;
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
|
-
* When the
|
|
160
|
+
* When the Firewall Rule was updated.
|
|
161
161
|
*/
|
|
162
162
|
updated_at: string;
|
|
163
163
|
|
|
164
164
|
/**
|
|
165
|
-
* ID of the VPC the
|
|
165
|
+
* ID of the VPC the Firewall Rule belongs to.
|
|
166
166
|
*/
|
|
167
167
|
vpc_id: string;
|
|
168
168
|
}
|
|
@@ -173,27 +173,27 @@ export interface FirewallRuleList {
|
|
|
173
173
|
|
|
174
174
|
export interface FirewallRuleCreateParams {
|
|
175
175
|
/**
|
|
176
|
-
* Destination address of the
|
|
176
|
+
* Destination address of the Firewall Rule. Either VPC CIDR or VM in VPC.
|
|
177
177
|
*/
|
|
178
178
|
destination_address: string;
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
|
-
* Destination ports of the
|
|
181
|
+
* Destination ports of the Firewall Rule.
|
|
182
182
|
*/
|
|
183
183
|
destination_ports: Array<string>;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* Name of the
|
|
186
|
+
* Name of the Firewall Rule.
|
|
187
187
|
*/
|
|
188
188
|
name: string;
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
|
-
* Protocol of the
|
|
191
|
+
* Protocol of the Firewall Rule.
|
|
192
192
|
*/
|
|
193
193
|
protocol: 'tcp' | 'udp';
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
* Source address of the
|
|
196
|
+
* Source address of the Firewall Rule. Address of 0.0.0.0 requires a CIDR mask
|
|
197
197
|
* of 0.
|
|
198
198
|
*/
|
|
199
199
|
source_address: string;
|
|
@@ -206,28 +206,28 @@ export interface FirewallRuleUpdateParams {
|
|
|
206
206
|
vpc_id: string;
|
|
207
207
|
|
|
208
208
|
/**
|
|
209
|
-
* Body param: Destination address of the
|
|
209
|
+
* Body param: Destination address of the Firewall Rule. Either VPC CIDR or VM in
|
|
210
210
|
* VPC.
|
|
211
211
|
*/
|
|
212
212
|
destination_address?: string;
|
|
213
213
|
|
|
214
214
|
/**
|
|
215
|
-
* Body param: Destination ports of the
|
|
215
|
+
* Body param: Destination ports of the Firewall Rule.
|
|
216
216
|
*/
|
|
217
217
|
destination_ports?: Array<string>;
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
|
-
* Body param: Name of the
|
|
220
|
+
* Body param: Name of the Firewall Rule.
|
|
221
221
|
*/
|
|
222
222
|
name?: string;
|
|
223
223
|
|
|
224
224
|
/**
|
|
225
|
-
* Body param: Protocol of the
|
|
225
|
+
* Body param: Protocol of the Firewall Rule.
|
|
226
226
|
*/
|
|
227
227
|
protocol?: 'tcp' | 'udp';
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* Body param: Source address of the
|
|
230
|
+
* Body param: Source address of the Firewall Rule. Address of 0.0.0.0 requires a
|
|
231
231
|
* CIDR mask of 0.
|
|
232
232
|
*/
|
|
233
233
|
source_address?: string;
|
|
@@ -101,22 +101,22 @@ export interface Subnet {
|
|
|
101
101
|
id: string;
|
|
102
102
|
|
|
103
103
|
/**
|
|
104
|
-
* CIDR block for the
|
|
104
|
+
* CIDR block for the Subnet.
|
|
105
105
|
*/
|
|
106
106
|
cidr: string;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
* When the
|
|
109
|
+
* When the Subnet was created.
|
|
110
110
|
*/
|
|
111
111
|
created_at: string;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
|
-
* Name of the
|
|
114
|
+
* Name of the Subnet.
|
|
115
115
|
*/
|
|
116
116
|
name: string;
|
|
117
117
|
|
|
118
118
|
/**
|
|
119
|
-
* When the
|
|
119
|
+
* When the Subnet was updated.
|
|
120
120
|
*/
|
|
121
121
|
updated_at: string;
|
|
122
122
|
}
|
|
@@ -136,7 +136,7 @@ export interface VPC {
|
|
|
136
136
|
created_at: string;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* IDs of the
|
|
139
|
+
* IDs of the Firewall Rules associated with the VPC.
|
|
140
140
|
*/
|
|
141
141
|
firewall_rule_ids: Array<string>;
|
|
142
142
|
|
|
@@ -26,43 +26,43 @@ export class Operations extends APIResource {
|
|
|
26
26
|
*/
|
|
27
27
|
export interface Operation {
|
|
28
28
|
/**
|
|
29
|
-
* Unique identifier for the
|
|
29
|
+
* Unique identifier for the Operation.
|
|
30
30
|
*/
|
|
31
31
|
id: string;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* When the
|
|
34
|
+
* When the Operation was created.
|
|
35
35
|
*/
|
|
36
36
|
created_at: string;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* Kind of
|
|
39
|
+
* Kind of Operation.
|
|
40
40
|
*/
|
|
41
41
|
kind: OperationKind;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* ID of the resource that the
|
|
44
|
+
* ID of the resource that the Operation is acting on.
|
|
45
45
|
*/
|
|
46
46
|
resource_id: string;
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
* Status of the
|
|
49
|
+
* Status of the Operation.
|
|
50
50
|
*/
|
|
51
51
|
status: OperationStatus;
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
|
-
* Type of
|
|
54
|
+
* Type of Operation.
|
|
55
55
|
*/
|
|
56
56
|
type: OperationType;
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
|
-
* When the
|
|
59
|
+
* When the Operation was updated.
|
|
60
60
|
*/
|
|
61
61
|
updated_at: string;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
|
-
* Kind of
|
|
65
|
+
* Kind of Operation.
|
|
66
66
|
*/
|
|
67
67
|
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
68
68
|
|
|
@@ -71,12 +71,12 @@ export interface OperationList {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
|
-
* Status of the
|
|
74
|
+
* Status of the Operation.
|
|
75
75
|
*/
|
|
76
76
|
export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
|
-
* Type of
|
|
79
|
+
* Type of Operation.
|
|
80
80
|
*/
|
|
81
81
|
export type OperationType = 'create' | 'update' | 'delete' | 'restart';
|
|
82
82
|
|
|
@@ -9,7 +9,7 @@ export class Blockchains extends APIResource {
|
|
|
9
9
|
/**
|
|
10
10
|
* List all Dedicated Blockchains
|
|
11
11
|
*/
|
|
12
|
-
list(options?: RequestOptions): APIPromise<DedicatedAPI.
|
|
12
|
+
list(options?: RequestOptions): APIPromise<DedicatedAPI.DedicatedBlockchainList> {
|
|
13
13
|
return this._client.get('/v1/rpc_nodes/dedicated/blockchains', options);
|
|
14
14
|
}
|
|
15
15
|
}
|