|
84 | 84 | "autoRestartOnFetch": { |
85 | 85 | "type": "boolean", |
86 | 86 | "description": "Whether to automatically restart the service when new commits are fetched" |
| 87 | + }, |
| 88 | + "environmentVariableOverrides": { |
| 89 | + "type": "object", |
| 90 | + "additionalProperties": { |
| 91 | + "$ref": "#/definitions/EnvironmentVariableValue" |
| 92 | + }, |
| 93 | + "description": "Per-service environment variable overrides, keyed by variable name. Overrides stack-level defaults." |
87 | 94 | } |
88 | 95 | }, |
89 | | - "required": ["serviceId", "autoFetchEnabled", "autoFetchIntervalMinutes", "autoRestartOnFetch"], |
| 96 | + "required": [ |
| 97 | + "serviceId", |
| 98 | + "autoFetchEnabled", |
| 99 | + "autoFetchIntervalMinutes", |
| 100 | + "autoRestartOnFetch", |
| 101 | + "environmentVariableOverrides" |
| 102 | + ], |
90 | 103 | "additionalProperties": false |
91 | 104 | }, |
| 105 | + "EnvironmentVariableValue": { |
| 106 | + "type": "object", |
| 107 | + "properties": { |
| 108 | + "source": { |
| 109 | + "type": "string", |
| 110 | + "enum": ["inherit", "custom"], |
| 111 | + "description": "Whether to inherit the value from the host system or use a custom value" |
| 112 | + }, |
| 113 | + "customValue": { |
| 114 | + "type": "string", |
| 115 | + "description": "The custom value to use when source is 'custom'" |
| 116 | + } |
| 117 | + }, |
| 118 | + "required": ["source"], |
| 119 | + "additionalProperties": false, |
| 120 | + "description": "Describes how an environment variable's value is resolved. Used in {@link StackConfig } for stack-level defaults and in {@link ServiceConfig } for per-service overrides." |
| 121 | + }, |
92 | 122 | "ServiceWritableFields": { |
93 | 123 | "type": "object", |
94 | 124 | "additionalProperties": false, |
|
105 | 135 | "type": "boolean", |
106 | 136 | "description": "Whether to automatically restart the service when new commits are fetched" |
107 | 137 | }, |
| 138 | + "environmentVariableOverrides": { |
| 139 | + "type": "object", |
| 140 | + "additionalProperties": { |
| 141 | + "$ref": "#/definitions/EnvironmentVariableValue" |
| 142 | + }, |
| 143 | + "description": "Per-service environment variable overrides, keyed by variable name. Overrides stack-level defaults." |
| 144 | + }, |
108 | 145 | "id": { |
109 | 146 | "type": "string", |
110 | 147 | "description": "UUID primary key" |
|
162 | 199 | "autoRestartOnFetch", |
163 | 200 | "description", |
164 | 201 | "displayName", |
| 202 | + "environmentVariableOverrides", |
165 | 203 | "id", |
166 | 204 | "prerequisiteIds", |
167 | 205 | "prerequisiteServiceIds", |
|
232 | 270 | "type": "boolean", |
233 | 271 | "description": "Whether to automatically restart the service when new commits are fetched" |
234 | 272 | }, |
| 273 | + "environmentVariableOverrides": { |
| 274 | + "type": "object", |
| 275 | + "additionalProperties": { |
| 276 | + "$ref": "#/definitions/EnvironmentVariableValue" |
| 277 | + }, |
| 278 | + "description": "Per-service environment variable overrides, keyed by variable name. Overrides stack-level defaults." |
| 279 | + }, |
235 | 280 | "createdAt": { |
236 | 281 | "type": "string" |
237 | 282 | }, |
|
295 | 340 | "createdAt", |
296 | 341 | "description", |
297 | 342 | "displayName", |
| 343 | + "environmentVariableOverrides", |
298 | 344 | "id", |
299 | 345 | "installStatus", |
300 | 346 | "prerequisiteIds", |
|
388 | 434 | "autoRestartOnFetch": { |
389 | 435 | "type": "boolean", |
390 | 436 | "description": "Whether to automatically restart the service when new commits are fetched" |
| 437 | + }, |
| 438 | + "environmentVariableOverrides": { |
| 439 | + "type": "object", |
| 440 | + "additionalProperties": { |
| 441 | + "$ref": "#/definitions/EnvironmentVariableValue" |
| 442 | + }, |
| 443 | + "description": "Per-service environment variable overrides, keyed by variable name. Overrides stack-level defaults." |
391 | 444 | } |
392 | 445 | }, |
393 | 446 | "required": [ |
|
396 | 449 | "autoRestartOnFetch", |
397 | 450 | "description", |
398 | 451 | "displayName", |
| 452 | + "environmentVariableOverrides", |
399 | 453 | "prerequisiteIds", |
400 | 454 | "prerequisiteServiceIds", |
401 | 455 | "runCommand", |
|
472 | 526 | "autoRestartOnFetch": { |
473 | 527 | "type": "boolean", |
474 | 528 | "description": "Whether to automatically restart the service when new commits are fetched" |
| 529 | + }, |
| 530 | + "environmentVariableOverrides": { |
| 531 | + "type": "object", |
| 532 | + "additionalProperties": { |
| 533 | + "$ref": "#/definitions/EnvironmentVariableValue" |
| 534 | + }, |
| 535 | + "description": "Per-service environment variable overrides, keyed by variable name. Overrides stack-level defaults." |
475 | 536 | } |
476 | 537 | }, |
477 | 538 | "additionalProperties": false |
|
917 | 978 | "type": "object", |
918 | 979 | "properties": { |
919 | 980 | "findOptions": { |
920 | | - "$ref": "#/definitions/FindOptions%3CServiceView%2C(%22id%22%7C%22stackName%22%7C%22displayName%22%7C%22description%22%7C%22workingDirectory%22%7C%22repositoryId%22%7C%22prerequisiteIds%22%7C%22prerequisiteServiceIds%22%7C%22installCommand%22%7C%22buildCommand%22%7C%22runCommand%22%7C%22createdAt%22%7C%22updatedAt%22%7C%22serviceId%22%7C%22autoFetchEnabled%22%7C%22autoFetchIntervalMinutes%22%7C%22autoRestartOnFetch%22%7C%22cloneStatus%22%7C%22installStatus%22%7C%22buildStatus%22%7C%22runStatus%22%7C%22lastClonedAt%22%7C%22lastInstalledAt%22%7C%22lastBuiltAt%22%7C%22lastStartedAt%22%7C%22lastFetchedAt%22)%5B%5D%3E" |
| 981 | + "$ref": "#/definitions/FindOptions%3CServiceView%2C(%22id%22%7C%22stackName%22%7C%22displayName%22%7C%22description%22%7C%22workingDirectory%22%7C%22repositoryId%22%7C%22prerequisiteIds%22%7C%22prerequisiteServiceIds%22%7C%22installCommand%22%7C%22buildCommand%22%7C%22runCommand%22%7C%22createdAt%22%7C%22updatedAt%22%7C%22serviceId%22%7C%22autoFetchEnabled%22%7C%22autoFetchIntervalMinutes%22%7C%22autoRestartOnFetch%22%7C%22environmentVariableOverrides%22%7C%22cloneStatus%22%7C%22installStatus%22%7C%22buildStatus%22%7C%22runStatus%22%7C%22lastClonedAt%22%7C%22lastInstalledAt%22%7C%22lastBuiltAt%22%7C%22lastStartedAt%22%7C%22lastFetchedAt%22)%5B%5D%3E" |
921 | 982 | } |
922 | 983 | }, |
923 | 984 | "additionalProperties": false |
|
930 | 991 | "additionalProperties": false, |
931 | 992 | "description": "Rest endpoint model for getting / querying collections" |
932 | 993 | }, |
933 | | - "FindOptions<ServiceView,(\"id\"|\"stackName\"|\"displayName\"|\"description\"|\"workingDirectory\"|\"repositoryId\"|\"prerequisiteIds\"|\"prerequisiteServiceIds\"|\"installCommand\"|\"buildCommand\"|\"runCommand\"|\"createdAt\"|\"updatedAt\"|\"serviceId\"|\"autoFetchEnabled\"|\"autoFetchIntervalMinutes\"|\"autoRestartOnFetch\"|\"cloneStatus\"|\"installStatus\"|\"buildStatus\"|\"runStatus\"|\"lastClonedAt\"|\"lastInstalledAt\"|\"lastBuiltAt\"|\"lastStartedAt\"|\"lastFetchedAt\")[]>": { |
| 994 | + "FindOptions<ServiceView,(\"id\"|\"stackName\"|\"displayName\"|\"description\"|\"workingDirectory\"|\"repositoryId\"|\"prerequisiteIds\"|\"prerequisiteServiceIds\"|\"installCommand\"|\"buildCommand\"|\"runCommand\"|\"createdAt\"|\"updatedAt\"|\"serviceId\"|\"autoFetchEnabled\"|\"autoFetchIntervalMinutes\"|\"autoRestartOnFetch\"|\"environmentVariableOverrides\"|\"cloneStatus\"|\"installStatus\"|\"buildStatus\"|\"runStatus\"|\"lastClonedAt\"|\"lastInstalledAt\"|\"lastBuiltAt\"|\"lastStartedAt\"|\"lastFetchedAt\")[]>": { |
934 | 995 | "type": "object", |
935 | 996 | "properties": { |
936 | 997 | "top": { |
|
1012 | 1073 | "type": "string", |
1013 | 1074 | "enum": ["ASC", "DESC"] |
1014 | 1075 | }, |
| 1076 | + "environmentVariableOverrides": { |
| 1077 | + "type": "string", |
| 1078 | + "enum": ["ASC", "DESC"] |
| 1079 | + }, |
1015 | 1080 | "cloneStatus": { |
1016 | 1081 | "type": "string", |
1017 | 1082 | "enum": ["ASC", "DESC"] |
|
1074 | 1139 | "autoFetchEnabled", |
1075 | 1140 | "autoFetchIntervalMinutes", |
1076 | 1141 | "autoRestartOnFetch", |
| 1142 | + "environmentVariableOverrides", |
1077 | 1143 | "cloneStatus", |
1078 | 1144 | "installStatus", |
1079 | 1145 | "buildStatus", |
|
2031 | 2097 | } |
2032 | 2098 | ] |
2033 | 2099 | }, |
| 2100 | + "environmentVariableOverrides": { |
| 2101 | + "anyOf": [ |
| 2102 | + { |
| 2103 | + "type": "object", |
| 2104 | + "properties": { |
| 2105 | + "$eq": { |
| 2106 | + "type": "object", |
| 2107 | + "additionalProperties": { |
| 2108 | + "$ref": "#/definitions/EnvironmentVariableValue" |
| 2109 | + }, |
| 2110 | + "description": "Per-service environment variable overrides, keyed by variable name. Overrides stack-level defaults." |
| 2111 | + }, |
| 2112 | + "$ne": { |
| 2113 | + "type": "object", |
| 2114 | + "additionalProperties": { |
| 2115 | + "$ref": "#/definitions/EnvironmentVariableValue" |
| 2116 | + }, |
| 2117 | + "description": "Per-service environment variable overrides, keyed by variable name. Overrides stack-level defaults." |
| 2118 | + } |
| 2119 | + }, |
| 2120 | + "additionalProperties": false |
| 2121 | + }, |
| 2122 | + { |
| 2123 | + "type": "object", |
| 2124 | + "properties": { |
| 2125 | + "$in": { |
| 2126 | + "type": "array", |
| 2127 | + "items": { |
| 2128 | + "type": "object", |
| 2129 | + "additionalProperties": { |
| 2130 | + "$ref": "#/definitions/EnvironmentVariableValue" |
| 2131 | + }, |
| 2132 | + "description": "Per-service environment variable overrides, keyed by variable name. Overrides stack-level defaults." |
| 2133 | + } |
| 2134 | + }, |
| 2135 | + "$nin": { |
| 2136 | + "type": "array", |
| 2137 | + "items": { |
| 2138 | + "type": "object", |
| 2139 | + "additionalProperties": { |
| 2140 | + "$ref": "#/definitions/EnvironmentVariableValue" |
| 2141 | + }, |
| 2142 | + "description": "Per-service environment variable overrides, keyed by variable name. Overrides stack-level defaults." |
| 2143 | + } |
| 2144 | + } |
| 2145 | + }, |
| 2146 | + "additionalProperties": false |
| 2147 | + } |
| 2148 | + ] |
| 2149 | + }, |
2034 | 2150 | "cloneStatus": { |
2035 | 2151 | "anyOf": [ |
2036 | 2152 | { |
|
2528 | 2644 | "autoFetchEnabled", |
2529 | 2645 | "autoFetchIntervalMinutes", |
2530 | 2646 | "autoRestartOnFetch", |
| 2647 | + "environmentVariableOverrides", |
2531 | 2648 | "cloneStatus", |
2532 | 2649 | "installStatus", |
2533 | 2650 | "buildStatus", |
|
0 commit comments