@bunny.net/api-client-effect-v4-magic-containers 0.0.0-stage → 1.3.202611132029
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +75 -2
- package/dist/mod.d.ts +29 -0
- package/dist/mod.js +29 -0
- package/dist/mod.js.map +1 -0
- package/dist/src/generated/client.d.ts +8954 -0
- package/dist/src/generated/client.js +1663 -0
- package/dist/src/generated/client.js.map +1 -0
- package/dist/src/generated/schemas.d.ts +2459 -0
- package/dist/src/generated/schemas.js +746 -0
- package/dist/src/generated/schemas.js.map +1 -0
- package/package.json +43 -3
|
@@ -0,0 +1,746 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export const ApplicationRuntimeType = Schema.Literals(["shared", "reserved"]);
|
|
3
|
+
export const AutoscalingSettings = Schema.Struct({
|
|
4
|
+
max: Schema.Int,
|
|
5
|
+
min: Schema.Int
|
|
6
|
+
});
|
|
7
|
+
export const ContainerEntryPoint = Schema.Struct({
|
|
8
|
+
arguments: Schema.optional(Schema.NullOr(Schema.String)),
|
|
9
|
+
argumentsArray: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
|
|
10
|
+
command: Schema.optional(Schema.NullOr(Schema.String)),
|
|
11
|
+
commandArray: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
|
|
12
|
+
workingDirectory: Schema.optional(Schema.NullOr(Schema.String))
|
|
13
|
+
});
|
|
14
|
+
export const GrpcProbeRequestDetails = Schema.Struct({
|
|
15
|
+
portNumber: Schema.optional(Schema.Int),
|
|
16
|
+
serviceName: Schema.optional(Schema.NullOr(Schema.String))
|
|
17
|
+
});
|
|
18
|
+
export const GrpcProbe = Schema.Struct({
|
|
19
|
+
request: Schema.optional(GrpcProbeRequestDetails)
|
|
20
|
+
});
|
|
21
|
+
export const HttpGetProbeRequestDetails = Schema.Struct({
|
|
22
|
+
path: Schema.optional(Schema.String),
|
|
23
|
+
portNumber: Schema.optional(Schema.Int)
|
|
24
|
+
});
|
|
25
|
+
export const HttpStatusCode = Schema.Literals(["continue", "switchingProtocols", "processing", "earlyHints", "ok", "created", "accepted", "nonAuthoritativeInformation", "noContent", "resetContent", "partialContent", "multiStatus", "alreadyReported", "imUsed", "multipleChoices", "movedPermanently", "found", "seeOther", "notModified", "useProxy", "unused", "temporaryRedirect", "permanentRedirect", "badRequest", "unauthorized", "paymentRequired", "forbidden", "notFound", "methodNotAllowed", "notAcceptable", "proxyAuthenticationRequired", "requestTimeout", "conflict", "gone", "lengthRequired", "preconditionFailed", "requestEntityTooLarge", "requestUriTooLong", "unsupportedMediaType", "requestedRangeNotSatisfiable", "expectationFailed", "misdirectedRequest", "unprocessableEntity", "locked", "failedDependency", "upgradeRequired", "preconditionRequired", "tooManyRequests", "requestHeaderFieldsTooLarge", "unavailableForLegalReasons", "internalServerError", "notImplemented", "badGateway", "serviceUnavailable", "gatewayTimeout", "httpVersionNotSupported", "variantAlsoNegotiates", "insufficientStorage", "loopDetected", "notExtended", "networkAuthenticationRequired"]);
|
|
26
|
+
export const HttpGetProbeResponseDetails = Schema.Struct({
|
|
27
|
+
expectedStatusCode: Schema.optional(HttpStatusCode)
|
|
28
|
+
});
|
|
29
|
+
export const HttpGetProbe = Schema.Struct({
|
|
30
|
+
request: Schema.optional(HttpGetProbeRequestDetails),
|
|
31
|
+
response: Schema.optional(HttpGetProbeResponseDetails)
|
|
32
|
+
});
|
|
33
|
+
export const TcpSocketProbeRequestDetails = Schema.Struct({
|
|
34
|
+
portNumber: Schema.optional(Schema.Int)
|
|
35
|
+
});
|
|
36
|
+
export const TcpSocketProbe = Schema.Struct({
|
|
37
|
+
request: Schema.optional(TcpSocketProbeRequestDetails)
|
|
38
|
+
});
|
|
39
|
+
export const ContainerProbe = Schema.Struct({
|
|
40
|
+
failureThreshold: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
41
|
+
grpc: Schema.optional(GrpcProbe),
|
|
42
|
+
httpGet: Schema.optional(HttpGetProbe),
|
|
43
|
+
initialDelaySeconds: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
44
|
+
periodSeconds: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
45
|
+
successThreshold: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
46
|
+
tcpSocket: Schema.optional(TcpSocketProbe),
|
|
47
|
+
timeoutSeconds: Schema.optional(Schema.NullOr(Schema.Int))
|
|
48
|
+
});
|
|
49
|
+
export const ContainerProbes = Schema.Struct({
|
|
50
|
+
liveness: Schema.optional(ContainerProbe),
|
|
51
|
+
readiness: Schema.optional(ContainerProbe),
|
|
52
|
+
startup: Schema.optional(ContainerProbe)
|
|
53
|
+
});
|
|
54
|
+
export const AnycastIpProtocolVersion = Schema.Literal("iPv4");
|
|
55
|
+
export const Protocol = Schema.Literals(["tcp", "udp", "sctp"]);
|
|
56
|
+
export const ContainerPortMappingRequest = Schema.Struct({
|
|
57
|
+
containerPort: Schema.Int,
|
|
58
|
+
exposedPort: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
59
|
+
protocols: Schema.optional(Schema.Array(Protocol))
|
|
60
|
+
});
|
|
61
|
+
export const AnycastEndpointRequest = Schema.Struct({
|
|
62
|
+
portMappings: Schema.Array(ContainerPortMappingRequest),
|
|
63
|
+
type: AnycastIpProtocolVersion
|
|
64
|
+
});
|
|
65
|
+
export const StickySessionSettings = Schema.Struct({
|
|
66
|
+
cookieName: Schema.optional(Schema.String),
|
|
67
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
68
|
+
sessionHeaders: Schema.Array(Schema.String)
|
|
69
|
+
});
|
|
70
|
+
export const CdnEndpointRequest = Schema.Struct({
|
|
71
|
+
isSslEnabled: Schema.optional(Schema.Boolean),
|
|
72
|
+
portMappings: Schema.optional(Schema.Array(ContainerPortMappingRequest)),
|
|
73
|
+
pullZoneId: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
74
|
+
stickySessions: Schema.optional(StickySessionSettings)
|
|
75
|
+
});
|
|
76
|
+
export const EndpointRequest = Schema.Struct({
|
|
77
|
+
anycast: Schema.optional(AnycastEndpointRequest),
|
|
78
|
+
cdn: Schema.optional(CdnEndpointRequest),
|
|
79
|
+
displayName: Schema.String
|
|
80
|
+
});
|
|
81
|
+
export const EnvironmentVariable = Schema.Struct({
|
|
82
|
+
name: Schema.String,
|
|
83
|
+
value: Schema.optional(Schema.String)
|
|
84
|
+
});
|
|
85
|
+
export const ImagePullPolicy = Schema.Literals(["always", "ifNotPresent"]);
|
|
86
|
+
export const VolumeMountRequest = Schema.Struct({
|
|
87
|
+
mountPath: Schema.String,
|
|
88
|
+
name: Schema.String
|
|
89
|
+
});
|
|
90
|
+
export const ContainerRequest = Schema.Struct({
|
|
91
|
+
endpoints: Schema.optional(Schema.Array(EndpointRequest)),
|
|
92
|
+
entryPoint: Schema.optional(ContainerEntryPoint),
|
|
93
|
+
environmentVariables: Schema.optional(Schema.Array(EnvironmentVariable)),
|
|
94
|
+
id: Schema.optional(Schema.NullOr(Schema.String)),
|
|
95
|
+
image: Schema.optional(Schema.NullOr(Schema.String)),
|
|
96
|
+
imageDigest: Schema.optional(Schema.NullOr(Schema.String)),
|
|
97
|
+
imageName: Schema.String,
|
|
98
|
+
imageNamespace: Schema.String,
|
|
99
|
+
imagePullPolicy: Schema.optional(ImagePullPolicy),
|
|
100
|
+
imageRegistryId: Schema.String,
|
|
101
|
+
imageTag: Schema.String,
|
|
102
|
+
name: Schema.String,
|
|
103
|
+
probes: Schema.optional(ContainerProbes),
|
|
104
|
+
volumeMounts: Schema.optional(Schema.Array(VolumeMountRequest))
|
|
105
|
+
});
|
|
106
|
+
export const GpuConfig = Schema.Struct({
|
|
107
|
+
count: Schema.optional(Schema.Int),
|
|
108
|
+
type: Schema.String
|
|
109
|
+
});
|
|
110
|
+
export const RepositorySettings = Schema.Struct({
|
|
111
|
+
owner: Schema.optional(Schema.NullOr(Schema.String)),
|
|
112
|
+
repositoryName: Schema.optional(Schema.NullOr(Schema.String)),
|
|
113
|
+
templateRepository: Schema.optional(Schema.NullOr(Schema.String))
|
|
114
|
+
});
|
|
115
|
+
export const UpdateRegionSettingsRequest = Schema.Struct({
|
|
116
|
+
allowedRegionIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
|
|
117
|
+
maxAllowedRegions: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
118
|
+
nodeSelectors: Schema.optional(Schema.NullOr(Schema.Record(Schema.String, Schema.String))),
|
|
119
|
+
requiredRegionIds: Schema.optional(Schema.NullOr(Schema.Array(Schema.String)))
|
|
120
|
+
});
|
|
121
|
+
export const VolumeRequest = Schema.Struct({
|
|
122
|
+
name: Schema.String,
|
|
123
|
+
size: Schema.Int
|
|
124
|
+
});
|
|
125
|
+
export const AddApplicationRequest = Schema.Struct({
|
|
126
|
+
autoScaling: AutoscalingSettings,
|
|
127
|
+
containerTemplates: Schema.optional(Schema.Array(ContainerRequest)),
|
|
128
|
+
gpu: Schema.optional(GpuConfig),
|
|
129
|
+
name: Schema.String,
|
|
130
|
+
regionSettings: UpdateRegionSettingsRequest,
|
|
131
|
+
repositorySettings: Schema.optional(RepositorySettings),
|
|
132
|
+
runtimeType: ApplicationRuntimeType,
|
|
133
|
+
terminationGracePeriodSeconds: Schema.optional(Schema.Int),
|
|
134
|
+
volumes: Schema.optional(Schema.Array(VolumeRequest))
|
|
135
|
+
});
|
|
136
|
+
export const AddApplicationResponse = Schema.Struct({
|
|
137
|
+
id: Schema.optional(Schema.String)
|
|
138
|
+
});
|
|
139
|
+
export const AddContainerRequest = Schema.Struct({
|
|
140
|
+
endpoints: Schema.optional(Schema.Array(EndpointRequest)),
|
|
141
|
+
entryPoint: Schema.optional(ContainerEntryPoint),
|
|
142
|
+
environmentVariables: Schema.optional(Schema.Array(EnvironmentVariable)),
|
|
143
|
+
image: Schema.optional(Schema.NullOr(Schema.String)),
|
|
144
|
+
imageDigest: Schema.optional(Schema.NullOr(Schema.String)),
|
|
145
|
+
imageName: Schema.String,
|
|
146
|
+
imageNamespace: Schema.String,
|
|
147
|
+
imagePullPolicy: Schema.optional(ImagePullPolicy),
|
|
148
|
+
imageRegistryId: Schema.String,
|
|
149
|
+
imageTag: Schema.String,
|
|
150
|
+
name: Schema.String,
|
|
151
|
+
probes: Schema.optional(ContainerProbes),
|
|
152
|
+
volumeMounts: Schema.optional(Schema.Array(VolumeMountRequest))
|
|
153
|
+
});
|
|
154
|
+
export const ApplicationStatus = Schema.Literals(["unknown", "active", "progressing", "inactive", "failing", "suspended"]);
|
|
155
|
+
export const EndpointType = Schema.Literals(["cdn", "anycast", "publicIp"]);
|
|
156
|
+
export const DisplayEndpoint = Schema.Struct({
|
|
157
|
+
address: Schema.String,
|
|
158
|
+
id: Schema.String,
|
|
159
|
+
type: EndpointType
|
|
160
|
+
});
|
|
161
|
+
export const AppListItem = Schema.Struct({
|
|
162
|
+
description: Schema.optional(Schema.String),
|
|
163
|
+
displayEndpoint: Schema.optional(DisplayEndpoint),
|
|
164
|
+
id: Schema.optional(Schema.String),
|
|
165
|
+
name: Schema.optional(Schema.String),
|
|
166
|
+
status: Schema.optional(ApplicationStatus)
|
|
167
|
+
});
|
|
168
|
+
export const ContainerInstance = Schema.Struct({
|
|
169
|
+
id: Schema.String,
|
|
170
|
+
nodeIpAddress: Schema.String,
|
|
171
|
+
podId: Schema.String,
|
|
172
|
+
templateId: Schema.String
|
|
173
|
+
});
|
|
174
|
+
export const EndpointInternalIp = Schema.Struct({
|
|
175
|
+
address: Schema.String,
|
|
176
|
+
region: Schema.String
|
|
177
|
+
});
|
|
178
|
+
export const ProtocolV3 = Schema.Literals(["tcp", "udp", "sctp"]);
|
|
179
|
+
export const EndpointPortMapping = Schema.Struct({
|
|
180
|
+
containerPort: Schema.Int,
|
|
181
|
+
exposedPort: Schema.Int,
|
|
182
|
+
protocols: Schema.Array(ProtocolV3)
|
|
183
|
+
});
|
|
184
|
+
export const EndpointStickySession = Schema.Struct({
|
|
185
|
+
cookieName: Schema.String,
|
|
186
|
+
enabled: Schema.Boolean,
|
|
187
|
+
sessionHeaders: Schema.Array(Schema.String)
|
|
188
|
+
});
|
|
189
|
+
export const ContainerEndpoint = Schema.Struct({
|
|
190
|
+
displayName: Schema.String,
|
|
191
|
+
id: Schema.String,
|
|
192
|
+
internalIpAddresses: Schema.optional(Schema.NullOr(Schema.Array(EndpointInternalIp))),
|
|
193
|
+
isSslEnabled: Schema.Boolean,
|
|
194
|
+
portMappings: Schema.Array(EndpointPortMapping),
|
|
195
|
+
publicHost: Schema.String,
|
|
196
|
+
publicIpAddresses: Schema.optional(Schema.NullOr(Schema.Array(EndpointInternalIp))),
|
|
197
|
+
pullZoneId: Schema.String,
|
|
198
|
+
stickySessions: Schema.optional(EndpointStickySession),
|
|
199
|
+
type: EndpointType
|
|
200
|
+
});
|
|
201
|
+
export const ContainerVolumeMount = Schema.Struct({
|
|
202
|
+
mountPath: Schema.String,
|
|
203
|
+
name: Schema.String
|
|
204
|
+
});
|
|
205
|
+
export const ContainerTemplate = Schema.Struct({
|
|
206
|
+
endpoints: Schema.Array(ContainerEndpoint),
|
|
207
|
+
entryPoint: ContainerEntryPoint,
|
|
208
|
+
environmentVariables: Schema.Array(EnvironmentVariable),
|
|
209
|
+
id: Schema.String,
|
|
210
|
+
image: Schema.String,
|
|
211
|
+
imageDigest: Schema.String,
|
|
212
|
+
imageName: Schema.String,
|
|
213
|
+
imageNamespace: Schema.String,
|
|
214
|
+
imagePullPolicy: ImagePullPolicy,
|
|
215
|
+
imageRegistryId: Schema.String,
|
|
216
|
+
imageTag: Schema.String,
|
|
217
|
+
name: Schema.String,
|
|
218
|
+
packageId: Schema.String,
|
|
219
|
+
probes: ContainerProbes,
|
|
220
|
+
volumeMounts: Schema.Array(ContainerVolumeMount)
|
|
221
|
+
});
|
|
222
|
+
export const NetworkLimits = Schema.Struct({
|
|
223
|
+
egressBandwidthLimit: Schema.optional(Schema.Int),
|
|
224
|
+
ingressBandwidthLimit: Schema.optional(Schema.Int)
|
|
225
|
+
});
|
|
226
|
+
export const RegionProvisioningType = Schema.Literals(["static", "dynamic"]);
|
|
227
|
+
export const RegionSettings = Schema.Struct({
|
|
228
|
+
allowedRegionIds: Schema.Array(Schema.String),
|
|
229
|
+
maxAllowedRegions: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
230
|
+
provisioningType: Schema.optional(RegionProvisioningType),
|
|
231
|
+
requiredRegionIds: Schema.Array(Schema.String)
|
|
232
|
+
});
|
|
233
|
+
export const VolumeTemplate = Schema.Struct({
|
|
234
|
+
name: Schema.String,
|
|
235
|
+
size: Schema.Number
|
|
236
|
+
});
|
|
237
|
+
export const Application = Schema.Struct({
|
|
238
|
+
autoScaling: Schema.optional(AutoscalingSettings),
|
|
239
|
+
containerInstances: Schema.Array(ContainerInstance),
|
|
240
|
+
containerTemplates: Schema.Array(ContainerTemplate),
|
|
241
|
+
displayEndpoint: Schema.optional(DisplayEndpoint),
|
|
242
|
+
id: Schema.String,
|
|
243
|
+
name: Schema.String,
|
|
244
|
+
networkSettings: Schema.optional(NetworkLimits),
|
|
245
|
+
regionSettings: RegionSettings,
|
|
246
|
+
repositorySettings: Schema.optional(RepositorySettings),
|
|
247
|
+
runtimeType: ApplicationRuntimeType,
|
|
248
|
+
status: ApplicationStatus,
|
|
249
|
+
terminationGracePeriodSeconds: Schema.optional(Schema.Int),
|
|
250
|
+
volumes: Schema.Array(VolumeTemplate)
|
|
251
|
+
});
|
|
252
|
+
export const EnvironmentVariableSuggestionSource = Schema.Literals(["image", "documentation"]);
|
|
253
|
+
export const EnvironmentVariableSuggestion = Schema.Struct({
|
|
254
|
+
defaultValue: Schema.optional(Schema.NullOr(Schema.String)),
|
|
255
|
+
description: Schema.optional(Schema.NullOr(Schema.String)),
|
|
256
|
+
name: Schema.optional(Schema.String),
|
|
257
|
+
required: Schema.optional(Schema.Boolean),
|
|
258
|
+
source: Schema.optional(EnvironmentVariableSuggestionSource)
|
|
259
|
+
});
|
|
260
|
+
export const VolumeSuggestion = Schema.Struct({
|
|
261
|
+
containerPath: Schema.optional(Schema.String),
|
|
262
|
+
suggestedVolumeName: Schema.optional(Schema.String)
|
|
263
|
+
});
|
|
264
|
+
export const ContainerConfigSuggestions = Schema.Struct({
|
|
265
|
+
appName: Schema.optional(Schema.NullOr(Schema.String)),
|
|
266
|
+
description: Schema.optional(Schema.NullOr(Schema.String)),
|
|
267
|
+
digest: Schema.optional(Schema.NullOr(Schema.String)),
|
|
268
|
+
documentationPending: Schema.optional(Schema.Boolean),
|
|
269
|
+
documentationUrl: Schema.optional(Schema.NullOr(Schema.String)),
|
|
270
|
+
endpointSuggestions: Schema.optional(Schema.Array(EndpointRequest)),
|
|
271
|
+
environmentVariablesSuggestions: Schema.optional(Schema.Array(EnvironmentVariableSuggestion)),
|
|
272
|
+
instructions: Schema.optional(Schema.NullOr(Schema.String)),
|
|
273
|
+
probeSuggestions: Schema.optional(ContainerProbes),
|
|
274
|
+
registryUrl: Schema.optional(Schema.NullOr(Schema.String)),
|
|
275
|
+
sourceUrl: Schema.optional(Schema.NullOr(Schema.String)),
|
|
276
|
+
volumeSuggestions: Schema.optional(Schema.Array(VolumeSuggestion))
|
|
277
|
+
});
|
|
278
|
+
export const ContainerImage = Schema.Struct({
|
|
279
|
+
id: Schema.optional(Schema.String),
|
|
280
|
+
namespace: Schema.optional(Schema.String)
|
|
281
|
+
});
|
|
282
|
+
export const ContainerImageTag = Schema.Struct({
|
|
283
|
+
name: Schema.optional(Schema.String)
|
|
284
|
+
});
|
|
285
|
+
export const ContainerRegistry = Schema.Struct({
|
|
286
|
+
accountId: Schema.optional(Schema.NullOr(Schema.String)),
|
|
287
|
+
createdAt: Schema.optional(Schema.DateFromString),
|
|
288
|
+
displayName: Schema.optional(Schema.String),
|
|
289
|
+
firstPasswordSymbols: Schema.optional(Schema.NullOr(Schema.String)),
|
|
290
|
+
hostName: Schema.optional(Schema.String),
|
|
291
|
+
id: Schema.optional(Schema.Int),
|
|
292
|
+
isPlatformManaged: Schema.optional(Schema.Boolean),
|
|
293
|
+
isPublic: Schema.optional(Schema.NullOr(Schema.Boolean)),
|
|
294
|
+
lastPasswordSymbols: Schema.optional(Schema.NullOr(Schema.String)),
|
|
295
|
+
lastUpdatedAt: Schema.optional(Schema.NullOr(Schema.DateFromString)),
|
|
296
|
+
namespaceId: Schema.optional(Schema.String),
|
|
297
|
+
userId: Schema.optional(Schema.NullOr(Schema.String)),
|
|
298
|
+
userName: Schema.optional(Schema.NullOr(Schema.String))
|
|
299
|
+
});
|
|
300
|
+
export const Credentials = Schema.Struct({
|
|
301
|
+
password: Schema.String,
|
|
302
|
+
userName: Schema.String
|
|
303
|
+
});
|
|
304
|
+
export const RegistryType = Schema.Literals(["dockerHub", "gitHub", "bunnyRegistry", "oci"]);
|
|
305
|
+
export const ContainerRegistryRequest = Schema.Struct({
|
|
306
|
+
displayName: Schema.String,
|
|
307
|
+
hostName: Schema.optional(Schema.NullOr(Schema.String)),
|
|
308
|
+
passwordCredentials: Schema.optional(Credentials),
|
|
309
|
+
type: Schema.optional(RegistryType)
|
|
310
|
+
});
|
|
311
|
+
export const ContainerStatus = Schema.Literals(["notStarted", "started", "ready"]);
|
|
312
|
+
export const CreateLogForwardingRequest = Schema.StructWithRest(Schema.Struct({
|
|
313
|
+
app: Schema.String,
|
|
314
|
+
enabled: Schema.Boolean,
|
|
315
|
+
endpoint: Schema.String,
|
|
316
|
+
format: Schema.Literals(["SyslogRfc3164", "SyslogRfc5424"]),
|
|
317
|
+
port: Schema.Int,
|
|
318
|
+
token: Schema.optional(Schema.String),
|
|
319
|
+
type: Schema.Literals(["SyslogUdp", "SyslogTcp"])
|
|
320
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
321
|
+
export const DataGranularity = Schema.Literals(["Daily", "Hourly", "Minute"]);
|
|
322
|
+
export const DeleteAllVolumeInstancesResponse = Schema.Struct({
|
|
323
|
+
ids: Schema.optional(Schema.Array(Schema.String))
|
|
324
|
+
});
|
|
325
|
+
export const DeleteVolumeInstanceResponse = Schema.Struct({
|
|
326
|
+
id: Schema.optional(Schema.String)
|
|
327
|
+
});
|
|
328
|
+
export const DeploymentStatus = Schema.Literals(["unknown", "active", "progressing", "inactive", "failing"]);
|
|
329
|
+
export const DetachVolumeResponse = Schema.Struct({
|
|
330
|
+
name: Schema.optional(Schema.String)
|
|
331
|
+
});
|
|
332
|
+
export const Grade = Schema.Literals(["couldBeBetter", "notBad", "doingGreat"]);
|
|
333
|
+
export const DoubleStatusIndicator = Schema.Struct({
|
|
334
|
+
indicator: Schema.optional(Schema.Number),
|
|
335
|
+
statusGrade: Schema.optional(Grade)
|
|
336
|
+
});
|
|
337
|
+
export const EndpointListItem = Schema.Struct({
|
|
338
|
+
containerId: Schema.String,
|
|
339
|
+
containerName: Schema.String,
|
|
340
|
+
displayName: Schema.String,
|
|
341
|
+
id: Schema.String,
|
|
342
|
+
internalIpAddresses: Schema.optional(Schema.NullOr(Schema.Array(EndpointInternalIp))),
|
|
343
|
+
isSslEnabled: Schema.Boolean,
|
|
344
|
+
portMappings: Schema.Array(EndpointPortMapping),
|
|
345
|
+
publicHost: Schema.String,
|
|
346
|
+
publicIpAddresses: Schema.optional(Schema.NullOr(Schema.Array(EndpointInternalIp))),
|
|
347
|
+
pullZoneId: Schema.String,
|
|
348
|
+
stickySessions: Schema.optional(EndpointStickySession),
|
|
349
|
+
type: EndpointType
|
|
350
|
+
});
|
|
351
|
+
export const ValidationError = Schema.Struct({
|
|
352
|
+
field: Schema.optional(Schema.NullOr(Schema.String)),
|
|
353
|
+
message: Schema.String
|
|
354
|
+
});
|
|
355
|
+
export const ErrorDetails = Schema.Struct({
|
|
356
|
+
detail: Schema.optional(Schema.NullOr(Schema.String)),
|
|
357
|
+
errors: Schema.optional(Schema.NullOr(Schema.Array(ValidationError))),
|
|
358
|
+
id: Schema.optional(Schema.NullOr(Schema.String)),
|
|
359
|
+
instance: Schema.optional(Schema.NullOr(Schema.String)),
|
|
360
|
+
status: Schema.optional(Schema.Int),
|
|
361
|
+
title: Schema.optional(Schema.String)
|
|
362
|
+
});
|
|
363
|
+
export const FindContainerImageRegistryStatus = Schema.Literals(["found", "notFound", "unauthorized", "unavailable"]);
|
|
364
|
+
export const FindContainerImageRegistryResult = Schema.Struct({
|
|
365
|
+
message: Schema.optional(Schema.NullOr(Schema.String)),
|
|
366
|
+
registryId: Schema.String,
|
|
367
|
+
status: FindContainerImageRegistryStatus
|
|
368
|
+
});
|
|
369
|
+
export const FindContainerImageRequest = Schema.Struct({
|
|
370
|
+
image: Schema.String,
|
|
371
|
+
registryIds: Schema.Array(Schema.String)
|
|
372
|
+
});
|
|
373
|
+
export const SuggestedContainerImage = Schema.Struct({
|
|
374
|
+
imageName: Schema.String,
|
|
375
|
+
imageNamespace: Schema.String,
|
|
376
|
+
registryId: Schema.String
|
|
377
|
+
});
|
|
378
|
+
export const SuggestedContainerImageTags = Schema.Struct({
|
|
379
|
+
imageName: Schema.String,
|
|
380
|
+
imageNamespace: Schema.String,
|
|
381
|
+
registryId: Schema.String,
|
|
382
|
+
tags: Schema.Array(Schema.String)
|
|
383
|
+
});
|
|
384
|
+
export const FindContainerImageSuggestions = Schema.Struct({
|
|
385
|
+
sameImageTags: Schema.optional(Schema.Array(SuggestedContainerImageTags)),
|
|
386
|
+
similarImages: Schema.optional(Schema.Array(SuggestedContainerImage))
|
|
387
|
+
});
|
|
388
|
+
export const FoundContainerImage = Schema.Struct({
|
|
389
|
+
imageDigest: Schema.String,
|
|
390
|
+
imageName: Schema.String,
|
|
391
|
+
imageNamespace: Schema.String,
|
|
392
|
+
imageTag: Schema.String,
|
|
393
|
+
isPublic: Schema.Boolean,
|
|
394
|
+
registryHostname: Schema.String,
|
|
395
|
+
registryId: Schema.String
|
|
396
|
+
});
|
|
397
|
+
export const ListMeta = Schema.Struct({
|
|
398
|
+
totalItems: Schema.optional(Schema.Int)
|
|
399
|
+
});
|
|
400
|
+
export const FindContainerImageResponse = Schema.Struct({
|
|
401
|
+
cursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
402
|
+
items: Schema.optional(Schema.Array(FoundContainerImage)),
|
|
403
|
+
meta: Schema.optional(ListMeta),
|
|
404
|
+
registries: Schema.optional(Schema.Array(FindContainerImageRegistryResult)),
|
|
405
|
+
suggestions: Schema.optional(FindContainerImageSuggestions)
|
|
406
|
+
});
|
|
407
|
+
export const GetContainerConfigSuggestionsRequest = Schema.Struct({
|
|
408
|
+
imageName: Schema.String,
|
|
409
|
+
imageNamespace: Schema.String,
|
|
410
|
+
registryId: Schema.String,
|
|
411
|
+
tag: Schema.String
|
|
412
|
+
});
|
|
413
|
+
export const GetContainerImageDigestByTagRequest = Schema.Struct({
|
|
414
|
+
imageName: Schema.String,
|
|
415
|
+
imageNamespace: Schema.String,
|
|
416
|
+
registryId: Schema.String,
|
|
417
|
+
tag: Schema.String
|
|
418
|
+
});
|
|
419
|
+
export const ImageConfig = Schema.Struct({
|
|
420
|
+
endpointSuggestions: Schema.optional(Schema.Array(EndpointRequest)),
|
|
421
|
+
volumeSuggestions: Schema.optional(Schema.Array(VolumeSuggestion))
|
|
422
|
+
});
|
|
423
|
+
export const ImageTagInfo = Schema.Struct({
|
|
424
|
+
digest: Schema.optional(Schema.String),
|
|
425
|
+
image: Schema.optional(Schema.String),
|
|
426
|
+
imageNamespace: Schema.optional(Schema.String),
|
|
427
|
+
tag: Schema.optional(Schema.String)
|
|
428
|
+
});
|
|
429
|
+
export const Int32StatusIndicator = Schema.Struct({
|
|
430
|
+
indicator: Schema.optional(Schema.Int),
|
|
431
|
+
statusGrade: Schema.optional(Grade)
|
|
432
|
+
});
|
|
433
|
+
export const ListApplicationsResponse = Schema.Struct({
|
|
434
|
+
cursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
435
|
+
items: Schema.optional(Schema.Array(AppListItem)),
|
|
436
|
+
meta: Schema.optional(ListMeta)
|
|
437
|
+
});
|
|
438
|
+
export const ListContainerImageExposedPortsRequest = Schema.Struct({
|
|
439
|
+
imageName: Schema.String,
|
|
440
|
+
imageNamespace: Schema.String,
|
|
441
|
+
registryId: Schema.String,
|
|
442
|
+
tag: Schema.String
|
|
443
|
+
});
|
|
444
|
+
export const ListContainerImageTagsPageRequest = Schema.Struct({
|
|
445
|
+
cursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
446
|
+
imageName: Schema.String,
|
|
447
|
+
imageNamespace: Schema.String,
|
|
448
|
+
limit: Schema.optional(Schema.Int),
|
|
449
|
+
registryId: Schema.String
|
|
450
|
+
});
|
|
451
|
+
export const ListContainerImageTagsPageResponse = Schema.Struct({
|
|
452
|
+
cursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
453
|
+
items: Schema.optional(Schema.Array(ContainerImageTag)),
|
|
454
|
+
meta: Schema.optional(ListMeta)
|
|
455
|
+
});
|
|
456
|
+
export const ListContainerImageTagsRequest = Schema.Struct({
|
|
457
|
+
imageName: Schema.String,
|
|
458
|
+
imageNamespace: Schema.String,
|
|
459
|
+
registryId: Schema.String
|
|
460
|
+
});
|
|
461
|
+
export const ListContainerImagesRequest = Schema.Struct({
|
|
462
|
+
registryId: Schema.String
|
|
463
|
+
});
|
|
464
|
+
export const ListContainerRegistriesResponse = Schema.Struct({
|
|
465
|
+
cursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
466
|
+
items: Schema.optional(Schema.Array(ContainerRegistry)),
|
|
467
|
+
meta: Schema.optional(ListMeta)
|
|
468
|
+
});
|
|
469
|
+
export const ListEndpointsResponse = Schema.Struct({
|
|
470
|
+
cursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
471
|
+
items: Schema.optional(Schema.Array(EndpointListItem)),
|
|
472
|
+
meta: Schema.optional(ListMeta)
|
|
473
|
+
});
|
|
474
|
+
export const LogForwardingConfiguration = Schema.StructWithRest(Schema.Struct({
|
|
475
|
+
app: Schema.optional(Schema.String),
|
|
476
|
+
createdAt: Schema.optional(Schema.DateFromString),
|
|
477
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
478
|
+
endpoint: Schema.optional(Schema.String),
|
|
479
|
+
format: Schema.optional(Schema.Literals(["SyslogRfc3164", "SyslogRfc5424"])),
|
|
480
|
+
id: Schema.optional(Schema.String),
|
|
481
|
+
port: Schema.optional(Schema.Int),
|
|
482
|
+
productId: Schema.optional(Schema.String),
|
|
483
|
+
token: Schema.optional(Schema.String),
|
|
484
|
+
type: Schema.optional(Schema.Literals(["SyslogUdp", "SyslogTcp"]))
|
|
485
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
486
|
+
export const ListLogForwardingResponse = Schema.StructWithRest(Schema.Struct({
|
|
487
|
+
items: Schema.optional(Schema.Array(LogForwardingConfiguration))
|
|
488
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
489
|
+
export const ListNodesResponse = Schema.Struct({
|
|
490
|
+
cursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
491
|
+
items: Schema.optional(Schema.Array(Schema.String)),
|
|
492
|
+
meta: Schema.optional(ListMeta)
|
|
493
|
+
});
|
|
494
|
+
export const Region = Schema.Struct({
|
|
495
|
+
gpuTypes: Schema.optional(Schema.Array(Schema.String)),
|
|
496
|
+
group: Schema.optional(Schema.String),
|
|
497
|
+
hasAnycastSupport: Schema.optional(Schema.Boolean),
|
|
498
|
+
hasCapacity: Schema.optional(Schema.Boolean),
|
|
499
|
+
id: Schema.optional(Schema.String),
|
|
500
|
+
name: Schema.optional(Schema.String)
|
|
501
|
+
});
|
|
502
|
+
export const ListRegionsResponse = Schema.Struct({
|
|
503
|
+
cursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
504
|
+
items: Schema.optional(Schema.Array(Region)),
|
|
505
|
+
meta: Schema.optional(ListMeta)
|
|
506
|
+
});
|
|
507
|
+
export const ListVolumesSummary = Schema.Struct({
|
|
508
|
+
totalContainers: Schema.optional(Schema.Int),
|
|
509
|
+
totalPods: Schema.optional(Schema.Int),
|
|
510
|
+
totalStorage: Schema.optional(Schema.Number)
|
|
511
|
+
});
|
|
512
|
+
export const VolumeStatus = Schema.Literals(["unknown", "attached", "detached", "extending", "deleting", "creating", "notScheduled", "scheduled", "failed", "maintenance"]);
|
|
513
|
+
export const VolumeInstance = Schema.Struct({
|
|
514
|
+
attachedContainers: Schema.optional(Schema.Array(Schema.String)),
|
|
515
|
+
attachedPods: Schema.optional(Schema.Array(Schema.String)),
|
|
516
|
+
id: Schema.optional(Schema.String),
|
|
517
|
+
region: Schema.optional(Schema.String),
|
|
518
|
+
set: Schema.optional(Schema.String),
|
|
519
|
+
size: Schema.optional(Schema.Number),
|
|
520
|
+
status: Schema.optional(VolumeStatus),
|
|
521
|
+
usage: Schema.optional(Schema.Number)
|
|
522
|
+
});
|
|
523
|
+
export const VolumeInList = Schema.Struct({
|
|
524
|
+
attachedInstancesCount: Schema.optional(Schema.Int),
|
|
525
|
+
containersCount: Schema.optional(Schema.Int),
|
|
526
|
+
id: Schema.optional(Schema.String),
|
|
527
|
+
name: Schema.optional(Schema.String),
|
|
528
|
+
size: Schema.optional(Schema.Number),
|
|
529
|
+
totalInstancesCount: Schema.optional(Schema.Int),
|
|
530
|
+
totalUsage: Schema.optional(Schema.Number),
|
|
531
|
+
volumeInstances: Schema.optional(Schema.Array(VolumeInstance))
|
|
532
|
+
});
|
|
533
|
+
export const ListVolumesResponse = Schema.Struct({
|
|
534
|
+
cursor: Schema.optional(Schema.NullOr(Schema.String)),
|
|
535
|
+
items: Schema.optional(Schema.Array(VolumeInList)),
|
|
536
|
+
meta: Schema.optional(ListMeta),
|
|
537
|
+
summary: Schema.optional(ListVolumesSummary)
|
|
538
|
+
});
|
|
539
|
+
export const OptimalBaseRegionResponse = Schema.Struct({
|
|
540
|
+
region: Schema.optional(Region)
|
|
541
|
+
});
|
|
542
|
+
export const OverviewLimits = Schema.Struct({
|
|
543
|
+
cpuCores: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
544
|
+
outboundBandwidthBytesPerSecond: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
545
|
+
ramBytes: Schema.optional(Schema.NullOr(Schema.Number))
|
|
546
|
+
});
|
|
547
|
+
export const OverviewContainer = Schema.Struct({
|
|
548
|
+
cpuUsage: Schema.optional(Schema.Number),
|
|
549
|
+
exitCode: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
550
|
+
id: Schema.optional(Schema.String),
|
|
551
|
+
image: Schema.optional(Schema.NullOr(Schema.String)),
|
|
552
|
+
imageDisplay: Schema.optional(Schema.NullOr(Schema.String)),
|
|
553
|
+
message: Schema.optional(Schema.String),
|
|
554
|
+
name: Schema.optional(Schema.String),
|
|
555
|
+
numberOfRestarts: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
556
|
+
ramUsage: Schema.optional(Schema.Number),
|
|
557
|
+
reason: Schema.optional(Schema.String),
|
|
558
|
+
status: Schema.optional(ContainerStatus)
|
|
559
|
+
});
|
|
560
|
+
export const OverviewPodVolume = Schema.Struct({
|
|
561
|
+
id: Schema.optional(Schema.String),
|
|
562
|
+
sizeBytes: Schema.optional(Schema.Number),
|
|
563
|
+
usageBytes: Schema.optional(Schema.Number)
|
|
564
|
+
});
|
|
565
|
+
export const PodStatus = Schema.Literals(["notScheduled", "scheduled", "ready", "deleting"]);
|
|
566
|
+
export const OverviewPod = Schema.Struct({
|
|
567
|
+
containers: Schema.optional(Schema.Array(OverviewContainer)),
|
|
568
|
+
cpuUsage: Schema.optional(Schema.Number),
|
|
569
|
+
cpuUsageCores: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
570
|
+
ephemeralStorageLimitBytes: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
571
|
+
ephemeralStorageUsageBytes: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
572
|
+
ephemeralStorageUsageRatio: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
573
|
+
lastHeartBeat: Schema.optional(Schema.NullOr(Schema.DateFromString)),
|
|
574
|
+
message: Schema.optional(Schema.NullOr(Schema.String)),
|
|
575
|
+
name: Schema.optional(Schema.String),
|
|
576
|
+
outboundBandwidthBytesPerSecond: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
577
|
+
outboundConnectionsLimit: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
578
|
+
outboundConnectionsRejectedDiff: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
579
|
+
outboundTrafficChart: Schema.optional(Schema.NullOr(Schema.Record(Schema.String, Schema.NullOr(Schema.Int)))),
|
|
580
|
+
ramUsage: Schema.optional(Schema.Number),
|
|
581
|
+
ramUsageBytes: Schema.optional(Schema.NullOr(Schema.Number)),
|
|
582
|
+
status: Schema.optional(PodStatus),
|
|
583
|
+
volumes: Schema.optional(Schema.NullOr(Schema.Array(OverviewPodVolume))),
|
|
584
|
+
volumesUtilizationPercentage: Schema.optional(Schema.Record(Schema.String, Schema.Number))
|
|
585
|
+
});
|
|
586
|
+
export const OverviewRegion = Schema.Struct({
|
|
587
|
+
anycastTraffic: Schema.optional(Schema.Number),
|
|
588
|
+
averageCPU: Schema.optional(Schema.Number),
|
|
589
|
+
averageRAM: Schema.optional(Schema.Number),
|
|
590
|
+
averageVolumesUsagePercentage: Schema.optional(Schema.Number),
|
|
591
|
+
instances: Schema.optional(Schema.Int),
|
|
592
|
+
isRequired: Schema.optional(Schema.Boolean),
|
|
593
|
+
pods: Schema.optional(Schema.Array(OverviewPod)),
|
|
594
|
+
region: Schema.optional(Schema.String),
|
|
595
|
+
requests: Schema.optional(Schema.Number),
|
|
596
|
+
status: Schema.optional(DeploymentStatus)
|
|
597
|
+
});
|
|
598
|
+
export const Overview = Schema.Struct({
|
|
599
|
+
activeInstances: Schema.optional(Int32StatusIndicator),
|
|
600
|
+
activeRegions: Schema.optional(Int32StatusIndicator),
|
|
601
|
+
averageCPU: Schema.optional(DoubleStatusIndicator),
|
|
602
|
+
averageLatency: Schema.optional(Schema.Number),
|
|
603
|
+
averageRAM: Schema.optional(DoubleStatusIndicator),
|
|
604
|
+
averageVolumesUsage: Schema.optional(DoubleStatusIndicator),
|
|
605
|
+
currentLatency: Schema.optional(DoubleStatusIndicator),
|
|
606
|
+
desiredInstances: Schema.optional(Schema.Int),
|
|
607
|
+
latencyChart: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
608
|
+
limits: Schema.optional(OverviewLimits),
|
|
609
|
+
monthlyCost: Schema.optional(Schema.Number),
|
|
610
|
+
regions: Schema.optional(Schema.Array(OverviewRegion)),
|
|
611
|
+
status: Schema.optional(ApplicationStatus),
|
|
612
|
+
targetLatency: Schema.optional(DoubleStatusIndicator),
|
|
613
|
+
totalVolumeSizeInGb: Schema.optional(Schema.Number)
|
|
614
|
+
});
|
|
615
|
+
export const PatchApplicationRequest = Schema.Struct({
|
|
616
|
+
autoScaling: Schema.optional(AutoscalingSettings),
|
|
617
|
+
containerTemplates: Schema.optional(Schema.NullOr(Schema.Array(ContainerRequest))),
|
|
618
|
+
gpu: Schema.optional(GpuConfig),
|
|
619
|
+
name: Schema.optional(Schema.NullOr(Schema.String)),
|
|
620
|
+
regionSettings: Schema.optional(UpdateRegionSettingsRequest),
|
|
621
|
+
runtimeType: Schema.optional(ApplicationRuntimeType),
|
|
622
|
+
volumes: Schema.optional(Schema.NullOr(Schema.Array(VolumeRequest)))
|
|
623
|
+
});
|
|
624
|
+
export const PatchContainerRequest = Schema.Struct({
|
|
625
|
+
endpoints: Schema.optional(Schema.NullOr(Schema.Array(EndpointRequest))),
|
|
626
|
+
entryPoint: Schema.optional(ContainerEntryPoint),
|
|
627
|
+
environmentVariables: Schema.optional(Schema.NullOr(Schema.Array(EnvironmentVariable))),
|
|
628
|
+
image: Schema.optional(Schema.NullOr(Schema.String)),
|
|
629
|
+
imageDigest: Schema.optional(Schema.NullOr(Schema.String)),
|
|
630
|
+
imageName: Schema.optional(Schema.NullOr(Schema.String)),
|
|
631
|
+
imageNamespace: Schema.optional(Schema.NullOr(Schema.String)),
|
|
632
|
+
imagePullPolicy: Schema.optional(ImagePullPolicy),
|
|
633
|
+
imageRegistryId: Schema.optional(Schema.NullOr(Schema.String)),
|
|
634
|
+
imageTag: Schema.optional(Schema.NullOr(Schema.String)),
|
|
635
|
+
name: Schema.optional(Schema.NullOr(Schema.String)),
|
|
636
|
+
probes: Schema.optional(ContainerProbes),
|
|
637
|
+
volumeMounts: Schema.optional(Schema.NullOr(Schema.Array(VolumeMountRequest)))
|
|
638
|
+
});
|
|
639
|
+
export const PatchVolumeRequest = Schema.Struct({
|
|
640
|
+
name: Schema.optional(Schema.NullOr(Schema.String)),
|
|
641
|
+
size: Schema.optional(Schema.NullOr(Schema.Int))
|
|
642
|
+
});
|
|
643
|
+
export const ProblemDetails = Schema.StructWithRest(Schema.Struct({
|
|
644
|
+
detail: Schema.optional(Schema.NullOr(Schema.String)),
|
|
645
|
+
instance: Schema.optional(Schema.NullOr(Schema.String)),
|
|
646
|
+
status: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
647
|
+
title: Schema.optional(Schema.NullOr(Schema.String)),
|
|
648
|
+
type: Schema.optional(Schema.NullOr(Schema.String))
|
|
649
|
+
}), [Schema.Record(Schema.String, Schema.Unknown)]);
|
|
650
|
+
export const RemoveContainerRegistryResponseStatus = Schema.Literals(["notFound", "inUse", "removed"]);
|
|
651
|
+
export const RemoveContainerRegistryResult = Schema.Struct({
|
|
652
|
+
applications: Schema.optional(Schema.NullOr(Schema.Array(Schema.String))),
|
|
653
|
+
status: Schema.optional(RemoveContainerRegistryResponseStatus)
|
|
654
|
+
});
|
|
655
|
+
export const SavedContainerRegistryStatus = Schema.Literals(["saved", "secretsValidationFailed", "unknownErrorOccured", "notFound", "invalidInput"]);
|
|
656
|
+
export const SaveContainerRegistryResult = Schema.Struct({
|
|
657
|
+
error: Schema.optional(Schema.NullOr(Schema.String)),
|
|
658
|
+
id: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
659
|
+
status: Schema.optional(SavedContainerRegistryStatus)
|
|
660
|
+
});
|
|
661
|
+
export const SaveEndpointResponse = Schema.Struct({
|
|
662
|
+
id: Schema.optional(Schema.String)
|
|
663
|
+
});
|
|
664
|
+
export const SearchPublicContainerImagesRequest = Schema.Struct({
|
|
665
|
+
page: Schema.optional(Schema.Int),
|
|
666
|
+
prefix: Schema.String,
|
|
667
|
+
registryId: Schema.String,
|
|
668
|
+
size: Schema.optional(Schema.Int)
|
|
669
|
+
});
|
|
670
|
+
export const Statistics = Schema.Struct({
|
|
671
|
+
activeRegionsChart: Schema.optional(Schema.Record(Schema.String, Schema.NullOr(Schema.Int))),
|
|
672
|
+
cpuUsageChart: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
673
|
+
instancesChart: Schema.optional(Schema.Record(Schema.String, Schema.NullOr(Schema.Int))),
|
|
674
|
+
latencyChart: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
675
|
+
ramUsageChart: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
676
|
+
targetLatencyChart: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
677
|
+
trafficChart: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
678
|
+
volumesCapacityChart: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
679
|
+
volumesSplitCapacityChart: Schema.optional(Schema.Record(Schema.String, Schema.Record(Schema.String, Schema.Number))),
|
|
680
|
+
volumesSplitUsageChart: Schema.optional(Schema.Record(Schema.String, Schema.Record(Schema.String, Schema.Number))),
|
|
681
|
+
volumesUsageChart: Schema.optional(Schema.Record(Schema.String, Schema.Number))
|
|
682
|
+
});
|
|
683
|
+
export const StatisticsRegionalChart = Schema.Struct({
|
|
684
|
+
chart: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
685
|
+
region: Schema.optional(Schema.String)
|
|
686
|
+
});
|
|
687
|
+
export const StatisticsReleaseImage = Schema.Struct({
|
|
688
|
+
container: Schema.optional(Schema.String),
|
|
689
|
+
digest: Schema.optional(Schema.String),
|
|
690
|
+
image: Schema.optional(Schema.String),
|
|
691
|
+
tag: Schema.optional(Schema.String)
|
|
692
|
+
});
|
|
693
|
+
export const StatisticsRelease = Schema.Struct({
|
|
694
|
+
images: Schema.optional(Schema.Array(StatisticsReleaseImage)),
|
|
695
|
+
operationType: Schema.optional(Schema.String),
|
|
696
|
+
region: Schema.optional(Schema.String),
|
|
697
|
+
rolledBack: Schema.optional(Schema.Boolean),
|
|
698
|
+
time: Schema.optional(Schema.DateFromString)
|
|
699
|
+
});
|
|
700
|
+
export const StatisticsVolumePod = Schema.Struct({
|
|
701
|
+
from: Schema.optional(Schema.DateFromString),
|
|
702
|
+
podId: Schema.optional(Schema.String),
|
|
703
|
+
to: Schema.optional(Schema.DateFromString)
|
|
704
|
+
});
|
|
705
|
+
export const StatisticsVolumeChart = Schema.Struct({
|
|
706
|
+
chart: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
707
|
+
pods: Schema.optional(Schema.Array(StatisticsVolumePod)),
|
|
708
|
+
region: Schema.optional(Schema.String)
|
|
709
|
+
});
|
|
710
|
+
export const StatisticsCharts = Schema.Struct({
|
|
711
|
+
activeRegionsChart: Schema.optional(Schema.Record(Schema.String, Schema.Int)),
|
|
712
|
+
cpuUsageSplitChart: Schema.optional(Schema.Record(Schema.String, StatisticsRegionalChart)),
|
|
713
|
+
ephemeralStorageSplitLimitChart: Schema.optional(Schema.Record(Schema.String, StatisticsRegionalChart)),
|
|
714
|
+
ephemeralStorageSplitUsageChart: Schema.optional(Schema.Record(Schema.String, StatisticsRegionalChart)),
|
|
715
|
+
instancesChart: Schema.optional(Schema.Record(Schema.String, Schema.Int)),
|
|
716
|
+
instancesSplitChart: Schema.optional(Schema.Record(Schema.String, StatisticsRegionalChart)),
|
|
717
|
+
ramUsageSplitChart: Schema.optional(Schema.Record(Schema.String, StatisticsRegionalChart)),
|
|
718
|
+
releases: Schema.optional(Schema.Array(StatisticsRelease)),
|
|
719
|
+
trafficSplitChart: Schema.optional(Schema.Record(Schema.String, StatisticsRegionalChart)),
|
|
720
|
+
volumesSplitCapacityChart: Schema.optional(Schema.Record(Schema.String, StatisticsVolumeChart)),
|
|
721
|
+
volumesSplitUsageChart: Schema.optional(Schema.Record(Schema.String, StatisticsVolumeChart))
|
|
722
|
+
});
|
|
723
|
+
export const UpdateVolumeResponse = Schema.Struct({
|
|
724
|
+
name: Schema.optional(Schema.String),
|
|
725
|
+
size: Schema.optional(Schema.Number)
|
|
726
|
+
});
|
|
727
|
+
export const UsageSummary = Schema.Struct({
|
|
728
|
+
averageLatency: Schema.optional(Schema.Number),
|
|
729
|
+
currentLatency: Schema.optional(Schema.Number),
|
|
730
|
+
latencyChart: Schema.optional(Schema.Record(Schema.String, Schema.Number)),
|
|
731
|
+
monthlyCost: Schema.optional(Schema.Number),
|
|
732
|
+
status: Schema.optional(ApplicationStatus),
|
|
733
|
+
totalVolumeSizeInGb: Schema.optional(Schema.Number)
|
|
734
|
+
});
|
|
735
|
+
export const UserLimits = Schema.Struct({
|
|
736
|
+
existingNumberOfApplications: Schema.optional(Schema.Int),
|
|
737
|
+
maxCpuMilliCoresPerPod: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
738
|
+
maxMemoryBytesPerPod: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
739
|
+
maxNumberOfApplications: Schema.optional(Schema.Int),
|
|
740
|
+
maxNumberOfInstancesPerApplication: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
741
|
+
maxNumberOfInstancesPerRegion: Schema.optional(Schema.Int),
|
|
742
|
+
maxNumberOfRegionsPerApplication: Schema.optional(Schema.NullOr(Schema.Int)),
|
|
743
|
+
maxNumberOfVolumesPerApplication: Schema.optional(Schema.Int),
|
|
744
|
+
maxVolumeSize: Schema.optional(Schema.NullOr(Schema.Int))
|
|
745
|
+
});
|
|
746
|
+
//# sourceMappingURL=schemas.js.map
|