@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
|
@@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client";
|
|
|
11
11
|
import * as Mappers from "../models/mappers";
|
|
12
12
|
import * as Parameters from "../models/parameters";
|
|
13
13
|
import { ContainerInstanceManagementClient } from "../containerInstanceManagementClient";
|
|
14
|
-
import {
|
|
15
|
-
|
|
14
|
+
import {
|
|
15
|
+
SimplePollerLike,
|
|
16
|
+
OperationState,
|
|
17
|
+
createHttpPoller
|
|
18
|
+
} from "@azure/core-lro";
|
|
19
|
+
import { createLroSpec } from "../lroImpl";
|
|
16
20
|
import { SubnetServiceAssociationLinkDeleteOptionalParams } from "../models";
|
|
17
21
|
|
|
18
22
|
/** Class containing SubnetServiceAssociationLink operations. */
|
|
@@ -41,14 +45,14 @@ export class SubnetServiceAssociationLinkImpl
|
|
|
41
45
|
virtualNetworkName: string,
|
|
42
46
|
subnetName: string,
|
|
43
47
|
options?: SubnetServiceAssociationLinkDeleteOptionalParams
|
|
44
|
-
): Promise<
|
|
48
|
+
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
45
49
|
const directSendOperation = async (
|
|
46
50
|
args: coreClient.OperationArguments,
|
|
47
51
|
spec: coreClient.OperationSpec
|
|
48
52
|
): Promise<void> => {
|
|
49
53
|
return this.client.sendOperationRequest(args, spec);
|
|
50
54
|
};
|
|
51
|
-
const
|
|
55
|
+
const sendOperationFn = async (
|
|
52
56
|
args: coreClient.OperationArguments,
|
|
53
57
|
spec: coreClient.OperationSpec
|
|
54
58
|
) => {
|
|
@@ -81,13 +85,13 @@ export class SubnetServiceAssociationLinkImpl
|
|
|
81
85
|
};
|
|
82
86
|
};
|
|
83
87
|
|
|
84
|
-
const lro =
|
|
85
|
-
|
|
86
|
-
{ resourceGroupName, virtualNetworkName, subnetName, options },
|
|
87
|
-
deleteOperationSpec
|
|
88
|
-
);
|
|
89
|
-
const poller =
|
|
90
|
-
|
|
88
|
+
const lro = createLroSpec({
|
|
89
|
+
sendOperationFn,
|
|
90
|
+
args: { resourceGroupName, virtualNetworkName, subnetName, options },
|
|
91
|
+
spec: deleteOperationSpec
|
|
92
|
+
});
|
|
93
|
+
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
94
|
+
restoreFrom: options?.resumeFrom,
|
|
91
95
|
intervalInMs: options?.updateIntervalInMs
|
|
92
96
|
});
|
|
93
97
|
await poller.poll();
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
-
import {
|
|
10
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
11
11
|
import {
|
|
12
12
|
ContainerGroup,
|
|
13
13
|
ContainerGroupsListOptionalParams,
|
|
@@ -77,8 +77,8 @@ export interface ContainerGroups {
|
|
|
77
77
|
containerGroup: ContainerGroup,
|
|
78
78
|
options?: ContainerGroupsCreateOrUpdateOptionalParams
|
|
79
79
|
): Promise<
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
SimplePollerLike<
|
|
81
|
+
OperationState<ContainerGroupsCreateOrUpdateResponse>,
|
|
82
82
|
ContainerGroupsCreateOrUpdateResponse
|
|
83
83
|
>
|
|
84
84
|
>;
|
|
@@ -120,8 +120,8 @@ export interface ContainerGroups {
|
|
|
120
120
|
containerGroupName: string,
|
|
121
121
|
options?: ContainerGroupsDeleteOptionalParams
|
|
122
122
|
): Promise<
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
SimplePollerLike<
|
|
124
|
+
OperationState<ContainerGroupsDeleteResponse>,
|
|
125
125
|
ContainerGroupsDeleteResponse
|
|
126
126
|
>
|
|
127
127
|
>;
|
|
@@ -148,7 +148,7 @@ export interface ContainerGroups {
|
|
|
148
148
|
resourceGroupName: string,
|
|
149
149
|
containerGroupName: string,
|
|
150
150
|
options?: ContainerGroupsRestartOptionalParams
|
|
151
|
-
): Promise<
|
|
151
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
152
152
|
/**
|
|
153
153
|
* Restarts all containers in a container group in place. If container image has updates, new image
|
|
154
154
|
* will be downloaded.
|
|
@@ -184,7 +184,7 @@ export interface ContainerGroups {
|
|
|
184
184
|
resourceGroupName: string,
|
|
185
185
|
containerGroupName: string,
|
|
186
186
|
options?: ContainerGroupsStartOptionalParams
|
|
187
|
-
): Promise<
|
|
187
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
188
188
|
/**
|
|
189
189
|
* Starts all containers in a container group. Compute resources will be allocated and billing will
|
|
190
190
|
* start.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
10
10
|
import { SubnetServiceAssociationLinkDeleteOptionalParams } from "../models";
|
|
11
11
|
|
|
12
12
|
/** Interface representing a SubnetServiceAssociationLink. */
|
|
@@ -24,7 +24,7 @@ export interface SubnetServiceAssociationLink {
|
|
|
24
24
|
virtualNetworkName: string,
|
|
25
25
|
subnetName: string,
|
|
26
26
|
options?: SubnetServiceAssociationLinkDeleteOptionalParams
|
|
27
|
-
): Promise<
|
|
27
|
+
): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
28
28
|
/**
|
|
29
29
|
* Delete container group virtual network association links. The operation does not delete other
|
|
30
30
|
* resources provided by the user.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as coreAuth from '@azure/core-auth';
|
|
2
2
|
import * as coreClient from '@azure/core-client';
|
|
3
|
+
import { OperationState } from '@azure/core-lro';
|
|
3
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
4
|
-
import {
|
|
5
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
5
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
6
6
|
|
|
7
7
|
/** The properties of the Azure File volume. Azure File shares are mounted as volumes. */
|
|
8
8
|
export declare interface AzureFileVolume {
|
|
@@ -142,6 +142,8 @@ export declare interface Container {
|
|
|
142
142
|
livenessProbe?: ContainerProbe;
|
|
143
143
|
/** The readiness probe. */
|
|
144
144
|
readinessProbe?: ContainerProbe;
|
|
145
|
+
/** The container security properties. */
|
|
146
|
+
securityContext?: SecurityContextDefinition;
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
/** The information for the output stream from container attach. */
|
|
@@ -360,7 +362,7 @@ export declare interface ContainerGroups {
|
|
|
360
362
|
* @param containerGroup The properties of the container group to be created or updated.
|
|
361
363
|
* @param options The options parameters.
|
|
362
364
|
*/
|
|
363
|
-
beginCreateOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: ContainerGroup, options?: ContainerGroupsCreateOrUpdateOptionalParams): Promise<
|
|
365
|
+
beginCreateOrUpdate(resourceGroupName: string, containerGroupName: string, containerGroup: ContainerGroup, options?: ContainerGroupsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ContainerGroupsCreateOrUpdateResponse>, ContainerGroupsCreateOrUpdateResponse>>;
|
|
364
366
|
/**
|
|
365
367
|
* Create or update container groups with specified configurations.
|
|
366
368
|
* @param resourceGroupName The name of the resource group.
|
|
@@ -384,7 +386,7 @@ export declare interface ContainerGroups {
|
|
|
384
386
|
* @param containerGroupName The name of the container group.
|
|
385
387
|
* @param options The options parameters.
|
|
386
388
|
*/
|
|
387
|
-
beginDelete(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsDeleteOptionalParams): Promise<
|
|
389
|
+
beginDelete(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<ContainerGroupsDeleteResponse>, ContainerGroupsDeleteResponse>>;
|
|
388
390
|
/**
|
|
389
391
|
* Delete the specified container group in the specified subscription and resource group. The operation
|
|
390
392
|
* does not delete other resources provided by the user, such as volumes.
|
|
@@ -400,7 +402,7 @@ export declare interface ContainerGroups {
|
|
|
400
402
|
* @param containerGroupName The name of the container group.
|
|
401
403
|
* @param options The options parameters.
|
|
402
404
|
*/
|
|
403
|
-
beginRestart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsRestartOptionalParams): Promise<
|
|
405
|
+
beginRestart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsRestartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
404
406
|
/**
|
|
405
407
|
* Restarts all containers in a container group in place. If container image has updates, new image
|
|
406
408
|
* will be downloaded.
|
|
@@ -424,7 +426,7 @@ export declare interface ContainerGroups {
|
|
|
424
426
|
* @param containerGroupName The name of the container group.
|
|
425
427
|
* @param options The options parameters.
|
|
426
428
|
*/
|
|
427
|
-
beginStart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsStartOptionalParams): Promise<
|
|
429
|
+
beginStart(resourceGroupName: string, containerGroupName: string, options?: ContainerGroupsStartOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
428
430
|
/**
|
|
429
431
|
* Starts all containers in a container group. Compute resources will be allocated and billing will
|
|
430
432
|
* start.
|
|
@@ -925,6 +927,8 @@ export declare interface InitContainerDefinition {
|
|
|
925
927
|
readonly instanceView?: InitContainerPropertiesDefinitionInstanceView;
|
|
926
928
|
/** The volume mounts available to the init container. */
|
|
927
929
|
volumeMounts?: VolumeMount[];
|
|
930
|
+
/** The container security properties. */
|
|
931
|
+
securityContext?: SecurityContextDefinition;
|
|
928
932
|
}
|
|
929
933
|
|
|
930
934
|
/** The instance view of the init container. Only valid in response. */
|
|
@@ -1309,6 +1313,30 @@ export declare interface ResourceRequirements {
|
|
|
1309
1313
|
*/
|
|
1310
1314
|
export declare type Scheme = string;
|
|
1311
1315
|
|
|
1316
|
+
/** The capabilities to add or drop from a container. */
|
|
1317
|
+
export declare interface SecurityContextCapabilitiesDefinition {
|
|
1318
|
+
/** The capabilities to add to the container. */
|
|
1319
|
+
add?: string[];
|
|
1320
|
+
/** The capabilities to drop from the container. */
|
|
1321
|
+
drop?: string[];
|
|
1322
|
+
}
|
|
1323
|
+
|
|
1324
|
+
/** The security context for the container. */
|
|
1325
|
+
export declare interface SecurityContextDefinition {
|
|
1326
|
+
/** The flag to determine if the container permissions is elevated to Privileged. */
|
|
1327
|
+
privileged?: boolean;
|
|
1328
|
+
/** A boolean value indicating whether the init process can elevate its privileges */
|
|
1329
|
+
allowPrivilegeEscalation?: boolean;
|
|
1330
|
+
/** The capabilities to add or drop from a container. */
|
|
1331
|
+
capabilities?: SecurityContextCapabilitiesDefinition;
|
|
1332
|
+
/** Sets the User GID for the container. */
|
|
1333
|
+
runAsGroup?: number;
|
|
1334
|
+
/** Sets the User UID for the container. */
|
|
1335
|
+
runAsUser?: number;
|
|
1336
|
+
/** a base64 encoded string containing the contents of the JSON in the seccomp profile */
|
|
1337
|
+
seccompProfile?: string;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1312
1340
|
/** Interface representing a SubnetServiceAssociationLink. */
|
|
1313
1341
|
export declare interface SubnetServiceAssociationLink {
|
|
1314
1342
|
/**
|
|
@@ -1319,7 +1347,7 @@ export declare interface SubnetServiceAssociationLink {
|
|
|
1319
1347
|
* @param subnetName The name of the subnet.
|
|
1320
1348
|
* @param options The options parameters.
|
|
1321
1349
|
*/
|
|
1322
|
-
beginDelete(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<
|
|
1350
|
+
beginDelete(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1323
1351
|
/**
|
|
1324
1352
|
* Delete container group virtual network association links. The operation does not delete other
|
|
1325
1353
|
* resources provided by the user.
|