@townco/fly 0.1.58 → 0.1.60
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/dist/api/client/client.gen.d.ts +1 -1
- package/dist/api/client/client.gen.js +46 -46
- package/dist/api/client/index.d.ts +8 -8
- package/dist/api/client/index.js +5 -5
- package/dist/api/client/types.gen.d.ts +18 -18
- package/dist/api/client/utils.gen.d.ts +3 -3
- package/dist/api/client/utils.gen.js +34 -34
- package/dist/api/client.gen.d.ts +2 -2
- package/dist/api/client.gen.js +3 -3
- package/dist/api/core/auth.gen.d.ts +3 -3
- package/dist/api/core/auth.gen.js +3 -3
- package/dist/api/core/bodySerializer.gen.d.ts +1 -1
- package/dist/api/core/bodySerializer.gen.js +3 -3
- package/dist/api/core/params.gen.d.ts +3 -3
- package/dist/api/core/params.gen.js +9 -9
- package/dist/api/core/pathSerializer.gen.d.ts +3 -3
- package/dist/api/core/pathSerializer.gen.js +36 -36
- package/dist/api/core/queryKeySerializer.gen.js +11 -11
- package/dist/api/core/serverSentEvents.gen.d.ts +3 -3
- package/dist/api/core/serverSentEvents.gen.js +19 -19
- package/dist/api/core/types.gen.d.ts +4 -4
- package/dist/api/core/utils.gen.d.ts +1 -1
- package/dist/api/core/utils.gen.js +17 -17
- package/dist/api/index.d.ts +2 -2
- package/dist/api/index.js +1 -1
- package/dist/api/sdk.gen.d.ts +2 -2
- package/dist/api/sdk.gen.js +160 -130
- package/dist/api/types.gen.d.ts +79 -79
- package/dist/hey-api.js +18 -2
- package/package.json +6 -5
package/dist/api/sdk.gen.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import { client } from
|
|
2
|
+
import { client } from "./client.gen";
|
|
3
3
|
/**
|
|
4
4
|
* List Apps
|
|
5
5
|
*
|
|
6
6
|
* List all apps with the ability to filter by organization slug.
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
|
-
export const appsList = (options) => (options.client ?? client).get({
|
|
9
|
+
export const appsList = (options) => (options.client ?? client).get({
|
|
10
|
+
url: "/apps",
|
|
11
|
+
...options,
|
|
12
|
+
});
|
|
10
13
|
/**
|
|
11
14
|
* Create App
|
|
12
15
|
*
|
|
@@ -14,12 +17,12 @@ export const appsList = (options) => (options.client ?? client).get({ url: '/app
|
|
|
14
17
|
*
|
|
15
18
|
*/
|
|
16
19
|
export const appsCreate = (options) => (options.client ?? client).post({
|
|
17
|
-
url:
|
|
20
|
+
url: "/apps",
|
|
18
21
|
...options,
|
|
19
22
|
headers: {
|
|
20
|
-
|
|
21
|
-
...options.headers
|
|
22
|
-
}
|
|
23
|
+
"Content-Type": "application/json",
|
|
24
|
+
...options.headers,
|
|
25
|
+
},
|
|
23
26
|
});
|
|
24
27
|
/**
|
|
25
28
|
* Destroy App
|
|
@@ -27,51 +30,57 @@ export const appsCreate = (options) => (options.client ?? client).post({
|
|
|
27
30
|
* Delete an app by its name.
|
|
28
31
|
*
|
|
29
32
|
*/
|
|
30
|
-
export const appsDelete = (options) => (options.client ?? client).delete({ url:
|
|
33
|
+
export const appsDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}", ...options });
|
|
31
34
|
/**
|
|
32
35
|
* Get App
|
|
33
36
|
*
|
|
34
37
|
* Retrieve details about a specific app by its name.
|
|
35
38
|
*
|
|
36
39
|
*/
|
|
37
|
-
export const appsShow = (options) => (options.client ?? client).get({
|
|
40
|
+
export const appsShow = (options) => (options.client ?? client).get({
|
|
41
|
+
url: "/apps/{app_name}",
|
|
42
|
+
...options,
|
|
43
|
+
});
|
|
38
44
|
/**
|
|
39
45
|
* Create App deploy token
|
|
40
46
|
*/
|
|
41
47
|
export const appCreateDeployToken = (options) => (options.client ?? client).post({
|
|
42
|
-
url:
|
|
48
|
+
url: "/apps/{app_name}/deploy_token",
|
|
43
49
|
...options,
|
|
44
50
|
headers: {
|
|
45
|
-
|
|
46
|
-
...options.headers
|
|
47
|
-
}
|
|
51
|
+
"Content-Type": "application/json",
|
|
52
|
+
...options.headers,
|
|
53
|
+
},
|
|
48
54
|
});
|
|
49
55
|
/**
|
|
50
56
|
* List IP assignments for app
|
|
51
57
|
*/
|
|
52
|
-
export const appIpAssignmentsList = (options) => (options.client ?? client).get({ url:
|
|
58
|
+
export const appIpAssignmentsList = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/ip_assignments", ...options });
|
|
53
59
|
/**
|
|
54
60
|
* Assign new IP address to app
|
|
55
61
|
*/
|
|
56
62
|
export const appIpAssignmentsCreate = (options) => (options.client ?? client).post({
|
|
57
|
-
url:
|
|
63
|
+
url: "/apps/{app_name}/ip_assignments",
|
|
58
64
|
...options,
|
|
59
65
|
headers: {
|
|
60
|
-
|
|
61
|
-
...options.headers
|
|
62
|
-
}
|
|
66
|
+
"Content-Type": "application/json",
|
|
67
|
+
...options.headers,
|
|
68
|
+
},
|
|
63
69
|
});
|
|
64
70
|
/**
|
|
65
71
|
* Remove IP assignment from app
|
|
66
72
|
*/
|
|
67
|
-
export const appIpAssignmentsDelete = (options) => (options.client ?? client).delete({ url:
|
|
73
|
+
export const appIpAssignmentsDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/ip_assignments/{ip}", ...options });
|
|
68
74
|
/**
|
|
69
75
|
* List Machines
|
|
70
76
|
*
|
|
71
77
|
* List all Machines associated with a specific app, with optional filters for including deleted Machines and filtering by region.
|
|
72
78
|
*
|
|
73
79
|
*/
|
|
74
|
-
export const machinesList = (options) => (options.client ?? client).get({
|
|
80
|
+
export const machinesList = (options) => (options.client ?? client).get({
|
|
81
|
+
url: "/apps/{app_name}/machines",
|
|
82
|
+
...options,
|
|
83
|
+
});
|
|
75
84
|
/**
|
|
76
85
|
* Create Machine
|
|
77
86
|
*
|
|
@@ -81,12 +90,12 @@ export const machinesList = (options) => (options.client ?? client).get({ url: '
|
|
|
81
90
|
*
|
|
82
91
|
*/
|
|
83
92
|
export const machinesCreate = (options) => (options.client ?? client).post({
|
|
84
|
-
url:
|
|
93
|
+
url: "/apps/{app_name}/machines",
|
|
85
94
|
...options,
|
|
86
95
|
headers: {
|
|
87
|
-
|
|
88
|
-
...options.headers
|
|
89
|
-
}
|
|
96
|
+
"Content-Type": "application/json",
|
|
97
|
+
...options.headers,
|
|
98
|
+
},
|
|
90
99
|
});
|
|
91
100
|
/**
|
|
92
101
|
* Destroy Machine
|
|
@@ -94,14 +103,17 @@ export const machinesCreate = (options) => (options.client ?? client).post({
|
|
|
94
103
|
* Delete a specific Machine within an app by Machine ID, with an optional force parameter to force kill the Machine if it's running.
|
|
95
104
|
*
|
|
96
105
|
*/
|
|
97
|
-
export const machinesDelete = (options) => (options.client ?? client).delete({ url:
|
|
106
|
+
export const machinesDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/machines/{machine_id}", ...options });
|
|
98
107
|
/**
|
|
99
108
|
* Get Machine
|
|
100
109
|
*
|
|
101
110
|
* Get details of a specific Machine within an app by the Machine ID.
|
|
102
111
|
*
|
|
103
112
|
*/
|
|
104
|
-
export const machinesShow = (options) => (options.client ?? client).get({
|
|
113
|
+
export const machinesShow = (options) => (options.client ?? client).get({
|
|
114
|
+
url: "/apps/{app_name}/machines/{machine_id}",
|
|
115
|
+
...options,
|
|
116
|
+
});
|
|
105
117
|
/**
|
|
106
118
|
* Update Machine
|
|
107
119
|
*
|
|
@@ -109,12 +121,12 @@ export const machinesShow = (options) => (options.client ?? client).get({ url: '
|
|
|
109
121
|
*
|
|
110
122
|
*/
|
|
111
123
|
export const machinesUpdate = (options) => (options.client ?? client).post({
|
|
112
|
-
url:
|
|
124
|
+
url: "/apps/{app_name}/machines/{machine_id}",
|
|
113
125
|
...options,
|
|
114
126
|
headers: {
|
|
115
|
-
|
|
116
|
-
...options.headers
|
|
117
|
-
}
|
|
127
|
+
"Content-Type": "application/json",
|
|
128
|
+
...options.headers,
|
|
129
|
+
},
|
|
118
130
|
});
|
|
119
131
|
/**
|
|
120
132
|
* Cordon Machine
|
|
@@ -122,14 +134,14 @@ export const machinesUpdate = (options) => (options.client ?? client).post({
|
|
|
122
134
|
* “Cordoning” a Machine refers to disabling its services, so the Fly Proxy won’t route requests to it. In flyctl this is used by blue/green deployments; one set of Machines is started up with services disabled, and when they are all healthy, the services are enabled on the new Machines and disabled on the old ones.
|
|
123
135
|
*
|
|
124
136
|
*/
|
|
125
|
-
export const machinesCordon = (options) => (options.client ?? client).post({ url:
|
|
137
|
+
export const machinesCordon = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/machines/{machine_id}/cordon", ...options });
|
|
126
138
|
/**
|
|
127
139
|
* List Events
|
|
128
140
|
*
|
|
129
141
|
* List all events associated with a specific Machine within an app.
|
|
130
142
|
*
|
|
131
143
|
*/
|
|
132
|
-
export const machinesListEvents = (options) => (options.client ?? client).get({ url:
|
|
144
|
+
export const machinesListEvents = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/events", ...options });
|
|
133
145
|
/**
|
|
134
146
|
* Execute Command
|
|
135
147
|
*
|
|
@@ -137,12 +149,12 @@ export const machinesListEvents = (options) => (options.client ?? client).get({
|
|
|
137
149
|
*
|
|
138
150
|
*/
|
|
139
151
|
export const machinesExec = (options) => (options.client ?? client).post({
|
|
140
|
-
url:
|
|
152
|
+
url: "/apps/{app_name}/machines/{machine_id}/exec",
|
|
141
153
|
...options,
|
|
142
154
|
headers: {
|
|
143
|
-
|
|
144
|
-
...options.headers
|
|
145
|
-
}
|
|
155
|
+
"Content-Type": "application/json",
|
|
156
|
+
...options.headers,
|
|
157
|
+
},
|
|
146
158
|
});
|
|
147
159
|
/**
|
|
148
160
|
* Release Lease
|
|
@@ -150,14 +162,14 @@ export const machinesExec = (options) => (options.client ?? client).post({
|
|
|
150
162
|
* Release the lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine.
|
|
151
163
|
*
|
|
152
164
|
*/
|
|
153
|
-
export const machinesReleaseLease = (options) => (options.client ?? client).delete({ url:
|
|
165
|
+
export const machinesReleaseLease = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/machines/{machine_id}/lease", ...options });
|
|
154
166
|
/**
|
|
155
167
|
* Get Lease
|
|
156
168
|
*
|
|
157
169
|
* Retrieve the current lease of a specific Machine within an app. Machine leases can be used to obtain an exclusive lock on modifying a Machine.
|
|
158
170
|
*
|
|
159
171
|
*/
|
|
160
|
-
export const machinesShowLease = (options) => (options.client ?? client).get({ url:
|
|
172
|
+
export const machinesShowLease = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/lease", ...options });
|
|
161
173
|
/**
|
|
162
174
|
* Create Lease
|
|
163
175
|
*
|
|
@@ -165,12 +177,12 @@ export const machinesShowLease = (options) => (options.client ?? client).get({ u
|
|
|
165
177
|
*
|
|
166
178
|
*/
|
|
167
179
|
export const machinesCreateLease = (options) => (options.client ?? client).post({
|
|
168
|
-
url:
|
|
180
|
+
url: "/apps/{app_name}/machines/{machine_id}/lease",
|
|
169
181
|
...options,
|
|
170
182
|
headers: {
|
|
171
|
-
|
|
172
|
-
...options.headers
|
|
173
|
-
}
|
|
183
|
+
"Content-Type": "application/json",
|
|
184
|
+
...options.headers,
|
|
185
|
+
},
|
|
174
186
|
});
|
|
175
187
|
/**
|
|
176
188
|
* Reclaim Machine Memory
|
|
@@ -178,12 +190,12 @@ export const machinesCreateLease = (options) => (options.client ?? client).post(
|
|
|
178
190
|
* Trigger the balloon device to reclaim memory from a machine
|
|
179
191
|
*/
|
|
180
192
|
export const machinesReclaimMemory = (options) => (options.client ?? client).post({
|
|
181
|
-
url:
|
|
193
|
+
url: "/apps/{app_name}/machines/{machine_id}/memory/reclaim",
|
|
182
194
|
...options,
|
|
183
195
|
headers: {
|
|
184
|
-
|
|
185
|
-
...options.headers
|
|
186
|
-
}
|
|
196
|
+
"Content-Type": "application/json",
|
|
197
|
+
...options.headers,
|
|
198
|
+
},
|
|
187
199
|
});
|
|
188
200
|
/**
|
|
189
201
|
* Get Metadata
|
|
@@ -191,42 +203,48 @@ export const machinesReclaimMemory = (options) => (options.client ?? client).pos
|
|
|
191
203
|
* Retrieve metadata for a specific Machine within an app.
|
|
192
204
|
*
|
|
193
205
|
*/
|
|
194
|
-
export const machinesShowMetadata = (options) => (options.client ?? client).get({ url:
|
|
206
|
+
export const machinesShowMetadata = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/metadata", ...options });
|
|
195
207
|
/**
|
|
196
208
|
* Patch Metadata (set/remove multiple keys)
|
|
197
209
|
*
|
|
198
210
|
* Update multiple metadata keys at once. Null values and empty strings remove keys.
|
|
199
211
|
* + If `machine_version` is provided and no longer matches the current machine version, returns 412 Precondition Failed.
|
|
200
212
|
*/
|
|
201
|
-
export const machinesPatchMetadata = (options) => (options.client ?? client).patch({ url:
|
|
213
|
+
export const machinesPatchMetadata = (options) => (options.client ?? client).patch({ url: "/apps/{app_name}/machines/{machine_id}/metadata", ...options });
|
|
202
214
|
/**
|
|
203
215
|
* Delete Metadata
|
|
204
216
|
*
|
|
205
217
|
* Delete metadata for a specific Machine within an app by providing a metadata key.
|
|
206
218
|
*
|
|
207
219
|
*/
|
|
208
|
-
export const machinesDeleteMetadata = (options) => (options.client ?? client).delete({
|
|
220
|
+
export const machinesDeleteMetadata = (options) => (options.client ?? client).delete({
|
|
221
|
+
url: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
222
|
+
...options,
|
|
223
|
+
});
|
|
209
224
|
/**
|
|
210
225
|
* Update Metadata
|
|
211
226
|
*
|
|
212
227
|
* Update metadata for a specific machine within an app by providing a metadata key.
|
|
213
228
|
*
|
|
214
229
|
*/
|
|
215
|
-
export const machinesUpdateMetadata = (options) => (options.client ?? client).post({
|
|
230
|
+
export const machinesUpdateMetadata = (options) => (options.client ?? client).post({
|
|
231
|
+
url: "/apps/{app_name}/machines/{machine_id}/metadata/{key}",
|
|
232
|
+
...options,
|
|
233
|
+
});
|
|
216
234
|
/**
|
|
217
235
|
* List Processes
|
|
218
236
|
*
|
|
219
237
|
* List all processes running on a specific Machine within an app, with optional sorting parameters.
|
|
220
238
|
*
|
|
221
239
|
*/
|
|
222
|
-
export const machinesListProcesses = (options) => (options.client ?? client).get({ url:
|
|
240
|
+
export const machinesListProcesses = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/ps", ...options });
|
|
223
241
|
/**
|
|
224
242
|
* Restart Machine
|
|
225
243
|
*
|
|
226
244
|
* Restart a specific Machine within an app, with an optional timeout parameter.
|
|
227
245
|
*
|
|
228
246
|
*/
|
|
229
|
-
export const machinesRestart = (options) => (options.client ?? client).post({ url:
|
|
247
|
+
export const machinesRestart = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/machines/{machine_id}/restart", ...options });
|
|
230
248
|
/**
|
|
231
249
|
* Signal Machine
|
|
232
250
|
*
|
|
@@ -234,12 +252,12 @@ export const machinesRestart = (options) => (options.client ?? client).post({ ur
|
|
|
234
252
|
*
|
|
235
253
|
*/
|
|
236
254
|
export const machinesSignal = (options) => (options.client ?? client).post({
|
|
237
|
-
url:
|
|
255
|
+
url: "/apps/{app_name}/machines/{machine_id}/signal",
|
|
238
256
|
...options,
|
|
239
257
|
headers: {
|
|
240
|
-
|
|
241
|
-
...options.headers
|
|
242
|
-
}
|
|
258
|
+
"Content-Type": "application/json",
|
|
259
|
+
...options.headers,
|
|
260
|
+
},
|
|
243
261
|
});
|
|
244
262
|
/**
|
|
245
263
|
* Start Machine
|
|
@@ -247,7 +265,7 @@ export const machinesSignal = (options) => (options.client ?? client).post({
|
|
|
247
265
|
* Start a specific Machine within an app.
|
|
248
266
|
*
|
|
249
267
|
*/
|
|
250
|
-
export const machinesStart = (options) => (options.client ?? client).post({ url:
|
|
268
|
+
export const machinesStart = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/machines/{machine_id}/start", ...options });
|
|
251
269
|
/**
|
|
252
270
|
* Stop Machine
|
|
253
271
|
*
|
|
@@ -255,12 +273,12 @@ export const machinesStart = (options) => (options.client ?? client).post({ url:
|
|
|
255
273
|
*
|
|
256
274
|
*/
|
|
257
275
|
export const machinesStop = (options) => (options.client ?? client).post({
|
|
258
|
-
url:
|
|
276
|
+
url: "/apps/{app_name}/machines/{machine_id}/stop",
|
|
259
277
|
...options,
|
|
260
278
|
headers: {
|
|
261
|
-
|
|
262
|
-
...options.headers
|
|
263
|
-
}
|
|
279
|
+
"Content-Type": "application/json",
|
|
280
|
+
...options.headers,
|
|
281
|
+
},
|
|
264
282
|
});
|
|
265
283
|
/**
|
|
266
284
|
* Suspend Machine
|
|
@@ -268,21 +286,21 @@ export const machinesStop = (options) => (options.client ?? client).post({
|
|
|
268
286
|
* Suspend a specific Machine within an app. The next start operation will attempt (but is not guaranteed) to resume the Machine from a snapshot taken at suspension time, rather than performing a cold boot.
|
|
269
287
|
*
|
|
270
288
|
*/
|
|
271
|
-
export const machinesSuspend = (options) => (options.client ?? client).post({ url:
|
|
289
|
+
export const machinesSuspend = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/machines/{machine_id}/suspend", ...options });
|
|
272
290
|
/**
|
|
273
291
|
* Uncordon Machine
|
|
274
292
|
*
|
|
275
293
|
* “Cordoning” a Machine refers to disabling its services, so the Fly Proxy won’t route requests to it. In flyctl this is used by blue/green deployments; one set of Machines is started up with services disabled, and when they are all healthy, the services are enabled on the new Machines and disabled on the old ones.
|
|
276
294
|
*
|
|
277
295
|
*/
|
|
278
|
-
export const machinesUncordon = (options) => (options.client ?? client).post({ url:
|
|
296
|
+
export const machinesUncordon = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/machines/{machine_id}/uncordon", ...options });
|
|
279
297
|
/**
|
|
280
298
|
* List Versions
|
|
281
299
|
*
|
|
282
300
|
* List all versions of the configuration for a specific Machine within an app.
|
|
283
301
|
*
|
|
284
302
|
*/
|
|
285
|
-
export const machinesListVersions = (options) => (options.client ?? client).get({ url:
|
|
303
|
+
export const machinesListVersions = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/versions", ...options });
|
|
286
304
|
/**
|
|
287
305
|
* Wait for State
|
|
288
306
|
*
|
|
@@ -291,118 +309,127 @@ export const machinesListVersions = (options) => (options.client ?? client).get(
|
|
|
291
309
|
* This request will block for up to 60 seconds. Set a shorter timeout with the timeout parameter.
|
|
292
310
|
*
|
|
293
311
|
*/
|
|
294
|
-
export const machinesWait = (options) => (options.client ?? client).get({ url:
|
|
312
|
+
export const machinesWait = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/machines/{machine_id}/wait", ...options });
|
|
295
313
|
/**
|
|
296
314
|
* List secret keys belonging to an app
|
|
297
315
|
*/
|
|
298
|
-
export const secretkeysList = (options) => (options.client ?? client).get({ url:
|
|
316
|
+
export const secretkeysList = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/secretkeys", ...options });
|
|
299
317
|
/**
|
|
300
318
|
* Delete an app's secret key
|
|
301
319
|
*/
|
|
302
|
-
export const secretkeyDelete = (options) => (options.client ?? client).delete({ url:
|
|
320
|
+
export const secretkeyDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/secretkeys/{secret_name}", ...options });
|
|
303
321
|
/**
|
|
304
322
|
* Get an app's secret key
|
|
305
323
|
*/
|
|
306
|
-
export const secretkeyGet = (options) => (options.client ?? client).get({
|
|
324
|
+
export const secretkeyGet = (options) => (options.client ?? client).get({
|
|
325
|
+
url: "/apps/{app_name}/secretkeys/{secret_name}",
|
|
326
|
+
...options,
|
|
327
|
+
});
|
|
307
328
|
/**
|
|
308
329
|
* Create or update a secret key
|
|
309
330
|
*/
|
|
310
331
|
export const secretkeySet = (options) => (options.client ?? client).post({
|
|
311
|
-
url:
|
|
332
|
+
url: "/apps/{app_name}/secretkeys/{secret_name}",
|
|
312
333
|
...options,
|
|
313
334
|
headers: {
|
|
314
|
-
|
|
315
|
-
...options.headers
|
|
316
|
-
}
|
|
335
|
+
"Content-Type": "application/json",
|
|
336
|
+
...options.headers,
|
|
337
|
+
},
|
|
317
338
|
});
|
|
318
339
|
/**
|
|
319
340
|
* Decrypt with a secret key
|
|
320
341
|
*/
|
|
321
342
|
export const secretkeyDecrypt = (options) => (options.client ?? client).post({
|
|
322
|
-
url:
|
|
343
|
+
url: "/apps/{app_name}/secretkeys/{secret_name}/decrypt",
|
|
323
344
|
...options,
|
|
324
345
|
headers: {
|
|
325
|
-
|
|
326
|
-
...options.headers
|
|
327
|
-
}
|
|
346
|
+
"Content-Type": "application/json",
|
|
347
|
+
...options.headers,
|
|
348
|
+
},
|
|
328
349
|
});
|
|
329
350
|
/**
|
|
330
351
|
* Encrypt with a secret key
|
|
331
352
|
*/
|
|
332
353
|
export const secretkeyEncrypt = (options) => (options.client ?? client).post({
|
|
333
|
-
url:
|
|
354
|
+
url: "/apps/{app_name}/secretkeys/{secret_name}/encrypt",
|
|
334
355
|
...options,
|
|
335
356
|
headers: {
|
|
336
|
-
|
|
337
|
-
...options.headers
|
|
338
|
-
}
|
|
357
|
+
"Content-Type": "application/json",
|
|
358
|
+
...options.headers,
|
|
359
|
+
},
|
|
339
360
|
});
|
|
340
361
|
/**
|
|
341
362
|
* Generate a random secret key
|
|
342
363
|
*/
|
|
343
364
|
export const secretkeyGenerate = (options) => (options.client ?? client).post({
|
|
344
|
-
url:
|
|
365
|
+
url: "/apps/{app_name}/secretkeys/{secret_name}/generate",
|
|
345
366
|
...options,
|
|
346
367
|
headers: {
|
|
347
|
-
|
|
348
|
-
...options.headers
|
|
349
|
-
}
|
|
368
|
+
"Content-Type": "application/json",
|
|
369
|
+
...options.headers,
|
|
370
|
+
},
|
|
350
371
|
});
|
|
351
372
|
/**
|
|
352
373
|
* Sign with a secret key
|
|
353
374
|
*/
|
|
354
375
|
export const secretkeySign = (options) => (options.client ?? client).post({
|
|
355
|
-
url:
|
|
376
|
+
url: "/apps/{app_name}/secretkeys/{secret_name}/sign",
|
|
356
377
|
...options,
|
|
357
378
|
headers: {
|
|
358
|
-
|
|
359
|
-
...options.headers
|
|
360
|
-
}
|
|
379
|
+
"Content-Type": "application/json",
|
|
380
|
+
...options.headers,
|
|
381
|
+
},
|
|
361
382
|
});
|
|
362
383
|
/**
|
|
363
384
|
* Verify with a secret key
|
|
364
385
|
*/
|
|
365
386
|
export const secretkeyVerify = (options) => (options.client ?? client).post({
|
|
366
|
-
url:
|
|
387
|
+
url: "/apps/{app_name}/secretkeys/{secret_name}/verify",
|
|
367
388
|
...options,
|
|
368
389
|
headers: {
|
|
369
|
-
|
|
370
|
-
...options.headers
|
|
371
|
-
}
|
|
390
|
+
"Content-Type": "application/json",
|
|
391
|
+
...options.headers,
|
|
392
|
+
},
|
|
372
393
|
});
|
|
373
394
|
/**
|
|
374
395
|
* List app secrets belonging to an app
|
|
375
396
|
*/
|
|
376
|
-
export const secretsList = (options) => (options.client ?? client).get({
|
|
397
|
+
export const secretsList = (options) => (options.client ?? client).get({
|
|
398
|
+
url: "/apps/{app_name}/secrets",
|
|
399
|
+
...options,
|
|
400
|
+
});
|
|
377
401
|
/**
|
|
378
402
|
* Update app secrets belonging to an app
|
|
379
403
|
*/
|
|
380
404
|
export const secretsUpdate = (options) => (options.client ?? client).post({
|
|
381
|
-
url:
|
|
405
|
+
url: "/apps/{app_name}/secrets",
|
|
382
406
|
...options,
|
|
383
407
|
headers: {
|
|
384
|
-
|
|
385
|
-
...options.headers
|
|
386
|
-
}
|
|
408
|
+
"Content-Type": "application/json",
|
|
409
|
+
...options.headers,
|
|
410
|
+
},
|
|
387
411
|
});
|
|
388
412
|
/**
|
|
389
413
|
* Delete an app secret
|
|
390
414
|
*/
|
|
391
|
-
export const secretDelete = (options) => (options.client ?? client).delete({ url:
|
|
415
|
+
export const secretDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/secrets/{secret_name}", ...options });
|
|
392
416
|
/**
|
|
393
417
|
* Get an app secret
|
|
394
418
|
*/
|
|
395
|
-
export const secretGet = (options) => (options.client ?? client).get({
|
|
419
|
+
export const secretGet = (options) => (options.client ?? client).get({
|
|
420
|
+
url: "/apps/{app_name}/secrets/{secret_name}",
|
|
421
|
+
...options,
|
|
422
|
+
});
|
|
396
423
|
/**
|
|
397
424
|
* Create or update Secret
|
|
398
425
|
*/
|
|
399
426
|
export const secretCreate = (options) => (options.client ?? client).post({
|
|
400
|
-
url:
|
|
427
|
+
url: "/apps/{app_name}/secrets/{secret_name}",
|
|
401
428
|
...options,
|
|
402
429
|
headers: {
|
|
403
|
-
|
|
404
|
-
...options.headers
|
|
405
|
-
}
|
|
430
|
+
"Content-Type": "application/json",
|
|
431
|
+
...options.headers,
|
|
432
|
+
},
|
|
406
433
|
});
|
|
407
434
|
/**
|
|
408
435
|
* List Volumes
|
|
@@ -410,7 +437,10 @@ export const secretCreate = (options) => (options.client ?? client).post({
|
|
|
410
437
|
* List all volumes associated with a specific app.
|
|
411
438
|
*
|
|
412
439
|
*/
|
|
413
|
-
export const volumesList = (options) => (options.client ?? client).get({
|
|
440
|
+
export const volumesList = (options) => (options.client ?? client).get({
|
|
441
|
+
url: "/apps/{app_name}/volumes",
|
|
442
|
+
...options,
|
|
443
|
+
});
|
|
414
444
|
/**
|
|
415
445
|
* Create Volume
|
|
416
446
|
*
|
|
@@ -418,12 +448,12 @@ export const volumesList = (options) => (options.client ?? client).get({ url: '/
|
|
|
418
448
|
*
|
|
419
449
|
*/
|
|
420
450
|
export const volumesCreate = (options) => (options.client ?? client).post({
|
|
421
|
-
url:
|
|
451
|
+
url: "/apps/{app_name}/volumes",
|
|
422
452
|
...options,
|
|
423
453
|
headers: {
|
|
424
|
-
|
|
425
|
-
...options.headers
|
|
426
|
-
}
|
|
454
|
+
"Content-Type": "application/json",
|
|
455
|
+
...options.headers,
|
|
456
|
+
},
|
|
427
457
|
});
|
|
428
458
|
/**
|
|
429
459
|
* Destroy Volume
|
|
@@ -431,14 +461,14 @@ export const volumesCreate = (options) => (options.client ?? client).post({
|
|
|
431
461
|
* Delete a specific volume within an app by volume ID.
|
|
432
462
|
*
|
|
433
463
|
*/
|
|
434
|
-
export const volumeDelete = (options) => (options.client ?? client).delete({ url:
|
|
464
|
+
export const volumeDelete = (options) => (options.client ?? client).delete({ url: "/apps/{app_name}/volumes/{volume_id}", ...options });
|
|
435
465
|
/**
|
|
436
466
|
* Get Volume
|
|
437
467
|
*
|
|
438
468
|
* Retrieve details about a specific volume by its ID within an app.
|
|
439
469
|
*
|
|
440
470
|
*/
|
|
441
|
-
export const volumesGetById = (options) => (options.client ?? client).get({ url:
|
|
471
|
+
export const volumesGetById = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/volumes/{volume_id}", ...options });
|
|
442
472
|
/**
|
|
443
473
|
* Update Volume
|
|
444
474
|
*
|
|
@@ -446,12 +476,12 @@ export const volumesGetById = (options) => (options.client ?? client).get({ url:
|
|
|
446
476
|
*
|
|
447
477
|
*/
|
|
448
478
|
export const volumesUpdate = (options) => (options.client ?? client).put({
|
|
449
|
-
url:
|
|
479
|
+
url: "/apps/{app_name}/volumes/{volume_id}",
|
|
450
480
|
...options,
|
|
451
481
|
headers: {
|
|
452
|
-
|
|
453
|
-
...options.headers
|
|
454
|
-
}
|
|
482
|
+
"Content-Type": "application/json",
|
|
483
|
+
...options.headers,
|
|
484
|
+
},
|
|
455
485
|
});
|
|
456
486
|
/**
|
|
457
487
|
* Extend Volume
|
|
@@ -460,12 +490,12 @@ export const volumesUpdate = (options) => (options.client ?? client).put({
|
|
|
460
490
|
*
|
|
461
491
|
*/
|
|
462
492
|
export const volumesExtend = (options) => (options.client ?? client).put({
|
|
463
|
-
url:
|
|
493
|
+
url: "/apps/{app_name}/volumes/{volume_id}/extend",
|
|
464
494
|
...options,
|
|
465
495
|
headers: {
|
|
466
|
-
|
|
467
|
-
...options.headers
|
|
468
|
-
}
|
|
496
|
+
"Content-Type": "application/json",
|
|
497
|
+
...options.headers,
|
|
498
|
+
},
|
|
469
499
|
});
|
|
470
500
|
/**
|
|
471
501
|
* List Snapshots
|
|
@@ -473,39 +503,39 @@ export const volumesExtend = (options) => (options.client ?? client).put({
|
|
|
473
503
|
* List all snapshots for a specific volume within an app.
|
|
474
504
|
*
|
|
475
505
|
*/
|
|
476
|
-
export const volumesListSnapshots = (options) => (options.client ?? client).get({ url:
|
|
506
|
+
export const volumesListSnapshots = (options) => (options.client ?? client).get({ url: "/apps/{app_name}/volumes/{volume_id}/snapshots", ...options });
|
|
477
507
|
/**
|
|
478
508
|
* Create Snapshot
|
|
479
509
|
*
|
|
480
510
|
* Create a snapshot for a specific volume within an app.
|
|
481
511
|
*
|
|
482
512
|
*/
|
|
483
|
-
export const createVolumeSnapshot = (options) => (options.client ?? client).post({ url:
|
|
513
|
+
export const createVolumeSnapshot = (options) => (options.client ?? client).post({ url: "/apps/{app_name}/volumes/{volume_id}/snapshots", ...options });
|
|
484
514
|
/**
|
|
485
515
|
* Get Placements
|
|
486
516
|
*
|
|
487
517
|
* Simulates placing the specified number of machines into regions, depending on available capacity and limits.
|
|
488
518
|
*/
|
|
489
519
|
export const platformPlacementsPost = (options) => (options.client ?? client).post({
|
|
490
|
-
url:
|
|
520
|
+
url: "/platform/placements",
|
|
491
521
|
...options,
|
|
492
522
|
headers: {
|
|
493
|
-
|
|
494
|
-
...options.headers
|
|
495
|
-
}
|
|
523
|
+
"Content-Type": "application/json",
|
|
524
|
+
...options.headers,
|
|
525
|
+
},
|
|
496
526
|
});
|
|
497
527
|
/**
|
|
498
528
|
* Get Regions
|
|
499
529
|
*
|
|
500
530
|
* List all regions on the platform with their current Machine capacity.
|
|
501
531
|
*/
|
|
502
|
-
export const platformRegionsGet = (options) => (options?.client ?? client).get({ url:
|
|
532
|
+
export const platformRegionsGet = (options) => (options?.client ?? client).get({ url: "/platform/regions", ...options });
|
|
503
533
|
/**
|
|
504
534
|
* Request a Petsem token for accessing KMS
|
|
505
535
|
*
|
|
506
536
|
* This site hosts documentation generated from the Fly.io Machines API OpenAPI specification. Visit our complete [Machines API docs](https://fly.io/docs/machines/api/apps-resource/) for details about using the Apps resource.
|
|
507
537
|
*/
|
|
508
|
-
export const tokensRequestKms = (options) => (options?.client ?? client).post({ url:
|
|
538
|
+
export const tokensRequestKms = (options) => (options?.client ?? client).post({ url: "/tokens/kms", ...options });
|
|
509
539
|
/**
|
|
510
540
|
* Request an OIDC token
|
|
511
541
|
*
|
|
@@ -513,16 +543,16 @@ export const tokensRequestKms = (options) => (options?.client ?? client).post({
|
|
|
513
543
|
*
|
|
514
544
|
*/
|
|
515
545
|
export const tokensRequestOidc = (options) => (options.client ?? client).post({
|
|
516
|
-
url:
|
|
546
|
+
url: "/tokens/oidc",
|
|
517
547
|
...options,
|
|
518
548
|
headers: {
|
|
519
|
-
|
|
520
|
-
...options.headers
|
|
521
|
-
}
|
|
549
|
+
"Content-Type": "application/json",
|
|
550
|
+
...options.headers,
|
|
551
|
+
},
|
|
522
552
|
});
|
|
523
553
|
/**
|
|
524
554
|
* Get Current Token Information
|
|
525
555
|
*
|
|
526
556
|
* Get information about the current macaroon token(s), including organizations, apps, and whether each token is from a user or machine
|
|
527
557
|
*/
|
|
528
|
-
export const currentTokenShow = (options) => (options?.client ?? client).get({ url:
|
|
558
|
+
export const currentTokenShow = (options) => (options?.client ?? client).get({ url: "/v1/tokens/current", ...options });
|