-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtenantVariable.ts
40 lines (35 loc) Β· 1.3 KB
/
tenantVariable.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import type { ControlType } from "../forms/controlType";
import type { PropertyValue } from "../variables/propertyValue";
import { SpaceScopedResource } from "../../spaceScopedResource";
import { NamedResource } from "../../namedResource";
export interface TenantVariableTemplateDisplaySettings {
"Octopus.SelectOptions"?: string;
"Octopus.ControlType"?: ControlType;
}
export interface TenantVariableTemplate extends SpaceScopedResource, NamedResource {
Label: string;
HelpText: string;
DefaultValue?: PropertyValue;
DisplaySettings: TenantVariableTemplateDisplaySettings;
AllowClear?: boolean;
}
export interface TenantVariable extends SpaceScopedResource {
TenantId: string;
TenantName: string;
LibraryVariables: { [libraryVariableSetId: string]: TenantLibraryVariable };
ProjectVariables: { [projectId: string]: TenantProjectVariable };
}
export interface TenantLibraryVariable {
LibraryVariableSetId: string;
LibraryVariableSetName: string;
Templates: TenantVariableTemplate[];
Variables: { [variableId: string]: PropertyValue };
}
export interface TenantProjectVariable {
ProjectId: string;
ProjectName: string;
Templates: TenantVariableTemplate[];
Variables: {
[environmentId: string]: { [variableId: string]: PropertyValue };
};
}