@azure/arm-batch 9.2.1-alpha.20240924.1 → 10.0.0-alpha.20240926.3

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 +63 -7
  2. package/dist/index.js +1215 -315
  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 +1 -1
  29. package/dist-esm/samples-dev/certificateCreateSample.js +3 -3
  30. package/dist-esm/samples-dev/certificateDeleteSample.js +1 -1
  31. package/dist-esm/samples-dev/certificateGetSample.js +2 -2
  32. package/dist-esm/samples-dev/certificateListByBatchAccountSample.js +2 -2
  33. package/dist-esm/samples-dev/certificateUpdateSample.js +1 -1
  34. package/dist-esm/samples-dev/locationCheckNameAvailabilitySample.js +2 -2
  35. package/dist-esm/samples-dev/locationGetQuotasSample.js +1 -1
  36. package/dist-esm/samples-dev/locationListSupportedVirtualMachineSkusSample.js +1 -1
  37. package/dist-esm/samples-dev/networkSecurityPerimeterGetConfigurationSample.d.ts +2 -0
  38. package/dist-esm/samples-dev/networkSecurityPerimeterGetConfigurationSample.d.ts.map +1 -0
  39. package/dist-esm/samples-dev/networkSecurityPerimeterGetConfigurationSample.js +39 -0
  40. package/dist-esm/samples-dev/networkSecurityPerimeterGetConfigurationSample.js.map +1 -0
  41. package/dist-esm/samples-dev/networkSecurityPerimeterListConfigurationsSample.d.ts +2 -0
  42. package/dist-esm/samples-dev/networkSecurityPerimeterListConfigurationsSample.d.ts.map +1 -0
  43. package/dist-esm/samples-dev/{locationListSupportedCloudServiceSkusSample.js → networkSecurityPerimeterListConfigurationsSample.js} +9 -8
  44. package/dist-esm/samples-dev/networkSecurityPerimeterListConfigurationsSample.js.map +1 -0
  45. package/dist-esm/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.d.ts +2 -0
  46. package/dist-esm/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.d.ts.map +1 -0
  47. package/dist-esm/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.js +39 -0
  48. package/dist-esm/samples-dev/networkSecurityPerimeterReconcileConfigurationSample.js.map +1 -0
  49. package/dist-esm/samples-dev/operationsListSample.js +1 -1
  50. package/dist-esm/samples-dev/poolCreateSample.js +50 -132
  51. package/dist-esm/samples-dev/poolCreateSample.js.map +1 -1
  52. package/dist-esm/samples-dev/poolDeleteSample.js +1 -1
  53. package/dist-esm/samples-dev/poolDisableAutoScaleSample.js +1 -1
  54. package/dist-esm/samples-dev/poolGetSample.js +7 -7
  55. package/dist-esm/samples-dev/poolListByBatchAccountSample.js +2 -2
  56. package/dist-esm/samples-dev/poolStopResizeSample.js +1 -1
  57. package/dist-esm/samples-dev/poolUpdateSample.js +4 -4
  58. package/dist-esm/samples-dev/privateEndpointConnectionDeleteSample.js +1 -1
  59. package/dist-esm/samples-dev/privateEndpointConnectionGetSample.js +1 -1
  60. package/dist-esm/samples-dev/privateEndpointConnectionListByBatchAccountSample.js +1 -1
  61. package/dist-esm/samples-dev/privateEndpointConnectionUpdateSample.js +1 -1
  62. package/dist-esm/samples-dev/privateLinkResourceGetSample.js +1 -1
  63. package/dist-esm/samples-dev/privateLinkResourceListByBatchAccountSample.js +1 -1
  64. package/dist-esm/src/batchManagementClient.d.ts +2 -1
  65. package/dist-esm/src/batchManagementClient.d.ts.map +1 -1
  66. package/dist-esm/src/batchManagementClient.js +5 -3
  67. package/dist-esm/src/batchManagementClient.js.map +1 -1
  68. package/dist-esm/src/models/index.d.ts +467 -46
  69. package/dist-esm/src/models/index.d.ts.map +1 -1
  70. package/dist-esm/src/models/index.js +92 -0
  71. package/dist-esm/src/models/index.js.map +1 -1
  72. package/dist-esm/src/models/mappers.d.ts +22 -3
  73. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  74. package/dist-esm/src/models/mappers.js +739 -120
  75. package/dist-esm/src/models/mappers.js.map +1 -1
  76. package/dist-esm/src/models/parameters.d.ts +1 -0
  77. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  78. package/dist-esm/src/models/parameters.js +14 -1
  79. package/dist-esm/src/models/parameters.js.map +1 -1
  80. package/dist-esm/src/operations/batchAccountOperations.d.ts +2 -2
  81. package/dist-esm/src/operations/batchAccountOperations.js +2 -2
  82. package/dist-esm/src/operations/batchAccountOperations.js.map +1 -1
  83. package/dist-esm/src/operations/index.d.ts +1 -0
  84. package/dist-esm/src/operations/index.d.ts.map +1 -1
  85. package/dist-esm/src/operations/index.js +1 -0
  86. package/dist-esm/src/operations/index.js.map +1 -1
  87. package/dist-esm/src/operations/location.d.ts +1 -23
  88. package/dist-esm/src/operations/location.d.ts.map +1 -1
  89. package/dist-esm/src/operations/location.js +0 -124
  90. package/dist-esm/src/operations/location.js.map +1 -1
  91. package/dist-esm/src/operations/networkSecurityPerimeterOperations.d.ts +66 -0
  92. package/dist-esm/src/operations/networkSecurityPerimeterOperations.d.ts.map +1 -0
  93. package/dist-esm/src/operations/networkSecurityPerimeterOperations.js +286 -0
  94. package/dist-esm/src/operations/networkSecurityPerimeterOperations.js.map +1 -0
  95. package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +1 -1
  96. package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
  97. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
  98. package/dist-esm/src/operationsInterfaces/index.js +1 -0
  99. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  100. package/dist-esm/src/operationsInterfaces/location.d.ts +1 -7
  101. package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -1
  102. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterOperations.d.ts +41 -0
  103. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterOperations.d.ts.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterOperations.js +9 -0
  105. package/dist-esm/src/operationsInterfaces/networkSecurityPerimeterOperations.js.map +1 -0
  106. package/dist-esm/test/batch_examples.js +23 -45
  107. package/dist-esm/test/batch_examples.js.map +1 -1
  108. package/package.json +33 -31
  109. package/review/arm-batch.api.md +294 -44
  110. package/src/batchManagementClient.ts +7 -2
  111. package/src/models/index.ts +517 -53
  112. package/src/models/mappers.ts +781 -133
  113. package/src/models/parameters.ts +16 -1
  114. package/src/operations/batchAccountOperations.ts +42 -42
  115. package/src/operations/index.ts +1 -0
  116. package/src/operations/location.ts +0 -154
  117. package/src/operations/networkSecurityPerimeterOperations.ts +397 -0
  118. package/src/operationsInterfaces/batchAccountOperations.ts +1 -1
  119. package/src/operationsInterfaces/index.ts +1 -0
  120. package/src/operationsInterfaces/location.ts +0 -10
  121. package/src/operationsInterfaces/networkSecurityPerimeterOperations.ts +81 -0
  122. package/types/arm-batch.d.ts +575 -81
  123. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.d.ts +0 -2
  124. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.d.ts.map +0 -1
  125. package/dist-esm/samples-dev/locationListSupportedCloudServiceSkusSample.js.map +0 -1
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
17
17
  *
