@alienplatform/platform-api 3.3.20 → 3.3.21
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/esm/funcs/deploymentGetInfo.js +4 -2
- package/esm/funcs/deploymentGetInfo.js.map +1 -1
- package/esm/funcs/deploymentPlanCompute.js +2 -2
- package/esm/funcs/deploymentPlanCompute.js.map +1 -1
- package/esm/funcs/deploymentPrepareStack.js +2 -2
- package/esm/funcs/deploymentPrepareStack.js.map +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/createsetuplinkresponse.d.ts +4 -0
- package/esm/models/createsetuplinkresponse.d.ts.map +1 -1
- package/esm/models/createsetuplinkresponse.js +1 -0
- package/esm/models/createsetuplinkresponse.js.map +1 -1
- package/esm/models/deploymentcomputeplan.d.ts +148 -10
- package/esm/models/deploymentcomputeplan.d.ts.map +1 -1
- package/esm/models/deploymentcomputeplan.js +83 -10
- package/esm/models/deploymentcomputeplan.js.map +1 -1
- package/esm/models/deploymentinfo.d.ts +1276 -8
- package/esm/models/deploymentinfo.d.ts.map +1 -1
- package/esm/models/deploymentinfo.js +987 -7
- package/esm/models/deploymentinfo.js.map +1 -1
- package/esm/models/deploymentupdateoperationstatus.d.ts +1 -0
- package/esm/models/deploymentupdateoperationstatus.d.ts.map +1 -1
- package/esm/models/deploymentupdateoperationstatus.js +1 -0
- package/esm/models/deploymentupdateoperationstatus.js.map +1 -1
- package/esm/models/deploymentupdateoperationsummary.d.ts +4 -0
- package/esm/models/deploymentupdateoperationsummary.d.ts.map +1 -1
- package/esm/models/deploymentupdateoperationsummary.js +1 -0
- package/esm/models/deploymentupdateoperationsummary.js.map +1 -1
- package/esm/models/operations/getdeploymentinfo.d.ts +4 -0
- package/esm/models/operations/getdeploymentinfo.d.ts.map +1 -1
- package/esm/models/operations/getdeploymentinfo.js +2 -0
- package/esm/models/operations/getdeploymentinfo.js.map +1 -1
- package/esm/models/operations/plandeploymentcompute.d.ts +140 -12
- package/esm/models/operations/plandeploymentcompute.d.ts.map +1 -1
- package/esm/models/operations/plandeploymentcompute.js +67 -6
- package/esm/models/operations/plandeploymentcompute.js.map +1 -1
- package/esm/models/operations/preparedeploymentstack.d.ts +145 -12
- package/esm/models/operations/preparedeploymentstack.d.ts.map +1 -1
- package/esm/models/operations/preparedeploymentstack.js +68 -7
- package/esm/models/operations/preparedeploymentstack.js.map +1 -1
- package/esm/models/operationspluginoperation.d.ts +4 -0
- package/esm/models/operationspluginoperation.d.ts.map +1 -1
- package/esm/models/operationspluginoperation.js +1 -0
- package/esm/models/operationspluginoperation.js.map +1 -1
- package/esm/models/prepareddeploymentstack.d.ts +1 -0
- package/esm/models/prepareddeploymentstack.d.ts.map +1 -1
- package/esm/models/prepareddeploymentstack.js +1 -0
- package/esm/models/prepareddeploymentstack.js.map +1 -1
- package/esm/sdk/resources.d.ts +0 -3
- package/esm/sdk/resources.d.ts.map +1 -1
- package/esm/sdk/resources.js +0 -3
- package/esm/sdk/resources.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/deploymentGetInfo.ts +4 -2
- package/src/funcs/deploymentPlanCompute.ts +2 -2
- package/src/funcs/deploymentPrepareStack.ts +2 -2
- package/src/lib/config.ts +2 -2
- package/src/models/createsetuplinkresponse.ts +7 -0
- package/src/models/deploymentcomputeplan.ts +311 -20
- package/src/models/deploymentinfo.ts +3599 -453
- package/src/models/deploymentupdateoperationstatus.ts +1 -0
- package/src/models/deploymentupdateoperationsummary.ts +5 -0
- package/src/models/operations/getdeploymentinfo.ts +6 -0
- package/src/models/operations/plandeploymentcompute.ts +295 -18
- package/src/models/operations/preparedeploymentstack.ts +301 -19
- package/src/models/operationspluginoperation.ts +5 -0
- package/src/models/prepareddeploymentstack.ts +2 -0
- package/src/sdk/resources.ts +0 -3
|
@@ -27,6 +27,10 @@ export type DeploymentUpdateOperationSummary = {
|
|
|
27
27
|
*/
|
|
28
28
|
targetReleaseId: string;
|
|
29
29
|
changedKeys: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* Action needed before this update can execute; the current release remains installed.
|
|
32
|
+
*/
|
|
33
|
+
actionRequired?: string | null | undefined;
|
|
30
34
|
requestedAt: Date;
|
|
31
35
|
startedAt?: Date | null | undefined;
|
|
32
36
|
completedAt?: Date | null | undefined;
|
|
@@ -42,6 +46,7 @@ export const DeploymentUpdateOperationSummary$inboundSchema: z.ZodType<
|
|
|
42
46
|
reasons: z.array(DeploymentUpdateReason$inboundSchema),
|
|
43
47
|
targetReleaseId: z.string(),
|
|
44
48
|
changedKeys: z.array(z.string()),
|
|
49
|
+
actionRequired: z.nullable(z.string()).optional(),
|
|
45
50
|
requestedAt: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
46
51
|
startedAt: z.nullable(
|
|
47
52
|
z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
@@ -49,6 +49,8 @@ export type GetDeploymentInfoRequest = {
|
|
|
49
49
|
*/
|
|
50
50
|
platform?: GetDeploymentInfoPlatform | undefined;
|
|
51
51
|
setupItem?: GetDeploymentInfoSetupItem | undefined;
|
|
52
|
+
deploymentId?: string | undefined;
|
|
53
|
+
updateOperationId?: string | undefined;
|
|
52
54
|
};
|
|
53
55
|
|
|
54
56
|
/** @internal */
|
|
@@ -65,6 +67,8 @@ export const GetDeploymentInfoSetupItem$outboundSchema: z.ZodEnum<
|
|
|
65
67
|
export type GetDeploymentInfoRequest$Outbound = {
|
|
66
68
|
platform?: string | undefined;
|
|
67
69
|
setupItem?: string | undefined;
|
|
70
|
+
deploymentId?: string | undefined;
|
|
71
|
+
updateOperationId?: string | undefined;
|
|
68
72
|
};
|
|
69
73
|
|
|
70
74
|
/** @internal */
|
|
@@ -74,6 +78,8 @@ export const GetDeploymentInfoRequest$outboundSchema: z.ZodType<
|
|
|
74
78
|
> = z.object({
|
|
75
79
|
platform: GetDeploymentInfoPlatform$outboundSchema.optional(),
|
|
76
80
|
setupItem: GetDeploymentInfoSetupItem$outboundSchema.optional(),
|
|
81
|
+
deploymentId: z.string().optional(),
|
|
82
|
+
updateOperationId: z.string().optional(),
|
|
77
83
|
});
|
|
78
84
|
|
|
79
85
|
export function getDeploymentInfoRequestToJSON(
|
|
@@ -35,24 +35,106 @@ export type PlanDeploymentComputePlatform = ClosedEnum<
|
|
|
35
35
|
typeof PlanDeploymentComputePlatform
|
|
36
36
|
>;
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Failure-domain policy selected for a compute pool.
|
|
40
|
+
*/
|
|
41
|
+
export type PlanDeploymentComputeFailureDomains2 = {
|
|
42
|
+
/**
|
|
43
|
+
* Concrete provider domains selected during setup.
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* Empty delegates deterministic selection to the provider setup implementation.
|
|
47
|
+
*/
|
|
48
|
+
selectedFailureDomains?: Array<string> | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Number of distinct failure domains across which new stateful replicas may be spread.
|
|
51
|
+
*/
|
|
52
|
+
spread: number;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type PlanDeploymentComputeFailureDomainsUnion2 =
|
|
56
|
+
| PlanDeploymentComputeFailureDomains2
|
|
57
|
+
| any;
|
|
58
|
+
|
|
38
59
|
export type PlanDeploymentComputePoolsAutoscale = {
|
|
39
|
-
|
|
40
|
-
|
|
60
|
+
failureDomains?:
|
|
61
|
+
| PlanDeploymentComputeFailureDomains2
|
|
62
|
+
| any
|
|
63
|
+
| null
|
|
64
|
+
| undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Provider machine type selected for this deployment.
|
|
67
|
+
*/
|
|
68
|
+
machine?: string | null | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Maximum machine count.
|
|
71
|
+
*/
|
|
41
72
|
max: number;
|
|
42
|
-
|
|
73
|
+
/**
|
|
74
|
+
* Minimum machine count.
|
|
75
|
+
*/
|
|
76
|
+
min: number;
|
|
77
|
+
mode: "autoscale";
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Failure-domain policy selected for a compute pool.
|
|
82
|
+
*/
|
|
83
|
+
export type PlanDeploymentComputeFailureDomains1 = {
|
|
84
|
+
/**
|
|
85
|
+
* Concrete provider domains selected during setup.
|
|
86
|
+
*
|
|
87
|
+
* @remarks
|
|
88
|
+
* Empty delegates deterministic selection to the provider setup implementation.
|
|
89
|
+
*/
|
|
90
|
+
selectedFailureDomains?: Array<string> | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Number of distinct failure domains across which new stateful replicas may be spread.
|
|
93
|
+
*/
|
|
94
|
+
spread: number;
|
|
43
95
|
};
|
|
44
96
|
|
|
97
|
+
export type PlanDeploymentComputeFailureDomainsUnion1 =
|
|
98
|
+
| PlanDeploymentComputeFailureDomains1
|
|
99
|
+
| any;
|
|
100
|
+
|
|
45
101
|
export type PlanDeploymentComputePoolsFixed = {
|
|
46
|
-
|
|
102
|
+
failureDomains?:
|
|
103
|
+
| PlanDeploymentComputeFailureDomains1
|
|
104
|
+
| any
|
|
105
|
+
| null
|
|
106
|
+
| undefined;
|
|
107
|
+
/**
|
|
108
|
+
* Provider machine type selected for this deployment.
|
|
109
|
+
*/
|
|
110
|
+
machine?: string | null | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* Number of machines to run.
|
|
113
|
+
*/
|
|
47
114
|
machines: number;
|
|
48
|
-
|
|
115
|
+
mode: "fixed";
|
|
49
116
|
};
|
|
50
117
|
|
|
118
|
+
/**
|
|
119
|
+
* User-selected deployment settings for one compute pool.
|
|
120
|
+
*/
|
|
51
121
|
export type PlanDeploymentComputePoolsUnion =
|
|
52
122
|
| PlanDeploymentComputePoolsFixed
|
|
53
123
|
| PlanDeploymentComputePoolsAutoscale;
|
|
54
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Deployment-time compute choices for Alien-managed compute pools.
|
|
127
|
+
*
|
|
128
|
+
* @remarks
|
|
129
|
+
*
|
|
130
|
+
* Application source declares portable pool requirements. This settings
|
|
131
|
+
* object stores the concrete choices made for one deployment, such as the
|
|
132
|
+
* provider machine type and selected machine counts.
|
|
133
|
+
*/
|
|
55
134
|
export type PlanDeploymentComputeCompute = {
|
|
135
|
+
/**
|
|
136
|
+
* Selected compute choices keyed by pool ID.
|
|
137
|
+
*/
|
|
56
138
|
pools?: {
|
|
57
139
|
[k: string]:
|
|
58
140
|
| PlanDeploymentComputePoolsFixed
|
|
@@ -60,6 +142,10 @@ export type PlanDeploymentComputeCompute = {
|
|
|
60
142
|
} | undefined;
|
|
61
143
|
};
|
|
62
144
|
|
|
145
|
+
export type PlanDeploymentComputeComputeUnion =
|
|
146
|
+
| PlanDeploymentComputeCompute
|
|
147
|
+
| any;
|
|
148
|
+
|
|
63
149
|
/**
|
|
64
150
|
* Deployment model: how updates are delivered to the remote environment.
|
|
65
151
|
*/
|
|
@@ -1089,8 +1175,20 @@ export type PlanDeploymentComputeUpdates = ClosedEnum<
|
|
|
1089
1175
|
typeof PlanDeploymentComputeUpdates
|
|
1090
1176
|
>;
|
|
1091
1177
|
|
|
1178
|
+
/**
|
|
1179
|
+
* User-customizable deployment settings specified at deploy time.
|
|
1180
|
+
*
|
|
1181
|
+
* @remarks
|
|
1182
|
+
*
|
|
1183
|
+
* These settings are provided by the customer via CloudFormation parameters,
|
|
1184
|
+
* Terraform attributes, CLI flags, or Helm values. They customize how the
|
|
1185
|
+
* deployment runs and what capabilities are enabled.
|
|
1186
|
+
*
|
|
1187
|
+
* **Key distinction**: StackSettings is user-customizable, while ManagementConfig
|
|
1188
|
+
* is platform-derived (from the Manager's ServiceAccount).
|
|
1189
|
+
*/
|
|
1092
1190
|
export type PlanDeploymentComputeStackSettings = {
|
|
1093
|
-
compute?: PlanDeploymentComputeCompute | undefined;
|
|
1191
|
+
compute?: PlanDeploymentComputeCompute | any | null | undefined;
|
|
1094
1192
|
/**
|
|
1095
1193
|
* Deployment model: how updates are delivered to the remote environment.
|
|
1096
1194
|
*/
|
|
@@ -1141,9 +1239,23 @@ export type PlanDeploymentComputeStackSettings = {
|
|
|
1141
1239
|
|
|
1142
1240
|
export type PlanDeploymentComputeRequest = {
|
|
1143
1241
|
setupItem?: PlanDeploymentComputeSetupItem | undefined;
|
|
1242
|
+
deploymentId?: string | undefined;
|
|
1243
|
+
updateOperationId?: string | undefined;
|
|
1144
1244
|
platform: PlanDeploymentComputePlatform;
|
|
1145
1245
|
setupMethod: models.DeploymentSetupMethod;
|
|
1146
1246
|
region?: string | undefined;
|
|
1247
|
+
/**
|
|
1248
|
+
* User-customizable deployment settings specified at deploy time.
|
|
1249
|
+
*
|
|
1250
|
+
* @remarks
|
|
1251
|
+
*
|
|
1252
|
+
* These settings are provided by the customer via CloudFormation parameters,
|
|
1253
|
+
* Terraform attributes, CLI flags, or Helm values. They customize how the
|
|
1254
|
+
* deployment runs and what capabilities are enabled.
|
|
1255
|
+
*
|
|
1256
|
+
* **Key distinction**: StackSettings is user-customizable, while ManagementConfig
|
|
1257
|
+
* is platform-derived (from the Manager's ServiceAccount).
|
|
1258
|
+
*/
|
|
1147
1259
|
stackSettings: PlanDeploymentComputeStackSettings;
|
|
1148
1260
|
};
|
|
1149
1261
|
|
|
@@ -1157,12 +1269,68 @@ export const PlanDeploymentComputePlatform$outboundSchema: z.ZodEnum<
|
|
|
1157
1269
|
typeof PlanDeploymentComputePlatform
|
|
1158
1270
|
> = z.enum(PlanDeploymentComputePlatform);
|
|
1159
1271
|
|
|
1272
|
+
/** @internal */
|
|
1273
|
+
export type PlanDeploymentComputeFailureDomains2$Outbound = {
|
|
1274
|
+
selectedFailureDomains?: Array<string> | undefined;
|
|
1275
|
+
spread: number;
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
/** @internal */
|
|
1279
|
+
export const PlanDeploymentComputeFailureDomains2$outboundSchema: z.ZodType<
|
|
1280
|
+
PlanDeploymentComputeFailureDomains2$Outbound,
|
|
1281
|
+
PlanDeploymentComputeFailureDomains2
|
|
1282
|
+
> = z.object({
|
|
1283
|
+
selectedFailureDomains: z.array(z.string()).optional(),
|
|
1284
|
+
spread: z.int(),
|
|
1285
|
+
});
|
|
1286
|
+
|
|
1287
|
+
export function planDeploymentComputeFailureDomains2ToJSON(
|
|
1288
|
+
planDeploymentComputeFailureDomains2: PlanDeploymentComputeFailureDomains2,
|
|
1289
|
+
): string {
|
|
1290
|
+
return JSON.stringify(
|
|
1291
|
+
PlanDeploymentComputeFailureDomains2$outboundSchema.parse(
|
|
1292
|
+
planDeploymentComputeFailureDomains2,
|
|
1293
|
+
),
|
|
1294
|
+
);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
/** @internal */
|
|
1298
|
+
export type PlanDeploymentComputeFailureDomainsUnion2$Outbound =
|
|
1299
|
+
| PlanDeploymentComputeFailureDomains2$Outbound
|
|
1300
|
+
| any;
|
|
1301
|
+
|
|
1302
|
+
/** @internal */
|
|
1303
|
+
export const PlanDeploymentComputeFailureDomainsUnion2$outboundSchema:
|
|
1304
|
+
z.ZodType<
|
|
1305
|
+
PlanDeploymentComputeFailureDomainsUnion2$Outbound,
|
|
1306
|
+
PlanDeploymentComputeFailureDomainsUnion2
|
|
1307
|
+
> = z.union([
|
|
1308
|
+
z.lazy(() => PlanDeploymentComputeFailureDomains2$outboundSchema),
|
|
1309
|
+
z.any(),
|
|
1310
|
+
]);
|
|
1311
|
+
|
|
1312
|
+
export function planDeploymentComputeFailureDomainsUnion2ToJSON(
|
|
1313
|
+
planDeploymentComputeFailureDomainsUnion2:
|
|
1314
|
+
PlanDeploymentComputeFailureDomainsUnion2,
|
|
1315
|
+
): string {
|
|
1316
|
+
return JSON.stringify(
|
|
1317
|
+
PlanDeploymentComputeFailureDomainsUnion2$outboundSchema.parse(
|
|
1318
|
+
planDeploymentComputeFailureDomainsUnion2,
|
|
1319
|
+
),
|
|
1320
|
+
);
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1160
1323
|
/** @internal */
|
|
1161
1324
|
export type PlanDeploymentComputePoolsAutoscale$Outbound = {
|
|
1162
|
-
|
|
1163
|
-
|
|
1325
|
+
failure_domains?:
|
|
1326
|
+
| PlanDeploymentComputeFailureDomains2$Outbound
|
|
1327
|
+
| any
|
|
1328
|
+
| null
|
|
1329
|
+
| undefined;
|
|
1330
|
+
machine?: string | null | undefined;
|
|
1164
1331
|
max: number;
|
|
1165
|
-
|
|
1332
|
+
min: number;
|
|
1333
|
+
mode: "autoscale";
|
|
1166
1334
|
};
|
|
1167
1335
|
|
|
1168
1336
|
/** @internal */
|
|
@@ -1170,10 +1338,20 @@ export const PlanDeploymentComputePoolsAutoscale$outboundSchema: z.ZodType<
|
|
|
1170
1338
|
PlanDeploymentComputePoolsAutoscale$Outbound,
|
|
1171
1339
|
PlanDeploymentComputePoolsAutoscale
|
|
1172
1340
|
> = z.object({
|
|
1173
|
-
|
|
1174
|
-
|
|
1341
|
+
failureDomains: z.nullable(
|
|
1342
|
+
z.union([
|
|
1343
|
+
z.lazy(() => PlanDeploymentComputeFailureDomains2$outboundSchema),
|
|
1344
|
+
z.any(),
|
|
1345
|
+
]),
|
|
1346
|
+
).optional(),
|
|
1347
|
+
machine: z.nullable(z.string()).optional(),
|
|
1175
1348
|
max: z.int(),
|
|
1176
|
-
|
|
1349
|
+
min: z.int(),
|
|
1350
|
+
mode: z.literal("autoscale"),
|
|
1351
|
+
}).transform((v) => {
|
|
1352
|
+
return remap$(v, {
|
|
1353
|
+
failureDomains: "failure_domains",
|
|
1354
|
+
});
|
|
1177
1355
|
});
|
|
1178
1356
|
|
|
1179
1357
|
export function planDeploymentComputePoolsAutoscaleToJSON(
|
|
@@ -1186,11 +1364,67 @@ export function planDeploymentComputePoolsAutoscaleToJSON(
|
|
|
1186
1364
|
);
|
|
1187
1365
|
}
|
|
1188
1366
|
|
|
1367
|
+
/** @internal */
|
|
1368
|
+
export type PlanDeploymentComputeFailureDomains1$Outbound = {
|
|
1369
|
+
selectedFailureDomains?: Array<string> | undefined;
|
|
1370
|
+
spread: number;
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
/** @internal */
|
|
1374
|
+
export const PlanDeploymentComputeFailureDomains1$outboundSchema: z.ZodType<
|
|
1375
|
+
PlanDeploymentComputeFailureDomains1$Outbound,
|
|
1376
|
+
PlanDeploymentComputeFailureDomains1
|
|
1377
|
+
> = z.object({
|
|
1378
|
+
selectedFailureDomains: z.array(z.string()).optional(),
|
|
1379
|
+
spread: z.int(),
|
|
1380
|
+
});
|
|
1381
|
+
|
|
1382
|
+
export function planDeploymentComputeFailureDomains1ToJSON(
|
|
1383
|
+
planDeploymentComputeFailureDomains1: PlanDeploymentComputeFailureDomains1,
|
|
1384
|
+
): string {
|
|
1385
|
+
return JSON.stringify(
|
|
1386
|
+
PlanDeploymentComputeFailureDomains1$outboundSchema.parse(
|
|
1387
|
+
planDeploymentComputeFailureDomains1,
|
|
1388
|
+
),
|
|
1389
|
+
);
|
|
1390
|
+
}
|
|
1391
|
+
|
|
1392
|
+
/** @internal */
|
|
1393
|
+
export type PlanDeploymentComputeFailureDomainsUnion1$Outbound =
|
|
1394
|
+
| PlanDeploymentComputeFailureDomains1$Outbound
|
|
1395
|
+
| any;
|
|
1396
|
+
|
|
1397
|
+
/** @internal */
|
|
1398
|
+
export const PlanDeploymentComputeFailureDomainsUnion1$outboundSchema:
|
|
1399
|
+
z.ZodType<
|
|
1400
|
+
PlanDeploymentComputeFailureDomainsUnion1$Outbound,
|
|
1401
|
+
PlanDeploymentComputeFailureDomainsUnion1
|
|
1402
|
+
> = z.union([
|
|
1403
|
+
z.lazy(() => PlanDeploymentComputeFailureDomains1$outboundSchema),
|
|
1404
|
+
z.any(),
|
|
1405
|
+
]);
|
|
1406
|
+
|
|
1407
|
+
export function planDeploymentComputeFailureDomainsUnion1ToJSON(
|
|
1408
|
+
planDeploymentComputeFailureDomainsUnion1:
|
|
1409
|
+
PlanDeploymentComputeFailureDomainsUnion1,
|
|
1410
|
+
): string {
|
|
1411
|
+
return JSON.stringify(
|
|
1412
|
+
PlanDeploymentComputeFailureDomainsUnion1$outboundSchema.parse(
|
|
1413
|
+
planDeploymentComputeFailureDomainsUnion1,
|
|
1414
|
+
),
|
|
1415
|
+
);
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1189
1418
|
/** @internal */
|
|
1190
1419
|
export type PlanDeploymentComputePoolsFixed$Outbound = {
|
|
1191
|
-
|
|
1420
|
+
failure_domains?:
|
|
1421
|
+
| PlanDeploymentComputeFailureDomains1$Outbound
|
|
1422
|
+
| any
|
|
1423
|
+
| null
|
|
1424
|
+
| undefined;
|
|
1425
|
+
machine?: string | null | undefined;
|
|
1192
1426
|
machines: number;
|
|
1193
|
-
|
|
1427
|
+
mode: "fixed";
|
|
1194
1428
|
};
|
|
1195
1429
|
|
|
1196
1430
|
/** @internal */
|
|
@@ -1198,9 +1432,19 @@ export const PlanDeploymentComputePoolsFixed$outboundSchema: z.ZodType<
|
|
|
1198
1432
|
PlanDeploymentComputePoolsFixed$Outbound,
|
|
1199
1433
|
PlanDeploymentComputePoolsFixed
|
|
1200
1434
|
> = z.object({
|
|
1201
|
-
|
|
1435
|
+
failureDomains: z.nullable(
|
|
1436
|
+
z.union([
|
|
1437
|
+
z.lazy(() => PlanDeploymentComputeFailureDomains1$outboundSchema),
|
|
1438
|
+
z.any(),
|
|
1439
|
+
]),
|
|
1440
|
+
).optional(),
|
|
1441
|
+
machine: z.nullable(z.string()).optional(),
|
|
1202
1442
|
machines: z.int(),
|
|
1203
|
-
|
|
1443
|
+
mode: z.literal("fixed"),
|
|
1444
|
+
}).transform((v) => {
|
|
1445
|
+
return remap$(v, {
|
|
1446
|
+
failureDomains: "failure_domains",
|
|
1447
|
+
});
|
|
1204
1448
|
});
|
|
1205
1449
|
|
|
1206
1450
|
export function planDeploymentComputePoolsFixedToJSON(
|
|
@@ -1270,6 +1514,30 @@ export function planDeploymentComputeComputeToJSON(
|
|
|
1270
1514
|
);
|
|
1271
1515
|
}
|
|
1272
1516
|
|
|
1517
|
+
/** @internal */
|
|
1518
|
+
export type PlanDeploymentComputeComputeUnion$Outbound =
|
|
1519
|
+
| PlanDeploymentComputeCompute$Outbound
|
|
1520
|
+
| any;
|
|
1521
|
+
|
|
1522
|
+
/** @internal */
|
|
1523
|
+
export const PlanDeploymentComputeComputeUnion$outboundSchema: z.ZodType<
|
|
1524
|
+
PlanDeploymentComputeComputeUnion$Outbound,
|
|
1525
|
+
PlanDeploymentComputeComputeUnion
|
|
1526
|
+
> = z.union([
|
|
1527
|
+
z.lazy(() => PlanDeploymentComputeCompute$outboundSchema),
|
|
1528
|
+
z.any(),
|
|
1529
|
+
]);
|
|
1530
|
+
|
|
1531
|
+
export function planDeploymentComputeComputeUnionToJSON(
|
|
1532
|
+
planDeploymentComputeComputeUnion: PlanDeploymentComputeComputeUnion,
|
|
1533
|
+
): string {
|
|
1534
|
+
return JSON.stringify(
|
|
1535
|
+
PlanDeploymentComputeComputeUnion$outboundSchema.parse(
|
|
1536
|
+
planDeploymentComputeComputeUnion,
|
|
1537
|
+
),
|
|
1538
|
+
);
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1273
1541
|
/** @internal */
|
|
1274
1542
|
export const PlanDeploymentComputeDeploymentModel$outboundSchema: z.ZodEnum<
|
|
1275
1543
|
typeof PlanDeploymentComputeDeploymentModel
|
|
@@ -3465,7 +3733,7 @@ export const PlanDeploymentComputeUpdates$outboundSchema: z.ZodEnum<
|
|
|
3465
3733
|
|
|
3466
3734
|
/** @internal */
|
|
3467
3735
|
export type PlanDeploymentComputeStackSettings$Outbound = {
|
|
3468
|
-
compute?: PlanDeploymentComputeCompute$Outbound | undefined;
|
|
3736
|
+
compute?: PlanDeploymentComputeCompute$Outbound | any | null | undefined;
|
|
3469
3737
|
deploymentModel?: string | undefined;
|
|
3470
3738
|
domains?: PlanDeploymentComputeDomains$Outbound | any | null | undefined;
|
|
3471
3739
|
externalBindings?:
|
|
@@ -3497,7 +3765,12 @@ export const PlanDeploymentComputeStackSettings$outboundSchema: z.ZodType<
|
|
|
3497
3765
|
PlanDeploymentComputeStackSettings$Outbound,
|
|
3498
3766
|
PlanDeploymentComputeStackSettings
|
|
3499
3767
|
> = z.object({
|
|
3500
|
-
compute: z.
|
|
3768
|
+
compute: z.nullable(
|
|
3769
|
+
z.union([
|
|
3770
|
+
z.lazy(() => PlanDeploymentComputeCompute$outboundSchema),
|
|
3771
|
+
z.any(),
|
|
3772
|
+
]),
|
|
3773
|
+
).optional(),
|
|
3501
3774
|
deploymentModel: PlanDeploymentComputeDeploymentModel$outboundSchema
|
|
3502
3775
|
.optional(),
|
|
3503
3776
|
domains: z.nullable(
|
|
@@ -3546,6 +3819,8 @@ export function planDeploymentComputeStackSettingsToJSON(
|
|
|
3546
3819
|
/** @internal */
|
|
3547
3820
|
export type PlanDeploymentComputeRequest$Outbound = {
|
|
3548
3821
|
setupItem?: string | undefined;
|
|
3822
|
+
deploymentId?: string | undefined;
|
|
3823
|
+
updateOperationId?: string | undefined;
|
|
3549
3824
|
platform: string;
|
|
3550
3825
|
setupMethod: string;
|
|
3551
3826
|
region?: string | undefined;
|
|
@@ -3558,6 +3833,8 @@ export const PlanDeploymentComputeRequest$outboundSchema: z.ZodType<
|
|
|
3558
3833
|
PlanDeploymentComputeRequest
|
|
3559
3834
|
> = z.object({
|
|
3560
3835
|
setupItem: PlanDeploymentComputeSetupItem$outboundSchema.optional(),
|
|
3836
|
+
deploymentId: z.string().optional(),
|
|
3837
|
+
updateOperationId: z.string().optional(),
|
|
3561
3838
|
platform: PlanDeploymentComputePlatform$outboundSchema,
|
|
3562
3839
|
setupMethod: models.DeploymentSetupMethod$outboundSchema,
|
|
3563
3840
|
region: z.string().optional(),
|