@trycua/cua 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +121 -0
- package/bin/cua.js +37 -0
- package/browser/cua_sdk-ffi.d.ts +6 -0
- package/browser/cua_sdk-ffi.js +3 -0
- package/browser/cua_sdk-ffi.ts +14 -0
- package/browser/cua_sdk.d.ts +2237 -0
- package/browser/cua_sdk.js +2607 -0
- package/browser/cua_sdk.ts +3644 -0
- package/browser/cyclops_sdk_schema-ffi.d.ts +6 -0
- package/browser/cyclops_sdk_schema-ffi.js +3 -0
- package/browser/cyclops_sdk_schema-ffi.ts +14 -0
- package/browser/cyclops_sdk_schema.d.ts +996 -0
- package/browser/cyclops_sdk_schema.js +2194 -0
- package/browser/cyclops_sdk_schema.ts +2934 -0
- package/browser/fleet_sdk-ffi.d.ts +28 -0
- package/browser/fleet_sdk-ffi.js +3 -0
- package/browser/fleet_sdk-ffi.ts +35 -0
- package/browser/fleet_sdk.d.ts +3056 -0
- package/browser/fleet_sdk.js +5088 -0
- package/browser/fleet_sdk.ts +6830 -0
- package/browser/index.d.ts +2 -0
- package/browser/index.js +18 -0
- package/browser/index.web.ts +34 -0
- package/browser/tsconfig.json +20 -0
- package/browser/wasm-bindgen/index.d.ts +2346 -0
- package/browser/wasm-bindgen/index.js +6642 -0
- package/browser/wasm-bindgen/index_bg.wasm +0 -0
- package/browser/wasm-bindgen/index_bg.wasm.d.ts +1154 -0
- package/dist/index.d.ts +118 -0
- package/dist/index.js +207 -0
- package/dist/mcp.d.ts +33 -0
- package/dist/mcp.js +41 -0
- package/dist/native/cua_sdk-ffi.d.ts +1038 -0
- package/dist/native/cua_sdk-ffi.js +5095 -0
- package/dist/native/cua_sdk.d.ts +15906 -0
- package/dist/native/cua_sdk.js +27061 -0
- package/dist/native/index.d.ts +7 -0
- package/dist/native/index.js +12 -0
- package/dist/native/node-runtime.d.ts +72 -0
- package/dist/native/node-runtime.js +35 -0
- package/dist/spaces/cursorArt.d.ts +27 -0
- package/dist/spaces/cursorArt.js +59 -0
- package/dist/spaces/errors.d.ts +81 -0
- package/dist/spaces/errors.js +102 -0
- package/dist/spaces/events.d.ts +154 -0
- package/dist/spaces/events.js +182 -0
- package/dist/spaces/groups.d.ts +130 -0
- package/dist/spaces/groups.js +275 -0
- package/dist/spaces/host.d.ts +71 -0
- package/dist/spaces/host.js +154 -0
- package/dist/spaces/index.d.ts +48 -0
- package/dist/spaces/index.js +44 -0
- package/dist/spaces/pip.d.ts +128 -0
- package/dist/spaces/pip.js +250 -0
- package/dist/spaces/presence.d.ts +187 -0
- package/dist/spaces/presence.js +449 -0
- package/dist/spaces/presenceTypes.check.d.ts +12 -0
- package/dist/spaces/presenceTypes.check.js +1 -0
- package/dist/spaces/presenceTypes.d.ts +47 -0
- package/dist/spaces/presenceTypes.js +7 -0
- package/dist/spaces/routines.d.ts +158 -0
- package/dist/spaces/routines.js +339 -0
- package/dist/spaces/thread.d.ts +147 -0
- package/dist/spaces/thread.js +285 -0
- package/dist/spaces/transport/http.d.ts +51 -0
- package/dist/spaces/transport/http.js +113 -0
- package/dist/spaces/transport/index.d.ts +19 -0
- package/dist/spaces/transport/index.js +19 -0
- package/dist/spaces/transport/session.d.ts +120 -0
- package/dist/spaces/transport/session.js +188 -0
- package/dist/spaces/transport/tauri.d.ts +50 -0
- package/dist/spaces/transport/tauri.js +90 -0
- package/dist/spaces/transport/types.d.ts +123 -0
- package/dist/spaces/transport/types.js +59 -0
- package/dist/teleport/controller.d.ts +34 -0
- package/dist/teleport/controller.js +107 -0
- package/dist/teleport/drop.d.ts +62 -0
- package/dist/teleport/drop.js +138 -0
- package/dist/teleport/dropZone.d.ts +59 -0
- package/dist/teleport/dropZone.js +166 -0
- package/dist/teleport/element.d.ts +28 -0
- package/dist/teleport/element.js +340 -0
- package/dist/teleport/index.d.ts +32 -0
- package/dist/teleport/index.js +32 -0
- package/dist/teleport/install.d.ts +31 -0
- package/dist/teleport/install.js +65 -0
- package/dist/teleport/model.d.ts +245 -0
- package/dist/teleport/model.js +334 -0
- package/dist/teleport/windowDrag.d.ts +86 -0
- package/dist/teleport/windowDrag.js +71 -0
- package/package.json +93 -0
|
@@ -0,0 +1,2194 @@
|
|
|
1
|
+
// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
|
|
2
|
+
// Trust me, you don't want to mess with it!
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
import * as wasmBundle from "./wasm-bindgen/index.js";
|
|
7
|
+
import { AbstractFfiConverterByteArray, FfiConverterArray, FfiConverterBool, FfiConverterInt32, FfiConverterMap, FfiConverterObject, FfiConverterOptional, FfiConverterUInt16, FfiConverterUInt32, UniffiAbstractObject, UniffiError, UniffiInternalError, UniffiRustCaller, destructorGuardSymbol, pointerLiteralSymbol, uniffiCreateFfiConverterString, uniffiCreateRecord, uniffiTypeNameSymbol, } from "@ubjs/core";
|
|
8
|
+
// wasm1: wrap the wasm-bindgen namespace once so the codegen call sites can
|
|
9
|
+
// uniformly reference `nativeModule().rustbuffer_alloc` / `.rustbuffer_free`.
|
|
10
|
+
// For wasm1, RustBuffers are plain JS Uint8Arrays — no Rust-side allocation
|
|
11
|
+
// is involved, so alloc just hands back a fresh view and free is a no-op.
|
|
12
|
+
const _nativeModule = Object.assign({}, wasmBundle, {
|
|
13
|
+
rustbuffer_alloc: (n) => new Uint8Array(n),
|
|
14
|
+
rustbuffer_free: (_) => { },
|
|
15
|
+
});
|
|
16
|
+
const nativeModule = () => _nativeModule;
|
|
17
|
+
const uniffiCaller = new UniffiRustCaller(() => new wasmBundle.RustCallStatus());
|
|
18
|
+
const uniffiIsDebug =
|
|
19
|
+
// @ts-ignore -- The process global might not be defined
|
|
20
|
+
typeof process !== "object" ||
|
|
21
|
+
// @ts-ignore -- The process global might not be defined
|
|
22
|
+
process?.env?.NODE_ENV !== "production" ||
|
|
23
|
+
false;
|
|
24
|
+
// Public interface members begin here.
|
|
25
|
+
const stringConverter = (() => {
|
|
26
|
+
const encoder = new TextEncoder();
|
|
27
|
+
const decoder = new TextDecoder();
|
|
28
|
+
return {
|
|
29
|
+
stringToBytes: (s) => encoder.encode(s),
|
|
30
|
+
bytesToString: (ab) => decoder.decode(ab),
|
|
31
|
+
stringByteLength: (s) => encoder.encode(s).byteLength,
|
|
32
|
+
writeStringIntoBuffer: (s, buf, offset) => {
|
|
33
|
+
const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
|
|
34
|
+
return encoder.encodeInto(s, view).written;
|
|
35
|
+
},
|
|
36
|
+
readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length)),
|
|
37
|
+
};
|
|
38
|
+
})();
|
|
39
|
+
const FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
40
|
+
/**
|
|
41
|
+
* Generated factory for {@link ClaimLifecycle} record objects.
|
|
42
|
+
*/
|
|
43
|
+
export const ClaimLifecycle = (() => {
|
|
44
|
+
const defaults = () => ({});
|
|
45
|
+
const create = (() => {
|
|
46
|
+
return uniffiCreateRecord(defaults);
|
|
47
|
+
})();
|
|
48
|
+
return Object.freeze({
|
|
49
|
+
create,
|
|
50
|
+
new: create,
|
|
51
|
+
defaults: () => Object.freeze(defaults()),
|
|
52
|
+
});
|
|
53
|
+
})();
|
|
54
|
+
const FfiConverterTypeClaimLifecycle = (() => {
|
|
55
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
56
|
+
read(from) {
|
|
57
|
+
return {
|
|
58
|
+
shutdownTime: FfiConverterOptionalString.read(from),
|
|
59
|
+
shutdownPolicy: FfiConverterOptionalString.read(from),
|
|
60
|
+
autoRenew: FfiConverterOptionalBoolean.read(from)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
write(value, into) {
|
|
64
|
+
FfiConverterOptionalString.write(value.shutdownTime, into);
|
|
65
|
+
FfiConverterOptionalString.write(value.shutdownPolicy, into);
|
|
66
|
+
FfiConverterOptionalBoolean.write(value.autoRenew, into);
|
|
67
|
+
}
|
|
68
|
+
allocationSize(value) {
|
|
69
|
+
return FfiConverterOptionalString.allocationSize(value.shutdownTime) +
|
|
70
|
+
FfiConverterOptionalString.allocationSize(value.shutdownPolicy) +
|
|
71
|
+
FfiConverterOptionalBoolean.allocationSize(value.autoRenew);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
;
|
|
75
|
+
return new FFIConverter();
|
|
76
|
+
})();
|
|
77
|
+
/**
|
|
78
|
+
* Generated factory for {@link ClaimSecretRef} record objects.
|
|
79
|
+
*/
|
|
80
|
+
export const ClaimSecretRef = (() => {
|
|
81
|
+
const defaults = () => ({});
|
|
82
|
+
const create = (() => {
|
|
83
|
+
return uniffiCreateRecord(defaults);
|
|
84
|
+
})();
|
|
85
|
+
return Object.freeze({
|
|
86
|
+
create,
|
|
87
|
+
new: create,
|
|
88
|
+
defaults: () => Object.freeze(defaults()),
|
|
89
|
+
});
|
|
90
|
+
})();
|
|
91
|
+
const FfiConverterTypeClaimSecretRef = (() => {
|
|
92
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
93
|
+
read(from) {
|
|
94
|
+
return {
|
|
95
|
+
name: FfiConverterString.read(from)
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
write(value, into) {
|
|
99
|
+
FfiConverterString.write(value.name, into);
|
|
100
|
+
}
|
|
101
|
+
allocationSize(value) {
|
|
102
|
+
return FfiConverterString.allocationSize(value.name);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
;
|
|
106
|
+
return new FFIConverter();
|
|
107
|
+
})();
|
|
108
|
+
/**
|
|
109
|
+
* Generated factory for {@link SandboxTemplateRef} record objects.
|
|
110
|
+
*/
|
|
111
|
+
export const SandboxTemplateRef = (() => {
|
|
112
|
+
const defaults = () => ({});
|
|
113
|
+
const create = (() => {
|
|
114
|
+
return uniffiCreateRecord(defaults);
|
|
115
|
+
})();
|
|
116
|
+
return Object.freeze({
|
|
117
|
+
create,
|
|
118
|
+
new: create,
|
|
119
|
+
defaults: () => Object.freeze(defaults()),
|
|
120
|
+
});
|
|
121
|
+
})();
|
|
122
|
+
const FfiConverterTypeSandboxTemplateRef = (() => {
|
|
123
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
124
|
+
read(from) {
|
|
125
|
+
return {
|
|
126
|
+
name: FfiConverterString.read(from)
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
write(value, into) {
|
|
130
|
+
FfiConverterString.write(value.name, into);
|
|
131
|
+
}
|
|
132
|
+
allocationSize(value) {
|
|
133
|
+
return FfiConverterString.allocationSize(value.name);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
;
|
|
137
|
+
return new FFIConverter();
|
|
138
|
+
})();
|
|
139
|
+
/**
|
|
140
|
+
* Generated factory for {@link ClaimSpec} record objects.
|
|
141
|
+
*/
|
|
142
|
+
export const ClaimSpec = (() => {
|
|
143
|
+
const defaults = () => ({
|
|
144
|
+
ttlSecondsAfterCreated: undefined,
|
|
145
|
+
secretRef: undefined
|
|
146
|
+
});
|
|
147
|
+
const create = (() => {
|
|
148
|
+
return uniffiCreateRecord(defaults);
|
|
149
|
+
})();
|
|
150
|
+
return Object.freeze({
|
|
151
|
+
create,
|
|
152
|
+
new: create,
|
|
153
|
+
defaults: () => Object.freeze(defaults()),
|
|
154
|
+
});
|
|
155
|
+
})();
|
|
156
|
+
const FfiConverterTypeClaimSpec = (() => {
|
|
157
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
158
|
+
read(from) {
|
|
159
|
+
return {
|
|
160
|
+
sandboxTemplateRef: FfiConverterTypeSandboxTemplateRef.read(from),
|
|
161
|
+
warmpool: FfiConverterOptionalString.read(from),
|
|
162
|
+
bindDeadline: FfiConverterOptionalUInt32.read(from),
|
|
163
|
+
lifecycle: FfiConverterOptionalTypeClaimLifecycle.read(from),
|
|
164
|
+
ttlSecondsAfterCreated: FfiConverterOptionalUInt32.read(from),
|
|
165
|
+
secretRef: FfiConverterOptionalTypeClaimSecretRef.read(from)
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
write(value, into) {
|
|
169
|
+
FfiConverterTypeSandboxTemplateRef.write(value.sandboxTemplateRef, into);
|
|
170
|
+
FfiConverterOptionalString.write(value.warmpool, into);
|
|
171
|
+
FfiConverterOptionalUInt32.write(value.bindDeadline, into);
|
|
172
|
+
FfiConverterOptionalTypeClaimLifecycle.write(value.lifecycle, into);
|
|
173
|
+
FfiConverterOptionalUInt32.write(value.ttlSecondsAfterCreated, into);
|
|
174
|
+
FfiConverterOptionalTypeClaimSecretRef.write(value.secretRef, into);
|
|
175
|
+
}
|
|
176
|
+
allocationSize(value) {
|
|
177
|
+
return FfiConverterTypeSandboxTemplateRef.allocationSize(value.sandboxTemplateRef) +
|
|
178
|
+
FfiConverterOptionalString.allocationSize(value.warmpool) +
|
|
179
|
+
FfiConverterOptionalUInt32.allocationSize(value.bindDeadline) +
|
|
180
|
+
FfiConverterOptionalTypeClaimLifecycle.allocationSize(value.lifecycle) +
|
|
181
|
+
FfiConverterOptionalUInt32.allocationSize(value.ttlSecondsAfterCreated) +
|
|
182
|
+
FfiConverterOptionalTypeClaimSecretRef.allocationSize(value.secretRef);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
;
|
|
186
|
+
return new FFIConverter();
|
|
187
|
+
})();
|
|
188
|
+
/**
|
|
189
|
+
* Generated factory for {@link OsGymSandboxClaimCondition} record objects.
|
|
190
|
+
*/
|
|
191
|
+
export const OsGymSandboxClaimCondition = (() => {
|
|
192
|
+
const defaults = () => ({});
|
|
193
|
+
const create = (() => {
|
|
194
|
+
return uniffiCreateRecord(defaults);
|
|
195
|
+
})();
|
|
196
|
+
return Object.freeze({
|
|
197
|
+
create,
|
|
198
|
+
new: create,
|
|
199
|
+
defaults: () => Object.freeze(defaults()),
|
|
200
|
+
});
|
|
201
|
+
})();
|
|
202
|
+
const FfiConverterTypeOSGymSandboxClaimCondition = (() => {
|
|
203
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
204
|
+
read(from) {
|
|
205
|
+
return {
|
|
206
|
+
type: FfiConverterOptionalString.read(from),
|
|
207
|
+
status: FfiConverterOptionalString.read(from),
|
|
208
|
+
reason: FfiConverterOptionalString.read(from),
|
|
209
|
+
message: FfiConverterOptionalString.read(from),
|
|
210
|
+
lastTransitionTime: FfiConverterOptionalString.read(from)
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
write(value, into) {
|
|
214
|
+
FfiConverterOptionalString.write(value.type, into);
|
|
215
|
+
FfiConverterOptionalString.write(value.status, into);
|
|
216
|
+
FfiConverterOptionalString.write(value.reason, into);
|
|
217
|
+
FfiConverterOptionalString.write(value.message, into);
|
|
218
|
+
FfiConverterOptionalString.write(value.lastTransitionTime, into);
|
|
219
|
+
}
|
|
220
|
+
allocationSize(value) {
|
|
221
|
+
return FfiConverterOptionalString.allocationSize(value.type) +
|
|
222
|
+
FfiConverterOptionalString.allocationSize(value.status) +
|
|
223
|
+
FfiConverterOptionalString.allocationSize(value.reason) +
|
|
224
|
+
FfiConverterOptionalString.allocationSize(value.message) +
|
|
225
|
+
FfiConverterOptionalString.allocationSize(value.lastTransitionTime);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
;
|
|
229
|
+
return new FFIConverter();
|
|
230
|
+
})();
|
|
231
|
+
/**
|
|
232
|
+
* Generated factory for {@link OsGymSandboxClaimSandbox} record objects.
|
|
233
|
+
*/
|
|
234
|
+
export const OsGymSandboxClaimSandbox = (() => {
|
|
235
|
+
const defaults = () => ({});
|
|
236
|
+
const create = (() => {
|
|
237
|
+
return uniffiCreateRecord(defaults);
|
|
238
|
+
})();
|
|
239
|
+
return Object.freeze({
|
|
240
|
+
create,
|
|
241
|
+
new: create,
|
|
242
|
+
defaults: () => Object.freeze(defaults()),
|
|
243
|
+
});
|
|
244
|
+
})();
|
|
245
|
+
const FfiConverterTypeOSGymSandboxClaimSandbox = (() => {
|
|
246
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
247
|
+
read(from) {
|
|
248
|
+
return {
|
|
249
|
+
name: FfiConverterOptionalString.read(from),
|
|
250
|
+
service: FfiConverterOptionalString.read(from)
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
write(value, into) {
|
|
254
|
+
FfiConverterOptionalString.write(value.name, into);
|
|
255
|
+
FfiConverterOptionalString.write(value.service, into);
|
|
256
|
+
}
|
|
257
|
+
allocationSize(value) {
|
|
258
|
+
return FfiConverterOptionalString.allocationSize(value.name) +
|
|
259
|
+
FfiConverterOptionalString.allocationSize(value.service);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
;
|
|
263
|
+
return new FFIConverter();
|
|
264
|
+
})();
|
|
265
|
+
/**
|
|
266
|
+
* Generated factory for {@link OsGymSandboxClaimStatus} record objects.
|
|
267
|
+
*/
|
|
268
|
+
export const OsGymSandboxClaimStatus = (() => {
|
|
269
|
+
const defaults = () => ({});
|
|
270
|
+
const create = (() => {
|
|
271
|
+
return uniffiCreateRecord(defaults);
|
|
272
|
+
})();
|
|
273
|
+
return Object.freeze({
|
|
274
|
+
create,
|
|
275
|
+
new: create,
|
|
276
|
+
defaults: () => Object.freeze(defaults()),
|
|
277
|
+
});
|
|
278
|
+
})();
|
|
279
|
+
const FfiConverterTypeOSGymSandboxClaimStatus = (() => {
|
|
280
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
281
|
+
read(from) {
|
|
282
|
+
return {
|
|
283
|
+
phase: FfiConverterOptionalString.read(from),
|
|
284
|
+
conditions: FfiConverterOptionalSequenceTypeOSGymSandboxClaimCondition.read(from),
|
|
285
|
+
sandbox: FfiConverterOptionalTypeOSGymSandboxClaimSandbox.read(from)
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
write(value, into) {
|
|
289
|
+
FfiConverterOptionalString.write(value.phase, into);
|
|
290
|
+
FfiConverterOptionalSequenceTypeOSGymSandboxClaimCondition.write(value.conditions, into);
|
|
291
|
+
FfiConverterOptionalTypeOSGymSandboxClaimSandbox.write(value.sandbox, into);
|
|
292
|
+
}
|
|
293
|
+
allocationSize(value) {
|
|
294
|
+
return FfiConverterOptionalString.allocationSize(value.phase) +
|
|
295
|
+
FfiConverterOptionalSequenceTypeOSGymSandboxClaimCondition.allocationSize(value.conditions) +
|
|
296
|
+
FfiConverterOptionalTypeOSGymSandboxClaimSandbox.allocationSize(value.sandbox);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
;
|
|
300
|
+
return new FFIConverter();
|
|
301
|
+
})();
|
|
302
|
+
export var RuntimeKind;
|
|
303
|
+
(function (RuntimeKind) {
|
|
304
|
+
RuntimeKind[RuntimeKind["Kubevirt"] = 0] = "Kubevirt";
|
|
305
|
+
RuntimeKind[RuntimeKind["Macos"] = 1] = "Macos";
|
|
306
|
+
RuntimeKind[RuntimeKind["Gvisor"] = 2] = "Gvisor";
|
|
307
|
+
})(RuntimeKind || (RuntimeKind = {}));
|
|
308
|
+
const FfiConverterTypeRuntimeKind = (() => {
|
|
309
|
+
const ordinalConverter = FfiConverterInt32;
|
|
310
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
311
|
+
read(from) {
|
|
312
|
+
switch (ordinalConverter.read(from)) {
|
|
313
|
+
case 1: return RuntimeKind.Kubevirt;
|
|
314
|
+
case 2: return RuntimeKind.Macos;
|
|
315
|
+
case 3: return RuntimeKind.Gvisor;
|
|
316
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
write(value, into) {
|
|
320
|
+
switch (value) {
|
|
321
|
+
case RuntimeKind.Kubevirt: return ordinalConverter.write(1, into);
|
|
322
|
+
case RuntimeKind.Macos: return ordinalConverter.write(2, into);
|
|
323
|
+
case RuntimeKind.Gvisor: return ordinalConverter.write(3, into);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
allocationSize(value) {
|
|
327
|
+
return ordinalConverter.allocationSize(0);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
return new FFIConverter();
|
|
331
|
+
})();
|
|
332
|
+
export class PreservedJson extends UniffiAbstractObject {
|
|
333
|
+
[uniffiTypeNameSymbol] = "PreservedJson";
|
|
334
|
+
[destructorGuardSymbol];
|
|
335
|
+
[pointerLiteralSymbol];
|
|
336
|
+
// No primary constructor declared for this class.
|
|
337
|
+
constructor(pointer) {
|
|
338
|
+
super();
|
|
339
|
+
this[pointerLiteralSymbol] = pointer;
|
|
340
|
+
this[destructorGuardSymbol] = uniffiTypePreservedJsonObjectFactory.bless(pointer);
|
|
341
|
+
}
|
|
342
|
+
static fromJson(value) {
|
|
343
|
+
return FfiConverterTypePreservedJson.lift(uniffiCaller.rustCallWithError(
|
|
344
|
+
/*liftError:*/ FfiConverterTypeJsonValueError.lift.bind(FfiConverterTypeJsonValueError),
|
|
345
|
+
/*caller:*/ (callStatus) => {
|
|
346
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_constructor_preservedjson_from_json(FfiConverterString.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
347
|
+
},
|
|
348
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
349
|
+
}
|
|
350
|
+
toJson() {
|
|
351
|
+
return ((__rb) => {
|
|
352
|
+
try {
|
|
353
|
+
return FfiConverterString.lift(__rb);
|
|
354
|
+
}
|
|
355
|
+
finally {
|
|
356
|
+
nativeModule().rustbuffer_free(__rb);
|
|
357
|
+
}
|
|
358
|
+
})(uniffiCaller.rustCall(
|
|
359
|
+
/*caller:*/ (callStatus) => {
|
|
360
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_preservedjson_to_json(uniffiTypePreservedJsonObjectFactory.clonePointer(this), callStatus);
|
|
361
|
+
},
|
|
362
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
363
|
+
}
|
|
364
|
+
uniffiDestroy() {
|
|
365
|
+
const ptr = this[destructorGuardSymbol];
|
|
366
|
+
if (ptr !== undefined) {
|
|
367
|
+
const pointer = uniffiTypePreservedJsonObjectFactory.pointer(this);
|
|
368
|
+
uniffiTypePreservedJsonObjectFactory.freePointer(pointer);
|
|
369
|
+
uniffiTypePreservedJsonObjectFactory.unbless(ptr);
|
|
370
|
+
delete this[destructorGuardSymbol];
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
static instanceOf(obj_) {
|
|
374
|
+
return uniffiTypePreservedJsonObjectFactory.isConcreteType(obj_);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
const uniffiTypePreservedJsonObjectFactory = (() => {
|
|
378
|
+
/// <reference lib="es2021" />
|
|
379
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry((heldValue) => {
|
|
380
|
+
uniffiTypePreservedJsonObjectFactory.freePointer(heldValue);
|
|
381
|
+
}) : null;
|
|
382
|
+
return {
|
|
383
|
+
create(pointer) {
|
|
384
|
+
const instance = Object.create(PreservedJson.prototype);
|
|
385
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
386
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
387
|
+
instance[uniffiTypeNameSymbol] = "PreservedJson";
|
|
388
|
+
return instance;
|
|
389
|
+
},
|
|
390
|
+
bless(p) {
|
|
391
|
+
const ptr = {
|
|
392
|
+
p, // make sure this object doesn't get optimized away.
|
|
393
|
+
markDestroyed: () => undefined,
|
|
394
|
+
};
|
|
395
|
+
if (registry) {
|
|
396
|
+
registry.register(ptr, p, ptr);
|
|
397
|
+
}
|
|
398
|
+
return ptr;
|
|
399
|
+
},
|
|
400
|
+
unbless(ptr_) {
|
|
401
|
+
if (registry) {
|
|
402
|
+
registry.unregister(ptr_);
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
pointer(obj_) {
|
|
406
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
407
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
408
|
+
}
|
|
409
|
+
return obj_[pointerLiteralSymbol];
|
|
410
|
+
},
|
|
411
|
+
clonePointer(obj_) {
|
|
412
|
+
const pointer = this.pointer(obj_);
|
|
413
|
+
return uniffiCaller.rustCall(
|
|
414
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_clone_preservedjson(pointer, callStatus),
|
|
415
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
416
|
+
},
|
|
417
|
+
freePointer(pointer) {
|
|
418
|
+
uniffiCaller.rustCall(
|
|
419
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_free_preservedjson(pointer, callStatus),
|
|
420
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
421
|
+
},
|
|
422
|
+
isConcreteType(obj_) {
|
|
423
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "PreservedJson";
|
|
424
|
+
},
|
|
425
|
+
};
|
|
426
|
+
})();
|
|
427
|
+
const FfiConverterTypePreservedJson = new FfiConverterObject(uniffiTypePreservedJsonObjectFactory);
|
|
428
|
+
export var ImagePullPolicy;
|
|
429
|
+
(function (ImagePullPolicy) {
|
|
430
|
+
ImagePullPolicy[ImagePullPolicy["Always"] = 0] = "Always";
|
|
431
|
+
ImagePullPolicy[ImagePullPolicy["IfNotPresent"] = 1] = "IfNotPresent";
|
|
432
|
+
ImagePullPolicy[ImagePullPolicy["Never"] = 2] = "Never";
|
|
433
|
+
})(ImagePullPolicy || (ImagePullPolicy = {}));
|
|
434
|
+
const FfiConverterTypeImagePullPolicy = (() => {
|
|
435
|
+
const ordinalConverter = FfiConverterInt32;
|
|
436
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
437
|
+
read(from) {
|
|
438
|
+
switch (ordinalConverter.read(from)) {
|
|
439
|
+
case 1: return ImagePullPolicy.Always;
|
|
440
|
+
case 2: return ImagePullPolicy.IfNotPresent;
|
|
441
|
+
case 3: return ImagePullPolicy.Never;
|
|
442
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
write(value, into) {
|
|
446
|
+
switch (value) {
|
|
447
|
+
case ImagePullPolicy.Always: return ordinalConverter.write(1, into);
|
|
448
|
+
case ImagePullPolicy.IfNotPresent: return ordinalConverter.write(2, into);
|
|
449
|
+
case ImagePullPolicy.Never: return ordinalConverter.write(3, into);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
allocationSize(value) {
|
|
453
|
+
return ordinalConverter.allocationSize(0);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
return new FFIConverter();
|
|
457
|
+
})();
|
|
458
|
+
export var Firmware;
|
|
459
|
+
(function (Firmware) {
|
|
460
|
+
Firmware[Firmware["Bios"] = 0] = "Bios";
|
|
461
|
+
Firmware[Firmware["Efi"] = 1] = "Efi";
|
|
462
|
+
})(Firmware || (Firmware = {}));
|
|
463
|
+
const FfiConverterTypeFirmware = (() => {
|
|
464
|
+
const ordinalConverter = FfiConverterInt32;
|
|
465
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
466
|
+
read(from) {
|
|
467
|
+
switch (ordinalConverter.read(from)) {
|
|
468
|
+
case 1: return Firmware.Bios;
|
|
469
|
+
case 2: return Firmware.Efi;
|
|
470
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
write(value, into) {
|
|
474
|
+
switch (value) {
|
|
475
|
+
case Firmware.Bios: return ordinalConverter.write(1, into);
|
|
476
|
+
case Firmware.Efi: return ordinalConverter.write(2, into);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
allocationSize(value) {
|
|
480
|
+
return ordinalConverter.allocationSize(0);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
return new FFIConverter();
|
|
484
|
+
})();
|
|
485
|
+
export var ServiceProtocol;
|
|
486
|
+
(function (ServiceProtocol) {
|
|
487
|
+
ServiceProtocol[ServiceProtocol["Tcp"] = 0] = "Tcp";
|
|
488
|
+
ServiceProtocol[ServiceProtocol["Udp"] = 1] = "Udp";
|
|
489
|
+
})(ServiceProtocol || (ServiceProtocol = {}));
|
|
490
|
+
const FfiConverterTypeServiceProtocol = (() => {
|
|
491
|
+
const ordinalConverter = FfiConverterInt32;
|
|
492
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
493
|
+
read(from) {
|
|
494
|
+
switch (ordinalConverter.read(from)) {
|
|
495
|
+
case 1: return ServiceProtocol.Tcp;
|
|
496
|
+
case 2: return ServiceProtocol.Udp;
|
|
497
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
write(value, into) {
|
|
501
|
+
switch (value) {
|
|
502
|
+
case ServiceProtocol.Tcp: return ordinalConverter.write(1, into);
|
|
503
|
+
case ServiceProtocol.Udp: return ordinalConverter.write(2, into);
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
allocationSize(value) {
|
|
507
|
+
return ordinalConverter.allocationSize(0);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
return new FFIConverter();
|
|
511
|
+
})();
|
|
512
|
+
/**
|
|
513
|
+
* Generated factory for {@link SandboxService} record objects.
|
|
514
|
+
*/
|
|
515
|
+
export const SandboxService = (() => {
|
|
516
|
+
const defaults = () => ({});
|
|
517
|
+
const create = (() => {
|
|
518
|
+
return uniffiCreateRecord(defaults);
|
|
519
|
+
})();
|
|
520
|
+
return Object.freeze({
|
|
521
|
+
create,
|
|
522
|
+
new: create,
|
|
523
|
+
defaults: () => Object.freeze(defaults()),
|
|
524
|
+
});
|
|
525
|
+
})();
|
|
526
|
+
const FfiConverterTypeSandboxService = (() => {
|
|
527
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
528
|
+
read(from) {
|
|
529
|
+
return {
|
|
530
|
+
name: FfiConverterString.read(from),
|
|
531
|
+
targetPort: FfiConverterUInt16.read(from),
|
|
532
|
+
protocol: FfiConverterOptionalTypeServiceProtocol.read(from)
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
write(value, into) {
|
|
536
|
+
FfiConverterString.write(value.name, into);
|
|
537
|
+
FfiConverterUInt16.write(value.targetPort, into);
|
|
538
|
+
FfiConverterOptionalTypeServiceProtocol.write(value.protocol, into);
|
|
539
|
+
}
|
|
540
|
+
allocationSize(value) {
|
|
541
|
+
return FfiConverterString.allocationSize(value.name) +
|
|
542
|
+
FfiConverterUInt16.allocationSize(value.targetPort) +
|
|
543
|
+
FfiConverterOptionalTypeServiceProtocol.allocationSize(value.protocol);
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
;
|
|
547
|
+
return new FFIConverter();
|
|
548
|
+
})();
|
|
549
|
+
/**
|
|
550
|
+
* Generated factory for {@link OidcConfig} record objects.
|
|
551
|
+
*/
|
|
552
|
+
export const OidcConfig = (() => {
|
|
553
|
+
const defaults = () => ({});
|
|
554
|
+
const create = (() => {
|
|
555
|
+
return uniffiCreateRecord(defaults);
|
|
556
|
+
})();
|
|
557
|
+
return Object.freeze({
|
|
558
|
+
create,
|
|
559
|
+
new: create,
|
|
560
|
+
defaults: () => Object.freeze(defaults()),
|
|
561
|
+
});
|
|
562
|
+
})();
|
|
563
|
+
const FfiConverterTypeOidcConfig = (() => {
|
|
564
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
565
|
+
read(from) {
|
|
566
|
+
return {
|
|
567
|
+
credentialsSecret: FfiConverterString.read(from),
|
|
568
|
+
tokenUrl: FfiConverterString.read(from),
|
|
569
|
+
awsRoleArn: FfiConverterOptionalString.read(from),
|
|
570
|
+
awsRegion: FfiConverterOptionalString.read(from),
|
|
571
|
+
refreshIntervalSeconds: FfiConverterOptionalUInt32.read(from)
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
write(value, into) {
|
|
575
|
+
FfiConverterString.write(value.credentialsSecret, into);
|
|
576
|
+
FfiConverterString.write(value.tokenUrl, into);
|
|
577
|
+
FfiConverterOptionalString.write(value.awsRoleArn, into);
|
|
578
|
+
FfiConverterOptionalString.write(value.awsRegion, into);
|
|
579
|
+
FfiConverterOptionalUInt32.write(value.refreshIntervalSeconds, into);
|
|
580
|
+
}
|
|
581
|
+
allocationSize(value) {
|
|
582
|
+
return FfiConverterString.allocationSize(value.credentialsSecret) +
|
|
583
|
+
FfiConverterString.allocationSize(value.tokenUrl) +
|
|
584
|
+
FfiConverterOptionalString.allocationSize(value.awsRoleArn) +
|
|
585
|
+
FfiConverterOptionalString.allocationSize(value.awsRegion) +
|
|
586
|
+
FfiConverterOptionalUInt32.allocationSize(value.refreshIntervalSeconds);
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
;
|
|
590
|
+
return new FFIConverter();
|
|
591
|
+
})();
|
|
592
|
+
/**
|
|
593
|
+
* How `vmTemplate.command`/`args`/`env` reach the sandbox
|
|
594
|
+
* (`vmTemplate.processMode`). Absent means `Legacy`.
|
|
595
|
+
*/
|
|
596
|
+
export var ProcessMode;
|
|
597
|
+
(function (ProcessMode) {
|
|
598
|
+
/**
|
|
599
|
+
* What templates did before processMode existed: pod runtimes run
|
|
600
|
+
* command/args/env; KubeVirt ignores command and refuses args/env.
|
|
601
|
+
*/
|
|
602
|
+
ProcessMode[ProcessMode["Legacy"] = 0] = "Legacy";
|
|
603
|
+
/**
|
|
604
|
+
* Every runtime runs command/args/env. Pod runtimes set them on the
|
|
605
|
+
* sandbox container; KubeVirt renders them into the sandbox's cloud-init.
|
|
606
|
+
*/
|
|
607
|
+
ProcessMode[ProcessMode["Run"] = 1] = "Run";
|
|
608
|
+
})(ProcessMode || (ProcessMode = {}));
|
|
609
|
+
const FfiConverterTypeProcessMode = (() => {
|
|
610
|
+
const ordinalConverter = FfiConverterInt32;
|
|
611
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
612
|
+
read(from) {
|
|
613
|
+
switch (ordinalConverter.read(from)) {
|
|
614
|
+
case 1: return ProcessMode.Legacy;
|
|
615
|
+
case 2: return ProcessMode.Run;
|
|
616
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
write(value, into) {
|
|
620
|
+
switch (value) {
|
|
621
|
+
case ProcessMode.Legacy: return ordinalConverter.write(1, into);
|
|
622
|
+
case ProcessMode.Run: return ordinalConverter.write(2, into);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
allocationSize(value) {
|
|
626
|
+
return ordinalConverter.allocationSize(0);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
return new FFIConverter();
|
|
630
|
+
})();
|
|
631
|
+
/**
|
|
632
|
+
* Generated factory for {@link VmTemplate} record objects.
|
|
633
|
+
*/
|
|
634
|
+
export const VmTemplate = (() => {
|
|
635
|
+
const defaults = () => ({
|
|
636
|
+
claimSecrets: undefined,
|
|
637
|
+
args: undefined,
|
|
638
|
+
env: undefined,
|
|
639
|
+
processMode: undefined
|
|
640
|
+
});
|
|
641
|
+
const create = (() => {
|
|
642
|
+
return uniffiCreateRecord(defaults);
|
|
643
|
+
})();
|
|
644
|
+
return Object.freeze({
|
|
645
|
+
create,
|
|
646
|
+
new: create,
|
|
647
|
+
defaults: () => Object.freeze(defaults()),
|
|
648
|
+
});
|
|
649
|
+
})();
|
|
650
|
+
const FfiConverterTypeVmTemplate = (() => {
|
|
651
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
652
|
+
read(from) {
|
|
653
|
+
return {
|
|
654
|
+
containerDiskImage: FfiConverterString.read(from),
|
|
655
|
+
command: FfiConverterOptionalSequenceString.read(from),
|
|
656
|
+
runtime: FfiConverterOptionalTypeRuntimeKind.read(from),
|
|
657
|
+
runtimeClassName: FfiConverterOptionalString.read(from),
|
|
658
|
+
nodeSelector: FfiConverterOptionalMapStringString.read(from),
|
|
659
|
+
tolerations: FfiConverterOptionalSequenceTypePreservedJson.read(from),
|
|
660
|
+
imagePullPolicy: FfiConverterOptionalTypeImagePullPolicy.read(from),
|
|
661
|
+
imagePullSecret: FfiConverterOptionalString.read(from),
|
|
662
|
+
cpuCores: FfiConverterOptionalUInt32.read(from),
|
|
663
|
+
memory: FfiConverterOptionalString.read(from),
|
|
664
|
+
firmware: FfiConverterOptionalTypeFirmware.read(from),
|
|
665
|
+
nestedVirtualization: FfiConverterOptionalBoolean.read(from),
|
|
666
|
+
probes: FfiConverterOptionalTypePreservedJson.read(from),
|
|
667
|
+
services: FfiConverterOptionalSequenceTypeSandboxService.read(from),
|
|
668
|
+
oidc: FfiConverterOptionalTypeOidcConfig.read(from),
|
|
669
|
+
claimSecrets: FfiConverterOptionalBoolean.read(from),
|
|
670
|
+
args: FfiConverterOptionalSequenceString.read(from),
|
|
671
|
+
env: FfiConverterOptionalMapStringString.read(from),
|
|
672
|
+
processMode: FfiConverterOptionalTypeProcessMode.read(from)
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
write(value, into) {
|
|
676
|
+
FfiConverterString.write(value.containerDiskImage, into);
|
|
677
|
+
FfiConverterOptionalSequenceString.write(value.command, into);
|
|
678
|
+
FfiConverterOptionalTypeRuntimeKind.write(value.runtime, into);
|
|
679
|
+
FfiConverterOptionalString.write(value.runtimeClassName, into);
|
|
680
|
+
FfiConverterOptionalMapStringString.write(value.nodeSelector, into);
|
|
681
|
+
FfiConverterOptionalSequenceTypePreservedJson.write(value.tolerations, into);
|
|
682
|
+
FfiConverterOptionalTypeImagePullPolicy.write(value.imagePullPolicy, into);
|
|
683
|
+
FfiConverterOptionalString.write(value.imagePullSecret, into);
|
|
684
|
+
FfiConverterOptionalUInt32.write(value.cpuCores, into);
|
|
685
|
+
FfiConverterOptionalString.write(value.memory, into);
|
|
686
|
+
FfiConverterOptionalTypeFirmware.write(value.firmware, into);
|
|
687
|
+
FfiConverterOptionalBoolean.write(value.nestedVirtualization, into);
|
|
688
|
+
FfiConverterOptionalTypePreservedJson.write(value.probes, into);
|
|
689
|
+
FfiConverterOptionalSequenceTypeSandboxService.write(value.services, into);
|
|
690
|
+
FfiConverterOptionalTypeOidcConfig.write(value.oidc, into);
|
|
691
|
+
FfiConverterOptionalBoolean.write(value.claimSecrets, into);
|
|
692
|
+
FfiConverterOptionalSequenceString.write(value.args, into);
|
|
693
|
+
FfiConverterOptionalMapStringString.write(value.env, into);
|
|
694
|
+
FfiConverterOptionalTypeProcessMode.write(value.processMode, into);
|
|
695
|
+
}
|
|
696
|
+
allocationSize(value) {
|
|
697
|
+
return FfiConverterString.allocationSize(value.containerDiskImage) +
|
|
698
|
+
FfiConverterOptionalSequenceString.allocationSize(value.command) +
|
|
699
|
+
FfiConverterOptionalTypeRuntimeKind.allocationSize(value.runtime) +
|
|
700
|
+
FfiConverterOptionalString.allocationSize(value.runtimeClassName) +
|
|
701
|
+
FfiConverterOptionalMapStringString.allocationSize(value.nodeSelector) +
|
|
702
|
+
FfiConverterOptionalSequenceTypePreservedJson.allocationSize(value.tolerations) +
|
|
703
|
+
FfiConverterOptionalTypeImagePullPolicy.allocationSize(value.imagePullPolicy) +
|
|
704
|
+
FfiConverterOptionalString.allocationSize(value.imagePullSecret) +
|
|
705
|
+
FfiConverterOptionalUInt32.allocationSize(value.cpuCores) +
|
|
706
|
+
FfiConverterOptionalString.allocationSize(value.memory) +
|
|
707
|
+
FfiConverterOptionalTypeFirmware.allocationSize(value.firmware) +
|
|
708
|
+
FfiConverterOptionalBoolean.allocationSize(value.nestedVirtualization) +
|
|
709
|
+
FfiConverterOptionalTypePreservedJson.allocationSize(value.probes) +
|
|
710
|
+
FfiConverterOptionalSequenceTypeSandboxService.allocationSize(value.services) +
|
|
711
|
+
FfiConverterOptionalTypeOidcConfig.allocationSize(value.oidc) +
|
|
712
|
+
FfiConverterOptionalBoolean.allocationSize(value.claimSecrets) +
|
|
713
|
+
FfiConverterOptionalSequenceString.allocationSize(value.args) +
|
|
714
|
+
FfiConverterOptionalMapStringString.allocationSize(value.env) +
|
|
715
|
+
FfiConverterOptionalTypeProcessMode.allocationSize(value.processMode);
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
;
|
|
719
|
+
return new FFIConverter();
|
|
720
|
+
})();
|
|
721
|
+
/**
|
|
722
|
+
* Generated factory for {@link OsGymSandboxSpec} record objects.
|
|
723
|
+
*/
|
|
724
|
+
export const OsGymSandboxSpec = (() => {
|
|
725
|
+
const defaults = () => ({});
|
|
726
|
+
const create = (() => {
|
|
727
|
+
return uniffiCreateRecord(defaults);
|
|
728
|
+
})();
|
|
729
|
+
return Object.freeze({
|
|
730
|
+
create,
|
|
731
|
+
new: create,
|
|
732
|
+
defaults: () => Object.freeze(defaults()),
|
|
733
|
+
});
|
|
734
|
+
})();
|
|
735
|
+
const FfiConverterTypeOSGymSandboxSpec = (() => {
|
|
736
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
737
|
+
read(from) {
|
|
738
|
+
return {
|
|
739
|
+
vmTemplate: FfiConverterTypeVmTemplate.read(from)
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
write(value, into) {
|
|
743
|
+
FfiConverterTypeVmTemplate.write(value.vmTemplate, into);
|
|
744
|
+
}
|
|
745
|
+
allocationSize(value) {
|
|
746
|
+
return FfiConverterTypeVmTemplate.allocationSize(value.vmTemplate);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
;
|
|
750
|
+
return new FFIConverter();
|
|
751
|
+
})();
|
|
752
|
+
/**
|
|
753
|
+
* Generated factory for {@link OsGymSandboxStatus} record objects.
|
|
754
|
+
*/
|
|
755
|
+
export const OsGymSandboxStatus = (() => {
|
|
756
|
+
const defaults = () => ({});
|
|
757
|
+
const create = (() => {
|
|
758
|
+
return uniffiCreateRecord(defaults);
|
|
759
|
+
})();
|
|
760
|
+
return Object.freeze({
|
|
761
|
+
create,
|
|
762
|
+
new: create,
|
|
763
|
+
defaults: () => Object.freeze(defaults()),
|
|
764
|
+
});
|
|
765
|
+
})();
|
|
766
|
+
const FfiConverterTypeOSGymSandboxStatus = (() => {
|
|
767
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
768
|
+
read(from) {
|
|
769
|
+
return {
|
|
770
|
+
phase: FfiConverterOptionalString.read(from),
|
|
771
|
+
runtime: FfiConverterOptionalString.read(from),
|
|
772
|
+
ready: FfiConverterOptionalBoolean.read(from),
|
|
773
|
+
vmName: FfiConverterOptionalString.read(from),
|
|
774
|
+
service: FfiConverterOptionalString.read(from),
|
|
775
|
+
message: FfiConverterOptionalString.read(from),
|
|
776
|
+
resetIssuedAt: FfiConverterOptionalString.read(from),
|
|
777
|
+
resetVmiUid: FfiConverterOptionalString.read(from)
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
write(value, into) {
|
|
781
|
+
FfiConverterOptionalString.write(value.phase, into);
|
|
782
|
+
FfiConverterOptionalString.write(value.runtime, into);
|
|
783
|
+
FfiConverterOptionalBoolean.write(value.ready, into);
|
|
784
|
+
FfiConverterOptionalString.write(value.vmName, into);
|
|
785
|
+
FfiConverterOptionalString.write(value.service, into);
|
|
786
|
+
FfiConverterOptionalString.write(value.message, into);
|
|
787
|
+
FfiConverterOptionalString.write(value.resetIssuedAt, into);
|
|
788
|
+
FfiConverterOptionalString.write(value.resetVmiUid, into);
|
|
789
|
+
}
|
|
790
|
+
allocationSize(value) {
|
|
791
|
+
return FfiConverterOptionalString.allocationSize(value.phase) +
|
|
792
|
+
FfiConverterOptionalString.allocationSize(value.runtime) +
|
|
793
|
+
FfiConverterOptionalBoolean.allocationSize(value.ready) +
|
|
794
|
+
FfiConverterOptionalString.allocationSize(value.vmName) +
|
|
795
|
+
FfiConverterOptionalString.allocationSize(value.service) +
|
|
796
|
+
FfiConverterOptionalString.allocationSize(value.message) +
|
|
797
|
+
FfiConverterOptionalString.allocationSize(value.resetIssuedAt) +
|
|
798
|
+
FfiConverterOptionalString.allocationSize(value.resetVmiUid);
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
;
|
|
802
|
+
return new FFIConverter();
|
|
803
|
+
})();
|
|
804
|
+
/**
|
|
805
|
+
* Generated factory for {@link OsGymSandboxTemplateSpec} record objects.
|
|
806
|
+
*/
|
|
807
|
+
export const OsGymSandboxTemplateSpec = (() => {
|
|
808
|
+
const defaults = () => ({});
|
|
809
|
+
const create = (() => {
|
|
810
|
+
return uniffiCreateRecord(defaults);
|
|
811
|
+
})();
|
|
812
|
+
return Object.freeze({
|
|
813
|
+
create,
|
|
814
|
+
new: create,
|
|
815
|
+
defaults: () => Object.freeze(defaults()),
|
|
816
|
+
});
|
|
817
|
+
})();
|
|
818
|
+
const FfiConverterTypeOSGymSandboxTemplateSpec = (() => {
|
|
819
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
820
|
+
read(from) {
|
|
821
|
+
return {
|
|
822
|
+
vmTemplate: FfiConverterTypeVmTemplate.read(from)
|
|
823
|
+
};
|
|
824
|
+
}
|
|
825
|
+
write(value, into) {
|
|
826
|
+
FfiConverterTypeVmTemplate.write(value.vmTemplate, into);
|
|
827
|
+
}
|
|
828
|
+
allocationSize(value) {
|
|
829
|
+
return FfiConverterTypeVmTemplate.allocationSize(value.vmTemplate);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
;
|
|
833
|
+
return new FFIConverter();
|
|
834
|
+
})();
|
|
835
|
+
/**
|
|
836
|
+
* Generated factory for {@link WarmPoolAutoscaling} record objects.
|
|
837
|
+
*/
|
|
838
|
+
export const WarmPoolAutoscaling = (() => {
|
|
839
|
+
const defaults = () => ({});
|
|
840
|
+
const create = (() => {
|
|
841
|
+
return uniffiCreateRecord(defaults);
|
|
842
|
+
})();
|
|
843
|
+
return Object.freeze({
|
|
844
|
+
create,
|
|
845
|
+
new: create,
|
|
846
|
+
defaults: () => Object.freeze(defaults()),
|
|
847
|
+
});
|
|
848
|
+
})();
|
|
849
|
+
const FfiConverterTypeWarmPoolAutoscaling = (() => {
|
|
850
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
851
|
+
read(from) {
|
|
852
|
+
return {
|
|
853
|
+
minPoolSize: FfiConverterOptionalUInt32.read(from),
|
|
854
|
+
initialPoolSize: FfiConverterOptionalUInt32.read(from),
|
|
855
|
+
maxPoolSize: FfiConverterOptionalUInt32.read(from)
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
write(value, into) {
|
|
859
|
+
FfiConverterOptionalUInt32.write(value.minPoolSize, into);
|
|
860
|
+
FfiConverterOptionalUInt32.write(value.initialPoolSize, into);
|
|
861
|
+
FfiConverterOptionalUInt32.write(value.maxPoolSize, into);
|
|
862
|
+
}
|
|
863
|
+
allocationSize(value) {
|
|
864
|
+
return FfiConverterOptionalUInt32.allocationSize(value.minPoolSize) +
|
|
865
|
+
FfiConverterOptionalUInt32.allocationSize(value.initialPoolSize) +
|
|
866
|
+
FfiConverterOptionalUInt32.allocationSize(value.maxPoolSize);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
;
|
|
870
|
+
return new FFIConverter();
|
|
871
|
+
})();
|
|
872
|
+
/**
|
|
873
|
+
* What the pool-operator deletes when a warm pool's creation TTL
|
|
874
|
+
* (`ttlSecondsAfterCreated`) or idle TTL (`idleTtlSeconds`) expires.
|
|
875
|
+
*/
|
|
876
|
+
export var WarmPoolTtlPolicy;
|
|
877
|
+
(function (WarmPoolTtlPolicy) {
|
|
878
|
+
/**
|
|
879
|
+
* Delete only the warm pool. Its claims and namespace stay.
|
|
880
|
+
*/
|
|
881
|
+
WarmPoolTtlPolicy[WarmPoolTtlPolicy["Retain"] = 0] = "Retain";
|
|
882
|
+
/**
|
|
883
|
+
* Also delete the pool's dead unbound claims (TTL passed, older than
|
|
884
|
+
* max(900s, bindDeadline)). Bound claims, the namespace and volumes stay.
|
|
885
|
+
*/
|
|
886
|
+
WarmPoolTtlPolicy[WarmPoolTtlPolicy["Cascade"] = 1] = "Cascade";
|
|
887
|
+
})(WarmPoolTtlPolicy || (WarmPoolTtlPolicy = {}));
|
|
888
|
+
const FfiConverterTypeWarmPoolTtlPolicy = (() => {
|
|
889
|
+
const ordinalConverter = FfiConverterInt32;
|
|
890
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
891
|
+
read(from) {
|
|
892
|
+
switch (ordinalConverter.read(from)) {
|
|
893
|
+
case 1: return WarmPoolTtlPolicy.Retain;
|
|
894
|
+
case 2: return WarmPoolTtlPolicy.Cascade;
|
|
895
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
write(value, into) {
|
|
899
|
+
switch (value) {
|
|
900
|
+
case WarmPoolTtlPolicy.Retain: return ordinalConverter.write(1, into);
|
|
901
|
+
case WarmPoolTtlPolicy.Cascade: return ordinalConverter.write(2, into);
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
allocationSize(value) {
|
|
905
|
+
return ordinalConverter.allocationSize(0);
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
return new FFIConverter();
|
|
909
|
+
})();
|
|
910
|
+
/**
|
|
911
|
+
* Generated factory for {@link OsGymSandboxWarmPoolSpec} record objects.
|
|
912
|
+
*/
|
|
913
|
+
export const OsGymSandboxWarmPoolSpec = (() => {
|
|
914
|
+
const defaults = () => ({
|
|
915
|
+
ttlSecondsAfterCreated: undefined,
|
|
916
|
+
idleTtlSeconds: undefined,
|
|
917
|
+
ttlPolicy: undefined
|
|
918
|
+
});
|
|
919
|
+
const create = (() => {
|
|
920
|
+
return uniffiCreateRecord(defaults);
|
|
921
|
+
})();
|
|
922
|
+
return Object.freeze({
|
|
923
|
+
create,
|
|
924
|
+
new: create,
|
|
925
|
+
defaults: () => Object.freeze(defaults()),
|
|
926
|
+
});
|
|
927
|
+
})();
|
|
928
|
+
const FfiConverterTypeOSGymSandboxWarmPoolSpec = (() => {
|
|
929
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
930
|
+
read(from) {
|
|
931
|
+
return {
|
|
932
|
+
replicas: FfiConverterUInt32.read(from),
|
|
933
|
+
sandboxTemplateRef: FfiConverterTypeSandboxTemplateRef.read(from),
|
|
934
|
+
autoscaling: FfiConverterOptionalTypeWarmPoolAutoscaling.read(from),
|
|
935
|
+
ttlSecondsAfterCreated: FfiConverterOptionalUInt32.read(from),
|
|
936
|
+
idleTtlSeconds: FfiConverterOptionalUInt32.read(from),
|
|
937
|
+
ttlPolicy: FfiConverterOptionalTypeWarmPoolTtlPolicy.read(from)
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
write(value, into) {
|
|
941
|
+
FfiConverterUInt32.write(value.replicas, into);
|
|
942
|
+
FfiConverterTypeSandboxTemplateRef.write(value.sandboxTemplateRef, into);
|
|
943
|
+
FfiConverterOptionalTypeWarmPoolAutoscaling.write(value.autoscaling, into);
|
|
944
|
+
FfiConverterOptionalUInt32.write(value.ttlSecondsAfterCreated, into);
|
|
945
|
+
FfiConverterOptionalUInt32.write(value.idleTtlSeconds, into);
|
|
946
|
+
FfiConverterOptionalTypeWarmPoolTtlPolicy.write(value.ttlPolicy, into);
|
|
947
|
+
}
|
|
948
|
+
allocationSize(value) {
|
|
949
|
+
return FfiConverterUInt32.allocationSize(value.replicas) +
|
|
950
|
+
FfiConverterTypeSandboxTemplateRef.allocationSize(value.sandboxTemplateRef) +
|
|
951
|
+
FfiConverterOptionalTypeWarmPoolAutoscaling.allocationSize(value.autoscaling) +
|
|
952
|
+
FfiConverterOptionalUInt32.allocationSize(value.ttlSecondsAfterCreated) +
|
|
953
|
+
FfiConverterOptionalUInt32.allocationSize(value.idleTtlSeconds) +
|
|
954
|
+
FfiConverterOptionalTypeWarmPoolTtlPolicy.allocationSize(value.ttlPolicy);
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
;
|
|
958
|
+
return new FFIConverter();
|
|
959
|
+
})();
|
|
960
|
+
/**
|
|
961
|
+
* Generated factory for {@link OsGymSandboxWarmPoolStatus} record objects.
|
|
962
|
+
*/
|
|
963
|
+
export const OsGymSandboxWarmPoolStatus = (() => {
|
|
964
|
+
const defaults = () => ({
|
|
965
|
+
lastClaimedAt: undefined,
|
|
966
|
+
lastActivityTime: undefined
|
|
967
|
+
});
|
|
968
|
+
const create = (() => {
|
|
969
|
+
return uniffiCreateRecord(defaults);
|
|
970
|
+
})();
|
|
971
|
+
return Object.freeze({
|
|
972
|
+
create,
|
|
973
|
+
new: create,
|
|
974
|
+
defaults: () => Object.freeze(defaults()),
|
|
975
|
+
});
|
|
976
|
+
})();
|
|
977
|
+
const FfiConverterTypeOSGymSandboxWarmPoolStatus = (() => {
|
|
978
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
979
|
+
read(from) {
|
|
980
|
+
return {
|
|
981
|
+
replicas: FfiConverterOptionalUInt32.read(from),
|
|
982
|
+
readyReplicas: FfiConverterOptionalUInt32.read(from),
|
|
983
|
+
selector: FfiConverterOptionalString.read(from),
|
|
984
|
+
lastClaimedAt: FfiConverterOptionalString.read(from),
|
|
985
|
+
lastActivityTime: FfiConverterOptionalString.read(from)
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
write(value, into) {
|
|
989
|
+
FfiConverterOptionalUInt32.write(value.replicas, into);
|
|
990
|
+
FfiConverterOptionalUInt32.write(value.readyReplicas, into);
|
|
991
|
+
FfiConverterOptionalString.write(value.selector, into);
|
|
992
|
+
FfiConverterOptionalString.write(value.lastClaimedAt, into);
|
|
993
|
+
FfiConverterOptionalString.write(value.lastActivityTime, into);
|
|
994
|
+
}
|
|
995
|
+
allocationSize(value) {
|
|
996
|
+
return FfiConverterOptionalUInt32.allocationSize(value.replicas) +
|
|
997
|
+
FfiConverterOptionalUInt32.allocationSize(value.readyReplicas) +
|
|
998
|
+
FfiConverterOptionalString.allocationSize(value.selector) +
|
|
999
|
+
FfiConverterOptionalString.allocationSize(value.lastClaimedAt) +
|
|
1000
|
+
FfiConverterOptionalString.allocationSize(value.lastActivityTime);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
;
|
|
1004
|
+
return new FFIConverter();
|
|
1005
|
+
})();
|
|
1006
|
+
// Error type: JsonValueError
|
|
1007
|
+
export var JsonValueError_Tags;
|
|
1008
|
+
(function (JsonValueError_Tags) {
|
|
1009
|
+
JsonValueError_Tags["Invalid"] = "Invalid";
|
|
1010
|
+
})(JsonValueError_Tags || (JsonValueError_Tags = {}));
|
|
1011
|
+
export const JsonValueError = (() => {
|
|
1012
|
+
class Invalid_ extends UniffiError {
|
|
1013
|
+
/**
|
|
1014
|
+
* @private
|
|
1015
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1016
|
+
*/
|
|
1017
|
+
[uniffiTypeNameSymbol] = "JsonValueError";
|
|
1018
|
+
tag = JsonValueError_Tags.Invalid;
|
|
1019
|
+
inner;
|
|
1020
|
+
constructor(inner) {
|
|
1021
|
+
super("JsonValueError", "Invalid");
|
|
1022
|
+
this.inner = Object.freeze(inner);
|
|
1023
|
+
}
|
|
1024
|
+
static new(inner) {
|
|
1025
|
+
return new Invalid_(inner);
|
|
1026
|
+
}
|
|
1027
|
+
static instanceOf(obj) {
|
|
1028
|
+
return obj.tag === JsonValueError_Tags.Invalid;
|
|
1029
|
+
}
|
|
1030
|
+
static hasInner(obj) {
|
|
1031
|
+
return Invalid_.instanceOf(obj);
|
|
1032
|
+
}
|
|
1033
|
+
static getInner(obj) {
|
|
1034
|
+
return obj.inner;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
function instanceOf(obj) {
|
|
1038
|
+
return obj[uniffiTypeNameSymbol] === "JsonValueError";
|
|
1039
|
+
}
|
|
1040
|
+
return Object.freeze({
|
|
1041
|
+
instanceOf,
|
|
1042
|
+
Invalid: Invalid_
|
|
1043
|
+
});
|
|
1044
|
+
})();
|
|
1045
|
+
// FfiConverter for enum JsonValueError
|
|
1046
|
+
const FfiConverterTypeJsonValueError = (() => {
|
|
1047
|
+
const ordinalConverter = FfiConverterInt32;
|
|
1048
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1049
|
+
read(from) {
|
|
1050
|
+
switch (ordinalConverter.read(from)) {
|
|
1051
|
+
case 1: return new JsonValueError.Invalid({ reason: FfiConverterString.read(from) });
|
|
1052
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
write(value, into) {
|
|
1056
|
+
switch (value.tag) {
|
|
1057
|
+
case JsonValueError_Tags.Invalid: {
|
|
1058
|
+
ordinalConverter.write(1, into);
|
|
1059
|
+
const inner = value.inner;
|
|
1060
|
+
FfiConverterString.write(inner.reason, into);
|
|
1061
|
+
return;
|
|
1062
|
+
}
|
|
1063
|
+
default:
|
|
1064
|
+
// Throwing from here means that JsonValueError_Tags hasn't matched an ordinal.
|
|
1065
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
allocationSize(value) {
|
|
1069
|
+
switch (value.tag) {
|
|
1070
|
+
case JsonValueError_Tags.Invalid: {
|
|
1071
|
+
const inner = value.inner;
|
|
1072
|
+
let size = ordinalConverter.allocationSize(1);
|
|
1073
|
+
size += FfiConverterString.allocationSize(inner.reason);
|
|
1074
|
+
return size;
|
|
1075
|
+
}
|
|
1076
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
return new FFIConverter();
|
|
1081
|
+
})();
|
|
1082
|
+
// Error type: SchemaBuildError
|
|
1083
|
+
export var SchemaBuildError_Tags;
|
|
1084
|
+
(function (SchemaBuildError_Tags) {
|
|
1085
|
+
SchemaBuildError_Tags["MissingRequiredField"] = "MissingRequiredField";
|
|
1086
|
+
})(SchemaBuildError_Tags || (SchemaBuildError_Tags = {}));
|
|
1087
|
+
export const SchemaBuildError = (() => {
|
|
1088
|
+
class MissingRequiredField_ extends UniffiError {
|
|
1089
|
+
/**
|
|
1090
|
+
* @private
|
|
1091
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1092
|
+
*/
|
|
1093
|
+
[uniffiTypeNameSymbol] = "SchemaBuildError";
|
|
1094
|
+
tag = SchemaBuildError_Tags.MissingRequiredField;
|
|
1095
|
+
inner;
|
|
1096
|
+
constructor(inner) {
|
|
1097
|
+
super("SchemaBuildError", "MissingRequiredField");
|
|
1098
|
+
this.inner = Object.freeze(inner);
|
|
1099
|
+
}
|
|
1100
|
+
static new(inner) {
|
|
1101
|
+
return new MissingRequiredField_(inner);
|
|
1102
|
+
}
|
|
1103
|
+
static instanceOf(obj) {
|
|
1104
|
+
return obj.tag === SchemaBuildError_Tags.MissingRequiredField;
|
|
1105
|
+
}
|
|
1106
|
+
static hasInner(obj) {
|
|
1107
|
+
return MissingRequiredField_.instanceOf(obj);
|
|
1108
|
+
}
|
|
1109
|
+
static getInner(obj) {
|
|
1110
|
+
return obj.inner;
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
1113
|
+
function instanceOf(obj) {
|
|
1114
|
+
return obj[uniffiTypeNameSymbol] === "SchemaBuildError";
|
|
1115
|
+
}
|
|
1116
|
+
return Object.freeze({
|
|
1117
|
+
instanceOf,
|
|
1118
|
+
MissingRequiredField: MissingRequiredField_
|
|
1119
|
+
});
|
|
1120
|
+
})();
|
|
1121
|
+
// FfiConverter for enum SchemaBuildError
|
|
1122
|
+
const FfiConverterTypeSchemaBuildError = (() => {
|
|
1123
|
+
const ordinalConverter = FfiConverterInt32;
|
|
1124
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1125
|
+
read(from) {
|
|
1126
|
+
switch (ordinalConverter.read(from)) {
|
|
1127
|
+
case 1: return new SchemaBuildError.MissingRequiredField({ recordType: FfiConverterString.read(from), field: FfiConverterString.read(from) });
|
|
1128
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
write(value, into) {
|
|
1132
|
+
switch (value.tag) {
|
|
1133
|
+
case SchemaBuildError_Tags.MissingRequiredField: {
|
|
1134
|
+
ordinalConverter.write(1, into);
|
|
1135
|
+
const inner = value.inner;
|
|
1136
|
+
FfiConverterString.write(inner.recordType, into);
|
|
1137
|
+
FfiConverterString.write(inner.field, into);
|
|
1138
|
+
return;
|
|
1139
|
+
}
|
|
1140
|
+
default:
|
|
1141
|
+
// Throwing from here means that SchemaBuildError_Tags hasn't matched an ordinal.
|
|
1142
|
+
throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
allocationSize(value) {
|
|
1146
|
+
switch (value.tag) {
|
|
1147
|
+
case SchemaBuildError_Tags.MissingRequiredField: {
|
|
1148
|
+
const inner = value.inner;
|
|
1149
|
+
let size = ordinalConverter.allocationSize(1);
|
|
1150
|
+
size += FfiConverterString.allocationSize(inner.recordType);
|
|
1151
|
+
size += FfiConverterString.allocationSize(inner.field);
|
|
1152
|
+
return size;
|
|
1153
|
+
}
|
|
1154
|
+
default: throw new UniffiInternalError.UnexpectedEnumCase();
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
return new FFIConverter();
|
|
1159
|
+
})();
|
|
1160
|
+
export class OsGymSandboxTemplateSpecBuilder extends UniffiAbstractObject {
|
|
1161
|
+
[uniffiTypeNameSymbol] = "OsGymSandboxTemplateSpecBuilder";
|
|
1162
|
+
[destructorGuardSymbol];
|
|
1163
|
+
[pointerLiteralSymbol];
|
|
1164
|
+
constructor() {
|
|
1165
|
+
super();
|
|
1166
|
+
const pointer = uniffiCaller.rustCall(
|
|
1167
|
+
/*caller:*/ (callStatus) => {
|
|
1168
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_constructor_osgymsandboxtemplatespecbuilder_new(callStatus);
|
|
1169
|
+
},
|
|
1170
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString));
|
|
1171
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1172
|
+
this[destructorGuardSymbol] = uniffiTypeOsGymSandboxTemplateSpecBuilderObjectFactory.bless(pointer);
|
|
1173
|
+
}
|
|
1174
|
+
build() {
|
|
1175
|
+
return ((__rb) => {
|
|
1176
|
+
try {
|
|
1177
|
+
return FfiConverterTypeOSGymSandboxTemplateSpec.lift(__rb);
|
|
1178
|
+
}
|
|
1179
|
+
finally {
|
|
1180
|
+
nativeModule().rustbuffer_free(__rb);
|
|
1181
|
+
}
|
|
1182
|
+
})(uniffiCaller.rustCallWithError(
|
|
1183
|
+
/*liftError:*/ FfiConverterTypeSchemaBuildError.lift.bind(FfiConverterTypeSchemaBuildError),
|
|
1184
|
+
/*caller:*/ (callStatus) => {
|
|
1185
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_osgymsandboxtemplatespecbuilder_build(uniffiTypeOsGymSandboxTemplateSpecBuilderObjectFactory.clonePointer(this), callStatus);
|
|
1186
|
+
},
|
|
1187
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1188
|
+
}
|
|
1189
|
+
vmTemplate(value) {
|
|
1190
|
+
return FfiConverterTypeOSGymSandboxTemplateSpecBuilder.lift(uniffiCaller.rustCall(
|
|
1191
|
+
/*caller:*/ (callStatus) => {
|
|
1192
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_osgymsandboxtemplatespecbuilder_vm_template(uniffiTypeOsGymSandboxTemplateSpecBuilderObjectFactory.clonePointer(this), FfiConverterTypeVmTemplate.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1193
|
+
},
|
|
1194
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1195
|
+
}
|
|
1196
|
+
uniffiDestroy() {
|
|
1197
|
+
const ptr = this[destructorGuardSymbol];
|
|
1198
|
+
if (ptr !== undefined) {
|
|
1199
|
+
const pointer = uniffiTypeOsGymSandboxTemplateSpecBuilderObjectFactory.pointer(this);
|
|
1200
|
+
uniffiTypeOsGymSandboxTemplateSpecBuilderObjectFactory.freePointer(pointer);
|
|
1201
|
+
uniffiTypeOsGymSandboxTemplateSpecBuilderObjectFactory.unbless(ptr);
|
|
1202
|
+
delete this[destructorGuardSymbol];
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
static instanceOf(obj_) {
|
|
1206
|
+
return uniffiTypeOsGymSandboxTemplateSpecBuilderObjectFactory.isConcreteType(obj_);
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
const uniffiTypeOsGymSandboxTemplateSpecBuilderObjectFactory = (() => {
|
|
1210
|
+
/// <reference lib="es2021" />
|
|
1211
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry((heldValue) => {
|
|
1212
|
+
uniffiTypeOsGymSandboxTemplateSpecBuilderObjectFactory.freePointer(heldValue);
|
|
1213
|
+
}) : null;
|
|
1214
|
+
return {
|
|
1215
|
+
create(pointer) {
|
|
1216
|
+
const instance = Object.create(OsGymSandboxTemplateSpecBuilder.prototype);
|
|
1217
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
1218
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1219
|
+
instance[uniffiTypeNameSymbol] = "OsGymSandboxTemplateSpecBuilder";
|
|
1220
|
+
return instance;
|
|
1221
|
+
},
|
|
1222
|
+
bless(p) {
|
|
1223
|
+
const ptr = {
|
|
1224
|
+
p, // make sure this object doesn't get optimized away.
|
|
1225
|
+
markDestroyed: () => undefined,
|
|
1226
|
+
};
|
|
1227
|
+
if (registry) {
|
|
1228
|
+
registry.register(ptr, p, ptr);
|
|
1229
|
+
}
|
|
1230
|
+
return ptr;
|
|
1231
|
+
},
|
|
1232
|
+
unbless(ptr_) {
|
|
1233
|
+
if (registry) {
|
|
1234
|
+
registry.unregister(ptr_);
|
|
1235
|
+
}
|
|
1236
|
+
},
|
|
1237
|
+
pointer(obj_) {
|
|
1238
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1239
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
1240
|
+
}
|
|
1241
|
+
return obj_[pointerLiteralSymbol];
|
|
1242
|
+
},
|
|
1243
|
+
clonePointer(obj_) {
|
|
1244
|
+
const pointer = this.pointer(obj_);
|
|
1245
|
+
return uniffiCaller.rustCall(
|
|
1246
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_clone_osgymsandboxtemplatespecbuilder(pointer, callStatus),
|
|
1247
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1248
|
+
},
|
|
1249
|
+
freePointer(pointer) {
|
|
1250
|
+
uniffiCaller.rustCall(
|
|
1251
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_free_osgymsandboxtemplatespecbuilder(pointer, callStatus),
|
|
1252
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1253
|
+
},
|
|
1254
|
+
isConcreteType(obj_) {
|
|
1255
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "OsGymSandboxTemplateSpecBuilder";
|
|
1256
|
+
},
|
|
1257
|
+
};
|
|
1258
|
+
})();
|
|
1259
|
+
const FfiConverterTypeOSGymSandboxTemplateSpecBuilder = new FfiConverterObject(uniffiTypeOsGymSandboxTemplateSpecBuilderObjectFactory);
|
|
1260
|
+
export class OsGymSandboxWarmPoolSpecBuilder extends UniffiAbstractObject {
|
|
1261
|
+
[uniffiTypeNameSymbol] = "OsGymSandboxWarmPoolSpecBuilder";
|
|
1262
|
+
[destructorGuardSymbol];
|
|
1263
|
+
[pointerLiteralSymbol];
|
|
1264
|
+
constructor() {
|
|
1265
|
+
super();
|
|
1266
|
+
const pointer = uniffiCaller.rustCall(
|
|
1267
|
+
/*caller:*/ (callStatus) => {
|
|
1268
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_constructor_osgymsandboxwarmpoolspecbuilder_new(callStatus);
|
|
1269
|
+
},
|
|
1270
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString));
|
|
1271
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1272
|
+
this[destructorGuardSymbol] = uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.bless(pointer);
|
|
1273
|
+
}
|
|
1274
|
+
autoscaling(value) {
|
|
1275
|
+
return FfiConverterTypeOSGymSandboxWarmPoolSpecBuilder.lift(uniffiCaller.rustCall(
|
|
1276
|
+
/*caller:*/ (callStatus) => {
|
|
1277
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_osgymsandboxwarmpoolspecbuilder_autoscaling(uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.clonePointer(this), FfiConverterTypeWarmPoolAutoscaling.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1278
|
+
},
|
|
1279
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1280
|
+
}
|
|
1281
|
+
build() {
|
|
1282
|
+
return ((__rb) => {
|
|
1283
|
+
try {
|
|
1284
|
+
return FfiConverterTypeOSGymSandboxWarmPoolSpec.lift(__rb);
|
|
1285
|
+
}
|
|
1286
|
+
finally {
|
|
1287
|
+
nativeModule().rustbuffer_free(__rb);
|
|
1288
|
+
}
|
|
1289
|
+
})(uniffiCaller.rustCallWithError(
|
|
1290
|
+
/*liftError:*/ FfiConverterTypeSchemaBuildError.lift.bind(FfiConverterTypeSchemaBuildError),
|
|
1291
|
+
/*caller:*/ (callStatus) => {
|
|
1292
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_osgymsandboxwarmpoolspecbuilder_build(uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.clonePointer(this), callStatus);
|
|
1293
|
+
},
|
|
1294
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1295
|
+
}
|
|
1296
|
+
idleTtlSeconds(value) {
|
|
1297
|
+
return FfiConverterTypeOSGymSandboxWarmPoolSpecBuilder.lift(uniffiCaller.rustCall(
|
|
1298
|
+
/*caller:*/ (callStatus) => {
|
|
1299
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_osgymsandboxwarmpoolspecbuilder_idle_ttl_seconds(uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.clonePointer(this), FfiConverterUInt32.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1300
|
+
},
|
|
1301
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1302
|
+
}
|
|
1303
|
+
replicas(value) {
|
|
1304
|
+
return FfiConverterTypeOSGymSandboxWarmPoolSpecBuilder.lift(uniffiCaller.rustCall(
|
|
1305
|
+
/*caller:*/ (callStatus) => {
|
|
1306
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_osgymsandboxwarmpoolspecbuilder_replicas(uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.clonePointer(this), FfiConverterUInt32.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1307
|
+
},
|
|
1308
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1309
|
+
}
|
|
1310
|
+
sandboxTemplateRef(value) {
|
|
1311
|
+
return FfiConverterTypeOSGymSandboxWarmPoolSpecBuilder.lift(uniffiCaller.rustCall(
|
|
1312
|
+
/*caller:*/ (callStatus) => {
|
|
1313
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_osgymsandboxwarmpoolspecbuilder_sandbox_template_ref(uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.clonePointer(this), FfiConverterTypeSandboxTemplateRef.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1314
|
+
},
|
|
1315
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1316
|
+
}
|
|
1317
|
+
ttlPolicy(value) {
|
|
1318
|
+
return FfiConverterTypeOSGymSandboxWarmPoolSpecBuilder.lift(uniffiCaller.rustCall(
|
|
1319
|
+
/*caller:*/ (callStatus) => {
|
|
1320
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_osgymsandboxwarmpoolspecbuilder_ttl_policy(uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.clonePointer(this), FfiConverterTypeWarmPoolTtlPolicy.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1321
|
+
},
|
|
1322
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1323
|
+
}
|
|
1324
|
+
ttlSecondsAfterCreated(value) {
|
|
1325
|
+
return FfiConverterTypeOSGymSandboxWarmPoolSpecBuilder.lift(uniffiCaller.rustCall(
|
|
1326
|
+
/*caller:*/ (callStatus) => {
|
|
1327
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_osgymsandboxwarmpoolspecbuilder_ttl_seconds_after_created(uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.clonePointer(this), FfiConverterUInt32.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1328
|
+
},
|
|
1329
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1330
|
+
}
|
|
1331
|
+
uniffiDestroy() {
|
|
1332
|
+
const ptr = this[destructorGuardSymbol];
|
|
1333
|
+
if (ptr !== undefined) {
|
|
1334
|
+
const pointer = uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.pointer(this);
|
|
1335
|
+
uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.freePointer(pointer);
|
|
1336
|
+
uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.unbless(ptr);
|
|
1337
|
+
delete this[destructorGuardSymbol];
|
|
1338
|
+
}
|
|
1339
|
+
}
|
|
1340
|
+
static instanceOf(obj_) {
|
|
1341
|
+
return uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.isConcreteType(obj_);
|
|
1342
|
+
}
|
|
1343
|
+
}
|
|
1344
|
+
const uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory = (() => {
|
|
1345
|
+
/// <reference lib="es2021" />
|
|
1346
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry((heldValue) => {
|
|
1347
|
+
uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory.freePointer(heldValue);
|
|
1348
|
+
}) : null;
|
|
1349
|
+
return {
|
|
1350
|
+
create(pointer) {
|
|
1351
|
+
const instance = Object.create(OsGymSandboxWarmPoolSpecBuilder.prototype);
|
|
1352
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
1353
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1354
|
+
instance[uniffiTypeNameSymbol] = "OsGymSandboxWarmPoolSpecBuilder";
|
|
1355
|
+
return instance;
|
|
1356
|
+
},
|
|
1357
|
+
bless(p) {
|
|
1358
|
+
const ptr = {
|
|
1359
|
+
p, // make sure this object doesn't get optimized away.
|
|
1360
|
+
markDestroyed: () => undefined,
|
|
1361
|
+
};
|
|
1362
|
+
if (registry) {
|
|
1363
|
+
registry.register(ptr, p, ptr);
|
|
1364
|
+
}
|
|
1365
|
+
return ptr;
|
|
1366
|
+
},
|
|
1367
|
+
unbless(ptr_) {
|
|
1368
|
+
if (registry) {
|
|
1369
|
+
registry.unregister(ptr_);
|
|
1370
|
+
}
|
|
1371
|
+
},
|
|
1372
|
+
pointer(obj_) {
|
|
1373
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1374
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
1375
|
+
}
|
|
1376
|
+
return obj_[pointerLiteralSymbol];
|
|
1377
|
+
},
|
|
1378
|
+
clonePointer(obj_) {
|
|
1379
|
+
const pointer = this.pointer(obj_);
|
|
1380
|
+
return uniffiCaller.rustCall(
|
|
1381
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_clone_osgymsandboxwarmpoolspecbuilder(pointer, callStatus),
|
|
1382
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1383
|
+
},
|
|
1384
|
+
freePointer(pointer) {
|
|
1385
|
+
uniffiCaller.rustCall(
|
|
1386
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_free_osgymsandboxwarmpoolspecbuilder(pointer, callStatus),
|
|
1387
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1388
|
+
},
|
|
1389
|
+
isConcreteType(obj_) {
|
|
1390
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "OsGymSandboxWarmPoolSpecBuilder";
|
|
1391
|
+
},
|
|
1392
|
+
};
|
|
1393
|
+
})();
|
|
1394
|
+
const FfiConverterTypeOSGymSandboxWarmPoolSpecBuilder = new FfiConverterObject(uniffiTypeOsGymSandboxWarmPoolSpecBuilderObjectFactory);
|
|
1395
|
+
export class SandboxServiceBuilder extends UniffiAbstractObject {
|
|
1396
|
+
[uniffiTypeNameSymbol] = "SandboxServiceBuilder";
|
|
1397
|
+
[destructorGuardSymbol];
|
|
1398
|
+
[pointerLiteralSymbol];
|
|
1399
|
+
constructor() {
|
|
1400
|
+
super();
|
|
1401
|
+
const pointer = uniffiCaller.rustCall(
|
|
1402
|
+
/*caller:*/ (callStatus) => {
|
|
1403
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_constructor_sandboxservicebuilder_new(callStatus);
|
|
1404
|
+
},
|
|
1405
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString));
|
|
1406
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1407
|
+
this[destructorGuardSymbol] = uniffiTypeSandboxServiceBuilderObjectFactory.bless(pointer);
|
|
1408
|
+
}
|
|
1409
|
+
build() {
|
|
1410
|
+
return ((__rb) => {
|
|
1411
|
+
try {
|
|
1412
|
+
return FfiConverterTypeSandboxService.lift(__rb);
|
|
1413
|
+
}
|
|
1414
|
+
finally {
|
|
1415
|
+
nativeModule().rustbuffer_free(__rb);
|
|
1416
|
+
}
|
|
1417
|
+
})(uniffiCaller.rustCallWithError(
|
|
1418
|
+
/*liftError:*/ FfiConverterTypeSchemaBuildError.lift.bind(FfiConverterTypeSchemaBuildError),
|
|
1419
|
+
/*caller:*/ (callStatus) => {
|
|
1420
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_sandboxservicebuilder_build(uniffiTypeSandboxServiceBuilderObjectFactory.clonePointer(this), callStatus);
|
|
1421
|
+
},
|
|
1422
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1423
|
+
}
|
|
1424
|
+
name(value) {
|
|
1425
|
+
return FfiConverterTypeSandboxServiceBuilder.lift(uniffiCaller.rustCall(
|
|
1426
|
+
/*caller:*/ (callStatus) => {
|
|
1427
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_sandboxservicebuilder_name(uniffiTypeSandboxServiceBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1428
|
+
},
|
|
1429
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1430
|
+
}
|
|
1431
|
+
protocol(value) {
|
|
1432
|
+
return FfiConverterTypeSandboxServiceBuilder.lift(uniffiCaller.rustCall(
|
|
1433
|
+
/*caller:*/ (callStatus) => {
|
|
1434
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_sandboxservicebuilder_protocol(uniffiTypeSandboxServiceBuilderObjectFactory.clonePointer(this), FfiConverterTypeServiceProtocol.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1435
|
+
},
|
|
1436
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1437
|
+
}
|
|
1438
|
+
targetPort(value) {
|
|
1439
|
+
return FfiConverterTypeSandboxServiceBuilder.lift(uniffiCaller.rustCall(
|
|
1440
|
+
/*caller:*/ (callStatus) => {
|
|
1441
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_sandboxservicebuilder_target_port(uniffiTypeSandboxServiceBuilderObjectFactory.clonePointer(this), FfiConverterUInt16.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1442
|
+
},
|
|
1443
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1444
|
+
}
|
|
1445
|
+
uniffiDestroy() {
|
|
1446
|
+
const ptr = this[destructorGuardSymbol];
|
|
1447
|
+
if (ptr !== undefined) {
|
|
1448
|
+
const pointer = uniffiTypeSandboxServiceBuilderObjectFactory.pointer(this);
|
|
1449
|
+
uniffiTypeSandboxServiceBuilderObjectFactory.freePointer(pointer);
|
|
1450
|
+
uniffiTypeSandboxServiceBuilderObjectFactory.unbless(ptr);
|
|
1451
|
+
delete this[destructorGuardSymbol];
|
|
1452
|
+
}
|
|
1453
|
+
}
|
|
1454
|
+
static instanceOf(obj_) {
|
|
1455
|
+
return uniffiTypeSandboxServiceBuilderObjectFactory.isConcreteType(obj_);
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
const uniffiTypeSandboxServiceBuilderObjectFactory = (() => {
|
|
1459
|
+
/// <reference lib="es2021" />
|
|
1460
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry((heldValue) => {
|
|
1461
|
+
uniffiTypeSandboxServiceBuilderObjectFactory.freePointer(heldValue);
|
|
1462
|
+
}) : null;
|
|
1463
|
+
return {
|
|
1464
|
+
create(pointer) {
|
|
1465
|
+
const instance = Object.create(SandboxServiceBuilder.prototype);
|
|
1466
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
1467
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1468
|
+
instance[uniffiTypeNameSymbol] = "SandboxServiceBuilder";
|
|
1469
|
+
return instance;
|
|
1470
|
+
},
|
|
1471
|
+
bless(p) {
|
|
1472
|
+
const ptr = {
|
|
1473
|
+
p, // make sure this object doesn't get optimized away.
|
|
1474
|
+
markDestroyed: () => undefined,
|
|
1475
|
+
};
|
|
1476
|
+
if (registry) {
|
|
1477
|
+
registry.register(ptr, p, ptr);
|
|
1478
|
+
}
|
|
1479
|
+
return ptr;
|
|
1480
|
+
},
|
|
1481
|
+
unbless(ptr_) {
|
|
1482
|
+
if (registry) {
|
|
1483
|
+
registry.unregister(ptr_);
|
|
1484
|
+
}
|
|
1485
|
+
},
|
|
1486
|
+
pointer(obj_) {
|
|
1487
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1488
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
1489
|
+
}
|
|
1490
|
+
return obj_[pointerLiteralSymbol];
|
|
1491
|
+
},
|
|
1492
|
+
clonePointer(obj_) {
|
|
1493
|
+
const pointer = this.pointer(obj_);
|
|
1494
|
+
return uniffiCaller.rustCall(
|
|
1495
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_clone_sandboxservicebuilder(pointer, callStatus),
|
|
1496
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1497
|
+
},
|
|
1498
|
+
freePointer(pointer) {
|
|
1499
|
+
uniffiCaller.rustCall(
|
|
1500
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_free_sandboxservicebuilder(pointer, callStatus),
|
|
1501
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1502
|
+
},
|
|
1503
|
+
isConcreteType(obj_) {
|
|
1504
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "SandboxServiceBuilder";
|
|
1505
|
+
},
|
|
1506
|
+
};
|
|
1507
|
+
})();
|
|
1508
|
+
const FfiConverterTypeSandboxServiceBuilder = new FfiConverterObject(uniffiTypeSandboxServiceBuilderObjectFactory);
|
|
1509
|
+
export class SandboxTemplateRefBuilder extends UniffiAbstractObject {
|
|
1510
|
+
[uniffiTypeNameSymbol] = "SandboxTemplateRefBuilder";
|
|
1511
|
+
[destructorGuardSymbol];
|
|
1512
|
+
[pointerLiteralSymbol];
|
|
1513
|
+
constructor() {
|
|
1514
|
+
super();
|
|
1515
|
+
const pointer = uniffiCaller.rustCall(
|
|
1516
|
+
/*caller:*/ (callStatus) => {
|
|
1517
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_constructor_sandboxtemplaterefbuilder_new(callStatus);
|
|
1518
|
+
},
|
|
1519
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString));
|
|
1520
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1521
|
+
this[destructorGuardSymbol] = uniffiTypeSandboxTemplateRefBuilderObjectFactory.bless(pointer);
|
|
1522
|
+
}
|
|
1523
|
+
build() {
|
|
1524
|
+
return ((__rb) => {
|
|
1525
|
+
try {
|
|
1526
|
+
return FfiConverterTypeSandboxTemplateRef.lift(__rb);
|
|
1527
|
+
}
|
|
1528
|
+
finally {
|
|
1529
|
+
nativeModule().rustbuffer_free(__rb);
|
|
1530
|
+
}
|
|
1531
|
+
})(uniffiCaller.rustCallWithError(
|
|
1532
|
+
/*liftError:*/ FfiConverterTypeSchemaBuildError.lift.bind(FfiConverterTypeSchemaBuildError),
|
|
1533
|
+
/*caller:*/ (callStatus) => {
|
|
1534
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_sandboxtemplaterefbuilder_build(uniffiTypeSandboxTemplateRefBuilderObjectFactory.clonePointer(this), callStatus);
|
|
1535
|
+
},
|
|
1536
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1537
|
+
}
|
|
1538
|
+
name(value) {
|
|
1539
|
+
return FfiConverterTypeSandboxTemplateRefBuilder.lift(uniffiCaller.rustCall(
|
|
1540
|
+
/*caller:*/ (callStatus) => {
|
|
1541
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_sandboxtemplaterefbuilder_name(uniffiTypeSandboxTemplateRefBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1542
|
+
},
|
|
1543
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1544
|
+
}
|
|
1545
|
+
uniffiDestroy() {
|
|
1546
|
+
const ptr = this[destructorGuardSymbol];
|
|
1547
|
+
if (ptr !== undefined) {
|
|
1548
|
+
const pointer = uniffiTypeSandboxTemplateRefBuilderObjectFactory.pointer(this);
|
|
1549
|
+
uniffiTypeSandboxTemplateRefBuilderObjectFactory.freePointer(pointer);
|
|
1550
|
+
uniffiTypeSandboxTemplateRefBuilderObjectFactory.unbless(ptr);
|
|
1551
|
+
delete this[destructorGuardSymbol];
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
static instanceOf(obj_) {
|
|
1555
|
+
return uniffiTypeSandboxTemplateRefBuilderObjectFactory.isConcreteType(obj_);
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
const uniffiTypeSandboxTemplateRefBuilderObjectFactory = (() => {
|
|
1559
|
+
/// <reference lib="es2021" />
|
|
1560
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry((heldValue) => {
|
|
1561
|
+
uniffiTypeSandboxTemplateRefBuilderObjectFactory.freePointer(heldValue);
|
|
1562
|
+
}) : null;
|
|
1563
|
+
return {
|
|
1564
|
+
create(pointer) {
|
|
1565
|
+
const instance = Object.create(SandboxTemplateRefBuilder.prototype);
|
|
1566
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
1567
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1568
|
+
instance[uniffiTypeNameSymbol] = "SandboxTemplateRefBuilder";
|
|
1569
|
+
return instance;
|
|
1570
|
+
},
|
|
1571
|
+
bless(p) {
|
|
1572
|
+
const ptr = {
|
|
1573
|
+
p, // make sure this object doesn't get optimized away.
|
|
1574
|
+
markDestroyed: () => undefined,
|
|
1575
|
+
};
|
|
1576
|
+
if (registry) {
|
|
1577
|
+
registry.register(ptr, p, ptr);
|
|
1578
|
+
}
|
|
1579
|
+
return ptr;
|
|
1580
|
+
},
|
|
1581
|
+
unbless(ptr_) {
|
|
1582
|
+
if (registry) {
|
|
1583
|
+
registry.unregister(ptr_);
|
|
1584
|
+
}
|
|
1585
|
+
},
|
|
1586
|
+
pointer(obj_) {
|
|
1587
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1588
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
1589
|
+
}
|
|
1590
|
+
return obj_[pointerLiteralSymbol];
|
|
1591
|
+
},
|
|
1592
|
+
clonePointer(obj_) {
|
|
1593
|
+
const pointer = this.pointer(obj_);
|
|
1594
|
+
return uniffiCaller.rustCall(
|
|
1595
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_clone_sandboxtemplaterefbuilder(pointer, callStatus),
|
|
1596
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1597
|
+
},
|
|
1598
|
+
freePointer(pointer) {
|
|
1599
|
+
uniffiCaller.rustCall(
|
|
1600
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_free_sandboxtemplaterefbuilder(pointer, callStatus),
|
|
1601
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1602
|
+
},
|
|
1603
|
+
isConcreteType(obj_) {
|
|
1604
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "SandboxTemplateRefBuilder";
|
|
1605
|
+
},
|
|
1606
|
+
};
|
|
1607
|
+
})();
|
|
1608
|
+
const FfiConverterTypeSandboxTemplateRefBuilder = new FfiConverterObject(uniffiTypeSandboxTemplateRefBuilderObjectFactory);
|
|
1609
|
+
export class VmTemplateBuilder extends UniffiAbstractObject {
|
|
1610
|
+
[uniffiTypeNameSymbol] = "VmTemplateBuilder";
|
|
1611
|
+
[destructorGuardSymbol];
|
|
1612
|
+
[pointerLiteralSymbol];
|
|
1613
|
+
constructor() {
|
|
1614
|
+
super();
|
|
1615
|
+
const pointer = uniffiCaller.rustCall(
|
|
1616
|
+
/*caller:*/ (callStatus) => {
|
|
1617
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_constructor_vmtemplatebuilder_new(callStatus);
|
|
1618
|
+
},
|
|
1619
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString));
|
|
1620
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1621
|
+
this[destructorGuardSymbol] = uniffiTypeVmTemplateBuilderObjectFactory.bless(pointer);
|
|
1622
|
+
}
|
|
1623
|
+
args(value) {
|
|
1624
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1625
|
+
/*caller:*/ (callStatus) => {
|
|
1626
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_args(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterSequenceString.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1627
|
+
},
|
|
1628
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1629
|
+
}
|
|
1630
|
+
build() {
|
|
1631
|
+
return ((__rb) => {
|
|
1632
|
+
try {
|
|
1633
|
+
return FfiConverterTypeVmTemplate.lift(__rb);
|
|
1634
|
+
}
|
|
1635
|
+
finally {
|
|
1636
|
+
nativeModule().rustbuffer_free(__rb);
|
|
1637
|
+
}
|
|
1638
|
+
})(uniffiCaller.rustCallWithError(
|
|
1639
|
+
/*liftError:*/ FfiConverterTypeSchemaBuildError.lift.bind(FfiConverterTypeSchemaBuildError),
|
|
1640
|
+
/*caller:*/ (callStatus) => {
|
|
1641
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_build(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), callStatus);
|
|
1642
|
+
},
|
|
1643
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1644
|
+
}
|
|
1645
|
+
claimSecrets(value) {
|
|
1646
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1647
|
+
/*caller:*/ (callStatus) => {
|
|
1648
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_claim_secrets(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterBool.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1649
|
+
},
|
|
1650
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1651
|
+
}
|
|
1652
|
+
command(value) {
|
|
1653
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1654
|
+
/*caller:*/ (callStatus) => {
|
|
1655
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_command(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterSequenceString.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1656
|
+
},
|
|
1657
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1658
|
+
}
|
|
1659
|
+
containerDiskImage(value) {
|
|
1660
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1661
|
+
/*caller:*/ (callStatus) => {
|
|
1662
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_container_disk_image(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1663
|
+
},
|
|
1664
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1665
|
+
}
|
|
1666
|
+
cpuCores(value) {
|
|
1667
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1668
|
+
/*caller:*/ (callStatus) => {
|
|
1669
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_cpu_cores(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterUInt32.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1670
|
+
},
|
|
1671
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1672
|
+
}
|
|
1673
|
+
env(value) {
|
|
1674
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1675
|
+
/*caller:*/ (callStatus) => {
|
|
1676
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_env(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterMapStringString.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1677
|
+
},
|
|
1678
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1679
|
+
}
|
|
1680
|
+
firmware(value) {
|
|
1681
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1682
|
+
/*caller:*/ (callStatus) => {
|
|
1683
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_firmware(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterTypeFirmware.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1684
|
+
},
|
|
1685
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1686
|
+
}
|
|
1687
|
+
imagePullPolicy(value) {
|
|
1688
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1689
|
+
/*caller:*/ (callStatus) => {
|
|
1690
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_image_pull_policy(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterTypeImagePullPolicy.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1691
|
+
},
|
|
1692
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1693
|
+
}
|
|
1694
|
+
imagePullSecret(value) {
|
|
1695
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1696
|
+
/*caller:*/ (callStatus) => {
|
|
1697
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_image_pull_secret(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1698
|
+
},
|
|
1699
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1700
|
+
}
|
|
1701
|
+
memory(value) {
|
|
1702
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1703
|
+
/*caller:*/ (callStatus) => {
|
|
1704
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_memory(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1705
|
+
},
|
|
1706
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1707
|
+
}
|
|
1708
|
+
nestedVirtualization(value) {
|
|
1709
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1710
|
+
/*caller:*/ (callStatus) => {
|
|
1711
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_nested_virtualization(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterBool.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1712
|
+
},
|
|
1713
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1714
|
+
}
|
|
1715
|
+
nodeSelector(value) {
|
|
1716
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1717
|
+
/*caller:*/ (callStatus) => {
|
|
1718
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_node_selector(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterMapStringString.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1719
|
+
},
|
|
1720
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1721
|
+
}
|
|
1722
|
+
oidc(value) {
|
|
1723
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1724
|
+
/*caller:*/ (callStatus) => {
|
|
1725
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_oidc(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterTypeOidcConfig.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1726
|
+
},
|
|
1727
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1728
|
+
}
|
|
1729
|
+
probes(value) {
|
|
1730
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1731
|
+
/*caller:*/ (callStatus) => {
|
|
1732
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_probes(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterTypePreservedJson.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1733
|
+
},
|
|
1734
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1735
|
+
}
|
|
1736
|
+
processMode(value) {
|
|
1737
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1738
|
+
/*caller:*/ (callStatus) => {
|
|
1739
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_process_mode(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterTypeProcessMode.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1740
|
+
},
|
|
1741
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1742
|
+
}
|
|
1743
|
+
runtime(value) {
|
|
1744
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1745
|
+
/*caller:*/ (callStatus) => {
|
|
1746
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_runtime(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterTypeRuntimeKind.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1747
|
+
},
|
|
1748
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1749
|
+
}
|
|
1750
|
+
runtimeClassName(value) {
|
|
1751
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1752
|
+
/*caller:*/ (callStatus) => {
|
|
1753
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_runtime_class_name(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterString.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1754
|
+
},
|
|
1755
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1756
|
+
}
|
|
1757
|
+
services(value) {
|
|
1758
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1759
|
+
/*caller:*/ (callStatus) => {
|
|
1760
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_services(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterSequenceTypeSandboxService.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1761
|
+
},
|
|
1762
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1763
|
+
}
|
|
1764
|
+
tolerations(value) {
|
|
1765
|
+
return FfiConverterTypeVmTemplateBuilder.lift(uniffiCaller.rustCall(
|
|
1766
|
+
/*caller:*/ (callStatus) => {
|
|
1767
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_vmtemplatebuilder_tolerations(uniffiTypeVmTemplateBuilderObjectFactory.clonePointer(this), FfiConverterSequenceTypePreservedJson.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1768
|
+
},
|
|
1769
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1770
|
+
}
|
|
1771
|
+
uniffiDestroy() {
|
|
1772
|
+
const ptr = this[destructorGuardSymbol];
|
|
1773
|
+
if (ptr !== undefined) {
|
|
1774
|
+
const pointer = uniffiTypeVmTemplateBuilderObjectFactory.pointer(this);
|
|
1775
|
+
uniffiTypeVmTemplateBuilderObjectFactory.freePointer(pointer);
|
|
1776
|
+
uniffiTypeVmTemplateBuilderObjectFactory.unbless(ptr);
|
|
1777
|
+
delete this[destructorGuardSymbol];
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
static instanceOf(obj_) {
|
|
1781
|
+
return uniffiTypeVmTemplateBuilderObjectFactory.isConcreteType(obj_);
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
const uniffiTypeVmTemplateBuilderObjectFactory = (() => {
|
|
1785
|
+
/// <reference lib="es2021" />
|
|
1786
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry((heldValue) => {
|
|
1787
|
+
uniffiTypeVmTemplateBuilderObjectFactory.freePointer(heldValue);
|
|
1788
|
+
}) : null;
|
|
1789
|
+
return {
|
|
1790
|
+
create(pointer) {
|
|
1791
|
+
const instance = Object.create(VmTemplateBuilder.prototype);
|
|
1792
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
1793
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1794
|
+
instance[uniffiTypeNameSymbol] = "VmTemplateBuilder";
|
|
1795
|
+
return instance;
|
|
1796
|
+
},
|
|
1797
|
+
bless(p) {
|
|
1798
|
+
const ptr = {
|
|
1799
|
+
p, // make sure this object doesn't get optimized away.
|
|
1800
|
+
markDestroyed: () => undefined,
|
|
1801
|
+
};
|
|
1802
|
+
if (registry) {
|
|
1803
|
+
registry.register(ptr, p, ptr);
|
|
1804
|
+
}
|
|
1805
|
+
return ptr;
|
|
1806
|
+
},
|
|
1807
|
+
unbless(ptr_) {
|
|
1808
|
+
if (registry) {
|
|
1809
|
+
registry.unregister(ptr_);
|
|
1810
|
+
}
|
|
1811
|
+
},
|
|
1812
|
+
pointer(obj_) {
|
|
1813
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1814
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
1815
|
+
}
|
|
1816
|
+
return obj_[pointerLiteralSymbol];
|
|
1817
|
+
},
|
|
1818
|
+
clonePointer(obj_) {
|
|
1819
|
+
const pointer = this.pointer(obj_);
|
|
1820
|
+
return uniffiCaller.rustCall(
|
|
1821
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_clone_vmtemplatebuilder(pointer, callStatus),
|
|
1822
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1823
|
+
},
|
|
1824
|
+
freePointer(pointer) {
|
|
1825
|
+
uniffiCaller.rustCall(
|
|
1826
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_free_vmtemplatebuilder(pointer, callStatus),
|
|
1827
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1828
|
+
},
|
|
1829
|
+
isConcreteType(obj_) {
|
|
1830
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "VmTemplateBuilder";
|
|
1831
|
+
},
|
|
1832
|
+
};
|
|
1833
|
+
})();
|
|
1834
|
+
const FfiConverterTypeVmTemplateBuilder = new FfiConverterObject(uniffiTypeVmTemplateBuilderObjectFactory);
|
|
1835
|
+
export class WarmPoolAutoscalingBuilder extends UniffiAbstractObject {
|
|
1836
|
+
[uniffiTypeNameSymbol] = "WarmPoolAutoscalingBuilder";
|
|
1837
|
+
[destructorGuardSymbol];
|
|
1838
|
+
[pointerLiteralSymbol];
|
|
1839
|
+
constructor() {
|
|
1840
|
+
super();
|
|
1841
|
+
const pointer = uniffiCaller.rustCall(
|
|
1842
|
+
/*caller:*/ (callStatus) => {
|
|
1843
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_constructor_warmpoolautoscalingbuilder_new(callStatus);
|
|
1844
|
+
},
|
|
1845
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString));
|
|
1846
|
+
this[pointerLiteralSymbol] = pointer;
|
|
1847
|
+
this[destructorGuardSymbol] = uniffiTypeWarmPoolAutoscalingBuilderObjectFactory.bless(pointer);
|
|
1848
|
+
}
|
|
1849
|
+
build() {
|
|
1850
|
+
return ((__rb) => {
|
|
1851
|
+
try {
|
|
1852
|
+
return FfiConverterTypeWarmPoolAutoscaling.lift(__rb);
|
|
1853
|
+
}
|
|
1854
|
+
finally {
|
|
1855
|
+
nativeModule().rustbuffer_free(__rb);
|
|
1856
|
+
}
|
|
1857
|
+
})(uniffiCaller.rustCallWithError(
|
|
1858
|
+
/*liftError:*/ FfiConverterTypeSchemaBuildError.lift.bind(FfiConverterTypeSchemaBuildError),
|
|
1859
|
+
/*caller:*/ (callStatus) => {
|
|
1860
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_warmpoolautoscalingbuilder_build(uniffiTypeWarmPoolAutoscalingBuilderObjectFactory.clonePointer(this), callStatus);
|
|
1861
|
+
},
|
|
1862
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1863
|
+
}
|
|
1864
|
+
initialPoolSize(value) {
|
|
1865
|
+
return FfiConverterTypeWarmPoolAutoscalingBuilder.lift(uniffiCaller.rustCall(
|
|
1866
|
+
/*caller:*/ (callStatus) => {
|
|
1867
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_warmpoolautoscalingbuilder_initial_pool_size(uniffiTypeWarmPoolAutoscalingBuilderObjectFactory.clonePointer(this), FfiConverterUInt32.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1868
|
+
},
|
|
1869
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1870
|
+
}
|
|
1871
|
+
maxPoolSize(value) {
|
|
1872
|
+
return FfiConverterTypeWarmPoolAutoscalingBuilder.lift(uniffiCaller.rustCall(
|
|
1873
|
+
/*caller:*/ (callStatus) => {
|
|
1874
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_warmpoolautoscalingbuilder_max_pool_size(uniffiTypeWarmPoolAutoscalingBuilderObjectFactory.clonePointer(this), FfiConverterUInt32.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1875
|
+
},
|
|
1876
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1877
|
+
}
|
|
1878
|
+
minPoolSize(value) {
|
|
1879
|
+
return FfiConverterTypeWarmPoolAutoscalingBuilder.lift(uniffiCaller.rustCall(
|
|
1880
|
+
/*caller:*/ (callStatus) => {
|
|
1881
|
+
return nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_method_warmpoolautoscalingbuilder_min_pool_size(uniffiTypeWarmPoolAutoscalingBuilderObjectFactory.clonePointer(this), FfiConverterUInt32.lower(value, nativeModule().rustbuffer_alloc), callStatus);
|
|
1882
|
+
},
|
|
1883
|
+
/*liftString:*/ FfiConverterString.lift.bind(FfiConverterString)));
|
|
1884
|
+
}
|
|
1885
|
+
uniffiDestroy() {
|
|
1886
|
+
const ptr = this[destructorGuardSymbol];
|
|
1887
|
+
if (ptr !== undefined) {
|
|
1888
|
+
const pointer = uniffiTypeWarmPoolAutoscalingBuilderObjectFactory.pointer(this);
|
|
1889
|
+
uniffiTypeWarmPoolAutoscalingBuilderObjectFactory.freePointer(pointer);
|
|
1890
|
+
uniffiTypeWarmPoolAutoscalingBuilderObjectFactory.unbless(ptr);
|
|
1891
|
+
delete this[destructorGuardSymbol];
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
static instanceOf(obj_) {
|
|
1895
|
+
return uniffiTypeWarmPoolAutoscalingBuilderObjectFactory.isConcreteType(obj_);
|
|
1896
|
+
}
|
|
1897
|
+
}
|
|
1898
|
+
const uniffiTypeWarmPoolAutoscalingBuilderObjectFactory = (() => {
|
|
1899
|
+
/// <reference lib="es2021" />
|
|
1900
|
+
const registry = typeof FinalizationRegistry !== 'undefined' ? new FinalizationRegistry((heldValue) => {
|
|
1901
|
+
uniffiTypeWarmPoolAutoscalingBuilderObjectFactory.freePointer(heldValue);
|
|
1902
|
+
}) : null;
|
|
1903
|
+
return {
|
|
1904
|
+
create(pointer) {
|
|
1905
|
+
const instance = Object.create(WarmPoolAutoscalingBuilder.prototype);
|
|
1906
|
+
instance[pointerLiteralSymbol] = pointer;
|
|
1907
|
+
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1908
|
+
instance[uniffiTypeNameSymbol] = "WarmPoolAutoscalingBuilder";
|
|
1909
|
+
return instance;
|
|
1910
|
+
},
|
|
1911
|
+
bless(p) {
|
|
1912
|
+
const ptr = {
|
|
1913
|
+
p, // make sure this object doesn't get optimized away.
|
|
1914
|
+
markDestroyed: () => undefined,
|
|
1915
|
+
};
|
|
1916
|
+
if (registry) {
|
|
1917
|
+
registry.register(ptr, p, ptr);
|
|
1918
|
+
}
|
|
1919
|
+
return ptr;
|
|
1920
|
+
},
|
|
1921
|
+
unbless(ptr_) {
|
|
1922
|
+
if (registry) {
|
|
1923
|
+
registry.unregister(ptr_);
|
|
1924
|
+
}
|
|
1925
|
+
},
|
|
1926
|
+
pointer(obj_) {
|
|
1927
|
+
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1928
|
+
throw new UniffiInternalError.UnexpectedNullPointer();
|
|
1929
|
+
}
|
|
1930
|
+
return obj_[pointerLiteralSymbol];
|
|
1931
|
+
},
|
|
1932
|
+
clonePointer(obj_) {
|
|
1933
|
+
const pointer = this.pointer(obj_);
|
|
1934
|
+
return uniffiCaller.rustCall(
|
|
1935
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_clone_warmpoolautoscalingbuilder(pointer, callStatus),
|
|
1936
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1937
|
+
},
|
|
1938
|
+
freePointer(pointer) {
|
|
1939
|
+
uniffiCaller.rustCall(
|
|
1940
|
+
/*caller:*/ (callStatus) => nativeModule().ubrn_uniffi_cyclops_sdk_schema_fn_free_warmpoolautoscalingbuilder(pointer, callStatus),
|
|
1941
|
+
/*liftString:*/ FfiConverterString.lift);
|
|
1942
|
+
},
|
|
1943
|
+
isConcreteType(obj_) {
|
|
1944
|
+
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "WarmPoolAutoscalingBuilder";
|
|
1945
|
+
},
|
|
1946
|
+
};
|
|
1947
|
+
})();
|
|
1948
|
+
const FfiConverterTypeWarmPoolAutoscalingBuilder = new FfiConverterObject(uniffiTypeWarmPoolAutoscalingBuilderObjectFactory);
|
|
1949
|
+
// FfiConverter for string | undefined
|
|
1950
|
+
const FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
1951
|
+
// FfiConverter for boolean | undefined
|
|
1952
|
+
const FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
|
|
1953
|
+
// FfiConverter for number | undefined
|
|
1954
|
+
const FfiConverterOptionalUInt32 = new FfiConverterOptional(FfiConverterUInt32);
|
|
1955
|
+
// FfiConverter for ClaimLifecycle | undefined
|
|
1956
|
+
const FfiConverterOptionalTypeClaimLifecycle = new FfiConverterOptional(FfiConverterTypeClaimLifecycle);
|
|
1957
|
+
// FfiConverter for ClaimSecretRef | undefined
|
|
1958
|
+
const FfiConverterOptionalTypeClaimSecretRef = new FfiConverterOptional(FfiConverterTypeClaimSecretRef);
|
|
1959
|
+
// FfiConverter for Array<OsGymSandboxClaimCondition>
|
|
1960
|
+
const FfiConverterSequenceTypeOSGymSandboxClaimCondition = new FfiConverterArray(FfiConverterTypeOSGymSandboxClaimCondition);
|
|
1961
|
+
// FfiConverter for Array<OsGymSandboxClaimCondition> | undefined
|
|
1962
|
+
const FfiConverterOptionalSequenceTypeOSGymSandboxClaimCondition = new FfiConverterOptional(FfiConverterSequenceTypeOSGymSandboxClaimCondition);
|
|
1963
|
+
// FfiConverter for OsGymSandboxClaimSandbox | undefined
|
|
1964
|
+
const FfiConverterOptionalTypeOSGymSandboxClaimSandbox = new FfiConverterOptional(FfiConverterTypeOSGymSandboxClaimSandbox);
|
|
1965
|
+
// FfiConverter for Array<string>
|
|
1966
|
+
const FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
|
|
1967
|
+
// FfiConverter for Array<string> | undefined
|
|
1968
|
+
const FfiConverterOptionalSequenceString = new FfiConverterOptional(FfiConverterSequenceString);
|
|
1969
|
+
// FfiConverter for RuntimeKind | undefined
|
|
1970
|
+
const FfiConverterOptionalTypeRuntimeKind = new FfiConverterOptional(FfiConverterTypeRuntimeKind);
|
|
1971
|
+
// FfiConverter for Map<string, string>
|
|
1972
|
+
const FfiConverterMapStringString = new FfiConverterMap(FfiConverterString, FfiConverterString);
|
|
1973
|
+
// FfiConverter for Map<string, string> | undefined
|
|
1974
|
+
const FfiConverterOptionalMapStringString = new FfiConverterOptional(FfiConverterMapStringString);
|
|
1975
|
+
// FfiConverter for Array<PreservedJsonLike>
|
|
1976
|
+
const FfiConverterSequenceTypePreservedJson = new FfiConverterArray(FfiConverterTypePreservedJson);
|
|
1977
|
+
// FfiConverter for Array<PreservedJsonLike> | undefined
|
|
1978
|
+
const FfiConverterOptionalSequenceTypePreservedJson = new FfiConverterOptional(FfiConverterSequenceTypePreservedJson);
|
|
1979
|
+
// FfiConverter for ImagePullPolicy | undefined
|
|
1980
|
+
const FfiConverterOptionalTypeImagePullPolicy = new FfiConverterOptional(FfiConverterTypeImagePullPolicy);
|
|
1981
|
+
// FfiConverter for Firmware | undefined
|
|
1982
|
+
const FfiConverterOptionalTypeFirmware = new FfiConverterOptional(FfiConverterTypeFirmware);
|
|
1983
|
+
// FfiConverter for PreservedJsonLike | undefined
|
|
1984
|
+
const FfiConverterOptionalTypePreservedJson = new FfiConverterOptional(FfiConverterTypePreservedJson);
|
|
1985
|
+
// FfiConverter for ServiceProtocol | undefined
|
|
1986
|
+
const FfiConverterOptionalTypeServiceProtocol = new FfiConverterOptional(FfiConverterTypeServiceProtocol);
|
|
1987
|
+
// FfiConverter for Array<SandboxService>
|
|
1988
|
+
const FfiConverterSequenceTypeSandboxService = new FfiConverterArray(FfiConverterTypeSandboxService);
|
|
1989
|
+
// FfiConverter for Array<SandboxService> | undefined
|
|
1990
|
+
const FfiConverterOptionalSequenceTypeSandboxService = new FfiConverterOptional(FfiConverterSequenceTypeSandboxService);
|
|
1991
|
+
// FfiConverter for OidcConfig | undefined
|
|
1992
|
+
const FfiConverterOptionalTypeOidcConfig = new FfiConverterOptional(FfiConverterTypeOidcConfig);
|
|
1993
|
+
// FfiConverter for ProcessMode | undefined
|
|
1994
|
+
const FfiConverterOptionalTypeProcessMode = new FfiConverterOptional(FfiConverterTypeProcessMode);
|
|
1995
|
+
// FfiConverter for WarmPoolAutoscaling | undefined
|
|
1996
|
+
const FfiConverterOptionalTypeWarmPoolAutoscaling = new FfiConverterOptional(FfiConverterTypeWarmPoolAutoscaling);
|
|
1997
|
+
// FfiConverter for WarmPoolTtlPolicy | undefined
|
|
1998
|
+
const FfiConverterOptionalTypeWarmPoolTtlPolicy = new FfiConverterOptional(FfiConverterTypeWarmPoolTtlPolicy);
|
|
1999
|
+
/**
|
|
2000
|
+
* This should be called before anything else.
|
|
2001
|
+
*
|
|
2002
|
+
* It is likely that this is being done for you by the library's `index.ts`.
|
|
2003
|
+
*
|
|
2004
|
+
* It checks versions of uniffi between when the Rust scaffolding was generated
|
|
2005
|
+
* and when the bindings were generated.
|
|
2006
|
+
*
|
|
2007
|
+
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
2008
|
+
*/
|
|
2009
|
+
function uniffiEnsureInitialized() {
|
|
2010
|
+
// Get the bindings contract version from our ComponentInterface
|
|
2011
|
+
const bindingsContractVersion = 30;
|
|
2012
|
+
// Get the scaffolding contract version by calling the into the dylib
|
|
2013
|
+
const scaffoldingContractVersion = nativeModule().ubrn_ffi_cyclops_sdk_schema_uniffi_contract_version();
|
|
2014
|
+
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
2015
|
+
throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
2016
|
+
}
|
|
2017
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_constructor_osgymsandboxtemplatespecbuilder_new() !== 22071) {
|
|
2018
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_constructor_osgymsandboxtemplatespecbuilder_new");
|
|
2019
|
+
}
|
|
2020
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxtemplatespecbuilder_build() !== 53928) {
|
|
2021
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxtemplatespecbuilder_build");
|
|
2022
|
+
}
|
|
2023
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxtemplatespecbuilder_vm_template() !== 6610) {
|
|
2024
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxtemplatespecbuilder_vm_template");
|
|
2025
|
+
}
|
|
2026
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_constructor_osgymsandboxwarmpoolspecbuilder_new() !== 26063) {
|
|
2027
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_constructor_osgymsandboxwarmpoolspecbuilder_new");
|
|
2028
|
+
}
|
|
2029
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_autoscaling() !== 44912) {
|
|
2030
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_autoscaling");
|
|
2031
|
+
}
|
|
2032
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_build() !== 5682) {
|
|
2033
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_build");
|
|
2034
|
+
}
|
|
2035
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_idle_ttl_seconds() !== 56677) {
|
|
2036
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_idle_ttl_seconds");
|
|
2037
|
+
}
|
|
2038
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_replicas() !== 50438) {
|
|
2039
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_replicas");
|
|
2040
|
+
}
|
|
2041
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_sandbox_template_ref() !== 7198) {
|
|
2042
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_sandbox_template_ref");
|
|
2043
|
+
}
|
|
2044
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_ttl_policy() !== 53364) {
|
|
2045
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_ttl_policy");
|
|
2046
|
+
}
|
|
2047
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_ttl_seconds_after_created() !== 44516) {
|
|
2048
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_osgymsandboxwarmpoolspecbuilder_ttl_seconds_after_created");
|
|
2049
|
+
}
|
|
2050
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_constructor_preservedjson_from_json() !== 24064) {
|
|
2051
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_constructor_preservedjson_from_json");
|
|
2052
|
+
}
|
|
2053
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_preservedjson_to_json() !== 8252) {
|
|
2054
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_preservedjson_to_json");
|
|
2055
|
+
}
|
|
2056
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_constructor_sandboxservicebuilder_new() !== 21082) {
|
|
2057
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_constructor_sandboxservicebuilder_new");
|
|
2058
|
+
}
|
|
2059
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_sandboxservicebuilder_build() !== 62919) {
|
|
2060
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_sandboxservicebuilder_build");
|
|
2061
|
+
}
|
|
2062
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_sandboxservicebuilder_name() !== 62417) {
|
|
2063
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_sandboxservicebuilder_name");
|
|
2064
|
+
}
|
|
2065
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_sandboxservicebuilder_protocol() !== 10309) {
|
|
2066
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_sandboxservicebuilder_protocol");
|
|
2067
|
+
}
|
|
2068
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_sandboxservicebuilder_target_port() !== 61462) {
|
|
2069
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_sandboxservicebuilder_target_port");
|
|
2070
|
+
}
|
|
2071
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_constructor_sandboxtemplaterefbuilder_new() !== 4748) {
|
|
2072
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_constructor_sandboxtemplaterefbuilder_new");
|
|
2073
|
+
}
|
|
2074
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_sandboxtemplaterefbuilder_build() !== 46569) {
|
|
2075
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_sandboxtemplaterefbuilder_build");
|
|
2076
|
+
}
|
|
2077
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_sandboxtemplaterefbuilder_name() !== 1803) {
|
|
2078
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_sandboxtemplaterefbuilder_name");
|
|
2079
|
+
}
|
|
2080
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_constructor_vmtemplatebuilder_new() !== 27302) {
|
|
2081
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_constructor_vmtemplatebuilder_new");
|
|
2082
|
+
}
|
|
2083
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_args() !== 38529) {
|
|
2084
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_args");
|
|
2085
|
+
}
|
|
2086
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_build() !== 17867) {
|
|
2087
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_build");
|
|
2088
|
+
}
|
|
2089
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_claim_secrets() !== 62567) {
|
|
2090
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_claim_secrets");
|
|
2091
|
+
}
|
|
2092
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_command() !== 20371) {
|
|
2093
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_command");
|
|
2094
|
+
}
|
|
2095
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_container_disk_image() !== 49021) {
|
|
2096
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_container_disk_image");
|
|
2097
|
+
}
|
|
2098
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_cpu_cores() !== 25645) {
|
|
2099
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_cpu_cores");
|
|
2100
|
+
}
|
|
2101
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_env() !== 48368) {
|
|
2102
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_env");
|
|
2103
|
+
}
|
|
2104
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_firmware() !== 33926) {
|
|
2105
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_firmware");
|
|
2106
|
+
}
|
|
2107
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_image_pull_policy() !== 41828) {
|
|
2108
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_image_pull_policy");
|
|
2109
|
+
}
|
|
2110
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_image_pull_secret() !== 40154) {
|
|
2111
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_image_pull_secret");
|
|
2112
|
+
}
|
|
2113
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_memory() !== 55615) {
|
|
2114
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_memory");
|
|
2115
|
+
}
|
|
2116
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_nested_virtualization() !== 23834) {
|
|
2117
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_nested_virtualization");
|
|
2118
|
+
}
|
|
2119
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_node_selector() !== 45280) {
|
|
2120
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_node_selector");
|
|
2121
|
+
}
|
|
2122
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_oidc() !== 27280) {
|
|
2123
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_oidc");
|
|
2124
|
+
}
|
|
2125
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_probes() !== 40623) {
|
|
2126
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_probes");
|
|
2127
|
+
}
|
|
2128
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_process_mode() !== 49070) {
|
|
2129
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_process_mode");
|
|
2130
|
+
}
|
|
2131
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_runtime() !== 63375) {
|
|
2132
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_runtime");
|
|
2133
|
+
}
|
|
2134
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_runtime_class_name() !== 25466) {
|
|
2135
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_runtime_class_name");
|
|
2136
|
+
}
|
|
2137
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_services() !== 14113) {
|
|
2138
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_services");
|
|
2139
|
+
}
|
|
2140
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_tolerations() !== 1632) {
|
|
2141
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_vmtemplatebuilder_tolerations");
|
|
2142
|
+
}
|
|
2143
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_constructor_warmpoolautoscalingbuilder_new() !== 25769) {
|
|
2144
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_constructor_warmpoolautoscalingbuilder_new");
|
|
2145
|
+
}
|
|
2146
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_warmpoolautoscalingbuilder_build() !== 17132) {
|
|
2147
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_warmpoolautoscalingbuilder_build");
|
|
2148
|
+
}
|
|
2149
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_warmpoolautoscalingbuilder_initial_pool_size() !== 56913) {
|
|
2150
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_warmpoolautoscalingbuilder_initial_pool_size");
|
|
2151
|
+
}
|
|
2152
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_warmpoolautoscalingbuilder_max_pool_size() !== 18359) {
|
|
2153
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_warmpoolautoscalingbuilder_max_pool_size");
|
|
2154
|
+
}
|
|
2155
|
+
if (nativeModule().ubrn_uniffi_cyclops_sdk_schema_checksum_method_warmpoolautoscalingbuilder_min_pool_size() !== 46153) {
|
|
2156
|
+
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_cyclops_sdk_schema_checksum_method_warmpoolautoscalingbuilder_min_pool_size");
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
export default Object.freeze({
|
|
2160
|
+
initialize: uniffiEnsureInitialized,
|
|
2161
|
+
converters: {
|
|
2162
|
+
FfiConverterTypeClaimLifecycle,
|
|
2163
|
+
FfiConverterTypeClaimSecretRef,
|
|
2164
|
+
FfiConverterTypeClaimSpec,
|
|
2165
|
+
FfiConverterTypeFirmware,
|
|
2166
|
+
FfiConverterTypeImagePullPolicy,
|
|
2167
|
+
FfiConverterTypeJsonValueError,
|
|
2168
|
+
FfiConverterTypeOSGymSandboxClaimCondition,
|
|
2169
|
+
FfiConverterTypeOSGymSandboxClaimSandbox,
|
|
2170
|
+
FfiConverterTypeOSGymSandboxClaimStatus,
|
|
2171
|
+
FfiConverterTypeOSGymSandboxSpec,
|
|
2172
|
+
FfiConverterTypeOSGymSandboxStatus,
|
|
2173
|
+
FfiConverterTypeOSGymSandboxTemplateSpec,
|
|
2174
|
+
FfiConverterTypeOSGymSandboxTemplateSpecBuilder,
|
|
2175
|
+
FfiConverterTypeOSGymSandboxWarmPoolSpec,
|
|
2176
|
+
FfiConverterTypeOSGymSandboxWarmPoolSpecBuilder,
|
|
2177
|
+
FfiConverterTypeOSGymSandboxWarmPoolStatus,
|
|
2178
|
+
FfiConverterTypeOidcConfig,
|
|
2179
|
+
FfiConverterTypePreservedJson,
|
|
2180
|
+
FfiConverterTypeProcessMode,
|
|
2181
|
+
FfiConverterTypeRuntimeKind,
|
|
2182
|
+
FfiConverterTypeSandboxService,
|
|
2183
|
+
FfiConverterTypeSandboxServiceBuilder,
|
|
2184
|
+
FfiConverterTypeSandboxTemplateRef,
|
|
2185
|
+
FfiConverterTypeSandboxTemplateRefBuilder,
|
|
2186
|
+
FfiConverterTypeSchemaBuildError,
|
|
2187
|
+
FfiConverterTypeServiceProtocol,
|
|
2188
|
+
FfiConverterTypeVmTemplate,
|
|
2189
|
+
FfiConverterTypeVmTemplateBuilder,
|
|
2190
|
+
FfiConverterTypeWarmPoolAutoscaling,
|
|
2191
|
+
FfiConverterTypeWarmPoolAutoscalingBuilder,
|
|
2192
|
+
FfiConverterTypeWarmPoolTtlPolicy,
|
|
2193
|
+
}
|
|
2194
|
+
});
|