@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.
Files changed (164) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/bin/cli +4 -10
  3. package/client.d.mts +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.js +3 -3
  6. package/client.js.map +1 -1
  7. package/client.mjs +3 -3
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/api-keys.d.mts +25 -13
  11. package/resources/api-keys.d.mts.map +1 -1
  12. package/resources/api-keys.d.ts +25 -13
  13. package/resources/api-keys.d.ts.map +1 -1
  14. package/resources/compute/vms/availability.d.mts +3 -3
  15. package/resources/compute/vms/availability.d.ts +3 -3
  16. package/resources/compute/vms/vms.d.mts +3 -3
  17. package/resources/compute/vms/vms.d.ts +3 -3
  18. package/resources/compute/volumes/availability.d.mts +5 -5
  19. package/resources/compute/volumes/availability.d.ts +5 -5
  20. package/resources/compute/volumes/volumes.d.mts +14 -14
  21. package/resources/compute/volumes/volumes.d.ts +14 -14
  22. package/resources/connect/connect.d.mts +4 -4
  23. package/resources/connect/connect.d.mts.map +1 -1
  24. package/resources/connect/connect.d.ts +4 -4
  25. package/resources/connect/connect.d.ts.map +1 -1
  26. package/resources/connect/connect.js +4 -4
  27. package/resources/connect/connect.js.map +1 -1
  28. package/resources/connect/connect.mjs +4 -4
  29. package/resources/connect/connect.mjs.map +1 -1
  30. package/resources/connect/flux/flux.d.mts +204 -0
  31. package/resources/connect/flux/flux.d.mts.map +1 -0
  32. package/resources/connect/flux/flux.d.ts +204 -0
  33. package/resources/connect/flux/flux.d.ts.map +1 -0
  34. package/resources/connect/flux/flux.js +83 -0
  35. package/resources/connect/flux/flux.js.map +1 -0
  36. package/resources/connect/flux/flux.mjs +78 -0
  37. package/resources/connect/flux/flux.mjs.map +1 -0
  38. package/resources/connect/flux/index.d.mts +3 -0
  39. package/resources/connect/flux/index.d.mts.map +1 -0
  40. package/resources/connect/flux/index.d.ts +3 -0
  41. package/resources/connect/flux/index.d.ts.map +1 -0
  42. package/resources/connect/flux/index.js +9 -0
  43. package/resources/connect/flux/index.js.map +1 -0
  44. package/resources/connect/flux/index.mjs +4 -0
  45. package/resources/connect/flux/index.mjs.map +1 -0
  46. package/resources/connect/flux/providers.d.mts +17 -0
  47. package/resources/connect/flux/providers.d.mts.map +1 -0
  48. package/resources/connect/flux/providers.d.ts +17 -0
  49. package/resources/connect/flux/providers.d.ts.map +1 -0
  50. package/resources/connect/flux/providers.js +21 -0
  51. package/resources/connect/flux/providers.js.map +1 -0
  52. package/resources/connect/flux/providers.mjs +17 -0
  53. package/resources/connect/flux/providers.mjs.map +1 -0
  54. package/resources/connect/flux.d.mts +1 -69
  55. package/resources/connect/flux.d.mts.map +1 -1
  56. package/resources/connect/flux.d.ts +1 -69
  57. package/resources/connect/flux.d.ts.map +1 -1
  58. package/resources/connect/flux.js +2 -18
  59. package/resources/connect/flux.js.map +1 -1
  60. package/resources/connect/flux.mjs +1 -16
  61. package/resources/connect/flux.mjs.map +1 -1
  62. package/resources/connect/index.d.mts +1 -1
  63. package/resources/connect/index.d.mts.map +1 -1
  64. package/resources/connect/index.d.ts +1 -1
  65. package/resources/connect/index.d.ts.map +1 -1
  66. package/resources/connect/index.js +3 -3
  67. package/resources/connect/index.js.map +1 -1
  68. package/resources/connect/index.mjs +1 -1
  69. package/resources/connect/index.mjs.map +1 -1
  70. package/resources/networking/firewall-rules.d.mts +19 -19
  71. package/resources/networking/firewall-rules.d.ts +19 -19
  72. package/resources/networking/vpcs/vpcs.d.mts +5 -5
  73. package/resources/networking/vpcs/vpcs.d.ts +5 -5
  74. package/resources/operations.d.mts +10 -10
  75. package/resources/operations.d.ts +10 -10
  76. package/resources/rpc-nodes/dedicated/blockchains.d.mts +1 -1
  77. package/resources/rpc-nodes/dedicated/blockchains.d.mts.map +1 -1
  78. package/resources/rpc-nodes/dedicated/blockchains.d.ts +1 -1
  79. package/resources/rpc-nodes/dedicated/blockchains.d.ts.map +1 -1
  80. package/resources/rpc-nodes/dedicated/dedicated.d.mts +12 -12
  81. package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
  82. package/resources/rpc-nodes/dedicated/dedicated.d.ts +12 -12
  83. package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
  84. package/resources/rpc-nodes/dedicated/dedicated.js +4 -4
  85. package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
  86. package/resources/rpc-nodes/dedicated/dedicated.mjs +2 -2
  87. package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
  88. package/resources/rpc-nodes/dedicated/index.d.mts +1 -1
  89. package/resources/rpc-nodes/dedicated/index.d.mts.map +1 -1
  90. package/resources/rpc-nodes/dedicated/index.d.ts +1 -1
  91. package/resources/rpc-nodes/dedicated/index.d.ts.map +1 -1
  92. package/resources/rpc-nodes/dedicated/index.js +2 -2
  93. package/resources/rpc-nodes/dedicated/index.js.map +1 -1
  94. package/resources/rpc-nodes/dedicated/index.mjs +1 -1
  95. package/resources/rpc-nodes/dedicated/index.mjs.map +1 -1
  96. package/resources/rpc-nodes/flex/blockchains.d.mts +1 -1
  97. package/resources/rpc-nodes/flex/blockchains.d.mts.map +1 -1
  98. package/resources/rpc-nodes/flex/blockchains.d.ts +1 -1
  99. package/resources/rpc-nodes/flex/blockchains.d.ts.map +1 -1
  100. package/resources/rpc-nodes/flex/flex.d.mts +12 -12
  101. package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
  102. package/resources/rpc-nodes/flex/flex.d.ts +12 -12
  103. package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
  104. package/resources/rpc-nodes/flex/flex.js +4 -4
  105. package/resources/rpc-nodes/flex/flex.js.map +1 -1
  106. package/resources/rpc-nodes/flex/flex.mjs +2 -2
  107. package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
  108. package/resources/rpc-nodes/flex/index.d.mts +1 -1
  109. package/resources/rpc-nodes/flex/index.d.mts.map +1 -1
  110. package/resources/rpc-nodes/flex/index.d.ts +1 -1
  111. package/resources/rpc-nodes/flex/index.d.ts.map +1 -1
  112. package/resources/rpc-nodes/flex/index.js +2 -2
  113. package/resources/rpc-nodes/flex/index.js.map +1 -1
  114. package/resources/rpc-nodes/flex/index.mjs +1 -1
  115. package/resources/rpc-nodes/flex/index.mjs.map +1 -1
  116. package/resources/rpc-nodes/index.d.mts +2 -2
  117. package/resources/rpc-nodes/index.d.mts.map +1 -1
  118. package/resources/rpc-nodes/index.d.ts +2 -2
  119. package/resources/rpc-nodes/index.d.ts.map +1 -1
  120. package/resources/rpc-nodes/index.js +3 -3
  121. package/resources/rpc-nodes/index.js.map +1 -1
  122. package/resources/rpc-nodes/index.mjs +2 -2
  123. package/resources/rpc-nodes/index.mjs.map +1 -1
  124. package/resources/rpc-nodes/rpc-nodes.d.mts +6 -6
  125. package/resources/rpc-nodes/rpc-nodes.d.mts.map +1 -1
  126. package/resources/rpc-nodes/rpc-nodes.d.ts +6 -6
  127. package/resources/rpc-nodes/rpc-nodes.d.ts.map +1 -1
  128. package/resources/rpc-nodes/rpc-nodes.js +4 -4
  129. package/resources/rpc-nodes/rpc-nodes.js.map +1 -1
  130. package/resources/rpc-nodes/rpc-nodes.mjs +6 -6
  131. package/resources/rpc-nodes/rpc-nodes.mjs.map +1 -1
  132. package/resources/user.d.mts +6 -3
  133. package/resources/user.d.mts.map +1 -1
  134. package/resources/user.d.ts +6 -3
  135. package/resources/user.d.ts.map +1 -1
  136. package/src/client.ts +3 -3
  137. package/src/resources/api-keys.ts +28 -13
  138. package/src/resources/compute/vms/availability.ts +3 -3
  139. package/src/resources/compute/vms/vms.ts +3 -3
  140. package/src/resources/compute/volumes/availability.ts +5 -5
  141. package/src/resources/compute/volumes/volumes.ts +14 -14
  142. package/src/resources/connect/connect.ts +25 -5
  143. package/src/resources/connect/flux/flux.ts +267 -0
  144. package/src/resources/connect/flux/index.ts +14 -0
  145. package/src/resources/connect/flux/providers.ts +21 -0
  146. package/src/resources/connect/flux.ts +1 -89
  147. package/src/resources/connect/index.ts +11 -1
  148. package/src/resources/networking/firewall-rules.ts +19 -19
  149. package/src/resources/networking/vpcs/vpcs.ts +5 -5
  150. package/src/resources/operations.ts +10 -10
  151. package/src/resources/rpc-nodes/dedicated/blockchains.ts +1 -1
  152. package/src/resources/rpc-nodes/dedicated/dedicated.ts +16 -16
  153. package/src/resources/rpc-nodes/dedicated/index.ts +5 -5
  154. package/src/resources/rpc-nodes/flex/blockchains.ts +1 -1
  155. package/src/resources/rpc-nodes/flex/flex.ts +16 -16
  156. package/src/resources/rpc-nodes/flex/index.ts +1 -7
  157. package/src/resources/rpc-nodes/index.ts +10 -10
  158. package/src/resources/rpc-nodes/rpc-nodes.ts +19 -25
  159. package/src/resources/user.ts +6 -3
  160. package/src/version.ts +1 -1
  161. package/version.d.mts +1 -1
  162. package/version.d.ts +1 -1
  163. package/version.js +1 -1
  164. 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
