@fractal_cloud/sdk 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1172,28 +1172,61 @@ let BlueprintComponent;
1172
1172
  const CLIENT_ID_HEADER$1 = "X-ClientID";
1173
1173
  const CLIENT_SECRET_HEADER$1 = "X-ClientSecret";
1174
1174
  const FRACTAL_API_URL$1 = "https://api.fractal.cloud";
1175
+ /**
1176
+ * Converts a raw superagent error into a descriptive Error with context.
1177
+ * Includes the operation name, target ID, HTTP status (if any), and response
1178
+ * body (if any) so the caller always knows what went wrong and where.
1179
+ */
1180
+ const toApiError$1 = (operation, target, err) => {
1181
+ const e = err;
1182
+ const status = e.status ? `HTTP ${e.status}` : "network error";
1183
+ const body = e.response?.text?.trim();
1184
+ const detail = body ? ` — ${body}` : "";
1185
+ return /* @__PURE__ */ new Error(`${operation} failed (${status}) for ${target}${detail}`);
1186
+ };
1187
+ const authHeaders$1 = (credentials) => ({
1188
+ [CLIENT_ID_HEADER$1]: credentials.id.serviceAccountIdValue,
1189
+ [CLIENT_SECRET_HEADER$1]: credentials.secret
1190
+ });
1175
1191
  const deployFractal = async (credentials, fractal) => {
1176
- const fractalUrl = `${FRACTAL_API_URL$1}/blueprints/${fractal.id.toString().replace(":", "/")}`;
1177
- ((await superagent.default.get(fractalUrl).ok((res) => res.status === 200 || res.status === 404).set(CLIENT_ID_HEADER$1, credentials.id.serviceAccountIdValue).set(CLIENT_SECRET_HEADER$1, credentials.secret).send()).status === 200 ? superagent.default.put(fractalUrl) : superagent.default.post(fractalUrl)).set(CLIENT_ID_HEADER$1, credentials.id.serviceAccountIdValue).set(CLIENT_SECRET_HEADER$1, credentials.secret).send({
1178
- description: fractal.description,
1179
- isPrivate: fractal.isPrivate,
1180
- components: fractal.components.map((c) => ({
1181
- ...c,
1182
- type: c.type.toString(),
1183
- id: c.id.value.toString(),
1184
- version: c.version.toString(),
1185
- parameters: c.parameters.toMap(),
1186
- dependencies: c.dependencies.map((d) => d.id.value.toString()),
1187
- links: c.links.map((l) => ({
1188
- componentId: l.id.value.toString(),
1189
- settings: l.parameters.toMap()
1190
- })),
1191
- outputFields: Object.keys(c.outputFields.value)
1192
- }))
1193
- }).catch((e) => console.error(e.message, e.response.text));
1192
+ const target = fractal.id.toString();
1193
+ const fractalUrl = `${FRACTAL_API_URL$1}/blueprints/${target.replace(":", "/")}`;
1194
+ let getFractalResponse;
1195
+ try {
1196
+ getFractalResponse = await superagent.default.get(fractalUrl).ok((res) => res.status === 200 || res.status === 404).set(authHeaders$1(credentials)).send();
1197
+ } catch (err) {
1198
+ throw toApiError$1("check fractal existence", target, err);
1199
+ }
1200
+ const request = getFractalResponse.status === 200 ? superagent.default.put(fractalUrl) : superagent.default.post(fractalUrl);
1201
+ try {
1202
+ await request.set(authHeaders$1(credentials)).send({
1203
+ description: fractal.description,
1204
+ isPrivate: fractal.isPrivate,
1205
+ components: fractal.components.map((c) => ({
1206
+ ...c,
1207
+ type: c.type.toString(),
1208
+ id: c.id.value.toString(),
1209
+ version: c.version.toString(),
1210
+ parameters: c.parameters.toMap(),
1211
+ dependencies: c.dependencies.map((d) => d.id.value.toString()),
1212
+ links: c.links.map((l) => ({
1213
+ componentId: l.id.value.toString(),
1214
+ settings: l.parameters.toMap()
1215
+ })),
1216
+ outputFields: Object.keys(c.outputFields.value)
1217
+ }))
1218
+ });
1219
+ } catch (err) {
1220
+ throw toApiError$1(getFractalResponse.status === 200 ? "update fractal" : "create fractal", target, err);
1221
+ }
1194
1222
  };
1195
1223
  const destroyFractal = async (credentials, id) => {
1196
- await superagent.default.delete(`${FRACTAL_API_URL$1}/blueprints/${id.toString().replace(":", "/")}`).set(CLIENT_ID_HEADER$1, credentials.id.serviceAccountIdValue).set(CLIENT_SECRET_HEADER$1, credentials.secret);
1224
+ const target = id.toString();
1225
+ try {
1226
+ await superagent.default.delete(`${FRACTAL_API_URL$1}/blueprints/${target.replace(":", "/")}`).set(authHeaders$1(credentials));
1227
+ } catch (err) {
1228
+ throw toApiError$1("destroy fractal", target, err);
1229
+ }
1197
1230
  };
1198
1231
  let FractalService;
