@nirvana-labs/nirvana 1.46.2 → 1.47.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 +26 -0
- package/client.d.mts +5 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -5
- package/client.d.ts.map +1 -1
- package/client.js +12 -5
- package/client.js.map +1 -1
- package/client.mjs +12 -5
- package/client.mjs.map +1 -1
- package/internal/tslib.js +6 -6
- package/package.json +1 -1
- package/resources/api-keys/api-keys.d.mts +168 -0
- package/resources/api-keys/api-keys.d.mts.map +1 -0
- package/resources/api-keys/api-keys.d.ts +168 -0
- package/resources/api-keys/api-keys.d.ts.map +1 -0
- package/resources/api-keys/api-keys.js +76 -0
- package/resources/api-keys/api-keys.js.map +1 -0
- package/resources/api-keys/api-keys.mjs +72 -0
- package/resources/api-keys/api-keys.mjs.map +1 -0
- package/resources/api-keys/index.d.mts +2 -0
- package/resources/api-keys/index.d.mts.map +1 -0
- package/resources/api-keys/index.d.ts +2 -0
- package/resources/api-keys/index.d.ts.map +1 -0
- package/resources/api-keys/index.js +7 -0
- package/resources/api-keys/index.js.map +1 -0
- package/resources/api-keys/index.mjs +3 -0
- package/resources/api-keys/index.mjs.map +1 -0
- package/resources/api-keys.d.mts +1 -167
- package/resources/api-keys.d.mts.map +1 -1
- package/resources/api-keys.d.ts +1 -167
- package/resources/api-keys.d.ts.map +1 -1
- package/resources/api-keys.js +2 -72
- package/resources/api-keys.js.map +1 -1
- package/resources/api-keys.mjs +1 -70
- package/resources/api-keys.mjs.map +1 -1
- package/resources/compute/vms/vms.d.mts +1 -1
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +1 -1
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/volumes/volumes.d.mts +1 -1
- package/resources/compute/volumes/volumes.d.mts.map +1 -1
- package/resources/compute/volumes/volumes.d.ts +1 -1
- package/resources/compute/volumes/volumes.d.ts.map +1 -1
- package/resources/networking/connect/connections.d.mts +1 -1
- package/resources/networking/connect/connections.d.mts.map +1 -1
- package/resources/networking/connect/connections.d.ts +1 -1
- package/resources/networking/connect/connections.d.ts.map +1 -1
- package/resources/networking/firewall-rules.d.mts +1 -1
- package/resources/networking/firewall-rules.d.mts.map +1 -1
- package/resources/networking/firewall-rules.d.ts +1 -1
- package/resources/networking/firewall-rules.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.mts +1 -1
- package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.ts +1 -1
- package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
- package/resources/operations/index.d.mts +2 -0
- package/resources/operations/index.d.mts.map +1 -0
- package/resources/operations/index.d.ts +2 -0
- package/resources/operations/index.d.ts.map +1 -0
- package/resources/operations/index.js +7 -0
- package/resources/operations/index.js.map +1 -0
- package/resources/operations/index.mjs +3 -0
- package/resources/operations/index.mjs.map +1 -0
- package/resources/operations/operations.d.mts +82 -0
- package/resources/operations/operations.d.mts.map +1 -0
- package/resources/operations/operations.d.ts +82 -0
- package/resources/operations/operations.d.ts.map +1 -0
- package/resources/operations/operations.js +23 -0
- package/resources/operations/operations.js.map +1 -0
- package/resources/operations/operations.mjs +19 -0
- package/resources/operations/operations.mjs.map +1 -0
- package/resources/operations.d.mts +1 -81
- package/resources/operations.d.mts.map +1 -1
- package/resources/operations.d.ts +1 -81
- package/resources/operations.d.ts.map +1 -1
- package/resources/operations.js +2 -19
- package/resources/operations.js.map +1 -1
- package/resources/operations.mjs +1 -17
- package/resources/operations.mjs.map +1 -1
- package/resources/organizations/index.d.mts +2 -0
- package/resources/organizations/index.d.mts.map +1 -0
- package/resources/organizations/index.d.ts +2 -0
- package/resources/organizations/index.d.ts.map +1 -0
- package/resources/organizations/index.js +7 -0
- package/resources/organizations/index.js.map +1 -0
- package/resources/organizations/index.mjs +3 -0
- package/resources/organizations/index.mjs.map +1 -0
- package/resources/organizations/organizations.d.mts +103 -0
- package/resources/organizations/organizations.d.mts.map +1 -0
- package/resources/organizations/organizations.d.ts +103 -0
- package/resources/organizations/organizations.d.ts.map +1 -0
- package/resources/organizations/organizations.js +64 -0
- package/resources/organizations/organizations.js.map +1 -0
- package/resources/organizations/organizations.mjs +60 -0
- package/resources/organizations/organizations.mjs.map +1 -0
- package/resources/organizations.d.mts +1 -102
- package/resources/organizations.d.mts.map +1 -1
- package/resources/organizations.d.ts +1 -102
- package/resources/organizations.d.ts.map +1 -1
- package/resources/organizations.js +2 -60
- package/resources/organizations.js.map +1 -1
- package/resources/organizations.mjs +1 -58
- package/resources/organizations.mjs.map +1 -1
- package/resources/projects/index.d.mts +2 -0
- package/resources/projects/index.d.mts.map +1 -0
- package/resources/projects/index.d.ts +2 -0
- package/resources/projects/index.d.ts.map +1 -0
- package/resources/projects/index.js +7 -0
- package/resources/projects/index.js.map +1 -0
- package/resources/projects/index.mjs +3 -0
- package/resources/projects/index.mjs.map +1 -0
- package/resources/projects/projects.d.mts +171 -0
- package/resources/projects/projects.d.mts.map +1 -0
- package/resources/projects/projects.d.ts +171 -0
- package/resources/projects/projects.d.ts.map +1 -0
- package/resources/projects/projects.js +75 -0
- package/resources/projects/projects.js.map +1 -0
- package/resources/projects/projects.mjs +71 -0
- package/resources/projects/projects.mjs.map +1 -0
- package/resources/projects.d.mts +1 -174
- package/resources/projects.d.mts.map +1 -1
- package/resources/projects.d.ts +1 -174
- package/resources/projects.d.ts.map +1 -1
- package/resources/projects.js +2 -71
- package/resources/projects.js.map +1 -1
- package/resources/projects.mjs +1 -69
- package/resources/projects.mjs.map +1 -1
- package/resources/regions/index.d.mts +2 -0
- package/resources/regions/index.d.mts.map +1 -0
- package/resources/regions/index.d.ts +2 -0
- package/resources/regions/index.d.ts.map +1 -0
- package/resources/regions/index.js +7 -0
- package/resources/regions/index.js.map +1 -0
- package/resources/regions/index.mjs +3 -0
- package/resources/regions/index.mjs.map +1 -0
- package/resources/regions/regions.d.mts +108 -0
- package/resources/regions/regions.d.mts.map +1 -0
- package/resources/regions/regions.d.ts +108 -0
- package/resources/regions/regions.d.ts.map +1 -0
- package/resources/regions/regions.js +36 -0
- package/resources/regions/regions.js.map +1 -0
- package/resources/regions/regions.mjs +32 -0
- package/resources/regions/regions.mjs.map +1 -0
- package/resources/regions.d.mts +1 -107
- package/resources/regions.d.mts.map +1 -1
- package/resources/regions.d.ts +1 -107
- package/resources/regions.d.ts.map +1 -1
- package/resources/regions.js +2 -32
- package/resources/regions.js.map +1 -1
- package/resources/regions.mjs +1 -30
- package/resources/regions.mjs.map +1 -1
- package/src/client.ts +13 -5
- package/src/resources/api-keys/api-keys.ts +223 -0
- package/src/resources/api-keys/api.md +14 -0
- package/src/resources/api-keys/index.ts +3 -0
- package/src/resources/api-keys.ts +1 -221
- package/src/resources/compute/api.md +68 -0
- package/src/resources/compute/vms/vms.ts +1 -1
- package/src/resources/compute/volumes/volumes.ts +1 -1
- package/src/resources/networking/api.md +67 -0
- package/src/resources/networking/connect/connections.ts +1 -1
- package/src/resources/networking/firewall-rules.ts +1 -1
- package/src/resources/networking/vpcs/vpcs.ts +1 -1
- package/src/resources/operations/api.md +14 -0
- package/src/resources/operations/index.ts +3 -0
- package/src/resources/operations/operations.ts +114 -0
- package/src/resources/operations.ts +1 -112
- package/src/resources/organizations/api.md +13 -0
- package/src/resources/organizations/index.ts +3 -0
- package/src/resources/organizations/organizations.ts +142 -0
- package/src/resources/organizations.ts +1 -140
- package/src/resources/projects/api.md +14 -0
- package/src/resources/projects/index.ts +3 -0
- package/src/resources/projects/projects.ts +224 -0
- package/src/resources/projects.ts +1 -227
- package/src/resources/regions/api.md +12 -0
- package/src/resources/regions/index.ts +3 -0
- package/src/resources/regions/regions.ts +140 -0
- package/src/resources/regions.ts +1 -138
- package/src/resources/rpc-nodes/api.md +44 -0
- package/src/resources/user/api.md +20 -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,223 +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 { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
7
|
-
import { buildHeaders } from '../internal/headers';
|
|
8
|
-
import { RequestOptions } from '../internal/request-options';
|
|
9
|
-
import { path } from '../internal/utils/path';
|
|
10
|
-
|
|
11
|
-
export class APIKeys extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Create a new API key
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const apiKey = await client.apiKeys.create({
|
|
18
|
-
* expires_at: '2025-12-31T23:59:59Z',
|
|
19
|
-
* name: 'My API Key',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
create(body: APIKeyCreateParams, options?: RequestOptions): APIPromise<APIKey> {
|
|
24
|
-
return this._client.post('/v1/api_keys', { body, ...options });
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Update an existing API key
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```ts
|
|
32
|
-
* const apiKey = await client.apiKeys.update('api_key_id');
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
update(apiKeyID: string, body: APIKeyUpdateParams, options?: RequestOptions): APIPromise<APIKey> {
|
|
36
|
-
return this._client.patch(path`/v1/api_keys/${apiKeyID}`, { body, ...options });
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* List all API keys for the authenticated user
|
|
41
|
-
*
|
|
42
|
-
* @example
|
|
43
|
-
* ```ts
|
|
44
|
-
* // Automatically fetches more pages as needed.
|
|
45
|
-
* for await (const apiKey of client.apiKeys.list()) {
|
|
46
|
-
* // ...
|
|
47
|
-
* }
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
list(
|
|
51
|
-
query: APIKeyListParams | null | undefined = {},
|
|
52
|
-
options?: RequestOptions,
|
|
53
|
-
): PagePromise<APIKeysCursor, APIKey> {
|
|
54
|
-
return this._client.getAPIList('/v1/api_keys', Cursor<APIKey>, { query, ...options });
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Delete an API key
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* ```ts
|
|
62
|
-
* await client.apiKeys.delete('api_key_id');
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
delete(apiKeyID: string, options?: RequestOptions): APIPromise<void> {
|
|
66
|
-
return this._client.delete(path`/v1/api_keys/${apiKeyID}`, {
|
|
67
|
-
...options,
|
|
68
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Get details about an API key
|
|
74
|
-
*
|
|
75
|
-
* @example
|
|
76
|
-
* ```ts
|
|
77
|
-
* const apiKey = await client.apiKeys.get('api_key_id');
|
|
78
|
-
* ```
|
|
79
|
-
*/
|
|
80
|
-
get(apiKeyID: string, options?: RequestOptions): APIPromise<APIKey> {
|
|
81
|
-
return this._client.get(path`/v1/api_keys/${apiKeyID}`, options);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export type APIKeysCursor = Cursor<APIKey>;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* API Key response.
|
|
89
|
-
*/
|
|
90
|
-
export interface APIKey {
|
|
91
|
-
/**
|
|
92
|
-
* API Key ID.
|
|
93
|
-
*/
|
|
94
|
-
id: string;
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* When the API Key was created.
|
|
98
|
-
*/
|
|
99
|
-
created_at: string;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* When the API Key expires and is no longer valid.
|
|
103
|
-
*/
|
|
104
|
-
expires_at: string;
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* API Key name.
|
|
108
|
-
*/
|
|
109
|
-
name: string;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* IP filter rules.
|
|
113
|
-
*/
|
|
114
|
-
source_ip_rule: APIKey.SourceIPRule;
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Status of the API Key.
|
|
118
|
-
*/
|
|
119
|
-
status: 'active' | 'inactive' | 'expired';
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Tags to attach to the API Key.
|
|
123
|
-
*/
|
|
124
|
-
tags: Array<string>;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* When the API Key was updated.
|
|
128
|
-
*/
|
|
129
|
-
updated_at: string;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* API Key. Only returned on creation.
|
|
133
|
-
*/
|
|
134
|
-
key?: string;
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* When the API Key starts to be valid.
|
|
138
|
-
*/
|
|
139
|
-
starts_at?: string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export namespace APIKey {
|
|
143
|
-
/**
|
|
144
|
-
* IP filter rules.
|
|
145
|
-
*/
|
|
146
|
-
export interface SourceIPRule {
|
|
147
|
-
/**
|
|
148
|
-
* List of IPv4 CIDR addresses to allow.
|
|
149
|
-
*/
|
|
150
|
-
allowed: Array<string>;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* List of IPv4 CIDR addresses to deny.
|
|
154
|
-
*/
|
|
155
|
-
blocked: Array<string>;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface APIKeyList {
|
|
160
|
-
items: Array<APIKey>;
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* Pagination response details.
|
|
164
|
-
*/
|
|
165
|
-
pagination: Shared.Pagination;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
export interface APIKeyCreateParams {
|
|
169
|
-
/**
|
|
170
|
-
* When the API Key expires and is no longer valid.
|
|
171
|
-
*/
|
|
172
|
-
expires_at: string;
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* API Key name.
|
|
176
|
-
*/
|
|
177
|
-
name: string;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* IP filter rules.
|
|
181
|
-
*/
|
|
182
|
-
source_ip_rule?: Shared.SourceIPRule;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* When the API Key starts to be valid.
|
|
186
|
-
*/
|
|
187
|
-
starts_at?: string;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Tags to attach to the API Key.
|
|
191
|
-
*/
|
|
192
|
-
tags?: Array<string>;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export interface APIKeyUpdateParams {
|
|
196
|
-
/**
|
|
197
|
-
* API Key name.
|
|
198
|
-
*/
|
|
199
|
-
name?: string;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* IP filter rules.
|
|
203
|
-
*/
|
|
204
|
-
source_ip_rule?: Shared.SourceIPRule;
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Tags to attach to the API Key.
|
|
208
|
-
*/
|
|
209
|
-
tags?: Array<string>;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export interface APIKeyListParams extends CursorParams {}
|
|
213
|
-
|
|
214
|
-
export declare namespace APIKeys {
|
|
215
|
-
export {
|
|
216
|
-
type APIKey as APIKey,
|
|
217
|
-
type APIKeyList as APIKeyList,
|
|
218
|
-
type APIKeysCursor as APIKeysCursor,
|
|
219
|
-
type APIKeyCreateParams as APIKeyCreateParams,
|
|
220
|
-
type APIKeyUpdateParams as APIKeyUpdateParams,
|
|
221
|
-
type APIKeyListParams as APIKeyListParams,
|
|
222
|
-
};
|
|
223
|
-
}
|
|
3
|
+
export * from './api-keys/index';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# Compute
|
|
2
|
+
|
|
3
|
+
## VMs
|
|
4
|
+
|
|
5
|
+
Types:
|
|
6
|
+
|
|
7
|
+
- <code><a href="./src/resources/compute/vms/vms.ts">CPUConfig</a></code>
|
|
8
|
+
- <code><a href="./src/resources/compute/vms/vms.ts">CPUConfigRequest</a></code>
|
|
9
|
+
- <code><a href="./src/resources/compute/vms/vms.ts">MemoryConfig</a></code>
|
|
10
|
+
- <code><a href="./src/resources/compute/vms/vms.ts">MemoryConfigRequest</a></code>
|
|
11
|
+
- <code><a href="./src/resources/compute/vms/vms.ts">OSImage</a></code>
|
|
12
|
+
- <code><a href="./src/resources/compute/vms/vms.ts">SSHKeyRequest</a></code>
|
|
13
|
+
- <code><a href="./src/resources/compute/vms/vms.ts">VM</a></code>
|
|
14
|
+
- <code><a href="./src/resources/compute/vms/vms.ts">VMList</a></code>
|
|
15
|
+
|
|
16
|
+
Methods:
|
|
17
|
+
|
|
18
|
+
- <code title="post /v1/compute/vms">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">create</a>({ ...params }) -> Operation</code>
|
|
19
|
+
- <code title="patch /v1/compute/vms/{vm_id}">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">update</a>(vmID, { ...params }) -> Operation</code>
|
|
20
|
+
- <code title="get /v1/compute/vms">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">list</a>({ ...params }) -> VMsCursor</code>
|
|
21
|
+
- <code title="delete /v1/compute/vms/{vm_id}">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">delete</a>(vmID) -> Operation</code>
|
|
22
|
+
- <code title="get /v1/compute/vms/{vm_id}">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">get</a>(vmID) -> VM</code>
|
|
23
|
+
- <code title="post /v1/compute/vms/{vm_id}/restart">client.compute.vms.<a href="./src/resources/compute/vms/vms.ts">restart</a>(vmID) -> Operation</code>
|
|
24
|
+
|
|
25
|
+
### Availability
|
|
26
|
+
|
|
27
|
+
Methods:
|
|
28
|
+
|
|
29
|
+
- <code title="post /v1/compute/vms/availability">client.compute.vms.availability.<a href="./src/resources/compute/vms/availability.ts">create</a>({ ...params }) -> void</code>
|
|
30
|
+
- <code title="patch /v1/compute/vms/{vm_id}/availability">client.compute.vms.availability.<a href="./src/resources/compute/vms/availability.ts">update</a>(vmID, { ...params }) -> void</code>
|
|
31
|
+
|
|
32
|
+
### Volumes
|
|
33
|
+
|
|
34
|
+
Methods:
|
|
35
|
+
|
|
36
|
+
- <code title="get /v1/compute/vms/{vm_id}/volumes">client.compute.vms.volumes.<a href="./src/resources/compute/vms/volumes.ts">list</a>(vmID, { ...params }) -> VolumesCursor</code>
|
|
37
|
+
|
|
38
|
+
### OSImages
|
|
39
|
+
|
|
40
|
+
Methods:
|
|
41
|
+
|
|
42
|
+
- <code title="get /v1/compute/vms/os_images">client.compute.vms.osImages.<a href="./src/resources/compute/vms/os-images.ts">list</a>({ ...params }) -> OSImagesCursor</code>
|
|
43
|
+
|
|
44
|
+
## Volumes
|
|
45
|
+
|
|
46
|
+
Types:
|
|
47
|
+
|
|
48
|
+
- <code><a href="./src/resources/compute/volumes/volumes.ts">Volume</a></code>
|
|
49
|
+
- <code><a href="./src/resources/compute/volumes/volumes.ts">VolumeKind</a></code>
|
|
50
|
+
- <code><a href="./src/resources/compute/volumes/volumes.ts">VolumeList</a></code>
|
|
51
|
+
- <code><a href="./src/resources/compute/volumes/volumes.ts">VolumeType</a></code>
|
|
52
|
+
|
|
53
|
+
Methods:
|
|
54
|
+
|
|
55
|
+
- <code title="post /v1/compute/volumes">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">create</a>({ ...params }) -> Operation</code>
|
|
56
|
+
- <code title="patch /v1/compute/volumes/{volume_id}">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">update</a>(volumeID, { ...params }) -> Operation</code>
|
|
57
|
+
- <code title="get /v1/compute/volumes">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">list</a>({ ...params }) -> VolumesCursor</code>
|
|
58
|
+
- <code title="delete /v1/compute/volumes/{volume_id}">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">delete</a>(volumeID) -> Operation</code>
|
|
59
|
+
- <code title="post /v1/compute/volumes/{volume_id}/attach">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">attach</a>(volumeID, { ...params }) -> Operation</code>
|
|
60
|
+
- <code title="post /v1/compute/volumes/{volume_id}/detach">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">detach</a>(volumeID) -> Operation</code>
|
|
61
|
+
- <code title="get /v1/compute/volumes/{volume_id}">client.compute.volumes.<a href="./src/resources/compute/volumes/volumes.ts">get</a>(volumeID) -> Volume</code>
|
|
62
|
+
|
|
63
|
+
### Availability
|
|
64
|
+
|
|
65
|
+
Methods:
|
|
66
|
+
|
|
67
|
+
- <code title="post /v1/compute/volumes/availability">client.compute.volumes.availability.<a href="./src/resources/compute/volumes/availability.ts">create</a>({ ...params }) -> void</code>
|
|
68
|
+
- <code title="patch /v1/compute/volumes/{volume_id}/availability">client.compute.volumes.availability.<a href="./src/resources/compute/volumes/availability.ts">update</a>(volumeID, { ...params }) -> void</code>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as OperationsAPI from '../../operations';
|
|
5
4
|
import * as Shared from '../../shared';
|
|
5
|
+
import * as OperationsAPI from '../../operations/operations';
|
|
6
6
|
import * as AvailabilityAPI from './availability';
|
|
7
7
|
import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from './availability';
|
|
8
8
|
import * as OSImagesAPI from './os-images';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as OperationsAPI from '../../operations';
|
|
5
4
|
import * as Shared from '../../shared';
|
|
5
|
+
import * as OperationsAPI from '../../operations/operations';
|
|
6
6
|
import * as AvailabilityAPI from './availability';
|
|
7
7
|
import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from './availability';
|
|
8
8
|
import { APIPromise } from '../../../core/api-promise';
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Networking
|
|
2
|
+
|
|
3
|
+
## VPCs
|
|
4
|
+
|
|
5
|
+
Types:
|
|
6
|
+
|
|
7
|
+
- <code><a href="./src/resources/networking/vpcs/vpcs.ts">Subnet</a></code>
|
|
8
|
+
- <code><a href="./src/resources/networking/vpcs/vpcs.ts">VPC</a></code>
|
|
9
|
+
- <code><a href="./src/resources/networking/vpcs/vpcs.ts">VPCList</a></code>
|
|
10
|
+
|
|
11
|
+
Methods:
|
|
12
|
+
|
|
13
|
+
- <code title="post /v1/networking/vpcs">client.networking.vpcs.<a href="./src/resources/networking/vpcs/vpcs.ts">create</a>({ ...params }) -> Operation</code>
|
|
14
|
+
- <code title="patch /v1/networking/vpcs/{vpc_id}">client.networking.vpcs.<a href="./src/resources/networking/vpcs/vpcs.ts">update</a>(vpcID, { ...params }) -> Operation</code>
|
|
15
|
+
- <code title="get /v1/networking/vpcs">client.networking.vpcs.<a href="./src/resources/networking/vpcs/vpcs.ts">list</a>({ ...params }) -> VPCsCursor</code>
|
|
16
|
+
- <code title="delete /v1/networking/vpcs/{vpc_id}">client.networking.vpcs.<a href="./src/resources/networking/vpcs/vpcs.ts">delete</a>(vpcID) -> Operation</code>
|
|
17
|
+
- <code title="get /v1/networking/vpcs/{vpc_id}">client.networking.vpcs.<a href="./src/resources/networking/vpcs/vpcs.ts">get</a>(vpcID) -> VPC</code>
|
|
18
|
+
|
|
19
|
+
### Availability
|
|
20
|
+
|
|
21
|
+
Methods:
|
|
22
|
+
|
|
23
|
+
- <code title="post /v1/networking/vpcs/availability">client.networking.vpcs.availability.<a href="./src/resources/networking/vpcs/availability.ts">create</a>({ ...params }) -> void</code>
|
|
24
|
+
- <code title="patch /v1/networking/vpcs/{vpc_id}/availability">client.networking.vpcs.availability.<a href="./src/resources/networking/vpcs/availability.ts">update</a>(vpcID, { ...params }) -> void</code>
|
|
25
|
+
|
|
26
|
+
## FirewallRules
|
|
27
|
+
|
|
28
|
+
Types:
|
|
29
|
+
|
|
30
|
+
- <code><a href="./src/resources/networking/firewall-rules.ts">FirewallRule</a></code>
|
|
31
|
+
- <code><a href="./src/resources/networking/firewall-rules.ts">FirewallRuleList</a></code>
|
|
32
|
+
|
|
33
|
+
Methods:
|
|
34
|
+
|
|
35
|
+
- <code title="post /v1/networking/vpcs/{vpc_id}/firewall_rules">client.networking.firewallRules.<a href="./src/resources/networking/firewall-rules.ts">create</a>(vpcID, { ...params }) -> Operation</code>
|
|
36
|
+
- <code title="patch /v1/networking/vpcs/{vpc_id}/firewall_rules/{firewall_rule_id}">client.networking.firewallRules.<a href="./src/resources/networking/firewall-rules.ts">update</a>(firewallRuleID, { ...params }) -> Operation</code>
|
|
37
|
+
- <code title="get /v1/networking/vpcs/{vpc_id}/firewall_rules">client.networking.firewallRules.<a href="./src/resources/networking/firewall-rules.ts">list</a>(vpcID, { ...params }) -> FirewallRulesCursor</code>
|
|
38
|
+
- <code title="delete /v1/networking/vpcs/{vpc_id}/firewall_rules/{firewall_rule_id}">client.networking.firewallRules.<a href="./src/resources/networking/firewall-rules.ts">delete</a>(firewallRuleID, { ...params }) -> Operation</code>
|
|
39
|
+
- <code title="get /v1/networking/vpcs/{vpc_id}/firewall_rules/{firewall_rule_id}">client.networking.firewallRules.<a href="./src/resources/networking/firewall-rules.ts">get</a>(firewallRuleID, { ...params }) -> FirewallRule</code>
|
|
40
|
+
|
|
41
|
+
## Connect
|
|
42
|
+
|
|
43
|
+
Types:
|
|
44
|
+
|
|
45
|
+
- <code><a href="./src/resources/networking/connect/connect.ts">ConnectBandwidthMbps</a></code>
|
|
46
|
+
- <code><a href="./src/resources/networking/connect/connect.ts">ConnectConnection</a></code>
|
|
47
|
+
- <code><a href="./src/resources/networking/connect/connect.ts">ConnectConnectionAWSConfig</a></code>
|
|
48
|
+
- <code><a href="./src/resources/networking/connect/connect.ts">ConnectConnectionAWSConfigRequest</a></code>
|
|
49
|
+
- <code><a href="./src/resources/networking/connect/connect.ts">ConnectConnectionList</a></code>
|
|
50
|
+
- <code><a href="./src/resources/networking/connect/connect.ts">ConnectRoute</a></code>
|
|
51
|
+
- <code><a href="./src/resources/networking/connect/connect.ts">ConnectRouteList</a></code>
|
|
52
|
+
|
|
53
|
+
### Connections
|
|
54
|
+
|
|
55
|
+
Methods:
|
|
56
|
+
|
|
57
|
+
- <code title="post /v1/networking/connect/connections">client.networking.connect.connections.<a href="./src/resources/networking/connect/connections.ts">create</a>({ ...params }) -> Operation</code>
|
|
58
|
+
- <code title="patch /v1/networking/connect/connections/{connection_id}">client.networking.connect.connections.<a href="./src/resources/networking/connect/connections.ts">update</a>(connectionID, { ...params }) -> Operation</code>
|
|
59
|
+
- <code title="get /v1/networking/connect/connections">client.networking.connect.connections.<a href="./src/resources/networking/connect/connections.ts">list</a>({ ...params }) -> ConnectConnectionsCursor</code>
|
|
60
|
+
- <code title="delete /v1/networking/connect/connections/{connection_id}">client.networking.connect.connections.<a href="./src/resources/networking/connect/connections.ts">delete</a>(connectionID) -> Operation</code>
|
|
61
|
+
- <code title="get /v1/networking/connect/connections/{connection_id}">client.networking.connect.connections.<a href="./src/resources/networking/connect/connections.ts">get</a>(connectionID) -> ConnectConnection</code>
|
|
62
|
+
|
|
63
|
+
### Routes
|
|
64
|
+
|
|
65
|
+
Methods:
|
|
66
|
+
|
|
67
|
+
- <code title="get /v1/networking/connect/routes">client.networking.connect.routes.<a href="./src/resources/networking/connect/routes.ts">list</a>({ ...params }) -> ConnectRoutesCursor</code>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as OperationsAPI from '../../operations';
|
|
5
4
|
import * as Shared from '../../shared';
|
|
5
|
+
import * as OperationsAPI from '../../operations/operations';
|
|
6
6
|
import * as ConnectAPI from './connect';
|
|
7
7
|
import { ConnectConnectionsCursor } from './connect';
|
|
8
8
|
import { APIPromise } from '../../../core/api-promise';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
-
import * as OperationsAPI from '../operations';
|
|
5
4
|
import * as Shared from '../shared';
|
|
5
|
+
import * as OperationsAPI from '../operations/operations';
|
|
6
6
|
import { APIPromise } from '../../core/api-promise';
|
|
7
7
|
import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
|
|
8
8
|
import { RequestOptions } from '../../internal/request-options';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
-
import * as OperationsAPI from '../../operations';
|
|
5
4
|
import * as Shared from '../../shared';
|
|
5
|
+
import * as OperationsAPI from '../../operations/operations';
|
|
6
6
|
import * as AvailabilityAPI from './availability';
|
|
7
7
|
import { Availability, AvailabilityCreateParams, AvailabilityUpdateParams } from './availability';
|
|
8
8
|
import { APIPromise } from '../../../core/api-promise';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Operations
|
|
2
|
+
|
|
3
|
+
Types:
|
|
4
|
+
|
|
5
|
+
- <code><a href="./src/resources/operations.ts">Operation</a></code>
|
|
6
|
+
- <code><a href="./src/resources/operations.ts">OperationKind</a></code>
|
|
7
|
+
- <code><a href="./src/resources/operations.ts">OperationList</a></code>
|
|
8
|
+
- <code><a href="./src/resources/operations.ts">OperationStatus</a></code>
|
|
9
|
+
- <code><a href="./src/resources/operations.ts">OperationType</a></code>
|
|
10
|
+
|
|
11
|
+
Methods:
|
|
12
|
+
|
|
13
|
+
- <code title="get /v1/operations">client.operations.<a href="./src/resources/operations.ts">list</a>({ ...params }) -> OperationsCursor</code>
|
|
14
|
+
- <code title="get /v1/operations/{operation_id}">client.operations.<a href="./src/resources/operations.ts">get</a>(operationID) -> Operation</code>
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as Shared from '../shared';
|
|
5
|
+
import { APIPromise } from '../../core/api-promise';
|
|
6
|
+
import { Cursor, type CursorParams, PagePromise } from '../../core/pagination';
|
|
7
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
8
|
+
import { path } from '../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Operations extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* List all operations
|
|
13
|
+
*/
|
|
14
|
+
list(query: OperationListParams, options?: RequestOptions): PagePromise<OperationsCursor, Operation> {
|
|
15
|
+
return this._client.getAPIList('/v1/operations', Cursor<Operation>, { query, ...options });
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Get details about a specific operation
|
|
20
|
+
*/
|
|
21
|
+
get(operationID: string, options?: RequestOptions): APIPromise<Operation> {
|
|
22
|
+
return this._client.get(path`/v1/operations/${operationID}`, options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type OperationsCursor = Cursor<Operation>;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Operation details.
|
|
30
|
+
*/
|
|
31
|
+
export interface Operation {
|
|
32
|
+
/**
|
|
33
|
+
* Unique identifier for the Operation.
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* When the Operation was created.
|
|
39
|
+
*/
|
|
40
|
+
created_at: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Kind of Operation.
|
|
44
|
+
*/
|
|
45
|
+
kind: OperationKind;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Project ID the Operation belongs to.
|
|
49
|
+
*/
|
|
50
|
+
project_id: string;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* ID of the resource that the Operation is acting on.
|
|
54
|
+
*/
|
|
55
|
+
resource_id: string;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Status of the Operation.
|
|
59
|
+
*/
|
|
60
|
+
status: OperationStatus;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Type of Operation.
|
|
64
|
+
*/
|
|
65
|
+
type: OperationType;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* When the Operation was updated.
|
|
69
|
+
*/
|
|
70
|
+
updated_at: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Kind of Operation.
|
|
75
|
+
*/
|
|
76
|
+
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
77
|
+
|
|
78
|
+
export interface OperationList {
|
|
79
|
+
items: Array<Operation>;
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Pagination response details.
|
|
83
|
+
*/
|
|
84
|
+
pagination: Shared.Pagination;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Status of the Operation.
|
|
89
|
+
*/
|
|
90
|
+
export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Type of Operation.
|
|
94
|
+
*/
|
|
95
|
+
export type OperationType = 'create' | 'update' | 'delete' | 'restart';
|
|
96
|
+
|
|
97
|
+
export interface OperationListParams extends CursorParams {
|
|
98
|
+
/**
|
|
99
|
+
* Project ID of resources to request
|
|
100
|
+
*/
|
|
101
|
+
project_id: string;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export declare namespace Operations {
|
|
105
|
+
export {
|
|
106
|
+
type Operation as Operation,
|
|
107
|
+
type OperationKind as OperationKind,
|
|
108
|
+
type OperationList as OperationList,
|
|
109
|
+
type OperationStatus as OperationStatus,
|
|
110
|
+
type OperationType as OperationType,
|
|
111
|
+
type OperationsCursor as OperationsCursor,
|
|
112
|
+
type OperationListParams as OperationListParams,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -1,114 +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 { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
7
|
-
import { RequestOptions } from '../internal/request-options';
|
|
8
|
-
import { path } from '../internal/utils/path';
|
|
9
|
-
|
|
10
|
-
export class Operations extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* List all operations
|
|
13
|
-
*/
|
|
14
|
-
list(query: OperationListParams, options?: RequestOptions): PagePromise<OperationsCursor, Operation> {
|
|
15
|
-
return this._client.getAPIList('/v1/operations', Cursor<Operation>, { query, ...options });
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Get details about a specific operation
|
|
20
|
-
*/
|
|
21
|
-
get(operationID: string, options?: RequestOptions): APIPromise<Operation> {
|
|
22
|
-
return this._client.get(path`/v1/operations/${operationID}`, options);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type OperationsCursor = Cursor<Operation>;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Operation details.
|
|
30
|
-
*/
|
|
31
|
-
export interface Operation {
|
|
32
|
-
/**
|
|
33
|
-
* Unique identifier for the Operation.
|
|
34
|
-
*/
|
|
35
|
-
id: string;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* When the Operation was created.
|
|
39
|
-
*/
|
|
40
|
-
created_at: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Kind of Operation.
|
|
44
|
-
*/
|
|
45
|
-
kind: OperationKind;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Project ID the Operation belongs to.
|
|
49
|
-
*/
|
|
50
|
-
project_id: string;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* ID of the resource that the Operation is acting on.
|
|
54
|
-
*/
|
|
55
|
-
resource_id: string;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Status of the Operation.
|
|
59
|
-
*/
|
|
60
|
-
status: OperationStatus;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Type of Operation.
|
|
64
|
-
*/
|
|
65
|
-
type: OperationType;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* When the Operation was updated.
|
|
69
|
-
*/
|
|
70
|
-
updated_at: string;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Kind of Operation.
|
|
75
|
-
*/
|
|
76
|
-
export type OperationKind = 'vm' | 'volume' | 'vpc' | 'firewall_rule';
|
|
77
|
-
|
|
78
|
-
export interface OperationList {
|
|
79
|
-
items: Array<Operation>;
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* Pagination response details.
|
|
83
|
-
*/
|
|
84
|
-
pagination: Shared.Pagination;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Status of the Operation.
|
|
89
|
-
*/
|
|
90
|
-
export type OperationStatus = 'pending' | 'running' | 'done' | 'failed' | 'unknown';
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Type of Operation.
|
|
94
|
-
*/
|
|
95
|
-
export type OperationType = 'create' | 'update' | 'delete' | 'restart';
|
|
96
|
-
|
|
97
|
-
export interface OperationListParams extends CursorParams {
|
|
98
|
-
/**
|
|
99
|
-
* Project ID of resources to request
|
|
100
|
-
*/
|
|
101
|
-
project_id: string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export declare namespace Operations {
|
|
105
|
-
export {
|
|
106
|
-
type Operation as Operation,
|
|
107
|
-
type OperationKind as OperationKind,
|
|
108
|
-
type OperationList as OperationList,
|
|
109
|
-
type OperationStatus as OperationStatus,
|
|
110
|
-
type OperationType as OperationType,
|
|
111
|
-
type OperationsCursor as OperationsCursor,
|
|
112
|
-
type OperationListParams as OperationListParams,
|
|
113
|
-
};
|
|
114
|
-
}
|
|
3
|
+
export * from './operations/index';
|