- import { APIResource } from '../../core/resource';
4
- import * as Shared from '../shared';
5
- import { APIPromise } from '../../core/api-promise';
6
- import { RequestOptions } from '../../internal/request-options';
7
- import { path } from '../../internal/utils/path';
8
-
9
- export class 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 { Flux, type ConnectFlux, type ConnectFluxList } from './flux';
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 firewall rule.
119
+ * Unique identifier for the Firewall Rule.
120
120
  */
121
121
  id: string;
122
122
 
123
123
  /**
124
- * When the firewall rule was created.
124
+ * When the Firewall Rule was created.
125
125
  */
126
126
  created_at: string;
127
127
 
128
128
  /**
129
- * Destination address of the firewall rule. Either VPC CIDR or VM in VPC.
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 firewall rule.
134
+ * Destination ports of the Firewall Rule.
135
135
  */
136
136
  destination_ports: Array<string>;
137
137
 
138
138
  /**
139
- * Name of the firewall rule.
139
+ * Name of the Firewall Rule.
140
140
  */
141
141
  name: string;
142
142
 
143
143
  /**
144
- * Protocol of the firewall rule.
144
+ * Protocol of the Firewall Rule.
145
145
  */
146
146
  protocol: 'tcp' | 'udp';
147
147
 
148
148
  /**
149
- * Source address of the firewall rule. Address of 0.0.0.0 requires a CIDR mask
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 firewall rule was updated.
160
+ * When the Firewall Rule was updated.
161
161
  */
