Skip to content

Commit 2ee0b5b

Browse files
committed
Add datasets to AuthorizedMimeTypes and remove unused properties
Delete unused properties (`images`, `containers`, `useGraphModule`, and redundant `PageSizing` fields) Added `datasets` to `AuthorizedMimeTypes` in `CsmPlatformProperties` to improve clarity and reduce complexity.
1 parent f0e9136 commit 2ee0b5b

File tree

1 file changed

+3
-29
lines changed

1 file changed

+3
-29
lines changed

src/main/kotlin/com/cosmotech/api/config/CsmPlatformProperties.kt

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -184,28 +184,6 @@ data class CsmPlatformProperties(
184184
)
185185
}
186186

187-
data class CsmImages(
188-
/** Container image to fetch Scenario Parameters */
189-
val scenarioFetchParameters: String,
190-
191-
/** Container image to send data to DataWarehouse */
192-
val sendDataWarehouse: String,
193-
)
194-
195-
data class CsmContainers(
196-
/** Container name */
197-
val name: String,
198-
199-
/** Image registry (default: "") */
200-
val imageRegistry: String = "",
201-
202-
/** Image name */
203-
val imageName: String,
204-
205-
/** Image version (default: latest) */
206-
val imageVersion: String = "latest",
207-
)
208-
209187
data class S3(
210188
/** Endpoint URL */
211189
val endpointUrl: String = "http://localhost:9000",
@@ -418,9 +396,6 @@ data class CsmPlatformProperties(
418396
/** Twin cache query page information for runner */
419397
val runner: PageSizing = PageSizing(),
420398

421-
/** Twin cache query page information for connector */
422-
val connector: PageSizing = PageSizing(),
423-
424399
/** Twin cache query page information for dataset */
425400
val dataset: PageSizing = PageSizing(),
426401

@@ -431,10 +406,7 @@ data class CsmPlatformProperties(
431406
val solution: PageSizing = PageSizing(),
432407

433408
/** TLS Platform bundle config */
434-
val tls: TLSConfig = TLSConfig(),
435-
436-
/** Use Graph module */
437-
val useGraphModule: Boolean = true
409+
val tls: TLSConfig = TLSConfig()
438410
) {
439411

440412
data class PageSizing(
@@ -455,6 +427,8 @@ data class CsmPlatformProperties(
455427
data class AuthorizedMimeTypes(
456428
/** List of authorized mime types for workspace file upload */
457429
val workspaces: List<String> = emptyList(),
430+
/** List of authorized mime types for dataset file upload */
431+
val datasets: List<String> = emptyList(),
458432
)
459433
}
460434

0 commit comments

Comments
 (0)