@azure/arm-containerinstance 9.1.1-alpha.20241023.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.
Files changed (159) hide show
  1. package/CHANGELOG.md +41 -10
  2. package/LICENSE +1 -1
  3. package/README.md +1 -1
  4. package/dist/index.js +1855 -966
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js +40 -0
  11. package/dist-esm/samples-dev/containerGroupProfileGetByRevisionNumberSample.js.map +1 -0
  12. package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js +55 -0
  15. package/dist-esm/samples-dev/containerGroupProfileListAllRevisionsSample.js.map +1 -0
  16. package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js +260 -0
  19. package/dist-esm/samples-dev/containerGroupProfilesCreateOrUpdateSample.js.map +1 -0
  20. package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js +39 -0
  23. package/dist-esm/samples-dev/containerGroupProfilesDeleteSample.js.map +1 -0
  24. package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/containerGroupProfilesGetSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/containerGroupProfilesGetSample.js +58 -0
  27. package/dist-esm/samples-dev/containerGroupProfilesGetSample.js.map +1 -0
  28. package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js +54 -0
  31. package/dist-esm/samples-dev/containerGroupProfilesListByResourceGroupSample.js.map +1 -0
  32. package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/containerGroupProfilesListSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/containerGroupProfilesListSample.js +53 -0
  35. package/dist-esm/samples-dev/containerGroupProfilesListSample.js.map +1 -0
  36. package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/containerGroupProfilesPatchSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js +42 -0
  39. package/dist-esm/samples-dev/containerGroupProfilesPatchSample.js.map +1 -0
  40. package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js +88 -51
  41. package/dist-esm/samples-dev/containerGroupsCreateOrUpdateSample.js.map +1 -1
  42. package/dist-esm/samples-dev/containerGroupsDeleteSample.js +3 -2
  43. package/dist-esm/samples-dev/containerGroupsDeleteSample.js.map +1 -1
  44. package/dist-esm/samples-dev/containerGroupsGetSample.js +9 -6
  45. package/dist-esm/samples-dev/containerGroupsGetSample.js.map +1 -1
  46. package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js +3 -2
  47. package/dist-esm/samples-dev/containerGroupsListByResourceGroupSample.js.map +1 -1
  48. package/dist-esm/samples-dev/containerGroupsListSample.js +3 -2
  49. package/dist-esm/samples-dev/containerGroupsListSample.js.map +1 -1
  50. package/dist-esm/samples-dev/containerGroupsRestartSample.js +3 -2
  51. package/dist-esm/samples-dev/containerGroupsRestartSample.js.map +1 -1
  52. package/dist-esm/samples-dev/containerGroupsStartSample.js +3 -2
  53. package/dist-esm/samples-dev/containerGroupsStartSample.js.map +1 -1
  54. package/dist-esm/samples-dev/containerGroupsStopSample.js +3 -2
  55. package/dist-esm/samples-dev/containerGroupsStopSample.js.map +1 -1
  56. package/dist-esm/samples-dev/containerGroupsUpdateSample.js +5 -4
  57. package/dist-esm/samples-dev/containerGroupsUpdateSample.js.map +1 -1
  58. package/dist-esm/samples-dev/containersAttachSample.js +3 -2
  59. package/dist-esm/samples-dev/containersAttachSample.js.map +1 -1
  60. package/dist-esm/samples-dev/containersExecuteCommandSample.js +5 -4
  61. package/dist-esm/samples-dev/containersExecuteCommandSample.js.map +1 -1
  62. package/dist-esm/samples-dev/containersListLogsSample.js +4 -3
  63. package/dist-esm/samples-dev/containersListLogsSample.js.map +1 -1
  64. package/dist-esm/samples-dev/locationListCachedImagesSample.js +3 -2
  65. package/dist-esm/samples-dev/locationListCachedImagesSample.js.map +1 -1
  66. package/dist-esm/samples-dev/locationListCapabilitiesSample.js +3 -2
  67. package/dist-esm/samples-dev/locationListCapabilitiesSample.js.map +1 -1
  68. package/dist-esm/samples-dev/locationListUsageSample.js +3 -2
  69. package/dist-esm/samples-dev/locationListUsageSample.js.map +1 -1
  70. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  71. package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js +3 -2
  72. package/dist-esm/samples-dev/subnetServiceAssociationLinkDeleteSample.js.map +1 -1
  73. package/dist-esm/src/containerInstanceManagementClient.d.ts +4 -3
  74. package/dist-esm/src/containerInstanceManagementClient.d.ts.map +1 -1
  75. package/dist-esm/src/containerInstanceManagementClient.js +13 -11
  76. package/dist-esm/src/containerInstanceManagementClient.js.map +1 -1
  77. package/dist-esm/src/lroImpl.js +1 -1
  78. package/dist-esm/src/models/index.d.ts +145 -3
  79. package/dist-esm/src/models/index.d.ts.map +1 -1
  80. package/dist-esm/src/models/index.js.map +1 -1
  81. package/dist-esm/src/models/mappers.d.ts +7 -0
  82. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  83. package/dist-esm/src/models/mappers.js +898 -640
  84. package/dist-esm/src/models/mappers.js.map +1 -1
  85. package/dist-esm/src/models/parameters.d.ts +4 -0
  86. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  87. package/dist-esm/src/models/parameters.js +87 -47
  88. package/dist-esm/src/models/parameters.js.map +1 -1
  89. package/dist-esm/src/operations/containerGroupProfileOperations.d.ts +55 -0
  90. package/dist-esm/src/operations/containerGroupProfileOperations.d.ts.map +1 -0
  91. package/dist-esm/src/operations/containerGroupProfileOperations.js +191 -0
  92. package/dist-esm/src/operations/containerGroupProfileOperations.js.map +1 -0
  93. package/dist-esm/src/operations/containerGroupProfiles.d.ts +95 -0
  94. package/dist-esm/src/operations/containerGroupProfiles.d.ts.map +1 -0
  95. package/dist-esm/src/operations/containerGroupProfiles.js +401 -0
  96. package/dist-esm/src/operations/containerGroupProfiles.js.map +1 -0
  97. package/dist-esm/src/operations/containerGroups.d.ts +15 -15
  98. package/dist-esm/src/operations/containerGroups.d.ts.map +1 -1
  99. package/dist-esm/src/operations/containerGroups.js +97 -97
  100. package/dist-esm/src/operations/containerGroups.js.map +1 -1
  101. package/dist-esm/src/operations/containers.d.ts +3 -3
  102. package/dist-esm/src/operations/containers.js +20 -20
  103. package/dist-esm/src/operations/containers.js.map +1 -1
  104. package/dist-esm/src/operations/index.d.ts +2 -0
  105. package/dist-esm/src/operations/index.d.ts.map +1 -1
  106. package/dist-esm/src/operations/index.js +2 -0
  107. package/dist-esm/src/operations/index.js.map +1 -1
  108. package/dist-esm/src/operations/location.d.ts +8 -8
  109. package/dist-esm/src/operations/location.js +36 -36
  110. package/dist-esm/src/operations/location.js.map +1 -1
  111. package/dist-esm/src/operations/operations.js +9 -9
  112. package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts +2 -2
  113. package/dist-esm/src/operations/subnetServiceAssociationLink.d.ts.map +1 -1
  114. package/dist-esm/src/operations/subnetServiceAssociationLink.js +11 -11
  115. package/dist-esm/src/operations/subnetServiceAssociationLink.js.map +1 -1
  116. package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.d.ts +27 -0
  117. package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.d.ts.map +1 -0
  118. package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.js +9 -0
  119. package/dist-esm/src/operationsInterfaces/containerGroupProfileOperations.js.map +1 -0
  120. package/dist-esm/src/operationsInterfaces/containerGroupProfiles.d.ts +55 -0
  121. package/dist-esm/src/operationsInterfaces/containerGroupProfiles.d.ts.map +1 -0
  122. package/dist-esm/src/operationsInterfaces/containerGroupProfiles.js +9 -0
  123. package/dist-esm/src/operationsInterfaces/containerGroupProfiles.js.map +1 -0
  124. package/dist-esm/src/operationsInterfaces/containerGroups.d.ts +13 -13
  125. package/dist-esm/src/operationsInterfaces/containers.d.ts +3 -3
  126. package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
  127. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  128. package/dist-esm/src/operationsInterfaces/index.js +2 -0
  129. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  130. package/dist-esm/src/operationsInterfaces/location.d.ts +3 -3
  131. package/dist-esm/src/operationsInterfaces/subnetServiceAssociationLink.d.ts +2 -2
  132. package/dist-esm/test/containerinstance_examples.d.ts.map +1 -1
  133. package/dist-esm/test/containerinstance_examples.js +1 -4
  134. package/dist-esm/test/containerinstance_examples.js.map +1 -1
  135. package/package.json +31 -35
  136. package/review/arm-containerinstance.api.md +155 -3
  137. package/src/containerInstanceManagementClient.ts +29 -20
  138. package/src/lroImpl.ts +3 -3
  139. package/src/models/index.ts +194 -17
  140. package/src/models/mappers.ts +974 -702
  141. package/src/models/parameters.ts +94 -48
  142. package/src/operations/containerGroupProfileOperations.ts +255 -0
  143. package/src/operations/containerGroupProfiles.ts +485 -0
  144. package/src/operations/containerGroups.ts +188 -201
  145. package/src/operations/containers.ts +30 -33
  146. package/src/operations/index.ts +2 -0
  147. package/src/operations/location.ts +63 -66
  148. package/src/operations/operations.ts +16 -16
  149. package/src/operations/subnetServiceAssociationLink.ts +24 -25
  150. package/src/operationsInterfaces/containerGroupProfileOperations.ts +50 -0
  151. package/src/operationsInterfaces/containerGroupProfiles.ts +99 -0
  152. package/src/operationsInterfaces/containerGroups.ts +28 -28
  153. package/src/operationsInterfaces/containers.ts +7 -7
  154. package/src/operationsInterfaces/index.ts +2 -0
  155. package/src/operationsInterfaces/location.ts +7 -7
  156. package/src/operationsInterfaces/operations.ts +1 -1
  157. package/src/operationsInterfaces/subnetServiceAssociationLink.ts +4 -4
  158. package/src/pagingHelper.ts +1 -1
  159. package/types/arm-containerinstance.d.ts +275 -26
package/dist/index.js CHANGED
@@ -194,19 +194,19 @@ const ContainerGroupListResult = {
194
194
  element: {
195
195
  type: {
196
196
  name: "Composite",
197
- className: "ContainerGroup"
198
- }
199
- }
200
- }
197
+ className: "ContainerGroup",
198
+ },
199
+ },
200
+ },
201
201
  },
202
202
  nextLink: {
203
203
  serializedName: "nextLink",
204
204
  type: {
205
- name: "String"
206
- }
207
- }
208
- }
209
- }
205
+ name: "String",
206
+ },
207
+ },
208
+ },
209
+ },
210
210
  };
211
211
  const Resource = {
212
212
  type: {
@@ -217,35 +217,35 @@ const Resource = {
217
217
  serializedName: "id",
218
218
  readOnly: true,
219
219
  type: {
220
- name: "String"
221
- }
220
+ name: "String",
221
+ },
222
222
  },
223
223
  name: {
224
224
  serializedName: "name",
225
225
  readOnly: true,
226
226
  type: {
227
- name: "String"
228
- }
227
+ name: "String",
228
+ },
229
229
  },
230
230
  type: {
231
231
  serializedName: "type",
232
232
  readOnly: true,
233
233
  type: {
234
- name: "String"
235
- }
234
+ name: "String",
235
+ },
236
236
  },
237
237
  location: {
238
238
  serializedName: "location",
239
239
  type: {
240
- name: "String"
241
- }
240
+ name: "String",
241
+ },
242
242
  },
243
243
  tags: {
244
244
  serializedName: "tags",
245
245
  type: {
246
246
  name: "Dictionary",
247
- value: { type: { name: "String" } }
248
- }
247
+ value: { type: { name: "String" } },
248
+ },
249
249
  },
250
250
  zones: {
251
251
  serializedName: "zones",
@@ -253,13 +253,13 @@ const Resource = {
253
253
  name: "Sequence",
254
254
  element: {
255
255
  type: {
256
- name: "String"
257
- }
258
- }
259
- }
260
- }
261
- }
262
- }
256
+ name: "String",
257
+ },
258
+ },
259
+ },
260
+ },
261
+ },
262
+ },
263
263
  };
264
264
  const ContainerGroupProperties = {
265
265
  type: {
@@ -270,15 +270,15 @@ const ContainerGroupProperties = {
270
270
  serializedName: "identity",
271
271
  type: {
272
272
  name: "Composite",
273
- className: "ContainerGroupIdentity"
274
- }
273
+ className: "ContainerGroupIdentity",
274
+ },
275
275
  },
276
276
  provisioningState: {
277
277
  serializedName: "properties.provisioningState",
278
278
  readOnly: true,
279
279
  type: {
280
- name: "String"
281
- }
280
+ name: "String",
281
+ },
282
282
  },
283
283
  containers: {
284
284
  serializedName: "properties.containers",
@@ -288,10 +288,10 @@ const ContainerGroupProperties = {
288
288
  element: {
289
289
  type: {
290
290
  name: "Composite",
291
- className: "Container"
292
- }
293
- }
294
- }
291
+ className: "Container",
292
+ },
293
+ },
294
+ },
295
295
  },
296
296
  imageRegistryCredentials: {
297
297
  serializedName: "properties.imageRegistryCredentials",
@@ -300,30 +300,29 @@ const ContainerGroupProperties = {
300
300
  element: {
301
301
  type: {
302
302
  name: "Composite",
303
- className: "ImageRegistryCredential"
304
- }
305
- }
306
- }
303
+ className: "ImageRegistryCredential",
304
+ },
305
+ },
306
+ },
307
307
  },
308
308
  restartPolicy: {
309
309
  serializedName: "properties.restartPolicy",
310
310
  type: {
311
- name: "String"
312
- }
311
+ name: "String",
312
+ },
313
313
  },
314
314
  ipAddress: {
315
315
  serializedName: "properties.ipAddress",
316
316
  type: {
317
317
  name: "Composite",
318
- className: "IpAddress"
319
- }
318
+ className: "IpAddress",
319
+ },
320
320
  },
321
321
  osType: {
322
322
  serializedName: "properties.osType",
323
- required: true,
324
323
  type: {
325
- name: "String"
326
- }
324
+ name: "String",
325
+ },
327
326
  },
328
327
  volumes: {
329
328
  serializedName: "properties.volumes",
@@ -332,24 +331,24 @@ const ContainerGroupProperties = {
332
331
  element: {
333
332
  type: {
334
333
  name: "Composite",
335
- className: "Volume"
336
- }
337
- }
338
- }
334
+ className: "Volume",
335
+ },
336
+ },
337
+ },
339
338
  },
340
339
  instanceView: {
341
340
  serializedName: "properties.instanceView",
342
341
  type: {
343
342
  name: "Composite",
344
- className: "ContainerGroupPropertiesInstanceView"
345
- }
343
+ className: "ContainerGroupPropertiesInstanceView",
344
+ },
346
345
  },
347
346
  diagnostics: {
348
347
  serializedName: "properties.diagnostics",
349
348
  type: {
350
349
  name: "Composite",
351
- className: "ContainerGroupDiagnostics"
352
- }
350
+ className: "ContainerGroupDiagnostics",
351
+ },
353
352
  },
354
353
  subnetIds: {
355
354
  serializedName: "properties.subnetIds",
@@ -358,30 +357,30 @@ const ContainerGroupProperties = {
358
357
  element: {
359
358
  type: {
360
359
  name: "Composite",
361
- className: "ContainerGroupSubnetId"
362
- }
363
- }
364
- }
360
+ className: "ContainerGroupSubnetId",
361
+ },
362
+ },
363
+ },
365
364
  },
366
365
  dnsConfig: {
367
366
  serializedName: "properties.dnsConfig",
368
367
  type: {
369
368
  name: "Composite",
370
- className: "DnsConfiguration"
371
- }
369
+ className: "DnsConfiguration",
370
+ },
372
371
  },
373
372
  sku: {
374
373
  serializedName: "properties.sku",
375
374
  type: {
376
- name: "String"
377
- }
375
+ name: "String",
376
+ },
378
377
  },
379
378
  encryptionProperties: {
380
379
  serializedName: "properties.encryptionProperties",
381
380
  type: {
382
381
  name: "Composite",
383
- className: "EncryptionProperties"
384
- }
382
+ className: "EncryptionProperties",
383
+ },
385
384
  },
386
385
  initContainers: {
387
386
  serializedName: "properties.initContainers",
@@ -390,10 +389,10 @@ const ContainerGroupProperties = {
390
389
  element: {
391
390
  type: {
392
391
  name: "Composite",
393
- className: "InitContainerDefinition"
394
- }
395
- }
396
- }
392
+ className: "InitContainerDefinition",
393
+ },
394
+ },
395
+ },
397
396
  },
398
397
  extensions: {
399
398
  serializedName: "properties.extensions",
@@ -402,26 +401,47 @@ const ContainerGroupProperties = {
402
401
  element: {
403
402
  type: {
404
403
  name: "Composite",
405
- className: "DeploymentExtensionSpec"
406
- }
407
- }
408
- }
404
+ className: "DeploymentExtensionSpec",
405
+ },
406
+ },
407
+ },
409
408
  },
410
409
  confidentialComputeProperties: {
411
410
  serializedName: "properties.confidentialComputeProperties",
412
411
  type: {
413
412
  name: "Composite",
414
- className: "ConfidentialComputeProperties"
415
- }
413
+ className: "ConfidentialComputeProperties",
414
+ },
416
415
  },
417
416
  priority: {
418
417
  serializedName: "properties.priority",
419
418
  type: {
420
- name: "String"
421
- }
422
- }
423
- }
424
- }
419
+ name: "String",
420
+ },
421
+ },
422
+ containerGroupProfile: {
423
+ serializedName: "properties.containerGroupProfile",
424
+ type: {
425
+ name: "Composite",
426
+ className: "ContainerGroupProfileReferenceDefinition",
427
+ },
428
+ },
429
+ standbyPoolProfile: {
430
+ serializedName: "properties.standbyPoolProfile",
431
+ type: {
432
+ name: "Composite",
433
+ className: "StandbyPoolProfileDefinition",
434
+ },
435
+ },
436
+ isCreatedFromStandbyPool: {
437
+ serializedName: "properties.isCreatedFromStandbyPool",
438
+ readOnly: true,
439
+ type: {
440
+ name: "Boolean",
441
+ },
442
+ },
443
+ },
444
+ },
425
445
  };
426
446
  const ContainerGroupIdentity = {
427
447
  type: {
@@ -432,15 +452,15 @@ const ContainerGroupIdentity = {
432
452
  serializedName: "principalId",
433
453
  readOnly: true,
434
454
  type: {
435
- name: "String"
436
- }
455
+ name: "String",
456
+ },
437
457
  },
438
458
  tenantId: {
439
459
  serializedName: "tenantId",
440
460
  readOnly: true,
441
461
  type: {
442
- name: "String"
443
- }
462
+ name: "String",
463
+ },
444
464
  },
445
465
  type: {
446
466
  serializedName: "type",
@@ -450,21 +470,21 @@ const ContainerGroupIdentity = {
450
470
  "SystemAssigned",
451
471
  "UserAssigned",
452
472
  "SystemAssigned, UserAssigned",
453
- "None"
454
- ]
455
- }
473
+ "None",
474
+ ],
475
+ },
456
476
  },
457
477
  userAssignedIdentities: {
458
478
  serializedName: "userAssignedIdentities",
459
479
  type: {
460
480
  name: "Dictionary",
461
481
  value: {
462
- type: { name: "Composite", className: "UserAssignedIdentities" }
463
- }
464
- }
465
- }
466
- }
467
- }
482
+ type: { name: "Composite", className: "UserAssignedIdentities" },
483
+ },
484
+ },
485
+ },
486
+ },
487
+ },
468
488
  };