18
18
  * @summary Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageActivate.json
20
20
  */
21
21
  function applicationPackageActivate() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
17
17
  *
18
18
  * @summary Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageCreate.json
20
20
  */
21
21
  function applicationPackageCreate() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes an application package record and its associated binary file.
17
17
  *
18
18
  * @summary Deletes an application package record and its associated binary file.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageDelete.json
20
20
  */
21
21
  function applicationPackageDelete() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets information about the specified application package.
17
17
  *
18
18
  * @summary Gets information about the specified application package.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageGet.json
20
20
  */
21
21
  function applicationPackageGet() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Lists all of the application packages in the specified application.
17
17
  *
18
18
  * @summary Lists all of the application packages in the specified application.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationPackageList.json
20
20
  */
21
21
  function applicationPackageList() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Updates settings for the specified application.
17
17
  *
18
18
  * @summary Updates settings for the specified application.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/ApplicationUpdate.json
20
20
  */
21
21
  function applicationUpdate() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
17
17
  *
18
18
  * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_BYOS.json
20
20
  */
21
21
  function batchAccountCreateByos() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -44,7 +44,7 @@ function batchAccountCreateByos() {
44
44
  * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
45
45
  *
46
46
  * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
47
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json
47
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_Default.json
48
48
  */
49
49
  function batchAccountCreateDefault() {
50
50
  return __awaiter(this, void 0, void 0, function* () {
@@ -67,7 +67,7 @@ function batchAccountCreateDefault() {
67
67
  * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
68
68
  *
69
69
  * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
70
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
70
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_SystemAssignedIdentity.json
71
71
  */
72
72
  function batchAccountCreateSystemAssignedIdentity() {
73
73
  return __awaiter(this, void 0, void 0, function* () {
@@ -91,7 +91,7 @@ function batchAccountCreateSystemAssignedIdentity() {
91
91
  * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
92
92
  *
93
93
  * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
94
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json
94
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountCreate_UserAssignedIdentity.json
95
95
  */
96
96
  function batchAccountCreateUserAssignedIdentity() {
97
97
  return __awaiter(this, void 0, void 0, function* () {
@@ -120,7 +120,7 @@ function batchAccountCreateUserAssignedIdentity() {
120
120
  * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
121
121
  *
122
122
  * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.
123
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json
123
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateBatchAccountCreate.json
124
124
  */
125
125
  function privateBatchAccountCreate() {
126
126
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Deletes the specified Batch account.
17
17
  *
18
18
  * @summary Deletes the specified Batch account.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountDelete.json
20
20
  */
21
21
  function batchAccountDelete() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets information about the given detector for a given Batch account.
17
17
  *
18
18
  * @summary Gets information about the given detector for a given Batch account.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/DetectorGet.json
20
20
  */
21
21
  function getDetector() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
17
17
  *
18
18
  * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountGetKeys.json
20
20
  */
21
21
  function batchAccountGetKeys() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets information about the specified Batch account.
17
17
  *
18
18
  * @summary Gets information about the specified Batch account.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountGet.json
20
20
  */
21
21
  function batchAccountGet() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -33,7 +33,7 @@ function batchAccountGet() {
33
33
  * This sample demonstrates how to Gets information about the specified Batch account.
34
34
  *
35
35
  * @summary Gets information about the specified Batch account.
36
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json
36
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/PrivateBatchAccountGet.json
37
37
  */
38
38
  function privateBatchAccountGet() {
39
39
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group.
17
17
  *
18
18
  * @summary Gets information about the Batch accounts associated with the specified resource group.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountListByResourceGroup.json
20
20
  */
21
21
  function batchAccountListByResourceGroup() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets information about the detectors available for a given Batch account.
17
17
  *
18
18
  * @summary Gets information about the detectors available for a given Batch account.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/DetectorList.json
20
20
  */
21
21
  function listDetectors() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -13,10 +13,10 @@ import { DefaultAzureCredential } from "@azure/identity";
13
13
  import * as dotenv from "dotenv";
14
14
  dotenv.config();
15
15
  /**
16
- * This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
16
+ * This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
17
17
  *
18
- * @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
18
+ * @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network.
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json
20
20
  */
21
21
  function listOutboundNetworkDependencies() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets information about the Batch accounts associated with the subscription.
17
17
  *
18
18
  * @summary Gets information about the Batch accounts associated with the subscription.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountList.json
20
20
  */
21
21
  function batchAccountList() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
17
17
  *
18
18
  * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountRegenerateKey.json
20
20
  */
21
21
  function batchAccountRegenerateKey() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
17
17
  *
18
18
  * @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountSynchronizeAutoStorageKeys.json
20
20
  */
21
21
  function batchAccountSynchronizeAutoStorageKeys() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Updates the properties of an existing Batch account.
17
17
  *
18
18
  * @summary Updates the properties of an existing Batch account.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/BatchAccountUpdate.json
20
20
  */
21
21
  function batchAccountUpdate() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -20,7 +20,7 @@ Warning: This operation is deprecated and will be removed after February, 2024.
20
20
  * @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate.
21
21
 
22
22
  Warning: This operation 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.
23
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json
23
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCancelDeletion.json
24
24
  */
25
25
  function certificateCancelDeletion() {
26
26
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Warning: This operation 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.
17
17
  *
18
18
  * @summary Warning: This operation 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.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_Full.json
20
20
  */
21
21
  function createCertificateFull() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -41,7 +41,7 @@ function createCertificateFull() {
41
41
  * This sample demonstrates how to Warning: This operation 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.
42
42
  *
43
43
  * @summary Warning: This operation 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.
44
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json
44
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_MinimalCer.json
45
45
  */
46
46
  function createCertificateMinimalCer() {
47
47
  return __awaiter(this, void 0, void 0, function* () {
@@ -63,7 +63,7 @@ function createCertificateMinimalCer() {
63
63
  * This sample demonstrates how to Warning: This operation 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.
64
64
  *
65
65
  * @summary Warning: This operation 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.
66
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json
66
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateCreate_Minimal.json
67
67
  */
68
68
  function createCertificateMinimalPfx() {
69
69
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Warning: This operation 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.
17
17
  *
18
18
  * @summary Warning: This operation 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.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateDelete.json
20
20
  */
21
21
  function certificateDelete() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Warning: This operation 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.
17
17
  *
18
18
  * @summary Warning: This operation 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.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateGet.json
20
20
  */
21
21
  function getCertificate() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -34,7 +34,7 @@ function getCertificate() {
34
34
  * This sample demonstrates how to Warning: This operation 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.
35
35
  *
36
36
  * @summary Warning: This operation 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.
37
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json
37
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateGetWithDeletionError.json
38
38
  */
39
39
  function getCertificateWithDeletionError() {
40
40
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Warning: This operation 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.
17
17
  *
18
18
  * @summary Warning: This operation 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.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateList.json
20
20
  */
21
21
  function listCertificates() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -49,7 +49,7 @@ function listCertificates() {
49
49
  * This sample demonstrates how to Warning: This operation 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.
50
50
  *
51
51
  * @summary Warning: This operation 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.
52
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json
52
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateListWithFilter.json
53
53
  */
54
54
  function listCertificatesFilterAndSelect() {
55
55
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Warning: This operation 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.
17
17
  *
18
18
  * @summary Warning: This operation 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.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/CertificateUpdate.json
20
20
  */
21
21
  function updateCertificate() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
17
17
  *
18
18
  * @summary Checks whether the Batch account name is available in the specified region.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationCheckNameAvailability_AlreadyExists.json
20
20
  */
21
21
  function locationCheckNameAvailabilityAlreadyExists() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -36,7 +36,7 @@ function locationCheckNameAvailabilityAlreadyExists() {
36
36
  * This sample demonstrates how to Checks whether the Batch account name is available in the specified region.
37
37
  *
38
38
  * @summary Checks whether the Batch account name is available in the specified region.
39
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json
39
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationCheckNameAvailability_Available.json
40
40
  */
41
41
  function locationCheckNameAvailabilityAvailable() {
42
42
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location.
17
17
  *
18
18
  * @summary Gets the Batch service quotas for the specified subscription at the given location.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationGetQuotas.json
20
20
  */
21
21
  function locationGetQuotas() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
17
17
  *
18
18
  * @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/LocationListVirtualMachineSkus.json
20
20
  */
21
21
  function locationListVirtualMachineSkus() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=networkSecurityPerimeterGetConfigurationSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkSecurityPerimeterGetConfigurationSample.d.ts","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterGetConfigurationSample.ts"],"names":[],"mappings":""}
@@ -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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Gets information about the specified NSP configuration.
17
+ *
18
+ * @summary Gets information about the specified NSP configuration.
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationGet.json
20
+ */
21
+ function getNspConfiguration() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
25
+ const accountName = "sampleacct";
26
+ const networkSecurityPerimeterConfigurationName = "00000000-0000-0000-0000-000000000000.sampleassociation";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new BatchManagementClient(credential, subscriptionId);
29
+ const result = yield client.networkSecurityPerimeterOperations.getConfiguration(resourceGroupName, accountName, networkSecurityPerimeterConfigurationName);
30
+ console.log(result);
31
+ });
32
+ }
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ getNspConfiguration();
36
+ });
37
+ }
38
+ main().catch(console.error);
39
+ //# sourceMappingURL=networkSecurityPerimeterGetConfigurationSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkSecurityPerimeterGetConfigurationSample.js","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterGetConfigurationSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,mBAAmB;;QAChC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,yCAAyC,GAC7C,wDAAwD,CAAC;QAC3D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GACV,MAAM,MAAM,CAAC,kCAAkC,CAAC,gBAAgB,CAC9D,iBAAiB,EACjB,WAAW,EACX,yCAAyC,CAC1C,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,mBAAmB,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=networkSecurityPerimeterListConfigurationsSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkSecurityPerimeterListConfigurationsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterListConfigurationsSample.ts"],"names":[],"mappings":""}
@@ -13,21 +13,22 @@ import { DefaultAzureCredential } from "@azure/identity";
13
13
  import * as dotenv from "dotenv";
14
14
  dotenv.config();
15
15
  /**
16
- * This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location.
16
+ * This sample demonstrates how to Lists all of the NSP configurations in the specified account.
17
17
  *
18
- * @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location.
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json
18
+ * @summary Lists all of the NSP configurations in the specified account.
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationsList.json
20
20
  */
21
- function locationListCloudServiceSkus() {
21
+ function listNspConfigurations() {
22
22
  return __awaiter(this, void 0, void 0, function* () {
23
23
  var _a, e_1, _b, _c;
24
24
  const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
25
- const locationName = "japaneast";
25
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
26
+ const accountName = "sampleacct";
26
27
  const credential = new DefaultAzureCredential();
27
28
  const client = new BatchManagementClient(credential, subscriptionId);
28
29
  const resArray = new Array();
29
30
  try {
30
- for (var _d = true, _e = __asyncValues(client.location.listSupportedCloudServiceSkus(locationName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
31
+ for (var _d = true, _e = __asyncValues(client.networkSecurityPerimeterOperations.listConfigurations(resourceGroupName, accountName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
31
32
  _c = _f.value;
32
33
  _d = false;
33
34
  let item = _c;
@@ -46,8 +47,8 @@ function locationListCloudServiceSkus() {
46
47
  }
47
48
  function main() {
48
49
  return __awaiter(this, void 0, void 0, function* () {
49
- locationListCloudServiceSkus();
50
+ listNspConfigurations();
50
51
  });
51
52
  }
52
53
  main().catch(console.error);
53
- //# sourceMappingURL=locationListSupportedCloudServiceSkusSample.js.map
54
+ //# sourceMappingURL=networkSecurityPerimeterListConfigurationsSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkSecurityPerimeterListConfigurationsSample.js","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterListConfigurationsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,qBAAqB;;;QAClC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,kCAAkC,CAAC,kBAAkB,CACjF,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA,sDAAE,CAAC;gBAHmB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=networkSecurityPerimeterReconcileConfigurationSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkSecurityPerimeterReconcileConfigurationSample.d.ts","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterReconcileConfigurationSample.ts"],"names":[],"mappings":""}
@@ -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
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { BatchManagementClient } from "@azure/arm-batch";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ import * as dotenv from "dotenv";
14
+ dotenv.config();
15
+ /**
16
+ * This sample demonstrates how to Reconciles the specified NSP configuration.
17
+ *
18
+ * @summary Reconciles the specified NSP configuration.
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/NspConfigurationReconcile.json
20
+ */
21
+ function reconcileNspConfiguration() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid";
24
+ const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast";
25
+ const accountName = "sampleacct";
26
+ const networkSecurityPerimeterConfigurationName = "00000000-0000-0000-0000-000000000000.sampleassociation";
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new BatchManagementClient(credential, subscriptionId);
29
+ const result = yield client.networkSecurityPerimeterOperations.beginReconcileConfigurationAndWait(resourceGroupName, accountName, networkSecurityPerimeterConfigurationName);
30
+ console.log(result);
31
+ });
32
+ }
33
+ function main() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ reconcileNspConfiguration();
36
+ });
37
+ }
38
+ main().catch(console.error);
39
+ //# sourceMappingURL=networkSecurityPerimeterReconcileConfigurationSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"networkSecurityPerimeterReconcileConfigurationSample.js","sourceRoot":"","sources":["../../samples-dev/networkSecurityPerimeterReconcileConfigurationSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,OAAO,CAAC;QACvE,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,IAAI,8BAA8B,CAAC;QACxE,MAAM,WAAW,GAAG,YAAY,CAAC;QACjC,MAAM,yCAAyC,GAC7C,wDAAwD,CAAC;QAC3D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,qBAAqB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACrE,MAAM,MAAM,GACV,MAAM,MAAM,CAAC,kCAAkC,CAAC,kCAAkC,CAChF,iBAAiB,EACjB,WAAW,EACX,yCAAyC,CAC1C,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,yBAAyB,EAAE,CAAC;IAC9B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -16,7 +16,7 @@ dotenv.config();
16
16
  * This sample demonstrates how to Lists available operations for the Microsoft.Batch provider
17
17
  *
18
18
  * @summary Lists available operations for the Microsoft.Batch provider
19
- * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json
19
+ * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-07-01/examples/OperationsList.json
20
20
  */
21
21
  function operationsList() {
22
22
  return __awaiter(this, void 0, void 0, function* () {