@fractal_cloud/sdk 1.2.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/README.md +9 -4
- package/dist/index.cjs +1618 -415
- package/dist/index.d.cts +514 -1
- package/dist/index.d.mts +514 -1
- package/dist/index.mjs +1493 -338
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2182,16 +2182,16 @@ let LiveSystem$1;
|
|
|
2182
2182
|
//#region src/fractal/component/network_and_compute/iaas/virtual_network.ts
|
|
2183
2183
|
const VIRTUAL_NETWORK_TYPE_NAME = "VirtualNetwork";
|
|
2184
2184
|
const CIDR_BLOCK_PARAM$1 = "cidrBlock";
|
|
2185
|
-
function buildId$
|
|
2185
|
+
function buildId$36(id) {
|
|
2186
2186
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2187
2187
|
}
|
|
2188
|
-
function buildVersion$
|
|
2188
|
+
function buildVersion$36(major, minor, patch) {
|
|
2189
2189
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2190
2190
|
}
|
|
2191
2191
|
function buildVirtualNetworkType() {
|
|
2192
2192
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(VIRTUAL_NETWORK_TYPE_NAME).build()).build();
|
|
2193
2193
|
}
|
|
2194
|
-
function pushParam$
|
|
2194
|
+
function pushParam$33(params, key, value) {
|
|
2195
2195
|
params.push(key, value);
|
|
2196
2196
|
}
|
|
2197
2197
|
function makeVirtualNetworkComponent(vpc, subnetNodes, sgs) {
|
|
@@ -2232,11 +2232,11 @@ let VirtualNetwork;
|
|
|
2232
2232
|
const sgBuilders = [];
|
|
2233
2233
|
const builder = {
|
|
2234
2234
|
withId: (id) => {
|
|
2235
|
-
inner.withId(buildId$
|
|
2235
|
+
inner.withId(buildId$36(id));
|
|
2236
2236
|
return builder;
|
|
2237
2237
|
},
|
|
2238
2238
|
withVersion: (major, minor, patch) => {
|
|
2239
|
-
inner.withVersion(buildVersion$
|
|
2239
|
+
inner.withVersion(buildVersion$36(major, minor, patch));
|
|
2240
2240
|
return builder;
|
|
2241
2241
|
},
|
|
2242
2242
|
withDisplayName: (displayName) => {
|
|
@@ -2248,7 +2248,7 @@ let VirtualNetwork;
|
|
|
2248
2248
|
return builder;
|
|
2249
2249
|
},
|
|
2250
2250
|
withCidrBlock: (value) => {
|
|
2251
|
-
pushParam$
|
|
2251
|
+
pushParam$33(params, CIDR_BLOCK_PARAM$1, value);
|
|
2252
2252
|
return builder;
|
|
2253
2253
|
},
|
|
2254
2254
|
withSubnet: (subnetBuilder) => {
|
|
@@ -2304,16 +2304,16 @@ let VirtualNetwork;
|
|
|
2304
2304
|
//#region src/fractal/component/network_and_compute/iaas/subnet.ts
|
|
2305
2305
|
const SUBNET_TYPE_NAME = "Subnet";
|
|
2306
2306
|
const CIDR_BLOCK_PARAM = "cidrBlock";
|
|
2307
|
-
function buildId$
|
|
2307
|
+
function buildId$35(id) {
|
|
2308
2308
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2309
2309
|
}
|
|
2310
|
-
function buildVersion$
|
|
2310
|
+
function buildVersion$35(major, minor, patch) {
|
|
2311
2311
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2312
2312
|
}
|
|
2313
2313
|
function buildSubnetType() {
|
|
2314
2314
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(SUBNET_TYPE_NAME).build()).build();
|
|
2315
2315
|
}
|
|
2316
|
-
function pushParam$
|
|
2316
|
+
function pushParam$32(params, key, value) {
|
|
2317
2317
|
params.push(key, value);
|
|
2318
2318
|
}
|
|
2319
2319
|
function makeSubnetComponent(subnet, vms, workloadNodes) {
|
|
@@ -2347,11 +2347,11 @@ let Subnet;
|
|
|
2347
2347
|
const vmBuilders = [];
|
|
2348
2348
|
const builder = {
|
|
2349
2349
|
withId: (id) => {
|
|
2350
|
-
inner.withId(buildId$
|
|
2350
|
+
inner.withId(buildId$35(id));
|
|
2351
2351
|
return builder;
|
|
2352
2352
|
},
|
|
2353
2353
|
withVersion: (major, minor, patch) => {
|
|
2354
|
-
inner.withVersion(buildVersion$
|
|
2354
|
+
inner.withVersion(buildVersion$35(major, minor, patch));
|
|
2355
2355
|
return builder;
|
|
2356
2356
|
},
|
|
2357
2357
|
withDisplayName: (displayName) => {
|
|
@@ -2363,7 +2363,7 @@ let Subnet;
|
|
|
2363
2363
|
return builder;
|
|
2364
2364
|
},
|
|
2365
2365
|
withCidrBlock: (value) => {
|
|
2366
|
-
pushParam$
|
|
2366
|
+
pushParam$32(params, CIDR_BLOCK_PARAM, value);
|
|
2367
2367
|
return builder;
|
|
2368
2368
|
},
|
|
2369
2369
|
withVirtualMachine: (vmBuilder) => {
|
|
@@ -2403,16 +2403,16 @@ let Subnet;
|
|
|
2403
2403
|
const SECURITY_GROUP_TYPE_NAME = "SecurityGroup";
|
|
2404
2404
|
const DESCRIPTION_PARAM = "description";
|
|
2405
2405
|
const INGRESS_RULES_PARAM = "ingressRules";
|
|
2406
|
-
function buildId$
|
|
2406
|
+
function buildId$34(id) {
|
|
2407
2407
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2408
2408
|
}
|
|
2409
|
-
function buildVersion$
|
|
2409
|
+
function buildVersion$34(major, minor, patch) {
|
|
2410
2410
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2411
2411
|
}
|
|
2412
2412
|
function buildSecurityGroupType() {
|
|
2413
2413
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(SECURITY_GROUP_TYPE_NAME).build()).build();
|
|
2414
2414
|
}
|
|
2415
|
-
function pushParam$
|
|
2415
|
+
function pushParam$31(params, key, value) {
|
|
2416
2416
|
params.push(key, value);
|
|
2417
2417
|
}
|
|
2418
2418
|
let SecurityGroup;
|
|
@@ -2422,11 +2422,11 @@ let SecurityGroup;
|
|
|
2422
2422
|
const inner = getBlueprintComponentBuilder().withType(buildSecurityGroupType()).withParameters(params);
|
|
2423
2423
|
const builder = {
|
|
2424
2424
|
withId: (id) => {
|
|
2425
|
-
inner.withId(buildId$
|
|
2425
|
+
inner.withId(buildId$34(id));
|
|
2426
2426
|
return builder;
|
|
2427
2427
|
},
|
|
2428
2428
|
withVersion: (major, minor, patch) => {
|
|
2429
|
-
inner.withVersion(buildVersion$
|
|
2429
|
+
inner.withVersion(buildVersion$34(major, minor, patch));
|
|
2430
2430
|
return builder;
|
|
2431
2431
|
},
|
|
2432
2432
|
withDisplayName: (displayName) => {
|
|
@@ -2435,11 +2435,11 @@ let SecurityGroup;
|
|
|
2435
2435
|
},
|
|
2436
2436
|
withDescription: (description) => {
|
|
2437
2437
|
inner.withDescription(description);
|
|
2438
|
-
pushParam$
|
|
2438
|
+
pushParam$31(params, DESCRIPTION_PARAM, description);
|
|
2439
2439
|
return builder;
|
|
2440
2440
|
},
|
|
2441
2441
|
withIngressRules: (rules) => {
|
|
2442
|
-
pushParam$
|
|
2442
|
+
pushParam$31(params, INGRESS_RULES_PARAM, rules);
|
|
2443
2443
|
return builder;
|
|
2444
2444
|
},
|
|
2445
2445
|
withLinks: (links) => {
|
|
@@ -2460,10 +2460,10 @@ let SecurityGroup;
|
|
|
2460
2460
|
//#endregion
|
|
2461
2461
|
//#region src/fractal/component/network_and_compute/iaas/vm.ts
|
|
2462
2462
|
const VIRTUAL_MACHINE_TYPE_NAME = "VirtualMachine";
|
|
2463
|
-
function buildId$
|
|
2463
|
+
function buildId$33(id) {
|
|
2464
2464
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2465
2465
|
}
|
|
2466
|
-
function buildVersion$
|
|
2466
|
+
function buildVersion$33(major, minor, patch) {
|
|
2467
2467
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2468
2468
|
}
|
|
2469
2469
|
function buildVirtualMachineType() {
|
|
@@ -2502,11 +2502,11 @@ let VirtualMachine;
|
|
|
2502
2502
|
const inner = getBlueprintComponentBuilder().withType(buildVirtualMachineType()).withParameters(getParametersInstance());
|
|
2503
2503
|
const builder = {
|
|
2504
2504
|
withId: (id) => {
|
|
2505
|
-
inner.withId(buildId$
|
|
2505
|
+
inner.withId(buildId$33(id));
|
|
2506
2506
|
return builder;
|
|
2507
2507
|
},
|
|
2508
2508
|
withVersion: (major, minor, patch) => {
|
|
2509
|
-
inner.withVersion(buildVersion$
|
|
2509
|
+
inner.withVersion(buildVersion$33(major, minor, patch));
|
|
2510
2510
|
return builder;
|
|
2511
2511
|
},
|
|
2512
2512
|
withDisplayName: (displayName) => {
|
|
@@ -2538,16 +2538,16 @@ const AWS_VPC_TYPE_NAME = "AwsVpc";
|
|
|
2538
2538
|
const INSTANCE_TENANCY_PARAM = "instanceTenancy";
|
|
2539
2539
|
const ENABLE_DNS_SUPPORT_PARAM = "enableDnsSupport";
|
|
2540
2540
|
const ENABLE_DNS_HOSTNAMES_PARAM = "enableDnsHostnames";
|
|
2541
|
-
function buildId$
|
|
2541
|
+
function buildId$32(id) {
|
|
2542
2542
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2543
2543
|
}
|
|
2544
|
-
function buildVersion$
|
|
2544
|
+
function buildVersion$32(major, minor, patch) {
|
|
2545
2545
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2546
2546
|
}
|
|
2547
2547
|
function buildAwsVpcType() {
|
|
2548
2548
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_VPC_TYPE_NAME).build()).build();
|
|
2549
2549
|
}
|
|
2550
|
-
function pushParam$
|
|
2550
|
+
function pushParam$30(params, key, value) {
|
|
2551
2551
|
params.push(key, value);
|
|
2552
2552
|
}
|
|
2553
2553
|
let AwsVpc;
|
|
@@ -2557,11 +2557,11 @@ let AwsVpc;
|
|
|
2557
2557
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsVpcType()).withParameters(params).withProvider("AWS");
|
|
2558
2558
|
const builder = {
|
|
2559
2559
|
withId: (id) => {
|
|
2560
|
-
inner.withId(buildId$
|
|
2560
|
+
inner.withId(buildId$32(id));
|
|
2561
2561
|
return builder;
|
|
2562
2562
|
},
|
|
2563
2563
|
withVersion: (major, minor, patch) => {
|
|
2564
|
-
inner.withVersion(buildVersion$
|
|
2564
|
+
inner.withVersion(buildVersion$32(major, minor, patch));
|
|
2565
2565
|
return builder;
|
|
2566
2566
|
},
|
|
2567
2567
|
withDisplayName: (displayName) => {
|
|
@@ -2573,19 +2573,19 @@ let AwsVpc;
|
|
|
2573
2573
|
return builder;
|
|
2574
2574
|
},
|
|
2575
2575
|
withCidrBlock: (value) => {
|
|
2576
|
-
pushParam$
|
|
2576
|
+
pushParam$30(params, CIDR_BLOCK_PARAM$1, value);
|
|
2577
2577
|
return builder;
|
|
2578
2578
|
},
|
|
2579
2579
|
withInstanceTenancy: (value) => {
|
|
2580
|
-
pushParam$
|
|
2580
|
+
pushParam$30(params, INSTANCE_TENANCY_PARAM, value);
|
|
2581
2581
|
return builder;
|
|
2582
2582
|
},
|
|
2583
2583
|
withEnableDnsSupport: (value) => {
|
|
2584
|
-
pushParam$
|
|
2584
|
+
pushParam$30(params, ENABLE_DNS_SUPPORT_PARAM, value);
|
|
2585
2585
|
return builder;
|
|
2586
2586
|
},
|
|
2587
2587
|
withEnableDnsHostnames: (value) => {
|
|
2588
|
-
pushParam$
|
|
2588
|
+
pushParam$30(params, ENABLE_DNS_HOSTNAMES_PARAM, value);
|
|
2589
2589
|
return builder;
|
|
2590
2590
|
},
|
|
2591
2591
|
build: () => inner.build()
|
|
@@ -2594,21 +2594,21 @@ let AwsVpc;
|
|
|
2594
2594
|
};
|
|
2595
2595
|
_AwsVpc.satisfy = (blueprint) => {
|
|
2596
2596
|
const params = getParametersInstance();
|
|
2597
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsVpcType()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
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);
|
|
2598
2598
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2599
2599
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
2600
|
-
if (cidrBlock !== null) pushParam$
|
|
2600
|
+
if (cidrBlock !== null) pushParam$30(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
2601
2601
|
const satisfiedBuilder = {
|
|
2602
2602
|
withInstanceTenancy: (value) => {
|
|
2603
|
-
pushParam$
|
|
2603
|
+
pushParam$30(params, INSTANCE_TENANCY_PARAM, value);
|
|
2604
2604
|
return satisfiedBuilder;
|
|
2605
2605
|
},
|
|
2606
2606
|
withEnableDnsSupport: (value) => {
|
|
2607
|
-
pushParam$
|
|
2607
|
+
pushParam$30(params, ENABLE_DNS_SUPPORT_PARAM, value);
|
|
2608
2608
|
return satisfiedBuilder;
|
|
2609
2609
|
},
|
|
2610
2610
|
withEnableDnsHostnames: (value) => {
|
|
2611
|
-
pushParam$
|
|
2611
|
+
pushParam$30(params, ENABLE_DNS_HOSTNAMES_PARAM, value);
|
|
2612
2612
|
return satisfiedBuilder;
|
|
2613
2613
|
},
|
|
2614
2614
|
build: () => inner.build()
|
|
@@ -2629,16 +2629,16 @@ let AwsVpc;
|
|
|
2629
2629
|
//#region src/live_system/component/network_and_compute/iaas/subnet.ts
|
|
2630
2630
|
const AWS_SUBNET_TYPE_NAME = "AwsSubnet";
|
|
2631
2631
|
const AVAILABILITY_ZONE_PARAM = "availabilityZone";
|
|
2632
|
-
function buildId$
|
|
2632
|
+
function buildId$31(id) {
|
|
2633
2633
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2634
2634
|
}
|
|
2635
|
-
function buildVersion$
|
|
2635
|
+
function buildVersion$31(major, minor, patch) {
|
|
2636
2636
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2637
2637
|
}
|
|
2638
2638
|
function buildAwsSubnetType() {
|
|
2639
2639
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_SUBNET_TYPE_NAME).build()).build();
|
|
2640
2640
|
}
|
|
2641
|
-
function pushParam$
|
|
2641
|
+
function pushParam$29(params, key, value) {
|
|
2642
2642
|
params.push(key, value);
|
|
2643
2643
|
}
|
|
2644
2644
|
let AwsSubnet;
|
|
@@ -2648,11 +2648,11 @@ let AwsSubnet;
|
|
|
2648
2648
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsSubnetType()).withParameters(params).withProvider("AWS");
|
|
2649
2649
|
const builder = {
|
|
2650
2650
|
withId: (id) => {
|
|
2651
|
-
inner.withId(buildId$
|
|
2651
|
+
inner.withId(buildId$31(id));
|
|
2652
2652
|
return builder;
|
|
2653
2653
|
},
|
|
2654
2654
|
withVersion: (major, minor, patch) => {
|
|
2655
|
-
inner.withVersion(buildVersion$
|
|
2655
|
+
inner.withVersion(buildVersion$31(major, minor, patch));
|
|
2656
2656
|
return builder;
|
|
2657
2657
|
},
|
|
2658
2658
|
withDisplayName: (displayName) => {
|
|
@@ -2664,11 +2664,11 @@ let AwsSubnet;
|
|
|
2664
2664
|
return builder;
|
|
2665
2665
|
},
|
|
2666
2666
|
withCidrBlock: (value) => {
|
|
2667
|
-
pushParam$
|
|
2667
|
+
pushParam$29(params, CIDR_BLOCK_PARAM, value);
|
|
2668
2668
|
return builder;
|
|
2669
2669
|
},
|
|
2670
2670
|
withAvailabilityZone: (value) => {
|
|
2671
|
-
pushParam$
|
|
2671
|
+
pushParam$29(params, AVAILABILITY_ZONE_PARAM, value);
|
|
2672
2672
|
return builder;
|
|
2673
2673
|
},
|
|
2674
2674
|
build: () => inner.build()
|
|
@@ -2677,13 +2677,13 @@ let AwsSubnet;
|
|
|
2677
2677
|
};
|
|
2678
2678
|
_AwsSubnet.satisfy = (blueprint) => {
|
|
2679
2679
|
const params = getParametersInstance();
|
|
2680
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsSubnetType()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
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);
|
|
2681
2681
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2682
2682
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
2683
|
-
if (cidrBlock !== null) pushParam$
|
|
2683
|
+
if (cidrBlock !== null) pushParam$29(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
2684
2684
|
const satisfiedBuilder = {
|
|
2685
2685
|
withAvailabilityZone: (value) => {
|
|
2686
|
-
pushParam$
|
|
2686
|
+
pushParam$29(params, AVAILABILITY_ZONE_PARAM, value);
|
|
2687
2687
|
return satisfiedBuilder;
|
|
2688
2688
|
},
|
|
2689
2689
|
build: () => inner.build()
|
|
@@ -2700,16 +2700,16 @@ let AwsSubnet;
|
|
|
2700
2700
|
//#endregion
|
|
2701
2701
|
//#region src/live_system/component/network_and_compute/iaas/security_group.ts
|
|
2702
2702
|
const AWS_SG_TYPE_NAME = "SecurityGroup";
|
|
2703
|
-
function buildId$
|
|
2703
|
+
function buildId$30(id) {
|
|
2704
2704
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2705
2705
|
}
|
|
2706
|
-
function buildVersion$
|
|
2706
|
+
function buildVersion$30(major, minor, patch) {
|
|
2707
2707
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2708
2708
|
}
|
|
2709
2709
|
function buildAwsSgType() {
|
|
2710
2710
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_SG_TYPE_NAME).build()).build();
|
|
2711
2711
|
}
|
|
2712
|
-
function pushParam$
|
|
2712
|
+
function pushParam$28(params, key, value) {
|
|
2713
2713
|
params.push(key, value);
|
|
2714
2714
|
}
|
|
2715
2715
|
let AwsSecurityGroup;
|
|
@@ -2719,11 +2719,11 @@ let AwsSecurityGroup;
|
|
|
2719
2719
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsSgType()).withParameters(params).withProvider("AWS");
|
|
2720
2720
|
const builder = {
|
|
2721
2721
|
withId: (id) => {
|
|
2722
|
-
inner.withId(buildId$
|
|
2722
|
+
inner.withId(buildId$30(id));
|
|
2723
2723
|
return builder;
|
|
2724
2724
|
},
|
|
2725
2725
|
withVersion: (major, minor, patch) => {
|
|
2726
|
-
inner.withVersion(buildVersion$
|
|
2726
|
+
inner.withVersion(buildVersion$30(major, minor, patch));
|
|
2727
2727
|
return builder;
|
|
2728
2728
|
},
|
|
2729
2729
|
withDisplayName: (displayName) => {
|
|
@@ -2732,11 +2732,11 @@ let AwsSecurityGroup;
|
|
|
2732
2732
|
},
|
|
2733
2733
|
withDescription: (description) => {
|
|
2734
2734
|
inner.withDescription(description);
|
|
2735
|
-
pushParam$
|
|
2735
|
+
pushParam$28(params, DESCRIPTION_PARAM, description);
|
|
2736
2736
|
return builder;
|
|
2737
2737
|
},
|
|
2738
2738
|
withIngressRules: (rules) => {
|
|
2739
|
-
pushParam$
|
|
2739
|
+
pushParam$28(params, INGRESS_RULES_PARAM, rules);
|
|
2740
2740
|
return builder;
|
|
2741
2741
|
},
|
|
2742
2742
|
build: () => inner.build()
|
|
@@ -2745,14 +2745,14 @@ let AwsSecurityGroup;
|
|
|
2745
2745
|
};
|
|
2746
2746
|
_AwsSecurityGroup.satisfy = (blueprint) => {
|
|
2747
2747
|
const params = getParametersInstance();
|
|
2748
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsSgType()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
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);
|
|
2749
2749
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
2750
2750
|
if (description !== null) {
|
|
2751
2751
|
inner.withDescription(String(description));
|
|
2752
|
-
pushParam$
|
|
2752
|
+
pushParam$28(params, DESCRIPTION_PARAM, String(description));
|
|
2753
2753
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2754
2754
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
2755
|
-
if (ingressRules !== null) pushParam$
|
|
2755
|
+
if (ingressRules !== null) pushParam$28(params, INGRESS_RULES_PARAM, ingressRules);
|
|
2756
2756
|
return { build: () => inner.build() };
|
|
2757
2757
|
};
|
|
2758
2758
|
_AwsSecurityGroup.create = (config) => {
|
|
@@ -2771,16 +2771,16 @@ const KEY_NAME_PARAM = "keyName";
|
|
|
2771
2771
|
const USER_DATA_PARAM$1 = "userData";
|
|
2772
2772
|
const IAM_INSTANCE_PROFILE_PARAM = "iamInstanceProfile";
|
|
2773
2773
|
const ASSOCIATE_PUBLIC_IP_PARAM = "associatePublicIp";
|
|
2774
|
-
function buildId$
|
|
2774
|
+
function buildId$29(id) {
|
|
2775
2775
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2776
2776
|
}
|
|
2777
|
-
function buildVersion$
|
|
2777
|
+
function buildVersion$29(major, minor, patch) {
|
|
2778
2778
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2779
2779
|
}
|
|
2780
2780
|
function buildEc2Type() {
|
|
2781
2781
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(EC2_TYPE_NAME).build()).build();
|
|
2782
2782
|
}
|
|
2783
|
-
function pushParam$
|
|
2783
|
+
function pushParam$27(params, key, value) {
|
|
2784
2784
|
params.push(key, value);
|
|
2785
2785
|
}
|
|
2786
2786
|
let Ec2Instance;
|
|
@@ -2790,11 +2790,11 @@ let Ec2Instance;
|
|
|
2790
2790
|
const inner = getLiveSystemComponentBuilder().withType(buildEc2Type()).withParameters(params).withProvider("AWS");
|
|
2791
2791
|
const builder = {
|
|
2792
2792
|
withId: (id) => {
|
|
2793
|
-
inner.withId(buildId$
|
|
2793
|
+
inner.withId(buildId$29(id));
|
|
2794
2794
|
return builder;
|
|
2795
2795
|
},
|
|
2796
2796
|
withVersion: (major, minor, patch) => {
|
|
2797
|
-
inner.withVersion(buildVersion$
|
|
2797
|
+
inner.withVersion(buildVersion$29(major, minor, patch));
|
|
2798
2798
|
return builder;
|
|
2799
2799
|
},
|
|
2800
2800
|
withDisplayName: (displayName) => {
|
|
@@ -2806,27 +2806,27 @@ let Ec2Instance;
|
|
|
2806
2806
|
return builder;
|
|
2807
2807
|
},
|
|
2808
2808
|
withAmiId: (value) => {
|
|
2809
|
-
pushParam$
|
|
2809
|
+
pushParam$27(params, AMI_ID_PARAM, value);
|
|
2810
2810
|
return builder;
|
|
2811
2811
|
},
|
|
2812
2812
|
withInstanceType: (value) => {
|
|
2813
|
-
pushParam$
|
|
2813
|
+
pushParam$27(params, INSTANCE_TYPE_PARAM, value);
|
|
2814
2814
|
return builder;
|
|
2815
2815
|
},
|
|
2816
2816
|
withKeyName: (value) => {
|
|
2817
|
-
pushParam$
|
|
2817
|
+
pushParam$27(params, KEY_NAME_PARAM, value);
|
|
2818
2818
|
return builder;
|
|
2819
2819
|
},
|
|
2820
2820
|
withUserData: (value) => {
|
|
2821
|
-
pushParam$
|
|
2821
|
+
pushParam$27(params, USER_DATA_PARAM$1, value);
|
|
2822
2822
|
return builder;
|
|
2823
2823
|
},
|
|
2824
2824
|
withIamInstanceProfile: (value) => {
|
|
2825
|
-
pushParam$
|
|
2825
|
+
pushParam$27(params, IAM_INSTANCE_PROFILE_PARAM, value);
|
|
2826
2826
|
return builder;
|
|
2827
2827
|
},
|
|
2828
2828
|
withAssociatePublicIp: (value) => {
|
|
2829
|
-
pushParam$
|
|
2829
|
+
pushParam$27(params, ASSOCIATE_PUBLIC_IP_PARAM, value);
|
|
2830
2830
|
return builder;
|
|
2831
2831
|
},
|
|
2832
2832
|
build: () => inner.build()
|
|
@@ -2835,31 +2835,31 @@ let Ec2Instance;
|
|
|
2835
2835
|
};
|
|
2836
2836
|
_Ec2Instance.satisfy = (blueprint) => {
|
|
2837
2837
|
const params = getParametersInstance();
|
|
2838
|
-
const inner = getLiveSystemComponentBuilder().withType(buildEc2Type()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
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);
|
|
2839
2839
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2840
2840
|
const satisfiedBuilder = {
|
|
2841
2841
|
withAmiId: (value) => {
|
|
2842
|
-
pushParam$
|
|
2842
|
+
pushParam$27(params, AMI_ID_PARAM, value);
|
|
2843
2843
|
return satisfiedBuilder;
|
|
2844
2844
|
},
|
|
2845
2845
|
withInstanceType: (value) => {
|
|
2846
|
-
pushParam$
|
|
2846
|
+
pushParam$27(params, INSTANCE_TYPE_PARAM, value);
|
|
2847
2847
|
return satisfiedBuilder;
|
|
2848
2848
|
},
|
|
2849
2849
|
withKeyName: (value) => {
|
|
2850
|
-
pushParam$
|
|
2850
|
+
pushParam$27(params, KEY_NAME_PARAM, value);
|
|
2851
2851
|
return satisfiedBuilder;
|
|
2852
2852
|
},
|
|
2853
2853
|
withUserData: (value) => {
|
|
2854
|
-
pushParam$
|
|
2854
|
+
pushParam$27(params, USER_DATA_PARAM$1, value);
|
|
2855
2855
|
return satisfiedBuilder;
|
|
2856
2856
|
},
|
|
2857
2857
|
withIamInstanceProfile: (value) => {
|
|
2858
|
-
pushParam$
|
|
2858
|
+
pushParam$27(params, IAM_INSTANCE_PROFILE_PARAM, value);
|
|
2859
2859
|
return satisfiedBuilder;
|
|
2860
2860
|
},
|
|
2861
2861
|
withAssociatePublicIp: (value) => {
|
|
2862
|
-
pushParam$
|
|
2862
|
+
pushParam$27(params, ASSOCIATE_PUBLIC_IP_PARAM, value);
|
|
2863
2863
|
return satisfiedBuilder;
|
|
2864
2864
|
},
|
|
2865
2865
|
build: () => inner.build()
|
|
@@ -2882,16 +2882,16 @@ let Ec2Instance;
|
|
|
2882
2882
|
const AZURE_VNET_TYPE_NAME = "AzureVnet";
|
|
2883
2883
|
const LOCATION_PARAM$3 = "location";
|
|
2884
2884
|
const RESOURCE_GROUP_PARAM$3 = "resourceGroup";
|
|
2885
|
-
function buildId$
|
|
2885
|
+
function buildId$28(id) {
|
|
2886
2886
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2887
2887
|
}
|
|
2888
|
-
function buildVersion$
|
|
2888
|
+
function buildVersion$28(major, minor, patch) {
|
|
2889
2889
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2890
2890
|
}
|
|
2891
2891
|
function buildAzureVnetType() {
|
|
2892
2892
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_VNET_TYPE_NAME).build()).build();
|
|
2893
2893
|
}
|
|
2894
|
-
function pushParam$
|
|
2894
|
+
function pushParam$26(params, key, value) {
|
|
2895
2895
|
params.push(key, value);
|
|
2896
2896
|
}
|
|
2897
2897
|
let AzureVnet;
|
|
@@ -2901,11 +2901,11 @@ let AzureVnet;
|
|
|
2901
2901
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureVnetType()).withParameters(params).withProvider("Azure");
|
|
2902
2902
|
const builder = {
|
|
2903
2903
|
withId: (id) => {
|
|
2904
|
-
inner.withId(buildId$
|
|
2904
|
+
inner.withId(buildId$28(id));
|
|
2905
2905
|
return builder;
|
|
2906
2906
|
},
|
|
2907
2907
|
withVersion: (major, minor, patch) => {
|
|
2908
|
-
inner.withVersion(buildVersion$
|
|
2908
|
+
inner.withVersion(buildVersion$28(major, minor, patch));
|
|
2909
2909
|
return builder;
|
|
2910
2910
|
},
|
|
2911
2911
|
withDisplayName: (displayName) => {
|
|
@@ -2917,15 +2917,15 @@ let AzureVnet;
|
|
|
2917
2917
|
return builder;
|
|
2918
2918
|
},
|
|
2919
2919
|
withCidrBlock: (value) => {
|
|
2920
|
-
pushParam$
|
|
2920
|
+
pushParam$26(params, CIDR_BLOCK_PARAM$1, value);
|
|
2921
2921
|
return builder;
|
|
2922
2922
|
},
|
|
2923
2923
|
withLocation: (value) => {
|
|
2924
|
-
pushParam$
|
|
2924
|
+
pushParam$26(params, LOCATION_PARAM$3, value);
|
|
2925
2925
|
return builder;
|
|
2926
2926
|
},
|
|
2927
2927
|
withResourceGroup: (value) => {
|
|
2928
|
-
pushParam$
|
|
2928
|
+
pushParam$26(params, RESOURCE_GROUP_PARAM$3, value);
|
|
2929
2929
|
return builder;
|
|
2930
2930
|
},
|
|
2931
2931
|
build: () => inner.build()
|
|
@@ -2934,17 +2934,17 @@ let AzureVnet;
|
|
|
2934
2934
|
};
|
|
2935
2935
|
_AzureVnet.satisfy = (blueprint) => {
|
|
2936
2936
|
const params = getParametersInstance();
|
|
2937
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureVnetType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
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);
|
|
2938
2938
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2939
2939
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
2940
|
-
if (cidrBlock !== null) pushParam$
|
|
2940
|
+
if (cidrBlock !== null) pushParam$26(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
2941
2941
|
const satisfiedBuilder = {
|
|
2942
2942
|
withLocation: (value) => {
|
|
2943
|
-
pushParam$
|
|
2943
|
+
pushParam$26(params, LOCATION_PARAM$3, value);
|
|
2944
2944
|
return satisfiedBuilder;
|
|
2945
2945
|
},
|
|
2946
2946
|
withResourceGroup: (value) => {
|
|
2947
|
-
pushParam$
|
|
2947
|
+
pushParam$26(params, RESOURCE_GROUP_PARAM$3, value);
|
|
2948
2948
|
return satisfiedBuilder;
|
|
2949
2949
|
},
|
|
2950
2950
|
build: () => inner.build()
|
|
@@ -2962,16 +2962,16 @@ let AzureVnet;
|
|
|
2962
2962
|
//#region src/live_system/component/network_and_compute/iaas/azure_subnet.ts
|
|
2963
2963
|
const AZURE_SUBNET_TYPE_NAME = "AzureSubnet";
|
|
2964
2964
|
const RESOURCE_GROUP_PARAM$2 = "resourceGroup";
|
|
2965
|
-
function buildId$
|
|
2965
|
+
function buildId$27(id) {
|
|
2966
2966
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2967
2967
|
}
|
|
2968
|
-
function buildVersion$
|
|
2968
|
+
function buildVersion$27(major, minor, patch) {
|
|
2969
2969
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2970
2970
|
}
|
|
2971
2971
|
function buildAzureSubnetType() {
|
|
2972
2972
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_SUBNET_TYPE_NAME).build()).build();
|
|
2973
2973
|
}
|
|
2974
|
-
function pushParam$
|
|
2974
|
+
function pushParam$25(params, key, value) {
|
|
2975
2975
|
params.push(key, value);
|
|
2976
2976
|
}
|
|
2977
2977
|
let AzureSubnet;
|
|
@@ -2981,11 +2981,11 @@ let AzureSubnet;
|
|
|
2981
2981
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureSubnetType()).withParameters(params).withProvider("Azure");
|
|
2982
2982
|
const builder = {
|
|
2983
2983
|
withId: (id) => {
|
|
2984
|
-
inner.withId(buildId$
|
|
2984
|
+
inner.withId(buildId$27(id));
|
|
2985
2985
|
return builder;
|
|
2986
2986
|
},
|
|
2987
2987
|
withVersion: (major, minor, patch) => {
|
|
2988
|
-
inner.withVersion(buildVersion$
|
|
2988
|
+
inner.withVersion(buildVersion$27(major, minor, patch));
|
|
2989
2989
|
return builder;
|
|
2990
2990
|
},
|
|
2991
2991
|
withDisplayName: (displayName) => {
|
|
@@ -2997,11 +2997,11 @@ let AzureSubnet;
|
|
|
2997
2997
|
return builder;
|
|
2998
2998
|
},
|
|
2999
2999
|
withCidrBlock: (value) => {
|
|
3000
|
-
pushParam$
|
|
3000
|
+
pushParam$25(params, CIDR_BLOCK_PARAM, value);
|
|
3001
3001
|
return builder;
|
|
3002
3002
|
},
|
|
3003
3003
|
withResourceGroup: (value) => {
|
|
3004
|
-
pushParam$
|
|
3004
|
+
pushParam$25(params, RESOURCE_GROUP_PARAM$2, value);
|
|
3005
3005
|
return builder;
|
|
3006
3006
|
},
|
|
3007
3007
|
build: () => inner.build()
|
|
@@ -3010,13 +3010,13 @@ let AzureSubnet;
|
|
|
3010
3010
|
};
|
|
3011
3011
|
_AzureSubnet.satisfy = (blueprint) => {
|
|
3012
3012
|
const params = getParametersInstance();
|
|
3013
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureSubnetType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
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);
|
|
3014
3014
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3015
3015
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
3016
|
-
if (cidrBlock !== null) pushParam$
|
|
3016
|
+
if (cidrBlock !== null) pushParam$25(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
3017
3017
|
const satisfiedBuilder = {
|
|
3018
3018
|
withResourceGroup: (value) => {
|
|
3019
|
-
pushParam$
|
|
3019
|
+
pushParam$25(params, RESOURCE_GROUP_PARAM$2, value);
|
|
3020
3020
|
return satisfiedBuilder;
|
|
3021
3021
|
},
|
|
3022
3022
|
build: () => inner.build()
|
|
@@ -3035,16 +3035,16 @@ let AzureSubnet;
|
|
|
3035
3035
|
const AZURE_NSG_TYPE_NAME = "AzureNsg";
|
|
3036
3036
|
const LOCATION_PARAM$2 = "location";
|
|
3037
3037
|
const RESOURCE_GROUP_PARAM$1 = "resourceGroup";
|
|
3038
|
-
function buildId$
|
|
3038
|
+
function buildId$26(id) {
|
|
3039
3039
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3040
3040
|
}
|
|
3041
|
-
function buildVersion$
|
|
3041
|
+
function buildVersion$26(major, minor, patch) {
|
|
3042
3042
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3043
3043
|
}
|
|
3044
3044
|
function buildAzureNsgType() {
|
|
3045
3045
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_NSG_TYPE_NAME).build()).build();
|
|
3046
3046
|
}
|
|
3047
|
-
function pushParam$
|
|
3047
|
+
function pushParam$24(params, key, value) {
|
|
3048
3048
|
params.push(key, value);
|
|
3049
3049
|
}
|
|
3050
3050
|
let AzureNsg;
|
|
@@ -3054,11 +3054,11 @@ let AzureNsg;
|
|
|
3054
3054
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureNsgType()).withParameters(params).withProvider("Azure");
|
|
3055
3055
|
const builder = {
|
|
3056
3056
|
withId: (id) => {
|
|
3057
|
-
inner.withId(buildId$
|
|
3057
|
+
inner.withId(buildId$26(id));
|
|
3058
3058
|
return builder;
|
|
3059
3059
|
},
|
|
3060
3060
|
withVersion: (major, minor, patch) => {
|
|
3061
|
-
inner.withVersion(buildVersion$
|
|
3061
|
+
inner.withVersion(buildVersion$26(major, minor, patch));
|
|
3062
3062
|
return builder;
|
|
3063
3063
|
},
|
|
3064
3064
|
withDisplayName: (displayName) => {
|
|
@@ -3067,19 +3067,19 @@ let AzureNsg;
|
|
|
3067
3067
|
},
|
|
3068
3068
|
withDescription: (description) => {
|
|
3069
3069
|
inner.withDescription(description);
|
|
3070
|
-
pushParam$
|
|
3070
|
+
pushParam$24(params, DESCRIPTION_PARAM, description);
|
|
3071
3071
|
return builder;
|
|
3072
3072
|
},
|
|
3073
3073
|
withIngressRules: (rules) => {
|
|
3074
|
-
pushParam$
|
|
3074
|
+
pushParam$24(params, INGRESS_RULES_PARAM, rules);
|
|
3075
3075
|
return builder;
|
|
3076
3076
|
},
|
|
3077
3077
|
withLocation: (value) => {
|
|
3078
|
-
pushParam$
|
|
3078
|
+
pushParam$24(params, LOCATION_PARAM$2, value);
|
|
3079
3079
|
return builder;
|
|
3080
3080
|
},
|
|
3081
3081
|
withResourceGroup: (value) => {
|
|
3082
|
-
pushParam$
|
|
3082
|
+
pushParam$24(params, RESOURCE_GROUP_PARAM$1, value);
|
|
3083
3083
|
return builder;
|
|
3084
3084
|
},
|
|
3085
3085
|
build: () => inner.build()
|
|
@@ -3088,21 +3088,21 @@ let AzureNsg;
|
|
|
3088
3088
|
};
|
|
3089
3089
|
_AzureNsg.satisfy = (blueprint) => {
|
|
3090
3090
|
const params = getParametersInstance();
|
|
3091
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureNsgType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
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);
|
|
3092
3092
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
3093
3093
|
if (description !== null) {
|
|
3094
3094
|
inner.withDescription(String(description));
|
|
3095
|
-
pushParam$
|
|
3095
|
+
pushParam$24(params, DESCRIPTION_PARAM, String(description));
|
|
3096
3096
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3097
3097
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
3098
|
-
if (ingressRules !== null) pushParam$
|
|
3098
|
+
if (ingressRules !== null) pushParam$24(params, INGRESS_RULES_PARAM, ingressRules);
|
|
3099
3099
|
const satisfiedBuilder = {
|
|
3100
3100
|
withLocation: (value) => {
|
|
3101
|
-
pushParam$
|
|
3101
|
+
pushParam$24(params, LOCATION_PARAM$2, value);
|
|
3102
3102
|
return satisfiedBuilder;
|
|
3103
3103
|
},
|
|
3104
3104
|
withResourceGroup: (value) => {
|
|
3105
|
-
pushParam$
|
|
3105
|
+
pushParam$24(params, RESOURCE_GROUP_PARAM$1, value);
|
|
3106
3106
|
return satisfiedBuilder;
|
|
3107
3107
|
},
|
|
3108
3108
|
build: () => inner.build()
|
|
@@ -3129,16 +3129,16 @@ const IMAGE_OFFER_PARAM = "imageOffer";
|
|
|
3129
3129
|
const IMAGE_SKU_PARAM = "imageSku";
|
|
3130
3130
|
const SSH_PUBLIC_KEY_PARAM$1 = "sshPublicKey";
|
|
3131
3131
|
const OS_DISK_SIZE_GB_PARAM = "osDiskSizeGb";
|
|
3132
|
-
function buildId$
|
|
3132
|
+
function buildId$25(id) {
|
|
3133
3133
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3134
3134
|
}
|
|
3135
|
-
function buildVersion$
|
|
3135
|
+
function buildVersion$25(major, minor, patch) {
|
|
3136
3136
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3137
3137
|
}
|
|
3138
3138
|
function buildAzureVmType() {
|
|
3139
3139
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_VM_TYPE_NAME).build()).build();
|
|
3140
3140
|
}
|
|
3141
|
-
function pushParam$
|
|
3141
|
+
function pushParam$23(params, key, value) {
|
|
3142
3142
|
params.push(key, value);
|
|
3143
3143
|
}
|
|
3144
3144
|
let AzureVm;
|
|
@@ -3148,11 +3148,11 @@ let AzureVm;
|
|
|
3148
3148
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureVmType()).withParameters(params).withProvider("Azure");
|
|
3149
3149
|
const builder = {
|
|
3150
3150
|
withId: (id) => {
|
|
3151
|
-
inner.withId(buildId$
|
|
3151
|
+
inner.withId(buildId$25(id));
|
|
3152
3152
|
return builder;
|
|
3153
3153
|
},
|
|
3154
3154
|
withVersion: (major, minor, patch) => {
|
|
3155
|
-
inner.withVersion(buildVersion$
|
|
3155
|
+
inner.withVersion(buildVersion$25(major, minor, patch));
|
|
3156
3156
|
return builder;
|
|
3157
3157
|
},
|
|
3158
3158
|
withDisplayName: (displayName) => {
|
|
@@ -3164,39 +3164,39 @@ let AzureVm;
|
|
|
3164
3164
|
return builder;
|
|
3165
3165
|
},
|
|
3166
3166
|
withVmSize: (value) => {
|
|
3167
|
-
pushParam$
|
|
3167
|
+
pushParam$23(params, VM_SIZE_PARAM, value);
|
|
3168
3168
|
return builder;
|
|
3169
3169
|
},
|
|
3170
3170
|
withLocation: (value) => {
|
|
3171
|
-
pushParam$
|
|
3171
|
+
pushParam$23(params, LOCATION_PARAM$1, value);
|
|
3172
3172
|
return builder;
|
|
3173
3173
|
},
|
|
3174
3174
|
withResourceGroup: (value) => {
|
|
3175
|
-
pushParam$
|
|
3175
|
+
pushParam$23(params, RESOURCE_GROUP_PARAM, value);
|
|
3176
3176
|
return builder;
|
|
3177
3177
|
},
|
|
3178
3178
|
withAdminUsername: (value) => {
|
|
3179
|
-
pushParam$
|
|
3179
|
+
pushParam$23(params, ADMIN_USERNAME_PARAM, value);
|
|
3180
3180
|
return builder;
|
|
3181
3181
|
},
|
|
3182
3182
|
withImagePublisher: (value) => {
|
|
3183
|
-
pushParam$
|
|
3183
|
+
pushParam$23(params, IMAGE_PUBLISHER_PARAM, value);
|
|
3184
3184
|
return builder;
|
|
3185
3185
|
},
|
|
3186
3186
|
withImageOffer: (value) => {
|
|
3187
|
-
pushParam$
|
|
3187
|
+
pushParam$23(params, IMAGE_OFFER_PARAM, value);
|
|
3188
3188
|
return builder;
|
|
3189
3189
|
},
|
|
3190
3190
|
withImageSku: (value) => {
|
|
3191
|
-
pushParam$
|
|
3191
|
+
pushParam$23(params, IMAGE_SKU_PARAM, value);
|
|
3192
3192
|
return builder;
|
|
3193
3193
|
},
|
|
3194
3194
|
withSshPublicKey: (value) => {
|
|
3195
|
-
pushParam$
|
|
3195
|
+
pushParam$23(params, SSH_PUBLIC_KEY_PARAM$1, value);
|
|
3196
3196
|
return builder;
|
|
3197
3197
|
},
|
|
3198
3198
|
withOsDiskSizeGb: (value) => {
|
|
3199
|
-
pushParam$
|
|
3199
|
+
pushParam$23(params, OS_DISK_SIZE_GB_PARAM, value);
|
|
3200
3200
|
return builder;
|
|
3201
3201
|
},
|
|
3202
3202
|
build: () => inner.build()
|
|
@@ -3205,43 +3205,43 @@ let AzureVm;
|
|
|
3205
3205
|
};
|
|
3206
3206
|
_AzureVm.satisfy = (blueprint) => {
|
|
3207
3207
|
const params = getParametersInstance();
|
|
3208
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureVmType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
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);
|
|
3209
3209
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3210
3210
|
const satisfiedBuilder = {
|
|
3211
3211
|
withVmSize: (value) => {
|
|
3212
|
-
pushParam$
|
|
3212
|
+
pushParam$23(params, VM_SIZE_PARAM, value);
|
|
3213
3213
|
return satisfiedBuilder;
|
|
3214
3214
|
},
|
|
3215
3215
|
withLocation: (value) => {
|
|
3216
|
-
pushParam$
|
|
3216
|
+
pushParam$23(params, LOCATION_PARAM$1, value);
|
|
3217
3217
|
return satisfiedBuilder;
|
|
3218
3218
|
},
|
|
3219
3219
|
withResourceGroup: (value) => {
|
|
3220
|
-
pushParam$
|
|
3220
|
+
pushParam$23(params, RESOURCE_GROUP_PARAM, value);
|
|
3221
3221
|
return satisfiedBuilder;
|
|
3222
3222
|
},
|
|
3223
3223
|
withAdminUsername: (value) => {
|
|
3224
|
-
pushParam$
|
|
3224
|
+
pushParam$23(params, ADMIN_USERNAME_PARAM, value);
|
|
3225
3225
|
return satisfiedBuilder;
|
|
3226
3226
|
},
|
|
3227
3227
|
withImagePublisher: (value) => {
|
|
3228
|
-
pushParam$
|
|
3228
|
+
pushParam$23(params, IMAGE_PUBLISHER_PARAM, value);
|
|
3229
3229
|
return satisfiedBuilder;
|
|
3230
3230
|
},
|
|
3231
3231
|
withImageOffer: (value) => {
|
|
3232
|
-
pushParam$
|
|
3232
|
+
pushParam$23(params, IMAGE_OFFER_PARAM, value);
|
|
3233
3233
|
return satisfiedBuilder;
|
|
3234
3234
|
},
|
|
3235
3235
|
withImageSku: (value) => {
|
|
3236
|
-
pushParam$
|
|
3236
|
+
pushParam$23(params, IMAGE_SKU_PARAM, value);
|
|
3237
3237
|
return satisfiedBuilder;
|
|
3238
3238
|
},
|
|
3239
3239
|
withSshPublicKey: (value) => {
|
|
3240
|
-
pushParam$
|
|
3240
|
+
pushParam$23(params, SSH_PUBLIC_KEY_PARAM$1, value);
|
|
3241
3241
|
return satisfiedBuilder;
|
|
3242
3242
|
},
|
|
3243
3243
|
withOsDiskSizeGb: (value) => {
|
|
3244
|
-
pushParam$
|
|
3244
|
+
pushParam$23(params, OS_DISK_SIZE_GB_PARAM, value);
|
|
3245
3245
|
return satisfiedBuilder;
|
|
3246
3246
|
},
|
|
3247
3247
|
build: () => inner.build()
|
|
@@ -3262,16 +3262,16 @@ let AzureVm;
|
|
|
3262
3262
|
const GCP_VPC_TYPE_NAME = "GcpVpc";
|
|
3263
3263
|
const AUTO_CREATE_SUBNETWORKS_PARAM = "autoCreateSubnetworks";
|
|
3264
3264
|
const ROUTING_MODE_PARAM = "routingMode";
|
|
3265
|
-
function buildId$
|
|
3265
|
+
function buildId$24(id) {
|
|
3266
3266
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3267
3267
|
}
|
|
3268
|
-
function buildVersion$
|
|
3268
|
+
function buildVersion$24(major, minor, patch) {
|
|
3269
3269
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3270
3270
|
}
|
|
3271
3271
|
function buildGcpVpcType() {
|
|
3272
3272
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_VPC_TYPE_NAME).build()).build();
|
|
3273
3273
|
}
|
|
3274
|
-
function pushParam$
|
|
3274
|
+
function pushParam$22(params, key, value) {
|
|
3275
3275
|
params.push(key, value);
|
|
3276
3276
|
}
|
|
3277
3277
|
let GcpVpc;
|
|
@@ -3281,11 +3281,11 @@ let GcpVpc;
|
|
|
3281
3281
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpVpcType()).withParameters(params).withProvider("GCP");
|
|
3282
3282
|
const builder = {
|
|
3283
3283
|
withId: (id) => {
|
|
3284
|
-
inner.withId(buildId$
|
|
3284
|
+
inner.withId(buildId$24(id));
|
|
3285
3285
|
return builder;
|
|
3286
3286
|
},
|
|
3287
3287
|
withVersion: (major, minor, patch) => {
|
|
3288
|
-
inner.withVersion(buildVersion$
|
|
3288
|
+
inner.withVersion(buildVersion$24(major, minor, patch));
|
|
3289
3289
|
return builder;
|
|
3290
3290
|
},
|
|
3291
3291
|
withDisplayName: (displayName) => {
|
|
@@ -3297,15 +3297,15 @@ let GcpVpc;
|
|
|
3297
3297
|
return builder;
|
|
3298
3298
|
},
|
|
3299
3299
|
withCidrBlock: (value) => {
|
|
3300
|
-
pushParam$
|
|
3300
|
+
pushParam$22(params, CIDR_BLOCK_PARAM$1, value);
|
|
3301
3301
|
return builder;
|
|
3302
3302
|
},
|
|
3303
3303
|
withAutoCreateSubnetworks: (value) => {
|
|
3304
|
-
pushParam$
|
|
3304
|
+
pushParam$22(params, AUTO_CREATE_SUBNETWORKS_PARAM, value);
|
|
3305
3305
|
return builder;
|
|
3306
3306
|
},
|
|
3307
3307
|
withRoutingMode: (value) => {
|
|
3308
|
-
pushParam$
|
|
3308
|
+
pushParam$22(params, ROUTING_MODE_PARAM, value);
|
|
3309
3309
|
return builder;
|
|
3310
3310
|
},
|
|
3311
3311
|
build: () => inner.build()
|
|
@@ -3314,17 +3314,17 @@ let GcpVpc;
|
|
|
3314
3314
|
};
|
|
3315
3315
|
_GcpVpc.satisfy = (blueprint) => {
|
|
3316
3316
|
const params = getParametersInstance();
|
|
3317
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpVpcType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
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);
|
|
3318
3318
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3319
3319
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
3320
|
-
if (cidrBlock !== null) pushParam$
|
|
3320
|
+
if (cidrBlock !== null) pushParam$22(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
3321
3321
|
const satisfiedBuilder = {
|
|
3322
3322
|
withAutoCreateSubnetworks: (value) => {
|
|
3323
|
-
pushParam$
|
|
3323
|
+
pushParam$22(params, AUTO_CREATE_SUBNETWORKS_PARAM, value);
|
|
3324
3324
|
return satisfiedBuilder;
|
|
3325
3325
|
},
|
|
3326
3326
|
withRoutingMode: (value) => {
|
|
3327
|
-
pushParam$
|
|
3327
|
+
pushParam$22(params, ROUTING_MODE_PARAM, value);
|
|
3328
3328
|
return satisfiedBuilder;
|
|
3329
3329
|
},
|
|
3330
3330
|
build: () => inner.build()
|
|
@@ -3345,16 +3345,16 @@ let GcpVpc;
|
|
|
3345
3345
|
const GCP_SUBNET_TYPE_NAME = "GcpSubnet";
|
|
3346
3346
|
const REGION_PARAM = "region";
|
|
3347
3347
|
const PRIVATE_IP_GOOGLE_ACCESS_PARAM = "privateIpGoogleAccess";
|
|
3348
|
-
function buildId$
|
|
3348
|
+
function buildId$23(id) {
|
|
3349
3349
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3350
3350
|
}
|
|
3351
|
-
function buildVersion$
|
|
3351
|
+
function buildVersion$23(major, minor, patch) {
|
|
3352
3352
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3353
3353
|
}
|
|
3354
3354
|
function buildGcpSubnetType() {
|
|
3355
3355
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_SUBNET_TYPE_NAME).build()).build();
|
|
3356
3356
|
}
|
|
3357
|
-
function pushParam$
|
|
3357
|
+
function pushParam$21(params, key, value) {
|
|
3358
3358
|
params.push(key, value);
|
|
3359
3359
|
}
|
|
3360
3360
|
let GcpSubnet;
|
|
@@ -3364,11 +3364,11 @@ let GcpSubnet;
|
|
|
3364
3364
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpSubnetType()).withParameters(params).withProvider("GCP");
|
|
3365
3365
|
const builder = {
|
|
3366
3366
|
withId: (id) => {
|
|
3367
|
-
inner.withId(buildId$
|
|
3367
|
+
inner.withId(buildId$23(id));
|
|
3368
3368
|
return builder;
|
|
3369
3369
|
},
|
|
3370
3370
|
withVersion: (major, minor, patch) => {
|
|
3371
|
-
inner.withVersion(buildVersion$
|
|
3371
|
+
inner.withVersion(buildVersion$23(major, minor, patch));
|
|
3372
3372
|
return builder;
|
|
3373
3373
|
},
|
|
3374
3374
|
withDisplayName: (displayName) => {
|
|
@@ -3380,15 +3380,15 @@ let GcpSubnet;
|
|
|
3380
3380
|
return builder;
|
|
3381
3381
|
},
|
|
3382
3382
|
withCidrBlock: (value) => {
|
|
3383
|
-
pushParam$
|
|
3383
|
+
pushParam$21(params, CIDR_BLOCK_PARAM, value);
|
|
3384
3384
|
return builder;
|
|
3385
3385
|
},
|
|
3386
3386
|
withRegion: (value) => {
|
|
3387
|
-
pushParam$
|
|
3387
|
+
pushParam$21(params, REGION_PARAM, value);
|
|
3388
3388
|
return builder;
|
|
3389
3389
|
},
|
|
3390
3390
|
withPrivateIpGoogleAccess: (value) => {
|
|
3391
|
-
pushParam$
|
|
3391
|
+
pushParam$21(params, PRIVATE_IP_GOOGLE_ACCESS_PARAM, value);
|
|
3392
3392
|
return builder;
|
|
3393
3393
|
},
|
|
3394
3394
|
build: () => inner.build()
|
|
@@ -3397,17 +3397,17 @@ let GcpSubnet;
|
|
|
3397
3397
|
};
|
|
3398
3398
|
_GcpSubnet.satisfy = (blueprint) => {
|
|
3399
3399
|
const params = getParametersInstance();
|
|
3400
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpSubnetType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
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);
|
|
3401
3401
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3402
3402
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
3403
|
-
if (cidrBlock !== null) pushParam$
|
|
3403
|
+
if (cidrBlock !== null) pushParam$21(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
3404
3404
|
const satisfiedBuilder = {
|
|
3405
3405
|
withRegion: (value) => {
|
|
3406
|
-
pushParam$
|
|
3406
|
+
pushParam$21(params, REGION_PARAM, value);
|
|
3407
3407
|
return satisfiedBuilder;
|
|
3408
3408
|
},
|
|
3409
3409
|
withPrivateIpGoogleAccess: (value) => {
|
|
3410
|
-
pushParam$
|
|
3410
|
+
pushParam$21(params, PRIVATE_IP_GOOGLE_ACCESS_PARAM, value);
|
|
3411
3411
|
return satisfiedBuilder;
|
|
3412
3412
|
},
|
|
3413
3413
|
build: () => inner.build()
|
|
@@ -3425,16 +3425,16 @@ let GcpSubnet;
|
|
|
3425
3425
|
//#endregion
|
|
3426
3426
|
//#region src/live_system/component/network_and_compute/iaas/gcp_firewall.ts
|
|
3427
3427
|
const GCP_FIREWALL_TYPE_NAME = "GcpFirewall";
|
|
3428
|
-
function buildId$
|
|
3428
|
+
function buildId$22(id) {
|
|
3429
3429
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3430
3430
|
}
|
|
3431
|
-
function buildVersion$
|
|
3431
|
+
function buildVersion$22(major, minor, patch) {
|
|
3432
3432
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3433
3433
|
}
|
|
3434
3434
|
function buildGcpFirewallType() {
|
|
3435
3435
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_FIREWALL_TYPE_NAME).build()).build();
|
|
3436
3436
|
}
|
|
3437
|
-
function pushParam$
|
|
3437
|
+
function pushParam$20(params, key, value) {
|
|
3438
3438
|
params.push(key, value);
|
|
3439
3439
|
}
|
|
3440
3440
|
let GcpFirewall;
|
|
@@ -3444,11 +3444,11 @@ let GcpFirewall;
|
|
|
3444
3444
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpFirewallType()).withParameters(params).withProvider("GCP");
|
|
3445
3445
|
const builder = {
|
|
3446
3446
|
withId: (id) => {
|
|
3447
|
-
inner.withId(buildId$
|
|
3447
|
+
inner.withId(buildId$22(id));
|
|
3448
3448
|
return builder;
|
|
3449
3449
|
},
|
|
3450
3450
|
withVersion: (major, minor, patch) => {
|
|
3451
|
-
inner.withVersion(buildVersion$
|
|
3451
|
+
inner.withVersion(buildVersion$22(major, minor, patch));
|
|
3452
3452
|
return builder;
|
|
3453
3453
|
},
|
|
3454
3454
|
withDisplayName: (displayName) => {
|
|
@@ -3457,11 +3457,11 @@ let GcpFirewall;
|
|
|
3457
3457
|
},
|
|
3458
3458
|
withDescription: (description) => {
|
|
3459
3459
|
inner.withDescription(description);
|
|
3460
|
-
pushParam$
|
|
3460
|
+
pushParam$20(params, DESCRIPTION_PARAM, description);
|
|
3461
3461
|
return builder;
|
|
3462
3462
|
},
|
|
3463
3463
|
withIngressRules: (rules) => {
|
|
3464
|
-
pushParam$
|
|
3464
|
+
pushParam$20(params, INGRESS_RULES_PARAM, rules);
|
|
3465
3465
|
return builder;
|
|
3466
3466
|
},
|
|
3467
3467
|
build: () => inner.build()
|
|
@@ -3470,14 +3470,14 @@ let GcpFirewall;
|
|
|
3470
3470
|
};
|
|
3471
3471
|
_GcpFirewall.satisfy = (blueprint) => {
|
|
3472
3472
|
const params = getParametersInstance();
|
|
3473
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpFirewallType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
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);
|
|
3474
3474
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
3475
3475
|
if (description !== null) {
|
|
3476
3476
|
inner.withDescription(String(description));
|
|
3477
|
-
pushParam$
|
|
3477
|
+
pushParam$20(params, DESCRIPTION_PARAM, String(description));
|
|
3478
3478
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3479
3479
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
3480
|
-
if (ingressRules !== null) pushParam$
|
|
3480
|
+
if (ingressRules !== null) pushParam$20(params, INGRESS_RULES_PARAM, ingressRules);
|
|
3481
3481
|
return { build: () => inner.build() };
|
|
3482
3482
|
};
|
|
3483
3483
|
_GcpFirewall.create = (config) => {
|
|
@@ -3496,16 +3496,16 @@ const ZONE_PARAM = "zone";
|
|
|
3496
3496
|
const IMAGE_PROJECT_PARAM = "imageProject";
|
|
3497
3497
|
const IMAGE_FAMILY_PARAM = "imageFamily";
|
|
3498
3498
|
const SERVICE_ACCOUNT_EMAIL_PARAM = "serviceAccountEmail";
|
|
3499
|
-
function buildId$
|
|
3499
|
+
function buildId$21(id) {
|
|
3500
3500
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3501
3501
|
}
|
|
3502
|
-
function buildVersion$
|
|
3502
|
+
function buildVersion$21(major, minor, patch) {
|
|
3503
3503
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3504
3504
|
}
|
|
3505
3505
|
function buildGcpVmType() {
|
|
3506
3506
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_VM_TYPE_NAME).build()).build();
|
|
3507
3507
|
}
|
|
3508
|
-
function pushParam$
|
|
3508
|
+
function pushParam$19(params, key, value) {
|
|
3509
3509
|
params.push(key, value);
|
|
3510
3510
|
}
|
|
3511
3511
|
let GcpVm;
|
|
@@ -3515,11 +3515,11 @@ let GcpVm;
|
|
|
3515
3515
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpVmType()).withParameters(params).withProvider("GCP");
|
|
3516
3516
|
const builder = {
|
|
3517
3517
|
withId: (id) => {
|
|
3518
|
-
inner.withId(buildId$
|
|
3518
|
+
inner.withId(buildId$21(id));
|
|
3519
3519
|
return builder;
|
|
3520
3520
|
},
|
|
3521
3521
|
withVersion: (major, minor, patch) => {
|
|
3522
|
-
inner.withVersion(buildVersion$
|
|
3522
|
+
inner.withVersion(buildVersion$21(major, minor, patch));
|
|
3523
3523
|
return builder;
|
|
3524
3524
|
},
|
|
3525
3525
|
withDisplayName: (displayName) => {
|
|
@@ -3531,23 +3531,23 @@ let GcpVm;
|
|
|
3531
3531
|
return builder;
|
|
3532
3532
|
},
|
|
3533
3533
|
withMachineType: (value) => {
|
|
3534
|
-
pushParam$
|
|
3534
|
+
pushParam$19(params, MACHINE_TYPE_PARAM, value);
|
|
3535
3535
|
return builder;
|
|
3536
3536
|
},
|
|
3537
3537
|
withZone: (value) => {
|
|
3538
|
-
pushParam$
|
|
3538
|
+
pushParam$19(params, ZONE_PARAM, value);
|
|
3539
3539
|
return builder;
|
|
3540
3540
|
},
|
|
3541
3541
|
withImageProject: (value) => {
|
|
3542
|
-
pushParam$
|
|
3542
|
+
pushParam$19(params, IMAGE_PROJECT_PARAM, value);
|
|
3543
3543
|
return builder;
|
|
3544
3544
|
},
|
|
3545
3545
|
withImageFamily: (value) => {
|
|
3546
|
-
pushParam$
|
|
3546
|
+
pushParam$19(params, IMAGE_FAMILY_PARAM, value);
|
|
3547
3547
|
return builder;
|
|
3548
3548
|
},
|
|
3549
3549
|
withServiceAccountEmail: (value) => {
|
|
3550
|
-
pushParam$
|
|
3550
|
+
pushParam$19(params, SERVICE_ACCOUNT_EMAIL_PARAM, value);
|
|
3551
3551
|
return builder;
|
|
3552
3552
|
},
|
|
3553
3553
|
build: () => inner.build()
|
|
@@ -3556,27 +3556,27 @@ let GcpVm;
|
|
|
3556
3556
|
};
|
|
3557
3557
|
_GcpVm.satisfy = (blueprint) => {
|
|
3558
3558
|
const params = getParametersInstance();
|
|
3559
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpVmType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
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);
|
|
3560
3560
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3561
3561
|
const satisfiedBuilder = {
|
|
3562
3562
|
withMachineType: (value) => {
|
|
3563
|
-
pushParam$
|
|
3563
|
+
pushParam$19(params, MACHINE_TYPE_PARAM, value);
|
|
3564
3564
|
return satisfiedBuilder;
|
|
3565
3565
|
},
|
|
3566
3566
|
withZone: (value) => {
|
|
3567
|
-
pushParam$
|
|
3567
|
+
pushParam$19(params, ZONE_PARAM, value);
|
|
3568
3568
|
return satisfiedBuilder;
|
|
3569
3569
|
},
|
|
3570
3570
|
withImageProject: (value) => {
|
|
3571
|
-
pushParam$
|
|
3571
|
+
pushParam$19(params, IMAGE_PROJECT_PARAM, value);
|
|
3572
3572
|
return satisfiedBuilder;
|
|
3573
3573
|
},
|
|
3574
3574
|
withImageFamily: (value) => {
|
|
3575
|
-
pushParam$
|
|
3575
|
+
pushParam$19(params, IMAGE_FAMILY_PARAM, value);
|
|
3576
3576
|
return satisfiedBuilder;
|
|
3577
3577
|
},
|
|
3578
3578
|
withServiceAccountEmail: (value) => {
|
|
3579
|
-
pushParam$
|
|
3579
|
+
pushParam$19(params, SERVICE_ACCOUNT_EMAIL_PARAM, value);
|
|
3580
3580
|
return satisfiedBuilder;
|
|
3581
3581
|
},
|
|
3582
3582
|
build: () => inner.build()
|
|
@@ -3596,16 +3596,16 @@ let GcpVm;
|
|
|
3596
3596
|
//#region src/live_system/component/network_and_compute/iaas/oci_vcn.ts
|
|
3597
3597
|
const OCI_VCN_TYPE_NAME = "OciVcn";
|
|
3598
3598
|
const COMPARTMENT_ID_PARAM$3 = "compartmentId";
|
|
3599
|
-
function buildId$
|
|
3599
|
+
function buildId$20(id) {
|
|
3600
3600
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3601
3601
|
}
|
|
3602
|
-
function buildVersion$
|
|
3602
|
+
function buildVersion$20(major, minor, patch) {
|
|
3603
3603
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3604
3604
|
}
|
|
3605
3605
|
function buildOciVcnType() {
|
|
3606
3606
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_VCN_TYPE_NAME).build()).build();
|
|
3607
3607
|
}
|
|
3608
|
-
function pushParam$
|
|
3608
|
+
function pushParam$18(params, key, value) {
|
|
3609
3609
|
params.push(key, value);
|
|
3610
3610
|
}
|
|
3611
3611
|
let OciVcn;
|
|
@@ -3615,11 +3615,11 @@ let OciVcn;
|
|
|
3615
3615
|
const inner = getLiveSystemComponentBuilder().withType(buildOciVcnType()).withParameters(params).withProvider("OCI");
|
|
3616
3616
|
const builder = {
|
|
3617
3617
|
withId: (id) => {
|
|
3618
|
-
inner.withId(buildId$
|
|
3618
|
+
inner.withId(buildId$20(id));
|
|
3619
3619
|
return builder;
|
|
3620
3620
|
},
|
|
3621
3621
|
withVersion: (major, minor, patch) => {
|
|
3622
|
-
inner.withVersion(buildVersion$
|
|
3622
|
+
inner.withVersion(buildVersion$20(major, minor, patch));
|
|
3623
3623
|
return builder;
|
|
3624
3624
|
},
|
|
3625
3625
|
withDisplayName: (displayName) => {
|
|
@@ -3631,11 +3631,11 @@ let OciVcn;
|
|
|
3631
3631
|
return builder;
|
|
3632
3632
|
},
|
|
3633
3633
|
withCidrBlock: (value) => {
|
|
3634
|
-
pushParam$
|
|
3634
|
+
pushParam$18(params, CIDR_BLOCK_PARAM$1, value);
|
|
3635
3635
|
return builder;
|
|
3636
3636
|
},
|
|
3637
3637
|
withCompartmentId: (value) => {
|
|
3638
|
-
pushParam$
|
|
3638
|
+
pushParam$18(params, COMPARTMENT_ID_PARAM$3, value);
|
|
3639
3639
|
return builder;
|
|
3640
3640
|
},
|
|
3641
3641
|
build: () => inner.build()
|
|
@@ -3644,13 +3644,13 @@ let OciVcn;
|
|
|
3644
3644
|
};
|
|
3645
3645
|
_OciVcn.satisfy = (blueprint) => {
|
|
3646
3646
|
const params = getParametersInstance();
|
|
3647
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciVcnType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
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);
|
|
3648
3648
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3649
3649
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
3650
|
-
if (cidrBlock !== null) pushParam$
|
|
3650
|
+
if (cidrBlock !== null) pushParam$18(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
3651
3651
|
const satisfiedBuilder = {
|
|
3652
3652
|
withCompartmentId: (value) => {
|
|
3653
|
-
pushParam$
|
|
3653
|
+
pushParam$18(params, COMPARTMENT_ID_PARAM$3, value);
|
|
3654
3654
|
return satisfiedBuilder;
|
|
3655
3655
|
},
|
|
3656
3656
|
build: () => inner.build()
|
|
@@ -3670,16 +3670,16 @@ const OCI_SUBNET_TYPE_NAME = "OciSubnet";
|
|
|
3670
3670
|
const COMPARTMENT_ID_PARAM$2 = "compartmentId";
|
|
3671
3671
|
const AVAILABILITY_DOMAIN_PARAM$1 = "availabilityDomain";
|
|
3672
3672
|
const PROHIBIT_PUBLIC_IP_PARAM = "prohibitPublicIpOnVnic";
|
|
3673
|
-
function buildId$
|
|
3673
|
+
function buildId$19(id) {
|
|
3674
3674
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3675
3675
|
}
|
|
3676
|
-
function buildVersion$
|
|
3676
|
+
function buildVersion$19(major, minor, patch) {
|
|
3677
3677
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3678
3678
|
}
|
|
3679
3679
|
function buildOciSubnetType() {
|
|
3680
3680
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_SUBNET_TYPE_NAME).build()).build();
|
|
3681
3681
|
}
|
|
3682
|
-
function pushParam$
|
|
3682
|
+
function pushParam$17(params, key, value) {
|
|
3683
3683
|
params.push(key, value);
|
|
3684
3684
|
}
|
|
3685
3685
|
let OciSubnet;
|
|
@@ -3689,11 +3689,11 @@ let OciSubnet;
|
|
|
3689
3689
|
const inner = getLiveSystemComponentBuilder().withType(buildOciSubnetType()).withParameters(params).withProvider("OCI");
|
|
3690
3690
|
const builder = {
|
|
3691
3691
|
withId: (id) => {
|
|
3692
|
-
inner.withId(buildId$
|
|
3692
|
+
inner.withId(buildId$19(id));
|
|
3693
3693
|
return builder;
|
|
3694
3694
|
},
|
|
3695
3695
|
withVersion: (major, minor, patch) => {
|
|
3696
|
-
inner.withVersion(buildVersion$
|
|
3696
|
+
inner.withVersion(buildVersion$19(major, minor, patch));
|
|
3697
3697
|
return builder;
|
|
3698
3698
|
},
|
|
3699
3699
|
withDisplayName: (displayName) => {
|
|
@@ -3705,19 +3705,19 @@ let OciSubnet;
|
|
|
3705
3705
|
return builder;
|
|
3706
3706
|
},
|
|
3707
3707
|
withCidrBlock: (value) => {
|
|
3708
|
-
pushParam$
|
|
3708
|
+
pushParam$17(params, CIDR_BLOCK_PARAM, value);
|
|
3709
3709
|
return builder;
|
|
3710
3710
|
},
|
|
3711
3711
|
withCompartmentId: (value) => {
|
|
3712
|
-
pushParam$
|
|
3712
|
+
pushParam$17(params, COMPARTMENT_ID_PARAM$2, value);
|
|
3713
3713
|
return builder;
|
|
3714
3714
|
},
|
|
3715
3715
|
withAvailabilityDomain: (value) => {
|
|
3716
|
-
pushParam$
|
|
3716
|
+
pushParam$17(params, AVAILABILITY_DOMAIN_PARAM$1, value);
|
|
3717
3717
|
return builder;
|
|
3718
3718
|
},
|
|
3719
3719
|
withProhibitPublicIpOnVnic: (value) => {
|
|
3720
|
-
pushParam$
|
|
3720
|
+
pushParam$17(params, PROHIBIT_PUBLIC_IP_PARAM, value);
|
|
3721
3721
|
return builder;
|
|
3722
3722
|
},
|
|
3723
3723
|
build: () => inner.build()
|
|
@@ -3726,21 +3726,21 @@ let OciSubnet;
|
|
|
3726
3726
|
};
|
|
3727
3727
|
_OciSubnet.satisfy = (blueprint) => {
|
|
3728
3728
|
const params = getParametersInstance();
|
|
3729
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciSubnetType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
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);
|
|
3730
3730
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3731
3731
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
3732
|
-
if (cidrBlock !== null) pushParam$
|
|
3732
|
+
if (cidrBlock !== null) pushParam$17(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
3733
3733
|
const satisfiedBuilder = {
|
|
3734
3734
|
withCompartmentId: (value) => {
|
|
3735
|
-
pushParam$
|
|
3735
|
+
pushParam$17(params, COMPARTMENT_ID_PARAM$2, value);
|
|
3736
3736
|
return satisfiedBuilder;
|
|
3737
3737
|
},
|
|
3738
3738
|
withAvailabilityDomain: (value) => {
|
|
3739
|
-
pushParam$
|
|
3739
|
+
pushParam$17(params, AVAILABILITY_DOMAIN_PARAM$1, value);
|
|
3740
3740
|
return satisfiedBuilder;
|
|
3741
3741
|
},
|
|
3742
3742
|
withProhibitPublicIpOnVnic: (value) => {
|
|
3743
|
-
pushParam$
|
|
3743
|
+
pushParam$17(params, PROHIBIT_PUBLIC_IP_PARAM, value);
|
|
3744
3744
|
return satisfiedBuilder;
|
|
3745
3745
|
},
|
|
3746
3746
|
build: () => inner.build()
|
|
@@ -3760,16 +3760,16 @@ let OciSubnet;
|
|
|
3760
3760
|
//#region src/live_system/component/network_and_compute/iaas/oci_security_list.ts
|
|
3761
3761
|
const OCI_SECURITY_LIST_TYPE_NAME = "OciSecurityList";
|
|
3762
3762
|
const COMPARTMENT_ID_PARAM$1 = "compartmentId";
|
|
3763
|
-
function buildId$
|
|
3763
|
+
function buildId$18(id) {
|
|
3764
3764
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3765
3765
|
}
|
|
3766
|
-
function buildVersion$
|
|
3766
|
+
function buildVersion$18(major, minor, patch) {
|
|
3767
3767
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3768
3768
|
}
|
|
3769
3769
|
function buildOciSecurityListType() {
|
|
3770
3770
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_SECURITY_LIST_TYPE_NAME).build()).build();
|
|
3771
3771
|
}
|
|
3772
|
-
function pushParam$
|
|
3772
|
+
function pushParam$16(params, key, value) {
|
|
3773
3773
|
params.push(key, value);
|
|
3774
3774
|
}
|
|
3775
3775
|
let OciSecurityList;
|
|
@@ -3779,11 +3779,11 @@ let OciSecurityList;
|
|
|
3779
3779
|
const inner = getLiveSystemComponentBuilder().withType(buildOciSecurityListType()).withParameters(params).withProvider("OCI");
|
|
3780
3780
|
const builder = {
|
|
3781
3781
|
withId: (id) => {
|
|
3782
|
-
inner.withId(buildId$
|
|
3782
|
+
inner.withId(buildId$18(id));
|
|
3783
3783
|
return builder;
|
|
3784
3784
|
},
|
|
3785
3785
|
withVersion: (major, minor, patch) => {
|
|
3786
|
-
inner.withVersion(buildVersion$
|
|
3786
|
+
inner.withVersion(buildVersion$18(major, minor, patch));
|
|
3787
3787
|
return builder;
|
|
3788
3788
|
},
|
|
3789
3789
|
withDisplayName: (displayName) => {
|
|
@@ -3792,15 +3792,15 @@ let OciSecurityList;
|
|
|
3792
3792
|
},
|
|
3793
3793
|
withDescription: (description) => {
|
|
3794
3794
|
inner.withDescription(description);
|
|
3795
|
-
pushParam$
|
|
3795
|
+
pushParam$16(params, DESCRIPTION_PARAM, description);
|
|
3796
3796
|
return builder;
|
|
3797
3797
|
},
|
|
3798
3798
|
withIngressRules: (rules) => {
|
|
3799
|
-
pushParam$
|
|
3799
|
+
pushParam$16(params, INGRESS_RULES_PARAM, rules);
|
|
3800
3800
|
return builder;
|
|
3801
3801
|
},
|
|
3802
3802
|
withCompartmentId: (value) => {
|
|
3803
|
-
pushParam$
|
|
3803
|
+
pushParam$16(params, COMPARTMENT_ID_PARAM$1, value);
|
|
3804
3804
|
return builder;
|
|
3805
3805
|
},
|
|
3806
3806
|
build: () => inner.build()
|
|
@@ -3809,17 +3809,17 @@ let OciSecurityList;
|
|
|
3809
3809
|
};
|
|
3810
3810
|
_OciSecurityList.satisfy = (blueprint) => {
|
|
3811
3811
|
const params = getParametersInstance();
|
|
3812
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciSecurityListType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
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);
|
|
3813
3813
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
3814
3814
|
if (description !== null) {
|
|
3815
3815
|
inner.withDescription(String(description));
|
|
3816
|
-
pushParam$
|
|
3816
|
+
pushParam$16(params, DESCRIPTION_PARAM, String(description));
|
|
3817
3817
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3818
3818
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
3819
|
-
if (ingressRules !== null) pushParam$
|
|
3819
|
+
if (ingressRules !== null) pushParam$16(params, INGRESS_RULES_PARAM, ingressRules);
|
|
3820
3820
|
const satisfiedBuilder = {
|
|
3821
3821
|
withCompartmentId: (value) => {
|
|
3822
|
-
pushParam$
|
|
3822
|
+
pushParam$16(params, COMPARTMENT_ID_PARAM$1, value);
|
|
3823
3823
|
return satisfiedBuilder;
|
|
3824
3824
|
},
|
|
3825
3825
|
build: () => inner.build()
|
|
@@ -3844,16 +3844,16 @@ const IMAGE_ID_PARAM = "imageId";
|
|
|
3844
3844
|
const OCPUS_PARAM = "ocpus";
|
|
3845
3845
|
const MEMORY_IN_GBS_PARAM = "memoryInGbs";
|
|
3846
3846
|
const SSH_PUBLIC_KEY_PARAM = "sshPublicKey";
|
|
3847
|
-
function buildId$
|
|
3847
|
+
function buildId$17(id) {
|
|
3848
3848
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3849
3849
|
}
|
|
3850
|
-
function buildVersion$
|
|
3850
|
+
function buildVersion$17(major, minor, patch) {
|
|
3851
3851
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3852
3852
|
}
|
|
3853
3853
|
function buildOciInstanceType() {
|
|
3854
3854
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_INSTANCE_TYPE_NAME).build()).build();
|
|
3855
3855
|
}
|
|
3856
|
-
function pushParam$
|
|
3856
|
+
function pushParam$15(params, key, value) {
|
|
3857
3857
|
params.push(key, value);
|
|
3858
3858
|
}
|
|
3859
3859
|
let OciInstance;
|
|
@@ -3863,11 +3863,11 @@ let OciInstance;
|
|
|
3863
3863
|
const inner = getLiveSystemComponentBuilder().withType(buildOciInstanceType()).withParameters(params).withProvider("OCI");
|
|
3864
3864
|
const builder = {
|
|
3865
3865
|
withId: (id) => {
|
|
3866
|
-
inner.withId(buildId$
|
|
3866
|
+
inner.withId(buildId$17(id));
|
|
3867
3867
|
return builder;
|
|
3868
3868
|
},
|
|
3869
3869
|
withVersion: (major, minor, patch) => {
|
|
3870
|
-
inner.withVersion(buildVersion$
|
|
3870
|
+
inner.withVersion(buildVersion$17(major, minor, patch));
|
|
3871
3871
|
return builder;
|
|
3872
3872
|
},
|
|
3873
3873
|
withDisplayName: (displayName) => {
|
|
@@ -3879,31 +3879,31 @@ let OciInstance;
|
|
|
3879
3879
|
return builder;
|
|
3880
3880
|
},
|
|
3881
3881
|
withCompartmentId: (value) => {
|
|
3882
|
-
pushParam$
|
|
3882
|
+
pushParam$15(params, COMPARTMENT_ID_PARAM, value);
|
|
3883
3883
|
return builder;
|
|
3884
3884
|
},
|
|
3885
3885
|
withAvailabilityDomain: (value) => {
|
|
3886
|
-
pushParam$
|
|
3886
|
+
pushParam$15(params, AVAILABILITY_DOMAIN_PARAM, value);
|
|
3887
3887
|
return builder;
|
|
3888
3888
|
},
|
|
3889
3889
|
withShape: (value) => {
|
|
3890
|
-
pushParam$
|
|
3890
|
+
pushParam$15(params, SHAPE_PARAM, value);
|
|
3891
3891
|
return builder;
|
|
3892
3892
|
},
|
|
3893
3893
|
withImageId: (value) => {
|
|
3894
|
-
pushParam$
|
|
3894
|
+
pushParam$15(params, IMAGE_ID_PARAM, value);
|
|
3895
3895
|
return builder;
|
|
3896
3896
|
},
|
|
3897
3897
|
withOcpus: (value) => {
|
|
3898
|
-
pushParam$
|
|
3898
|
+
pushParam$15(params, OCPUS_PARAM, value);
|
|
3899
3899
|
return builder;
|
|
3900
3900
|
},
|
|
3901
3901
|
withMemoryInGbs: (value) => {
|
|
3902
|
-
pushParam$
|
|
3902
|
+
pushParam$15(params, MEMORY_IN_GBS_PARAM, value);
|
|
3903
3903
|
return builder;
|
|
3904
3904
|
},
|
|
3905
3905
|
withSshPublicKey: (value) => {
|
|
3906
|
-
pushParam$
|
|
3906
|
+
pushParam$15(params, SSH_PUBLIC_KEY_PARAM, value);
|
|
3907
3907
|
return builder;
|
|
3908
3908
|
},
|
|
3909
3909
|
build: () => inner.build()
|
|
@@ -3912,35 +3912,35 @@ let OciInstance;
|
|
|
3912
3912
|
};
|
|
3913
3913
|
_OciInstance.satisfy = (blueprint) => {
|
|
3914
3914
|
const params = getParametersInstance();
|
|
3915
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciInstanceType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
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);
|
|
3916
3916
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3917
3917
|
const satisfiedBuilder = {
|
|
3918
3918
|
withCompartmentId: (value) => {
|
|
3919
|
-
pushParam$
|
|
3919
|
+
pushParam$15(params, COMPARTMENT_ID_PARAM, value);
|
|
3920
3920
|
return satisfiedBuilder;
|
|
3921
3921
|
},
|
|
3922
3922
|
withAvailabilityDomain: (value) => {
|
|
3923
|
-
pushParam$
|
|
3923
|
+
pushParam$15(params, AVAILABILITY_DOMAIN_PARAM, value);
|
|
3924
3924
|
return satisfiedBuilder;
|
|
3925
3925
|
},
|
|
3926
3926
|
withShape: (value) => {
|
|
3927
|
-
pushParam$
|
|
3927
|
+
pushParam$15(params, SHAPE_PARAM, value);
|
|
3928
3928
|
return satisfiedBuilder;
|
|
3929
3929
|
},
|
|
3930
3930
|
withImageId: (value) => {
|
|
3931
|
-
pushParam$
|
|
3931
|
+
pushParam$15(params, IMAGE_ID_PARAM, value);
|
|
3932
3932
|
return satisfiedBuilder;
|
|
3933
3933
|
},
|
|
3934
3934
|
withOcpus: (value) => {
|
|
3935
|
-
pushParam$
|
|
3935
|
+
pushParam$15(params, OCPUS_PARAM, value);
|
|
3936
3936
|
return satisfiedBuilder;
|
|
3937
3937
|
},
|
|
3938
3938
|
withMemoryInGbs: (value) => {
|
|
3939
|
-
pushParam$
|
|
3939
|
+
pushParam$15(params, MEMORY_IN_GBS_PARAM, value);
|
|
3940
3940
|
return satisfiedBuilder;
|
|
3941
3941
|
},
|
|
3942
3942
|
withSshPublicKey: (value) => {
|
|
3943
|
-
pushParam$
|
|
3943
|
+
pushParam$15(params, SSH_PUBLIC_KEY_PARAM, value);
|
|
3944
3944
|
return satisfiedBuilder;
|
|
3945
3945
|
},
|
|
3946
3946
|
build: () => inner.build()
|
|
@@ -3960,16 +3960,16 @@ let OciInstance;
|
|
|
3960
3960
|
//#endregion
|
|
3961
3961
|
//#region src/live_system/component/network_and_compute/iaas/hetzner_network.ts
|
|
3962
3962
|
const HETZNER_NETWORK_TYPE_NAME = "HetznerNetwork";
|
|
3963
|
-
function buildId$
|
|
3963
|
+
function buildId$16(id) {
|
|
3964
3964
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3965
3965
|
}
|
|
3966
|
-
function buildVersion$
|
|
3966
|
+
function buildVersion$16(major, minor, patch) {
|
|
3967
3967
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3968
3968
|
}
|
|
3969
3969
|
function buildHetznerNetworkType() {
|
|
3970
3970
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_NETWORK_TYPE_NAME).build()).build();
|
|
3971
3971
|
}
|
|
3972
|
-
function pushParam$
|
|
3972
|
+
function pushParam$14(params, key, value) {
|
|
3973
3973
|
params.push(key, value);
|
|
3974
3974
|
}
|
|
3975
3975
|
let HetznerNetwork;
|
|
@@ -3979,11 +3979,11 @@ let HetznerNetwork;
|
|
|
3979
3979
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerNetworkType()).withParameters(params).withProvider("Hetzner");
|
|
3980
3980
|
const builder = {
|
|
3981
3981
|
withId: (id) => {
|
|
3982
|
-
inner.withId(buildId$
|
|
3982
|
+
inner.withId(buildId$16(id));
|
|
3983
3983
|
return builder;
|
|
3984
3984
|
},
|
|
3985
3985
|
withVersion: (major, minor, patch) => {
|
|
3986
|
-
inner.withVersion(buildVersion$
|
|
3986
|
+
inner.withVersion(buildVersion$16(major, minor, patch));
|
|
3987
3987
|
return builder;
|
|
3988
3988
|
},
|
|
3989
3989
|
withDisplayName: (displayName) => {
|
|
@@ -3995,7 +3995,7 @@ let HetznerNetwork;
|
|
|
3995
3995
|
return builder;
|
|
3996
3996
|
},
|
|
3997
3997
|
withCidrBlock: (value) => {
|
|
3998
|
-
pushParam$
|
|
3998
|
+
pushParam$14(params, CIDR_BLOCK_PARAM$1, value);
|
|
3999
3999
|
return builder;
|
|
4000
4000
|
},
|
|
4001
4001
|
build: () => inner.build()
|
|
@@ -4004,10 +4004,10 @@ let HetznerNetwork;
|
|
|
4004
4004
|
};
|
|
4005
4005
|
_HetznerNetwork.satisfy = (blueprint) => {
|
|
4006
4006
|
const params = getParametersInstance();
|
|
4007
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerNetworkType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
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);
|
|
4008
4008
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4009
4009
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
4010
|
-
if (cidrBlock !== null) pushParam$
|
|
4010
|
+
if (cidrBlock !== null) pushParam$14(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
4011
4011
|
return { build: () => inner.build() };
|
|
4012
4012
|
};
|
|
4013
4013
|
_HetznerNetwork.create = (config) => {
|
|
@@ -4022,16 +4022,16 @@ let HetznerNetwork;
|
|
|
4022
4022
|
const HETZNER_SUBNET_TYPE_NAME = "HetznerSubnet";
|
|
4023
4023
|
const NETWORK_ZONE_PARAM = "networkZone";
|
|
4024
4024
|
const TYPE_PARAM = "type";
|
|
4025
|
-
function buildId$
|
|
4025
|
+
function buildId$15(id) {
|
|
4026
4026
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4027
4027
|
}
|
|
4028
|
-
function buildVersion$
|
|
4028
|
+
function buildVersion$15(major, minor, patch) {
|
|
4029
4029
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4030
4030
|
}
|
|
4031
4031
|
function buildHetznerSubnetType() {
|
|
4032
4032
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_SUBNET_TYPE_NAME).build()).build();
|
|
4033
4033
|
}
|
|
4034
|
-
function pushParam$
|
|
4034
|
+
function pushParam$13(params, key, value) {
|
|
4035
4035
|
params.push(key, value);
|
|
4036
4036
|
}
|
|
4037
4037
|
let HetznerSubnet;
|
|
@@ -4041,11 +4041,11 @@ let HetznerSubnet;
|
|
|
4041
4041
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerSubnetType()).withParameters(params).withProvider("Hetzner");
|
|
4042
4042
|
const builder = {
|
|
4043
4043
|
withId: (id) => {
|
|
4044
|
-
inner.withId(buildId$
|
|
4044
|
+
inner.withId(buildId$15(id));
|
|
4045
4045
|
return builder;
|
|
4046
4046
|
},
|
|
4047
4047
|
withVersion: (major, minor, patch) => {
|
|
4048
|
-
inner.withVersion(buildVersion$
|
|
4048
|
+
inner.withVersion(buildVersion$15(major, minor, patch));
|
|
4049
4049
|
return builder;
|
|
4050
4050
|
},
|
|
4051
4051
|
withDisplayName: (displayName) => {
|
|
@@ -4057,15 +4057,15 @@ let HetznerSubnet;
|
|
|
4057
4057
|
return builder;
|
|
4058
4058
|
},
|
|
4059
4059
|
withCidrBlock: (value) => {
|
|
4060
|
-
pushParam$
|
|
4060
|
+
pushParam$13(params, CIDR_BLOCK_PARAM, value);
|
|
4061
4061
|
return builder;
|
|
4062
4062
|
},
|
|
4063
4063
|
withNetworkZone: (value) => {
|
|
4064
|
-
pushParam$
|
|
4064
|
+
pushParam$13(params, NETWORK_ZONE_PARAM, value);
|
|
4065
4065
|
return builder;
|
|
4066
4066
|
},
|
|
4067
4067
|
withType: (value) => {
|
|
4068
|
-
pushParam$
|
|
4068
|
+
pushParam$13(params, TYPE_PARAM, value);
|
|
4069
4069
|
return builder;
|
|
4070
4070
|
},
|
|
4071
4071
|
build: () => inner.build()
|
|
@@ -4074,17 +4074,17 @@ let HetznerSubnet;
|
|
|
4074
4074
|
};
|
|
4075
4075
|
_HetznerSubnet.satisfy = (blueprint) => {
|
|
4076
4076
|
const params = getParametersInstance();
|
|
4077
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerSubnetType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
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);
|
|
4078
4078
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4079
4079
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
4080
|
-
if (cidrBlock !== null) pushParam$
|
|
4080
|
+
if (cidrBlock !== null) pushParam$13(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
4081
4081
|
const satisfiedBuilder = {
|
|
4082
4082
|
withNetworkZone: (value) => {
|
|
4083
|
-
pushParam$
|
|
4083
|
+
pushParam$13(params, NETWORK_ZONE_PARAM, value);
|
|
4084
4084
|
return satisfiedBuilder;
|
|
4085
4085
|
},
|
|
4086
4086
|
withType: (value) => {
|
|
4087
|
-
pushParam$
|
|
4087
|
+
pushParam$13(params, TYPE_PARAM, value);
|
|
4088
4088
|
return satisfiedBuilder;
|
|
4089
4089
|
},
|
|
4090
4090
|
build: () => inner.build()
|
|
@@ -4102,16 +4102,16 @@ let HetznerSubnet;
|
|
|
4102
4102
|
//#endregion
|
|
4103
4103
|
//#region src/live_system/component/network_and_compute/iaas/hetzner_firewall.ts
|
|
4104
4104
|
const HETZNER_FIREWALL_TYPE_NAME = "HetznerFirewall";
|
|
4105
|
-
function buildId$
|
|
4105
|
+
function buildId$14(id) {
|
|
4106
4106
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4107
4107
|
}
|
|
4108
|
-
function buildVersion$
|
|
4108
|
+
function buildVersion$14(major, minor, patch) {
|
|
4109
4109
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4110
4110
|
}
|
|
4111
4111
|
function buildHetznerFirewallType() {
|
|
4112
4112
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_FIREWALL_TYPE_NAME).build()).build();
|
|
4113
4113
|
}
|
|
4114
|
-
function pushParam$
|
|
4114
|
+
function pushParam$12(params, key, value) {
|
|
4115
4115
|
params.push(key, value);
|
|
4116
4116
|
}
|
|
4117
4117
|
let HetznerFirewall;
|
|
@@ -4121,11 +4121,11 @@ let HetznerFirewall;
|
|
|
4121
4121
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerFirewallType()).withParameters(params).withProvider("Hetzner");
|
|
4122
4122
|
const builder = {
|
|
4123
4123
|
withId: (id) => {
|
|
4124
|
-
inner.withId(buildId$
|
|
4124
|
+
inner.withId(buildId$14(id));
|
|
4125
4125
|
return builder;
|
|
4126
4126
|
},
|
|
4127
4127
|
withVersion: (major, minor, patch) => {
|
|
4128
|
-
inner.withVersion(buildVersion$
|
|
4128
|
+
inner.withVersion(buildVersion$14(major, minor, patch));
|
|
4129
4129
|
return builder;
|
|
4130
4130
|
},
|
|
4131
4131
|
withDisplayName: (displayName) => {
|
|
@@ -4134,11 +4134,11 @@ let HetznerFirewall;
|
|
|
4134
4134
|
},
|
|
4135
4135
|
withDescription: (description) => {
|
|
4136
4136
|
inner.withDescription(description);
|
|
4137
|
-
pushParam$
|
|
4137
|
+
pushParam$12(params, DESCRIPTION_PARAM, description);
|
|
4138
4138
|
return builder;
|
|
4139
4139
|
},
|
|
4140
4140
|
withIngressRules: (rules) => {
|
|
4141
|
-
pushParam$
|
|
4141
|
+
pushParam$12(params, INGRESS_RULES_PARAM, rules);
|
|
4142
4142
|
return builder;
|
|
4143
4143
|
},
|
|
4144
4144
|
build: () => inner.build()
|
|
@@ -4147,14 +4147,14 @@ let HetznerFirewall;
|
|
|
4147
4147
|
};
|
|
4148
4148
|
_HetznerFirewall.satisfy = (blueprint) => {
|
|
4149
4149
|
const params = getParametersInstance();
|
|
4150
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerFirewallType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
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);
|
|
4151
4151
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
4152
4152
|
if (description !== null) {
|
|
4153
4153
|
inner.withDescription(String(description));
|
|
4154
|
-
pushParam$
|
|
4154
|
+
pushParam$12(params, DESCRIPTION_PARAM, String(description));
|
|
4155
4155
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4156
4156
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
4157
|
-
if (ingressRules !== null) pushParam$
|
|
4157
|
+
if (ingressRules !== null) pushParam$12(params, INGRESS_RULES_PARAM, ingressRules);
|
|
4158
4158
|
return { build: () => inner.build() };
|
|
4159
4159
|
};
|
|
4160
4160
|
_HetznerFirewall.create = (config) => {
|
|
@@ -4173,16 +4173,16 @@ const LOCATION_PARAM = "location";
|
|
|
4173
4173
|
const IMAGE_PARAM = "image";
|
|
4174
4174
|
const SSH_KEYS_PARAM = "sshKeys";
|
|
4175
4175
|
const USER_DATA_PARAM = "userData";
|
|
4176
|
-
function buildId$
|
|
4176
|
+
function buildId$13(id) {
|
|
4177
4177
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4178
4178
|
}
|
|
4179
|
-
function buildVersion$
|
|
4179
|
+
function buildVersion$13(major, minor, patch) {
|
|
4180
4180
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4181
4181
|
}
|
|
4182
4182
|
function buildHetznerServerType() {
|
|
4183
4183
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_SERVER_TYPE_NAME).build()).build();
|
|
4184
4184
|
}
|
|
4185
|
-
function pushParam$
|
|
4185
|
+
function pushParam$11(params, key, value) {
|
|
4186
4186
|
params.push(key, value);
|
|
4187
4187
|
}
|
|
4188
4188
|
let HetznerServer;
|
|
@@ -4192,11 +4192,11 @@ let HetznerServer;
|
|
|
4192
4192
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerServerType()).withParameters(params).withProvider("Hetzner");
|
|
4193
4193
|
const builder = {
|
|
4194
4194
|
withId: (id) => {
|
|
4195
|
-
inner.withId(buildId$
|
|
4195
|
+
inner.withId(buildId$13(id));
|
|
4196
4196
|
return builder;
|
|
4197
4197
|
},
|
|
4198
4198
|
withVersion: (major, minor, patch) => {
|
|
4199
|
-
inner.withVersion(buildVersion$
|
|
4199
|
+
inner.withVersion(buildVersion$13(major, minor, patch));
|
|
4200
4200
|
return builder;
|
|
4201
4201
|
},
|
|
4202
4202
|
withDisplayName: (displayName) => {
|
|
@@ -4208,23 +4208,23 @@ let HetznerServer;
|
|
|
4208
4208
|
return builder;
|
|
4209
4209
|
},
|
|
4210
4210
|
withServerType: (value) => {
|
|
4211
|
-
pushParam$
|
|
4211
|
+
pushParam$11(params, SERVER_TYPE_PARAM, value);
|
|
4212
4212
|
return builder;
|
|
4213
4213
|
},
|
|
4214
4214
|
withLocation: (value) => {
|
|
4215
|
-
pushParam$
|
|
4215
|
+
pushParam$11(params, LOCATION_PARAM, value);
|
|
4216
4216
|
return builder;
|
|
4217
4217
|
},
|
|
4218
4218
|
withImage: (value) => {
|
|
4219
|
-
pushParam$
|
|
4219
|
+
pushParam$11(params, IMAGE_PARAM, value);
|
|
4220
4220
|
return builder;
|
|
4221
4221
|
},
|
|
4222
4222
|
withSshKeys: (value) => {
|
|
4223
|
-
pushParam$
|
|
4223
|
+
pushParam$11(params, SSH_KEYS_PARAM, value);
|
|
4224
4224
|
return builder;
|
|
4225
4225
|
},
|
|
4226
4226
|
withUserData: (value) => {
|
|
4227
|
-
pushParam$
|
|
4227
|
+
pushParam$11(params, USER_DATA_PARAM, value);
|
|
4228
4228
|
return builder;
|
|
4229
4229
|
},
|
|
4230
4230
|
build: () => inner.build()
|
|
@@ -4233,27 +4233,27 @@ let HetznerServer;
|
|
|
4233
4233
|
};
|
|
4234
4234
|
_HetznerServer.satisfy = (blueprint) => {
|
|
4235
4235
|
const params = getParametersInstance();
|
|
4236
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerServerType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
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);
|
|
4237
4237
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4238
4238
|
const satisfiedBuilder = {
|
|
4239
4239
|
withServerType: (value) => {
|
|
4240
|
-
pushParam$
|
|
4240
|
+
pushParam$11(params, SERVER_TYPE_PARAM, value);
|
|
4241
4241
|
return satisfiedBuilder;
|
|
4242
4242
|
},
|
|
4243
4243
|
withLocation: (value) => {
|
|
4244
|
-
pushParam$
|
|
4244
|
+
pushParam$11(params, LOCATION_PARAM, value);
|
|
4245
4245
|
return satisfiedBuilder;
|
|
4246
4246
|
},
|
|
4247
4247
|
withImage: (value) => {
|
|
4248
|
-
pushParam$
|
|
4248
|
+
pushParam$11(params, IMAGE_PARAM, value);
|
|
4249
4249
|
return satisfiedBuilder;
|
|
4250
4250
|
},
|
|
4251
4251
|
withSshKeys: (value) => {
|
|
4252
|
-
pushParam$
|
|
4252
|
+
pushParam$11(params, SSH_KEYS_PARAM, value);
|
|
4253
4253
|
return satisfiedBuilder;
|
|
4254
4254
|
},
|
|
4255
4255
|
withUserData: (value) => {
|
|
4256
|
-
pushParam$
|
|
4256
|
+
pushParam$11(params, USER_DATA_PARAM, value);
|
|
4257
4257
|
return satisfiedBuilder;
|
|
4258
4258
|
},
|
|
4259
4259
|
build: () => inner.build()
|
|
@@ -4272,10 +4272,10 @@ let HetznerServer;
|
|
|
4272
4272
|
//#endregion
|
|
4273
4273
|
//#region src/fractal/component/network_and_compute/paas/container_platform.ts
|
|
4274
4274
|
const CONTAINER_PLATFORM_TYPE_NAME = "ContainerPlatform";
|
|
4275
|
-
function buildId$
|
|
4275
|
+
function buildId$12(id) {
|
|
4276
4276
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4277
4277
|
}
|
|
4278
|
-
function buildVersion$
|
|
4278
|
+
function buildVersion$12(major, minor, patch) {
|
|
4279
4279
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4280
4280
|
}
|
|
4281
4281
|
function buildContainerPlatformType() {
|
|
@@ -4302,11 +4302,11 @@ let ContainerPlatform;
|
|
|
4302
4302
|
const inner = getBlueprintComponentBuilder().withType(buildContainerPlatformType()).withParameters(params);
|
|
4303
4303
|
const builder = {
|
|
4304
4304
|
withId: (id) => {
|
|
4305
|
-
inner.withId(buildId$
|
|
4305
|
+
inner.withId(buildId$12(id));
|
|
4306
4306
|
return builder;
|
|
4307
4307
|
},
|
|
4308
4308
|
withVersion: (major, minor, patch) => {
|
|
4309
|
-
inner.withVersion(buildVersion$
|
|
4309
|
+
inner.withVersion(buildVersion$12(major, minor, patch));
|
|
4310
4310
|
return builder;
|
|
4311
4311
|
},
|
|
4312
4312
|
withDisplayName: (displayName) => {
|
|
@@ -4337,16 +4337,16 @@ const CONTAINER_NAME_PARAM = "containerName";
|
|
|
4337
4337
|
const CPU_PARAM = "cpu";
|
|
4338
4338
|
const MEMORY_PARAM = "memory";
|
|
4339
4339
|
const DESIRED_COUNT_PARAM = "desiredCount";
|
|
4340
|
-
function buildId$
|
|
4340
|
+
function buildId$11(id) {
|
|
4341
4341
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4342
4342
|
}
|
|
4343
|
-
function buildVersion$
|
|
4343
|
+
function buildVersion$11(major, minor, patch) {
|
|
4344
4344
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4345
4345
|
}
|
|
4346
4346
|
function buildWorkloadType() {
|
|
4347
4347
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.CustomWorkloads).withServiceDeliveryModel(ServiceDeliveryModel$1.CaaS).withName(PascalCaseString$1.getBuilder().withValue(WORKLOAD_TYPE_NAME).build()).build();
|
|
4348
4348
|
}
|
|
4349
|
-
function pushParam$
|
|
4349
|
+
function pushParam$10(params, key, value) {
|
|
4350
4350
|
params.push(key, value);
|
|
4351
4351
|
}
|
|
4352
4352
|
function buildLinkParams(fromPort, toPort, protocol) {
|
|
@@ -4383,11 +4383,11 @@ let Workload;
|
|
|
4383
4383
|
const inner = getBlueprintComponentBuilder().withType(buildWorkloadType()).withParameters(params);
|
|
4384
4384
|
const builder = {
|
|
4385
4385
|
withId: (id) => {
|
|
4386
|
-
inner.withId(buildId$
|
|
4386
|
+
inner.withId(buildId$11(id));
|
|
4387
4387
|
return builder;
|
|
4388
4388
|
},
|
|
4389
4389
|
withVersion: (major, minor, patch) => {
|
|
4390
|
-
inner.withVersion(buildVersion$
|
|
4390
|
+
inner.withVersion(buildVersion$11(major, minor, patch));
|
|
4391
4391
|
return builder;
|
|
4392
4392
|
},
|
|
4393
4393
|
withDisplayName: (displayName) => {
|
|
@@ -4399,27 +4399,27 @@ let Workload;
|
|
|
4399
4399
|
return builder;
|
|
4400
4400
|
},
|
|
4401
4401
|
withContainerImage: (image) => {
|
|
4402
|
-
pushParam$
|
|
4402
|
+
pushParam$10(params, CONTAINER_IMAGE_PARAM, image);
|
|
4403
4403
|
return builder;
|
|
4404
4404
|
},
|
|
4405
4405
|
withContainerPort: (port) => {
|
|
4406
|
-
pushParam$
|
|
4406
|
+
pushParam$10(params, CONTAINER_PORT_PARAM, port);
|
|
4407
4407
|
return builder;
|
|
4408
4408
|
},
|
|
4409
4409
|
withContainerName: (name) => {
|
|
4410
|
-
pushParam$
|
|
4410
|
+
pushParam$10(params, CONTAINER_NAME_PARAM, name);
|
|
4411
4411
|
return builder;
|
|
4412
4412
|
},
|
|
4413
4413
|
withCpu: (cpu) => {
|
|
4414
|
-
pushParam$
|
|
4414
|
+
pushParam$10(params, CPU_PARAM, cpu);
|
|
4415
4415
|
return builder;
|
|
4416
4416
|
},
|
|
4417
4417
|
withMemory: (memory) => {
|
|
4418
|
-
pushParam$
|
|
4418
|
+
pushParam$10(params, MEMORY_PARAM, memory);
|
|
4419
4419
|
return builder;
|
|
4420
4420
|
},
|
|
4421
4421
|
withDesiredCount: (count) => {
|
|
4422
|
-
pushParam$
|
|
4422
|
+
pushParam$10(params, DESIRED_COUNT_PARAM, count);
|
|
4423
4423
|
return builder;
|
|
4424
4424
|
},
|
|
4425
4425
|
build: () => inner.build()
|
|
@@ -4438,13 +4438,178 @@ let Workload;
|
|
|
4438
4438
|
};
|
|
4439
4439
|
})(Workload || (Workload = {}));
|
|
4440
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
|
+
|
|
4441
4606
|
//#endregion
|
|
4442
4607
|
//#region src/live_system/component/network_and_compute/paas/ecs_cluster.ts
|
|
4443
4608
|
const ECS_CLUSTER_TYPE_NAME = "ECS";
|
|
4444
|
-
function buildId$
|
|
4609
|
+
function buildId$9(id) {
|
|
4445
4610
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4446
4611
|
}
|
|
4447
|
-
function buildVersion$
|
|
4612
|
+
function buildVersion$9(major, minor, patch) {
|
|
4448
4613
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4449
4614
|
}
|
|
4450
4615
|
function buildAwsEcsClusterType() {
|
|
@@ -4457,11 +4622,11 @@ let AwsEcsCluster;
|
|
|
4457
4622
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsClusterType()).withParameters(params).withProvider("AWS");
|
|
4458
4623
|
const builder = {
|
|
4459
4624
|
withId: (id) => {
|
|
4460
|
-
inner.withId(buildId$
|
|
4625
|
+
inner.withId(buildId$9(id));
|
|
4461
4626
|
return builder;
|
|
4462
4627
|
},
|
|
4463
4628
|
withVersion: (major, minor, patch) => {
|
|
4464
|
-
inner.withVersion(buildVersion$
|
|
4629
|
+
inner.withVersion(buildVersion$9(major, minor, patch));
|
|
4465
4630
|
return builder;
|
|
4466
4631
|
},
|
|
4467
4632
|
withDisplayName: (displayName) => {
|
|
@@ -4477,7 +4642,7 @@ let AwsEcsCluster;
|
|
|
4477
4642
|
return builder;
|
|
4478
4643
|
};
|
|
4479
4644
|
_AwsEcsCluster.satisfy = (platform) => {
|
|
4480
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsClusterType()).withParameters(getParametersInstance()).withProvider("AWS").withId(buildId$
|
|
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);
|
|
4481
4646
|
if (platform.description) inner.withDescription(platform.description);
|
|
4482
4647
|
return { build: () => inner.build() };
|
|
4483
4648
|
};
|
|
@@ -4494,16 +4659,16 @@ const ECS_TASK_DEF_TYPE_NAME = "ECSTaskDefinition";
|
|
|
4494
4659
|
const NETWORK_MODE_PARAM = "networkMode";
|
|
4495
4660
|
const EXECUTION_ROLE_ARN_PARAM = "executionRoleArn";
|
|
4496
4661
|
const TASK_ROLE_ARN_PARAM = "taskRoleArn";
|
|
4497
|
-
function buildId$
|
|
4662
|
+
function buildId$8(id) {
|
|
4498
4663
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4499
4664
|
}
|
|
4500
|
-
function buildVersion$
|
|
4665
|
+
function buildVersion$8(major, minor, patch) {
|
|
4501
4666
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4502
4667
|
}
|
|
4503
4668
|
function buildAwsEcsTaskDefType() {
|
|
4504
4669
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(ECS_TASK_DEF_TYPE_NAME).build()).build();
|
|
4505
4670
|
}
|
|
4506
|
-
function pushParam$
|
|
4671
|
+
function pushParam$8(params, key, value) {
|
|
4507
4672
|
params.push(key, value);
|
|
4508
4673
|
}
|
|
4509
4674
|
let AwsEcsTaskDefinition;
|
|
@@ -4513,11 +4678,11 @@ let AwsEcsTaskDefinition;
|
|
|
4513
4678
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsTaskDefType()).withParameters(params).withProvider("AWS");
|
|
4514
4679
|
const builder = {
|
|
4515
4680
|
withId: (id) => {
|
|
4516
|
-
inner.withId(buildId$
|
|
4681
|
+
inner.withId(buildId$8(id));
|
|
4517
4682
|
return builder;
|
|
4518
4683
|
},
|
|
4519
4684
|
withVersion: (major, minor, patch) => {
|
|
4520
|
-
inner.withVersion(buildVersion$
|
|
4685
|
+
inner.withVersion(buildVersion$8(major, minor, patch));
|
|
4521
4686
|
return builder;
|
|
4522
4687
|
},
|
|
4523
4688
|
withDisplayName: (displayName) => {
|
|
@@ -4529,35 +4694,35 @@ let AwsEcsTaskDefinition;
|
|
|
4529
4694
|
return builder;
|
|
4530
4695
|
},
|
|
4531
4696
|
withContainerImage: (image) => {
|
|
4532
|
-
pushParam$
|
|
4697
|
+
pushParam$8(params, CONTAINER_IMAGE_PARAM, image);
|
|
4533
4698
|
return builder;
|
|
4534
4699
|
},
|
|
4535
4700
|
withContainerPort: (port) => {
|
|
4536
|
-
pushParam$
|
|
4701
|
+
pushParam$8(params, CONTAINER_PORT_PARAM, port);
|
|
4537
4702
|
return builder;
|
|
4538
4703
|
},
|
|
4539
4704
|
withContainerName: (name) => {
|
|
4540
|
-
pushParam$
|
|
4705
|
+
pushParam$8(params, CONTAINER_NAME_PARAM, name);
|
|
4541
4706
|
return builder;
|
|
4542
4707
|
},
|
|
4543
4708
|
withCpu: (cpu) => {
|
|
4544
|
-
pushParam$
|
|
4709
|
+
pushParam$8(params, CPU_PARAM, cpu);
|
|
4545
4710
|
return builder;
|
|
4546
4711
|
},
|
|
4547
4712
|
withMemory: (memory) => {
|
|
4548
|
-
pushParam$
|
|
4713
|
+
pushParam$8(params, MEMORY_PARAM, memory);
|
|
4549
4714
|
return builder;
|
|
4550
4715
|
},
|
|
4551
4716
|
withNetworkMode: (mode) => {
|
|
4552
|
-
pushParam$
|
|
4717
|
+
pushParam$8(params, NETWORK_MODE_PARAM, mode);
|
|
4553
4718
|
return builder;
|
|
4554
4719
|
},
|
|
4555
4720
|
withExecutionRoleArn: (arn) => {
|
|
4556
|
-
pushParam$
|
|
4721
|
+
pushParam$8(params, EXECUTION_ROLE_ARN_PARAM, arn);
|
|
4557
4722
|
return builder;
|
|
4558
4723
|
},
|
|
4559
4724
|
withTaskRoleArn: (arn) => {
|
|
4560
|
-
pushParam$
|
|
4725
|
+
pushParam$8(params, TASK_ROLE_ARN_PARAM, arn);
|
|
4561
4726
|
return builder;
|
|
4562
4727
|
},
|
|
4563
4728
|
build: () => inner.build()
|
|
@@ -4567,7 +4732,7 @@ let AwsEcsTaskDefinition;
|
|
|
4567
4732
|
_AwsEcsTaskDefinition.satisfy = (workload) => {
|
|
4568
4733
|
const params = getParametersInstance();
|
|
4569
4734
|
const taskId = `${workload.id.toString()}-task`;
|
|
4570
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsTaskDefType()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
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);
|
|
4571
4736
|
if (workload.description) inner.withDescription(workload.description);
|
|
4572
4737
|
for (const key of [
|
|
4573
4738
|
CONTAINER_IMAGE_PARAM,
|
|
@@ -4577,19 +4742,19 @@ let AwsEcsTaskDefinition;
|
|
|
4577
4742
|
MEMORY_PARAM
|
|
4578
4743
|
]) {
|
|
4579
4744
|
const v = workload.parameters.getOptionalFieldByName(key);
|
|
4580
|
-
if (v !== null) pushParam$
|
|
4745
|
+
if (v !== null) pushParam$8(params, key, v);
|
|
4581
4746
|
}
|
|
4582
4747
|
const satisfiedBuilder = {
|
|
4583
4748
|
withNetworkMode: (mode) => {
|
|
4584
|
-
pushParam$
|
|
4749
|
+
pushParam$8(params, NETWORK_MODE_PARAM, mode);
|
|
4585
4750
|
return satisfiedBuilder;
|
|
4586
4751
|
},
|
|
4587
4752
|
withExecutionRoleArn: (arn) => {
|
|
4588
|
-
pushParam$
|
|
4753
|
+
pushParam$8(params, EXECUTION_ROLE_ARN_PARAM, arn);
|
|
4589
4754
|
return satisfiedBuilder;
|
|
4590
4755
|
},
|
|
4591
4756
|
withTaskRoleArn: (arn) => {
|
|
4592
|
-
pushParam$
|
|
4757
|
+
pushParam$8(params, TASK_ROLE_ARN_PARAM, arn);
|
|
4593
4758
|
return satisfiedBuilder;
|
|
4594
4759
|
},
|
|
4595
4760
|
build: () => inner.build()
|
|
@@ -4615,16 +4780,16 @@ let AwsEcsTaskDefinition;
|
|
|
4615
4780
|
const ECS_SERVICE_TYPE_NAME = "ECSService";
|
|
4616
4781
|
const LAUNCH_TYPE_PARAM = "launchType";
|
|
4617
4782
|
const ASSIGN_PUBLIC_IP_PARAM = "assignPublicIp";
|
|
4618
|
-
function buildId(id) {
|
|
4783
|
+
function buildId$7(id) {
|
|
4619
4784
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4620
4785
|
}
|
|
4621
|
-
function buildVersion(major, minor, patch) {
|
|
4786
|
+
function buildVersion$7(major, minor, patch) {
|
|
4622
4787
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4623
4788
|
}
|
|
4624
4789
|
function buildAwsEcsServiceType() {
|
|
4625
4790
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(ECS_SERVICE_TYPE_NAME).build()).build();
|
|
4626
4791
|
}
|
|
4627
|
-
function pushParam(params, key, value) {
|
|
4792
|
+
function pushParam$7(params, key, value) {
|
|
4628
4793
|
params.push(key, value);
|
|
4629
4794
|
}
|
|
4630
4795
|
let AwsEcsService;
|
|
@@ -4634,11 +4799,11 @@ let AwsEcsService;
|
|
|
4634
4799
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsServiceType()).withParameters(params).withProvider("AWS");
|
|
4635
4800
|
const builder = {
|
|
4636
4801
|
withId: (id) => {
|
|
4637
|
-
inner.withId(buildId(id));
|
|
4802
|
+
inner.withId(buildId$7(id));
|
|
4638
4803
|
return builder;
|
|
4639
4804
|
},
|
|
4640
4805
|
withVersion: (major, minor, patch) => {
|
|
4641
|
-
inner.withVersion(buildVersion(major, minor, patch));
|
|
4806
|
+
inner.withVersion(buildVersion$7(major, minor, patch));
|
|
4642
4807
|
return builder;
|
|
4643
4808
|
},
|
|
4644
4809
|
withDisplayName: (displayName) => {
|
|
@@ -4650,15 +4815,15 @@ let AwsEcsService;
|
|
|
4650
4815
|
return builder;
|
|
4651
4816
|
},
|
|
4652
4817
|
withDesiredCount: (count) => {
|
|
4653
|
-
pushParam(params, DESIRED_COUNT_PARAM, count);
|
|
4818
|
+
pushParam$7(params, DESIRED_COUNT_PARAM, count);
|
|
4654
4819
|
return builder;
|
|
4655
4820
|
},
|
|
4656
4821
|
withLaunchType: (type) => {
|
|
4657
|
-
pushParam(params, LAUNCH_TYPE_PARAM, type);
|
|
4822
|
+
pushParam$7(params, LAUNCH_TYPE_PARAM, type);
|
|
4658
4823
|
return builder;
|
|
4659
4824
|
},
|
|
4660
4825
|
withAssignPublicIp: (assign) => {
|
|
4661
|
-
pushParam(params, ASSIGN_PUBLIC_IP_PARAM, assign);
|
|
4826
|
+
pushParam$7(params, ASSIGN_PUBLIC_IP_PARAM, assign);
|
|
4662
4827
|
return builder;
|
|
4663
4828
|
},
|
|
4664
4829
|
build: () => inner.build()
|
|
@@ -4668,17 +4833,17 @@ let AwsEcsService;
|
|
|
4668
4833
|
_AwsEcsService.satisfy = (workload) => {
|
|
4669
4834
|
const params = getParametersInstance();
|
|
4670
4835
|
const deps = [...workload.dependencies];
|
|
4671
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsServiceType()).withParameters(params).withProvider("AWS").withId(buildId(workload.id.toString())).withVersion(buildVersion(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(deps).withLinks(workload.links);
|
|
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);
|
|
4672
4837
|
if (workload.description) inner.withDescription(workload.description);
|
|
4673
4838
|
const desiredCount = workload.parameters.getOptionalFieldByName(DESIRED_COUNT_PARAM);
|
|
4674
|
-
if (desiredCount !== null) pushParam(params, DESIRED_COUNT_PARAM, desiredCount);
|
|
4839
|
+
if (desiredCount !== null) pushParam$7(params, DESIRED_COUNT_PARAM, desiredCount);
|
|
4675
4840
|
const satisfiedBuilder = {
|
|
4676
4841
|
withLaunchType: (type) => {
|
|
4677
|
-
pushParam(params, LAUNCH_TYPE_PARAM, type);
|
|
4842
|
+
pushParam$7(params, LAUNCH_TYPE_PARAM, type);
|
|
4678
4843
|
return satisfiedBuilder;
|
|
4679
4844
|
},
|
|
4680
4845
|
withAssignPublicIp: (assign) => {
|
|
4681
|
-
pushParam(params, ASSIGN_PUBLIC_IP_PARAM, assign);
|
|
4846
|
+
pushParam$7(params, ASSIGN_PUBLIC_IP_PARAM, assign);
|
|
4682
4847
|
return satisfiedBuilder;
|
|
4683
4848
|
},
|
|
4684
4849
|
withTaskDefinition: (taskDef) => {
|
|
@@ -4700,6 +4865,996 @@ let AwsEcsService;
|
|
|
4700
4865
|
};
|
|
4701
4866
|
})(AwsEcsService || (AwsEcsService = {}));
|
|
4702
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
|
+
|
|
4703
5858
|
//#endregion
|
|
4704
5859
|
//#region src/index.ts
|
|
4705
5860
|
const BoundedContext = BoundedContext$1;
|
|
@@ -4717,4 +5872,4 @@ const Environment = Environment$1;
|
|
|
4717
5872
|
const LiveSystem = LiveSystem$1;
|
|
4718
5873
|
|
|
4719
5874
|
//#endregion
|
|
4720
|
-
export { AwsEcsCluster, AwsEcsService, AwsEcsTaskDefinition, AwsSecurityGroup, AwsSubnet, AwsVpc, AzureNsg, AzureSubnet, AzureVm, AzureVnet, BoundedContext, ContainerPlatform, Ec2Instance, Environment, Fractal, GcpFirewall, GcpSubnet, GcpVm, GcpVpc, HetznerFirewall, HetznerNetwork, HetznerServer, HetznerSubnet, InfrastructureDomain, KebabCaseString, LiveSystem, OciInstance, OciSecurityList, OciSubnet, OciVcn, OwnerId, OwnerType, PascalCaseString, SecurityGroup, ServiceAccountCredentials, ServiceAccountId, ServiceDeliveryModel, Subnet, Version, VirtualMachine, VirtualNetwork, Workload };
|
|
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 };
|