469
489
  const UserAssignedIdentities = {
470
490
  type: {
@@ -475,18 +495,18 @@ const UserAssignedIdentities = {
475
495
  serializedName: "principalId",
476
496
  readOnly: true,
477
497
  type: {
478
- name: "String"
479
- }
498
+ name: "String",
499
+ },
480
500
  },
481
501
  clientId: {
482
502
  serializedName: "clientId",
483
503
  readOnly: true,
484
504
  type: {
485
- name: "String"
486
- }
487
- }
488
- }
489
- }
505
+ name: "String",
506
+ },
507
+ },
508
+ },
509
+ },
490
510
  };
491
511
  const Container = {
492
512
  type: {
@@ -497,15 +517,14 @@ const Container = {
497
517
  serializedName: "name",
498
518
  required: true,
499
519
  type: {
500
- name: "String"
501
- }
520
+ name: "String",
521
+ },
502
522
  },
503
523
  image: {
504
524
  serializedName: "properties.image",
505
- required: true,
506
525
  type: {
507
- name: "String"
508
- }
526
+ name: "String",
527
+ },
509
528
  },
510
529
  command: {
511
530
  serializedName: "properties.command",
@@ -513,10 +532,10 @@ const Container = {
513
532
  name: "Sequence",
514
533
  element: {
515
534
  type: {
516
- name: "String"
517
- }
518
- }
519
- }
535
+ name: "String",
536
+ },
537
+ },
538
+ },
520
539
  },
521
540
  ports: {
522
541
  serializedName: "properties.ports",
@@ -525,10 +544,10 @@ const Container = {
525
544
  element: {
526
545
  type: {
527
546
  name: "Composite",
528
- className: "ContainerPort"
529
- }
530
- }
531
- }
547
+ className: "ContainerPort",
548
+ },
549
+ },
550
+ },
532
551
  },
533
552
  environmentVariables: {
534
553
  serializedName: "properties.environmentVariables",
@@ -537,24 +556,24 @@ const Container = {
537
556
  element: {
538
557
  type: {
539
558
  name: "Composite",
540
- className: "EnvironmentVariable"
541
- }
542
- }
543
- }
559
+ className: "EnvironmentVariable",
560
+ },
561
+ },
562
+ },
544
563
  },
545
564
  instanceView: {
546
565
  serializedName: "properties.instanceView",
547
566
  type: {
548
567
  name: "Composite",
549
- className: "ContainerPropertiesInstanceView"
550
- }
568
+ className: "ContainerPropertiesInstanceView",
569
+ },
551
570
  },
552
571
  resources: {
553
572
  serializedName: "properties.resources",
554
573
  type: {
555
574
  name: "Composite",
556
- className: "ResourceRequirements"
557
- }
575
+ className: "ResourceRequirements",
576
+ },
558
577
  },
559
578
  volumeMounts: {
560
579
  serializedName: "properties.volumeMounts",
@@ -563,34 +582,41 @@ const Container = {
563
582
  element: {
564
583
  type: {
565
584
  name: "Composite",
566
- className: "VolumeMount"
567
- }
568
- }
569
- }
585
+ className: "VolumeMount",
586
+ },
587
+ },
588
+ },
570
589
  },
571
590
  livenessProbe: {
572
591
  serializedName: "properties.livenessProbe",
573
592
  type: {
574
593
  name: "Composite",
575
- className: "ContainerProbe"
576
- }
594
+ className: "ContainerProbe",
595
+ },
577
596
  },
578
597
  readinessProbe: {
579
598
  serializedName: "properties.readinessProbe",
580
599
  type: {
581
600
  name: "Composite",
582
- className: "ContainerProbe"
583
- }
601
+ className: "ContainerProbe",
602
+ },
584
603
  },
585
604
  securityContext: {
586
605
  serializedName: "properties.securityContext",
587
606
  type: {
588
607
  name: "Composite",
589
- className: "SecurityContextDefinition"
590
- }
591
- }
592
- }
593
- }
608
+ className: "SecurityContextDefinition",
609
+ },
610
+ },
611
+ configMap: {
612
+ serializedName: "properties.configMap",
613
+ type: {
614
+ name: "Composite",
615
+ className: "ConfigMap",
616
+ },
617
+ },
618
+ },
619
+ },
594
620
  };
595
621
  const ContainerPort = {
596
622
  type: {
@@ -600,18 +626,18 @@ const ContainerPort = {
600
626
  protocol: {
601
627
  serializedName: "protocol",
602
628
  type: {
603
- name: "String"
604
- }
629
+ name: "String",
630
+ },
605
631
  },
606
632
  port: {
607
633
  serializedName: "port",
608
634
  required: true,
609
635
  type: {
610
- name: "Number"
611
- }
612
- }
613
- }
614
- }
636
+ name: "Number",
637
+ },
638
+ },
639
+ },
640
+ },
615
641
  };
616
642
  const EnvironmentVariable = {
617
643
  type: {
@@ -622,23 +648,23 @@ const EnvironmentVariable = {
622
648
  serializedName: "name",
623
649
  required: true,
624
650
  type: {
625
- name: "String"
626
- }
651
+ name: "String",
652
+ },
627
653
  },
628
654
  value: {
629
655
  serializedName: "value",
630
656
  type: {
631
- name: "String"
632
- }
657
+ name: "String",
658
+ },
633
659
  },
634
660
  secureValue: {
635
661
  serializedName: "secureValue",
636
662
  type: {
637
- name: "String"
638
- }
639
- }
640
- }
641
- }
663
+ name: "String",
664
+ },
665
+ },
666
+ },
667
+ },
642
668
  };
643
669
  const ContainerPropertiesInstanceView = {
644
670
  type: {
@@ -649,22 +675,22 @@ const ContainerPropertiesInstanceView = {
649
675
  serializedName: "restartCount",
650
676
  readOnly: true,
651
677
  type: {
652
- name: "Number"
653
- }
678
+ name: "Number",
679
+ },
654
680
  },
655
681
  currentState: {
656
682
  serializedName: "currentState",
657
683
  type: {
658
684
  name: "Composite",
659
- className: "ContainerState"
660
- }
685
+ className: "ContainerState",
686
+ },
661
687
  },
662
688
  previousState: {
663
689
  serializedName: "previousState",
664
690
  type: {
665
691
  name: "Composite",
666
- className: "ContainerState"
667
- }
692
+ className: "ContainerState",
693
+ },
668
694
  },
669
695
  events: {
670
696
  serializedName: "events",
@@ -674,13 +700,13 @@ const ContainerPropertiesInstanceView = {
674
700
  element: {
675
701
  type: {
676
702
  name: "Composite",
677
- className: "Event"
678
- }
679
- }
680
- }
681
- }
682
- }
683
- }
703
+ className: "Event",
704
+ },
705
+ },
706
+ },
707
+ },
708
+ },
709
+ },
684
710
  };
685
711
  const ContainerState = {
686
712
  type: {
@@ -691,39 +717,39 @@ const ContainerState = {
691
717
  serializedName: "state",
692
718
  readOnly: true,
693
719
  type: {
694
- name: "String"
695
- }
720
+ name: "String",
721
+ },
696
722
  },
697
723
  startTime: {
698
724
  serializedName: "startTime",
699
725
  readOnly: true,
700
726
  type: {
701
- name: "DateTime"
702
- }
727
+ name: "DateTime",
728
+ },
703
729
  },
704
730
  exitCode: {
705
731
  serializedName: "exitCode",
706
732
  readOnly: true,
707
733
  type: {
708
- name: "Number"
709
- }
734
+ name: "Number",
735
+ },
710
736
  },
711
737
  finishTime: {
712
738
  serializedName: "finishTime",
713
739
  readOnly: true,
714
740
  type: {
715
- name: "DateTime"
716
- }
741
+ name: "DateTime",
742
+ },
717
743
  },
718
744
  detailStatus: {
719
745
  serializedName: "detailStatus",
720
746
  readOnly: true,
721
747
  type: {
722
- name: "String"
723
- }
724
- }
725
- }
726
- }
748
+ name: "String",
749
+ },
750
+ },
751
+ },
752
+ },
727
753
  };
728
754
  const Event = {
729
755
  type: {
@@ -734,46 +760,46 @@ const Event = {
734
760
  serializedName: "count",
735
761
  readOnly: true,
736
762
  type: {
737
- name: "Number"
738
- }
763
+ name: "Number",
764
+ },
739
765
  },
740
766
  firstTimestamp: {
741
767
  serializedName: "firstTimestamp",
742
768
  readOnly: true,
743
769
  type: {
744
- name: "DateTime"
745
- }
770
+ name: "DateTime",
771
+ },
746
772
  },
747
773
  lastTimestamp: {
748
774
  serializedName: "lastTimestamp",
749
775
  readOnly: true,
750
776
  type: {
751
- name: "DateTime"
752
- }
777
+ name: "DateTime",
778
+ },
753
779
  },
754
780
  name: {
755
781
  serializedName: "name",
756
782
  readOnly: true,
757
783
  type: {
758
- name: "String"
759
- }
784
+ name: "String",
785
+ },
760
786
  },
761
787
  message: {
762
788
  serializedName: "message",
763
789
  readOnly: true,
764
790
  type: {
765
- name: "String"
766
- }
791
+ name: "String",
792
+ },
767
793
  },
768
794
  type: {
769
795
  serializedName: "type",
770
796
  readOnly: true,
771
797
  type: {
772
- name: "String"
773
- }
774
- }
775
- }
776
- }
798
+ name: "String",
799
+ },
800
+ },
801
+ },
802
+ },
777
803
  };
778
804
  const ResourceRequirements = {
779
805
  type: {
@@ -784,18 +810,18 @@ const ResourceRequirements = {
784
810
  serializedName: "requests",
785
811
  type: {
786
812
  name: "Composite",
787
- className: "ResourceRequests"
788
- }
813
+ className: "ResourceRequests",
814
+ },
789
815
  },
790
816
  limits: {
791
817
  serializedName: "limits",
792
818
  type: {
793
819
  name: "Composite",
794
- className: "ResourceLimits"
795
- }
796
- }
797
- }
798
- }
820
+ className: "ResourceLimits",
821
+ },
822
+ },
823
+ },
824
+ },
799
825
  };
800
826
  const ResourceRequests = {
801
827
  type: {
@@ -806,25 +832,25 @@ const ResourceRequests = {
806
832
  serializedName: "memoryInGB",
807
833
  required: true,
808
834
  type: {
809
- name: "Number"
810
- }
835
+ name: "Number",
836
+ },
811
837
  },
812
838
  cpu: {
813
839
  serializedName: "cpu",
814
840
  required: true,
815
841
  type: {
816
- name: "Number"
817
- }
842
+ name: "Number",
843
+ },
818
844
  },
819
845
  gpu: {
820
846
  serializedName: "gpu",
821
847
  type: {
822
848
  name: "Composite",
823
- className: "GpuResource"
824
- }
825
- }
826
- }
827
- }
849
+ className: "GpuResource",
850
+ },
851
+ },
852
+ },
853
+ },
828
854
  };
829
855
  const GpuResource = {
830
856
  type: {
@@ -835,18 +861,18 @@ const GpuResource = {
835
861
  serializedName: "count",
836
862
  required: true,
837
863
  type: {
838
- name: "Number"
839
- }
864
+ name: "Number",
865
+ },
840
866
  },
841
867
  sku: {
842
868
  serializedName: "sku",
843
869
  required: true,
844
870
  type: {
845
- name: "String"
846
- }
847
- }
848
- }
849
- }
871
+ name: "String",
872
+ },
873
+ },
874
+ },
875
+ },
850
876
  };
851
877
  const ResourceLimits = {
852
878
  type: {
@@ -856,24 +882,24 @@ const ResourceLimits = {
856
882
  memoryInGB: {
857
883
  serializedName: "memoryInGB",
858
884
  type: {
859
- name: "Number"
860
- }
885
+ name: "Number",
886
+ },
861
887
  },
862
888
  cpu: {
863
889
  serializedName: "cpu",
864
890
  type: {
865
- name: "Number"
866
- }
891
+ name: "Number",
892
+ },
867
893
  },
868
894
  gpu: {
869
895
  serializedName: "gpu",
870
896
  type: {
871
897
  name: "Composite",
872
- className: "GpuResource"
873
- }
874
- }
875
- }
876
- }
898
+ className: "GpuResource",
899
+ },
900
+ },
901
+ },
902
+ },
877
903
  };
878
904
  const VolumeMount = {
879
905
  type: {
@@ -884,24 +910,24 @@ const VolumeMount = {
884
910
  serializedName: "name",
885
911
  required: true,
886
912
  type: {
887
- name: "String"
888
- }
913
+ name: "String",
914
+ },
889
915
  },
890
916
  mountPath: {
891
917
  serializedName: "mountPath",
892
918
  required: true,
893
919
  type: {
894
- name: "String"
895
- }
920
+ name: "String",
921
+ },
896
922
  },
897
923
  readOnly: {
898
924
  serializedName: "readOnly",
899
925
  type: {
900
- name: "Boolean"
901
- }
902
- }
903
- }
904
- }
926
+ name: "Boolean",
927
+ },
928
+ },
929
+ },
930
+ },
905
931
  };
906
932
  const ContainerProbe = {
907
933
  type: {
@@ -912,48 +938,48 @@ const ContainerProbe = {
912
938
  serializedName: "exec",
913
939
  type: {
914
940
  name: "Composite",
915
- className: "ContainerExec"
916
- }
941
+ className: "ContainerExec",
942
+ },
917
943
  },
918
944
  httpGet: {
919
945
  serializedName: "httpGet",
920
946
  type: {
921
947
  name: "Composite",
922
- className: "ContainerHttpGet"
923
- }
948
+ className: "ContainerHttpGet",
949
+ },
924
950
  },
925
951
  initialDelaySeconds: {
926
952
  serializedName: "initialDelaySeconds",
927
953
  type: {
928
- name: "Number"
929
- }
954
+ name: "Number",
955
+ },
930
956
  },
931
957
  periodSeconds: {
932
958
  serializedName: "periodSeconds",
933
959
  type: {
934
- name: "Number"
935
- }
960
+ name: "Number",
961
+ },
936
962
  },
937
963
  failureThreshold: {
938
964
  serializedName: "failureThreshold",
939
965
  type: {
940
- name: "Number"
941
- }
966
+ name: "Number",
967
+ },
942
968
  },
943
969
  successThreshold: {
944
970
  serializedName: "successThreshold",
945
971
  type: {
946
- name: "Number"
947
- }
972
+ name: "Number",
973
+ },
948
974
  },
949
975
  timeoutSeconds: {
950
976
  serializedName: "timeoutSeconds",
951
977
  type: {
952
- name: "Number"
953
- }
954
- }
955
- }
956
- }
978
+ name: "Number",
979
+ },
980
+ },
981
+ },
982
+ },
957
983
  };
958
984
  const ContainerExec = {
959
985
  type: {
@@ -966,13 +992,13 @@ const ContainerExec = {
966
992
  name: "Sequence",
967
993
  element: {
968
994
  type: {
969
- name: "String"
970
- }
971
- }
972
- }
973
- }
974
- }
975
- }
995
+ name: "String",
996
+ },
997
+ },
998
+ },
999
+ },
1000
+ },
1001
+ },
976
1002
  };
977
1003
  const ContainerHttpGet = {
978
1004
  type: {
@@ -982,21 +1008,21 @@ const ContainerHttpGet = {
982
1008
  path: {
983
1009
  serializedName: "path",
984
1010
  type: {
985
- name: "String"
986
- }
1011
+ name: "String",
1012
+ },
987
1013
  },
988
1014
  port: {
989
1015
  serializedName: "port",
990
1016
  required: true,
991
1017
  type: {
992
- name: "Number"
993
- }
1018
+ name: "Number",
1019
+ },
994
1020
  },
995
1021
  scheme: {
996
1022
  serializedName: "scheme",
997
1023
  type: {
998
- name: "String"
999
- }
1024
+ name: "String",
1025
+ },
1000
1026
  },
1001
1027
  httpHeaders: {
1002
1028
  serializedName: "httpHeaders",
@@ -1005,13 +1031,13 @@ const ContainerHttpGet = {
1005
1031
  element: {
1006
1032
  type: {
1007
1033
  name: "Composite",
1008
- className: "HttpHeader"
1009
- }
1010
- }
1011
- }
1012
- }
1013
- }
1014
- }
1034
+ className: "HttpHeader",
1035
+ },
1036
+ },
1037
+ },
1038
+ },
1039
+ },
1040
+ },
1015
1041
  };
1016
1042
  const HttpHeader = {
1017
1043
  type: {
@@ -1021,17 +1047,17 @@ const HttpHeader = {
1021
1047
  name: {
1022
1048
  serializedName: "name",
1023
1049
  type: {
1024
- name: "String"
1025
- }
1050
+ name: "String",
1051
+ },
1026
1052
  },
1027
1053
  value: {
1028
1054
  serializedName: "value",
1029
1055
  type: {
1030
- name: "String"
1031
- }
1032
- }
1033
- }
1034
- }
1056
+ name: "String",
1057
+ },
1058
+ },
1059
+ },
1060
+ },
1035
1061
  };
1036
1062
  const SecurityContextDefinition = {
1037
1063
  type: {
@@ -1041,42 +1067,42 @@ const SecurityContextDefinition = {
1041
1067
  privileged: {
1042
1068
  serializedName: "privileged",
1043
1069
  type: {
1044
- name: "Boolean"
1045
- }
1070
+ name: "Boolean",
1071
+ },
1046
1072
  },
1047
1073
  allowPrivilegeEscalation: {
1048
1074
  serializedName: "allowPrivilegeEscalation",
1049
1075
  type: {
1050
- name: "Boolean"
1051
- }
1076
+ name: "Boolean",
1077
+ },
1052
1078
  },
1053
1079
  capabilities: {
1054
1080
  serializedName: "capabilities",
1055
1081
  type: {
1056
1082
  name: "Composite",
1057
- className: "SecurityContextCapabilitiesDefinition"
1058
- }
1083
+ className: "SecurityContextCapabilitiesDefinition",
1084
+ },
1059
1085
  },
1060
1086
  runAsGroup: {
1061
1087
  serializedName: "runAsGroup",
1062
1088
  type: {
1063
- name: "Number"
1064
- }
1089
+ name: "Number",
1090
+ },
1065
1091
  },
1066
1092
  runAsUser: {
1067
1093
  serializedName: "runAsUser",
1068
1094
  type: {
1069
- name: "Number"
1070
- }
1095
+ name: "Number",
1096
+ },
1071
1097
  },
1072
1098
  seccompProfile: {
1073
1099
  serializedName: "seccompProfile",
1074
1100
  type: {
1075
- name: "String"
1076
- }
1077
- }
1078
- }
1079
- }
1101
+ name: "String",
1102
+ },
1103
+ },
1104
+ },
1105
+ },
1080
1106
  };
1081
1107
  const SecurityContextCapabilitiesDefinition = {
1082
1108
  type: {
@@ -1089,10 +1115,10 @@ const SecurityContextCapabilitiesDefinition = {
1089
1115
  name: "Sequence",
1090
1116
  element: {
1091
1117
  type: {
1092
- name: "String"
1093
- }
1094
- }
1095
- }
1118
+ name: "String",
1119
+ },
1120
+ },
1121
+ },
1096
1122
  },
1097
1123
  drop: {
1098
1124
  serializedName: "drop",
@@ -1100,13 +1126,28 @@ const SecurityContextCapabilitiesDefinition = {
1100
1126
  name: "Sequence",
1101
1127
  element: {
1102
1128
  type: {
1103
- name: "String"
1104
- }
1105
- }
1106
- }
1107
- }
1108
- }
1109
- }
1129
+ name: "String",
1130
+ },
1131
+ },
1132
+ },
1133
+ },
1134
+ },
1135
+ },
1136
+ };
1137
+ const ConfigMap = {
1138
+ type: {
1139
+ name: "Composite",
1140
+ className: "ConfigMap",
1141
+ modelProperties: {
1142
+ keyValuePairs: {
1143
+ serializedName: "keyValuePairs",
1144
+ type: {
1145
+ name: "Dictionary",
1146
+ value: { type: { name: "String" } },
1147
+ },
1148
+ },
1149
+ },
1150
+ },
1110
1151
  };
