@fractal_cloud/sdk 0.1.2 → 1.1.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 +168 -144
- package/dist/index.cjs +3336 -75
- package/dist/index.d.cts +1665 -13
- package/dist/index.d.mts +1665 -13
- package/dist/index.mjs +3160 -75
- package/package.json +15 -3
package/dist/index.d.mts
CHANGED
|
@@ -10,7 +10,10 @@
|
|
|
10
10
|
* where consistent, hyphen-delimited identifiers are required.
|
|
11
11
|
*/
|
|
12
12
|
type KebabCaseString$1 = {
|
|
13
|
-
|
|
13
|
+
_type: 'kebab';
|
|
14
|
+
value: string;
|
|
15
|
+
equals: (other: KebabCaseString$1) => boolean;
|
|
16
|
+
toString: () => string;
|
|
14
17
|
};
|
|
15
18
|
/**
|
|
16
19
|
* Builder interface for constructing KebabCaseString objects.
|
|
@@ -52,6 +55,7 @@ declare namespace KebabCaseString$1 {
|
|
|
52
55
|
type ComponentId = {
|
|
53
56
|
value: KebabCaseString$1;
|
|
54
57
|
equals: (other: ComponentId) => boolean;
|
|
58
|
+
toString: () => string;
|
|
55
59
|
};
|
|
56
60
|
/**
|
|
57
61
|
* Builder interface for constructing ComponentId instances.
|
|
@@ -113,7 +117,9 @@ declare enum OwnerType$1 {
|
|
|
113
117
|
* This convention capitalizes the first letter of each concatenated word without any spaces, dashes, or underscores.
|
|
114
118
|
*/
|
|
115
119
|
type OwnerId$1 = {
|
|
116
|
-
|
|
120
|
+
_type: 'ownerId';
|
|
121
|
+
value: string;
|
|
122
|
+
toString: () => string;
|
|
117
123
|
};
|
|
118
124
|
/**
|
|
119
125
|
* Builder interface for constructing OwnerId objects.
|
|
@@ -158,6 +164,7 @@ declare namespace OwnerId$1 {
|
|
|
158
164
|
* @property {KebabCaseString} name - The name of the bounded context, formatted as a kebab-case string.
|
|
159
165
|
*/
|
|
160
166
|
type BoundedContextId = {
|
|
167
|
+
_type: 'bounded_context';
|
|
161
168
|
ownerType: OwnerType$1;
|
|
162
169
|
ownerId: OwnerId$1;
|
|
163
170
|
name: KebabCaseString$1;
|
|
@@ -349,6 +356,7 @@ type FractalId = {
|
|
|
349
356
|
boundedContextId: BoundedContext$1.Id;
|
|
350
357
|
name: KebabCaseString$1;
|
|
351
358
|
version: Version$1;
|
|
359
|
+
equals: (other: FractalId) => boolean;
|
|
352
360
|
toString: () => string;
|
|
353
361
|
};
|
|
354
362
|
/**
|
|
@@ -405,7 +413,10 @@ type FractalIdBuilder = {
|
|
|
405
413
|
* Commonly used in naming conventions for programming constructs such as types, classes, or enums.
|
|
406
414
|
*/
|
|
407
415
|
type PascalCaseString$1 = {
|
|
408
|
-
|
|
416
|
+
_type: 'pascal';
|
|
417
|
+
value: string;
|
|
418
|
+
equals: (other: PascalCaseString$1) => boolean;
|
|
419
|
+
toString: () => string;
|
|
409
420
|
};
|
|
410
421
|
/**
|
|
411
422
|
* Builder interface for constructing PascalCaseString objects.
|
|
@@ -553,13 +564,13 @@ type GenericParameters = {
|
|
|
553
564
|
* @typedef {Object} ComponentLink
|
|
554
565
|
* @property {ComponentId} id - The unique identifier for the link.
|
|
555
566
|
* @property {ComponentType} type - The type of the link, indicating its category or purpose.
|
|
556
|
-
* @property {
|
|
567
|
+
* @property {Link.Parameters} parameters - A dictionary of configuration parameters,
|
|
557
568
|
* where keys are setting names and values are their corresponding configuration objects.
|
|
558
569
|
*/
|
|
559
570
|
type ComponentLink = {
|
|
560
571
|
id: ComponentId;
|
|
561
572
|
type: ComponentType;
|
|
562
|
-
parameters:
|
|
573
|
+
parameters: Component.Link.Parameters;
|
|
563
574
|
};
|
|
564
575
|
/**
|
|
565
576
|
* A builder interface for constructing ComponentLink objects in a fluent and type-safe manner.
|
|
@@ -588,10 +599,10 @@ type LinkBuilder = {
|
|
|
588
599
|
/**
|
|
589
600
|
* Sets the parameters for the link being built.
|
|
590
601
|
*
|
|
591
|
-
* @param {
|
|
602
|
+
* @param {Link.Parameters} parameters - The configuration parameters to associate with the link.
|
|
592
603
|
* @returns {LinkBuilder} The builder instance for method chaining.
|
|
593
604
|
*/
|
|
594
|
-
withParameters: (parameters:
|
|
605
|
+
withParameters: (parameters: Component.Link.Parameters) => LinkBuilder;
|
|
595
606
|
/**
|
|
596
607
|
* Resets the builder's internal state to default values.
|
|
597
608
|
*
|
|
@@ -693,10 +704,10 @@ type ComponentBuilder = {
|
|
|
693
704
|
/**
|
|
694
705
|
* Sets the parameters for the component being built.
|
|
695
706
|
*
|
|
696
|
-
* @param {
|
|
707
|
+
* @param {Component.Parameters} parameters - The parameters to associate with the component.
|
|
697
708
|
* @returns {ComponentBuilder} The builder instance for method chaining.
|
|
698
709
|
*/
|
|
699
|
-
withParameters: (parameters:
|
|
710
|
+
withParameters: (parameters: Component.Parameters) => ComponentBuilder;
|
|
700
711
|
/**
|
|
701
712
|
* Sets the links for the component being built.
|
|
702
713
|
*
|
|
@@ -812,8 +823,9 @@ declare enum ServiceDeliveryModel$1 {
|
|
|
812
823
|
* - Adds a `serviceDeliveryModel` property to specify how the service is delivered.
|
|
813
824
|
* - Reimplements the `equals` method for comparing two blueprint component types.
|
|
814
825
|
*/
|
|
815
|
-
type BlueprintComponentType =
|
|
826
|
+
type BlueprintComponentType = Component.Type & {
|
|
816
827
|
serviceDeliveryModel: ServiceDeliveryModel$1;
|
|
828
|
+
toString: () => string;
|
|
817
829
|
};
|
|
818
830
|
/**
|
|
819
831
|
* A builder interface for constructing Type objects in a fluent and type-safe manner.
|
|
@@ -884,6 +896,12 @@ type BlueprintComponentDependency = {
|
|
|
884
896
|
//#endregion
|
|
885
897
|
//#region src/fractal/component/entity.d.ts
|
|
886
898
|
/**
|
|
899
|
+
* A type representing a builder for constructing a blueprint component.
|
|
900
|
+
* The builder pattern allows for configuring and constructing complex
|
|
901
|
+
* instances of blueprint components with a fluent API. Each method in
|
|
902
|
+
* this builder performs a configuration step, returning the builder instance
|
|
903
|
+
* to enable method chaining. Once fully configured, the `build` method finalizes
|
|
904
|
+
* the construction process and returns an immutable component instance.
|
|
887
905
|
*/
|
|
888
906
|
type BlueprintComponentBuilder = {
|
|
889
907
|
/**
|
|
@@ -924,10 +942,10 @@ type BlueprintComponentBuilder = {
|
|
|
924
942
|
/**
|
|
925
943
|
* Sets the parameters for the component being built.
|
|
926
944
|
*
|
|
927
|
-
* @param {
|
|
945
|
+
* @param {Component.Parameters} parameters - The parameters to associate with the component.
|
|
928
946
|
* @returns {BlueprintComponentBuilder} The builder instance for method chaining.
|
|
929
947
|
*/
|
|
930
|
-
withParameters: (parameters:
|
|
948
|
+
withParameters: (parameters: Component.Parameters) => BlueprintComponentBuilder;
|
|
931
949
|
/**
|
|
932
950
|
* Sets the links for the component being built.
|
|
933
951
|
*
|
|
@@ -1106,13 +1124,62 @@ declare namespace ServiceAccountCredentials$1 {
|
|
|
1106
1124
|
}
|
|
1107
1125
|
//#endregion
|
|
1108
1126
|
//#region src/fractal/entity.d.ts
|
|
1127
|
+
/**
|
|
1128
|
+
* Represents a builder for creating and configuring Fractal objects.
|
|
1129
|
+
*/
|
|
1109
1130
|
type FractalBuilder = {
|
|
1131
|
+
/**
|
|
1132
|
+
* Sets the identifier for the fractal using the provided value.
|
|
1133
|
+
*
|
|
1134
|
+
* @param {FractalId} value - The unique identifier to assign to the fractal.
|
|
1135
|
+
* @returns {FractalBuilder} The instance of the FractalBuilder for method chaining.
|
|
1136
|
+
*/
|
|
1110
1137
|
withId: (value: FractalId) => FractalBuilder;
|
|
1138
|
+
/**
|
|
1139
|
+
* Sets the privacy flag for the FractalBuilder.
|
|
1140
|
+
*
|
|
1141
|
+
* @param {boolean} value - Indicates whether the entity should be marked as private.
|
|
1142
|
+
* @returns {FractalBuilder} The updated instance of the FractalBuilder.
|
|
1143
|
+
*/
|
|
1111
1144
|
withIsPrivate: (value: boolean) => FractalBuilder;
|
|
1145
|
+
/**
|
|
1146
|
+
* Assigns a description to the fractal being built.
|
|
1147
|
+
*
|
|
1148
|
+
* @param {string} value - The description to associate with the fractal.
|
|
1149
|
+
* @returns {FractalBuilder} The instance of the FractalBuilder to allow method chaining.
|
|
1150
|
+
*/
|
|
1112
1151
|
withDescription: (value: string) => FractalBuilder;
|
|
1152
|
+
/**
|
|
1153
|
+
* A method used to associate a set of components with a FractalBuilder instance.
|
|
1154
|
+
*
|
|
1155
|
+
* @param {BlueprintComponent[]} value - An array of BlueprintComponent objects to be linked to the FractalBuilder.
|
|
1156
|
+
* @returns {FractalBuilder} The FractalBuilder instance with the specified components applied.
|
|
1157
|
+
*/
|
|
1113
1158
|
withComponents: (value: BlueprintComponent[]) => FractalBuilder;
|
|
1159
|
+
/**
|
|
1160
|
+
* Assigns a specified BlueprintComponent to the current FractalBuilder instance.
|
|
1161
|
+
*
|
|
1162
|
+
* @param {BlueprintComponent} value - The component to be added to the FractalBuilder.
|
|
1163
|
+
* @returns {FractalBuilder} The updated instance of FractalBuilder for chaining further configurations.
|
|
1164
|
+
*/
|
|
1114
1165
|
withComponent: (value: BlueprintComponent) => FractalBuilder;
|
|
1166
|
+
/**
|
|
1167
|
+
* Resets the current state of the FractalBuilder to its initial configuration.
|
|
1168
|
+
*
|
|
1169
|
+
* @function
|
|
1170
|
+
* @returns {FractalBuilder} Returns the updated FractalBuilder instance after resetting.
|
|
1171
|
+
*/
|
|
1115
1172
|
reset: () => FractalBuilder;
|
|
1173
|
+
/**
|
|
1174
|
+
* A function that generates and returns a new instance of a Fractal object.
|
|
1175
|
+
*
|
|
1176
|
+
* This function is typically used to construct complex structures or data
|
|
1177
|
+
* representations that follow a fractal pattern. The returned Fractal object
|
|
1178
|
+
* encapsulates the properties and behaviors associated with the fractal design.
|
|
1179
|
+
*
|
|
1180
|
+
* @function
|
|
1181
|
+
* @returns {Fractal} A newly created instance of a Fractal object.
|
|
1182
|
+
*/
|
|
1116
1183
|
build: () => Fractal$1;
|
|
1117
1184
|
};
|
|
1118
1185
|
//#endregion
|
|
@@ -1149,6 +1216,1587 @@ type Fractal$1 = {
|
|
|
1149
1216
|
destroy: (credentials: ServiceAccountCredentials$1) => Promise<void>;
|
|
1150
1217
|
};
|
|
1151
1218
|
//#endregion
|
|
1219
|
+
//#region src/environment/id.d.ts
|
|
1220
|
+
/**
|
|
1221
|
+
* Represents a unique identifier for an environment that includes type, ownership, and name information.
|
|
1222
|
+
*
|
|
1223
|
+
* This type encapsulates the details necessary to uniquely identify an environment,
|
|
1224
|
+
* including its owning entity, a descriptive name, and utility methods to compare
|
|
1225
|
+
* or represent the identifier as a string.
|
|
1226
|
+
*
|
|
1227
|
+
* Properties:
|
|
1228
|
+
* - `ownerType`: Specifies the type of the owner associated with the environment.
|
|
1229
|
+
* - `ownerId`: Uniquely identifies the owner of the environment.
|
|
1230
|
+
* - `name`: The name of the environment formatted as a kebab-case string.
|
|
1231
|
+
*
|
|
1232
|
+
* Methods:
|
|
1233
|
+
* - `equals`: Compares the current environment identifier with another `EnvironmentId` to check if they are identical.
|
|
1234
|
+
* - `toString`: Converts the environment identifier into a string representation.
|
|
1235
|
+
*/
|
|
1236
|
+
type EnvironmentId = {
|
|
1237
|
+
_type: 'environment';
|
|
1238
|
+
ownerType: OwnerType$1;
|
|
1239
|
+
ownerId: OwnerId$1;
|
|
1240
|
+
name: KebabCaseString$1;
|
|
1241
|
+
equals: (other: EnvironmentId) => boolean;
|
|
1242
|
+
toString: () => string;
|
|
1243
|
+
};
|
|
1244
|
+
/**
|
|
1245
|
+
* A builder utility to construct an EnvironmentId with various parameters.
|
|
1246
|
+
* Provides a chainable API for setting properties and building the final object.
|
|
1247
|
+
*/
|
|
1248
|
+
type EnvironmentIdBuilder = {
|
|
1249
|
+
/**
|
|
1250
|
+
* Sets the owner type of the Id.
|
|
1251
|
+
* @param ownerType - The type of the owner (e.g., Personal, Organization)
|
|
1252
|
+
* @returns The builder instance for method chaining
|
|
1253
|
+
*/
|
|
1254
|
+
withOwnerType: (ownerType: OwnerType$1) => EnvironmentIdBuilder;
|
|
1255
|
+
/**
|
|
1256
|
+
* Sets the owner ID of the Id.
|
|
1257
|
+
* @param ownerId - The unique identifier of the owner
|
|
1258
|
+
* @returns The builder instance for method chaining
|
|
1259
|
+
*/
|
|
1260
|
+
withOwnerId: (ownerId: OwnerId$1) => EnvironmentIdBuilder;
|
|
1261
|
+
/**
|
|
1262
|
+
* Sets the name of the Id.
|
|
1263
|
+
* @param name - The name in kebab-case format
|
|
1264
|
+
* @returns The builder instance for method chaining
|
|
1265
|
+
*/
|
|
1266
|
+
withName: (name: KebabCaseString$1) => EnvironmentIdBuilder;
|
|
1267
|
+
/**
|
|
1268
|
+
* Resets the builder to its default state, restoring all default values.
|
|
1269
|
+
* @returns The builder instance for method chaining
|
|
1270
|
+
*/
|
|
1271
|
+
reset: () => EnvironmentIdBuilder;
|
|
1272
|
+
/**
|
|
1273
|
+
* Constructs and returns the final Id object.
|
|
1274
|
+
* @returns The constructed Id object
|
|
1275
|
+
* @throws {SyntaxError} If the resulting Id is invalid
|
|
1276
|
+
*/
|
|
1277
|
+
build: () => EnvironmentId;
|
|
1278
|
+
};
|
|
1279
|
+
//#endregion
|
|
1280
|
+
//#region src/environment/entity.d.ts
|
|
1281
|
+
type EnvironmentBuilder = {
|
|
1282
|
+
withId: (id: Environment$1.Id) => EnvironmentBuilder;
|
|
1283
|
+
withParameters: (parameters: Environment$1.Parameters) => EnvironmentBuilder;
|
|
1284
|
+
reset: () => EnvironmentBuilder;
|
|
1285
|
+
build: () => Environment$1;
|
|
1286
|
+
};
|
|
1287
|
+
//#endregion
|
|
1288
|
+
//#region src/environment/index.d.ts
|
|
1289
|
+
declare namespace Environment$1 {
|
|
1290
|
+
type Id = EnvironmentId;
|
|
1291
|
+
namespace Id {
|
|
1292
|
+
type Builder = EnvironmentIdBuilder;
|
|
1293
|
+
const getBuilder: () => EnvironmentIdBuilder;
|
|
1294
|
+
}
|
|
1295
|
+
type Parameters = GenericParameters;
|
|
1296
|
+
type Builder = EnvironmentBuilder;
|
|
1297
|
+
const getBuilder: () => EnvironmentBuilder;
|
|
1298
|
+
}
|
|
1299
|
+
type Environment$1 = {
|
|
1300
|
+
id: Environment$1.Id;
|
|
1301
|
+
parameters: Environment$1.Parameters;
|
|
1302
|
+
};
|
|
1303
|
+
//#endregion
|
|
1304
|
+
//#region src/live_system/id.d.ts
|
|
1305
|
+
/**
|
|
1306
|
+
* Represents the unique identifier for a live system instance in a specific bounded context.
|
|
1307
|
+
*
|
|
1308
|
+
* @typedef {Object} LiveSystemId
|
|
1309
|
+
* @property {BoundedContext.Id} boundedContextId - The identifier of the bounded context associated with the live system.
|
|
1310
|
+
* @property {KebabCaseString} name - The name of the live system in kebab-case format.
|
|
1311
|
+
* @property {function(): string} toString - A method that converts the live system identifier to its string representation.
|
|
1312
|
+
*/
|
|
1313
|
+
type LiveSystemId = {
|
|
1314
|
+
boundedContextId: BoundedContext$1.Id;
|
|
1315
|
+
name: KebabCaseString$1;
|
|
1316
|
+
toString: () => string;
|
|
1317
|
+
};
|
|
1318
|
+
/**
|
|
1319
|
+
* A builder for creating instances of LiveSystemId. Allows setting various properties
|
|
1320
|
+
* before producing the final immutable LiveSystemId object.
|
|
1321
|
+
*/
|
|
1322
|
+
type LiveSystemIdBuilder = {
|
|
1323
|
+
/**
|
|
1324
|
+
* Sets the bounded context identifier for the live system ID builder.
|
|
1325
|
+
*
|
|
1326
|
+
* This method assigns a specific bounded context ID to the builder, enabling it
|
|
1327
|
+
* to associate the resulting system identifiers with the provided context. The
|
|
1328
|
+
* bounded context ID uniquely identifies the context within which the system
|
|
1329
|
+
* operates, ensuring logical separation and consistency across different systems.
|
|
1330
|
+
*
|
|
1331
|
+
* @param {BoundedContext.Id} value - The unique identifier of the bounded context.
|
|
1332
|
+
* @returns {LiveSystemIdBuilder} The builder instance with the bounded context ID applied.
|
|
1333
|
+
*/
|
|
1334
|
+
withBoundedContextId: (value: BoundedContext$1.Id) => LiveSystemIdBuilder;
|
|
1335
|
+
/**
|
|
1336
|
+
* A method that assigns a name to the builder object.
|
|
1337
|
+
*
|
|
1338
|
+
* @param {KebabCaseString} name - The name to be set, formatted as a kebab-case string.
|
|
1339
|
+
* @returns {LiveSystemIdBuilder} Returns an updated instance of the LiveSystemIdBuilder.
|
|
1340
|
+
*/
|
|
1341
|
+
withName: (name: KebabCaseString$1) => LiveSystemIdBuilder;
|
|
1342
|
+
/**
|
|
1343
|
+
* Resets the current state of the LiveSystemIdBuilder instance to its initial configuration.
|
|
1344
|
+
*
|
|
1345
|
+
* @returns {LiveSystemIdBuilder} A new instance of LiveSystemIdBuilder with default settings.
|
|
1346
|
+
*/
|
|
1347
|
+
reset: () => LiveSystemIdBuilder;
|
|
1348
|
+
/**
|
|
1349
|
+
* Represents a function that generates or retrieves a `LiveSystemId`.
|
|
1350
|
+
* The function is intended to construct or return an identifier for
|
|
1351
|
+
* a live system component, which may represent an active or dynamic
|
|
1352
|
+
* system entity.
|
|
1353
|
+
*
|
|
1354
|
+
* @function
|
|
1355
|
+
* @returns {LiveSystemId} A unique identifier for a live system.
|
|
1356
|
+
*/
|
|
1357
|
+
build: () => LiveSystemId;
|
|
1358
|
+
};
|
|
1359
|
+
//#endregion
|
|
1360
|
+
//#region src/live_system/component/entity.d.ts
|
|
1361
|
+
/**
|
|
1362
|
+
* A builder interface for constructing instances of LiveSystemComponent with a fluent API.
|
|
1363
|
+
*/
|
|
1364
|
+
type LiveSystemComponentBuilder = {
|
|
1365
|
+
/**
|
|
1366
|
+
* Configures the builder to associate a specific type with the system component.
|
|
1367
|
+
*
|
|
1368
|
+
* @param {BlueprintComponentType} type - The type of the system component to be set.
|
|
1369
|
+
* @returns {LiveSystemComponentBuilder} The builder instance, enabling method chaining.
|
|
1370
|
+
*/
|
|
1371
|
+
withType: (type: BlueprintComponentType) => LiveSystemComponentBuilder;
|
|
1372
|
+
/**
|
|
1373
|
+
* Associates a specific identifier with a component in the builder pattern.
|
|
1374
|
+
*
|
|
1375
|
+
* @param {Component.Id} id - The unique identifier to be assigned to the component.
|
|
1376
|
+
* @returns {LiveSystemComponentBuilder} The builder instance for further configuration.
|
|
1377
|
+
*/
|
|
1378
|
+
withId: (id: Component.Id) => LiveSystemComponentBuilder;
|
|
1379
|
+
/**
|
|
1380
|
+
* Sets the version for the LiveSystemComponentBuilder.
|
|
1381
|
+
*
|
|
1382
|
+
* @param {Version} version - The version to be set for the builder.
|
|
1383
|
+
* @returns {LiveSystemComponentBuilder} The updated instance of the builder with the specified version.
|
|
1384
|
+
*/
|
|
1385
|
+
withVersion: (version: Version$1) => LiveSystemComponentBuilder;
|
|
1386
|
+
/**
|
|
1387
|
+
* Sets a display name for the component being built.
|
|
1388
|
+
*
|
|
1389
|
+
* This method allows specifying a human-readable name for the component,
|
|
1390
|
+
* which can be useful for debugging or identification purposes.
|
|
1391
|
+
*
|
|
1392
|
+
* @param {string} displayName - The display name to be assigned to the component.
|
|
1393
|
+
* @returns {LiveSystemComponentBuilder} The builder instance, allowing for method chaining.
|
|
1394
|
+
*/
|
|
1395
|
+
withDisplayName: (displayName: string) => LiveSystemComponentBuilder;
|
|
1396
|
+
/**
|
|
1397
|
+
* Attaches a description to the component builder.
|
|
1398
|
+
*
|
|
1399
|
+
* @param {string} description - The description to associate with the component.
|
|
1400
|
+
* @returns {LiveSystemComponentBuilder} The current instance of the builder.
|
|
1401
|
+
*/
|
|
1402
|
+
withDescription: (description: string) => LiveSystemComponentBuilder;
|
|
1403
|
+
/**
|
|
1404
|
+
* Configures the LiveSystemComponentBuilder with the specified parameters.
|
|
1405
|
+
*
|
|
1406
|
+
* @param {Component.Parameters} parameters - The parameters to be applied to the component builder.
|
|
1407
|
+
* @returns {LiveSystemComponentBuilder} The instance of the builder with the updated configuration.
|
|
1408
|
+
*/
|
|
1409
|
+
withParameters: (parameters: Component.Parameters) => LiveSystemComponentBuilder;
|
|
1410
|
+
/**
|
|
1411
|
+
* Configures the component builder with a collection of links.
|
|
1412
|
+
* This method allows adding a list of links to the component being built,
|
|
1413
|
+
* enabling navigation or connectivity between different components or resources within the system.
|
|
1414
|
+
*
|
|
1415
|
+
* @param {Component.Link[]} links - An array of links to include in the component.
|
|
1416
|
+
* @returns {LiveSystemComponentBuilder} The current instance of the component builder, updated with the provided links.
|
|
1417
|
+
*/
|
|
1418
|
+
withLinks: (links: Component.Link[]) => LiveSystemComponentBuilder;
|
|
1419
|
+
/**
|
|
1420
|
+
* A function that initializes a LiveSystemComponentBuilder with the specified dependencies.
|
|
1421
|
+
*
|
|
1422
|
+
* @param {BlueprintComponentDependency[]} dependencies - An array of blueprint component dependencies required for construction.
|
|
1423
|
+
* @returns {LiveSystemComponentBuilder} A builder instance configured with the provided dependencies.
|
|
1424
|
+
*/
|
|
1425
|
+
withDependencies: (dependencies: BlueprintComponentDependency[]) => LiveSystemComponentBuilder;
|
|
1426
|
+
/**
|
|
1427
|
+
* Sets the locked state of the component.
|
|
1428
|
+
*
|
|
1429
|
+
* @param {boolean} value - Indicates whether the component should be locked.
|
|
1430
|
+
* @returns {LiveSystemComponentBuilder} The builder instance for chaining additional configuration methods.
|
|
1431
|
+
*/
|
|
1432
|
+
withIsLocked: (value: boolean) => LiveSystemComponentBuilder;
|
|
1433
|
+
/**
|
|
1434
|
+
* Configures the system component builder to recreate the component upon failure, based on the specified flag.
|
|
1435
|
+
*
|
|
1436
|
+
* @param {boolean} value - A boolean indicating whether the component should be recreated on failure.
|
|
1437
|
+
* Passing `true` enables recreation on failure, while `false` disables it.
|
|
1438
|
+
* @returns {LiveSystemComponentBuilder} The current instance of the LiveSystemComponentBuilder
|
|
1439
|
+
* for method chaining.
|
|
1440
|
+
*/
|
|
1441
|
+
withRecreateOnFailure: (value: boolean) => LiveSystemComponentBuilder;
|
|
1442
|
+
/**
|
|
1443
|
+
* Configures the LiveSystemComponentBuilder to use the specified provider.
|
|
1444
|
+
*
|
|
1445
|
+
* @param {LiveSystemComponent.Provider} value - The provider to associate with the LiveSystemComponentBuilder.
|
|
1446
|
+
* @returns {LiveSystemComponentBuilder} The updated instance of LiveSystemComponentBuilder with the specified provider.
|
|
1447
|
+
*/
|
|
1448
|
+
withProvider: (value: LiveSystemComponent.Provider) => LiveSystemComponentBuilder;
|
|
1449
|
+
/**
|
|
1450
|
+
* Resets the current configuration of the LiveSystemComponentBuilder instance
|
|
1451
|
+
* to its initial state.
|
|
1452
|
+
*
|
|
1453
|
+
* @returns {LiveSystemComponentBuilder} A reference to the same builder instance,
|
|
1454
|
+
* allowing for method chaining.
|
|
1455
|
+
*/
|
|
1456
|
+
reset: () => LiveSystemComponentBuilder;
|
|
1457
|
+
/**
|
|
1458
|
+
* Function that generates and returns a LiveSystemComponent instance.
|
|
1459
|
+
* The implementation defines the specific behavior and structure
|
|
1460
|
+
* of the returned LiveSystemComponent.
|
|
1461
|
+
*
|
|
1462
|
+
* @returns {LiveSystemComponent} A new instance of a LiveSystemComponent.
|
|
1463
|
+
*/
|
|
1464
|
+
build: () => LiveSystemComponent;
|
|
1465
|
+
};
|
|
1466
|
+
//#endregion
|
|
1467
|
+
//#region src/live_system/component/index.d.ts
|
|
1468
|
+
declare namespace LiveSystemComponent {
|
|
1469
|
+
type Status = 'Unknown' | 'Instantiating' | 'Active' | 'Failed' | 'Mutating' | 'Deleting' | 'Cancelled';
|
|
1470
|
+
type Provider = 'Unknown' | 'AWS' | 'GCP' | 'Azure' | 'OCI' | 'Hetzner' | 'CaaS' | 'SaaS';
|
|
1471
|
+
type Builder = LiveSystemComponentBuilder;
|
|
1472
|
+
const getBuilder: () => LiveSystemComponentBuilder;
|
|
1473
|
+
}
|
|
1474
|
+
type LiveSystemComponent = BlueprintComponent & {
|
|
1475
|
+
status: LiveSystemComponent.Status;
|
|
1476
|
+
lastUpdated: Date;
|
|
1477
|
+
lastOperationRetried: number;
|
|
1478
|
+
provider: LiveSystemComponent.Provider;
|
|
1479
|
+
lastOperationStatusMessage: string;
|
|
1480
|
+
errorCode: string;
|
|
1481
|
+
};
|
|
1482
|
+
//#endregion
|
|
1483
|
+
//#region src/live_system/entity.d.ts
|
|
1484
|
+
/**
|
|
1485
|
+
* A builder interface for constructing a LiveSystem instance with various configurations.
|
|
1486
|
+
*/
|
|
1487
|
+
type LiveSystemBuilder = {
|
|
1488
|
+
/**
|
|
1489
|
+
* Sets the identifier for the LiveSystemBuilder instance.
|
|
1490
|
+
*
|
|
1491
|
+
* @param {LiveSystemId} value - The unique identifier to associate with the LiveSystemBuilder.
|
|
1492
|
+
* @returns {LiveSystemBuilder} The current instance of the LiveSystemBuilder for chaining further configurations.
|
|
1493
|
+
*/
|
|
1494
|
+
withId: (value: LiveSystemId) => LiveSystemBuilder;
|
|
1495
|
+
/**
|
|
1496
|
+
* A method that assigns a Fractal ID to the live system builder.
|
|
1497
|
+
*
|
|
1498
|
+
* @param {Fractal.Id} value - The unique identifier associated with the fractal.
|
|
1499
|
+
* @returns {LiveSystemBuilder} The current instance of the live system builder, allowing method chaining.
|
|
1500
|
+
*/
|
|
1501
|
+
withFractalId: (value: Fractal$1.Id) => LiveSystemBuilder;
|
|
1502
|
+
/**
|
|
1503
|
+
* Sets the description for the system being built.
|
|
1504
|
+
*
|
|
1505
|
+
* @param {string} value - The description to be assigned.
|
|
1506
|
+
* @returns {LiveSystemBuilder} The builder instance to allow method chaining.
|
|
1507
|
+
*/
|
|
1508
|
+
withDescription: (value: string) => LiveSystemBuilder;
|
|
1509
|
+
/**
|
|
1510
|
+
* Configures the current builder with the specified set of system components.
|
|
1511
|
+
*
|
|
1512
|
+
* @param {LiveSystemComponent[]} value - An array of components to be added to the system.
|
|
1513
|
+
* @returns {LiveSystemBuilder} The updated instance of the builder for method chaining.
|
|
1514
|
+
*/
|
|
1515
|
+
withComponents: (value: LiveSystemComponent[]) => LiveSystemBuilder;
|
|
1516
|
+
/**
|
|
1517
|
+
* Attaches a specified component to the current LiveSystemBuilder instance.
|
|
1518
|
+
*
|
|
1519
|
+
* @param {LiveSystemComponent} value - The component to be added to the system.
|
|
1520
|
+
* @returns {LiveSystemBuilder} The updated LiveSystemBuilder instance, allowing for further configuration or chaining of components.
|
|
1521
|
+
*/
|
|
1522
|
+
withComponent: (value: LiveSystemComponent) => LiveSystemBuilder;
|
|
1523
|
+
/**
|
|
1524
|
+
* A method that sets a generic provider for the live system builder.
|
|
1525
|
+
*
|
|
1526
|
+
* @param {LiveSystemComponent.Provider} value - The provider instance to be applied within the live system.
|
|
1527
|
+
* @returns {LiveSystemBuilder} The current instance of the live system builder, allowing for method chaining.
|
|
1528
|
+
*/
|
|
1529
|
+
withGenericProvider: (value: LiveSystemComponent.Provider) => LiveSystemBuilder;
|
|
1530
|
+
/**
|
|
1531
|
+
* Sets the parameters for the live system being built.
|
|
1532
|
+
*
|
|
1533
|
+
* @param {LiveSystem.Parameters} parameters - The parameters to associate with the live system.
|
|
1534
|
+
* @returns {ComponentBuilder} The builder instance for method chaining.
|
|
1535
|
+
*/
|
|
1536
|
+
withParameters: (parameters: Component.Parameters) => LiveSystemBuilder;
|
|
1537
|
+
/**
|
|
1538
|
+
* Configures the LiveSystemBuilder instance with the specified environment.
|
|
1539
|
+
*
|
|
1540
|
+
* @param {Environment} environment - The environment configuration to be applied.
|
|
1541
|
+
* @returns {LiveSystemBuilder} The updated LiveSystemBuilder instance configured with the provided environment.
|
|
1542
|
+
*/
|
|
1543
|
+
withEnvironment: (environment: Environment) => LiveSystemBuilder;
|
|
1544
|
+
/**
|
|
1545
|
+
* Resets the current state of the LiveSystemBuilder to its initial configuration.
|
|
1546
|
+
* This operation typically clears any modifications or settings that have been applied
|
|
1547
|
+
* and returns a fresh instance ready for reconfiguration.
|
|
1548
|
+
*
|
|
1549
|
+
* @function
|
|
1550
|
+
* @returns {LiveSystemBuilder} A new instance of the LiveSystemBuilder with default settings.
|
|
1551
|
+
*/
|
|
1552
|
+
reset: () => LiveSystemBuilder;
|
|
1553
|
+
/**
|
|
1554
|
+
* A method or function that, when invoked, initiates the creation or assembly process
|
|
1555
|
+
* to produce an instance of the `LiveSystem`. The returned `LiveSystem` is a fully
|
|
1556
|
+
* operational system ready to perform its designated tasks or services.
|
|
1557
|
+
*
|
|
1558
|
+
* @returns {LiveSystem} An instance of the `LiveSystem` representing the constructed system.
|
|
1559
|
+
*/
|
|
1560
|
+
build: () => LiveSystem$1;
|
|
1561
|
+
};
|
|
1562
|
+
//#endregion
|
|
1563
|
+
//#region src/live_system/index.d.ts
|
|
1564
|
+
declare namespace LiveSystem$1 {
|
|
1565
|
+
type Status = 'Unknown' | 'Mutating' | 'Active' | 'FailedMutation' | 'Processing' | 'Error' | 'Ready' | 'Deleting' | 'Stale';
|
|
1566
|
+
type Id = LiveSystemId;
|
|
1567
|
+
namespace Id {
|
|
1568
|
+
type Builder = LiveSystemIdBuilder;
|
|
1569
|
+
const getBuilder: () => LiveSystemIdBuilder;
|
|
1570
|
+
}
|
|
1571
|
+
type Component = LiveSystemComponent;
|
|
1572
|
+
namespace Component {
|
|
1573
|
+
type Builder = LiveSystemComponentBuilder;
|
|
1574
|
+
const getBuilder: () => LiveSystemComponentBuilder;
|
|
1575
|
+
}
|
|
1576
|
+
type Parameters = GenericParameters;
|
|
1577
|
+
type Builder = LiveSystemBuilder;
|
|
1578
|
+
const getBuilder: () => LiveSystemBuilder;
|
|
1579
|
+
}
|
|
1580
|
+
type LiveSystem$1 = {
|
|
1581
|
+
id: LiveSystemId;
|
|
1582
|
+
requesterId: string;
|
|
1583
|
+
fractalId: Fractal$1.Id;
|
|
1584
|
+
description: string;
|
|
1585
|
+
status: LiveSystem$1.Status;
|
|
1586
|
+
statusMessage: string;
|
|
1587
|
+
components: LiveSystemComponent[];
|
|
1588
|
+
genericProvider: LiveSystemComponent.Provider;
|
|
1589
|
+
parameters: LiveSystem$1.Parameters;
|
|
1590
|
+
environment: Environment$1;
|
|
1591
|
+
createdAt: Date;
|
|
1592
|
+
updatedAt: Date;
|
|
1593
|
+
deploy: (credentials: ServiceAccountCredentials$1) => Promise<void>;
|
|
1594
|
+
destroy: (credentials: ServiceAccountCredentials$1) => Promise<void>;
|
|
1595
|
+
};
|
|
1596
|
+
//#endregion
|
|
1597
|
+
//#region src/fractal/component/network_and_compute/iaas/vm.d.ts
|
|
1598
|
+
type VmPortLink = {
|
|
1599
|
+
target: VirtualMachineNode;
|
|
1600
|
+
fromPort: number;
|
|
1601
|
+
toPort?: number;
|
|
1602
|
+
protocol?: string;
|
|
1603
|
+
};
|
|
1604
|
+
type VirtualMachineNode = {
|
|
1605
|
+
readonly component: BlueprintComponent;
|
|
1606
|
+
readonly components: ReadonlyArray<BlueprintComponent>;
|
|
1607
|
+
withLinks: (links: VmPortLink[]) => VirtualMachineNode;
|
|
1608
|
+
};
|
|
1609
|
+
type VirtualMachineBuilder = {
|
|
1610
|
+
withId: (id: string) => VirtualMachineBuilder;
|
|
1611
|
+
withVersion: (major: number, minor: number, patch: number) => VirtualMachineBuilder;
|
|
1612
|
+
withDisplayName: (displayName: string) => VirtualMachineBuilder;
|
|
1613
|
+
withDescription: (description: string) => VirtualMachineBuilder;
|
|
1614
|
+
withLinks: (links: ComponentLink[]) => VirtualMachineBuilder;
|
|
1615
|
+
build: () => BlueprintComponent;
|
|
1616
|
+
};
|
|
1617
|
+
type VirtualMachineConfig = {
|
|
1618
|
+
id: string;
|
|
1619
|
+
version: {
|
|
1620
|
+
major: number;
|
|
1621
|
+
minor: number;
|
|
1622
|
+
patch: number;
|
|
1623
|
+
};
|
|
1624
|
+
displayName: string;
|
|
1625
|
+
description?: string;
|
|
1626
|
+
};
|
|
1627
|
+
declare namespace VirtualMachine {
|
|
1628
|
+
const getBuilder: () => VirtualMachineBuilder;
|
|
1629
|
+
const create: (config: VirtualMachineConfig) => VirtualMachineNode;
|
|
1630
|
+
}
|
|
1631
|
+
//#endregion
|
|
1632
|
+
//#region src/fractal/component/custom_workloads/caas/workload.d.ts
|
|
1633
|
+
/**
|
|
1634
|
+
* Link from one Workload to another, declaring a traffic rule.
|
|
1635
|
+
* The agent derives managed SG egress/ingress rules from these.
|
|
1636
|
+
*/
|
|
1637
|
+
type WorkloadPortLink = {
|
|
1638
|
+
target: WorkloadNode;
|
|
1639
|
+
fromPort: number;
|
|
1640
|
+
toPort?: number;
|
|
1641
|
+
protocol?: string;
|
|
1642
|
+
};
|
|
1643
|
+
type WorkloadNode = {
|
|
1644
|
+
readonly component: BlueprintComponent;
|
|
1645
|
+
readonly components: ReadonlyArray<BlueprintComponent>;
|
|
1646
|
+
withLinks: (links: WorkloadPortLink[]) => WorkloadNode;
|
|
1647
|
+
withSecurityGroups: (sgs: BlueprintComponent[]) => WorkloadNode;
|
|
1648
|
+
};
|
|
1649
|
+
type WorkloadBuilder = {
|
|
1650
|
+
withId: (id: string) => WorkloadBuilder;
|
|
1651
|
+
withVersion: (major: number, minor: number, patch: number) => WorkloadBuilder;
|
|
1652
|
+
withDisplayName: (displayName: string) => WorkloadBuilder;
|
|
1653
|
+
withDescription: (description: string) => WorkloadBuilder;
|
|
1654
|
+
withContainerImage: (image: string) => WorkloadBuilder;
|
|
1655
|
+
withContainerPort: (port: number) => WorkloadBuilder;
|
|
1656
|
+
withContainerName: (name: string) => WorkloadBuilder;
|
|
1657
|
+
withCpu: (cpu: string) => WorkloadBuilder;
|
|
1658
|
+
withMemory: (memory: string) => WorkloadBuilder;
|
|
1659
|
+
withDesiredCount: (count: number) => WorkloadBuilder;
|
|
1660
|
+
build: () => BlueprintComponent;
|
|
1661
|
+
};
|
|
1662
|
+
type WorkloadConfig = {
|
|
1663
|
+
id: string;
|
|
1664
|
+
version: {
|
|
1665
|
+
major: number;
|
|
1666
|
+
minor: number;
|
|
1667
|
+
patch: number;
|
|
1668
|
+
};
|
|
1669
|
+
displayName: string;
|
|
1670
|
+
description?: string;
|
|
1671
|
+
containerImage: string;
|
|
1672
|
+
containerPort?: number;
|
|
1673
|
+
containerName?: string;
|
|
1674
|
+
cpu?: string;
|
|
1675
|
+
memory?: string;
|
|
1676
|
+
desiredCount?: number;
|
|
1677
|
+
};
|
|
1678
|
+
declare namespace Workload {
|
|
1679
|
+
const getBuilder: () => WorkloadBuilder;
|
|
1680
|
+
const create: (config: WorkloadConfig) => WorkloadNode;
|
|
1681
|
+
}
|
|
1682
|
+
//#endregion
|
|
1683
|
+
//#region src/fractal/component/network_and_compute/iaas/subnet.d.ts
|
|
1684
|
+
type SubnetNode = {
|
|
1685
|
+
readonly subnet: BlueprintComponent;
|
|
1686
|
+
readonly virtualMachines: ReadonlyArray<BlueprintComponent>;
|
|
1687
|
+
readonly workloads: ReadonlyArray<BlueprintComponent>;
|
|
1688
|
+
readonly components: ReadonlyArray<BlueprintComponent>;
|
|
1689
|
+
withVirtualMachines: (vms: VirtualMachineNode[]) => SubnetNode;
|
|
1690
|
+
withWorkloads: (workloads: ReadonlyArray<WorkloadNode>) => SubnetNode;
|
|
1691
|
+
};
|
|
1692
|
+
type SubnetResult = {
|
|
1693
|
+
readonly subnet: BlueprintComponent;
|
|
1694
|
+
readonly virtualMachines: ReadonlyArray<BlueprintComponent>;
|
|
1695
|
+
readonly components: ReadonlyArray<BlueprintComponent>;
|
|
1696
|
+
};
|
|
1697
|
+
type SubnetBuilder = {
|
|
1698
|
+
withId: (id: string) => SubnetBuilder;
|
|
1699
|
+
withVersion: (major: number, minor: number, patch: number) => SubnetBuilder;
|
|
1700
|
+
withDisplayName: (displayName: string) => SubnetBuilder;
|
|
1701
|
+
withDescription: (description: string) => SubnetBuilder;
|
|
1702
|
+
withCidrBlock: (cidrBlock: string) => SubnetBuilder;
|
|
1703
|
+
withVirtualMachine: (builder: VirtualMachineBuilder) => SubnetBuilder;
|
|
1704
|
+
withLinks: (links: ComponentLink[]) => SubnetBuilder;
|
|
1705
|
+
build: () => SubnetResult;
|
|
1706
|
+
};
|
|
1707
|
+
type SubnetConfig = {
|
|
1708
|
+
id: string;
|
|
1709
|
+
version: {
|
|
1710
|
+
major: number;
|
|
1711
|
+
minor: number;
|
|
1712
|
+
patch: number;
|
|
1713
|
+
};
|
|
1714
|
+
displayName: string;
|
|
1715
|
+
description?: string;
|
|
1716
|
+
cidrBlock?: string;
|
|
1717
|
+
};
|
|
1718
|
+
declare namespace Subnet {
|
|
1719
|
+
const getBuilder: () => SubnetBuilder;
|
|
1720
|
+
const create: (config: SubnetConfig) => SubnetNode;
|
|
1721
|
+
}
|
|
1722
|
+
//#endregion
|
|
1723
|
+
//#region src/fractal/component/network_and_compute/iaas/security_group.d.ts
|
|
1724
|
+
type IngressRule = {
|
|
1725
|
+
protocol?: string;
|
|
1726
|
+
fromPort: number;
|
|
1727
|
+
toPort?: number;
|
|
1728
|
+
sourceCidr?: string;
|
|
1729
|
+
sourceGroupId?: string;
|
|
1730
|
+
};
|
|
1731
|
+
type SecurityGroupBuilder = {
|
|
1732
|
+
withId: (id: string) => SecurityGroupBuilder;
|
|
1733
|
+
withVersion: (major: number, minor: number, patch: number) => SecurityGroupBuilder;
|
|
1734
|
+
withDisplayName: (displayName: string) => SecurityGroupBuilder;
|
|
1735
|
+
withDescription: (description: string) => SecurityGroupBuilder;
|
|
1736
|
+
withIngressRules: (rules: IngressRule[]) => SecurityGroupBuilder;
|
|
1737
|
+
withLinks: (links: ComponentLink[]) => SecurityGroupBuilder;
|
|
1738
|
+
build: () => BlueprintComponent;
|
|
1739
|
+
};
|
|
1740
|
+
type SecurityGroupConfig = {
|
|
1741
|
+
id: string;
|
|
1742
|
+
version: {
|
|
1743
|
+
major: number;
|
|
1744
|
+
minor: number;
|
|
1745
|
+
patch: number;
|
|
1746
|
+
};
|
|
1747
|
+
displayName: string;
|
|
1748
|
+
description: string;
|
|
1749
|
+
ingressRules?: IngressRule[];
|
|
1750
|
+
};
|
|
1751
|
+
declare namespace SecurityGroup {
|
|
1752
|
+
const getBuilder: () => SecurityGroupBuilder;
|
|
1753
|
+
const create: (config: SecurityGroupConfig) => BlueprintComponent;
|
|
1754
|
+
}
|
|
1755
|
+
//#endregion
|
|
1756
|
+
//#region src/fractal/component/network_and_compute/iaas/virtual_network.d.ts
|
|
1757
|
+
type VirtualNetworkNode = {
|
|
1758
|
+
readonly vpc: BlueprintComponent;
|
|
1759
|
+
readonly subnets: ReadonlyArray<BlueprintComponent>;
|
|
1760
|
+
readonly securityGroups: ReadonlyArray<BlueprintComponent>;
|
|
1761
|
+
readonly virtualMachines: ReadonlyArray<BlueprintComponent>;
|
|
1762
|
+
readonly workloads: ReadonlyArray<BlueprintComponent>;
|
|
1763
|
+
readonly components: ReadonlyArray<BlueprintComponent>;
|
|
1764
|
+
withSubnets: (subnets: SubnetNode[]) => VirtualNetworkNode;
|
|
1765
|
+
withSecurityGroups: (sgs: BlueprintComponent[]) => VirtualNetworkNode;
|
|
1766
|
+
};
|
|
1767
|
+
type VirtualNetworkResult = {
|
|
1768
|
+
readonly vpc: BlueprintComponent;
|
|
1769
|
+
readonly subnets: ReadonlyArray<BlueprintComponent>;
|
|
1770
|
+
readonly securityGroups: ReadonlyArray<BlueprintComponent>;
|
|
1771
|
+
readonly virtualMachines: ReadonlyArray<BlueprintComponent>;
|
|
1772
|
+
readonly workloads: ReadonlyArray<BlueprintComponent>;
|
|
1773
|
+
readonly components: ReadonlyArray<BlueprintComponent>;
|
|
1774
|
+
};
|
|
1775
|
+
type VirtualNetworkBuilder = {
|
|
1776
|
+
withId: (id: string) => VirtualNetworkBuilder;
|
|
1777
|
+
withVersion: (major: number, minor: number, patch: number) => VirtualNetworkBuilder;
|
|
1778
|
+
withDisplayName: (displayName: string) => VirtualNetworkBuilder;
|
|
1779
|
+
withDescription: (description: string) => VirtualNetworkBuilder;
|
|
1780
|
+
withCidrBlock: (cidrBlock: string) => VirtualNetworkBuilder;
|
|
1781
|
+
withSubnet: (builder: SubnetBuilder) => VirtualNetworkBuilder;
|
|
1782
|
+
withSecurityGroup: (builder: SecurityGroupBuilder) => VirtualNetworkBuilder;
|
|
1783
|
+
withLinks: (links: ComponentLink[]) => VirtualNetworkBuilder;
|
|
1784
|
+
build: () => VirtualNetworkResult;
|
|
1785
|
+
};
|
|
1786
|
+
type VirtualNetworkConfig = {
|
|
1787
|
+
id: string;
|
|
1788
|
+
version: {
|
|
1789
|
+
major: number;
|
|
1790
|
+
minor: number;
|
|
1791
|
+
patch: number;
|
|
1792
|
+
};
|
|
1793
|
+
displayName: string;
|
|
1794
|
+
description?: string;
|
|
1795
|
+
cidrBlock?: string;
|
|
1796
|
+
};
|
|
1797
|
+
declare namespace VirtualNetwork {
|
|
1798
|
+
const getBuilder: () => VirtualNetworkBuilder;
|
|
1799
|
+
const create: (config: VirtualNetworkConfig) => VirtualNetworkNode;
|
|
1800
|
+
}
|
|
1801
|
+
//#endregion
|
|
1802
|
+
//#region src/live_system/component/network_and_compute/iaas/vpc.d.ts
|
|
1803
|
+
/**
|
|
1804
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
1805
|
+
* Structural properties (id, version, displayName, description, cidrBlock,
|
|
1806
|
+
* dependencies, links) are locked to the blueprint and cannot be overridden.
|
|
1807
|
+
*/
|
|
1808
|
+
type SatisfiedAwsVpcBuilder = {
|
|
1809
|
+
withInstanceTenancy: (instanceTenancy: 'default' | 'dedicated') => SatisfiedAwsVpcBuilder;
|
|
1810
|
+
withEnableDnsSupport: (enable: boolean) => SatisfiedAwsVpcBuilder;
|
|
1811
|
+
withEnableDnsHostnames: (enable: boolean) => SatisfiedAwsVpcBuilder;
|
|
1812
|
+
build: () => LiveSystemComponent;
|
|
1813
|
+
};
|
|
1814
|
+
type AwsVpcBuilder = {
|
|
1815
|
+
withId: (id: string) => AwsVpcBuilder;
|
|
1816
|
+
withVersion: (major: number, minor: number, patch: number) => AwsVpcBuilder;
|
|
1817
|
+
withDisplayName: (displayName: string) => AwsVpcBuilder;
|
|
1818
|
+
withDescription: (description: string) => AwsVpcBuilder;
|
|
1819
|
+
withCidrBlock: (cidrBlock: string) => AwsVpcBuilder;
|
|
1820
|
+
withInstanceTenancy: (instanceTenancy: 'default' | 'dedicated') => AwsVpcBuilder;
|
|
1821
|
+
withEnableDnsSupport: (enable: boolean) => AwsVpcBuilder;
|
|
1822
|
+
withEnableDnsHostnames: (enable: boolean) => AwsVpcBuilder;
|
|
1823
|
+
build: () => LiveSystemComponent;
|
|
1824
|
+
};
|
|
1825
|
+
type AwsVpcConfig = {
|
|
1826
|
+
id: string;
|
|
1827
|
+
version: {
|
|
1828
|
+
major: number;
|
|
1829
|
+
minor: number;
|
|
1830
|
+
patch: number;
|
|
1831
|
+
};
|
|
1832
|
+
displayName: string;
|
|
1833
|
+
description?: string;
|
|
1834
|
+
cidrBlock: string;
|
|
1835
|
+
instanceTenancy?: 'default' | 'dedicated';
|
|
1836
|
+
enableDnsSupport?: boolean;
|
|
1837
|
+
enableDnsHostnames?: boolean;
|
|
1838
|
+
};
|
|
1839
|
+
declare namespace AwsVpc {
|
|
1840
|
+
const getBuilder: () => AwsVpcBuilder;
|
|
1841
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedAwsVpcBuilder;
|
|
1842
|
+
const create: (config: AwsVpcConfig) => LiveSystemComponent;
|
|
1843
|
+
}
|
|
1844
|
+
//#endregion
|
|
1845
|
+
//#region src/live_system/component/network_and_compute/iaas/subnet.d.ts
|
|
1846
|
+
/**
|
|
1847
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
1848
|
+
* Structural properties (id, version, displayName, description, cidrBlock,
|
|
1849
|
+
* dependencies, links) are locked to the blueprint and cannot be overridden.
|
|
1850
|
+
*/
|
|
1851
|
+
type SatisfiedAwsSubnetBuilder = {
|
|
1852
|
+
withAvailabilityZone: (availabilityZone: string) => SatisfiedAwsSubnetBuilder;
|
|
1853
|
+
build: () => LiveSystemComponent;
|
|
1854
|
+
};
|
|
1855
|
+
type AwsSubnetBuilder = {
|
|
1856
|
+
withId: (id: string) => AwsSubnetBuilder;
|
|
1857
|
+
withVersion: (major: number, minor: number, patch: number) => AwsSubnetBuilder;
|
|
1858
|
+
withDisplayName: (displayName: string) => AwsSubnetBuilder;
|
|
1859
|
+
withDescription: (description: string) => AwsSubnetBuilder;
|
|
1860
|
+
withCidrBlock: (cidrBlock: string) => AwsSubnetBuilder;
|
|
1861
|
+
withAvailabilityZone: (availabilityZone: string) => AwsSubnetBuilder;
|
|
1862
|
+
build: () => LiveSystemComponent;
|
|
1863
|
+
};
|
|
1864
|
+
type AwsSubnetConfig = {
|
|
1865
|
+
id: string;
|
|
1866
|
+
version: {
|
|
1867
|
+
major: number;
|
|
1868
|
+
minor: number;
|
|
1869
|
+
patch: number;
|
|
1870
|
+
};
|
|
1871
|
+
displayName: string;
|
|
1872
|
+
description?: string;
|
|
1873
|
+
cidrBlock: string;
|
|
1874
|
+
availabilityZone: string;
|
|
1875
|
+
};
|
|
1876
|
+
declare namespace AwsSubnet {
|
|
1877
|
+
const getBuilder: () => AwsSubnetBuilder;
|
|
1878
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedAwsSubnetBuilder;
|
|
1879
|
+
const create: (config: AwsSubnetConfig) => LiveSystemComponent;
|
|
1880
|
+
}
|
|
1881
|
+
//#endregion
|
|
1882
|
+
//#region src/live_system/component/network_and_compute/iaas/security_group.d.ts
|
|
1883
|
+
/**
|
|
1884
|
+
* Returned by satisfy() — structural properties (id, version, displayName,
|
|
1885
|
+
* description, dependencies, links, ingressRules) are locked to the blueprint
|
|
1886
|
+
* and cannot be overridden.
|
|
1887
|
+
*/
|
|
1888
|
+
type SatisfiedAwsSecurityGroupBuilder = {
|
|
1889
|
+
build: () => LiveSystemComponent;
|
|
1890
|
+
};
|
|
1891
|
+
type AwsSecurityGroupBuilder = {
|
|
1892
|
+
withId: (id: string) => AwsSecurityGroupBuilder;
|
|
1893
|
+
withVersion: (major: number, minor: number, patch: number) => AwsSecurityGroupBuilder;
|
|
1894
|
+
withDisplayName: (displayName: string) => AwsSecurityGroupBuilder;
|
|
1895
|
+
withDescription: (description: string) => AwsSecurityGroupBuilder;
|
|
1896
|
+
withIngressRules: (rules: IngressRule[]) => AwsSecurityGroupBuilder;
|
|
1897
|
+
build: () => LiveSystemComponent;
|
|
1898
|
+
};
|
|
1899
|
+
type AwsSecurityGroupConfig = {
|
|
1900
|
+
id: string;
|
|
1901
|
+
version: {
|
|
1902
|
+
major: number;
|
|
1903
|
+
minor: number;
|
|
1904
|
+
patch: number;
|
|
1905
|
+
};
|
|
1906
|
+
displayName: string;
|
|
1907
|
+
description: string;
|
|
1908
|
+
ingressRules?: IngressRule[];
|
|
1909
|
+
};
|
|
1910
|
+
declare namespace AwsSecurityGroup {
|
|
1911
|
+
const getBuilder: () => AwsSecurityGroupBuilder;
|
|
1912
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedAwsSecurityGroupBuilder;
|
|
1913
|
+
const create: (config: AwsSecurityGroupConfig) => LiveSystemComponent;
|
|
1914
|
+
}
|
|
1915
|
+
//#endregion
|
|
1916
|
+
//#region src/live_system/component/network_and_compute/iaas/ec2_instance.d.ts
|
|
1917
|
+
/**
|
|
1918
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
1919
|
+
* Structural properties (id, version, displayName, description, dependencies,
|
|
1920
|
+
* links) are locked to the blueprint and cannot be overridden.
|
|
1921
|
+
*/
|
|
1922
|
+
type SatisfiedEc2Builder = {
|
|
1923
|
+
withAmiId: (amiId: string) => SatisfiedEc2Builder;
|
|
1924
|
+
withInstanceType: (instanceType: string) => SatisfiedEc2Builder;
|
|
1925
|
+
withKeyName: (keyName: string) => SatisfiedEc2Builder;
|
|
1926
|
+
withUserData: (userData: string) => SatisfiedEc2Builder;
|
|
1927
|
+
withIamInstanceProfile: (profile: string) => SatisfiedEc2Builder;
|
|
1928
|
+
withAssociatePublicIp: (associate: boolean) => SatisfiedEc2Builder;
|
|
1929
|
+
build: () => LiveSystemComponent;
|
|
1930
|
+
};
|
|
1931
|
+
type Ec2InstanceBuilder = {
|
|
1932
|
+
withId: (id: string) => Ec2InstanceBuilder;
|
|
1933
|
+
withVersion: (major: number, minor: number, patch: number) => Ec2InstanceBuilder;
|
|
1934
|
+
withDisplayName: (displayName: string) => Ec2InstanceBuilder;
|
|
1935
|
+
withDescription: (description: string) => Ec2InstanceBuilder;
|
|
1936
|
+
withAmiId: (amiId: string) => Ec2InstanceBuilder;
|
|
1937
|
+
withInstanceType: (instanceType: string) => Ec2InstanceBuilder;
|
|
1938
|
+
withKeyName: (keyName: string) => Ec2InstanceBuilder;
|
|
1939
|
+
withUserData: (userData: string) => Ec2InstanceBuilder;
|
|
1940
|
+
withIamInstanceProfile: (profile: string) => Ec2InstanceBuilder;
|
|
1941
|
+
withAssociatePublicIp: (associate: boolean) => Ec2InstanceBuilder;
|
|
1942
|
+
build: () => LiveSystemComponent;
|
|
1943
|
+
};
|
|
1944
|
+
type Ec2InstanceConfig = {
|
|
1945
|
+
id: string;
|
|
1946
|
+
version: {
|
|
1947
|
+
major: number;
|
|
1948
|
+
minor: number;
|
|
1949
|
+
patch: number;
|
|
1950
|
+
};
|
|
1951
|
+
displayName: string;
|
|
1952
|
+
description?: string;
|
|
1953
|
+
amiId: string;
|
|
1954
|
+
instanceType: string;
|
|
1955
|
+
keyName?: string;
|
|
1956
|
+
userData?: string;
|
|
1957
|
+
iamInstanceProfile?: string;
|
|
1958
|
+
associatePublicIp?: boolean;
|
|
1959
|
+
};
|
|
1960
|
+
declare namespace Ec2Instance {
|
|
1961
|
+
const getBuilder: () => Ec2InstanceBuilder;
|
|
1962
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedEc2Builder;
|
|
1963
|
+
const create: (config: Ec2InstanceConfig) => LiveSystemComponent;
|
|
1964
|
+
}
|
|
1965
|
+
//#endregion
|
|
1966
|
+
//#region src/live_system/component/network_and_compute/iaas/azure_vnet.d.ts
|
|
1967
|
+
/**
|
|
1968
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
1969
|
+
* Structural properties (id, version, displayName, description, cidrBlock,
|
|
1970
|
+
* dependencies, links) are locked to the blueprint and cannot be overridden.
|
|
1971
|
+
*/
|
|
1972
|
+
type SatisfiedAzureVnetBuilder = {
|
|
1973
|
+
withLocation: (location: string) => SatisfiedAzureVnetBuilder;
|
|
1974
|
+
withResourceGroup: (rg: string) => SatisfiedAzureVnetBuilder;
|
|
1975
|
+
build: () => LiveSystemComponent;
|
|
1976
|
+
};
|
|
1977
|
+
type AzureVnetBuilder = {
|
|
1978
|
+
withId: (id: string) => AzureVnetBuilder;
|
|
1979
|
+
withVersion: (major: number, minor: number, patch: number) => AzureVnetBuilder;
|
|
1980
|
+
withDisplayName: (displayName: string) => AzureVnetBuilder;
|
|
1981
|
+
withDescription: (description: string) => AzureVnetBuilder;
|
|
1982
|
+
withCidrBlock: (cidrBlock: string) => AzureVnetBuilder;
|
|
1983
|
+
withLocation: (location: string) => AzureVnetBuilder;
|
|
1984
|
+
withResourceGroup: (rg: string) => AzureVnetBuilder;
|
|
1985
|
+
build: () => LiveSystemComponent;
|
|
1986
|
+
};
|
|
1987
|
+
type AzureVnetConfig = {
|
|
1988
|
+
id: string;
|
|
1989
|
+
version: {
|
|
1990
|
+
major: number;
|
|
1991
|
+
minor: number;
|
|
1992
|
+
patch: number;
|
|
1993
|
+
};
|
|
1994
|
+
displayName: string;
|
|
1995
|
+
description?: string;
|
|
1996
|
+
cidrBlock: string;
|
|
1997
|
+
location: string;
|
|
1998
|
+
resourceGroup: string;
|
|
1999
|
+
};
|
|
2000
|
+
declare namespace AzureVnet {
|
|
2001
|
+
const getBuilder: () => AzureVnetBuilder;
|
|
2002
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedAzureVnetBuilder;
|
|
2003
|
+
const create: (config: AzureVnetConfig) => LiveSystemComponent;
|
|
2004
|
+
}
|
|
2005
|
+
//#endregion
|
|
2006
|
+
//#region src/live_system/component/network_and_compute/iaas/azure_subnet.d.ts
|
|
2007
|
+
/**
|
|
2008
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
2009
|
+
* Structural properties (id, version, displayName, description, cidrBlock,
|
|
2010
|
+
* dependencies, links) are locked to the blueprint and cannot be overridden.
|
|
2011
|
+
*/
|
|
2012
|
+
type SatisfiedAzureSubnetBuilder = {
|
|
2013
|
+
withResourceGroup: (rg: string) => SatisfiedAzureSubnetBuilder;
|
|
2014
|
+
build: () => LiveSystemComponent;
|
|
2015
|
+
};
|
|
2016
|
+
type AzureSubnetBuilder = {
|
|
2017
|
+
withId: (id: string) => AzureSubnetBuilder;
|
|
2018
|
+
withVersion: (major: number, minor: number, patch: number) => AzureSubnetBuilder;
|
|
2019
|
+
withDisplayName: (displayName: string) => AzureSubnetBuilder;
|
|
2020
|
+
withDescription: (description: string) => AzureSubnetBuilder;
|
|
2021
|
+
withCidrBlock: (cidrBlock: string) => AzureSubnetBuilder;
|
|
2022
|
+
withResourceGroup: (rg: string) => AzureSubnetBuilder;
|
|
2023
|
+
build: () => LiveSystemComponent;
|
|
2024
|
+
};
|
|
2025
|
+
type AzureSubnetConfig = {
|
|
2026
|
+
id: string;
|
|
2027
|
+
version: {
|
|
2028
|
+
major: number;
|
|
2029
|
+
minor: number;
|
|
2030
|
+
patch: number;
|
|
2031
|
+
};
|
|
2032
|
+
displayName: string;
|
|
2033
|
+
description?: string;
|
|
2034
|
+
cidrBlock: string;
|
|
2035
|
+
resourceGroup: string;
|
|
2036
|
+
};
|
|
2037
|
+
declare namespace AzureSubnet {
|
|
2038
|
+
const getBuilder: () => AzureSubnetBuilder;
|
|
2039
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedAzureSubnetBuilder;
|
|
2040
|
+
const create: (config: AzureSubnetConfig) => LiveSystemComponent;
|
|
2041
|
+
}
|
|
2042
|
+
//#endregion
|
|
2043
|
+
//#region src/live_system/component/network_and_compute/iaas/azure_nsg.d.ts
|
|
2044
|
+
/**
|
|
2045
|
+
* Returned by satisfy() — structural properties (id, version, displayName,
|
|
2046
|
+
* description, dependencies, links, ingressRules) are locked to the blueprint
|
|
2047
|
+
* and cannot be overridden.
|
|
2048
|
+
*/
|
|
2049
|
+
type SatisfiedAzureNsgBuilder = {
|
|
2050
|
+
withLocation: (location: string) => SatisfiedAzureNsgBuilder;
|
|
2051
|
+
withResourceGroup: (rg: string) => SatisfiedAzureNsgBuilder;
|
|
2052
|
+
build: () => LiveSystemComponent;
|
|
2053
|
+
};
|
|
2054
|
+
type AzureNsgBuilder = {
|
|
2055
|
+
withId: (id: string) => AzureNsgBuilder;
|
|
2056
|
+
withVersion: (major: number, minor: number, patch: number) => AzureNsgBuilder;
|
|
2057
|
+
withDisplayName: (displayName: string) => AzureNsgBuilder;
|
|
2058
|
+
withDescription: (description: string) => AzureNsgBuilder;
|
|
2059
|
+
withIngressRules: (rules: IngressRule[]) => AzureNsgBuilder;
|
|
2060
|
+
withLocation: (location: string) => AzureNsgBuilder;
|
|
2061
|
+
withResourceGroup: (rg: string) => AzureNsgBuilder;
|
|
2062
|
+
build: () => LiveSystemComponent;
|
|
2063
|
+
};
|
|
2064
|
+
type AzureNsgConfig = {
|
|
2065
|
+
id: string;
|
|
2066
|
+
version: {
|
|
2067
|
+
major: number;
|
|
2068
|
+
minor: number;
|
|
2069
|
+
patch: number;
|
|
2070
|
+
};
|
|
2071
|
+
displayName: string;
|
|
2072
|
+
description?: string;
|
|
2073
|
+
ingressRules?: IngressRule[];
|
|
2074
|
+
location: string;
|
|
2075
|
+
resourceGroup: string;
|
|
2076
|
+
};
|
|
2077
|
+
declare namespace AzureNsg {
|
|
2078
|
+
const getBuilder: () => AzureNsgBuilder;
|
|
2079
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedAzureNsgBuilder;
|
|
2080
|
+
const create: (config: AzureNsgConfig) => LiveSystemComponent;
|
|
2081
|
+
}
|
|
2082
|
+
//#endregion
|
|
2083
|
+
//#region src/live_system/component/network_and_compute/iaas/azure_vm.d.ts
|
|
2084
|
+
/**
|
|
2085
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
2086
|
+
* Structural properties (id, version, displayName, description, dependencies,
|
|
2087
|
+
* links) are locked to the blueprint and cannot be overridden.
|
|
2088
|
+
*/
|
|
2089
|
+
type SatisfiedAzureVmBuilder = {
|
|
2090
|
+
withVmSize: (vmSize: string) => SatisfiedAzureVmBuilder;
|
|
2091
|
+
withLocation: (location: string) => SatisfiedAzureVmBuilder;
|
|
2092
|
+
withResourceGroup: (rg: string) => SatisfiedAzureVmBuilder;
|
|
2093
|
+
withAdminUsername: (username: string) => SatisfiedAzureVmBuilder;
|
|
2094
|
+
withImagePublisher: (publisher: string) => SatisfiedAzureVmBuilder;
|
|
2095
|
+
withImageOffer: (offer: string) => SatisfiedAzureVmBuilder;
|
|
2096
|
+
withImageSku: (sku: string) => SatisfiedAzureVmBuilder;
|
|
2097
|
+
withSshPublicKey: (key: string) => SatisfiedAzureVmBuilder;
|
|
2098
|
+
withOsDiskSizeGb: (gb: number) => SatisfiedAzureVmBuilder;
|
|
2099
|
+
build: () => LiveSystemComponent;
|
|
2100
|
+
};
|
|
2101
|
+
type AzureVmBuilder = {
|
|
2102
|
+
withId: (id: string) => AzureVmBuilder;
|
|
2103
|
+
withVersion: (major: number, minor: number, patch: number) => AzureVmBuilder;
|
|
2104
|
+
withDisplayName: (displayName: string) => AzureVmBuilder;
|
|
2105
|
+
withDescription: (description: string) => AzureVmBuilder;
|
|
2106
|
+
withVmSize: (vmSize: string) => AzureVmBuilder;
|
|
2107
|
+
withLocation: (location: string) => AzureVmBuilder;
|
|
2108
|
+
withResourceGroup: (rg: string) => AzureVmBuilder;
|
|
2109
|
+
withAdminUsername: (username: string) => AzureVmBuilder;
|
|
2110
|
+
withImagePublisher: (publisher: string) => AzureVmBuilder;
|
|
2111
|
+
withImageOffer: (offer: string) => AzureVmBuilder;
|
|
2112
|
+
withImageSku: (sku: string) => AzureVmBuilder;
|
|
2113
|
+
withSshPublicKey: (key: string) => AzureVmBuilder;
|
|
2114
|
+
withOsDiskSizeGb: (gb: number) => AzureVmBuilder;
|
|
2115
|
+
build: () => LiveSystemComponent;
|
|
2116
|
+
};
|
|
2117
|
+
type AzureVmConfig = {
|
|
2118
|
+
id: string;
|
|
2119
|
+
version: {
|
|
2120
|
+
major: number;
|
|
2121
|
+
minor: number;
|
|
2122
|
+
patch: number;
|
|
2123
|
+
};
|
|
2124
|
+
displayName: string;
|
|
2125
|
+
description?: string;
|
|
2126
|
+
vmSize: string;
|
|
2127
|
+
location: string;
|
|
2128
|
+
resourceGroup: string;
|
|
2129
|
+
adminUsername: string;
|
|
2130
|
+
imagePublisher: string;
|
|
2131
|
+
imageOffer: string;
|
|
2132
|
+
imageSku: string;
|
|
2133
|
+
sshPublicKey?: string;
|
|
2134
|
+
osDiskSizeGb?: number;
|
|
2135
|
+
};
|
|
2136
|
+
declare namespace AzureVm {
|
|
2137
|
+
const getBuilder: () => AzureVmBuilder;
|
|
2138
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedAzureVmBuilder;
|
|
2139
|
+
const create: (config: AzureVmConfig) => LiveSystemComponent;
|
|
2140
|
+
}
|
|
2141
|
+
//#endregion
|
|
2142
|
+
//#region src/live_system/component/network_and_compute/iaas/gcp_vpc.d.ts
|
|
2143
|
+
/**
|
|
2144
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
2145
|
+
* Structural properties (id, version, displayName, description, cidrBlock,
|
|
2146
|
+
* dependencies, links) are locked to the blueprint and cannot be overridden.
|
|
2147
|
+
*/
|
|
2148
|
+
type SatisfiedGcpVpcBuilder = {
|
|
2149
|
+
withAutoCreateSubnetworks: (enabled: boolean) => SatisfiedGcpVpcBuilder;
|
|
2150
|
+
withRoutingMode: (mode: 'REGIONAL' | 'GLOBAL') => SatisfiedGcpVpcBuilder;
|
|
2151
|
+
build: () => LiveSystemComponent;
|
|
2152
|
+
};
|
|
2153
|
+
type GcpVpcBuilder = {
|
|
2154
|
+
withId: (id: string) => GcpVpcBuilder;
|
|
2155
|
+
withVersion: (major: number, minor: number, patch: number) => GcpVpcBuilder;
|
|
2156
|
+
withDisplayName: (displayName: string) => GcpVpcBuilder;
|
|
2157
|
+
withDescription: (description: string) => GcpVpcBuilder;
|
|
2158
|
+
withCidrBlock: (cidrBlock: string) => GcpVpcBuilder;
|
|
2159
|
+
withAutoCreateSubnetworks: (enabled: boolean) => GcpVpcBuilder;
|
|
2160
|
+
withRoutingMode: (mode: 'REGIONAL' | 'GLOBAL') => GcpVpcBuilder;
|
|
2161
|
+
build: () => LiveSystemComponent;
|
|
2162
|
+
};
|
|
2163
|
+
type GcpVpcConfig = {
|
|
2164
|
+
id: string;
|
|
2165
|
+
version: {
|
|
2166
|
+
major: number;
|
|
2167
|
+
minor: number;
|
|
2168
|
+
patch: number;
|
|
2169
|
+
};
|
|
2170
|
+
displayName: string;
|
|
2171
|
+
description?: string;
|
|
2172
|
+
cidrBlock: string;
|
|
2173
|
+
autoCreateSubnetworks?: boolean;
|
|
2174
|
+
routingMode?: 'REGIONAL' | 'GLOBAL';
|
|
2175
|
+
};
|
|
2176
|
+
declare namespace GcpVpc {
|
|
2177
|
+
const getBuilder: () => GcpVpcBuilder;
|
|
2178
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedGcpVpcBuilder;
|
|
2179
|
+
const create: (config: GcpVpcConfig) => LiveSystemComponent;
|
|
2180
|
+
}
|
|
2181
|
+
//#endregion
|
|
2182
|
+
//#region src/live_system/component/network_and_compute/iaas/gcp_subnet.d.ts
|
|
2183
|
+
/**
|
|
2184
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
2185
|
+
* Structural properties (id, version, displayName, description, cidrBlock,
|
|
2186
|
+
* dependencies, links) are locked to the blueprint and cannot be overridden.
|
|
2187
|
+
*/
|
|
2188
|
+
type SatisfiedGcpSubnetBuilder = {
|
|
2189
|
+
withRegion: (region: string) => SatisfiedGcpSubnetBuilder;
|
|
2190
|
+
withPrivateIpGoogleAccess: (enabled: boolean) => SatisfiedGcpSubnetBuilder;
|
|
2191
|
+
build: () => LiveSystemComponent;
|
|
2192
|
+
};
|
|
2193
|
+
type GcpSubnetBuilder = {
|
|
2194
|
+
withId: (id: string) => GcpSubnetBuilder;
|
|
2195
|
+
withVersion: (major: number, minor: number, patch: number) => GcpSubnetBuilder;
|
|
2196
|
+
withDisplayName: (displayName: string) => GcpSubnetBuilder;
|
|
2197
|
+
withDescription: (description: string) => GcpSubnetBuilder;
|
|
2198
|
+
withCidrBlock: (cidrBlock: string) => GcpSubnetBuilder;
|
|
2199
|
+
withRegion: (region: string) => GcpSubnetBuilder;
|
|
2200
|
+
withPrivateIpGoogleAccess: (enabled: boolean) => GcpSubnetBuilder;
|
|
2201
|
+
build: () => LiveSystemComponent;
|
|
2202
|
+
};
|
|
2203
|
+
type GcpSubnetConfig = {
|
|
2204
|
+
id: string;
|
|
2205
|
+
version: {
|
|
2206
|
+
major: number;
|
|
2207
|
+
minor: number;
|
|
2208
|
+
patch: number;
|
|
2209
|
+
};
|
|
2210
|
+
displayName: string;
|
|
2211
|
+
description?: string;
|
|
2212
|
+
cidrBlock: string;
|
|
2213
|
+
region: string;
|
|
2214
|
+
privateIpGoogleAccess?: boolean;
|
|
2215
|
+
};
|
|
2216
|
+
declare namespace GcpSubnet {
|
|
2217
|
+
const getBuilder: () => GcpSubnetBuilder;
|
|
2218
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedGcpSubnetBuilder;
|
|
2219
|
+
const create: (config: GcpSubnetConfig) => LiveSystemComponent;
|
|
2220
|
+
}
|
|
2221
|
+
//#endregion
|
|
2222
|
+
//#region src/live_system/component/network_and_compute/iaas/gcp_firewall.d.ts
|
|
2223
|
+
/**
|
|
2224
|
+
* Returned by satisfy() — structural properties (id, version, displayName,
|
|
2225
|
+
* description, dependencies, links, ingressRules) are locked to the blueprint
|
|
2226
|
+
* and cannot be overridden.
|
|
2227
|
+
*/
|
|
2228
|
+
type SatisfiedGcpFirewallBuilder = {
|
|
2229
|
+
build: () => LiveSystemComponent;
|
|
2230
|
+
};
|
|
2231
|
+
type GcpFirewallBuilder = {
|
|
2232
|
+
withId: (id: string) => GcpFirewallBuilder;
|
|
2233
|
+
withVersion: (major: number, minor: number, patch: number) => GcpFirewallBuilder;
|
|
2234
|
+
withDisplayName: (displayName: string) => GcpFirewallBuilder;
|
|
2235
|
+
withDescription: (description: string) => GcpFirewallBuilder;
|
|
2236
|
+
withIngressRules: (rules: IngressRule[]) => GcpFirewallBuilder;
|
|
2237
|
+
build: () => LiveSystemComponent;
|
|
2238
|
+
};
|
|
2239
|
+
type GcpFirewallConfig = {
|
|
2240
|
+
id: string;
|
|
2241
|
+
version: {
|
|
2242
|
+
major: number;
|
|
2243
|
+
minor: number;
|
|
2244
|
+
patch: number;
|
|
2245
|
+
};
|
|
2246
|
+
displayName: string;
|
|
2247
|
+
description?: string;
|
|
2248
|
+
ingressRules?: IngressRule[];
|
|
2249
|
+
};
|
|
2250
|
+
declare namespace GcpFirewall {
|
|
2251
|
+
const getBuilder: () => GcpFirewallBuilder;
|
|
2252
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedGcpFirewallBuilder;
|
|
2253
|
+
const create: (config: GcpFirewallConfig) => LiveSystemComponent;
|
|
2254
|
+
}
|
|
2255
|
+
//#endregion
|
|
2256
|
+
//#region src/live_system/component/network_and_compute/iaas/gcp_vm.d.ts
|
|
2257
|
+
/**
|
|
2258
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
2259
|
+
* Structural properties (id, version, displayName, description, dependencies,
|
|
2260
|
+
* links) are locked to the blueprint and cannot be overridden.
|
|
2261
|
+
*/
|
|
2262
|
+
type SatisfiedGcpVmBuilder = {
|
|
2263
|
+
withMachineType: (machineType: string) => SatisfiedGcpVmBuilder;
|
|
2264
|
+
withZone: (zone: string) => SatisfiedGcpVmBuilder;
|
|
2265
|
+
withImageProject: (project: string) => SatisfiedGcpVmBuilder;
|
|
2266
|
+
withImageFamily: (family: string) => SatisfiedGcpVmBuilder;
|
|
2267
|
+
withServiceAccountEmail: (email: string) => SatisfiedGcpVmBuilder;
|
|
2268
|
+
build: () => LiveSystemComponent;
|
|
2269
|
+
};
|
|
2270
|
+
type GcpVmBuilder = {
|
|
2271
|
+
withId: (id: string) => GcpVmBuilder;
|
|
2272
|
+
withVersion: (major: number, minor: number, patch: number) => GcpVmBuilder;
|
|
2273
|
+
withDisplayName: (displayName: string) => GcpVmBuilder;
|
|
2274
|
+
withDescription: (description: string) => GcpVmBuilder;
|
|
2275
|
+
withMachineType: (machineType: string) => GcpVmBuilder;
|
|
2276
|
+
withZone: (zone: string) => GcpVmBuilder;
|
|
2277
|
+
withImageProject: (project: string) => GcpVmBuilder;
|
|
2278
|
+
withImageFamily: (family: string) => GcpVmBuilder;
|
|
2279
|
+
withServiceAccountEmail: (email: string) => GcpVmBuilder;
|
|
2280
|
+
build: () => LiveSystemComponent;
|
|
2281
|
+
};
|
|
2282
|
+
type GcpVmConfig = {
|
|
2283
|
+
id: string;
|
|
2284
|
+
version: {
|
|
2285
|
+
major: number;
|
|
2286
|
+
minor: number;
|
|
2287
|
+
patch: number;
|
|
2288
|
+
};
|
|
2289
|
+
displayName: string;
|
|
2290
|
+
description?: string;
|
|
2291
|
+
machineType: string;
|
|
2292
|
+
zone: string;
|
|
2293
|
+
imageProject: string;
|
|
2294
|
+
imageFamily?: string;
|
|
2295
|
+
serviceAccountEmail?: string;
|
|
2296
|
+
};
|
|
2297
|
+
declare namespace GcpVm {
|
|
2298
|
+
const getBuilder: () => GcpVmBuilder;
|
|
2299
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedGcpVmBuilder;
|
|
2300
|
+
const create: (config: GcpVmConfig) => LiveSystemComponent;
|
|
2301
|
+
}
|
|
2302
|
+
//#endregion
|
|
2303
|
+
//#region src/live_system/component/network_and_compute/iaas/oci_vcn.d.ts
|
|
2304
|
+
/**
|
|
2305
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
2306
|
+
* Structural properties (id, version, displayName, description, cidrBlock,
|
|
2307
|
+
* dependencies, links) are locked to the blueprint and cannot be overridden.
|
|
2308
|
+
*/
|
|
2309
|
+
type SatisfiedOciVcnBuilder = {
|
|
2310
|
+
withCompartmentId: (id: string) => SatisfiedOciVcnBuilder;
|
|
2311
|
+
build: () => LiveSystemComponent;
|
|
2312
|
+
};
|
|
2313
|
+
type OciVcnBuilder = {
|
|
2314
|
+
withId: (id: string) => OciVcnBuilder;
|
|
2315
|
+
withVersion: (major: number, minor: number, patch: number) => OciVcnBuilder;
|
|
2316
|
+
withDisplayName: (displayName: string) => OciVcnBuilder;
|
|
2317
|
+
withDescription: (description: string) => OciVcnBuilder;
|
|
2318
|
+
withCidrBlock: (cidrBlock: string) => OciVcnBuilder;
|
|
2319
|
+
withCompartmentId: (id: string) => OciVcnBuilder;
|
|
2320
|
+
build: () => LiveSystemComponent;
|
|
2321
|
+
};
|
|
2322
|
+
type OciVcnConfig = {
|
|
2323
|
+
id: string;
|
|
2324
|
+
version: {
|
|
2325
|
+
major: number;
|
|
2326
|
+
minor: number;
|
|
2327
|
+
patch: number;
|
|
2328
|
+
};
|
|
2329
|
+
displayName: string;
|
|
2330
|
+
description?: string;
|
|
2331
|
+
cidrBlock: string;
|
|
2332
|
+
compartmentId: string;
|
|
2333
|
+
};
|
|
2334
|
+
declare namespace OciVcn {
|
|
2335
|
+
const getBuilder: () => OciVcnBuilder;
|
|
2336
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedOciVcnBuilder;
|
|
2337
|
+
const create: (config: OciVcnConfig) => LiveSystemComponent;
|
|
2338
|
+
}
|
|
2339
|
+
//#endregion
|
|
2340
|
+
//#region src/live_system/component/network_and_compute/iaas/oci_subnet.d.ts
|
|
2341
|
+
/**
|
|
2342
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
2343
|
+
* Structural properties (id, version, displayName, description, cidrBlock,
|
|
2344
|
+
* dependencies, links) are locked to the blueprint and cannot be overridden.
|
|
2345
|
+
*/
|
|
2346
|
+
type SatisfiedOciSubnetBuilder = {
|
|
2347
|
+
withCompartmentId: (id: string) => SatisfiedOciSubnetBuilder;
|
|
2348
|
+
withAvailabilityDomain: (ad: string) => SatisfiedOciSubnetBuilder;
|
|
2349
|
+
withProhibitPublicIpOnVnic: (prohibit: boolean) => SatisfiedOciSubnetBuilder;
|
|
2350
|
+
build: () => LiveSystemComponent;
|
|
2351
|
+
};
|
|
2352
|
+
type OciSubnetBuilder = {
|
|
2353
|
+
withId: (id: string) => OciSubnetBuilder;
|
|
2354
|
+
withVersion: (major: number, minor: number, patch: number) => OciSubnetBuilder;
|
|
2355
|
+
withDisplayName: (displayName: string) => OciSubnetBuilder;
|
|
2356
|
+
withDescription: (description: string) => OciSubnetBuilder;
|
|
2357
|
+
withCidrBlock: (cidrBlock: string) => OciSubnetBuilder;
|
|
2358
|
+
withCompartmentId: (id: string) => OciSubnetBuilder;
|
|
2359
|
+
withAvailabilityDomain: (ad: string) => OciSubnetBuilder;
|
|
2360
|
+
withProhibitPublicIpOnVnic: (prohibit: boolean) => OciSubnetBuilder;
|
|
2361
|
+
build: () => LiveSystemComponent;
|
|
2362
|
+
};
|
|
2363
|
+
type OciSubnetConfig = {
|
|
2364
|
+
id: string;
|
|
2365
|
+
version: {
|
|
2366
|
+
major: number;
|
|
2367
|
+
minor: number;
|
|
2368
|
+
patch: number;
|
|
2369
|
+
};
|
|
2370
|
+
displayName: string;
|
|
2371
|
+
description?: string;
|
|
2372
|
+
cidrBlock: string;
|
|
2373
|
+
compartmentId: string;
|
|
2374
|
+
availabilityDomain?: string;
|
|
2375
|
+
prohibitPublicIpOnVnic?: boolean;
|
|
2376
|
+
};
|
|
2377
|
+
declare namespace OciSubnet {
|
|
2378
|
+
const getBuilder: () => OciSubnetBuilder;
|
|
2379
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedOciSubnetBuilder;
|
|
2380
|
+
const create: (config: OciSubnetConfig) => LiveSystemComponent;
|
|
2381
|
+
}
|
|
2382
|
+
//#endregion
|
|
2383
|
+
//#region src/live_system/component/network_and_compute/iaas/oci_security_list.d.ts
|
|
2384
|
+
/**
|
|
2385
|
+
* Returned by satisfy() — structural properties (id, version, displayName,
|
|
2386
|
+
* description, dependencies, links, ingressRules) are locked to the blueprint
|
|
2387
|
+
* and cannot be overridden.
|
|
2388
|
+
*/
|
|
2389
|
+
type SatisfiedOciSecurityListBuilder = {
|
|
2390
|
+
withCompartmentId: (id: string) => SatisfiedOciSecurityListBuilder;
|
|
2391
|
+
build: () => LiveSystemComponent;
|
|
2392
|
+
};
|
|
2393
|
+
type OciSecurityListBuilder = {
|
|
2394
|
+
withId: (id: string) => OciSecurityListBuilder;
|
|
2395
|
+
withVersion: (major: number, minor: number, patch: number) => OciSecurityListBuilder;
|
|
2396
|
+
withDisplayName: (displayName: string) => OciSecurityListBuilder;
|
|
2397
|
+
withDescription: (description: string) => OciSecurityListBuilder;
|
|
2398
|
+
withIngressRules: (rules: IngressRule[]) => OciSecurityListBuilder;
|
|
2399
|
+
withCompartmentId: (id: string) => OciSecurityListBuilder;
|
|
2400
|
+
build: () => LiveSystemComponent;
|
|
2401
|
+
};
|
|
2402
|
+
type OciSecurityListConfig = {
|
|
2403
|
+
id: string;
|
|
2404
|
+
version: {
|
|
2405
|
+
major: number;
|
|
2406
|
+
minor: number;
|
|
2407
|
+
patch: number;
|
|
2408
|
+
};
|
|
2409
|
+
displayName: string;
|
|
2410
|
+
description?: string;
|
|
2411
|
+
ingressRules?: IngressRule[];
|
|
2412
|
+
compartmentId: string;
|
|
2413
|
+
};
|
|
2414
|
+
declare namespace OciSecurityList {
|
|
2415
|
+
const getBuilder: () => OciSecurityListBuilder;
|
|
2416
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedOciSecurityListBuilder;
|
|
2417
|
+
const create: (config: OciSecurityListConfig) => LiveSystemComponent;
|
|
2418
|
+
}
|
|
2419
|
+
//#endregion
|
|
2420
|
+
//#region src/live_system/component/network_and_compute/iaas/oci_instance.d.ts
|
|
2421
|
+
/**
|
|
2422
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
2423
|
+
* Structural properties (id, version, displayName, description,
|
|
2424
|
+
* dependencies, links) are locked to the blueprint and cannot be overridden.
|
|
2425
|
+
*/
|
|
2426
|
+
type SatisfiedOciInstanceBuilder = {
|
|
2427
|
+
withCompartmentId: (id: string) => SatisfiedOciInstanceBuilder;
|
|
2428
|
+
withAvailabilityDomain: (ad: string) => SatisfiedOciInstanceBuilder;
|
|
2429
|
+
withShape: (shape: string) => SatisfiedOciInstanceBuilder;
|
|
2430
|
+
withImageId: (imageId: string) => SatisfiedOciInstanceBuilder;
|
|
2431
|
+
withOcpus: (ocpus: number) => SatisfiedOciInstanceBuilder;
|
|
2432
|
+
withMemoryInGbs: (gb: number) => SatisfiedOciInstanceBuilder;
|
|
2433
|
+
withSshPublicKey: (key: string) => SatisfiedOciInstanceBuilder;
|
|
2434
|
+
build: () => LiveSystemComponent;
|
|
2435
|
+
};
|
|
2436
|
+
type OciInstanceBuilder = {
|
|
2437
|
+
withId: (id: string) => OciInstanceBuilder;
|
|
2438
|
+
withVersion: (major: number, minor: number, patch: number) => OciInstanceBuilder;
|
|
2439
|
+
withDisplayName: (displayName: string) => OciInstanceBuilder;
|
|
2440
|
+
withDescription: (description: string) => OciInstanceBuilder;
|
|
2441
|
+
withCompartmentId: (id: string) => OciInstanceBuilder;
|
|
2442
|
+
withAvailabilityDomain: (ad: string) => OciInstanceBuilder;
|
|
2443
|
+
withShape: (shape: string) => OciInstanceBuilder;
|
|
2444
|
+
withImageId: (imageId: string) => OciInstanceBuilder;
|
|
2445
|
+
withOcpus: (ocpus: number) => OciInstanceBuilder;
|
|
2446
|
+
withMemoryInGbs: (gb: number) => OciInstanceBuilder;
|
|
2447
|
+
withSshPublicKey: (key: string) => OciInstanceBuilder;
|
|
2448
|
+
build: () => LiveSystemComponent;
|
|
2449
|
+
};
|
|
2450
|
+
type OciInstanceConfig = {
|
|
2451
|
+
id: string;
|
|
2452
|
+
version: {
|
|
2453
|
+
major: number;
|
|
2454
|
+
minor: number;
|
|
2455
|
+
patch: number;
|
|
2456
|
+
};
|
|
2457
|
+
displayName: string;
|
|
2458
|
+
description?: string;
|
|
2459
|
+
compartmentId: string;
|
|
2460
|
+
availabilityDomain: string;
|
|
2461
|
+
shape: string;
|
|
2462
|
+
imageId: string;
|
|
2463
|
+
ocpus?: number;
|
|
2464
|
+
memoryInGbs?: number;
|
|
2465
|
+
sshPublicKey?: string;
|
|
2466
|
+
};
|
|
2467
|
+
declare namespace OciInstance {
|
|
2468
|
+
const getBuilder: () => OciInstanceBuilder;
|
|
2469
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedOciInstanceBuilder;
|
|
2470
|
+
const create: (config: OciInstanceConfig) => LiveSystemComponent;
|
|
2471
|
+
}
|
|
2472
|
+
//#endregion
|
|
2473
|
+
//#region src/live_system/component/network_and_compute/iaas/hetzner_network.d.ts
|
|
2474
|
+
/**
|
|
2475
|
+
* Returned by satisfy() — structural properties (id, version, displayName,
|
|
2476
|
+
* description, cidrBlock, dependencies, links) are locked to the blueprint
|
|
2477
|
+
* and cannot be overridden.
|
|
2478
|
+
*/
|
|
2479
|
+
type SatisfiedHetznerNetworkBuilder = {
|
|
2480
|
+
build: () => LiveSystemComponent;
|
|
2481
|
+
};
|
|
2482
|
+
type HetznerNetworkBuilder = {
|
|
2483
|
+
withId: (id: string) => HetznerNetworkBuilder;
|
|
2484
|
+
withVersion: (major: number, minor: number, patch: number) => HetznerNetworkBuilder;
|
|
2485
|
+
withDisplayName: (displayName: string) => HetznerNetworkBuilder;
|
|
2486
|
+
withDescription: (description: string) => HetznerNetworkBuilder;
|
|
2487
|
+
withCidrBlock: (cidrBlock: string) => HetznerNetworkBuilder;
|
|
2488
|
+
build: () => LiveSystemComponent;
|
|
2489
|
+
};
|
|
2490
|
+
type HetznerNetworkConfig = {
|
|
2491
|
+
id: string;
|
|
2492
|
+
version: {
|
|
2493
|
+
major: number;
|
|
2494
|
+
minor: number;
|
|
2495
|
+
patch: number;
|
|
2496
|
+
};
|
|
2497
|
+
displayName: string;
|
|
2498
|
+
description?: string;
|
|
2499
|
+
cidrBlock: string;
|
|
2500
|
+
};
|
|
2501
|
+
declare namespace HetznerNetwork {
|
|
2502
|
+
const getBuilder: () => HetznerNetworkBuilder;
|
|
2503
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedHetznerNetworkBuilder;
|
|
2504
|
+
const create: (config: HetznerNetworkConfig) => LiveSystemComponent;
|
|
2505
|
+
}
|
|
2506
|
+
//#endregion
|
|
2507
|
+
//#region src/live_system/component/network_and_compute/iaas/hetzner_subnet.d.ts
|
|
2508
|
+
/**
|
|
2509
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
2510
|
+
* Structural properties (id, version, displayName, description, cidrBlock,
|
|
2511
|
+
* dependencies, links) are locked to the blueprint and cannot be overridden.
|
|
2512
|
+
*/
|
|
2513
|
+
type SatisfiedHetznerSubnetBuilder = {
|
|
2514
|
+
withNetworkZone: (zone: string) => SatisfiedHetznerSubnetBuilder;
|
|
2515
|
+
withType: (type: string) => SatisfiedHetznerSubnetBuilder;
|
|
2516
|
+
build: () => LiveSystemComponent;
|
|
2517
|
+
};
|
|
2518
|
+
type HetznerSubnetBuilder = {
|
|
2519
|
+
withId: (id: string) => HetznerSubnetBuilder;
|
|
2520
|
+
withVersion: (major: number, minor: number, patch: number) => HetznerSubnetBuilder;
|
|
2521
|
+
withDisplayName: (displayName: string) => HetznerSubnetBuilder;
|
|
2522
|
+
withDescription: (description: string) => HetznerSubnetBuilder;
|
|
2523
|
+
withCidrBlock: (cidrBlock: string) => HetznerSubnetBuilder;
|
|
2524
|
+
withNetworkZone: (zone: string) => HetznerSubnetBuilder;
|
|
2525
|
+
withType: (type: string) => HetznerSubnetBuilder;
|
|
2526
|
+
build: () => LiveSystemComponent;
|
|
2527
|
+
};
|
|
2528
|
+
type HetznerSubnetConfig = {
|
|
2529
|
+
id: string;
|
|
2530
|
+
version: {
|
|
2531
|
+
major: number;
|
|
2532
|
+
minor: number;
|
|
2533
|
+
patch: number;
|
|
2534
|
+
};
|
|
2535
|
+
displayName: string;
|
|
2536
|
+
description?: string;
|
|
2537
|
+
cidrBlock: string;
|
|
2538
|
+
networkZone: string;
|
|
2539
|
+
type?: string;
|
|
2540
|
+
};
|
|
2541
|
+
declare namespace HetznerSubnet {
|
|
2542
|
+
const getBuilder: () => HetznerSubnetBuilder;
|
|
2543
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedHetznerSubnetBuilder;
|
|
2544
|
+
const create: (config: HetznerSubnetConfig) => LiveSystemComponent;
|
|
2545
|
+
}
|
|
2546
|
+
//#endregion
|
|
2547
|
+
//#region src/live_system/component/network_and_compute/iaas/hetzner_firewall.d.ts
|
|
2548
|
+
/**
|
|
2549
|
+
* Returned by satisfy() — structural properties (id, version, displayName,
|
|
2550
|
+
* description, dependencies, links, ingressRules) are locked to the blueprint
|
|
2551
|
+
* and cannot be overridden.
|
|
2552
|
+
*/
|
|
2553
|
+
type SatisfiedHetznerFirewallBuilder = {
|
|
2554
|
+
build: () => LiveSystemComponent;
|
|
2555
|
+
};
|
|
2556
|
+
type HetznerFirewallBuilder = {
|
|
2557
|
+
withId: (id: string) => HetznerFirewallBuilder;
|
|
2558
|
+
withVersion: (major: number, minor: number, patch: number) => HetznerFirewallBuilder;
|
|
2559
|
+
withDisplayName: (displayName: string) => HetznerFirewallBuilder;
|
|
2560
|
+
withDescription: (description: string) => HetznerFirewallBuilder;
|
|
2561
|
+
withIngressRules: (rules: IngressRule[]) => HetznerFirewallBuilder;
|
|
2562
|
+
build: () => LiveSystemComponent;
|
|
2563
|
+
};
|
|
2564
|
+
type HetznerFirewallConfig = {
|
|
2565
|
+
id: string;
|
|
2566
|
+
version: {
|
|
2567
|
+
major: number;
|
|
2568
|
+
minor: number;
|
|
2569
|
+
patch: number;
|
|
2570
|
+
};
|
|
2571
|
+
displayName: string;
|
|
2572
|
+
description?: string;
|
|
2573
|
+
ingressRules?: IngressRule[];
|
|
2574
|
+
};
|
|
2575
|
+
declare namespace HetznerFirewall {
|
|
2576
|
+
const getBuilder: () => HetznerFirewallBuilder;
|
|
2577
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedHetznerFirewallBuilder;
|
|
2578
|
+
const create: (config: HetznerFirewallConfig) => LiveSystemComponent;
|
|
2579
|
+
}
|
|
2580
|
+
//#endregion
|
|
2581
|
+
//#region src/live_system/component/network_and_compute/iaas/hetzner_server.d.ts
|
|
2582
|
+
/**
|
|
2583
|
+
* Returned by satisfy() — only exposes vendor-specific parameters.
|
|
2584
|
+
* Structural properties (id, version, displayName, description,
|
|
2585
|
+
* dependencies, links) are locked to the blueprint and cannot be overridden.
|
|
2586
|
+
*/
|
|
2587
|
+
type SatisfiedHetznerServerBuilder = {
|
|
2588
|
+
withServerType: (serverType: string) => SatisfiedHetznerServerBuilder;
|
|
2589
|
+
withLocation: (location: string) => SatisfiedHetznerServerBuilder;
|
|
2590
|
+
withImage: (image: string) => SatisfiedHetznerServerBuilder;
|
|
2591
|
+
withSshKeys: (keys: string[]) => SatisfiedHetznerServerBuilder;
|
|
2592
|
+
withUserData: (userData: string) => SatisfiedHetznerServerBuilder;
|
|
2593
|
+
build: () => LiveSystemComponent;
|
|
2594
|
+
};
|
|
2595
|
+
type HetznerServerBuilder = {
|
|
2596
|
+
withId: (id: string) => HetznerServerBuilder;
|
|
2597
|
+
withVersion: (major: number, minor: number, patch: number) => HetznerServerBuilder;
|
|
2598
|
+
withDisplayName: (displayName: string) => HetznerServerBuilder;
|
|
2599
|
+
withDescription: (description: string) => HetznerServerBuilder;
|
|
2600
|
+
withServerType: (serverType: string) => HetznerServerBuilder;
|
|
2601
|
+
withLocation: (location: string) => HetznerServerBuilder;
|
|
2602
|
+
withImage: (image: string) => HetznerServerBuilder;
|
|
2603
|
+
withSshKeys: (keys: string[]) => HetznerServerBuilder;
|
|
2604
|
+
withUserData: (userData: string) => HetznerServerBuilder;
|
|
2605
|
+
build: () => LiveSystemComponent;
|
|
2606
|
+
};
|
|
2607
|
+
type HetznerServerConfig = {
|
|
2608
|
+
id: string;
|
|
2609
|
+
version: {
|
|
2610
|
+
major: number;
|
|
2611
|
+
minor: number;
|
|
2612
|
+
patch: number;
|
|
2613
|
+
};
|
|
2614
|
+
displayName: string;
|
|
2615
|
+
description?: string;
|
|
2616
|
+
serverType: string;
|
|
2617
|
+
location: string;
|
|
2618
|
+
image: string;
|
|
2619
|
+
sshKeys?: string[];
|
|
2620
|
+
userData?: string;
|
|
2621
|
+
};
|
|
2622
|
+
declare namespace HetznerServer {
|
|
2623
|
+
const getBuilder: () => HetznerServerBuilder;
|
|
2624
|
+
const satisfy: (blueprint: BlueprintComponent) => SatisfiedHetznerServerBuilder;
|
|
2625
|
+
const create: (config: HetznerServerConfig) => LiveSystemComponent;
|
|
2626
|
+
}
|
|
2627
|
+
//#endregion
|
|
2628
|
+
//#region src/fractal/component/network_and_compute/paas/container_platform.d.ts
|
|
2629
|
+
type ContainerPlatformNode = {
|
|
2630
|
+
readonly platform: BlueprintComponent;
|
|
2631
|
+
/**
|
|
2632
|
+
* Workload nodes with the platform dependency auto-wired into each component.
|
|
2633
|
+
* Pass these to Subnet.withWorkloads() so the subnet dep is stacked on top.
|
|
2634
|
+
*/
|
|
2635
|
+
readonly workloads: ReadonlyArray<WorkloadNode>;
|
|
2636
|
+
withWorkloads: (workloads: WorkloadNode[]) => ContainerPlatformNode;
|
|
2637
|
+
};
|
|
2638
|
+
type ContainerPlatformBuilder = {
|
|
2639
|
+
withId: (id: string) => ContainerPlatformBuilder;
|
|
2640
|
+
withVersion: (major: number, minor: number, patch: number) => ContainerPlatformBuilder;
|
|
2641
|
+
withDisplayName: (displayName: string) => ContainerPlatformBuilder;
|
|
2642
|
+
withDescription: (description: string) => ContainerPlatformBuilder;
|
|
2643
|
+
build: () => BlueprintComponent;
|
|
2644
|
+
};
|
|
2645
|
+
type ContainerPlatformConfig = {
|
|
2646
|
+
id: string;
|
|
2647
|
+
version: {
|
|
2648
|
+
major: number;
|
|
2649
|
+
minor: number;
|
|
2650
|
+
patch: number;
|
|
2651
|
+
};
|
|
2652
|
+
displayName: string;
|
|
2653
|
+
description?: string;
|
|
2654
|
+
};
|
|
2655
|
+
declare namespace ContainerPlatform {
|
|
2656
|
+
const getBuilder: () => ContainerPlatformBuilder;
|
|
2657
|
+
const create: (config: ContainerPlatformConfig) => ContainerPlatformNode;
|
|
2658
|
+
}
|
|
2659
|
+
//#endregion
|
|
2660
|
+
//#region src/live_system/component/network_and_compute/paas/ecs_cluster.d.ts
|
|
2661
|
+
/**
|
|
2662
|
+
* Returned by satisfy() — id, version, and displayName are locked from the
|
|
2663
|
+
* blueprint ContainerPlatform. No AWS-specific parameters are needed for a
|
|
2664
|
+
* basic ECS cluster, so only build() is exposed.
|
|
2665
|
+
*/
|
|
2666
|
+
type SatisfiedAwsEcsClusterBuilder = {
|
|
2667
|
+
build: () => LiveSystemComponent;
|
|
2668
|
+
};
|
|
2669
|
+
type AwsEcsClusterBuilder = {
|
|
2670
|
+
withId: (id: string) => AwsEcsClusterBuilder;
|
|
2671
|
+
withVersion: (major: number, minor: number, patch: number) => AwsEcsClusterBuilder;
|
|
2672
|
+
withDisplayName: (displayName: string) => AwsEcsClusterBuilder;
|
|
2673
|
+
withDescription: (description: string) => AwsEcsClusterBuilder;
|
|
2674
|
+
build: () => LiveSystemComponent;
|
|
2675
|
+
};
|
|
2676
|
+
type AwsEcsClusterConfig = {
|
|
2677
|
+
id: string;
|
|
2678
|
+
version: {
|
|
2679
|
+
major: number;
|
|
2680
|
+
minor: number;
|
|
2681
|
+
patch: number;
|
|
2682
|
+
};
|
|
2683
|
+
displayName: string;
|
|
2684
|
+
description?: string;
|
|
2685
|
+
};
|
|
2686
|
+
declare namespace AwsEcsCluster {
|
|
2687
|
+
const getBuilder: () => AwsEcsClusterBuilder;
|
|
2688
|
+
/**
|
|
2689
|
+
* Satisfies a blueprint ContainerPlatform component as an AWS ECS Cluster.
|
|
2690
|
+
* Carries id, version, displayName, and description from the blueprint.
|
|
2691
|
+
*/
|
|
2692
|
+
const satisfy: (platform: BlueprintComponent) => SatisfiedAwsEcsClusterBuilder;
|
|
2693
|
+
const create: (config: AwsEcsClusterConfig) => LiveSystemComponent;
|
|
2694
|
+
}
|
|
2695
|
+
//#endregion
|
|
2696
|
+
//#region src/live_system/component/network_and_compute/paas/ecs_task_definition.d.ts
|
|
2697
|
+
/**
|
|
2698
|
+
* Returned by satisfy() — blueprint params (image, port, cpu, memory) are
|
|
2699
|
+
* locked. Only IAM role ARNs and network mode can be added here.
|
|
2700
|
+
*
|
|
2701
|
+
* The component ID is derived as `${workload.id}-task` to avoid collision
|
|
2702
|
+
* with the AwsEcsService component that satisfies the same blueprint workload.
|
|
2703
|
+
*/
|
|
2704
|
+
type SatisfiedAwsEcsTaskDefinitionBuilder = {
|
|
2705
|
+
withNetworkMode: (mode: string) => SatisfiedAwsEcsTaskDefinitionBuilder;
|
|
2706
|
+
withExecutionRoleArn: (arn: string) => SatisfiedAwsEcsTaskDefinitionBuilder;
|
|
2707
|
+
withTaskRoleArn: (arn: string) => SatisfiedAwsEcsTaskDefinitionBuilder;
|
|
2708
|
+
build: () => LiveSystemComponent;
|
|
2709
|
+
};
|
|
2710
|
+
type AwsEcsTaskDefinitionBuilder = {
|
|
2711
|
+
withId: (id: string) => AwsEcsTaskDefinitionBuilder;
|
|
2712
|
+
withVersion: (major: number, minor: number, patch: number) => AwsEcsTaskDefinitionBuilder;
|
|
2713
|
+
withDisplayName: (displayName: string) => AwsEcsTaskDefinitionBuilder;
|
|
2714
|
+
withDescription: (description: string) => AwsEcsTaskDefinitionBuilder;
|
|
2715
|
+
withContainerImage: (image: string) => AwsEcsTaskDefinitionBuilder;
|
|
2716
|
+
withContainerPort: (port: number) => AwsEcsTaskDefinitionBuilder;
|
|
2717
|
+
withContainerName: (name: string) => AwsEcsTaskDefinitionBuilder;
|
|
2718
|
+
withCpu: (cpu: string) => AwsEcsTaskDefinitionBuilder;
|
|
2719
|
+
withMemory: (memory: string) => AwsEcsTaskDefinitionBuilder;
|
|
2720
|
+
withNetworkMode: (mode: string) => AwsEcsTaskDefinitionBuilder;
|
|
2721
|
+
withExecutionRoleArn: (arn: string) => AwsEcsTaskDefinitionBuilder;
|
|
2722
|
+
withTaskRoleArn: (arn: string) => AwsEcsTaskDefinitionBuilder;
|
|
2723
|
+
build: () => LiveSystemComponent;
|
|
2724
|
+
};
|
|
2725
|
+
type AwsEcsTaskDefinitionConfig = {
|
|
2726
|
+
id: string;
|
|
2727
|
+
version: {
|
|
2728
|
+
major: number;
|
|
2729
|
+
minor: number;
|
|
2730
|
+
patch: number;
|
|
2731
|
+
};
|
|
2732
|
+
displayName: string;
|
|
2733
|
+
description?: string;
|
|
2734
|
+
containerImage: string;
|
|
2735
|
+
containerPort?: number;
|
|
2736
|
+
containerName?: string;
|
|
2737
|
+
cpu?: string;
|
|
2738
|
+
memory?: string;
|
|
2739
|
+
networkMode?: string;
|
|
2740
|
+
executionRoleArn?: string;
|
|
2741
|
+
taskRoleArn?: string;
|
|
2742
|
+
};
|
|
2743
|
+
declare namespace AwsEcsTaskDefinition {
|
|
2744
|
+
const getBuilder: () => AwsEcsTaskDefinitionBuilder;
|
|
2745
|
+
/**
|
|
2746
|
+
* Satisfies a blueprint Workload component as an AWS ECS Task Definition.
|
|
2747
|
+
* The component ID is `${workload.id}-task` to avoid collision with the
|
|
2748
|
+
* AwsEcsService that satisfies the same workload.
|
|
2749
|
+
*/
|
|
2750
|
+
const satisfy: (workload: BlueprintComponent) => SatisfiedAwsEcsTaskDefinitionBuilder;
|
|
2751
|
+
const create: (config: AwsEcsTaskDefinitionConfig) => LiveSystemComponent;
|
|
2752
|
+
}
|
|
2753
|
+
//#endregion
|
|
2754
|
+
//#region src/live_system/component/network_and_compute/paas/ecs_service.d.ts
|
|
2755
|
+
/**
|
|
2756
|
+
* Returned by satisfy() — all structural properties (dependencies, links,
|
|
2757
|
+
* desiredCount) are locked from the blueprint. Only AWS-specific launch
|
|
2758
|
+
* parameters are set here.
|
|
2759
|
+
*/
|
|
2760
|
+
type SatisfiedAwsEcsServiceBuilder = {
|
|
2761
|
+
withLaunchType: (type: string) => SatisfiedAwsEcsServiceBuilder;
|
|
2762
|
+
withAssignPublicIp: (assign: boolean) => SatisfiedAwsEcsServiceBuilder;
|
|
2763
|
+
build: () => LiveSystemComponent;
|
|
2764
|
+
};
|
|
2765
|
+
type AwsEcsServiceBuilder = {
|
|
2766
|
+
withId: (id: string) => AwsEcsServiceBuilder;
|
|
2767
|
+
withVersion: (major: number, minor: number, patch: number) => AwsEcsServiceBuilder;
|
|
2768
|
+
withDisplayName: (displayName: string) => AwsEcsServiceBuilder;
|
|
2769
|
+
withDescription: (description: string) => AwsEcsServiceBuilder;
|
|
2770
|
+
withDesiredCount: (count: number) => AwsEcsServiceBuilder;
|
|
2771
|
+
withLaunchType: (type: string) => AwsEcsServiceBuilder;
|
|
2772
|
+
withAssignPublicIp: (assign: boolean) => AwsEcsServiceBuilder;
|
|
2773
|
+
build: () => LiveSystemComponent;
|
|
2774
|
+
};
|
|
2775
|
+
type AwsEcsServiceConfig = {
|
|
2776
|
+
id: string;
|
|
2777
|
+
version: {
|
|
2778
|
+
major: number;
|
|
2779
|
+
minor: number;
|
|
2780
|
+
patch: number;
|
|
2781
|
+
};
|
|
2782
|
+
displayName: string;
|
|
2783
|
+
description?: string;
|
|
2784
|
+
desiredCount?: number;
|
|
2785
|
+
launchType?: string;
|
|
2786
|
+
assignPublicIp?: boolean;
|
|
2787
|
+
};
|
|
2788
|
+
declare namespace AwsEcsService {
|
|
2789
|
+
const getBuilder: () => AwsEcsServiceBuilder;
|
|
2790
|
+
/**
|
|
2791
|
+
* Satisfies a blueprint Workload component as an AWS ECS Service.
|
|
2792
|
+
* All structural properties — dependencies (subnet, cluster), links
|
|
2793
|
+
* (traffic rules, SG membership), and desiredCount — are carried from
|
|
2794
|
+
* the blueprint unchanged. Only AWS-specific launch parameters are added here.
|
|
2795
|
+
*/
|
|
2796
|
+
const satisfy: (workload: BlueprintComponent) => SatisfiedAwsEcsServiceBuilder;
|
|
2797
|
+
const create: (config: AwsEcsServiceConfig) => LiveSystemComponent;
|
|
2798
|
+
}
|
|
2799
|
+
//#endregion
|
|
1152
2800
|
//#region src/index.d.ts
|
|
1153
2801
|
declare const BoundedContext: typeof BoundedContext$1;
|
|
1154
2802
|
type BoundedContext = BoundedContext$1;
|
|
@@ -1172,5 +2820,9 @@ declare const ServiceDeliveryModel: typeof ServiceDeliveryModel$1;
|
|
|
1172
2820
|
type ServiceDeliveryModel = ServiceDeliveryModel$1;
|
|
1173
2821
|
declare const Version: typeof Version$1;
|
|
1174
2822
|
type Version = Version$1;
|
|
2823
|
+
declare const Environment: typeof Environment$1;
|
|
2824
|
+
type Environment = Environment$1;
|
|
2825
|
+
declare const LiveSystem: typeof LiveSystem$1;
|
|
2826
|
+
type LiveSystem = LiveSystem$1;
|
|
1175
2827
|
//#endregion
|
|
1176
|
-
export { BoundedContext, Fractal, InfrastructureDomain, KebabCaseString, OwnerId, OwnerType, PascalCaseString, ServiceAccountCredentials, ServiceAccountId, ServiceDeliveryModel, Version };
|
|
2828
|
+
export { AwsEcsCluster, type AwsEcsClusterBuilder, type AwsEcsClusterConfig, AwsEcsService, type AwsEcsServiceBuilder, type AwsEcsServiceConfig, AwsEcsTaskDefinition, type AwsEcsTaskDefinitionBuilder, type AwsEcsTaskDefinitionConfig, AwsSecurityGroup, type AwsSecurityGroupBuilder, type AwsSecurityGroupConfig, AwsSubnet, type AwsSubnetBuilder, type AwsSubnetConfig, AwsVpc, type AwsVpcBuilder, type AwsVpcConfig, AzureNsg, type AzureNsgBuilder, type AzureNsgConfig, AzureSubnet, type AzureSubnetBuilder, type AzureSubnetConfig, AzureVm, type AzureVmBuilder, type AzureVmConfig, AzureVnet, type AzureVnetBuilder, type AzureVnetConfig, BoundedContext, ContainerPlatform, type ContainerPlatformBuilder, type ContainerPlatformConfig, type ContainerPlatformNode, Ec2Instance, type Ec2InstanceBuilder, type Ec2InstanceConfig, Environment, Fractal, GcpFirewall, type GcpFirewallBuilder, type GcpFirewallConfig, GcpSubnet, type GcpSubnetBuilder, type GcpSubnetConfig, GcpVm, type GcpVmBuilder, type GcpVmConfig, GcpVpc, type GcpVpcBuilder, type GcpVpcConfig, HetznerFirewall, type HetznerFirewallBuilder, type HetznerFirewallConfig, HetznerNetwork, type HetznerNetworkBuilder, type HetznerNetworkConfig, HetznerServer, type HetznerServerBuilder, type HetznerServerConfig, HetznerSubnet, type HetznerSubnetBuilder, type HetznerSubnetConfig, InfrastructureDomain, type IngressRule, KebabCaseString, LiveSystem, OciInstance, type OciInstanceBuilder, type OciInstanceConfig, OciSecurityList, type OciSecurityListBuilder, type OciSecurityListConfig, OciSubnet, type OciSubnetBuilder, type OciSubnetConfig, OciVcn, type OciVcnBuilder, type OciVcnConfig, OwnerId, OwnerType, PascalCaseString, type SatisfiedAwsEcsClusterBuilder, type SatisfiedAwsEcsServiceBuilder, type SatisfiedAwsEcsTaskDefinitionBuilder, type SatisfiedAwsSecurityGroupBuilder, type SatisfiedAwsSubnetBuilder, type SatisfiedAwsVpcBuilder, type SatisfiedAzureNsgBuilder, type SatisfiedAzureSubnetBuilder, type SatisfiedAzureVmBuilder, type SatisfiedAzureVnetBuilder, type SatisfiedEc2Builder, type SatisfiedGcpFirewallBuilder, type SatisfiedGcpSubnetBuilder, type SatisfiedGcpVmBuilder, type SatisfiedGcpVpcBuilder, type SatisfiedHetznerFirewallBuilder, type SatisfiedHetznerNetworkBuilder, type SatisfiedHetznerServerBuilder, type SatisfiedHetznerSubnetBuilder, type SatisfiedOciInstanceBuilder, type SatisfiedOciSecurityListBuilder, type SatisfiedOciSubnetBuilder, type SatisfiedOciVcnBuilder, SecurityGroup, type SecurityGroupBuilder, type SecurityGroupConfig, ServiceAccountCredentials, ServiceAccountId, ServiceDeliveryModel, Subnet, type SubnetBuilder, type SubnetConfig, type SubnetNode, type SubnetResult, Version, VirtualMachine, type VirtualMachineBuilder, type VirtualMachineConfig, type VirtualMachineNode, VirtualNetwork, type VirtualNetworkBuilder, type VirtualNetworkConfig, type VirtualNetworkNode, type VirtualNetworkResult, type VmPortLink, Workload, type WorkloadBuilder, type WorkloadConfig, type WorkloadNode, type WorkloadPortLink };
|