162
162
  updated_at: string;
163
163
 
164
164
  /**
165
- * ID of the VPC the firewall rule belongs to.
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 firewall rule. Either VPC CIDR or VM in VPC.
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 firewall rule.
181
+ * Destination ports of the Firewall Rule.
182
182
  */
183
183
  destination_ports: Array<string>;
184
184
 
185
185
  /**
186
- * Name of the firewall rule.
186
+ * Name of the Firewall Rule.
187
187
  */
188
188
  name: string;
189
189
 
190
190
  /**
191
- * Protocol of the firewall rule.
191
+ * Protocol of the Firewall Rule.
192
192
  */
193
193
  protocol: 'tcp' | 'udp';
194
194
 
195
195
  /**
196
- * Source address of the firewall rule. Address of 0.0.0.0 requires a CIDR mask
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 firewall rule. Either VPC CIDR or VM in
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 firewall rule.
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 firewall rule.
220
+ * Body param: Name of the Firewall Rule.
221
221
  */
222
222
  name?: string;
223
223
 
224
224
  /**
225
- * Body param: Protocol of the firewall rule.
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 firewall rule. Address of 0.0.0.0 requires a
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 subnet.
104
+ * CIDR block for the Subnet.
105
105
  */
106
106
  cidr: string;
107
107
 
108
108
  /**
109
- * When the subnet was created.
109
+ * When the Subnet was created.
110
110
  */
111
111
  created_at: string;
112
112
 
113
113
  /**
114
- * Name of the subnet.
114
+ * Name of the Subnet.
115
115
  */
116
116
  name: string;
117
117
 
118
118
  /**
119
- * When the subnet was updated.
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 firewall rules associated with the VPC.
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 operation.
29
+ * Unique identifier for the Operation.
30
30
  */
31
31
  id: string;
32
32
 
33
33
  /**
34
- * When the operation was created.
34
+ * When the Operation was created.
35
35
  */
36
36
  created_at: string;
37
37
 
38
38
  /**
39
- * Kind of operation.
39
+ * Kind of Operation.
40
40
  */
41
41
  kind: OperationKind;
42
42
 
43
43
  /**
44
- * ID of the resource that the operation is acting on.
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 operation.
49
+ * Status of the Operation.
50
50
  */
51
51
  status: OperationStatus;
52
52
 
53
53
  /**
54
- * Type of operation.
54
+ * Type of Operation.
55
55
  */
56
56
  type: OperationType;
57
57
 
58
58
  /**
59
- * When the operation was updated.
59
+ * When the Operation was updated.
60
60
  */
61
61
  updated_at: string;
62
62
  }
63
63
 
64
64
  /**
65
- * Kind of operation.
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 operation.
74
+ * Status of the Operation.
75
75
  */
76
76
  export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
77
77
 
78
78
  /**
79
- * Type of operation.
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.RPCNodesDedicatedBlockchainList> {
12
+ list(options?: RequestOptions): APIPromise<DedicatedAPI.DedicatedBlockchainList> {
13
13
  return this._client.get('/v1/rpc_nodes/dedicated/blockchains', options);
14
14
  }
15
15
  }