1111
1152
  const ImageRegistryCredential = {
1112
1153
  type: {
@@ -1117,35 +1158,35 @@ const ImageRegistryCredential = {
1117
1158
  serializedName: "server",
1118
1159
  required: true,
1119
1160
  type: {
1120
- name: "String"
1121
- }
1161
+ name: "String",
1162
+ },
1122
1163
  },
1123
1164
  username: {
1124
1165
  serializedName: "username",
1125
1166
  type: {
1126
- name: "String"
1127
- }
1167
+ name: "String",
1168
+ },
1128
1169
  },
1129
1170
  password: {
1130
1171
  serializedName: "password",
1131
1172
  type: {
1132
- name: "String"
1133
- }
1173
+ name: "String",
1174
+ },
1134
1175
  },
1135
1176
  identity: {
1136
1177
  serializedName: "identity",
1137
1178
  type: {
1138
- name: "String"
1139
- }
1179
+ name: "String",
1180
+ },
1140
1181
  },
1141
1182
  identityUrl: {
1142
1183
  serializedName: "identityUrl",
1143
1184
  type: {
1144
- name: "String"
1145
- }
1146
- }
1147
- }
1148
- }
1185
+ name: "String",
1186
+ },
1187
+ },
1188
+ },
1189
+ },
1149
1190
  };
1150
1191
  const IpAddress = {
1151
1192
  type: {
@@ -1160,46 +1201,46 @@ const IpAddress = {
1160
1201
  element: {
1161
1202
  type: {
1162
1203
  name: "Composite",
1163
- className: "Port"
1164
- }
1165
- }
1166
- }
1204
+ className: "Port",
1205
+ },
1206
+ },
1207
+ },
1167
1208
  },
1168
1209
  type: {
1169
1210
  serializedName: "type",
1170
1211
  required: true,
1171
1212
  type: {
1172
- name: "String"
1173
- }
1213
+ name: "String",
1214
+ },
1174
1215
  },
1175
1216
  ip: {
1176
1217
  serializedName: "ip",
1177
1218
  type: {
1178
- name: "String"
1179
- }
1219
+ name: "String",
1220
+ },
1180
1221
  },
1181
1222
  dnsNameLabel: {
1182
1223
  serializedName: "dnsNameLabel",
1183
1224
  type: {
1184
- name: "String"
1185
- }
1225
+ name: "String",
1226
+ },
1186
1227
  },
1187
1228
  autoGeneratedDomainNameLabelScope: {
1188
1229
  defaultValue: "Unsecure",
1189
1230
  serializedName: "autoGeneratedDomainNameLabelScope",
1190
1231
  type: {
1191
- name: "String"
1192
- }
1232
+ name: "String",
1233
+ },
1193
1234
  },
1194
1235
  fqdn: {
1195
1236
  serializedName: "fqdn",
1196
1237
  readOnly: true,
1197
1238
  type: {
1198
- name: "String"
1199
- }
1200
- }
1201
- }
1202
- }
1239
+ name: "String",
1240
+ },
1241
+ },
1242
+ },
1243
+ },
1203
1244
  };
1204
1245
  const Port = {
1205
1246
  type: {
@@ -1209,18 +1250,18 @@ const Port = {
1209
1250
  protocol: {
1210
1251
  serializedName: "protocol",
1211
1252
  type: {
1212
- name: "String"
1213
- }
1253
+ name: "String",
1254
+ },
1214
1255
  },
1215
1256
  port: {
1216
1257
  serializedName: "port",
1217
1258
  required: true,
1218
1259
  type: {
1219
- name: "Number"
1220
- }
1221
- }
1222
- }
1223
- }
1260
+ name: "Number",
1261
+ },
1262
+ },
1263
+ },
1264
+ },
1224
1265
  };
1225
1266
  const Volume = {
1226
1267
  type: {
@@ -1231,39 +1272,39 @@ const Volume = {
1231
1272
  serializedName: "name",
1232
1273
  required: true,
1233
1274
  type: {
1234
- name: "String"
1235
- }
1275
+ name: "String",
1276
+ },
1236
1277
  },
1237
1278
  azureFile: {
1238
1279
  serializedName: "azureFile",
1239
1280
  type: {
1240
1281
  name: "Composite",
1241
- className: "AzureFileVolume"
1242
- }
1282
+ className: "AzureFileVolume",
1283
+ },
1243
1284
  },
1244
1285
  emptyDir: {
1245
1286
  serializedName: "emptyDir",
1246
1287
  type: {
1247
1288
  name: "Dictionary",
1248
- value: { type: { name: "any" } }
1249
- }
1289
+ value: { type: { name: "any" } },
1290
+ },
1250
1291
  },
1251
1292
  secret: {
1252
1293
  serializedName: "secret",
1253
1294
  type: {
1254
1295
  name: "Dictionary",
1255
- value: { type: { name: "String" } }
1256
- }
1296
+ value: { type: { name: "String" } },
1297
+ },
1257
1298
  },
1258
1299
  gitRepo: {
1259
1300
  serializedName: "gitRepo",
1260
1301
  type: {
1261
1302
  name: "Composite",
1262
- className: "GitRepoVolume"
1263
- }
1264
- }
1265
- }
1266
- }
1303
+ className: "GitRepoVolume",
1304
+ },
1305
+ },
1306
+ },
1307
+ },
1267
1308
  };
1268
1309
  const AzureFileVolume = {
1269
1310
  type: {
@@ -1274,30 +1315,30 @@ const AzureFileVolume = {
1274
1315
  serializedName: "shareName",
1275
1316
  required: true,
1276
1317
  type: {
1277
- name: "String"
1278
- }
1318
+ name: "String",
1319
+ },
1279
1320
  },
1280
1321
  readOnly: {
1281
1322
  serializedName: "readOnly",
1282
1323
  type: {
1283
- name: "Boolean"
1284
- }
1324
+ name: "Boolean",
1325
+ },
1285
1326
  },
1286
1327
  storageAccountName: {
1287
1328
  serializedName: "storageAccountName",
1288
1329
  required: true,
1289
1330
  type: {
1290
- name: "String"
1291
- }
1331
+ name: "String",
1332
+ },
1292
1333
  },
1293
1334
  storageAccountKey: {
1294
1335
  serializedName: "storageAccountKey",
1295
1336
  type: {
1296
- name: "String"
1297
- }
1298
- }
1299
- }
1300
- }
1337
+ name: "String",
1338
+ },
1339
+ },
1340
+ },
1341
+ },
1301
1342
  };
1302
1343
  const GitRepoVolume = {
1303
1344
  type: {
@@ -1307,24 +1348,24 @@ const GitRepoVolume = {
1307
1348
  directory: {
1308
1349
  serializedName: "directory",
1309
1350
  type: {
1310
- name: "String"
1311
- }
1351
+ name: "String",
1352
+ },
1312
1353
  },
1313
1354
  repository: {
1314
1355
  serializedName: "repository",
1315
1356
  required: true,
1316
1357
  type: {
1317
- name: "String"
1318
- }
1358
+ name: "String",
1359
+ },
1319
1360
  },
1320
1361
  revision: {
1321
1362
  serializedName: "revision",
1322
1363
  type: {
1323
- name: "String"
1324
- }
1325
- }
1326
- }
1327
- }
1364
+ name: "String",
1365
+ },
1366
+ },
1367
+ },
1368
+ },
1328
1369
  };
1329
1370
  const ContainerGroupPropertiesInstanceView = {
1330
1371
  type: {
@@ -1339,20 +1380,20 @@ const ContainerGroupPropertiesInstanceView = {
1339
1380
  element: {
1340
1381
  type: {
1341
1382
  name: "Composite",
1342
- className: "Event"
1343
- }
1344
- }
1345
- }
1383
+ className: "Event",
1384
+ },
1385
+ },
1386
+ },
1346
1387
  },
1347
1388
  state: {
1348
1389
  serializedName: "state",
1349
1390
  readOnly: true,
1350
1391
  type: {
1351
- name: "String"
1352
- }
1353
- }
1354
- }
1355
- }
1392
+ name: "String",
1393
+ },
1394
+ },
1395
+ },
1396
+ },
1356
1397
  };
1357
1398
  const ContainerGroupDiagnostics = {
1358
1399
  type: {
@@ -1363,11 +1404,11 @@ const ContainerGroupDiagnostics = {
1363
1404
  serializedName: "logAnalytics",
1364
1405
  type: {
1365
1406
  name: "Composite",
1366
- className: "LogAnalytics"
1367
- }
1368
- }
1369
- }
1370
- }
1407
+ className: "LogAnalytics",
1408
+ },
1409
+ },
1410
+ },
1411
+ },
1371
1412
  };
1372
1413
  const LogAnalytics = {
1373
1414
  type: {
@@ -1378,37 +1419,37 @@ const LogAnalytics = {
1378
1419
  serializedName: "workspaceId",
1379
1420
  required: true,
1380
1421
  type: {
1381
- name: "String"
1382
- }
1422
+ name: "String",
1423
+ },
1383
1424
  },
1384
1425
  workspaceKey: {
1385
1426
  serializedName: "workspaceKey",
1386
1427
  required: true,
1387
1428
  type: {
1388
- name: "String"
1389
- }
1429
+ name: "String",
1430
+ },
1390
1431
  },
1391
1432
  logType: {
1392
1433
  serializedName: "logType",
1393
1434
  type: {
1394
- name: "String"
1395
- }
1435
+ name: "String",
1436
+ },
1396
1437
  },
1397
1438
  metadata: {
1398
1439
  serializedName: "metadata",
1399
1440
  type: {
1400
1441
  name: "Dictionary",
1401
- value: { type: { name: "String" } }
1402
- }
1442
+ value: { type: { name: "String" } },
1443
+ },
1403
1444
  },
1404
1445
  workspaceResourceId: {
1405
1446
  serializedName: "workspaceResourceId",
1406
1447
  type: {
1407
- name: "String"
1408
- }
1409
- }
1410
- }
1411
- }
1448
+ name: "String",
1449
+ },
1450
+ },
1451
+ },
1452
+ },
1412
1453
  };
1413
1454
  const ContainerGroupSubnetId = {
1414
1455
  type: {
@@ -1419,17 +1460,17 @@ const ContainerGroupSubnetId = {
1419
1460
  serializedName: "id",
1420
1461
  required: true,
1421
1462
  type: {
1422
- name: "String"
1423
- }
1463
+ name: "String",
1464
+ },
1424
1465
  },
1425
1466
  name: {
1426
1467
  serializedName: "name",
1427
1468
  type: {
1428
- name: "String"
1429
- }
1430
- }
1431
- }
1432
- }
1469
+ name: "String",
1470
+ },
1471
+ },
1472
+ },
1473
+ },
1433
1474
  };
1434
1475
  const DnsConfiguration = {
1435
1476
  type: {
@@ -1443,25 +1484,25 @@ const DnsConfiguration = {
1443
1484
  name: "Sequence",
1444
1485
  element: {
1445
1486
  type: {
1446
- name: "String"
1447
- }
1448
- }
1449
- }
1487
+ name: "String",
1488
+ },
1489
+ },
1490
+ },
1450
1491
  },
1451
1492
  searchDomains: {
1452
1493
  serializedName: "searchDomains",
1453
1494
  type: {
1454
- name: "String"
1455
- }
1495
+ name: "String",
1496
+ },
1456
1497
  },
1457
1498
  options: {
1458
1499
  serializedName: "options",
1459
1500
  type: {
1460
- name: "String"
1461
- }
1462
- }
1463
- }
1464
- }
1501
+ name: "String",
1502
+ },
1503
+ },
1504
+ },
1505
+ },
1465
1506
  };
1466
1507
  const EncryptionProperties = {
1467
1508
  type: {
@@ -1472,31 +1513,31 @@ const EncryptionProperties = {
1472
1513
  serializedName: "vaultBaseUrl",
1473
1514
  required: true,
1474
1515
  type: {
1475
- name: "String"
1476
- }
1516
+ name: "String",
1517
+ },
1477
1518
  },
1478
1519
  keyName: {
1479
1520
  serializedName: "keyName",
1480
1521
  required: true,
1481
1522
  type: {
1482
- name: "String"
1483
- }
1523
+ name: "String",
1524
+ },
1484
1525
  },
1485
1526
  keyVersion: {
1486
1527
  serializedName: "keyVersion",
1487
1528
  required: true,
1488
1529
  type: {
1489
- name: "String"
1490
- }
1530
+ name: "String",
1531
+ },
1491
1532
  },
1492
1533
  identity: {
1493
1534
  serializedName: "identity",
1494
1535
  type: {
1495
- name: "String"
1496
- }
1497
- }
1498
- }
1499
- }
1536
+ name: "String",
1537
+ },
1538
+ },
1539
+ },
1540
+ },
1500
1541
  };
1501
1542
  const InitContainerDefinition = {
1502
1543
  type: {
@@ -1507,14 +1548,14 @@ const InitContainerDefinition = {
1507
1548
  serializedName: "name",
1508
1549
  required: true,
1509
1550
  type: {
1510
- name: "String"
1511
- }
1551
+ name: "String",
1552
+ },
1512
1553
  },
1513
1554
  image: {
1514
1555
  serializedName: "properties.image",
1515
1556
  type: {
1516
- name: "String"
1517
- }
1557
+ name: "String",
1558
+ },
1518
1559
  },
1519
1560
  command: {
1520
1561
  serializedName: "properties.command",
@@ -1522,10 +1563,10 @@ const InitContainerDefinition = {
1522
1563
  name: "Sequence",
1523
1564
  element: {
1524
1565
  type: {
1525
- name: "String"
1526
- }
1527
- }
1528
- }
1566
+ name: "String",
1567
+ },
1568
+ },
1569
+ },
1529
1570
  },
1530
1571
  environmentVariables: {
1531
1572
  serializedName: "properties.environmentVariables",
@@ -1534,17 +1575,17 @@ const InitContainerDefinition = {
1534
1575
  element: {
1535
1576
  type: {
1536
1577
  name: "Composite",
1537
- className: "EnvironmentVariable"
1538
- }
1539
- }
1540
- }
1578
+ className: "EnvironmentVariable",
1579
+ },
1580
+ },
1581
+ },
1541
1582
  },
1542
1583
  instanceView: {
1543
1584
  serializedName: "properties.instanceView",
1544
1585
  type: {
1545
1586
  name: "Composite",
1546
- className: "InitContainerPropertiesDefinitionInstanceView"
1547
- }
1587
+ className: "InitContainerPropertiesDefinitionInstanceView",
1588
+ },
1548
1589
  },
1549
1590
  volumeMounts: {
1550
1591
  serializedName: "properties.volumeMounts",
@@ -1553,20 +1594,20 @@ const InitContainerDefinition = {
1553
1594
  element: {
1554
1595
  type: {
1555
1596
  name: "Composite",
1556
- className: "VolumeMount"
1557
- }
1558
- }
1559
- }
1597
+ className: "VolumeMount",
1598
+ },
1599
+ },
1600
+ },
1560
1601
  },
1561
1602
  securityContext: {
1562
1603
  serializedName: "properties.securityContext",
1563
1604
  type: {
1564
1605
  name: "Composite",
1565
- className: "SecurityContextDefinition"
1566
- }
1567
- }
1568
- }
1569
- }
1606
+ className: "SecurityContextDefinition",
1607
+ },
1608
+ },
1609
+ },
1610
+ },
1570
1611
  };
1571
1612
  const InitContainerPropertiesDefinitionInstanceView = {
1572
1613
  type: {
@@ -1577,22 +1618,22 @@ const InitContainerPropertiesDefinitionInstanceView = {
1577
1618
  serializedName: "restartCount",
1578
1619
  readOnly: true,
1579
1620
  type: {
1580
- name: "Number"
1581
- }
1621
+ name: "Number",
1622
+ },
1582
1623
  },
1583
1624
  currentState: {
1584
1625
  serializedName: "currentState",
1585
1626
  type: {
1586
1627
  name: "Composite",
1587
- className: "ContainerState"
1588
- }
1628
+ className: "ContainerState",
1629
+ },
1589
1630
  },
1590
1631
  previousState: {
1591
1632
  serializedName: "previousState",
1592
1633
  type: {
1593
1634
  name: "Composite",
1594
- className: "ContainerState"
1595
- }
1635
+ className: "ContainerState",
1636
+ },
1596
1637
  },
1597
1638
  events: {
1598
1639
  serializedName: "events",
@@ -1602,13 +1643,13 @@ const InitContainerPropertiesDefinitionInstanceView = {
1602
1643
  element: {
1603
1644
  type: {
1604
1645
  name: "Composite",
1605
- className: "Event"
1606
- }
1607
- }
1608
- }
1609
- }
1610
- }
1611
- }
1646
+ className: "Event",
1647
+ },
1648
+ },
1649
+ },
1650
+ },
1651
+ },
1652
+ },
1612
1653
  };
1613
1654
  const DeploymentExtensionSpec = {
1614
1655
  type: {
@@ -1619,37 +1660,37 @@ const DeploymentExtensionSpec = {
1619
1660
  serializedName: "name",
1620
1661
  required: true,
1621
1662
  type: {
1622
- name: "String"
1623
- }
1663
+ name: "String",
1664
+ },
1624
1665
  },
1625
1666
  extensionType: {
1626
1667
  serializedName: "properties.extensionType",
1627
1668
  type: {
1628
- name: "String"
1629
- }
1669
+ name: "String",
1670
+ },
1630
1671
  },
1631
1672
  version: {
1632
1673
  serializedName: "properties.version",
1633
1674
  type: {
1634
- name: "String"
1635
- }
1675
+ name: "String",
1676
+ },
1636
1677
  },
1637
1678
  settings: {
1638
1679
  serializedName: "properties.settings",
1639
1680
  type: {
1640
1681
  name: "Dictionary",
1641
- value: { type: { name: "any" } }
1642
- }
1682
+ value: { type: { name: "any" } },
1683
+ },
1643
1684
  },
1644
1685
  protectedSettings: {
1645
1686
  serializedName: "properties.protectedSettings",
1646
1687
  type: {
1647
1688
  name: "Dictionary",
1648
- value: { type: { name: "any" } }
1649
- }
1650
- }
1651
- }
1652
- }
1689
+ value: { type: { name: "any" } },
1690
+ },
1691
+ },
1692
+ },
1693
+ },
1653
1694
  };
1654
1695
  const ConfidentialComputeProperties = {
1655
1696
  type: {
@@ -1659,11 +1700,51 @@ const ConfidentialComputeProperties = {
1659
1700
  ccePolicy: {
1660
1701
  serializedName: "ccePolicy",
1661
1702
  type: {
1662
- name: "String"
1663
- }
1664
- }
1665
- }
1666
- }
1703
+ name: "String",
1704
+ },
1705
+ },
1706
+ },
1707
+ },
1708
+ };
1709
+ const ContainerGroupProfileReferenceDefinition = {
1710
+ type: {
1711
+ name: "Composite",
1712
+ className: "ContainerGroupProfileReferenceDefinition",
1713
+ modelProperties: {
1714
+ id: {
1715
+ serializedName: "id",
1716
+ type: {
1717
+ name: "String",
1718
+ },
1719
+ },
1720
+ revision: {
1721
+ serializedName: "revision",
1722
+ type: {
1723
+ name: "Number",
1724
+ },
1725
+ },
1726
+ },
1727
+ },
1728
+ };
1729
+ const StandbyPoolProfileDefinition = {
1730
+ type: {
1731
+ name: "Composite",
1732
+ className: "StandbyPoolProfileDefinition",
1733
+ modelProperties: {
1734
+ id: {
1735
+ serializedName: "id",
1736
+ type: {
1737
+ name: "String",
1738
+ },
1739
+ },
1740
+ failContainerGroupCreateOnReuseFailure: {
1741
+ serializedName: "failContainerGroupCreateOnReuseFailure",
1742
+ type: {
1743
+ name: "Boolean",
1744
+ },
1745
+ },
1746
+ },
1747
+ },
1667
1748
  };
1668
1749
  const CloudError = {
1669
1750
  type: {
@@ -1674,11 +1755,11 @@ const CloudError = {
1674
1755
  serializedName: "error",
1675
1756
  type: {
1676
1757
  name: "Composite",
1677
- className: "CloudErrorBody"
1678
- }
1679
- }
1680
- }
1681
- }
1758
+ className: "CloudErrorBody",
1759
+ },
1760
+ },
1761
+ },
1762
+ },
1682
1763
  };
