@azure/arm-batch 9.1.1-alpha.20240313.1 → 9.2.0-alpha.20240321.2

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 (134) hide show
  1. package/CHANGELOG.md +12 -10
  2. package/LICENSE +1 -1
  3. package/dist/index.js +1815 -1675
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/applicationCreateSample.js +3 -3
  8. package/dist-esm/samples-dev/applicationCreateSample.js.map +1 -1
  9. package/dist-esm/samples-dev/applicationDeleteSample.js +1 -1
  10. package/dist-esm/samples-dev/applicationGetSample.js +1 -1
  11. package/dist-esm/samples-dev/applicationListSample.js +1 -1
  12. package/dist-esm/samples-dev/applicationPackageActivateSample.js +2 -2
  13. package/dist-esm/samples-dev/applicationPackageActivateSample.js.map +1 -1
  14. package/dist-esm/samples-dev/applicationPackageCreateSample.js +1 -1
  15. package/dist-esm/samples-dev/applicationPackageDeleteSample.js +1 -1
  16. package/dist-esm/samples-dev/applicationPackageGetSample.js +1 -1
  17. package/dist-esm/samples-dev/applicationPackageListSample.js +1 -1
  18. package/dist-esm/samples-dev/applicationUpdateSample.js +2 -2
  19. package/dist-esm/samples-dev/batchAccountCreateSample.js +20 -20
  20. package/dist-esm/samples-dev/batchAccountCreateSample.js.map +1 -1
  21. package/dist-esm/samples-dev/batchAccountDeleteSample.js +1 -1
  22. package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +1 -1
  23. package/dist-esm/samples-dev/batchAccountGetKeysSample.js +1 -1
  24. package/dist-esm/samples-dev/batchAccountGetSample.js +2 -2
  25. package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +1 -1
  26. package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +1 -1
  27. package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +3 -3
  28. package/dist-esm/samples-dev/batchAccountListSample.js +1 -1
  29. package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +3 -3
  30. package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js.map +1 -1
  31. package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +1 -1
  32. package/dist-esm/samples-dev/batchAccountUpdateSample.js +4 -4
  33. package/dist-esm/samples-dev/batchAccountUpdateSample.js.map +1 -1
  34. package/dist-esm/samples-dev/certificateCancelDeletionSample.js +1 -1
  35. package/dist-esm/samples-dev/certificateCreateSample.js +7 -7
  36. package/dist-esm/samples-dev/certificateCreateSample.js.map +1 -1
  37. package/dist-esm/samples-dev/certificateDeleteSample.js +1 -1
  38. package/dist-esm/samples-dev/certificateGetSample.js +2 -2
  39. package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +4 -4
  40. package/dist-esm/samples-dev/certificateListByBatchAccountSample.js.map +1 -1
  41. package/dist-esm/samples-dev/certificateUpdateSample.js +3 -3
  42. package/dist-esm/samples-dev/certificateUpdateSample.js.map +1 -1
  43. package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +5 -5
  44. package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js.map +1 -1
  45. package/dist-esm/samples-dev/locationGetQuotasSample.js +1 -1
  46. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +1 -1
  47. package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +1 -1
  48. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  49. package/dist-esm/samples-dev/poolCreateSample.js +178 -118
  50. package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
  51. package/dist-esm/samples-dev/poolDeleteSample.js +1 -1
  52. package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +1 -1
  53. package/dist-esm/samples-dev/poolGetSample.js +25 -6
  54. package/dist-esm/samples-dev/poolGetSample.js.map +1 -1
  55. package/dist-esm/samples-dev/poolListByBatchAccountSample.js +3 -3
  56. package/dist-esm/samples-dev/poolListByBatchAccountSample.js.map +1 -1
  57. package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
  58. package/dist-esm/samples-dev/poolUpdateSample.js +14 -14
  59. package/dist-esm/samples-dev/poolUpdateSample.js.map +1 -1
  60. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
  61. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js.map +1 -1
  62. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
  63. package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +1 -1
  64. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +4 -4
  65. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js.map +1 -1
  66. package/dist-esm/samples-dev/privateLinkResourceGetSample.js +1 -1
  67. package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
  68. package/dist-esm/src/batchManagementClient.js +11 -10
  69. package/dist-esm/src/batchManagementClient.js.map +1 -1
  70. package/dist-esm/src/lroImpl.js +1 -1
  71. package/dist-esm/src/models/index.d.ts +46 -0
  72. package/dist-esm/src/models/index.d.ts.map +1 -1
  73. package/dist-esm/src/models/index.js.map +1 -1
  74. package/dist-esm/src/models/mappers.d.ts +3 -0
  75. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  76. package/dist-esm/src/models/mappers.js +1367 -1231
  77. package/dist-esm/src/models/mappers.js.map +1 -1
  78. package/dist-esm/src/models/parameters.js +87 -87
  79. package/dist-esm/src/models/parameters.js.map +1 -1
  80. package/dist-esm/src/operations/applicationOperations.js +30 -30
  81. package/dist-esm/src/operations/applicationOperations.js.map +1 -1
  82. package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -1
  83. package/dist-esm/src/operations/applicationPackageOperations.js +31 -31
  84. package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
  85. package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
  86. package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
  87. package/dist-esm/src/operations/batchAccountOperations.js +95 -95
  88. package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
  89. package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
  90. package/dist-esm/src/operations/certificateOperations.js +43 -43
  91. package/dist-esm/src/operations/certificateOperations.js.map +1 -1
  92. package/dist-esm/src/operations/location.js +34 -34
  93. package/dist-esm/src/operations/location.js.map +1 -1
  94. package/dist-esm/src/operations/operations.js +9 -9
  95. package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
  96. package/dist-esm/src/operations/poolOperations.js +48 -48
  97. package/dist-esm/src/operations/poolOperations.js.map +1 -1
  98. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
  99. package/dist-esm/src/operations/privateEndpointConnectionOperations.js +45 -45
  100. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
  101. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -1
  102. package/dist-esm/src/operations/privateLinkResourceOperations.js +16 -16
  103. package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
  104. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
  105. package/dist-esm/test/batch_examples.js +1 -1
  106. package/dist-esm/test/batch_examples.js.map +1 -1
  107. package/package.json +3 -4
  108. package/review/arm-batch.api.md +31 -0
  109. package/src/batchManagementClient.ts +22 -22
  110. package/src/lroImpl.ts +3 -3
  111. package/src/models/index.ts +74 -14
  112. package/src/models/mappers.ts +1459 -1314
  113. package/src/models/parameters.ts +88 -88
  114. package/src/operations/applicationOperations.ts +54 -59
  115. package/src/operations/applicationPackageOperations.ts +59 -63
  116. package/src/operations/batchAccountOperations.ts +211 -223
  117. package/src/operations/certificateOperations.ts +80 -87
  118. package/src/operations/location.ts +96 -98
  119. package/src/operations/operations.ts +16 -16
  120. package/src/operations/poolOperations.ts +88 -96
  121. package/src/operations/privateEndpointConnectionOperations.ts +86 -91
  122. package/src/operations/privateLinkResourceOperations.ts +35 -36
  123. package/src/operationsInterfaces/applicationOperations.ts +6 -6
  124. package/src/operationsInterfaces/applicationPackageOperations.ts +6 -6
  125. package/src/operationsInterfaces/batchAccountOperations.ts +16 -16
  126. package/src/operationsInterfaces/certificateOperations.ts +8 -8
  127. package/src/operationsInterfaces/location.ts +5 -5
  128. package/src/operationsInterfaces/operations.ts +1 -1
  129. package/src/operationsInterfaces/poolOperations.ts +9 -9
  130. package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +7 -7
  131. package/src/operationsInterfaces/privateLinkResourceOperations.ts +3 -3
  132. package/src/pagingHelper.ts +1 -1
  133. package/types/arm-batch.d.ts +51 -1
  134. package/types/tsdoc-metadata.json +1 -1
