@azure/arm-containerinstance 9.1.1-alpha.20241024.1 → 9.2.0-beta.1
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 +41 -10
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +1855 -966
- 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/containerGroupProfileGetByRevisionNumberSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js +40 -0
- package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js +55 -0
- package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js +260 -0
- package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js +39 -0
- package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.js +58 -0
- package/dist-esm/samples-dev/containerGroupProfilesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.js +53 -0
- package/dist-esm/samples-dev/containerGroupProfilesListSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts +2 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js +42 -0
- package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js.map +1 -0
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js +88 -51
- package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsGetSample.js +9 -6
- package/dist-esm/samples-dev/containerGroupsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsListSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsListSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsRestartSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsRestartSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsStartSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsStartSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsStopSample.js +3 -2
- package/dist-esm/samples-dev/containerGroupsStopSample.js.map +1 -1
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js +5 -4
- package/dist-esm/samples-dev/containerGroupsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/containersAttachSample.js +3 -2
- package/dist-esm/samples-dev/containersAttachSample.js.map +1 -1
- package/dist-esm/samples-dev/containersExecuteCommandSample.js +5 -4
- package/dist-esm/samples-dev/containersExecuteCommandSample.js.map +1 -1
- package/dist-esm/samples-dev/containersListLogsSample.js +4 -3
- package/dist-esm/samples-dev/containersListLogsSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListCachedImagesSample.js +3 -2
- package/dist-esm/samples-dev/locationListCachedImagesSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js +3 -2
- package/dist-esm/samples-dev/locationListCapabilitiesSample.js.map +1 -1
- package/dist-esm/samples-dev/locationListUsageSample.js +3 -2
- package/dist-esm/samples-dev/locationListUsageSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +1 -1
- package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js +3 -2
- package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js.map +1 -1
- package/dist-esm/src/containerInstanceManagementClient.d.ts +4 -3
- package/dist-esm/src/containerInstanceManagementClient.d.ts.map +1 -1
- package/dist-esm/src/containerInstanceManagementClient.js +13 -11
- package/dist-esm/src/containerInstanceManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +145 -3
- 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 +7 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +898 -640
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +87 -47
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/containerGroupProfileOperations.d.ts +55 -0
- package/dist-esm/src/operations/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/containerGroupProfileOperations.js +191 -0
- package/dist-esm/src/operations/containerGroupProfileOperations.js.map +1 -0
- package/dist-esm/src/operations/containerGroupProfiles.d.ts +95 -0
- package/dist-esm/src/operations/containerGroupProfiles.d.ts.map +1 -0
- package/dist-esm/src/operations/containerGroupProfiles.js +401 -0
- package/dist-esm/src/operations/containerGroupProfiles.js.map +1 -0
- package/dist-esm/src/operations/containerGroups.d.ts +15 -15
- package/dist-esm/src/operations/containerGroups.d.ts.map +1 -1
- package/dist-esm/src/operations/containerGroups.js +97 -97
- package/dist-esm/src/operations/containerGroups.js.map +1 -1
- package/dist-esm/src/operations/containers.d.ts +3 -3
- package/dist-esm/src/operations/containers.js +20 -20
- package/dist-esm/src/operations/containers.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/location.d.ts +8 -8
- package/dist-esm/src/operations/location.js +36 -36
- package/dist-esm/src/operations/location.js.map +1 -1
- package/dist-esm/src/operations/operations.js +9 -9
- 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 +11 -11
- package/dist-esm/src/operations/subnetServiceAssociationLink.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.d.ts +27 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.d.ts +55 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.js +9 -0
- package/dist-esm/src/operationsInterfaces/containerGroupProfiles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +13 -13
- package/dist-esm/src/operationsInterfaces/containers.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/location.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts +2 -2
- package/dist-esm/test/containerinstance_examples.d.ts.map +1 -1
- package/dist-esm/test/containerinstance_examples.js +1 -4
- package/dist-esm/test/containerinstance_examples.js.map +1 -1
- package/package.json +30 -31
- package/review/arm-containerinstance.api.md +155 -3
- package/src/containerInstanceManagementClient.ts +29 -20
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +194 -17
- package/src/models/mappers.ts +974 -702
- package/src/models/parameters.ts +94 -48
- package/src/operations/containerGroupProfileOperations.ts +255 -0
- package/src/operations/containerGroupProfiles.ts +485 -0
- package/src/operations/containerGroups.ts +188 -201
- package/src/operations/containers.ts +30 -33
- package/src/operations/index.ts +2 -0
- package/src/operations/location.ts +63 -66
- package/src/operations/operations.ts +16 -16
- package/src/operations/subnetServiceAssociationLink.ts +24 -25
- package/src/operationsInterfaces/containerGroupProfileOperations.ts +50 -0
- package/src/operationsInterfaces/containerGroupProfiles.ts +99 -0
- package/src/operationsInterfaces/containerGroups.ts +28 -28
- package/src/operationsInterfaces/containers.ts +7 -7
- package/src/operationsInterfaces/index.ts +2 -0
- package/src/operationsInterfaces/location.ts +7 -7
- package/src/operationsInterfaces/operations.ts +1 -1
- package/src/operationsInterfaces/subnetServiceAssociationLink.ts +4 -4
- package/src/pagingHelper.ts +1 -1
- package/types/arm-containerinstance.d.ts +275 -26
|
@@ -71,17 +71,25 @@ export interface ConfidentialComputeProperties {
|
|
|
71
71
|
ccePolicy?: string;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
+
// @public
|
|
75
|
+
export interface ConfigMap {
|
|
76
|
+
keyValuePairs?: {
|
|
77
|
+
[propertyName: string]: string;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
74
81
|
// @public
|
|
75
82
|
export interface Container {
|
|
76
83
|
command?: string[];
|
|
84
|
+
configMap?: ConfigMap;
|
|
77
85
|
environmentVariables?: EnvironmentVariable[];
|
|
78
|
-
image
|
|
86
|
+
image?: string;
|
|
79
87
|
readonly instanceView?: ContainerPropertiesInstanceView;
|
|
80
88
|
livenessProbe?: ContainerProbe;
|
|
81
89
|
name: string;
|
|
82
90
|
ports?: ContainerPort[];
|
|
83
91
|
readinessProbe?: ContainerProbe;
|
|
84
|
-
resources
|
|
92
|
+
resources?: ResourceRequirements;
|
|
85
93
|
securityContext?: SecurityContextDefinition;
|
|
86
94
|
volumeMounts?: VolumeMount[];
|
|
87
95
|
}
|
|
@@ -149,9 +157,141 @@ export type ContainerGroupNetworkProtocol = string;
|
|
|
149
157
|
// @public
|
|
150
158
|
export type ContainerGroupPriority = string;
|
|
151
159
|
|
|
160
|
+
// @public
|
|
161
|
+
export interface ContainerGroupProfile extends Resource, ContainerGroupProfileProperties {
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// @public
|
|
165
|
+
export interface ContainerGroupProfileGetByRevisionNumberOptionalParams extends coreClient.OperationOptions {
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// @public
|
|
169
|
+
export type ContainerGroupProfileGetByRevisionNumberResponse = ContainerGroupProfile;
|
|
170
|
+
|
|
171
|
+
// @public
|
|
172
|
+
export interface ContainerGroupProfileListAllRevisionsNextOptionalParams extends coreClient.OperationOptions {
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// @public
|
|
176
|
+
export type ContainerGroupProfileListAllRevisionsNextResponse = ContainerGroupProfileListResult;
|
|
177
|
+
|
|
178
|
+
// @public
|
|
179
|
+
export interface ContainerGroupProfileListAllRevisionsOptionalParams extends coreClient.OperationOptions {
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// @public
|
|
183
|
+
export type ContainerGroupProfileListAllRevisionsResponse = ContainerGroupProfileListResult;
|
|
184
|
+
|
|
185
|
+
// @public
|
|
186
|
+
export interface ContainerGroupProfileListResult {
|
|
187
|
+
nextLink?: string;
|
|
188
|
+
value?: ContainerGroupProfile[];
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
// @public
|
|
192
|
+
export interface ContainerGroupProfileOperations {
|
|
193
|
+
getByRevisionNumber(resourceGroupName: string, containerGroupProfileName: string, revisionNumber: string, options?: ContainerGroupProfileGetByRevisionNumberOptionalParams): Promise<ContainerGroupProfileGetByRevisionNumberResponse>;
|
|
194
|
+
listAllRevisions(resourceGroupName: string, containerGroupProfileName: string, options?: ContainerGroupProfileListAllRevisionsOptionalParams): PagedAsyncIterableIterator<ContainerGroupProfile>;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// @public
|
|
198
|
+
export interface ContainerGroupProfilePatch {
|
|
199
|
+
tags?: {
|
|
200
|
+
[propertyName: string]: string;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// @public
|
|
205
|
+
export interface ContainerGroupProfileProperties {
|
|
206
|
+
confidentialComputeProperties?: ConfidentialComputeProperties;
|
|
207
|
+
containers: Container[];
|
|
208
|
+
diagnostics?: ContainerGroupDiagnostics;
|
|
209
|
+
encryptionProperties?: EncryptionProperties;
|
|
210
|
+
extensions?: DeploymentExtensionSpec[];
|
|
211
|
+
imageRegistryCredentials?: ImageRegistryCredential[];
|
|
212
|
+
initContainers?: InitContainerDefinition[];
|
|
213
|
+
ipAddress?: IpAddress;
|
|
214
|
+
osType: OperatingSystemTypes;
|
|
215
|
+
priority?: ContainerGroupPriority;
|
|
216
|
+
restartPolicy?: ContainerGroupRestartPolicy;
|
|
217
|
+
readonly revision?: number;
|
|
218
|
+
sku?: ContainerGroupSku;
|
|
219
|
+
volumes?: Volume[];
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
// @public
|
|
223
|
+
export interface ContainerGroupProfileReferenceDefinition {
|
|
224
|
+
id?: string;
|
|
225
|
+
revision?: number;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// @public
|
|
229
|
+
export interface ContainerGroupProfiles {
|
|
230
|
+
createOrUpdate(resourceGroupName: string, containerGroupProfileName: string, containerGroupProfile: ContainerGroupProfile, options?: ContainerGroupProfilesCreateOrUpdateOptionalParams): Promise<ContainerGroupProfilesCreateOrUpdateResponse>;
|
|
231
|
+
delete(resourceGroupName: string, containerGroupProfileName: string, options?: ContainerGroupProfilesDeleteOptionalParams): Promise<void>;
|
|
232
|
+
get(resourceGroupName: string, containerGroupProfileName: string, options?: ContainerGroupProfilesGetOptionalParams): Promise<ContainerGroupProfilesGetResponse>;
|
|
233
|
+
list(options?: ContainerGroupProfilesListOptionalParams): PagedAsyncIterableIterator<ContainerGroupProfile>;
|
|
234
|
+
listByResourceGroup(resourceGroupName: string, options?: ContainerGroupProfilesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ContainerGroupProfile>;
|
|
235
|
+
patch(resourceGroupName: string, containerGroupProfileName: string, properties: ContainerGroupProfilePatch, options?: ContainerGroupProfilesPatchOptionalParams): Promise<ContainerGroupProfilesPatchResponse>;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// @public
|
|
239
|
+
export interface ContainerGroupProfilesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
// @public
|
|
243
|
+
export type ContainerGroupProfilesCreateOrUpdateResponse = ContainerGroupProfile;
|
|
244
|
+
|
|
245
|
+
// @public
|
|
246
|
+
export interface ContainerGroupProfilesDeleteOptionalParams extends coreClient.OperationOptions {
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// @public
|
|
250
|
+
export interface ContainerGroupProfilesGetOptionalParams extends coreClient.OperationOptions {
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
// @public
|
|
254
|
+
export type ContainerGroupProfilesGetResponse = ContainerGroupProfile;
|
|
255
|
+
|
|
256
|
+
// @public
|
|
257
|
+
export interface ContainerGroupProfilesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// @public
|
|
261
|
+
export type ContainerGroupProfilesListByResourceGroupNextResponse = ContainerGroupProfileListResult;
|
|
262
|
+
|
|
263
|
+
// @public
|
|
264
|
+
export interface ContainerGroupProfilesListByResourceGroupOptionalParams extends coreClient.OperationOptions {
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// @public
|
|
268
|
+
export type ContainerGroupProfilesListByResourceGroupResponse = ContainerGroupProfileListResult;
|
|
269
|
+
|
|
270
|
+
// @public
|
|
271
|
+
export interface ContainerGroupProfilesListNextOptionalParams extends coreClient.OperationOptions {
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
// @public
|
|
275
|
+
export type ContainerGroupProfilesListNextResponse = ContainerGroupProfileListResult;
|
|
276
|
+
|
|
277
|
+
// @public
|
|
278
|
+
export interface ContainerGroupProfilesListOptionalParams extends coreClient.OperationOptions {
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// @public
|
|
282
|
+
export type ContainerGroupProfilesListResponse = ContainerGroupProfileListResult;
|
|
283
|
+
|
|
284
|
+
// @public
|
|
285
|
+
export interface ContainerGroupProfilesPatchOptionalParams extends coreClient.OperationOptions {
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
// @public
|
|
289
|
+
export type ContainerGroupProfilesPatchResponse = ContainerGroupProfile;
|
|
290
|
+
|
|
152
291
|
// @public
|
|
153
292
|
export interface ContainerGroupProperties {
|
|
154
293
|
confidentialComputeProperties?: ConfidentialComputeProperties;
|
|
294
|
+
containerGroupProfile?: ContainerGroupProfileReferenceDefinition;
|
|
155
295
|
containers: Container[];
|
|
156
296
|
diagnostics?: ContainerGroupDiagnostics;
|
|
157
297
|
dnsConfig?: DnsConfiguration;
|
|
@@ -162,11 +302,13 @@ export interface ContainerGroupProperties {
|
|
|
162
302
|
initContainers?: InitContainerDefinition[];
|
|
163
303
|
readonly instanceView?: ContainerGroupPropertiesInstanceView;
|
|
164
304
|
ipAddress?: IpAddress;
|
|
165
|
-
|
|
305
|
+
readonly isCreatedFromStandbyPool?: boolean;
|
|
306
|
+
osType?: OperatingSystemTypes;
|
|
166
307
|
priority?: ContainerGroupPriority;
|
|
167
308
|
readonly provisioningState?: string;
|
|
168
309
|
restartPolicy?: ContainerGroupRestartPolicy;
|
|
169
310
|
sku?: ContainerGroupSku;
|
|
311
|
+
standbyPoolProfile?: StandbyPoolProfileDefinition;
|
|
170
312
|
subnetIds?: ContainerGroupSubnetId[];
|
|
171
313
|
volumes?: Volume[];
|
|
172
314
|
}
|
|
@@ -308,6 +450,10 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
308
450
|
// (undocumented)
|
|
309
451
|
apiVersion: string;
|
|
310
452
|
// (undocumented)
|
|
453
|
+
containerGroupProfileOperations: ContainerGroupProfileOperations;
|
|
454
|
+
// (undocumented)
|
|
455
|
+
containerGroupProfiles: ContainerGroupProfiles;
|
|
456
|
+
// (undocumented)
|
|
311
457
|
containerGroups: ContainerGroups;
|
|
312
458
|
// (undocumented)
|
|
313
459
|
containers: Containers;
|
|
@@ -750,6 +896,12 @@ export interface SecurityContextDefinition {
|
|
|
750
896
|
seccompProfile?: string;
|
|
751
897
|
}
|
|
752
898
|
|
|
899
|
+
// @public
|
|
900
|
+
export interface StandbyPoolProfileDefinition {
|
|
901
|
+
failContainerGroupCreateOnReuseFailure?: boolean;
|
|
902
|
+
id?: string;
|
|
903
|
+
}
|
|
904
|
+
|
|
753
905
|
// @public
|
|
754
906
|
export interface SubnetServiceAssociationLink {
|
|
755
907
|
beginDelete(resourceGroupName: string, virtualNetworkName: string, subnetName: string, options?: SubnetServiceAssociationLinkDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
@@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
|
11
11
|
import {
|
|
12
12
|
PipelineRequest,
|
|
13
13
|
PipelineResponse,
|
|
14
|
-
SendRequest
|
|
14
|
+
SendRequest,
|
|
15
15
|
} from "@azure/core-rest-pipeline";
|
|
16
16
|
import * as coreAuth from "@azure/core-auth";
|
|
17
17
|
import {
|
|
@@ -19,14 +19,18 @@ import {
|
|
|
19
19
|
OperationsImpl,
|
|
20
20
|
LocationImpl,
|
|
21
21
|
ContainersImpl,
|
|
22
|
-
SubnetServiceAssociationLinkImpl
|
|
22
|
+
SubnetServiceAssociationLinkImpl,
|
|
23
|
+
ContainerGroupProfilesImpl,
|
|
24
|
+
ContainerGroupProfileOperationsImpl,
|
|
23
25
|
} from "./operations";
|
|
24
26
|
import {
|
|
25
27
|
ContainerGroups,
|
|
26
28
|
Operations,
|
|
27
29
|
Location,
|
|
28
30
|
Containers,
|
|
29
|
-
SubnetServiceAssociationLink
|
|
31
|
+
SubnetServiceAssociationLink,
|
|
32
|
+
ContainerGroupProfiles,
|
|
33
|
+
ContainerGroupProfileOperations,
|
|
30
34
|
} from "./operationsInterfaces";
|
|
31
35
|
import { ContainerInstanceManagementClientOptionalParams } from "./models";
|
|
32
36
|
|
|
@@ -38,14 +42,13 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
38
42
|
/**
|
|
39
43
|
* Initializes a new instance of the ContainerInstanceManagementClient class.
|
|
40
44
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
41
|
-
* @param subscriptionId
|
|
42
|
-
* The subscription ID forms part of the URI for every service call.
|
|
45
|
+
* @param subscriptionId The ID of the target subscription. The value must be an UUID.
|
|
43
46
|
* @param options The parameter options
|
|
44
47
|
*/
|
|
45
48
|
constructor(
|
|
46
49
|
credentials: coreAuth.TokenCredential,
|
|
47
50
|
subscriptionId: string,
|
|
48
|
-
options?: ContainerInstanceManagementClientOptionalParams
|
|
51
|
+
options?: ContainerInstanceManagementClientOptionalParams,
|
|
49
52
|
) {
|
|
50
53
|
if (credentials === undefined) {
|
|
51
54
|
throw new Error("'credentials' cannot be null");
|
|
@@ -60,10 +63,10 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
60
63
|
}
|
|
61
64
|
const defaults: ContainerInstanceManagementClientOptionalParams = {
|
|
62
65
|
requestContentType: "application/json; charset=utf-8",
|
|
63
|
-
credential: credentials
|
|
66
|
+
credential: credentials,
|
|
64
67
|
};
|
|
65
68
|
|
|
66
|
-
const packageDetails = `azsdk-js-arm-containerinstance/9.
|
|
69
|
+
const packageDetails = `azsdk-js-arm-containerinstance/9.2.0-beta.1`;
|
|
67
70
|
const userAgentPrefix =
|
|
68
71
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
69
72
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -73,20 +76,21 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
73
76
|
...defaults,
|
|
74
77
|
...options,
|
|
75
78
|
userAgentOptions: {
|
|
76
|
-
userAgentPrefix
|
|
79
|
+
userAgentPrefix,
|
|
77
80
|
},
|
|
78
81
|
endpoint:
|
|
79
|
-
options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
82
|
+
options.endpoint ?? options.baseUri ?? "https://management.azure.com",
|
|
80
83
|
};
|
|
81
84
|
super(optionsWithDefaults);
|
|
82
85
|
|
|
83
86
|
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
84
87
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
85
|
-
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
88
|
+
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =
|
|
89
|
+
options.pipeline.getOrderedPolicies();
|
|
86
90
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
87
91
|
(pipelinePolicy) =>
|
|
88
92
|
pipelinePolicy.name ===
|
|
89
|
-
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
93
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
90
94
|
);
|
|
91
95
|
}
|
|
92
96
|
if (
|
|
@@ -96,7 +100,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
96
100
|
!bearerTokenAuthenticationPolicyFound
|
|
97
101
|
) {
|
|
98
102
|
this.pipeline.removePolicy({
|
|
99
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
103
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
|
100
104
|
});
|
|
101
105
|
this.pipeline.addPolicy(
|
|
102
106
|
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
@@ -106,9 +110,9 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
106
110
|
`${optionsWithDefaults.endpoint}/.default`,
|
|
107
111
|
challengeCallbacks: {
|
|
108
112
|
authorizeRequestOnChallenge:
|
|
109
|
-
coreClient.authorizeRequestOnClaimChallenge
|
|
110
|
-
}
|
|
111
|
-
})
|
|
113
|
+
coreClient.authorizeRequestOnClaimChallenge,
|
|
114
|
+
},
|
|
115
|
+
}),
|
|
112
116
|
);
|
|
113
117
|
}
|
|
114
118
|
// Parameter assignments
|
|
@@ -116,14 +120,17 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
116
120
|
|
|
117
121
|
// Assigning values to Constant parameters
|
|
118
122
|
this.$host = options.$host || "https://management.azure.com";
|
|
119
|
-
this.apiVersion = options.apiVersion || "
|
|
123
|
+
this.apiVersion = options.apiVersion || "2024-05-01-preview";
|
|
120
124
|
this.containerGroups = new ContainerGroupsImpl(this);
|
|
121
125
|
this.operations = new OperationsImpl(this);
|
|
122
126
|
this.location = new LocationImpl(this);
|
|
123
127
|
this.containers = new ContainersImpl(this);
|
|
124
128
|
this.subnetServiceAssociationLink = new SubnetServiceAssociationLinkImpl(
|
|
125
|
-
this
|
|
129
|
+
this,
|
|
126
130
|
);
|
|
131
|
+
this.containerGroupProfiles = new ContainerGroupProfilesImpl(this);
|
|
132
|
+
this.containerGroupProfileOperations =
|
|
133
|
+
new ContainerGroupProfileOperationsImpl(this);
|
|
127
134
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
128
135
|
}
|
|
129
136
|
|
|
@@ -136,7 +143,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
136
143
|
name: "CustomApiVersionPolicy",
|
|
137
144
|
async sendRequest(
|
|
138
145
|
request: PipelineRequest,
|
|
139
|
-
next: SendRequest
|
|
146
|
+
next: SendRequest,
|
|
140
147
|
): Promise<PipelineResponse> {
|
|
141
148
|
const param = request.url.split("?");
|
|
142
149
|
if (param.length > 1) {
|
|
@@ -150,7 +157,7 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
150
157
|
request.url = param[0] + "?" + newParams.join("&");
|
|
151
158
|
}
|
|
152
159
|
return next(request);
|
|
153
|
-
}
|
|
160
|
+
},
|
|
154
161
|
};
|
|
155
162
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
156
163
|
}
|
|
@@ -160,4 +167,6 @@ export class ContainerInstanceManagementClient extends coreClient.ServiceClient
|
|
|
160
167
|
location: Location;
|
|
161
168
|
containers: Containers;
|
|
162
169
|
subnetServiceAssociationLink: SubnetServiceAssociationLink;
|
|
170
|
+
containerGroupProfiles: ContainerGroupProfiles;
|
|
171
|
+
containerGroupProfileOperations: ContainerGroupProfileOperations;
|
|
163
172
|
}
|
package/src/lroImpl.ts
CHANGED
|
@@ -28,15 +28,15 @@ export function createLroSpec<T>(inputs: {
|
|
|
28
28
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
29
|
sendPollRequest: (
|
|
30
30
|
path: string,
|
|
31
|
-
options?: { abortSignal?: AbortSignalLike }
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike },
|
|
32
32
|
) => {
|
|
33
33
|
const { requestBody, ...restSpec } = spec;
|
|
34
34
|
return sendOperationFn(args, {
|
|
35
35
|
...restSpec,
|
|
36
36
|
httpMethod: "GET",
|
|
37
37
|
path,
|
|
38
|
-
abortSignal: options?.abortSignal
|
|
38
|
+
abortSignal: options?.abortSignal,
|
|
39
39
|
});
|
|
40
|
-
}
|
|
40
|
+
},
|
|
41
41
|
};
|
|
42
42
|
}
|