1683
1764
  const CloudErrorBody = {
1684
1765
  type: {
@@ -1688,20 +1769,20 @@ const CloudErrorBody = {
1688
1769
  code: {
1689
1770
  serializedName: "code",
1690
1771
  type: {
1691
- name: "String"
1692
- }
1772
+ name: "String",
1773
+ },
1693
1774
  },
1694
1775
  message: {
1695
1776
  serializedName: "message",
1696
1777
  type: {
1697
- name: "String"
1698
- }
1778
+ name: "String",
1779
+ },
1699
1780
  },
1700
1781
  target: {
1701
1782
  serializedName: "target",
1702
1783
  type: {
1703
- name: "String"
1704
- }
1784
+ name: "String",
1785
+ },
1705
1786
  },
1706
1787
  details: {
1707
1788
  serializedName: "details",
@@ -1710,13 +1791,13 @@ const CloudErrorBody = {
1710
1791
  element: {
1711
1792
  type: {
1712
1793
  name: "Composite",
1713
- className: "CloudErrorBody"
1714
- }
1715
- }
1716
- }
1717
- }
1718
- }
1719
- }
1794
+ className: "CloudErrorBody",
1795
+ },
1796
+ },
1797
+ },
1798
+ },
1799
+ },
1800
+ },
1720
1801
  };
1721
1802
  const OperationListResult = {
1722
1803
  type: {
@@ -1730,19 +1811,19 @@ const OperationListResult = {
1730
1811
  element: {
1731
1812
  type: {
1732
1813
  name: "Composite",
1733
- className: "Operation"
1734
- }
1735
- }
1736
- }
1814
+ className: "Operation",
1815
+ },
1816
+ },
1817
+ },
1737
1818
  },
1738
1819
  nextLink: {
1739
1820
  serializedName: "nextLink",
1740
1821
  type: {
1741
- name: "String"
1742
- }
1743
- }
1744
- }
1745
- }
1822
+ name: "String",
1823
+ },
1824
+ },
1825
+ },
1826
+ },
1746
1827
  };
1747
1828
  const Operation = {
1748
1829
  type: {
@@ -1753,31 +1834,31 @@ const Operation = {
1753
1834
  serializedName: "name",
1754
1835
  required: true,
1755
1836
  type: {
1756
- name: "String"
1757
- }
1837
+ name: "String",
1838
+ },
1758
1839
  },
1759
1840
  display: {
1760
1841
  serializedName: "display",
1761
1842
  type: {
1762
1843
  name: "Composite",
1763
- className: "OperationDisplay"
1764
- }
1844
+ className: "OperationDisplay",
1845
+ },
1765
1846
  },
1766
1847
  properties: {
1767
1848
  serializedName: "properties",
1768
1849
  type: {
1769
1850
  name: "Dictionary",
1770
- value: { type: { name: "any" } }
1771
- }
1851
+ value: { type: { name: "any" } },
1852
+ },
1772
1853
  },
1773
1854
  origin: {
1774
1855
  serializedName: "origin",
1775
1856
  type: {
1776
- name: "String"
1777
- }
1778
- }
1779
- }
1780
- }
1857
+ name: "String",
1858
+ },
1859
+ },
1860
+ },
1861
+ },
1781
1862
  };
1782
1863
  const OperationDisplay = {
1783
1864
  type: {
@@ -1787,29 +1868,29 @@ const OperationDisplay = {
1787
1868
  provider: {
1788
1869
  serializedName: "provider",
1789
1870
  type: {
1790
- name: "String"
1791
- }
1871
+ name: "String",
1872
+ },
1792
1873
  },
1793
1874
  resource: {
1794
1875
  serializedName: "resource",
1795
1876
  type: {
1796
- name: "String"
1797
- }
1877
+ name: "String",
1878
+ },
1798
1879
  },
1799
1880
  operation: {
1800
1881
  serializedName: "operation",
1801
1882
  type: {
1802
- name: "String"
1803
- }
1883
+ name: "String",
1884
+ },
1804
1885
  },
1805
1886
  description: {
1806
1887
  serializedName: "description",
1807
1888
  type: {
1808
- name: "String"
1809
- }
1810
- }
1811
- }
1812
- }
1889
+ name: "String",
1890
+ },
1891
+ },
1892
+ },
1893
+ },
1813
1894
  };
1814
1895
  const UsageListResult = {
1815
1896
  type: {
@@ -1824,14 +1905,14 @@ const UsageListResult = {
1824
1905
  element: {
1825
1906
  type: {
1826
1907
  name: "Composite",
1827
- className: "Usage"
1828
- }
1829
- }
1830
- }
1831
- }
1832
- }
1833
- }
1834
- };
1908
+ className: "Usage",
1909
+ },
1910
+ },
1911
+ },
1912
+ },
1913
+ },
1914
+ },
1915
+ };
1835
1916
  const Usage = {
1836
1917
  type: {
1837
1918
  name: "Composite",
@@ -1841,39 +1922,39 @@ const Usage = {
1841
1922
  serializedName: "id",
1842
1923
  readOnly: true,
1843
1924
  type: {
1844
- name: "String"
1845
- }
1925
+ name: "String",
1926
+ },
1846
1927
  },
1847
1928
  unit: {
1848
1929
  serializedName: "unit",
1849
1930
  readOnly: true,
1850
1931
  type: {
1851
- name: "String"
1852
- }
1932
+ name: "String",
1933
+ },
1853
1934
  },
1854
1935
  currentValue: {
1855
1936
  serializedName: "currentValue",
1856
1937
  readOnly: true,
1857
1938
  type: {
1858
- name: "Number"
1859
- }
1939
+ name: "Number",
1940
+ },
1860
1941
  },
1861
1942
  limit: {
1862
1943
  serializedName: "limit",
1863
1944
  readOnly: true,
1864
1945
  type: {
1865
- name: "Number"
1866
- }
1946
+ name: "Number",
1947
+ },
1867
1948
  },
1868
1949
  name: {
1869
1950
  serializedName: "name",
1870
1951
  type: {
1871
1952
  name: "Composite",
1872
- className: "UsageName"
1873
- }
1874
- }
1875
- }
1876
- }
1953
+ className: "UsageName",
1954
+ },
1955
+ },
1956
+ },
1957
+ },
1877
1958
  };
1878
1959
  const UsageName = {
1879
1960
  type: {
@@ -1884,18 +1965,18 @@ const UsageName = {
1884
1965
  serializedName: "value",
1885
1966
  readOnly: true,
1886
1967
  type: {
1887
- name: "String"
1888
- }
1968
+ name: "String",
1969
+ },
1889
1970
  },
1890
1971
  localizedValue: {
1891
1972
  serializedName: "localizedValue",
1892
1973
  readOnly: true,
1893
1974
  type: {
1894
- name: "String"
1895
- }
1896
- }
1897
- }
1898
- }
1975
+ name: "String",
1976
+ },
1977
+ },
1978
+ },
1979
+ },
1899
1980
  };
1900
1981
  const Logs = {
1901
1982
  type: {
@@ -1905,11 +1986,11 @@ const Logs = {
1905
1986
  content: {
1906
1987
  serializedName: "content",
1907
1988
  type: {
1908
- name: "String"
1909
- }
1910
- }
1911
- }
1912
- }
1989
+ name: "String",
1990
+ },
1991
+ },
1992
+ },
1993
+ },
1913
1994
  };
1914
1995
  const ContainerExecRequest = {
1915
1996
  type: {
@@ -1919,18 +2000,18 @@ const ContainerExecRequest = {
1919
2000
  command: {
1920
2001
  serializedName: "command",
1921
2002
  type: {
1922
- name: "String"
1923
- }
2003
+ name: "String",
2004
+ },
1924
2005
  },
1925
2006
  terminalSize: {
1926
2007
  serializedName: "terminalSize",
1927
2008
  type: {
1928
2009
  name: "Composite",
1929
- className: "ContainerExecRequestTerminalSize"
1930
- }
1931
- }
1932
- }
1933
- }
2010
+ className: "ContainerExecRequestTerminalSize",
2011
+ },
2012
+ },
2013
+ },
2014
+ },
1934
2015
  };
1935
2016
  const ContainerExecRequestTerminalSize = {
1936
2017
  type: {
@@ -1940,17 +2021,17 @@ const ContainerExecRequestTerminalSize = {
1940
2021
  rows: {
1941
2022
  serializedName: "rows",
1942
2023
  type: {
1943
- name: "Number"
1944
- }
2024
+ name: "Number",
2025
+ },
1945
2026
  },
1946
2027
  cols: {
1947
2028
  serializedName: "cols",
1948
2029
  type: {
1949
- name: "Number"
1950
- }
1951
- }
1952
- }
1953
- }
2030
+ name: "Number",
2031
+ },
2032
+ },
2033
+ },
2034
+ },
1954
2035
  };
1955
2036
  const ContainerExecResponse = {
1956
2037
  type: {
@@ -1960,17 +2041,17 @@ const ContainerExecResponse = {
1960
2041
  webSocketUri: {
1961
2042
  serializedName: "webSocketUri",
1962
2043
  type: {
1963
- name: "String"
1964
- }
2044
+ name: "String",
2045
+ },
1965
2046
  },
1966
2047
  password: {
1967
2048
  serializedName: "password",
1968
2049
  type: {
1969
- name: "String"
1970
- }
1971
- }
1972
- }
1973
- }
2050
+ name: "String",
2051
+ },
2052
+ },
2053
+ },
2054
+ },
1974
2055
  };
1975
2056
  const ContainerAttachResponse = {
1976
2057
  type: {
@@ -1980,17 +2061,17 @@ const ContainerAttachResponse = {
1980
2061
  webSocketUri: {
1981
2062
  serializedName: "webSocketUri",
1982
2063
  type: {
1983
- name: "String"
1984
- }
2064
+ name: "String",
2065
+ },
1985
2066
  },
1986
2067
  password: {
1987
2068
  serializedName: "password",
1988
2069
  type: {
1989
- name: "String"
1990
- }
1991
- }
1992
- }
1993
- }
2070
+ name: "String",
2071
+ },
2072
+ },
2073
+ },
2074
+ },
1994
2075
  };
1995
2076
  const CachedImagesListResult = {
1996
2077
  type: {
@@ -2004,19 +2085,19 @@ const CachedImagesListResult = {
2004
2085
  element: {
2005
2086
  type: {
2006
2087
  name: "Composite",
2007
- className: "CachedImages"
2008
- }
2009
- }
2010
- }
2088
+ className: "CachedImages",
2089
+ },
2090
+ },
2091
+ },
2011
2092
  },
2012
2093
  nextLink: {
2013
2094
  serializedName: "nextLink",
2014
2095
  type: {
2015
- name: "String"
2016
- }
2017
- }
2018
- }
2019
- }
2096
+ name: "String",
2097
+ },
2098
+ },
2099
+ },
2100
+ },
2020
2101
  };
2021
2102
  const CachedImages = {
2022
2103
  type: {
@@ -2027,18 +2108,18 @@ const CachedImages = {
2027
2108
  serializedName: "osType",
2028
2109
  required: true,
2029
2110
  type: {
2030
- name: "String"
2031
- }
2111
+ name: "String",
2112
+ },
2032
2113
  },
2033
2114
  image: {
2034
2115
  serializedName: "image",
2035
2116
  required: true,
2036
2117
  type: {
2037
- name: "String"
2038
- }
2039
- }
2040
- }
2041
- }
2118
+ name: "String",
2119
+ },
2120
+ },
2121
+ },
2122
+ },
2042
2123
  };
2043
2124
  const CapabilitiesListResult = {
2044
2125
  type: {
@@ -2052,19 +2133,19 @@ const CapabilitiesListResult = {
2052
2133
  element: {
2053
2134
  type: {
2054
2135
  name: "Composite",
2055
- className: "Capabilities"
2056
- }
2057
- }
2058
- }
2136
+ className: "Capabilities",
2137
+ },
2138
+ },
2139
+ },
2059
2140
  },
2060
2141
  nextLink: {
2061
2142
  serializedName: "nextLink",
2062
2143
  type: {
2063
- name: "String"
2064
- }
2065
- }
2066
- }
2067
- }
2144
+ name: "String",
2145
+ },
2146
+ },
2147
+ },
2148
+ },
2068
2149
  };
2069
2150
  const Capabilities = {
2070
2151
  type: {
@@ -2075,46 +2156,46 @@ const Capabilities = {
2075
2156
  serializedName: "resourceType",
2076
2157
  readOnly: true,
2077
2158
  type: {
2078
- name: "String"
2079
- }
2159
+ name: "String",
2160
+ },
2080
2161
  },
2081
2162
  osType: {
2082
2163
  serializedName: "osType",
2083
2164
  readOnly: true,
2084
2165
  type: {
2085
- name: "String"
2086
- }
2166
+ name: "String",
2167
+ },
2087
2168
  },
2088
2169
  location: {
2089
2170
  serializedName: "location",
2090
2171
  readOnly: true,
2091
2172
  type: {
2092
- name: "String"
2093
- }
2173
+ name: "String",
2174
+ },
2094
2175
  },
2095
2176
  ipAddressType: {
2096
2177
  serializedName: "ipAddressType",
2097
2178
  readOnly: true,
2098
2179
  type: {
2099
- name: "String"
2100
- }
2180
+ name: "String",
2181
+ },
2101
2182
  },
2102
2183
  gpu: {
2103
2184
  serializedName: "gpu",
2104
2185
  readOnly: true,
2105
2186
  type: {
2106
- name: "String"
2107
- }
2187
+ name: "String",
2188
+ },
2108
2189
  },
2109
2190
  capabilities: {
2110
2191
  serializedName: "capabilities",
2111
2192
  type: {
2112
2193
  name: "Composite",
2113
- className: "CapabilitiesCapabilities"
2114
- }
2115
- }
2116
- }
2117
- }
2194
+ className: "CapabilitiesCapabilities",
2195
+ },
2196
+ },
2197
+ },
2198
+ },
2118
2199
  };
2119
2200
  const CapabilitiesCapabilities = {
2120
2201
  type: {
@@ -2125,32 +2206,209 @@ const CapabilitiesCapabilities = {
2125
2206
  serializedName: "maxMemoryInGB",
2126
2207
  readOnly: true,
2127
2208
  type: {
2128
- name: "Number"
2129
- }
2209
+ name: "Number",
2210
+ },
2130
2211
  },
2131
2212
  maxCpu: {
2132
2213
  serializedName: "maxCpu",
2133
2214
  readOnly: true,
2134
2215
  type: {
2135
- name: "Number"
2136
- }
2216
+ name: "Number",
2217
+ },
2137
2218
  },
2138
2219
  maxGpuCount: {
2139
2220
  serializedName: "maxGpuCount",
2140
2221
  readOnly: true,
2141
2222
  type: {
2142
- name: "Number"
2143
- }
2144
- }
2145
- }
2146
- }
2223
+ name: "Number",
2224
+ },
2225
+ },
2226
+ },
2227
+ },
2228
+ };
2229
+ const ContainerGroupProfileListResult = {
2230
+ type: {
2231
+ name: "Composite",
2232
+ className: "ContainerGroupProfileListResult",
2233
+ modelProperties: {
2234
+ value: {
2235
+ serializedName: "value",
2236
+ type: {
2237
+ name: "Sequence",
2238
+ element: {
2239
+ type: {
2240
+ name: "Composite",
2241
+ className: "ContainerGroupProfile",
2242
+ },
2243
+ },
2244
+ },
2245
+ },
2246
+ nextLink: {
2247
+ serializedName: "nextLink",
2248
+ type: {
2249
+ name: "String",
2250
+ },
2251
+ },
2252
+ },
2253
+ },
2254
+ };
2255
+ const ContainerGroupProfileProperties = {
2256
+ type: {
2257
+ name: "Composite",
2258
+ className: "ContainerGroupProfileProperties",
2259
+ modelProperties: {
2260
+ containers: {
2261
+ serializedName: "properties.containers",
2262
+ required: true,
2263
+ type: {
2264
+ name: "Sequence",
2265
+ element: {
2266
+ type: {
2267
+ name: "Composite",
2268
+ className: "Container",
2269
+ },
2270
+ },
2271
+ },
2272
+ },
2273
+ imageRegistryCredentials: {
2274
+ serializedName: "properties.imageRegistryCredentials",
2275
+ type: {
2276
+ name: "Sequence",
2277
+ element: {
2278
+ type: {
2279
+ name: "Composite",
2280
+ className: "ImageRegistryCredential",
2281
+ },
2282
+ },
2283
+ },
2284
+ },
2285
+ restartPolicy: {
2286
+ serializedName: "properties.restartPolicy",
2287
+ type: {
2288
+ name: "String",
2289
+ },
2290
+ },
2291
+ ipAddress: {
2292
+ serializedName: "properties.ipAddress",
2293
+ type: {
2294
+ name: "Composite",
2295
+ className: "IpAddress",
2296
+ },
2297
+ },
2298
+ osType: {
2299
+ serializedName: "properties.osType",
2300
+ required: true,
2301
+ type: {
2302
+ name: "String",
2303
+ },
2304
+ },
2305
+ volumes: {
2306
+ serializedName: "properties.volumes",
2307
+ type: {
2308
+ name: "Sequence",
2309
+ element: {
2310
+ type: {
2311
+ name: "Composite",
2312
+ className: "Volume",
2313
+ },
2314
+ },
2315
+ },
2316
+ },
2317
+ diagnostics: {
2318
+ serializedName: "properties.diagnostics",
2319
+ type: {
2320
+ name: "Composite",
2321
+ className: "ContainerGroupDiagnostics",
2322
+ },
2323
+ },
2324
+ sku: {
2325
+ serializedName: "properties.sku",
2326
+ type: {
2327
+ name: "String",
2328
+ },
2329
+ },
2330
+ encryptionProperties: {
2331
+ serializedName: "properties.encryptionProperties",
2332
+ type: {
2333
+ name: "Composite",
2334
+ className: "EncryptionProperties",
2335
+ },
2336
+ },
2337
+ initContainers: {
2338
+ serializedName: "properties.initContainers",
2339
+ type: {
2340
+ name: "Sequence",
2341
+ element: {
2342
+ type: {
2343
+ name: "Composite",
2344
+ className: "InitContainerDefinition",
2345
+ },
2346
+ },
2347
+ },
2348
+ },
2349
+ extensions: {
2350
+ serializedName: "properties.extensions",
2351
+ type: {
2352
+ name: "Sequence",
2353
+ element: {
2354
+ type: {
2355
+ name: "Composite",
2356
+ className: "DeploymentExtensionSpec",
2357
+ },
2358
+ },
2359
+ },
2360
+ },
2361
+ confidentialComputeProperties: {
2362
+ serializedName: "properties.confidentialComputeProperties",
2363
+ type: {
2364
+ name: "Composite",
2365
+ className: "ConfidentialComputeProperties",
2366
+ },
2367
+ },
2368
+ priority: {
2369
+ serializedName: "properties.priority",
2370
+ type: {
2371
+ name: "String",
2372
+ },
2373
+ },
2374
+ revision: {
2375
+ serializedName: "properties.revision",
2376
+ readOnly: true,
2377
+ type: {
2378
+ name: "Number",
2379
+ },
2380
+ },
2381
+ },
2382
+ },
2383
+ };
2384
+ const ContainerGroupProfilePatch = {
2385
+ type: {
2386
+ name: "Composite",
2387
+ className: "ContainerGroupProfilePatch",
2388
+ modelProperties: {
2389
+ tags: {
2390
+ serializedName: "tags",
2391
+ type: {
2392
+ name: "Dictionary",
2393
+ value: { type: { name: "String" } },
2394
+ },
2395
+ },
2396
+ },
2397
+ },
2147
2398
  };
2148
2399
  const ContainerGroup = {
2149
2400
  type: {
2150
2401
  name: "Composite",
2151
2402
  className: "ContainerGroup",
2152
- modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), ContainerGroupProperties.type.modelProperties)
2153
- }
2403
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), ContainerGroupProperties.type.modelProperties),
2404
+ },
2405
+ };
2406
+ const ContainerGroupProfile = {
2407
+ type: {
2408
+ name: "Composite",
2409
+ className: "ContainerGroupProfile",
2410
+ modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), ContainerGroupProfileProperties.type.modelProperties),
2411
+ },
2154
2412
  };
