@fractal_cloud/sdk 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -4
- package/dist/index.cjs +1760 -458
- package/dist/index.d.cts +530 -5
- package/dist/index.d.mts +530 -5
- package/dist/index.mjs +1615 -361
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1138,6 +1138,60 @@ let BlueprintComponent;
|
|
|
1138
1138
|
_BlueprintComponent.getBuilder = getBlueprintComponentBuilder;
|
|
1139
1139
|
})(BlueprintComponent || (BlueprintComponent = {}));
|
|
1140
1140
|
|
|
1141
|
+
//#endregion
|
|
1142
|
+
//#region src/debug.ts
|
|
1143
|
+
/**
|
|
1144
|
+
* Debug logging for Fractal Cloud SDK HTTP calls.
|
|
1145
|
+
*
|
|
1146
|
+
* Enabled by setting the FRACTAL_DEBUG environment variable to "true".
|
|
1147
|
+
* When enabled, every outbound API request and every inbound response
|
|
1148
|
+
* (including error responses) is printed to stdout in the format:
|
|
1149
|
+
*
|
|
1150
|
+
* [ISO-8601] DEBUG → METHOD URL [label] body=<json>
|
|
1151
|
+
* [ISO-8601] DEBUG ← STATUS METHOD URL [label] body=<json>
|
|
1152
|
+
*
|
|
1153
|
+
* Authentication headers are never logged.
|
|
1154
|
+
* If the request body cannot be serialised to JSON (e.g. circular reference),
|
|
1155
|
+
* a <non-serialisable> marker is logged instead of crashing.
|
|
1156
|
+
*/
|
|
1157
|
+
const isEnabled = () => process.env["FRACTAL_DEBUG"]?.toLowerCase() === "true";
|
|
1158
|
+
const trySerialise = (value) => {
|
|
1159
|
+
try {
|
|
1160
|
+
return JSON.stringify(value);
|
|
1161
|
+
} catch {
|
|
1162
|
+
return "<non-serialisable>";
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1165
|
+
/**
|
|
1166
|
+
* Logs an outbound HTTP request when debug mode is active.
|
|
1167
|
+
* @param method HTTP method in uppercase, e.g. "GET"
|
|
1168
|
+
* @param url Full request URL
|
|
1169
|
+
* @param body Optional request body (JSON-serialised; not truncated)
|
|
1170
|
+
* @param label Optional context label shown in brackets, e.g. "existence check"
|
|
1171
|
+
*/
|
|
1172
|
+
const debugRequest = (method, url, body, label) => {
|
|
1173
|
+
if (!isEnabled()) return;
|
|
1174
|
+
const ts = (/* @__PURE__ */ new Date()).toISOString();
|
|
1175
|
+
const labelStr = label ? ` [${label}]` : "";
|
|
1176
|
+
const bodyStr = body !== void 0 ? ` body=${trySerialise(body)}` : "";
|
|
1177
|
+
console.log(`[${ts}] DEBUG → ${method} ${url}${labelStr}${bodyStr}`);
|
|
1178
|
+
};
|
|
1179
|
+
/**
|
|
1180
|
+
* Logs an inbound HTTP response (or error response) when debug mode is active.
|
|
1181
|
+
* @param method HTTP method of the originating request
|
|
1182
|
+
* @param url Full request URL
|
|
1183
|
+
* @param status HTTP status code received
|
|
1184
|
+
* @param body Optional response body (JSON-serialised; not truncated)
|
|
1185
|
+
* @param label Optional context label shown in brackets
|
|
1186
|
+
*/
|
|
1187
|
+
const debugResponse = (method, url, status, body, label) => {
|
|
1188
|
+
if (!isEnabled()) return;
|
|
1189
|
+
const ts = (/* @__PURE__ */ new Date()).toISOString();
|
|
1190
|
+
const labelStr = label ? ` [${label}]` : "";
|
|
1191
|
+
const bodyStr = body !== void 0 ? ` body=${trySerialise(body)}` : "";
|
|
1192
|
+
console.log(`[${ts}] DEBUG ← ${status} ${method} ${url}${labelStr}${bodyStr}`);
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1141
1195
|
//#endregion
|
|
1142
1196
|
//#region src/fractal/service.ts
|
|
1143
1197
|
const CLIENT_ID_HEADER$1 = "X-ClientID";
|
|
@@ -1163,39 +1217,57 @@ const deployFractal = async (credentials, fractal) => {
|
|
|
1163
1217
|
const target = fractal.id.toString();
|
|
1164
1218
|
const fractalUrl = `${FRACTAL_API_URL$1}/blueprints/${target.replace(":", "/")}`;
|
|
1165
1219
|
let getFractalResponse;
|
|
1220
|
+
debugRequest("GET", fractalUrl, void 0, "existence check");
|
|
1166
1221
|
try {
|
|
1167
1222
|
getFractalResponse = await superagent.get(fractalUrl).ok((res) => res.status === 200 || res.status === 404).set(authHeaders$1(credentials)).send();
|
|
1223
|
+
debugResponse("GET", fractalUrl, getFractalResponse.status, getFractalResponse.body, "existence check");
|
|
1168
1224
|
} catch (err) {
|
|
1225
|
+
const e = err;
|
|
1226
|
+
debugResponse("GET", fractalUrl, e.status ?? 0, e.response?.body, "existence check");
|
|
1169
1227
|
throw toApiError$1("check fractal existence", target, err);
|
|
1170
1228
|
}
|
|
1229
|
+
const method = getFractalResponse.status === 200 ? "PUT" : "POST";
|
|
1171
1230
|
const request = getFractalResponse.status === 200 ? superagent.put(fractalUrl) : superagent.post(fractalUrl);
|
|
1231
|
+
const body = {
|
|
1232
|
+
description: fractal.description,
|
|
1233
|
+
isPrivate: fractal.isPrivate,
|
|
1234
|
+
components: fractal.components.map((c) => ({
|
|
1235
|
+
type: c.type.toString(),
|
|
1236
|
+
id: c.id.value.toString(),
|
|
1237
|
+
version: c.version.toString(),
|
|
1238
|
+
displayName: c.displayName,
|
|
1239
|
+
description: c.description,
|
|
1240
|
+
parameters: c.parameters.toMap(),
|
|
1241
|
+
dependencies: c.dependencies.map((d) => d.id.value.toString()),
|
|
1242
|
+
links: c.links.map((l) => ({
|
|
1243
|
+
componentId: l.id.value.toString(),
|
|
1244
|
+
settings: l.parameters.toMap()
|
|
1245
|
+
})),
|
|
1246
|
+
outputFields: Object.keys(c.outputFields.value),
|
|
1247
|
+
isLocked: c.isLocked,
|
|
1248
|
+
recreateOnFailure: c.recreateOnFailure
|
|
1249
|
+
}))
|
|
1250
|
+
};
|
|
1251
|
+
debugRequest(method, fractalUrl, body);
|
|
1172
1252
|
try {
|
|
1173
|
-
await request.set(authHeaders$1(credentials)).send(
|
|
1174
|
-
|
|
1175
|
-
isPrivate: fractal.isPrivate,
|
|
1176
|
-
components: fractal.components.map((c) => ({
|
|
1177
|
-
...c,
|
|
1178
|
-
type: c.type.toString(),
|
|
1179
|
-
id: c.id.value.toString(),
|
|
1180
|
-
version: c.version.toString(),
|
|
1181
|
-
parameters: c.parameters.toMap(),
|
|
1182
|
-
dependencies: c.dependencies.map((d) => d.id.value.toString()),
|
|
1183
|
-
links: c.links.map((l) => ({
|
|
1184
|
-
componentId: l.id.value.toString(),
|
|
1185
|
-
settings: l.parameters.toMap()
|
|
1186
|
-
})),
|
|
1187
|
-
outputFields: Object.keys(c.outputFields.value)
|
|
1188
|
-
}))
|
|
1189
|
-
});
|
|
1253
|
+
const response = await request.set(authHeaders$1(credentials)).send(body);
|
|
1254
|
+
debugResponse(method, fractalUrl, response.status, response.body);
|
|
1190
1255
|
} catch (err) {
|
|
1256
|
+
const e = err;
|
|
1257
|
+
debugResponse(method, fractalUrl, e.status ?? 0, e.response?.body);
|
|
1191
1258
|
throw toApiError$1(getFractalResponse.status === 200 ? "update fractal" : "create fractal", target, err);
|
|
1192
1259
|
}
|
|
1193
1260
|
};
|
|
1194
1261
|
const destroyFractal = async (credentials, id) => {
|
|
1195
1262
|
const target = id.toString();
|
|
1263
|
+
const url = `${FRACTAL_API_URL$1}/blueprints/${target.replace(":", "/")}`;
|
|
1264
|
+
debugRequest("DELETE", url);
|
|
1196
1265
|
try {
|
|
1197
|
-
await superagent.delete(
|
|
1266
|
+
const response = await superagent.delete(url).set(authHeaders$1(credentials));
|
|
1267
|
+
debugResponse("DELETE", url, response.status, response.body);
|
|
1198
1268
|
} catch (err) {
|
|
1269
|
+
const e = err;
|
|
1270
|
+
debugResponse("DELETE", url, e.status ?? 0, e.response?.body);
|
|
1199
1271
|
throw toApiError$1("destroy fractal", target, err);
|
|
1200
1272
|
}
|
|
1201
1273
|
};
|
|
@@ -1881,17 +1953,21 @@ const buildBody = (liveSystem) => ({
|
|
|
1881
1953
|
provider: liveSystem.genericProvider,
|
|
1882
1954
|
blueprintMap: liveSystem.components.reduce((acc, c) => {
|
|
1883
1955
|
acc[c.id.value.toString()] = {
|
|
1884
|
-
...c,
|
|
1885
1956
|
type: c.type.toString(),
|
|
1886
1957
|
id: c.id.value.toString(),
|
|
1887
1958
|
version: c.version.toString(),
|
|
1959
|
+
displayName: c.displayName,
|
|
1960
|
+
description: c.description,
|
|
1961
|
+
provider: c.provider,
|
|
1888
1962
|
parameters: c.parameters.toMap(),
|
|
1889
1963
|
dependencies: c.dependencies.map((d) => d.id.value.toString()),
|
|
1890
1964
|
links: c.links.map((l) => ({
|
|
1891
1965
|
componentId: l.id.value.toString(),
|
|
1892
1966
|
settings: l.parameters.toMap()
|
|
1893
1967
|
})),
|
|
1894
|
-
outputFields: c.outputFields.value
|
|
1968
|
+
outputFields: c.outputFields.value,
|
|
1969
|
+
isLocked: c.isLocked,
|
|
1970
|
+
recreateOnFailure: c.recreateOnFailure
|
|
1895
1971
|
};
|
|
1896
1972
|
return acc;
|
|
1897
1973
|
}, {}),
|
|
@@ -1909,22 +1985,39 @@ const submitDeploy = async (credentials, liveSystem) => {
|
|
|
1909
1985
|
const target = liveSystem.id.toString();
|
|
1910
1986
|
const liveSystemUrl = `${FRACTAL_API_URL}/livesystems/${target}`;
|
|
1911
1987
|
let getResponse;
|
|
1988
|
+
debugRequest("GET", liveSystemUrl, void 0, "existence check");
|
|
1912
1989
|
try {
|
|
1913
1990
|
getResponse = await superagent.get(liveSystemUrl).ok((res) => res.status === 200 || res.status === 404).set(authHeaders(credentials)).send();
|
|
1991
|
+
debugResponse("GET", liveSystemUrl, getResponse.status, getResponse.body, "existence check");
|
|
1914
1992
|
} catch (err) {
|
|
1993
|
+
const e = err;
|
|
1994
|
+
debugResponse("GET", liveSystemUrl, e.status ?? 0, e.response?.body, "existence check");
|
|
1915
1995
|
throw toApiError("check live system existence", target, err);
|
|
1916
1996
|
}
|
|
1997
|
+
const method = getResponse.status === 200 ? "PUT" : "POST";
|
|
1998
|
+
const submitUrl = getResponse.status === 200 ? liveSystemUrl : `${FRACTAL_API_URL}/livesystems`;
|
|
1917
1999
|
const request = getResponse.status === 200 ? superagent.put(liveSystemUrl) : superagent.post(`${FRACTAL_API_URL}/livesystems`);
|
|
2000
|
+
const body = buildBody(liveSystem);
|
|
2001
|
+
debugRequest(method, submitUrl, body);
|
|
1918
2002
|
try {
|
|
1919
|
-
await request.set(authHeaders(credentials)).send(
|
|
2003
|
+
const response = await request.set(authHeaders(credentials)).send(body);
|
|
2004
|
+
debugResponse(method, submitUrl, response.status, response.body);
|
|
1920
2005
|
} catch (err) {
|
|
2006
|
+
const e = err;
|
|
2007
|
+
debugResponse(method, submitUrl, e.status ?? 0, e.response?.body);
|
|
1921
2008
|
throw toApiError(getResponse.status === 200 ? "update live system" : "create live system", target, err);
|
|
1922
2009
|
}
|
|
1923
2010
|
};
|
|
1924
2011
|
const getLiveSystemStatus = async (credentials, id) => {
|
|
2012
|
+
const url = `${FRACTAL_API_URL}/livesystems/${id.toString()}`;
|
|
2013
|
+
debugRequest("GET", url, void 0, "status poll");
|
|
1925
2014
|
try {
|
|
1926
|
-
|
|
2015
|
+
const response = await superagent.get(url).set(authHeaders(credentials)).send();
|
|
2016
|
+
debugResponse("GET", url, response.status, response.body, "status poll");
|
|
2017
|
+
return response.body.status;
|
|
1927
2018
|
} catch (err) {
|
|
2019
|
+
const e = err;
|
|
2020
|
+
debugResponse("GET", url, e.status ?? 0, e.response?.body, "status poll");
|
|
1928
2021
|
throw toApiError("get live system status", id.toString(), err);
|
|
1929
2022
|
}
|
|
1930
2023
|
};
|
|
@@ -2006,9 +2099,14 @@ const deployLiveSystem = async (credentials, liveSystem, options = { mode: "fire
|
|
|
2006
2099
|
});
|
|
2007
2100
|
};
|
|
2008
2101
|
const destroyLiveSystem = async (credentials, id) => {
|
|
2102
|
+
const url = `${FRACTAL_API_URL}/livesystems/${id.toString()}`;
|
|
2103
|
+
debugRequest("DELETE", url);
|
|
2009
2104
|
try {
|
|
2010
|
-
await superagent.delete(
|
|
2105
|
+
const response = await superagent.delete(url).set(authHeaders(credentials));
|
|
2106
|
+
debugResponse("DELETE", url, response.status, response.body);
|
|
2011
2107
|
} catch (err) {
|
|
2108
|
+
const e = err;
|
|
2109
|
+
debugResponse("DELETE", url, e.status ?? 0, e.response?.body);
|
|
2012
2110
|
throw toApiError("destroy live system", id.toString(), err);
|
|
2013
2111
|
}
|
|
2014
2112
|
};
|
|
@@ -2138,6 +2236,7 @@ const getLiveSystemBuilder = () => {
|
|
|
2138
2236
|
},
|
|
2139
2237
|
reset: () => {
|
|
2140
2238
|
internalState.id = DEFAULT_LIVE_SYSTEM.id;
|
|
2239
|
+
internalState.parameters = DEFAULT_LIVE_SYSTEM.parameters;
|
|
2141
2240
|
internalState.requesterId = DEFAULT_LIVE_SYSTEM.requesterId;
|
|
2142
2241
|
internalState.fractalId = DEFAULT_LIVE_SYSTEM.fractalId;
|
|
2143
2242
|
internalState.description = DEFAULT_LIVE_SYSTEM.description;
|
|
@@ -2182,16 +2281,16 @@ let LiveSystem$1;
|
|
|
2182
2281
|
//#region src/fractal/component/network_and_compute/iaas/virtual_network.ts
|
|
2183
2282
|
const VIRTUAL_NETWORK_TYPE_NAME = "VirtualNetwork";
|
|
2184
2283
|
const CIDR_BLOCK_PARAM$1 = "cidrBlock";
|
|
2185
|
-
function buildId$
|
|
2284
|
+
function buildId$36(id) {
|
|
2186
2285
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2187
2286
|
}
|
|
2188
|
-
function buildVersion$
|
|
2287
|
+
function buildVersion$36(major, minor, patch) {
|
|
2189
2288
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2190
2289
|
}
|
|
2191
2290
|
function buildVirtualNetworkType() {
|
|
2192
2291
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(VIRTUAL_NETWORK_TYPE_NAME).build()).build();
|
|
2193
2292
|
}
|
|
2194
|
-
function pushParam$
|
|
2293
|
+
function pushParam$33(params, key, value) {
|
|
2195
2294
|
params.push(key, value);
|
|
2196
2295
|
}
|
|
2197
2296
|
function makeVirtualNetworkComponent(vpc, subnetNodes, sgs) {
|
|
@@ -2232,11 +2331,11 @@ let VirtualNetwork;
|
|
|
2232
2331
|
const sgBuilders = [];
|
|
2233
2332
|
const builder = {
|
|
2234
2333
|
withId: (id) => {
|
|
2235
|
-
inner.withId(buildId$
|
|
2334
|
+
inner.withId(buildId$36(id));
|
|
2236
2335
|
return builder;
|
|
2237
2336
|
},
|
|
2238
2337
|
withVersion: (major, minor, patch) => {
|
|
2239
|
-
inner.withVersion(buildVersion$
|
|
2338
|
+
inner.withVersion(buildVersion$36(major, minor, patch));
|
|
2240
2339
|
return builder;
|
|
2241
2340
|
},
|
|
2242
2341
|
withDisplayName: (displayName) => {
|
|
@@ -2248,7 +2347,7 @@ let VirtualNetwork;
|
|
|
2248
2347
|
return builder;
|
|
2249
2348
|
},
|
|
2250
2349
|
withCidrBlock: (value) => {
|
|
2251
|
-
pushParam$
|
|
2350
|
+
pushParam$33(params, CIDR_BLOCK_PARAM$1, value);
|
|
2252
2351
|
return builder;
|
|
2253
2352
|
},
|
|
2254
2353
|
withSubnet: (subnetBuilder) => {
|
|
@@ -2304,16 +2403,16 @@ let VirtualNetwork;
|
|
|
2304
2403
|
//#region src/fractal/component/network_and_compute/iaas/subnet.ts
|
|
2305
2404
|
const SUBNET_TYPE_NAME = "Subnet";
|
|
2306
2405
|
const CIDR_BLOCK_PARAM = "cidrBlock";
|
|
2307
|
-
function buildId$
|
|
2406
|
+
function buildId$35(id) {
|
|
2308
2407
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2309
2408
|
}
|
|
2310
|
-
function buildVersion$
|
|
2409
|
+
function buildVersion$35(major, minor, patch) {
|
|
2311
2410
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2312
2411
|
}
|
|
2313
2412
|
function buildSubnetType() {
|
|
2314
2413
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(SUBNET_TYPE_NAME).build()).build();
|
|
2315
2414
|
}
|
|
2316
|
-
function pushParam$
|
|
2415
|
+
function pushParam$32(params, key, value) {
|
|
2317
2416
|
params.push(key, value);
|
|
2318
2417
|
}
|
|
2319
2418
|
function makeSubnetComponent(subnet, vms, workloadNodes) {
|
|
@@ -2347,11 +2446,11 @@ let Subnet;
|
|
|
2347
2446
|
const vmBuilders = [];
|
|
2348
2447
|
const builder = {
|
|
2349
2448
|
withId: (id) => {
|
|
2350
|
-
inner.withId(buildId$
|
|
2449
|
+
inner.withId(buildId$35(id));
|
|
2351
2450
|
return builder;
|
|
2352
2451
|
},
|
|
2353
2452
|
withVersion: (major, minor, patch) => {
|
|
2354
|
-
inner.withVersion(buildVersion$
|
|
2453
|
+
inner.withVersion(buildVersion$35(major, minor, patch));
|
|
2355
2454
|
return builder;
|
|
2356
2455
|
},
|
|
2357
2456
|
withDisplayName: (displayName) => {
|
|
@@ -2363,7 +2462,7 @@ let Subnet;
|
|
|
2363
2462
|
return builder;
|
|
2364
2463
|
},
|
|
2365
2464
|
withCidrBlock: (value) => {
|
|
2366
|
-
pushParam$
|
|
2465
|
+
pushParam$32(params, CIDR_BLOCK_PARAM, value);
|
|
2367
2466
|
return builder;
|
|
2368
2467
|
},
|
|
2369
2468
|
withVirtualMachine: (vmBuilder) => {
|
|
@@ -2403,16 +2502,16 @@ let Subnet;
|
|
|
2403
2502
|
const SECURITY_GROUP_TYPE_NAME = "SecurityGroup";
|
|
2404
2503
|
const DESCRIPTION_PARAM = "description";
|
|
2405
2504
|
const INGRESS_RULES_PARAM = "ingressRules";
|
|
2406
|
-
function buildId$
|
|
2505
|
+
function buildId$34(id) {
|
|
2407
2506
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2408
2507
|
}
|
|
2409
|
-
function buildVersion$
|
|
2508
|
+
function buildVersion$34(major, minor, patch) {
|
|
2410
2509
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2411
2510
|
}
|
|
2412
2511
|
function buildSecurityGroupType() {
|
|
2413
2512
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(SECURITY_GROUP_TYPE_NAME).build()).build();
|
|
2414
2513
|
}
|
|
2415
|
-
function pushParam$
|
|
2514
|
+
function pushParam$31(params, key, value) {
|
|
2416
2515
|
params.push(key, value);
|
|
2417
2516
|
}
|
|
2418
2517
|
let SecurityGroup;
|
|
@@ -2422,11 +2521,11 @@ let SecurityGroup;
|
|
|
2422
2521
|
const inner = getBlueprintComponentBuilder().withType(buildSecurityGroupType()).withParameters(params);
|
|
2423
2522
|
const builder = {
|
|
2424
2523
|
withId: (id) => {
|
|
2425
|
-
inner.withId(buildId$
|
|
2524
|
+
inner.withId(buildId$34(id));
|
|
2426
2525
|
return builder;
|
|
2427
2526
|
},
|
|
2428
2527
|
withVersion: (major, minor, patch) => {
|
|
2429
|
-
inner.withVersion(buildVersion$
|
|
2528
|
+
inner.withVersion(buildVersion$34(major, minor, patch));
|
|
2430
2529
|
return builder;
|
|
2431
2530
|
},
|
|
2432
2531
|
withDisplayName: (displayName) => {
|
|
@@ -2435,11 +2534,11 @@ let SecurityGroup;
|
|
|
2435
2534
|
},
|
|
2436
2535
|
withDescription: (description) => {
|
|
2437
2536
|
inner.withDescription(description);
|
|
2438
|
-
pushParam$
|
|
2537
|
+
pushParam$31(params, DESCRIPTION_PARAM, description);
|
|
2439
2538
|
return builder;
|
|
2440
2539
|
},
|
|
2441
2540
|
withIngressRules: (rules) => {
|
|
2442
|
-
pushParam$
|
|
2541
|
+
pushParam$31(params, INGRESS_RULES_PARAM, rules);
|
|
2443
2542
|
return builder;
|
|
2444
2543
|
},
|
|
2445
2544
|
withLinks: (links) => {
|
|
@@ -2460,10 +2559,10 @@ let SecurityGroup;
|
|
|
2460
2559
|
//#endregion
|
|
2461
2560
|
//#region src/fractal/component/network_and_compute/iaas/vm.ts
|
|
2462
2561
|
const VIRTUAL_MACHINE_TYPE_NAME = "VirtualMachine";
|
|
2463
|
-
function buildId$
|
|
2562
|
+
function buildId$33(id) {
|
|
2464
2563
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2465
2564
|
}
|
|
2466
|
-
function buildVersion$
|
|
2565
|
+
function buildVersion$33(major, minor, patch) {
|
|
2467
2566
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2468
2567
|
}
|
|
2469
2568
|
function buildVirtualMachineType() {
|
|
@@ -2502,11 +2601,11 @@ let VirtualMachine;
|
|
|
2502
2601
|
const inner = getBlueprintComponentBuilder().withType(buildVirtualMachineType()).withParameters(getParametersInstance());
|
|
2503
2602
|
const builder = {
|
|
2504
2603
|
withId: (id) => {
|
|
2505
|
-
inner.withId(buildId$
|
|
2604
|
+
inner.withId(buildId$33(id));
|
|
2506
2605
|
return builder;
|
|
2507
2606
|
},
|
|
2508
2607
|
withVersion: (major, minor, patch) => {
|
|
2509
|
-
inner.withVersion(buildVersion$
|
|
2608
|
+
inner.withVersion(buildVersion$33(major, minor, patch));
|
|
2510
2609
|
return builder;
|
|
2511
2610
|
},
|
|
2512
2611
|
withDisplayName: (displayName) => {
|
|
@@ -2538,16 +2637,16 @@ const AWS_VPC_TYPE_NAME = "AwsVpc";
|
|
|
2538
2637
|
const INSTANCE_TENANCY_PARAM = "instanceTenancy";
|
|
2539
2638
|
const ENABLE_DNS_SUPPORT_PARAM = "enableDnsSupport";
|
|
2540
2639
|
const ENABLE_DNS_HOSTNAMES_PARAM = "enableDnsHostnames";
|
|
2541
|
-
function buildId$
|
|
2640
|
+
function buildId$32(id) {
|
|
2542
2641
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2543
2642
|
}
|
|
2544
|
-
function buildVersion$
|
|
2643
|
+
function buildVersion$32(major, minor, patch) {
|
|
2545
2644
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2546
2645
|
}
|
|
2547
2646
|
function buildAwsVpcType() {
|
|
2548
2647
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_VPC_TYPE_NAME).build()).build();
|
|
2549
2648
|
}
|
|
2550
|
-
function pushParam$
|
|
2649
|
+
function pushParam$30(params, key, value) {
|
|
2551
2650
|
params.push(key, value);
|
|
2552
2651
|
}
|
|
2553
2652
|
let AwsVpc;
|
|
@@ -2557,11 +2656,11 @@ let AwsVpc;
|
|
|
2557
2656
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsVpcType()).withParameters(params).withProvider("AWS");
|
|
2558
2657
|
const builder = {
|
|
2559
2658
|
withId: (id) => {
|
|
2560
|
-
inner.withId(buildId$
|
|
2659
|
+
inner.withId(buildId$32(id));
|
|
2561
2660
|
return builder;
|
|
2562
2661
|
},
|
|
2563
2662
|
withVersion: (major, minor, patch) => {
|
|
2564
|
-
inner.withVersion(buildVersion$
|
|
2663
|
+
inner.withVersion(buildVersion$32(major, minor, patch));
|
|
2565
2664
|
return builder;
|
|
2566
2665
|
},
|
|
2567
2666
|
withDisplayName: (displayName) => {
|
|
@@ -2573,19 +2672,19 @@ let AwsVpc;
|
|
|
2573
2672
|
return builder;
|
|
2574
2673
|
},
|
|
2575
2674
|
withCidrBlock: (value) => {
|
|
2576
|
-
pushParam$
|
|
2675
|
+
pushParam$30(params, CIDR_BLOCK_PARAM$1, value);
|
|
2577
2676
|
return builder;
|
|
2578
2677
|
},
|
|
2579
2678
|
withInstanceTenancy: (value) => {
|
|
2580
|
-
pushParam$
|
|
2679
|
+
pushParam$30(params, INSTANCE_TENANCY_PARAM, value);
|
|
2581
2680
|
return builder;
|
|
2582
2681
|
},
|
|
2583
2682
|
withEnableDnsSupport: (value) => {
|
|
2584
|
-
pushParam$
|
|
2683
|
+
pushParam$30(params, ENABLE_DNS_SUPPORT_PARAM, value);
|
|
2585
2684
|
return builder;
|
|
2586
2685
|
},
|
|
2587
2686
|
withEnableDnsHostnames: (value) => {
|
|
2588
|
-
pushParam$
|
|
2687
|
+
pushParam$30(params, ENABLE_DNS_HOSTNAMES_PARAM, value);
|
|
2589
2688
|
return builder;
|
|
2590
2689
|
},
|
|
2591
2690
|
build: () => inner.build()
|
|
@@ -2594,21 +2693,21 @@ let AwsVpc;
|
|
|
2594
2693
|
};
|
|
2595
2694
|
_AwsVpc.satisfy = (blueprint) => {
|
|
2596
2695
|
const params = getParametersInstance();
|
|
2597
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsVpcType()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
2696
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsVpcType()).withParameters(params).withProvider("AWS").withId(buildId$32(blueprint.id.toString())).withVersion(buildVersion$32(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
2598
2697
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2599
2698
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
2600
|
-
if (cidrBlock !== null) pushParam$
|
|
2699
|
+
if (cidrBlock !== null) pushParam$30(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
2601
2700
|
const satisfiedBuilder = {
|
|
2602
2701
|
withInstanceTenancy: (value) => {
|
|
2603
|
-
pushParam$
|
|
2702
|
+
pushParam$30(params, INSTANCE_TENANCY_PARAM, value);
|
|
2604
2703
|
return satisfiedBuilder;
|
|
2605
2704
|
},
|
|
2606
2705
|
withEnableDnsSupport: (value) => {
|
|
2607
|
-
pushParam$
|
|
2706
|
+
pushParam$30(params, ENABLE_DNS_SUPPORT_PARAM, value);
|
|
2608
2707
|
return satisfiedBuilder;
|
|
2609
2708
|
},
|
|
2610
2709
|
withEnableDnsHostnames: (value) => {
|
|
2611
|
-
pushParam$
|
|
2710
|
+
pushParam$30(params, ENABLE_DNS_HOSTNAMES_PARAM, value);
|
|
2612
2711
|
return satisfiedBuilder;
|
|
2613
2712
|
},
|
|
2614
2713
|
build: () => inner.build()
|
|
@@ -2629,16 +2728,16 @@ let AwsVpc;
|
|
|
2629
2728
|
//#region src/live_system/component/network_and_compute/iaas/subnet.ts
|
|
2630
2729
|
const AWS_SUBNET_TYPE_NAME = "AwsSubnet";
|
|
2631
2730
|
const AVAILABILITY_ZONE_PARAM = "availabilityZone";
|
|
2632
|
-
function buildId$
|
|
2731
|
+
function buildId$31(id) {
|
|
2633
2732
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2634
2733
|
}
|
|
2635
|
-
function buildVersion$
|
|
2734
|
+
function buildVersion$31(major, minor, patch) {
|
|
2636
2735
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2637
2736
|
}
|
|
2638
2737
|
function buildAwsSubnetType() {
|
|
2639
2738
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_SUBNET_TYPE_NAME).build()).build();
|
|
2640
2739
|
}
|
|
2641
|
-
function pushParam$
|
|
2740
|
+
function pushParam$29(params, key, value) {
|
|
2642
2741
|
params.push(key, value);
|
|
2643
2742
|
}
|
|
2644
2743
|
let AwsSubnet;
|
|
@@ -2648,11 +2747,11 @@ let AwsSubnet;
|
|
|
2648
2747
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsSubnetType()).withParameters(params).withProvider("AWS");
|
|
2649
2748
|
const builder = {
|
|
2650
2749
|
withId: (id) => {
|
|
2651
|
-
inner.withId(buildId$
|
|
2750
|
+
inner.withId(buildId$31(id));
|
|
2652
2751
|
return builder;
|
|
2653
2752
|
},
|
|
2654
2753
|
withVersion: (major, minor, patch) => {
|
|
2655
|
-
inner.withVersion(buildVersion$
|
|
2754
|
+
inner.withVersion(buildVersion$31(major, minor, patch));
|
|
2656
2755
|
return builder;
|
|
2657
2756
|
},
|
|
2658
2757
|
withDisplayName: (displayName) => {
|
|
@@ -2664,11 +2763,11 @@ let AwsSubnet;
|
|
|
2664
2763
|
return builder;
|
|
2665
2764
|
},
|
|
2666
2765
|
withCidrBlock: (value) => {
|
|
2667
|
-
pushParam$
|
|
2766
|
+
pushParam$29(params, CIDR_BLOCK_PARAM, value);
|
|
2668
2767
|
return builder;
|
|
2669
2768
|
},
|
|
2670
2769
|
withAvailabilityZone: (value) => {
|
|
2671
|
-
pushParam$
|
|
2770
|
+
pushParam$29(params, AVAILABILITY_ZONE_PARAM, value);
|
|
2672
2771
|
return builder;
|
|
2673
2772
|
},
|
|
2674
2773
|
build: () => inner.build()
|
|
@@ -2677,13 +2776,13 @@ let AwsSubnet;
|
|
|
2677
2776
|
};
|
|
2678
2777
|
_AwsSubnet.satisfy = (blueprint) => {
|
|
2679
2778
|
const params = getParametersInstance();
|
|
2680
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsSubnetType()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
2779
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsSubnetType()).withParameters(params).withProvider("AWS").withId(buildId$31(blueprint.id.toString())).withVersion(buildVersion$31(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
2681
2780
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2682
2781
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
2683
|
-
if (cidrBlock !== null) pushParam$
|
|
2782
|
+
if (cidrBlock !== null) pushParam$29(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
2684
2783
|
const satisfiedBuilder = {
|
|
2685
2784
|
withAvailabilityZone: (value) => {
|
|
2686
|
-
pushParam$
|
|
2785
|
+
pushParam$29(params, AVAILABILITY_ZONE_PARAM, value);
|
|
2687
2786
|
return satisfiedBuilder;
|
|
2688
2787
|
},
|
|
2689
2788
|
build: () => inner.build()
|
|
@@ -2700,16 +2799,16 @@ let AwsSubnet;
|
|
|
2700
2799
|
//#endregion
|
|
2701
2800
|
//#region src/live_system/component/network_and_compute/iaas/security_group.ts
|
|
2702
2801
|
const AWS_SG_TYPE_NAME = "SecurityGroup";
|
|
2703
|
-
function buildId$
|
|
2802
|
+
function buildId$30(id) {
|
|
2704
2803
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2705
2804
|
}
|
|
2706
|
-
function buildVersion$
|
|
2805
|
+
function buildVersion$30(major, minor, patch) {
|
|
2707
2806
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2708
2807
|
}
|
|
2709
2808
|
function buildAwsSgType() {
|
|
2710
2809
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_SG_TYPE_NAME).build()).build();
|
|
2711
2810
|
}
|
|
2712
|
-
function pushParam$
|
|
2811
|
+
function pushParam$28(params, key, value) {
|
|
2713
2812
|
params.push(key, value);
|
|
2714
2813
|
}
|
|
2715
2814
|
let AwsSecurityGroup;
|
|
@@ -2719,11 +2818,11 @@ let AwsSecurityGroup;
|
|
|
2719
2818
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsSgType()).withParameters(params).withProvider("AWS");
|
|
2720
2819
|
const builder = {
|
|
2721
2820
|
withId: (id) => {
|
|
2722
|
-
inner.withId(buildId$
|
|
2821
|
+
inner.withId(buildId$30(id));
|
|
2723
2822
|
return builder;
|
|
2724
2823
|
},
|
|
2725
2824
|
withVersion: (major, minor, patch) => {
|
|
2726
|
-
inner.withVersion(buildVersion$
|
|
2825
|
+
inner.withVersion(buildVersion$30(major, minor, patch));
|
|
2727
2826
|
return builder;
|
|
2728
2827
|
},
|
|
2729
2828
|
withDisplayName: (displayName) => {
|
|
@@ -2732,11 +2831,11 @@ let AwsSecurityGroup;
|
|
|
2732
2831
|
},
|
|
2733
2832
|
withDescription: (description) => {
|
|
2734
2833
|
inner.withDescription(description);
|
|
2735
|
-
pushParam$
|
|
2834
|
+
pushParam$28(params, DESCRIPTION_PARAM, description);
|
|
2736
2835
|
return builder;
|
|
2737
2836
|
},
|
|
2738
2837
|
withIngressRules: (rules) => {
|
|
2739
|
-
pushParam$
|
|
2838
|
+
pushParam$28(params, INGRESS_RULES_PARAM, rules);
|
|
2740
2839
|
return builder;
|
|
2741
2840
|
},
|
|
2742
2841
|
build: () => inner.build()
|
|
@@ -2745,14 +2844,14 @@ let AwsSecurityGroup;
|
|
|
2745
2844
|
};
|
|
2746
2845
|
_AwsSecurityGroup.satisfy = (blueprint) => {
|
|
2747
2846
|
const params = getParametersInstance();
|
|
2748
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsSgType()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
2847
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsSgType()).withParameters(params).withProvider("AWS").withId(buildId$30(blueprint.id.toString())).withVersion(buildVersion$30(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
2749
2848
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
2750
2849
|
if (description !== null) {
|
|
2751
2850
|
inner.withDescription(String(description));
|
|
2752
|
-
pushParam$
|
|
2851
|
+
pushParam$28(params, DESCRIPTION_PARAM, String(description));
|
|
2753
2852
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2754
2853
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
2755
|
-
if (ingressRules !== null) pushParam$
|
|
2854
|
+
if (ingressRules !== null) pushParam$28(params, INGRESS_RULES_PARAM, ingressRules);
|
|
2756
2855
|
return { build: () => inner.build() };
|
|
2757
2856
|
};
|
|
2758
2857
|
_AwsSecurityGroup.create = (config) => {
|
|
@@ -2771,16 +2870,16 @@ const KEY_NAME_PARAM = "keyName";
|
|
|
2771
2870
|
const USER_DATA_PARAM$1 = "userData";
|
|
2772
2871
|
const IAM_INSTANCE_PROFILE_PARAM = "iamInstanceProfile";
|
|
2773
2872
|
const ASSOCIATE_PUBLIC_IP_PARAM = "associatePublicIp";
|
|
2774
|
-
function buildId$
|
|
2873
|
+
function buildId$29(id) {
|
|
2775
2874
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2776
2875
|
}
|
|
2777
|
-
function buildVersion$
|
|
2876
|
+
function buildVersion$29(major, minor, patch) {
|
|
2778
2877
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2779
2878
|
}
|
|
2780
2879
|
function buildEc2Type() {
|
|
2781
2880
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(EC2_TYPE_NAME).build()).build();
|
|
2782
2881
|
}
|
|
2783
|
-
function pushParam$
|
|
2882
|
+
function pushParam$27(params, key, value) {
|
|
2784
2883
|
params.push(key, value);
|
|
2785
2884
|
}
|
|
2786
2885
|
let Ec2Instance;
|
|
@@ -2790,11 +2889,11 @@ let Ec2Instance;
|
|
|
2790
2889
|
const inner = getLiveSystemComponentBuilder().withType(buildEc2Type()).withParameters(params).withProvider("AWS");
|
|
2791
2890
|
const builder = {
|
|
2792
2891
|
withId: (id) => {
|
|
2793
|
-
inner.withId(buildId$
|
|
2892
|
+
inner.withId(buildId$29(id));
|
|
2794
2893
|
return builder;
|
|
2795
2894
|
},
|
|
2796
2895
|
withVersion: (major, minor, patch) => {
|
|
2797
|
-
inner.withVersion(buildVersion$
|
|
2896
|
+
inner.withVersion(buildVersion$29(major, minor, patch));
|
|
2798
2897
|
return builder;
|
|
2799
2898
|
},
|
|
2800
2899
|
withDisplayName: (displayName) => {
|
|
@@ -2806,27 +2905,27 @@ let Ec2Instance;
|
|
|
2806
2905
|
return builder;
|
|
2807
2906
|
},
|
|
2808
2907
|
withAmiId: (value) => {
|
|
2809
|
-
pushParam$
|
|
2908
|
+
pushParam$27(params, AMI_ID_PARAM, value);
|
|
2810
2909
|
return builder;
|
|
2811
2910
|
},
|
|
2812
2911
|
withInstanceType: (value) => {
|
|
2813
|
-
pushParam$
|
|
2912
|
+
pushParam$27(params, INSTANCE_TYPE_PARAM, value);
|
|
2814
2913
|
return builder;
|
|
2815
2914
|
},
|
|
2816
2915
|
withKeyName: (value) => {
|
|
2817
|
-
pushParam$
|
|
2916
|
+
pushParam$27(params, KEY_NAME_PARAM, value);
|
|
2818
2917
|
return builder;
|
|
2819
2918
|
},
|
|
2820
2919
|
withUserData: (value) => {
|
|
2821
|
-
pushParam$
|
|
2920
|
+
pushParam$27(params, USER_DATA_PARAM$1, value);
|
|
2822
2921
|
return builder;
|
|
2823
2922
|
},
|
|
2824
2923
|
withIamInstanceProfile: (value) => {
|
|
2825
|
-
pushParam$
|
|
2924
|
+
pushParam$27(params, IAM_INSTANCE_PROFILE_PARAM, value);
|
|
2826
2925
|
return builder;
|
|
2827
2926
|
},
|
|
2828
2927
|
withAssociatePublicIp: (value) => {
|
|
2829
|
-
pushParam$
|
|
2928
|
+
pushParam$27(params, ASSOCIATE_PUBLIC_IP_PARAM, value);
|
|
2830
2929
|
return builder;
|
|
2831
2930
|
},
|
|
2832
2931
|
build: () => inner.build()
|
|
@@ -2835,31 +2934,31 @@ let Ec2Instance;
|
|
|
2835
2934
|
};
|
|
2836
2935
|
_Ec2Instance.satisfy = (blueprint) => {
|
|
2837
2936
|
const params = getParametersInstance();
|
|
2838
|
-
const inner = getLiveSystemComponentBuilder().withType(buildEc2Type()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
2937
|
+
const inner = getLiveSystemComponentBuilder().withType(buildEc2Type()).withParameters(params).withProvider("AWS").withId(buildId$29(blueprint.id.toString())).withVersion(buildVersion$29(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
2839
2938
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2840
2939
|
const satisfiedBuilder = {
|
|
2841
2940
|
withAmiId: (value) => {
|
|
2842
|
-
pushParam$
|
|
2941
|
+
pushParam$27(params, AMI_ID_PARAM, value);
|
|
2843
2942
|
return satisfiedBuilder;
|
|
2844
2943
|
},
|
|
2845
2944
|
withInstanceType: (value) => {
|
|
2846
|
-
pushParam$
|
|
2945
|
+
pushParam$27(params, INSTANCE_TYPE_PARAM, value);
|
|
2847
2946
|
return satisfiedBuilder;
|
|
2848
2947
|
},
|
|
2849
2948
|
withKeyName: (value) => {
|
|
2850
|
-
pushParam$
|
|
2949
|
+
pushParam$27(params, KEY_NAME_PARAM, value);
|
|
2851
2950
|
return satisfiedBuilder;
|
|
2852
2951
|
},
|
|
2853
2952
|
withUserData: (value) => {
|
|
2854
|
-
pushParam$
|
|
2953
|
+
pushParam$27(params, USER_DATA_PARAM$1, value);
|
|
2855
2954
|
return satisfiedBuilder;
|
|
2856
2955
|
},
|
|
2857
2956
|
withIamInstanceProfile: (value) => {
|
|
2858
|
-
pushParam$
|
|
2957
|
+
pushParam$27(params, IAM_INSTANCE_PROFILE_PARAM, value);
|
|
2859
2958
|
return satisfiedBuilder;
|
|
2860
2959
|
},
|
|
2861
2960
|
withAssociatePublicIp: (value) => {
|
|
2862
|
-
pushParam$
|
|
2961
|
+
pushParam$27(params, ASSOCIATE_PUBLIC_IP_PARAM, value);
|
|
2863
2962
|
return satisfiedBuilder;
|
|
2864
2963
|
},
|
|
2865
2964
|
build: () => inner.build()
|
|
@@ -2882,16 +2981,16 @@ let Ec2Instance;
|
|
|
2882
2981
|
const AZURE_VNET_TYPE_NAME = "AzureVnet";
|
|
2883
2982
|
const LOCATION_PARAM$3 = "location";
|
|
2884
2983
|
const RESOURCE_GROUP_PARAM$3 = "resourceGroup";
|
|
2885
|
-
function buildId$
|
|
2984
|
+
function buildId$28(id) {
|
|
2886
2985
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2887
2986
|
}
|
|
2888
|
-
function buildVersion$
|
|
2987
|
+
function buildVersion$28(major, minor, patch) {
|
|
2889
2988
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2890
2989
|
}
|
|
2891
2990
|
function buildAzureVnetType() {
|
|
2892
2991
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_VNET_TYPE_NAME).build()).build();
|
|
2893
2992
|
}
|
|
2894
|
-
function pushParam$
|
|
2993
|
+
function pushParam$26(params, key, value) {
|
|
2895
2994
|
params.push(key, value);
|
|
2896
2995
|
}
|
|
2897
2996
|
let AzureVnet;
|
|
@@ -2901,11 +3000,11 @@ let AzureVnet;
|
|
|
2901
3000
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureVnetType()).withParameters(params).withProvider("Azure");
|
|
2902
3001
|
const builder = {
|
|
2903
3002
|
withId: (id) => {
|
|
2904
|
-
inner.withId(buildId$
|
|
3003
|
+
inner.withId(buildId$28(id));
|
|
2905
3004
|
return builder;
|
|
2906
3005
|
},
|
|
2907
3006
|
withVersion: (major, minor, patch) => {
|
|
2908
|
-
inner.withVersion(buildVersion$
|
|
3007
|
+
inner.withVersion(buildVersion$28(major, minor, patch));
|
|
2909
3008
|
return builder;
|
|
2910
3009
|
},
|
|
2911
3010
|
withDisplayName: (displayName) => {
|
|
@@ -2917,15 +3016,15 @@ let AzureVnet;
|
|
|
2917
3016
|
return builder;
|
|
2918
3017
|
},
|
|
2919
3018
|
withCidrBlock: (value) => {
|
|
2920
|
-
pushParam$
|
|
3019
|
+
pushParam$26(params, CIDR_BLOCK_PARAM$1, value);
|
|
2921
3020
|
return builder;
|
|
2922
3021
|
},
|
|
2923
3022
|
withLocation: (value) => {
|
|
2924
|
-
pushParam$
|
|
3023
|
+
pushParam$26(params, LOCATION_PARAM$3, value);
|
|
2925
3024
|
return builder;
|
|
2926
3025
|
},
|
|
2927
3026
|
withResourceGroup: (value) => {
|
|
2928
|
-
pushParam$
|
|
3027
|
+
pushParam$26(params, RESOURCE_GROUP_PARAM$3, value);
|
|
2929
3028
|
return builder;
|
|
2930
3029
|
},
|
|
2931
3030
|
build: () => inner.build()
|
|
@@ -2934,17 +3033,17 @@ let AzureVnet;
|
|
|
2934
3033
|
};
|
|
2935
3034
|
_AzureVnet.satisfy = (blueprint) => {
|
|
2936
3035
|
const params = getParametersInstance();
|
|
2937
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureVnetType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
3036
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureVnetType()).withParameters(params).withProvider("Azure").withId(buildId$28(blueprint.id.toString())).withVersion(buildVersion$28(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
2938
3037
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2939
3038
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
2940
|
-
if (cidrBlock !== null) pushParam$
|
|
3039
|
+
if (cidrBlock !== null) pushParam$26(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
2941
3040
|
const satisfiedBuilder = {
|
|
2942
3041
|
withLocation: (value) => {
|
|
2943
|
-
pushParam$
|
|
3042
|
+
pushParam$26(params, LOCATION_PARAM$3, value);
|
|
2944
3043
|
return satisfiedBuilder;
|
|
2945
3044
|
},
|
|
2946
3045
|
withResourceGroup: (value) => {
|
|
2947
|
-
pushParam$
|
|
3046
|
+
pushParam$26(params, RESOURCE_GROUP_PARAM$3, value);
|
|
2948
3047
|
return satisfiedBuilder;
|
|
2949
3048
|
},
|
|
2950
3049
|
build: () => inner.build()
|
|
@@ -2962,16 +3061,16 @@ let AzureVnet;
|
|
|
2962
3061
|
//#region src/live_system/component/network_and_compute/iaas/azure_subnet.ts
|
|
2963
3062
|
const AZURE_SUBNET_TYPE_NAME = "AzureSubnet";
|
|
2964
3063
|
const RESOURCE_GROUP_PARAM$2 = "resourceGroup";
|
|
2965
|
-
function buildId$
|
|
3064
|
+
function buildId$27(id) {
|
|
2966
3065
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2967
3066
|
}
|
|
2968
|
-
function buildVersion$
|
|
3067
|
+
function buildVersion$27(major, minor, patch) {
|
|
2969
3068
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2970
3069
|
}
|
|
2971
3070
|
function buildAzureSubnetType() {
|
|
2972
3071
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_SUBNET_TYPE_NAME).build()).build();
|
|
2973
3072
|
}
|
|
2974
|
-
function pushParam$
|
|
3073
|
+
function pushParam$25(params, key, value) {
|
|
2975
3074
|
params.push(key, value);
|
|
2976
3075
|
}
|
|
2977
3076
|
let AzureSubnet;
|
|
@@ -2981,11 +3080,11 @@ let AzureSubnet;
|
|
|
2981
3080
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureSubnetType()).withParameters(params).withProvider("Azure");
|
|
2982
3081
|
const builder = {
|
|
2983
3082
|
withId: (id) => {
|
|
2984
|
-
inner.withId(buildId$
|
|
3083
|
+
inner.withId(buildId$27(id));
|
|
2985
3084
|
return builder;
|
|
2986
3085
|
},
|
|
2987
3086
|
withVersion: (major, minor, patch) => {
|
|
2988
|
-
inner.withVersion(buildVersion$
|
|
3087
|
+
inner.withVersion(buildVersion$27(major, minor, patch));
|
|
2989
3088
|
return builder;
|
|
2990
3089
|
},
|
|
2991
3090
|
withDisplayName: (displayName) => {
|
|
@@ -2997,11 +3096,11 @@ let AzureSubnet;
|
|
|
2997
3096
|
return builder;
|
|
2998
3097
|
},
|
|
2999
3098
|
withCidrBlock: (value) => {
|
|
3000
|
-
pushParam$
|
|
3099
|
+
pushParam$25(params, CIDR_BLOCK_PARAM, value);
|
|
3001
3100
|
return builder;
|
|
3002
3101
|
},
|
|
3003
3102
|
withResourceGroup: (value) => {
|
|
3004
|
-
pushParam$
|
|
3103
|
+
pushParam$25(params, RESOURCE_GROUP_PARAM$2, value);
|
|
3005
3104
|
return builder;
|
|
3006
3105
|
},
|
|
3007
3106
|
build: () => inner.build()
|
|
@@ -3010,13 +3109,13 @@ let AzureSubnet;
|
|
|
3010
3109
|
};
|
|
3011
3110
|
_AzureSubnet.satisfy = (blueprint) => {
|
|
3012
3111
|
const params = getParametersInstance();
|
|
3013
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureSubnetType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
3112
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureSubnetType()).withParameters(params).withProvider("Azure").withId(buildId$27(blueprint.id.toString())).withVersion(buildVersion$27(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3014
3113
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3015
3114
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
3016
|
-
if (cidrBlock !== null) pushParam$
|
|
3115
|
+
if (cidrBlock !== null) pushParam$25(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
3017
3116
|
const satisfiedBuilder = {
|
|
3018
3117
|
withResourceGroup: (value) => {
|
|
3019
|
-
pushParam$
|
|
3118
|
+
pushParam$25(params, RESOURCE_GROUP_PARAM$2, value);
|
|
3020
3119
|
return satisfiedBuilder;
|
|
3021
3120
|
},
|
|
3022
3121
|
build: () => inner.build()
|
|
@@ -3035,16 +3134,16 @@ let AzureSubnet;
|
|
|
3035
3134
|
const AZURE_NSG_TYPE_NAME = "AzureNsg";
|
|
3036
3135
|
const LOCATION_PARAM$2 = "location";
|
|
3037
3136
|
const RESOURCE_GROUP_PARAM$1 = "resourceGroup";
|
|
3038
|
-
function buildId$
|
|
3137
|
+
function buildId$26(id) {
|
|
3039
3138
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3040
3139
|
}
|
|
3041
|
-
function buildVersion$
|
|
3140
|
+
function buildVersion$26(major, minor, patch) {
|
|
3042
3141
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3043
3142
|
}
|
|
3044
3143
|
function buildAzureNsgType() {
|
|
3045
3144
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_NSG_TYPE_NAME).build()).build();
|
|
3046
3145
|
}
|
|
3047
|
-
function pushParam$
|
|
3146
|
+
function pushParam$24(params, key, value) {
|
|
3048
3147
|
params.push(key, value);
|
|
3049
3148
|
}
|
|
3050
3149
|
let AzureNsg;
|
|
@@ -3054,11 +3153,11 @@ let AzureNsg;
|
|
|
3054
3153
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureNsgType()).withParameters(params).withProvider("Azure");
|
|
3055
3154
|
const builder = {
|
|
3056
3155
|
withId: (id) => {
|
|
3057
|
-
inner.withId(buildId$
|
|
3156
|
+
inner.withId(buildId$26(id));
|
|
3058
3157
|
return builder;
|
|
3059
3158
|
},
|
|
3060
3159
|
withVersion: (major, minor, patch) => {
|
|
3061
|
-
inner.withVersion(buildVersion$
|
|
3160
|
+
inner.withVersion(buildVersion$26(major, minor, patch));
|
|
3062
3161
|
return builder;
|
|
3063
3162
|
},
|
|
3064
3163
|
withDisplayName: (displayName) => {
|
|
@@ -3067,19 +3166,19 @@ let AzureNsg;
|
|
|
3067
3166
|
},
|
|
3068
3167
|
withDescription: (description) => {
|
|
3069
3168
|
inner.withDescription(description);
|
|
3070
|
-
pushParam$
|
|
3169
|
+
pushParam$24(params, DESCRIPTION_PARAM, description);
|
|
3071
3170
|
return builder;
|
|
3072
3171
|
},
|
|
3073
3172
|
withIngressRules: (rules) => {
|
|
3074
|
-
pushParam$
|
|
3173
|
+
pushParam$24(params, INGRESS_RULES_PARAM, rules);
|
|
3075
3174
|
return builder;
|
|
3076
3175
|
},
|
|
3077
3176
|
withLocation: (value) => {
|
|
3078
|
-
pushParam$
|
|
3177
|
+
pushParam$24(params, LOCATION_PARAM$2, value);
|
|
3079
3178
|
return builder;
|
|
3080
3179
|
},
|
|
3081
3180
|
withResourceGroup: (value) => {
|
|
3082
|
-
pushParam$
|
|
3181
|
+
pushParam$24(params, RESOURCE_GROUP_PARAM$1, value);
|
|
3083
3182
|
return builder;
|
|
3084
3183
|
},
|
|
3085
3184
|
build: () => inner.build()
|
|
@@ -3088,21 +3187,21 @@ let AzureNsg;
|
|
|
3088
3187
|
};
|
|
3089
3188
|
_AzureNsg.satisfy = (blueprint) => {
|
|
3090
3189
|
const params = getParametersInstance();
|
|
3091
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureNsgType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
3190
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureNsgType()).withParameters(params).withProvider("Azure").withId(buildId$26(blueprint.id.toString())).withVersion(buildVersion$26(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3092
3191
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
3093
3192
|
if (description !== null) {
|
|
3094
3193
|
inner.withDescription(String(description));
|
|
3095
|
-
pushParam$
|
|
3194
|
+
pushParam$24(params, DESCRIPTION_PARAM, String(description));
|
|
3096
3195
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3097
3196
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
3098
|
-
if (ingressRules !== null) pushParam$
|
|
3197
|
+
if (ingressRules !== null) pushParam$24(params, INGRESS_RULES_PARAM, ingressRules);
|
|
3099
3198
|
const satisfiedBuilder = {
|
|
3100
3199
|
withLocation: (value) => {
|
|
3101
|
-
pushParam$
|
|
3200
|
+
pushParam$24(params, LOCATION_PARAM$2, value);
|
|
3102
3201
|
return satisfiedBuilder;
|
|
3103
3202
|
},
|
|
3104
3203
|
withResourceGroup: (value) => {
|
|
3105
|
-
pushParam$
|
|
3204
|
+
pushParam$24(params, RESOURCE_GROUP_PARAM$1, value);
|
|
3106
3205
|
return satisfiedBuilder;
|
|
3107
3206
|
},
|
|
3108
3207
|
build: () => inner.build()
|
|
@@ -3129,16 +3228,16 @@ const IMAGE_OFFER_PARAM = "imageOffer";
|
|
|
3129
3228
|
const IMAGE_SKU_PARAM = "imageSku";
|
|
3130
3229
|
const SSH_PUBLIC_KEY_PARAM$1 = "sshPublicKey";
|
|
3131
3230
|
const OS_DISK_SIZE_GB_PARAM = "osDiskSizeGb";
|
|
3132
|
-
function buildId$
|
|
3231
|
+
function buildId$25(id) {
|
|
3133
3232
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3134
3233
|
}
|
|
3135
|
-
function buildVersion$
|
|
3234
|
+
function buildVersion$25(major, minor, patch) {
|
|
3136
3235
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3137
3236
|
}
|
|
3138
3237
|
function buildAzureVmType() {
|
|
3139
3238
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_VM_TYPE_NAME).build()).build();
|
|
3140
3239
|
}
|
|
3141
|
-
function pushParam$
|
|
3240
|
+
function pushParam$23(params, key, value) {
|
|
3142
3241
|
params.push(key, value);
|
|
3143
3242
|
}
|
|
3144
3243
|
let AzureVm;
|
|
@@ -3148,11 +3247,11 @@ let AzureVm;
|
|
|
3148
3247
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureVmType()).withParameters(params).withProvider("Azure");
|
|
3149
3248
|
const builder = {
|
|
3150
3249
|
withId: (id) => {
|
|
3151
|
-
inner.withId(buildId$
|
|
3250
|
+
inner.withId(buildId$25(id));
|
|
3152
3251
|
return builder;
|
|
3153
3252
|
},
|
|
3154
3253
|
withVersion: (major, minor, patch) => {
|
|
3155
|
-
inner.withVersion(buildVersion$
|
|
3254
|
+
inner.withVersion(buildVersion$25(major, minor, patch));
|
|
3156
3255
|
return builder;
|
|
3157
3256
|
},
|
|
3158
3257
|
withDisplayName: (displayName) => {
|
|
@@ -3164,39 +3263,39 @@ let AzureVm;
|
|
|
3164
3263
|
return builder;
|
|
3165
3264
|
},
|
|
3166
3265
|
withVmSize: (value) => {
|
|
3167
|
-
pushParam$
|
|
3266
|
+
pushParam$23(params, VM_SIZE_PARAM, value);
|
|
3168
3267
|
return builder;
|
|
3169
3268
|
},
|
|
3170
3269
|
withLocation: (value) => {
|
|
3171
|
-
pushParam$
|
|
3270
|
+
pushParam$23(params, LOCATION_PARAM$1, value);
|
|
3172
3271
|
return builder;
|
|
3173
3272
|
},
|
|
3174
3273
|
withResourceGroup: (value) => {
|
|
3175
|
-
pushParam$
|
|
3274
|
+
pushParam$23(params, RESOURCE_GROUP_PARAM, value);
|
|
3176
3275
|
return builder;
|
|
3177
3276
|
},
|
|
3178
3277
|
withAdminUsername: (value) => {
|
|
3179
|
-
pushParam$
|
|
3278
|
+
pushParam$23(params, ADMIN_USERNAME_PARAM, value);
|
|
3180
3279
|
return builder;
|
|
3181
3280
|
},
|
|
3182
3281
|
withImagePublisher: (value) => {
|
|
3183
|
-
pushParam$
|
|
3282
|
+
pushParam$23(params, IMAGE_PUBLISHER_PARAM, value);
|
|
3184
3283
|
return builder;
|
|
3185
3284
|
},
|
|
3186
3285
|
withImageOffer: (value) => {
|
|
3187
|
-
pushParam$
|
|
3286
|
+
pushParam$23(params, IMAGE_OFFER_PARAM, value);
|
|
3188
3287
|
return builder;
|
|
3189
3288
|
},
|
|
3190
3289
|
withImageSku: (value) => {
|
|
3191
|
-
pushParam$
|
|
3290
|
+
pushParam$23(params, IMAGE_SKU_PARAM, value);
|
|
3192
3291
|
return builder;
|
|
3193
3292
|
},
|
|
3194
3293
|
withSshPublicKey: (value) => {
|
|
3195
|
-
pushParam$
|
|
3294
|
+
pushParam$23(params, SSH_PUBLIC_KEY_PARAM$1, value);
|
|
3196
3295
|
return builder;
|
|
3197
3296
|
},
|
|
3198
3297
|
withOsDiskSizeGb: (value) => {
|
|
3199
|
-
pushParam$
|
|
3298
|
+
pushParam$23(params, OS_DISK_SIZE_GB_PARAM, value);
|
|
3200
3299
|
return builder;
|
|
3201
3300
|
},
|
|
3202
3301
|
build: () => inner.build()
|
|
@@ -3205,43 +3304,43 @@ let AzureVm;
|
|
|
3205
3304
|
};
|
|
3206
3305
|
_AzureVm.satisfy = (blueprint) => {
|
|
3207
3306
|
const params = getParametersInstance();
|
|
3208
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureVmType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
3307
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureVmType()).withParameters(params).withProvider("Azure").withId(buildId$25(blueprint.id.toString())).withVersion(buildVersion$25(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3209
3308
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3210
3309
|
const satisfiedBuilder = {
|
|
3211
3310
|
withVmSize: (value) => {
|
|
3212
|
-
pushParam$
|
|
3311
|
+
pushParam$23(params, VM_SIZE_PARAM, value);
|
|
3213
3312
|
return satisfiedBuilder;
|
|
3214
3313
|
},
|
|
3215
3314
|
withLocation: (value) => {
|
|
3216
|
-
pushParam$
|
|
3315
|
+
pushParam$23(params, LOCATION_PARAM$1, value);
|
|
3217
3316
|
return satisfiedBuilder;
|
|
3218
3317
|
},
|
|
3219
3318
|
withResourceGroup: (value) => {
|
|
3220
|
-
pushParam$
|
|
3319
|
+
pushParam$23(params, RESOURCE_GROUP_PARAM, value);
|
|
3221
3320
|
return satisfiedBuilder;
|
|
3222
3321
|
},
|
|
3223
3322
|
withAdminUsername: (value) => {
|
|
3224
|
-
pushParam$
|
|
3323
|
+
pushParam$23(params, ADMIN_USERNAME_PARAM, value);
|
|
3225
3324
|
return satisfiedBuilder;
|
|
3226
3325
|
},
|
|
3227
3326
|
withImagePublisher: (value) => {
|
|
3228
|
-
pushParam$
|
|
3327
|
+
pushParam$23(params, IMAGE_PUBLISHER_PARAM, value);
|
|
3229
3328
|
return satisfiedBuilder;
|
|
3230
3329
|
},
|
|
3231
3330
|
withImageOffer: (value) => {
|
|
3232
|
-
pushParam$
|
|
3331
|
+
pushParam$23(params, IMAGE_OFFER_PARAM, value);
|
|
3233
3332
|
return satisfiedBuilder;
|
|
3234
3333
|
},
|
|
3235
3334
|
withImageSku: (value) => {
|
|
3236
|
-
pushParam$
|
|
3335
|
+
pushParam$23(params, IMAGE_SKU_PARAM, value);
|
|
3237
3336
|
return satisfiedBuilder;
|
|
3238
3337
|
},
|
|
3239
3338
|
withSshPublicKey: (value) => {
|
|
3240
|
-
pushParam$
|
|
3339
|
+
pushParam$23(params, SSH_PUBLIC_KEY_PARAM$1, value);
|
|
3241
3340
|
return satisfiedBuilder;
|
|
3242
3341
|
},
|
|
3243
3342
|
withOsDiskSizeGb: (value) => {
|
|
3244
|
-
pushParam$
|
|
3343
|
+
pushParam$23(params, OS_DISK_SIZE_GB_PARAM, value);
|
|
3245
3344
|
return satisfiedBuilder;
|
|
3246
3345
|
},
|
|
3247
3346
|
build: () => inner.build()
|
|
@@ -3262,16 +3361,16 @@ let AzureVm;
|
|
|
3262
3361
|
const GCP_VPC_TYPE_NAME = "GcpVpc";
|
|
3263
3362
|
const AUTO_CREATE_SUBNETWORKS_PARAM = "autoCreateSubnetworks";
|
|
3264
3363
|
const ROUTING_MODE_PARAM = "routingMode";
|
|
3265
|
-
function buildId$
|
|
3364
|
+
function buildId$24(id) {
|
|
3266
3365
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3267
3366
|
}
|
|
3268
|
-
function buildVersion$
|
|
3367
|
+
function buildVersion$24(major, minor, patch) {
|
|
3269
3368
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3270
3369
|
}
|
|
3271
3370
|
function buildGcpVpcType() {
|
|
3272
3371
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_VPC_TYPE_NAME).build()).build();
|
|
3273
3372
|
}
|
|
3274
|
-
function pushParam$
|
|
3373
|
+
function pushParam$22(params, key, value) {
|
|
3275
3374
|
params.push(key, value);
|
|
3276
3375
|
}
|
|
3277
3376
|
let GcpVpc;
|
|
@@ -3281,11 +3380,11 @@ let GcpVpc;
|
|
|
3281
3380
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpVpcType()).withParameters(params).withProvider("GCP");
|
|
3282
3381
|
const builder = {
|
|
3283
3382
|
withId: (id) => {
|
|
3284
|
-
inner.withId(buildId$
|
|
3383
|
+
inner.withId(buildId$24(id));
|
|
3285
3384
|
return builder;
|
|
3286
3385
|
},
|
|
3287
3386
|
withVersion: (major, minor, patch) => {
|
|
3288
|
-
inner.withVersion(buildVersion$
|
|
3387
|
+
inner.withVersion(buildVersion$24(major, minor, patch));
|
|
3289
3388
|
return builder;
|
|
3290
3389
|
},
|
|
3291
3390
|
withDisplayName: (displayName) => {
|
|
@@ -3297,15 +3396,15 @@ let GcpVpc;
|
|
|
3297
3396
|
return builder;
|
|
3298
3397
|
},
|
|
3299
3398
|
withCidrBlock: (value) => {
|
|
3300
|
-
pushParam$
|
|
3399
|
+
pushParam$22(params, CIDR_BLOCK_PARAM$1, value);
|
|
3301
3400
|
return builder;
|
|
3302
3401
|
},
|
|
3303
3402
|
withAutoCreateSubnetworks: (value) => {
|
|
3304
|
-
pushParam$
|
|
3403
|
+
pushParam$22(params, AUTO_CREATE_SUBNETWORKS_PARAM, value);
|
|
3305
3404
|
return builder;
|
|
3306
3405
|
},
|
|
3307
3406
|
withRoutingMode: (value) => {
|
|
3308
|
-
pushParam$
|
|
3407
|
+
pushParam$22(params, ROUTING_MODE_PARAM, value);
|
|
3309
3408
|
return builder;
|
|
3310
3409
|
},
|
|
3311
3410
|
build: () => inner.build()
|
|
@@ -3314,17 +3413,17 @@ let GcpVpc;
|
|
|
3314
3413
|
};
|
|
3315
3414
|
_GcpVpc.satisfy = (blueprint) => {
|
|
3316
3415
|
const params = getParametersInstance();
|
|
3317
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpVpcType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
3416
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpVpcType()).withParameters(params).withProvider("GCP").withId(buildId$24(blueprint.id.toString())).withVersion(buildVersion$24(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3318
3417
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3319
3418
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
3320
|
-
if (cidrBlock !== null) pushParam$
|
|
3419
|
+
if (cidrBlock !== null) pushParam$22(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
3321
3420
|
const satisfiedBuilder = {
|
|
3322
3421
|
withAutoCreateSubnetworks: (value) => {
|
|
3323
|
-
pushParam$
|
|
3422
|
+
pushParam$22(params, AUTO_CREATE_SUBNETWORKS_PARAM, value);
|
|
3324
3423
|
return satisfiedBuilder;
|
|
3325
3424
|
},
|
|
3326
3425
|
withRoutingMode: (value) => {
|
|
3327
|
-
pushParam$
|
|
3426
|
+
pushParam$22(params, ROUTING_MODE_PARAM, value);
|
|
3328
3427
|
return satisfiedBuilder;
|
|
3329
3428
|
},
|
|
3330
3429
|
build: () => inner.build()
|
|
@@ -3345,16 +3444,16 @@ let GcpVpc;
|
|
|
3345
3444
|
const GCP_SUBNET_TYPE_NAME = "GcpSubnet";
|
|
3346
3445
|
const REGION_PARAM = "region";
|
|
3347
3446
|
const PRIVATE_IP_GOOGLE_ACCESS_PARAM = "privateIpGoogleAccess";
|
|
3348
|
-
function buildId$
|
|
3447
|
+
function buildId$23(id) {
|
|
3349
3448
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3350
3449
|
}
|
|
3351
|
-
function buildVersion$
|
|
3450
|
+
function buildVersion$23(major, minor, patch) {
|
|
3352
3451
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3353
3452
|
}
|
|
3354
3453
|
function buildGcpSubnetType() {
|
|
3355
3454
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_SUBNET_TYPE_NAME).build()).build();
|
|
3356
3455
|
}
|
|
3357
|
-
function pushParam$
|
|
3456
|
+
function pushParam$21(params, key, value) {
|
|
3358
3457
|
params.push(key, value);
|
|
3359
3458
|
}
|
|
3360
3459
|
let GcpSubnet;
|
|
@@ -3364,11 +3463,11 @@ let GcpSubnet;
|
|
|
3364
3463
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpSubnetType()).withParameters(params).withProvider("GCP");
|
|
3365
3464
|
const builder = {
|
|
3366
3465
|
withId: (id) => {
|
|
3367
|
-
inner.withId(buildId$
|
|
3466
|
+
inner.withId(buildId$23(id));
|
|
3368
3467
|
return builder;
|
|
3369
3468
|
},
|
|
3370
3469
|
withVersion: (major, minor, patch) => {
|
|
3371
|
-
inner.withVersion(buildVersion$
|
|
3470
|
+
inner.withVersion(buildVersion$23(major, minor, patch));
|
|
3372
3471
|
return builder;
|
|
3373
3472
|
},
|
|
3374
3473
|
withDisplayName: (displayName) => {
|
|
@@ -3380,15 +3479,15 @@ let GcpSubnet;
|
|
|
3380
3479
|
return builder;
|
|
3381
3480
|
},
|
|
3382
3481
|
withCidrBlock: (value) => {
|
|
3383
|
-
pushParam$
|
|
3482
|
+
pushParam$21(params, CIDR_BLOCK_PARAM, value);
|
|
3384
3483
|
return builder;
|
|
3385
3484
|
},
|
|
3386
3485
|
withRegion: (value) => {
|
|
3387
|
-
pushParam$
|
|
3486
|
+
pushParam$21(params, REGION_PARAM, value);
|
|
3388
3487
|
return builder;
|
|
3389
3488
|
},
|
|
3390
3489
|
withPrivateIpGoogleAccess: (value) => {
|
|
3391
|
-
pushParam$
|
|
3490
|
+
pushParam$21(params, PRIVATE_IP_GOOGLE_ACCESS_PARAM, value);
|
|
3392
3491
|
return builder;
|
|
3393
3492
|
},
|
|
3394
3493
|
build: () => inner.build()
|
|
@@ -3397,17 +3496,17 @@ let GcpSubnet;
|
|
|
3397
3496
|
};
|
|
3398
3497
|
_GcpSubnet.satisfy = (blueprint) => {
|
|
3399
3498
|
const params = getParametersInstance();
|
|
3400
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpSubnetType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
3499
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpSubnetType()).withParameters(params).withProvider("GCP").withId(buildId$23(blueprint.id.toString())).withVersion(buildVersion$23(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3401
3500
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3402
3501
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
3403
|
-
if (cidrBlock !== null) pushParam$
|
|
3502
|
+
if (cidrBlock !== null) pushParam$21(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
3404
3503
|
const satisfiedBuilder = {
|
|
3405
3504
|
withRegion: (value) => {
|
|
3406
|
-
pushParam$
|
|
3505
|
+
pushParam$21(params, REGION_PARAM, value);
|
|
3407
3506
|
return satisfiedBuilder;
|
|
3408
3507
|
},
|
|
3409
3508
|
withPrivateIpGoogleAccess: (value) => {
|
|
3410
|
-
pushParam$
|
|
3509
|
+
pushParam$21(params, PRIVATE_IP_GOOGLE_ACCESS_PARAM, value);
|
|
3411
3510
|
return satisfiedBuilder;
|
|
3412
3511
|
},
|
|
3413
3512
|
build: () => inner.build()
|
|
@@ -3425,16 +3524,16 @@ let GcpSubnet;
|
|
|
3425
3524
|
//#endregion
|
|
3426
3525
|
//#region src/live_system/component/network_and_compute/iaas/gcp_firewall.ts
|
|
3427
3526
|
const GCP_FIREWALL_TYPE_NAME = "GcpFirewall";
|
|
3428
|
-
function buildId$
|
|
3527
|
+
function buildId$22(id) {
|
|
3429
3528
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3430
3529
|
}
|
|
3431
|
-
function buildVersion$
|
|
3530
|
+
function buildVersion$22(major, minor, patch) {
|
|
3432
3531
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3433
3532
|
}
|
|
3434
3533
|
function buildGcpFirewallType() {
|
|
3435
3534
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_FIREWALL_TYPE_NAME).build()).build();
|
|
3436
3535
|
}
|
|
3437
|
-
function pushParam$
|
|
3536
|
+
function pushParam$20(params, key, value) {
|
|
3438
3537
|
params.push(key, value);
|
|
3439
3538
|
}
|
|
3440
3539
|
let GcpFirewall;
|
|
@@ -3444,11 +3543,11 @@ let GcpFirewall;
|
|
|
3444
3543
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpFirewallType()).withParameters(params).withProvider("GCP");
|
|
3445
3544
|
const builder = {
|
|
3446
3545
|
withId: (id) => {
|
|
3447
|
-
inner.withId(buildId$
|
|
3546
|
+
inner.withId(buildId$22(id));
|
|
3448
3547
|
return builder;
|
|
3449
3548
|
},
|
|
3450
3549
|
withVersion: (major, minor, patch) => {
|
|
3451
|
-
inner.withVersion(buildVersion$
|
|
3550
|
+
inner.withVersion(buildVersion$22(major, minor, patch));
|
|
3452
3551
|
return builder;
|
|
3453
3552
|
},
|
|
3454
3553
|
withDisplayName: (displayName) => {
|
|
@@ -3457,11 +3556,11 @@ let GcpFirewall;
|
|
|
3457
3556
|
},
|
|
3458
3557
|
withDescription: (description) => {
|
|
3459
3558
|
inner.withDescription(description);
|
|
3460
|
-
pushParam$
|
|
3559
|
+
pushParam$20(params, DESCRIPTION_PARAM, description);
|
|
3461
3560
|
return builder;
|
|
3462
3561
|
},
|
|
3463
3562
|
withIngressRules: (rules) => {
|
|
3464
|
-
pushParam$
|
|
3563
|
+
pushParam$20(params, INGRESS_RULES_PARAM, rules);
|
|
3465
3564
|
return builder;
|
|
3466
3565
|
},
|
|
3467
3566
|
build: () => inner.build()
|
|
@@ -3470,14 +3569,14 @@ let GcpFirewall;
|
|
|
3470
3569
|
};
|
|
3471
3570
|
_GcpFirewall.satisfy = (blueprint) => {
|
|
3472
3571
|
const params = getParametersInstance();
|
|
3473
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpFirewallType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
3572
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpFirewallType()).withParameters(params).withProvider("GCP").withId(buildId$22(blueprint.id.toString())).withVersion(buildVersion$22(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3474
3573
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
3475
3574
|
if (description !== null) {
|
|
3476
3575
|
inner.withDescription(String(description));
|
|
3477
|
-
pushParam$
|
|
3576
|
+
pushParam$20(params, DESCRIPTION_PARAM, String(description));
|
|
3478
3577
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3479
3578
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
3480
|
-
if (ingressRules !== null) pushParam$
|
|
3579
|
+
if (ingressRules !== null) pushParam$20(params, INGRESS_RULES_PARAM, ingressRules);
|
|
3481
3580
|
return { build: () => inner.build() };
|
|
3482
3581
|
};
|
|
3483
3582
|
_GcpFirewall.create = (config) => {
|
|
@@ -3496,16 +3595,16 @@ const ZONE_PARAM = "zone";
|
|
|
3496
3595
|
const IMAGE_PROJECT_PARAM = "imageProject";
|
|
3497
3596
|
const IMAGE_FAMILY_PARAM = "imageFamily";
|
|
3498
3597
|
const SERVICE_ACCOUNT_EMAIL_PARAM = "serviceAccountEmail";
|
|
3499
|
-
function buildId$
|
|
3598
|
+
function buildId$21(id) {
|
|
3500
3599
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3501
3600
|
}
|
|
3502
|
-
function buildVersion$
|
|
3601
|
+
function buildVersion$21(major, minor, patch) {
|
|
3503
3602
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3504
3603
|
}
|
|
3505
3604
|
function buildGcpVmType() {
|
|
3506
3605
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_VM_TYPE_NAME).build()).build();
|
|
3507
3606
|
}
|
|
3508
|
-
function pushParam$
|
|
3607
|
+
function pushParam$19(params, key, value) {
|
|
3509
3608
|
params.push(key, value);
|
|
3510
3609
|
}
|
|
3511
3610
|
let GcpVm;
|
|
@@ -3515,11 +3614,11 @@ let GcpVm;
|
|
|
3515
3614
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpVmType()).withParameters(params).withProvider("GCP");
|
|
3516
3615
|
const builder = {
|
|
3517
3616
|
withId: (id) => {
|
|
3518
|
-
inner.withId(buildId$
|
|
3617
|
+
inner.withId(buildId$21(id));
|
|
3519
3618
|
return builder;
|
|
3520
3619
|
},
|
|
3521
3620
|
withVersion: (major, minor, patch) => {
|
|
3522
|
-
inner.withVersion(buildVersion$
|
|
3621
|
+
inner.withVersion(buildVersion$21(major, minor, patch));
|
|
3523
3622
|
return builder;
|
|
3524
3623
|
},
|
|
3525
3624
|
withDisplayName: (displayName) => {
|
|
@@ -3531,23 +3630,23 @@ let GcpVm;
|
|
|
3531
3630
|
return builder;
|
|
3532
3631
|
},
|
|
3533
3632
|
withMachineType: (value) => {
|
|
3534
|
-
pushParam$
|
|
3633
|
+
pushParam$19(params, MACHINE_TYPE_PARAM, value);
|
|
3535
3634
|
return builder;
|
|
3536
3635
|
},
|
|
3537
3636
|
withZone: (value) => {
|
|
3538
|
-
pushParam$
|
|
3637
|
+
pushParam$19(params, ZONE_PARAM, value);
|
|
3539
3638
|
return builder;
|
|
3540
3639
|
},
|
|
3541
3640
|
withImageProject: (value) => {
|
|
3542
|
-
pushParam$
|
|
3641
|
+
pushParam$19(params, IMAGE_PROJECT_PARAM, value);
|
|
3543
3642
|
return builder;
|
|
3544
3643
|
},
|
|
3545
3644
|
withImageFamily: (value) => {
|
|
3546
|
-
pushParam$
|
|
3645
|
+
pushParam$19(params, IMAGE_FAMILY_PARAM, value);
|
|
3547
3646
|
return builder;
|
|
3548
3647
|
},
|
|
3549
3648
|
withServiceAccountEmail: (value) => {
|
|
3550
|
-
pushParam$
|
|
3649
|
+
pushParam$19(params, SERVICE_ACCOUNT_EMAIL_PARAM, value);
|
|
3551
3650
|
return builder;
|
|
3552
3651
|
},
|
|
3553
3652
|
build: () => inner.build()
|
|
@@ -3556,27 +3655,27 @@ let GcpVm;
|
|
|
3556
3655
|
};
|
|
3557
3656
|
_GcpVm.satisfy = (blueprint) => {
|
|
3558
3657
|
const params = getParametersInstance();
|
|
3559
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpVmType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
3658
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpVmType()).withParameters(params).withProvider("GCP").withId(buildId$21(blueprint.id.toString())).withVersion(buildVersion$21(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3560
3659
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3561
3660
|
const satisfiedBuilder = {
|
|
3562
3661
|
withMachineType: (value) => {
|
|
3563
|
-
pushParam$
|
|
3662
|
+
pushParam$19(params, MACHINE_TYPE_PARAM, value);
|
|
3564
3663
|
return satisfiedBuilder;
|
|
3565
3664
|
},
|
|
3566
3665
|
withZone: (value) => {
|
|
3567
|
-
pushParam$
|
|
3666
|
+
pushParam$19(params, ZONE_PARAM, value);
|
|
3568
3667
|
return satisfiedBuilder;
|
|
3569
3668
|
},
|
|
3570
3669
|
withImageProject: (value) => {
|
|
3571
|
-
pushParam$
|
|
3670
|
+
pushParam$19(params, IMAGE_PROJECT_PARAM, value);
|
|
3572
3671
|
return satisfiedBuilder;
|
|
3573
3672
|
},
|
|
3574
3673
|
withImageFamily: (value) => {
|
|
3575
|
-
pushParam$
|
|
3674
|
+
pushParam$19(params, IMAGE_FAMILY_PARAM, value);
|
|
3576
3675
|
return satisfiedBuilder;
|
|
3577
3676
|
},
|
|
3578
3677
|
withServiceAccountEmail: (value) => {
|
|
3579
|
-
pushParam$
|
|
3678
|
+
pushParam$19(params, SERVICE_ACCOUNT_EMAIL_PARAM, value);
|
|
3580
3679
|
return satisfiedBuilder;
|
|
3581
3680
|
},
|
|
3582
3681
|
build: () => inner.build()
|
|
@@ -3596,16 +3695,16 @@ let GcpVm;
|
|
|
3596
3695
|
//#region src/live_system/component/network_and_compute/iaas/oci_vcn.ts
|
|
3597
3696
|
const OCI_VCN_TYPE_NAME = "OciVcn";
|
|
3598
3697
|
const COMPARTMENT_ID_PARAM$3 = "compartmentId";
|
|
3599
|
-
function buildId$
|
|
3698
|
+
function buildId$20(id) {
|
|
3600
3699
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3601
3700
|
}
|
|
3602
|
-
function buildVersion$
|
|
3701
|
+
function buildVersion$20(major, minor, patch) {
|
|
3603
3702
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3604
3703
|
}
|
|
3605
3704
|
function buildOciVcnType() {
|
|
3606
3705
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_VCN_TYPE_NAME).build()).build();
|
|
3607
3706
|
}
|
|
3608
|
-
function pushParam$
|
|
3707
|
+
function pushParam$18(params, key, value) {
|
|
3609
3708
|
params.push(key, value);
|
|
3610
3709
|
}
|
|
3611
3710
|
let OciVcn;
|
|
@@ -3615,11 +3714,11 @@ let OciVcn;
|
|
|
3615
3714
|
const inner = getLiveSystemComponentBuilder().withType(buildOciVcnType()).withParameters(params).withProvider("OCI");
|
|
3616
3715
|
const builder = {
|
|
3617
3716
|
withId: (id) => {
|
|
3618
|
-
inner.withId(buildId$
|
|
3717
|
+
inner.withId(buildId$20(id));
|
|
3619
3718
|
return builder;
|
|
3620
3719
|
},
|
|
3621
3720
|
withVersion: (major, minor, patch) => {
|
|
3622
|
-
inner.withVersion(buildVersion$
|
|
3721
|
+
inner.withVersion(buildVersion$20(major, minor, patch));
|
|
3623
3722
|
return builder;
|
|
3624
3723
|
},
|
|
3625
3724
|
withDisplayName: (displayName) => {
|
|
@@ -3631,11 +3730,11 @@ let OciVcn;
|
|
|
3631
3730
|
return builder;
|
|
3632
3731
|
},
|
|
3633
3732
|
withCidrBlock: (value) => {
|
|
3634
|
-
pushParam$
|
|
3733
|
+
pushParam$18(params, CIDR_BLOCK_PARAM$1, value);
|
|
3635
3734
|
return builder;
|
|
3636
3735
|
},
|
|
3637
3736
|
withCompartmentId: (value) => {
|
|
3638
|
-
pushParam$
|
|
3737
|
+
pushParam$18(params, COMPARTMENT_ID_PARAM$3, value);
|
|
3639
3738
|
return builder;
|
|
3640
3739
|
},
|
|
3641
3740
|
build: () => inner.build()
|
|
@@ -3644,13 +3743,13 @@ let OciVcn;
|
|
|
3644
3743
|
};
|
|
3645
3744
|
_OciVcn.satisfy = (blueprint) => {
|
|
3646
3745
|
const params = getParametersInstance();
|
|
3647
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciVcnType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
3746
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciVcnType()).withParameters(params).withProvider("OCI").withId(buildId$20(blueprint.id.toString())).withVersion(buildVersion$20(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3648
3747
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3649
3748
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
3650
|
-
if (cidrBlock !== null) pushParam$
|
|
3749
|
+
if (cidrBlock !== null) pushParam$18(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
3651
3750
|
const satisfiedBuilder = {
|
|
3652
3751
|
withCompartmentId: (value) => {
|
|
3653
|
-
pushParam$
|
|
3752
|
+
pushParam$18(params, COMPARTMENT_ID_PARAM$3, value);
|
|
3654
3753
|
return satisfiedBuilder;
|
|
3655
3754
|
},
|
|
3656
3755
|
build: () => inner.build()
|
|
@@ -3670,16 +3769,16 @@ const OCI_SUBNET_TYPE_NAME = "OciSubnet";
|
|
|
3670
3769
|
const COMPARTMENT_ID_PARAM$2 = "compartmentId";
|
|
3671
3770
|
const AVAILABILITY_DOMAIN_PARAM$1 = "availabilityDomain";
|
|
3672
3771
|
const PROHIBIT_PUBLIC_IP_PARAM = "prohibitPublicIpOnVnic";
|
|
3673
|
-
function buildId$
|
|
3772
|
+
function buildId$19(id) {
|
|
3674
3773
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3675
3774
|
}
|
|
3676
|
-
function buildVersion$
|
|
3775
|
+
function buildVersion$19(major, minor, patch) {
|
|
3677
3776
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3678
3777
|
}
|
|
3679
3778
|
function buildOciSubnetType() {
|
|
3680
3779
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_SUBNET_TYPE_NAME).build()).build();
|
|
3681
3780
|
}
|
|
3682
|
-
function pushParam$
|
|
3781
|
+
function pushParam$17(params, key, value) {
|
|
3683
3782
|
params.push(key, value);
|
|
3684
3783
|
}
|
|
3685
3784
|
let OciSubnet;
|
|
@@ -3689,11 +3788,11 @@ let OciSubnet;
|
|
|
3689
3788
|
const inner = getLiveSystemComponentBuilder().withType(buildOciSubnetType()).withParameters(params).withProvider("OCI");
|
|
3690
3789
|
const builder = {
|
|
3691
3790
|
withId: (id) => {
|
|
3692
|
-
inner.withId(buildId$
|
|
3791
|
+
inner.withId(buildId$19(id));
|
|
3693
3792
|
return builder;
|
|
3694
3793
|
},
|
|
3695
3794
|
withVersion: (major, minor, patch) => {
|
|
3696
|
-
inner.withVersion(buildVersion$
|
|
3795
|
+
inner.withVersion(buildVersion$19(major, minor, patch));
|
|
3697
3796
|
return builder;
|
|
3698
3797
|
},
|
|
3699
3798
|
withDisplayName: (displayName) => {
|
|
@@ -3705,19 +3804,19 @@ let OciSubnet;
|
|
|
3705
3804
|
return builder;
|
|
3706
3805
|
},
|
|
3707
3806
|
withCidrBlock: (value) => {
|
|
3708
|
-
pushParam$
|
|
3807
|
+
pushParam$17(params, CIDR_BLOCK_PARAM, value);
|
|
3709
3808
|
return builder;
|
|
3710
3809
|
},
|
|
3711
3810
|
withCompartmentId: (value) => {
|
|
3712
|
-
pushParam$
|
|
3811
|
+
pushParam$17(params, COMPARTMENT_ID_PARAM$2, value);
|
|
3713
3812
|
return builder;
|
|
3714
3813
|
},
|
|
3715
3814
|
withAvailabilityDomain: (value) => {
|
|
3716
|
-
pushParam$
|
|
3815
|
+
pushParam$17(params, AVAILABILITY_DOMAIN_PARAM$1, value);
|
|
3717
3816
|
return builder;
|
|
3718
3817
|
},
|
|
3719
3818
|
withProhibitPublicIpOnVnic: (value) => {
|
|
3720
|
-
pushParam$
|
|
3819
|
+
pushParam$17(params, PROHIBIT_PUBLIC_IP_PARAM, value);
|
|
3721
3820
|
return builder;
|
|
3722
3821
|
},
|
|
3723
3822
|
build: () => inner.build()
|
|
@@ -3726,21 +3825,21 @@ let OciSubnet;
|
|
|
3726
3825
|
};
|
|
3727
3826
|
_OciSubnet.satisfy = (blueprint) => {
|
|
3728
3827
|
const params = getParametersInstance();
|
|
3729
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciSubnetType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
3828
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciSubnetType()).withParameters(params).withProvider("OCI").withId(buildId$19(blueprint.id.toString())).withVersion(buildVersion$19(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3730
3829
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3731
3830
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
3732
|
-
if (cidrBlock !== null) pushParam$
|
|
3831
|
+
if (cidrBlock !== null) pushParam$17(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
3733
3832
|
const satisfiedBuilder = {
|
|
3734
3833
|
withCompartmentId: (value) => {
|
|
3735
|
-
pushParam$
|
|
3834
|
+
pushParam$17(params, COMPARTMENT_ID_PARAM$2, value);
|
|
3736
3835
|
return satisfiedBuilder;
|
|
3737
3836
|
},
|
|
3738
3837
|
withAvailabilityDomain: (value) => {
|
|
3739
|
-
pushParam$
|
|
3838
|
+
pushParam$17(params, AVAILABILITY_DOMAIN_PARAM$1, value);
|
|
3740
3839
|
return satisfiedBuilder;
|
|
3741
3840
|
},
|
|
3742
3841
|
withProhibitPublicIpOnVnic: (value) => {
|
|
3743
|
-
pushParam$
|
|
3842
|
+
pushParam$17(params, PROHIBIT_PUBLIC_IP_PARAM, value);
|
|
3744
3843
|
return satisfiedBuilder;
|
|
3745
3844
|
},
|
|
3746
3845
|
build: () => inner.build()
|
|
@@ -3760,16 +3859,16 @@ let OciSubnet;
|
|
|
3760
3859
|
//#region src/live_system/component/network_and_compute/iaas/oci_security_list.ts
|
|
3761
3860
|
const OCI_SECURITY_LIST_TYPE_NAME = "OciSecurityList";
|
|
3762
3861
|
const COMPARTMENT_ID_PARAM$1 = "compartmentId";
|
|
3763
|
-
function buildId$
|
|
3862
|
+
function buildId$18(id) {
|
|
3764
3863
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3765
3864
|
}
|
|
3766
|
-
function buildVersion$
|
|
3865
|
+
function buildVersion$18(major, minor, patch) {
|
|
3767
3866
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3768
3867
|
}
|
|
3769
3868
|
function buildOciSecurityListType() {
|
|
3770
3869
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_SECURITY_LIST_TYPE_NAME).build()).build();
|
|
3771
3870
|
}
|
|
3772
|
-
function pushParam$
|
|
3871
|
+
function pushParam$16(params, key, value) {
|
|
3773
3872
|
params.push(key, value);
|
|
3774
3873
|
}
|
|
3775
3874
|
let OciSecurityList;
|
|
@@ -3779,11 +3878,11 @@ let OciSecurityList;
|
|
|
3779
3878
|
const inner = getLiveSystemComponentBuilder().withType(buildOciSecurityListType()).withParameters(params).withProvider("OCI");
|
|
3780
3879
|
const builder = {
|
|
3781
3880
|
withId: (id) => {
|
|
3782
|
-
inner.withId(buildId$
|
|
3881
|
+
inner.withId(buildId$18(id));
|
|
3783
3882
|
return builder;
|
|
3784
3883
|
},
|
|
3785
3884
|
withVersion: (major, minor, patch) => {
|
|
3786
|
-
inner.withVersion(buildVersion$
|
|
3885
|
+
inner.withVersion(buildVersion$18(major, minor, patch));
|
|
3787
3886
|
return builder;
|
|
3788
3887
|
},
|
|
3789
3888
|
withDisplayName: (displayName) => {
|
|
@@ -3792,15 +3891,15 @@ let OciSecurityList;
|
|
|
3792
3891
|
},
|
|
3793
3892
|
withDescription: (description) => {
|
|
3794
3893
|
inner.withDescription(description);
|
|
3795
|
-
pushParam$
|
|
3894
|
+
pushParam$16(params, DESCRIPTION_PARAM, description);
|
|
3796
3895
|
return builder;
|
|
3797
3896
|
},
|
|
3798
3897
|
withIngressRules: (rules) => {
|
|
3799
|
-
pushParam$
|
|
3898
|
+
pushParam$16(params, INGRESS_RULES_PARAM, rules);
|
|
3800
3899
|
return builder;
|
|
3801
3900
|
},
|
|
3802
3901
|
withCompartmentId: (value) => {
|
|
3803
|
-
pushParam$
|
|
3902
|
+
pushParam$16(params, COMPARTMENT_ID_PARAM$1, value);
|
|
3804
3903
|
return builder;
|
|
3805
3904
|
},
|
|
3806
3905
|
build: () => inner.build()
|
|
@@ -3809,17 +3908,17 @@ let OciSecurityList;
|
|
|
3809
3908
|
};
|
|
3810
3909
|
_OciSecurityList.satisfy = (blueprint) => {
|
|
3811
3910
|
const params = getParametersInstance();
|
|
3812
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciSecurityListType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
3911
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciSecurityListType()).withParameters(params).withProvider("OCI").withId(buildId$18(blueprint.id.toString())).withVersion(buildVersion$18(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3813
3912
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
3814
3913
|
if (description !== null) {
|
|
3815
3914
|
inner.withDescription(String(description));
|
|
3816
|
-
pushParam$
|
|
3915
|
+
pushParam$16(params, DESCRIPTION_PARAM, String(description));
|
|
3817
3916
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3818
3917
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
3819
|
-
if (ingressRules !== null) pushParam$
|
|
3918
|
+
if (ingressRules !== null) pushParam$16(params, INGRESS_RULES_PARAM, ingressRules);
|
|
3820
3919
|
const satisfiedBuilder = {
|
|
3821
3920
|
withCompartmentId: (value) => {
|
|
3822
|
-
pushParam$
|
|
3921
|
+
pushParam$16(params, COMPARTMENT_ID_PARAM$1, value);
|
|
3823
3922
|
return satisfiedBuilder;
|
|
3824
3923
|
},
|
|
3825
3924
|
build: () => inner.build()
|
|
@@ -3844,16 +3943,16 @@ const IMAGE_ID_PARAM = "imageId";
|
|
|
3844
3943
|
const OCPUS_PARAM = "ocpus";
|
|
3845
3944
|
const MEMORY_IN_GBS_PARAM = "memoryInGbs";
|
|
3846
3945
|
const SSH_PUBLIC_KEY_PARAM = "sshPublicKey";
|
|
3847
|
-
function buildId$
|
|
3946
|
+
function buildId$17(id) {
|
|
3848
3947
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3849
3948
|
}
|
|
3850
|
-
function buildVersion$
|
|
3949
|
+
function buildVersion$17(major, minor, patch) {
|
|
3851
3950
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3852
3951
|
}
|
|
3853
3952
|
function buildOciInstanceType() {
|
|
3854
3953
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_INSTANCE_TYPE_NAME).build()).build();
|
|
3855
3954
|
}
|
|
3856
|
-
function pushParam$
|
|
3955
|
+
function pushParam$15(params, key, value) {
|
|
3857
3956
|
params.push(key, value);
|
|
3858
3957
|
}
|
|
3859
3958
|
let OciInstance;
|
|
@@ -3863,11 +3962,11 @@ let OciInstance;
|
|
|
3863
3962
|
const inner = getLiveSystemComponentBuilder().withType(buildOciInstanceType()).withParameters(params).withProvider("OCI");
|
|
3864
3963
|
const builder = {
|
|
3865
3964
|
withId: (id) => {
|
|
3866
|
-
inner.withId(buildId$
|
|
3965
|
+
inner.withId(buildId$17(id));
|
|
3867
3966
|
return builder;
|
|
3868
3967
|
},
|
|
3869
3968
|
withVersion: (major, minor, patch) => {
|
|
3870
|
-
inner.withVersion(buildVersion$
|
|
3969
|
+
inner.withVersion(buildVersion$17(major, minor, patch));
|
|
3871
3970
|
return builder;
|
|
3872
3971
|
},
|
|
3873
3972
|
withDisplayName: (displayName) => {
|
|
@@ -3879,31 +3978,31 @@ let OciInstance;
|
|
|
3879
3978
|
return builder;
|
|
3880
3979
|
},
|
|
3881
3980
|
withCompartmentId: (value) => {
|
|
3882
|
-
pushParam$
|
|
3981
|
+
pushParam$15(params, COMPARTMENT_ID_PARAM, value);
|
|
3883
3982
|
return builder;
|
|
3884
3983
|
},
|
|
3885
3984
|
withAvailabilityDomain: (value) => {
|
|
3886
|
-
pushParam$
|
|
3985
|
+
pushParam$15(params, AVAILABILITY_DOMAIN_PARAM, value);
|
|
3887
3986
|
return builder;
|
|
3888
3987
|
},
|
|
3889
3988
|
withShape: (value) => {
|
|
3890
|
-
pushParam$
|
|
3989
|
+
pushParam$15(params, SHAPE_PARAM, value);
|
|
3891
3990
|
return builder;
|
|
3892
3991
|
},
|
|
3893
3992
|
withImageId: (value) => {
|
|
3894
|
-
pushParam$
|
|
3993
|
+
pushParam$15(params, IMAGE_ID_PARAM, value);
|
|
3895
3994
|
return builder;
|
|
3896
3995
|
},
|
|
3897
3996
|
withOcpus: (value) => {
|
|
3898
|
-
pushParam$
|
|
3997
|
+
pushParam$15(params, OCPUS_PARAM, value);
|
|
3899
3998
|
return builder;
|
|
3900
3999
|
},
|
|
3901
4000
|
withMemoryInGbs: (value) => {
|
|
3902
|
-
pushParam$
|
|
4001
|
+
pushParam$15(params, MEMORY_IN_GBS_PARAM, value);
|
|
3903
4002
|
return builder;
|
|
3904
4003
|
},
|
|
3905
4004
|
withSshPublicKey: (value) => {
|
|
3906
|
-
pushParam$
|
|
4005
|
+
pushParam$15(params, SSH_PUBLIC_KEY_PARAM, value);
|
|
3907
4006
|
return builder;
|
|
3908
4007
|
},
|
|
3909
4008
|
build: () => inner.build()
|
|
@@ -3912,35 +4011,35 @@ let OciInstance;
|
|
|
3912
4011
|
};
|
|
3913
4012
|
_OciInstance.satisfy = (blueprint) => {
|
|
3914
4013
|
const params = getParametersInstance();
|
|
3915
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciInstanceType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
4014
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciInstanceType()).withParameters(params).withProvider("OCI").withId(buildId$17(blueprint.id.toString())).withVersion(buildVersion$17(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3916
4015
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3917
4016
|
const satisfiedBuilder = {
|
|
3918
4017
|
withCompartmentId: (value) => {
|
|
3919
|
-
pushParam$
|
|
4018
|
+
pushParam$15(params, COMPARTMENT_ID_PARAM, value);
|
|
3920
4019
|
return satisfiedBuilder;
|
|
3921
4020
|
},
|
|
3922
4021
|
withAvailabilityDomain: (value) => {
|
|
3923
|
-
pushParam$
|
|
4022
|
+
pushParam$15(params, AVAILABILITY_DOMAIN_PARAM, value);
|
|
3924
4023
|
return satisfiedBuilder;
|
|
3925
4024
|
},
|
|
3926
4025
|
withShape: (value) => {
|
|
3927
|
-
pushParam$
|
|
4026
|
+
pushParam$15(params, SHAPE_PARAM, value);
|
|
3928
4027
|
return satisfiedBuilder;
|
|
3929
4028
|
},
|
|
3930
4029
|
withImageId: (value) => {
|
|
3931
|
-
pushParam$
|
|
4030
|
+
pushParam$15(params, IMAGE_ID_PARAM, value);
|
|
3932
4031
|
return satisfiedBuilder;
|
|
3933
4032
|
},
|
|
3934
4033
|
withOcpus: (value) => {
|
|
3935
|
-
pushParam$
|
|
4034
|
+
pushParam$15(params, OCPUS_PARAM, value);
|
|
3936
4035
|
return satisfiedBuilder;
|
|
3937
4036
|
},
|
|
3938
4037
|
withMemoryInGbs: (value) => {
|
|
3939
|
-
pushParam$
|
|
4038
|
+
pushParam$15(params, MEMORY_IN_GBS_PARAM, value);
|
|
3940
4039
|
return satisfiedBuilder;
|
|
3941
4040
|
},
|
|
3942
4041
|
withSshPublicKey: (value) => {
|
|
3943
|
-
pushParam$
|
|
4042
|
+
pushParam$15(params, SSH_PUBLIC_KEY_PARAM, value);
|
|
3944
4043
|
return satisfiedBuilder;
|
|
3945
4044
|
},
|
|
3946
4045
|
build: () => inner.build()
|
|
@@ -3960,16 +4059,16 @@ let OciInstance;
|
|
|
3960
4059
|
//#endregion
|
|
3961
4060
|
//#region src/live_system/component/network_and_compute/iaas/hetzner_network.ts
|
|
3962
4061
|
const HETZNER_NETWORK_TYPE_NAME = "HetznerNetwork";
|
|
3963
|
-
function buildId$
|
|
4062
|
+
function buildId$16(id) {
|
|
3964
4063
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3965
4064
|
}
|
|
3966
|
-
function buildVersion$
|
|
4065
|
+
function buildVersion$16(major, minor, patch) {
|
|
3967
4066
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3968
4067
|
}
|
|
3969
4068
|
function buildHetznerNetworkType() {
|
|
3970
4069
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_NETWORK_TYPE_NAME).build()).build();
|
|
3971
4070
|
}
|
|
3972
|
-
function pushParam$
|
|
4071
|
+
function pushParam$14(params, key, value) {
|
|
3973
4072
|
params.push(key, value);
|
|
3974
4073
|
}
|
|
3975
4074
|
let HetznerNetwork;
|
|
@@ -3979,11 +4078,11 @@ let HetznerNetwork;
|
|
|
3979
4078
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerNetworkType()).withParameters(params).withProvider("Hetzner");
|
|
3980
4079
|
const builder = {
|
|
3981
4080
|
withId: (id) => {
|
|
3982
|
-
inner.withId(buildId$
|
|
4081
|
+
inner.withId(buildId$16(id));
|
|
3983
4082
|
return builder;
|
|
3984
4083
|
},
|
|
3985
4084
|
withVersion: (major, minor, patch) => {
|
|
3986
|
-
inner.withVersion(buildVersion$
|
|
4085
|
+
inner.withVersion(buildVersion$16(major, minor, patch));
|
|
3987
4086
|
return builder;
|
|
3988
4087
|
},
|
|
3989
4088
|
withDisplayName: (displayName) => {
|
|
@@ -3995,7 +4094,7 @@ let HetznerNetwork;
|
|
|
3995
4094
|
return builder;
|
|
3996
4095
|
},
|
|
3997
4096
|
withCidrBlock: (value) => {
|
|
3998
|
-
pushParam$
|
|
4097
|
+
pushParam$14(params, CIDR_BLOCK_PARAM$1, value);
|
|
3999
4098
|
return builder;
|
|
4000
4099
|
},
|
|
4001
4100
|
build: () => inner.build()
|
|
@@ -4004,10 +4103,10 @@ let HetznerNetwork;
|
|
|
4004
4103
|
};
|
|
4005
4104
|
_HetznerNetwork.satisfy = (blueprint) => {
|
|
4006
4105
|
const params = getParametersInstance();
|
|
4007
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerNetworkType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
4106
|
+
const inner = getLiveSystemComponentBuilder().withType(buildHetznerNetworkType()).withParameters(params).withProvider("Hetzner").withId(buildId$16(blueprint.id.toString())).withVersion(buildVersion$16(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
4008
4107
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4009
4108
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
4010
|
-
if (cidrBlock !== null) pushParam$
|
|
4109
|
+
if (cidrBlock !== null) pushParam$14(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
4011
4110
|
return { build: () => inner.build() };
|
|
4012
4111
|
};
|
|
4013
4112
|
_HetznerNetwork.create = (config) => {
|
|
@@ -4022,16 +4121,16 @@ let HetznerNetwork;
|
|
|
4022
4121
|
const HETZNER_SUBNET_TYPE_NAME = "HetznerSubnet";
|
|
4023
4122
|
const NETWORK_ZONE_PARAM = "networkZone";
|
|
4024
4123
|
const TYPE_PARAM = "type";
|
|
4025
|
-
function buildId$
|
|
4124
|
+
function buildId$15(id) {
|
|
4026
4125
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4027
4126
|
}
|
|
4028
|
-
function buildVersion$
|
|
4127
|
+
function buildVersion$15(major, minor, patch) {
|
|
4029
4128
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4030
4129
|
}
|
|
4031
4130
|
function buildHetznerSubnetType() {
|
|
4032
4131
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_SUBNET_TYPE_NAME).build()).build();
|
|
4033
4132
|
}
|
|
4034
|
-
function pushParam$
|
|
4133
|
+
function pushParam$13(params, key, value) {
|
|
4035
4134
|
params.push(key, value);
|
|
4036
4135
|
}
|
|
4037
4136
|
let HetznerSubnet;
|
|
@@ -4041,11 +4140,11 @@ let HetznerSubnet;
|
|
|
4041
4140
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerSubnetType()).withParameters(params).withProvider("Hetzner");
|
|
4042
4141
|
const builder = {
|
|
4043
4142
|
withId: (id) => {
|
|
4044
|
-
inner.withId(buildId$
|
|
4143
|
+
inner.withId(buildId$15(id));
|
|
4045
4144
|
return builder;
|
|
4046
4145
|
},
|
|
4047
4146
|
withVersion: (major, minor, patch) => {
|
|
4048
|
-
inner.withVersion(buildVersion$
|
|
4147
|
+
inner.withVersion(buildVersion$15(major, minor, patch));
|
|
4049
4148
|
return builder;
|
|
4050
4149
|
},
|
|
4051
4150
|
withDisplayName: (displayName) => {
|
|
@@ -4057,15 +4156,15 @@ let HetznerSubnet;
|
|
|
4057
4156
|
return builder;
|
|
4058
4157
|
},
|
|
4059
4158
|
withCidrBlock: (value) => {
|
|
4060
|
-
pushParam$
|
|
4159
|
+
pushParam$13(params, CIDR_BLOCK_PARAM, value);
|
|
4061
4160
|
return builder;
|
|
4062
4161
|
},
|
|
4063
4162
|
withNetworkZone: (value) => {
|
|
4064
|
-
pushParam$
|
|
4163
|
+
pushParam$13(params, NETWORK_ZONE_PARAM, value);
|
|
4065
4164
|
return builder;
|
|
4066
4165
|
},
|
|
4067
4166
|
withType: (value) => {
|
|
4068
|
-
pushParam$
|
|
4167
|
+
pushParam$13(params, TYPE_PARAM, value);
|
|
4069
4168
|
return builder;
|
|
4070
4169
|
},
|
|
4071
4170
|
build: () => inner.build()
|
|
@@ -4074,17 +4173,17 @@ let HetznerSubnet;
|
|
|
4074
4173
|
};
|
|
4075
4174
|
_HetznerSubnet.satisfy = (blueprint) => {
|
|
4076
4175
|
const params = getParametersInstance();
|
|
4077
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerSubnetType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
4176
|
+
const inner = getLiveSystemComponentBuilder().withType(buildHetznerSubnetType()).withParameters(params).withProvider("Hetzner").withId(buildId$15(blueprint.id.toString())).withVersion(buildVersion$15(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
4078
4177
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4079
4178
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
4080
|
-
if (cidrBlock !== null) pushParam$
|
|
4179
|
+
if (cidrBlock !== null) pushParam$13(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
4081
4180
|
const satisfiedBuilder = {
|
|
4082
4181
|
withNetworkZone: (value) => {
|
|
4083
|
-
pushParam$
|
|
4182
|
+
pushParam$13(params, NETWORK_ZONE_PARAM, value);
|
|
4084
4183
|
return satisfiedBuilder;
|
|
4085
4184
|
},
|
|
4086
4185
|
withType: (value) => {
|
|
4087
|
-
pushParam$
|
|
4186
|
+
pushParam$13(params, TYPE_PARAM, value);
|
|
4088
4187
|
return satisfiedBuilder;
|
|
4089
4188
|
},
|
|
4090
4189
|
build: () => inner.build()
|
|
@@ -4102,16 +4201,16 @@ let HetznerSubnet;
|
|
|
4102
4201
|
//#endregion
|
|
4103
4202
|
//#region src/live_system/component/network_and_compute/iaas/hetzner_firewall.ts
|
|
4104
4203
|
const HETZNER_FIREWALL_TYPE_NAME = "HetznerFirewall";
|
|
4105
|
-
function buildId$
|
|
4204
|
+
function buildId$14(id) {
|
|
4106
4205
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4107
4206
|
}
|
|
4108
|
-
function buildVersion$
|
|
4207
|
+
function buildVersion$14(major, minor, patch) {
|
|
4109
4208
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4110
4209
|
}
|
|
4111
4210
|
function buildHetznerFirewallType() {
|
|
4112
4211
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_FIREWALL_TYPE_NAME).build()).build();
|
|
4113
4212
|
}
|
|
4114
|
-
function pushParam$
|
|
4213
|
+
function pushParam$12(params, key, value) {
|
|
4115
4214
|
params.push(key, value);
|
|
4116
4215
|
}
|
|
4117
4216
|
let HetznerFirewall;
|
|
@@ -4121,11 +4220,11 @@ let HetznerFirewall;
|
|
|
4121
4220
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerFirewallType()).withParameters(params).withProvider("Hetzner");
|
|
4122
4221
|
const builder = {
|
|
4123
4222
|
withId: (id) => {
|
|
4124
|
-
inner.withId(buildId$
|
|
4223
|
+
inner.withId(buildId$14(id));
|
|
4125
4224
|
return builder;
|
|
4126
4225
|
},
|
|
4127
4226
|
withVersion: (major, minor, patch) => {
|
|
4128
|
-
inner.withVersion(buildVersion$
|
|
4227
|
+
inner.withVersion(buildVersion$14(major, minor, patch));
|
|
4129
4228
|
return builder;
|
|
4130
4229
|
},
|
|
4131
4230
|
withDisplayName: (displayName) => {
|
|
@@ -4134,11 +4233,11 @@ let HetznerFirewall;
|
|
|
4134
4233
|
},
|
|
4135
4234
|
withDescription: (description) => {
|
|
4136
4235
|
inner.withDescription(description);
|
|
4137
|
-
pushParam$
|
|
4236
|
+
pushParam$12(params, DESCRIPTION_PARAM, description);
|
|
4138
4237
|
return builder;
|
|
4139
4238
|
},
|
|
4140
4239
|
withIngressRules: (rules) => {
|
|
4141
|
-
pushParam$
|
|
4240
|
+
pushParam$12(params, INGRESS_RULES_PARAM, rules);
|
|
4142
4241
|
return builder;
|
|
4143
4242
|
},
|
|
4144
4243
|
build: () => inner.build()
|
|
@@ -4147,14 +4246,14 @@ let HetznerFirewall;
|
|
|
4147
4246
|
};
|
|
4148
4247
|
_HetznerFirewall.satisfy = (blueprint) => {
|
|
4149
4248
|
const params = getParametersInstance();
|
|
4150
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerFirewallType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
4249
|
+
const inner = getLiveSystemComponentBuilder().withType(buildHetznerFirewallType()).withParameters(params).withProvider("Hetzner").withId(buildId$14(blueprint.id.toString())).withVersion(buildVersion$14(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
4151
4250
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
4152
4251
|
if (description !== null) {
|
|
4153
4252
|
inner.withDescription(String(description));
|
|
4154
|
-
pushParam$
|
|
4253
|
+
pushParam$12(params, DESCRIPTION_PARAM, String(description));
|
|
4155
4254
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4156
4255
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
4157
|
-
if (ingressRules !== null) pushParam$
|
|
4256
|
+
if (ingressRules !== null) pushParam$12(params, INGRESS_RULES_PARAM, ingressRules);
|
|
4158
4257
|
return { build: () => inner.build() };
|
|
4159
4258
|
};
|
|
4160
4259
|
_HetznerFirewall.create = (config) => {
|
|
@@ -4173,16 +4272,16 @@ const LOCATION_PARAM = "location";
|
|
|
4173
4272
|
const IMAGE_PARAM = "image";
|
|
4174
4273
|
const SSH_KEYS_PARAM = "sshKeys";
|
|
4175
4274
|
const USER_DATA_PARAM = "userData";
|
|
4176
|
-
function buildId$
|
|
4275
|
+
function buildId$13(id) {
|
|
4177
4276
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4178
4277
|
}
|
|
4179
|
-
function buildVersion$
|
|
4278
|
+
function buildVersion$13(major, minor, patch) {
|
|
4180
4279
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4181
4280
|
}
|
|
4182
4281
|
function buildHetznerServerType() {
|
|
4183
4282
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_SERVER_TYPE_NAME).build()).build();
|
|
4184
4283
|
}
|
|
4185
|
-
function pushParam$
|
|
4284
|
+
function pushParam$11(params, key, value) {
|
|
4186
4285
|
params.push(key, value);
|
|
4187
4286
|
}
|
|
4188
4287
|
let HetznerServer;
|
|
@@ -4192,11 +4291,11 @@ let HetznerServer;
|
|
|
4192
4291
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerServerType()).withParameters(params).withProvider("Hetzner");
|
|
4193
4292
|
const builder = {
|
|
4194
4293
|
withId: (id) => {
|
|
4195
|
-
inner.withId(buildId$
|
|
4294
|
+
inner.withId(buildId$13(id));
|
|
4196
4295
|
return builder;
|
|
4197
4296
|
},
|
|
4198
4297
|
withVersion: (major, minor, patch) => {
|
|
4199
|
-
inner.withVersion(buildVersion$
|
|
4298
|
+
inner.withVersion(buildVersion$13(major, minor, patch));
|
|
4200
4299
|
return builder;
|
|
4201
4300
|
},
|
|
4202
4301
|
withDisplayName: (displayName) => {
|
|
@@ -4208,23 +4307,23 @@ let HetznerServer;
|
|
|
4208
4307
|
return builder;
|
|
4209
4308
|
},
|
|
4210
4309
|
withServerType: (value) => {
|
|
4211
|
-
pushParam$
|
|
4310
|
+
pushParam$11(params, SERVER_TYPE_PARAM, value);
|
|
4212
4311
|
return builder;
|
|
4213
4312
|
},
|
|
4214
4313
|
withLocation: (value) => {
|
|
4215
|
-
pushParam$
|
|
4314
|
+
pushParam$11(params, LOCATION_PARAM, value);
|
|
4216
4315
|
return builder;
|
|
4217
4316
|
},
|
|
4218
4317
|
withImage: (value) => {
|
|
4219
|
-
pushParam$
|
|
4318
|
+
pushParam$11(params, IMAGE_PARAM, value);
|
|
4220
4319
|
return builder;
|
|
4221
4320
|
},
|
|
4222
4321
|
withSshKeys: (value) => {
|
|
4223
|
-
pushParam$
|
|
4322
|
+
pushParam$11(params, SSH_KEYS_PARAM, value);
|
|
4224
4323
|
return builder;
|
|
4225
4324
|
},
|
|
4226
4325
|
withUserData: (value) => {
|
|
4227
|
-
pushParam$
|
|
4326
|
+
pushParam$11(params, USER_DATA_PARAM, value);
|
|
4228
4327
|
return builder;
|
|
4229
4328
|
},
|
|
4230
4329
|
build: () => inner.build()
|
|
@@ -4233,27 +4332,27 @@ let HetznerServer;
|
|
|
4233
4332
|
};
|
|
4234
4333
|
_HetznerServer.satisfy = (blueprint) => {
|
|
4235
4334
|
const params = getParametersInstance();
|
|
4236
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerServerType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
4335
|
+
const inner = getLiveSystemComponentBuilder().withType(buildHetznerServerType()).withParameters(params).withProvider("Hetzner").withId(buildId$13(blueprint.id.toString())).withVersion(buildVersion$13(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
4237
4336
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4238
4337
|
const satisfiedBuilder = {
|
|
4239
4338
|
withServerType: (value) => {
|
|
4240
|
-
pushParam$
|
|
4339
|
+
pushParam$11(params, SERVER_TYPE_PARAM, value);
|
|
4241
4340
|
return satisfiedBuilder;
|
|
4242
4341
|
},
|
|
4243
4342
|
withLocation: (value) => {
|
|
4244
|
-
pushParam$
|
|
4343
|
+
pushParam$11(params, LOCATION_PARAM, value);
|
|
4245
4344
|
return satisfiedBuilder;
|
|
4246
4345
|
},
|
|
4247
4346
|
withImage: (value) => {
|
|
4248
|
-
pushParam$
|
|
4347
|
+
pushParam$11(params, IMAGE_PARAM, value);
|
|
4249
4348
|
return satisfiedBuilder;
|
|
4250
4349
|
},
|
|
4251
4350
|
withSshKeys: (value) => {
|
|
4252
|
-
pushParam$
|
|
4351
|
+
pushParam$11(params, SSH_KEYS_PARAM, value);
|
|
4253
4352
|
return satisfiedBuilder;
|
|
4254
4353
|
},
|
|
4255
4354
|
withUserData: (value) => {
|
|
4256
|
-
pushParam$
|
|
4355
|
+
pushParam$11(params, USER_DATA_PARAM, value);
|
|
4257
4356
|
return satisfiedBuilder;
|
|
4258
4357
|
},
|
|
4259
4358
|
build: () => inner.build()
|
|
@@ -4272,10 +4371,10 @@ let HetznerServer;
|
|
|
4272
4371
|
//#endregion
|
|
4273
4372
|
//#region src/fractal/component/network_and_compute/paas/container_platform.ts
|
|
4274
4373
|
const CONTAINER_PLATFORM_TYPE_NAME = "ContainerPlatform";
|
|
4275
|
-
function buildId$
|
|
4374
|
+
function buildId$12(id) {
|
|
4276
4375
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4277
4376
|
}
|
|
4278
|
-
function buildVersion$
|
|
4377
|
+
function buildVersion$12(major, minor, patch) {
|
|
4279
4378
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4280
4379
|
}
|
|
4281
4380
|
function buildContainerPlatformType() {
|
|
@@ -4302,11 +4401,11 @@ let ContainerPlatform;
|
|
|
4302
4401
|
const inner = getBlueprintComponentBuilder().withType(buildContainerPlatformType()).withParameters(params);
|
|
4303
4402
|
const builder = {
|
|
4304
4403
|
withId: (id) => {
|
|
4305
|
-
inner.withId(buildId$
|
|
4404
|
+
inner.withId(buildId$12(id));
|
|
4306
4405
|
return builder;
|
|
4307
4406
|
},
|
|
4308
4407
|
withVersion: (major, minor, patch) => {
|
|
4309
|
-
inner.withVersion(buildVersion$
|
|
4408
|
+
inner.withVersion(buildVersion$12(major, minor, patch));
|
|
4310
4409
|
return builder;
|
|
4311
4410
|
},
|
|
4312
4411
|
withDisplayName: (displayName) => {
|
|
@@ -4337,16 +4436,16 @@ const CONTAINER_NAME_PARAM = "containerName";
|
|
|
4337
4436
|
const CPU_PARAM = "cpu";
|
|
4338
4437
|
const MEMORY_PARAM = "memory";
|
|
4339
4438
|
const DESIRED_COUNT_PARAM = "desiredCount";
|
|
4340
|
-
function buildId$
|
|
4439
|
+
function buildId$11(id) {
|
|
4341
4440
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4342
4441
|
}
|
|
4343
|
-
function buildVersion$
|
|
4442
|
+
function buildVersion$11(major, minor, patch) {
|
|
4344
4443
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4345
4444
|
}
|
|
4346
4445
|
function buildWorkloadType() {
|
|
4347
4446
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.CustomWorkloads).withServiceDeliveryModel(ServiceDeliveryModel$1.CaaS).withName(PascalCaseString$1.getBuilder().withValue(WORKLOAD_TYPE_NAME).build()).build();
|
|
4348
4447
|
}
|
|
4349
|
-
function pushParam$
|
|
4448
|
+
function pushParam$10(params, key, value) {
|
|
4350
4449
|
params.push(key, value);
|
|
4351
4450
|
}
|
|
4352
4451
|
function buildLinkParams(fromPort, toPort, protocol) {
|
|
@@ -4383,11 +4482,11 @@ let Workload;
|
|
|
4383
4482
|
const inner = getBlueprintComponentBuilder().withType(buildWorkloadType()).withParameters(params);
|
|
4384
4483
|
const builder = {
|
|
4385
4484
|
withId: (id) => {
|
|
4386
|
-
inner.withId(buildId$
|
|
4485
|
+
inner.withId(buildId$11(id));
|
|
4387
4486
|
return builder;
|
|
4388
4487
|
},
|
|
4389
4488
|
withVersion: (major, minor, patch) => {
|
|
4390
|
-
inner.withVersion(buildVersion$
|
|
4489
|
+
inner.withVersion(buildVersion$11(major, minor, patch));
|
|
4391
4490
|
return builder;
|
|
4392
4491
|
},
|
|
4393
4492
|
withDisplayName: (displayName) => {
|
|
@@ -4399,27 +4498,27 @@ let Workload;
|
|
|
4399
4498
|
return builder;
|
|
4400
4499
|
},
|
|
4401
4500
|
withContainerImage: (image) => {
|
|
4402
|
-
pushParam$
|
|
4501
|
+
pushParam$10(params, CONTAINER_IMAGE_PARAM, image);
|
|
4403
4502
|
return builder;
|
|
4404
4503
|
},
|
|
4405
4504
|
withContainerPort: (port) => {
|
|
4406
|
-
pushParam$
|
|
4505
|
+
pushParam$10(params, CONTAINER_PORT_PARAM, port);
|
|
4407
4506
|
return builder;
|
|
4408
4507
|
},
|
|
4409
4508
|
withContainerName: (name) => {
|
|
4410
|
-
pushParam$
|
|
4509
|
+
pushParam$10(params, CONTAINER_NAME_PARAM, name);
|
|
4411
4510
|
return builder;
|
|
4412
4511
|
},
|
|
4413
4512
|
withCpu: (cpu) => {
|
|
4414
|
-
pushParam$
|
|
4513
|
+
pushParam$10(params, CPU_PARAM, cpu);
|
|
4415
4514
|
return builder;
|
|
4416
4515
|
},
|
|
4417
4516
|
withMemory: (memory) => {
|
|
4418
|
-
pushParam$
|
|
4517
|
+
pushParam$10(params, MEMORY_PARAM, memory);
|
|
4419
4518
|
return builder;
|
|
4420
4519
|
},
|
|
4421
4520
|
withDesiredCount: (count) => {
|
|
4422
|
-
pushParam$
|
|
4521
|
+
pushParam$10(params, DESIRED_COUNT_PARAM, count);
|
|
4423
4522
|
return builder;
|
|
4424
4523
|
},
|
|
4425
4524
|
build: () => inner.build()
|
|
@@ -4438,13 +4537,178 @@ let Workload;
|
|
|
4438
4537
|
};
|
|
4439
4538
|
})(Workload || (Workload = {}));
|
|
4440
4539
|
|
|
4540
|
+
//#endregion
|
|
4541
|
+
//#region src/live_system/component/network_and_compute/paas/eks_cluster.ts
|
|
4542
|
+
const EKS_CLUSTER_TYPE_NAME = "EKS";
|
|
4543
|
+
function buildId$10(id) {
|
|
4544
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4545
|
+
}
|
|
4546
|
+
function buildVersion$10(major, minor, patch) {
|
|
4547
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4548
|
+
}
|
|
4549
|
+
function buildAwsEksClusterType() {
|
|
4550
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(EKS_CLUSTER_TYPE_NAME).build()).build();
|
|
4551
|
+
}
|
|
4552
|
+
function pushParam$9(params, key, value) {
|
|
4553
|
+
params.push(key, value);
|
|
4554
|
+
}
|
|
4555
|
+
let AwsEksCluster;
|
|
4556
|
+
(function(_AwsEksCluster) {
|
|
4557
|
+
const getBuilder = _AwsEksCluster.getBuilder = () => {
|
|
4558
|
+
const params = getParametersInstance();
|
|
4559
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEksClusterType()).withParameters(params).withProvider("AWS");
|
|
4560
|
+
const builder = {
|
|
4561
|
+
withId: (id) => {
|
|
4562
|
+
inner.withId(buildId$10(id));
|
|
4563
|
+
return builder;
|
|
4564
|
+
},
|
|
4565
|
+
withVersion: (major, minor, patch) => {
|
|
4566
|
+
inner.withVersion(buildVersion$10(major, minor, patch));
|
|
4567
|
+
return builder;
|
|
4568
|
+
},
|
|
4569
|
+
withDisplayName: (displayName) => {
|
|
4570
|
+
inner.withDisplayName(displayName);
|
|
4571
|
+
return builder;
|
|
4572
|
+
},
|
|
4573
|
+
withDescription: (description) => {
|
|
4574
|
+
inner.withDescription(description);
|
|
4575
|
+
return builder;
|
|
4576
|
+
},
|
|
4577
|
+
withKubernetesVersion: (v) => {
|
|
4578
|
+
pushParam$9(params, "kubernetesVersion", v);
|
|
4579
|
+
return builder;
|
|
4580
|
+
},
|
|
4581
|
+
withNetworkPolicyProvider: (p) => {
|
|
4582
|
+
pushParam$9(params, "networkPolicyProvider", p);
|
|
4583
|
+
return builder;
|
|
4584
|
+
},
|
|
4585
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
4586
|
+
pushParam$9(params, "masterIpv4CidrBlock", cidr);
|
|
4587
|
+
return builder;
|
|
4588
|
+
},
|
|
4589
|
+
withVpcCidrBlock: (cidr) => {
|
|
4590
|
+
pushParam$9(params, "vpcCidrBlock", cidr);
|
|
4591
|
+
return builder;
|
|
4592
|
+
},
|
|
4593
|
+
withPrivateSubnetCidrs: (cidrs) => {
|
|
4594
|
+
pushParam$9(params, "privateSubnetCidrs", cidrs);
|
|
4595
|
+
return builder;
|
|
4596
|
+
},
|
|
4597
|
+
withDesiredAvailabilityZoneCount: (count) => {
|
|
4598
|
+
pushParam$9(params, "desiredAvailabilityZoneCount", count);
|
|
4599
|
+
return builder;
|
|
4600
|
+
},
|
|
4601
|
+
withNodePools: (nodePools) => {
|
|
4602
|
+
pushParam$9(params, "nodePools", nodePools);
|
|
4603
|
+
return builder;
|
|
4604
|
+
},
|
|
4605
|
+
withAddons: (addons) => {
|
|
4606
|
+
pushParam$9(params, "addons", addons);
|
|
4607
|
+
return builder;
|
|
4608
|
+
},
|
|
4609
|
+
withPriorityClasses: (classes) => {
|
|
4610
|
+
pushParam$9(params, "priorityClasses", classes);
|
|
4611
|
+
return builder;
|
|
4612
|
+
},
|
|
4613
|
+
withRoles: (roles) => {
|
|
4614
|
+
pushParam$9(params, "roles", roles);
|
|
4615
|
+
return builder;
|
|
4616
|
+
},
|
|
4617
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
4618
|
+
pushParam$9(params, "workloadIdentityEnabled", enabled);
|
|
4619
|
+
return builder;
|
|
4620
|
+
},
|
|
4621
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
4622
|
+
pushParam$9(params, "privateClusterDisabled", disabled);
|
|
4623
|
+
return builder;
|
|
4624
|
+
},
|
|
4625
|
+
build: () => inner.build()
|
|
4626
|
+
};
|
|
4627
|
+
return builder;
|
|
4628
|
+
};
|
|
4629
|
+
_AwsEksCluster.satisfy = (platform) => {
|
|
4630
|
+
const params = getParametersInstance();
|
|
4631
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEksClusterType()).withParameters(params).withProvider("AWS").withId(buildId$10(platform.id.toString())).withVersion(buildVersion$10(platform.version.major, platform.version.minor, platform.version.patch)).withDisplayName(platform.displayName);
|
|
4632
|
+
if (platform.description) inner.withDescription(platform.description);
|
|
4633
|
+
const satisfiedBuilder = {
|
|
4634
|
+
withKubernetesVersion: (v) => {
|
|
4635
|
+
pushParam$9(params, "kubernetesVersion", v);
|
|
4636
|
+
return satisfiedBuilder;
|
|
4637
|
+
},
|
|
4638
|
+
withNetworkPolicyProvider: (p) => {
|
|
4639
|
+
pushParam$9(params, "networkPolicyProvider", p);
|
|
4640
|
+
return satisfiedBuilder;
|
|
4641
|
+
},
|
|
4642
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
4643
|
+
pushParam$9(params, "masterIpv4CidrBlock", cidr);
|
|
4644
|
+
return satisfiedBuilder;
|
|
4645
|
+
},
|
|
4646
|
+
withVpcCidrBlock: (cidr) => {
|
|
4647
|
+
pushParam$9(params, "vpcCidrBlock", cidr);
|
|
4648
|
+
return satisfiedBuilder;
|
|
4649
|
+
},
|
|
4650
|
+
withPrivateSubnetCidrs: (cidrs) => {
|
|
4651
|
+
pushParam$9(params, "privateSubnetCidrs", cidrs);
|
|
4652
|
+
return satisfiedBuilder;
|
|
4653
|
+
},
|
|
4654
|
+
withDesiredAvailabilityZoneCount: (count) => {
|
|
4655
|
+
pushParam$9(params, "desiredAvailabilityZoneCount", count);
|
|
4656
|
+
return satisfiedBuilder;
|
|
4657
|
+
},
|
|
4658
|
+
withNodePools: (nodePools) => {
|
|
4659
|
+
pushParam$9(params, "nodePools", nodePools);
|
|
4660
|
+
return satisfiedBuilder;
|
|
4661
|
+
},
|
|
4662
|
+
withAddons: (addons) => {
|
|
4663
|
+
pushParam$9(params, "addons", addons);
|
|
4664
|
+
return satisfiedBuilder;
|
|
4665
|
+
},
|
|
4666
|
+
withPriorityClasses: (classes) => {
|
|
4667
|
+
pushParam$9(params, "priorityClasses", classes);
|
|
4668
|
+
return satisfiedBuilder;
|
|
4669
|
+
},
|
|
4670
|
+
withRoles: (roles) => {
|
|
4671
|
+
pushParam$9(params, "roles", roles);
|
|
4672
|
+
return satisfiedBuilder;
|
|
4673
|
+
},
|
|
4674
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
4675
|
+
pushParam$9(params, "workloadIdentityEnabled", enabled);
|
|
4676
|
+
return satisfiedBuilder;
|
|
4677
|
+
},
|
|
4678
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
4679
|
+
pushParam$9(params, "privateClusterDisabled", disabled);
|
|
4680
|
+
return satisfiedBuilder;
|
|
4681
|
+
},
|
|
4682
|
+
build: () => inner.build()
|
|
4683
|
+
};
|
|
4684
|
+
return satisfiedBuilder;
|
|
4685
|
+
};
|
|
4686
|
+
_AwsEksCluster.create = (config) => {
|
|
4687
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
|
|
4688
|
+
if (config.description) b.withDescription(config.description);
|
|
4689
|
+
if (config.kubernetesVersion) b.withKubernetesVersion(config.kubernetesVersion);
|
|
4690
|
+
if (config.networkPolicyProvider) b.withNetworkPolicyProvider(config.networkPolicyProvider);
|
|
4691
|
+
if (config.masterIpv4CidrBlock) b.withMasterIpv4CidrBlock(config.masterIpv4CidrBlock);
|
|
4692
|
+
if (config.vpcCidrBlock) b.withVpcCidrBlock(config.vpcCidrBlock);
|
|
4693
|
+
if (config.privateSubnetCidrs) b.withPrivateSubnetCidrs(config.privateSubnetCidrs);
|
|
4694
|
+
if (config.desiredAvailabilityZoneCount !== void 0) b.withDesiredAvailabilityZoneCount(config.desiredAvailabilityZoneCount);
|
|
4695
|
+
if (config.nodePools) b.withNodePools(config.nodePools);
|
|
4696
|
+
if (config.addons) b.withAddons(config.addons);
|
|
4697
|
+
if (config.priorityClasses) b.withPriorityClasses(config.priorityClasses);
|
|
4698
|
+
if (config.roles) b.withRoles(config.roles);
|
|
4699
|
+
if (config.workloadIdentityEnabled !== void 0) b.withWorkloadIdentityEnabled(config.workloadIdentityEnabled);
|
|
4700
|
+
if (config.privateClusterDisabled !== void 0) b.withPrivateClusterDisabled(config.privateClusterDisabled);
|
|
4701
|
+
return b.build();
|
|
4702
|
+
};
|
|
4703
|
+
})(AwsEksCluster || (AwsEksCluster = {}));
|
|
4704
|
+
|
|
4441
4705
|
//#endregion
|
|
4442
4706
|
//#region src/live_system/component/network_and_compute/paas/ecs_cluster.ts
|
|
4443
4707
|
const ECS_CLUSTER_TYPE_NAME = "ECS";
|
|
4444
|
-
function buildId$
|
|
4708
|
+
function buildId$9(id) {
|
|
4445
4709
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4446
4710
|
}
|
|
4447
|
-
function buildVersion$
|
|
4711
|
+
function buildVersion$9(major, minor, patch) {
|
|
4448
4712
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4449
4713
|
}
|
|
4450
4714
|
function buildAwsEcsClusterType() {
|
|
@@ -4457,11 +4721,11 @@ let AwsEcsCluster;
|
|
|
4457
4721
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsClusterType()).withParameters(params).withProvider("AWS");
|
|
4458
4722
|
const builder = {
|
|
4459
4723
|
withId: (id) => {
|
|
4460
|
-
inner.withId(buildId$
|
|
4724
|
+
inner.withId(buildId$9(id));
|
|
4461
4725
|
return builder;
|
|
4462
4726
|
},
|
|
4463
4727
|
withVersion: (major, minor, patch) => {
|
|
4464
|
-
inner.withVersion(buildVersion$
|
|
4728
|
+
inner.withVersion(buildVersion$9(major, minor, patch));
|
|
4465
4729
|
return builder;
|
|
4466
4730
|
},
|
|
4467
4731
|
withDisplayName: (displayName) => {
|
|
@@ -4477,7 +4741,7 @@ let AwsEcsCluster;
|
|
|
4477
4741
|
return builder;
|
|
4478
4742
|
};
|
|
4479
4743
|
_AwsEcsCluster.satisfy = (platform) => {
|
|
4480
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsClusterType()).withParameters(getParametersInstance()).withProvider("AWS").withId(buildId$
|
|
4744
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsClusterType()).withParameters(getParametersInstance()).withProvider("AWS").withId(buildId$9(platform.id.toString())).withVersion(buildVersion$9(platform.version.major, platform.version.minor, platform.version.patch)).withDisplayName(platform.displayName);
|
|
4481
4745
|
if (platform.description) inner.withDescription(platform.description);
|
|
4482
4746
|
return { build: () => inner.build() };
|
|
4483
4747
|
};
|
|
@@ -4494,16 +4758,16 @@ const ECS_TASK_DEF_TYPE_NAME = "ECSTaskDefinition";
|
|
|
4494
4758
|
const NETWORK_MODE_PARAM = "networkMode";
|
|
4495
4759
|
const EXECUTION_ROLE_ARN_PARAM = "executionRoleArn";
|
|
4496
4760
|
const TASK_ROLE_ARN_PARAM = "taskRoleArn";
|
|
4497
|
-
function buildId$
|
|
4761
|
+
function buildId$8(id) {
|
|
4498
4762
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4499
4763
|
}
|
|
4500
|
-
function buildVersion$
|
|
4764
|
+
function buildVersion$8(major, minor, patch) {
|
|
4501
4765
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4502
4766
|
}
|
|
4503
4767
|
function buildAwsEcsTaskDefType() {
|
|
4504
4768
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(ECS_TASK_DEF_TYPE_NAME).build()).build();
|
|
4505
4769
|
}
|
|
4506
|
-
function pushParam$
|
|
4770
|
+
function pushParam$8(params, key, value) {
|
|
4507
4771
|
params.push(key, value);
|
|
4508
4772
|
}
|
|
4509
4773
|
let AwsEcsTaskDefinition;
|
|
@@ -4513,11 +4777,11 @@ let AwsEcsTaskDefinition;
|
|
|
4513
4777
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsTaskDefType()).withParameters(params).withProvider("AWS");
|
|
4514
4778
|
const builder = {
|
|
4515
4779
|
withId: (id) => {
|
|
4516
|
-
inner.withId(buildId$
|
|
4780
|
+
inner.withId(buildId$8(id));
|
|
4517
4781
|
return builder;
|
|
4518
4782
|
},
|
|
4519
4783
|
withVersion: (major, minor, patch) => {
|
|
4520
|
-
inner.withVersion(buildVersion$
|
|
4784
|
+
inner.withVersion(buildVersion$8(major, minor, patch));
|
|
4521
4785
|
return builder;
|
|
4522
4786
|
},
|
|
4523
4787
|
withDisplayName: (displayName) => {
|
|
@@ -4529,35 +4793,35 @@ let AwsEcsTaskDefinition;
|
|
|
4529
4793
|
return builder;
|
|
4530
4794
|
},
|
|
4531
4795
|
withContainerImage: (image) => {
|
|
4532
|
-
pushParam$
|
|
4796
|
+
pushParam$8(params, CONTAINER_IMAGE_PARAM, image);
|
|
4533
4797
|
return builder;
|
|
4534
4798
|
},
|
|
4535
4799
|
withContainerPort: (port) => {
|
|
4536
|
-
pushParam$
|
|
4800
|
+
pushParam$8(params, CONTAINER_PORT_PARAM, port);
|
|
4537
4801
|
return builder;
|
|
4538
4802
|
},
|
|
4539
4803
|
withContainerName: (name) => {
|
|
4540
|
-
pushParam$
|
|
4804
|
+
pushParam$8(params, CONTAINER_NAME_PARAM, name);
|
|
4541
4805
|
return builder;
|
|
4542
4806
|
},
|
|
4543
4807
|
withCpu: (cpu) => {
|
|
4544
|
-
pushParam$
|
|
4808
|
+
pushParam$8(params, CPU_PARAM, cpu);
|
|
4545
4809
|
return builder;
|
|
4546
4810
|
},
|
|
4547
4811
|
withMemory: (memory) => {
|
|
4548
|
-
pushParam$
|
|
4812
|
+
pushParam$8(params, MEMORY_PARAM, memory);
|
|
4549
4813
|
return builder;
|
|
4550
4814
|
},
|
|
4551
4815
|
withNetworkMode: (mode) => {
|
|
4552
|
-
pushParam$
|
|
4816
|
+
pushParam$8(params, NETWORK_MODE_PARAM, mode);
|
|
4553
4817
|
return builder;
|
|
4554
4818
|
},
|
|
4555
4819
|
withExecutionRoleArn: (arn) => {
|
|
4556
|
-
pushParam$
|
|
4820
|
+
pushParam$8(params, EXECUTION_ROLE_ARN_PARAM, arn);
|
|
4557
4821
|
return builder;
|
|
4558
4822
|
},
|
|
4559
4823
|
withTaskRoleArn: (arn) => {
|
|
4560
|
-
pushParam$
|
|
4824
|
+
pushParam$8(params, TASK_ROLE_ARN_PARAM, arn);
|
|
4561
4825
|
return builder;
|
|
4562
4826
|
},
|
|
4563
4827
|
build: () => inner.build()
|
|
@@ -4567,7 +4831,7 @@ let AwsEcsTaskDefinition;
|
|
|
4567
4831
|
_AwsEcsTaskDefinition.satisfy = (workload) => {
|
|
4568
4832
|
const params = getParametersInstance();
|
|
4569
4833
|
const taskId = `${workload.id.toString()}-task`;
|
|
4570
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsTaskDefType()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
4834
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsTaskDefType()).withParameters(params).withProvider("AWS").withId(buildId$8(taskId)).withVersion(buildVersion$8(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName);
|
|
4571
4835
|
if (workload.description) inner.withDescription(workload.description);
|
|
4572
4836
|
for (const key of [
|
|
4573
4837
|
CONTAINER_IMAGE_PARAM,
|
|
@@ -4577,19 +4841,19 @@ let AwsEcsTaskDefinition;
|
|
|
4577
4841
|
MEMORY_PARAM
|
|
4578
4842
|
]) {
|
|
4579
4843
|
const v = workload.parameters.getOptionalFieldByName(key);
|
|
4580
|
-
if (v !== null) pushParam$
|
|
4844
|
+
if (v !== null) pushParam$8(params, key, v);
|
|
4581
4845
|
}
|
|
4582
4846
|
const satisfiedBuilder = {
|
|
4583
4847
|
withNetworkMode: (mode) => {
|
|
4584
|
-
pushParam$
|
|
4848
|
+
pushParam$8(params, NETWORK_MODE_PARAM, mode);
|
|
4585
4849
|
return satisfiedBuilder;
|
|
4586
4850
|
},
|
|
4587
4851
|
withExecutionRoleArn: (arn) => {
|
|
4588
|
-
pushParam$
|
|
4852
|
+
pushParam$8(params, EXECUTION_ROLE_ARN_PARAM, arn);
|
|
4589
4853
|
return satisfiedBuilder;
|
|
4590
4854
|
},
|
|
4591
4855
|
withTaskRoleArn: (arn) => {
|
|
4592
|
-
pushParam$
|
|
4856
|
+
pushParam$8(params, TASK_ROLE_ARN_PARAM, arn);
|
|
4593
4857
|
return satisfiedBuilder;
|
|
4594
4858
|
},
|
|
4595
4859
|
build: () => inner.build()
|
|
@@ -4615,16 +4879,16 @@ let AwsEcsTaskDefinition;
|
|
|
4615
4879
|
const ECS_SERVICE_TYPE_NAME = "ECSService";
|
|
4616
4880
|
const LAUNCH_TYPE_PARAM = "launchType";
|
|
4617
4881
|
const ASSIGN_PUBLIC_IP_PARAM = "assignPublicIp";
|
|
4618
|
-
function buildId(id) {
|
|
4882
|
+
function buildId$7(id) {
|
|
4619
4883
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4620
4884
|
}
|
|
4621
|
-
function buildVersion(major, minor, patch) {
|
|
4885
|
+
function buildVersion$7(major, minor, patch) {
|
|
4622
4886
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4623
4887
|
}
|
|
4624
4888
|
function buildAwsEcsServiceType() {
|
|
4625
4889
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(ECS_SERVICE_TYPE_NAME).build()).build();
|
|
4626
4890
|
}
|
|
4627
|
-
function pushParam(params, key, value) {
|
|
4891
|
+
function pushParam$7(params, key, value) {
|
|
4628
4892
|
params.push(key, value);
|
|
4629
4893
|
}
|
|
4630
4894
|
let AwsEcsService;
|
|
@@ -4634,11 +4898,11 @@ let AwsEcsService;
|
|
|
4634
4898
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsServiceType()).withParameters(params).withProvider("AWS");
|
|
4635
4899
|
const builder = {
|
|
4636
4900
|
withId: (id) => {
|
|
4637
|
-
inner.withId(buildId(id));
|
|
4901
|
+
inner.withId(buildId$7(id));
|
|
4638
4902
|
return builder;
|
|
4639
4903
|
},
|
|
4640
4904
|
withVersion: (major, minor, patch) => {
|
|
4641
|
-
inner.withVersion(buildVersion(major, minor, patch));
|
|
4905
|
+
inner.withVersion(buildVersion$7(major, minor, patch));
|
|
4642
4906
|
return builder;
|
|
4643
4907
|
},
|
|
4644
4908
|
withDisplayName: (displayName) => {
|
|
@@ -4650,15 +4914,15 @@ let AwsEcsService;
|
|
|
4650
4914
|
return builder;
|
|
4651
4915
|
},
|
|
4652
4916
|
withDesiredCount: (count) => {
|
|
4653
|
-
pushParam(params, DESIRED_COUNT_PARAM, count);
|
|
4917
|
+
pushParam$7(params, DESIRED_COUNT_PARAM, count);
|
|
4654
4918
|
return builder;
|
|
4655
4919
|
},
|
|
4656
4920
|
withLaunchType: (type) => {
|
|
4657
|
-
pushParam(params, LAUNCH_TYPE_PARAM, type);
|
|
4921
|
+
pushParam$7(params, LAUNCH_TYPE_PARAM, type);
|
|
4658
4922
|
return builder;
|
|
4659
4923
|
},
|
|
4660
4924
|
withAssignPublicIp: (assign) => {
|
|
4661
|
-
pushParam(params, ASSIGN_PUBLIC_IP_PARAM, assign);
|
|
4925
|
+
pushParam$7(params, ASSIGN_PUBLIC_IP_PARAM, assign);
|
|
4662
4926
|
return builder;
|
|
4663
4927
|
},
|
|
4664
4928
|
build: () => inner.build()
|
|
@@ -4668,17 +4932,17 @@ let AwsEcsService;
|
|
|
4668
4932
|
_AwsEcsService.satisfy = (workload) => {
|
|
4669
4933
|
const params = getParametersInstance();
|
|
4670
4934
|
const deps = [...workload.dependencies];
|
|
4671
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsServiceType()).withParameters(params).withProvider("AWS").withId(buildId(workload.id.toString())).withVersion(buildVersion(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(deps).withLinks(workload.links);
|
|
4935
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsServiceType()).withParameters(params).withProvider("AWS").withId(buildId$7(workload.id.toString())).withVersion(buildVersion$7(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(deps).withLinks(workload.links);
|
|
4672
4936
|
if (workload.description) inner.withDescription(workload.description);
|
|
4673
4937
|
const desiredCount = workload.parameters.getOptionalFieldByName(DESIRED_COUNT_PARAM);
|
|
4674
|
-
if (desiredCount !== null) pushParam(params, DESIRED_COUNT_PARAM, desiredCount);
|
|
4938
|
+
if (desiredCount !== null) pushParam$7(params, DESIRED_COUNT_PARAM, desiredCount);
|
|
4675
4939
|
const satisfiedBuilder = {
|
|
4676
4940
|
withLaunchType: (type) => {
|
|
4677
|
-
pushParam(params, LAUNCH_TYPE_PARAM, type);
|
|
4941
|
+
pushParam$7(params, LAUNCH_TYPE_PARAM, type);
|
|
4678
4942
|
return satisfiedBuilder;
|
|
4679
4943
|
},
|
|
4680
4944
|
withAssignPublicIp: (assign) => {
|
|
4681
|
-
pushParam(params, ASSIGN_PUBLIC_IP_PARAM, assign);
|
|
4945
|
+
pushParam$7(params, ASSIGN_PUBLIC_IP_PARAM, assign);
|
|
4682
4946
|
return satisfiedBuilder;
|
|
4683
4947
|
},
|
|
4684
4948
|
withTaskDefinition: (taskDef) => {
|
|
@@ -4700,6 +4964,996 @@ let AwsEcsService;
|
|
|
4700
4964
|
};
|
|
4701
4965
|
})(AwsEcsService || (AwsEcsService = {}));
|
|
4702
4966
|
|
|
4967
|
+
//#endregion
|
|
4968
|
+
//#region src/live_system/component/network_and_compute/paas/azure_aks.ts
|
|
4969
|
+
const AKS_CLUSTER_TYPE_NAME = "AKS";
|
|
4970
|
+
function buildId$6(id) {
|
|
4971
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4972
|
+
}
|
|
4973
|
+
function buildVersion$6(major, minor, patch) {
|
|
4974
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4975
|
+
}
|
|
4976
|
+
function buildAzureAksClusterType() {
|
|
4977
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AKS_CLUSTER_TYPE_NAME).build()).build();
|
|
4978
|
+
}
|
|
4979
|
+
function pushParam$6(params, key, value) {
|
|
4980
|
+
params.push(key, value);
|
|
4981
|
+
}
|
|
4982
|
+
let AzureAksCluster;
|
|
4983
|
+
(function(_AzureAksCluster) {
|
|
4984
|
+
const getBuilder = _AzureAksCluster.getBuilder = () => {
|
|
4985
|
+
const params = getParametersInstance();
|
|
4986
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureAksClusterType()).withParameters(params).withProvider("Azure");
|
|
4987
|
+
const builder = {
|
|
4988
|
+
withId: (id) => {
|
|
4989
|
+
inner.withId(buildId$6(id));
|
|
4990
|
+
return builder;
|
|
4991
|
+
},
|
|
4992
|
+
withVersion: (major, minor, patch) => {
|
|
4993
|
+
inner.withVersion(buildVersion$6(major, minor, patch));
|
|
4994
|
+
return builder;
|
|
4995
|
+
},
|
|
4996
|
+
withDisplayName: (displayName) => {
|
|
4997
|
+
inner.withDisplayName(displayName);
|
|
4998
|
+
return builder;
|
|
4999
|
+
},
|
|
5000
|
+
withDescription: (description) => {
|
|
5001
|
+
inner.withDescription(description);
|
|
5002
|
+
return builder;
|
|
5003
|
+
},
|
|
5004
|
+
withKubernetesVersion: (v) => {
|
|
5005
|
+
pushParam$6(params, "kubernetesVersion", v);
|
|
5006
|
+
return builder;
|
|
5007
|
+
},
|
|
5008
|
+
withNetworkPolicyProvider: (p) => {
|
|
5009
|
+
pushParam$6(params, "networkPolicyProvider", p);
|
|
5010
|
+
return builder;
|
|
5011
|
+
},
|
|
5012
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
5013
|
+
pushParam$6(params, "masterIpv4CidrBlock", cidr);
|
|
5014
|
+
return builder;
|
|
5015
|
+
},
|
|
5016
|
+
withVnetSubnetAddressIpRange: (range) => {
|
|
5017
|
+
pushParam$6(params, "vnetSubnetAddressIpRange", range);
|
|
5018
|
+
return builder;
|
|
5019
|
+
},
|
|
5020
|
+
withManagedClusterSkuTier: (tier) => {
|
|
5021
|
+
pushParam$6(params, "managedClusterSkuTier", tier);
|
|
5022
|
+
return builder;
|
|
5023
|
+
},
|
|
5024
|
+
withWindowsAdminUsername: (username) => {
|
|
5025
|
+
pushParam$6(params, "windowsAdminUsername", username);
|
|
5026
|
+
return builder;
|
|
5027
|
+
},
|
|
5028
|
+
withExternalWorkspaceResourceId: (id) => {
|
|
5029
|
+
pushParam$6(params, "externalWorkspaceResourceId", id);
|
|
5030
|
+
return builder;
|
|
5031
|
+
},
|
|
5032
|
+
withNodePools: (nodePools) => {
|
|
5033
|
+
pushParam$6(params, "nodePools", nodePools);
|
|
5034
|
+
return builder;
|
|
5035
|
+
},
|
|
5036
|
+
withAzureActiveDirectoryProfile: (profile) => {
|
|
5037
|
+
pushParam$6(params, "azureActiveDirectoryProfile", profile);
|
|
5038
|
+
return builder;
|
|
5039
|
+
},
|
|
5040
|
+
withOutboundIps: (ips) => {
|
|
5041
|
+
pushParam$6(params, "outboundIps", ips);
|
|
5042
|
+
return builder;
|
|
5043
|
+
},
|
|
5044
|
+
withPriorityClasses: (classes) => {
|
|
5045
|
+
pushParam$6(params, "priorityClasses", classes);
|
|
5046
|
+
return builder;
|
|
5047
|
+
},
|
|
5048
|
+
withRoles: (roles) => {
|
|
5049
|
+
pushParam$6(params, "roles", roles);
|
|
5050
|
+
return builder;
|
|
5051
|
+
},
|
|
5052
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
5053
|
+
pushParam$6(params, "workloadIdentityEnabled", enabled);
|
|
5054
|
+
return builder;
|
|
5055
|
+
},
|
|
5056
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
5057
|
+
pushParam$6(params, "privateClusterDisabled", disabled);
|
|
5058
|
+
return builder;
|
|
5059
|
+
},
|
|
5060
|
+
build: () => inner.build()
|
|
5061
|
+
};
|
|
5062
|
+
return builder;
|
|
5063
|
+
};
|
|
5064
|
+
_AzureAksCluster.satisfy = (platform) => {
|
|
5065
|
+
const params = getParametersInstance();
|
|
5066
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureAksClusterType()).withParameters(params).withProvider("Azure").withId(buildId$6(platform.id.toString())).withVersion(buildVersion$6(platform.version.major, platform.version.minor, platform.version.patch)).withDisplayName(platform.displayName);
|
|
5067
|
+
if (platform.description) inner.withDescription(platform.description);
|
|
5068
|
+
const satisfiedBuilder = {
|
|
5069
|
+
withKubernetesVersion: (v) => {
|
|
5070
|
+
pushParam$6(params, "kubernetesVersion", v);
|
|
5071
|
+
return satisfiedBuilder;
|
|
5072
|
+
},
|
|
5073
|
+
withNetworkPolicyProvider: (p) => {
|
|
5074
|
+
pushParam$6(params, "networkPolicyProvider", p);
|
|
5075
|
+
return satisfiedBuilder;
|
|
5076
|
+
},
|
|
5077
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
5078
|
+
pushParam$6(params, "masterIpv4CidrBlock", cidr);
|
|
5079
|
+
return satisfiedBuilder;
|
|
5080
|
+
},
|
|
5081
|
+
withVnetSubnetAddressIpRange: (range) => {
|
|
5082
|
+
pushParam$6(params, "vnetSubnetAddressIpRange", range);
|
|
5083
|
+
return satisfiedBuilder;
|
|
5084
|
+
},
|
|
5085
|
+
withManagedClusterSkuTier: (tier) => {
|
|
5086
|
+
pushParam$6(params, "managedClusterSkuTier", tier);
|
|
5087
|
+
return satisfiedBuilder;
|
|
5088
|
+
},
|
|
5089
|
+
withWindowsAdminUsername: (username) => {
|
|
5090
|
+
pushParam$6(params, "windowsAdminUsername", username);
|
|
5091
|
+
return satisfiedBuilder;
|
|
5092
|
+
},
|
|
5093
|
+
withExternalWorkspaceResourceId: (id) => {
|
|
5094
|
+
pushParam$6(params, "externalWorkspaceResourceId", id);
|
|
5095
|
+
return satisfiedBuilder;
|
|
5096
|
+
},
|
|
5097
|
+
withNodePools: (nodePools) => {
|
|
5098
|
+
pushParam$6(params, "nodePools", nodePools);
|
|
5099
|
+
return satisfiedBuilder;
|
|
5100
|
+
},
|
|
5101
|
+
withAzureActiveDirectoryProfile: (profile) => {
|
|
5102
|
+
pushParam$6(params, "azureActiveDirectoryProfile", profile);
|
|
5103
|
+
return satisfiedBuilder;
|
|
5104
|
+
},
|
|
5105
|
+
withOutboundIps: (ips) => {
|
|
5106
|
+
pushParam$6(params, "outboundIps", ips);
|
|
5107
|
+
return satisfiedBuilder;
|
|
5108
|
+
},
|
|
5109
|
+
withPriorityClasses: (classes) => {
|
|
5110
|
+
pushParam$6(params, "priorityClasses", classes);
|
|
5111
|
+
return satisfiedBuilder;
|
|
5112
|
+
},
|
|
5113
|
+
withRoles: (roles) => {
|
|
5114
|
+
pushParam$6(params, "roles", roles);
|
|
5115
|
+
return satisfiedBuilder;
|
|
5116
|
+
},
|
|
5117
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
5118
|
+
pushParam$6(params, "workloadIdentityEnabled", enabled);
|
|
5119
|
+
return satisfiedBuilder;
|
|
5120
|
+
},
|
|
5121
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
5122
|
+
pushParam$6(params, "privateClusterDisabled", disabled);
|
|
5123
|
+
return satisfiedBuilder;
|
|
5124
|
+
},
|
|
5125
|
+
build: () => inner.build()
|
|
5126
|
+
};
|
|
5127
|
+
return satisfiedBuilder;
|
|
5128
|
+
};
|
|
5129
|
+
_AzureAksCluster.create = (config) => {
|
|
5130
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
|
|
5131
|
+
if (config.description) b.withDescription(config.description);
|
|
5132
|
+
if (config.kubernetesVersion) b.withKubernetesVersion(config.kubernetesVersion);
|
|
5133
|
+
if (config.networkPolicyProvider) b.withNetworkPolicyProvider(config.networkPolicyProvider);
|
|
5134
|
+
if (config.masterIpv4CidrBlock) b.withMasterIpv4CidrBlock(config.masterIpv4CidrBlock);
|
|
5135
|
+
if (config.vnetSubnetAddressIpRange) b.withVnetSubnetAddressIpRange(config.vnetSubnetAddressIpRange);
|
|
5136
|
+
if (config.managedClusterSkuTier) b.withManagedClusterSkuTier(config.managedClusterSkuTier);
|
|
5137
|
+
if (config.windowsAdminUsername) b.withWindowsAdminUsername(config.windowsAdminUsername);
|
|
5138
|
+
if (config.externalWorkspaceResourceId) b.withExternalWorkspaceResourceId(config.externalWorkspaceResourceId);
|
|
5139
|
+
if (config.nodePools) b.withNodePools(config.nodePools);
|
|
5140
|
+
if (config.azureActiveDirectoryProfile) b.withAzureActiveDirectoryProfile(config.azureActiveDirectoryProfile);
|
|
5141
|
+
if (config.outboundIps) b.withOutboundIps(config.outboundIps);
|
|
5142
|
+
if (config.priorityClasses) b.withPriorityClasses(config.priorityClasses);
|
|
5143
|
+
if (config.roles) b.withRoles(config.roles);
|
|
5144
|
+
if (config.workloadIdentityEnabled !== void 0) b.withWorkloadIdentityEnabled(config.workloadIdentityEnabled);
|
|
5145
|
+
if (config.privateClusterDisabled !== void 0) b.withPrivateClusterDisabled(config.privateClusterDisabled);
|
|
5146
|
+
return b.build();
|
|
5147
|
+
};
|
|
5148
|
+
})(AzureAksCluster || (AzureAksCluster = {}));
|
|
5149
|
+
|
|
5150
|
+
//#endregion
|
|
5151
|
+
//#region src/live_system/component/network_and_compute/paas/azure_container_apps_environment.ts
|
|
5152
|
+
const AZURE_CONTAINER_APPS_ENV_TYPE_NAME = "AzureContainerAppsEnvironment";
|
|
5153
|
+
function buildId$5(id) {
|
|
5154
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
5155
|
+
}
|
|
5156
|
+
function buildVersion$5(major, minor, patch) {
|
|
5157
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
5158
|
+
}
|
|
5159
|
+
function buildAzureContainerAppsEnvType() {
|
|
5160
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_CONTAINER_APPS_ENV_TYPE_NAME).build()).build();
|
|
5161
|
+
}
|
|
5162
|
+
function pushParam$5(params, key, value) {
|
|
5163
|
+
params.push(key, value);
|
|
5164
|
+
}
|
|
5165
|
+
let AzureContainerAppsEnvironment;
|
|
5166
|
+
(function(_AzureContainerAppsEnvironment) {
|
|
5167
|
+
const getBuilder = _AzureContainerAppsEnvironment.getBuilder = () => {
|
|
5168
|
+
const params = getParametersInstance();
|
|
5169
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerAppsEnvType()).withParameters(params).withProvider("Azure");
|
|
5170
|
+
const builder = {
|
|
5171
|
+
withId: (id) => {
|
|
5172
|
+
inner.withId(buildId$5(id));
|
|
5173
|
+
return builder;
|
|
5174
|
+
},
|
|
5175
|
+
withVersion: (major, minor, patch) => {
|
|
5176
|
+
inner.withVersion(buildVersion$5(major, minor, patch));
|
|
5177
|
+
return builder;
|
|
5178
|
+
},
|
|
5179
|
+
withDisplayName: (displayName) => {
|
|
5180
|
+
inner.withDisplayName(displayName);
|
|
5181
|
+
return builder;
|
|
5182
|
+
},
|
|
5183
|
+
withDescription: (description) => {
|
|
5184
|
+
inner.withDescription(description);
|
|
5185
|
+
return builder;
|
|
5186
|
+
},
|
|
5187
|
+
withLocation: (location) => {
|
|
5188
|
+
pushParam$5(params, "location", location);
|
|
5189
|
+
return builder;
|
|
5190
|
+
},
|
|
5191
|
+
withResourceGroup: (resourceGroup) => {
|
|
5192
|
+
pushParam$5(params, "resourceGroup", resourceGroup);
|
|
5193
|
+
return builder;
|
|
5194
|
+
},
|
|
5195
|
+
withLogAnalyticsWorkspaceId: (id) => {
|
|
5196
|
+
pushParam$5(params, "logAnalyticsWorkspaceId", id);
|
|
5197
|
+
return builder;
|
|
5198
|
+
},
|
|
5199
|
+
withLogAnalyticsSharedKey: (key) => {
|
|
5200
|
+
pushParam$5(params, "logAnalyticsSharedKey", key);
|
|
5201
|
+
return builder;
|
|
5202
|
+
},
|
|
5203
|
+
build: () => inner.build()
|
|
5204
|
+
};
|
|
5205
|
+
return builder;
|
|
5206
|
+
};
|
|
5207
|
+
_AzureContainerAppsEnvironment.satisfy = (platform) => {
|
|
5208
|
+
const params = getParametersInstance();
|
|
5209
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerAppsEnvType()).withParameters(params).withProvider("Azure").withId(buildId$5(platform.id.toString())).withVersion(buildVersion$5(platform.version.major, platform.version.minor, platform.version.patch)).withDisplayName(platform.displayName).withDependencies(platform.dependencies);
|
|
5210
|
+
if (platform.description) inner.withDescription(platform.description);
|
|
5211
|
+
const satisfiedBuilder = {
|
|
5212
|
+
withLocation: (location) => {
|
|
5213
|
+
pushParam$5(params, "location", location);
|
|
5214
|
+
return satisfiedBuilder;
|
|
5215
|
+
},
|
|
5216
|
+
withResourceGroup: (resourceGroup) => {
|
|
5217
|
+
pushParam$5(params, "resourceGroup", resourceGroup);
|
|
5218
|
+
return satisfiedBuilder;
|
|
5219
|
+
},
|
|
5220
|
+
withLogAnalyticsWorkspaceId: (id) => {
|
|
5221
|
+
pushParam$5(params, "logAnalyticsWorkspaceId", id);
|
|
5222
|
+
return satisfiedBuilder;
|
|
5223
|
+
},
|
|
5224
|
+
withLogAnalyticsSharedKey: (key) => {
|
|
5225
|
+
pushParam$5(params, "logAnalyticsSharedKey", key);
|
|
5226
|
+
return satisfiedBuilder;
|
|
5227
|
+
},
|
|
5228
|
+
build: () => inner.build()
|
|
5229
|
+
};
|
|
5230
|
+
return satisfiedBuilder;
|
|
5231
|
+
};
|
|
5232
|
+
_AzureContainerAppsEnvironment.create = (config) => {
|
|
5233
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withLocation(config.location).withResourceGroup(config.resourceGroup);
|
|
5234
|
+
if (config.description) b.withDescription(config.description);
|
|
5235
|
+
if (config.logAnalyticsWorkspaceId) b.withLogAnalyticsWorkspaceId(config.logAnalyticsWorkspaceId);
|
|
5236
|
+
if (config.logAnalyticsSharedKey) b.withLogAnalyticsSharedKey(config.logAnalyticsSharedKey);
|
|
5237
|
+
return b.build();
|
|
5238
|
+
};
|
|
5239
|
+
})(AzureContainerAppsEnvironment || (AzureContainerAppsEnvironment = {}));
|
|
5240
|
+
|
|
5241
|
+
//#endregion
|
|
5242
|
+
//#region src/live_system/component/network_and_compute/paas/azure_container_instance.ts
|
|
5243
|
+
const AZURE_CONTAINER_INSTANCE_TYPE_NAME = "AzureContainerInstance";
|
|
5244
|
+
function buildId$4(id) {
|
|
5245
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
5246
|
+
}
|
|
5247
|
+
function buildVersion$4(major, minor, patch) {
|
|
5248
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
5249
|
+
}
|
|
5250
|
+
function buildAzureContainerInstanceType() {
|
|
5251
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_CONTAINER_INSTANCE_TYPE_NAME).build()).build();
|
|
5252
|
+
}
|
|
5253
|
+
function pushParam$4(params, key, value) {
|
|
5254
|
+
params.push(key, value);
|
|
5255
|
+
}
|
|
5256
|
+
let AzureContainerInstance;
|
|
5257
|
+
(function(_AzureContainerInstance) {
|
|
5258
|
+
const getBuilder = _AzureContainerInstance.getBuilder = () => {
|
|
5259
|
+
const params = getParametersInstance();
|
|
5260
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerInstanceType()).withParameters(params).withProvider("Azure");
|
|
5261
|
+
const builder = {
|
|
5262
|
+
withId: (id) => {
|
|
5263
|
+
inner.withId(buildId$4(id));
|
|
5264
|
+
return builder;
|
|
5265
|
+
},
|
|
5266
|
+
withVersion: (major, minor, patch) => {
|
|
5267
|
+
inner.withVersion(buildVersion$4(major, minor, patch));
|
|
5268
|
+
return builder;
|
|
5269
|
+
},
|
|
5270
|
+
withDisplayName: (displayName) => {
|
|
5271
|
+
inner.withDisplayName(displayName);
|
|
5272
|
+
return builder;
|
|
5273
|
+
},
|
|
5274
|
+
withDescription: (description) => {
|
|
5275
|
+
inner.withDescription(description);
|
|
5276
|
+
return builder;
|
|
5277
|
+
},
|
|
5278
|
+
withImage: (image) => {
|
|
5279
|
+
pushParam$4(params, "image", image);
|
|
5280
|
+
return builder;
|
|
5281
|
+
},
|
|
5282
|
+
withPort: (port) => {
|
|
5283
|
+
pushParam$4(params, "port", port);
|
|
5284
|
+
return builder;
|
|
5285
|
+
},
|
|
5286
|
+
withLocation: (location) => {
|
|
5287
|
+
pushParam$4(params, "location", location);
|
|
5288
|
+
return builder;
|
|
5289
|
+
},
|
|
5290
|
+
withResourceGroup: (resourceGroup) => {
|
|
5291
|
+
pushParam$4(params, "resourceGroup", resourceGroup);
|
|
5292
|
+
return builder;
|
|
5293
|
+
},
|
|
5294
|
+
withCpu: (cpu) => {
|
|
5295
|
+
pushParam$4(params, "cpu", cpu);
|
|
5296
|
+
return builder;
|
|
5297
|
+
},
|
|
5298
|
+
withMemoryInGb: (memoryInGb) => {
|
|
5299
|
+
pushParam$4(params, "memoryInGB", memoryInGb);
|
|
5300
|
+
return builder;
|
|
5301
|
+
},
|
|
5302
|
+
withRestartPolicy: (policy) => {
|
|
5303
|
+
pushParam$4(params, "restartPolicy", policy);
|
|
5304
|
+
return builder;
|
|
5305
|
+
},
|
|
5306
|
+
withPublicIp: (publicIp) => {
|
|
5307
|
+
pushParam$4(params, "publicIp", publicIp);
|
|
5308
|
+
return builder;
|
|
5309
|
+
},
|
|
5310
|
+
withDnsNameLabel: (label) => {
|
|
5311
|
+
pushParam$4(params, "dnsNameLabel", label);
|
|
5312
|
+
return builder;
|
|
5313
|
+
},
|
|
5314
|
+
build: () => inner.build()
|
|
5315
|
+
};
|
|
5316
|
+
return builder;
|
|
5317
|
+
};
|
|
5318
|
+
_AzureContainerInstance.satisfy = (workload) => {
|
|
5319
|
+
const params = getParametersInstance();
|
|
5320
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerInstanceType()).withParameters(params).withProvider("Azure").withId(buildId$4(workload.id.toString())).withVersion(buildVersion$4(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(workload.dependencies).withLinks(workload.links);
|
|
5321
|
+
if (workload.description) inner.withDescription(workload.description);
|
|
5322
|
+
const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
|
|
5323
|
+
if (image !== null) pushParam$4(params, "image", image);
|
|
5324
|
+
const port = workload.parameters.getOptionalFieldByName(CONTAINER_PORT_PARAM);
|
|
5325
|
+
if (port !== null) pushParam$4(params, "port", port);
|
|
5326
|
+
const satisfiedBuilder = {
|
|
5327
|
+
withLocation: (location) => {
|
|
5328
|
+
pushParam$4(params, "location", location);
|
|
5329
|
+
return satisfiedBuilder;
|
|
5330
|
+
},
|
|
5331
|
+
withResourceGroup: (resourceGroup) => {
|
|
5332
|
+
pushParam$4(params, "resourceGroup", resourceGroup);
|
|
5333
|
+
return satisfiedBuilder;
|
|
5334
|
+
},
|
|
5335
|
+
withCpu: (cpu) => {
|
|
5336
|
+
pushParam$4(params, "cpu", cpu);
|
|
5337
|
+
return satisfiedBuilder;
|
|
5338
|
+
},
|
|
5339
|
+
withMemoryInGb: (memoryInGb) => {
|
|
5340
|
+
pushParam$4(params, "memoryInGB", memoryInGb);
|
|
5341
|
+
return satisfiedBuilder;
|
|
5342
|
+
},
|
|
5343
|
+
withRestartPolicy: (policy) => {
|
|
5344
|
+
pushParam$4(params, "restartPolicy", policy);
|
|
5345
|
+
return satisfiedBuilder;
|
|
5346
|
+
},
|
|
5347
|
+
withPublicIp: (publicIp) => {
|
|
5348
|
+
pushParam$4(params, "publicIp", publicIp);
|
|
5349
|
+
return satisfiedBuilder;
|
|
5350
|
+
},
|
|
5351
|
+
withDnsNameLabel: (label) => {
|
|
5352
|
+
pushParam$4(params, "dnsNameLabel", label);
|
|
5353
|
+
return satisfiedBuilder;
|
|
5354
|
+
},
|
|
5355
|
+
build: () => inner.build()
|
|
5356
|
+
};
|
|
5357
|
+
return satisfiedBuilder;
|
|
5358
|
+
};
|
|
5359
|
+
_AzureContainerInstance.create = (config) => {
|
|
5360
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withImage(config.image).withLocation(config.location).withResourceGroup(config.resourceGroup);
|
|
5361
|
+
if (config.description) b.withDescription(config.description);
|
|
5362
|
+
if (config.port !== void 0) b.withPort(config.port);
|
|
5363
|
+
if (config.cpu !== void 0) b.withCpu(config.cpu);
|
|
5364
|
+
if (config.memoryInGb !== void 0) b.withMemoryInGb(config.memoryInGb);
|
|
5365
|
+
if (config.restartPolicy) b.withRestartPolicy(config.restartPolicy);
|
|
5366
|
+
if (config.publicIp !== void 0) b.withPublicIp(config.publicIp);
|
|
5367
|
+
if (config.dnsNameLabel) b.withDnsNameLabel(config.dnsNameLabel);
|
|
5368
|
+
return b.build();
|
|
5369
|
+
};
|
|
5370
|
+
})(AzureContainerInstance || (AzureContainerInstance = {}));
|
|
5371
|
+
|
|
5372
|
+
//#endregion
|
|
5373
|
+
//#region src/live_system/component/network_and_compute/paas/azure_container_app.ts
|
|
5374
|
+
const AZURE_CONTAINER_APP_TYPE_NAME = "AzureContainerApp";
|
|
5375
|
+
function buildId$3(id) {
|
|
5376
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
5377
|
+
}
|
|
5378
|
+
function buildVersion$3(major, minor, patch) {
|
|
5379
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
5380
|
+
}
|
|
5381
|
+
function buildAzureContainerAppType() {
|
|
5382
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_CONTAINER_APP_TYPE_NAME).build()).build();
|
|
5383
|
+
}
|
|
5384
|
+
function pushParam$3(params, key, value) {
|
|
5385
|
+
params.push(key, value);
|
|
5386
|
+
}
|
|
5387
|
+
let AzureContainerApp;
|
|
5388
|
+
(function(_AzureContainerApp) {
|
|
5389
|
+
const getBuilder = _AzureContainerApp.getBuilder = () => {
|
|
5390
|
+
const params = getParametersInstance();
|
|
5391
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerAppType()).withParameters(params).withProvider("Azure");
|
|
5392
|
+
const builder = {
|
|
5393
|
+
withId: (id) => {
|
|
5394
|
+
inner.withId(buildId$3(id));
|
|
5395
|
+
return builder;
|
|
5396
|
+
},
|
|
5397
|
+
withVersion: (major, minor, patch) => {
|
|
5398
|
+
inner.withVersion(buildVersion$3(major, minor, patch));
|
|
5399
|
+
return builder;
|
|
5400
|
+
},
|
|
5401
|
+
withDisplayName: (displayName) => {
|
|
5402
|
+
inner.withDisplayName(displayName);
|
|
5403
|
+
return builder;
|
|
5404
|
+
},
|
|
5405
|
+
withDescription: (description) => {
|
|
5406
|
+
inner.withDescription(description);
|
|
5407
|
+
return builder;
|
|
5408
|
+
},
|
|
5409
|
+
withImage: (image) => {
|
|
5410
|
+
pushParam$3(params, "image", image);
|
|
5411
|
+
return builder;
|
|
5412
|
+
},
|
|
5413
|
+
withPort: (port) => {
|
|
5414
|
+
pushParam$3(params, "port", port);
|
|
5415
|
+
return builder;
|
|
5416
|
+
},
|
|
5417
|
+
withCpu: (cpu) => {
|
|
5418
|
+
pushParam$3(params, "cpu", cpu);
|
|
5419
|
+
return builder;
|
|
5420
|
+
},
|
|
5421
|
+
withMemory: (memory) => {
|
|
5422
|
+
pushParam$3(params, "memory", memory);
|
|
5423
|
+
return builder;
|
|
5424
|
+
},
|
|
5425
|
+
withLocation: (location) => {
|
|
5426
|
+
pushParam$3(params, "location", location);
|
|
5427
|
+
return builder;
|
|
5428
|
+
},
|
|
5429
|
+
withResourceGroup: (resourceGroup) => {
|
|
5430
|
+
pushParam$3(params, "resourceGroup", resourceGroup);
|
|
5431
|
+
return builder;
|
|
5432
|
+
},
|
|
5433
|
+
withExternalIngress: (external) => {
|
|
5434
|
+
pushParam$3(params, "externalIngress", external);
|
|
5435
|
+
return builder;
|
|
5436
|
+
},
|
|
5437
|
+
withMinReplicas: (min) => {
|
|
5438
|
+
pushParam$3(params, "minReplicas", min);
|
|
5439
|
+
return builder;
|
|
5440
|
+
},
|
|
5441
|
+
withMaxReplicas: (max) => {
|
|
5442
|
+
pushParam$3(params, "maxReplicas", max);
|
|
5443
|
+
return builder;
|
|
5444
|
+
},
|
|
5445
|
+
build: () => inner.build()
|
|
5446
|
+
};
|
|
5447
|
+
return builder;
|
|
5448
|
+
};
|
|
5449
|
+
_AzureContainerApp.satisfy = (workload) => {
|
|
5450
|
+
const params = getParametersInstance();
|
|
5451
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerAppType()).withParameters(params).withProvider("Azure").withId(buildId$3(workload.id.toString())).withVersion(buildVersion$3(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(workload.dependencies).withLinks(workload.links);
|
|
5452
|
+
if (workload.description) inner.withDescription(workload.description);
|
|
5453
|
+
const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
|
|
5454
|
+
if (image !== null) pushParam$3(params, "image", image);
|
|
5455
|
+
const port = workload.parameters.getOptionalFieldByName(CONTAINER_PORT_PARAM);
|
|
5456
|
+
if (port !== null) pushParam$3(params, "port", port);
|
|
5457
|
+
const cpu = workload.parameters.getOptionalFieldByName(CPU_PARAM);
|
|
5458
|
+
if (cpu !== null) pushParam$3(params, "cpu", cpu);
|
|
5459
|
+
const memory = workload.parameters.getOptionalFieldByName(MEMORY_PARAM);
|
|
5460
|
+
if (memory !== null) pushParam$3(params, "memory", memory);
|
|
5461
|
+
const satisfiedBuilder = {
|
|
5462
|
+
withLocation: (location) => {
|
|
5463
|
+
pushParam$3(params, "location", location);
|
|
5464
|
+
return satisfiedBuilder;
|
|
5465
|
+
},
|
|
5466
|
+
withResourceGroup: (resourceGroup) => {
|
|
5467
|
+
pushParam$3(params, "resourceGroup", resourceGroup);
|
|
5468
|
+
return satisfiedBuilder;
|
|
5469
|
+
},
|
|
5470
|
+
withExternalIngress: (external) => {
|
|
5471
|
+
pushParam$3(params, "externalIngress", external);
|
|
5472
|
+
return satisfiedBuilder;
|
|
5473
|
+
},
|
|
5474
|
+
withMinReplicas: (min) => {
|
|
5475
|
+
pushParam$3(params, "minReplicas", min);
|
|
5476
|
+
return satisfiedBuilder;
|
|
5477
|
+
},
|
|
5478
|
+
withMaxReplicas: (max) => {
|
|
5479
|
+
pushParam$3(params, "maxReplicas", max);
|
|
5480
|
+
return satisfiedBuilder;
|
|
5481
|
+
},
|
|
5482
|
+
build: () => inner.build()
|
|
5483
|
+
};
|
|
5484
|
+
return satisfiedBuilder;
|
|
5485
|
+
};
|
|
5486
|
+
_AzureContainerApp.create = (config) => {
|
|
5487
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withImage(config.image).withLocation(config.location).withResourceGroup(config.resourceGroup);
|
|
5488
|
+
if (config.description) b.withDescription(config.description);
|
|
5489
|
+
if (config.port !== void 0) b.withPort(config.port);
|
|
5490
|
+
if (config.cpu !== void 0) b.withCpu(config.cpu);
|
|
5491
|
+
if (config.memory) b.withMemory(config.memory);
|
|
5492
|
+
if (config.externalIngress !== void 0) b.withExternalIngress(config.externalIngress);
|
|
5493
|
+
if (config.minReplicas !== void 0) b.withMinReplicas(config.minReplicas);
|
|
5494
|
+
if (config.maxReplicas !== void 0) b.withMaxReplicas(config.maxReplicas);
|
|
5495
|
+
return b.build();
|
|
5496
|
+
};
|
|
5497
|
+
})(AzureContainerApp || (AzureContainerApp = {}));
|
|
5498
|
+
|
|
5499
|
+
//#endregion
|
|
5500
|
+
//#region src/live_system/component/network_and_compute/paas/gcp_gke.ts
|
|
5501
|
+
const GKE_CLUSTER_TYPE_NAME = "GKE";
|
|
5502
|
+
function buildId$2(id) {
|
|
5503
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
5504
|
+
}
|
|
5505
|
+
function buildVersion$2(major, minor, patch) {
|
|
5506
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
5507
|
+
}
|
|
5508
|
+
function buildGcpGkeClusterType() {
|
|
5509
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(GKE_CLUSTER_TYPE_NAME).build()).build();
|
|
5510
|
+
}
|
|
5511
|
+
function pushParam$2(params, key, value) {
|
|
5512
|
+
params.push(key, value);
|
|
5513
|
+
}
|
|
5514
|
+
let GcpGkeCluster;
|
|
5515
|
+
(function(_GcpGkeCluster) {
|
|
5516
|
+
const getBuilder = _GcpGkeCluster.getBuilder = () => {
|
|
5517
|
+
const params = getParametersInstance();
|
|
5518
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpGkeClusterType()).withParameters(params).withProvider("GCP");
|
|
5519
|
+
const builder = {
|
|
5520
|
+
withId: (id) => {
|
|
5521
|
+
inner.withId(buildId$2(id));
|
|
5522
|
+
return builder;
|
|
5523
|
+
},
|
|
5524
|
+
withVersion: (major, minor, patch) => {
|
|
5525
|
+
inner.withVersion(buildVersion$2(major, minor, patch));
|
|
5526
|
+
return builder;
|
|
5527
|
+
},
|
|
5528
|
+
withDisplayName: (displayName) => {
|
|
5529
|
+
inner.withDisplayName(displayName);
|
|
5530
|
+
return builder;
|
|
5531
|
+
},
|
|
5532
|
+
withDescription: (description) => {
|
|
5533
|
+
inner.withDescription(description);
|
|
5534
|
+
return builder;
|
|
5535
|
+
},
|
|
5536
|
+
withKubernetesVersion: (v) => {
|
|
5537
|
+
pushParam$2(params, "kubernetesVersion", v);
|
|
5538
|
+
return builder;
|
|
5539
|
+
},
|
|
5540
|
+
withNetworkPolicyProvider: (p) => {
|
|
5541
|
+
pushParam$2(params, "networkPolicyProvider", p);
|
|
5542
|
+
return builder;
|
|
5543
|
+
},
|
|
5544
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
5545
|
+
pushParam$2(params, "masterIpv4CidrBlock", cidr);
|
|
5546
|
+
return builder;
|
|
5547
|
+
},
|
|
5548
|
+
withNetworkName: (name) => {
|
|
5549
|
+
pushParam$2(params, "networkName", name);
|
|
5550
|
+
return builder;
|
|
5551
|
+
},
|
|
5552
|
+
withSubnetworkName: (name) => {
|
|
5553
|
+
pushParam$2(params, "subnetworkName", name);
|
|
5554
|
+
return builder;
|
|
5555
|
+
},
|
|
5556
|
+
withSubnetworkIpRange: (range) => {
|
|
5557
|
+
pushParam$2(params, "subnetworkIpRange", range);
|
|
5558
|
+
return builder;
|
|
5559
|
+
},
|
|
5560
|
+
withServiceIpRange: (range) => {
|
|
5561
|
+
pushParam$2(params, "serviceIpRange", range);
|
|
5562
|
+
return builder;
|
|
5563
|
+
},
|
|
5564
|
+
withPodIpRange: (range) => {
|
|
5565
|
+
pushParam$2(params, "podIpRange", range);
|
|
5566
|
+
return builder;
|
|
5567
|
+
},
|
|
5568
|
+
withPodsRangeName: (name) => {
|
|
5569
|
+
pushParam$2(params, "podsRangeName", name);
|
|
5570
|
+
return builder;
|
|
5571
|
+
},
|
|
5572
|
+
withServicesRangeName: (name) => {
|
|
5573
|
+
pushParam$2(params, "servicesRangeName", name);
|
|
5574
|
+
return builder;
|
|
5575
|
+
},
|
|
5576
|
+
withNodePools: (nodePools) => {
|
|
5577
|
+
pushParam$2(params, "nodePools", nodePools);
|
|
5578
|
+
return builder;
|
|
5579
|
+
},
|
|
5580
|
+
withPriorityClasses: (classes) => {
|
|
5581
|
+
pushParam$2(params, "priorityClasses", classes);
|
|
5582
|
+
return builder;
|
|
5583
|
+
},
|
|
5584
|
+
withRoles: (roles) => {
|
|
5585
|
+
pushParam$2(params, "roles", roles);
|
|
5586
|
+
return builder;
|
|
5587
|
+
},
|
|
5588
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
5589
|
+
pushParam$2(params, "workloadIdentityEnabled", enabled);
|
|
5590
|
+
return builder;
|
|
5591
|
+
},
|
|
5592
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
5593
|
+
pushParam$2(params, "privateClusterDisabled", disabled);
|
|
5594
|
+
return builder;
|
|
5595
|
+
},
|
|
5596
|
+
build: () => inner.build()
|
|
5597
|
+
};
|
|
5598
|
+
return builder;
|
|
5599
|
+
};
|
|
5600
|
+
_GcpGkeCluster.satisfy = (platform) => {
|
|
5601
|
+
const params = getParametersInstance();
|
|
5602
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpGkeClusterType()).withParameters(params).withProvider("GCP").withId(buildId$2(platform.id.toString())).withVersion(buildVersion$2(platform.version.major, platform.version.minor, platform.version.patch)).withDisplayName(platform.displayName);
|
|
5603
|
+
if (platform.description) inner.withDescription(platform.description);
|
|
5604
|
+
const satisfiedBuilder = {
|
|
5605
|
+
withKubernetesVersion: (v) => {
|
|
5606
|
+
pushParam$2(params, "kubernetesVersion", v);
|
|
5607
|
+
return satisfiedBuilder;
|
|
5608
|
+
},
|
|
5609
|
+
withNetworkPolicyProvider: (p) => {
|
|
5610
|
+
pushParam$2(params, "networkPolicyProvider", p);
|
|
5611
|
+
return satisfiedBuilder;
|
|
5612
|
+
},
|
|
5613
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
5614
|
+
pushParam$2(params, "masterIpv4CidrBlock", cidr);
|
|
5615
|
+
return satisfiedBuilder;
|
|
5616
|
+
},
|
|
5617
|
+
withNetworkName: (name) => {
|
|
5618
|
+
pushParam$2(params, "networkName", name);
|
|
5619
|
+
return satisfiedBuilder;
|
|
5620
|
+
},
|
|
5621
|
+
withSubnetworkName: (name) => {
|
|
5622
|
+
pushParam$2(params, "subnetworkName", name);
|
|
5623
|
+
return satisfiedBuilder;
|
|
5624
|
+
},
|
|
5625
|
+
withSubnetworkIpRange: (range) => {
|
|
5626
|
+
pushParam$2(params, "subnetworkIpRange", range);
|
|
5627
|
+
return satisfiedBuilder;
|
|
5628
|
+
},
|
|
5629
|
+
withServiceIpRange: (range) => {
|
|
5630
|
+
pushParam$2(params, "serviceIpRange", range);
|
|
5631
|
+
return satisfiedBuilder;
|
|
5632
|
+
},
|
|
5633
|
+
withPodIpRange: (range) => {
|
|
5634
|
+
pushParam$2(params, "podIpRange", range);
|
|
5635
|
+
return satisfiedBuilder;
|
|
5636
|
+
},
|
|
5637
|
+
withPodsRangeName: (name) => {
|
|
5638
|
+
pushParam$2(params, "podsRangeName", name);
|
|
5639
|
+
return satisfiedBuilder;
|
|
5640
|
+
},
|
|
5641
|
+
withServicesRangeName: (name) => {
|
|
5642
|
+
pushParam$2(params, "servicesRangeName", name);
|
|
5643
|
+
return satisfiedBuilder;
|
|
5644
|
+
},
|
|
5645
|
+
withNodePools: (nodePools) => {
|
|
5646
|
+
pushParam$2(params, "nodePools", nodePools);
|
|
5647
|
+
return satisfiedBuilder;
|
|
5648
|
+
},
|
|
5649
|
+
withPriorityClasses: (classes) => {
|
|
5650
|
+
pushParam$2(params, "priorityClasses", classes);
|
|
5651
|
+
return satisfiedBuilder;
|
|
5652
|
+
},
|
|
5653
|
+
withRoles: (roles) => {
|
|
5654
|
+
pushParam$2(params, "roles", roles);
|
|
5655
|
+
return satisfiedBuilder;
|
|
5656
|
+
},
|
|
5657
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
5658
|
+
pushParam$2(params, "workloadIdentityEnabled", enabled);
|
|
5659
|
+
return satisfiedBuilder;
|
|
5660
|
+
},
|
|
5661
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
5662
|
+
pushParam$2(params, "privateClusterDisabled", disabled);
|
|
5663
|
+
return satisfiedBuilder;
|
|
5664
|
+
},
|
|
5665
|
+
build: () => inner.build()
|
|
5666
|
+
};
|
|
5667
|
+
return satisfiedBuilder;
|
|
5668
|
+
};
|
|
5669
|
+
_GcpGkeCluster.create = (config) => {
|
|
5670
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
|
|
5671
|
+
if (config.description) b.withDescription(config.description);
|
|
5672
|
+
if (config.kubernetesVersion) b.withKubernetesVersion(config.kubernetesVersion);
|
|
5673
|
+
if (config.networkPolicyProvider) b.withNetworkPolicyProvider(config.networkPolicyProvider);
|
|
5674
|
+
if (config.masterIpv4CidrBlock) b.withMasterIpv4CidrBlock(config.masterIpv4CidrBlock);
|
|
5675
|
+
if (config.networkName) b.withNetworkName(config.networkName);
|
|
5676
|
+
if (config.subnetworkName) b.withSubnetworkName(config.subnetworkName);
|
|
5677
|
+
if (config.subnetworkIpRange) b.withSubnetworkIpRange(config.subnetworkIpRange);
|
|
5678
|
+
if (config.serviceIpRange) b.withServiceIpRange(config.serviceIpRange);
|
|
5679
|
+
if (config.podIpRange) b.withPodIpRange(config.podIpRange);
|
|
5680
|
+
if (config.podsRangeName) b.withPodsRangeName(config.podsRangeName);
|
|
5681
|
+
if (config.servicesRangeName) b.withServicesRangeName(config.servicesRangeName);
|
|
5682
|
+
if (config.nodePools) b.withNodePools(config.nodePools);
|
|
5683
|
+
if (config.priorityClasses) b.withPriorityClasses(config.priorityClasses);
|
|
5684
|
+
if (config.roles) b.withRoles(config.roles);
|
|
5685
|
+
if (config.workloadIdentityEnabled !== void 0) b.withWorkloadIdentityEnabled(config.workloadIdentityEnabled);
|
|
5686
|
+
if (config.privateClusterDisabled !== void 0) b.withPrivateClusterDisabled(config.privateClusterDisabled);
|
|
5687
|
+
return b.build();
|
|
5688
|
+
};
|
|
5689
|
+
})(GcpGkeCluster || (GcpGkeCluster = {}));
|
|
5690
|
+
|
|
5691
|
+
//#endregion
|
|
5692
|
+
//#region src/live_system/component/network_and_compute/paas/gcp_cloud_run_service.ts
|
|
5693
|
+
const CLOUD_RUN_SERVICE_TYPE_NAME = "CloudRunService";
|
|
5694
|
+
function buildId$1(id) {
|
|
5695
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
5696
|
+
}
|
|
5697
|
+
function buildVersion$1(major, minor, patch) {
|
|
5698
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
5699
|
+
}
|
|
5700
|
+
function buildGcpCloudRunServiceType() {
|
|
5701
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(CLOUD_RUN_SERVICE_TYPE_NAME).build()).build();
|
|
5702
|
+
}
|
|
5703
|
+
function pushParam$1(params, key, value) {
|
|
5704
|
+
params.push(key, value);
|
|
5705
|
+
}
|
|
5706
|
+
let GcpCloudRunService;
|
|
5707
|
+
(function(_GcpCloudRunService) {
|
|
5708
|
+
const getBuilder = _GcpCloudRunService.getBuilder = () => {
|
|
5709
|
+
const params = getParametersInstance();
|
|
5710
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpCloudRunServiceType()).withParameters(params).withProvider("GCP");
|
|
5711
|
+
const builder = {
|
|
5712
|
+
withId: (id) => {
|
|
5713
|
+
inner.withId(buildId$1(id));
|
|
5714
|
+
return builder;
|
|
5715
|
+
},
|
|
5716
|
+
withVersion: (major, minor, patch) => {
|
|
5717
|
+
inner.withVersion(buildVersion$1(major, minor, patch));
|
|
5718
|
+
return builder;
|
|
5719
|
+
},
|
|
5720
|
+
withDisplayName: (displayName) => {
|
|
5721
|
+
inner.withDisplayName(displayName);
|
|
5722
|
+
return builder;
|
|
5723
|
+
},
|
|
5724
|
+
withDescription: (description) => {
|
|
5725
|
+
inner.withDescription(description);
|
|
5726
|
+
return builder;
|
|
5727
|
+
},
|
|
5728
|
+
withImage: (image) => {
|
|
5729
|
+
pushParam$1(params, "image", image);
|
|
5730
|
+
return builder;
|
|
5731
|
+
},
|
|
5732
|
+
withPort: (port) => {
|
|
5733
|
+
pushParam$1(params, "port", port);
|
|
5734
|
+
return builder;
|
|
5735
|
+
},
|
|
5736
|
+
withCpu: (cpu) => {
|
|
5737
|
+
pushParam$1(params, "cpu", cpu);
|
|
5738
|
+
return builder;
|
|
5739
|
+
},
|
|
5740
|
+
withMemory: (memory) => {
|
|
5741
|
+
pushParam$1(params, "memory", memory);
|
|
5742
|
+
return builder;
|
|
5743
|
+
},
|
|
5744
|
+
withRegion: (region) => {
|
|
5745
|
+
pushParam$1(params, "region", region);
|
|
5746
|
+
return builder;
|
|
5747
|
+
},
|
|
5748
|
+
withMinInstances: (min) => {
|
|
5749
|
+
pushParam$1(params, "minInstances", min);
|
|
5750
|
+
return builder;
|
|
5751
|
+
},
|
|
5752
|
+
withMaxInstances: (max) => {
|
|
5753
|
+
pushParam$1(params, "maxInstances", max);
|
|
5754
|
+
return builder;
|
|
5755
|
+
},
|
|
5756
|
+
withConcurrency: (concurrency) => {
|
|
5757
|
+
pushParam$1(params, "concurrency", concurrency);
|
|
5758
|
+
return builder;
|
|
5759
|
+
},
|
|
5760
|
+
withServiceAccountEmail: (email) => {
|
|
5761
|
+
pushParam$1(params, "serviceAccountEmail", email);
|
|
5762
|
+
return builder;
|
|
5763
|
+
},
|
|
5764
|
+
withIngress: (ingress) => {
|
|
5765
|
+
pushParam$1(params, "ingress", ingress);
|
|
5766
|
+
return builder;
|
|
5767
|
+
},
|
|
5768
|
+
build: () => inner.build()
|
|
5769
|
+
};
|
|
5770
|
+
return builder;
|
|
5771
|
+
};
|
|
5772
|
+
_GcpCloudRunService.satisfy = (workload) => {
|
|
5773
|
+
const params = getParametersInstance();
|
|
5774
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpCloudRunServiceType()).withParameters(params).withProvider("GCP").withId(buildId$1(workload.id.toString())).withVersion(buildVersion$1(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(workload.dependencies).withLinks(workload.links);
|
|
5775
|
+
if (workload.description) inner.withDescription(workload.description);
|
|
5776
|
+
const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
|
|
5777
|
+
if (image !== null) pushParam$1(params, "image", image);
|
|
5778
|
+
const port = workload.parameters.getOptionalFieldByName(CONTAINER_PORT_PARAM);
|
|
5779
|
+
if (port !== null) pushParam$1(params, "port", port);
|
|
5780
|
+
const cpu = workload.parameters.getOptionalFieldByName(CPU_PARAM);
|
|
5781
|
+
if (cpu !== null) pushParam$1(params, "cpu", cpu);
|
|
5782
|
+
const memory = workload.parameters.getOptionalFieldByName(MEMORY_PARAM);
|
|
5783
|
+
if (memory !== null) pushParam$1(params, "memory", memory);
|
|
5784
|
+
const satisfiedBuilder = {
|
|
5785
|
+
withRegion: (region) => {
|
|
5786
|
+
pushParam$1(params, "region", region);
|
|
5787
|
+
return satisfiedBuilder;
|
|
5788
|
+
},
|
|
5789
|
+
withMinInstances: (min) => {
|
|
5790
|
+
pushParam$1(params, "minInstances", min);
|
|
5791
|
+
return satisfiedBuilder;
|
|
5792
|
+
},
|
|
5793
|
+
withMaxInstances: (max) => {
|
|
5794
|
+
pushParam$1(params, "maxInstances", max);
|
|
5795
|
+
return satisfiedBuilder;
|
|
5796
|
+
},
|
|
5797
|
+
withConcurrency: (concurrency) => {
|
|
5798
|
+
pushParam$1(params, "concurrency", concurrency);
|
|
5799
|
+
return satisfiedBuilder;
|
|
5800
|
+
},
|
|
5801
|
+
withServiceAccountEmail: (email) => {
|
|
5802
|
+
pushParam$1(params, "serviceAccountEmail", email);
|
|
5803
|
+
return satisfiedBuilder;
|
|
5804
|
+
},
|
|
5805
|
+
withIngress: (ingress) => {
|
|
5806
|
+
pushParam$1(params, "ingress", ingress);
|
|
5807
|
+
return satisfiedBuilder;
|
|
5808
|
+
},
|
|
5809
|
+
build: () => inner.build()
|
|
5810
|
+
};
|
|
5811
|
+
return satisfiedBuilder;
|
|
5812
|
+
};
|
|
5813
|
+
_GcpCloudRunService.create = (config) => {
|
|
5814
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withImage(config.image).withRegion(config.region);
|
|
5815
|
+
if (config.description) b.withDescription(config.description);
|
|
5816
|
+
if (config.port !== void 0) b.withPort(config.port);
|
|
5817
|
+
if (config.cpu) b.withCpu(config.cpu);
|
|
5818
|
+
if (config.memory) b.withMemory(config.memory);
|
|
5819
|
+
if (config.minInstances !== void 0) b.withMinInstances(config.minInstances);
|
|
5820
|
+
if (config.maxInstances !== void 0) b.withMaxInstances(config.maxInstances);
|
|
5821
|
+
if (config.concurrency !== void 0) b.withConcurrency(config.concurrency);
|
|
5822
|
+
if (config.serviceAccountEmail) b.withServiceAccountEmail(config.serviceAccountEmail);
|
|
5823
|
+
if (config.ingress) b.withIngress(config.ingress);
|
|
5824
|
+
return b.build();
|
|
5825
|
+
};
|
|
5826
|
+
})(GcpCloudRunService || (GcpCloudRunService = {}));
|
|
5827
|
+
|
|
5828
|
+
//#endregion
|
|
5829
|
+
//#region src/live_system/component/network_and_compute/paas/oci_container_instance.ts
|
|
5830
|
+
const OCI_CONTAINER_INSTANCE_TYPE_NAME = "OciContainerInstance";
|
|
5831
|
+
function buildId(id) {
|
|
5832
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
5833
|
+
}
|
|
5834
|
+
function buildVersion(major, minor, patch) {
|
|
5835
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
5836
|
+
}
|
|
5837
|
+
function buildOciContainerInstanceType() {
|
|
5838
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_CONTAINER_INSTANCE_TYPE_NAME).build()).build();
|
|
5839
|
+
}
|
|
5840
|
+
function pushParam(params, key, value) {
|
|
5841
|
+
params.push(key, value);
|
|
5842
|
+
}
|
|
5843
|
+
let OciContainerInstance;
|
|
5844
|
+
(function(_OciContainerInstance) {
|
|
5845
|
+
const getBuilder = _OciContainerInstance.getBuilder = () => {
|
|
5846
|
+
const params = getParametersInstance();
|
|
5847
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciContainerInstanceType()).withParameters(params).withProvider("OCI");
|
|
5848
|
+
const builder = {
|
|
5849
|
+
withId: (id) => {
|
|
5850
|
+
inner.withId(buildId(id));
|
|
5851
|
+
return builder;
|
|
5852
|
+
},
|
|
5853
|
+
withVersion: (major, minor, patch) => {
|
|
5854
|
+
inner.withVersion(buildVersion(major, minor, patch));
|
|
5855
|
+
return builder;
|
|
5856
|
+
},
|
|
5857
|
+
withDisplayName: (displayName) => {
|
|
5858
|
+
inner.withDisplayName(displayName);
|
|
5859
|
+
return builder;
|
|
5860
|
+
},
|
|
5861
|
+
withDescription: (description) => {
|
|
5862
|
+
inner.withDescription(description);
|
|
5863
|
+
return builder;
|
|
5864
|
+
},
|
|
5865
|
+
withImageUrl: (imageUrl) => {
|
|
5866
|
+
pushParam(params, "imageUrl", imageUrl);
|
|
5867
|
+
return builder;
|
|
5868
|
+
},
|
|
5869
|
+
withAvailabilityDomain: (domain) => {
|
|
5870
|
+
pushParam(params, "availabilityDomain", domain);
|
|
5871
|
+
return builder;
|
|
5872
|
+
},
|
|
5873
|
+
withCompartmentId: (compartmentId) => {
|
|
5874
|
+
pushParam(params, "compartmentId", compartmentId);
|
|
5875
|
+
return builder;
|
|
5876
|
+
},
|
|
5877
|
+
withOcpus: (ocpus) => {
|
|
5878
|
+
pushParam(params, "ocpus", ocpus);
|
|
5879
|
+
return builder;
|
|
5880
|
+
},
|
|
5881
|
+
withMemoryInGbs: (memoryInGbs) => {
|
|
5882
|
+
pushParam(params, "memoryInGBs", memoryInGbs);
|
|
5883
|
+
return builder;
|
|
5884
|
+
},
|
|
5885
|
+
withShape: (shape) => {
|
|
5886
|
+
pushParam(params, "shape", shape);
|
|
5887
|
+
return builder;
|
|
5888
|
+
},
|
|
5889
|
+
withPort: (port) => {
|
|
5890
|
+
pushParam(params, "port", port);
|
|
5891
|
+
return builder;
|
|
5892
|
+
},
|
|
5893
|
+
withAssignPublicIp: (assignPublicIp) => {
|
|
5894
|
+
pushParam(params, "assignPublicIp", assignPublicIp);
|
|
5895
|
+
return builder;
|
|
5896
|
+
},
|
|
5897
|
+
withContainerRestartPolicy: (policy) => {
|
|
5898
|
+
pushParam(params, "containerRestartPolicy", policy);
|
|
5899
|
+
return builder;
|
|
5900
|
+
},
|
|
5901
|
+
build: () => inner.build()
|
|
5902
|
+
};
|
|
5903
|
+
return builder;
|
|
5904
|
+
};
|
|
5905
|
+
_OciContainerInstance.satisfy = (workload) => {
|
|
5906
|
+
const params = getParametersInstance();
|
|
5907
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciContainerInstanceType()).withParameters(params).withProvider("OCI").withId(buildId(workload.id.toString())).withVersion(buildVersion(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(workload.dependencies).withLinks(workload.links);
|
|
5908
|
+
if (workload.description) inner.withDescription(workload.description);
|
|
5909
|
+
const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
|
|
5910
|
+
if (image !== null) pushParam(params, "imageUrl", image);
|
|
5911
|
+
const satisfiedBuilder = {
|
|
5912
|
+
withAvailabilityDomain: (domain) => {
|
|
5913
|
+
pushParam(params, "availabilityDomain", domain);
|
|
5914
|
+
return satisfiedBuilder;
|
|
5915
|
+
},
|
|
5916
|
+
withCompartmentId: (compartmentId) => {
|
|
5917
|
+
pushParam(params, "compartmentId", compartmentId);
|
|
5918
|
+
return satisfiedBuilder;
|
|
5919
|
+
},
|
|
5920
|
+
withOcpus: (ocpus) => {
|
|
5921
|
+
pushParam(params, "ocpus", ocpus);
|
|
5922
|
+
return satisfiedBuilder;
|
|
5923
|
+
},
|
|
5924
|
+
withMemoryInGbs: (memoryInGbs) => {
|
|
5925
|
+
pushParam(params, "memoryInGBs", memoryInGbs);
|
|
5926
|
+
return satisfiedBuilder;
|
|
5927
|
+
},
|
|
5928
|
+
withShape: (shape) => {
|
|
5929
|
+
pushParam(params, "shape", shape);
|
|
5930
|
+
return satisfiedBuilder;
|
|
5931
|
+
},
|
|
5932
|
+
withAssignPublicIp: (assignPublicIp) => {
|
|
5933
|
+
pushParam(params, "assignPublicIp", assignPublicIp);
|
|
5934
|
+
return satisfiedBuilder;
|
|
5935
|
+
},
|
|
5936
|
+
withContainerRestartPolicy: (policy) => {
|
|
5937
|
+
pushParam(params, "containerRestartPolicy", policy);
|
|
5938
|
+
return satisfiedBuilder;
|
|
5939
|
+
},
|
|
5940
|
+
build: () => inner.build()
|
|
5941
|
+
};
|
|
5942
|
+
return satisfiedBuilder;
|
|
5943
|
+
};
|
|
5944
|
+
_OciContainerInstance.create = (config) => {
|
|
5945
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withImageUrl(config.imageUrl).withAvailabilityDomain(config.availabilityDomain).withCompartmentId(config.compartmentId);
|
|
5946
|
+
if (config.description) b.withDescription(config.description);
|
|
5947
|
+
if (config.ocpus !== void 0) b.withOcpus(config.ocpus);
|
|
5948
|
+
if (config.memoryInGbs !== void 0) b.withMemoryInGbs(config.memoryInGbs);
|
|
5949
|
+
if (config.shape) b.withShape(config.shape);
|
|
5950
|
+
if (config.port !== void 0) b.withPort(config.port);
|
|
5951
|
+
if (config.assignPublicIp !== void 0) b.withAssignPublicIp(config.assignPublicIp);
|
|
5952
|
+
if (config.containerRestartPolicy) b.withContainerRestartPolicy(config.containerRestartPolicy);
|
|
5953
|
+
return b.build();
|
|
5954
|
+
};
|
|
5955
|
+
})(OciContainerInstance || (OciContainerInstance = {}));
|
|
5956
|
+
|
|
4703
5957
|
//#endregion
|
|
4704
5958
|
//#region src/index.ts
|
|
4705
5959
|
const BoundedContext = BoundedContext$1;
|
|
@@ -4717,4 +5971,4 @@ const Environment = Environment$1;
|
|
|
4717
5971
|
const LiveSystem = LiveSystem$1;
|
|
4718
5972
|
|
|
4719
5973
|
//#endregion
|
|
4720
|
-
export { AwsEcsCluster, AwsEcsService, AwsEcsTaskDefinition, AwsSecurityGroup, AwsSubnet, AwsVpc, AzureNsg, AzureSubnet, AzureVm, AzureVnet, BoundedContext, ContainerPlatform, Ec2Instance, Environment, Fractal, GcpFirewall, GcpSubnet, GcpVm, GcpVpc, HetznerFirewall, HetznerNetwork, HetznerServer, HetznerSubnet, InfrastructureDomain, KebabCaseString, LiveSystem, OciInstance, OciSecurityList, OciSubnet, OciVcn, OwnerId, OwnerType, PascalCaseString, SecurityGroup, ServiceAccountCredentials, ServiceAccountId, ServiceDeliveryModel, Subnet, Version, VirtualMachine, VirtualNetwork, Workload };
|
|
5974
|
+
export { AwsEcsCluster, AwsEcsService, AwsEcsTaskDefinition, AwsEksCluster, AwsSecurityGroup, AwsSubnet, AwsVpc, AzureAksCluster, AzureContainerApp, AzureContainerAppsEnvironment, AzureContainerInstance, AzureNsg, AzureSubnet, AzureVm, AzureVnet, BoundedContext, ContainerPlatform, Ec2Instance, Environment, Fractal, GcpCloudRunService, GcpFirewall, GcpGkeCluster, GcpSubnet, GcpVm, GcpVpc, HetznerFirewall, HetznerNetwork, HetznerServer, HetznerSubnet, InfrastructureDomain, KebabCaseString, LiveSystem, OciContainerInstance, OciInstance, OciSecurityList, OciSubnet, OciVcn, OwnerId, OwnerType, PascalCaseString, SecurityGroup, ServiceAccountCredentials, ServiceAccountId, ServiceDeliveryModel, Subnet, Version, VirtualMachine, VirtualNetwork, Workload };
|