@azure/arm-containerinstance 9.1.0-beta.1 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/README.md +1 -1
- package/dist/index.js +145 -42
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js +10 -6
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/containerGroupsGetSample.js +3 -3
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/containerGroupsListSample.js +1 -1
- package/dist-esm/samples-dev/containerGroupsRestartSample.js +1 -1
- package/dist-esm/samples-dev/containerGroupsStartSample.js +1 -1
- package/dist-esm/samples-dev/containerGroupsStopSample.js +1 -1
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/containersAttachSample.js +1 -1
- package/dist-esm/samples-dev/containersExecuteCommandSample.js +1 -1
- package/dist-esm/samples-dev/containersListLogsSample.js +1 -1
- package/dist-esm/samples-dev/locationListCachedImagesSample.js +1 -1
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js +1 -1
- package/dist-esm/samples-dev/locationListUsageSample.js +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js +1 -1
- package/dist-esm/src/containerInstanceManagementClient.js +2 -2
- package/dist-esm/src/containerInstanceManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +26 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +2 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +89 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +1 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/containerGroups.d.ts +5 -5
- package/dist-esm/src/operations/containerGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/containerGroups.js +34 -18
- package/dist-esm/src/operations/containerGroups.js.map +1 -1
- package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts +2 -2
- package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts.map +1 -1
- package/dist-esm/src/operations/subnetServiceAssociationLink.js +10 -6
- package/dist-esm/src/operations/subnetServiceAssociationLink.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts.map +1 -1
- package/package.json +9 -9
- package/review/arm-containerinstance.api.md +25 -7
- package/src/containerInstanceManagementClient.ts +2 -2
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +28 -0
- package/src/models/mappers.ts +91 -0
- package/src/models/parameters.ts +1 -1
- package/src/operations/containerGroups.ts +50 -40
- package/src/operations/subnetServiceAssociationLink.ts +15 -11
- package/src/operationsInterfaces/containerGroups.ts +7 -7
- package/src/operationsInterfaces/subnetServiceAssociationLink.ts +2 -2
- package/types/arm-containerinstance.d.ts +35 -7
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import {
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
3
|
import { ContainerGroup, ContainerGroupsListOptionalParams, ContainerGroupsListByResourceGroupOptionalParams, ContainerGroupsGetOptionalParams, ContainerGroupsGetResponse, ContainerGroupsCreateOrUpdateOptionalParams, ContainerGroupsCreateOrUpdateResponse, Resource, ContainerGroupsUpdateOptionalParams, ContainerGroupsUpdateResponse, ContainerGroupsDeleteOptionalParams, ContainerGroupsDeleteResponse, ContainerGroupsRestartOptionalParams, ContainerGroupsStopOptionalParams, ContainerGroupsStartOptionalParams, ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams, ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse } from "../models";
|
|
4
4
|
/** Interface representing a ContainerGroups. */
|
|
5
5
|
export interface ContainerGroups {
|
|
@@ -34,7 +34,7 @@ export interface ContainerGroups {
|
|
|
34
34
|
* @param containerGroup The properties of the container group to be created or updated.
|
|
35
35
|
* @param options The options parameters.
|
|
36
36
|
*/
|
|
37
|
-
beginCreateOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: ContainerGroup, options?: ContainerGroupsCreateOrUpdateOptionalParams): Promise<
|
|
37
|
+
beginCreateOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: ContainerGroup, options?: ContainerGroupsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ContainerGroupsCreateOrUpdateResponse>, ContainerGroupsCreateOrUpdateResponse>>;
|
|
38
38
|
/**
|
|
39
39
|
* Create or update container groups with specified configurations.
|
|
40
40
|
* @param resourceGroupName The name of the resource group.
|
|
@@ -58,7 +58,7 @@ export interface ContainerGroups {
|
|
|
58
58
|
* @param containerGroupName The name of the container group.
|
|
59
59
|
* @param options The options parameters.
|
|
60
60
|
*/
|
|
61
|
-
beginDelete(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsDeleteOptionalParams): Promise<
|
|
61
|
+
beginDelete(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<ContainerGroupsDeleteResponse>, ContainerGroupsDeleteResponse>>;
|
|
62
62
|
/**
|
|
63
63
|
* Delete the specified container group in the specified subscription and resource group. The operation
|
|
64
64
|
* does not delete other resources provided by the user, such as volumes.
|
|
@@ -74,7 +74,7 @@ export interface ContainerGroups {
|
|
|
74
74
|
* @param containerGroupName The name of the container group.
|
|
75
75
|
* @param options The options parameters.
|
|
76
76
|
*/
|
|
77
|
-
beginRestart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsRestartOptionalParams): Promise<
|
|
77
|
+
beginRestart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsRestartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
78
78
|
/**
|
|
79
79
|
* Restarts all containers in a container group in place. If container image has updates, new image
|
|
80
80
|
* will be downloaded.
|
|
@@ -98,7 +98,7 @@ export interface ContainerGroups {
|
|
|
98
98
|
* @param containerGroupName The name of the container group.
|
|
99
99
|
* @param options The options parameters.
|
|
100
100
|
*/
|
|
101
|
-
beginStart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsStartOptionalParams): Promise<
|
|
101
|
+
beginStart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsStartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
102
102
|
/**
|
|
103
103
|
* Starts all containers in a container group. Compute resources will be allocated and billing will
|
|
104
104
|
* start.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerGroups.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/containerGroups.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"containerGroups.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/containerGroups.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAA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,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,kCAAkC,GAC3C,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;;OAMG;IACH,uCAAuC,CACrC,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,OAAO,CAAC,EAAE,oEAAoE,GAC7E,OAAO,CAAC,8DAA8D,CAAC,CAAC;CAC5E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
2
2
|
import { SubnetServiceAssociationLinkDeleteOptionalParams } from "../models";
|
|
3
3
|
/** Interface representing a SubnetServiceAssociationLink. */
|
|
4
4
|
export interface SubnetServiceAssociationLink {
|
|
@@ -10,7 +10,7 @@ export interface SubnetServiceAssociationLink {
|
|
|
10
10
|
* @param subnetName The name of the subnet.
|
|
11
11
|
* @param options The options parameters.
|
|
12
12
|
*/
|
|
13
|
-
beginDelete(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<
|
|
13
|
+
beginDelete(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
14
14
|
/**
|
|
15
15
|
* Delete container group virtual network association links. The operation does not delete other
|
|
16
16
|
* resources provided by the user.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subnetServiceAssociationLink.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subnetServiceAssociationLink.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"subnetServiceAssociationLink.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/subnetServiceAssociationLink.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,gDAAgD,EAAE,MAAM,WAAW,CAAC;AAE7E,6DAA6D;AAC7D,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;OAOG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,gBAAgB,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACzD;;;;;;;OAOG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,kBAAkB,EAAE,MAAM,EAC1B,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,gDAAgD,GACzD,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
package/package.json
CHANGED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for ContainerInstanceManagementClient.",
|
|
6
|
-
"version": "9.1.0
|
|
6
|
+
"version": "9.1.0",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@azure/core-lro": "^2.
|
|
11
|
+
"@azure/core-lro": "^2.5.0",
|
|
12
12
|
"@azure/abort-controller": "^1.0.0",
|
|
13
13
|
"@azure/core-paging": "^1.2.0",
|
|
14
|
-
"@azure/core-client": "^1.
|
|
14
|
+
"@azure/core-client": "^1.7.0",
|
|
15
15
|
"@azure/core-auth": "^1.3.0",
|
|
16
16
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
17
17
|
"tslib": "^2.2.0"
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
"types": "./types/arm-containerinstance.d.ts",
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@microsoft/api-extractor": "^7.31.1",
|
|
32
|
-
"@rollup/plugin-commonjs": "^
|
|
33
|
-
"@rollup/plugin-json": "^
|
|
34
|
-
"@rollup/plugin-multi-entry": "^
|
|
32
|
+
"@rollup/plugin-commonjs": "^24.0.0",
|
|
33
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
34
|
+
"@rollup/plugin-multi-entry": "^6.0.0",
|
|
35
35
|
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
36
|
-
"mkdirp": "^1.
|
|
36
|
+
"mkdirp": "^2.1.2",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
39
|
"typescript": "~4.8.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
|
-
"dotenv": "^
|
|
42
|
+
"dotenv": "^16.0.0",
|
|
43
43
|
"@azure/identity": "^2.0.1",
|
|
44
|
-
"@azure-tools/test-recorder": "^
|
|
44
|
+
"@azure-tools/test-recorder": "^3.0.0",
|
|
45
45
|
"@azure-tools/test-credential": "^1.0.0",
|
|
46
46
|
"mocha": "^7.1.1",
|
|
47
47
|
"@types/chai": "^4.2.8",
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import * as coreAuth from '@azure/core-auth';
|
|
8
8
|
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { OperationState } from '@azure/core-lro';
|
|
9
10
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
-
import {
|
|
11
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
12
12
|
|
|
13
13
|
// @public
|
|
14
14
|
export interface AzureFileVolume {
|
|
@@ -82,6 +82,7 @@ export interface Container {
|
|
|
82
82
|
ports?: ContainerPort[];
|
|
83
83
|
readinessProbe?: ContainerProbe;
|
|
84
84
|
resources: ResourceRequirements;
|
|
85
|
+
securityContext?: SecurityContextDefinition;
|
|
85
86
|
volumeMounts?: VolumeMount[];
|
|
86
87
|
}
|
|
87
88
|
|
|
@@ -181,13 +182,13 @@ export type ContainerGroupRestartPolicy = string;
|
|
|
181
182
|
|
|
182
183
|
// @public
|
|
183
184
|
export interface ContainerGroups {
|
|
184
|
-
beginCreateOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: ContainerGroup, options?: ContainerGroupsCreateOrUpdateOptionalParams): Promise<
|
|
185
|
+
beginCreateOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: ContainerGroup, options?: ContainerGroupsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ContainerGroupsCreateOrUpdateResponse>, ContainerGroupsCreateOrUpdateResponse>>;
|
|
185
186
|
beginCreateOrUpdateAndWait(resourceGroupName: string, containerGroupName: string, containerGroup: ContainerGroup, options?: ContainerGroupsCreateOrUpdateOptionalParams): Promise<ContainerGroupsCreateOrUpdateResponse>;
|
|
186
|
-
beginDelete(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsDeleteOptionalParams): Promise<
|
|
187
|
+
beginDelete(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<ContainerGroupsDeleteResponse>, ContainerGroupsDeleteResponse>>;
|
|
187
188
|
beginDeleteAndWait(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsDeleteOptionalParams): Promise<ContainerGroupsDeleteResponse>;
|
|
188
|
-
beginRestart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsRestartOptionalParams): Promise<
|
|
189
|
+
beginRestart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsRestartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
189
190
|
beginRestartAndWait(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsRestartOptionalParams): Promise<void>;
|
|
190
|
-
beginStart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsStartOptionalParams): Promise<
|
|
191
|
+
beginStart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsStartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
191
192
|
beginStartAndWait(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsStartOptionalParams): Promise<void>;
|
|
192
193
|
get(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsGetOptionalParams): Promise<ContainerGroupsGetResponse>;
|
|
193
194
|
getOutboundNetworkDependenciesEndpoints(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsGetOutboundNetworkDependenciesEndpointsOptionalParams): Promise<ContainerGroupsGetOutboundNetworkDependenciesEndpointsResponse>;
|
|
@@ -483,6 +484,7 @@ export interface InitContainerDefinition {
|
|
|
483
484
|
image?: string;
|
|
484
485
|
readonly instanceView?: InitContainerPropertiesDefinitionInstanceView;
|
|
485
486
|
name: string;
|
|
487
|
+
securityContext?: SecurityContextDefinition;
|
|
486
488
|
volumeMounts?: VolumeMount[];
|
|
487
489
|
}
|
|
488
490
|
|
|
@@ -732,9 +734,25 @@ export interface ResourceRequirements {
|
|
|
732
734
|
// @public
|
|
733
735
|
export type Scheme = string;
|
|
734
736
|
|
|
737
|
+
// @public
|
|
738
|
+
export interface SecurityContextCapabilitiesDefinition {
|
|
739
|
+
add?: string[];
|
|
740
|
+
drop?: string[];
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
// @public
|
|
744
|
+
export interface SecurityContextDefinition {
|
|
745
|
+
allowPrivilegeEscalation?: boolean;
|
|
746
|
+
capabilities?: SecurityContextCapabilitiesDefinition;
|
|
747
|
+
privileged?: boolean;
|
|
748
|
+
runAsGroup?: number;
|
|
749
|
+
runAsUser?: number;
|
|
750
|
+
seccompProfile?: string;
|
|
751
|
+
}
|
|
752
|
+
|
|
735
753
|
// @public
|
|
736
754
|
export interface SubnetServiceAssociationLink {
|
|
737
|
-
beginDelete(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<
|
|
755
|
+
beginDelete(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
738
756
|
beginDeleteAndWait(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<void>;
|
|
739
757
|
}
|
|
740
758
|
|
|
@@ -63,7 +63,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
63
63
|
credential: credentials
|
|
64
64
|
};
|
|
65
65
|
|
|
66
|
-
const packageDetails = `azsdk-js-arm-containerinstance/9.1.0
|
|
66
|
+
const packageDetails = `azsdk-js-arm-containerinstance/9.1.0`;
|
|
67
67
|
const userAgentPrefix =
|
|
68
68
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
69
69
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -116,7 +116,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
116
116
|
|
|
117
117
|
// Assigning values to Constant parameters
|
|
118
118
|
this.$host = options.$host || "https://management.azure.com";
|
|
119
|
-
this.apiVersion = options.apiVersion || "
|
|
119
|
+
this.apiVersion = options.apiVersion || "2023-05-01";
|
|
120
120
|
this.containerGroups = new ContainerGroupsImpl(this);
|
|
121
121
|
this.operations = new OperationsImpl(this);
|
|
122
122
|
this.location = new LocationImpl(this);
|
package/src/lroImpl.ts
CHANGED
|
@@ -6,29 +6,37 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
9
13
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
14
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...restSpec
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
34
42
|
}
|
package/src/models/index.ts
CHANGED
|
@@ -150,6 +150,8 @@ export interface Container {
|
|
|
150
150
|
livenessProbe?: ContainerProbe;
|
|
151
151
|
/** The readiness probe. */
|
|
152
152
|
readinessProbe?: ContainerProbe;
|
|
153
|
+
/** The container security properties. */
|
|
154
|
+
securityContext?: SecurityContextDefinition;
|
|
153
155
|
}
|
|
154
156
|
|
|
155
157
|
/** The port exposed on the container instance. */
|
|
@@ -347,6 +349,30 @@ export interface HttpHeader {
|
|
|
347
349
|
value?: string;
|
|
348
350
|
}
|
|
349
351
|
|
|
352
|
+
/** The security context for the container. */
|
|
353
|
+
export interface SecurityContextDefinition {
|
|
354
|
+
/** The flag to determine if the container permissions is elevated to Privileged. */
|
|
355
|
+
privileged?: boolean;
|
|
356
|
+
/** A boolean value indicating whether the init process can elevate its privileges */
|
|
357
|
+
allowPrivilegeEscalation?: boolean;
|
|
358
|
+
/** The capabilities to add or drop from a container. */
|
|
359
|
+
capabilities?: SecurityContextCapabilitiesDefinition;
|
|
360
|
+
/** Sets the User GID for the container. */
|
|
361
|
+
runAsGroup?: number;
|
|
362
|
+
/** Sets the User UID for the container. */
|
|
363
|
+
runAsUser?: number;
|
|
364
|
+
/** a base64 encoded string containing the contents of the JSON in the seccomp profile */
|
|
365
|
+
seccompProfile?: string;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/** The capabilities to add or drop from a container. */
|
|
369
|
+
export interface SecurityContextCapabilitiesDefinition {
|
|
370
|
+
/** The capabilities to add to the container. */
|
|
371
|
+
add?: string[];
|
|
372
|
+
/** The capabilities to drop from the container. */
|
|
373
|
+
drop?: string[];
|
|
374
|
+
}
|
|
375
|
+
|
|
350
376
|
/** Image registry credential. */
|
|
351
377
|
export interface ImageRegistryCredential {
|
|
352
378
|
/** The Docker image registry server without a protocol such as "http" and "https". */
|
|
@@ -505,6 +531,8 @@ export interface InitContainerDefinition {
|
|
|
505
531
|
readonly instanceView?: InitContainerPropertiesDefinitionInstanceView;
|
|
506
532
|
/** The volume mounts available to the init container. */
|
|
507
533
|
volumeMounts?: VolumeMount[];
|
|
534
|
+
/** The container security properties. */
|
|
535
|
+
securityContext?: SecurityContextDefinition;
|
|
508
536
|
}
|
|
509
537
|
|
|
510
538
|
/** The instance view of the init container. Only valid in response. */
|
package/src/models/mappers.ts
CHANGED
|
@@ -412,6 +412,13 @@ export const Container: coreClient.CompositeMapper = {
|
|
|
412
412
|
name: "Composite",
|
|
413
413
|
className: "ContainerProbe"
|
|
414
414
|
}
|
|
415
|
+
},
|
|
416
|
+
securityContext: {
|
|
417
|
+
serializedName: "properties.securityContext",
|
|
418
|
+
type: {
|
|
419
|
+
name: "Composite",
|
|
420
|
+
className: "SecurityContextDefinition"
|
|
421
|
+
}
|
|
415
422
|
}
|
|
416
423
|
}
|
|
417
424
|
}
|
|
@@ -872,6 +879,83 @@ export const HttpHeader: coreClient.CompositeMapper = {
|
|
|
872
879
|
}
|
|
873
880
|
};
|
|
874
881
|
|
|
882
|
+
export const SecurityContextDefinition: coreClient.CompositeMapper = {
|
|
883
|
+
type: {
|
|
884
|
+
name: "Composite",
|
|
885
|
+
className: "SecurityContextDefinition",
|
|
886
|
+
modelProperties: {
|
|
887
|
+
privileged: {
|
|
888
|
+
serializedName: "privileged",
|
|
889
|
+
type: {
|
|
890
|
+
name: "Boolean"
|
|
891
|
+
}
|
|
892
|
+
},
|
|
893
|
+
allowPrivilegeEscalation: {
|
|
894
|
+
serializedName: "allowPrivilegeEscalation",
|
|
895
|
+
type: {
|
|
896
|
+
name: "Boolean"
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
capabilities: {
|
|
900
|
+
serializedName: "capabilities",
|
|
901
|
+
type: {
|
|
902
|
+
name: "Composite",
|
|
903
|
+
className: "SecurityContextCapabilitiesDefinition"
|
|
904
|
+
}
|
|
905
|
+
},
|
|
906
|
+
runAsGroup: {
|
|
907
|
+
serializedName: "runAsGroup",
|
|
908
|
+
type: {
|
|
909
|
+
name: "Number"
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
runAsUser: {
|
|
913
|
+
serializedName: "runAsUser",
|
|
914
|
+
type: {
|
|
915
|
+
name: "Number"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
seccompProfile: {
|
|
919
|
+
serializedName: "seccompProfile",
|
|
920
|
+
type: {
|
|
921
|
+
name: "String"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
export const SecurityContextCapabilitiesDefinition: coreClient.CompositeMapper = {
|
|
929
|
+
type: {
|
|
930
|
+
name: "Composite",
|
|
931
|
+
className: "SecurityContextCapabilitiesDefinition",
|
|
932
|
+
modelProperties: {
|
|
933
|
+
add: {
|
|
934
|
+
serializedName: "add",
|
|
935
|
+
type: {
|
|
936
|
+
name: "Sequence",
|
|
937
|
+
element: {
|
|
938
|
+
type: {
|
|
939
|
+
name: "String"
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
drop: {
|
|
945
|
+
serializedName: "drop",
|
|
946
|
+
type: {
|
|
947
|
+
name: "Sequence",
|
|
948
|
+
element: {
|
|
949
|
+
type: {
|
|
950
|
+
name: "String"
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
};
|
|
958
|
+
|
|
875
959
|
export const ImageRegistryCredential: coreClient.CompositeMapper = {
|
|
876
960
|
type: {
|
|
877
961
|
name: "Composite",
|
|
@@ -1333,6 +1417,13 @@ export const InitContainerDefinition: coreClient.CompositeMapper = {
|
|
|
1333
1417
|
}
|
|
1334
1418
|
}
|
|
1335
1419
|
}
|
|
1420
|
+
},
|
|
1421
|
+
securityContext: {
|
|
1422
|
+
serializedName: "properties.securityContext",
|
|
1423
|
+
type: {
|
|
1424
|
+
name: "Composite",
|
|
1425
|
+
className: "SecurityContextDefinition"
|
|
1426
|
+
}
|
|
1336
1427
|
}
|
|
1337
1428
|
}
|
|
1338
1429
|
}
|
package/src/models/parameters.ts
CHANGED
|
@@ -55,7 +55,7 @@ export const subscriptionId: OperationURLParameter = {
|
|
|
55
55
|
export const apiVersion: OperationQueryParameter = {
|
|
56
56
|
parameterPath: "apiVersion",
|
|
57
57
|
mapper: {
|
|
58
|
-
defaultValue: "
|
|
58
|
+
defaultValue: "2023-05-01",
|
|
59
59
|
isConstant: true,
|
|
60
60
|
serializedName: "api-version",
|
|
61
61
|
type: {
|
|
@@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
13
13
|
import * as Mappers from "../models/mappers";
|
|
14
14
|
import * as Parameters from "../models/parameters";
|
|
15
15
|
import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient";
|
|
16
|
-
import {
|
|
17
|
-
|
|
16
|
+
import {
|
|
17
|
+
SimplePollerLike,
|
|
18
|
+
OperationState,
|
|
19
|
+
createHttpPoller
|
|
20
|
+
} from "@azure/core-lro";
|
|
21
|
+
import { createLroSpec } from "../lroImpl";
|
|
18
22
|
import {
|
|
19
23
|
ContainerGroup,
|
|
20
24
|
ContainerGroupsListNextOptionalParams,
|
|
@@ -242,8 +246,8 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
242
246
|
containerGroup: ContainerGroup,
|
|
243
247
|
options?: ContainerGroupsCreateOrUpdateOptionalParams
|
|
244
248
|
): Promise<
|
|
245
|
-
|
|
246
|
-
|
|
249
|
+
SimplePollerLike<
|
|
250
|
+
OperationState<ContainerGroupsCreateOrUpdateResponse>,
|
|
247
251
|
ContainerGroupsCreateOrUpdateResponse
|
|
248
252
|
>
|
|
249
253
|
> {
|
|
@@ -253,7 +257,7 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
253
257
|
): Promise<ContainerGroupsCreateOrUpdateResponse> => {
|
|
254
258
|
return this.client.sendOperationRequest(args, spec);
|
|
255
259
|
};
|
|
256
|
-
const
|
|
260
|
+
const sendOperationFn = async (
|
|
257
261
|
args: coreClient.OperationArguments,
|
|
258
262
|
spec: coreClient.OperationSpec
|
|
259
263
|
) => {
|
|
@@ -286,13 +290,16 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
286
290
|
};
|
|
287
291
|
};
|
|
288
292
|
|
|
289
|
-
const lro =
|
|
290
|
-
|
|
291
|
-
{ resourceGroupName, containerGroupName, containerGroup, options },
|
|
292
|
-
createOrUpdateOperationSpec
|
|
293
|
-
);
|
|
294
|
-
const poller =
|
|
295
|
-
|
|
293
|
+
const lro = createLroSpec({
|
|
294
|
+
sendOperationFn,
|
|
295
|
+
args: { resourceGroupName, containerGroupName, containerGroup, options },
|
|
296
|
+
spec: createOrUpdateOperationSpec
|
|
297
|
+
});
|
|
298
|
+
const poller = await createHttpPoller<
|
|
299
|
+
ContainerGroupsCreateOrUpdateResponse,
|
|
300
|
+
OperationState<ContainerGroupsCreateOrUpdateResponse>
|
|
301
|
+
>(lro, {
|
|
302
|
+
restoreFrom: options?.resumeFrom,
|
|
296
303
|
intervalInMs: options?.updateIntervalInMs
|
|
297
304
|
});
|
|
298
305
|
await poller.poll();
|
|
@@ -352,8 +359,8 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
352
359
|
containerGroupName: string,
|
|
353
360
|
options?: ContainerGroupsDeleteOptionalParams
|
|
354
361
|
): Promise<
|
|
355
|
-
|
|
356
|
-
|
|
362
|
+
SimplePollerLike<
|
|
363
|
+
OperationState<ContainerGroupsDeleteResponse>,
|
|
357
364
|
ContainerGroupsDeleteResponse
|
|
358
365
|
>
|
|
359
366
|
> {
|
|
@@ -363,7 +370,7 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
363
370
|
): Promise<ContainerGroupsDeleteResponse> => {
|
|
364
371
|
return this.client.sendOperationRequest(args, spec);
|
|
365
372
|
};
|
|
366
|
-
const
|
|
373
|
+
const sendOperationFn = async (
|
|
367
374
|
args: coreClient.OperationArguments,
|
|
368
375
|
spec: coreClient.OperationSpec
|
|
369
376
|
) => {
|
|
@@ -396,13 +403,16 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
396
403
|
};
|
|
397
404
|
};
|
|
398
405
|
|
|
399
|
-
const lro =
|
|
400
|
-
|
|
401
|
-
{ resourceGroupName, containerGroupName, options },
|
|
402
|
-
deleteOperationSpec
|
|
403
|
-
);
|
|
404
|
-
const poller =
|
|
405
|
-
|
|
406
|
+
const lro = createLroSpec({
|
|
407
|
+
sendOperationFn,
|
|
408
|
+
args: { resourceGroupName, containerGroupName, options },
|
|
409
|
+
spec: deleteOperationSpec
|
|
410
|
+
});
|
|
411
|
+
const poller = await createHttpPoller<
|
|
412
|
+
ContainerGroupsDeleteResponse,
|
|
413
|
+
OperationState<ContainerGroupsDeleteResponse>
|
|
414
|
+
>(lro, {
|
|
415
|
+
restoreFrom: options?.resumeFrom,
|
|
406
416
|
intervalInMs: options?.updateIntervalInMs
|
|
407
417
|
});
|
|
408
418
|
await poller.poll();
|
|
@@ -440,14 +450,14 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
440
450
|
resourceGroupName: string,
|
|
441
451
|
containerGroupName: string,
|
|
442
452
|
options?: ContainerGroupsRestartOptionalParams
|
|
443
|
-
): Promise<
|
|
453
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
444
454
|
const directSendOperation = async (
|
|
445
455
|
args: coreClient.OperationArguments,
|
|
446
456
|
spec: coreClient.OperationSpec
|
|
447
457
|
): Promise<void> => {
|
|
448
458
|
return this.client.sendOperationRequest(args, spec);
|
|
449
459
|
};
|
|
450
|
-
const
|
|
460
|
+
const sendOperationFn = async (
|
|
451
461
|
args: coreClient.OperationArguments,
|
|
452
462
|
spec: coreClient.OperationSpec
|
|
453
463
|
) => {
|
|
@@ -480,13 +490,13 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
480
490
|
};
|
|
481
491
|
};
|
|
482
492
|
|
|
483
|
-
const lro =
|
|
484
|
-
|
|
485
|
-
{ resourceGroupName, containerGroupName, options },
|
|
486
|
-
restartOperationSpec
|
|
487
|
-
);
|
|
488
|
-
const poller =
|
|
489
|
-
|
|
493
|
+
const lro = createLroSpec({
|
|
494
|
+
sendOperationFn,
|
|
495
|
+
args: { resourceGroupName, containerGroupName, options },
|
|
496
|
+
spec: restartOperationSpec
|
|
497
|
+
});
|
|
498
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
499
|
+
restoreFrom: options?.resumeFrom,
|
|
490
500
|
intervalInMs: options?.updateIntervalInMs
|
|
491
501
|
});
|
|
492
502
|
await poller.poll();
|
|
@@ -542,14 +552,14 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
542
552
|
resourceGroupName: string,
|
|
543
553
|
containerGroupName: string,
|
|
544
554
|
options?: ContainerGroupsStartOptionalParams
|
|
545
|
-
): Promise<
|
|
555
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
546
556
|
const directSendOperation = async (
|
|
547
557
|
args: coreClient.OperationArguments,
|
|
548
558
|
spec: coreClient.OperationSpec
|
|
549
559
|
): Promise<void> => {
|
|
550
560
|
return this.client.sendOperationRequest(args, spec);
|
|
551
561
|
};
|
|
552
|
-
const
|
|
562
|
+
const sendOperationFn = async (
|
|
553
563
|
args: coreClient.OperationArguments,
|
|
554
564
|
spec: coreClient.OperationSpec
|
|
555
565
|
) => {
|
|
@@ -582,13 +592,13 @@ export class ContainerGroupsImpl implements ContainerGroups {
|
|
|
582
592
|
};
|
|
583
593
|
};
|
|
584
594
|
|
|
585
|
-
const lro =
|
|
586
|
-
|
|
587
|
-
{ resourceGroupName, containerGroupName, options },
|
|
588
|
-
startOperationSpec
|
|
589
|
-
);
|
|
590
|
-
const poller =
|
|
591
|
-
|
|
595
|
+
const lro = createLroSpec({
|
|
596
|
+
sendOperationFn,
|
|
597
|
+
args: { resourceGroupName, containerGroupName, options },
|
|
598
|
+
spec: startOperationSpec
|
|
599
|
+
});
|
|
600
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
601
|
+
restoreFrom: options?.resumeFrom,
|
|
592
602
|
intervalInMs: options?.updateIntervalInMs
|
|
593
603
|
});
|
|
594
604
|
await poller.poll();
|