2155
2413
 
2156
2414
  var Mappers = /*#__PURE__*/Object.freeze({
@@ -2164,6 +2422,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
2164
2422
  CloudError: CloudError,
2165
2423
  CloudErrorBody: CloudErrorBody,
2166
2424
  ConfidentialComputeProperties: ConfidentialComputeProperties,
2425
+ ConfigMap: ConfigMap,
2167
2426
  Container: Container,
2168
2427
  ContainerAttachResponse: ContainerAttachResponse,
2169
2428
  ContainerExec: ContainerExec,
@@ -2174,6 +2433,11 @@ var Mappers = /*#__PURE__*/Object.freeze({
2174
2433
  ContainerGroupDiagnostics: ContainerGroupDiagnostics,
2175
2434
  ContainerGroupIdentity: ContainerGroupIdentity,
2176
2435
  ContainerGroupListResult: ContainerGroupListResult,
2436
+ ContainerGroupProfile: ContainerGroupProfile,
2437
+ ContainerGroupProfileListResult: ContainerGroupProfileListResult,
2438
+ ContainerGroupProfilePatch: ContainerGroupProfilePatch,
2439
+ ContainerGroupProfileProperties: ContainerGroupProfileProperties,
2440
+ ContainerGroupProfileReferenceDefinition: ContainerGroupProfileReferenceDefinition,
2177
2441
  ContainerGroupProperties: ContainerGroupProperties,
2178
2442
  ContainerGroupPropertiesInstanceView: ContainerGroupPropertiesInstanceView,
2179
2443
  ContainerGroupSubnetId: ContainerGroupSubnetId,
@@ -2206,6 +2470,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
2206
2470
  ResourceRequirements: ResourceRequirements,
2207
2471
  SecurityContextCapabilitiesDefinition: SecurityContextCapabilitiesDefinition,
2208
2472
  SecurityContextDefinition: SecurityContextDefinition,
2473
+ StandbyPoolProfileDefinition: StandbyPoolProfileDefinition,
2209
2474
  Usage: Usage,
2210
2475
  UsageListResult: UsageListResult,
2211
2476
  UsageName: UsageName,
@@ -2228,9 +2493,9 @@ const accept = {
2228
2493
  isConstant: true,
2229
2494
  serializedName: "Accept",
2230
2495
  type: {
2231
- name: "String"
2232
- }
2233
- }
2496
+ name: "String",
2497
+ },
2498
+ },
2234
2499
  };
2235
2500
  const $host = {
2236
2501
  parameterPath: "$host",
@@ -2238,10 +2503,10 @@ const $host = {
2238
2503
  serializedName: "$host",
2239
2504
  required: true,
2240
2505
  type: {
2241
- name: "String"
2242
- }
2506
+ name: "String",
2507
+ },
2243
2508
  },
2244
- skipEncoding: true
2509
+ skipEncoding: true,
2245
2510
  };
2246
2511
  const subscriptionId = {
2247
2512
  parameterPath: "subscriptionId",
@@ -2249,30 +2514,34 @@ const subscriptionId = {
2249
2514
  serializedName: "subscriptionId",
2250
2515
  required: true,
2251
2516
  type: {
2252
- name: "String"
2253
- }
2254
- }
2517
+ name: "Uuid",
2518
+ },
2519
+ },
2255
2520
  };
2256
2521
  const apiVersion = {
2257
2522
  parameterPath: "apiVersion",
2258
2523
  mapper: {
2259
- defaultValue: "2023-05-01",
2524
+ defaultValue: "2024-05-01-preview",
2260
2525
  isConstant: true,
2261
2526
  serializedName: "api-version",
2262
2527
  type: {
2263
- name: "String"
2264
- }
2265
- }
2528
+ name: "String",
2529
+ },
2530
+ },
2266
2531
  };
2267
2532
  const resourceGroupName = {
2268
2533
  parameterPath: "resourceGroupName",
2269
2534
  mapper: {
2535
+ constraints: {
2536
+ MaxLength: 90,
2537
+ MinLength: 1,
2538
+ },
2270
2539
  serializedName: "resourceGroupName",
2271
2540
  required: true,
2272
2541
  type: {
2273
- name: "String"
2274
- }
2275
- }
2542
+ name: "String",
2543
+ },
2544
+ },
2276
2545
  };
2277
2546
  const containerGroupName = {
2278
2547
  parameterPath: "containerGroupName",
@@ -2280,9 +2549,9 @@ const containerGroupName = {
2280
2549
  serializedName: "containerGroupName",
2281
2550
  required: true,
2282
2551
  type: {
2283
- name: "String"
2284
- }
2285
- }
2552
+ name: "String",
2553
+ },
2554
+ },
2286
2555
  };
2287
2556
  const contentType = {
2288
2557
  parameterPath: ["options", "contentType"],
@@ -2291,17 +2560,17 @@ const contentType = {
2291
2560
  isConstant: true,
2292
2561
  serializedName: "Content-Type",
2293
2562
  type: {
2294
- name: "String"
2295
- }
2296
- }
2563
+ name: "String",
2564
+ },
2565
+ },
2297
2566
  };
2298
2567
  const containerGroup = {
2299
2568
  parameterPath: "containerGroup",
2300
- mapper: ContainerGroup
2569
+ mapper: ContainerGroup,
2301
2570
  };
2302
2571
  const resource = {
2303
2572
  parameterPath: "resource",
2304
- mapper: Resource
2573
+ mapper: Resource,
2305
2574
  };
2306
2575
  const nextLink = {
2307
2576
  parameterPath: "nextLink",
@@ -2309,20 +2578,23 @@ const nextLink = {
2309
2578
  serializedName: "nextLink",
2310
2579
  required: true,
2311
2580
  type: {
2312
- name: "String"
2313
- }
2581
+ name: "String",
2582
+ },
2314
2583
  },
2315
- skipEncoding: true
2584
+ skipEncoding: true,
2316
2585
  };
2317
2586
  const location = {
2318
2587
  parameterPath: "location",
2319
2588
  mapper: {
2589
+ constraints: {
2590
+ MinLength: 1,
2591
+ },
2320
2592
  serializedName: "location",
2321
2593
  required: true,
2322
2594
  type: {
2323
- name: "String"
2324
- }
2325
- }
2595
+ name: "String",
2596
+ },
2597
+ },
2326
2598
  };
2327
2599
  const containerName = {
2328
2600
  parameterPath: "containerName",
@@ -2330,31 +2602,31 @@ const containerName = {
2330
2602
  serializedName: "containerName",
2331
2603
  required: true,
2332
2604
  type: {
2333
- name: "String"
2334
- }
2335
- }
2605
+ name: "String",
2606
+ },
2607
+ },
2336
2608
  };
2337
2609
  const tail = {
2338
2610
  parameterPath: ["options", "tail"],
2339
2611
  mapper: {
2340
2612
  serializedName: "tail",
2341
2613
  type: {
2342
- name: "Number"
2343
- }
2344
- }
2614
+ name: "Number",
2615
+ },
2616
+ },
2345
2617
  };
2346
2618
  const timestamps = {
2347
2619
  parameterPath: ["options", "timestamps"],
2348
2620
  mapper: {
2349
2621
  serializedName: "timestamps",
2350
2622
  type: {
2351
- name: "Boolean"
2352
- }
2353
- }
2623
+ name: "Boolean",
2624
+ },
2625
+ },
2354
2626
  };
2355
2627
  const containerExecRequest = {
2356
2628
  parameterPath: "containerExecRequest",
2357
- mapper: ContainerExecRequest
2629
+ mapper: ContainerExecRequest,
2358
2630
  };
2359
2631
  const virtualNetworkName = {
2360
2632
  parameterPath: "virtualNetworkName",
@@ -2362,9 +2634,9 @@ const virtualNetworkName = {
2362
2634
  serializedName: "virtualNetworkName",
2363
2635
  required: true,
2364
2636
  type: {
2365
- name: "String"
2366
- }
2367
- }
2637
+ name: "String",
2638
+ },
2639
+ },
2368
2640
  };
2369
2641
  const subnetName = {
2370
2642
  parameterPath: "subnetName",
@@ -2372,9 +2644,42 @@ const subnetName = {
2372
2644
  serializedName: "subnetName",
2373
2645
  required: true,
2374
2646
  type: {
2375
- name: "String"
2376
- }
2377
- }
2647
+ name: "String",
2648
+ },
2649
+ },
2650
+ };
2651
+ const containerGroupProfileName = {
2652
+ parameterPath: "containerGroupProfileName",
2653
+ mapper: {
2654
+ constraints: {
2655
+ Pattern: new RegExp("^(?!.*--)[a-z0-9]([-a-z0-9]*[a-z0-9])?$"),
2656
+ MaxLength: 63,
2657
+ MinLength: 1,
2658
+ },
2659
+ serializedName: "containerGroupProfileName",
2660
+ required: true,
2661
+ type: {
2662
+ name: "String",
2663
+ },
2664
+ },
2665
+ };
2666
+ const containerGroupProfile = {
2667
+ parameterPath: "containerGroupProfile",
2668
+ mapper: ContainerGroupProfile,
2669
+ };
2670
+ const properties = {
2671
+ parameterPath: "properties",
2672
+ mapper: ContainerGroupProfilePatch,
2673
+ };
2674
+ const revisionNumber = {
2675
+ parameterPath: "revisionNumber",
2676
+ mapper: {
2677
+ serializedName: "revisionNumber",
2678
+ required: true,
2679
+ type: {
2680
+ name: "String",
2681
+ },
2682
+ },
2378
2683
  };
2379
2684
 
2380
2685
  /*
@@ -2393,7 +2698,7 @@ function createLroSpec(inputs) {
2393
2698
  sendPollRequest: (path, options) => {
2394
2699
  const restSpec = tslib.__rest(spec, ["requestBody"]);
2395
2700
  return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
2396
- }
2701
+ },
2397
2702
  };
2398
2703
  }
2399
2704
 
@@ -2434,7 +2739,7 @@ class ContainerGroupsImpl {
2434
2739
  throw new Error("maxPageSize is not supported by this operation.");
2435
2740
  }
2436
2741
  return this.listPagingPage(options, settings);
2437
- }
2742
+ },
2438
2743
  };
2439
2744
  }
2440
2745
  listPagingPage(options, settings) {
@@ -2481,7 +2786,7 @@ class ContainerGroupsImpl {
2481
2786
  * Get a list of container groups in a specified subscription and resource group. This operation
2482
2787
  * returns properties of each container group including containers, image registry credentials, restart
2483
2788
  * policy, IP address type, OS type, state, and volumes.
2484
- * @param resourceGroupName The name of the resource group.
2789
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2485
2790
  * @param options The options parameters.
2486
2791
  */
2487
2792
  listByResourceGroup(resourceGroupName, options) {
@@ -2498,7 +2803,7 @@ class ContainerGroupsImpl {
2498
2803
  throw new Error("maxPageSize is not supported by this operation.");
2499
2804
  }
2500
2805
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
2501
- }
2806
+ },
2502
2807
  };
2503
2808
  }
2504
2809
  listByResourceGroupPagingPage(resourceGroupName, options, settings) {
@@ -2548,32 +2853,32 @@ class ContainerGroupsImpl {
2548
2853
  * @param options The options parameters.
2549
2854
  */
2550
2855
  _list(options) {
2551
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
2856
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
2552
2857
  }
2553
2858
  /**
2554
2859
  * Get a list of container groups in a specified subscription and resource group. This operation
2555
2860
  * returns properties of each container group including containers, image registry credentials, restart
2556
2861
  * policy, IP address type, OS type, state, and volumes.
2557
- * @param resourceGroupName The name of the resource group.
2862
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2558
2863
  * @param options The options parameters.
2559
2864
  */
2560
2865
  _listByResourceGroup(resourceGroupName, options) {
2561
- return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
2866
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec$1);
2562
2867
  }
2563
2868
  /**
2564
2869
  * Gets the properties of the specified container group in the specified subscription and resource
2565
2870
  * group. The operation returns the properties of each container group including containers, image
2566
2871
  * registry credentials, restart policy, IP address type, OS type, state, and volumes.
2567
- * @param resourceGroupName The name of the resource group.
2872
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2568
2873
  * @param containerGroupName The name of the container group.
2569
2874
  * @param options The options parameters.
2570
2875
  */
2571
2876
  get(resourceGroupName, containerGroupName, options) {
2572
- return this.client.sendOperationRequest({ resourceGroupName, containerGroupName, options }, getOperationSpec);
2877
+ return this.client.sendOperationRequest({ resourceGroupName, containerGroupName, options }, getOperationSpec$1);
2573
2878
  }
2574
2879
  /**
2575
2880
  * Create or update container groups with specified configurations.
2576
- * @param resourceGroupName The name of the resource group.
2881
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2577
2882
  * @param containerGroupName The name of the container group.
2578
2883
  * @param containerGroup The properties of the container group to be created or updated.
2579
2884
  * @param options The options parameters.
@@ -2598,18 +2903,18 @@ class ContainerGroupsImpl {
2598
2903
  rawResponse: {
2599
2904
  statusCode: currentRawResponse.status,
2600
2905
  body: currentRawResponse.parsedBody,
2601
- headers: currentRawResponse.headers.toJSON()
2602
- }
2906
+ headers: currentRawResponse.headers.toJSON(),
2907
+ },
2603
2908
  };
2604
2909
  });
2605
2910
  const lro = createLroSpec({
2606
2911
  sendOperationFn,
2607
2912
  args: { resourceGroupName, containerGroupName, containerGroup, options },
2608
- spec: createOrUpdateOperationSpec
2913
+ spec: createOrUpdateOperationSpec$1,
2609
2914
  });
2610
2915
  const poller = yield coreLro.createHttpPoller(lro, {
2611
2916
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2612
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2917
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2613
2918
  });
2614
2919
  yield poller.poll();
2615
2920
  return poller;
@@ -2617,7 +2922,7 @@ class ContainerGroupsImpl {
2617
2922
  }
2618
2923
  /**
2619
2924
  * Create or update container groups with specified configurations.
2620
- * @param resourceGroupName The name of the resource group.
2925
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2621
2926
  * @param containerGroupName The name of the container group.
2622
2927
  * @param containerGroup The properties of the container group to be created or updated.
2623
2928
  * @param options The options parameters.
@@ -2630,7 +2935,7 @@ class ContainerGroupsImpl {
2630
2935
  }
2631
2936
  /**
2632
2937
  * Updates container group tags with specified values.
2633
- * @param resourceGroupName The name of the resource group.
2938
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2634
2939
  * @param containerGroupName The name of the container group.
2635
2940
  * @param resource The container group resource with just the tags to be updated.
2636
2941
  * @param options The options parameters.
@@ -2641,7 +2946,7 @@ class ContainerGroupsImpl {
2641
2946
  /**
2642
2947
  * Delete the specified container group in the specified subscription and resource group. The operation
2643
2948
  * does not delete other resources provided by the user, such as volumes.
2644
- * @param resourceGroupName The name of the resource group.
2949
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2645
2950
  * @param containerGroupName The name of the container group.
2646
2951
  * @param options The options parameters.
2647
2952
  */
@@ -2665,18 +2970,18 @@ class ContainerGroupsImpl {
2665
2970
  rawResponse: {
2666
2971
  statusCode: currentRawResponse.status,
2667
2972
  body: currentRawResponse.parsedBody,
2668
- headers: currentRawResponse.headers.toJSON()
2669
- }
2973
+ headers: currentRawResponse.headers.toJSON(),
2974
+ },
2670
2975
  };
2671
2976
  });
2672
2977
  const lro = createLroSpec({
2673
2978
  sendOperationFn,
2674
2979
  args: { resourceGroupName, containerGroupName, options },
2675
- spec: deleteOperationSpec$1
2980
+ spec: deleteOperationSpec$2,
2676
2981
  });
2677
2982
  const poller = yield coreLro.createHttpPoller(lro, {
2678
2983
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2679
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
2984
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2680
2985
  });
2681
2986
  yield poller.poll();
2682
2987
  return poller;
@@ -2685,7 +2990,7 @@ class ContainerGroupsImpl {
2685
2990
  /**
2686
2991
  * Delete the specified container group in the specified subscription and resource group. The operation
2687
2992
  * does not delete other resources provided by the user, such as volumes.
2688
- * @param resourceGroupName The name of the resource group.
2993
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2689
2994
  * @param containerGroupName The name of the container group.
2690
2995
  * @param options The options parameters.
2691
2996
  */
@@ -2698,7 +3003,7 @@ class ContainerGroupsImpl {
2698
3003
  /**
2699
3004
  * Restarts all containers in a container group in place. If container image has updates, new image
2700
3005
  * will be downloaded.
2701
- * @param resourceGroupName The name of the resource group.
3006
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2702
3007
  * @param containerGroupName The name of the container group.
2703
3008
  * @param options The options parameters.
2704
3009
  */
@@ -2722,18 +3027,18 @@ class ContainerGroupsImpl {
2722
3027
  rawResponse: {
2723
3028
  statusCode: currentRawResponse.status,
2724
3029
  body: currentRawResponse.parsedBody,
2725
- headers: currentRawResponse.headers.toJSON()
2726
- }
3030
+ headers: currentRawResponse.headers.toJSON(),
3031
+ },
2727
3032
  };
2728
3033
  });
2729
3034
  const lro = createLroSpec({
2730
3035
  sendOperationFn,
2731
3036
  args: { resourceGroupName, containerGroupName, options },
2732
- spec: restartOperationSpec
3037
+ spec: restartOperationSpec,
2733
3038
  });
2734
3039
  const poller = yield coreLro.createHttpPoller(lro, {
2735
3040
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2736
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3041
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2737
3042
  });
2738
3043
  yield poller.poll();
2739
3044
  return poller;
@@ -2742,7 +3047,7 @@ class ContainerGroupsImpl {
2742
3047
  /**
2743
3048
  * Restarts all containers in a container group in place. If container image has updates, new image
2744
3049
  * will be downloaded.
2745
- * @param resourceGroupName The name of the resource group.
3050
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2746
3051
  * @param containerGroupName The name of the container group.
2747
3052
  * @param options The options parameters.
2748
3053
  */
@@ -2755,7 +3060,7 @@ class ContainerGroupsImpl {
2755
3060
  /**
2756
3061
  * Stops all containers in a container group. Compute resources will be deallocated and billing will
2757
3062
  * stop.
2758
- * @param resourceGroupName The name of the resource group.
3063
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2759
3064
  * @param containerGroupName The name of the container group.
2760
3065
  * @param options The options parameters.
2761
3066
  */
@@ -2765,7 +3070,7 @@ class ContainerGroupsImpl {
2765
3070
  /**
2766
3071
  * Starts all containers in a container group. Compute resources will be allocated and billing will
2767
3072
  * start.
2768
- * @param resourceGroupName The name of the resource group.
3073
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2769
3074
  * @param containerGroupName The name of the container group.
2770
3075
  * @param options The options parameters.
2771
3076
  */
@@ -2789,18 +3094,18 @@ class ContainerGroupsImpl {
2789
3094
  rawResponse: {
2790
3095
  statusCode: currentRawResponse.status,
2791
3096
  body: currentRawResponse.parsedBody,
2792
- headers: currentRawResponse.headers.toJSON()
2793
- }
3097
+ headers: currentRawResponse.headers.toJSON(),
3098
+ },
2794
3099
  };
2795
3100
  });
2796
3101
  const lro = createLroSpec({
2797
3102
  sendOperationFn,
2798
3103
  args: { resourceGroupName, containerGroupName, options },
2799
- spec: startOperationSpec
3104
+ spec: startOperationSpec,
2800
3105
  });
2801
3106
  const poller = yield coreLro.createHttpPoller(lro, {
2802
3107
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
2803
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
3108
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
2804
3109
  });
2805
3110
  yield poller.poll();
2806
3111
  return poller;
