-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDeployWorkspaceProjectContext.ts
More file actions
29 lines (26 loc) · 1.78 KB
/
DeployWorkspaceProjectContext.ts
File metadata and controls
29 lines (26 loc) · 1.78 KB
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
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.md in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { type ExecuteActivityContext } from "@microsoft/vscode-azext-utils";
import { type SetTelemetryProps } from "../../telemetry/SetTelemetryProps";
import { type DeployWorkspaceProjectTelemetryProps as TelemetryProps } from "../../telemetry/commandTelemetryProps";
import { type IContainerAppContext } from "../IContainerAppContext";
import { type CreateContainerAppBaseContext } from "../createContainerApp/CreateContainerAppContext";
import { type IManagedEnvironmentContext } from "../createManagedEnvironment/IManagedEnvironmentContext";
import { type BuildImageInAzureImageSourceBaseContext } from "../image/imageSource/buildImageInAzure/BuildImageInAzureImageSourceContext";
import { type CreateAcrContext } from "../image/imageSource/containerRegistry/acr/createAcr/CreateAcrContext";
// Use intersection typing instead of an interface here to bypass some minor (relatively trivial) type mismatch issues introduced by having to use the 'Partial' utility
export type DeployWorkspaceProjectContext =
IContainerAppContext &
Partial<IManagedEnvironmentContext> &
Partial<CreateContainerAppBaseContext> &
Partial<CreateAcrContext> &
Partial<BuildImageInAzureImageSourceBaseContext> &
Partial<ExecuteActivityContext> &
DeployWorkspaceProjectTelemetryProps &
{
ignoreExistingDeploySettings?: boolean;
shouldSaveDeploySettings?: boolean;
};
type DeployWorkspaceProjectTelemetryProps = SetTelemetryProps<TelemetryProps>;