-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathvscode-azurecontainerapps.api.d.ts
More file actions
50 lines (43 loc) · 1.75 KB
/
vscode-azurecontainerapps.api.d.ts
File metadata and controls
50 lines (43 loc) · 1.75 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export interface AzureContainerAppsExtensionApi {
apiVersion: string;
deployImage(options: DeployImageToAcaOptionsContract): Promise<void>;
deployWorkspaceProject(options: DeployWorkspaceProjectOptionsContract): Promise<DeployWorkspaceProjectResults>;
}
// The interface of the command options passed to the Azure Container Apps extension's deployImageToAca command
// This interface is shared with the Docker extension (https://github.com/microsoft/vscode-docker)
export interface DeployImageToAcaOptionsContract {
image: string;
registryName: string;
username?: string;
secret?: string;
}
export interface DeployWorkspaceProjectOptionsContract {
// Existing resources
subscriptionId?: string;
resourceGroupId?: string;
location?: string;
// Workspace deployment paths (absolute fs path)
rootPath?: string;
srcPath?: string;
dockerfilePath?: string;
// Options
suppressConfirmation?: boolean; // Suppress any [resource] confirmation prompts
suppressContainerAppCreation?: boolean;
shouldSaveDeploySettings?: boolean;
}
export interface DeployWorkspaceProjectResults {
resourceGroupId?: string;
logAnalyticsWorkspaceId?: string;
managedEnvironmentId?: string;
containerAppId?: string;
// ACR
registryId?: string;
registryLoginServer?: string;
registryUsername?: string;
registryPassword?: string;
imageName?: string;
}