@@ -2809,7 +3114,7 @@ class ContainerGroupsImpl {
2809
3114
  /**
2810
3115
  * Starts all containers in a container group. Compute resources will be allocated and billing will
2811
3116
  * start.
2812
- * @param resourceGroupName The name of the resource group.
3117
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2813
3118
  * @param containerGroupName The name of the container group.
2814
3119
  * @param options The options parameters.
2815
3120
  */
@@ -2822,7 +3127,7 @@ class ContainerGroupsImpl {
2822
3127
  /**
2823
3128
  * Gets all the network dependencies for this container group to allow complete control of network
2824
3129
  * setting and configuration. For container groups, this will always be an empty list.
2825
- * @param resourceGroupName The name of the resource group.
3130
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2826
3131
  * @param containerGroupName The name of the container group.
2827
3132
  * @param options The options parameters.
2828
3133
  */
@@ -2835,96 +3140,96 @@ class ContainerGroupsImpl {
2835
3140
  * @param options The options parameters.
2836
3141
  */
2837
3142
  _listNext(nextLink, options) {
2838
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
3143
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$2);
2839
3144
  }
2840
3145
  /**
2841
3146
  * ListByResourceGroupNext
2842
- * @param resourceGroupName The name of the resource group.
3147
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
2843
3148
  * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
2844
3149
  * @param options The options parameters.
2845
3150
  */
2846
3151
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
2847
- return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
3152
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec$1);
2848
3153
  }
2849
3154
  }
2850
3155
  // Operation Specifications
2851
- const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
2852
- const listOperationSpec$1 = {
3156
+ const serializer$6 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3157
+ const listOperationSpec$2 = {
2853
3158
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroups",
2854
3159
  httpMethod: "GET",
2855
3160
  responses: {
2856
3161
  200: {
2857
- bodyMapper: ContainerGroupListResult
3162
+ bodyMapper: ContainerGroupListResult,
2858
3163
  },
2859
3164
  default: {
2860
- bodyMapper: CloudError
2861
- }
3165
+ bodyMapper: CloudError,
3166
+ },
2862
3167
  },
2863
3168
  queryParameters: [apiVersion],
2864
3169
  urlParameters: [$host, subscriptionId],
2865
3170
  headerParameters: [accept],
2866
- serializer: serializer$4
3171
+ serializer: serializer$6,
2867
3172
  };
2868
- const listByResourceGroupOperationSpec = {
3173
+ const listByResourceGroupOperationSpec$1 = {
2869
3174
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups",
2870
3175
  httpMethod: "GET",
2871
3176
  responses: {
2872
3177
  200: {
2873
- bodyMapper: ContainerGroupListResult
3178
+ bodyMapper: ContainerGroupListResult,
2874
3179
  },
2875
3180
  default: {
2876
- bodyMapper: CloudError
2877
- }
3181
+ bodyMapper: CloudError,
3182
+ },
2878
3183
  },
2879
3184
  queryParameters: [apiVersion],
2880
3185
  urlParameters: [
2881
3186
  $host,
2882
3187
  subscriptionId,
2883
- resourceGroupName
3188
+ resourceGroupName,
2884
3189
  ],
2885
3190
  headerParameters: [accept],
2886
- serializer: serializer$4
3191
+ serializer: serializer$6,
2887
3192
  };
2888
- const getOperationSpec = {
3193
+ const getOperationSpec$1 = {
2889
3194
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
2890
3195
  httpMethod: "GET",
2891
3196
  responses: {
2892
3197
  200: {
2893
- bodyMapper: ContainerGroup
3198
+ bodyMapper: ContainerGroup,
2894
3199
  },
2895
3200
  default: {
2896
- bodyMapper: CloudError
2897
- }
3201
+ bodyMapper: CloudError,
3202
+ },
2898
3203
  },
2899
3204
  queryParameters: [apiVersion],
2900
3205
  urlParameters: [
2901
3206
  $host,
2902
3207
  subscriptionId,
2903
3208
  resourceGroupName,
2904
- containerGroupName
3209
+ containerGroupName,
2905
3210
  ],
2906
3211
  headerParameters: [accept],
2907
- serializer: serializer$4
3212
+ serializer: serializer$6,
2908
3213
  };
2909
- const createOrUpdateOperationSpec = {
3214
+ const createOrUpdateOperationSpec$1 = {
2910
3215
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
2911
3216
  httpMethod: "PUT",
2912
3217
  responses: {
2913
3218
  200: {
2914
- bodyMapper: ContainerGroup
3219
+ bodyMapper: ContainerGroup,
2915
3220
  },
2916
3221
  201: {
2917
- bodyMapper: ContainerGroup
3222
+ bodyMapper: ContainerGroup,
2918
3223
  },
2919
3224
  202: {
2920
- bodyMapper: ContainerGroup
3225
+ bodyMapper: ContainerGroup,
2921
3226
  },
2922
3227
  204: {
2923
- bodyMapper: ContainerGroup
3228
+ bodyMapper: ContainerGroup,
2924
3229
  },
2925
3230
  default: {
2926
- bodyMapper: CloudError
2927
- }
3231
+ bodyMapper: CloudError,
3232
+ },
2928
3233
  },
2929
3234
  requestBody: containerGroup,
2930
3235
  queryParameters: [apiVersion],
@@ -2932,22 +3237,22 @@ const createOrUpdateOperationSpec = {
2932
3237
  $host,
2933
3238
  subscriptionId,
2934
3239
  resourceGroupName,
2935
- containerGroupName
3240
+ containerGroupName,
2936
3241
  ],
2937
3242
  headerParameters: [accept, contentType],
2938
3243
  mediaType: "json",
2939
- serializer: serializer$4
3244
+ serializer: serializer$6,
2940
3245
  };
2941
3246
  const updateOperationSpec = {
2942
3247
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
2943
3248
  httpMethod: "PATCH",
2944
3249
  responses: {
2945
3250
  200: {
2946
- bodyMapper: ContainerGroup
3251
+ bodyMapper: ContainerGroup,
2947
3252
  },
2948
3253
  default: {
2949
- bodyMapper: CloudError
2950
- }
3254
+ bodyMapper: CloudError,
3255
+ },
2951
3256
  },
2952
3257
  requestBody: resource,
2953
3258
  queryParameters: [apiVersion],
@@ -2955,41 +3260,41 @@ const updateOperationSpec = {
2955
3260
  $host,
2956
3261
  subscriptionId,
2957
3262
  resourceGroupName,
2958
- containerGroupName
3263
+ containerGroupName,
2959
3264
  ],
2960
3265
  headerParameters: [accept, contentType],
2961
3266
  mediaType: "json",
2962
- serializer: serializer$4
3267
+ serializer: serializer$6,
2963
3268
  };
2964
- const deleteOperationSpec$1 = {
3269
+ const deleteOperationSpec$2 = {
2965
3270
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}",
2966
3271
  httpMethod: "DELETE",
2967
3272
  responses: {
2968
3273
  200: {
2969
- bodyMapper: ContainerGroup
3274
+ bodyMapper: ContainerGroup,
2970
3275
  },
2971
3276
  201: {
2972
- bodyMapper: ContainerGroup
3277
+ bodyMapper: ContainerGroup,
2973
3278
  },
2974
3279
  202: {
2975
- bodyMapper: ContainerGroup
3280
+ bodyMapper: ContainerGroup,
2976
3281
  },
2977
3282
  204: {
2978
- bodyMapper: ContainerGroup
3283
+ bodyMapper: ContainerGroup,
2979
3284
  },
2980
3285
  default: {
2981
- bodyMapper: CloudError
2982
- }
3286
+ bodyMapper: CloudError,
3287
+ },
2983
3288
  },
2984
3289
  queryParameters: [apiVersion],
2985
3290
  urlParameters: [
2986
3291
  $host,
2987
3292
  subscriptionId,
2988
3293
  resourceGroupName,
2989
- containerGroupName
3294
+ containerGroupName,
2990
3295
  ],
2991
3296
  headerParameters: [accept],
2992
- serializer: serializer$4
3297
+ serializer: serializer$6,
2993
3298
  };
2994
3299
  const restartOperationSpec = {
2995
3300
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/restart",
@@ -3000,18 +3305,18 @@ const restartOperationSpec = {
3000
3305
  202: {},
3001
3306
  204: {},
3002
3307
  default: {
3003
- bodyMapper: CloudError
3004
- }
3308
+ bodyMapper: CloudError,
3309
+ },
3005
3310
  },
3006
3311
  queryParameters: [apiVersion],
3007
3312
  urlParameters: [
3008
3313
  $host,
3009
3314
  subscriptionId,
3010
3315
  resourceGroupName,
3011
- containerGroupName
3316
+ containerGroupName,
3012
3317
  ],
3013
3318
  headerParameters: [accept],
3014
- serializer: serializer$4
3319
+ serializer: serializer$6,
3015
3320
  };
3016
3321
  const stopOperationSpec = {
3017
3322
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/stop",
@@ -3019,18 +3324,18 @@ const stopOperationSpec = {
3019
3324
  responses: {
3020
3325
  204: {},
3021
3326
  default: {
3022
- bodyMapper: CloudError
3023
- }
3327
+ bodyMapper: CloudError,
3328
+ },
3024
3329
  },
3025
3330
  queryParameters: [apiVersion],
3026
3331
  urlParameters: [
3027
3332
  $host,
3028
3333
  subscriptionId,
3029
3334
  resourceGroupName,
3030
- containerGroupName
3335
+ containerGroupName,
3031
3336
  ],
3032
3337
  headerParameters: [accept],
3033
- serializer: serializer$4
3338
+ serializer: serializer$6,
3034
3339
  };
3035
3340
  const startOperationSpec = {
3036
3341
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/start",
@@ -3041,18 +3346,18 @@ const startOperationSpec = {
3041
3346
  202: {},
3042
3347
  204: {},
3043
3348
  default: {
3044
- bodyMapper: CloudError
3045
- }
3349
+ bodyMapper: CloudError,
3350
+ },
3046
3351
  },
3047
3352
  queryParameters: [apiVersion],
3048
3353
  urlParameters: [
3049
3354
  $host,
3050
3355
  subscriptionId,
3051
3356
  resourceGroupName,
3052
- containerGroupName
3357
+ containerGroupName,
3053
3358
  ],
3054
3359
  headerParameters: [accept],
3055
- serializer: serializer$4
3360
+ serializer: serializer$6,
3056
3361
  };
3057
3362
  const getOutboundNetworkDependenciesEndpointsOperationSpec = {
3058
3363
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/outboundNetworkDependenciesEndpoints",
@@ -3060,61 +3365,61 @@ const getOutboundNetworkDependenciesEndpointsOperationSpec = {
3060
3365
  responses: {
3061
3366
  200: {
3062
3367
  bodyMapper: {
3063
- type: { name: "Sequence", element: { type: { name: "String" } } }
3064
- }
3368
+ type: { name: "Sequence", element: { type: { name: "String" } } },
3369
+ },
3065
3370
  },
3066
3371
  default: {
3067
- bodyMapper: CloudError
3068
- }
3372
+ bodyMapper: CloudError,
3373
+ },
3069
3374
  },
3070
3375
  queryParameters: [apiVersion],
3071
3376
  urlParameters: [
3072
3377
  $host,
3073
3378
  subscriptionId,
3074
3379
  resourceGroupName,
3075
- containerGroupName
3380
+ containerGroupName,
3076
3381
  ],
3077
3382
  headerParameters: [accept],
3078
- serializer: serializer$4
3383
+ serializer: serializer$6,
3079
3384
  };
3080
- const listNextOperationSpec$1 = {
3385
+ const listNextOperationSpec$2 = {
3081
3386
  path: "{nextLink}",
3082
3387
  httpMethod: "GET",
3083
3388
  responses: {
3084
3389
  200: {
3085
- bodyMapper: ContainerGroupListResult
3390
+ bodyMapper: ContainerGroupListResult,
3086
3391
  },
3087
3392
  default: {
3088
- bodyMapper: CloudError
3089
- }
3393
+ bodyMapper: CloudError,
3394
+ },
3090
3395
  },
3091
3396
  urlParameters: [
3092
3397
  $host,
3093
3398
  subscriptionId,
3094
- nextLink
3399
+ nextLink,
3095
3400
  ],
3096
3401
  headerParameters: [accept],
3097
- serializer: serializer$4
3402
+ serializer: serializer$6,
3098
3403
  };
3099
- const listByResourceGroupNextOperationSpec = {
3404
+ const listByResourceGroupNextOperationSpec$1 = {
3100
3405
  path: "{nextLink}",
3101
3406
  httpMethod: "GET",
3102
3407
  responses: {
3103
3408
  200: {
3104
- bodyMapper: ContainerGroupListResult
3409
+ bodyMapper: ContainerGroupListResult,
3105
3410
  },
3106
3411
  default: {
3107
- bodyMapper: CloudError
3108
- }
3412
+ bodyMapper: CloudError,
3413
+ },
3109
3414
  },
3110
3415
  urlParameters: [
3111
3416
  $host,
3112
3417
  subscriptionId,
3113
3418
  resourceGroupName,
3114
- nextLink
3419
+ nextLink,
3115
3420
  ],
3116
3421
  headerParameters: [accept],
3117
- serializer: serializer$4
3422
+ serializer: serializer$6,
3118
3423
  };
3119
3424
 
3120
3425
  /*
@@ -3152,7 +3457,7 @@ class OperationsImpl {
3152
3457
  throw new Error("maxPageSize is not supported by this operation.");
3153
3458
  }
3154
3459
  return this.listPagingPage(options, settings);
3155
- }
3460
+ },
3156
3461
  };
3157
3462
  }
3158
3463
  listPagingPage(options, settings) {
@@ -3200,7 +3505,7 @@ class OperationsImpl {
3200
3505
  * @param options The options parameters.
3201
3506
  */
3202
3507
  _list(options) {
3203
- return this.client.sendOperationRequest({ options }, listOperationSpec);
3508
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
3204
3509
  }
3205
3510
  /**
3206
3511
  * ListNext
@@ -3208,41 +3513,41 @@ class OperationsImpl {
3208
3513
  * @param options The options parameters.
3209
3514
  */
3210
3515
  _listNext(nextLink, options) {
3211
- return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
3516
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec$1);
3212
3517
  }
3213
3518
  }
3214
3519
  // Operation Specifications
3215
- const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3216
- const listOperationSpec = {
3520
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3521
+ const listOperationSpec$1 = {
3217
3522
  path: "/providers/Microsoft.ContainerInstance/operations",
3218
3523
  httpMethod: "GET",
3219
3524
  responses: {
3220
3525
  200: {
3221
- bodyMapper: OperationListResult
3526
+ bodyMapper: OperationListResult,
3222
3527
  },
3223
3528
  default: {
3224
- bodyMapper: CloudError
3225
- }
3529
+ bodyMapper: CloudError,
3530
+ },
3226
3531
  },
3227
3532
  queryParameters: [apiVersion],
3228
3533
  urlParameters: [$host],
3229
3534
  headerParameters: [accept],
3230
- serializer: serializer$3
3535
+ serializer: serializer$5,
3231
3536
  };
3232
- const listNextOperationSpec = {
3537
+ const listNextOperationSpec$1 = {
3233
3538
  path: "{nextLink}",
3234
3539
  httpMethod: "GET",
3235
3540
  responses: {
3236
3541
  200: {
3237
- bodyMapper: OperationListResult
3542
+ bodyMapper: OperationListResult,
3238
3543
  },
3239
3544
  default: {
3240
- bodyMapper: CloudError
3241
- }
3545
+ bodyMapper: CloudError,
3546
+ },
3242
3547
  },
3243
3548
  urlParameters: [$host, nextLink],
3244
3549
  headerParameters: [accept],
3245
- serializer: serializer$3
3550
+ serializer: serializer$5,
3246
3551
  };
3247
3552
 
3248
3553
  /*
@@ -3264,7 +3569,7 @@ class LocationImpl {
3264
3569
  }
3265
3570
  /**
3266
3571
  * Get the usage for a subscription
3267
- * @param location The identifier for the physical azure location.
3572
+ * @param location The name of the Azure region.
3268
3573
  * @param options The options parameters.
3269
3574
  */
3270
3575
  listUsage(location, options) {
@@ -3281,7 +3586,7 @@ class LocationImpl {
3281
3586
  throw new Error("maxPageSize is not supported by this operation.");
3282
3587
  }
3283
3588
  return this.listUsagePagingPage(location, options, settings);
3284
- }
3589
+ },
3285
3590
  };
3286
3591
  }
3287
3592
  listUsagePagingPage(location, options, _settings) {
@@ -3313,7 +3618,7 @@ class LocationImpl {
3313
3618
  }
3314
3619
  /**
3315
3620
  * Get the list of cached images on specific OS type for a subscription in a region.
3316
- * @param location The identifier for the physical azure location.
3621
+ * @param location The name of the Azure region.
3317
3622
  * @param options The options parameters.
3318
3623
  */
3319
3624
  listCachedImages(location, options) {
@@ -3330,7 +3635,7 @@ class LocationImpl {
3330
3635
  throw new Error("maxPageSize is not supported by this operation.");
3331
3636
  }
3332
3637
  return this.listCachedImagesPagingPage(location, options, settings);
3333
- }
3638
+ },
3334
3639
  };
3335
3640
  }
3336
3641
  listCachedImagesPagingPage(location, options, settings) {
@@ -3375,7 +3680,7 @@ class LocationImpl {
3375
3680
  }
3376
3681
  /**
3377
3682
  * Get the list of CPU/memory/GPU capabilities of a region.
3378
- * @param location The identifier for the physical azure location.
3683
+ * @param location The name of the Azure region.
3379
3684
  * @param options The options parameters.
3380
3685
  */
3381
3686
  listCapabilities(location, options) {
@@ -3392,7 +3697,7 @@ class LocationImpl {
3392
3697
  throw new Error("maxPageSize is not supported by this operation.");
3393
3698
  }
3394
3699
  return this.listCapabilitiesPagingPage(location, options, settings);
3395
- }
3700
+ },
3396
3701
  };
3397
3702
  }
