@azure/arm-batch 7.2.1-alpha.20221026.1 → 8.0.0-alpha.20221111.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 (125) hide show
  1. package/CHANGELOG.md +16 -8
  2. package/dist/index.js +337 -126
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js +1 -1
  5. package/dist/index.min.js.map +1 -1
  6. package/dist-esm/samples-dev/applicationCreateSample.js +1 -1
  7. package/dist-esm/samples-dev/applicationDeleteSample.js +1 -1
  8. package/dist-esm/samples-dev/applicationGetSample.js +1 -1
  9. package/dist-esm/samples-dev/applicationListSample.js +1 -1
  10. package/dist-esm/samples-dev/applicationPackageActivateSample.js +1 -1
  11. package/dist-esm/samples-dev/applicationPackageCreateSample.js +1 -1
  12. package/dist-esm/samples-dev/applicationPackageDeleteSample.js +1 -1
  13. package/dist-esm/samples-dev/applicationPackageGetSample.js +1 -1
  14. package/dist-esm/samples-dev/applicationPackageListSample.js +1 -1
  15. package/dist-esm/samples-dev/applicationUpdateSample.js +1 -1
  16. package/dist-esm/samples-dev/batchAccountCreateSample.js +5 -5
  17. package/dist-esm/samples-dev/batchAccountDeleteSample.js +1 -1
  18. package/dist-esm/samples-dev/batchAccountGetDetectorSample.js +1 -1
  19. package/dist-esm/samples-dev/batchAccountGetKeysSample.js +1 -1
  20. package/dist-esm/samples-dev/batchAccountGetSample.js +2 -2
  21. package/dist-esm/samples-dev/batchAccountListByResourceGroupSample.js +1 -1
  22. package/dist-esm/samples-dev/batchAccountListDetectorsSample.js +1 -1
  23. package/dist-esm/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +3 -3
  24. package/dist-esm/samples-dev/batchAccountListSample.js +1 -1
  25. package/dist-esm/samples-dev/batchAccountRegenerateKeySample.js +1 -1
  26. package/dist-esm/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.js +1 -1
  27. package/dist-esm/samples-dev/batchAccountUpdateSample.js +1 -1
  28. package/dist-esm/samples-dev/certificateCancelDeletionSample.js +5 -1
  29. package/dist-esm/samples-dev/certificateCancelDeletionSample.js.map +1 -1
  30. package/dist-esm/samples-dev/certificateCreateSample.js +9 -9
  31. package/dist-esm/samples-dev/certificateDeleteSample.js +3 -3
  32. package/dist-esm/samples-dev/certificateGetSample.js +6 -6
  33. package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +6 -6
  34. package/dist-esm/samples-dev/certificateUpdateSample.js +3 -3
  35. package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +2 -2
  36. package/dist-esm/samples-dev/locationGetQuotasSample.js +1 -1
  37. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js +1 -1
  38. package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +1 -1
  39. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  40. package/dist-esm/samples-dev/poolCreateSample.js +11 -10
  41. package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
  42. package/dist-esm/samples-dev/poolDeleteSample.js +1 -1
  43. package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +1 -1
  44. package/dist-esm/samples-dev/poolGetSample.js +2 -2
  45. package/dist-esm/samples-dev/poolListByBatchAccountSample.js +2 -2
  46. package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
  47. package/dist-esm/samples-dev/poolUpdateSample.js +6 -5
  48. package/dist-esm/samples-dev/poolUpdateSample.js.map +1 -1
  49. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
  50. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
  51. package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +1 -1
  52. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +1 -1
  53. package/dist-esm/samples-dev/privateLinkResourceGetSample.js +1 -1
  54. package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
  55. package/dist-esm/src/batchManagementClient.d.ts.map +1 -1
  56. package/dist-esm/src/batchManagementClient.js +21 -19
  57. package/dist-esm/src/batchManagementClient.js.map +1 -1
  58. package/dist-esm/src/index.d.ts +1 -0
  59. package/dist-esm/src/index.d.ts.map +1 -1
  60. package/dist-esm/src/index.js +1 -0
  61. package/dist-esm/src/index.js.map +1 -1
  62. package/dist-esm/src/models/index.d.ts +20 -7
  63. package/dist-esm/src/models/index.d.ts.map +1 -1
  64. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  65. package/dist-esm/src/models/mappers.js +21 -6
  66. package/dist-esm/src/models/mappers.js.map +1 -1
  67. package/dist-esm/src/models/parameters.js +1 -1
  68. package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -1
  69. package/dist-esm/src/operations/applicationOperations.js +19 -7
  70. package/dist-esm/src/operations/applicationOperations.js.map +1 -1
  71. package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -1
  72. package/dist-esm/src/operations/applicationPackageOperations.js +19 -7
  73. package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -1
  74. package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
  75. package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -1
  76. package/dist-esm/src/operations/batchAccountOperations.js +75 -30
  77. package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
  78. package/dist-esm/src/operations/certificateOperations.d.ts +25 -7
  79. package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -1
  80. package/dist-esm/src/operations/certificateOperations.js +44 -14
  81. package/dist-esm/src/operations/certificateOperations.js.map +1 -1
  82. package/dist-esm/src/operations/location.d.ts.map +1 -1
  83. package/dist-esm/src/operations/location.js +37 -14
  84. package/dist-esm/src/operations/location.js.map +1 -1
  85. package/dist-esm/src/operations/operations.d.ts.map +1 -1
  86. package/dist-esm/src/operations/operations.js +19 -7
  87. package/dist-esm/src/operations/operations.js.map +1 -1
  88. package/dist-esm/src/operations/poolOperations.d.ts.map +1 -1
  89. package/dist-esm/src/operations/poolOperations.js +19 -7
  90. package/dist-esm/src/operations/poolOperations.js.map +1 -1
  91. package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -1
  92. package/dist-esm/src/operations/privateEndpointConnectionOperations.js +19 -7
  93. package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -1
  94. package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -1
  95. package/dist-esm/src/operations/privateLinkResourceOperations.js +19 -7
  96. package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -1
  97. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
  98. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +22 -6
  99. package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -1
  100. package/dist-esm/src/pagingHelper.d.ts +13 -0
  101. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  102. package/dist-esm/src/pagingHelper.js +32 -0
  103. package/dist-esm/src/pagingHelper.js.map +1 -0
  104. package/dist-esm/test/batch_examples.js +1 -1
  105. package/package.json +4 -3
  106. package/review/arm-batch.api.md +11 -3
  107. package/src/batchManagementClient.ts +27 -21
  108. package/src/index.ts +1 -0
  109. package/src/models/index.ts +20 -7
  110. package/src/models/mappers.ts +23 -6
  111. package/src/models/parameters.ts +1 -1
  112. package/src/operations/applicationOperations.ts +27 -9
  113. package/src/operations/applicationPackageOperations.ts +28 -14
  114. package/src/operations/batchAccountOperations.ts +98 -43
  115. package/src/operations/certificateOperations.ts +51 -19
  116. package/src/operations/location.ts +47 -23
  117. package/src/operations/operations.ts +21 -8
  118. package/src/operations/poolOperations.ts +26 -12
  119. package/src/operations/privateEndpointConnectionOperations.ts +26 -12
  120. package/src/operations/privateLinkResourceOperations.ts +26 -12
  121. package/src/operationsInterfaces/batchAccountOperations.ts +1 -1
  122. package/src/operationsInterfaces/certificateOperations.ts +22 -6
  123. package/src/pagingHelper.ts +39 -0
  124. package/types/arm-batch.d.ts +53 -14
  125. package/types/tsdoc-metadata.json +1 -1
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { PoolOperations } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -69,11 +70,15 @@ export class PoolOperationsImpl implements PoolOperations {
69
70
  [Symbol.asyncIterator]() {
70
71
  return this;
71
72
  },
72
- byPage: () => {
73
+ byPage: (settings?: PageSettings) => {
74
+ if (settings?.maxPageSize) {
75
+ throw new Error("maxPageSize is not supported by this operation.");
76
+ }
73
77
  return this.listByBatchAccountPagingPage(
74
78
  resourceGroupName,
75
79
  accountName,
76
- options
80
+ options,
81
+ settings
77
82
  );
78
83
  }
79
84
  };
@@ -82,15 +87,22 @@ export class PoolOperationsImpl implements PoolOperations {
82
87
  private async *listByBatchAccountPagingPage(
83
88
  resourceGroupName: string,
84
89
  accountName: string,
85
- options?: PoolListByBatchAccountOptionalParams
90
+ options?: PoolListByBatchAccountOptionalParams,
91
+ settings?: PageSettings
86
92
  ): AsyncIterableIterator<Pool[]> {
87
- let result = await this._listByBatchAccount(
88
- resourceGroupName,
89
- accountName,
90
- options
91
- );
92
- yield result.value || [];
93
- let continuationToken = result.nextLink;
93
+ let result: PoolListByBatchAccountResponse;
94
+ let continuationToken = settings?.continuationToken;
95
+ if (!continuationToken) {
96
+ result = await this._listByBatchAccount(
97
+ resourceGroupName,
98
+ accountName,
99
+ options
100
+ );
101
+ let page = result.value || [];
102
+ continuationToken = result.nextLink;
103
+ setContinuationToken(page, continuationToken);
104
+ yield page;
105
+ }
94
106
  while (continuationToken) {
95
107
  result = await this._listByBatchAccountNext(
96
108
  resourceGroupName,
@@ -99,7 +111,9 @@ export class PoolOperationsImpl implements PoolOperations {
99
111
  options
100
112
  );
101
113
  continuationToken = result.nextLink;
102
- yield result.value || [];
114
+ let page = result.value || [];
115
+ setContinuationToken(page, continuationToken);
116
+ yield page;
103
117
  }
104
118
  }
105
119
 
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { PrivateEndpointConnectionOperations } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -65,11 +66,15 @@ export class PrivateEndpointConnectionOperationsImpl
65
66
  [Symbol.asyncIterator]() {
66
67
  return this;
67
68
  },
68
- byPage: () => {
69
+ byPage: (settings?: PageSettings) => {
70
+ if (settings?.maxPageSize) {
71
+ throw new Error("maxPageSize is not supported by this operation.");
72
+ }
69
73
  return this.listByBatchAccountPagingPage(
70
74
  resourceGroupName,
71
75
  accountName,
72
- options
76
+ options,
77
+ settings
73
78
  );
74
79
  }
75
80
  };
@@ -78,15 +83,22 @@ export class PrivateEndpointConnectionOperationsImpl
78
83
  private async *listByBatchAccountPagingPage(
79
84
  resourceGroupName: string,
80
85
  accountName: string,
81
- options?: PrivateEndpointConnectionListByBatchAccountOptionalParams
86
+ options?: PrivateEndpointConnectionListByBatchAccountOptionalParams,
87
+ settings?: PageSettings
82
88
  ): AsyncIterableIterator<PrivateEndpointConnection[]> {
83
- let result = await this._listByBatchAccount(
84
- resourceGroupName,
85
- accountName,
86
- options
87
- );
88
- yield result.value || [];
89
- let continuationToken = result.nextLink;
89
+ let result: PrivateEndpointConnectionListByBatchAccountResponse;
90
+ let continuationToken = settings?.continuationToken;
91
+ if (!continuationToken) {
92
+ result = await this._listByBatchAccount(
93
+ resourceGroupName,
94
+ accountName,
95
+ options
96
+ );
97
+ let page = result.value || [];
98
+ continuationToken = result.nextLink;
99
+ setContinuationToken(page, continuationToken);
100
+ yield page;
101
+ }
90
102
  while (continuationToken) {
91
103
  result = await this._listByBatchAccountNext(
92
104
  resourceGroupName,
@@ -95,7 +107,9 @@ export class PrivateEndpointConnectionOperationsImpl
95
107
  options
96
108
  );
97
109
  continuationToken = result.nextLink;
98
- yield result.value || [];
110
+ let page = result.value || [];
111
+ setContinuationToken(page, continuationToken);
112
+ yield page;
99
113
  }
100
114
  }
101
115
 
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { PrivateLinkResourceOperations } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -59,11 +60,15 @@ export class PrivateLinkResourceOperationsImpl
59
60
  [Symbol.asyncIterator]() {
60
61
  return this;
61
62
  },
62
- byPage: () => {
63
+ byPage: (settings?: PageSettings) => {
64
+ if (settings?.maxPageSize) {
65
+ throw new Error("maxPageSize is not supported by this operation.");
66
+ }
63
67
  return this.listByBatchAccountPagingPage(
64
68
  resourceGroupName,
65
69
  accountName,
66
- options
70
+ options,
71
+ settings
67
72
  );
68
73
  }
69
74
  };
@@ -72,15 +77,22 @@ export class PrivateLinkResourceOperationsImpl
72
77
  private async *listByBatchAccountPagingPage(
73
78
  resourceGroupName: string,
74
79
  accountName: string,
75
- options?: PrivateLinkResourceListByBatchAccountOptionalParams
80
+ options?: PrivateLinkResourceListByBatchAccountOptionalParams,
81
+ settings?: PageSettings
76
82
  ): AsyncIterableIterator<PrivateLinkResource[]> {
77
- let result = await this._listByBatchAccount(
78
- resourceGroupName,
79
- accountName,
80
- options
81
- );
82
- yield result.value || [];
83
- let continuationToken = result.nextLink;
83
+ let result: PrivateLinkResourceListByBatchAccountResponse;
84
+ let continuationToken = settings?.continuationToken;
85
+ if (!continuationToken) {
86
+ result = await this._listByBatchAccount(
87
+ resourceGroupName,
88
+ accountName,
89
+ options
90
+ );
91
+ let page = result.value || [];
92
+ continuationToken = result.nextLink;
93
+ setContinuationToken(page, continuationToken);
94
+ yield page;
95
+ }
84
96
  while (continuationToken) {
85
97
  result = await this._listByBatchAccountNext(
86
98
  resourceGroupName,
@@ -89,7 +101,9 @@ export class PrivateLinkResourceOperationsImpl
89
101
  options
90
102
  );
91
103
  continuationToken = result.nextLink;
92
- yield result.value || [];
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
93
107
  }
94
108
  }
95
109
 
@@ -71,7 +71,7 @@ export interface BatchAccountOperations {
71
71
  * you must make sure your network allows outbound access to these endpoints. Failure to allow access
72
72
  * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
73
73
  * about creating a pool inside of a virtual network, see
74
- * https://docs.microsoft.com/azure/batch/batch-virtual-network
74
+ * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
75
75
  * @param resourceGroupName The name of the resource group that contains the Batch account.
76
76
  * @param accountName The name of the Batch account.
77
77
  * @param options The options parameters.
@@ -27,7 +27,9 @@ import {
27
27
  /** Interface representing a CertificateOperations. */
28
28
  export interface CertificateOperations {
29
29
  /**
30
- * Lists all of the certificates in the specified account.
30
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
31
+ * [Azure KeyVault
32
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
31
33
  * @param resourceGroupName The name of the resource group that contains the Batch account.
32
34
  * @param accountName The name of the Batch account.
33
35
  * @param options The options parameters.
@@ -38,7 +40,9 @@ export interface CertificateOperations {
38
40
  options?: CertificateListByBatchAccountOptionalParams
39
41
  ): PagedAsyncIterableIterator<Certificate>;
40
42
  /**
41
- * Creates a new certificate inside the specified account.
43
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
44
+ * [Azure KeyVault
45
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
42
46
  * @param resourceGroupName The name of the resource group that contains the Batch account.
43
47
  * @param accountName The name of the Batch account.
44
48
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -55,7 +59,9 @@ export interface CertificateOperations {
55
59
  options?: CertificateCreateOptionalParams
56
60
  ): Promise<CertificateCreateResponse>;
57
61
  /**
58
- * Updates the properties of an existing certificate.
62
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
63
+ * [Azure KeyVault
64
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
59
65
  * @param resourceGroupName The name of the resource group that contains the Batch account.
60
66
  * @param accountName The name of the Batch account.
61
67
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -72,7 +78,9 @@ export interface CertificateOperations {
72
78
  options?: CertificateUpdateOptionalParams
73
79
  ): Promise<CertificateUpdateResponse>;
74
80
  /**
75
- * Deletes the specified certificate.
81
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
82
+ * [Azure KeyVault
83
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
76
84
  * @param resourceGroupName The name of the resource group that contains the Batch account.
77
85
  * @param accountName The name of the Batch account.
78
86
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -87,7 +95,9 @@ export interface CertificateOperations {
87
95
  options?: CertificateDeleteOptionalParams
88
96
  ): Promise<PollerLike<PollOperationState<void>, void>>;
89
97
  /**
90
- * Deletes the specified certificate.
98
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
99
+ * [Azure KeyVault
100
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
91
101
  * @param resourceGroupName The name of the resource group that contains the Batch account.
92
102
  * @param accountName The name of the Batch account.
93
103
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -102,7 +112,9 @@ export interface CertificateOperations {
102
112
  options?: CertificateDeleteOptionalParams
103
113
  ): Promise<void>;
104
114
  /**
105
- * Gets information about the specified certificate.
115
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
116
+ * [Azure KeyVault
117
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
106
118
  * @param resourceGroupName The name of the resource group that contains the Batch account.
107
119
  * @param accountName The name of the Batch account.
108
120
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -123,6 +135,10 @@ export interface CertificateOperations {
123
135
  * delete the certificate, you do not need to run this operation after the deletion failed. You must
124
136
  * make sure that the certificate is not being used by any resources, and then you can try again to
125
137
  * delete the certificate.
138
+ *
139
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
140
+ * [Azure KeyVault
141
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
126
142
  * @param resourceGroupName The name of the resource group that contains the Batch account.
127
143
  * @param accountName The name of the Batch account.
128
144
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+
9
+ export interface PageInfo {
10
+ continuationToken?: string;
11
+ }
12
+
13
+ const pageMap = new WeakMap<object, PageInfo>();
14
+
15
+ /**
16
+ * Given a result page from a pageable operation, returns a
17
+ * continuation token that can be used to begin paging from
18
+ * that point later.
19
+ * @param page A result object from calling .byPage() on a paged operation.
20
+ * @returns The continuation token that can be passed into byPage().
21
+ */
22
+ export function getContinuationToken(page: unknown): string | undefined {
23
+ if (typeof page !== "object" || page === null) {
24
+ return undefined;
25
+ }
26
+ return pageMap.get(page)?.continuationToken;
27
+ }
28
+
29
+ export function setContinuationToken(
30
+ page: unknown,
31
+ continuationToken: string | undefined
32
+ ): void {
33
+ if (typeof page !== "object" || page === null || !continuationToken) {
34
+ return;
35
+ }
36
+ const pageInfo = pageMap.get(page) ?? {};
37
+ pageInfo.continuationToken = continuationToken;
38
+ pageMap.set(page, pageInfo);
39
+ }
@@ -640,7 +640,7 @@ export declare interface BatchAccountOperations {
640
640
  * you must make sure your network allows outbound access to these endpoints. Failure to allow access
641
641
  * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information
642
642
  * about creating a pool inside of a virtual network, see
643
- * https://docs.microsoft.com/azure/batch/batch-virtual-network
643
+ * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
644
644
  * @param resourceGroupName The name of the resource group that contains the Batch account.
645
645
  * @param accountName The name of the Batch account.
646
646
  * @param options The options parameters.
@@ -999,14 +999,18 @@ export declare type CertificateListByBatchAccountResponse = ListCertificatesResu
999
999
  /** Interface representing a CertificateOperations. */
1000
1000
  export declare interface CertificateOperations {
1001
1001
  /**
1002
- * Lists all of the certificates in the specified account.
1002
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
1003
+ * [Azure KeyVault
1004
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
1003
1005
  * @param resourceGroupName The name of the resource group that contains the Batch account.
1004
1006
  * @param accountName The name of the Batch account.
1005
1007
  * @param options The options parameters.
1006
1008
  */
1007
1009
  listByBatchAccount(resourceGroupName: string, accountName: string, options?: CertificateListByBatchAccountOptionalParams): PagedAsyncIterableIterator<Certificate>;
1008
1010
  /**
1009
- * Creates a new certificate inside the specified account.
1011
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
1012
+ * [Azure KeyVault
1013
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
1010
1014
  * @param resourceGroupName The name of the resource group that contains the Batch account.
1011
1015
  * @param accountName The name of the Batch account.
1012
1016
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -1017,7 +1021,9 @@ export declare interface CertificateOperations {
1017
1021
  */
1018
1022
  create(resourceGroupName: string, accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, options?: CertificateCreateOptionalParams): Promise<CertificateCreateResponse>;
1019
1023
  /**
1020
- * Updates the properties of an existing certificate.
1024
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
1025
+ * [Azure KeyVault
1026
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
1021
1027
  * @param resourceGroupName The name of the resource group that contains the Batch account.
1022
1028
  * @param accountName The name of the Batch account.
1023
1029
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -1028,7 +1034,9 @@ export declare interface CertificateOperations {
1028
1034
  */
1029
1035
  update(resourceGroupName: string, accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, options?: CertificateUpdateOptionalParams): Promise<CertificateUpdateResponse>;
1030
1036
  /**
1031
- * Deletes the specified certificate.
1037
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
1038
+ * [Azure KeyVault
1039
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
1032
1040
  * @param resourceGroupName The name of the resource group that contains the Batch account.
1033
1041
  * @param accountName The name of the Batch account.
1034
1042
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -1038,7 +1046,9 @@ export declare interface CertificateOperations {
1038
1046
  */
1039
1047
  beginDelete(resourceGroupName: string, accountName: string, certificateName: string, options?: CertificateDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
1040
1048
  /**
1041
- * Deletes the specified certificate.
1049
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
1050
+ * [Azure KeyVault
1051
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
1042
1052
  * @param resourceGroupName The name of the resource group that contains the Batch account.
1043
1053
  * @param accountName The name of the Batch account.
1044
1054
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -1048,7 +1058,9 @@ export declare interface CertificateOperations {
1048
1058
  */
1049
1059
  beginDeleteAndWait(resourceGroupName: string, accountName: string, certificateName: string, options?: CertificateDeleteOptionalParams): Promise<void>;
1050
1060
  /**
1051
- * Gets information about the specified certificate.
1061
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
1062
+ * [Azure KeyVault
1063
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
1052
1064
  * @param resourceGroupName The name of the resource group that contains the Batch account.
1053
1065
  * @param accountName The name of the Batch account.
1054
1066
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -1064,6 +1076,10 @@ export declare interface CertificateOperations {
1064
1076
  * delete the certificate, you do not need to run this operation after the deletion failed. You must
1065
1077
  * make sure that the certificate is not being used by any resources, and then you can try again to
1066
1078
  * delete the certificate.
1079
+ *
1080
+ * Warning: This operation is deprecated and will be removed after February, 2024. Please use the
1081
+ * [Azure KeyVault
1082
+ * Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
1067
1083
  * @param resourceGroupName The name of the resource group that contains the Batch account.
1068
1084
  * @param accountName The name of the Batch account.
1069
1085
  * @param certificateName The identifier for the certificate. This must be made up of algorithm and
@@ -1108,7 +1124,7 @@ export declare interface CertificateProperties extends CertificateBaseProperties
1108
1124
  /** Defines values for CertificateProvisioningState. */
1109
1125
  export declare type CertificateProvisioningState = "Succeeded" | "Deleting" | "Failed";
1110
1126
 
1111
- /** A reference to a certificate to be installed on compute nodes in a pool. This must exist inside the same account as the pool. */
1127
+ /** Warning: This object is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. */
1112
1128
  export declare interface CertificateReference {
1113
1129
  /** The fully qualified ID of the certificate to install on the pool. This must be inside the same batch account as the pool. */
1114
1130
  id: string;
@@ -1171,7 +1187,7 @@ export declare interface CheckNameAvailabilityResult {
1171
1187
  /** Information used to connect to a CIFS file system. */
1172
1188
  export declare interface CifsMountConfiguration {
1173
1189
  /** The user to use for authentication against the CIFS file system. */
1174
- username: string;
1190
+ userName: string;
1175
1191
  /** The URI of the file system to mount. */
1176
1192
  source: string;
1177
1193
  /** All file systems are mounted relative to the Batch mounts directory, accessible via the AZ_BATCH_NODE_MOUNTS_DIR environment variable. */
@@ -1392,6 +1408,15 @@ export declare interface FixedScaleSettings {
1392
1408
  nodeDeallocationOption?: ComputeNodeDeallocationOption;
1393
1409
  }
1394
1410
 
1411
+ /**
1412
+ * Given a result page from a pageable operation, returns a
1413
+ * continuation token that can be used to begin paging from
1414
+ * that point later.
1415
+ * @param page A result object from calling .byPage() on a paged operation.
1416
+ * @returns The continuation token that can be passed into byPage().
1417
+ */
1418
+ export declare function getContinuationToken(page: unknown): string | undefined;
1419
+
1395
1420
  /** A reference to an Azure Virtual Machines Marketplace image or the Azure Image resource of a custom Virtual Machine. To get the list of all imageReferences verified by Azure Batch, see the 'List supported node agent SKUs' operation. */
1396
1421
  export declare interface ImageReference {
1397
1422
  /** For example, Canonical or MicrosoftWindowsServer. */
@@ -1639,7 +1664,7 @@ export declare interface NetworkConfiguration {
1639
1664
  /** The virtual network must be in the same region and subscription as the Azure Batch account. The specified subnet should have enough free IP addresses to accommodate the number of nodes in the pool. If the subnet doesn't have enough free IP addresses, the pool will partially allocate compute nodes and a resize error will occur. The 'MicrosoftAzureBatch' service principal must have the 'Classic Virtual Machine Contributor' Role-Based Access Control (RBAC) role for the specified VNet. The specified subnet must allow communication from the Azure Batch service to be able to schedule tasks on the compute nodes. This can be verified by checking if the specified VNet has any associated Network Security Groups (NSG). If communication to the compute nodes in the specified subnet is denied by an NSG, then the Batch service will set the state of the compute nodes to unusable. If the specified VNet has any associated Network Security Groups (NSG), then a few reserved system ports must be enabled for inbound communication. For pools created with a virtual machine configuration, enable ports 29876 and 29877, as well as port 22 for Linux and port 3389 for Windows. For pools created with a cloud service configuration, enable ports 10100, 20100, and 30100. Also enable outbound connections to Azure Storage on port 443. For cloudServiceConfiguration pools, only 'classic' VNETs are supported. For more details see: https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration */
1640
1665
  subnetId?: string;
1641
1666
  /** The scope of dynamic vnet assignment. */
1642
- dynamicVNetAssignmentScope?: DynamicVNetAssignmentScope;
1667
+ dynamicVnetAssignmentScope?: DynamicVNetAssignmentScope;
1643
1668
  /** Pool endpoint configuration is only supported on pools with the virtualMachineConfiguration property. */
1644
1669
  endpointConfiguration?: PoolEndpointConfiguration;
1645
1670
  /** This property is only supported on Pools with the virtualMachineConfiguration property. */
@@ -1679,6 +1704,9 @@ export declare interface NFSMountConfiguration {
1679
1704
  mountOptions?: string;
1680
1705
  }
1681
1706
 
1707
+ /** Defines values for NodeCommunicationMode. */
1708
+ export declare type NodeCommunicationMode = "Default" | "Classic" | "Simplified";
1709
+
1682
1710
  /** Allocation configuration used by Batch Service to provision the nodes. */
1683
1711
  export declare interface NodePlacementConfiguration {
1684
1712
  /** Allocation policy used by Batch Service to provision the nodes. If not specified, Batch will use the regional policy. */
@@ -1820,7 +1848,7 @@ export declare interface Pool extends ProxyResource {
1820
1848
  /** Using CloudServiceConfiguration specifies that the nodes should be creating using Azure Cloud Services (PaaS), while VirtualMachineConfiguration uses Azure Virtual Machines (IaaS). */
1821
1849
  deploymentConfiguration?: DeploymentConfiguration;
1822
1850
  /**
1823
- * The number of compute nodes currently in the pool.
1851
+ * The number of dedicated compute nodes currently in the pool.
1824
1852
  * NOTE: This property will not be serialized. It can only be populated by the server.
1825
1853
  */
1826
1854
  readonly currentDedicatedNodes?: number;
@@ -1850,7 +1878,11 @@ export declare interface Pool extends ProxyResource {
1850
1878
  metadata?: MetadataItem[];
1851
1879
  /** In an PATCH (update) operation, this property can be set to an empty object to remove the start task from the pool. */
1852
1880
  startTask?: StartTask;
1853
- /** For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory. */
1881
+ /**
1882
+ * For Windows compute nodes, the Batch service installs the certificates to the specified certificate store and location. For Linux compute nodes, the certificates are stored in a directory inside the task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the task to query for this location. For certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and certificates are placed in that directory.
1883
+ *
1884
+ * Warning: This property is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead.
1885
+ */
1854
1886
  certificates?: CertificateReference[];
1855
1887
  /** Changes to application package references affect all new compute nodes joining the pool, but do not affect compute nodes that are already in the pool until they are rebooted or reimaged. There is a maximum of 10 application package references on any given pool. */
1856
1888
  applicationPackages?: ApplicationPackageReference[];
@@ -1863,6 +1895,13 @@ export declare interface Pool extends ProxyResource {
1863
1895
  readonly resizeOperationStatus?: ResizeOperationStatus;
1864
1896
  /** This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. */
1865
1897
  mountConfiguration?: MountConfiguration[];
1898
+ /** If omitted, the default value is Default. */
1899
+ targetNodeCommunicationMode?: NodeCommunicationMode;
1900
+ /**
1901
+ * Determines how a pool communicates with the Batch service.
1902
+ * NOTE: This property will not be serialized. It can only be populated by the server.
1903
+ */
1904
+ readonly currentNodeCommunicationMode?: NodeCommunicationMode;
1866
1905
  }
1867
1906
 
1868
1907
  /** Defines values for PoolAllocationMode. */
@@ -2328,7 +2367,7 @@ export declare interface PrivateLinkServiceConnectionState {
2328
2367
  * Action required on the private connection state
2329
2368
  * NOTE: This property will not be serialized. It can only be populated by the server.
2330
2369
  */
2331
- readonly actionRequired?: string;
2370
+ readonly actionsRequired?: string;
2332
2371
  }
2333
2372
 
2334
2373
  /** Defines values for PrivateLinkServiceConnectionStatus. */
@@ -2543,7 +2582,7 @@ export declare interface TaskSchedulingPolicy {
2543
2582
 
2544
2583
  /** Properties used to create a user on an Azure Batch node. */
2545
2584
  export declare interface UserAccount {
2546
- /** The name of the user account. */
2585
+ /** The name of the user account. Names can contain any Unicode characters up to a maximum length of 20. */
2547
2586
  name: string;
2548
2587
  /** The password for the user account. */
2549
2588
  password: string;
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.31.2"
8
+ "packageVersion": "7.33.5"
9
9
  }
10
10
  ]
11
11
  }