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