3398
3703
  listCapabilitiesPagingPage(location, options, settings) {
@@ -3437,7 +3742,7 @@ class LocationImpl {
3437
3742
  }
3438
3743
  /**
3439
3744
  * Get the usage for a subscription
3440
- * @param location The identifier for the physical azure location.
3745
+ * @param location The name of the Azure region.
3441
3746
  * @param options The options parameters.
3442
3747
  */
3443
3748
  _listUsage(location, options) {
@@ -3445,7 +3750,7 @@ class LocationImpl {
3445
3750
  }
3446
3751
  /**
3447
3752
  * Get the list of cached images on specific OS type for a subscription in a region.
3448
- * @param location The identifier for the physical azure location.
3753
+ * @param location The name of the Azure region.
3449
3754
  * @param options The options parameters.
3450
3755
  */
3451
3756
  _listCachedImages(location, options) {
@@ -3453,7 +3758,7 @@ class LocationImpl {
3453
3758
  }
3454
3759
  /**
3455
3760
  * Get the list of CPU/memory/GPU capabilities of a region.
3456
- * @param location The identifier for the physical azure location.
3761
+ * @param location The name of the Azure region.
3457
3762
  * @param options The options parameters.
3458
3763
  */
3459
3764
  _listCapabilities(location, options) {
@@ -3461,7 +3766,7 @@ class LocationImpl {
3461
3766
  }
3462
3767
  /**
3463
3768
  * ListCachedImagesNext
3464
- * @param location The identifier for the physical azure location.
3769
+ * @param location The name of the Azure region.
3465
3770
  * @param nextLink The nextLink from the previous successful call to the ListCachedImages method.
3466
3771
  * @param options The options parameters.
3467
3772
  */
@@ -3470,7 +3775,7 @@ class LocationImpl {
3470
3775
  }
3471
3776
  /**
3472
3777
  * ListCapabilitiesNext
3473
- * @param location The identifier for the physical azure location.
3778
+ * @param location The name of the Azure region.
3474
3779
  * @param nextLink The nextLink from the previous successful call to the ListCapabilities method.
3475
3780
  * @param options The options parameters.
3476
3781
  */
@@ -3479,106 +3784,106 @@ class LocationImpl {
3479
3784
  }
3480
3785
  }
3481
3786
  // Operation Specifications
3482
- const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3787
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3483
3788
  const listUsageOperationSpec = {
3484
3789
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/usages",
3485
3790
  httpMethod: "GET",
3486
3791
  responses: {
3487
3792
  200: {
3488
- bodyMapper: UsageListResult
3793
+ bodyMapper: UsageListResult,
3489
3794
  },
3490
3795
  default: {
3491
- bodyMapper: CloudError
3492
- }
3796
+ bodyMapper: CloudError,
3797
+ },
3493
3798
  },
3494
3799
  queryParameters: [apiVersion],
3495
3800
  urlParameters: [
3496
3801
  $host,
3497
3802
  subscriptionId,
3498
- location
3803
+ location,
3499
3804
  ],
3500
3805
  headerParameters: [accept],
3501
- serializer: serializer$2
3806
+ serializer: serializer$4,
3502
3807
  };
3503
3808
  const listCachedImagesOperationSpec = {
3504
3809
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/cachedImages",
3505
3810
  httpMethod: "GET",
3506
3811
  responses: {
3507
3812
  200: {
3508
- bodyMapper: CachedImagesListResult
3813
+ bodyMapper: CachedImagesListResult,
3509
3814
  },
3510
3815
  default: {
3511
- bodyMapper: CloudError
3512
- }
3816
+ bodyMapper: CloudError,
3817
+ },
3513
3818
  },
3514
3819
  queryParameters: [apiVersion],
3515
3820
  urlParameters: [
3516
3821
  $host,
3517
3822
  subscriptionId,
3518
- location
3823
+ location,
3519
3824
  ],
3520
3825
  headerParameters: [accept],
3521
- serializer: serializer$2
3826
+ serializer: serializer$4,
3522
3827
  };
3523
3828
  const listCapabilitiesOperationSpec = {
3524
3829
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/locations/{location}/capabilities",
3525
3830
  httpMethod: "GET",
3526
3831
  responses: {
3527
3832
  200: {
3528
- bodyMapper: CapabilitiesListResult
3833
+ bodyMapper: CapabilitiesListResult,
3529
3834
  },
3530
3835
  default: {
3531
- bodyMapper: CloudError
3532
- }
3836
+ bodyMapper: CloudError,
3837
+ },
3533
3838
  },
3534
3839
  queryParameters: [apiVersion],
3535
3840
  urlParameters: [
3536
3841
  $host,
3537
3842
  subscriptionId,
3538
- location
3843
+ location,
3539
3844
  ],
3540
3845
  headerParameters: [accept],
3541
- serializer: serializer$2
3846
+ serializer: serializer$4,
3542
3847
  };
3543
3848
  const listCachedImagesNextOperationSpec = {
3544
3849
  path: "{nextLink}",
3545
3850
  httpMethod: "GET",
3546
3851
  responses: {
3547
3852
  200: {
3548
- bodyMapper: CachedImagesListResult
3853
+ bodyMapper: CachedImagesListResult,
3549
3854
  },
3550
3855
  default: {
3551
- bodyMapper: CloudError
3552
- }
3856
+ bodyMapper: CloudError,
3857
+ },
3553
3858
  },
3554
3859
  urlParameters: [
3555
3860
  $host,
3556
3861
  subscriptionId,
3557
3862
  nextLink,
3558
- location
3863
+ location,
3559
3864
  ],
3560
3865
  headerParameters: [accept],
3561
- serializer: serializer$2
3866
+ serializer: serializer$4,
3562
3867
  };
3563
3868
  const listCapabilitiesNextOperationSpec = {
3564
3869
  path: "{nextLink}",
3565
3870
  httpMethod: "GET",
3566
3871
  responses: {
3567
3872
  200: {
3568
- bodyMapper: CapabilitiesListResult
3873
+ bodyMapper: CapabilitiesListResult,
3569
3874
  },
3570
3875
  default: {
3571
- bodyMapper: CloudError
3572
- }
3876
+ bodyMapper: CloudError,
3877
+ },
3573
3878
  },
3574
3879
  urlParameters: [
3575
3880
  $host,
3576
3881
  subscriptionId,
3577
3882
  nextLink,
3578
- location
3883
+ location,
3579
3884
  ],
3580
3885
  headerParameters: [accept],
3581
- serializer: serializer$2
3886
+ serializer: serializer$4,
3582
3887
  };
3583
3888
 
3584
3889
  /*
@@ -3599,7 +3904,7 @@ class ContainersImpl {
3599
3904
  }
3600
3905
  /**
3601
3906
  * Get the logs for a specified container instance in a specified resource group and container group.
3602
- * @param resourceGroupName The name of the resource group.
3907
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3603
3908
  * @param containerGroupName The name of the container group.
3604
3909
  * @param containerName The name of the container instance.
3605
3910
  * @param options The options parameters.
@@ -3610,7 +3915,7 @@ class ContainersImpl {
3610
3915
  /**
3611
3916
  * Executes a command for a specific container instance in a specified resource group and container
3612
3917
  * group.
3613
- * @param resourceGroupName The name of the resource group.
3918
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3614
3919
  * @param containerGroupName The name of the container group.
3615
3920
  * @param containerName The name of the container instance.
3616
3921
  * @param containerExecRequest The request for the exec command.
@@ -3622,13 +3927,13 @@ class ContainersImpl {
3622
3927
  containerGroupName,
3623
3928
  containerName,
3624
3929
  containerExecRequest,
3625
- options
3930
+ options,
3626
3931
  }, executeCommandOperationSpec);
3627
3932
  }
3628
3933
  /**
3629
3934
  * Attach to the output stream of a specific container instance in a specified resource group and
3630
3935
  * container group.
3631
- * @param resourceGroupName The name of the resource group.
3936
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3632
3937
  * @param containerGroupName The name of the container group.
3633
3938
  * @param containerName The name of the container instance.
3634
3939
  * @param options The options parameters.
@@ -3638,43 +3943,43 @@ class ContainersImpl {
3638
3943
  }
3639
3944
  }
3640
3945
  // Operation Specifications
3641
- const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3946
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3642
3947
  const listLogsOperationSpec = {
3643
3948
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/logs",
3644
3949
  httpMethod: "GET",
3645
3950
  responses: {
3646
3951
  200: {
3647
- bodyMapper: Logs
3952
+ bodyMapper: Logs,
3648
3953
  },
3649
3954
  default: {
3650
- bodyMapper: CloudError
3651
- }
3955
+ bodyMapper: CloudError,
3956
+ },
3652
3957
  },
3653
3958
  queryParameters: [
3654
3959
  apiVersion,
3655
3960
  tail,
3656
- timestamps
3961
+ timestamps,
3657
3962
  ],
3658
3963
  urlParameters: [
3659
3964
  $host,
3660
3965
  subscriptionId,
3661
3966
  resourceGroupName,
3662
3967
  containerGroupName,
3663
- containerName
3968
+ containerName,
3664
3969
  ],
3665
3970
  headerParameters: [accept],
3666
- serializer: serializer$1
3971
+ serializer: serializer$3,
3667
3972
  };
3668
3973
  const executeCommandOperationSpec = {
3669
3974
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/exec",
3670
3975
  httpMethod: "POST",
3671
3976
  responses: {
3672
3977
  200: {
3673
- bodyMapper: ContainerExecResponse
3978
+ bodyMapper: ContainerExecResponse,
3674
3979
  },
3675
3980
  default: {
3676
- bodyMapper: CloudError
3677
- }
3981
+ bodyMapper: CloudError,
3982
+ },
3678
3983
  },
3679
3984
  requestBody: containerExecRequest,
3680
3985
  queryParameters: [apiVersion],
@@ -3683,22 +3988,22 @@ const executeCommandOperationSpec = {
3683
3988
  subscriptionId,
3684
3989
  resourceGroupName,
3685
3990
  containerGroupName,
3686
- containerName
3991
+ containerName,
3687
3992
  ],
3688
3993
  headerParameters: [accept, contentType],
3689
3994
  mediaType: "json",
3690
- serializer: serializer$1
3995
+ serializer: serializer$3,
3691
3996
  };
3692
3997
  const attachOperationSpec = {
3693
3998
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroups/{containerGroupName}/containers/{containerName}/attach",
3694
3999
  httpMethod: "POST",
3695
4000
  responses: {
3696
4001
  200: {
3697
- bodyMapper: ContainerAttachResponse
4002
+ bodyMapper: ContainerAttachResponse,
3698
4003
  },
3699
4004
  default: {
3700
- bodyMapper: CloudError
3701
- }
4005
+ bodyMapper: CloudError,
4006
+ },
3702
4007
  },
3703
4008
  queryParameters: [apiVersion],
3704
4009
  urlParameters: [
@@ -3706,10 +4011,10 @@ const attachOperationSpec = {
3706
4011
  subscriptionId,
3707
4012
  resourceGroupName,
3708
4013
  containerGroupName,
3709
- containerName
4014
+ containerName,
3710
4015
  ],
3711
4016
  headerParameters: [accept],
3712
- serializer: serializer$1
4017
+ serializer: serializer$3,
3713
4018
  };
3714
4019
 
3715
4020
  /*
@@ -3731,7 +4036,7 @@ class SubnetServiceAssociationLinkImpl {
3731
4036
  /**
3732
4037
  * Delete container group virtual network association links. The operation does not delete other
3733
4038
  * resources provided by the user.
3734
- * @param resourceGroupName The name of the resource group.
4039
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3735
4040
  * @param virtualNetworkName The name of the virtual network.
3736
4041
  * @param subnetName The name of the subnet.
3737
4042
  * @param options The options parameters.
@@ -3756,18 +4061,18 @@ class SubnetServiceAssociationLinkImpl {
3756
4061
  rawResponse: {
3757
4062
  statusCode: currentRawResponse.status,
3758
4063
  body: currentRawResponse.parsedBody,
3759
- headers: currentRawResponse.headers.toJSON()
3760
- }
4064
+ headers: currentRawResponse.headers.toJSON(),
4065
+ },
3761
4066
  };
3762
4067
  });
3763
4068
  const lro = createLroSpec({
3764
4069
  sendOperationFn,
3765
4070
  args: { resourceGroupName, virtualNetworkName, subnetName, options },
3766
- spec: deleteOperationSpec
4071
+ spec: deleteOperationSpec$1,
3767
4072
  });
3768
4073
  const poller = yield coreLro.createHttpPoller(lro, {
3769
4074
  restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
3770
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
4075
+ intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
3771
4076
  });
3772
4077
  yield poller.poll();
3773
4078
  return poller;
@@ -3776,7 +4081,7 @@ class SubnetServiceAssociationLinkImpl {
3776
4081
  /**
3777
4082
  * Delete container group virtual network association links. The operation does not delete other
3778
4083
  * resources provided by the user.
3779
- * @param resourceGroupName The name of the resource group.
4084
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
3780
4085
  * @param virtualNetworkName The name of the virtual network.
3781
4086
  * @param subnetName The name of the subnet.
3782
4087
  * @param options The options parameters.
@@ -3789,8 +4094,8 @@ class SubnetServiceAssociationLinkImpl {
3789
4094
  }
3790
4095
  }
3791
4096
  // Operation Specifications
3792
- const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
3793
- const deleteOperationSpec = {
4097
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4098
+ const deleteOperationSpec$1 = {
3794
4099
  path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}/providers/Microsoft.ContainerInstance/serviceAssociationLinks/default",
3795
4100
  httpMethod: "DELETE",
3796
4101
  responses: {
@@ -3799,8 +4104,8 @@ const deleteOperationSpec = {
3799
4104
  202: {},
3800
4105
  204: {},
3801
4106
  default: {
3802
- bodyMapper: CloudError
3803
- }
4107
+ bodyMapper: CloudError,
4108
+ },
3804
4109
  },
3805
4110
  queryParameters: [apiVersion],
3806
4111
  urlParameters: [
@@ -3808,10 +4113,10 @@ const deleteOperationSpec = {
3808
4113
  subscriptionId,
3809
4114
  resourceGroupName,
3810
4115
  virtualNetworkName,
3811
- subnetName
4116
+ subnetName,
3812
4117
  ],
3813
4118
  headerParameters: [accept],
3814
- serializer
4119
+ serializer: serializer$2,
3815
4120
  };
3816
4121
 
3817
4122
  /*
@@ -3821,95 +4126,679 @@ const deleteOperationSpec = {
3821
4126
  * Code generated by Microsoft (R) AutoRest Code Generator.
3822
4127
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
3823
4128
  */
3824
- class ContainerInstanceManagementClient extends coreClient__namespace.ServiceClient {
4129
+ /// <reference lib="esnext.asynciterable" />
4130
+ /** Class containing ContainerGroupProfiles operations. */
4131
+ class ContainerGroupProfilesImpl {
3825
4132
  /**
3826
- * Initializes a new instance of the ContainerInstanceManagementClient class.
3827
- * @param credentials Subscription credentials which uniquely identify client subscription.
3828
- * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
3829
- * The subscription ID forms part of the URI for every service call.
3830
- * @param options The parameter options
4133
+ * Initialize a new instance of the class ContainerGroupProfiles class.
4134
+ * @param client Reference to the service client
3831
4135
  */
3832
- constructor(credentials, subscriptionId, options) {
3833
- var _a, _b, _c;
3834
- if (credentials === undefined) {
3835
- throw new Error("'credentials' cannot be null");
3836
- }
3837
- if (subscriptionId === undefined) {
3838
- throw new Error("'subscriptionId' cannot be null");
3839
- }
3840
- // Initializing default values for options
3841
- if (!options) {
3842
- options = {};
3843
- }
3844
- const defaults = {
3845
- requestContentType: "application/json; charset=utf-8",
3846
- credential: credentials
3847
- };
3848
- const packageDetails = `azsdk-js-arm-containerinstance/9.1.1`;
3849
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
3850
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
3851
- : `${packageDetails}`;
3852
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
3853
- userAgentPrefix
3854
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
3855
- super(optionsWithDefaults);
3856
- let bearerTokenAuthenticationPolicyFound = false;
3857
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
3858
- const pipelinePolicies = options.pipeline.getOrderedPolicies();
3859
- bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
3860
- coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
3861
- }
3862
- if (!options ||
3863
- !options.pipeline ||
3864
- options.pipeline.getOrderedPolicies().length == 0 ||
3865
- !bearerTokenAuthenticationPolicyFound) {
3866
- this.pipeline.removePolicy({
3867
- name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
3868
- });
3869
- this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
3870
- credential: credentials,
3871
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
3872
- challengeCallbacks: {
3873
- authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
4136
+ constructor(client) {
4137
+ this.client = client;
4138
+ }
4139
+ /**
4140
+ * Get a list of container group profiles in the specified subscription. This operation returns
4141
+ * properties of each container group profile including containers, image registry credentials, restart
4142
+ * policy, IP address type, OS type,volumes,current revision number, etc.
4143
+ * @param options The options parameters.
4144
+ */
4145
+ list(options) {
4146
+ const iter = this.listPagingAll(options);
4147
+ return {
4148
+ next() {
4149
+ return iter.next();
4150
+ },
4151
+ [Symbol.asyncIterator]() {
4152
+ return this;
4153
+ },
4154
+ byPage: (settings) => {
4155
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4156
+ throw new Error("maxPageSize is not supported by this operation.");
3874
4157
  }
3875
- }));
3876
- }
3877
- // Parameter assignments
3878
- this.subscriptionId = subscriptionId;
3879
- // Assigning values to Constant parameters
3880
- this.$host = options.$host || "https://management.azure.com";
3881
- this.apiVersion = options.apiVersion || "2023-05-01";
3882
- this.containerGroups = new ContainerGroupsImpl(this);
3883
- this.operations = new OperationsImpl(this);
3884
- this.location = new LocationImpl(this);
3885
- this.containers = new ContainersImpl(this);
3886
- this.subnetServiceAssociationLink = new SubnetServiceAssociationLinkImpl(this);
3887
- this.addCustomApiVersionPolicy(options.apiVersion);
4158
+ return this.listPagingPage(options, settings);
4159
+ },
4160
+ };
3888
4161
  }