@@ -16,7 +16,7 @@ import {
16
16
  PrivateEndpointConnectionUpdateOptionalParams,
17
17
  PrivateEndpointConnectionUpdateResponse,
18
18
  PrivateEndpointConnectionDeleteOptionalParams,
19
- PrivateEndpointConnectionDeleteResponse
19
+ PrivateEndpointConnectionDeleteResponse,
20
20
  } from "../models";
21
21
 
22
22
  /// <reference lib="esnext.asynciterable" />
@@ -31,7 +31,7 @@ export interface PrivateEndpointConnectionOperations {
31
31
  listByBatchAccount(
32
32
  resourceGroupName: string,
33
33
  accountName: string,
34
- options?: PrivateEndpointConnectionListByBatchAccountOptionalParams
34
+ options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,
35
35
  ): PagedAsyncIterableIterator<PrivateEndpointConnection>;
36
36
  /**
37
37
  * Gets information about the specified private endpoint connection.
@@ -45,7 +45,7 @@ export interface PrivateEndpointConnectionOperations {
45
45
  resourceGroupName: string,
46
46
  accountName: string,
47
47
  privateEndpointConnectionName: string,
48
- options?: PrivateEndpointConnectionGetOptionalParams
48
+ options?: PrivateEndpointConnectionGetOptionalParams,
49
49
  ): Promise<PrivateEndpointConnectionGetResponse>;
50
50
  /**
51
51
  * Updates the properties of an existing private endpoint connection.
@@ -62,7 +62,7 @@ export interface PrivateEndpointConnectionOperations {
62
62
  accountName: string,
63
63
  privateEndpointConnectionName: string,
64
64
  parameters: PrivateEndpointConnection,
65
- options?: PrivateEndpointConnectionUpdateOptionalParams
65
+ options?: PrivateEndpointConnectionUpdateOptionalParams,
66
66
  ): Promise<
67
67
  SimplePollerLike<
68
68
  OperationState<PrivateEndpointConnectionUpdateResponse>,
@@ -84,7 +84,7 @@ export interface PrivateEndpointConnectionOperations {
84
84
  accountName: string,
85
85
  privateEndpointConnectionName: string,
86
86
  parameters: PrivateEndpointConnection,
87
- options?: PrivateEndpointConnectionUpdateOptionalParams
87
+ options?: PrivateEndpointConnectionUpdateOptionalParams,
88
88
  ): Promise<PrivateEndpointConnectionUpdateResponse>;
89
89
  /**
90
90
  * Deletes the specified private endpoint connection.
@@ -98,7 +98,7 @@ export interface PrivateEndpointConnectionOperations {
98
98
  resourceGroupName: string,
99
99
  accountName: string,
100
100
  privateEndpointConnectionName: string,
101
- options?: PrivateEndpointConnectionDeleteOptionalParams
101
+ options?: PrivateEndpointConnectionDeleteOptionalParams,
102
102
  ): Promise<
103
103
  SimplePollerLike<
104
104
  OperationState<PrivateEndpointConnectionDeleteResponse>,
@@ -117,6 +117,6 @@ export interface PrivateEndpointConnectionOperations {
117
117
  resourceGroupName: string,
118
118
  accountName: string,
119
119
  privateEndpointConnectionName: string,
120
- options?: PrivateEndpointConnectionDeleteOptionalParams
120
+ options?: PrivateEndpointConnectionDeleteOptionalParams,
121
121
  ): Promise<PrivateEndpointConnectionDeleteResponse>;
122
122
  }
@@ -11,7 +11,7 @@ import {
11
11
  PrivateLinkResource,
12
12
  PrivateLinkResourceListByBatchAccountOptionalParams,
13
13
  PrivateLinkResourceGetOptionalParams,
14
- PrivateLinkResourceGetResponse
14
+ PrivateLinkResourceGetResponse,
15
15
  } from "../models";
16
16
 
17
17
  /// <reference lib="esnext.asynciterable" />
@@ -26,7 +26,7 @@ export interface PrivateLinkResourceOperations {
26
26
  listByBatchAccount(
27
27
  resourceGroupName: string,
28
28
  accountName: string,
29
- options?: PrivateLinkResourceListByBatchAccountOptionalParams
29
+ options?: PrivateLinkResourceListByBatchAccountOptionalParams,
30
30
  ): PagedAsyncIterableIterator<PrivateLinkResource>;
31
31
  /**
32
32
  * Gets information about the specified private link resource.
@@ -40,6 +40,6 @@ export interface PrivateLinkResourceOperations {
40
40
  resourceGroupName: string,
41
41
  accountName: string,
42
42
  privateLinkResourceName: string,
43
- options?: PrivateLinkResourceGetOptionalParams
43
+ options?: PrivateLinkResourceGetOptionalParams,
44
44
  ): Promise<PrivateLinkResourceGetResponse>;
45
45
  }
@@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined {
28
28
 
29
29
  export function setContinuationToken(
30
30
  page: unknown,
31
- continuationToken: string | undefined
31
+ continuationToken: string | undefined,
32
32
  ): void {
33
33
  if (typeof page !== "object" || page === null || !continuationToken) {
34
34
  return;
@@ -250,6 +250,18 @@ export declare type ApplicationUpdateResponse = Application;
250
250
  /** Defines values for AuthenticationMode. */
251
251
  export declare type AuthenticationMode = "SharedKey" | "AAD" | "TaskAuthenticationToken";
252
252
 
253
+ /** The configuration parameters used for performing automatic OS upgrade. */
254
+ export declare interface AutomaticOSUpgradePolicy {
255
+ /** Whether OS image rollback feature should be disabled. */
256
+ disableAutomaticRollback?: boolean;
257
+ /** Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available. <br /><br /> If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchmanagement/pool/create?tabs=HTTP#windowsconfiguration) cannot be set to true. */
258
+ enableAutomaticOSUpgrade?: boolean;
259
+ /** Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. */
260
+ useRollingUpgradePolicy?: boolean;
261
+ /** Defer OS upgrades on the TVMs if they are running tasks. */
262
+ osRollingUpgradeDeferral?: boolean;
263
+ }
264
+
253
265
  /** The results and errors from an execution of a pool autoscale formula. */
254
266
  export declare interface AutoScaleRun {
255
267
  /** The time at which the autoscale formula was last evaluated. */
@@ -636,7 +648,7 @@ export declare interface BatchAccountOperations {
636
648
  * you must make sure your network allows outbound access to these endpoints. Failure to allow access
637
649
  * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
638
650
  * about creating a pool inside of a virtual network, see
639
- * https://docs.microsoft.com/azure/batch/batch-virtual-network.
651
+ * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
640
652
  * @param resourceGroupName The name of the resource group that contains the Batch account.
641
653
  * @param accountName The name of the Batch account.
642
654
  * @param options The options parameters.
@@ -1916,6 +1928,8 @@ export declare interface Pool extends ProxyResource {
1916
1928
  * NOTE: This property will not be serialized. It can only be populated by the server.
1917
1929
  */
1918
1930
  readonly currentNodeCommunicationMode?: NodeCommunicationMode;
1931
+ /** Describes an upgrade policy - automatic, manual, or rolling. */
1932
+ upgradePolicy?: UpgradePolicy;
1919
1933
  /** The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'. */
1920
1934
  resourceTags?: {
1921
1935
  [propertyName: string]: string;
@@ -2483,6 +2497,24 @@ export declare interface ResourceFile {
2483
2497
  /** Defines values for ResourceIdentityType. */
2484
2498
  export declare type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None";
2485
2499
 
2500
+ /** The configuration parameters used while performing a rolling upgrade. */
2501
+ export declare interface RollingUpgradePolicy {
2502
+ /** Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. If this field is not set, Azure Azure Batch will not set its default value. The value of enableCrossZoneUpgrade on the created VirtualMachineScaleSet will be decided by the default configurations on VirtualMachineScaleSet. This field is able to be set to true or false only when using NodePlacementConfiguration as Zonal. */
2503
+ enableCrossZoneUpgrade?: boolean;
2504
+ /** The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */
2505
+ maxBatchInstancePercent?: number;
2506
+ /** The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */
2507
+ maxUnhealthyInstancePercent?: number;
2508
+ /** The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The value of this field should be between 0 and 100, inclusive. */
2509
+ maxUnhealthyUpgradedInstancePercent?: number;
2510
+ /** The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. */
2511
+ pauseTimeBetweenBatches?: string;
2512
+ /** Upgrade all unhealthy instances in a scale set before any healthy instances. */
2513
+ prioritizeUnhealthyInstances?: boolean;
2514
+ /** Rollback failed instances to previous model if the Rolling Upgrade policy is violated. */
2515
+ rollbackFailedInstancesOnPolicyBreach?: boolean;
2516
+ }
2517
+
2486
2518
  /** Defines the desired size of the pool. This can either be 'fixedScale' where the requested targetDedicatedNodes is specified, or 'autoScale' which defines a formula which is periodically reevaluated. If this property is not specified, the pool will have a fixed scale with 0 targetDedicatedNodes. */
2487
2519
  export declare interface ScaleSettings {
2488
2520
  /** This property and autoScale are mutually exclusive and one of the properties must be specified. */
@@ -2559,6 +2591,11 @@ export declare interface SupportedSku {
2559
2591
  * NOTE: This property will not be serialized. It can only be populated by the server.
2560
2592
  */
2561
2593
  readonly capabilities?: SkuCapability[];
2594
+ /**
2595
+ * The time when Azure Batch service will retire this SKU.
2596
+ * NOTE: This property will not be serialized. It can only be populated by the server.
2597
+ */
2598
+ readonly batchSupportEndOfLife?: Date;
2562
2599
  }
2563
2600
 
2564
2601
  /** The Batch List supported SKUs operation response. */
@@ -2598,6 +2635,19 @@ export declare interface UefiSettings {
2598
2635
  vTpmEnabled?: boolean;
2599
2636
  }
2600
2637
 
2638
+ /** Defines values for UpgradeMode. */
2639
+ export declare type UpgradeMode = "automatic" | "manual" | "rolling";
2640
+
2641
+ /** Describes an upgrade policy - automatic, manual, or rolling. */
2642
+ export declare interface UpgradePolicy {
2643
+ /** Specifies the mode of an upgrade to virtual machines in the scale set.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.<br /><br /> **Automatic** - All virtual machines in the scale set are automatically updated at the same time.<br /><br /> **Rolling** - Scale set performs updates in batches with an optional pause time in between. */
2644
+ mode: UpgradeMode;
2645
+ /** The configuration parameters used for performing automatic OS upgrade. */
2646
+ automaticOSUpgradePolicy?: AutomaticOSUpgradePolicy;
2647
+ /** This property is only supported on Pools with the virtualMachineConfiguration property. */
2648
+ rollingUpgradePolicy?: RollingUpgradePolicy;
2649
+ }
2650
+
2601
2651
  /** Properties used to create a user on an Azure Batch node. */
2602
2652
  export declare interface UserAccount {
2603
2653
  /** The name of the user account. Names can contain any Unicode characters up to a maximum length of 20. */
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.42.3"
8
+ "packageVersion": "7.43.0"
9
9
  }
10
10
  ]
11
11
  }