@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.cjs
CHANGED
|
@@ -2211,16 +2211,16 @@ let LiveSystem$1;
|
|
|
2211
2211
|
//#region src/fractal/component/network_and_compute/iaas/virtual_network.ts
|
|
2212
2212
|
const VIRTUAL_NETWORK_TYPE_NAME = "VirtualNetwork";
|
|
2213
2213
|
const CIDR_BLOCK_PARAM$1 = "cidrBlock";
|
|
2214
|
-
function buildId$
|
|
2214
|
+
function buildId$36(id) {
|
|
2215
2215
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2216
2216
|
}
|
|
2217
|
-
function buildVersion$
|
|
2217
|
+
function buildVersion$36(major, minor, patch) {
|
|
2218
2218
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2219
2219
|
}
|
|
2220
2220
|
function buildVirtualNetworkType() {
|
|
2221
2221
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(VIRTUAL_NETWORK_TYPE_NAME).build()).build();
|
|
2222
2222
|
}
|
|
2223
|
-
function pushParam$
|
|
2223
|
+
function pushParam$33(params, key, value) {
|
|
2224
2224
|
params.push(key, value);
|
|
2225
2225
|
}
|
|
2226
2226
|
function makeVirtualNetworkComponent(vpc, subnetNodes, sgs) {
|
|
@@ -2261,11 +2261,11 @@ let VirtualNetwork;
|
|
|
2261
2261
|
const sgBuilders = [];
|
|
2262
2262
|
const builder = {
|
|
2263
2263
|
withId: (id) => {
|
|
2264
|
-
inner.withId(buildId$
|
|
2264
|
+
inner.withId(buildId$36(id));
|
|
2265
2265
|
return builder;
|
|
2266
2266
|
},
|
|
2267
2267
|
withVersion: (major, minor, patch) => {
|
|
2268
|
-
inner.withVersion(buildVersion$
|
|
2268
|
+
inner.withVersion(buildVersion$36(major, minor, patch));
|
|
2269
2269
|
return builder;
|
|
2270
2270
|
},
|
|
2271
2271
|
withDisplayName: (displayName) => {
|
|
@@ -2277,7 +2277,7 @@ let VirtualNetwork;
|
|
|
2277
2277
|
return builder;
|
|
2278
2278
|
},
|
|
2279
2279
|
withCidrBlock: (value) => {
|
|
2280
|
-
pushParam$
|
|
2280
|
+
pushParam$33(params, CIDR_BLOCK_PARAM$1, value);
|
|
2281
2281
|
return builder;
|
|
2282
2282
|
},
|
|
2283
2283
|
withSubnet: (subnetBuilder) => {
|
|
@@ -2333,16 +2333,16 @@ let VirtualNetwork;
|
|
|
2333
2333
|
//#region src/fractal/component/network_and_compute/iaas/subnet.ts
|
|
2334
2334
|
const SUBNET_TYPE_NAME = "Subnet";
|
|
2335
2335
|
const CIDR_BLOCK_PARAM = "cidrBlock";
|
|
2336
|
-
function buildId$
|
|
2336
|
+
function buildId$35(id) {
|
|
2337
2337
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2338
2338
|
}
|
|
2339
|
-
function buildVersion$
|
|
2339
|
+
function buildVersion$35(major, minor, patch) {
|
|
2340
2340
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2341
2341
|
}
|
|
2342
2342
|
function buildSubnetType() {
|
|
2343
2343
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(SUBNET_TYPE_NAME).build()).build();
|
|
2344
2344
|
}
|
|
2345
|
-
function pushParam$
|
|
2345
|
+
function pushParam$32(params, key, value) {
|
|
2346
2346
|
params.push(key, value);
|
|
2347
2347
|
}
|
|
2348
2348
|
function makeSubnetComponent(subnet, vms, workloadNodes) {
|
|
@@ -2376,11 +2376,11 @@ let Subnet;
|
|
|
2376
2376
|
const vmBuilders = [];
|
|
2377
2377
|
const builder = {
|
|
2378
2378
|
withId: (id) => {
|
|
2379
|
-
inner.withId(buildId$
|
|
2379
|
+
inner.withId(buildId$35(id));
|
|
2380
2380
|
return builder;
|
|
2381
2381
|
},
|
|
2382
2382
|
withVersion: (major, minor, patch) => {
|
|
2383
|
-
inner.withVersion(buildVersion$
|
|
2383
|
+
inner.withVersion(buildVersion$35(major, minor, patch));
|
|
2384
2384
|
return builder;
|
|
2385
2385
|
},
|
|
2386
2386
|
withDisplayName: (displayName) => {
|
|
@@ -2392,7 +2392,7 @@ let Subnet;
|
|
|
2392
2392
|
return builder;
|
|
2393
2393
|
},
|
|
2394
2394
|
withCidrBlock: (value) => {
|
|
2395
|
-
pushParam$
|
|
2395
|
+
pushParam$32(params, CIDR_BLOCK_PARAM, value);
|
|
2396
2396
|
return builder;
|
|
2397
2397
|
},
|
|
2398
2398
|
withVirtualMachine: (vmBuilder) => {
|
|
@@ -2432,16 +2432,16 @@ let Subnet;
|
|
|
2432
2432
|
const SECURITY_GROUP_TYPE_NAME = "SecurityGroup";
|
|
2433
2433
|
const DESCRIPTION_PARAM = "description";
|
|
2434
2434
|
const INGRESS_RULES_PARAM = "ingressRules";
|
|
2435
|
-
function buildId$
|
|
2435
|
+
function buildId$34(id) {
|
|
2436
2436
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2437
2437
|
}
|
|
2438
|
-
function buildVersion$
|
|
2438
|
+
function buildVersion$34(major, minor, patch) {
|
|
2439
2439
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2440
2440
|
}
|
|
2441
2441
|
function buildSecurityGroupType() {
|
|
2442
2442
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(SECURITY_GROUP_TYPE_NAME).build()).build();
|
|
2443
2443
|
}
|
|
2444
|
-
function pushParam$
|
|
2444
|
+
function pushParam$31(params, key, value) {
|
|
2445
2445
|
params.push(key, value);
|
|
2446
2446
|
}
|
|
2447
2447
|
let SecurityGroup;
|
|
@@ -2451,11 +2451,11 @@ let SecurityGroup;
|
|
|
2451
2451
|
const inner = getBlueprintComponentBuilder().withType(buildSecurityGroupType()).withParameters(params);
|
|
2452
2452
|
const builder = {
|
|
2453
2453
|
withId: (id) => {
|
|
2454
|
-
inner.withId(buildId$
|
|
2454
|
+
inner.withId(buildId$34(id));
|
|
2455
2455
|
return builder;
|
|
2456
2456
|
},
|
|
2457
2457
|
withVersion: (major, minor, patch) => {
|
|
2458
|
-
inner.withVersion(buildVersion$
|
|
2458
|
+
inner.withVersion(buildVersion$34(major, minor, patch));
|
|
2459
2459
|
return builder;
|
|
2460
2460
|
},
|
|
2461
2461
|
withDisplayName: (displayName) => {
|
|
@@ -2464,11 +2464,11 @@ let SecurityGroup;
|
|
|
2464
2464
|
},
|
|
2465
2465
|
withDescription: (description) => {
|
|
2466
2466
|
inner.withDescription(description);
|
|
2467
|
-
pushParam$
|
|
2467
|
+
pushParam$31(params, DESCRIPTION_PARAM, description);
|
|
2468
2468
|
return builder;
|
|
2469
2469
|
},
|
|
2470
2470
|
withIngressRules: (rules) => {
|
|
2471
|
-
pushParam$
|
|
2471
|
+
pushParam$31(params, INGRESS_RULES_PARAM, rules);
|
|
2472
2472
|
return builder;
|
|
2473
2473
|
},
|
|
2474
2474
|
withLinks: (links) => {
|
|
@@ -2489,10 +2489,10 @@ let SecurityGroup;
|
|
|
2489
2489
|
//#endregion
|
|
2490
2490
|
//#region src/fractal/component/network_and_compute/iaas/vm.ts
|
|
2491
2491
|
const VIRTUAL_MACHINE_TYPE_NAME = "VirtualMachine";
|
|
2492
|
-
function buildId$
|
|
2492
|
+
function buildId$33(id) {
|
|
2493
2493
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2494
2494
|
}
|
|
2495
|
-
function buildVersion$
|
|
2495
|
+
function buildVersion$33(major, minor, patch) {
|
|
2496
2496
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2497
2497
|
}
|
|
2498
2498
|
function buildVirtualMachineType() {
|
|
@@ -2531,11 +2531,11 @@ let VirtualMachine;
|
|
|
2531
2531
|
const inner = getBlueprintComponentBuilder().withType(buildVirtualMachineType()).withParameters(getParametersInstance());
|
|
2532
2532
|
const builder = {
|
|
2533
2533
|
withId: (id) => {
|
|
2534
|
-
inner.withId(buildId$
|
|
2534
|
+
inner.withId(buildId$33(id));
|
|
2535
2535
|
return builder;
|
|
2536
2536
|
},
|
|
2537
2537
|
withVersion: (major, minor, patch) => {
|
|
2538
|
-
inner.withVersion(buildVersion$
|
|
2538
|
+
inner.withVersion(buildVersion$33(major, minor, patch));
|
|
2539
2539
|
return builder;
|
|
2540
2540
|
},
|
|
2541
2541
|
withDisplayName: (displayName) => {
|
|
@@ -2567,16 +2567,16 @@ const AWS_VPC_TYPE_NAME = "AwsVpc";
|
|
|
2567
2567
|
const INSTANCE_TENANCY_PARAM = "instanceTenancy";
|
|
2568
2568
|
const ENABLE_DNS_SUPPORT_PARAM = "enableDnsSupport";
|
|
2569
2569
|
const ENABLE_DNS_HOSTNAMES_PARAM = "enableDnsHostnames";
|
|
2570
|
-
function buildId$
|
|
2570
|
+
function buildId$32(id) {
|
|
2571
2571
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2572
2572
|
}
|
|
2573
|
-
function buildVersion$
|
|
2573
|
+
function buildVersion$32(major, minor, patch) {
|
|
2574
2574
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2575
2575
|
}
|
|
2576
2576
|
function buildAwsVpcType() {
|
|
2577
2577
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_VPC_TYPE_NAME).build()).build();
|
|
2578
2578
|
}
|
|
2579
|
-
function pushParam$
|
|
2579
|
+
function pushParam$30(params, key, value) {
|
|
2580
2580
|
params.push(key, value);
|
|
2581
2581
|
}
|
|
2582
2582
|
let AwsVpc;
|
|
@@ -2586,11 +2586,11 @@ let AwsVpc;
|
|
|
2586
2586
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsVpcType()).withParameters(params).withProvider("AWS");
|
|
2587
2587
|
const builder = {
|
|
2588
2588
|
withId: (id) => {
|
|
2589
|
-
inner.withId(buildId$
|
|
2589
|
+
inner.withId(buildId$32(id));
|
|
2590
2590
|
return builder;
|
|
2591
2591
|
},
|
|
2592
2592
|
withVersion: (major, minor, patch) => {
|
|
2593
|
-
inner.withVersion(buildVersion$
|
|
2593
|
+
inner.withVersion(buildVersion$32(major, minor, patch));
|
|
2594
2594
|
return builder;
|
|
2595
2595
|
},
|
|
2596
2596
|
withDisplayName: (displayName) => {
|
|
@@ -2602,19 +2602,19 @@ let AwsVpc;
|
|
|
2602
2602
|
return builder;
|
|
2603
2603
|
},
|
|
2604
2604
|
withCidrBlock: (value) => {
|
|
2605
|
-
pushParam$
|
|
2605
|
+
pushParam$30(params, CIDR_BLOCK_PARAM$1, value);
|
|
2606
2606
|
return builder;
|
|
2607
2607
|
},
|
|
2608
2608
|
withInstanceTenancy: (value) => {
|
|
2609
|
-
pushParam$
|
|
2609
|
+
pushParam$30(params, INSTANCE_TENANCY_PARAM, value);
|
|
2610
2610
|
return builder;
|
|
2611
2611
|
},
|
|
2612
2612
|
withEnableDnsSupport: (value) => {
|
|
2613
|
-
pushParam$
|
|
2613
|
+
pushParam$30(params, ENABLE_DNS_SUPPORT_PARAM, value);
|
|
2614
2614
|
return builder;
|
|
2615
2615
|
},
|
|
2616
2616
|
withEnableDnsHostnames: (value) => {
|
|
2617
|
-
pushParam$
|
|
2617
|
+
pushParam$30(params, ENABLE_DNS_HOSTNAMES_PARAM, value);
|
|
2618
2618
|
return builder;
|
|
2619
2619
|
},
|
|
2620
2620
|
build: () => inner.build()
|
|
@@ -2623,21 +2623,21 @@ let AwsVpc;
|
|
|
2623
2623
|
};
|
|
2624
2624
|
_AwsVpc.satisfy = (blueprint) => {
|
|
2625
2625
|
const params = getParametersInstance();
|
|
2626
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsVpcType()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
2626
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsVpcType()).withParameters(params).withProvider("AWS").withId(buildId$32(blueprint.id.toString())).withVersion(buildVersion$32(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
2627
2627
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2628
2628
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
2629
|
-
if (cidrBlock !== null) pushParam$
|
|
2629
|
+
if (cidrBlock !== null) pushParam$30(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
2630
2630
|
const satisfiedBuilder = {
|
|
2631
2631
|
withInstanceTenancy: (value) => {
|
|
2632
|
-
pushParam$
|
|
2632
|
+
pushParam$30(params, INSTANCE_TENANCY_PARAM, value);
|
|
2633
2633
|
return satisfiedBuilder;
|
|
2634
2634
|
},
|
|
2635
2635
|
withEnableDnsSupport: (value) => {
|
|
2636
|
-
pushParam$
|
|
2636
|
+
pushParam$30(params, ENABLE_DNS_SUPPORT_PARAM, value);
|
|
2637
2637
|
return satisfiedBuilder;
|
|
2638
2638
|
},
|
|
2639
2639
|
withEnableDnsHostnames: (value) => {
|
|
2640
|
-
pushParam$
|
|
2640
|
+
pushParam$30(params, ENABLE_DNS_HOSTNAMES_PARAM, value);
|
|
2641
2641
|
return satisfiedBuilder;
|
|
2642
2642
|
},
|
|
2643
2643
|
build: () => inner.build()
|
|
@@ -2658,16 +2658,16 @@ let AwsVpc;
|
|
|
2658
2658
|
//#region src/live_system/component/network_and_compute/iaas/subnet.ts
|
|
2659
2659
|
const AWS_SUBNET_TYPE_NAME = "AwsSubnet";
|
|
2660
2660
|
const AVAILABILITY_ZONE_PARAM = "availabilityZone";
|
|
2661
|
-
function buildId$
|
|
2661
|
+
function buildId$31(id) {
|
|
2662
2662
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2663
2663
|
}
|
|
2664
|
-
function buildVersion$
|
|
2664
|
+
function buildVersion$31(major, minor, patch) {
|
|
2665
2665
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2666
2666
|
}
|
|
2667
2667
|
function buildAwsSubnetType() {
|
|
2668
2668
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_SUBNET_TYPE_NAME).build()).build();
|
|
2669
2669
|
}
|
|
2670
|
-
function pushParam$
|
|
2670
|
+
function pushParam$29(params, key, value) {
|
|
2671
2671
|
params.push(key, value);
|
|
2672
2672
|
}
|
|
2673
2673
|
let AwsSubnet;
|
|
@@ -2677,11 +2677,11 @@ let AwsSubnet;
|
|
|
2677
2677
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsSubnetType()).withParameters(params).withProvider("AWS");
|
|
2678
2678
|
const builder = {
|
|
2679
2679
|
withId: (id) => {
|
|
2680
|
-
inner.withId(buildId$
|
|
2680
|
+
inner.withId(buildId$31(id));
|
|
2681
2681
|
return builder;
|
|
2682
2682
|
},
|
|
2683
2683
|
withVersion: (major, minor, patch) => {
|
|
2684
|
-
inner.withVersion(buildVersion$
|
|
2684
|
+
inner.withVersion(buildVersion$31(major, minor, patch));
|
|
2685
2685
|
return builder;
|
|
2686
2686
|
},
|
|
2687
2687
|
withDisplayName: (displayName) => {
|
|
@@ -2693,11 +2693,11 @@ let AwsSubnet;
|
|
|
2693
2693
|
return builder;
|
|
2694
2694
|
},
|
|
2695
2695
|
withCidrBlock: (value) => {
|
|
2696
|
-
pushParam$
|
|
2696
|
+
pushParam$29(params, CIDR_BLOCK_PARAM, value);
|
|
2697
2697
|
return builder;
|
|
2698
2698
|
},
|
|
2699
2699
|
withAvailabilityZone: (value) => {
|
|
2700
|
-
pushParam$
|
|
2700
|
+
pushParam$29(params, AVAILABILITY_ZONE_PARAM, value);
|
|
2701
2701
|
return builder;
|
|
2702
2702
|
},
|
|
2703
2703
|
build: () => inner.build()
|
|
@@ -2706,13 +2706,13 @@ let AwsSubnet;
|
|
|
2706
2706
|
};
|
|
2707
2707
|
_AwsSubnet.satisfy = (blueprint) => {
|
|
2708
2708
|
const params = getParametersInstance();
|
|
2709
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsSubnetType()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
2709
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsSubnetType()).withParameters(params).withProvider("AWS").withId(buildId$31(blueprint.id.toString())).withVersion(buildVersion$31(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
2710
2710
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2711
2711
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
2712
|
-
if (cidrBlock !== null) pushParam$
|
|
2712
|
+
if (cidrBlock !== null) pushParam$29(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
2713
2713
|
const satisfiedBuilder = {
|
|
2714
2714
|
withAvailabilityZone: (value) => {
|
|
2715
|
-
pushParam$
|
|
2715
|
+
pushParam$29(params, AVAILABILITY_ZONE_PARAM, value);
|
|
2716
2716
|
return satisfiedBuilder;
|
|
2717
2717
|
},
|
|
2718
2718
|
build: () => inner.build()
|
|
@@ -2729,16 +2729,16 @@ let AwsSubnet;
|
|
|
2729
2729
|
//#endregion
|
|
2730
2730
|
//#region src/live_system/component/network_and_compute/iaas/security_group.ts
|
|
2731
2731
|
const AWS_SG_TYPE_NAME = "SecurityGroup";
|
|
2732
|
-
function buildId$
|
|
2732
|
+
function buildId$30(id) {
|
|
2733
2733
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2734
2734
|
}
|
|
2735
|
-
function buildVersion$
|
|
2735
|
+
function buildVersion$30(major, minor, patch) {
|
|
2736
2736
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2737
2737
|
}
|
|
2738
2738
|
function buildAwsSgType() {
|
|
2739
2739
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AWS_SG_TYPE_NAME).build()).build();
|
|
2740
2740
|
}
|
|
2741
|
-
function pushParam$
|
|
2741
|
+
function pushParam$28(params, key, value) {
|
|
2742
2742
|
params.push(key, value);
|
|
2743
2743
|
}
|
|
2744
2744
|
let AwsSecurityGroup;
|
|
@@ -2748,11 +2748,11 @@ let AwsSecurityGroup;
|
|
|
2748
2748
|
const inner = getLiveSystemComponentBuilder().withType(buildAwsSgType()).withParameters(params).withProvider("AWS");
|
|
2749
2749
|
const builder = {
|
|
2750
2750
|
withId: (id) => {
|
|
2751
|
-
inner.withId(buildId$
|
|
2751
|
+
inner.withId(buildId$30(id));
|
|
2752
2752
|
return builder;
|
|
2753
2753
|
},
|
|
2754
2754
|
withVersion: (major, minor, patch) => {
|
|
2755
|
-
inner.withVersion(buildVersion$
|
|
2755
|
+
inner.withVersion(buildVersion$30(major, minor, patch));
|
|
2756
2756
|
return builder;
|
|
2757
2757
|
},
|
|
2758
2758
|
withDisplayName: (displayName) => {
|
|
@@ -2761,11 +2761,11 @@ let AwsSecurityGroup;
|
|
|
2761
2761
|
},
|
|
2762
2762
|
withDescription: (description) => {
|
|
2763
2763
|
inner.withDescription(description);
|
|
2764
|
-
pushParam$
|
|
2764
|
+
pushParam$28(params, DESCRIPTION_PARAM, description);
|
|
2765
2765
|
return builder;
|
|
2766
2766
|
},
|
|
2767
2767
|
withIngressRules: (rules) => {
|
|
2768
|
-
pushParam$
|
|
2768
|
+
pushParam$28(params, INGRESS_RULES_PARAM, rules);
|
|
2769
2769
|
return builder;
|
|
2770
2770
|
},
|
|
2771
2771
|
build: () => inner.build()
|
|
@@ -2774,14 +2774,14 @@ let AwsSecurityGroup;
|
|
|
2774
2774
|
};
|
|
2775
2775
|
_AwsSecurityGroup.satisfy = (blueprint) => {
|
|
2776
2776
|
const params = getParametersInstance();
|
|
2777
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsSgType()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
2777
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsSgType()).withParameters(params).withProvider("AWS").withId(buildId$30(blueprint.id.toString())).withVersion(buildVersion$30(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
2778
2778
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
2779
2779
|
if (description !== null) {
|
|
2780
2780
|
inner.withDescription(String(description));
|
|
2781
|
-
pushParam$
|
|
2781
|
+
pushParam$28(params, DESCRIPTION_PARAM, String(description));
|
|
2782
2782
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2783
2783
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
2784
|
-
if (ingressRules !== null) pushParam$
|
|
2784
|
+
if (ingressRules !== null) pushParam$28(params, INGRESS_RULES_PARAM, ingressRules);
|
|
2785
2785
|
return { build: () => inner.build() };
|
|
2786
2786
|
};
|
|
2787
2787
|
_AwsSecurityGroup.create = (config) => {
|
|
@@ -2800,16 +2800,16 @@ const KEY_NAME_PARAM = "keyName";
|
|
|
2800
2800
|
const USER_DATA_PARAM$1 = "userData";
|
|
2801
2801
|
const IAM_INSTANCE_PROFILE_PARAM = "iamInstanceProfile";
|
|
2802
2802
|
const ASSOCIATE_PUBLIC_IP_PARAM = "associatePublicIp";
|
|
2803
|
-
function buildId$
|
|
2803
|
+
function buildId$29(id) {
|
|
2804
2804
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2805
2805
|
}
|
|
2806
|
-
function buildVersion$
|
|
2806
|
+
function buildVersion$29(major, minor, patch) {
|
|
2807
2807
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2808
2808
|
}
|
|
2809
2809
|
function buildEc2Type() {
|
|
2810
2810
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(EC2_TYPE_NAME).build()).build();
|
|
2811
2811
|
}
|
|
2812
|
-
function pushParam$
|
|
2812
|
+
function pushParam$27(params, key, value) {
|
|
2813
2813
|
params.push(key, value);
|
|
2814
2814
|
}
|
|
2815
2815
|
let Ec2Instance;
|
|
@@ -2819,11 +2819,11 @@ let Ec2Instance;
|
|
|
2819
2819
|
const inner = getLiveSystemComponentBuilder().withType(buildEc2Type()).withParameters(params).withProvider("AWS");
|
|
2820
2820
|
const builder = {
|
|
2821
2821
|
withId: (id) => {
|
|
2822
|
-
inner.withId(buildId$
|
|
2822
|
+
inner.withId(buildId$29(id));
|
|
2823
2823
|
return builder;
|
|
2824
2824
|
},
|
|
2825
2825
|
withVersion: (major, minor, patch) => {
|
|
2826
|
-
inner.withVersion(buildVersion$
|
|
2826
|
+
inner.withVersion(buildVersion$29(major, minor, patch));
|
|
2827
2827
|
return builder;
|
|
2828
2828
|
},
|
|
2829
2829
|
withDisplayName: (displayName) => {
|
|
@@ -2835,27 +2835,27 @@ let Ec2Instance;
|
|
|
2835
2835
|
return builder;
|
|
2836
2836
|
},
|
|
2837
2837
|
withAmiId: (value) => {
|
|
2838
|
-
pushParam$
|
|
2838
|
+
pushParam$27(params, AMI_ID_PARAM, value);
|
|
2839
2839
|
return builder;
|
|
2840
2840
|
},
|
|
2841
2841
|
withInstanceType: (value) => {
|
|
2842
|
-
pushParam$
|
|
2842
|
+
pushParam$27(params, INSTANCE_TYPE_PARAM, value);
|
|
2843
2843
|
return builder;
|
|
2844
2844
|
},
|
|
2845
2845
|
withKeyName: (value) => {
|
|
2846
|
-
pushParam$
|
|
2846
|
+
pushParam$27(params, KEY_NAME_PARAM, value);
|
|
2847
2847
|
return builder;
|
|
2848
2848
|
},
|
|
2849
2849
|
withUserData: (value) => {
|
|
2850
|
-
pushParam$
|
|
2850
|
+
pushParam$27(params, USER_DATA_PARAM$1, value);
|
|
2851
2851
|
return builder;
|
|
2852
2852
|
},
|
|
2853
2853
|
withIamInstanceProfile: (value) => {
|
|
2854
|
-
pushParam$
|
|
2854
|
+
pushParam$27(params, IAM_INSTANCE_PROFILE_PARAM, value);
|
|
2855
2855
|
return builder;
|
|
2856
2856
|
},
|
|
2857
2857
|
withAssociatePublicIp: (value) => {
|
|
2858
|
-
pushParam$
|
|
2858
|
+
pushParam$27(params, ASSOCIATE_PUBLIC_IP_PARAM, value);
|
|
2859
2859
|
return builder;
|
|
2860
2860
|
},
|
|
2861
2861
|
build: () => inner.build()
|
|
@@ -2864,31 +2864,31 @@ let Ec2Instance;
|
|
|
2864
2864
|
};
|
|
2865
2865
|
_Ec2Instance.satisfy = (blueprint) => {
|
|
2866
2866
|
const params = getParametersInstance();
|
|
2867
|
-
const inner = getLiveSystemComponentBuilder().withType(buildEc2Type()).withParameters(params).withProvider("AWS").withId(buildId$
|
|
2867
|
+
const inner = getLiveSystemComponentBuilder().withType(buildEc2Type()).withParameters(params).withProvider("AWS").withId(buildId$29(blueprint.id.toString())).withVersion(buildVersion$29(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
2868
2868
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2869
2869
|
const satisfiedBuilder = {
|
|
2870
2870
|
withAmiId: (value) => {
|
|
2871
|
-
pushParam$
|
|
2871
|
+
pushParam$27(params, AMI_ID_PARAM, value);
|
|
2872
2872
|
return satisfiedBuilder;
|
|
2873
2873
|
},
|
|
2874
2874
|
withInstanceType: (value) => {
|
|
2875
|
-
pushParam$
|
|
2875
|
+
pushParam$27(params, INSTANCE_TYPE_PARAM, value);
|
|
2876
2876
|
return satisfiedBuilder;
|
|
2877
2877
|
},
|
|
2878
2878
|
withKeyName: (value) => {
|
|
2879
|
-
pushParam$
|
|
2879
|
+
pushParam$27(params, KEY_NAME_PARAM, value);
|
|
2880
2880
|
return satisfiedBuilder;
|
|
2881
2881
|
},
|
|
2882
2882
|
withUserData: (value) => {
|
|
2883
|
-
pushParam$
|
|
2883
|
+
pushParam$27(params, USER_DATA_PARAM$1, value);
|
|
2884
2884
|
return satisfiedBuilder;
|
|
2885
2885
|
},
|
|
2886
2886
|
withIamInstanceProfile: (value) => {
|
|
2887
|
-
pushParam$
|
|
2887
|
+
pushParam$27(params, IAM_INSTANCE_PROFILE_PARAM, value);
|
|
2888
2888
|
return satisfiedBuilder;
|
|
2889
2889
|
},
|
|
2890
2890
|
withAssociatePublicIp: (value) => {
|
|
2891
|
-
pushParam$
|
|
2891
|
+
pushParam$27(params, ASSOCIATE_PUBLIC_IP_PARAM, value);
|
|
2892
2892
|
return satisfiedBuilder;
|
|
2893
2893
|
},
|
|
2894
2894
|
build: () => inner.build()
|
|
@@ -2911,16 +2911,16 @@ let Ec2Instance;
|
|
|
2911
2911
|
const AZURE_VNET_TYPE_NAME = "AzureVnet";
|
|
2912
2912
|
const LOCATION_PARAM$3 = "location";
|
|
2913
2913
|
const RESOURCE_GROUP_PARAM$3 = "resourceGroup";
|
|
2914
|
-
function buildId$
|
|
2914
|
+
function buildId$28(id) {
|
|
2915
2915
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2916
2916
|
}
|
|
2917
|
-
function buildVersion$
|
|
2917
|
+
function buildVersion$28(major, minor, patch) {
|
|
2918
2918
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2919
2919
|
}
|
|
2920
2920
|
function buildAzureVnetType() {
|
|
2921
2921
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_VNET_TYPE_NAME).build()).build();
|
|
2922
2922
|
}
|
|
2923
|
-
function pushParam$
|
|
2923
|
+
function pushParam$26(params, key, value) {
|
|
2924
2924
|
params.push(key, value);
|
|
2925
2925
|
}
|
|
2926
2926
|
let AzureVnet;
|
|
@@ -2930,11 +2930,11 @@ let AzureVnet;
|
|
|
2930
2930
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureVnetType()).withParameters(params).withProvider("Azure");
|
|
2931
2931
|
const builder = {
|
|
2932
2932
|
withId: (id) => {
|
|
2933
|
-
inner.withId(buildId$
|
|
2933
|
+
inner.withId(buildId$28(id));
|
|
2934
2934
|
return builder;
|
|
2935
2935
|
},
|
|
2936
2936
|
withVersion: (major, minor, patch) => {
|
|
2937
|
-
inner.withVersion(buildVersion$
|
|
2937
|
+
inner.withVersion(buildVersion$28(major, minor, patch));
|
|
2938
2938
|
return builder;
|
|
2939
2939
|
},
|
|
2940
2940
|
withDisplayName: (displayName) => {
|
|
@@ -2946,15 +2946,15 @@ let AzureVnet;
|
|
|
2946
2946
|
return builder;
|
|
2947
2947
|
},
|
|
2948
2948
|
withCidrBlock: (value) => {
|
|
2949
|
-
pushParam$
|
|
2949
|
+
pushParam$26(params, CIDR_BLOCK_PARAM$1, value);
|
|
2950
2950
|
return builder;
|
|
2951
2951
|
},
|
|
2952
2952
|
withLocation: (value) => {
|
|
2953
|
-
pushParam$
|
|
2953
|
+
pushParam$26(params, LOCATION_PARAM$3, value);
|
|
2954
2954
|
return builder;
|
|
2955
2955
|
},
|
|
2956
2956
|
withResourceGroup: (value) => {
|
|
2957
|
-
pushParam$
|
|
2957
|
+
pushParam$26(params, RESOURCE_GROUP_PARAM$3, value);
|
|
2958
2958
|
return builder;
|
|
2959
2959
|
},
|
|
2960
2960
|
build: () => inner.build()
|
|
@@ -2963,17 +2963,17 @@ let AzureVnet;
|
|
|
2963
2963
|
};
|
|
2964
2964
|
_AzureVnet.satisfy = (blueprint) => {
|
|
2965
2965
|
const params = getParametersInstance();
|
|
2966
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureVnetType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
2966
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureVnetType()).withParameters(params).withProvider("Azure").withId(buildId$28(blueprint.id.toString())).withVersion(buildVersion$28(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
2967
2967
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
2968
2968
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
2969
|
-
if (cidrBlock !== null) pushParam$
|
|
2969
|
+
if (cidrBlock !== null) pushParam$26(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
2970
2970
|
const satisfiedBuilder = {
|
|
2971
2971
|
withLocation: (value) => {
|
|
2972
|
-
pushParam$
|
|
2972
|
+
pushParam$26(params, LOCATION_PARAM$3, value);
|
|
2973
2973
|
return satisfiedBuilder;
|
|
2974
2974
|
},
|
|
2975
2975
|
withResourceGroup: (value) => {
|
|
2976
|
-
pushParam$
|
|
2976
|
+
pushParam$26(params, RESOURCE_GROUP_PARAM$3, value);
|
|
2977
2977
|
return satisfiedBuilder;
|
|
2978
2978
|
},
|
|
2979
2979
|
build: () => inner.build()
|
|
@@ -2991,16 +2991,16 @@ let AzureVnet;
|
|
|
2991
2991
|
//#region src/live_system/component/network_and_compute/iaas/azure_subnet.ts
|
|
2992
2992
|
const AZURE_SUBNET_TYPE_NAME = "AzureSubnet";
|
|
2993
2993
|
const RESOURCE_GROUP_PARAM$2 = "resourceGroup";
|
|
2994
|
-
function buildId$
|
|
2994
|
+
function buildId$27(id) {
|
|
2995
2995
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
2996
2996
|
}
|
|
2997
|
-
function buildVersion$
|
|
2997
|
+
function buildVersion$27(major, minor, patch) {
|
|
2998
2998
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
2999
2999
|
}
|
|
3000
3000
|
function buildAzureSubnetType() {
|
|
3001
3001
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_SUBNET_TYPE_NAME).build()).build();
|
|
3002
3002
|
}
|
|
3003
|
-
function pushParam$
|
|
3003
|
+
function pushParam$25(params, key, value) {
|
|
3004
3004
|
params.push(key, value);
|
|
3005
3005
|
}
|
|
3006
3006
|
let AzureSubnet;
|
|
@@ -3010,11 +3010,11 @@ let AzureSubnet;
|
|
|
3010
3010
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureSubnetType()).withParameters(params).withProvider("Azure");
|
|
3011
3011
|
const builder = {
|
|
3012
3012
|
withId: (id) => {
|
|
3013
|
-
inner.withId(buildId$
|
|
3013
|
+
inner.withId(buildId$27(id));
|
|
3014
3014
|
return builder;
|
|
3015
3015
|
},
|
|
3016
3016
|
withVersion: (major, minor, patch) => {
|
|
3017
|
-
inner.withVersion(buildVersion$
|
|
3017
|
+
inner.withVersion(buildVersion$27(major, minor, patch));
|
|
3018
3018
|
return builder;
|
|
3019
3019
|
},
|
|
3020
3020
|
withDisplayName: (displayName) => {
|
|
@@ -3026,11 +3026,11 @@ let AzureSubnet;
|
|
|
3026
3026
|
return builder;
|
|
3027
3027
|
},
|
|
3028
3028
|
withCidrBlock: (value) => {
|
|
3029
|
-
pushParam$
|
|
3029
|
+
pushParam$25(params, CIDR_BLOCK_PARAM, value);
|
|
3030
3030
|
return builder;
|
|
3031
3031
|
},
|
|
3032
3032
|
withResourceGroup: (value) => {
|
|
3033
|
-
pushParam$
|
|
3033
|
+
pushParam$25(params, RESOURCE_GROUP_PARAM$2, value);
|
|
3034
3034
|
return builder;
|
|
3035
3035
|
},
|
|
3036
3036
|
build: () => inner.build()
|
|
@@ -3039,13 +3039,13 @@ let AzureSubnet;
|
|
|
3039
3039
|
};
|
|
3040
3040
|
_AzureSubnet.satisfy = (blueprint) => {
|
|
3041
3041
|
const params = getParametersInstance();
|
|
3042
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureSubnetType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
3042
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureSubnetType()).withParameters(params).withProvider("Azure").withId(buildId$27(blueprint.id.toString())).withVersion(buildVersion$27(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3043
3043
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3044
3044
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
3045
|
-
if (cidrBlock !== null) pushParam$
|
|
3045
|
+
if (cidrBlock !== null) pushParam$25(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
3046
3046
|
const satisfiedBuilder = {
|
|
3047
3047
|
withResourceGroup: (value) => {
|
|
3048
|
-
pushParam$
|
|
3048
|
+
pushParam$25(params, RESOURCE_GROUP_PARAM$2, value);
|
|
3049
3049
|
return satisfiedBuilder;
|
|
3050
3050
|
},
|
|
3051
3051
|
build: () => inner.build()
|
|
@@ -3064,16 +3064,16 @@ let AzureSubnet;
|
|
|
3064
3064
|
const AZURE_NSG_TYPE_NAME = "AzureNsg";
|
|
3065
3065
|
const LOCATION_PARAM$2 = "location";
|
|
3066
3066
|
const RESOURCE_GROUP_PARAM$1 = "resourceGroup";
|
|
3067
|
-
function buildId$
|
|
3067
|
+
function buildId$26(id) {
|
|
3068
3068
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3069
3069
|
}
|
|
3070
|
-
function buildVersion$
|
|
3070
|
+
function buildVersion$26(major, minor, patch) {
|
|
3071
3071
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3072
3072
|
}
|
|
3073
3073
|
function buildAzureNsgType() {
|
|
3074
3074
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_NSG_TYPE_NAME).build()).build();
|
|
3075
3075
|
}
|
|
3076
|
-
function pushParam$
|
|
3076
|
+
function pushParam$24(params, key, value) {
|
|
3077
3077
|
params.push(key, value);
|
|
3078
3078
|
}
|
|
3079
3079
|
let AzureNsg;
|
|
@@ -3083,11 +3083,11 @@ let AzureNsg;
|
|
|
3083
3083
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureNsgType()).withParameters(params).withProvider("Azure");
|
|
3084
3084
|
const builder = {
|
|
3085
3085
|
withId: (id) => {
|
|
3086
|
-
inner.withId(buildId$
|
|
3086
|
+
inner.withId(buildId$26(id));
|
|
3087
3087
|
return builder;
|
|
3088
3088
|
},
|
|
3089
3089
|
withVersion: (major, minor, patch) => {
|
|
3090
|
-
inner.withVersion(buildVersion$
|
|
3090
|
+
inner.withVersion(buildVersion$26(major, minor, patch));
|
|
3091
3091
|
return builder;
|
|
3092
3092
|
},
|
|
3093
3093
|
withDisplayName: (displayName) => {
|
|
@@ -3096,19 +3096,19 @@ let AzureNsg;
|
|
|
3096
3096
|
},
|
|
3097
3097
|
withDescription: (description) => {
|
|
3098
3098
|
inner.withDescription(description);
|
|
3099
|
-
pushParam$
|
|
3099
|
+
pushParam$24(params, DESCRIPTION_PARAM, description);
|
|
3100
3100
|
return builder;
|
|
3101
3101
|
},
|
|
3102
3102
|
withIngressRules: (rules) => {
|
|
3103
|
-
pushParam$
|
|
3103
|
+
pushParam$24(params, INGRESS_RULES_PARAM, rules);
|
|
3104
3104
|
return builder;
|
|
3105
3105
|
},
|
|
3106
3106
|
withLocation: (value) => {
|
|
3107
|
-
pushParam$
|
|
3107
|
+
pushParam$24(params, LOCATION_PARAM$2, value);
|
|
3108
3108
|
return builder;
|
|
3109
3109
|
},
|
|
3110
3110
|
withResourceGroup: (value) => {
|
|
3111
|
-
pushParam$
|
|
3111
|
+
pushParam$24(params, RESOURCE_GROUP_PARAM$1, value);
|
|
3112
3112
|
return builder;
|
|
3113
3113
|
},
|
|
3114
3114
|
build: () => inner.build()
|
|
@@ -3117,21 +3117,21 @@ let AzureNsg;
|
|
|
3117
3117
|
};
|
|
3118
3118
|
_AzureNsg.satisfy = (blueprint) => {
|
|
3119
3119
|
const params = getParametersInstance();
|
|
3120
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureNsgType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
3120
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureNsgType()).withParameters(params).withProvider("Azure").withId(buildId$26(blueprint.id.toString())).withVersion(buildVersion$26(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3121
3121
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
3122
3122
|
if (description !== null) {
|
|
3123
3123
|
inner.withDescription(String(description));
|
|
3124
|
-
pushParam$
|
|
3124
|
+
pushParam$24(params, DESCRIPTION_PARAM, String(description));
|
|
3125
3125
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3126
3126
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
3127
|
-
if (ingressRules !== null) pushParam$
|
|
3127
|
+
if (ingressRules !== null) pushParam$24(params, INGRESS_RULES_PARAM, ingressRules);
|
|
3128
3128
|
const satisfiedBuilder = {
|
|
3129
3129
|
withLocation: (value) => {
|
|
3130
|
-
pushParam$
|
|
3130
|
+
pushParam$24(params, LOCATION_PARAM$2, value);
|
|
3131
3131
|
return satisfiedBuilder;
|
|
3132
3132
|
},
|
|
3133
3133
|
withResourceGroup: (value) => {
|
|
3134
|
-
pushParam$
|
|
3134
|
+
pushParam$24(params, RESOURCE_GROUP_PARAM$1, value);
|
|
3135
3135
|
return satisfiedBuilder;
|
|
3136
3136
|
},
|
|
3137
3137
|
build: () => inner.build()
|
|
@@ -3158,16 +3158,16 @@ const IMAGE_OFFER_PARAM = "imageOffer";
|
|
|
3158
3158
|
const IMAGE_SKU_PARAM = "imageSku";
|
|
3159
3159
|
const SSH_PUBLIC_KEY_PARAM$1 = "sshPublicKey";
|
|
3160
3160
|
const OS_DISK_SIZE_GB_PARAM = "osDiskSizeGb";
|
|
3161
|
-
function buildId$
|
|
3161
|
+
function buildId$25(id) {
|
|
3162
3162
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3163
3163
|
}
|
|
3164
|
-
function buildVersion$
|
|
3164
|
+
function buildVersion$25(major, minor, patch) {
|
|
3165
3165
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3166
3166
|
}
|
|
3167
3167
|
function buildAzureVmType() {
|
|
3168
3168
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_VM_TYPE_NAME).build()).build();
|
|
3169
3169
|
}
|
|
3170
|
-
function pushParam$
|
|
3170
|
+
function pushParam$23(params, key, value) {
|
|
3171
3171
|
params.push(key, value);
|
|
3172
3172
|
}
|
|
3173
3173
|
let AzureVm;
|
|
@@ -3177,11 +3177,11 @@ let AzureVm;
|
|
|
3177
3177
|
const inner = getLiveSystemComponentBuilder().withType(buildAzureVmType()).withParameters(params).withProvider("Azure");
|
|
3178
3178
|
const builder = {
|
|
3179
3179
|
withId: (id) => {
|
|
3180
|
-
inner.withId(buildId$
|
|
3180
|
+
inner.withId(buildId$25(id));
|
|
3181
3181
|
return builder;
|
|
3182
3182
|
},
|
|
3183
3183
|
withVersion: (major, minor, patch) => {
|
|
3184
|
-
inner.withVersion(buildVersion$
|
|
3184
|
+
inner.withVersion(buildVersion$25(major, minor, patch));
|
|
3185
3185
|
return builder;
|
|
3186
3186
|
},
|
|
3187
3187
|
withDisplayName: (displayName) => {
|
|
@@ -3193,39 +3193,39 @@ let AzureVm;
|
|
|
3193
3193
|
return builder;
|
|
3194
3194
|
},
|
|
3195
3195
|
withVmSize: (value) => {
|
|
3196
|
-
pushParam$
|
|
3196
|
+
pushParam$23(params, VM_SIZE_PARAM, value);
|
|
3197
3197
|
return builder;
|
|
3198
3198
|
},
|
|
3199
3199
|
withLocation: (value) => {
|
|
3200
|
-
pushParam$
|
|
3200
|
+
pushParam$23(params, LOCATION_PARAM$1, value);
|
|
3201
3201
|
return builder;
|
|
3202
3202
|
},
|
|
3203
3203
|
withResourceGroup: (value) => {
|
|
3204
|
-
pushParam$
|
|
3204
|
+
pushParam$23(params, RESOURCE_GROUP_PARAM, value);
|
|
3205
3205
|
return builder;
|
|
3206
3206
|
},
|
|
3207
3207
|
withAdminUsername: (value) => {
|
|
3208
|
-
pushParam$
|
|
3208
|
+
pushParam$23(params, ADMIN_USERNAME_PARAM, value);
|
|
3209
3209
|
return builder;
|
|
3210
3210
|
},
|
|
3211
3211
|
withImagePublisher: (value) => {
|
|
3212
|
-
pushParam$
|
|
3212
|
+
pushParam$23(params, IMAGE_PUBLISHER_PARAM, value);
|
|
3213
3213
|
return builder;
|
|
3214
3214
|
},
|
|
3215
3215
|
withImageOffer: (value) => {
|
|
3216
|
-
pushParam$
|
|
3216
|
+
pushParam$23(params, IMAGE_OFFER_PARAM, value);
|
|
3217
3217
|
return builder;
|
|
3218
3218
|
},
|
|
3219
3219
|
withImageSku: (value) => {
|
|
3220
|
-
pushParam$
|
|
3220
|
+
pushParam$23(params, IMAGE_SKU_PARAM, value);
|
|
3221
3221
|
return builder;
|
|
3222
3222
|
},
|
|
3223
3223
|
withSshPublicKey: (value) => {
|
|
3224
|
-
pushParam$
|
|
3224
|
+
pushParam$23(params, SSH_PUBLIC_KEY_PARAM$1, value);
|
|
3225
3225
|
return builder;
|
|
3226
3226
|
},
|
|
3227
3227
|
withOsDiskSizeGb: (value) => {
|
|
3228
|
-
pushParam$
|
|
3228
|
+
pushParam$23(params, OS_DISK_SIZE_GB_PARAM, value);
|
|
3229
3229
|
return builder;
|
|
3230
3230
|
},
|
|
3231
3231
|
build: () => inner.build()
|
|
@@ -3234,43 +3234,43 @@ let AzureVm;
|
|
|
3234
3234
|
};
|
|
3235
3235
|
_AzureVm.satisfy = (blueprint) => {
|
|
3236
3236
|
const params = getParametersInstance();
|
|
3237
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAzureVmType()).withParameters(params).withProvider("Azure").withId(buildId$
|
|
3237
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureVmType()).withParameters(params).withProvider("Azure").withId(buildId$25(blueprint.id.toString())).withVersion(buildVersion$25(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3238
3238
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3239
3239
|
const satisfiedBuilder = {
|
|
3240
3240
|
withVmSize: (value) => {
|
|
3241
|
-
pushParam$
|
|
3241
|
+
pushParam$23(params, VM_SIZE_PARAM, value);
|
|
3242
3242
|
return satisfiedBuilder;
|
|
3243
3243
|
},
|
|
3244
3244
|
withLocation: (value) => {
|
|
3245
|
-
pushParam$
|
|
3245
|
+
pushParam$23(params, LOCATION_PARAM$1, value);
|
|
3246
3246
|
return satisfiedBuilder;
|
|
3247
3247
|
},
|
|
3248
3248
|
withResourceGroup: (value) => {
|
|
3249
|
-
pushParam$
|
|
3249
|
+
pushParam$23(params, RESOURCE_GROUP_PARAM, value);
|
|
3250
3250
|
return satisfiedBuilder;
|
|
3251
3251
|
},
|
|
3252
3252
|
withAdminUsername: (value) => {
|
|
3253
|
-
pushParam$
|
|
3253
|
+
pushParam$23(params, ADMIN_USERNAME_PARAM, value);
|
|
3254
3254
|
return satisfiedBuilder;
|
|
3255
3255
|
},
|
|
3256
3256
|
withImagePublisher: (value) => {
|
|
3257
|
-
pushParam$
|
|
3257
|
+
pushParam$23(params, IMAGE_PUBLISHER_PARAM, value);
|
|
3258
3258
|
return satisfiedBuilder;
|
|
3259
3259
|
},
|
|
3260
3260
|
withImageOffer: (value) => {
|
|
3261
|
-
pushParam$
|
|
3261
|
+
pushParam$23(params, IMAGE_OFFER_PARAM, value);
|
|
3262
3262
|
return satisfiedBuilder;
|
|
3263
3263
|
},
|
|
3264
3264
|
withImageSku: (value) => {
|
|
3265
|
-
pushParam$
|
|
3265
|
+
pushParam$23(params, IMAGE_SKU_PARAM, value);
|
|
3266
3266
|
return satisfiedBuilder;
|
|
3267
3267
|
},
|
|
3268
3268
|
withSshPublicKey: (value) => {
|
|
3269
|
-
pushParam$
|
|
3269
|
+
pushParam$23(params, SSH_PUBLIC_KEY_PARAM$1, value);
|
|
3270
3270
|
return satisfiedBuilder;
|
|
3271
3271
|
},
|
|
3272
3272
|
withOsDiskSizeGb: (value) => {
|
|
3273
|
-
pushParam$
|
|
3273
|
+
pushParam$23(params, OS_DISK_SIZE_GB_PARAM, value);
|
|
3274
3274
|
return satisfiedBuilder;
|
|
3275
3275
|
},
|
|
3276
3276
|
build: () => inner.build()
|
|
@@ -3291,16 +3291,16 @@ let AzureVm;
|
|
|
3291
3291
|
const GCP_VPC_TYPE_NAME = "GcpVpc";
|
|
3292
3292
|
const AUTO_CREATE_SUBNETWORKS_PARAM = "autoCreateSubnetworks";
|
|
3293
3293
|
const ROUTING_MODE_PARAM = "routingMode";
|
|
3294
|
-
function buildId$
|
|
3294
|
+
function buildId$24(id) {
|
|
3295
3295
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3296
3296
|
}
|
|
3297
|
-
function buildVersion$
|
|
3297
|
+
function buildVersion$24(major, minor, patch) {
|
|
3298
3298
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3299
3299
|
}
|
|
3300
3300
|
function buildGcpVpcType() {
|
|
3301
3301
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_VPC_TYPE_NAME).build()).build();
|
|
3302
3302
|
}
|
|
3303
|
-
function pushParam$
|
|
3303
|
+
function pushParam$22(params, key, value) {
|
|
3304
3304
|
params.push(key, value);
|
|
3305
3305
|
}
|
|
3306
3306
|
let GcpVpc;
|
|
@@ -3310,11 +3310,11 @@ let GcpVpc;
|
|
|
3310
3310
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpVpcType()).withParameters(params).withProvider("GCP");
|
|
3311
3311
|
const builder = {
|
|
3312
3312
|
withId: (id) => {
|
|
3313
|
-
inner.withId(buildId$
|
|
3313
|
+
inner.withId(buildId$24(id));
|
|
3314
3314
|
return builder;
|
|
3315
3315
|
},
|
|
3316
3316
|
withVersion: (major, minor, patch) => {
|
|
3317
|
-
inner.withVersion(buildVersion$
|
|
3317
|
+
inner.withVersion(buildVersion$24(major, minor, patch));
|
|
3318
3318
|
return builder;
|
|
3319
3319
|
},
|
|
3320
3320
|
withDisplayName: (displayName) => {
|
|
@@ -3326,15 +3326,15 @@ let GcpVpc;
|
|
|
3326
3326
|
return builder;
|
|
3327
3327
|
},
|
|
3328
3328
|
withCidrBlock: (value) => {
|
|
3329
|
-
pushParam$
|
|
3329
|
+
pushParam$22(params, CIDR_BLOCK_PARAM$1, value);
|
|
3330
3330
|
return builder;
|
|
3331
3331
|
},
|
|
3332
3332
|
withAutoCreateSubnetworks: (value) => {
|
|
3333
|
-
pushParam$
|
|
3333
|
+
pushParam$22(params, AUTO_CREATE_SUBNETWORKS_PARAM, value);
|
|
3334
3334
|
return builder;
|
|
3335
3335
|
},
|
|
3336
3336
|
withRoutingMode: (value) => {
|
|
3337
|
-
pushParam$
|
|
3337
|
+
pushParam$22(params, ROUTING_MODE_PARAM, value);
|
|
3338
3338
|
return builder;
|
|
3339
3339
|
},
|
|
3340
3340
|
build: () => inner.build()
|
|
@@ -3343,17 +3343,17 @@ let GcpVpc;
|
|
|
3343
3343
|
};
|
|
3344
3344
|
_GcpVpc.satisfy = (blueprint) => {
|
|
3345
3345
|
const params = getParametersInstance();
|
|
3346
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpVpcType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
3346
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpVpcType()).withParameters(params).withProvider("GCP").withId(buildId$24(blueprint.id.toString())).withVersion(buildVersion$24(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3347
3347
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3348
3348
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
3349
|
-
if (cidrBlock !== null) pushParam$
|
|
3349
|
+
if (cidrBlock !== null) pushParam$22(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
3350
3350
|
const satisfiedBuilder = {
|
|
3351
3351
|
withAutoCreateSubnetworks: (value) => {
|
|
3352
|
-
pushParam$
|
|
3352
|
+
pushParam$22(params, AUTO_CREATE_SUBNETWORKS_PARAM, value);
|
|
3353
3353
|
return satisfiedBuilder;
|
|
3354
3354
|
},
|
|
3355
3355
|
withRoutingMode: (value) => {
|
|
3356
|
-
pushParam$
|
|
3356
|
+
pushParam$22(params, ROUTING_MODE_PARAM, value);
|
|
3357
3357
|
return satisfiedBuilder;
|
|
3358
3358
|
},
|
|
3359
3359
|
build: () => inner.build()
|
|
@@ -3374,16 +3374,16 @@ let GcpVpc;
|
|
|
3374
3374
|
const GCP_SUBNET_TYPE_NAME = "GcpSubnet";
|
|
3375
3375
|
const REGION_PARAM = "region";
|
|
3376
3376
|
const PRIVATE_IP_GOOGLE_ACCESS_PARAM = "privateIpGoogleAccess";
|
|
3377
|
-
function buildId$
|
|
3377
|
+
function buildId$23(id) {
|
|
3378
3378
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3379
3379
|
}
|
|
3380
|
-
function buildVersion$
|
|
3380
|
+
function buildVersion$23(major, minor, patch) {
|
|
3381
3381
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3382
3382
|
}
|
|
3383
3383
|
function buildGcpSubnetType() {
|
|
3384
3384
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_SUBNET_TYPE_NAME).build()).build();
|
|
3385
3385
|
}
|
|
3386
|
-
function pushParam$
|
|
3386
|
+
function pushParam$21(params, key, value) {
|
|
3387
3387
|
params.push(key, value);
|
|
3388
3388
|
}
|
|
3389
3389
|
let GcpSubnet;
|
|
@@ -3393,11 +3393,11 @@ let GcpSubnet;
|
|
|
3393
3393
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpSubnetType()).withParameters(params).withProvider("GCP");
|
|
3394
3394
|
const builder = {
|
|
3395
3395
|
withId: (id) => {
|
|
3396
|
-
inner.withId(buildId$
|
|
3396
|
+
inner.withId(buildId$23(id));
|
|
3397
3397
|
return builder;
|
|
3398
3398
|
},
|
|
3399
3399
|
withVersion: (major, minor, patch) => {
|
|
3400
|
-
inner.withVersion(buildVersion$
|
|
3400
|
+
inner.withVersion(buildVersion$23(major, minor, patch));
|
|
3401
3401
|
return builder;
|
|
3402
3402
|
},
|
|
3403
3403
|
withDisplayName: (displayName) => {
|
|
@@ -3409,15 +3409,15 @@ let GcpSubnet;
|
|
|
3409
3409
|
return builder;
|
|
3410
3410
|
},
|
|
3411
3411
|
withCidrBlock: (value) => {
|
|
3412
|
-
pushParam$
|
|
3412
|
+
pushParam$21(params, CIDR_BLOCK_PARAM, value);
|
|
3413
3413
|
return builder;
|
|
3414
3414
|
},
|
|
3415
3415
|
withRegion: (value) => {
|
|
3416
|
-
pushParam$
|
|
3416
|
+
pushParam$21(params, REGION_PARAM, value);
|
|
3417
3417
|
return builder;
|
|
3418
3418
|
},
|
|
3419
3419
|
withPrivateIpGoogleAccess: (value) => {
|
|
3420
|
-
pushParam$
|
|
3420
|
+
pushParam$21(params, PRIVATE_IP_GOOGLE_ACCESS_PARAM, value);
|
|
3421
3421
|
return builder;
|
|
3422
3422
|
},
|
|
3423
3423
|
build: () => inner.build()
|
|
@@ -3426,17 +3426,17 @@ let GcpSubnet;
|
|
|
3426
3426
|
};
|
|
3427
3427
|
_GcpSubnet.satisfy = (blueprint) => {
|
|
3428
3428
|
const params = getParametersInstance();
|
|
3429
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpSubnetType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
3429
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpSubnetType()).withParameters(params).withProvider("GCP").withId(buildId$23(blueprint.id.toString())).withVersion(buildVersion$23(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3430
3430
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3431
3431
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
3432
|
-
if (cidrBlock !== null) pushParam$
|
|
3432
|
+
if (cidrBlock !== null) pushParam$21(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
3433
3433
|
const satisfiedBuilder = {
|
|
3434
3434
|
withRegion: (value) => {
|
|
3435
|
-
pushParam$
|
|
3435
|
+
pushParam$21(params, REGION_PARAM, value);
|
|
3436
3436
|
return satisfiedBuilder;
|
|
3437
3437
|
},
|
|
3438
3438
|
withPrivateIpGoogleAccess: (value) => {
|
|
3439
|
-
pushParam$
|
|
3439
|
+
pushParam$21(params, PRIVATE_IP_GOOGLE_ACCESS_PARAM, value);
|
|
3440
3440
|
return satisfiedBuilder;
|
|
3441
3441
|
},
|
|
3442
3442
|
build: () => inner.build()
|
|
@@ -3454,16 +3454,16 @@ let GcpSubnet;
|
|
|
3454
3454
|
//#endregion
|
|
3455
3455
|
//#region src/live_system/component/network_and_compute/iaas/gcp_firewall.ts
|
|
3456
3456
|
const GCP_FIREWALL_TYPE_NAME = "GcpFirewall";
|
|
3457
|
-
function buildId$
|
|
3457
|
+
function buildId$22(id) {
|
|
3458
3458
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3459
3459
|
}
|
|
3460
|
-
function buildVersion$
|
|
3460
|
+
function buildVersion$22(major, minor, patch) {
|
|
3461
3461
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3462
3462
|
}
|
|
3463
3463
|
function buildGcpFirewallType() {
|
|
3464
3464
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_FIREWALL_TYPE_NAME).build()).build();
|
|
3465
3465
|
}
|
|
3466
|
-
function pushParam$
|
|
3466
|
+
function pushParam$20(params, key, value) {
|
|
3467
3467
|
params.push(key, value);
|
|
3468
3468
|
}
|
|
3469
3469
|
let GcpFirewall;
|
|
@@ -3473,11 +3473,11 @@ let GcpFirewall;
|
|
|
3473
3473
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpFirewallType()).withParameters(params).withProvider("GCP");
|
|
3474
3474
|
const builder = {
|
|
3475
3475
|
withId: (id) => {
|
|
3476
|
-
inner.withId(buildId$
|
|
3476
|
+
inner.withId(buildId$22(id));
|
|
3477
3477
|
return builder;
|
|
3478
3478
|
},
|
|
3479
3479
|
withVersion: (major, minor, patch) => {
|
|
3480
|
-
inner.withVersion(buildVersion$
|
|
3480
|
+
inner.withVersion(buildVersion$22(major, minor, patch));
|
|
3481
3481
|
return builder;
|
|
3482
3482
|
},
|
|
3483
3483
|
withDisplayName: (displayName) => {
|
|
@@ -3486,11 +3486,11 @@ let GcpFirewall;
|
|
|
3486
3486
|
},
|
|
3487
3487
|
withDescription: (description) => {
|
|
3488
3488
|
inner.withDescription(description);
|
|
3489
|
-
pushParam$
|
|
3489
|
+
pushParam$20(params, DESCRIPTION_PARAM, description);
|
|
3490
3490
|
return builder;
|
|
3491
3491
|
},
|
|
3492
3492
|
withIngressRules: (rules) => {
|
|
3493
|
-
pushParam$
|
|
3493
|
+
pushParam$20(params, INGRESS_RULES_PARAM, rules);
|
|
3494
3494
|
return builder;
|
|
3495
3495
|
},
|
|
3496
3496
|
build: () => inner.build()
|
|
@@ -3499,14 +3499,14 @@ let GcpFirewall;
|
|
|
3499
3499
|
};
|
|
3500
3500
|
_GcpFirewall.satisfy = (blueprint) => {
|
|
3501
3501
|
const params = getParametersInstance();
|
|
3502
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpFirewallType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
3502
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpFirewallType()).withParameters(params).withProvider("GCP").withId(buildId$22(blueprint.id.toString())).withVersion(buildVersion$22(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3503
3503
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
3504
3504
|
if (description !== null) {
|
|
3505
3505
|
inner.withDescription(String(description));
|
|
3506
|
-
pushParam$
|
|
3506
|
+
pushParam$20(params, DESCRIPTION_PARAM, String(description));
|
|
3507
3507
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3508
3508
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
3509
|
-
if (ingressRules !== null) pushParam$
|
|
3509
|
+
if (ingressRules !== null) pushParam$20(params, INGRESS_RULES_PARAM, ingressRules);
|
|
3510
3510
|
return { build: () => inner.build() };
|
|
3511
3511
|
};
|
|
3512
3512
|
_GcpFirewall.create = (config) => {
|
|
@@ -3525,16 +3525,16 @@ const ZONE_PARAM = "zone";
|
|
|
3525
3525
|
const IMAGE_PROJECT_PARAM = "imageProject";
|
|
3526
3526
|
const IMAGE_FAMILY_PARAM = "imageFamily";
|
|
3527
3527
|
const SERVICE_ACCOUNT_EMAIL_PARAM = "serviceAccountEmail";
|
|
3528
|
-
function buildId$
|
|
3528
|
+
function buildId$21(id) {
|
|
3529
3529
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3530
3530
|
}
|
|
3531
|
-
function buildVersion$
|
|
3531
|
+
function buildVersion$21(major, minor, patch) {
|
|
3532
3532
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3533
3533
|
}
|
|
3534
3534
|
function buildGcpVmType() {
|
|
3535
3535
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(GCP_VM_TYPE_NAME).build()).build();
|
|
3536
3536
|
}
|
|
3537
|
-
function pushParam$
|
|
3537
|
+
function pushParam$19(params, key, value) {
|
|
3538
3538
|
params.push(key, value);
|
|
3539
3539
|
}
|
|
3540
3540
|
let GcpVm;
|
|
@@ -3544,11 +3544,11 @@ let GcpVm;
|
|
|
3544
3544
|
const inner = getLiveSystemComponentBuilder().withType(buildGcpVmType()).withParameters(params).withProvider("GCP");
|
|
3545
3545
|
const builder = {
|
|
3546
3546
|
withId: (id) => {
|
|
3547
|
-
inner.withId(buildId$
|
|
3547
|
+
inner.withId(buildId$21(id));
|
|
3548
3548
|
return builder;
|
|
3549
3549
|
},
|
|
3550
3550
|
withVersion: (major, minor, patch) => {
|
|
3551
|
-
inner.withVersion(buildVersion$
|
|
3551
|
+
inner.withVersion(buildVersion$21(major, minor, patch));
|
|
3552
3552
|
return builder;
|
|
3553
3553
|
},
|
|
3554
3554
|
withDisplayName: (displayName) => {
|
|
@@ -3560,23 +3560,23 @@ let GcpVm;
|
|
|
3560
3560
|
return builder;
|
|
3561
3561
|
},
|
|
3562
3562
|
withMachineType: (value) => {
|
|
3563
|
-
pushParam$
|
|
3563
|
+
pushParam$19(params, MACHINE_TYPE_PARAM, value);
|
|
3564
3564
|
return builder;
|
|
3565
3565
|
},
|
|
3566
3566
|
withZone: (value) => {
|
|
3567
|
-
pushParam$
|
|
3567
|
+
pushParam$19(params, ZONE_PARAM, value);
|
|
3568
3568
|
return builder;
|
|
3569
3569
|
},
|
|
3570
3570
|
withImageProject: (value) => {
|
|
3571
|
-
pushParam$
|
|
3571
|
+
pushParam$19(params, IMAGE_PROJECT_PARAM, value);
|
|
3572
3572
|
return builder;
|
|
3573
3573
|
},
|
|
3574
3574
|
withImageFamily: (value) => {
|
|
3575
|
-
pushParam$
|
|
3575
|
+
pushParam$19(params, IMAGE_FAMILY_PARAM, value);
|
|
3576
3576
|
return builder;
|
|
3577
3577
|
},
|
|
3578
3578
|
withServiceAccountEmail: (value) => {
|
|
3579
|
-
pushParam$
|
|
3579
|
+
pushParam$19(params, SERVICE_ACCOUNT_EMAIL_PARAM, value);
|
|
3580
3580
|
return builder;
|
|
3581
3581
|
},
|
|
3582
3582
|
build: () => inner.build()
|
|
@@ -3585,27 +3585,27 @@ let GcpVm;
|
|
|
3585
3585
|
};
|
|
3586
3586
|
_GcpVm.satisfy = (blueprint) => {
|
|
3587
3587
|
const params = getParametersInstance();
|
|
3588
|
-
const inner = getLiveSystemComponentBuilder().withType(buildGcpVmType()).withParameters(params).withProvider("GCP").withId(buildId$
|
|
3588
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpVmType()).withParameters(params).withProvider("GCP").withId(buildId$21(blueprint.id.toString())).withVersion(buildVersion$21(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3589
3589
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3590
3590
|
const satisfiedBuilder = {
|
|
3591
3591
|
withMachineType: (value) => {
|
|
3592
|
-
pushParam$
|
|
3592
|
+
pushParam$19(params, MACHINE_TYPE_PARAM, value);
|
|
3593
3593
|
return satisfiedBuilder;
|
|
3594
3594
|
},
|
|
3595
3595
|
withZone: (value) => {
|
|
3596
|
-
pushParam$
|
|
3596
|
+
pushParam$19(params, ZONE_PARAM, value);
|
|
3597
3597
|
return satisfiedBuilder;
|
|
3598
3598
|
},
|
|
3599
3599
|
withImageProject: (value) => {
|
|
3600
|
-
pushParam$
|
|
3600
|
+
pushParam$19(params, IMAGE_PROJECT_PARAM, value);
|
|
3601
3601
|
return satisfiedBuilder;
|
|
3602
3602
|
},
|
|
3603
3603
|
withImageFamily: (value) => {
|
|
3604
|
-
pushParam$
|
|
3604
|
+
pushParam$19(params, IMAGE_FAMILY_PARAM, value);
|
|
3605
3605
|
return satisfiedBuilder;
|
|
3606
3606
|
},
|
|
3607
3607
|
withServiceAccountEmail: (value) => {
|
|
3608
|
-
pushParam$
|
|
3608
|
+
pushParam$19(params, SERVICE_ACCOUNT_EMAIL_PARAM, value);
|
|
3609
3609
|
return satisfiedBuilder;
|
|
3610
3610
|
},
|
|
3611
3611
|
build: () => inner.build()
|
|
@@ -3625,16 +3625,16 @@ let GcpVm;
|
|
|
3625
3625
|
//#region src/live_system/component/network_and_compute/iaas/oci_vcn.ts
|
|
3626
3626
|
const OCI_VCN_TYPE_NAME = "OciVcn";
|
|
3627
3627
|
const COMPARTMENT_ID_PARAM$3 = "compartmentId";
|
|
3628
|
-
function buildId$
|
|
3628
|
+
function buildId$20(id) {
|
|
3629
3629
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3630
3630
|
}
|
|
3631
|
-
function buildVersion$
|
|
3631
|
+
function buildVersion$20(major, minor, patch) {
|
|
3632
3632
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3633
3633
|
}
|
|
3634
3634
|
function buildOciVcnType() {
|
|
3635
3635
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_VCN_TYPE_NAME).build()).build();
|
|
3636
3636
|
}
|
|
3637
|
-
function pushParam$
|
|
3637
|
+
function pushParam$18(params, key, value) {
|
|
3638
3638
|
params.push(key, value);
|
|
3639
3639
|
}
|
|
3640
3640
|
let OciVcn;
|
|
@@ -3644,11 +3644,11 @@ let OciVcn;
|
|
|
3644
3644
|
const inner = getLiveSystemComponentBuilder().withType(buildOciVcnType()).withParameters(params).withProvider("OCI");
|
|
3645
3645
|
const builder = {
|
|
3646
3646
|
withId: (id) => {
|
|
3647
|
-
inner.withId(buildId$
|
|
3647
|
+
inner.withId(buildId$20(id));
|
|
3648
3648
|
return builder;
|
|
3649
3649
|
},
|
|
3650
3650
|
withVersion: (major, minor, patch) => {
|
|
3651
|
-
inner.withVersion(buildVersion$
|
|
3651
|
+
inner.withVersion(buildVersion$20(major, minor, patch));
|
|
3652
3652
|
return builder;
|
|
3653
3653
|
},
|
|
3654
3654
|
withDisplayName: (displayName) => {
|
|
@@ -3660,11 +3660,11 @@ let OciVcn;
|
|
|
3660
3660
|
return builder;
|
|
3661
3661
|
},
|
|
3662
3662
|
withCidrBlock: (value) => {
|
|
3663
|
-
pushParam$
|
|
3663
|
+
pushParam$18(params, CIDR_BLOCK_PARAM$1, value);
|
|
3664
3664
|
return builder;
|
|
3665
3665
|
},
|
|
3666
3666
|
withCompartmentId: (value) => {
|
|
3667
|
-
pushParam$
|
|
3667
|
+
pushParam$18(params, COMPARTMENT_ID_PARAM$3, value);
|
|
3668
3668
|
return builder;
|
|
3669
3669
|
},
|
|
3670
3670
|
build: () => inner.build()
|
|
@@ -3673,13 +3673,13 @@ let OciVcn;
|
|
|
3673
3673
|
};
|
|
3674
3674
|
_OciVcn.satisfy = (blueprint) => {
|
|
3675
3675
|
const params = getParametersInstance();
|
|
3676
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciVcnType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
3676
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciVcnType()).withParameters(params).withProvider("OCI").withId(buildId$20(blueprint.id.toString())).withVersion(buildVersion$20(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3677
3677
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3678
3678
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
3679
|
-
if (cidrBlock !== null) pushParam$
|
|
3679
|
+
if (cidrBlock !== null) pushParam$18(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
3680
3680
|
const satisfiedBuilder = {
|
|
3681
3681
|
withCompartmentId: (value) => {
|
|
3682
|
-
pushParam$
|
|
3682
|
+
pushParam$18(params, COMPARTMENT_ID_PARAM$3, value);
|
|
3683
3683
|
return satisfiedBuilder;
|
|
3684
3684
|
},
|
|
3685
3685
|
build: () => inner.build()
|
|
@@ -3699,16 +3699,16 @@ const OCI_SUBNET_TYPE_NAME = "OciSubnet";
|
|
|
3699
3699
|
const COMPARTMENT_ID_PARAM$2 = "compartmentId";
|
|
3700
3700
|
const AVAILABILITY_DOMAIN_PARAM$1 = "availabilityDomain";
|
|
3701
3701
|
const PROHIBIT_PUBLIC_IP_PARAM = "prohibitPublicIpOnVnic";
|
|
3702
|
-
function buildId$
|
|
3702
|
+
function buildId$19(id) {
|
|
3703
3703
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3704
3704
|
}
|
|
3705
|
-
function buildVersion$
|
|
3705
|
+
function buildVersion$19(major, minor, patch) {
|
|
3706
3706
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3707
3707
|
}
|
|
3708
3708
|
function buildOciSubnetType() {
|
|
3709
3709
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_SUBNET_TYPE_NAME).build()).build();
|
|
3710
3710
|
}
|
|
3711
|
-
function pushParam$
|
|
3711
|
+
function pushParam$17(params, key, value) {
|
|
3712
3712
|
params.push(key, value);
|
|
3713
3713
|
}
|
|
3714
3714
|
let OciSubnet;
|
|
@@ -3718,11 +3718,11 @@ let OciSubnet;
|
|
|
3718
3718
|
const inner = getLiveSystemComponentBuilder().withType(buildOciSubnetType()).withParameters(params).withProvider("OCI");
|
|
3719
3719
|
const builder = {
|
|
3720
3720
|
withId: (id) => {
|
|
3721
|
-
inner.withId(buildId$
|
|
3721
|
+
inner.withId(buildId$19(id));
|
|
3722
3722
|
return builder;
|
|
3723
3723
|
},
|
|
3724
3724
|
withVersion: (major, minor, patch) => {
|
|
3725
|
-
inner.withVersion(buildVersion$
|
|
3725
|
+
inner.withVersion(buildVersion$19(major, minor, patch));
|
|
3726
3726
|
return builder;
|
|
3727
3727
|
},
|
|
3728
3728
|
withDisplayName: (displayName) => {
|
|
@@ -3734,19 +3734,19 @@ let OciSubnet;
|
|
|
3734
3734
|
return builder;
|
|
3735
3735
|
},
|
|
3736
3736
|
withCidrBlock: (value) => {
|
|
3737
|
-
pushParam$
|
|
3737
|
+
pushParam$17(params, CIDR_BLOCK_PARAM, value);
|
|
3738
3738
|
return builder;
|
|
3739
3739
|
},
|
|
3740
3740
|
withCompartmentId: (value) => {
|
|
3741
|
-
pushParam$
|
|
3741
|
+
pushParam$17(params, COMPARTMENT_ID_PARAM$2, value);
|
|
3742
3742
|
return builder;
|
|
3743
3743
|
},
|
|
3744
3744
|
withAvailabilityDomain: (value) => {
|
|
3745
|
-
pushParam$
|
|
3745
|
+
pushParam$17(params, AVAILABILITY_DOMAIN_PARAM$1, value);
|
|
3746
3746
|
return builder;
|
|
3747
3747
|
},
|
|
3748
3748
|
withProhibitPublicIpOnVnic: (value) => {
|
|
3749
|
-
pushParam$
|
|
3749
|
+
pushParam$17(params, PROHIBIT_PUBLIC_IP_PARAM, value);
|
|
3750
3750
|
return builder;
|
|
3751
3751
|
},
|
|
3752
3752
|
build: () => inner.build()
|
|
@@ -3755,21 +3755,21 @@ let OciSubnet;
|
|
|
3755
3755
|
};
|
|
3756
3756
|
_OciSubnet.satisfy = (blueprint) => {
|
|
3757
3757
|
const params = getParametersInstance();
|
|
3758
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciSubnetType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
3758
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciSubnetType()).withParameters(params).withProvider("OCI").withId(buildId$19(blueprint.id.toString())).withVersion(buildVersion$19(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3759
3759
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3760
3760
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
3761
|
-
if (cidrBlock !== null) pushParam$
|
|
3761
|
+
if (cidrBlock !== null) pushParam$17(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
3762
3762
|
const satisfiedBuilder = {
|
|
3763
3763
|
withCompartmentId: (value) => {
|
|
3764
|
-
pushParam$
|
|
3764
|
+
pushParam$17(params, COMPARTMENT_ID_PARAM$2, value);
|
|
3765
3765
|
return satisfiedBuilder;
|
|
3766
3766
|
},
|
|
3767
3767
|
withAvailabilityDomain: (value) => {
|
|
3768
|
-
pushParam$
|
|
3768
|
+
pushParam$17(params, AVAILABILITY_DOMAIN_PARAM$1, value);
|
|
3769
3769
|
return satisfiedBuilder;
|
|
3770
3770
|
},
|
|
3771
3771
|
withProhibitPublicIpOnVnic: (value) => {
|
|
3772
|
-
pushParam$
|
|
3772
|
+
pushParam$17(params, PROHIBIT_PUBLIC_IP_PARAM, value);
|
|
3773
3773
|
return satisfiedBuilder;
|
|
3774
3774
|
},
|
|
3775
3775
|
build: () => inner.build()
|
|
@@ -3789,16 +3789,16 @@ let OciSubnet;
|
|
|
3789
3789
|
//#region src/live_system/component/network_and_compute/iaas/oci_security_list.ts
|
|
3790
3790
|
const OCI_SECURITY_LIST_TYPE_NAME = "OciSecurityList";
|
|
3791
3791
|
const COMPARTMENT_ID_PARAM$1 = "compartmentId";
|
|
3792
|
-
function buildId$
|
|
3792
|
+
function buildId$18(id) {
|
|
3793
3793
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3794
3794
|
}
|
|
3795
|
-
function buildVersion$
|
|
3795
|
+
function buildVersion$18(major, minor, patch) {
|
|
3796
3796
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3797
3797
|
}
|
|
3798
3798
|
function buildOciSecurityListType() {
|
|
3799
3799
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_SECURITY_LIST_TYPE_NAME).build()).build();
|
|
3800
3800
|
}
|
|
3801
|
-
function pushParam$
|
|
3801
|
+
function pushParam$16(params, key, value) {
|
|
3802
3802
|
params.push(key, value);
|
|
3803
3803
|
}
|
|
3804
3804
|
let OciSecurityList;
|
|
@@ -3808,11 +3808,11 @@ let OciSecurityList;
|
|
|
3808
3808
|
const inner = getLiveSystemComponentBuilder().withType(buildOciSecurityListType()).withParameters(params).withProvider("OCI");
|
|
3809
3809
|
const builder = {
|
|
3810
3810
|
withId: (id) => {
|
|
3811
|
-
inner.withId(buildId$
|
|
3811
|
+
inner.withId(buildId$18(id));
|
|
3812
3812
|
return builder;
|
|
3813
3813
|
},
|
|
3814
3814
|
withVersion: (major, minor, patch) => {
|
|
3815
|
-
inner.withVersion(buildVersion$
|
|
3815
|
+
inner.withVersion(buildVersion$18(major, minor, patch));
|
|
3816
3816
|
return builder;
|
|
3817
3817
|
},
|
|
3818
3818
|
withDisplayName: (displayName) => {
|
|
@@ -3821,15 +3821,15 @@ let OciSecurityList;
|
|
|
3821
3821
|
},
|
|
3822
3822
|
withDescription: (description) => {
|
|
3823
3823
|
inner.withDescription(description);
|
|
3824
|
-
pushParam$
|
|
3824
|
+
pushParam$16(params, DESCRIPTION_PARAM, description);
|
|
3825
3825
|
return builder;
|
|
3826
3826
|
},
|
|
3827
3827
|
withIngressRules: (rules) => {
|
|
3828
|
-
pushParam$
|
|
3828
|
+
pushParam$16(params, INGRESS_RULES_PARAM, rules);
|
|
3829
3829
|
return builder;
|
|
3830
3830
|
},
|
|
3831
3831
|
withCompartmentId: (value) => {
|
|
3832
|
-
pushParam$
|
|
3832
|
+
pushParam$16(params, COMPARTMENT_ID_PARAM$1, value);
|
|
3833
3833
|
return builder;
|
|
3834
3834
|
},
|
|
3835
3835
|
build: () => inner.build()
|
|
@@ -3838,17 +3838,17 @@ let OciSecurityList;
|
|
|
3838
3838
|
};
|
|
3839
3839
|
_OciSecurityList.satisfy = (blueprint) => {
|
|
3840
3840
|
const params = getParametersInstance();
|
|
3841
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciSecurityListType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
3841
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciSecurityListType()).withParameters(params).withProvider("OCI").withId(buildId$18(blueprint.id.toString())).withVersion(buildVersion$18(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3842
3842
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
3843
3843
|
if (description !== null) {
|
|
3844
3844
|
inner.withDescription(String(description));
|
|
3845
|
-
pushParam$
|
|
3845
|
+
pushParam$16(params, DESCRIPTION_PARAM, String(description));
|
|
3846
3846
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3847
3847
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
3848
|
-
if (ingressRules !== null) pushParam$
|
|
3848
|
+
if (ingressRules !== null) pushParam$16(params, INGRESS_RULES_PARAM, ingressRules);
|
|
3849
3849
|
const satisfiedBuilder = {
|
|
3850
3850
|
withCompartmentId: (value) => {
|
|
3851
|
-
pushParam$
|
|
3851
|
+
pushParam$16(params, COMPARTMENT_ID_PARAM$1, value);
|
|
3852
3852
|
return satisfiedBuilder;
|
|
3853
3853
|
},
|
|
3854
3854
|
build: () => inner.build()
|
|
@@ -3873,16 +3873,16 @@ const IMAGE_ID_PARAM = "imageId";
|
|
|
3873
3873
|
const OCPUS_PARAM = "ocpus";
|
|
3874
3874
|
const MEMORY_IN_GBS_PARAM = "memoryInGbs";
|
|
3875
3875
|
const SSH_PUBLIC_KEY_PARAM = "sshPublicKey";
|
|
3876
|
-
function buildId$
|
|
3876
|
+
function buildId$17(id) {
|
|
3877
3877
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3878
3878
|
}
|
|
3879
|
-
function buildVersion$
|
|
3879
|
+
function buildVersion$17(major, minor, patch) {
|
|
3880
3880
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3881
3881
|
}
|
|
3882
3882
|
function buildOciInstanceType() {
|
|
3883
3883
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_INSTANCE_TYPE_NAME).build()).build();
|
|
3884
3884
|
}
|
|
3885
|
-
function pushParam$
|
|
3885
|
+
function pushParam$15(params, key, value) {
|
|
3886
3886
|
params.push(key, value);
|
|
3887
3887
|
}
|
|
3888
3888
|
let OciInstance;
|
|
@@ -3892,11 +3892,11 @@ let OciInstance;
|
|
|
3892
3892
|
const inner = getLiveSystemComponentBuilder().withType(buildOciInstanceType()).withParameters(params).withProvider("OCI");
|
|
3893
3893
|
const builder = {
|
|
3894
3894
|
withId: (id) => {
|
|
3895
|
-
inner.withId(buildId$
|
|
3895
|
+
inner.withId(buildId$17(id));
|
|
3896
3896
|
return builder;
|
|
3897
3897
|
},
|
|
3898
3898
|
withVersion: (major, minor, patch) => {
|
|
3899
|
-
inner.withVersion(buildVersion$
|
|
3899
|
+
inner.withVersion(buildVersion$17(major, minor, patch));
|
|
3900
3900
|
return builder;
|
|
3901
3901
|
},
|
|
3902
3902
|
withDisplayName: (displayName) => {
|
|
@@ -3908,31 +3908,31 @@ let OciInstance;
|
|
|
3908
3908
|
return builder;
|
|
3909
3909
|
},
|
|
3910
3910
|
withCompartmentId: (value) => {
|
|
3911
|
-
pushParam$
|
|
3911
|
+
pushParam$15(params, COMPARTMENT_ID_PARAM, value);
|
|
3912
3912
|
return builder;
|
|
3913
3913
|
},
|
|
3914
3914
|
withAvailabilityDomain: (value) => {
|
|
3915
|
-
pushParam$
|
|
3915
|
+
pushParam$15(params, AVAILABILITY_DOMAIN_PARAM, value);
|
|
3916
3916
|
return builder;
|
|
3917
3917
|
},
|
|
3918
3918
|
withShape: (value) => {
|
|
3919
|
-
pushParam$
|
|
3919
|
+
pushParam$15(params, SHAPE_PARAM, value);
|
|
3920
3920
|
return builder;
|
|
3921
3921
|
},
|
|
3922
3922
|
withImageId: (value) => {
|
|
3923
|
-
pushParam$
|
|
3923
|
+
pushParam$15(params, IMAGE_ID_PARAM, value);
|
|
3924
3924
|
return builder;
|
|
3925
3925
|
},
|
|
3926
3926
|
withOcpus: (value) => {
|
|
3927
|
-
pushParam$
|
|
3927
|
+
pushParam$15(params, OCPUS_PARAM, value);
|
|
3928
3928
|
return builder;
|
|
3929
3929
|
},
|
|
3930
3930
|
withMemoryInGbs: (value) => {
|
|
3931
|
-
pushParam$
|
|
3931
|
+
pushParam$15(params, MEMORY_IN_GBS_PARAM, value);
|
|
3932
3932
|
return builder;
|
|
3933
3933
|
},
|
|
3934
3934
|
withSshPublicKey: (value) => {
|
|
3935
|
-
pushParam$
|
|
3935
|
+
pushParam$15(params, SSH_PUBLIC_KEY_PARAM, value);
|
|
3936
3936
|
return builder;
|
|
3937
3937
|
},
|
|
3938
3938
|
build: () => inner.build()
|
|
@@ -3941,35 +3941,35 @@ let OciInstance;
|
|
|
3941
3941
|
};
|
|
3942
3942
|
_OciInstance.satisfy = (blueprint) => {
|
|
3943
3943
|
const params = getParametersInstance();
|
|
3944
|
-
const inner = getLiveSystemComponentBuilder().withType(buildOciInstanceType()).withParameters(params).withProvider("OCI").withId(buildId$
|
|
3944
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciInstanceType()).withParameters(params).withProvider("OCI").withId(buildId$17(blueprint.id.toString())).withVersion(buildVersion$17(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
3945
3945
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
3946
3946
|
const satisfiedBuilder = {
|
|
3947
3947
|
withCompartmentId: (value) => {
|
|
3948
|
-
pushParam$
|
|
3948
|
+
pushParam$15(params, COMPARTMENT_ID_PARAM, value);
|
|
3949
3949
|
return satisfiedBuilder;
|
|
3950
3950
|
},
|
|
3951
3951
|
withAvailabilityDomain: (value) => {
|
|
3952
|
-
pushParam$
|
|
3952
|
+
pushParam$15(params, AVAILABILITY_DOMAIN_PARAM, value);
|
|
3953
3953
|
return satisfiedBuilder;
|
|
3954
3954
|
},
|
|
3955
3955
|
withShape: (value) => {
|
|
3956
|
-
pushParam$
|
|
3956
|
+
pushParam$15(params, SHAPE_PARAM, value);
|
|
3957
3957
|
return satisfiedBuilder;
|
|
3958
3958
|
},
|
|
3959
3959
|
withImageId: (value) => {
|
|
3960
|
-
pushParam$
|
|
3960
|
+
pushParam$15(params, IMAGE_ID_PARAM, value);
|
|
3961
3961
|
return satisfiedBuilder;
|
|
3962
3962
|
},
|
|
3963
3963
|
withOcpus: (value) => {
|
|
3964
|
-
pushParam$
|
|
3964
|
+
pushParam$15(params, OCPUS_PARAM, value);
|
|
3965
3965
|
return satisfiedBuilder;
|
|
3966
3966
|
},
|
|
3967
3967
|
withMemoryInGbs: (value) => {
|
|
3968
|
-
pushParam$
|
|
3968
|
+
pushParam$15(params, MEMORY_IN_GBS_PARAM, value);
|
|
3969
3969
|
return satisfiedBuilder;
|
|
3970
3970
|
},
|
|
3971
3971
|
withSshPublicKey: (value) => {
|
|
3972
|
-
pushParam$
|
|
3972
|
+
pushParam$15(params, SSH_PUBLIC_KEY_PARAM, value);
|
|
3973
3973
|
return satisfiedBuilder;
|
|
3974
3974
|
},
|
|
3975
3975
|
build: () => inner.build()
|
|
@@ -3989,16 +3989,16 @@ let OciInstance;
|
|
|
3989
3989
|
//#endregion
|
|
3990
3990
|
//#region src/live_system/component/network_and_compute/iaas/hetzner_network.ts
|
|
3991
3991
|
const HETZNER_NETWORK_TYPE_NAME = "HetznerNetwork";
|
|
3992
|
-
function buildId$
|
|
3992
|
+
function buildId$16(id) {
|
|
3993
3993
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
3994
3994
|
}
|
|
3995
|
-
function buildVersion$
|
|
3995
|
+
function buildVersion$16(major, minor, patch) {
|
|
3996
3996
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
3997
3997
|
}
|
|
3998
3998
|
function buildHetznerNetworkType() {
|
|
3999
3999
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_NETWORK_TYPE_NAME).build()).build();
|
|
4000
4000
|
}
|
|
4001
|
-
function pushParam$
|
|
4001
|
+
function pushParam$14(params, key, value) {
|
|
4002
4002
|
params.push(key, value);
|
|
4003
4003
|
}
|
|
4004
4004
|
let HetznerNetwork;
|
|
@@ -4008,11 +4008,11 @@ let HetznerNetwork;
|
|
|
4008
4008
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerNetworkType()).withParameters(params).withProvider("Hetzner");
|
|
4009
4009
|
const builder = {
|
|
4010
4010
|
withId: (id) => {
|
|
4011
|
-
inner.withId(buildId$
|
|
4011
|
+
inner.withId(buildId$16(id));
|
|
4012
4012
|
return builder;
|
|
4013
4013
|
},
|
|
4014
4014
|
withVersion: (major, minor, patch) => {
|
|
4015
|
-
inner.withVersion(buildVersion$
|
|
4015
|
+
inner.withVersion(buildVersion$16(major, minor, patch));
|
|
4016
4016
|
return builder;
|
|
4017
4017
|
},
|
|
4018
4018
|
withDisplayName: (displayName) => {
|
|
@@ -4024,7 +4024,7 @@ let HetznerNetwork;
|
|
|
4024
4024
|
return builder;
|
|
4025
4025
|
},
|
|
4026
4026
|
withCidrBlock: (value) => {
|
|
4027
|
-
pushParam$
|
|
4027
|
+
pushParam$14(params, CIDR_BLOCK_PARAM$1, value);
|
|
4028
4028
|
return builder;
|
|
4029
4029
|
},
|
|
4030
4030
|
build: () => inner.build()
|
|
@@ -4033,10 +4033,10 @@ let HetznerNetwork;
|
|
|
4033
4033
|
};
|
|
4034
4034
|
_HetznerNetwork.satisfy = (blueprint) => {
|
|
4035
4035
|
const params = getParametersInstance();
|
|
4036
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerNetworkType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
4036
|
+
const inner = getLiveSystemComponentBuilder().withType(buildHetznerNetworkType()).withParameters(params).withProvider("Hetzner").withId(buildId$16(blueprint.id.toString())).withVersion(buildVersion$16(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
4037
4037
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4038
4038
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM$1);
|
|
4039
|
-
if (cidrBlock !== null) pushParam$
|
|
4039
|
+
if (cidrBlock !== null) pushParam$14(params, CIDR_BLOCK_PARAM$1, String(cidrBlock));
|
|
4040
4040
|
return { build: () => inner.build() };
|
|
4041
4041
|
};
|
|
4042
4042
|
_HetznerNetwork.create = (config) => {
|
|
@@ -4051,16 +4051,16 @@ let HetznerNetwork;
|
|
|
4051
4051
|
const HETZNER_SUBNET_TYPE_NAME = "HetznerSubnet";
|
|
4052
4052
|
const NETWORK_ZONE_PARAM = "networkZone";
|
|
4053
4053
|
const TYPE_PARAM = "type";
|
|
4054
|
-
function buildId$
|
|
4054
|
+
function buildId$15(id) {
|
|
4055
4055
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4056
4056
|
}
|
|
4057
|
-
function buildVersion$
|
|
4057
|
+
function buildVersion$15(major, minor, patch) {
|
|
4058
4058
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4059
4059
|
}
|
|
4060
4060
|
function buildHetznerSubnetType() {
|
|
4061
4061
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_SUBNET_TYPE_NAME).build()).build();
|
|
4062
4062
|
}
|
|
4063
|
-
function pushParam$
|
|
4063
|
+
function pushParam$13(params, key, value) {
|
|
4064
4064
|
params.push(key, value);
|
|
4065
4065
|
}
|
|
4066
4066
|
let HetznerSubnet;
|
|
@@ -4070,11 +4070,11 @@ let HetznerSubnet;
|
|
|
4070
4070
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerSubnetType()).withParameters(params).withProvider("Hetzner");
|
|
4071
4071
|
const builder = {
|
|
4072
4072
|
withId: (id) => {
|
|
4073
|
-
inner.withId(buildId$
|
|
4073
|
+
inner.withId(buildId$15(id));
|
|
4074
4074
|
return builder;
|
|
4075
4075
|
},
|
|
4076
4076
|
withVersion: (major, minor, patch) => {
|
|
4077
|
-
inner.withVersion(buildVersion$
|
|
4077
|
+
inner.withVersion(buildVersion$15(major, minor, patch));
|
|
4078
4078
|
return builder;
|
|
4079
4079
|
},
|
|
4080
4080
|
withDisplayName: (displayName) => {
|
|
@@ -4086,15 +4086,15 @@ let HetznerSubnet;
|
|
|
4086
4086
|
return builder;
|
|
4087
4087
|
},
|
|
4088
4088
|
withCidrBlock: (value) => {
|
|
4089
|
-
pushParam$
|
|
4089
|
+
pushParam$13(params, CIDR_BLOCK_PARAM, value);
|
|
4090
4090
|
return builder;
|
|
4091
4091
|
},
|
|
4092
4092
|
withNetworkZone: (value) => {
|
|
4093
|
-
pushParam$
|
|
4093
|
+
pushParam$13(params, NETWORK_ZONE_PARAM, value);
|
|
4094
4094
|
return builder;
|
|
4095
4095
|
},
|
|
4096
4096
|
withType: (value) => {
|
|
4097
|
-
pushParam$
|
|
4097
|
+
pushParam$13(params, TYPE_PARAM, value);
|
|
4098
4098
|
return builder;
|
|
4099
4099
|
},
|
|
4100
4100
|
build: () => inner.build()
|
|
@@ -4103,17 +4103,17 @@ let HetznerSubnet;
|
|
|
4103
4103
|
};
|
|
4104
4104
|
_HetznerSubnet.satisfy = (blueprint) => {
|
|
4105
4105
|
const params = getParametersInstance();
|
|
4106
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerSubnetType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
4106
|
+
const inner = getLiveSystemComponentBuilder().withType(buildHetznerSubnetType()).withParameters(params).withProvider("Hetzner").withId(buildId$15(blueprint.id.toString())).withVersion(buildVersion$15(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
4107
4107
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4108
4108
|
const cidrBlock = blueprint.parameters.getOptionalFieldByName(CIDR_BLOCK_PARAM);
|
|
4109
|
-
if (cidrBlock !== null) pushParam$
|
|
4109
|
+
if (cidrBlock !== null) pushParam$13(params, CIDR_BLOCK_PARAM, String(cidrBlock));
|
|
4110
4110
|
const satisfiedBuilder = {
|
|
4111
4111
|
withNetworkZone: (value) => {
|
|
4112
|
-
pushParam$
|
|
4112
|
+
pushParam$13(params, NETWORK_ZONE_PARAM, value);
|
|
4113
4113
|
return satisfiedBuilder;
|
|
4114
4114
|
},
|
|
4115
4115
|
withType: (value) => {
|
|
4116
|
-
pushParam$
|
|
4116
|
+
pushParam$13(params, TYPE_PARAM, value);
|
|
4117
4117
|
return satisfiedBuilder;
|
|
4118
4118
|
},
|
|
4119
4119
|
build: () => inner.build()
|
|
@@ -4131,16 +4131,16 @@ let HetznerSubnet;
|
|
|
4131
4131
|
//#endregion
|
|
4132
4132
|
//#region src/live_system/component/network_and_compute/iaas/hetzner_firewall.ts
|
|
4133
4133
|
const HETZNER_FIREWALL_TYPE_NAME = "HetznerFirewall";
|
|
4134
|
-
function buildId$
|
|
4134
|
+
function buildId$14(id) {
|
|
4135
4135
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4136
4136
|
}
|
|
4137
|
-
function buildVersion$
|
|
4137
|
+
function buildVersion$14(major, minor, patch) {
|
|
4138
4138
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4139
4139
|
}
|
|
4140
4140
|
function buildHetznerFirewallType() {
|
|
4141
4141
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_FIREWALL_TYPE_NAME).build()).build();
|
|
4142
4142
|
}
|
|
4143
|
-
function pushParam$
|
|
4143
|
+
function pushParam$12(params, key, value) {
|
|
4144
4144
|
params.push(key, value);
|
|
4145
4145
|
}
|
|
4146
4146
|
let HetznerFirewall;
|
|
@@ -4150,11 +4150,11 @@ let HetznerFirewall;
|
|
|
4150
4150
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerFirewallType()).withParameters(params).withProvider("Hetzner");
|
|
4151
4151
|
const builder = {
|
|
4152
4152
|
withId: (id) => {
|
|
4153
|
-
inner.withId(buildId$
|
|
4153
|
+
inner.withId(buildId$14(id));
|
|
4154
4154
|
return builder;
|
|
4155
4155
|
},
|
|
4156
4156
|
withVersion: (major, minor, patch) => {
|
|
4157
|
-
inner.withVersion(buildVersion$
|
|
4157
|
+
inner.withVersion(buildVersion$14(major, minor, patch));
|
|
4158
4158
|
return builder;
|
|
4159
4159
|
},
|
|
4160
4160
|
withDisplayName: (displayName) => {
|
|
@@ -4163,11 +4163,11 @@ let HetznerFirewall;
|
|
|
4163
4163
|
},
|
|
4164
4164
|
withDescription: (description) => {
|
|
4165
4165
|
inner.withDescription(description);
|
|
4166
|
-
pushParam$
|
|
4166
|
+
pushParam$12(params, DESCRIPTION_PARAM, description);
|
|
4167
4167
|
return builder;
|
|
4168
4168
|
},
|
|
4169
4169
|
withIngressRules: (rules) => {
|
|
4170
|
-
pushParam$
|
|
4170
|
+
pushParam$12(params, INGRESS_RULES_PARAM, rules);
|
|
4171
4171
|
return builder;
|
|
4172
4172
|
},
|
|
4173
4173
|
build: () => inner.build()
|
|
@@ -4176,14 +4176,14 @@ let HetznerFirewall;
|
|
|
4176
4176
|
};
|
|
4177
4177
|
_HetznerFirewall.satisfy = (blueprint) => {
|
|
4178
4178
|
const params = getParametersInstance();
|
|
4179
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerFirewallType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
4179
|
+
const inner = getLiveSystemComponentBuilder().withType(buildHetznerFirewallType()).withParameters(params).withProvider("Hetzner").withId(buildId$14(blueprint.id.toString())).withVersion(buildVersion$14(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
4180
4180
|
const description = blueprint.parameters.getOptionalFieldByName(DESCRIPTION_PARAM);
|
|
4181
4181
|
if (description !== null) {
|
|
4182
4182
|
inner.withDescription(String(description));
|
|
4183
|
-
pushParam$
|
|
4183
|
+
pushParam$12(params, DESCRIPTION_PARAM, String(description));
|
|
4184
4184
|
} else if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4185
4185
|
const ingressRules = blueprint.parameters.getOptionalFieldByName(INGRESS_RULES_PARAM);
|
|
4186
|
-
if (ingressRules !== null) pushParam$
|
|
4186
|
+
if (ingressRules !== null) pushParam$12(params, INGRESS_RULES_PARAM, ingressRules);
|
|
4187
4187
|
return { build: () => inner.build() };
|
|
4188
4188
|
};
|
|
4189
4189
|
_HetznerFirewall.create = (config) => {
|
|
@@ -4202,16 +4202,16 @@ const LOCATION_PARAM = "location";
|
|
|
4202
4202
|
const IMAGE_PARAM = "image";
|
|
4203
4203
|
const SSH_KEYS_PARAM = "sshKeys";
|
|
4204
4204
|
const USER_DATA_PARAM = "userData";
|
|
4205
|
-
function buildId$
|
|
4205
|
+
function buildId$13(id) {
|
|
4206
4206
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4207
4207
|
}
|
|
4208
|
-
function buildVersion$
|
|
4208
|
+
function buildVersion$13(major, minor, patch) {
|
|
4209
4209
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4210
4210
|
}
|
|
4211
4211
|
function buildHetznerServerType() {
|
|
4212
4212
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.IaaS).withName(PascalCaseString$1.getBuilder().withValue(HETZNER_SERVER_TYPE_NAME).build()).build();
|
|
4213
4213
|
}
|
|
4214
|
-
function pushParam$
|
|
4214
|
+
function pushParam$11(params, key, value) {
|
|
4215
4215
|
params.push(key, value);
|
|
4216
4216
|
}
|
|
4217
4217
|
let HetznerServer;
|
|
@@ -4221,11 +4221,11 @@ let HetznerServer;
|
|
|
4221
4221
|
const inner = getLiveSystemComponentBuilder().withType(buildHetznerServerType()).withParameters(params).withProvider("Hetzner");
|
|
4222
4222
|
const builder = {
|
|
4223
4223
|
withId: (id) => {
|
|
4224
|
-
inner.withId(buildId$
|
|
4224
|
+
inner.withId(buildId$13(id));
|
|
4225
4225
|
return builder;
|
|
4226
4226
|
},
|
|
4227
4227
|
withVersion: (major, minor, patch) => {
|
|
4228
|
-
inner.withVersion(buildVersion$
|
|
4228
|
+
inner.withVersion(buildVersion$13(major, minor, patch));
|
|
4229
4229
|
return builder;
|
|
4230
4230
|
},
|
|
4231
4231
|
withDisplayName: (displayName) => {
|
|
@@ -4237,23 +4237,23 @@ let HetznerServer;
|
|
|
4237
4237
|
return builder;
|
|
4238
4238
|
},
|
|
4239
4239
|
withServerType: (value) => {
|
|
4240
|
-
pushParam$
|
|
4240
|
+
pushParam$11(params, SERVER_TYPE_PARAM, value);
|
|
4241
4241
|
return builder;
|
|
4242
4242
|
},
|
|
4243
4243
|
withLocation: (value) => {
|
|
4244
|
-
pushParam$
|
|
4244
|
+
pushParam$11(params, LOCATION_PARAM, value);
|
|
4245
4245
|
return builder;
|
|
4246
4246
|
},
|
|
4247
4247
|
withImage: (value) => {
|
|
4248
|
-
pushParam$
|
|
4248
|
+
pushParam$11(params, IMAGE_PARAM, value);
|
|
4249
4249
|
return builder;
|
|
4250
4250
|
},
|
|
4251
4251
|
withSshKeys: (value) => {
|
|
4252
|
-
pushParam$
|
|
4252
|
+
pushParam$11(params, SSH_KEYS_PARAM, value);
|
|
4253
4253
|
return builder;
|
|
4254
4254
|
},
|
|
4255
4255
|
withUserData: (value) => {
|
|
4256
|
-
pushParam$
|
|
4256
|
+
pushParam$11(params, USER_DATA_PARAM, value);
|
|
4257
4257
|
return builder;
|
|
4258
4258
|
},
|
|
4259
4259
|
build: () => inner.build()
|
|
@@ -4262,27 +4262,27 @@ let HetznerServer;
|
|
|
4262
4262
|
};
|
|
4263
4263
|
_HetznerServer.satisfy = (blueprint) => {
|
|
4264
4264
|
const params = getParametersInstance();
|
|
4265
|
-
const inner = getLiveSystemComponentBuilder().withType(buildHetznerServerType()).withParameters(params).withProvider("Hetzner").withId(buildId$
|
|
4265
|
+
const inner = getLiveSystemComponentBuilder().withType(buildHetznerServerType()).withParameters(params).withProvider("Hetzner").withId(buildId$13(blueprint.id.toString())).withVersion(buildVersion$13(blueprint.version.major, blueprint.version.minor, blueprint.version.patch)).withDisplayName(blueprint.displayName).withDependencies(blueprint.dependencies).withLinks(blueprint.links);
|
|
4266
4266
|
if (blueprint.description) inner.withDescription(blueprint.description);
|
|
4267
4267
|
const satisfiedBuilder = {
|
|
4268
4268
|
withServerType: (value) => {
|
|
4269
|
-
pushParam$
|
|
4269
|
+
pushParam$11(params, SERVER_TYPE_PARAM, value);
|
|
4270
4270
|
return satisfiedBuilder;
|
|
4271
4271
|
},
|
|
4272
4272
|
withLocation: (value) => {
|
|
4273
|
-
pushParam$
|
|
4273
|
+
pushParam$11(params, LOCATION_PARAM, value);
|
|
4274
4274
|
return satisfiedBuilder;
|
|
4275
4275
|
},
|
|
4276
4276
|
withImage: (value) => {
|
|
4277
|
-
pushParam$
|
|
4277
|
+
pushParam$11(params, IMAGE_PARAM, value);
|
|
4278
4278
|
return satisfiedBuilder;
|
|
4279
4279
|
},
|
|
4280
4280
|
withSshKeys: (value) => {
|
|
4281
|
-
pushParam$
|
|
4281
|
+
pushParam$11(params, SSH_KEYS_PARAM, value);
|
|
4282
4282
|
return satisfiedBuilder;
|
|
4283
4283
|
},
|
|
4284
4284
|
withUserData: (value) => {
|
|
4285
|
-
pushParam$
|
|
4285
|
+
pushParam$11(params, USER_DATA_PARAM, value);
|
|
4286
4286
|
return satisfiedBuilder;
|
|
4287
4287
|
},
|
|
4288
4288
|
build: () => inner.build()
|
|
@@ -4301,10 +4301,10 @@ let HetznerServer;
|
|
|
4301
4301
|
//#endregion
|
|
4302
4302
|
//#region src/fractal/component/network_and_compute/paas/container_platform.ts
|
|
4303
4303
|
const CONTAINER_PLATFORM_TYPE_NAME = "ContainerPlatform";
|
|
4304
|
-
function buildId$
|
|
4304
|
+
function buildId$12(id) {
|
|
4305
4305
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4306
4306
|
}
|
|
4307
|
-
function buildVersion$
|
|
4307
|
+
function buildVersion$12(major, minor, patch) {
|
|
4308
4308
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4309
4309
|
}
|
|
4310
4310
|
function buildContainerPlatformType() {
|
|
@@ -4331,11 +4331,11 @@ let ContainerPlatform;
|
|
|
4331
4331
|
const inner = getBlueprintComponentBuilder().withType(buildContainerPlatformType()).withParameters(params);
|
|
4332
4332
|
const builder = {
|
|
4333
4333
|
withId: (id) => {
|
|
4334
|
-
inner.withId(buildId$
|
|
4334
|
+
inner.withId(buildId$12(id));
|
|
4335
4335
|
return builder;
|
|
4336
4336
|
},
|
|
4337
4337
|
withVersion: (major, minor, patch) => {
|
|
4338
|
-
inner.withVersion(buildVersion$
|
|
4338
|
+
inner.withVersion(buildVersion$12(major, minor, patch));
|
|
4339
4339
|
return builder;
|
|
4340
4340
|
},
|
|
4341
4341
|
withDisplayName: (displayName) => {
|
|
@@ -4366,16 +4366,16 @@ const CONTAINER_NAME_PARAM = "containerName";
|
|
|
4366
4366
|
const CPU_PARAM = "cpu";
|
|
4367
4367
|
const MEMORY_PARAM = "memory";
|
|
4368
4368
|
const DESIRED_COUNT_PARAM = "desiredCount";
|
|
4369
|
-
function buildId$
|
|
4369
|
+
function buildId$11(id) {
|
|
4370
4370
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4371
4371
|
}
|
|
4372
|
-
function buildVersion$
|
|
4372
|
+
function buildVersion$11(major, minor, patch) {
|
|
4373
4373
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4374
4374
|
}
|
|
4375
4375
|
function buildWorkloadType() {
|
|
4376
4376
|
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.CustomWorkloads).withServiceDeliveryModel(ServiceDeliveryModel$1.CaaS).withName(PascalCaseString$1.getBuilder().withValue(WORKLOAD_TYPE_NAME).build()).build();
|
|
4377
4377
|
}
|
|
4378
|
-
function pushParam$
|
|
4378
|
+
function pushParam$10(params, key, value) {
|
|
4379
4379
|
params.push(key, value);
|
|
4380
4380
|
}
|
|
4381
4381
|
function buildLinkParams(fromPort, toPort, protocol) {
|
|
@@ -4409,7 +4409,916 @@ let Workload;
|
|
|
4409
4409
|
(function(_Workload) {
|
|
4410
4410
|
const getBuilder = _Workload.getBuilder = () => {
|
|
4411
4411
|
const params = getParametersInstance();
|
|
4412
|
-
const inner = getBlueprintComponentBuilder().withType(buildWorkloadType()).withParameters(params);
|
|
4412
|
+
const inner = getBlueprintComponentBuilder().withType(buildWorkloadType()).withParameters(params);
|
|
4413
|
+
const builder = {
|
|
4414
|
+
withId: (id) => {
|
|
4415
|
+
inner.withId(buildId$11(id));
|
|
4416
|
+
return builder;
|
|
4417
|
+
},
|
|
4418
|
+
withVersion: (major, minor, patch) => {
|
|
4419
|
+
inner.withVersion(buildVersion$11(major, minor, patch));
|
|
4420
|
+
return builder;
|
|
4421
|
+
},
|
|
4422
|
+
withDisplayName: (displayName) => {
|
|
4423
|
+
inner.withDisplayName(displayName);
|
|
4424
|
+
return builder;
|
|
4425
|
+
},
|
|
4426
|
+
withDescription: (description) => {
|
|
4427
|
+
inner.withDescription(description);
|
|
4428
|
+
return builder;
|
|
4429
|
+
},
|
|
4430
|
+
withContainerImage: (image) => {
|
|
4431
|
+
pushParam$10(params, CONTAINER_IMAGE_PARAM, image);
|
|
4432
|
+
return builder;
|
|
4433
|
+
},
|
|
4434
|
+
withContainerPort: (port) => {
|
|
4435
|
+
pushParam$10(params, CONTAINER_PORT_PARAM, port);
|
|
4436
|
+
return builder;
|
|
4437
|
+
},
|
|
4438
|
+
withContainerName: (name) => {
|
|
4439
|
+
pushParam$10(params, CONTAINER_NAME_PARAM, name);
|
|
4440
|
+
return builder;
|
|
4441
|
+
},
|
|
4442
|
+
withCpu: (cpu) => {
|
|
4443
|
+
pushParam$10(params, CPU_PARAM, cpu);
|
|
4444
|
+
return builder;
|
|
4445
|
+
},
|
|
4446
|
+
withMemory: (memory) => {
|
|
4447
|
+
pushParam$10(params, MEMORY_PARAM, memory);
|
|
4448
|
+
return builder;
|
|
4449
|
+
},
|
|
4450
|
+
withDesiredCount: (count) => {
|
|
4451
|
+
pushParam$10(params, DESIRED_COUNT_PARAM, count);
|
|
4452
|
+
return builder;
|
|
4453
|
+
},
|
|
4454
|
+
build: () => inner.build()
|
|
4455
|
+
};
|
|
4456
|
+
return builder;
|
|
4457
|
+
};
|
|
4458
|
+
_Workload.create = (config) => {
|
|
4459
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withContainerImage(config.containerImage);
|
|
4460
|
+
if (config.description) b.withDescription(config.description);
|
|
4461
|
+
if (config.containerPort !== void 0) b.withContainerPort(config.containerPort);
|
|
4462
|
+
if (config.containerName) b.withContainerName(config.containerName);
|
|
4463
|
+
if (config.cpu) b.withCpu(config.cpu);
|
|
4464
|
+
if (config.memory) b.withMemory(config.memory);
|
|
4465
|
+
if (config.desiredCount !== void 0) b.withDesiredCount(config.desiredCount);
|
|
4466
|
+
return makeWorkloadComponent(b.build());
|
|
4467
|
+
};
|
|
4468
|
+
})(Workload || (Workload = {}));
|
|
4469
|
+
|
|
4470
|
+
//#endregion
|
|
4471
|
+
//#region src/live_system/component/network_and_compute/paas/eks_cluster.ts
|
|
4472
|
+
const EKS_CLUSTER_TYPE_NAME = "EKS";
|
|
4473
|
+
function buildId$10(id) {
|
|
4474
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4475
|
+
}
|
|
4476
|
+
function buildVersion$10(major, minor, patch) {
|
|
4477
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4478
|
+
}
|
|
4479
|
+
function buildAwsEksClusterType() {
|
|
4480
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(EKS_CLUSTER_TYPE_NAME).build()).build();
|
|
4481
|
+
}
|
|
4482
|
+
function pushParam$9(params, key, value) {
|
|
4483
|
+
params.push(key, value);
|
|
4484
|
+
}
|
|
4485
|
+
let AwsEksCluster;
|
|
4486
|
+
(function(_AwsEksCluster) {
|
|
4487
|
+
const getBuilder = _AwsEksCluster.getBuilder = () => {
|
|
4488
|
+
const params = getParametersInstance();
|
|
4489
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEksClusterType()).withParameters(params).withProvider("AWS");
|
|
4490
|
+
const builder = {
|
|
4491
|
+
withId: (id) => {
|
|
4492
|
+
inner.withId(buildId$10(id));
|
|
4493
|
+
return builder;
|
|
4494
|
+
},
|
|
4495
|
+
withVersion: (major, minor, patch) => {
|
|
4496
|
+
inner.withVersion(buildVersion$10(major, minor, patch));
|
|
4497
|
+
return builder;
|
|
4498
|
+
},
|
|
4499
|
+
withDisplayName: (displayName) => {
|
|
4500
|
+
inner.withDisplayName(displayName);
|
|
4501
|
+
return builder;
|
|
4502
|
+
},
|
|
4503
|
+
withDescription: (description) => {
|
|
4504
|
+
inner.withDescription(description);
|
|
4505
|
+
return builder;
|
|
4506
|
+
},
|
|
4507
|
+
withKubernetesVersion: (v) => {
|
|
4508
|
+
pushParam$9(params, "kubernetesVersion", v);
|
|
4509
|
+
return builder;
|
|
4510
|
+
},
|
|
4511
|
+
withNetworkPolicyProvider: (p) => {
|
|
4512
|
+
pushParam$9(params, "networkPolicyProvider", p);
|
|
4513
|
+
return builder;
|
|
4514
|
+
},
|
|
4515
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
4516
|
+
pushParam$9(params, "masterIpv4CidrBlock", cidr);
|
|
4517
|
+
return builder;
|
|
4518
|
+
},
|
|
4519
|
+
withVpcCidrBlock: (cidr) => {
|
|
4520
|
+
pushParam$9(params, "vpcCidrBlock", cidr);
|
|
4521
|
+
return builder;
|
|
4522
|
+
},
|
|
4523
|
+
withPrivateSubnetCidrs: (cidrs) => {
|
|
4524
|
+
pushParam$9(params, "privateSubnetCidrs", cidrs);
|
|
4525
|
+
return builder;
|
|
4526
|
+
},
|
|
4527
|
+
withDesiredAvailabilityZoneCount: (count) => {
|
|
4528
|
+
pushParam$9(params, "desiredAvailabilityZoneCount", count);
|
|
4529
|
+
return builder;
|
|
4530
|
+
},
|
|
4531
|
+
withNodePools: (nodePools) => {
|
|
4532
|
+
pushParam$9(params, "nodePools", nodePools);
|
|
4533
|
+
return builder;
|
|
4534
|
+
},
|
|
4535
|
+
withAddons: (addons) => {
|
|
4536
|
+
pushParam$9(params, "addons", addons);
|
|
4537
|
+
return builder;
|
|
4538
|
+
},
|
|
4539
|
+
withPriorityClasses: (classes) => {
|
|
4540
|
+
pushParam$9(params, "priorityClasses", classes);
|
|
4541
|
+
return builder;
|
|
4542
|
+
},
|
|
4543
|
+
withRoles: (roles) => {
|
|
4544
|
+
pushParam$9(params, "roles", roles);
|
|
4545
|
+
return builder;
|
|
4546
|
+
},
|
|
4547
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
4548
|
+
pushParam$9(params, "workloadIdentityEnabled", enabled);
|
|
4549
|
+
return builder;
|
|
4550
|
+
},
|
|
4551
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
4552
|
+
pushParam$9(params, "privateClusterDisabled", disabled);
|
|
4553
|
+
return builder;
|
|
4554
|
+
},
|
|
4555
|
+
build: () => inner.build()
|
|
4556
|
+
};
|
|
4557
|
+
return builder;
|
|
4558
|
+
};
|
|
4559
|
+
_AwsEksCluster.satisfy = (platform) => {
|
|
4560
|
+
const params = getParametersInstance();
|
|
4561
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEksClusterType()).withParameters(params).withProvider("AWS").withId(buildId$10(platform.id.toString())).withVersion(buildVersion$10(platform.version.major, platform.version.minor, platform.version.patch)).withDisplayName(platform.displayName);
|
|
4562
|
+
if (platform.description) inner.withDescription(platform.description);
|
|
4563
|
+
const satisfiedBuilder = {
|
|
4564
|
+
withKubernetesVersion: (v) => {
|
|
4565
|
+
pushParam$9(params, "kubernetesVersion", v);
|
|
4566
|
+
return satisfiedBuilder;
|
|
4567
|
+
},
|
|
4568
|
+
withNetworkPolicyProvider: (p) => {
|
|
4569
|
+
pushParam$9(params, "networkPolicyProvider", p);
|
|
4570
|
+
return satisfiedBuilder;
|
|
4571
|
+
},
|
|
4572
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
4573
|
+
pushParam$9(params, "masterIpv4CidrBlock", cidr);
|
|
4574
|
+
return satisfiedBuilder;
|
|
4575
|
+
},
|
|
4576
|
+
withVpcCidrBlock: (cidr) => {
|
|
4577
|
+
pushParam$9(params, "vpcCidrBlock", cidr);
|
|
4578
|
+
return satisfiedBuilder;
|
|
4579
|
+
},
|
|
4580
|
+
withPrivateSubnetCidrs: (cidrs) => {
|
|
4581
|
+
pushParam$9(params, "privateSubnetCidrs", cidrs);
|
|
4582
|
+
return satisfiedBuilder;
|
|
4583
|
+
},
|
|
4584
|
+
withDesiredAvailabilityZoneCount: (count) => {
|
|
4585
|
+
pushParam$9(params, "desiredAvailabilityZoneCount", count);
|
|
4586
|
+
return satisfiedBuilder;
|
|
4587
|
+
},
|
|
4588
|
+
withNodePools: (nodePools) => {
|
|
4589
|
+
pushParam$9(params, "nodePools", nodePools);
|
|
4590
|
+
return satisfiedBuilder;
|
|
4591
|
+
},
|
|
4592
|
+
withAddons: (addons) => {
|
|
4593
|
+
pushParam$9(params, "addons", addons);
|
|
4594
|
+
return satisfiedBuilder;
|
|
4595
|
+
},
|
|
4596
|
+
withPriorityClasses: (classes) => {
|
|
4597
|
+
pushParam$9(params, "priorityClasses", classes);
|
|
4598
|
+
return satisfiedBuilder;
|
|
4599
|
+
},
|
|
4600
|
+
withRoles: (roles) => {
|
|
4601
|
+
pushParam$9(params, "roles", roles);
|
|
4602
|
+
return satisfiedBuilder;
|
|
4603
|
+
},
|
|
4604
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
4605
|
+
pushParam$9(params, "workloadIdentityEnabled", enabled);
|
|
4606
|
+
return satisfiedBuilder;
|
|
4607
|
+
},
|
|
4608
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
4609
|
+
pushParam$9(params, "privateClusterDisabled", disabled);
|
|
4610
|
+
return satisfiedBuilder;
|
|
4611
|
+
},
|
|
4612
|
+
build: () => inner.build()
|
|
4613
|
+
};
|
|
4614
|
+
return satisfiedBuilder;
|
|
4615
|
+
};
|
|
4616
|
+
_AwsEksCluster.create = (config) => {
|
|
4617
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
|
|
4618
|
+
if (config.description) b.withDescription(config.description);
|
|
4619
|
+
if (config.kubernetesVersion) b.withKubernetesVersion(config.kubernetesVersion);
|
|
4620
|
+
if (config.networkPolicyProvider) b.withNetworkPolicyProvider(config.networkPolicyProvider);
|
|
4621
|
+
if (config.masterIpv4CidrBlock) b.withMasterIpv4CidrBlock(config.masterIpv4CidrBlock);
|
|
4622
|
+
if (config.vpcCidrBlock) b.withVpcCidrBlock(config.vpcCidrBlock);
|
|
4623
|
+
if (config.privateSubnetCidrs) b.withPrivateSubnetCidrs(config.privateSubnetCidrs);
|
|
4624
|
+
if (config.desiredAvailabilityZoneCount !== void 0) b.withDesiredAvailabilityZoneCount(config.desiredAvailabilityZoneCount);
|
|
4625
|
+
if (config.nodePools) b.withNodePools(config.nodePools);
|
|
4626
|
+
if (config.addons) b.withAddons(config.addons);
|
|
4627
|
+
if (config.priorityClasses) b.withPriorityClasses(config.priorityClasses);
|
|
4628
|
+
if (config.roles) b.withRoles(config.roles);
|
|
4629
|
+
if (config.workloadIdentityEnabled !== void 0) b.withWorkloadIdentityEnabled(config.workloadIdentityEnabled);
|
|
4630
|
+
if (config.privateClusterDisabled !== void 0) b.withPrivateClusterDisabled(config.privateClusterDisabled);
|
|
4631
|
+
return b.build();
|
|
4632
|
+
};
|
|
4633
|
+
})(AwsEksCluster || (AwsEksCluster = {}));
|
|
4634
|
+
|
|
4635
|
+
//#endregion
|
|
4636
|
+
//#region src/live_system/component/network_and_compute/paas/ecs_cluster.ts
|
|
4637
|
+
const ECS_CLUSTER_TYPE_NAME = "ECS";
|
|
4638
|
+
function buildId$9(id) {
|
|
4639
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4640
|
+
}
|
|
4641
|
+
function buildVersion$9(major, minor, patch) {
|
|
4642
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4643
|
+
}
|
|
4644
|
+
function buildAwsEcsClusterType() {
|
|
4645
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(ECS_CLUSTER_TYPE_NAME).build()).build();
|
|
4646
|
+
}
|
|
4647
|
+
let AwsEcsCluster;
|
|
4648
|
+
(function(_AwsEcsCluster) {
|
|
4649
|
+
const getBuilder = _AwsEcsCluster.getBuilder = () => {
|
|
4650
|
+
const params = getParametersInstance();
|
|
4651
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsClusterType()).withParameters(params).withProvider("AWS");
|
|
4652
|
+
const builder = {
|
|
4653
|
+
withId: (id) => {
|
|
4654
|
+
inner.withId(buildId$9(id));
|
|
4655
|
+
return builder;
|
|
4656
|
+
},
|
|
4657
|
+
withVersion: (major, minor, patch) => {
|
|
4658
|
+
inner.withVersion(buildVersion$9(major, minor, patch));
|
|
4659
|
+
return builder;
|
|
4660
|
+
},
|
|
4661
|
+
withDisplayName: (displayName) => {
|
|
4662
|
+
inner.withDisplayName(displayName);
|
|
4663
|
+
return builder;
|
|
4664
|
+
},
|
|
4665
|
+
withDescription: (description) => {
|
|
4666
|
+
inner.withDescription(description);
|
|
4667
|
+
return builder;
|
|
4668
|
+
},
|
|
4669
|
+
build: () => inner.build()
|
|
4670
|
+
};
|
|
4671
|
+
return builder;
|
|
4672
|
+
};
|
|
4673
|
+
_AwsEcsCluster.satisfy = (platform) => {
|
|
4674
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsClusterType()).withParameters(getParametersInstance()).withProvider("AWS").withId(buildId$9(platform.id.toString())).withVersion(buildVersion$9(platform.version.major, platform.version.minor, platform.version.patch)).withDisplayName(platform.displayName);
|
|
4675
|
+
if (platform.description) inner.withDescription(platform.description);
|
|
4676
|
+
return { build: () => inner.build() };
|
|
4677
|
+
};
|
|
4678
|
+
_AwsEcsCluster.create = (config) => {
|
|
4679
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
|
|
4680
|
+
if (config.description) b.withDescription(config.description);
|
|
4681
|
+
return b.build();
|
|
4682
|
+
};
|
|
4683
|
+
})(AwsEcsCluster || (AwsEcsCluster = {}));
|
|
4684
|
+
|
|
4685
|
+
//#endregion
|
|
4686
|
+
//#region src/live_system/component/network_and_compute/paas/ecs_task_definition.ts
|
|
4687
|
+
const ECS_TASK_DEF_TYPE_NAME = "ECSTaskDefinition";
|
|
4688
|
+
const NETWORK_MODE_PARAM = "networkMode";
|
|
4689
|
+
const EXECUTION_ROLE_ARN_PARAM = "executionRoleArn";
|
|
4690
|
+
const TASK_ROLE_ARN_PARAM = "taskRoleArn";
|
|
4691
|
+
function buildId$8(id) {
|
|
4692
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4693
|
+
}
|
|
4694
|
+
function buildVersion$8(major, minor, patch) {
|
|
4695
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4696
|
+
}
|
|
4697
|
+
function buildAwsEcsTaskDefType() {
|
|
4698
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(ECS_TASK_DEF_TYPE_NAME).build()).build();
|
|
4699
|
+
}
|
|
4700
|
+
function pushParam$8(params, key, value) {
|
|
4701
|
+
params.push(key, value);
|
|
4702
|
+
}
|
|
4703
|
+
let AwsEcsTaskDefinition;
|
|
4704
|
+
(function(_AwsEcsTaskDefinition) {
|
|
4705
|
+
const getBuilder = _AwsEcsTaskDefinition.getBuilder = () => {
|
|
4706
|
+
const params = getParametersInstance();
|
|
4707
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsTaskDefType()).withParameters(params).withProvider("AWS");
|
|
4708
|
+
const builder = {
|
|
4709
|
+
withId: (id) => {
|
|
4710
|
+
inner.withId(buildId$8(id));
|
|
4711
|
+
return builder;
|
|
4712
|
+
},
|
|
4713
|
+
withVersion: (major, minor, patch) => {
|
|
4714
|
+
inner.withVersion(buildVersion$8(major, minor, patch));
|
|
4715
|
+
return builder;
|
|
4716
|
+
},
|
|
4717
|
+
withDisplayName: (displayName) => {
|
|
4718
|
+
inner.withDisplayName(displayName);
|
|
4719
|
+
return builder;
|
|
4720
|
+
},
|
|
4721
|
+
withDescription: (description) => {
|
|
4722
|
+
inner.withDescription(description);
|
|
4723
|
+
return builder;
|
|
4724
|
+
},
|
|
4725
|
+
withContainerImage: (image) => {
|
|
4726
|
+
pushParam$8(params, CONTAINER_IMAGE_PARAM, image);
|
|
4727
|
+
return builder;
|
|
4728
|
+
},
|
|
4729
|
+
withContainerPort: (port) => {
|
|
4730
|
+
pushParam$8(params, CONTAINER_PORT_PARAM, port);
|
|
4731
|
+
return builder;
|
|
4732
|
+
},
|
|
4733
|
+
withContainerName: (name) => {
|
|
4734
|
+
pushParam$8(params, CONTAINER_NAME_PARAM, name);
|
|
4735
|
+
return builder;
|
|
4736
|
+
},
|
|
4737
|
+
withCpu: (cpu) => {
|
|
4738
|
+
pushParam$8(params, CPU_PARAM, cpu);
|
|
4739
|
+
return builder;
|
|
4740
|
+
},
|
|
4741
|
+
withMemory: (memory) => {
|
|
4742
|
+
pushParam$8(params, MEMORY_PARAM, memory);
|
|
4743
|
+
return builder;
|
|
4744
|
+
},
|
|
4745
|
+
withNetworkMode: (mode) => {
|
|
4746
|
+
pushParam$8(params, NETWORK_MODE_PARAM, mode);
|
|
4747
|
+
return builder;
|
|
4748
|
+
},
|
|
4749
|
+
withExecutionRoleArn: (arn) => {
|
|
4750
|
+
pushParam$8(params, EXECUTION_ROLE_ARN_PARAM, arn);
|
|
4751
|
+
return builder;
|
|
4752
|
+
},
|
|
4753
|
+
withTaskRoleArn: (arn) => {
|
|
4754
|
+
pushParam$8(params, TASK_ROLE_ARN_PARAM, arn);
|
|
4755
|
+
return builder;
|
|
4756
|
+
},
|
|
4757
|
+
build: () => inner.build()
|
|
4758
|
+
};
|
|
4759
|
+
return builder;
|
|
4760
|
+
};
|
|
4761
|
+
_AwsEcsTaskDefinition.satisfy = (workload) => {
|
|
4762
|
+
const params = getParametersInstance();
|
|
4763
|
+
const taskId = `${workload.id.toString()}-task`;
|
|
4764
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsTaskDefType()).withParameters(params).withProvider("AWS").withId(buildId$8(taskId)).withVersion(buildVersion$8(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName);
|
|
4765
|
+
if (workload.description) inner.withDescription(workload.description);
|
|
4766
|
+
for (const key of [
|
|
4767
|
+
CONTAINER_IMAGE_PARAM,
|
|
4768
|
+
CONTAINER_PORT_PARAM,
|
|
4769
|
+
CONTAINER_NAME_PARAM,
|
|
4770
|
+
CPU_PARAM,
|
|
4771
|
+
MEMORY_PARAM
|
|
4772
|
+
]) {
|
|
4773
|
+
const v = workload.parameters.getOptionalFieldByName(key);
|
|
4774
|
+
if (v !== null) pushParam$8(params, key, v);
|
|
4775
|
+
}
|
|
4776
|
+
const satisfiedBuilder = {
|
|
4777
|
+
withNetworkMode: (mode) => {
|
|
4778
|
+
pushParam$8(params, NETWORK_MODE_PARAM, mode);
|
|
4779
|
+
return satisfiedBuilder;
|
|
4780
|
+
},
|
|
4781
|
+
withExecutionRoleArn: (arn) => {
|
|
4782
|
+
pushParam$8(params, EXECUTION_ROLE_ARN_PARAM, arn);
|
|
4783
|
+
return satisfiedBuilder;
|
|
4784
|
+
},
|
|
4785
|
+
withTaskRoleArn: (arn) => {
|
|
4786
|
+
pushParam$8(params, TASK_ROLE_ARN_PARAM, arn);
|
|
4787
|
+
return satisfiedBuilder;
|
|
4788
|
+
},
|
|
4789
|
+
build: () => inner.build()
|
|
4790
|
+
};
|
|
4791
|
+
return satisfiedBuilder;
|
|
4792
|
+
};
|
|
4793
|
+
_AwsEcsTaskDefinition.create = (config) => {
|
|
4794
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withContainerImage(config.containerImage);
|
|
4795
|
+
if (config.description) b.withDescription(config.description);
|
|
4796
|
+
if (config.containerPort !== void 0) b.withContainerPort(config.containerPort);
|
|
4797
|
+
if (config.containerName) b.withContainerName(config.containerName);
|
|
4798
|
+
if (config.cpu) b.withCpu(config.cpu);
|
|
4799
|
+
if (config.memory) b.withMemory(config.memory);
|
|
4800
|
+
if (config.networkMode) b.withNetworkMode(config.networkMode);
|
|
4801
|
+
if (config.executionRoleArn) b.withExecutionRoleArn(config.executionRoleArn);
|
|
4802
|
+
if (config.taskRoleArn) b.withTaskRoleArn(config.taskRoleArn);
|
|
4803
|
+
return b.build();
|
|
4804
|
+
};
|
|
4805
|
+
})(AwsEcsTaskDefinition || (AwsEcsTaskDefinition = {}));
|
|
4806
|
+
|
|
4807
|
+
//#endregion
|
|
4808
|
+
//#region src/live_system/component/network_and_compute/paas/ecs_service.ts
|
|
4809
|
+
const ECS_SERVICE_TYPE_NAME = "ECSService";
|
|
4810
|
+
const LAUNCH_TYPE_PARAM = "launchType";
|
|
4811
|
+
const ASSIGN_PUBLIC_IP_PARAM = "assignPublicIp";
|
|
4812
|
+
function buildId$7(id) {
|
|
4813
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4814
|
+
}
|
|
4815
|
+
function buildVersion$7(major, minor, patch) {
|
|
4816
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4817
|
+
}
|
|
4818
|
+
function buildAwsEcsServiceType() {
|
|
4819
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(ECS_SERVICE_TYPE_NAME).build()).build();
|
|
4820
|
+
}
|
|
4821
|
+
function pushParam$7(params, key, value) {
|
|
4822
|
+
params.push(key, value);
|
|
4823
|
+
}
|
|
4824
|
+
let AwsEcsService;
|
|
4825
|
+
(function(_AwsEcsService) {
|
|
4826
|
+
const getBuilder = _AwsEcsService.getBuilder = () => {
|
|
4827
|
+
const params = getParametersInstance();
|
|
4828
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsServiceType()).withParameters(params).withProvider("AWS");
|
|
4829
|
+
const builder = {
|
|
4830
|
+
withId: (id) => {
|
|
4831
|
+
inner.withId(buildId$7(id));
|
|
4832
|
+
return builder;
|
|
4833
|
+
},
|
|
4834
|
+
withVersion: (major, minor, patch) => {
|
|
4835
|
+
inner.withVersion(buildVersion$7(major, minor, patch));
|
|
4836
|
+
return builder;
|
|
4837
|
+
},
|
|
4838
|
+
withDisplayName: (displayName) => {
|
|
4839
|
+
inner.withDisplayName(displayName);
|
|
4840
|
+
return builder;
|
|
4841
|
+
},
|
|
4842
|
+
withDescription: (description) => {
|
|
4843
|
+
inner.withDescription(description);
|
|
4844
|
+
return builder;
|
|
4845
|
+
},
|
|
4846
|
+
withDesiredCount: (count) => {
|
|
4847
|
+
pushParam$7(params, DESIRED_COUNT_PARAM, count);
|
|
4848
|
+
return builder;
|
|
4849
|
+
},
|
|
4850
|
+
withLaunchType: (type) => {
|
|
4851
|
+
pushParam$7(params, LAUNCH_TYPE_PARAM, type);
|
|
4852
|
+
return builder;
|
|
4853
|
+
},
|
|
4854
|
+
withAssignPublicIp: (assign) => {
|
|
4855
|
+
pushParam$7(params, ASSIGN_PUBLIC_IP_PARAM, assign);
|
|
4856
|
+
return builder;
|
|
4857
|
+
},
|
|
4858
|
+
build: () => inner.build()
|
|
4859
|
+
};
|
|
4860
|
+
return builder;
|
|
4861
|
+
};
|
|
4862
|
+
_AwsEcsService.satisfy = (workload) => {
|
|
4863
|
+
const params = getParametersInstance();
|
|
4864
|
+
const deps = [...workload.dependencies];
|
|
4865
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsServiceType()).withParameters(params).withProvider("AWS").withId(buildId$7(workload.id.toString())).withVersion(buildVersion$7(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(deps).withLinks(workload.links);
|
|
4866
|
+
if (workload.description) inner.withDescription(workload.description);
|
|
4867
|
+
const desiredCount = workload.parameters.getOptionalFieldByName(DESIRED_COUNT_PARAM);
|
|
4868
|
+
if (desiredCount !== null) pushParam$7(params, DESIRED_COUNT_PARAM, desiredCount);
|
|
4869
|
+
const satisfiedBuilder = {
|
|
4870
|
+
withLaunchType: (type) => {
|
|
4871
|
+
pushParam$7(params, LAUNCH_TYPE_PARAM, type);
|
|
4872
|
+
return satisfiedBuilder;
|
|
4873
|
+
},
|
|
4874
|
+
withAssignPublicIp: (assign) => {
|
|
4875
|
+
pushParam$7(params, ASSIGN_PUBLIC_IP_PARAM, assign);
|
|
4876
|
+
return satisfiedBuilder;
|
|
4877
|
+
},
|
|
4878
|
+
withTaskDefinition: (taskDef) => {
|
|
4879
|
+
deps.push({ id: taskDef.id });
|
|
4880
|
+
inner.withDependencies(deps);
|
|
4881
|
+
return satisfiedBuilder;
|
|
4882
|
+
},
|
|
4883
|
+
build: () => inner.build()
|
|
4884
|
+
};
|
|
4885
|
+
return satisfiedBuilder;
|
|
4886
|
+
};
|
|
4887
|
+
_AwsEcsService.create = (config) => {
|
|
4888
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
|
|
4889
|
+
if (config.description) b.withDescription(config.description);
|
|
4890
|
+
if (config.desiredCount !== void 0) b.withDesiredCount(config.desiredCount);
|
|
4891
|
+
if (config.launchType) b.withLaunchType(config.launchType);
|
|
4892
|
+
if (config.assignPublicIp !== void 0) b.withAssignPublicIp(config.assignPublicIp);
|
|
4893
|
+
return b.build();
|
|
4894
|
+
};
|
|
4895
|
+
})(AwsEcsService || (AwsEcsService = {}));
|
|
4896
|
+
|
|
4897
|
+
//#endregion
|
|
4898
|
+
//#region src/live_system/component/network_and_compute/paas/azure_aks.ts
|
|
4899
|
+
const AKS_CLUSTER_TYPE_NAME = "AKS";
|
|
4900
|
+
function buildId$6(id) {
|
|
4901
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4902
|
+
}
|
|
4903
|
+
function buildVersion$6(major, minor, patch) {
|
|
4904
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4905
|
+
}
|
|
4906
|
+
function buildAzureAksClusterType() {
|
|
4907
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AKS_CLUSTER_TYPE_NAME).build()).build();
|
|
4908
|
+
}
|
|
4909
|
+
function pushParam$6(params, key, value) {
|
|
4910
|
+
params.push(key, value);
|
|
4911
|
+
}
|
|
4912
|
+
let AzureAksCluster;
|
|
4913
|
+
(function(_AzureAksCluster) {
|
|
4914
|
+
const getBuilder = _AzureAksCluster.getBuilder = () => {
|
|
4915
|
+
const params = getParametersInstance();
|
|
4916
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureAksClusterType()).withParameters(params).withProvider("Azure");
|
|
4917
|
+
const builder = {
|
|
4918
|
+
withId: (id) => {
|
|
4919
|
+
inner.withId(buildId$6(id));
|
|
4920
|
+
return builder;
|
|
4921
|
+
},
|
|
4922
|
+
withVersion: (major, minor, patch) => {
|
|
4923
|
+
inner.withVersion(buildVersion$6(major, minor, patch));
|
|
4924
|
+
return builder;
|
|
4925
|
+
},
|
|
4926
|
+
withDisplayName: (displayName) => {
|
|
4927
|
+
inner.withDisplayName(displayName);
|
|
4928
|
+
return builder;
|
|
4929
|
+
},
|
|
4930
|
+
withDescription: (description) => {
|
|
4931
|
+
inner.withDescription(description);
|
|
4932
|
+
return builder;
|
|
4933
|
+
},
|
|
4934
|
+
withKubernetesVersion: (v) => {
|
|
4935
|
+
pushParam$6(params, "kubernetesVersion", v);
|
|
4936
|
+
return builder;
|
|
4937
|
+
},
|
|
4938
|
+
withNetworkPolicyProvider: (p) => {
|
|
4939
|
+
pushParam$6(params, "networkPolicyProvider", p);
|
|
4940
|
+
return builder;
|
|
4941
|
+
},
|
|
4942
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
4943
|
+
pushParam$6(params, "masterIpv4CidrBlock", cidr);
|
|
4944
|
+
return builder;
|
|
4945
|
+
},
|
|
4946
|
+
withVnetSubnetAddressIpRange: (range) => {
|
|
4947
|
+
pushParam$6(params, "vnetSubnetAddressIpRange", range);
|
|
4948
|
+
return builder;
|
|
4949
|
+
},
|
|
4950
|
+
withManagedClusterSkuTier: (tier) => {
|
|
4951
|
+
pushParam$6(params, "managedClusterSkuTier", tier);
|
|
4952
|
+
return builder;
|
|
4953
|
+
},
|
|
4954
|
+
withWindowsAdminUsername: (username) => {
|
|
4955
|
+
pushParam$6(params, "windowsAdminUsername", username);
|
|
4956
|
+
return builder;
|
|
4957
|
+
},
|
|
4958
|
+
withExternalWorkspaceResourceId: (id) => {
|
|
4959
|
+
pushParam$6(params, "externalWorkspaceResourceId", id);
|
|
4960
|
+
return builder;
|
|
4961
|
+
},
|
|
4962
|
+
withNodePools: (nodePools) => {
|
|
4963
|
+
pushParam$6(params, "nodePools", nodePools);
|
|
4964
|
+
return builder;
|
|
4965
|
+
},
|
|
4966
|
+
withAzureActiveDirectoryProfile: (profile) => {
|
|
4967
|
+
pushParam$6(params, "azureActiveDirectoryProfile", profile);
|
|
4968
|
+
return builder;
|
|
4969
|
+
},
|
|
4970
|
+
withOutboundIps: (ips) => {
|
|
4971
|
+
pushParam$6(params, "outboundIps", ips);
|
|
4972
|
+
return builder;
|
|
4973
|
+
},
|
|
4974
|
+
withPriorityClasses: (classes) => {
|
|
4975
|
+
pushParam$6(params, "priorityClasses", classes);
|
|
4976
|
+
return builder;
|
|
4977
|
+
},
|
|
4978
|
+
withRoles: (roles) => {
|
|
4979
|
+
pushParam$6(params, "roles", roles);
|
|
4980
|
+
return builder;
|
|
4981
|
+
},
|
|
4982
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
4983
|
+
pushParam$6(params, "workloadIdentityEnabled", enabled);
|
|
4984
|
+
return builder;
|
|
4985
|
+
},
|
|
4986
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
4987
|
+
pushParam$6(params, "privateClusterDisabled", disabled);
|
|
4988
|
+
return builder;
|
|
4989
|
+
},
|
|
4990
|
+
build: () => inner.build()
|
|
4991
|
+
};
|
|
4992
|
+
return builder;
|
|
4993
|
+
};
|
|
4994
|
+
_AzureAksCluster.satisfy = (platform) => {
|
|
4995
|
+
const params = getParametersInstance();
|
|
4996
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureAksClusterType()).withParameters(params).withProvider("Azure").withId(buildId$6(platform.id.toString())).withVersion(buildVersion$6(platform.version.major, platform.version.minor, platform.version.patch)).withDisplayName(platform.displayName);
|
|
4997
|
+
if (platform.description) inner.withDescription(platform.description);
|
|
4998
|
+
const satisfiedBuilder = {
|
|
4999
|
+
withKubernetesVersion: (v) => {
|
|
5000
|
+
pushParam$6(params, "kubernetesVersion", v);
|
|
5001
|
+
return satisfiedBuilder;
|
|
5002
|
+
},
|
|
5003
|
+
withNetworkPolicyProvider: (p) => {
|
|
5004
|
+
pushParam$6(params, "networkPolicyProvider", p);
|
|
5005
|
+
return satisfiedBuilder;
|
|
5006
|
+
},
|
|
5007
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
5008
|
+
pushParam$6(params, "masterIpv4CidrBlock", cidr);
|
|
5009
|
+
return satisfiedBuilder;
|
|
5010
|
+
},
|
|
5011
|
+
withVnetSubnetAddressIpRange: (range) => {
|
|
5012
|
+
pushParam$6(params, "vnetSubnetAddressIpRange", range);
|
|
5013
|
+
return satisfiedBuilder;
|
|
5014
|
+
},
|
|
5015
|
+
withManagedClusterSkuTier: (tier) => {
|
|
5016
|
+
pushParam$6(params, "managedClusterSkuTier", tier);
|
|
5017
|
+
return satisfiedBuilder;
|
|
5018
|
+
},
|
|
5019
|
+
withWindowsAdminUsername: (username) => {
|
|
5020
|
+
pushParam$6(params, "windowsAdminUsername", username);
|
|
5021
|
+
return satisfiedBuilder;
|
|
5022
|
+
},
|
|
5023
|
+
withExternalWorkspaceResourceId: (id) => {
|
|
5024
|
+
pushParam$6(params, "externalWorkspaceResourceId", id);
|
|
5025
|
+
return satisfiedBuilder;
|
|
5026
|
+
},
|
|
5027
|
+
withNodePools: (nodePools) => {
|
|
5028
|
+
pushParam$6(params, "nodePools", nodePools);
|
|
5029
|
+
return satisfiedBuilder;
|
|
5030
|
+
},
|
|
5031
|
+
withAzureActiveDirectoryProfile: (profile) => {
|
|
5032
|
+
pushParam$6(params, "azureActiveDirectoryProfile", profile);
|
|
5033
|
+
return satisfiedBuilder;
|
|
5034
|
+
},
|
|
5035
|
+
withOutboundIps: (ips) => {
|
|
5036
|
+
pushParam$6(params, "outboundIps", ips);
|
|
5037
|
+
return satisfiedBuilder;
|
|
5038
|
+
},
|
|
5039
|
+
withPriorityClasses: (classes) => {
|
|
5040
|
+
pushParam$6(params, "priorityClasses", classes);
|
|
5041
|
+
return satisfiedBuilder;
|
|
5042
|
+
},
|
|
5043
|
+
withRoles: (roles) => {
|
|
5044
|
+
pushParam$6(params, "roles", roles);
|
|
5045
|
+
return satisfiedBuilder;
|
|
5046
|
+
},
|
|
5047
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
5048
|
+
pushParam$6(params, "workloadIdentityEnabled", enabled);
|
|
5049
|
+
return satisfiedBuilder;
|
|
5050
|
+
},
|
|
5051
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
5052
|
+
pushParam$6(params, "privateClusterDisabled", disabled);
|
|
5053
|
+
return satisfiedBuilder;
|
|
5054
|
+
},
|
|
5055
|
+
build: () => inner.build()
|
|
5056
|
+
};
|
|
5057
|
+
return satisfiedBuilder;
|
|
5058
|
+
};
|
|
5059
|
+
_AzureAksCluster.create = (config) => {
|
|
5060
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
|
|
5061
|
+
if (config.description) b.withDescription(config.description);
|
|
5062
|
+
if (config.kubernetesVersion) b.withKubernetesVersion(config.kubernetesVersion);
|
|
5063
|
+
if (config.networkPolicyProvider) b.withNetworkPolicyProvider(config.networkPolicyProvider);
|
|
5064
|
+
if (config.masterIpv4CidrBlock) b.withMasterIpv4CidrBlock(config.masterIpv4CidrBlock);
|
|
5065
|
+
if (config.vnetSubnetAddressIpRange) b.withVnetSubnetAddressIpRange(config.vnetSubnetAddressIpRange);
|
|
5066
|
+
if (config.managedClusterSkuTier) b.withManagedClusterSkuTier(config.managedClusterSkuTier);
|
|
5067
|
+
if (config.windowsAdminUsername) b.withWindowsAdminUsername(config.windowsAdminUsername);
|
|
5068
|
+
if (config.externalWorkspaceResourceId) b.withExternalWorkspaceResourceId(config.externalWorkspaceResourceId);
|
|
5069
|
+
if (config.nodePools) b.withNodePools(config.nodePools);
|
|
5070
|
+
if (config.azureActiveDirectoryProfile) b.withAzureActiveDirectoryProfile(config.azureActiveDirectoryProfile);
|
|
5071
|
+
if (config.outboundIps) b.withOutboundIps(config.outboundIps);
|
|
5072
|
+
if (config.priorityClasses) b.withPriorityClasses(config.priorityClasses);
|
|
5073
|
+
if (config.roles) b.withRoles(config.roles);
|
|
5074
|
+
if (config.workloadIdentityEnabled !== void 0) b.withWorkloadIdentityEnabled(config.workloadIdentityEnabled);
|
|
5075
|
+
if (config.privateClusterDisabled !== void 0) b.withPrivateClusterDisabled(config.privateClusterDisabled);
|
|
5076
|
+
return b.build();
|
|
5077
|
+
};
|
|
5078
|
+
})(AzureAksCluster || (AzureAksCluster = {}));
|
|
5079
|
+
|
|
5080
|
+
//#endregion
|
|
5081
|
+
//#region src/live_system/component/network_and_compute/paas/azure_container_apps_environment.ts
|
|
5082
|
+
const AZURE_CONTAINER_APPS_ENV_TYPE_NAME = "AzureContainerAppsEnvironment";
|
|
5083
|
+
function buildId$5(id) {
|
|
5084
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
5085
|
+
}
|
|
5086
|
+
function buildVersion$5(major, minor, patch) {
|
|
5087
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
5088
|
+
}
|
|
5089
|
+
function buildAzureContainerAppsEnvType() {
|
|
5090
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_CONTAINER_APPS_ENV_TYPE_NAME).build()).build();
|
|
5091
|
+
}
|
|
5092
|
+
function pushParam$5(params, key, value) {
|
|
5093
|
+
params.push(key, value);
|
|
5094
|
+
}
|
|
5095
|
+
let AzureContainerAppsEnvironment;
|
|
5096
|
+
(function(_AzureContainerAppsEnvironment) {
|
|
5097
|
+
const getBuilder = _AzureContainerAppsEnvironment.getBuilder = () => {
|
|
5098
|
+
const params = getParametersInstance();
|
|
5099
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerAppsEnvType()).withParameters(params).withProvider("Azure");
|
|
5100
|
+
const builder = {
|
|
5101
|
+
withId: (id) => {
|
|
5102
|
+
inner.withId(buildId$5(id));
|
|
5103
|
+
return builder;
|
|
5104
|
+
},
|
|
5105
|
+
withVersion: (major, minor, patch) => {
|
|
5106
|
+
inner.withVersion(buildVersion$5(major, minor, patch));
|
|
5107
|
+
return builder;
|
|
5108
|
+
},
|
|
5109
|
+
withDisplayName: (displayName) => {
|
|
5110
|
+
inner.withDisplayName(displayName);
|
|
5111
|
+
return builder;
|
|
5112
|
+
},
|
|
5113
|
+
withDescription: (description) => {
|
|
5114
|
+
inner.withDescription(description);
|
|
5115
|
+
return builder;
|
|
5116
|
+
},
|
|
5117
|
+
withLocation: (location) => {
|
|
5118
|
+
pushParam$5(params, "location", location);
|
|
5119
|
+
return builder;
|
|
5120
|
+
},
|
|
5121
|
+
withResourceGroup: (resourceGroup) => {
|
|
5122
|
+
pushParam$5(params, "resourceGroup", resourceGroup);
|
|
5123
|
+
return builder;
|
|
5124
|
+
},
|
|
5125
|
+
withLogAnalyticsWorkspaceId: (id) => {
|
|
5126
|
+
pushParam$5(params, "logAnalyticsWorkspaceId", id);
|
|
5127
|
+
return builder;
|
|
5128
|
+
},
|
|
5129
|
+
withLogAnalyticsSharedKey: (key) => {
|
|
5130
|
+
pushParam$5(params, "logAnalyticsSharedKey", key);
|
|
5131
|
+
return builder;
|
|
5132
|
+
},
|
|
5133
|
+
build: () => inner.build()
|
|
5134
|
+
};
|
|
5135
|
+
return builder;
|
|
5136
|
+
};
|
|
5137
|
+
_AzureContainerAppsEnvironment.satisfy = (platform) => {
|
|
5138
|
+
const params = getParametersInstance();
|
|
5139
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerAppsEnvType()).withParameters(params).withProvider("Azure").withId(buildId$5(platform.id.toString())).withVersion(buildVersion$5(platform.version.major, platform.version.minor, platform.version.patch)).withDisplayName(platform.displayName).withDependencies(platform.dependencies);
|
|
5140
|
+
if (platform.description) inner.withDescription(platform.description);
|
|
5141
|
+
const satisfiedBuilder = {
|
|
5142
|
+
withLocation: (location) => {
|
|
5143
|
+
pushParam$5(params, "location", location);
|
|
5144
|
+
return satisfiedBuilder;
|
|
5145
|
+
},
|
|
5146
|
+
withResourceGroup: (resourceGroup) => {
|
|
5147
|
+
pushParam$5(params, "resourceGroup", resourceGroup);
|
|
5148
|
+
return satisfiedBuilder;
|
|
5149
|
+
},
|
|
5150
|
+
withLogAnalyticsWorkspaceId: (id) => {
|
|
5151
|
+
pushParam$5(params, "logAnalyticsWorkspaceId", id);
|
|
5152
|
+
return satisfiedBuilder;
|
|
5153
|
+
},
|
|
5154
|
+
withLogAnalyticsSharedKey: (key) => {
|
|
5155
|
+
pushParam$5(params, "logAnalyticsSharedKey", key);
|
|
5156
|
+
return satisfiedBuilder;
|
|
5157
|
+
},
|
|
5158
|
+
build: () => inner.build()
|
|
5159
|
+
};
|
|
5160
|
+
return satisfiedBuilder;
|
|
5161
|
+
};
|
|
5162
|
+
_AzureContainerAppsEnvironment.create = (config) => {
|
|
5163
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withLocation(config.location).withResourceGroup(config.resourceGroup);
|
|
5164
|
+
if (config.description) b.withDescription(config.description);
|
|
5165
|
+
if (config.logAnalyticsWorkspaceId) b.withLogAnalyticsWorkspaceId(config.logAnalyticsWorkspaceId);
|
|
5166
|
+
if (config.logAnalyticsSharedKey) b.withLogAnalyticsSharedKey(config.logAnalyticsSharedKey);
|
|
5167
|
+
return b.build();
|
|
5168
|
+
};
|
|
5169
|
+
})(AzureContainerAppsEnvironment || (AzureContainerAppsEnvironment = {}));
|
|
5170
|
+
|
|
5171
|
+
//#endregion
|
|
5172
|
+
//#region src/live_system/component/network_and_compute/paas/azure_container_instance.ts
|
|
5173
|
+
const AZURE_CONTAINER_INSTANCE_TYPE_NAME = "AzureContainerInstance";
|
|
5174
|
+
function buildId$4(id) {
|
|
5175
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
5176
|
+
}
|
|
5177
|
+
function buildVersion$4(major, minor, patch) {
|
|
5178
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
5179
|
+
}
|
|
5180
|
+
function buildAzureContainerInstanceType() {
|
|
5181
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_CONTAINER_INSTANCE_TYPE_NAME).build()).build();
|
|
5182
|
+
}
|
|
5183
|
+
function pushParam$4(params, key, value) {
|
|
5184
|
+
params.push(key, value);
|
|
5185
|
+
}
|
|
5186
|
+
let AzureContainerInstance;
|
|
5187
|
+
(function(_AzureContainerInstance) {
|
|
5188
|
+
const getBuilder = _AzureContainerInstance.getBuilder = () => {
|
|
5189
|
+
const params = getParametersInstance();
|
|
5190
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerInstanceType()).withParameters(params).withProvider("Azure");
|
|
5191
|
+
const builder = {
|
|
5192
|
+
withId: (id) => {
|
|
5193
|
+
inner.withId(buildId$4(id));
|
|
5194
|
+
return builder;
|
|
5195
|
+
},
|
|
5196
|
+
withVersion: (major, minor, patch) => {
|
|
5197
|
+
inner.withVersion(buildVersion$4(major, minor, patch));
|
|
5198
|
+
return builder;
|
|
5199
|
+
},
|
|
5200
|
+
withDisplayName: (displayName) => {
|
|
5201
|
+
inner.withDisplayName(displayName);
|
|
5202
|
+
return builder;
|
|
5203
|
+
},
|
|
5204
|
+
withDescription: (description) => {
|
|
5205
|
+
inner.withDescription(description);
|
|
5206
|
+
return builder;
|
|
5207
|
+
},
|
|
5208
|
+
withImage: (image) => {
|
|
5209
|
+
pushParam$4(params, "image", image);
|
|
5210
|
+
return builder;
|
|
5211
|
+
},
|
|
5212
|
+
withPort: (port) => {
|
|
5213
|
+
pushParam$4(params, "port", port);
|
|
5214
|
+
return builder;
|
|
5215
|
+
},
|
|
5216
|
+
withLocation: (location) => {
|
|
5217
|
+
pushParam$4(params, "location", location);
|
|
5218
|
+
return builder;
|
|
5219
|
+
},
|
|
5220
|
+
withResourceGroup: (resourceGroup) => {
|
|
5221
|
+
pushParam$4(params, "resourceGroup", resourceGroup);
|
|
5222
|
+
return builder;
|
|
5223
|
+
},
|
|
5224
|
+
withCpu: (cpu) => {
|
|
5225
|
+
pushParam$4(params, "cpu", cpu);
|
|
5226
|
+
return builder;
|
|
5227
|
+
},
|
|
5228
|
+
withMemoryInGb: (memoryInGb) => {
|
|
5229
|
+
pushParam$4(params, "memoryInGB", memoryInGb);
|
|
5230
|
+
return builder;
|
|
5231
|
+
},
|
|
5232
|
+
withRestartPolicy: (policy) => {
|
|
5233
|
+
pushParam$4(params, "restartPolicy", policy);
|
|
5234
|
+
return builder;
|
|
5235
|
+
},
|
|
5236
|
+
withPublicIp: (publicIp) => {
|
|
5237
|
+
pushParam$4(params, "publicIp", publicIp);
|
|
5238
|
+
return builder;
|
|
5239
|
+
},
|
|
5240
|
+
withDnsNameLabel: (label) => {
|
|
5241
|
+
pushParam$4(params, "dnsNameLabel", label);
|
|
5242
|
+
return builder;
|
|
5243
|
+
},
|
|
5244
|
+
build: () => inner.build()
|
|
5245
|
+
};
|
|
5246
|
+
return builder;
|
|
5247
|
+
};
|
|
5248
|
+
_AzureContainerInstance.satisfy = (workload) => {
|
|
5249
|
+
const params = getParametersInstance();
|
|
5250
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerInstanceType()).withParameters(params).withProvider("Azure").withId(buildId$4(workload.id.toString())).withVersion(buildVersion$4(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(workload.dependencies).withLinks(workload.links);
|
|
5251
|
+
if (workload.description) inner.withDescription(workload.description);
|
|
5252
|
+
const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
|
|
5253
|
+
if (image !== null) pushParam$4(params, "image", image);
|
|
5254
|
+
const port = workload.parameters.getOptionalFieldByName(CONTAINER_PORT_PARAM);
|
|
5255
|
+
if (port !== null) pushParam$4(params, "port", port);
|
|
5256
|
+
const satisfiedBuilder = {
|
|
5257
|
+
withLocation: (location) => {
|
|
5258
|
+
pushParam$4(params, "location", location);
|
|
5259
|
+
return satisfiedBuilder;
|
|
5260
|
+
},
|
|
5261
|
+
withResourceGroup: (resourceGroup) => {
|
|
5262
|
+
pushParam$4(params, "resourceGroup", resourceGroup);
|
|
5263
|
+
return satisfiedBuilder;
|
|
5264
|
+
},
|
|
5265
|
+
withCpu: (cpu) => {
|
|
5266
|
+
pushParam$4(params, "cpu", cpu);
|
|
5267
|
+
return satisfiedBuilder;
|
|
5268
|
+
},
|
|
5269
|
+
withMemoryInGb: (memoryInGb) => {
|
|
5270
|
+
pushParam$4(params, "memoryInGB", memoryInGb);
|
|
5271
|
+
return satisfiedBuilder;
|
|
5272
|
+
},
|
|
5273
|
+
withRestartPolicy: (policy) => {
|
|
5274
|
+
pushParam$4(params, "restartPolicy", policy);
|
|
5275
|
+
return satisfiedBuilder;
|
|
5276
|
+
},
|
|
5277
|
+
withPublicIp: (publicIp) => {
|
|
5278
|
+
pushParam$4(params, "publicIp", publicIp);
|
|
5279
|
+
return satisfiedBuilder;
|
|
5280
|
+
},
|
|
5281
|
+
withDnsNameLabel: (label) => {
|
|
5282
|
+
pushParam$4(params, "dnsNameLabel", label);
|
|
5283
|
+
return satisfiedBuilder;
|
|
5284
|
+
},
|
|
5285
|
+
build: () => inner.build()
|
|
5286
|
+
};
|
|
5287
|
+
return satisfiedBuilder;
|
|
5288
|
+
};
|
|
5289
|
+
_AzureContainerInstance.create = (config) => {
|
|
5290
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withImage(config.image).withLocation(config.location).withResourceGroup(config.resourceGroup);
|
|
5291
|
+
if (config.description) b.withDescription(config.description);
|
|
5292
|
+
if (config.port !== void 0) b.withPort(config.port);
|
|
5293
|
+
if (config.cpu !== void 0) b.withCpu(config.cpu);
|
|
5294
|
+
if (config.memoryInGb !== void 0) b.withMemoryInGb(config.memoryInGb);
|
|
5295
|
+
if (config.restartPolicy) b.withRestartPolicy(config.restartPolicy);
|
|
5296
|
+
if (config.publicIp !== void 0) b.withPublicIp(config.publicIp);
|
|
5297
|
+
if (config.dnsNameLabel) b.withDnsNameLabel(config.dnsNameLabel);
|
|
5298
|
+
return b.build();
|
|
5299
|
+
};
|
|
5300
|
+
})(AzureContainerInstance || (AzureContainerInstance = {}));
|
|
5301
|
+
|
|
5302
|
+
//#endregion
|
|
5303
|
+
//#region src/live_system/component/network_and_compute/paas/azure_container_app.ts
|
|
5304
|
+
const AZURE_CONTAINER_APP_TYPE_NAME = "AzureContainerApp";
|
|
5305
|
+
function buildId$3(id) {
|
|
5306
|
+
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
5307
|
+
}
|
|
5308
|
+
function buildVersion$3(major, minor, patch) {
|
|
5309
|
+
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
5310
|
+
}
|
|
5311
|
+
function buildAzureContainerAppType() {
|
|
5312
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(AZURE_CONTAINER_APP_TYPE_NAME).build()).build();
|
|
5313
|
+
}
|
|
5314
|
+
function pushParam$3(params, key, value) {
|
|
5315
|
+
params.push(key, value);
|
|
5316
|
+
}
|
|
5317
|
+
let AzureContainerApp;
|
|
5318
|
+
(function(_AzureContainerApp) {
|
|
5319
|
+
const getBuilder = _AzureContainerApp.getBuilder = () => {
|
|
5320
|
+
const params = getParametersInstance();
|
|
5321
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerAppType()).withParameters(params).withProvider("Azure");
|
|
4413
5322
|
const builder = {
|
|
4414
5323
|
withId: (id) => {
|
|
4415
5324
|
inner.withId(buildId$3(id));
|
|
@@ -4427,63 +5336,116 @@ let Workload;
|
|
|
4427
5336
|
inner.withDescription(description);
|
|
4428
5337
|
return builder;
|
|
4429
5338
|
},
|
|
4430
|
-
|
|
4431
|
-
pushParam$
|
|
4432
|
-
return builder;
|
|
4433
|
-
},
|
|
4434
|
-
withContainerPort: (port) => {
|
|
4435
|
-
pushParam$2(params, CONTAINER_PORT_PARAM, port);
|
|
5339
|
+
withImage: (image) => {
|
|
5340
|
+
pushParam$3(params, "image", image);
|
|
4436
5341
|
return builder;
|
|
4437
5342
|
},
|
|
4438
|
-
|
|
4439
|
-
pushParam$
|
|
5343
|
+
withPort: (port) => {
|
|
5344
|
+
pushParam$3(params, "port", port);
|
|
4440
5345
|
return builder;
|
|
4441
5346
|
},
|
|
4442
5347
|
withCpu: (cpu) => {
|
|
4443
|
-
pushParam$
|
|
5348
|
+
pushParam$3(params, "cpu", cpu);
|
|
4444
5349
|
return builder;
|
|
4445
5350
|
},
|
|
4446
5351
|
withMemory: (memory) => {
|
|
4447
|
-
pushParam$
|
|
5352
|
+
pushParam$3(params, "memory", memory);
|
|
4448
5353
|
return builder;
|
|
4449
5354
|
},
|
|
4450
|
-
|
|
4451
|
-
pushParam$
|
|
5355
|
+
withLocation: (location) => {
|
|
5356
|
+
pushParam$3(params, "location", location);
|
|
5357
|
+
return builder;
|
|
5358
|
+
},
|
|
5359
|
+
withResourceGroup: (resourceGroup) => {
|
|
5360
|
+
pushParam$3(params, "resourceGroup", resourceGroup);
|
|
5361
|
+
return builder;
|
|
5362
|
+
},
|
|
5363
|
+
withExternalIngress: (external) => {
|
|
5364
|
+
pushParam$3(params, "externalIngress", external);
|
|
5365
|
+
return builder;
|
|
5366
|
+
},
|
|
5367
|
+
withMinReplicas: (min) => {
|
|
5368
|
+
pushParam$3(params, "minReplicas", min);
|
|
5369
|
+
return builder;
|
|
5370
|
+
},
|
|
5371
|
+
withMaxReplicas: (max) => {
|
|
5372
|
+
pushParam$3(params, "maxReplicas", max);
|
|
4452
5373
|
return builder;
|
|
4453
5374
|
},
|
|
4454
5375
|
build: () => inner.build()
|
|
4455
5376
|
};
|
|
4456
5377
|
return builder;
|
|
4457
5378
|
};
|
|
4458
|
-
|
|
4459
|
-
const
|
|
5379
|
+
_AzureContainerApp.satisfy = (workload) => {
|
|
5380
|
+
const params = getParametersInstance();
|
|
5381
|
+
const inner = getLiveSystemComponentBuilder().withType(buildAzureContainerAppType()).withParameters(params).withProvider("Azure").withId(buildId$3(workload.id.toString())).withVersion(buildVersion$3(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(workload.dependencies).withLinks(workload.links);
|
|
5382
|
+
if (workload.description) inner.withDescription(workload.description);
|
|
5383
|
+
const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
|
|
5384
|
+
if (image !== null) pushParam$3(params, "image", image);
|
|
5385
|
+
const port = workload.parameters.getOptionalFieldByName(CONTAINER_PORT_PARAM);
|
|
5386
|
+
if (port !== null) pushParam$3(params, "port", port);
|
|
5387
|
+
const cpu = workload.parameters.getOptionalFieldByName(CPU_PARAM);
|
|
5388
|
+
if (cpu !== null) pushParam$3(params, "cpu", cpu);
|
|
5389
|
+
const memory = workload.parameters.getOptionalFieldByName(MEMORY_PARAM);
|
|
5390
|
+
if (memory !== null) pushParam$3(params, "memory", memory);
|
|
5391
|
+
const satisfiedBuilder = {
|
|
5392
|
+
withLocation: (location) => {
|
|
5393
|
+
pushParam$3(params, "location", location);
|
|
5394
|
+
return satisfiedBuilder;
|
|
5395
|
+
},
|
|
5396
|
+
withResourceGroup: (resourceGroup) => {
|
|
5397
|
+
pushParam$3(params, "resourceGroup", resourceGroup);
|
|
5398
|
+
return satisfiedBuilder;
|
|
5399
|
+
},
|
|
5400
|
+
withExternalIngress: (external) => {
|
|
5401
|
+
pushParam$3(params, "externalIngress", external);
|
|
5402
|
+
return satisfiedBuilder;
|
|
5403
|
+
},
|
|
5404
|
+
withMinReplicas: (min) => {
|
|
5405
|
+
pushParam$3(params, "minReplicas", min);
|
|
5406
|
+
return satisfiedBuilder;
|
|
5407
|
+
},
|
|
5408
|
+
withMaxReplicas: (max) => {
|
|
5409
|
+
pushParam$3(params, "maxReplicas", max);
|
|
5410
|
+
return satisfiedBuilder;
|
|
5411
|
+
},
|
|
5412
|
+
build: () => inner.build()
|
|
5413
|
+
};
|
|
5414
|
+
return satisfiedBuilder;
|
|
5415
|
+
};
|
|
5416
|
+
_AzureContainerApp.create = (config) => {
|
|
5417
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withImage(config.image).withLocation(config.location).withResourceGroup(config.resourceGroup);
|
|
4460
5418
|
if (config.description) b.withDescription(config.description);
|
|
4461
|
-
if (config.
|
|
4462
|
-
if (config.
|
|
4463
|
-
if (config.cpu) b.withCpu(config.cpu);
|
|
5419
|
+
if (config.port !== void 0) b.withPort(config.port);
|
|
5420
|
+
if (config.cpu !== void 0) b.withCpu(config.cpu);
|
|
4464
5421
|
if (config.memory) b.withMemory(config.memory);
|
|
4465
|
-
if (config.
|
|
4466
|
-
|
|
5422
|
+
if (config.externalIngress !== void 0) b.withExternalIngress(config.externalIngress);
|
|
5423
|
+
if (config.minReplicas !== void 0) b.withMinReplicas(config.minReplicas);
|
|
5424
|
+
if (config.maxReplicas !== void 0) b.withMaxReplicas(config.maxReplicas);
|
|
5425
|
+
return b.build();
|
|
4467
5426
|
};
|
|
4468
|
-
})(
|
|
5427
|
+
})(AzureContainerApp || (AzureContainerApp = {}));
|
|
4469
5428
|
|
|
4470
5429
|
//#endregion
|
|
4471
|
-
//#region src/live_system/component/network_and_compute/paas/
|
|
4472
|
-
const
|
|
5430
|
+
//#region src/live_system/component/network_and_compute/paas/gcp_gke.ts
|
|
5431
|
+
const GKE_CLUSTER_TYPE_NAME = "GKE";
|
|
4473
5432
|
function buildId$2(id) {
|
|
4474
5433
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4475
5434
|
}
|
|
4476
5435
|
function buildVersion$2(major, minor, patch) {
|
|
4477
5436
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4478
5437
|
}
|
|
4479
|
-
function
|
|
4480
|
-
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(
|
|
5438
|
+
function buildGcpGkeClusterType() {
|
|
5439
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(GKE_CLUSTER_TYPE_NAME).build()).build();
|
|
4481
5440
|
}
|
|
4482
|
-
|
|
4483
|
-
(
|
|
4484
|
-
|
|
5441
|
+
function pushParam$2(params, key, value) {
|
|
5442
|
+
params.push(key, value);
|
|
5443
|
+
}
|
|
5444
|
+
let GcpGkeCluster;
|
|
5445
|
+
(function(_GcpGkeCluster) {
|
|
5446
|
+
const getBuilder = _GcpGkeCluster.getBuilder = () => {
|
|
4485
5447
|
const params = getParametersInstance();
|
|
4486
|
-
const inner = getLiveSystemComponentBuilder().withType(
|
|
5448
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpGkeClusterType()).withParameters(params).withProvider("GCP");
|
|
4487
5449
|
const builder = {
|
|
4488
5450
|
withId: (id) => {
|
|
4489
5451
|
inner.withId(buildId$2(id));
|
|
@@ -4501,45 +5463,181 @@ let AwsEcsCluster;
|
|
|
4501
5463
|
inner.withDescription(description);
|
|
4502
5464
|
return builder;
|
|
4503
5465
|
},
|
|
5466
|
+
withKubernetesVersion: (v) => {
|
|
5467
|
+
pushParam$2(params, "kubernetesVersion", v);
|
|
5468
|
+
return builder;
|
|
5469
|
+
},
|
|
5470
|
+
withNetworkPolicyProvider: (p) => {
|
|
5471
|
+
pushParam$2(params, "networkPolicyProvider", p);
|
|
5472
|
+
return builder;
|
|
5473
|
+
},
|
|
5474
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
5475
|
+
pushParam$2(params, "masterIpv4CidrBlock", cidr);
|
|
5476
|
+
return builder;
|
|
5477
|
+
},
|
|
5478
|
+
withNetworkName: (name) => {
|
|
5479
|
+
pushParam$2(params, "networkName", name);
|
|
5480
|
+
return builder;
|
|
5481
|
+
},
|
|
5482
|
+
withSubnetworkName: (name) => {
|
|
5483
|
+
pushParam$2(params, "subnetworkName", name);
|
|
5484
|
+
return builder;
|
|
5485
|
+
},
|
|
5486
|
+
withSubnetworkIpRange: (range) => {
|
|
5487
|
+
pushParam$2(params, "subnetworkIpRange", range);
|
|
5488
|
+
return builder;
|
|
5489
|
+
},
|
|
5490
|
+
withServiceIpRange: (range) => {
|
|
5491
|
+
pushParam$2(params, "serviceIpRange", range);
|
|
5492
|
+
return builder;
|
|
5493
|
+
},
|
|
5494
|
+
withPodIpRange: (range) => {
|
|
5495
|
+
pushParam$2(params, "podIpRange", range);
|
|
5496
|
+
return builder;
|
|
5497
|
+
},
|
|
5498
|
+
withPodsRangeName: (name) => {
|
|
5499
|
+
pushParam$2(params, "podsRangeName", name);
|
|
5500
|
+
return builder;
|
|
5501
|
+
},
|
|
5502
|
+
withServicesRangeName: (name) => {
|
|
5503
|
+
pushParam$2(params, "servicesRangeName", name);
|
|
5504
|
+
return builder;
|
|
5505
|
+
},
|
|
5506
|
+
withNodePools: (nodePools) => {
|
|
5507
|
+
pushParam$2(params, "nodePools", nodePools);
|
|
5508
|
+
return builder;
|
|
5509
|
+
},
|
|
5510
|
+
withPriorityClasses: (classes) => {
|
|
5511
|
+
pushParam$2(params, "priorityClasses", classes);
|
|
5512
|
+
return builder;
|
|
5513
|
+
},
|
|
5514
|
+
withRoles: (roles) => {
|
|
5515
|
+
pushParam$2(params, "roles", roles);
|
|
5516
|
+
return builder;
|
|
5517
|
+
},
|
|
5518
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
5519
|
+
pushParam$2(params, "workloadIdentityEnabled", enabled);
|
|
5520
|
+
return builder;
|
|
5521
|
+
},
|
|
5522
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
5523
|
+
pushParam$2(params, "privateClusterDisabled", disabled);
|
|
5524
|
+
return builder;
|
|
5525
|
+
},
|
|
4504
5526
|
build: () => inner.build()
|
|
4505
5527
|
};
|
|
4506
5528
|
return builder;
|
|
4507
5529
|
};
|
|
4508
|
-
|
|
4509
|
-
const
|
|
5530
|
+
_GcpGkeCluster.satisfy = (platform) => {
|
|
5531
|
+
const params = getParametersInstance();
|
|
5532
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpGkeClusterType()).withParameters(params).withProvider("GCP").withId(buildId$2(platform.id.toString())).withVersion(buildVersion$2(platform.version.major, platform.version.minor, platform.version.patch)).withDisplayName(platform.displayName);
|
|
4510
5533
|
if (platform.description) inner.withDescription(platform.description);
|
|
4511
|
-
|
|
5534
|
+
const satisfiedBuilder = {
|
|
5535
|
+
withKubernetesVersion: (v) => {
|
|
5536
|
+
pushParam$2(params, "kubernetesVersion", v);
|
|
5537
|
+
return satisfiedBuilder;
|
|
5538
|
+
},
|
|
5539
|
+
withNetworkPolicyProvider: (p) => {
|
|
5540
|
+
pushParam$2(params, "networkPolicyProvider", p);
|
|
5541
|
+
return satisfiedBuilder;
|
|
5542
|
+
},
|
|
5543
|
+
withMasterIpv4CidrBlock: (cidr) => {
|
|
5544
|
+
pushParam$2(params, "masterIpv4CidrBlock", cidr);
|
|
5545
|
+
return satisfiedBuilder;
|
|
5546
|
+
},
|
|
5547
|
+
withNetworkName: (name) => {
|
|
5548
|
+
pushParam$2(params, "networkName", name);
|
|
5549
|
+
return satisfiedBuilder;
|
|
5550
|
+
},
|
|
5551
|
+
withSubnetworkName: (name) => {
|
|
5552
|
+
pushParam$2(params, "subnetworkName", name);
|
|
5553
|
+
return satisfiedBuilder;
|
|
5554
|
+
},
|
|
5555
|
+
withSubnetworkIpRange: (range) => {
|
|
5556
|
+
pushParam$2(params, "subnetworkIpRange", range);
|
|
5557
|
+
return satisfiedBuilder;
|
|
5558
|
+
},
|
|
5559
|
+
withServiceIpRange: (range) => {
|
|
5560
|
+
pushParam$2(params, "serviceIpRange", range);
|
|
5561
|
+
return satisfiedBuilder;
|
|
5562
|
+
},
|
|
5563
|
+
withPodIpRange: (range) => {
|
|
5564
|
+
pushParam$2(params, "podIpRange", range);
|
|
5565
|
+
return satisfiedBuilder;
|
|
5566
|
+
},
|
|
5567
|
+
withPodsRangeName: (name) => {
|
|
5568
|
+
pushParam$2(params, "podsRangeName", name);
|
|
5569
|
+
return satisfiedBuilder;
|
|
5570
|
+
},
|
|
5571
|
+
withServicesRangeName: (name) => {
|
|
5572
|
+
pushParam$2(params, "servicesRangeName", name);
|
|
5573
|
+
return satisfiedBuilder;
|
|
5574
|
+
},
|
|
5575
|
+
withNodePools: (nodePools) => {
|
|
5576
|
+
pushParam$2(params, "nodePools", nodePools);
|
|
5577
|
+
return satisfiedBuilder;
|
|
5578
|
+
},
|
|
5579
|
+
withPriorityClasses: (classes) => {
|
|
5580
|
+
pushParam$2(params, "priorityClasses", classes);
|
|
5581
|
+
return satisfiedBuilder;
|
|
5582
|
+
},
|
|
5583
|
+
withRoles: (roles) => {
|
|
5584
|
+
pushParam$2(params, "roles", roles);
|
|
5585
|
+
return satisfiedBuilder;
|
|
5586
|
+
},
|
|
5587
|
+
withWorkloadIdentityEnabled: (enabled) => {
|
|
5588
|
+
pushParam$2(params, "workloadIdentityEnabled", enabled);
|
|
5589
|
+
return satisfiedBuilder;
|
|
5590
|
+
},
|
|
5591
|
+
withPrivateClusterDisabled: (disabled) => {
|
|
5592
|
+
pushParam$2(params, "privateClusterDisabled", disabled);
|
|
5593
|
+
return satisfiedBuilder;
|
|
5594
|
+
},
|
|
5595
|
+
build: () => inner.build()
|
|
5596
|
+
};
|
|
5597
|
+
return satisfiedBuilder;
|
|
4512
5598
|
};
|
|
4513
|
-
|
|
5599
|
+
_GcpGkeCluster.create = (config) => {
|
|
4514
5600
|
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
|
|
4515
5601
|
if (config.description) b.withDescription(config.description);
|
|
5602
|
+
if (config.kubernetesVersion) b.withKubernetesVersion(config.kubernetesVersion);
|
|
5603
|
+
if (config.networkPolicyProvider) b.withNetworkPolicyProvider(config.networkPolicyProvider);
|
|
5604
|
+
if (config.masterIpv4CidrBlock) b.withMasterIpv4CidrBlock(config.masterIpv4CidrBlock);
|
|
5605
|
+
if (config.networkName) b.withNetworkName(config.networkName);
|
|
5606
|
+
if (config.subnetworkName) b.withSubnetworkName(config.subnetworkName);
|
|
5607
|
+
if (config.subnetworkIpRange) b.withSubnetworkIpRange(config.subnetworkIpRange);
|
|
5608
|
+
if (config.serviceIpRange) b.withServiceIpRange(config.serviceIpRange);
|
|
5609
|
+
if (config.podIpRange) b.withPodIpRange(config.podIpRange);
|
|
5610
|
+
if (config.podsRangeName) b.withPodsRangeName(config.podsRangeName);
|
|
5611
|
+
if (config.servicesRangeName) b.withServicesRangeName(config.servicesRangeName);
|
|
5612
|
+
if (config.nodePools) b.withNodePools(config.nodePools);
|
|
5613
|
+
if (config.priorityClasses) b.withPriorityClasses(config.priorityClasses);
|
|
5614
|
+
if (config.roles) b.withRoles(config.roles);
|
|
5615
|
+
if (config.workloadIdentityEnabled !== void 0) b.withWorkloadIdentityEnabled(config.workloadIdentityEnabled);
|
|
5616
|
+
if (config.privateClusterDisabled !== void 0) b.withPrivateClusterDisabled(config.privateClusterDisabled);
|
|
4516
5617
|
return b.build();
|
|
4517
5618
|
};
|
|
4518
|
-
})(
|
|
5619
|
+
})(GcpGkeCluster || (GcpGkeCluster = {}));
|
|
4519
5620
|
|
|
4520
5621
|
//#endregion
|
|
4521
|
-
//#region src/live_system/component/network_and_compute/paas/
|
|
4522
|
-
const
|
|
4523
|
-
const NETWORK_MODE_PARAM = "networkMode";
|
|
4524
|
-
const EXECUTION_ROLE_ARN_PARAM = "executionRoleArn";
|
|
4525
|
-
const TASK_ROLE_ARN_PARAM = "taskRoleArn";
|
|
5622
|
+
//#region src/live_system/component/network_and_compute/paas/gcp_cloud_run_service.ts
|
|
5623
|
+
const CLOUD_RUN_SERVICE_TYPE_NAME = "CloudRunService";
|
|
4526
5624
|
function buildId$1(id) {
|
|
4527
5625
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4528
5626
|
}
|
|
4529
5627
|
function buildVersion$1(major, minor, patch) {
|
|
4530
5628
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4531
5629
|
}
|
|
4532
|
-
function
|
|
4533
|
-
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(
|
|
5630
|
+
function buildGcpCloudRunServiceType() {
|
|
5631
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(CLOUD_RUN_SERVICE_TYPE_NAME).build()).build();
|
|
4534
5632
|
}
|
|
4535
5633
|
function pushParam$1(params, key, value) {
|
|
4536
5634
|
params.push(key, value);
|
|
4537
5635
|
}
|
|
4538
|
-
let
|
|
4539
|
-
(function(
|
|
4540
|
-
const getBuilder =
|
|
5636
|
+
let GcpCloudRunService;
|
|
5637
|
+
(function(_GcpCloudRunService) {
|
|
5638
|
+
const getBuilder = _GcpCloudRunService.getBuilder = () => {
|
|
4541
5639
|
const params = getParametersInstance();
|
|
4542
|
-
const inner = getLiveSystemComponentBuilder().withType(
|
|
5640
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpCloudRunServiceType()).withParameters(params).withProvider("GCP");
|
|
4543
5641
|
const builder = {
|
|
4544
5642
|
withId: (id) => {
|
|
4545
5643
|
inner.withId(buildId$1(id));
|
|
@@ -4557,110 +5655,126 @@ let AwsEcsTaskDefinition;
|
|
|
4557
5655
|
inner.withDescription(description);
|
|
4558
5656
|
return builder;
|
|
4559
5657
|
},
|
|
4560
|
-
|
|
4561
|
-
pushParam$1(params,
|
|
4562
|
-
return builder;
|
|
4563
|
-
},
|
|
4564
|
-
withContainerPort: (port) => {
|
|
4565
|
-
pushParam$1(params, CONTAINER_PORT_PARAM, port);
|
|
5658
|
+
withImage: (image) => {
|
|
5659
|
+
pushParam$1(params, "image", image);
|
|
4566
5660
|
return builder;
|
|
4567
5661
|
},
|
|
4568
|
-
|
|
4569
|
-
pushParam$1(params,
|
|
5662
|
+
withPort: (port) => {
|
|
5663
|
+
pushParam$1(params, "port", port);
|
|
4570
5664
|
return builder;
|
|
4571
5665
|
},
|
|
4572
5666
|
withCpu: (cpu) => {
|
|
4573
|
-
pushParam$1(params,
|
|
5667
|
+
pushParam$1(params, "cpu", cpu);
|
|
4574
5668
|
return builder;
|
|
4575
5669
|
},
|
|
4576
5670
|
withMemory: (memory) => {
|
|
4577
|
-
pushParam$1(params,
|
|
5671
|
+
pushParam$1(params, "memory", memory);
|
|
4578
5672
|
return builder;
|
|
4579
5673
|
},
|
|
4580
|
-
|
|
4581
|
-
pushParam$1(params,
|
|
5674
|
+
withRegion: (region) => {
|
|
5675
|
+
pushParam$1(params, "region", region);
|
|
4582
5676
|
return builder;
|
|
4583
5677
|
},
|
|
4584
|
-
|
|
4585
|
-
pushParam$1(params,
|
|
5678
|
+
withMinInstances: (min) => {
|
|
5679
|
+
pushParam$1(params, "minInstances", min);
|
|
4586
5680
|
return builder;
|
|
4587
5681
|
},
|
|
4588
|
-
|
|
4589
|
-
pushParam$1(params,
|
|
5682
|
+
withMaxInstances: (max) => {
|
|
5683
|
+
pushParam$1(params, "maxInstances", max);
|
|
5684
|
+
return builder;
|
|
5685
|
+
},
|
|
5686
|
+
withConcurrency: (concurrency) => {
|
|
5687
|
+
pushParam$1(params, "concurrency", concurrency);
|
|
5688
|
+
return builder;
|
|
5689
|
+
},
|
|
5690
|
+
withServiceAccountEmail: (email) => {
|
|
5691
|
+
pushParam$1(params, "serviceAccountEmail", email);
|
|
5692
|
+
return builder;
|
|
5693
|
+
},
|
|
5694
|
+
withIngress: (ingress) => {
|
|
5695
|
+
pushParam$1(params, "ingress", ingress);
|
|
4590
5696
|
return builder;
|
|
4591
5697
|
},
|
|
4592
5698
|
build: () => inner.build()
|
|
4593
5699
|
};
|
|
4594
5700
|
return builder;
|
|
4595
5701
|
};
|
|
4596
|
-
|
|
5702
|
+
_GcpCloudRunService.satisfy = (workload) => {
|
|
4597
5703
|
const params = getParametersInstance();
|
|
4598
|
-
const
|
|
4599
|
-
const inner = getLiveSystemComponentBuilder().withType(buildAwsEcsTaskDefType()).withParameters(params).withProvider("AWS").withId(buildId$1(taskId)).withVersion(buildVersion$1(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName);
|
|
5704
|
+
const inner = getLiveSystemComponentBuilder().withType(buildGcpCloudRunServiceType()).withParameters(params).withProvider("GCP").withId(buildId$1(workload.id.toString())).withVersion(buildVersion$1(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(workload.dependencies).withLinks(workload.links);
|
|
4600
5705
|
if (workload.description) inner.withDescription(workload.description);
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
if (v !== null) pushParam$1(params, key, v);
|
|
4610
|
-
}
|
|
5706
|
+
const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
|
|
5707
|
+
if (image !== null) pushParam$1(params, "image", image);
|
|
5708
|
+
const port = workload.parameters.getOptionalFieldByName(CONTAINER_PORT_PARAM);
|
|
5709
|
+
if (port !== null) pushParam$1(params, "port", port);
|
|
5710
|
+
const cpu = workload.parameters.getOptionalFieldByName(CPU_PARAM);
|
|
5711
|
+
if (cpu !== null) pushParam$1(params, "cpu", cpu);
|
|
5712
|
+
const memory = workload.parameters.getOptionalFieldByName(MEMORY_PARAM);
|
|
5713
|
+
if (memory !== null) pushParam$1(params, "memory", memory);
|
|
4611
5714
|
const satisfiedBuilder = {
|
|
4612
|
-
|
|
4613
|
-
pushParam$1(params,
|
|
5715
|
+
withRegion: (region) => {
|
|
5716
|
+
pushParam$1(params, "region", region);
|
|
4614
5717
|
return satisfiedBuilder;
|
|
4615
5718
|
},
|
|
4616
|
-
|
|
4617
|
-
pushParam$1(params,
|
|
5719
|
+
withMinInstances: (min) => {
|
|
5720
|
+
pushParam$1(params, "minInstances", min);
|
|
4618
5721
|
return satisfiedBuilder;
|
|
4619
5722
|
},
|
|
4620
|
-
|
|
4621
|
-
pushParam$1(params,
|
|
5723
|
+
withMaxInstances: (max) => {
|
|
5724
|
+
pushParam$1(params, "maxInstances", max);
|
|
5725
|
+
return satisfiedBuilder;
|
|
5726
|
+
},
|
|
5727
|
+
withConcurrency: (concurrency) => {
|
|
5728
|
+
pushParam$1(params, "concurrency", concurrency);
|
|
5729
|
+
return satisfiedBuilder;
|
|
5730
|
+
},
|
|
5731
|
+
withServiceAccountEmail: (email) => {
|
|
5732
|
+
pushParam$1(params, "serviceAccountEmail", email);
|
|
5733
|
+
return satisfiedBuilder;
|
|
5734
|
+
},
|
|
5735
|
+
withIngress: (ingress) => {
|
|
5736
|
+
pushParam$1(params, "ingress", ingress);
|
|
4622
5737
|
return satisfiedBuilder;
|
|
4623
5738
|
},
|
|
4624
5739
|
build: () => inner.build()
|
|
4625
5740
|
};
|
|
4626
5741
|
return satisfiedBuilder;
|
|
4627
5742
|
};
|
|
4628
|
-
|
|
4629
|
-
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).
|
|
5743
|
+
_GcpCloudRunService.create = (config) => {
|
|
5744
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withImage(config.image).withRegion(config.region);
|
|
4630
5745
|
if (config.description) b.withDescription(config.description);
|
|
4631
|
-
if (config.
|
|
4632
|
-
if (config.containerName) b.withContainerName(config.containerName);
|
|
5746
|
+
if (config.port !== void 0) b.withPort(config.port);
|
|
4633
5747
|
if (config.cpu) b.withCpu(config.cpu);
|
|
4634
5748
|
if (config.memory) b.withMemory(config.memory);
|
|
4635
|
-
if (config.
|
|
4636
|
-
if (config.
|
|
4637
|
-
if (config.
|
|
5749
|
+
if (config.minInstances !== void 0) b.withMinInstances(config.minInstances);
|
|
5750
|
+
if (config.maxInstances !== void 0) b.withMaxInstances(config.maxInstances);
|
|
5751
|
+
if (config.concurrency !== void 0) b.withConcurrency(config.concurrency);
|
|
5752
|
+
if (config.serviceAccountEmail) b.withServiceAccountEmail(config.serviceAccountEmail);
|
|
5753
|
+
if (config.ingress) b.withIngress(config.ingress);
|
|
4638
5754
|
return b.build();
|
|
4639
5755
|
};
|
|
4640
|
-
})(
|
|
5756
|
+
})(GcpCloudRunService || (GcpCloudRunService = {}));
|
|
4641
5757
|
|
|
4642
5758
|
//#endregion
|
|
4643
|
-
//#region src/live_system/component/network_and_compute/paas/
|
|
4644
|
-
const
|
|
4645
|
-
const LAUNCH_TYPE_PARAM = "launchType";
|
|
4646
|
-
const ASSIGN_PUBLIC_IP_PARAM = "assignPublicIp";
|
|
5759
|
+
//#region src/live_system/component/network_and_compute/paas/oci_container_instance.ts
|
|
5760
|
+
const OCI_CONTAINER_INSTANCE_TYPE_NAME = "OciContainerInstance";
|
|
4647
5761
|
function buildId(id) {
|
|
4648
5762
|
return getComponentIdBuilder().withValue(KebabCaseString$1.getBuilder().withValue(id).build()).build();
|
|
4649
5763
|
}
|
|
4650
5764
|
function buildVersion(major, minor, patch) {
|
|
4651
5765
|
return getVersionBuilder().withMajor(major).withMinor(minor).withPatch(patch).build();
|
|
4652
5766
|
}
|
|
4653
|
-
function
|
|
4654
|
-
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(
|
|
5767
|
+
function buildOciContainerInstanceType() {
|
|
5768
|
+
return getBlueprintComponentTypeBuilder().withInfrastructureDomain(InfrastructureDomain$1.NetworkAndCompute).withServiceDeliveryModel(ServiceDeliveryModel$1.PaaS).withName(PascalCaseString$1.getBuilder().withValue(OCI_CONTAINER_INSTANCE_TYPE_NAME).build()).build();
|
|
4655
5769
|
}
|
|
4656
5770
|
function pushParam(params, key, value) {
|
|
4657
5771
|
params.push(key, value);
|
|
4658
5772
|
}
|
|
4659
|
-
let
|
|
4660
|
-
(function(
|
|
4661
|
-
const getBuilder =
|
|
5773
|
+
let OciContainerInstance;
|
|
5774
|
+
(function(_OciContainerInstance) {
|
|
5775
|
+
const getBuilder = _OciContainerInstance.getBuilder = () => {
|
|
4662
5776
|
const params = getParametersInstance();
|
|
4663
|
-
const inner = getLiveSystemComponentBuilder().withType(
|
|
5777
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciContainerInstanceType()).withParameters(params).withProvider("OCI");
|
|
4664
5778
|
const builder = {
|
|
4665
5779
|
withId: (id) => {
|
|
4666
5780
|
inner.withId(buildId(id));
|
|
@@ -4678,56 +5792,97 @@ let AwsEcsService;
|
|
|
4678
5792
|
inner.withDescription(description);
|
|
4679
5793
|
return builder;
|
|
4680
5794
|
},
|
|
4681
|
-
|
|
4682
|
-
pushParam(params,
|
|
5795
|
+
withImageUrl: (imageUrl) => {
|
|
5796
|
+
pushParam(params, "imageUrl", imageUrl);
|
|
4683
5797
|
return builder;
|
|
4684
5798
|
},
|
|
4685
|
-
|
|
4686
|
-
pushParam(params,
|
|
5799
|
+
withAvailabilityDomain: (domain) => {
|
|
5800
|
+
pushParam(params, "availabilityDomain", domain);
|
|
4687
5801
|
return builder;
|
|
4688
5802
|
},
|
|
4689
|
-
|
|
4690
|
-
pushParam(params,
|
|
5803
|
+
withCompartmentId: (compartmentId) => {
|
|
5804
|
+
pushParam(params, "compartmentId", compartmentId);
|
|
5805
|
+
return builder;
|
|
5806
|
+
},
|
|
5807
|
+
withOcpus: (ocpus) => {
|
|
5808
|
+
pushParam(params, "ocpus", ocpus);
|
|
5809
|
+
return builder;
|
|
5810
|
+
},
|
|
5811
|
+
withMemoryInGbs: (memoryInGbs) => {
|
|
5812
|
+
pushParam(params, "memoryInGBs", memoryInGbs);
|
|
5813
|
+
return builder;
|
|
5814
|
+
},
|
|
5815
|
+
withShape: (shape) => {
|
|
5816
|
+
pushParam(params, "shape", shape);
|
|
5817
|
+
return builder;
|
|
5818
|
+
},
|
|
5819
|
+
withPort: (port) => {
|
|
5820
|
+
pushParam(params, "port", port);
|
|
5821
|
+
return builder;
|
|
5822
|
+
},
|
|
5823
|
+
withAssignPublicIp: (assignPublicIp) => {
|
|
5824
|
+
pushParam(params, "assignPublicIp", assignPublicIp);
|
|
5825
|
+
return builder;
|
|
5826
|
+
},
|
|
5827
|
+
withContainerRestartPolicy: (policy) => {
|
|
5828
|
+
pushParam(params, "containerRestartPolicy", policy);
|
|
4691
5829
|
return builder;
|
|
4692
5830
|
},
|
|
4693
5831
|
build: () => inner.build()
|
|
4694
5832
|
};
|
|
4695
5833
|
return builder;
|
|
4696
5834
|
};
|
|
4697
|
-
|
|
5835
|
+
_OciContainerInstance.satisfy = (workload) => {
|
|
4698
5836
|
const params = getParametersInstance();
|
|
4699
|
-
const
|
|
4700
|
-
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);
|
|
5837
|
+
const inner = getLiveSystemComponentBuilder().withType(buildOciContainerInstanceType()).withParameters(params).withProvider("OCI").withId(buildId(workload.id.toString())).withVersion(buildVersion(workload.version.major, workload.version.minor, workload.version.patch)).withDisplayName(workload.displayName).withDependencies(workload.dependencies).withLinks(workload.links);
|
|
4701
5838
|
if (workload.description) inner.withDescription(workload.description);
|
|
4702
|
-
const
|
|
4703
|
-
if (
|
|
5839
|
+
const image = workload.parameters.getOptionalFieldByName(CONTAINER_IMAGE_PARAM);
|
|
5840
|
+
if (image !== null) pushParam(params, "imageUrl", image);
|
|
4704
5841
|
const satisfiedBuilder = {
|
|
4705
|
-
|
|
4706
|
-
pushParam(params,
|
|
5842
|
+
withAvailabilityDomain: (domain) => {
|
|
5843
|
+
pushParam(params, "availabilityDomain", domain);
|
|
4707
5844
|
return satisfiedBuilder;
|
|
4708
5845
|
},
|
|
4709
|
-
|
|
4710
|
-
pushParam(params,
|
|
5846
|
+
withCompartmentId: (compartmentId) => {
|
|
5847
|
+
pushParam(params, "compartmentId", compartmentId);
|
|
4711
5848
|
return satisfiedBuilder;
|
|
4712
5849
|
},
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
5850
|
+
withOcpus: (ocpus) => {
|
|
5851
|
+
pushParam(params, "ocpus", ocpus);
|
|
5852
|
+
return satisfiedBuilder;
|
|
5853
|
+
},
|
|
5854
|
+
withMemoryInGbs: (memoryInGbs) => {
|
|
5855
|
+
pushParam(params, "memoryInGBs", memoryInGbs);
|
|
5856
|
+
return satisfiedBuilder;
|
|
5857
|
+
},
|
|
5858
|
+
withShape: (shape) => {
|
|
5859
|
+
pushParam(params, "shape", shape);
|
|
5860
|
+
return satisfiedBuilder;
|
|
5861
|
+
},
|
|
5862
|
+
withAssignPublicIp: (assignPublicIp) => {
|
|
5863
|
+
pushParam(params, "assignPublicIp", assignPublicIp);
|
|
5864
|
+
return satisfiedBuilder;
|
|
5865
|
+
},
|
|
5866
|
+
withContainerRestartPolicy: (policy) => {
|
|
5867
|
+
pushParam(params, "containerRestartPolicy", policy);
|
|
4716
5868
|
return satisfiedBuilder;
|
|
4717
5869
|
},
|
|
4718
5870
|
build: () => inner.build()
|
|
4719
5871
|
};
|
|
4720
5872
|
return satisfiedBuilder;
|
|
4721
5873
|
};
|
|
4722
|
-
|
|
4723
|
-
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName);
|
|
5874
|
+
_OciContainerInstance.create = (config) => {
|
|
5875
|
+
const b = getBuilder().withId(config.id).withVersion(config.version.major, config.version.minor, config.version.patch).withDisplayName(config.displayName).withImageUrl(config.imageUrl).withAvailabilityDomain(config.availabilityDomain).withCompartmentId(config.compartmentId);
|
|
4724
5876
|
if (config.description) b.withDescription(config.description);
|
|
4725
|
-
if (config.
|
|
4726
|
-
if (config.
|
|
5877
|
+
if (config.ocpus !== void 0) b.withOcpus(config.ocpus);
|
|
5878
|
+
if (config.memoryInGbs !== void 0) b.withMemoryInGbs(config.memoryInGbs);
|
|
5879
|
+
if (config.shape) b.withShape(config.shape);
|
|
5880
|
+
if (config.port !== void 0) b.withPort(config.port);
|
|
4727
5881
|
if (config.assignPublicIp !== void 0) b.withAssignPublicIp(config.assignPublicIp);
|
|
5882
|
+
if (config.containerRestartPolicy) b.withContainerRestartPolicy(config.containerRestartPolicy);
|
|
4728
5883
|
return b.build();
|
|
4729
5884
|
};
|
|
4730
|
-
})(
|
|
5885
|
+
})(OciContainerInstance || (OciContainerInstance = {}));
|
|
4731
5886
|
|
|
4732
5887
|
//#endregion
|
|
4733
5888
|
//#region src/index.ts
|
|
@@ -4764,6 +5919,12 @@ Object.defineProperty(exports, 'AwsEcsTaskDefinition', {
|
|
|
4764
5919
|
return AwsEcsTaskDefinition;
|
|
4765
5920
|
}
|
|
4766
5921
|
});
|
|
5922
|
+
Object.defineProperty(exports, 'AwsEksCluster', {
|
|
5923
|
+
enumerable: true,
|
|
5924
|
+
get: function () {
|
|
5925
|
+
return AwsEksCluster;
|
|
5926
|
+
}
|
|
5927
|
+
});
|
|
4767
5928
|
Object.defineProperty(exports, 'AwsSecurityGroup', {
|
|
4768
5929
|
enumerable: true,
|
|
4769
5930
|
get: function () {
|
|
@@ -4782,6 +5943,30 @@ Object.defineProperty(exports, 'AwsVpc', {
|
|
|
4782
5943
|
return AwsVpc;
|
|
4783
5944
|
}
|
|
4784
5945
|
});
|
|
5946
|
+
Object.defineProperty(exports, 'AzureAksCluster', {
|
|
5947
|
+
enumerable: true,
|
|
5948
|
+
get: function () {
|
|
5949
|
+
return AzureAksCluster;
|
|
5950
|
+
}
|
|
5951
|
+
});
|
|
5952
|
+
Object.defineProperty(exports, 'AzureContainerApp', {
|
|
5953
|
+
enumerable: true,
|
|
5954
|
+
get: function () {
|
|
5955
|
+
return AzureContainerApp;
|
|
5956
|
+
}
|
|
5957
|
+
});
|
|
5958
|
+
Object.defineProperty(exports, 'AzureContainerAppsEnvironment', {
|
|
5959
|
+
enumerable: true,
|
|
5960
|
+
get: function () {
|
|
5961
|
+
return AzureContainerAppsEnvironment;
|
|
5962
|
+
}
|
|
5963
|
+
});
|
|
5964
|
+
Object.defineProperty(exports, 'AzureContainerInstance', {
|
|
5965
|
+
enumerable: true,
|
|
5966
|
+
get: function () {
|
|
5967
|
+
return AzureContainerInstance;
|
|
5968
|
+
}
|
|
5969
|
+
});
|
|
4785
5970
|
Object.defineProperty(exports, 'AzureNsg', {
|
|
4786
5971
|
enumerable: true,
|
|
4787
5972
|
get: function () {
|
|
@@ -4821,12 +6006,24 @@ Object.defineProperty(exports, 'Ec2Instance', {
|
|
|
4821
6006
|
});
|
|
4822
6007
|
exports.Environment = Environment;
|
|
4823
6008
|
exports.Fractal = Fractal;
|
|
6009
|
+
Object.defineProperty(exports, 'GcpCloudRunService', {
|
|
6010
|
+
enumerable: true,
|
|
6011
|
+
get: function () {
|
|
6012
|
+
return GcpCloudRunService;
|
|
6013
|
+
}
|
|
6014
|
+
});
|
|
4824
6015
|
Object.defineProperty(exports, 'GcpFirewall', {
|
|
4825
6016
|
enumerable: true,
|
|
4826
6017
|
get: function () {
|
|
4827
6018
|
return GcpFirewall;
|
|
4828
6019
|
}
|
|
4829
6020
|
});
|
|
6021
|
+
Object.defineProperty(exports, 'GcpGkeCluster', {
|
|
6022
|
+
enumerable: true,
|
|
6023
|
+
get: function () {
|
|
6024
|
+
return GcpGkeCluster;
|
|
6025
|
+
}
|
|
6026
|
+
});
|
|
4830
6027
|
Object.defineProperty(exports, 'GcpSubnet', {
|
|
4831
6028
|
enumerable: true,
|
|
4832
6029
|
get: function () {
|
|
@@ -4872,6 +6069,12 @@ Object.defineProperty(exports, 'HetznerSubnet', {
|
|
|
4872
6069
|
exports.InfrastructureDomain = InfrastructureDomain;
|
|
4873
6070
|
exports.KebabCaseString = KebabCaseString;
|
|
4874
6071
|
exports.LiveSystem = LiveSystem;
|
|
6072
|
+
Object.defineProperty(exports, 'OciContainerInstance', {
|
|
6073
|
+
enumerable: true,
|
|
6074
|
+
get: function () {
|
|
6075
|
+
return OciContainerInstance;
|
|
6076
|
+
}
|
|
6077
|
+
});
|
|
4875
6078
|
Object.defineProperty(exports, 'OciInstance', {
|
|
4876
6079
|
enumerable: true,
|
|
4877
6080
|
get: function () {
|