3889
- /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
3890
- addCustomApiVersionPolicy(apiVersion) {
3891
- if (!apiVersion) {
3892
- return;
3893
- }
3894
- const apiVersionPolicy = {
3895
- name: "CustomApiVersionPolicy",
3896
- sendRequest(request, next) {
3897
- return tslib.__awaiter(this, void 0, void 0, function* () {
3898
- const param = request.url.split("?");
3899
- if (param.length > 1) {
3900
- const newParams = param[1].split("&").map((item) => {
3901
- if (item.indexOf("api-version") > -1) {
3902
- return "api-version=" + apiVersion;
3903
- }
3904
- else {
3905
- return item;
3906
- }
3907
- });
3908
- request.url = param[0] + "?" + newParams.join("&");
3909
- }
3910
- return next(request);
3911
- });
3912
- }
4162
+ listPagingPage(options, settings) {
4163
+ return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
4164
+ let result;
4165
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4166
+ if (!continuationToken) {
4167
+ result = yield tslib.__await(this._list(options));
4168
+ let page = result.value || [];
4169
+ continuationToken = result.nextLink;
4170
+ setContinuationToken(page, continuationToken);
4171
+ yield yield tslib.__await(page);
4172
+ }
4173
+ while (continuationToken) {
4174
+ result = yield tslib.__await(this._listNext(continuationToken, options));
4175
+ continuationToken = result.nextLink;
4176
+ let page = result.value || [];
4177
+ setContinuationToken(page, continuationToken);
4178
+ yield yield tslib.__await(page);
4179
+ }
4180
+ });
4181
+ }
4182
+ listPagingAll(options) {
4183
+ return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
4184
+ var _a, e_1, _b, _c;
4185
+ try {
4186
+ for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
4187
+ _c = _f.value;
4188
+ _d = false;
4189
+ const page = _c;
4190
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4191
+ }
4192
+ }
4193
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
4194
+ finally {
4195
+ try {
4196
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4197
+ }
4198
+ finally { if (e_1) throw e_1.error; }
4199
+ }
4200
+ });
4201
+ }
4202
+ /**
4203
+ * Get a list of container group profiles in a specified subscription and resource group. This
4204
+ * operation returns properties of each container group profile including containers, image registry
4205
+ * credentials, restart policy, IP address type, OS type volumes, current revision number, etc.
4206
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4207
+ * @param options The options parameters.
4208
+ */
4209
+ listByResourceGroup(resourceGroupName, options) {
4210
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
4211
+ return {
4212
+ next() {
4213
+ return iter.next();
4214
+ },
4215
+ [Symbol.asyncIterator]() {
4216
+ return this;
4217
+ },
4218
+ byPage: (settings) => {
4219
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4220
+ throw new Error("maxPageSize is not supported by this operation.");
4221
+ }
4222
+ return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
4223
+ },
4224
+ };
4225
+ }
4226
+ listByResourceGroupPagingPage(resourceGroupName, options, settings) {
4227
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
4228
+ let result;
4229
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4230
+ if (!continuationToken) {
4231
+ result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
4232
+ let page = result.value || [];
4233
+ continuationToken = result.nextLink;
4234
+ setContinuationToken(page, continuationToken);
4235
+ yield yield tslib.__await(page);
4236
+ }
4237
+ while (continuationToken) {
4238
+ result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
4239
+ continuationToken = result.nextLink;
4240
+ let page = result.value || [];
4241
+ setContinuationToken(page, continuationToken);
4242
+ yield yield tslib.__await(page);
4243
+ }
4244
+ });
4245
+ }
4246
+ listByResourceGroupPagingAll(resourceGroupName, options) {
4247
+ return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
4248
+ var _a, e_2, _b, _c;
4249
+ try {
4250
+ for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
4251
+ _c = _f.value;
4252
+ _d = false;
4253
+ const page = _c;
4254
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4255
+ }
4256
+ }
4257
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
4258
+ finally {
4259
+ try {
4260
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4261
+ }
4262
+ finally { if (e_2) throw e_2.error; }
4263
+ }
4264
+ });
4265
+ }
4266
+ /**
4267
+ * Get a list of container group profiles in the specified subscription. This operation returns
4268
+ * properties of each container group profile including containers, image registry credentials, restart
4269
+ * policy, IP address type, OS type,volumes,current revision number, etc.
4270
+ * @param options The options parameters.
4271
+ */
4272
+ _list(options) {
4273
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
4274
+ }
4275
+ /**
4276
+ * Get a list of container group profiles in a specified subscription and resource group. This
4277
+ * operation returns properties of each container group profile including containers, image registry
4278
+ * credentials, restart policy, IP address type, OS type volumes, current revision number, etc.
4279
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4280
+ * @param options The options parameters.
4281
+ */
4282
+ _listByResourceGroup(resourceGroupName, options) {
4283
+ return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
4284
+ }
4285
+ /**
4286
+ * Gets the properties of the specified container group profile in the specified subscription and
4287
+ * resource group. The operation returns the properties of container group profile including
4288
+ * containers, image registry credentials, restart policy, IP address type, OS type, volumes, current
4289
+ * revision number, etc.
4290
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4291
+ * @param containerGroupProfileName The name of the container group profile.
4292
+ * @param options The options parameters.
4293
+ */
4294
+ get(resourceGroupName, containerGroupProfileName, options) {
4295
+ return this.client.sendOperationRequest({ resourceGroupName, containerGroupProfileName, options }, getOperationSpec);
4296
+ }
4297
+ /**
4298
+ * Create or update container group profiles with specified configurations.
4299
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4300
+ * @param containerGroupProfileName The name of the container group profile.
4301
+ * @param containerGroupProfile The properties of the container group profile to be created or updated.
4302
+ * @param options The options parameters.
4303
+ */
4304
+ createOrUpdate(resourceGroupName, containerGroupProfileName, containerGroupProfile, options) {
4305
+ return this.client.sendOperationRequest({
4306
+ resourceGroupName,
4307
+ containerGroupProfileName,
4308
+ containerGroupProfile,
4309
+ options,
4310
+ }, createOrUpdateOperationSpec);
4311
+ }
4312
+ /**
4313
+ * Patches container group profile with specified properties.
4314
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4315
+ * @param containerGroupProfileName The name of the container group profile.
4316
+ * @param properties The container group profile properties that need to be updated.
4317
+ * @param options The options parameters.
4318
+ */
4319
+ patch(resourceGroupName, containerGroupProfileName, properties, options) {
4320
+ return this.client.sendOperationRequest({ resourceGroupName, containerGroupProfileName, properties, options }, patchOperationSpec);
4321
+ }
4322
+ /**
4323
+ * Delete the specified container group profile in the specified subscription and resource group. The
4324
+ * operation does not delete other resources provided by the user, such as volumes.
4325
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4326
+ * @param containerGroupProfileName The name of the container group profile.
4327
+ * @param options The options parameters.
4328
+ */
4329
+ delete(resourceGroupName, containerGroupProfileName, options) {
4330
+ return this.client.sendOperationRequest({ resourceGroupName, containerGroupProfileName, options }, deleteOperationSpec);
4331
+ }
4332
+ /**
4333
+ * ListNext
4334
+ * @param nextLink The nextLink from the previous successful call to the List method.
4335
+ * @param options The options parameters.
4336
+ */
4337
+ _listNext(nextLink, options) {
4338
+ return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
4339
+ }
4340
+ /**
4341
+ * ListByResourceGroupNext
4342
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4343
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
4344
+ * @param options The options parameters.
4345
+ */
4346
+ _listByResourceGroupNext(resourceGroupName, nextLink, options) {
4347
+ return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
4348
+ }
4349
+ }
4350
+ // Operation Specifications
4351
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4352
+ const listOperationSpec = {
4353
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.ContainerInstance/containerGroupProfiles",
4354
+ httpMethod: "GET",
4355
+ responses: {
4356
+ 200: {
4357
+ bodyMapper: ContainerGroupProfileListResult,
4358
+ },
4359
+ default: {
4360
+ bodyMapper: CloudError,
4361
+ },
4362
+ },
4363
+ queryParameters: [apiVersion],
4364
+ urlParameters: [$host, subscriptionId],
4365
+ headerParameters: [accept],
4366
+ serializer: serializer$1,
4367
+ };
4368
+ const listByResourceGroupOperationSpec = {
4369
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles",
4370
+ httpMethod: "GET",
4371
+ responses: {
4372
+ 200: {
4373
+ bodyMapper: ContainerGroupProfileListResult,
4374
+ },
4375
+ default: {
4376
+ bodyMapper: CloudError,
4377
+ },
4378
+ },
4379
+ queryParameters: [apiVersion],
4380
+ urlParameters: [
4381
+ $host,
4382
+ subscriptionId,
4383
+ resourceGroupName,
4384
+ ],
4385
+ headerParameters: [accept],
4386
+ serializer: serializer$1,
4387
+ };
4388
+ const getOperationSpec = {
4389
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}",
4390
+ httpMethod: "GET",
4391
+ responses: {
4392
+ 200: {
4393
+ bodyMapper: ContainerGroupProfile,
4394
+ },
4395
+ default: {
4396
+ bodyMapper: CloudError,
4397
+ },
4398
+ },
4399
+ queryParameters: [apiVersion],
4400
+ urlParameters: [
4401
+ $host,
4402
+ subscriptionId,
4403
+ resourceGroupName,
4404
+ containerGroupProfileName,
4405
+ ],
4406
+ headerParameters: [accept],
4407
+ serializer: serializer$1,
4408
+ };
4409
+ const createOrUpdateOperationSpec = {
4410
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}",
4411
+ httpMethod: "PUT",
4412
+ responses: {
4413
+ 200: {
4414
+ bodyMapper: ContainerGroupProfile,
4415
+ },
4416
+ 201: {
4417
+ bodyMapper: ContainerGroupProfile,
4418
+ },
4419
+ default: {
4420
+ bodyMapper: CloudError,
4421
+ },
4422
+ },
4423
+ requestBody: containerGroupProfile,
4424
+ queryParameters: [apiVersion],
4425
+ urlParameters: [
4426
+ $host,
4427
+ subscriptionId,
4428
+ resourceGroupName,
4429
+ containerGroupProfileName,
4430
+ ],
4431
+ headerParameters: [accept, contentType],
4432
+ mediaType: "json",
4433
+ serializer: serializer$1,
4434
+ };
4435
+ const patchOperationSpec = {
4436
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}",
4437
+ httpMethod: "PATCH",
4438
+ responses: {
4439
+ 200: {
4440
+ bodyMapper: ContainerGroupProfile,
4441
+ },
4442
+ default: {
4443
+ bodyMapper: CloudError,
4444
+ },
4445
+ },
4446
+ requestBody: properties,
4447
+ queryParameters: [apiVersion],
4448
+ urlParameters: [
4449
+ $host,
4450
+ subscriptionId,
4451
+ resourceGroupName,
4452
+ containerGroupProfileName,
4453
+ ],
4454
+ headerParameters: [accept, contentType],
4455
+ mediaType: "json",
4456
+ serializer: serializer$1,
4457
+ };
4458
+ const deleteOperationSpec = {
4459
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}",
4460
+ httpMethod: "DELETE",
4461
+ responses: {
4462
+ 200: {},
4463
+ 204: {},
4464
+ default: {
4465
+ bodyMapper: CloudError,
4466
+ },
4467
+ },
4468
+ queryParameters: [apiVersion],
4469
+ urlParameters: [
4470
+ $host,
4471
+ subscriptionId,
4472
+ resourceGroupName,
4473
+ containerGroupProfileName,
4474
+ ],
4475
+ headerParameters: [accept],
4476
+ serializer: serializer$1,
4477
+ };
4478
+ const listNextOperationSpec = {
4479
+ path: "{nextLink}",
4480
+ httpMethod: "GET",
4481
+ responses: {
4482
+ 200: {
4483
+ bodyMapper: ContainerGroupProfileListResult,
4484
+ },
4485
+ default: {
4486
+ bodyMapper: CloudError,
4487
+ },
4488
+ },
4489
+ urlParameters: [
4490
+ $host,
4491
+ subscriptionId,
4492
+ nextLink,
4493
+ ],
4494
+ headerParameters: [accept],
4495
+ serializer: serializer$1,
4496
+ };
4497
+ const listByResourceGroupNextOperationSpec = {
4498
+ path: "{nextLink}",
4499
+ httpMethod: "GET",
4500
+ responses: {
4501
+ 200: {
4502
+ bodyMapper: ContainerGroupProfileListResult,
4503
+ },
4504
+ default: {
4505
+ bodyMapper: CloudError,
4506
+ },
4507
+ },
4508
+ urlParameters: [
4509
+ $host,
4510
+ subscriptionId,
4511
+ resourceGroupName,
4512
+ nextLink,
4513
+ ],
4514
+ headerParameters: [accept],
4515
+ serializer: serializer$1,
4516
+ };
4517
+
4518
+ /*
4519
+ * Copyright (c) Microsoft Corporation.
4520
+ * Licensed under the MIT License.
4521
+ *
4522
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4523
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4524
+ */
4525
+ /// <reference lib="esnext.asynciterable" />
4526
+ /** Class containing ContainerGroupProfileOperations operations. */
4527
+ class ContainerGroupProfileOperationsImpl {
4528
+ /**
4529
+ * Initialize a new instance of the class ContainerGroupProfileOperations class.
4530
+ * @param client Reference to the service client
4531
+ */
4532
+ constructor(client) {
4533
+ this.client = client;
4534
+ }
4535
+ /**
4536
+ * Get a list of all the revisions of the specified container group profile in the given subscription
4537
+ * and resource group. This operation returns properties of each revision of the specified container
4538
+ * group profile including containers, image registry credentials, restart policy, IP address type, OS
4539
+ * type volumes, revision number, etc.
4540
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4541
+ * @param containerGroupProfileName The name of the container group profile.
4542
+ * @param options The options parameters.
4543
+ */
4544
+ listAllRevisions(resourceGroupName, containerGroupProfileName, options) {
4545
+ const iter = this.listAllRevisionsPagingAll(resourceGroupName, containerGroupProfileName, options);
4546
+ return {
4547
+ next() {
4548
+ return iter.next();
4549
+ },
4550
+ [Symbol.asyncIterator]() {
4551
+ return this;
4552
+ },
4553
+ byPage: (settings) => {
4554
+ if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
4555
+ throw new Error("maxPageSize is not supported by this operation.");
4556
+ }
4557
+ return this.listAllRevisionsPagingPage(resourceGroupName, containerGroupProfileName, options, settings);
4558
+ },
4559
+ };
4560
+ }
4561
+ listAllRevisionsPagingPage(resourceGroupName, containerGroupProfileName, options, settings) {
4562
+ return tslib.__asyncGenerator(this, arguments, function* listAllRevisionsPagingPage_1() {
4563
+ let result;
4564
+ let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
4565
+ if (!continuationToken) {
4566
+ result = yield tslib.__await(this._listAllRevisions(resourceGroupName, containerGroupProfileName, options));
4567
+ let page = result.value || [];
4568
+ continuationToken = result.nextLink;
4569
+ setContinuationToken(page, continuationToken);
4570
+ yield yield tslib.__await(page);
4571
+ }
4572
+ while (continuationToken) {
4573
+ result = yield tslib.__await(this._listAllRevisionsNext(resourceGroupName, containerGroupProfileName, continuationToken, options));
4574
+ continuationToken = result.nextLink;
4575
+ let page = result.value || [];
4576
+ setContinuationToken(page, continuationToken);
4577
+ yield yield tslib.__await(page);
4578
+ }
4579
+ });
4580
+ }
4581
+ listAllRevisionsPagingAll(resourceGroupName, containerGroupProfileName, options) {
4582
+ return tslib.__asyncGenerator(this, arguments, function* listAllRevisionsPagingAll_1() {
4583
+ var _a, e_1, _b, _c;
4584
+ try {
4585
+ for (var _d = true, _e = tslib.__asyncValues(this.listAllRevisionsPagingPage(resourceGroupName, containerGroupProfileName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
4586
+ _c = _f.value;
4587
+ _d = false;
4588
+ const page = _c;
4589
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
4590
+ }
4591
+ }
4592
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
4593
+ finally {
4594
+ try {
4595
+ if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
4596
+ }
4597
+ finally { if (e_1) throw e_1.error; }
4598
+ }
4599
+ });
4600
+ }
4601
+ /**
4602
+ * Get a list of all the revisions of the specified container group profile in the given subscription
4603
+ * and resource group. This operation returns properties of each revision of the specified container
4604
+ * group profile including containers, image registry credentials, restart policy, IP address type, OS
4605
+ * type volumes, revision number, etc.
4606
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4607
+ * @param containerGroupProfileName The name of the container group profile.
4608
+ * @param options The options parameters.
4609
+ */
4610
+ _listAllRevisions(resourceGroupName, containerGroupProfileName, options) {
4611
+ return this.client.sendOperationRequest({ resourceGroupName, containerGroupProfileName, options }, listAllRevisionsOperationSpec);
4612
+ }
4613
+ /**
4614
+ * Gets the properties of the specified revision of the container group profile in the given
4615
+ * subscription and resource group. The operation returns the properties of container group profile
4616
+ * including containers, image registry credentials, restart policy, IP address type, OS type, volumes,
4617
+ * current revision number, etc.
4618
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4619
+ * @param containerGroupProfileName The name of the container group profile.
4620
+ * @param revisionNumber The revision number of the container group profile.
4621
+ * @param options The options parameters.
4622
+ */
4623
+ getByRevisionNumber(resourceGroupName, containerGroupProfileName, revisionNumber, options) {
4624
+ return this.client.sendOperationRequest({ resourceGroupName, containerGroupProfileName, revisionNumber, options }, getByRevisionNumberOperationSpec);
4625
+ }
4626
+ /**
4627
+ * ListAllRevisionsNext
4628
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
4629
+ * @param containerGroupProfileName The name of the container group profile.
4630
+ * @param nextLink The nextLink from the previous successful call to the ListAllRevisions method.
4631
+ * @param options The options parameters.
4632
+ */
4633
+ _listAllRevisionsNext(resourceGroupName, containerGroupProfileName, nextLink, options) {
4634
+ return this.client.sendOperationRequest({ resourceGroupName, containerGroupProfileName, nextLink, options }, listAllRevisionsNextOperationSpec);
4635
+ }
4636
+ }
4637
+ // Operation Specifications
4638
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
4639
+ const listAllRevisionsOperationSpec = {
4640
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions",
4641
+ httpMethod: "GET",
4642
+ responses: {
4643
+ 200: {
4644
+ bodyMapper: ContainerGroupProfileListResult,
4645
+ },
4646
+ default: {
4647
+ bodyMapper: CloudError,
4648
+ },
4649
+ },
4650
+ queryParameters: [apiVersion],
4651
+ urlParameters: [
4652
+ $host,
4653
+ subscriptionId,
4654
+ resourceGroupName,
4655
+ containerGroupProfileName,
4656
+ ],
4657
+ headerParameters: [accept],
4658
+ serializer,
4659
+ };
4660
+ const getByRevisionNumberOperationSpec = {
4661
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerInstance/containerGroupProfiles/{containerGroupProfileName}/revisions/{revisionNumber}",
4662
+ httpMethod: "GET",
4663
+ responses: {
4664
+ 200: {
4665
+ bodyMapper: ContainerGroupProfile,
4666
+ },
4667
+ default: {
4668
+ bodyMapper: CloudError,
4669
+ },
4670
+ },
4671
+ queryParameters: [apiVersion],
4672
+ urlParameters: [
4673
+ $host,
4674
+ subscriptionId,
4675
+ resourceGroupName,
4676
+ containerGroupProfileName,
4677
+ revisionNumber,
4678
+ ],
4679
+ headerParameters: [accept],
4680
+ serializer,
4681
+ };
4682
+ const listAllRevisionsNextOperationSpec = {
4683
+ path: "{nextLink}",
4684
+ httpMethod: "GET",
4685
+ responses: {
4686
+ 200: {
4687
+ bodyMapper: ContainerGroupProfileListResult,
4688
+ },
4689
+ default: {
4690
+ bodyMapper: CloudError,
4691
+ },
4692
+ },
4693
+ urlParameters: [
4694
+ $host,
4695
+ subscriptionId,
4696
+ resourceGroupName,
4697
+ nextLink,
4698
+ containerGroupProfileName,
4699
+ ],
4700
+ headerParameters: [accept],
4701
+ serializer,
4702
+ };
4703
+
4704
+ /*
4705
+ * Copyright (c) Microsoft Corporation.
4706
+ * Licensed under the MIT License.
4707
+ *
4708
+ * Code generated by Microsoft (R) AutoRest Code Generator.
4709
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
4710
+ */
4711
+ class ContainerInstanceManagementClient extends coreClient__namespace.ServiceClient {
4712
+ /**
4713
+ * Initializes a new instance of the ContainerInstanceManagementClient class.
4714
+ * @param credentials Subscription credentials which uniquely identify client subscription.
4715
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
4716
+ * @param options The parameter options
4717
+ */
4718
+ constructor(credentials, subscriptionId, options) {
4719
+ var _a, _b, _c;
4720
+ if (credentials === undefined) {
4721
+ throw new Error("'credentials' cannot be null");
4722
+ }
4723
+ if (subscriptionId === undefined) {
4724
+ throw new Error("'subscriptionId' cannot be null");
4725
+ }
4726
+ // Initializing default values for options
4727
+ if (!options) {
4728
+ options = {};
4729
+ }
4730
+ const defaults = {
4731
+ requestContentType: "application/json; charset=utf-8",
4732
+ credential: credentials,
4733
+ };
4734
+ const packageDetails = `azsdk-js-arm-containerinstance/9.2.0-beta.1`;
4735
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
4736
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
4737
+ : `${packageDetails}`;
4738
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
4739
+ userAgentPrefix,
4740
+ }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
4741
+ super(optionsWithDefaults);
4742
+ let bearerTokenAuthenticationPolicyFound = false;
4743
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
4744
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
4745
+ bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
4746
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
4747
+ }
4748
+ if (!options ||
4749
+ !options.pipeline ||
4750
+ options.pipeline.getOrderedPolicies().length == 0 ||
4751
+ !bearerTokenAuthenticationPolicyFound) {
4752
+ this.pipeline.removePolicy({
4753
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName,
4754
+ });
4755
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
4756
+ credential: credentials,
4757
+ scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
4758
+ challengeCallbacks: {
4759
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge,
4760
+ },
4761
+ }));
4762
+ }
4763
+ // Parameter assignments
4764
+ this.subscriptionId = subscriptionId;
4765
+ // Assigning values to Constant parameters
4766
+ this.$host = options.$host || "https://management.azure.com";
4767
+ this.apiVersion = options.apiVersion || "2024-05-01-preview";
4768
+ this.containerGroups = new ContainerGroupsImpl(this);
4769
+ this.operations = new OperationsImpl(this);
4770
+ this.location = new LocationImpl(this);
4771
+ this.containers = new ContainersImpl(this);
4772
+ this.subnetServiceAssociationLink = new SubnetServiceAssociationLinkImpl(this);
4773
+ this.containerGroupProfiles = new ContainerGroupProfilesImpl(this);
4774
+ this.containerGroupProfileOperations =
4775
+ new ContainerGroupProfileOperationsImpl(this);
4776
+ this.addCustomApiVersionPolicy(options.apiVersion);
4777
+ }
4778
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
4779
+ addCustomApiVersionPolicy(apiVersion) {
4780
+ if (!apiVersion) {
4781
+ return;
4782
+ }
4783
+ const apiVersionPolicy = {
4784
+ name: "CustomApiVersionPolicy",
4785
+ sendRequest(request, next) {
4786
+ return tslib.__awaiter(this, void 0, void 0, function* () {
4787
+ const param = request.url.split("?");
4788
+ if (param.length > 1) {
4789
+ const newParams = param[1].split("&").map((item) => {
4790
+ if (item.indexOf("api-version") > -1) {
4791
+ return "api-version=" + apiVersion;
4792
+ }
4793
+ else {
4794
+ return item;
4795
+ }
4796
+ });
4797
+ request.url = param[0] + "?" + newParams.join("&");
4798
+ }
4799
+ return next(request);
4800
+ });
4801
+ },
3913
4802
  };
3914
4803
  this.pipeline.addPolicy(apiVersionPolicy);
3915
4804
  }