1199
1232
  (function(_FractalService) {
@@ -1835,43 +1868,178 @@ const getLiveSystemComponentBuilder = () => {
1835
1868
  const CLIENT_ID_HEADER = "X-ClientID";
1836
1869
  const CLIENT_SECRET_HEADER = "X-ClientSecret";
1837
1870
  const FRACTAL_API_URL = "https://api.fractal.cloud";
1838
- const deployLiveSystem = async (credentials, liveSystem) => {
1839
- const body = {
1840
- liveSystemId: liveSystem.id.toString(),
1841
- fractalId: liveSystem.fractalId.toString(),
1842
- description: liveSystem.description,
1843
- provider: liveSystem.genericProvider,
1844
- blueprintMap: liveSystem.components.reduce((acc, c) => {
1845
- acc[c.id.value.toString()] = {
1846
- ...c,
1847
- type: c.type.toString(),
1848
- id: c.id.value.toString(),
1849
- version: c.version.toString(),
1850
- parameters: c.parameters.toMap(),
1851
- dependencies: c.dependencies.map((d) => d.id.value.toString()),
1852
- links: c.links.map((l) => ({
1853
- componentId: l.id.value.toString(),
1854
- settings: l.parameters.toMap()
1855
- })),
1856
- outputFields: c.outputFields.value
1857
- };
1858
- return acc;
1859
- }, {}),
1860
- parameters: liveSystem.parameters.toMap(),
1861
- environment: {
1862
- id: {
1863
- type: liveSystem.environment.id.ownerType,
1864
- ownerId: liveSystem.environment.id.ownerId.toString(),
1865
- shortName: liveSystem.environment.id.name.toString()
1866
- },
1867
- parameters: liveSystem.environment.parameters.toMap()
1871
+ const DEFAULT_POLL_INTERVAL_MS = 5e3;
1872
+ const DEFAULT_TIMEOUT_MS = 6e5;
1873
+ const TERMINAL_FAILURE_STATUSES = ["FailedMutation", "Error"];
1874
+ const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
1875
+ const log = (quiet, level, message, fields) => {
1876
+ if (quiet) return;
1877
+ const ts = (/* @__PURE__ */ new Date()).toISOString();
1878
+ const fieldStr = fields ? " " + Object.entries(fields).map(([k, v]) => `${k}=${v}`).join(" ") : "";
1879
+ console.log(`[${ts}] ${level.padEnd(5)} ${message}${fieldStr}`);
1880
+ };
1881
+ const elapsedSec = (startMs) => `${Math.round((Date.now() - startMs) / 1e3)}s`;
1882
+ /**
1883
+ * Converts a raw superagent error into a descriptive Error with context.
1884
+ * Includes the operation name, target ID, HTTP status (if any), and response
1885
+ * body (if any) so the caller always knows what went wrong and where.
1886
+ */
1887
+ const toApiError = (operation, target, err) => {
1888
+ const e = err;
1889
+ const status = e.status ? `HTTP ${e.status}` : "network error";
1890
+ const body = e.response?.text?.trim();
1891
+ const detail = body ? ` — ${body}` : "";
1892
+ return /* @__PURE__ */ new Error(`${operation} failed (${status}) for ${target}${detail}`);
1893
+ };
1894
+ /**
1895
+ * Returns true for 4xx client errors that will not self-heal on retry
1896
+ * (e.g. 401 Unauthorized, 403 Forbidden, 404 Not Found, 422 Unprocessable).
1897
+ */
1898
+ const isClientError = (err) => {
1899
+ const status = err.status;
1900
+ return status !== void 0 && status >= 400 && status < 500;
1901
+ };
1902
+ const authHeaders = (credentials) => ({
1903
+ [CLIENT_ID_HEADER]: credentials.id.serviceAccountIdValue,
1904
+ [CLIENT_SECRET_HEADER]: credentials.secret
1905
+ });
1906
+ const buildBody = (liveSystem) => ({
1907
+ liveSystemId: liveSystem.id.toString(),
1908
+ fractalId: liveSystem.fractalId.toString(),
1909
+ description: liveSystem.description,
1910
+ provider: liveSystem.genericProvider,
1911
+ blueprintMap: liveSystem.components.reduce((acc, c) => {
1912
+ acc[c.id.value.toString()] = {
1913
+ ...c,
1914
+ type: c.type.toString(),
1915
+ id: c.id.value.toString(),
1916
+ version: c.version.toString(),
1917
+ parameters: c.parameters.toMap(),
1918
+ dependencies: c.dependencies.map((d) => d.id.value.toString()),
1919
+ links: c.links.map((l) => ({
1920
+ componentId: l.id.value.toString(),
1921
+ settings: l.parameters.toMap()
1922
+ })),
1923
+ outputFields: c.outputFields.value
1924
+ };
1925
+ return acc;
1926
+ }, {}),
1927
+ parameters: liveSystem.parameters.toMap(),
1928
+ environment: {
1929
+ id: {
1930
+ type: liveSystem.environment.id.ownerType,
1931
+ ownerId: liveSystem.environment.id.ownerId.toString(),
1932
+ shortName: liveSystem.environment.id.name.toString()
1933
+ },
1934
+ parameters: liveSystem.environment.parameters.toMap()
1935
+ }
1936
+ });
1937
+ const submitDeploy = async (credentials, liveSystem) => {
1938
+ const target = liveSystem.id.toString();
1939
+ const liveSystemUrl = `${FRACTAL_API_URL}/livesystems/${target}`;
1940
+ let getResponse;
1941
+ try {
1942
+ getResponse = await superagent.default.get(liveSystemUrl).ok((res) => res.status === 200 || res.status === 404).set(authHeaders(credentials)).send();
1943
+ } catch (err) {
1944
+ throw toApiError("check live system existence", target, err);
1945
+ }
1946
+ const request = getResponse.status === 200 ? superagent.default.put(liveSystemUrl) : superagent.default.post(`${FRACTAL_API_URL}/livesystems`);
1947
+ try {
1948
+ await request.set(authHeaders(credentials)).send(buildBody(liveSystem));
1949
+ } catch (err) {
1950
+ throw toApiError(getResponse.status === 200 ? "update live system" : "create live system", target, err);
1951
+ }
1952
+ };
1953
+ const getLiveSystemStatus = async (credentials, id) => {
1954
+ try {
1955
+ return (await superagent.default.get(`${FRACTAL_API_URL}/livesystems/${id.toString()}`).set(authHeaders(credentials)).send()).body.status;
1956
+ } catch (err) {
1957
+ throw toApiError("get live system status", id.toString(), err);
1958
+ }
1959
+ };
1960
+ const pollUntilActive = async (credentials, id, options, startMs) => {
1961
+ const quiet = options.quiet ?? false;
1962
+ const interval = options.pollIntervalMs ?? DEFAULT_POLL_INTERVAL_MS;
1963
+ const timeout = options.timeoutMs ?? DEFAULT_TIMEOUT_MS;
1964
+ const deadline = Date.now() + timeout;
1965
+ let round = 0;
1966
+ while (Date.now() < deadline) {
1967
+ await sleep(interval);
1968
+ round++;
1969
+ let status;
1970
+ try {
1971
+ status = await getLiveSystemStatus(credentials, id);
1972
+ } catch (err) {
1973
+ if (isClientError(err)) {
1974
+ const message = err instanceof Error ? err.message : String(err);
1975
+ log(quiet, "ERROR", "Fatal error polling Live System status", {
1976
+ system: id.toString(),
1977
+ round,
1978
+ elapsed: elapsedSec(startMs),
1979
+ error: message
1980
+ });
1981
+ throw err;
1982
+ }
1983
+ const message = err instanceof Error ? err.message : String(err);
1984
+ log(quiet, "WARN", "Transient error polling status, will retry", {
1985
+ system: id.toString(),
1986
+ round,
1987
+ elapsed: elapsedSec(startMs),
1988
+ error: message
1989
+ });
1990
+ continue;
1868
1991
  }
1869
- };
1870
- const liveSystemUrl = `${FRACTAL_API_URL}/livesystems/${liveSystem.id.toString()}`;
1871
- ((await superagent.default.get(liveSystemUrl).ok((res) => res.status === 200 || res.status === 404).set(CLIENT_ID_HEADER, credentials.id.serviceAccountIdValue).set(CLIENT_SECRET_HEADER, credentials.secret).send()).status === 200 ? superagent.default.put(liveSystemUrl) : superagent.default.post(`${FRACTAL_API_URL}/livesystems`)).set(CLIENT_ID_HEADER, credentials.id.serviceAccountIdValue).set(CLIENT_SECRET_HEADER, credentials.secret).send(body).catch((e) => console.error(e.message, e.response.text));
1992
+ if (status === "Active") return;
1993
+ if (TERMINAL_FAILURE_STATUSES.includes(status)) {
1994
+ log(quiet, "ERROR", "Live System deployment failed", {
1995
+ system: id.toString(),
1996
+ status,
1997
+ elapsed: elapsedSec(startMs)
1998
+ });
1999
+ throw new Error(`Live system deployment failed with status: ${status} — check the Fractal Cloud console for component-level errors`);
2000
+ }
2001
+ log(quiet, "CHECK", "Polling Live System status", {
2002
+ system: id.toString(),
2003
+ round,
2004
+ status,
2005
+ elapsed: elapsedSec(startMs)
2006
+ });
2007
+ }
2008
+ log(quiet, "ERROR", "Live System deployment timed out", {
2009
+ system: id.toString(),
2010
+ elapsed: elapsedSec(startMs),
2011
+ timeoutMs: timeout
2012
+ });
2013
+ throw new Error(`Live system deployment timed out after ${timeout}ms. Increase timeoutMs in DeployOptions if provisioning takes longer.`);
2014
+ };
2015
+ const deployLiveSystem = async (credentials, liveSystem, options = { mode: "fire-and-forget" }) => {
2016
+ if (options.mode === "fire-and-forget") {
2017
+ submitDeploy(credentials, liveSystem).catch((err) => {
2018
+ const message = err instanceof Error ? err.message : String(err);
2019
+ console.error(`[Fractal] live system deploy error: ${message}`);
2020
+ });
2021
+ return;
2022
+ }
2023
+ const quiet = options.quiet ?? false;
2024
+ const startMs = Date.now();
2025
+ log(quiet, "INFO", "Deploying Live System", {
2026
+ system: liveSystem.id.toString(),
2027
+ fractal: liveSystem.fractalId.toString(),
2028
+ provider: liveSystem.genericProvider
2029
+ });
2030
+ await submitDeploy(credentials, liveSystem);
2031
+ await pollUntilActive(credentials, liveSystem.id, options, startMs);
2032
+ log(quiet, "INFO", "Live System Active", {
2033
+ system: liveSystem.id.toString(),
2034
+ elapsed: elapsedSec(startMs)
2035
+ });
1872
2036
  };
1873
2037
  const destroyLiveSystem = async (credentials, id) => {
1874
- await superagent.default.delete(`${FRACTAL_API_URL}/livesystems/${id.toString()}`).set(CLIENT_ID_HEADER, credentials.id.serviceAccountIdValue).set(CLIENT_SECRET_HEADER, credentials.secret);
2038
+ try {
2039
+ await superagent.default.delete(`${FRACTAL_API_URL}/livesystems/${id.toString()}`).set(authHeaders(credentials));
2040
+ } catch (err) {
2041
+ throw toApiError("destroy live system", id.toString(), err);
2042
+ }
1875
2043
  };
1876
2044
  let LiveSystemService;
1877
2045
  (function(_LiveSystemService) {
@@ -2016,7 +2184,7 @@ const getLiveSystemBuilder = () => {
2016
2184
  if (validationErrors.length > 0) throw new SyntaxError(validationErrors.join("\n"));
2017
2185
  return {
2018
2186
  ...internalState,
2019
- deploy: (credentials) => LiveSystemService.deploy(credentials, internalState),
2187
+ deploy: (credentials, options) => LiveSystemService.deploy(credentials, internalState, options),
2020
2188
  destroy: (credentials) => LiveSystemService.destroy(credentials, internalState.id)
2021
2189
  };
2022
2190
  }
@@ -2043,19 +2211,19 @@ let LiveSystem$1;
2043
2211
  //#region src/fractal/component/network_and_compute/iaas/virtual_network.ts
2044
2212
  const VIRTUAL_NETWORK_TYPE_NAME = "VirtualNetwork";
2045
2213
  const CIDR_BLOCK_PARAM$1 = "cidrBlock";
2046
- function buildId$28(id) {
2214
+ function buildId$36(id) {
2047
2215
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2048
2216
  }
2049
- function buildVersion$28(major, minor, patch) {
2217
+ function buildVersion$36(major, minor, patch) {
2050
2218
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2051
2219
  }
2052
2220
  function buildVirtualNetworkType() {
2053
2221
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(VIRTUAL_NETWORK_TYPE_NAME).build()).build();
2054
2222
  }
2055
- function pushParam$25(params, key, value) {
2223
+ function pushParam$33(params, key, value) {
2056
2224
  params.push(key, value);
2057
2225
  }
2058
- function makeVirtualNetworkNode(vpc, subnetNodes, sgs) {
2226
+ function makeVirtualNetworkComponent(vpc, subnetNodes, sgs) {
2059
2227
  const vpcDep = { id: vpc.id };
2060
2228
  const wiredSubnets = subnetNodes.map((n) => ({
2061
2229
  ...n.subnet,
@@ -2080,8 +2248,8 @@ function makeVirtualNetworkNode(vpc, subnetNodes, sgs) {
2080
2248
  ...allVMs,
2081
2249
  ...allEcsSvcs
2082
2250
  ],
2083
- withSubnets: (newSubnets) => makeVirtualNetworkNode(vpc, newSubnets, sgs),
2084
- withSecurityGroups: (newSgs) => makeVirtualNetworkNode(vpc, subnetNodes, newSgs)
2251
+ withSubnets: (newSubnets) => makeVirtualNetworkComponent(vpc, newSubnets, sgs),
2252
+ withSecurityGroups: (newSgs) => makeVirtualNetworkComponent(vpc, subnetNodes, newSgs)
2085
2253
  };
2086
2254
  }
2087
2255
  let VirtualNetwork;
@@ -2093,11 +2261,11 @@ let VirtualNetwork;
2093
2261
  const sgBuilders = [];
2094
2262
  const builder = {
2095
2263
  withId: (id) => {
2096
- inner.withId(buildId$28(id));
2264
+ inner.withId(buildId$36(id));
2097
2265
  return builder;
2098
2266
  },
2099
2267
  withVersion: (major, minor, patch) => {
2100
- inner.withVersion(buildVersion$28(major, minor, patch));
2268
+ inner.withVersion(buildVersion$36(major, minor, patch));
2101
2269
  return builder;
2102
2270
  },
2103
2271
  withDisplayName: (displayName) => {
@@ -2109,7 +2277,7 @@ let VirtualNetwork;
2109
2277
  return builder;
2110
2278
  },
2111
2279
  withCidrBlock: (value) => {
2112
- pushParam$25(params, CIDR_BLOCK_PARAM$1, value);
2280
+ pushParam$33(params, CIDR_BLOCK_PARAM$1, value);
2113
2281
  return builder;
2114
2282
  },
2115
2283
  withSubnet: (subnetBuilder) => {
@@ -2157,7 +2325,7 @@ let VirtualNetwork;
2157
2325
  const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
2158
2326
  if (config.cidrBlock) b.withCidrBlock(config.cidrBlock);
2159
2327
  if (config.description) b.withDescription(config.description);
2160
- return makeVirtualNetworkNode(b.build().vpc, [], []);
2328
+ return makeVirtualNetworkComponent(b.build().vpc, [], []);
2161
2329
  };
2162
2330
  })(VirtualNetwork || (VirtualNetwork = {}));
2163
2331
 
@@ -2165,19 +2333,19 @@ let VirtualNetwork;
2165
2333
  //#region src/fractal/component/network_and_compute/iaas/subnet.ts
2166
2334
  const SUBNET_TYPE_NAME = "Subnet";
2167
2335
  const CIDR_BLOCK_PARAM = "cidrBlock";
2168
- function buildId$27(id) {
2336
+ function buildId$35(id) {
2169
2337
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2170
2338
  }
2171
- function buildVersion$27(major, minor, patch) {
2339
+ function buildVersion$35(major, minor, patch) {
2172
2340
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2173
2341
  }
2174
2342
  function buildSubnetType() {
2175
2343
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(SUBNET_TYPE_NAME).build()).build();
2176
2344
  }
2177
- function pushParam$24(params, key, value) {
2345
+ function pushParam$32(params, key, value) {
2178
2346
  params.push(key, value);
2179
2347
  }
2180
- function makeSubnetNode(subnet, vms, workloadNodes) {
2348
+ function makeSubnetComponent(subnet, vms, workloadNodes) {
2181
2349
  const subnetDep = { id: subnet.id };
2182
2350
  const wiredVMs = vms.map((n) => ({
2183
2351
  ...n.component,
@@ -2196,8 +2364,8 @@ function makeSubnetNode(subnet, vms, workloadNodes) {
2196
2364
  ...wiredVMs,
2197
2365
  ...wiredWorkloads
2198
2366
  ],
2199
- withVirtualMachines: (newVMs) => makeSubnetNode(subnet, newVMs, workloadNodes),
2200
- withWorkloads: (newWorkloads) => makeSubnetNode(subnet, vms, newWorkloads)
2367
+ withVirtualMachines: (newVMs) => makeSubnetComponent(subnet, newVMs, workloadNodes),
2368
+ withWorkloads: (newWorkloads) => makeSubnetComponent(subnet, vms, newWorkloads)
2201
2369
  };
2202
2370
  }
2203
2371
  let Subnet;
@@ -2208,11 +2376,11 @@ let Subnet;
2208
2376
  const vmBuilders = [];
2209
2377
  const builder = {
2210
2378
  withId: (id) => {
2211
- inner.withId(buildId$27(id));
2379
+ inner.withId(buildId$35(id));
2212
2380
  return builder;
2213
2381
  },
2214
2382
  withVersion: (major, minor, patch) => {
2215
- inner.withVersion(buildVersion$27(major, minor, patch));
2383
+ inner.withVersion(buildVersion$35(major, minor, patch));
2216
2384
  return builder;
2217
2385
  },
2218
2386
  withDisplayName: (displayName) => {
@@ -2224,7 +2392,7 @@ let Subnet;
2224
2392
  return builder;
2225
2393
  },
2226
2394
  withCidrBlock: (value) => {
2227
- pushParam$24(params, CIDR_BLOCK_PARAM, value);
2395
+ pushParam$32(params, CIDR_BLOCK_PARAM, value);
2228
2396
  return builder;
2229
2397
  },
2230
2398
  withVirtualMachine: (vmBuilder) => {
@@ -2255,7 +2423,7 @@ let Subnet;
2255
2423
  const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
2256
2424
  if (config.cidrBlock) b.withCidrBlock(config.cidrBlock);
2257
2425
  if (config.description) b.withDescription(config.description);
2258
- return makeSubnetNode(b.build().subnet, [], []);
2426
+ return makeSubnetComponent(b.build().subnet, [], []);
2259
2427
  };
2260
2428
  })(Subnet || (Subnet = {}));
2261
2429
 
@@ -2264,16 +2432,16 @@ let Subnet;
2264
2432
  const SECURITY_GROUP_TYPE_NAME = "SecurityGroup";
2265
2433
  const DESCRIPTION_PARAM = "description";
2266
2434
  const INGRESS_RULES_PARAM = "ingressRules";
2267
- function buildId$26(id) {
2435
+ function buildId$34(id) {
2268
2436
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2269
2437
  }
2270
- function buildVersion$26(major, minor, patch) {
2438
+ function buildVersion$34(major, minor, patch) {
2271
2439
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2272
2440
  }
2273
2441
  function buildSecurityGroupType() {
2274
2442
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(SECURITY_GROUP_TYPE_NAME).build()).build();
2275
2443
  }
2276
- function pushParam$23(params, key, value) {
2444
+ function pushParam$31(params, key, value) {
2277
2445
  params.push(key, value);
2278
2446
  }
2279
2447
  let SecurityGroup;
@@ -2283,11 +2451,11 @@ let SecurityGroup;
2283
2451
  const inner = getBlueprintComponentBuilder().withType(buildSecurityGroupType()).withParameters(params);
2284
2452
  const builder = {
2285
2453
  withId: (id) => {
2286
- inner.withId(buildId$26(id));
2454
+ inner.withId(buildId$34(id));
2287
2455
  return builder;
2288
2456
  },
2289
2457
  withVersion: (major, minor, patch) => {
2290
- inner.withVersion(buildVersion$26(major, minor, patch));
2458
+ inner.withVersion(buildVersion$34(major, minor, patch));
2291
2459
  return builder;
2292
2460
  },
2293
2461
  withDisplayName: (displayName) => {
@@ -2296,11 +2464,11 @@ let SecurityGroup;
2296
2464
  },
2297
2465
  withDescription: (description) => {
2298
2466
  inner.withDescription(description);
2299
- pushParam$23(params, DESCRIPTION_PARAM, description);
2467
+ pushParam$31(params, DESCRIPTION_PARAM, description);
2300
2468
  return builder;
2301
2469
  },
2302
2470
  withIngressRules: (rules) => {
2303
- pushParam$23(params, INGRESS_RULES_PARAM, rules);
2471
+ pushParam$31(params, INGRESS_RULES_PARAM, rules);
2304
2472
  return builder;
2305
2473
  },
2306
2474
  withLinks: (links) => {
@@ -2321,10 +2489,10 @@ let SecurityGroup;
2321
2489
  //#endregion
2322
2490
  //#region src/fractal/component/network_and_compute/iaas/vm.ts
2323
2491
  const VIRTUAL_MACHINE_TYPE_NAME = "VirtualMachine";
2324
- function buildId$25(id) {
2492
+ function buildId$33(id) {
2325
2493
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2326
2494
  }
2327
- function buildVersion$25(major, minor, patch) {
2495
+ function buildVersion$33(major, minor, patch) {
2328
2496
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2329
2497
  }
2330
2498
  function buildVirtualMachineType() {
@@ -2337,16 +2505,23 @@ function buildLinkParams$1(link) {
2337
2505
  if (link.protocol) params.push("protocol", link.protocol);
2338
2506
  return params;
2339
2507
  }
2340
- function makeVirtualMachineNode(component) {
2508
+ function makeVirtualMachineComponent(component) {
2341
2509
  return {
2342
2510
  component,
2343
2511
  components: [component],
2344
- withLinks: (links) => {
2512
+ linkToVirtualMachine: (links) => {
2345
2513
  const componentLinks = links.map((l) => getLinkBuilder().withId(l.target.component.id).withType(buildVirtualMachineType()).withParameters(buildLinkParams$1(l)).build());
2346
- return makeVirtualMachineNode({
2514
+ return makeVirtualMachineComponent({
2347
2515
  ...component,
2348
2516
  links: [...component.links, ...componentLinks]
2349
2517
  });
2518
+ },
2519
+ linkToSecurityGroup: (sgs) => {
2520
+ const sgLinks = sgs.map((sg) => getLinkBuilder().withId(sg.id).withType(sg.type).withParameters(getParametersInstance()).build());
2521
+ return makeVirtualMachineComponent({
2522
+ ...component,
2523
+ links: [...component.links, ...sgLinks]
2524
+ });
2350
2525
  }
2351
2526
  };
2352
2527
  }
@@ -2356,11 +2531,11 @@ let VirtualMachine;
2356
2531
  const inner = getBlueprintComponentBuilder().withType(buildVirtualMachineType()).withParameters(getParametersInstance());
2357
2532
  const builder = {
2358
2533
  withId: (id) => {
2359
- inner.withId(buildId$25(id));
2534
+ inner.withId(buildId$33(id));
2360
2535
  return builder;
2361
2536
  },
2362
2537
  withVersion: (major, minor, patch) => {
2363
- inner.withVersion(buildVersion$25(major, minor, patch));
2538
+ inner.withVersion(buildVersion$33(major, minor, patch));
2364
2539
  return builder;
2365
2540
  },
2366
2541
  withDisplayName: (displayName) => {
@@ -2382,7 +2557,7 @@ let VirtualMachine;
2382
2557
  _VirtualMachine.create = (config) => {
2383
2558
  const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
2384
2559
  if (config.description) b.withDescription(config.description);
2385
- return makeVirtualMachineNode(b.build());
2560
+ return makeVirtualMachineComponent(b.build());
2386
2561
  };
2387
2562
  })(VirtualMachine || (VirtualMachine = {}));
2388
2563
 
@@ -2392,16 +2567,16 @@ const AWS_VPC_TYPE_NAME = "AwsVpc";
2392
2567
  const INSTANCE_TENANCY_PARAM = "instanceTenancy";
2393
2568
  const ENABLE_DNS_SUPPORT_PARAM = "enableDnsSupport";
2394
2569
  const ENABLE_DNS_HOSTNAMES_PARAM = "enableDnsHostnames";
2395
- function buildId$24(id) {
2570
+ function buildId$32(id) {
2396
2571
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2397
2572
  }
2398
- function buildVersion$24(major, minor, patch) {
2573
+ function buildVersion$32(major, minor, patch) {
2399
2574
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2400
2575
  }
2401
2576
  function buildAwsVpcType() {
2402
2577
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_VPC_TYPE_NAME).build()).build();
2403
2578
  }
2404
- function pushParam$22(params, key, value) {
2579
+ function pushParam$30(params, key, value) {
2405
2580
  params.push(key, value);
2406
2581
  }
2407
2582
  let AwsVpc;
@@ -2411,11 +2586,11 @@ let AwsVpc;
2411
2586
  const inner = getLiveSystemComponentBuilder().withType(buildAwsVpcType()).withParameters(params).withProvider("AWS");
2412
2587
  const builder = {
2413
2588
  withId: (id) => {
2414
- inner.withId(buildId$24(id));
2589
+ inner.withId(buildId$32(id));
2415
2590
  return builder;
2416
2591
  },
2417
2592
  withVersion: (major, minor, patch) => {
2418
- inner.withVersion(buildVersion$24(major, minor, patch));
2593
+ inner.withVersion(buildVersion$32(major, minor, patch));
2419
2594
  return builder;
2420
2595
  },
2421
2596
  withDisplayName: (displayName) => {
@@ -2427,19 +2602,19 @@ let AwsVpc;
2427
2602
  return builder;
2428
2603
  },
2429
2604
  withCidrBlock: (value) => {
2430
- pushParam$22(params, CIDR_BLOCK_PARAM$1, value);
2605
+ pushParam$30(params, CIDR_BLOCK_PARAM$1, value);
2431
2606
  return builder;
2432
2607
  },
2433
2608
  withInstanceTenancy: (value) => {
2434
- pushParam$22(params, INSTANCE_TENANCY_PARAM, value);
2609
+ pushParam$30(params, INSTANCE_TENANCY_PARAM, value);
2435
2610
  return builder;
2436
2611
  },
2437
2612
  withEnableDnsSupport: (value) => {
2438
- pushParam$22(params, ENABLE_DNS_SUPPORT_PARAM, value);
2613
+ pushParam$30(params, ENABLE_DNS_SUPPORT_PARAM, value);
2439
2614
  return builder;
2440
2615
  },
2441
2616
  withEnableDnsHostnames: (value) => {
2442
- pushParam$22(params, ENABLE_DNS_HOSTNAMES_PARAM, value);
2617
+ pushParam$30(params, ENABLE_DNS_HOSTNAMES_PARAM, value);
2443
2618
  return builder;
2444
2619
  },
2445
2620
  build: () => inner.build()
@@ -2448,21 +2623,21 @@ let AwsVpc;
2448
2623
  };
2449
2624
  _AwsVpc.satisfy = (blueprint) => {
2450
2625
  const params = getParametersInstance();
2451
- const inner = getLiveSystemComponentBuilder().withType(buildAwsVpcType()).withParameters(params).withProvider("AWS").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);
2626
+ 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);
2452
2627
  if (blueprint.description) inner.withDescription(blueprint.description);
2453
2628
  const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
2454
- if (cidrBlock !== null) pushParam$22(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
2629
+ if (cidrBlock !== null) pushParam$30(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
2455
2630
  const satisfiedBuilder = {
2456
2631
  withInstanceTenancy: (value) => {
2457
- pushParam$22(params, INSTANCE_TENANCY_PARAM, value);
2632
+ pushParam$30(params, INSTANCE_TENANCY_PARAM, value);
2458
2633
  return satisfiedBuilder;
2459
2634
  },
2460
2635
  withEnableDnsSupport: (value) => {
2461
- pushParam$22(params, ENABLE_DNS_SUPPORT_PARAM, value);
2636
+ pushParam$30(params, ENABLE_DNS_SUPPORT_PARAM, value);
2462
2637
  return satisfiedBuilder;
2463
2638
  },
2464
2639
  withEnableDnsHostnames: (value) => {
2465
- pushParam$22(params, ENABLE_DNS_HOSTNAMES_PARAM, value);
2640
+ pushParam$30(params, ENABLE_DNS_HOSTNAMES_PARAM, value);
2466
2641
  return satisfiedBuilder;
2467
2642
  },
2468
2643
  build: () => inner.build()
@@ -2483,16 +2658,16 @@ let AwsVpc;
2483
2658
  //#region src/live_system/component/network_and_compute/iaas/subnet.ts
2484
2659
  const AWS_SUBNET_TYPE_NAME = "AwsSubnet";
2485
2660
  const AVAILABILITY_ZONE_PARAM = "availabilityZone";
2486
- function buildId$23(id) {
2661
+ function buildId$31(id) {
2487
2662
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2488
2663
  }
2489
- function buildVersion$23(major, minor, patch) {
2664
+ function buildVersion$31(major, minor, patch) {
2490
2665
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2491
2666
  }
2492
2667
  function buildAwsSubnetType() {
2493
2668
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_SUBNET_TYPE_NAME).build()).build();
2494
2669
  }
2495
- function pushParam$21(params, key, value) {
2670
+ function pushParam$29(params, key, value) {
2496
2671
  params.push(key, value);
2497
2672
  }
2498
2673
  let AwsSubnet;
@@ -2502,11 +2677,11 @@ let AwsSubnet;
2502
2677
  const inner = getLiveSystemComponentBuilder().withType(buildAwsSubnetType()).withParameters(params).withProvider("AWS");
2503
2678
  const builder = {
2504
2679
  withId: (id) => {
2505
- inner.withId(buildId$23(id));
2680
+ inner.withId(buildId$31(id));
2506
2681
  return builder;
2507
2682
  },
2508
2683
  withVersion: (major, minor, patch) => {
2509
- inner.withVersion(buildVersion$23(major, minor, patch));
2684
+ inner.withVersion(buildVersion$31(major, minor, patch));
2510
2685
  return builder;
2511
2686
  },
2512
2687
  withDisplayName: (displayName) => {
@@ -2518,11 +2693,11 @@ let AwsSubnet;
2518
2693
  return builder;
2519
2694
  },
2520
2695
  withCidrBlock: (value) => {
2521
- pushParam$21(params, CIDR_BLOCK_PARAM, value);
2696
+ pushParam$29(params, CIDR_BLOCK_PARAM, value);
2522
2697
  return builder;
2523
2698
  },
2524
2699
  withAvailabilityZone: (value) => {
2525
- pushParam$21(params, AVAILABILITY_ZONE_PARAM, value);
2700
+ pushParam$29(params, AVAILABILITY_ZONE_PARAM, value);
2526
2701
  return builder;
2527
2702
  },
2528
2703
  build: () => inner.build()
@@ -2531,13 +2706,13 @@ let AwsSubnet;
2531
2706
  };
2532
2707
  _AwsSubnet.satisfy = (blueprint) => {
2533
2708
  const params = getParametersInstance();
2534
- const inner = getLiveSystemComponentBuilder().withType(buildAwsSubnetType()).withParameters(params).withProvider("AWS").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);
2709
+ 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);
2535
2710
  if (blueprint.description) inner.withDescription(blueprint.description);
2536
2711
  const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
2537
- if (cidrBlock !== null) pushParam$21(params, CIDR_BLOCK_PARAM, String(cidrBlock));
2712
+ if (cidrBlock !== null) pushParam$29(params, CIDR_BLOCK_PARAM, String(cidrBlock));
2538
2713
  const satisfiedBuilder = {
2539
2714
  withAvailabilityZone: (value) => {
2540
- pushParam$21(params, AVAILABILITY_ZONE_PARAM, value);
2715
+ pushParam$29(params, AVAILABILITY_ZONE_PARAM, value);
2541
2716
  return satisfiedBuilder;
2542
2717
  },
2543
2718
  build: () => inner.build()
@@ -2553,17 +2728,17 @@ let AwsSubnet;
2553
2728
 
2554
2729
  //#endregion
2555
2730
  //#region src/live_system/component/network_and_compute/iaas/security_group.ts
2556
- const AWS_SG_TYPE_NAME = "AwsSecurityGroup";
2557
- function buildId$22(id) {
2731
+ const AWS_SG_TYPE_NAME = "SecurityGroup";
2732
+ function buildId$30(id) {
2558
2733
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2559
2734
  }
2560
- function buildVersion$22(major, minor, patch) {
2735
+ function buildVersion$30(major, minor, patch) {
2561
2736
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2562
2737
  }
2563
2738
  function buildAwsSgType() {
2564
2739
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_SG_TYPE_NAME).build()).build();
2565
2740
  }
2566
- function pushParam$20(params, key, value) {
2741
+ function pushParam$28(params, key, value) {
2567
2742
  params.push(key, value);
2568
2743
  }
2569
2744
  let AwsSecurityGroup;
@@ -2573,11 +2748,11 @@ let AwsSecurityGroup;
2573
2748
  const inner = getLiveSystemComponentBuilder().withType(buildAwsSgType()).withParameters(params).withProvider("AWS");
2574
2749
  const builder = {
2575
2750
  withId: (id) => {
2576
- inner.withId(buildId$22(id));
2751
+ inner.withId(buildId$30(id));
2577
2752
  return builder;
2578
2753
  },
2579
2754
  withVersion: (major, minor, patch) => {
2580
- inner.withVersion(buildVersion$22(major, minor, patch));
2755
+ inner.withVersion(buildVersion$30(major, minor, patch));
2581
2756
  return builder;
2582
2757
  },
2583
2758
  withDisplayName: (displayName) => {
@@ -2586,11 +2761,11 @@ let AwsSecurityGroup;
2586
2761
  },
2587
2762
  withDescription: (description) => {
2588
2763
  inner.withDescription(description);
2589
- pushParam$20(params, DESCRIPTION_PARAM, description);
2764
+ pushParam$28(params, DESCRIPTION_PARAM, description);
2590
2765
  return builder;
2591
2766
  },
2592
2767
  withIngressRules: (rules) => {
2593
- pushParam$20(params, INGRESS_RULES_PARAM, rules);
2768
+ pushParam$28(params, INGRESS_RULES_PARAM, rules);
2594
2769
  return builder;
2595
2770
  },
2596
2771
  build: () => inner.build()
@@ -2599,14 +2774,14 @@ let AwsSecurityGroup;
2599
2774
  };
2600
2775
  _AwsSecurityGroup.satisfy = (blueprint) => {
2601
2776
  const params = getParametersInstance();
2602
- const inner = getLiveSystemComponentBuilder().withType(buildAwsSgType()).withParameters(params).withProvider("AWS").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);
2777
+ 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);
2603
2778
  const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
2604
2779
  if (description !== null) {
2605
2780
  inner.withDescription(String(description));
2606
- pushParam$20(params, DESCRIPTION_PARAM, String(description));
2781
+ pushParam$28(params, DESCRIPTION_PARAM, String(description));
2607
2782
  } else if (blueprint.description) inner.withDescription(blueprint.description);
2608
2783
  const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
2609
- if (ingressRules !== null) pushParam$20(params, INGRESS_RULES_PARAM, ingressRules);
2784
+ if (ingressRules !== null) pushParam$28(params, INGRESS_RULES_PARAM, ingressRules);
2610
2785
  return { build: () => inner.build() };
2611
2786
  };
2612
2787
  _AwsSecurityGroup.create = (config) => {
@@ -2625,16 +2800,16 @@ const KEY_NAME_PARAM = "keyName";
2625
2800
  const USER_DATA_PARAM$1 = "userData";
2626
2801
  const IAM_INSTANCE_PROFILE_PARAM = "iamInstanceProfile";
2627
2802
  const ASSOCIATE_PUBLIC_IP_PARAM = "associatePublicIp";
2628
- function buildId$21(id) {
2803
+ function buildId$29(id) {
2629
2804
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2630
2805
  }
2631
- function buildVersion$21(major, minor, patch) {
2806
+ function buildVersion$29(major, minor, patch) {
2632
2807
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2633
2808
  }
2634
2809
  function buildEc2Type() {
2635
2810
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(EC2_TYPE_NAME).build()).build();
2636
2811
  }
2637
- function pushParam$19(params, key, value) {
2812
+ function pushParam$27(params, key, value) {
2638
2813
  params.push(key, value);
2639
2814
  }
2640
2815
  let Ec2Instance;
@@ -2644,11 +2819,11 @@ let Ec2Instance;
2644
2819
  const inner = getLiveSystemComponentBuilder().withType(buildEc2Type()).withParameters(params).withProvider("AWS");
2645
2820
  const builder = {
2646
2821
  withId: (id) => {
2647
- inner.withId(buildId$21(id));
2822
+ inner.withId(buildId$29(id));
2648
2823
  return builder;
2649
2824
  },
2650
2825
  withVersion: (major, minor, patch) => {
2651
- inner.withVersion(buildVersion$21(major, minor, patch));
2826
+ inner.withVersion(buildVersion$29(major, minor, patch));
2652
2827
  return builder;
2653
2828
  },
2654
2829
  withDisplayName: (displayName) => {
@@ -2660,27 +2835,27 @@ let Ec2Instance;
2660
2835
  return builder;
2661
2836
  },
2662
2837
  withAmiId: (value) => {
2663
- pushParam$19(params, AMI_ID_PARAM, value);
2838
+ pushParam$27(params, AMI_ID_PARAM, value);
2664
2839
  return builder;
2665
2840
  },
2666
2841
  withInstanceType: (value) => {
2667
- pushParam$19(params, INSTANCE_TYPE_PARAM, value);
2842
+ pushParam$27(params, INSTANCE_TYPE_PARAM, value);
2668
2843
  return builder;
2669
2844
  },
2670
2845
  withKeyName: (value) => {
2671
- pushParam$19(params, KEY_NAME_PARAM, value);
2846
+ pushParam$27(params, KEY_NAME_PARAM, value);
2672
2847
  return builder;
2673
2848
  },
2674
2849
  withUserData: (value) => {
2675
- pushParam$19(params, USER_DATA_PARAM$1, value);
2850
+ pushParam$27(params, USER_DATA_PARAM$1, value);
2676
2851
  return builder;
2677
2852
  },
2678
2853
  withIamInstanceProfile: (value) => {
2679
- pushParam$19(params, IAM_INSTANCE_PROFILE_PARAM, value);
2854
+ pushParam$27(params, IAM_INSTANCE_PROFILE_PARAM, value);
2680
2855
  return builder;
2681
2856
  },
2682
2857
  withAssociatePublicIp: (value) => {
2683
- pushParam$19(params, ASSOCIATE_PUBLIC_IP_PARAM, value);
2858
+ pushParam$27(params, ASSOCIATE_PUBLIC_IP_PARAM, value);
2684
2859
  return builder;
2685
2860
  },
2686
2861
  build: () => inner.build()
@@ -2689,31 +2864,31 @@ let Ec2Instance;
2689
2864
  };
2690
2865
  _Ec2Instance.satisfy = (blueprint) => {
2691
2866
  const params = getParametersInstance();
2692
- const inner = getLiveSystemComponentBuilder().withType(buildEc2Type()).withParameters(params).withProvider("AWS").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);
2867
+ 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);
2693
2868
  if (blueprint.description) inner.withDescription(blueprint.description);
2694
2869
  const satisfiedBuilder = {
2695
2870
  withAmiId: (value) => {
2696
- pushParam$19(params, AMI_ID_PARAM, value);
2871
+ pushParam$27(params, AMI_ID_PARAM, value);
2697
2872
  return satisfiedBuilder;
2698
2873
  },
2699
2874
  withInstanceType: (value) => {
2700
- pushParam$19(params, INSTANCE_TYPE_PARAM, value);
2875
+ pushParam$27(params, INSTANCE_TYPE_PARAM, value);
2701
2876
  return satisfiedBuilder;
2702
2877
  },
2703
2878
  withKeyName: (value) => {
2704
- pushParam$19(params, KEY_NAME_PARAM, value);
2879
+ pushParam$27(params, KEY_NAME_PARAM, value);
2705
2880
  return satisfiedBuilder;
2706
2881
  },
2707
2882
  withUserData: (value) => {
2708
- pushParam$19(params, USER_DATA_PARAM$1, value);
2883
+ pushParam$27(params, USER_DATA_PARAM$1, value);
2709
2884
  return satisfiedBuilder;
2710
2885
  },
2711
2886
  withIamInstanceProfile: (value) => {
2712
- pushParam$19(params, IAM_INSTANCE_PROFILE_PARAM, value);
2887
+ pushParam$27(params, IAM_INSTANCE_PROFILE_PARAM, value);
2713
2888
  return satisfiedBuilder;
2714
2889
  },
2715
2890
  withAssociatePublicIp: (value) => {
2716
- pushParam$19(params, ASSOCIATE_PUBLIC_IP_PARAM, value);
2891
+ pushParam$27(params, ASSOCIATE_PUBLIC_IP_PARAM, value);
2717
2892
  return satisfiedBuilder;
2718
2893
  },
2719
2894
  build: () => inner.build()
@@ -2736,16 +2911,16 @@ let Ec2Instance;
2736
2911
  const AZURE_VNET_TYPE_NAME = "AzureVnet";
2737
2912
  const LOCATION_PARAM$3 = "location";
2738
2913
  const RESOURCE_GROUP_PARAM$3 = "resourceGroup";
2739
- function buildId$20(id) {
2914
+ function buildId$28(id) {
2740
2915
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2741
2916
  }
2742
- function buildVersion$20(major, minor, patch) {
2917
+ function buildVersion$28(major, minor, patch) {
2743
2918
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2744
2919
  }
2745
2920
  function buildAzureVnetType() {
2746
2921
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_VNET_TYPE_NAME).build()).build();
2747
2922
  }
2748
- function pushParam$18(params, key, value) {
2923
+ function pushParam$26(params, key, value) {
2749
2924
  params.push(key, value);
2750
2925
  }
2751
2926
  let AzureVnet;
@@ -2755,11 +2930,11 @@ let AzureVnet;
2755
2930
  const inner = getLiveSystemComponentBuilder().withType(buildAzureVnetType()).withParameters(params).withProvider("Azure");
2756
2931
  const builder = {
2757
2932
  withId: (id) => {
2758
- inner.withId(buildId$20(id));
2933
+ inner.withId(buildId$28(id));
2759
2934
  return builder;
2760
2935
  },
2761
2936
  withVersion: (major, minor, patch) => {
2762
- inner.withVersion(buildVersion$20(major, minor, patch));
2937
+ inner.withVersion(buildVersion$28(major, minor, patch));
2763
2938
  return builder;
2764
2939
  },
2765
2940
  withDisplayName: (displayName) => {
@@ -2771,15 +2946,15 @@ let AzureVnet;
2771
2946
  return builder;
2772
2947
  },
2773
2948
  withCidrBlock: (value) => {
2774
- pushParam$18(params, CIDR_BLOCK_PARAM$1, value);
2949
+ pushParam$26(params, CIDR_BLOCK_PARAM$1, value);
2775
2950
  return builder;
2776
2951
  },
2777
2952
  withLocation: (value) => {
2778
- pushParam$18(params, LOCATION_PARAM$3, value);
2953
+ pushParam$26(params, LOCATION_PARAM$3, value);
2779
2954
  return builder;
2780
2955
  },
2781
2956
  withResourceGroup: (value) => {
2782
- pushParam$18(params, RESOURCE_GROUP_PARAM$3, value);
2957
+ pushParam$26(params, RESOURCE_GROUP_PARAM$3, value);
2783
2958
  return builder;
2784
2959
  },
2785
2960
  build: () => inner.build()
@@ -2788,17 +2963,17 @@ let AzureVnet;
2788
2963
  };
2789
2964
  _AzureVnet.satisfy = (blueprint) => {
2790
2965
  const params = getParametersInstance();
2791
- const inner = getLiveSystemComponentBuilder().withType(buildAzureVnetType()).withParameters(params).withProvider("Azure").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);
2966
+ 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);
2792
2967
  if (blueprint.description) inner.withDescription(blueprint.description);
2793
2968
  const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
2794
- if (cidrBlock !== null) pushParam$18(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
2969
+ if (cidrBlock !== null) pushParam$26(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
2795
2970
  const satisfiedBuilder = {
2796
2971
  withLocation: (value) => {
2797
- pushParam$18(params, LOCATION_PARAM$3, value);
2972
+ pushParam$26(params, LOCATION_PARAM$3, value);
2798
2973
  return satisfiedBuilder;
2799
2974
  },
2800
2975
  withResourceGroup: (value) => {
2801
- pushParam$18(params, RESOURCE_GROUP_PARAM$3, value);
2976
+ pushParam$26(params, RESOURCE_GROUP_PARAM$3, value);
2802
2977
  return satisfiedBuilder;
2803
2978
  },
2804
2979
  build: () => inner.build()
@@ -2816,16 +2991,16 @@ let AzureVnet;
2816
2991
  //#region src/live_system/component/network_and_compute/iaas/azure_subnet.ts
2817
2992
  const AZURE_SUBNET_TYPE_NAME = "AzureSubnet";
2818
2993
  const RESOURCE_GROUP_PARAM$2 = "resourceGroup";
2819
- function buildId$19(id) {
2994
+ function buildId$27(id) {
2820
2995
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2821
2996
  }
2822
- function buildVersion$19(major, minor, patch) {
2997
+ function buildVersion$27(major, minor, patch) {
2823
2998
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2824
2999
  }
2825
3000
  function buildAzureSubnetType() {
2826
3001
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_SUBNET_TYPE_NAME).build()).build();
2827
3002
  }
2828
- function pushParam$17(params, key, value) {
3003
+ function pushParam$25(params, key, value) {
2829
3004
  params.push(key, value);
2830
3005
  }
2831
3006
  let AzureSubnet;
@@ -2835,11 +3010,11 @@ let AzureSubnet;
2835
3010
  const inner = getLiveSystemComponentBuilder().withType(buildAzureSubnetType()).withParameters(params).withProvider("Azure");
2836
3011
  const builder = {
2837
3012
  withId: (id) => {
2838
- inner.withId(buildId$19(id));
3013
+ inner.withId(buildId$27(id));
2839
3014
  return builder;
2840
3015
  },
2841
3016
  withVersion: (major, minor, patch) => {
2842
- inner.withVersion(buildVersion$19(major, minor, patch));
3017
+ inner.withVersion(buildVersion$27(major, minor, patch));
2843
3018
  return builder;
2844
3019
  },
2845
3020
  withDisplayName: (displayName) => {
@@ -2851,11 +3026,11 @@ let AzureSubnet;
2851
3026
  return builder;
2852
3027
  },
2853
3028
  withCidrBlock: (value) => {
2854
- pushParam$17(params, CIDR_BLOCK_PARAM, value);
3029
+ pushParam$25(params, CIDR_BLOCK_PARAM, value);
2855
3030
  return builder;
2856
3031
  },
2857
3032
  withResourceGroup: (value) => {
2858
- pushParam$17(params, RESOURCE_GROUP_PARAM$2, value);
3033
+ pushParam$25(params, RESOURCE_GROUP_PARAM$2, value);
2859
3034
  return builder;
2860
3035
  },
2861
3036
  build: () => inner.build()
@@ -2864,13 +3039,13 @@ let AzureSubnet;
2864
3039
  };
2865
3040
  _AzureSubnet.satisfy = (blueprint) => {
2866
3041
  const params = getParametersInstance();
2867
- const inner = getLiveSystemComponentBuilder().withType(buildAzureSubnetType()).withParameters(params).withProvider("Azure").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);
3042
+ 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);
2868
3043
  if (blueprint.description) inner.withDescription(blueprint.description);
2869
3044
  const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
2870
- if (cidrBlock !== null) pushParam$17(params, CIDR_BLOCK_PARAM, String(cidrBlock));
3045
+ if (cidrBlock !== null) pushParam$25(params, CIDR_BLOCK_PARAM, String(cidrBlock));
2871
3046
  const satisfiedBuilder = {
2872
3047
  withResourceGroup: (value) => {
2873
- pushParam$17(params, RESOURCE_GROUP_PARAM$2, value);
3048
+ pushParam$25(params, RESOURCE_GROUP_PARAM$2, value);
2874
3049
  return satisfiedBuilder;
2875
3050
  },
2876
3051
  build: () => inner.build()
@@ -2889,16 +3064,16 @@ let AzureSubnet;
2889
3064
  const AZURE_NSG_TYPE_NAME = "AzureNsg";
2890
3065
  const LOCATION_PARAM$2 = "location";
2891
3066
  const RESOURCE_GROUP_PARAM$1 = "resourceGroup";
2892
- function buildId$18(id) {
3067
+ function buildId$26(id) {
2893
3068
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2894
3069
  }
2895
- function buildVersion$18(major, minor, patch) {
3070
+ function buildVersion$26(major, minor, patch) {
2896
3071
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2897
3072
  }
2898
3073
  function buildAzureNsgType() {
2899
3074
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_NSG_TYPE_NAME).build()).build();
2900
3075
  }
2901
- function pushParam$16(params, key, value) {
3076
+ function pushParam$24(params, key, value) {
2902
3077
  params.push(key, value);
2903
3078
  }
2904
3079
  let AzureNsg;
@@ -2908,11 +3083,11 @@ let AzureNsg;
2908
3083
  const inner = getLiveSystemComponentBuilder().withType(buildAzureNsgType()).withParameters(params).withProvider("Azure");
2909
3084
  const builder = {
2910
3085
  withId: (id) => {
2911
- inner.withId(buildId$18(id));
3086
+ inner.withId(buildId$26(id));
2912
3087
  return builder;
2913
3088
  },
2914
3089
  withVersion: (major, minor, patch) => {
2915
- inner.withVersion(buildVersion$18(major, minor, patch));
3090
+ inner.withVersion(buildVersion$26(major, minor, patch));
2916
3091
  return builder;
2917
3092
  },
2918
3093
  withDisplayName: (displayName) => {
@@ -2921,19 +3096,19 @@ let AzureNsg;
2921
3096
  },
2922
3097
  withDescription: (description) => {
2923
3098
  inner.withDescription(description);
2924
- pushParam$16(params, DESCRIPTION_PARAM, description);
3099
+ pushParam$24(params, DESCRIPTION_PARAM, description);
2925
3100
  return builder;
2926
3101
  },
2927
3102
  withIngressRules: (rules) => {
2928
- pushParam$16(params, INGRESS_RULES_PARAM, rules);
3103
+ pushParam$24(params, INGRESS_RULES_PARAM, rules);
2929
3104
  return builder;
2930
3105
  },
2931
3106
  withLocation: (value) => {
2932
- pushParam$16(params, LOCATION_PARAM$2, value);
3107
+ pushParam$24(params, LOCATION_PARAM$2, value);
2933
3108
  return builder;
2934
3109
  },
2935
3110
  withResourceGroup: (value) => {
2936
- pushParam$16(params, RESOURCE_GROUP_PARAM$1, value);
3111
+ pushParam$24(params, RESOURCE_GROUP_PARAM$1, value);
2937
3112
  return builder;
2938
3113
  },
2939
3114
  build: () => inner.build()
@@ -2942,21 +3117,21 @@ let AzureNsg;
2942
3117
  };
2943
3118
  _AzureNsg.satisfy = (blueprint) => {
2944
3119
  const params = getParametersInstance();
2945
- const inner = getLiveSystemComponentBuilder().withType(buildAzureNsgType()).withParameters(params).withProvider("Azure").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);
3120
+ 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);
2946
3121
  const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
2947
3122
  if (description !== null) {
2948
3123
  inner.withDescription(String(description));
2949
- pushParam$16(params, DESCRIPTION_PARAM, String(description));
3124
+ pushParam$24(params, DESCRIPTION_PARAM, String(description));
2950
3125
  } else if (blueprint.description) inner.withDescription(blueprint.description);
2951
3126
  const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
2952
- if (ingressRules !== null) pushParam$16(params, INGRESS_RULES_PARAM, ingressRules);
3127
+ if (ingressRules !== null) pushParam$24(params, INGRESS_RULES_PARAM, ingressRules);
2953
3128
  const satisfiedBuilder = {
2954
3129
  withLocation: (value) => {
2955
- pushParam$16(params, LOCATION_PARAM$2, value);
3130
+ pushParam$24(params, LOCATION_PARAM$2, value);
2956
3131
  return satisfiedBuilder;
2957
3132
  },
2958
3133
  withResourceGroup: (value) => {
2959
- pushParam$16(params, RESOURCE_GROUP_PARAM$1, value);
3134
+ pushParam$24(params, RESOURCE_GROUP_PARAM$1, value);
2960
3135
  return satisfiedBuilder;
2961
3136
  },
2962
3137
  build: () => inner.build()
@@ -2983,16 +3158,16 @@ const IMAGE_OFFER_PARAM = "imageOffer";
2983
3158
  const IMAGE_SKU_PARAM = "imageSku";
2984
3159
  const SSH_PUBLIC_KEY_PARAM$1 = "sshPublicKey";
2985
3160
  const OS_DISK_SIZE_GB_PARAM = "osDiskSizeGb";
2986
- function buildId$17(id) {
3161
+ function buildId$25(id) {
2987
3162
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
2988
3163
  }
2989
- function buildVersion$17(major, minor, patch) {
3164
+ function buildVersion$25(major, minor, patch) {
2990
3165
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
2991
3166
  }
2992
3167
  function buildAzureVmType() {
2993
3168
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_VM_TYPE_NAME).build()).build();
2994
3169
  }
2995
- function pushParam$15(params, key, value) {
3170
+ function pushParam$23(params, key, value) {
2996
3171
  params.push(key, value);
2997
3172
  }
2998
3173
  let AzureVm;
@@ -3002,11 +3177,11 @@ let AzureVm;
3002
3177
  const inner = getLiveSystemComponentBuilder().withType(buildAzureVmType()).withParameters(params).withProvider("Azure");
3003
3178
  const builder = {
3004
3179
  withId: (id) => {
3005
- inner.withId(buildId$17(id));
3180
+ inner.withId(buildId$25(id));
3006
3181
  return builder;
3007
3182
  },
3008
3183
  withVersion: (major, minor, patch) => {
3009
- inner.withVersion(buildVersion$17(major, minor, patch));
3184
+ inner.withVersion(buildVersion$25(major, minor, patch));
3010
3185
  return builder;
3011
3186
  },
3012
3187
  withDisplayName: (displayName) => {
@@ -3018,39 +3193,39 @@ let AzureVm;
3018
3193
  return builder;
3019
3194
  },
3020
3195
  withVmSize: (value) => {
3021
- pushParam$15(params, VM_SIZE_PARAM, value);
3196
+ pushParam$23(params, VM_SIZE_PARAM, value);
3022
3197
  return builder;
3023
3198
  },
3024
3199
  withLocation: (value) => {
3025
- pushParam$15(params, LOCATION_PARAM$1, value);
3200
+ pushParam$23(params, LOCATION_PARAM$1, value);
3026
3201
  return builder;
3027
3202
  },
3028
3203
  withResourceGroup: (value) => {
3029
- pushParam$15(params, RESOURCE_GROUP_PARAM, value);
3204
+ pushParam$23(params, RESOURCE_GROUP_PARAM, value);
3030
3205
  return builder;
3031
3206
  },
3032
3207
  withAdminUsername: (value) => {
3033
- pushParam$15(params, ADMIN_USERNAME_PARAM, value);
3208
+ pushParam$23(params, ADMIN_USERNAME_PARAM, value);
3034
3209
  return builder;
3035
3210
  },
3036
3211
  withImagePublisher: (value) => {
3037
- pushParam$15(params, IMAGE_PUBLISHER_PARAM, value);
3212
+ pushParam$23(params, IMAGE_PUBLISHER_PARAM, value);
3038
3213
  return builder;
3039
3214
  },
3040
3215
  withImageOffer: (value) => {
3041
- pushParam$15(params, IMAGE_OFFER_PARAM, value);
3216
+ pushParam$23(params, IMAGE_OFFER_PARAM, value);
3042
3217
  return builder;
3043
3218
  },
3044
3219
  withImageSku: (value) => {
3045
- pushParam$15(params, IMAGE_SKU_PARAM, value);
3220
+ pushParam$23(params, IMAGE_SKU_PARAM, value);
3046
3221
  return builder;
3047
3222
  },
3048
3223
  withSshPublicKey: (value) => {
3049
- pushParam$15(params, SSH_PUBLIC_KEY_PARAM$1, value);
3224
+ pushParam$23(params, SSH_PUBLIC_KEY_PARAM$1, value);
3050
3225
  return builder;
3051
3226
  },
3052
3227
  withOsDiskSizeGb: (value) => {
3053
- pushParam$15(params, OS_DISK_SIZE_GB_PARAM, value);
3228
+ pushParam$23(params, OS_DISK_SIZE_GB_PARAM, value);
3054
3229
  return builder;
3055
3230
  },
3056
3231
  build: () => inner.build()
@@ -3059,43 +3234,43 @@ let AzureVm;
3059
3234
  };
3060
3235
  _AzureVm.satisfy = (blueprint) => {
3061
3236
  const params = getParametersInstance();
3062
- const inner = getLiveSystemComponentBuilder().withType(buildAzureVmType()).withParameters(params).withProvider("Azure").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);
3237
+ 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);
3063
3238
  if (blueprint.description) inner.withDescription(blueprint.description);
3064
3239
  const satisfiedBuilder = {
3065
3240
  withVmSize: (value) => {
3066
- pushParam$15(params, VM_SIZE_PARAM, value);
3241
+ pushParam$23(params, VM_SIZE_PARAM, value);
3067
3242
  return satisfiedBuilder;
3068
3243
  },
3069
3244
  withLocation: (value) => {
3070
- pushParam$15(params, LOCATION_PARAM$1, value);
3245
+ pushParam$23(params, LOCATION_PARAM$1, value);
3071
3246
  return satisfiedBuilder;
3072
3247
  },
3073
3248
  withResourceGroup: (value) => {
3074
- pushParam$15(params, RESOURCE_GROUP_PARAM, value);
3249
+ pushParam$23(params, RESOURCE_GROUP_PARAM, value);
3075
3250
  return satisfiedBuilder;
3076
3251
  },
3077
3252
  withAdminUsername: (value) => {
3078
- pushParam$15(params, ADMIN_USERNAME_PARAM, value);
3253
+ pushParam$23(params, ADMIN_USERNAME_PARAM, value);
3079
3254
  return satisfiedBuilder;
3080
3255
  },
3081
3256
  withImagePublisher: (value) => {
3082
- pushParam$15(params, IMAGE_PUBLISHER_PARAM, value);
3257
+ pushParam$23(params, IMAGE_PUBLISHER_PARAM, value);
3083
3258
  return satisfiedBuilder;
3084
3259
  },
3085
3260
  withImageOffer: (value) => {
3086
- pushParam$15(params, IMAGE_OFFER_PARAM, value);
3261
+ pushParam$23(params, IMAGE_OFFER_PARAM, value);
3087
3262
  return satisfiedBuilder;
3088
3263
  },
3089
3264
  withImageSku: (value) => {
3090
- pushParam$15(params, IMAGE_SKU_PARAM, value);
3265
+ pushParam$23(params, IMAGE_SKU_PARAM, value);
3091
3266
  return satisfiedBuilder;
3092
3267
  },
3093
3268
  withSshPublicKey: (value) => {
3094
- pushParam$15(params, SSH_PUBLIC_KEY_PARAM$1, value);
3269
+ pushParam$23(params, SSH_PUBLIC_KEY_PARAM$1, value);
3095
3270
  return satisfiedBuilder;
3096
3271
  },
3097
3272
  withOsDiskSizeGb: (value) => {
3098
- pushParam$15(params, OS_DISK_SIZE_GB_PARAM, value);
3273
+ pushParam$23(params, OS_DISK_SIZE_GB_PARAM, value);
3099
3274
  return satisfiedBuilder;
3100
3275
  },
3101
3276
  build: () => inner.build()
@@ -3116,16 +3291,16 @@ let AzureVm;
3116
3291
  const GCP_VPC_TYPE_NAME = "GcpVpc";
3117
3292
  const AUTO_CREATE_SUBNETWORKS_PARAM = "autoCreateSubnetworks";
3118
3293
  const ROUTING_MODE_PARAM = "routingMode";
3119
- function buildId$16(id) {
3294
+ function buildId$24(id) {
3120
3295
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
3121
3296
  }
3122
- function buildVersion$16(major, minor, patch) {
3297
+ function buildVersion$24(major, minor, patch) {
3123
3298
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
3124
3299
  }
3125
3300
  function buildGcpVpcType() {
3126
3301
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_VPC_TYPE_NAME).build()).build();
3127
3302
  }
3128
- function pushParam$14(params, key, value) {
3303
+ function pushParam$22(params, key, value) {
3129
3304
  params.push(key, value);
3130
3305
  }
3131
3306
  let GcpVpc;
@@ -3135,11 +3310,11 @@ let GcpVpc;
3135
3310
  const inner = getLiveSystemComponentBuilder().withType(buildGcpVpcType()).withParameters(params).withProvider("GCP");
3136
3311
  const builder = {
3137
3312
  withId: (id) => {
3138
- inner.withId(buildId$16(id));
3313
+ inner.withId(buildId$24(id));
3139
3314
  return builder;
3140
3315
  },
3141
3316
  withVersion: (major, minor, patch) => {
3142
- inner.withVersion(buildVersion$16(major, minor, patch));
3317
+ inner.withVersion(buildVersion$24(major, minor, patch));
3143
3318
  return builder;
3144
3319
  },
3145
3320
  withDisplayName: (displayName) => {
@@ -3151,15 +3326,15 @@ let GcpVpc;
3151
3326
  return builder;
3152
3327
  },
3153
3328
  withCidrBlock: (value) => {
3154
- pushParam$14(params, CIDR_BLOCK_PARAM$1, value);
3329
+ pushParam$22(params, CIDR_BLOCK_PARAM$1, value);
3155
3330
  return builder;
3156
3331
  },
3157
3332
  withAutoCreateSubnetworks: (value) => {
3158
- pushParam$14(params, AUTO_CREATE_SUBNETWORKS_PARAM, value);
3333
+ pushParam$22(params, AUTO_CREATE_SUBNETWORKS_PARAM, value);
3159
3334
  return builder;
3160
3335
  },
3161
3336
  withRoutingMode: (value) => {
3162
- pushParam$14(params, ROUTING_MODE_PARAM, value);
3337
+ pushParam$22(params, ROUTING_MODE_PARAM, value);
3163
3338
  return builder;
3164
3339
  },
3165
3340
  build: () => inner.build()
@@ -3168,17 +3343,17 @@ let GcpVpc;
3168
3343
  };
3169
3344
  _GcpVpc.satisfy = (blueprint) => {
3170
3345
  const params = getParametersInstance();
3171
- const inner = getLiveSystemComponentBuilder().withType(buildGcpVpcType()).withParameters(params).withProvider("GCP").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);
3346
+ 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);
3172
3347
  if (blueprint.description) inner.withDescription(blueprint.description);
3173
3348
  const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
3174
- if (cidrBlock !== null) pushParam$14(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
3349
+ if (cidrBlock !== null) pushParam$22(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
3175
3350
  const satisfiedBuilder = {
3176
3351
  withAutoCreateSubnetworks: (value) => {
3177
- pushParam$14(params, AUTO_CREATE_SUBNETWORKS_PARAM, value);
3352
+ pushParam$22(params, AUTO_CREATE_SUBNETWORKS_PARAM, value);
3178
3353
  return satisfiedBuilder;
3179
3354
  },
3180
3355
  withRoutingMode: (value) => {
3181
- pushParam$14(params, ROUTING_MODE_PARAM, value);
3356
+ pushParam$22(params, ROUTING_MODE_PARAM, value);
3182
3357
  return satisfiedBuilder;
3183
3358
  },
3184
3359
  build: () => inner.build()
@@ -3199,16 +3374,16 @@ let GcpVpc;
3199
3374
  const GCP_SUBNET_TYPE_NAME = "GcpSubnet";
3200
3375
  const REGION_PARAM = "region";
3201
3376
  const PRIVATE_IP_GOOGLE_ACCESS_PARAM = "privateIpGoogleAccess";
3202
- function buildId$15(id) {
3377
+ function buildId$23(id) {
3203
3378
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
3204
3379
  }
3205
- function buildVersion$15(major, minor, patch) {
3380
+ function buildVersion$23(major, minor, patch) {
3206
3381
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
3207
3382
  }
3208
3383
  function buildGcpSubnetType() {
3209
3384
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_SUBNET_TYPE_NAME).build()).build();
3210
3385
  }
3211
- function pushParam$13(params, key, value) {
3386
+ function pushParam$21(params, key, value) {
3212
3387
  params.push(key, value);
3213
3388
  }
3214
3389
  let GcpSubnet;
@@ -3218,11 +3393,11 @@ let GcpSubnet;
3218
3393
  const inner = getLiveSystemComponentBuilder().withType(buildGcpSubnetType()).withParameters(params).withProvider("GCP");
3219
3394
  const builder = {
3220
3395
  withId: (id) => {
3221
- inner.withId(buildId$15(id));
3396
+ inner.withId(buildId$23(id));
3222
3397
  return builder;
3223
3398
  },
3224
3399
  withVersion: (major, minor, patch) => {
3225
- inner.withVersion(buildVersion$15(major, minor, patch));
3400
+ inner.withVersion(buildVersion$23(major, minor, patch));
3226
3401
  return builder;
3227
3402
  },
3228
3403
  withDisplayName: (displayName) => {
@@ -3234,15 +3409,15 @@ let GcpSubnet;
3234
3409
  return builder;
3235
3410
  },
3236
3411
  withCidrBlock: (value) => {
3237
- pushParam$13(params, CIDR_BLOCK_PARAM, value);
3412
+ pushParam$21(params, CIDR_BLOCK_PARAM, value);
3238
3413
  return builder;
3239
3414
  },
3240
3415
  withRegion: (value) => {
3241
- pushParam$13(params, REGION_PARAM, value);
3416
+ pushParam$21(params, REGION_PARAM, value);
3242
3417
  return builder;
3243
3418
  },
3244
3419
  withPrivateIpGoogleAccess: (value) => {
3245
- pushParam$13(params, PRIVATE_IP_GOOGLE_ACCESS_PARAM, value);
3420
+ pushParam$21(params, PRIVATE_IP_GOOGLE_ACCESS_PARAM, value);
3246
3421
  return builder;
3247
3422
  },
3248
3423
  build: () => inner.build()
@@ -3251,17 +3426,17 @@ let GcpSubnet;
3251
3426
  };
3252
3427
  _GcpSubnet.satisfy = (blueprint) => {
3253
3428
  const params = getParametersInstance();
3254
- const inner = getLiveSystemComponentBuilder().withType(buildGcpSubnetType()).withParameters(params).withProvider("GCP").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);
3429
+ 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);
3255
3430
  if (blueprint.description) inner.withDescription(blueprint.description);
3256
3431
  const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
3257
- if (cidrBlock !== null) pushParam$13(params, CIDR_BLOCK_PARAM, String(cidrBlock));
3432
+ if (cidrBlock !== null) pushParam$21(params, CIDR_BLOCK_PARAM, String(cidrBlock));
3258
3433
  const satisfiedBuilder = {
3259
3434
  withRegion: (value) => {
3260
- pushParam$13(params, REGION_PARAM, value);
3435
+ pushParam$21(params, REGION_PARAM, value);
3261
3436
  return satisfiedBuilder;
3262
3437
  },
3263
3438
  withPrivateIpGoogleAccess: (value) => {
3264
- pushParam$13(params, PRIVATE_IP_GOOGLE_ACCESS_PARAM, value);
3439
+ pushParam$21(params, PRIVATE_IP_GOOGLE_ACCESS_PARAM, value);
3265
3440
  return satisfiedBuilder;
3266
3441
  },
3267
3442
  build: () => inner.build()
@@ -3279,16 +3454,16 @@ let GcpSubnet;
3279
3454
  //#endregion
3280
3455
  //#region src/live_system/component/network_and_compute/iaas/gcp_firewall.ts
3281
3456
  const GCP_FIREWALL_TYPE_NAME = "GcpFirewall";
3282
- function buildId$14(id) {
3457
+ function buildId$22(id) {
3283
3458
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
3284
3459
  }
3285
- function buildVersion$14(major, minor, patch) {
3460
+ function buildVersion$22(major, minor, patch) {
3286
3461
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
3287
3462
  }
3288
3463
  function buildGcpFirewallType() {
3289
3464
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_FIREWALL_TYPE_NAME).build()).build();
3290
3465
  }
3291
- function pushParam$12(params, key, value) {
3466
+ function pushParam$20(params, key, value) {
3292
3467
  params.push(key, value);
3293
3468
  }
3294
3469
  let GcpFirewall;
@@ -3298,11 +3473,11 @@ let GcpFirewall;
3298
3473
  const inner = getLiveSystemComponentBuilder().withType(buildGcpFirewallType()).withParameters(params).withProvider("GCP");
3299
3474
  const builder = {
3300
3475
  withId: (id) => {
3301
- inner.withId(buildId$14(id));
3476
+ inner.withId(buildId$22(id));
3302
3477
  return builder;
3303
3478
  },
3304
3479
  withVersion: (major, minor, patch) => {
3305
- inner.withVersion(buildVersion$14(major, minor, patch));
3480
+ inner.withVersion(buildVersion$22(major, minor, patch));
3306
3481
  return builder;
3307
3482
  },
3308
3483
  withDisplayName: (displayName) => {
@@ -3311,11 +3486,11 @@ let GcpFirewall;
3311
3486
  },
3312
3487
  withDescription: (description) => {
3313
3488
  inner.withDescription(description);
3314
- pushParam$12(params, DESCRIPTION_PARAM, description);
3489
+ pushParam$20(params, DESCRIPTION_PARAM, description);
3315
3490
  return builder;
3316
3491
  },
3317
3492
  withIngressRules: (rules) => {
3318
- pushParam$12(params, INGRESS_RULES_PARAM, rules);
3493
+ pushParam$20(params, INGRESS_RULES_PARAM, rules);
3319
3494
  return builder;
3320
3495
  },
3321
3496
  build: () => inner.build()
@@ -3324,14 +3499,14 @@ let GcpFirewall;
3324
3499
  };
3325
3500
  _GcpFirewall.satisfy = (blueprint) => {
3326
3501
  const params = getParametersInstance();
3327
- const inner = getLiveSystemComponentBuilder().withType(buildGcpFirewallType()).withParameters(params).withProvider("GCP").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);
3502
+ 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);
3328
3503
  const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
3329
3504
  if (description !== null) {
3330
3505
  inner.withDescription(String(description));
3331
- pushParam$12(params, DESCRIPTION_PARAM, String(description));
3506
+ pushParam$20(params, DESCRIPTION_PARAM, String(description));
3332
3507
  } else if (blueprint.description) inner.withDescription(blueprint.description);
3333
3508
  const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
3334
- if (ingressRules !== null) pushParam$12(params, INGRESS_RULES_PARAM, ingressRules);
3509
+ if (ingressRules !== null) pushParam$20(params, INGRESS_RULES_PARAM, ingressRules);
3335
3510
  return { build: () => inner.build() };
3336
3511
  };
3337
3512
  _GcpFirewall.create = (config) => {
@@ -3350,16 +3525,16 @@ const ZONE_PARAM = "zone";
3350
3525
  const IMAGE_PROJECT_PARAM = "imageProject";
3351
3526
  const IMAGE_FAMILY_PARAM = "imageFamily";
3352
3527
  const SERVICE_ACCOUNT_EMAIL_PARAM = "serviceAccountEmail";
3353
- function buildId$13(id) {
3528
+ function buildId$21(id) {
3354
3529
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
3355
3530
  }
3356
- function buildVersion$13(major, minor, patch) {
3531
+ function buildVersion$21(major, minor, patch) {
3357
3532
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
3358
3533
  }
3359
3534
  function buildGcpVmType() {
3360
3535
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_VM_TYPE_NAME).build()).build();
3361
3536
  }
3362
- function pushParam$11(params, key, value) {
3537
+ function pushParam$19(params, key, value) {
3363
3538
  params.push(key, value);
3364
3539
  }
3365
3540
  let GcpVm;
@@ -3369,11 +3544,11 @@ let GcpVm;
3369
3544
  const inner = getLiveSystemComponentBuilder().withType(buildGcpVmType()).withParameters(params).withProvider("GCP");
3370
3545
  const builder = {
3371
3546
  withId: (id) => {
3372
- inner.withId(buildId$13(id));
3547
+ inner.withId(buildId$21(id));
3373
3548
  return builder;
3374
3549
  },
3375
3550
  withVersion: (major, minor, patch) => {
3376
- inner.withVersion(buildVersion$13(major, minor, patch));
3551
+ inner.withVersion(buildVersion$21(major, minor, patch));
3377
3552
  return builder;
3378
3553
  },
3379
3554
  withDisplayName: (displayName) => {
@@ -3385,23 +3560,23 @@ let GcpVm;
3385
3560
  return builder;
3386
3561
  },
3387
3562
  withMachineType: (value) => {
3388
- pushParam$11(params, MACHINE_TYPE_PARAM, value);
3563
+ pushParam$19(params, MACHINE_TYPE_PARAM, value);
3389
3564
  return builder;
3390
3565
  },
3391
3566
  withZone: (value) => {
3392
- pushParam$11(params, ZONE_PARAM, value);
3567
+ pushParam$19(params, ZONE_PARAM, value);
3393
3568
  return builder;
3394
3569
  },
3395
3570
  withImageProject: (value) => {
3396
- pushParam$11(params, IMAGE_PROJECT_PARAM, value);
3571
+ pushParam$19(params, IMAGE_PROJECT_PARAM, value);
3397
3572
  return builder;
3398
3573
  },
3399
3574
  withImageFamily: (value) => {
3400
- pushParam$11(params, IMAGE_FAMILY_PARAM, value);
3575
+ pushParam$19(params, IMAGE_FAMILY_PARAM, value);
3401
3576
  return builder;
3402
3577
  },
3403
3578
  withServiceAccountEmail: (value) => {
3404
- pushParam$11(params, SERVICE_ACCOUNT_EMAIL_PARAM, value);
3579
+ pushParam$19(params, SERVICE_ACCOUNT_EMAIL_PARAM, value);
3405
3580
  return builder;
3406
3581
  },
3407
3582
  build: () => inner.build()
@@ -3410,27 +3585,27 @@ let GcpVm;
3410
3585
  };
3411
3586
  _GcpVm.satisfy = (blueprint) => {
3412
3587
  const params = getParametersInstance();
3413
- const inner = getLiveSystemComponentBuilder().withType(buildGcpVmType()).withParameters(params).withProvider("GCP").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);
3588
+ 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);
3414
3589
  if (blueprint.description) inner.withDescription(blueprint.description);
3415
3590
  const satisfiedBuilder = {
3416
3591
  withMachineType: (value) => {
3417
- pushParam$11(params, MACHINE_TYPE_PARAM, value);
3592
+ pushParam$19(params, MACHINE_TYPE_PARAM, value);
3418
3593
  return satisfiedBuilder;
3419
3594
  },
3420
3595
  withZone: (value) => {
3421
- pushParam$11(params, ZONE_PARAM, value);
3596
+ pushParam$19(params, ZONE_PARAM, value);
3422
3597
  return satisfiedBuilder;
3423
3598
  },
3424
3599
  withImageProject: (value) => {
3425
- pushParam$11(params, IMAGE_PROJECT_PARAM, value);
3600
+ pushParam$19(params, IMAGE_PROJECT_PARAM, value);
3426
3601
  return satisfiedBuilder;
3427
3602
  },
3428
3603
  withImageFamily: (value) => {
3429
- pushParam$11(params, IMAGE_FAMILY_PARAM, value);
3604
+ pushParam$19(params, IMAGE_FAMILY_PARAM, value);
3430
3605
  return satisfiedBuilder;
3431
3606
  },
3432
3607
  withServiceAccountEmail: (value) => {
3433
- pushParam$11(params, SERVICE_ACCOUNT_EMAIL_PARAM, value);
3608
+ pushParam$19(params, SERVICE_ACCOUNT_EMAIL_PARAM, value);
3434
3609
  return satisfiedBuilder;
3435
3610
  },
3436
3611
  build: () => inner.build()
@@ -3450,16 +3625,16 @@ let GcpVm;
3450
3625
  //#region src/live_system/component/network_and_compute/iaas/oci_vcn.ts
3451
3626
  const OCI_VCN_TYPE_NAME = "OciVcn";
3452
3627
  const COMPARTMENT_ID_PARAM$3 = "compartmentId";
3453
- function buildId$12(id) {
3628
+ function buildId$20(id) {
3454
3629
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
3455
3630
  }
3456
- function buildVersion$12(major, minor, patch) {
3631
+ function buildVersion$20(major, minor, patch) {
3457
3632
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
3458
3633
  }
3459
3634
  function buildOciVcnType() {
3460
3635
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_VCN_TYPE_NAME).build()).build();
3461
3636
  }
3462
- function pushParam$10(params, key, value) {
3637
+ function pushParam$18(params, key, value) {
3463
3638
  params.push(key, value);
3464
3639
  }
3465
3640
  let OciVcn;
@@ -3469,11 +3644,11 @@ let OciVcn;
3469
3644
  const inner = getLiveSystemComponentBuilder().withType(buildOciVcnType()).withParameters(params).withProvider("OCI");
3470
3645
  const builder = {
3471
3646
  withId: (id) => {
3472
- inner.withId(buildId$12(id));
3647
+ inner.withId(buildId$20(id));
3473
3648
  return builder;
3474
3649
  },
3475
3650
  withVersion: (major, minor, patch) => {
3476
- inner.withVersion(buildVersion$12(major, minor, patch));
3651
+ inner.withVersion(buildVersion$20(major, minor, patch));
3477
3652
  return builder;
3478
3653
  },
3479
3654
  withDisplayName: (displayName) => {
@@ -3485,11 +3660,11 @@ let OciVcn;
3485
3660
  return builder;
3486
3661
  },
3487
3662
  withCidrBlock: (value) => {
3488
- pushParam$10(params, CIDR_BLOCK_PARAM$1, value);
3663
+ pushParam$18(params, CIDR_BLOCK_PARAM$1, value);
3489
3664
  return builder;
3490
3665
  },
3491
3666
  withCompartmentId: (value) => {
3492
- pushParam$10(params, COMPARTMENT_ID_PARAM$3, value);
3667
+ pushParam$18(params, COMPARTMENT_ID_PARAM$3, value);
3493
3668
  return builder;
3494
3669
  },
3495
3670
  build: () => inner.build()
@@ -3498,13 +3673,13 @@ let OciVcn;
3498
3673
  };
3499
3674
  _OciVcn.satisfy = (blueprint) => {
3500
3675
  const params = getParametersInstance();
3501
- const inner = getLiveSystemComponentBuilder().withType(buildOciVcnType()).withParameters(params).withProvider("OCI").withId(buildId$12(blueprint.id.toString())).withVersion(buildVersion$12(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
3676
+ 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);
3502
3677
  if (blueprint.description) inner.withDescription(blueprint.description);
3503
3678
  const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
3504
- if (cidrBlock !== null) pushParam$10(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
3679
+ if (cidrBlock !== null) pushParam$18(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
3505
3680
  const satisfiedBuilder = {
3506
3681
  withCompartmentId: (value) => {
3507
- pushParam$10(params, COMPARTMENT_ID_PARAM$3, value);
3682
+ pushParam$18(params, COMPARTMENT_ID_PARAM$3, value);
3508
3683
  return satisfiedBuilder;
3509
3684
  },
3510
3685
  build: () => inner.build()
@@ -3524,16 +3699,16 @@ const OCI_SUBNET_TYPE_NAME = "OciSubnet";
3524
3699
  const COMPARTMENT_ID_PARAM$2 = "compartmentId";
3525
3700
  const AVAILABILITY_DOMAIN_PARAM$1 = "availabilityDomain";
3526
3701
  const PROHIBIT_PUBLIC_IP_PARAM = "prohibitPublicIpOnVnic";
3527
- function buildId$11(id) {
3702
+ function buildId$19(id) {
3528
3703
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
3529
3704
  }
3530
- function buildVersion$11(major, minor, patch) {
3705
+ function buildVersion$19(major, minor, patch) {
3531
3706
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
3532
3707
  }
3533
3708
  function buildOciSubnetType() {
3534
3709
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_SUBNET_TYPE_NAME).build()).build();
3535
3710
  }
3536
- function pushParam$9(params, key, value) {
3711
+ function pushParam$17(params, key, value) {
3537
3712
  params.push(key, value);
3538
3713
  }
3539
3714
  let OciSubnet;
@@ -3543,11 +3718,11 @@ let OciSubnet;
3543
3718
  const inner = getLiveSystemComponentBuilder().withType(buildOciSubnetType()).withParameters(params).withProvider("OCI");
3544
3719
  const builder = {
3545
3720
  withId: (id) => {
3546
- inner.withId(buildId$11(id));
3721
+ inner.withId(buildId$19(id));
3547
3722
  return builder;
3548
3723
  },
3549
3724
  withVersion: (major, minor, patch) => {
3550
- inner.withVersion(buildVersion$11(major, minor, patch));
3725
+ inner.withVersion(buildVersion$19(major, minor, patch));
3551
3726
  return builder;
3552
3727
  },
3553
3728
  withDisplayName: (displayName) => {
@@ -3559,19 +3734,19 @@ let OciSubnet;
3559
3734
  return builder;
3560
3735
  },
3561
3736
  withCidrBlock: (value) => {
3562
- pushParam$9(params, CIDR_BLOCK_PARAM, value);
3737
+ pushParam$17(params, CIDR_BLOCK_PARAM, value);
3563
3738
  return builder;
3564
3739
  },
3565
3740
  withCompartmentId: (value) => {
3566
- pushParam$9(params, COMPARTMENT_ID_PARAM$2, value);
3741
+ pushParam$17(params, COMPARTMENT_ID_PARAM$2, value);
3567
3742
  return builder;
3568
3743
  },
3569
3744
  withAvailabilityDomain: (value) => {
3570
- pushParam$9(params, AVAILABILITY_DOMAIN_PARAM$1, value);
3745
+ pushParam$17(params, AVAILABILITY_DOMAIN_PARAM$1, value);
3571
3746
  return builder;
3572
3747
  },
3573
3748
  withProhibitPublicIpOnVnic: (value) => {
3574
- pushParam$9(params, PROHIBIT_PUBLIC_IP_PARAM, value);
3749
+ pushParam$17(params, PROHIBIT_PUBLIC_IP_PARAM, value);
3575
3750
  return builder;
3576
3751
  },
3577
3752
  build: () => inner.build()
@@ -3580,21 +3755,21 @@ let OciSubnet;
3580
3755
  };
3581
3756
  _OciSubnet.satisfy = (blueprint) => {
3582
3757
  const params = getParametersInstance();
3583
- const inner = getLiveSystemComponentBuilder().withType(buildOciSubnetType()).withParameters(params).withProvider("OCI").withId(buildId$11(blueprint.id.toString())).withVersion(buildVersion$11(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
3758
+ 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);
3584
3759
  if (blueprint.description) inner.withDescription(blueprint.description);
3585
3760
  const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
3586
- if (cidrBlock !== null) pushParam$9(params, CIDR_BLOCK_PARAM, String(cidrBlock));
3761
+ if (cidrBlock !== null) pushParam$17(params, CIDR_BLOCK_PARAM, String(cidrBlock));
3587
3762
  const satisfiedBuilder = {
3588
3763
  withCompartmentId: (value) => {
3589
- pushParam$9(params, COMPARTMENT_ID_PARAM$2, value);
3764
+ pushParam$17(params, COMPARTMENT_ID_PARAM$2, value);
3590
3765
  return satisfiedBuilder;
3591
3766
  },
3592
3767
  withAvailabilityDomain: (value) => {
3593
- pushParam$9(params, AVAILABILITY_DOMAIN_PARAM$1, value);
3768
+ pushParam$17(params, AVAILABILITY_DOMAIN_PARAM$1, value);
3594
3769
  return satisfiedBuilder;
3595
3770
  },
3596
3771
  withProhibitPublicIpOnVnic: (value) => {
3597
- pushParam$9(params, PROHIBIT_PUBLIC_IP_PARAM, value);
3772
+ pushParam$17(params, PROHIBIT_PUBLIC_IP_PARAM, value);
3598
3773
  return satisfiedBuilder;
3599
3774
  },
3600
3775
  build: () => inner.build()
@@ -3614,16 +3789,16 @@ let OciSubnet;
3614
3789
  //#region src/live_system/component/network_and_compute/iaas/oci_security_list.ts
3615
3790
  const OCI_SECURITY_LIST_TYPE_NAME = "OciSecurityList";
3616
3791
  const COMPARTMENT_ID_PARAM$1 = "compartmentId";
3617
- function buildId$10(id) {
3792
+ function buildId$18(id) {
3618
3793
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
3619
3794
  }
3620
- function buildVersion$10(major, minor, patch) {
3795
+ function buildVersion$18(major, minor, patch) {
3621
3796
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
3622
3797
  }
3623
3798
  function buildOciSecurityListType() {
3624
3799
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_SECURITY_LIST_TYPE_NAME).build()).build();
3625
3800
  }
3626
- function pushParam$8(params, key, value) {
3801
+ function pushParam$16(params, key, value) {
3627
3802
  params.push(key, value);
3628
3803
  }
3629
3804
  let OciSecurityList;
@@ -3633,11 +3808,11 @@ let OciSecurityList;
3633
3808
  const inner = getLiveSystemComponentBuilder().withType(buildOciSecurityListType()).withParameters(params).withProvider("OCI");
3634
3809
  const builder = {
3635
3810
  withId: (id) => {
3636
- inner.withId(buildId$10(id));
3811
+ inner.withId(buildId$18(id));
3637
3812
  return builder;
3638
3813
  },
3639
3814
  withVersion: (major, minor, patch) => {
3640
- inner.withVersion(buildVersion$10(major, minor, patch));
3815
+ inner.withVersion(buildVersion$18(major, minor, patch));
3641
3816
  return builder;
3642
3817
  },
3643
3818
  withDisplayName: (displayName) => {
@@ -3646,15 +3821,15 @@ let OciSecurityList;
3646
3821
  },
3647
3822
  withDescription: (description) => {
3648
3823
  inner.withDescription(description);
3649
- pushParam$8(params, DESCRIPTION_PARAM, description);
3824
+ pushParam$16(params, DESCRIPTION_PARAM, description);
3650
3825
  return builder;
3651
3826
  },
3652
3827
  withIngressRules: (rules) => {
3653
- pushParam$8(params, INGRESS_RULES_PARAM, rules);
3828
+ pushParam$16(params, INGRESS_RULES_PARAM, rules);
3654
3829
  return builder;
3655
3830
  },
3656
3831
  withCompartmentId: (value) => {
3657
- pushParam$8(params, COMPARTMENT_ID_PARAM$1, value);
3832
+ pushParam$16(params, COMPARTMENT_ID_PARAM$1, value);
3658
3833
  return builder;
3659
3834
  },
3660
3835
  build: () => inner.build()
@@ -3663,17 +3838,17 @@ let OciSecurityList;
3663
3838
  };
3664
3839
  _OciSecurityList.satisfy = (blueprint) => {
3665
3840
  const params = getParametersInstance();
3666
- const inner = getLiveSystemComponentBuilder().withType(buildOciSecurityListType()).withParameters(params).withProvider("OCI").withId(buildId$10(blueprint.id.toString())).withVersion(buildVersion$10(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
3841
+ 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);
3667
3842
  const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
3668
3843
  if (description !== null) {
3669
3844
  inner.withDescription(String(description));
3670
- pushParam$8(params, DESCRIPTION_PARAM, String(description));
3845
+ pushParam$16(params, DESCRIPTION_PARAM, String(description));
3671
3846
  } else if (blueprint.description) inner.withDescription(blueprint.description);
3672
3847
  const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
3673
- if (ingressRules !== null) pushParam$8(params, INGRESS_RULES_PARAM, ingressRules);
3848
+ if (ingressRules !== null) pushParam$16(params, INGRESS_RULES_PARAM, ingressRules);
3674
3849
  const satisfiedBuilder = {
3675
3850
  withCompartmentId: (value) => {
3676
- pushParam$8(params, COMPARTMENT_ID_PARAM$1, value);
3851
+ pushParam$16(params, COMPARTMENT_ID_PARAM$1, value);
3677
3852
  return satisfiedBuilder;
3678
3853
  },
3679
3854
  build: () => inner.build()
@@ -3698,16 +3873,16 @@ const IMAGE_ID_PARAM = "imageId";
3698
3873
  const OCPUS_PARAM = "ocpus";
3699
3874
  const MEMORY_IN_GBS_PARAM = "memoryInGbs";
3700
3875
  const SSH_PUBLIC_KEY_PARAM = "sshPublicKey";
3701
- function buildId$9(id) {
3876
+ function buildId$17(id) {
3702
3877
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
3703
3878
  }
3704
- function buildVersion$9(major, minor, patch) {
3879
+ function buildVersion$17(major, minor, patch) {
3705
3880
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
3706
3881
  }
3707
3882
  function buildOciInstanceType() {
3708
3883
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_INSTANCE_TYPE_NAME).build()).build();
3709
3884
  }
3710
- function pushParam$7(params, key, value) {
3885
+ function pushParam$15(params, key, value) {
3711
3886
  params.push(key, value);
3712
3887
  }
3713
3888
  let OciInstance;
@@ -3717,11 +3892,11 @@ let OciInstance;
3717
3892
  const inner = getLiveSystemComponentBuilder().withType(buildOciInstanceType()).withParameters(params).withProvider("OCI");
3718
3893
  const builder = {
3719
3894
  withId: (id) => {
3720
- inner.withId(buildId$9(id));
3895
+ inner.withId(buildId$17(id));
3721
3896
  return builder;
3722
3897
  },
3723
3898
  withVersion: (major, minor, patch) => {
3724
- inner.withVersion(buildVersion$9(major, minor, patch));
3899
+ inner.withVersion(buildVersion$17(major, minor, patch));
3725
3900
  return builder;
3726
3901
  },
3727
3902
  withDisplayName: (displayName) => {
@@ -3733,31 +3908,31 @@ let OciInstance;
3733
3908
  return builder;
3734
3909
  },
3735
3910
  withCompartmentId: (value) => {
3736
- pushParam$7(params, COMPARTMENT_ID_PARAM, value);
3911
+ pushParam$15(params, COMPARTMENT_ID_PARAM, value);
3737
3912
  return builder;
3738
3913
  },
3739
3914
  withAvailabilityDomain: (value) => {
3740
- pushParam$7(params, AVAILABILITY_DOMAIN_PARAM, value);
3915
+ pushParam$15(params, AVAILABILITY_DOMAIN_PARAM, value);
3741
3916
  return builder;
3742
3917
  },
3743
3918
  withShape: (value) => {
3744
- pushParam$7(params, SHAPE_PARAM, value);
3919
+ pushParam$15(params, SHAPE_PARAM, value);
3745
3920
  return builder;
3746
3921
  },
3747
3922
  withImageId: (value) => {
3748
- pushParam$7(params, IMAGE_ID_PARAM, value);
3923
+ pushParam$15(params, IMAGE_ID_PARAM, value);
3749
3924
  return builder;
3750
3925
  },
3751
3926
  withOcpus: (value) => {
3752
- pushParam$7(params, OCPUS_PARAM, value);
3927
+ pushParam$15(params, OCPUS_PARAM, value);
3753
3928
  return builder;
3754
3929
  },
3755
3930
  withMemoryInGbs: (value) => {
3756
- pushParam$7(params, MEMORY_IN_GBS_PARAM, value);
3931
+ pushParam$15(params, MEMORY_IN_GBS_PARAM, value);
3757
3932
  return builder;
3758
3933
  },
3759
3934
  withSshPublicKey: (value) => {
3760
- pushParam$7(params, SSH_PUBLIC_KEY_PARAM, value);
3935
+ pushParam$15(params, SSH_PUBLIC_KEY_PARAM, value);
3761
3936
  return builder;
3762
3937
  },
3763
3938
  build: () => inner.build()
@@ -3766,35 +3941,35 @@ let OciInstance;
3766
3941
  };
3767
3942
  _OciInstance.satisfy = (blueprint) => {
3768
3943
  const params = getParametersInstance();
3769
- const inner = getLiveSystemComponentBuilder().withType(buildOciInstanceType()).withParameters(params).withProvider("OCI").withId(buildId$9(blueprint.id.toString())).withVersion(buildVersion$9(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
3944
+ 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);
3770
3945
  if (blueprint.description) inner.withDescription(blueprint.description);
3771
3946
  const satisfiedBuilder = {
3772
3947
  withCompartmentId: (value) => {
3773
- pushParam$7(params, COMPARTMENT_ID_PARAM, value);
3948
+ pushParam$15(params, COMPARTMENT_ID_PARAM, value);
3774
3949
  return satisfiedBuilder;
3775
3950
  },
3776
3951
  withAvailabilityDomain: (value) => {
3777
- pushParam$7(params, AVAILABILITY_DOMAIN_PARAM, value);
3952
+ pushParam$15(params, AVAILABILITY_DOMAIN_PARAM, value);
3778
3953
  return satisfiedBuilder;
3779
3954
  },
3780
3955
  withShape: (value) => {
3781
- pushParam$7(params, SHAPE_PARAM, value);
3956
+ pushParam$15(params, SHAPE_PARAM, value);
3782
3957
  return satisfiedBuilder;
3783
3958
  },
3784
3959
  withImageId: (value) => {
3785
- pushParam$7(params, IMAGE_ID_PARAM, value);
3960
+ pushParam$15(params, IMAGE_ID_PARAM, value);
3786
3961
  return satisfiedBuilder;
3787
3962
  },
3788
3963
  withOcpus: (value) => {
3789
- pushParam$7(params, OCPUS_PARAM, value);
3964
+ pushParam$15(params, OCPUS_PARAM, value);
3790
3965
  return satisfiedBuilder;
3791
3966
  },
3792
3967
  withMemoryInGbs: (value) => {
3793
- pushParam$7(params, MEMORY_IN_GBS_PARAM, value);
3968
+ pushParam$15(params, MEMORY_IN_GBS_PARAM, value);
3794
3969
  return satisfiedBuilder;
3795
3970
  },
3796
3971
  withSshPublicKey: (value) => {
3797
- pushParam$7(params, SSH_PUBLIC_KEY_PARAM, value);
3972
+ pushParam$15(params, SSH_PUBLIC_KEY_PARAM, value);
3798
3973
  return satisfiedBuilder;
3799
3974
  },
3800
3975
  build: () => inner.build()
@@ -3814,16 +3989,16 @@ let OciInstance;
3814
3989
  //#endregion
3815
3990
  //#region src/live_system/component/network_and_compute/iaas/hetzner_network.ts
3816
3991
  const HETZNER_NETWORK_TYPE_NAME = "HetznerNetwork";
3817
- function buildId$8(id) {
3992
+ function buildId$16(id) {
3818
3993
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
3819
3994
  }
3820
- function buildVersion$8(major, minor, patch) {
3995
+ function buildVersion$16(major, minor, patch) {
3821
3996
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
3822
3997
  }
3823
3998
  function buildHetznerNetworkType() {
3824
3999
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_NETWORK_TYPE_NAME).build()).build();
3825
4000
  }
3826
- function pushParam$6(params, key, value) {
4001
+ function pushParam$14(params, key, value) {
3827
4002
  params.push(key, value);
3828
4003
  }
3829
4004
  let HetznerNetwork;
@@ -3833,11 +4008,11 @@ let HetznerNetwork;
3833
4008
  const inner = getLiveSystemComponentBuilder().withType(buildHetznerNetworkType()).withParameters(params).withProvider("Hetzner");
3834
4009
  const builder = {
3835
4010
  withId: (id) => {
3836
- inner.withId(buildId$8(id));
4011
+ inner.withId(buildId$16(id));
3837
4012
  return builder;
3838
4013
  },
3839
4014
  withVersion: (major, minor, patch) => {
3840
- inner.withVersion(buildVersion$8(major, minor, patch));
4015
+ inner.withVersion(buildVersion$16(major, minor, patch));
3841
4016
  return builder;
3842
4017
  },
3843
4018
  withDisplayName: (displayName) => {
@@ -3849,7 +4024,7 @@ let HetznerNetwork;
3849
4024
  return builder;
3850
4025
  },
3851
4026
  withCidrBlock: (value) => {
3852
- pushParam$6(params, CIDR_BLOCK_PARAM$1, value);
4027
+ pushParam$14(params, CIDR_BLOCK_PARAM$1, value);
3853
4028
  return builder;
3854
4029
  },
3855
4030
  build: () => inner.build()
@@ -3858,10 +4033,10 @@ let HetznerNetwork;
3858
4033
  };
3859
4034
  _HetznerNetwork.satisfy = (blueprint) => {
3860
4035
  const params = getParametersInstance();
3861
- const inner = getLiveSystemComponentBuilder().withType(buildHetznerNetworkType()).withParameters(params).withProvider("Hetzner").withId(buildId$8(blueprint.id.toString())).withVersion(buildVersion$8(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
4036
+ 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);
3862
4037
  if (blueprint.description) inner.withDescription(blueprint.description);
3863
4038
  const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
3864
- if (cidrBlock !== null) pushParam$6(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
4039
+ if (cidrBlock !== null) pushParam$14(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
3865
4040
  return { build: () => inner.build() };
3866
4041
  };
3867
4042
  _HetznerNetwork.create = (config) => {
@@ -3876,16 +4051,16 @@ let HetznerNetwork;
3876
4051
  const HETZNER_SUBNET_TYPE_NAME = "HetznerSubnet";
3877
4052
  const NETWORK_ZONE_PARAM = "networkZone";
3878
4053
  const TYPE_PARAM = "type";
3879
- function buildId$7(id) {
4054
+ function buildId$15(id) {
3880
4055
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
3881
4056
  }
3882
- function buildVersion$7(major, minor, patch) {
4057
+ function buildVersion$15(major, minor, patch) {
3883
4058
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
3884
4059
  }
3885
4060
  function buildHetznerSubnetType() {
3886
4061
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_SUBNET_TYPE_NAME).build()).build();
3887
4062
  }
3888
- function pushParam$5(params, key, value) {
4063
+ function pushParam$13(params, key, value) {
3889
4064
  params.push(key, value);
3890
4065
  }
3891
4066
  let HetznerSubnet;
@@ -3895,11 +4070,11 @@ let HetznerSubnet;
3895
4070
  const inner = getLiveSystemComponentBuilder().withType(buildHetznerSubnetType()).withParameters(params).withProvider("Hetzner");
3896
4071
  const builder = {
3897
4072
  withId: (id) => {
3898
- inner.withId(buildId$7(id));
4073
+ inner.withId(buildId$15(id));
3899
4074
  return builder;
3900
4075
  },
3901
4076
  withVersion: (major, minor, patch) => {
3902
- inner.withVersion(buildVersion$7(major, minor, patch));
4077
+ inner.withVersion(buildVersion$15(major, minor, patch));
3903
4078
  return builder;
3904
4079
  },
3905
4080
  withDisplayName: (displayName) => {
@@ -3911,15 +4086,15 @@ let HetznerSubnet;
3911
4086
  return builder;
3912
4087
  },
3913
4088
  withCidrBlock: (value) => {
3914
- pushParam$5(params, CIDR_BLOCK_PARAM, value);
4089
+ pushParam$13(params, CIDR_BLOCK_PARAM, value);
3915
4090
  return builder;
3916
4091
  },
3917
4092
  withNetworkZone: (value) => {
3918
- pushParam$5(params, NETWORK_ZONE_PARAM, value);
4093
+ pushParam$13(params, NETWORK_ZONE_PARAM, value);
3919
4094
  return builder;
3920
4095
  },
3921
4096
  withType: (value) => {
3922
- pushParam$5(params, TYPE_PARAM, value);
4097
+ pushParam$13(params, TYPE_PARAM, value);
3923
4098
  return builder;
3924
4099
  },
3925
4100
  build: () => inner.build()
@@ -3928,17 +4103,17 @@ let HetznerSubnet;
3928
4103
  };
3929
4104
  _HetznerSubnet.satisfy = (blueprint) => {
3930
4105
  const params = getParametersInstance();
3931
- const inner = getLiveSystemComponentBuilder().withType(buildHetznerSubnetType()).withParameters(params).withProvider("Hetzner").withId(buildId$7(blueprint.id.toString())).withVersion(buildVersion$7(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
4106
+ 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);
3932
4107
  if (blueprint.description) inner.withDescription(blueprint.description);
3933
4108
  const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
3934
- if (cidrBlock !== null) pushParam$5(params, CIDR_BLOCK_PARAM, String(cidrBlock));
4109
+ if (cidrBlock !== null) pushParam$13(params, CIDR_BLOCK_PARAM, String(cidrBlock));
3935
4110
  const satisfiedBuilder = {
3936
4111
  withNetworkZone: (value) => {
3937
- pushParam$5(params, NETWORK_ZONE_PARAM, value);
4112
+ pushParam$13(params, NETWORK_ZONE_PARAM, value);
3938
4113
  return satisfiedBuilder;
3939
4114
  },
3940
4115
  withType: (value) => {
3941
- pushParam$5(params, TYPE_PARAM, value);
4116
+ pushParam$13(params, TYPE_PARAM, value);
3942
4117
  return satisfiedBuilder;
3943
4118
  },
3944
4119
  build: () => inner.build()
@@ -3956,16 +4131,16 @@ let HetznerSubnet;
3956
4131
  //#endregion
3957
4132
  //#region src/live_system/component/network_and_compute/iaas/hetzner_firewall.ts
3958
4133
  const HETZNER_FIREWALL_TYPE_NAME = "HetznerFirewall";
3959
- function buildId$6(id) {
4134
+ function buildId$14(id) {
3960
4135
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
3961
4136
  }
3962
- function buildVersion$6(major, minor, patch) {
4137
+ function buildVersion$14(major, minor, patch) {
3963
4138
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
3964
4139
  }
3965
4140
  function buildHetznerFirewallType() {
3966
4141
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_FIREWALL_TYPE_NAME).build()).build();
3967
4142
  }
3968
- function pushParam$4(params, key, value) {
4143
+ function pushParam$12(params, key, value) {
3969
4144
  params.push(key, value);
3970
4145
  }
3971
4146
  let HetznerFirewall;
@@ -3975,11 +4150,11 @@ let HetznerFirewall;
3975
4150
  const inner = getLiveSystemComponentBuilder().withType(buildHetznerFirewallType()).withParameters(params).withProvider("Hetzner");
3976
4151
  const builder = {
3977
4152
  withId: (id) => {
3978
- inner.withId(buildId$6(id));
4153
+ inner.withId(buildId$14(id));
3979
4154
  return builder;
3980
4155
  },
3981
4156
  withVersion: (major, minor, patch) => {
3982
- inner.withVersion(buildVersion$6(major, minor, patch));
4157
+ inner.withVersion(buildVersion$14(major, minor, patch));
3983
4158
  return builder;
3984
4159
  },
3985
4160
  withDisplayName: (displayName) => {
@@ -3988,11 +4163,11 @@ let HetznerFirewall;
3988
4163
  },
3989
4164
  withDescription: (description) => {
3990
4165
  inner.withDescription(description);
3991
- pushParam$4(params, DESCRIPTION_PARAM, description);
4166
+ pushParam$12(params, DESCRIPTION_PARAM, description);
3992
4167
  return builder;
3993
4168
  },
3994
4169
  withIngressRules: (rules) => {
3995
- pushParam$4(params, INGRESS_RULES_PARAM, rules);
4170
+ pushParam$12(params, INGRESS_RULES_PARAM, rules);
3996
4171
  return builder;
3997
4172
  },
3998
4173
  build: () => inner.build()
@@ -4001,14 +4176,14 @@ let HetznerFirewall;
4001
4176
  };
4002
4177
  _HetznerFirewall.satisfy = (blueprint) => {
4003
4178
  const params = getParametersInstance();
4004
- const inner = getLiveSystemComponentBuilder().withType(buildHetznerFirewallType()).withParameters(params).withProvider("Hetzner").withId(buildId$6(blueprint.id.toString())).withVersion(buildVersion$6(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
4179
+ 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);
4005
4180
  const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
4006
4181
  if (description !== null) {
4007
4182
  inner.withDescription(String(description));
4008
- pushParam$4(params, DESCRIPTION_PARAM, String(description));
4183
+ pushParam$12(params, DESCRIPTION_PARAM, String(description));
4009
4184
  } else if (blueprint.description) inner.withDescription(blueprint.description);
4010
4185
  const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
4011
- if (ingressRules !== null) pushParam$4(params, INGRESS_RULES_PARAM, ingressRules);
4186
+ if (ingressRules !== null) pushParam$12(params, INGRESS_RULES_PARAM, ingressRules);
4012
4187
  return { build: () => inner.build() };
4013
4188
  };
4014
4189
  _HetznerFirewall.create = (config) => {
@@ -4027,16 +4202,16 @@ const LOCATION_PARAM = "location";
4027
4202
  const IMAGE_PARAM = "image";
4028
4203
  const SSH_KEYS_PARAM = "sshKeys";
4029
4204
  const USER_DATA_PARAM = "userData";
4030
- function buildId$5(id) {
4205
+ function buildId$13(id) {
4031
4206
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
4032
4207
  }
4033
- function buildVersion$5(major, minor, patch) {
4208
+ function buildVersion$13(major, minor, patch) {
4034
4209
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
4035
4210
  }
4036
4211
  function buildHetznerServerType() {
4037
4212
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_SERVER_TYPE_NAME).build()).build();
4038
4213
  }
4039
- function pushParam$3(params, key, value) {
4214
+ function pushParam$11(params, key, value) {
4040
4215
  params.push(key, value);
4041
4216
  }
4042
4217
  let HetznerServer;
@@ -4046,11 +4221,11 @@ let HetznerServer;
4046
4221
  const inner = getLiveSystemComponentBuilder().withType(buildHetznerServerType()).withParameters(params).withProvider("Hetzner");
4047
4222
  const builder = {
4048
4223
  withId: (id) => {
4049
- inner.withId(buildId$5(id));
4224
+ inner.withId(buildId$13(id));
4050
4225
  return builder;
4051
4226
  },
4052
4227
  withVersion: (major, minor, patch) => {
4053
- inner.withVersion(buildVersion$5(major, minor, patch));
4228
+ inner.withVersion(buildVersion$13(major, minor, patch));
4054
4229
  return builder;
4055
4230
  },
4056
4231
  withDisplayName: (displayName) => {
@@ -4062,23 +4237,23 @@ let HetznerServer;
4062
4237
  return builder;
4063
4238
  },
4064
4239
  withServerType: (value) => {
4065
- pushParam$3(params, SERVER_TYPE_PARAM, value);
4240
+ pushParam$11(params, SERVER_TYPE_PARAM, value);
4066
4241
  return builder;
4067
4242
  },
4068
4243
  withLocation: (value) => {
4069
- pushParam$3(params, LOCATION_PARAM, value);
4244
+ pushParam$11(params, LOCATION_PARAM, value);
4070
4245
  return builder;
4071
4246
  },
4072
4247
  withImage: (value) => {
4073
- pushParam$3(params, IMAGE_PARAM, value);
4248
+ pushParam$11(params, IMAGE_PARAM, value);
4074
4249
  return builder;
4075
4250
  },
4076
4251
  withSshKeys: (value) => {
4077
- pushParam$3(params, SSH_KEYS_PARAM, value);
4252
+ pushParam$11(params, SSH_KEYS_PARAM, value);
4078
4253
  return builder;
4079
4254
  },
4080
4255
  withUserData: (value) => {
4081
- pushParam$3(params, USER_DATA_PARAM, value);
4256
+ pushParam$11(params, USER_DATA_PARAM, value);
4082
4257
  return builder;
4083
4258
  },
4084
4259
  build: () => inner.build()
@@ -4087,27 +4262,27 @@ let HetznerServer;
4087
4262
  };
4088
4263
  _HetznerServer.satisfy = (blueprint) => {
4089
4264
  const params = getParametersInstance();
4090
- const inner = getLiveSystemComponentBuilder().withType(buildHetznerServerType()).withParameters(params).withProvider("Hetzner").withId(buildId$5(blueprint.id.toString())).withVersion(buildVersion$5(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
4265
+ 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);
4091
4266
  if (blueprint.description) inner.withDescription(blueprint.description);
4092
4267
  const satisfiedBuilder = {
4093
4268
  withServerType: (value) => {
4094
- pushParam$3(params, SERVER_TYPE_PARAM, value);
4269
+ pushParam$11(params, SERVER_TYPE_PARAM, value);
4095
4270
  return satisfiedBuilder;
4096
4271
  },
4097
4272
  withLocation: (value) => {
4098
- pushParam$3(params, LOCATION_PARAM, value);
4273
+ pushParam$11(params, LOCATION_PARAM, value);
4099
4274
  return satisfiedBuilder;
4100
4275
  },
4101
4276
  withImage: (value) => {
4102
- pushParam$3(params, IMAGE_PARAM, value);
4277
+ pushParam$11(params, IMAGE_PARAM, value);
4103
4278
  return satisfiedBuilder;
4104
4279
  },
4105
4280
  withSshKeys: (value) => {
4106
- pushParam$3(params, SSH_KEYS_PARAM, value);
4281
+ pushParam$11(params, SSH_KEYS_PARAM, value);
4107
4282
  return satisfiedBuilder;
4108
4283
  },
4109
4284
  withUserData: (value) => {
4110
- pushParam$3(params, USER_DATA_PARAM, value);
4285
+ pushParam$11(params, USER_DATA_PARAM, value);
4111
4286
  return satisfiedBuilder;
4112
4287
  },
4113
4288
  build: () => inner.build()
@@ -4126,16 +4301,16 @@ let HetznerServer;
4126
4301
  //#endregion
4127
4302
  //#region src/fractal/component/network_and_compute/paas/container_platform.ts
4128
4303
  const CONTAINER_PLATFORM_TYPE_NAME = "ContainerPlatform";
4129
- function buildId$4(id) {
4304
+ function buildId$12(id) {
4130
4305
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
4131
4306
  }
4132
- function buildVersion$4(major, minor, patch) {
4307
+ function buildVersion$12(major, minor, patch) {
4133
4308
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
4134
4309
  }
4135
4310
  function buildContainerPlatformType() {
4136
4311
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(CONTAINER_PLATFORM_TYPE_NAME).build()).build();
4137
4312
  }
4138
- function makeContainerPlatformNode(platform, workloadNodes) {
4313
+ function makeContainerPlatformComponent(platform, workloadNodes) {
4139
4314
  const platformDep = { id: platform.id };
4140
4315
  return {
4141
4316
  platform,
@@ -4146,7 +4321,7 @@ function makeContainerPlatformNode(platform, workloadNodes) {
4146
4321
  dependencies: [...w.component.dependencies, platformDep]
4147
4322
  }
4148
4323
  })),
4149
- withWorkloads: (newWorkloads) => makeContainerPlatformNode(platform, newWorkloads)
4324
+ withWorkloads: (newWorkloads) => makeContainerPlatformComponent(platform, newWorkloads)
4150
4325
  };
4151
4326
  }
4152
4327
  let ContainerPlatform;
@@ -4156,11 +4331,11 @@ let ContainerPlatform;
4156
4331
  const inner = getBlueprintComponentBuilder().withType(buildContainerPlatformType()).withParameters(params);
4157
4332
  const builder = {
4158
4333
  withId: (id) => {
4159
- inner.withId(buildId$4(id));
4334
+ inner.withId(buildId$12(id));
4160
4335
  return builder;
4161
4336
  },
4162
4337
  withVersion: (major, minor, patch) => {
4163
- inner.withVersion(buildVersion$4(major, minor, patch));
4338
+ inner.withVersion(buildVersion$12(major, minor, patch));
4164
4339
  return builder;
4165
4340
  },
4166
4341
  withDisplayName: (displayName) => {
@@ -4178,7 +4353,7 @@ let ContainerPlatform;
4178
4353
  _ContainerPlatform.create = (config) => {
4179
4354
  const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
4180
4355
  if (config.description) b.withDescription(config.description);
4181
- return makeContainerPlatformNode(b.build(), []);
4356
+ return makeContainerPlatformComponent(b.build(), []);
4182
4357
  };
4183
4358
  })(ContainerPlatform || (ContainerPlatform = {}));
4184
4359
 
@@ -4191,16 +4366,16 @@ const CONTAINER_NAME_PARAM = "containerName";
4191
4366
  const CPU_PARAM = "cpu";
4192
4367
  const MEMORY_PARAM = "memory";
4193
4368
  const DESIRED_COUNT_PARAM = "desiredCount";
4194
- function buildId$3(id) {
4369
+ function buildId$11(id) {
4195
4370
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
4196
4371
  }
4197
- function buildVersion$3(major, minor, patch) {
4372
+ function buildVersion$11(major, minor, patch) {
4198
4373
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
4199
4374
  }
4200
4375
  function buildWorkloadType() {
4201
4376
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.CustomWorkloads).withServiceDeliveryModel(ServiceDeliveryModel$1.CaaS).withName(PascalCaseString$1.getBuilder().withValue(WORKLOAD_TYPE_NAME).build()).build();
4202
4377
  }
4203
- function pushParam$2(params, key, value) {
4378
+ function pushParam$10(params, key, value) {
4204
4379
  params.push(key, value);
4205
4380
  }
4206
4381
  function buildLinkParams(fromPort, toPort, protocol) {
@@ -4210,20 +4385,20 @@ function buildLinkParams(fromPort, toPort, protocol) {
4210
4385
  if (protocol) p.push("protocol", protocol);
4211
4386
  return p;
4212
4387
  }
4213
- function makeWorkloadNode(component) {
4388
+ function makeWorkloadComponent(component) {
4214
4389
  return {
4215
4390
  component,
4216
4391
  components: [component],
4217
- withLinks: (links) => {
4392
+ linkToWorkload: (links) => {
4218
4393
  const portLinks = links.map((l) => getLinkBuilder().withId(l.target.component.id).withType(buildWorkloadType()).withParameters(buildLinkParams(l.fromPort, l.toPort, l.protocol)).build());
4219
- return makeWorkloadNode({
4394
+ return makeWorkloadComponent({
4220
4395
  ...component,
4221
4396
  links: [...component.links, ...portLinks]
4222
4397
  });
4223
4398
  },
4224
- withSecurityGroups: (sgs) => {
4399
+ linkToSecurityGroup: (sgs) => {
4225
4400
  const sgLinks = sgs.map((sg) => getLinkBuilder().withId(sg.id).withType(sg.type).withParameters(getParametersInstance()).build());
4226
- return makeWorkloadNode({
4401
+ return makeWorkloadComponent({
4227
4402
  ...component,
4228
4403
  links: [...component.links, ...sgLinks]
4229
4404
  });
@@ -4237,11 +4412,11 @@ let Workload;
4237
4412
  const inner = getBlueprintComponentBuilder().withType(buildWorkloadType()).withParameters(params);
4238
4413
  const builder = {
4239
4414
  withId: (id) => {
4240
- inner.withId(buildId$3(id));
4415
+ inner.withId(buildId$11(id));
4241
4416
  return builder;
4242
4417
  },
4243
4418
  withVersion: (major, minor, patch) => {
4244
- inner.withVersion(buildVersion$3(major, minor, patch));
4419
+ inner.withVersion(buildVersion$11(major, minor, patch));
4245
4420
  return builder;
4246
4421
  },
4247
4422
  withDisplayName: (displayName) => {
@@ -4253,27 +4428,27 @@ let Workload;
4253
4428
  return builder;
4254
4429
  },
4255
4430
  withContainerImage: (image) => {
4256
- pushParam$2(params, CONTAINER_IMAGE_PARAM, image);
4431
+ pushParam$10(params, CONTAINER_IMAGE_PARAM, image);
4257
4432
  return builder;
4258
4433
  },
4259
4434
  withContainerPort: (port) => {
4260
- pushParam$2(params, CONTAINER_PORT_PARAM, port);
4435
+ pushParam$10(params, CONTAINER_PORT_PARAM, port);
4261
4436
  return builder;
4262
4437
  },
4263
4438
  withContainerName: (name) => {
4264
- pushParam$2(params, CONTAINER_NAME_PARAM, name);
4439
+ pushParam$10(params, CONTAINER_NAME_PARAM, name);
4265
4440
  return builder;
4266
4441
  },
4267
4442
  withCpu: (cpu) => {
4268
- pushParam$2(params, CPU_PARAM, cpu);
4443
+ pushParam$10(params, CPU_PARAM, cpu);
4269
4444
  return builder;
4270
4445
  },
4271
4446
  withMemory: (memory) => {
4272
- pushParam$2(params, MEMORY_PARAM, memory);
4447
+ pushParam$10(params, MEMORY_PARAM, memory);
4273
4448
  return builder;
4274
4449
  },
4275
4450
  withDesiredCount: (count) => {
4276
- pushParam$2(params, DESIRED_COUNT_PARAM, count);
4451
+ pushParam$10(params, DESIRED_COUNT_PARAM, count);
4277
4452
  return builder;
4278
4453
  },
4279
4454
  build: () => inner.build()
@@ -4288,17 +4463,182 @@ let Workload;
4288
4463
  if (config.cpu) b.withCpu(config.cpu);
4289
4464
  if (config.memory) b.withMemory(config.memory);
4290
4465
  if (config.desiredCount !== void 0) b.withDesiredCount(config.desiredCount);
4291
- return makeWorkloadNode(b.build());
4466
+ return makeWorkloadComponent(b.build());
4292
4467
  };
4293
4468
  })(Workload || (Workload = {}));
4294
4469
 
4470
+ //#endregion
4471
+ //#region src/live_system/component/network_and_compute/paas/eks_cluster.ts
4472
+ const EKS_CLUSTER_TYPE_NAME = "EKS";
4473
+ function buildId$10(id) {
4474
+ return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
4475
+ }
4476
+ function buildVersion$10(major, minor, patch) {
4477
+ return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
4478
+ }
4479
+ function buildAwsEksClusterType() {
4480
+ return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(EKS_CLUSTER_TYPE_NAME).build()).build();
4481
+ }
4482
+ function pushParam$9(params, key, value) {
4483
+ params.push(key, value);
4484
+ }
4485
+ let AwsEksCluster;
4486
+ (function(_AwsEksCluster) {
4487
+ const getBuilder = _AwsEksCluster.getBuilder = () => {
4488
+ const params = getParametersInstance();
4489
+ const inner = getLiveSystemComponentBuilder().withType(buildAwsEksClusterType()).withParameters(params).withProvider("AWS");
4490
+ const builder = {
4491
+ withId: (id) => {
4492
+ inner.withId(buildId$10(id));
4493
+ return builder;
4494
+ },
4495
+ withVersion: (major, minor, patch) => {
4496
+ inner.withVersion(buildVersion$10(major, minor, patch));
4497
+ return builder;
4498
+ },
4499
+ withDisplayName: (displayName) => {
4500
+ inner.withDisplayName(displayName);
4501
+ return builder;
4502
+ },
4503
+ withDescription: (description) => {
4504
+ inner.withDescription(description);
4505
+ return builder;
4506
+ },
4507
+ withKubernetesVersion: (v) => {
4508
+ pushParam$9(params, "kubernetesVersion", v);
4509
+ return builder;
4510
+ },
4511
+ withNetworkPolicyProvider: (p) => {
4512
+ pushParam$9(params, "networkPolicyProvider", p);
4513
+ return builder;
4514
+ },
4515
+ withMasterIpv4CidrBlock: (cidr) => {
4516
+ pushParam$9(params, "masterIpv4CidrBlock", cidr);
4517
+ return builder;
4518
+ },
4519
+ withVpcCidrBlock: (cidr) => {
4520
+ pushParam$9(params, "vpcCidrBlock", cidr);
4521
+ return builder;
4522
+ },
4523
+ withPrivateSubnetCidrs: (cidrs) => {
4524
+ pushParam$9(params, "privateSubnetCidrs", cidrs);
4525
+ return builder;
4526
+ },
4527
+ withDesiredAvailabilityZoneCount: (count) => {
4528
+ pushParam$9(params, "desiredAvailabilityZoneCount", count);
4529
+ return builder;
4530
+ },
4531
+ withNodePools: (nodePools) => {
4532
+ pushParam$9(params, "nodePools", nodePools);
4533
+ return builder;
4534
+ },
4535
+ withAddons: (addons) => {
4536
+ pushParam$9(params, "addons", addons);
4537
+ return builder;
4538
+ },
4539
+ withPriorityClasses: (classes) => {
4540
+ pushParam$9(params, "priorityClasses", classes);
4541
+ return builder;
4542
+ },
4543
+ withRoles: (roles) => {
4544
+ pushParam$9(params, "roles", roles);
4545
+ return builder;
4546
+ },
4547
+ withWorkloadIdentityEnabled: (enabled) => {
4548
+ pushParam$9(params, "workloadIdentityEnabled", enabled);
4549
+ return builder;
4550
+ },
4551
+ withPrivateClusterDisabled: (disabled) => {
4552
+ pushParam$9(params, "privateClusterDisabled", disabled);
4553
+ return builder;
4554
+ },
4555
+ build: () => inner.build()
4556
+ };
4557
+ return builder;
4558
+ };
4559
+ _AwsEksCluster.satisfy = (platform) => {
4560
+ const params = getParametersInstance();
4561
+ 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);
4562
+ if (platform.description) inner.withDescription(platform.description);
4563
+ const satisfiedBuilder = {
4564
+ withKubernetesVersion: (v) => {
4565
+ pushParam$9(params, "kubernetesVersion", v);
4566
+ return satisfiedBuilder;
4567
+ },
4568
+ withNetworkPolicyProvider: (p) => {
4569
+ pushParam$9(params, "networkPolicyProvider", p);
4570
+ return satisfiedBuilder;
4571
+ },
4572
+ withMasterIpv4CidrBlock: (cidr) => {
4573
+ pushParam$9(params, "masterIpv4CidrBlock", cidr);
4574
+ return satisfiedBuilder;
4575
+ },
4576
+ withVpcCidrBlock: (cidr) => {
4577
+ pushParam$9(params, "vpcCidrBlock", cidr);
4578
+ return satisfiedBuilder;
4579
+ },
4580
+ withPrivateSubnetCidrs: (cidrs) => {
4581
+ pushParam$9(params, "privateSubnetCidrs", cidrs);
4582
+ return satisfiedBuilder;
4583
+ },
4584
+ withDesiredAvailabilityZoneCount: (count) => {
4585
+ pushParam$9(params, "desiredAvailabilityZoneCount", count);
4586
+ return satisfiedBuilder;
4587
+ },
4588
+ withNodePools: (nodePools) => {
4589
+ pushParam$9(params, "nodePools", nodePools);
4590
+ return satisfiedBuilder;
4591
+ },
4592
+ withAddons: (addons) => {
4593
+ pushParam$9(params, "addons", addons);
4594
+ return satisfiedBuilder;
4595
+ },
4596
+ withPriorityClasses: (classes) => {
4597
+ pushParam$9(params, "priorityClasses", classes);
4598
+ return satisfiedBuilder;
4599
+ },
4600
+ withRoles: (roles) => {
4601
+ pushParam$9(params, "roles", roles);
4602
+ return satisfiedBuilder;
4603
+ },
4604
+ withWorkloadIdentityEnabled: (enabled) => {
4605
+ pushParam$9(params, "workloadIdentityEnabled", enabled);
4606
+ return satisfiedBuilder;
4607
+ },
4608
+ withPrivateClusterDisabled: (disabled) => {
4609
+ pushParam$9(params, "privateClusterDisabled", disabled);
4610
+ return satisfiedBuilder;
4611
+ },
4612
+ build: () => inner.build()
4613
+ };
4614
+ return satisfiedBuilder;
4615
+ };
4616
+ _AwsEksCluster.create = (config) => {
4617
+ const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
4618
+ if (config.description) b.withDescription(config.description);
4619
+ if (config.kubernetesVersion) b.withKubernetesVersion(config.kubernetesVersion);
4620
+ if (config.networkPolicyProvider) b.withNetworkPolicyProvider(config.networkPolicyProvider);
4621
+ if (config.masterIpv4CidrBlock) b.withMasterIpv4CidrBlock(config.masterIpv4CidrBlock);
4622
+ if (config.vpcCidrBlock) b.withVpcCidrBlock(config.vpcCidrBlock);
4623
+ if (config.privateSubnetCidrs) b.withPrivateSubnetCidrs(config.privateSubnetCidrs);
4624
+ if (config.desiredAvailabilityZoneCount !== void 0) b.withDesiredAvailabilityZoneCount(config.desiredAvailabilityZoneCount);
4625
+ if (config.nodePools) b.withNodePools(config.nodePools);
4626
+ if (config.addons) b.withAddons(config.addons);
4627
+ if (config.priorityClasses) b.withPriorityClasses(config.priorityClasses);
4628
+ if (config.roles) b.withRoles(config.roles);
4629
+ if (config.workloadIdentityEnabled !== void 0) b.withWorkloadIdentityEnabled(config.workloadIdentityEnabled);
4630
+ if (config.privateClusterDisabled !== void 0) b.withPrivateClusterDisabled(config.privateClusterDisabled);
4631
+ return b.build();
4632
+ };
4633
+ })(AwsEksCluster || (AwsEksCluster = {}));
4634
+
4295
4635
  //#endregion
4296
4636
  //#region src/live_system/component/network_and_compute/paas/ecs_cluster.ts
4297
4637
  const ECS_CLUSTER_TYPE_NAME = "ECS";
4298
- function buildId$2(id) {
4638
+ function buildId$9(id) {
4299
4639
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
4300
4640
  }
4301
- function buildVersion$2(major, minor, patch) {
4641
+ function buildVersion$9(major, minor, patch) {
4302
4642
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
4303
4643
  }
4304
4644
  function buildAwsEcsClusterType() {
@@ -4311,11 +4651,11 @@ let AwsEcsCluster;
4311
4651
  const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsClusterType()).withParameters(params).withProvider("AWS");
4312
4652
  const builder = {
4313
4653
  withId: (id) => {
4314
- inner.withId(buildId$2(id));
4654
+ inner.withId(buildId$9(id));
4315
4655
  return builder;
4316
4656
  },
4317
4657
  withVersion: (major, minor, patch) => {
4318
- inner.withVersion(buildVersion$2(major, minor, patch));
4658
+ inner.withVersion(buildVersion$9(major, minor, patch));
4319
4659
  return builder;
4320
4660
  },
4321
4661
  withDisplayName: (displayName) => {
@@ -4331,7 +4671,7 @@ let AwsEcsCluster;
4331
4671
  return builder;
4332
4672
  };
4333
4673
  _AwsEcsCluster.satisfy = (platform) => {
4334
- const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsClusterType()).withParameters(getParametersInstance()).withProvider("AWS").withId(buildId$2(platform.id.toString())).withVersion(buildVersion$2(platform.version.major, platform.version.minor, platform.version.patch)).withDisplayName(platform.displayName);
4674
+ 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);
4335
4675
  if (platform.description) inner.withDescription(platform.description);
4336
4676
  return { build: () => inner.build() };
4337
4677
  };
@@ -4348,16 +4688,16 @@ const ECS_TASK_DEF_TYPE_NAME = "ECSTaskDefinition";
4348
4688
  const NETWORK_MODE_PARAM = "networkMode";
4349
4689
  const EXECUTION_ROLE_ARN_PARAM = "executionRoleArn";
4350
4690
  const TASK_ROLE_ARN_PARAM = "taskRoleArn";
4351
- function buildId$1(id) {
4691
+ function buildId$8(id) {
4352
4692
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
4353
4693
  }
4354
- function buildVersion$1(major, minor, patch) {
4694
+ function buildVersion$8(major, minor, patch) {
4355
4695
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
4356
4696
  }
4357
4697
  function buildAwsEcsTaskDefType() {
4358
4698
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(ECS_TASK_DEF_TYPE_NAME).build()).build();
4359
4699
  }
4360
- function pushParam$1(params, key, value) {
4700
+ function pushParam$8(params, key, value) {
4361
4701
  params.push(key, value);
4362
4702
  }
4363
4703
  let AwsEcsTaskDefinition;
@@ -4367,11 +4707,11 @@ let AwsEcsTaskDefinition;
4367
4707
  const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsTaskDefType()).withParameters(params).withProvider("AWS");
4368
4708
  const builder = {
4369
4709
  withId: (id) => {
4370
- inner.withId(buildId$1(id));
4710
+ inner.withId(buildId$8(id));
4371
4711
  return builder;
4372
4712
  },
4373
4713
  withVersion: (major, minor, patch) => {
4374
- inner.withVersion(buildVersion$1(major, minor, patch));
4714
+ inner.withVersion(buildVersion$8(major, minor, patch));
4375
4715
  return builder;
4376
4716
  },
4377
4717
  withDisplayName: (displayName) => {
@@ -4383,35 +4723,35 @@ let AwsEcsTaskDefinition;
4383
4723
  return builder;
4384
4724
  },
4385
4725
  withContainerImage: (image) => {
4386
- pushParam$1(params, CONTAINER_IMAGE_PARAM, image);
4726
+ pushParam$8(params, CONTAINER_IMAGE_PARAM, image);
4387
4727
  return builder;
4388
4728
  },
4389
4729
  withContainerPort: (port) => {
4390
- pushParam$1(params, CONTAINER_PORT_PARAM, port);
4730
+ pushParam$8(params, CONTAINER_PORT_PARAM, port);
4391
4731
  return builder;
4392
4732
  },
4393
4733
  withContainerName: (name) => {
4394
- pushParam$1(params, CONTAINER_NAME_PARAM, name);
4734
+ pushParam$8(params, CONTAINER_NAME_PARAM, name);
4395
4735
  return builder;
4396
4736
  },
4397
4737
  withCpu: (cpu) => {
4398
- pushParam$1(params, CPU_PARAM, cpu);
4738
+ pushParam$8(params, CPU_PARAM, cpu);
4399
4739
  return builder;
4400
4740
  },
4401
4741
  withMemory: (memory) => {
4402
- pushParam$1(params, MEMORY_PARAM, memory);
4742
+ pushParam$8(params, MEMORY_PARAM, memory);
4403
4743
  return builder;
4404
4744
  },
4405
4745
  withNetworkMode: (mode) => {
4406
- pushParam$1(params, NETWORK_MODE_PARAM, mode);
4746
+ pushParam$8(params, NETWORK_MODE_PARAM, mode);
4407
4747
  return builder;
4408
4748
  },
4409
4749
  withExecutionRoleArn: (arn) => {
4410
- pushParam$1(params, EXECUTION_ROLE_ARN_PARAM, arn);
4750
+ pushParam$8(params, EXECUTION_ROLE_ARN_PARAM, arn);
4411
4751
  return builder;
4412
4752
  },
4413
4753
  withTaskRoleArn: (arn) => {
4414
- pushParam$1(params, TASK_ROLE_ARN_PARAM, arn);
4754
+ pushParam$8(params, TASK_ROLE_ARN_PARAM, arn);
4415
4755
  return builder;
4416
4756
  },
4417
4757
  build: () => inner.build()
@@ -4421,7 +4761,7 @@ let AwsEcsTaskDefinition;
4421
4761
  _AwsEcsTaskDefinition.satisfy = (workload) => {
4422
4762
  const params = getParametersInstance();
4423
4763
  const taskId = `${workload.id.toString()}-task`;
4424
- const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsTaskDefType()).withParameters(params).withProvider("AWS").withId(buildId$1(taskId)).withVersion(buildVersion$1(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName);
4764
+ 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);
4425
4765
  if (workload.description) inner.withDescription(workload.description);
4426
4766
  for (const key of [
4427
4767
  CONTAINER_IMAGE_PARAM,
@@ -4431,19 +4771,19 @@ let AwsEcsTaskDefinition;
4431
4771
  MEMORY_PARAM
4432
4772
  ]) {
4433
4773
  const v = workload.parameters.getOptionalFieldByName(key);
4434
- if (v !== null) pushParam$1(params, key, v);
4774
+ if (v !== null) pushParam$8(params, key, v);
4435
4775
  }
4436
4776
  const satisfiedBuilder = {
4437
4777
  withNetworkMode: (mode) => {
4438
- pushParam$1(params, NETWORK_MODE_PARAM, mode);
4778
+ pushParam$8(params, NETWORK_MODE_PARAM, mode);
4439
4779
  return satisfiedBuilder;
4440
4780
  },
4441
4781
  withExecutionRoleArn: (arn) => {
4442
- pushParam$1(params, EXECUTION_ROLE_ARN_PARAM, arn);
4782
+ pushParam$8(params, EXECUTION_ROLE_ARN_PARAM, arn);
4443
4783
  return satisfiedBuilder;
4444
4784
  },
4445
4785
  withTaskRoleArn: (arn) => {
4446
- pushParam$1(params, TASK_ROLE_ARN_PARAM, arn);
4786
+ pushParam$8(params, TASK_ROLE_ARN_PARAM, arn);
4447
4787
  return satisfiedBuilder;
4448
4788
  },
4449
4789
  build: () => inner.build()
@@ -4469,16 +4809,16 @@ let AwsEcsTaskDefinition;
4469
4809
  const ECS_SERVICE_TYPE_NAME = "ECSService";
4470
4810
  const LAUNCH_TYPE_PARAM = "launchType";
4471
4811
  const ASSIGN_PUBLIC_IP_PARAM = "assignPublicIp";
4472
- function buildId(id) {
4812
+ function buildId$7(id) {
4473
4813
  return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
4474
4814
  }
4475
- function buildVersion(major, minor, patch) {
4815
+ function buildVersion$7(major, minor, patch) {
4476
4816
  return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
4477
4817
  }
4478
4818
  function buildAwsEcsServiceType() {
4479
4819
  return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(ECS_SERVICE_TYPE_NAME).build()).build();
4480
4820
  }
4481
- function pushParam(params, key, value) {
4821
+ function pushParam$7(params, key, value) {
4482
4822
  params.push(key, value);
4483
4823
  }
4484
4824
  let AwsEcsService;
@@ -4488,11 +4828,11 @@ let AwsEcsService;
4488
4828
  const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsServiceType()).withParameters(params).withProvider("AWS");
4489
4829
  const builder = {
4490
4830
  withId: (id) => {
4491
- inner.withId(buildId(id));
4831
+ inner.withId(buildId$7(id));
4492
4832
  return builder;
4493
4833
  },
4494
4834
  withVersion: (major, minor, patch) => {
4495
- inner.withVersion(buildVersion(major, minor, patch));
4835
+ inner.withVersion(buildVersion$7(major, minor, patch));
4496
4836
  return builder;
4497
4837
  },
4498
4838
  withDisplayName: (displayName) => {
@@ -4504,15 +4844,15 @@ let AwsEcsService;
4504
4844
  return builder;
4505
4845
  },
4506
4846
  withDesiredCount: (count) => {
4507
- pushParam(params, DESIRED_COUNT_PARAM, count);
4847
+ pushParam$7(params, DESIRED_COUNT_PARAM, count);
4508
4848
  return builder;
4509
4849
  },
4510
4850
  withLaunchType: (type) => {
4511
- pushParam(params, LAUNCH_TYPE_PARAM, type);
4851
+ pushParam$7(params, LAUNCH_TYPE_PARAM, type);
4512
4852
  return builder;
4513
4853
  },
4514
4854
  withAssignPublicIp: (assign) => {
4515
- pushParam(params, ASSIGN_PUBLIC_IP_PARAM, assign);
4855
+ pushParam$7(params, ASSIGN_PUBLIC_IP_PARAM, assign);
4516
4856
  return builder;
4517
4857
  },
4518
4858
  build: () => inner.build()
@@ -4521,17 +4861,23 @@ let AwsEcsService;
4521
4861
  };
4522
4862
  _AwsEcsService.satisfy = (workload) => {
4523
4863
  const params = getParametersInstance();
4524
- 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(workload.dependencies).withLinks(workload.links);
4864
+ const deps = [...workload.dependencies];
4865
+ 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);
4525
4866
  if (workload.description) inner.withDescription(workload.description);
4526
4867
  const desiredCount = workload.parameters.getOptionalFieldByName(DESIRED_COUNT_PARAM);
4527
- if (desiredCount !== null) pushParam(params, DESIRED_COUNT_PARAM, desiredCount);
4868
+ if (desiredCount !== null) pushParam$7(params, DESIRED_COUNT_PARAM, desiredCount);
4528
4869
  const satisfiedBuilder = {
4529
4870
  withLaunchType: (type) => {
4530
- pushParam(params, LAUNCH_TYPE_PARAM, type);
4871
+ pushParam$7(params, LAUNCH_TYPE_PARAM, type);
4531
4872
  return satisfiedBuilder;
4532
4873
  },
4533
4874
  withAssignPublicIp: (assign) => {
4534
- pushParam(params, ASSIGN_PUBLIC_IP_PARAM, assign);
4875
+ pushParam$7(params, ASSIGN_PUBLIC_IP_PARAM, assign);
4876
+ return satisfiedBuilder;
4877
+ },
4878
+ withTaskDefinition: (taskDef) => {
4879
+ deps.push({ id: taskDef.id });
4880
+ inner.withDependencies(deps);
4535
4881
  return satisfiedBuilder;
4536
4882
  },
4537
4883
  build: () => inner.build()
@@ -4549,45 +4895,1041 @@ let AwsEcsService;
4549
4895
  })(AwsEcsService || (AwsEcsService = {}));
4550
4896
 
4551
4897
  //#endregion
4552
- //#region src/index.ts
4553
- const BoundedContext = BoundedContext$1;
4554
- const Fractal = Fractal$1;
4555
- const InfrastructureDomain = InfrastructureDomain$1;
4556
- const KebabCaseString = KebabCaseString$1;
4557
- const OwnerId = OwnerId$1;
4558
- const OwnerType = OwnerType$1;
4559
- const PascalCaseString = PascalCaseString$1;
4560
- const ServiceAccountCredentials = ServiceAccountCredentials$1;
4561
- const ServiceAccountId = ServiceAccountId$1;
4562
- const ServiceDeliveryModel = ServiceDeliveryModel$1;
4563
- const Version = Version$1;
4564
- const Environment = Environment$1;
4565
- const LiveSystem = LiveSystem$1;
4566
-
4567
- //#endregion
4568
- Object.defineProperty(exports, 'AwsEcsCluster', {
4569
- enumerable: true,
4570
- get: function () {
4571
- return AwsEcsCluster;
4572
- }
4573
- });
4574
- Object.defineProperty(exports, 'AwsEcsService', {
4575
- enumerable: true,
4576
- get: function () {
4577
- return AwsEcsService;
4578
- }
4579
- });
4580
- Object.defineProperty(exports, 'AwsEcsTaskDefinition', {
4581
- enumerable: true,
4582
- get: function () {
4583
- return AwsEcsTaskDefinition;
4584
- }
4585
- });
4586
- Object.defineProperty(exports, 'AwsSecurityGroup', {
4587
- enumerable: true,
4588
- get: function () {
4589
- return AwsSecurityGroup;
4590
- }
4898
+ //#region src/live_system/component/network_and_compute/paas/azure_aks.ts
4899
+ const AKS_CLUSTER_TYPE_NAME = "AKS";
4900
+ function buildId$6(id) {
4901
+ return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
4902
+ }
4903
+ function buildVersion$6(major, minor, patch) {
4904
+ return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
4905
+ }
4906
+ function buildAzureAksClusterType() {
4907
+ return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AKS_CLUSTER_TYPE_NAME).build()).build();
4908
+ }
4909
+ function pushParam$6(params, key, value) {
4910
+ params.push(key, value);
4911
+ }
4912
+ let AzureAksCluster;
4913
+ (function(_AzureAksCluster) {
4914
+ const getBuilder = _AzureAksCluster.getBuilder = () => {
4915
+ const params = getParametersInstance();
4916
+ const inner = getLiveSystemComponentBuilder().withType(buildAzureAksClusterType()).withParameters(params).withProvider("Azure");
4917
+ const builder = {
4918
+ withId: (id) => {
4919
+ inner.withId(buildId$6(id));
4920
+ return builder;
4921
+ },
4922
+ withVersion: (major, minor, patch) => {
4923
+ inner.withVersion(buildVersion$6(major, minor, patch));
4924
+ return builder;
4925
+ },
4926
+ withDisplayName: (displayName) => {
4927
+ inner.withDisplayName(displayName);
4928
+ return builder;
4929
+ },
4930
+ withDescription: (description) => {
4931
+ inner.withDescription(description);
4932
+ return builder;
4933
+ },
4934
+ withKubernetesVersion: (v) => {
4935
+ pushParam$6(params, "kubernetesVersion", v);
4936
+ return builder;
4937
+ },
4938
+ withNetworkPolicyProvider: (p) => {
4939
+ pushParam$6(params, "networkPolicyProvider", p);
4940
+ return builder;
4941
+ },
4942
+ withMasterIpv4CidrBlock: (cidr) => {
4943
+ pushParam$6(params, "masterIpv4CidrBlock", cidr);
4944
+ return builder;
4945
+ },
4946
+ withVnetSubnetAddressIpRange: (range) => {
4947
+ pushParam$6(params, "vnetSubnetAddressIpRange", range);
4948
+ return builder;
4949
+ },
4950
+ withManagedClusterSkuTier: (tier) => {
4951
+ pushParam$6(params, "managedClusterSkuTier", tier);
4952
+ return builder;
4953
+ },
4954
+ withWindowsAdminUsername: (username) => {
4955
+ pushParam$6(params, "windowsAdminUsername", username);
4956
+ return builder;
4957
+ },
4958
+ withExternalWorkspaceResourceId: (id) => {
4959
+ pushParam$6(params, "externalWorkspaceResourceId", id);
4960
+ return builder;
4961
+ },
4962
+ withNodePools: (nodePools) => {
4963
+ pushParam$6(params, "nodePools", nodePools);
4964
+ return builder;
4965
+ },
4966
+ withAzureActiveDirectoryProfile: (profile) => {
4967
+ pushParam$6(params, "azureActiveDirectoryProfile", profile);
4968
+ return builder;
4969
+ },
4970
+ withOutboundIps: (ips) => {
4971
+ pushParam$6(params, "outboundIps", ips);
4972
+ return builder;
4973
+ },
4974
+ withPriorityClasses: (classes) => {
4975
+ pushParam$6(params, "priorityClasses", classes);
4976
+ return builder;
4977
+ },
4978
+ withRoles: (roles) => {
4979
+ pushParam$6(params, "roles", roles);
4980
+ return builder;
4981
+ },
4982
+ withWorkloadIdentityEnabled: (enabled) => {
4983
+ pushParam$6(params, "workloadIdentityEnabled", enabled);
4984
+ return builder;
4985
+ },
4986
+ withPrivateClusterDisabled: (disabled) => {
4987
+ pushParam$6(params, "privateClusterDisabled", disabled);
4988
+ return builder;
4989
+ },
4990
+ build: () => inner.build()
4991
+ };
4992
+ return builder;
4993
+ };
4994
+ _AzureAksCluster.satisfy = (platform) => {
4995
+ const params = getParametersInstance();
4996
+ 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);
4997
+ if (platform.description) inner.withDescription(platform.description);
4998
+ const satisfiedBuilder = {
4999
+ withKubernetesVersion: (v) => {
5000
+ pushParam$6(params, "kubernetesVersion", v);
5001
+ return satisfiedBuilder;
5002
+ },
5003
+ withNetworkPolicyProvider: (p) => {
5004
+ pushParam$6(params, "networkPolicyProvider", p);
5005
+ return satisfiedBuilder;
5006
+ },
5007
+ withMasterIpv4CidrBlock: (cidr) => {
5008
+ pushParam$6(params, "masterIpv4CidrBlock", cidr);
5009
+ return satisfiedBuilder;
5010
+ },
5011
+ withVnetSubnetAddressIpRange: (range) => {
5012
+ pushParam$6(params, "vnetSubnetAddressIpRange", range);
5013
+ return satisfiedBuilder;
5014
+ },
5015
+ withManagedClusterSkuTier: (tier) => {
5016
+ pushParam$6(params, "managedClusterSkuTier", tier);
5017
+ return satisfiedBuilder;
5018
+ },
5019
+ withWindowsAdminUsername: (username) => {
5020
+ pushParam$6(params, "windowsAdminUsername", username);
5021
+ return satisfiedBuilder;
5022
+ },
5023
+ withExternalWorkspaceResourceId: (id) => {
5024
+ pushParam$6(params, "externalWorkspaceResourceId", id);
5025
+ return satisfiedBuilder;
5026
+ },
5027
+ withNodePools: (nodePools) => {
5028
+ pushParam$6(params, "nodePools", nodePools);
5029
+ return satisfiedBuilder;
5030
+ },
5031
+ withAzureActiveDirectoryProfile: (profile) => {
5032
+ pushParam$6(params, "azureActiveDirectoryProfile", profile);
5033
+ return satisfiedBuilder;
5034
+ },
5035
+ withOutboundIps: (ips) => {
5036
+ pushParam$6(params, "outboundIps", ips);
5037
+ return satisfiedBuilder;
5038
+ },
5039
+ withPriorityClasses: (classes) => {
5040
+ pushParam$6(params, "priorityClasses", classes);
5041
+ return satisfiedBuilder;
5042
+ },
5043
+ withRoles: (roles) => {
5044
+ pushParam$6(params, "roles", roles);
5045
+ return satisfiedBuilder;
5046
+ },
5047
+ withWorkloadIdentityEnabled: (enabled) => {
5048
+ pushParam$6(params, "workloadIdentityEnabled", enabled);
5049
+ return satisfiedBuilder;
5050
+ },
5051
+ withPrivateClusterDisabled: (disabled) => {
5052
+ pushParam$6(params, "privateClusterDisabled", disabled);
5053
+ return satisfiedBuilder;
5054
+ },
5055
+ build: () => inner.build()
5056
+ };
5057
+ return satisfiedBuilder;
5058
+ };
5059
+ _AzureAksCluster.create = (config) => {
5060
+ const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
5061
+ if (config.description) b.withDescription(config.description);
5062
+ if (config.kubernetesVersion) b.withKubernetesVersion(config.kubernetesVersion);
5063
+ if (config.networkPolicyProvider) b.withNetworkPolicyProvider(config.networkPolicyProvider);
5064
+ if (config.masterIpv4CidrBlock) b.withMasterIpv4CidrBlock(config.masterIpv4CidrBlock);
5065
+ if (config.vnetSubnetAddressIpRange) b.withVnetSubnetAddressIpRange(config.vnetSubnetAddressIpRange);
5066
+ if (config.managedClusterSkuTier) b.withManagedClusterSkuTier(config.managedClusterSkuTier);
5067
+ if (config.windowsAdminUsername) b.withWindowsAdminUsername(config.windowsAdminUsername);
5068
+ if (config.externalWorkspaceResourceId) b.withExternalWorkspaceResourceId(config.externalWorkspaceResourceId);
5069
+ if (config.nodePools) b.withNodePools(config.nodePools);
5070
+ if (config.azureActiveDirectoryProfile) b.withAzureActiveDirectoryProfile(config.azureActiveDirectoryProfile);
5071
+ if (config.outboundIps) b.withOutboundIps(config.outboundIps);
5072
+ if (config.priorityClasses) b.withPriorityClasses(config.priorityClasses);
5073
+ if (config.roles) b.withRoles(config.roles);
5074
+ if (config.workloadIdentityEnabled !== void 0) b.withWorkloadIdentityEnabled(config.workloadIdentityEnabled);
5075
+ if (config.privateClusterDisabled !== void 0) b.withPrivateClusterDisabled(config.privateClusterDisabled);
5076
+ return b.build();
5077
+ };
5078
+ })(AzureAksCluster || (AzureAksCluster = {}));
5079
+
5080
+ //#endregion
5081
+ //#region src/live_system/component/network_and_compute/paas/azure_container_apps_environment.ts
5082
+ const AZURE_CONTAINER_APPS_ENV_TYPE_NAME = "AzureContainerAppsEnvironment";
5083
+ function buildId$5(id) {
5084
+ return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
5085
+ }
5086
+ function buildVersion$5(major, minor, patch) {
5087
+ return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
5088
+ }
5089
+ function buildAzureContainerAppsEnvType() {
5090
+ return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_CONTAINER_APPS_ENV_TYPE_NAME).build()).build();
5091
+ }
5092
+ function pushParam$5(params, key, value) {
5093
+ params.push(key, value);
5094
+ }
5095
+ let AzureContainerAppsEnvironment;
5096
+ (function(_AzureContainerAppsEnvironment) {
5097
+ const getBuilder = _AzureContainerAppsEnvironment.getBuilder = () => {
5098
+ const params = getParametersInstance();
5099
+ const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerAppsEnvType()).withParameters(params).withProvider("Azure");
5100
+ const builder = {
5101
+ withId: (id) => {
5102
+ inner.withId(buildId$5(id));
5103
+ return builder;
5104
+ },
5105
+ withVersion: (major, minor, patch) => {
5106
+ inner.withVersion(buildVersion$5(major, minor, patch));
5107
+ return builder;
5108
+ },
5109
+ withDisplayName: (displayName) => {
5110
+ inner.withDisplayName(displayName);
5111
+ return builder;
5112
+ },
5113
+ withDescription: (description) => {
5114
+ inner.withDescription(description);
5115
+ return builder;
5116
+ },
5117
+ withLocation: (location) => {
5118
+ pushParam$5(params, "location", location);
5119
+ return builder;
5120
+ },
5121
+ withResourceGroup: (resourceGroup) => {
5122
+ pushParam$5(params, "resourceGroup", resourceGroup);
5123
+ return builder;
5124
+ },
5125
+ withLogAnalyticsWorkspaceId: (id) => {
5126
+ pushParam$5(params, "logAnalyticsWorkspaceId", id);
5127
+ return builder;
5128
+ },
5129
+ withLogAnalyticsSharedKey: (key) => {
5130
+ pushParam$5(params, "logAnalyticsSharedKey", key);
5131
+ return builder;
5132
+ },
5133
+ build: () => inner.build()
5134
+ };
5135
+ return builder;
5136
+ };
5137
+ _AzureContainerAppsEnvironment.satisfy = (platform) => {
5138
+ const params = getParametersInstance();
5139
+ 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);
5140
+ if (platform.description) inner.withDescription(platform.description);
5141
+ const satisfiedBuilder = {
5142
+ withLocation: (location) => {
5143
+ pushParam$5(params, "location", location);
5144
+ return satisfiedBuilder;
5145
+ },
5146
+ withResourceGroup: (resourceGroup) => {
5147
+ pushParam$5(params, "resourceGroup", resourceGroup);
5148
+ return satisfiedBuilder;
5149
+ },
5150
+ withLogAnalyticsWorkspaceId: (id) => {
5151
+ pushParam$5(params, "logAnalyticsWorkspaceId", id);
5152
+ return satisfiedBuilder;
5153
+ },
5154
+ withLogAnalyticsSharedKey: (key) => {
5155
+ pushParam$5(params, "logAnalyticsSharedKey", key);
5156
+ return satisfiedBuilder;
5157
+ },
5158
+ build: () => inner.build()
5159
+ };
5160
+ return satisfiedBuilder;
5161
+ };
5162
+ _AzureContainerAppsEnvironment.create = (config) => {
5163
+ 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);
5164
+ if (config.description) b.withDescription(config.description);
5165
+ if (config.logAnalyticsWorkspaceId) b.withLogAnalyticsWorkspaceId(config.logAnalyticsWorkspaceId);
5166
+ if (config.logAnalyticsSharedKey) b.withLogAnalyticsSharedKey(config.logAnalyticsSharedKey);
5167
+ return b.build();
5168
+ };
5169
+ })(AzureContainerAppsEnvironment || (AzureContainerAppsEnvironment = {}));
5170
+
5171
+ //#endregion
5172
+ //#region src/live_system/component/network_and_compute/paas/azure_container_instance.ts
5173
+ const AZURE_CONTAINER_INSTANCE_TYPE_NAME = "AzureContainerInstance";
5174
+ function buildId$4(id) {
5175
+ return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
5176
+ }
5177
+ function buildVersion$4(major, minor, patch) {
5178
+ return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
5179
+ }
5180
+ function buildAzureContainerInstanceType() {
5181
+ return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_CONTAINER_INSTANCE_TYPE_NAME).build()).build();
5182
+ }
5183
+ function pushParam$4(params, key, value) {
5184
+ params.push(key, value);
5185
+ }
5186
+ let AzureContainerInstance;
5187
+ (function(_AzureContainerInstance) {
5188
+ const getBuilder = _AzureContainerInstance.getBuilder = () => {
5189
+ const params = getParametersInstance();
5190
+ const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerInstanceType()).withParameters(params).withProvider("Azure");
5191
+ const builder = {
5192
+ withId: (id) => {
5193
+ inner.withId(buildId$4(id));
5194
+ return builder;
5195
+ },
5196
+ withVersion: (major, minor, patch) => {
5197
+ inner.withVersion(buildVersion$4(major, minor, patch));
5198
+ return builder;
5199
+ },
5200
+ withDisplayName: (displayName) => {
5201
+ inner.withDisplayName(displayName);
5202
+ return builder;
5203
+ },
5204
+ withDescription: (description) => {
5205
+ inner.withDescription(description);
5206
+ return builder;
5207
+ },
5208
+ withImage: (image) => {
5209
+ pushParam$4(params, "image", image);
5210
+ return builder;
5211
+ },
5212
+ withPort: (port) => {
5213
+ pushParam$4(params, "port", port);
5214
+ return builder;
5215
+ },
5216
+ withLocation: (location) => {
5217
+ pushParam$4(params, "location", location);
5218
+ return builder;
5219
+ },
5220
+ withResourceGroup: (resourceGroup) => {
5221
+ pushParam$4(params, "resourceGroup", resourceGroup);
5222
+ return builder;
5223
+ },
5224
+ withCpu: (cpu) => {
5225
+ pushParam$4(params, "cpu", cpu);
5226
+ return builder;
5227
+ },
5228
+ withMemoryInGb: (memoryInGb) => {
5229
+ pushParam$4(params, "memoryInGB", memoryInGb);
5230
+ return builder;
5231
+ },
5232
+ withRestartPolicy: (policy) => {
5233
+ pushParam$4(params, "restartPolicy", policy);
5234
+ return builder;
5235
+ },
5236
+ withPublicIp: (publicIp) => {
5237
+ pushParam$4(params, "publicIp", publicIp);
5238
+ return builder;
5239
+ },
5240
+ withDnsNameLabel: (label) => {
5241
+ pushParam$4(params, "dnsNameLabel", label);
5242
+ return builder;
5243
+ },
5244
+ build: () => inner.build()
5245
+ };
5246
+ return builder;
5247
+ };
5248
+ _AzureContainerInstance.satisfy = (workload) => {
5249
+ const params = getParametersInstance();
5250
+ 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);
5251
+ if (workload.description) inner.withDescription(workload.description);
5252
+ const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
5253
+ if (image !== null) pushParam$4(params, "image", image);
5254
+ const port = workload.parameters.getOptionalFieldByName(CONTAINER_PORT_PARAM);
5255
+ if (port !== null) pushParam$4(params, "port", port);
5256
+ const satisfiedBuilder = {
5257
+ withLocation: (location) => {
5258
+ pushParam$4(params, "location", location);
5259
+ return satisfiedBuilder;
5260
+ },
5261
+ withResourceGroup: (resourceGroup) => {
5262
+ pushParam$4(params, "resourceGroup", resourceGroup);
5263
+ return satisfiedBuilder;
5264
+ },
5265
+ withCpu: (cpu) => {
5266
+ pushParam$4(params, "cpu", cpu);
5267
+ return satisfiedBuilder;
5268
+ },
5269
+ withMemoryInGb: (memoryInGb) => {
5270
+ pushParam$4(params, "memoryInGB", memoryInGb);
5271
+ return satisfiedBuilder;
5272
+ },
5273
+ withRestartPolicy: (policy) => {
5274
+ pushParam$4(params, "restartPolicy", policy);
5275
+ return satisfiedBuilder;
5276
+ },
5277
+ withPublicIp: (publicIp) => {
5278
+ pushParam$4(params, "publicIp", publicIp);
5279
+ return satisfiedBuilder;
5280
+ },
5281
+ withDnsNameLabel: (label) => {
5282
+ pushParam$4(params, "dnsNameLabel", label);
5283
+ return satisfiedBuilder;
5284
+ },
5285
+ build: () => inner.build()
5286
+ };
5287
+ return satisfiedBuilder;
5288
+ };
5289
+ _AzureContainerInstance.create = (config) => {
5290
+ 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);
5291
+ if (config.description) b.withDescription(config.description);
5292
+ if (config.port !== void 0) b.withPort(config.port);
5293
+ if (config.cpu !== void 0) b.withCpu(config.cpu);
5294
+ if (config.memoryInGb !== void 0) b.withMemoryInGb(config.memoryInGb);
5295
+ if (config.restartPolicy) b.withRestartPolicy(config.restartPolicy);
5296
+ if (config.publicIp !== void 0) b.withPublicIp(config.publicIp);
5297
+ if (config.dnsNameLabel) b.withDnsNameLabel(config.dnsNameLabel);
5298
+ return b.build();
5299
+ };
5300
+ })(AzureContainerInstance || (AzureContainerInstance = {}));
5301
+
5302
+ //#endregion
5303
+ //#region src/live_system/component/network_and_compute/paas/azure_container_app.ts
5304
+ const AZURE_CONTAINER_APP_TYPE_NAME = "AzureContainerApp";
5305
+ function buildId$3(id) {
5306
+ return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
5307
+ }
5308
+ function buildVersion$3(major, minor, patch) {
5309
+ return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
5310
+ }
5311
+ function buildAzureContainerAppType() {
5312
+ return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_CONTAINER_APP_TYPE_NAME).build()).build();
5313
+ }
5314
+ function pushParam$3(params, key, value) {
5315
+ params.push(key, value);
5316
+ }
5317
+ let AzureContainerApp;
5318
+ (function(_AzureContainerApp) {
5319
+ const getBuilder = _AzureContainerApp.getBuilder = () => {
5320
+ const params = getParametersInstance();
5321
+ const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerAppType()).withParameters(params).withProvider("Azure");
5322
+ const builder = {
5323
+ withId: (id) => {
5324
+ inner.withId(buildId$3(id));
5325
+ return builder;
5326
+ },
5327
+ withVersion: (major, minor, patch) => {
5328
+ inner.withVersion(buildVersion$3(major, minor, patch));
5329
+ return builder;
5330
+ },
5331
+ withDisplayName: (displayName) => {
5332
+ inner.withDisplayName(displayName);
5333
+ return builder;
5334
+ },
5335
+ withDescription: (description) => {
5336
+ inner.withDescription(description);
5337
+ return builder;
5338
+ },
5339
+ withImage: (image) => {
5340
+ pushParam$3(params, "image", image);
5341
+ return builder;
5342
+ },
5343
+ withPort: (port) => {
5344
+ pushParam$3(params, "port", port);
5345
+ return builder;
5346
+ },
5347
+ withCpu: (cpu) => {
5348
+ pushParam$3(params, "cpu", cpu);
5349
+ return builder;
5350
+ },
5351
+ withMemory: (memory) => {
5352
+ pushParam$3(params, "memory", memory);
5353
+ return builder;
5354
+ },
5355
+ withLocation: (location) => {
5356
+ pushParam$3(params, "location", location);
5357
+ return builder;
5358
+ },
5359
+ withResourceGroup: (resourceGroup) => {
5360
+ pushParam$3(params, "resourceGroup", resourceGroup);
5361
+ return builder;
5362
+ },
5363
+ withExternalIngress: (external) => {
5364
+ pushParam$3(params, "externalIngress", external);
5365
+ return builder;
5366
+ },
5367
+ withMinReplicas: (min) => {
5368
+ pushParam$3(params, "minReplicas", min);
5369
+ return builder;
5370
+ },
5371
+ withMaxReplicas: (max) => {
5372
+ pushParam$3(params, "maxReplicas", max);
5373
+ return builder;
5374
+ },
5375
+ build: () => inner.build()
5376
+ };
5377
+ return builder;
5378
+ };
5379
+ _AzureContainerApp.satisfy = (workload) => {
5380
+ const params = getParametersInstance();
5381
+ 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);
5382
+ if (workload.description) inner.withDescription(workload.description);
5383
+ const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
5384
+ if (image !== null) pushParam$3(params, "image", image);
5385
+ const port = workload.parameters.getOptionalFieldByName(CONTAINER_PORT_PARAM);
5386
+ if (port !== null) pushParam$3(params, "port", port);
5387
+ const cpu = workload.parameters.getOptionalFieldByName(CPU_PARAM);
5388
+ if (cpu !== null) pushParam$3(params, "cpu", cpu);
5389
+ const memory = workload.parameters.getOptionalFieldByName(MEMORY_PARAM);
5390
+ if (memory !== null) pushParam$3(params, "memory", memory);
5391
+ const satisfiedBuilder = {
5392
+ withLocation: (location) => {
5393
+ pushParam$3(params, "location", location);
5394
+ return satisfiedBuilder;
5395
+ },
5396
+ withResourceGroup: (resourceGroup) => {
5397
+ pushParam$3(params, "resourceGroup", resourceGroup);
5398
+ return satisfiedBuilder;
5399
+ },
5400
+ withExternalIngress: (external) => {
5401
+ pushParam$3(params, "externalIngress", external);
5402
+ return satisfiedBuilder;
5403
+ },
5404
+ withMinReplicas: (min) => {
5405
+ pushParam$3(params, "minReplicas", min);
5406
+ return satisfiedBuilder;
5407
+ },
5408
+ withMaxReplicas: (max) => {
5409
+ pushParam$3(params, "maxReplicas", max);
5410
+ return satisfiedBuilder;
5411
+ },
5412
+ build: () => inner.build()
5413
+ };
5414
+ return satisfiedBuilder;
5415
+ };
5416
+ _AzureContainerApp.create = (config) => {
5417
+ 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);
5418
+ if (config.description) b.withDescription(config.description);
5419
+ if (config.port !== void 0) b.withPort(config.port);
5420
+ if (config.cpu !== void 0) b.withCpu(config.cpu);
5421
+ if (config.memory) b.withMemory(config.memory);
5422
+ if (config.externalIngress !== void 0) b.withExternalIngress(config.externalIngress);
5423
+ if (config.minReplicas !== void 0) b.withMinReplicas(config.minReplicas);
5424
+ if (config.maxReplicas !== void 0) b.withMaxReplicas(config.maxReplicas);
5425
+ return b.build();
5426
+ };
5427
+ })(AzureContainerApp || (AzureContainerApp = {}));
5428
+
5429
+ //#endregion
5430
+ //#region src/live_system/component/network_and_compute/paas/gcp_gke.ts
5431
+ const GKE_CLUSTER_TYPE_NAME = "GKE";
5432
+ function buildId$2(id) {
5433
+ return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
5434
+ }
5435
+ function buildVersion$2(major, minor, patch) {
5436
+ return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
5437
+ }
5438
+ function buildGcpGkeClusterType() {
5439
+ return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(GKE_CLUSTER_TYPE_NAME).build()).build();
5440
+ }
5441
+ function pushParam$2(params, key, value) {
5442
+ params.push(key, value);
5443
+ }
5444
+ let GcpGkeCluster;
5445
+ (function(_GcpGkeCluster) {
5446
+ const getBuilder = _GcpGkeCluster.getBuilder = () => {
5447
+ const params = getParametersInstance();
5448
+ const inner = getLiveSystemComponentBuilder().withType(buildGcpGkeClusterType()).withParameters(params).withProvider("GCP");
5449
+ const builder = {
5450
+ withId: (id) => {
5451
+ inner.withId(buildId$2(id));
5452
+ return builder;
5453
+ },
5454
+ withVersion: (major, minor, patch) => {
5455
+ inner.withVersion(buildVersion$2(major, minor, patch));
5456
+ return builder;
5457
+ },
5458
+ withDisplayName: (displayName) => {
5459
+ inner.withDisplayName(displayName);
5460
+ return builder;
5461
+ },
5462
+ withDescription: (description) => {
5463
+ inner.withDescription(description);
5464
+ return builder;
5465
+ },
5466
+ withKubernetesVersion: (v) => {
5467
+ pushParam$2(params, "kubernetesVersion", v);
5468
+ return builder;
5469
+ },
5470
+ withNetworkPolicyProvider: (p) => {
5471
+ pushParam$2(params, "networkPolicyProvider", p);
5472
+ return builder;
5473
+ },
5474
+ withMasterIpv4CidrBlock: (cidr) => {
5475
+ pushParam$2(params, "masterIpv4CidrBlock", cidr);
5476
+ return builder;
5477
+ },
5478
+ withNetworkName: (name) => {
5479
+ pushParam$2(params, "networkName", name);
5480
+ return builder;
5481
+ },
5482
+ withSubnetworkName: (name) => {
5483
+ pushParam$2(params, "subnetworkName", name);
5484
+ return builder;
5485
+ },
5486
+ withSubnetworkIpRange: (range) => {
5487
+ pushParam$2(params, "subnetworkIpRange", range);
5488
+ return builder;
5489
+ },
5490
+ withServiceIpRange: (range) => {
5491
+ pushParam$2(params, "serviceIpRange", range);
5492
+ return builder;
5493
+ },
5494
+ withPodIpRange: (range) => {
5495
+ pushParam$2(params, "podIpRange", range);
5496
+ return builder;
5497
+ },
5498
+ withPodsRangeName: (name) => {
5499
+ pushParam$2(params, "podsRangeName", name);
5500
+ return builder;
5501
+ },
5502
+ withServicesRangeName: (name) => {
5503
+ pushParam$2(params, "servicesRangeName", name);
5504
+ return builder;
5505
+ },
5506
+ withNodePools: (nodePools) => {
5507
+ pushParam$2(params, "nodePools", nodePools);
5508
+ return builder;
5509
+ },
5510
+ withPriorityClasses: (classes) => {
5511
+ pushParam$2(params, "priorityClasses", classes);
5512
+ return builder;
5513
+ },
5514
+ withRoles: (roles) => {
5515
+ pushParam$2(params, "roles", roles);
5516
+ return builder;
5517
+ },
5518
+ withWorkloadIdentityEnabled: (enabled) => {
5519
+ pushParam$2(params, "workloadIdentityEnabled", enabled);
5520
+ return builder;
5521
+ },
5522
+ withPrivateClusterDisabled: (disabled) => {
5523
+ pushParam$2(params, "privateClusterDisabled", disabled);
5524
+ return builder;
5525
+ },
5526
+ build: () => inner.build()
5527
+ };
5528
+ return builder;
5529
+ };
5530
+ _GcpGkeCluster.satisfy = (platform) => {
5531
+ const params = getParametersInstance();
5532
+ 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);
5533
+ if (platform.description) inner.withDescription(platform.description);
5534
+ const satisfiedBuilder = {
5535
+ withKubernetesVersion: (v) => {
5536
+ pushParam$2(params, "kubernetesVersion", v);
5537
+ return satisfiedBuilder;
5538
+ },
5539
+ withNetworkPolicyProvider: (p) => {
5540
+ pushParam$2(params, "networkPolicyProvider", p);
5541
+ return satisfiedBuilder;
5542
+ },
5543
+ withMasterIpv4CidrBlock: (cidr) => {
5544
+ pushParam$2(params, "masterIpv4CidrBlock", cidr);
5545
+ return satisfiedBuilder;
5546
+ },
5547
+ withNetworkName: (name) => {
5548
+ pushParam$2(params, "networkName", name);
5549
+ return satisfiedBuilder;
5550
+ },
5551
+ withSubnetworkName: (name) => {
5552
+ pushParam$2(params, "subnetworkName", name);
5553
+ return satisfiedBuilder;
5554
+ },
5555
+ withSubnetworkIpRange: (range) => {
5556
+ pushParam$2(params, "subnetworkIpRange", range);
5557
+ return satisfiedBuilder;
5558
+ },
5559
+ withServiceIpRange: (range) => {
5560
+ pushParam$2(params, "serviceIpRange", range);
5561
+ return satisfiedBuilder;
5562
+ },
5563
+ withPodIpRange: (range) => {
5564
+ pushParam$2(params, "podIpRange", range);
5565
+ return satisfiedBuilder;
5566
+ },
5567
+ withPodsRangeName: (name) => {
5568
+ pushParam$2(params, "podsRangeName", name);
5569
+ return satisfiedBuilder;
5570
+ },
5571
+ withServicesRangeName: (name) => {
5572
+ pushParam$2(params, "servicesRangeName", name);
5573
+ return satisfiedBuilder;
5574
+ },
5575
+ withNodePools: (nodePools) => {
5576
+ pushParam$2(params, "nodePools", nodePools);
5577
+ return satisfiedBuilder;
5578
+ },
5579
+ withPriorityClasses: (classes) => {
5580
+ pushParam$2(params, "priorityClasses", classes);
5581
+ return satisfiedBuilder;
5582
+ },
5583
+ withRoles: (roles) => {
5584
+ pushParam$2(params, "roles", roles);
5585
+ return satisfiedBuilder;
5586
+ },
5587
+ withWorkloadIdentityEnabled: (enabled) => {
5588
+ pushParam$2(params, "workloadIdentityEnabled", enabled);
5589
+ return satisfiedBuilder;
5590
+ },
5591
+ withPrivateClusterDisabled: (disabled) => {
5592
+ pushParam$2(params, "privateClusterDisabled", disabled);
5593
+ return satisfiedBuilder;
5594
+ },
5595
+ build: () => inner.build()
5596
+ };
5597
+ return satisfiedBuilder;
5598
+ };
5599
+ _GcpGkeCluster.create = (config) => {
5600
+ const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
5601
+ if (config.description) b.withDescription(config.description);
5602
+ if (config.kubernetesVersion) b.withKubernetesVersion(config.kubernetesVersion);
5603
+ if (config.networkPolicyProvider) b.withNetworkPolicyProvider(config.networkPolicyProvider);
5604
+ if (config.masterIpv4CidrBlock) b.withMasterIpv4CidrBlock(config.masterIpv4CidrBlock);
5605
+ if (config.networkName) b.withNetworkName(config.networkName);
5606
+ if (config.subnetworkName) b.withSubnetworkName(config.subnetworkName);
5607
+ if (config.subnetworkIpRange) b.withSubnetworkIpRange(config.subnetworkIpRange);
5608
+ if (config.serviceIpRange) b.withServiceIpRange(config.serviceIpRange);
5609
+ if (config.podIpRange) b.withPodIpRange(config.podIpRange);
5610
+ if (config.podsRangeName) b.withPodsRangeName(config.podsRangeName);
5611
+ if (config.servicesRangeName) b.withServicesRangeName(config.servicesRangeName);
5612
+ if (config.nodePools) b.withNodePools(config.nodePools);
5613
+ if (config.priorityClasses) b.withPriorityClasses(config.priorityClasses);
5614
+ if (config.roles) b.withRoles(config.roles);
5615
+ if (config.workloadIdentityEnabled !== void 0) b.withWorkloadIdentityEnabled(config.workloadIdentityEnabled);
5616
+ if (config.privateClusterDisabled !== void 0) b.withPrivateClusterDisabled(config.privateClusterDisabled);
5617
+ return b.build();
5618
+ };
5619
+ })(GcpGkeCluster || (GcpGkeCluster = {}));
5620
+
5621
+ //#endregion
5622
+ //#region src/live_system/component/network_and_compute/paas/gcp_cloud_run_service.ts
5623
+ const CLOUD_RUN_SERVICE_TYPE_NAME = "CloudRunService";
5624
+ function buildId$1(id) {
5625
+ return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
5626
+ }
5627
+ function buildVersion$1(major, minor, patch) {
5628
+ return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
5629
+ }
5630
+ function buildGcpCloudRunServiceType() {
5631
+ return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(CLOUD_RUN_SERVICE_TYPE_NAME).build()).build();
5632
+ }
5633
+ function pushParam$1(params, key, value) {
5634
+ params.push(key, value);
5635
+ }
5636
+ let GcpCloudRunService;
5637
+ (function(_GcpCloudRunService) {
5638
+ const getBuilder = _GcpCloudRunService.getBuilder = () => {
5639
+ const params = getParametersInstance();
5640
+ const inner = getLiveSystemComponentBuilder().withType(buildGcpCloudRunServiceType()).withParameters(params).withProvider("GCP");
5641
+ const builder = {
5642
+ withId: (id) => {
5643
+ inner.withId(buildId$1(id));
5644
+ return builder;
5645
+ },
5646
+ withVersion: (major, minor, patch) => {
5647
+ inner.withVersion(buildVersion$1(major, minor, patch));
5648
+ return builder;
5649
+ },
5650
+ withDisplayName: (displayName) => {
5651
+ inner.withDisplayName(displayName);
5652
+ return builder;
5653
+ },
5654
+ withDescription: (description) => {
5655
+ inner.withDescription(description);
5656
+ return builder;
5657
+ },
5658
+ withImage: (image) => {
5659
+ pushParam$1(params, "image", image);
5660
+ return builder;
5661
+ },
5662
+ withPort: (port) => {
5663
+ pushParam$1(params, "port", port);
5664
+ return builder;
5665
+ },
5666
+ withCpu: (cpu) => {
5667
+ pushParam$1(params, "cpu", cpu);
5668
+ return builder;
5669
+ },
5670
+ withMemory: (memory) => {
5671
+ pushParam$1(params, "memory", memory);
5672
+ return builder;
5673
+ },
5674
+ withRegion: (region) => {
5675
+ pushParam$1(params, "region", region);
5676
+ return builder;
5677
+ },
5678
+ withMinInstances: (min) => {
5679
+ pushParam$1(params, "minInstances", min);
5680
+ return builder;
5681
+ },
5682
+ withMaxInstances: (max) => {
5683
+ pushParam$1(params, "maxInstances", max);
5684
+ return builder;
5685
+ },
5686
+ withConcurrency: (concurrency) => {
5687
+ pushParam$1(params, "concurrency", concurrency);
5688
+ return builder;
5689
+ },
5690
+ withServiceAccountEmail: (email) => {
5691
+ pushParam$1(params, "serviceAccountEmail", email);
5692
+ return builder;
5693
+ },
5694
+ withIngress: (ingress) => {
5695
+ pushParam$1(params, "ingress", ingress);
5696
+ return builder;
5697
+ },
5698
+ build: () => inner.build()
5699
+ };
5700
+ return builder;
5701
+ };
5702
+ _GcpCloudRunService.satisfy = (workload) => {
5703
+ const params = getParametersInstance();
5704
+ 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);
5705
+ if (workload.description) inner.withDescription(workload.description);
5706
+ const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
5707
+ if (image !== null) pushParam$1(params, "image", image);
5708
+ const port = workload.parameters.getOptionalFieldByName(CONTAINER_PORT_PARAM);
5709
+ if (port !== null) pushParam$1(params, "port", port);
5710
+ const cpu = workload.parameters.getOptionalFieldByName(CPU_PARAM);
5711
+ if (cpu !== null) pushParam$1(params, "cpu", cpu);
5712
+ const memory = workload.parameters.getOptionalFieldByName(MEMORY_PARAM);
5713
+ if (memory !== null) pushParam$1(params, "memory", memory);
5714
+ const satisfiedBuilder = {
5715
+ withRegion: (region) => {
5716
+ pushParam$1(params, "region", region);
5717
+ return satisfiedBuilder;
5718
+ },
5719
+ withMinInstances: (min) => {
5720
+ pushParam$1(params, "minInstances", min);
5721
+ return satisfiedBuilder;
5722
+ },
5723
+ withMaxInstances: (max) => {
5724
+ pushParam$1(params, "maxInstances", max);
5725
+ return satisfiedBuilder;
5726
+ },
5727
+ withConcurrency: (concurrency) => {
5728
+ pushParam$1(params, "concurrency", concurrency);
5729
+ return satisfiedBuilder;
5730
+ },
5731
+ withServiceAccountEmail: (email) => {
5732
+ pushParam$1(params, "serviceAccountEmail", email);
5733
+ return satisfiedBuilder;
5734
+ },
5735
+ withIngress: (ingress) => {
5736
+ pushParam$1(params, "ingress", ingress);
5737
+ return satisfiedBuilder;
5738
+ },
5739
+ build: () => inner.build()
5740
+ };
5741
+ return satisfiedBuilder;
5742
+ };
5743
+ _GcpCloudRunService.create = (config) => {
5744
+ 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);
5745
+ if (config.description) b.withDescription(config.description);
5746
+ if (config.port !== void 0) b.withPort(config.port);
5747
+ if (config.cpu) b.withCpu(config.cpu);
5748
+ if (config.memory) b.withMemory(config.memory);
5749
+ if (config.minInstances !== void 0) b.withMinInstances(config.minInstances);
5750
+ if (config.maxInstances !== void 0) b.withMaxInstances(config.maxInstances);
5751
+ if (config.concurrency !== void 0) b.withConcurrency(config.concurrency);
5752
+ if (config.serviceAccountEmail) b.withServiceAccountEmail(config.serviceAccountEmail);
5753
+ if (config.ingress) b.withIngress(config.ingress);
5754
+ return b.build();
5755
+ };
5756
+ })(GcpCloudRunService || (GcpCloudRunService = {}));
5757
+
5758
+ //#endregion
5759
+ //#region src/live_system/component/network_and_compute/paas/oci_container_instance.ts
5760
+ const OCI_CONTAINER_INSTANCE_TYPE_NAME = "OciContainerInstance";
5761
+ function buildId(id) {
5762
+ return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
5763
+ }
5764
+ function buildVersion(major, minor, patch) {
5765
+ return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
5766
+ }
5767
+ function buildOciContainerInstanceType() {
5768
+ return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_CONTAINER_INSTANCE_TYPE_NAME).build()).build();
5769
+ }
5770
+ function pushParam(params, key, value) {
5771
+ params.push(key, value);
5772
+ }
5773
+ let OciContainerInstance;
5774
+ (function(_OciContainerInstance) {
5775
+ const getBuilder = _OciContainerInstance.getBuilder = () => {
5776
+ const params = getParametersInstance();
5777
+ const inner = getLiveSystemComponentBuilder().withType(buildOciContainerInstanceType()).withParameters(params).withProvider("OCI");
5778
+ const builder = {
5779
+ withId: (id) => {
5780
+ inner.withId(buildId(id));
5781
+ return builder;
5782
+ },
5783
+ withVersion: (major, minor, patch) => {
5784
+ inner.withVersion(buildVersion(major, minor, patch));
5785
+ return builder;
5786
+ },
5787
+ withDisplayName: (displayName) => {
5788
+ inner.withDisplayName(displayName);
5789
+ return builder;
5790
+ },
5791
+ withDescription: (description) => {
5792
+ inner.withDescription(description);
5793
+ return builder;
5794
+ },
5795
+ withImageUrl: (imageUrl) => {
5796
+ pushParam(params, "imageUrl", imageUrl);
5797
+ return builder;
5798
+ },
5799
+ withAvailabilityDomain: (domain) => {
5800
+ pushParam(params, "availabilityDomain", domain);
5801
+ return builder;
5802
+ },
5803
+ withCompartmentId: (compartmentId) => {
5804
+ pushParam(params, "compartmentId", compartmentId);
5805
+ return builder;
5806
+ },
5807
+ withOcpus: (ocpus) => {
5808
+ pushParam(params, "ocpus", ocpus);
5809
+ return builder;
5810
+ },
5811
+ withMemoryInGbs: (memoryInGbs) => {
5812
+ pushParam(params, "memoryInGBs", memoryInGbs);
5813
+ return builder;
5814
+ },
5815
+ withShape: (shape) => {
5816
+ pushParam(params, "shape", shape);
5817
+ return builder;
5818
+ },
5819
+ withPort: (port) => {
5820
+ pushParam(params, "port", port);
5821
+ return builder;
5822
+ },
5823
+ withAssignPublicIp: (assignPublicIp) => {
5824
+ pushParam(params, "assignPublicIp", assignPublicIp);
5825
+ return builder;
5826
+ },
5827
+ withContainerRestartPolicy: (policy) => {
5828
+ pushParam(params, "containerRestartPolicy", policy);
5829
+ return builder;
5830
+ },
5831
+ build: () => inner.build()
5832
+ };
5833
+ return builder;
5834
+ };
5835
+ _OciContainerInstance.satisfy = (workload) => {
5836
+ const params = getParametersInstance();
5837
+ 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);
5838
+ if (workload.description) inner.withDescription(workload.description);
5839
+ const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
5840
+ if (image !== null) pushParam(params, "imageUrl", image);
5841
+ const satisfiedBuilder = {
5842
+ withAvailabilityDomain: (domain) => {
5843
+ pushParam(params, "availabilityDomain", domain);
5844
+ return satisfiedBuilder;
5845
+ },
5846
+ withCompartmentId: (compartmentId) => {
5847
+ pushParam(params, "compartmentId", compartmentId);
5848
+ return satisfiedBuilder;
5849
+ },
5850
+ withOcpus: (ocpus) => {
5851
+ pushParam(params, "ocpus", ocpus);
5852
+ return satisfiedBuilder;
5853
+ },
5854
+ withMemoryInGbs: (memoryInGbs) => {
5855
+ pushParam(params, "memoryInGBs", memoryInGbs);
5856
+ return satisfiedBuilder;
5857
+ },
5858
+ withShape: (shape) => {
5859
+ pushParam(params, "shape", shape);
5860
+ return satisfiedBuilder;
5861
+ },
5862
+ withAssignPublicIp: (assignPublicIp) => {
5863
+ pushParam(params, "assignPublicIp", assignPublicIp);
5864
+ return satisfiedBuilder;
5865
+ },
5866
+ withContainerRestartPolicy: (policy) => {
5867
+ pushParam(params, "containerRestartPolicy", policy);
5868
+ return satisfiedBuilder;
5869
+ },
5870
+ build: () => inner.build()
5871
+ };
5872
+ return satisfiedBuilder;
5873
+ };
5874
+ _OciContainerInstance.create = (config) => {
5875
+ 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);
5876
+ if (config.description) b.withDescription(config.description);
5877
+ if (config.ocpus !== void 0) b.withOcpus(config.ocpus);
5878
+ if (config.memoryInGbs !== void 0) b.withMemoryInGbs(config.memoryInGbs);
5879
+ if (config.shape) b.withShape(config.shape);
5880
+ if (config.port !== void 0) b.withPort(config.port);
5881
+ if (config.assignPublicIp !== void 0) b.withAssignPublicIp(config.assignPublicIp);
5882
+ if (config.containerRestartPolicy) b.withContainerRestartPolicy(config.containerRestartPolicy);
5883
+ return b.build();
5884
+ };
5885
+ })(OciContainerInstance || (OciContainerInstance = {}));
5886
+
5887
+ //#endregion
5888
+ //#region src/index.ts
5889
+ const BoundedContext = BoundedContext$1;
5890
+ const Fractal = Fractal$1;
5891
+ const InfrastructureDomain = InfrastructureDomain$1;
5892
+ const KebabCaseString = KebabCaseString$1;
5893
+ const OwnerId = OwnerId$1;
5894
+ const OwnerType = OwnerType$1;
5895
+ const PascalCaseString = PascalCaseString$1;
5896
+ const ServiceAccountCredentials = ServiceAccountCredentials$1;
5897
+ const ServiceAccountId = ServiceAccountId$1;
5898
+ const ServiceDeliveryModel = ServiceDeliveryModel$1;
5899
+ const Version = Version$1;
5900
+ const Environment = Environment$1;
5901
+ const LiveSystem = LiveSystem$1;
5902
+
5903
+ //#endregion
5904
+ Object.defineProperty(exports, 'AwsEcsCluster', {
5905
+ enumerable: true,
5906
+ get: function () {
5907
+ return AwsEcsCluster;
5908
+ }
5909
+ });
5910
+ Object.defineProperty(exports, 'AwsEcsService', {
5911
+ enumerable: true,
5912
+ get: function () {
5913
+ return AwsEcsService;
5914
+ }
5915
+ });
5916
+ Object.defineProperty(exports, 'AwsEcsTaskDefinition', {
5917
+ enumerable: true,
5918
+ get: function () {
5919
+ return AwsEcsTaskDefinition;
5920
+ }
5921
+ });
5922
+ Object.defineProperty(exports, 'AwsEksCluster', {
5923
+ enumerable: true,
5924
+ get: function () {
5925
+ return AwsEksCluster;
5926
+ }
5927
+ });
5928
+ Object.defineProperty(exports, 'AwsSecurityGroup', {
5929
+ enumerable: true,
5930
+ get: function () {
5931
+ return AwsSecurityGroup;
5932
+ }
4591
5933
  });
4592
5934
  Object.defineProperty(exports, 'AwsSubnet', {
4593
5935
  enumerable: true,
@@ -4601,6 +5943,30 @@ Object.defineProperty(exports, 'AwsVpc', {
4601
5943
  return AwsVpc;
4602
5944
  }
4603
5945
  });
5946
+ Object.defineProperty(exports, 'AzureAksCluster', {
5947
+ enumerable: true,
5948
+ get: function () {
5949
+ return AzureAksCluster;
5950
+ }
5951
+ });
5952
+ Object.defineProperty(exports, 'AzureContainerApp', {
5953
+ enumerable: true,
5954
+ get: function () {
5955
+ return AzureContainerApp;
5956
+ }
5957
+ });
5958
+ Object.defineProperty(exports, 'AzureContainerAppsEnvironment', {
5959
+ enumerable: true,
5960
+ get: function () {
5961
+ return AzureContainerAppsEnvironment;
5962
+ }
5963
+ });
5964
+ Object.defineProperty(exports, 'AzureContainerInstance', {
5965
+ enumerable: true,
5966
+ get: function () {
5967
+ return AzureContainerInstance;
5968
+ }
5969
+ });
4604
5970
  Object.defineProperty(exports, 'AzureNsg', {
4605
5971
  enumerable: true,
4606
5972
  get: function () {
@@ -4640,12 +6006,24 @@ Object.defineProperty(exports, 'Ec2Instance', {
4640
6006
  });
4641
6007
  exports.Environment = Environment;
4642
6008
  exports.Fractal = Fractal;
6009
+ Object.defineProperty(exports, 'GcpCloudRunService', {
6010
+ enumerable: true,
6011
+ get: function () {
6012
+ return GcpCloudRunService;
6013
+ }
6014
+ });
4643
6015
  Object.defineProperty(exports, 'GcpFirewall', {
4644
6016
  enumerable: true,
4645
6017
  get: function () {
4646
6018
  return GcpFirewall;
4647
6019
  }
4648
6020
  });
6021
+ Object.defineProperty(exports, 'GcpGkeCluster', {
6022
+ enumerable: true,
6023
+ get: function () {
6024
+ return GcpGkeCluster;
6025
+ }
6026
+ });
4649
6027
  Object.defineProperty(exports, 'GcpSubnet', {
4650
6028
  enumerable: true,
4651
6029
  get: function () {
@@ -4691,6 +6069,12 @@ Object.defineProperty(exports, 'HetznerSubnet', {
4691
6069
  exports.InfrastructureDomain = InfrastructureDomain;
4692
6070
  exports.KebabCaseString = KebabCaseString;
4693
6071
  exports.LiveSystem = LiveSystem;
6072
+ Object.defineProperty(exports, 'OciContainerInstance', {
6073
+ enumerable: true,
6074
+ get: function () {
6075
+ return OciContainerInstance;
6076
+ }
6077
+ });
4694
6078
  Object.defineProperty(exports, 'OciInstance', {
4695
6079
  enumerable: true,
4696
6080
  get: function () {