From 64ab597f3c2db951fd96954988c2130cd85d629a Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 7 Oct 2024 20:47:41 +0000 Subject: [PATCH] CodeGen from PR 30839 in Azure/azure-rest-api-specs Merge c800eb2eeb97a929738a476f9e2eb83df10eccac into 75efbd8fa0860a713074a2c9e8147397e84de026 --- .../azure/compute/batch/BatchAsyncClient.java | 1364 ++++++--- .../com/azure/compute/batch/BatchClient.java | 1346 ++++++--- .../compute/batch/BatchServiceVersion.java | 6 +- .../batch/implementation/BatchClientImpl.java | 2440 +++++++++++++---- .../models/AutomaticOsUpgradePolicy.java | 8 +- .../azure/compute/batch/models/BatchJob.java | 4 +- .../batch/models/BatchJobManagerTask.java | 4 +- .../models/BatchJobNetworkConfiguration.java | 84 +- .../batch/models/BatchJobPreparationTask.java | 4 +- .../batch/models/BatchJobReleaseTask.java | 4 +- .../batch/models/BatchJobUpdateContent.java | 32 + .../compute/batch/models/BatchNodeCounts.java | 127 +- .../models/BatchNodeDeallocateContent.java | 96 + .../models/BatchNodeDeallocateOption.java | 73 + .../models/BatchNodePlacementPolicyType.java | 48 +- .../batch/models/BatchNodeReimageContent.java | 96 + .../compute/batch/models/BatchNodeState.java | 12 + .../models/BatchNodeUserCreateContent.java | 15 +- .../models/BatchNodeUserUpdateContent.java | 20 +- .../azure/compute/batch/models/BatchPool.java | 18 +- .../BatchPoolEnableAutoScaleContent.java | 32 +- .../BatchPoolEvaluateAutoScaleContent.java | 4 +- .../batch/models/BatchPoolSpecification.java | 10 +- .../batch/models/BatchPoolUpdateContent.java | 411 ++- .../compute/batch/models/BatchStartTask.java | 4 +- .../azure/compute/batch/models/BatchTask.java | 4 +- .../models/BatchTaskContainerSettings.java | 43 + .../ContainerHostBatchBindMountEntry.java | 135 + .../batch/models/ContainerHostDataPath.java | 57 + .../batch/models/DiffDiskPlacement.java | 7 +- .../batch/models/DiffDiskSettings.java | 13 +- .../models/DiskEncryptionConfiguration.java | 15 +- .../compute/batch/models/FileProperties.java | 30 +- .../compute/batch/models/ImageReference.java | 68 + .../compute/batch/models/ManagedDisk.java | 73 +- .../batch/models/NetworkConfiguration.java | 105 +- .../OutputFileBlobContainerDestination.java | 8 +- .../batch/models/SecurityEncryptionTypes.java | 57 + .../compute/batch/models/SecurityProfile.java | 6 +- .../compute/batch/models/SecurityTypes.java | 9 + .../compute/batch/models/UpgradePolicy.java | 9 +- .../batch/models/VMDiskSecurityProfile.java | 103 + .../models/VirtualMachineConfiguration.java | 15 +- .../models/WindowsUserConfiguration.java | 8 +- ...zure-compute-batch_apiview_properties.json | 518 ++-- .../azure-compute-batch/tsp-location.yaml | 4 +- 46 files changed, 5909 insertions(+), 1640 deletions(-) create mode 100644 sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeDeallocateContent.java create mode 100644 sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeDeallocateOption.java create mode 100644 sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeReimageContent.java create mode 100644 sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ContainerHostBatchBindMountEntry.java create mode 100644 sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ContainerHostDataPath.java create mode 100644 sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityEncryptionTypes.java create mode 100644 sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/VMDiskSecurityProfile.java diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchAsyncClient.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchAsyncClient.java index bd490c87ec72..6e1ce2e7e0ee 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchAsyncClient.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchAsyncClient.java @@ -21,9 +21,11 @@ import com.azure.compute.batch.models.BatchJobTerminateContent; import com.azure.compute.batch.models.BatchJobUpdateContent; import com.azure.compute.batch.models.BatchNode; +import com.azure.compute.batch.models.BatchNodeDeallocateContent; import com.azure.compute.batch.models.BatchNodeDisableSchedulingContent; import com.azure.compute.batch.models.BatchNodeFile; import com.azure.compute.batch.models.BatchNodeRebootContent; +import com.azure.compute.batch.models.BatchNodeReimageContent; import com.azure.compute.batch.models.BatchNodeRemoteLoginSettings; import com.azure.compute.batch.models.BatchNodeRemoveContent; import com.azure.compute.batch.models.BatchNodeUserCreateContent; @@ -3492,7 +3494,7 @@ public Mono> getApplicationWithResponse(String applicationI * last aggregation interval currently available. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -3641,6 +3643,8 @@ PagedFlux listPoolUsageMetrics(RequestOptions requestOptions) { * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -3677,7 +3681,7 @@ PagedFlux listPoolUsageMetrics(RequestOptions requestOptions) { * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -3705,13 +3709,16 @@ PagedFlux listPoolUsageMetrics(RequestOptions requestOptions) { * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -3770,6 +3777,12 @@ PagedFlux listPoolUsageMetrics(RequestOptions requestOptions) { * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -4170,7 +4183,7 @@ public Mono> createPoolWithResponse(BinaryData pool, RequestOptio } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. *

Query Parameters

* * @@ -4183,7 +4196,7 @@ public Mono> createPoolWithResponse(BinaryData pool, RequestOptio * applications can be returned. * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-pools. * * * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. *
Query Parameters
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-pools.
$selectList<String>NoAn OData $select clause. In the form of "," * separated string.
$expandList<String>NoAn OData $expand clause. In the form of "," @@ -4214,6 +4227,8 @@ public Mono> createPoolWithResponse(BinaryData pool, RequestOptio * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -4250,7 +4265,7 @@ public Mono> createPoolWithResponse(BinaryData pool, RequestOptio * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -4278,13 +4293,16 @@ public Mono> createPoolWithResponse(BinaryData pool, RequestOptio * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -4368,6 +4386,12 @@ public Mono> createPoolWithResponse(BinaryData pool, RequestOptio * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -5285,6 +5309,8 @@ public Mono> poolExistsWithResponse(String poolId, RequestOpti * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -5321,7 +5347,7 @@ public Mono> poolExistsWithResponse(String poolId, RequestOpti * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -5349,13 +5375,16 @@ public Mono> poolExistsWithResponse(String poolId, RequestOpti * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -5439,6 +5468,12 @@ public Mono> poolExistsWithResponse(String poolId, RequestOpti * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -6042,6 +6077,9 @@ public Mono> getPoolWithResponse(String poolId, RequestOpti *
      * {@code
      * {
+     *     displayName: String (Optional)
+     *     vmSize: String (Optional)
+     *     enableInterNodeCommunication: Boolean (Optional)
      *     startTask (Optional): {
      *         commandLine: String (Required)
      *         containerSettings (Optional): {
@@ -6056,6 +6094,12 @@ public Mono> getPoolWithResponse(String poolId, RequestOpti
      *                 }
      *             }
      *             workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional)
+     *             containerHostBatchBindMounts (Optional): [
+     *                  (Optional){
+     *                     source: String(regional/zonal) (Optional)
+     *                     isReadOnly: Boolean (Optional)
+     *                 }
+     *             ]
      *         }
      *         resourceFiles (Optional): [
      *              (Optional){
@@ -6096,7 +6140,197 @@ public Mono> getPoolWithResponse(String poolId, RequestOpti
      *             value: String (Required)
      *         }
      *     ]
+     *     virtualMachineConfiguration (Optional): {
+     *         imageReference (Required): {
+     *             publisher: String (Optional)
+     *             offer: String (Optional)
+     *             sku: String (Optional)
+     *             version: String (Optional)
+     *             virtualMachineImageId: String (Optional)
+     *             exactVersion: String (Optional)
+     *             sharedGalleryImageId: String (Optional)
+     *             communityGalleryImageId: String (Optional)
+     *         }
+     *         nodeAgentSKUId: String (Required)
+     *         windowsConfiguration (Optional): {
+     *             enableAutomaticUpdates: Boolean (Optional)
+     *         }
+     *         dataDisks (Optional): [
+     *              (Optional){
+     *                 lun: int (Required)
+     *                 caching: String(none/readonly/readwrite) (Optional)
+     *                 diskSizeGB: int (Required)
+     *                 storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional)
+     *             }
+     *         ]
+     *         licenseType: String (Optional)
+     *         containerConfiguration (Optional): {
+     *             type: String(dockerCompatible/criCompatible) (Required)
+     *             containerImageNames (Optional): [
+     *                 String (Optional)
+     *             ]
+     *             containerRegistries (Optional): [
+     *                 (recursive schema, see above)
+     *             ]
+     *         }
+     *         diskEncryptionConfiguration (Optional): {
+     *             targets (Optional): [
+     *                 String(osdisk/temporarydisk) (Optional)
+     *             ]
+     *         }
+     *         nodePlacementConfiguration (Optional): {
+     *             policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional)
+     *         }
+     *         extensions (Optional): [
+     *              (Optional){
+     *                 name: String (Required)
+     *                 publisher: String (Required)
+     *                 type: String (Required)
+     *                 typeHandlerVersion: String (Optional)
+     *                 autoUpgradeMinorVersion: Boolean (Optional)
+     *                 enableAutomaticUpgrade: Boolean (Optional)
+     *                 settings (Optional): {
+     *                     String: String (Required)
+     *                 }
+     *                 protectedSettings (Optional): {
+     *                     String: String (Required)
+     *                 }
+     *                 provisionAfterExtensions (Optional): [
+     *                     String (Optional)
+     *                 ]
+     *             }
+     *         ]
+     *         osDisk (Optional): {
+     *             ephemeralOSDiskSettings (Optional): {
+     *                 placement: String(cachedisk) (Optional)
+     *             }
+     *             caching: String(none/readonly/readwrite) (Optional)
+     *             diskSizeGB: Integer (Optional)
+     *             managedDisk (Optional): {
+     *                 storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional)
+     *                 securityProfile (Optional): {
+     *                     securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional)
+     *                 }
+     *             }
+     *             writeAcceleratorEnabled: Boolean (Optional)
+     *         }
+     *         securityProfile (Optional): {
+     *             encryptionAtHost: boolean (Required)
+     *             securityType: String(trustedLaunch/confidentialVM) (Required)
+     *             uefiSettings (Required): {
+     *                 secureBootEnabled: Boolean (Optional)
+     *                 vTpmEnabled: Boolean (Optional)
+     *             }
+     *         }
+     *         serviceArtifactReference (Optional): {
+     *             id: String (Required)
+     *         }
+     *     }
      *     targetNodeCommunicationMode: String(default/classic/simplified) (Optional)
+     *     taskSlotsPerNode: Integer (Optional)
+     *     taskSchedulingPolicy (Optional): {
+     *         nodeFillType: String(spread/pack) (Required)
+     *     }
+     *     networkConfiguration (Optional): {
+     *         subnetId: String (Optional)
+     *         dynamicVNetAssignmentScope: String(none/job) (Optional)
+     *         endpointConfiguration (Optional): {
+     *             inboundNATPools (Required): [
+     *                  (Required){
+     *                     name: String (Required)
+     *                     protocol: String(tcp/udp) (Required)
+     *                     backendPort: int (Required)
+     *                     frontendPortRangeStart: int (Required)
+     *                     frontendPortRangeEnd: int (Required)
+     *                     networkSecurityGroupRules (Optional): [
+     *                          (Optional){
+     *                             priority: int (Required)
+     *                             access: String(allow/deny) (Required)
+     *                             sourceAddressPrefix: String (Required)
+     *                             sourcePortRanges (Optional): [
+     *                                 String (Optional)
+     *                             ]
+     *                         }
+     *                     ]
+     *                 }
+     *             ]
+     *         }
+     *         publicIPAddressConfiguration (Optional): {
+     *             provision: String(batchmanaged/usermanaged/nopublicipaddresses) (Optional)
+     *             ipAddressIds (Optional): [
+     *                 String (Optional)
+     *             ]
+     *         }
+     *         enableAcceleratedNetworking: Boolean (Optional)
+     *     }
+     *     resourceTags (Optional): {
+     *         String: String (Required)
+     *     }
+     *     userAccounts (Optional): [
+     *          (Optional){
+     *             name: String (Required)
+     *             password: String (Required)
+     *             elevationLevel: String(nonadmin/admin) (Optional)
+     *             linuxUserConfiguration (Optional): {
+     *                 uid: Integer (Optional)
+     *                 gid: Integer (Optional)
+     *                 sshPrivateKey: String (Optional)
+     *             }
+     *             windowsUserConfiguration (Optional): {
+     *                 loginMode: String(batch/interactive) (Optional)
+     *             }
+     *         }
+     *     ]
+     *     mountConfiguration (Optional): [
+     *          (Optional){
+     *             azureBlobFileSystemConfiguration (Optional): {
+     *                 accountName: String (Required)
+     *                 containerName: String (Required)
+     *                 accountKey: String (Optional)
+     *                 sasKey: String (Optional)
+     *                 blobfuseOptions: String (Optional)
+     *                 relativeMountPath: String (Required)
+     *                 identityReference (Optional): (recursive schema, see identityReference above)
+     *             }
+     *             nfsMountConfiguration (Optional): {
+     *                 source: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *             }
+     *             cifsMountConfiguration (Optional): {
+     *                 username: String (Required)
+     *                 source: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *                 password: String (Required)
+     *             }
+     *             azureFileShareConfiguration (Optional): {
+     *                 accountName: String (Required)
+     *                 azureFileUrl: String (Required)
+     *                 accountKey: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *             }
+     *         }
+     *     ]
+     *     upgradePolicy (Optional): {
+     *         mode: String(automatic/manual/rolling) (Required)
+     *         automaticOSUpgradePolicy (Optional): {
+     *             disableAutomaticRollback: Boolean (Optional)
+     *             enableAutomaticOSUpgrade: Boolean (Optional)
+     *             useRollingUpgradePolicy: Boolean (Optional)
+     *             osRollingUpgradeDeferral: Boolean (Optional)
+     *         }
+     *         rollingUpgradePolicy (Optional): {
+     *             enableCrossZoneUpgrade: Boolean (Optional)
+     *             maxBatchInstancePercent: Integer (Optional)
+     *             maxUnhealthyInstancePercent: Integer (Optional)
+     *             maxUnhealthyUpgradedInstancePercent: Integer (Optional)
+     *             pauseTimeBetweenBatches: Duration (Optional)
+     *             prioritizeUnhealthyInstances: Boolean (Optional)
+     *             rollbackFailedInstancesOnPolicyBreach: Boolean (Optional)
+     *         }
+     *     }
      * }
      * }
      * 
@@ -7012,6 +7246,12 @@ public Mono> stopPoolResizeWithResponse(String poolId, RequestOpt * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -7370,7 +7610,7 @@ public Mono> removeNodesWithResponse(String poolId, BinaryData pa * applications can be returned.
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images.
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -7386,6 +7626,8 @@ public Mono> removeNodesWithResponse(String poolId, BinaryData pa * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * osType: String(linux/windows) (Required) * capabilities (Optional): [ @@ -7500,7 +7742,7 @@ PagedFlux listSupportedImages(RequestOptions requestOptions) { * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -7523,6 +7765,8 @@ PagedFlux listSupportedImages(RequestOptions requestOptions) { * unknown: int (Required) * unusable: int (Required) * waitingForStartTask: int (Required) + * deallocated: int (Required) + * deallocating: int (Required) * total: int (Required) * upgradingOS: int (Required) * } @@ -7642,6 +7886,8 @@ PagedFlux listPoolNodeCounts(RequestOptions requestOptions) { * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will delete the Job even if the + * corresponding nodes have not fully processed the deletion. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -7850,6 +8096,12 @@ public Mono> deleteJobWithResponse(String jobId, RequestOptions r * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -7966,6 +8218,8 @@ public Mono> deleteJobWithResponse(String jobId, RequestOptions r * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -7995,7 +8249,7 @@ public Mono> deleteJobWithResponse(String jobId, RequestOptions r * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -8023,13 +8277,16 @@ public Mono> deleteJobWithResponse(String jobId, RequestOptions r * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -8178,6 +8435,7 @@ public Mono> deleteJobWithResponse(String jobId, RequestOptions r * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -8776,6 +9034,8 @@ public Mono> getJobWithResponse(String jobId, RequestOption * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -8812,7 +9072,7 @@ public Mono> getJobWithResponse(String jobId, RequestOption * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -8840,13 +9100,16 @@ public Mono> getJobWithResponse(String jobId, RequestOption * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -8907,6 +9170,12 @@ public Mono> getJobWithResponse(String jobId, RequestOption * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -9020,6 +9289,10 @@ public Mono> getJobWithResponse(String jobId, RequestOption * metadata (Optional): [ * (recursive schema, see above) * ] + * networkConfiguration (Optional): { + * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) + * } * } * } * @@ -9454,6 +9727,12 @@ public Mono> updateJobWithResponse(String jobId, BinaryData job, * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -9570,6 +9849,8 @@ public Mono> updateJobWithResponse(String jobId, BinaryData job, * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -9599,7 +9880,7 @@ public Mono> updateJobWithResponse(String jobId, BinaryData job, * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -9627,13 +9908,16 @@ public Mono> updateJobWithResponse(String jobId, BinaryData job, * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -9782,6 +10066,7 @@ public Mono> updateJobWithResponse(String jobId, BinaryData job, * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -10681,6 +10966,12 @@ public Mono> enableJobWithResponse(String jobId, RequestOptions r * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -10797,6 +11088,8 @@ public Mono> enableJobWithResponse(String jobId, RequestOptions r * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -10826,7 +11119,7 @@ public Mono> enableJobWithResponse(String jobId, RequestOptions r * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -10854,13 +11147,16 @@ public Mono> enableJobWithResponse(String jobId, RequestOptions r * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -11009,6 +11305,7 @@ public Mono> enableJobWithResponse(String jobId, RequestOptions r * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -11430,7 +11727,7 @@ public Mono> createJobWithResponse(BinaryData job, RequestOptions * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -11476,6 +11773,12 @@ public Mono> createJobWithResponse(BinaryData job, RequestOptions * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -11592,6 +11895,8 @@ public Mono> createJobWithResponse(BinaryData job, RequestOptions * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -11621,7 +11926,7 @@ public Mono> createJobWithResponse(BinaryData job, RequestOptions * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -11649,13 +11954,16 @@ public Mono> createJobWithResponse(BinaryData job, RequestOptions * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -11804,6 +12112,7 @@ public Mono> createJobWithResponse(BinaryData job, RequestOptions * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -12342,7 +12651,7 @@ PagedFlux listJobs(RequestOptions requestOptions) { * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -12388,6 +12697,12 @@ PagedFlux listJobs(RequestOptions requestOptions) { * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -12504,6 +12819,8 @@ PagedFlux listJobs(RequestOptions requestOptions) { * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -12533,7 +12850,7 @@ PagedFlux listJobs(RequestOptions requestOptions) { * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -12561,13 +12878,16 @@ PagedFlux listJobs(RequestOptions requestOptions) { * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -12716,6 +13036,7 @@ PagedFlux listJobs(RequestOptions requestOptions) { * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -13264,7 +13585,7 @@ PagedFlux listJobsFromSchedule(String jobScheduleId, RequestOptions * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * @@ -13737,6 +14058,8 @@ public Mono> jobScheduleExistsWithResponse(String jobScheduleI * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will delete the JobSchedule even if the + * corresponding nodes have not fully processed the deletion. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -13935,6 +14258,7 @@ public Mono> deleteJobScheduleWithResponse(String jobScheduleId, * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -13956,6 +14280,12 @@ public Mono> deleteJobScheduleWithResponse(String jobScheduleId, * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -14072,6 +14402,8 @@ public Mono> deleteJobScheduleWithResponse(String jobScheduleId, * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -14101,7 +14433,7 @@ public Mono> deleteJobScheduleWithResponse(String jobScheduleId, * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -14129,13 +14461,16 @@ public Mono> deleteJobScheduleWithResponse(String jobScheduleId, * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -14871,6 +15206,7 @@ public Mono> getJobScheduleWithResponse(String jobScheduleI * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -14892,6 +15228,12 @@ public Mono> getJobScheduleWithResponse(String jobScheduleI * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -15008,6 +15350,8 @@ public Mono> getJobScheduleWithResponse(String jobScheduleI * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -15037,7 +15381,7 @@ public Mono> getJobScheduleWithResponse(String jobScheduleI * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -15065,13 +15409,16 @@ public Mono> getJobScheduleWithResponse(String jobScheduleI * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -15756,6 +16103,7 @@ public Mono> updateJobScheduleWithResponse(String jobScheduleId, * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -15777,6 +16125,12 @@ public Mono> updateJobScheduleWithResponse(String jobScheduleId, * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -15893,6 +16247,8 @@ public Mono> updateJobScheduleWithResponse(String jobScheduleId, * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -15922,7 +16278,7 @@ public Mono> updateJobScheduleWithResponse(String jobScheduleId, * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -15950,13 +16306,16 @@ public Mono> updateJobScheduleWithResponse(String jobScheduleId, * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -16909,6 +17268,8 @@ public Mono> enableJobScheduleWithResponse(String jobScheduleId, * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will terminate the JobSchedule even if the + * corresponding nodes have not fully processed the termination. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -17067,6 +17428,7 @@ public Mono> terminateJobScheduleWithResponse(String jobScheduleI * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -17088,6 +17450,12 @@ public Mono> terminateJobScheduleWithResponse(String jobScheduleI * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -17204,6 +17572,8 @@ public Mono> terminateJobScheduleWithResponse(String jobScheduleI * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -17233,7 +17603,7 @@ public Mono> terminateJobScheduleWithResponse(String jobScheduleI * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -17261,13 +17631,16 @@ public Mono> terminateJobScheduleWithResponse(String jobScheduleI * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -17840,7 +18213,7 @@ public Mono> createJobScheduleWithResponse(BinaryData jobSchedule * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -17878,6 +18251,7 @@ public Mono> createJobScheduleWithResponse(BinaryData jobSchedule * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -17899,6 +18273,12 @@ public Mono> createJobScheduleWithResponse(BinaryData jobSchedule * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -18015,6 +18395,8 @@ public Mono> createJobScheduleWithResponse(BinaryData jobSchedule * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -18044,7 +18426,7 @@ public Mono> createJobScheduleWithResponse(BinaryData jobSchedule * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -18072,13 +18454,16 @@ public Mono> createJobScheduleWithResponse(BinaryData jobSchedule * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -18800,6 +19185,12 @@ PagedFlux listJobSchedules(RequestOptions requestOptions) { * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -19094,7 +19485,7 @@ public Mono> createTaskWithResponse(String jobId, BinaryData task * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-tasks. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-tasks. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -19150,6 +19541,12 @@ public Mono> createTaskWithResponse(String jobId, BinaryData task * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -19619,6 +20016,12 @@ PagedFlux listTasks(String jobId, RequestOptions requestOptions) { * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -20212,6 +20615,12 @@ public Mono> deleteTaskWithResponse(String jobId, String taskId, * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -20737,6 +21146,12 @@ public Mono> getTaskWithResponse(String jobId, String taskI * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -21815,7 +22230,7 @@ public Mono> getTaskFilePropertiesWithResponse(String jobId, Stri * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-task-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-task-files. * recursiveBooleanNoWhether to list children of the Task directory. This * parameter can be used in * combination with the filter parameter to list specific type of files. @@ -21832,7 +22247,7 @@ public Mono> getTaskFilePropertiesWithResponse(String jobId, Stri * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -22242,7 +22657,7 @@ public Mono> replaceNodeUserWithResponse(String poolId, String no * { * id: String (Optional) * url: String (Optional) - * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional) + * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional) * schedulingState: String(enabled/disabled) (Optional) * stateTransitionTime: OffsetDateTime (Optional) * lastBootTime: OffsetDateTime (Optional) @@ -22303,6 +22718,12 @@ public Mono> replaceNodeUserWithResponse(String poolId, String no * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -22376,6 +22797,8 @@ public Mono> replaceNodeUserWithResponse(String poolId, String no * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * scaleSetVmResourceId: String (Optional) * } @@ -22671,9 +23094,8 @@ public Mono> enableNodeSchedulingWithResponse(String poolId, Stri /** * Gets the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node. This API can be - * invoked only on Pools created with the virtual machine configuration property. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node. *

Query Parameters

* * @@ -22703,9 +23125,9 @@ public Mono> enableNodeSchedulingWithResponse(String poolId, Stri * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node along with {@link Response} on successful completion - * of {@link Mono}. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node along with {@link Response} on successful completion of + * {@link Mono}. */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) @@ -22923,7 +23345,7 @@ public Mono> uploadNodeLogsWithResponse(String poolId, Stri * applications can be returned. * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. * *
Query Parameters
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool.
$selectList<String>NoAn OData $select clause. In the form of "," * separated string.
@@ -22935,7 +23357,7 @@ public Mono> uploadNodeLogsWithResponse(String poolId, Stri * { * id: String (Optional) * url: String (Optional) - * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional) + * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional) * schedulingState: String(enabled/disabled) (Optional) * stateTransitionTime: OffsetDateTime (Optional) * lastBootTime: OffsetDateTime (Optional) @@ -22996,6 +23418,12 @@ public Mono> uploadNodeLogsWithResponse(String poolId, Stri * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -23069,6 +23497,8 @@ public Mono> uploadNodeLogsWithResponse(String poolId, Stri * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * scaleSetVmResourceId: String (Optional) * } @@ -23983,7 +24413,7 @@ public Mono> getNodeFilePropertiesWithResponse(String poolId, Str * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. * recursiveBooleanNoWhether to list children of a directory. * * You can add these to a request with {@link RequestOptions#addQueryParam} @@ -23998,7 +24428,7 @@ public Mono> getNodeFilePropertiesWithResponse(String poolId, Str * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -24242,7 +24672,7 @@ PagedFlux listPoolUsageMetricsInternal() { } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. * * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -24695,59 +25125,6 @@ PagedFlux listPoolNodeCountsInternal() { }); } - /** - * Deletes a Job. - * - * Deleting a Job also deletes all Tasks that are part of that Job, and all Job - * statistics. This also overrides the retention period for Task data; that is, if - * the Job contains Tasks which are still retained on Compute Nodes, the Batch - * services deletes those Tasks' working directories and all their contents. When - * a Delete Job request is received, the Batch service sets the Job to the - * deleting state. All update operations on a Job that is in deleting state will - * fail with status code 409 (Conflict), with additional information indicating - * that the Job is being deleted. - * - * @param jobId The ID of the Job to delete. - * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The - * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @param requestConditions Specifies HTTP options for conditional requests based on modification time. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteJobInternal(String jobId, Integer timeOutInSeconds, RequestConditions requestConditions) { - // Generated convenience method for deleteJobInternalWithResponse - RequestOptions requestOptions = new RequestOptions(); - OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); - OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); - String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); - String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); - if (timeOutInSeconds != null) { - requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); - } - if (ifModifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifModifiedSince))); - } - if (ifUnmodifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); - } - if (ifMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); - } - if (ifNoneMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); - } - return deleteJobInternalWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono); - } - /** * Deletes a Job. * @@ -25245,57 +25622,6 @@ Mono jobScheduleExistsInternal(String jobScheduleId) { return jobScheduleExistsInternalWithResponse(jobScheduleId, requestOptions).flatMap(FluxUtil::toMono); } - /** - * Deletes a Job Schedule from the specified Account. - * - * When you delete a Job Schedule, this also deletes all Jobs and Tasks under that - * schedule. When Tasks are deleted, all the files in their working directories on - * the Compute Nodes are also deleted (the retention period is ignored). The Job - * Schedule statistics are no longer accessible once the Job Schedule is deleted, - * though they are still counted towards Account lifetime statistics. - * - * @param jobScheduleId The ID of the Job Schedule to delete. - * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The - * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @param requestConditions Specifies HTTP options for conditional requests based on modification time. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteJobScheduleInternal(String jobScheduleId, Integer timeOutInSeconds, - RequestConditions requestConditions) { - // Generated convenience method for deleteJobScheduleInternalWithResponse - RequestOptions requestOptions = new RequestOptions(); - OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); - OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); - String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); - String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); - if (timeOutInSeconds != null) { - requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); - } - if (ifModifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifModifiedSince))); - } - if (ifUnmodifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); - } - if (ifMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); - } - if (ifNoneMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); - } - return deleteJobScheduleInternalWithResponse(jobScheduleId, requestOptions).flatMap(FluxUtil::toMono); - } - /** * Deletes a Job Schedule from the specified Account. * @@ -25620,51 +25946,6 @@ Mono enableJobScheduleInternal(String jobScheduleId) { return enableJobScheduleInternalWithResponse(jobScheduleId, requestOptions).flatMap(FluxUtil::toMono); } - /** - * Terminates a Job Schedule. - * - * @param jobScheduleId The ID of the Job Schedule to terminates. - * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The - * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @param requestConditions Specifies HTTP options for conditional requests based on modification time. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - Mono terminateJobScheduleInternal(String jobScheduleId, Integer timeOutInSeconds, - RequestConditions requestConditions) { - // Generated convenience method for terminateJobScheduleInternalWithResponse - RequestOptions requestOptions = new RequestOptions(); - OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); - OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); - String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); - String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); - if (timeOutInSeconds != null) { - requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); - } - if (ifModifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifModifiedSince))); - } - if (ifUnmodifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); - } - if (ifMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); - } - if (ifNoneMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); - } - return terminateJobScheduleInternalWithResponse(jobScheduleId, requestOptions).flatMap(FluxUtil::toMono); - } - /** * Terminates a Job Schedule. * @@ -26640,9 +26921,8 @@ Mono enableNodeSchedulingInternal(String poolId, String nodeId) { /** * Gets the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node. This API can be - * invoked only on Pools created with the virtual machine configuration property. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node. * * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node for which to obtain the remote login settings. @@ -26656,8 +26936,8 @@ Mono enableNodeSchedulingInternal(String poolId, String nodeId) { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node on successful completion of {@link Mono}. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node on successful completion of {@link Mono}. */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) @@ -26675,9 +26955,8 @@ Mono getNodeRemoteLoginSettingsInternal(String poo /** * Gets the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node. This API can be - * invoked only on Pools created with the virtual machine configuration property. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node. * * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node for which to obtain the remote login settings. @@ -26689,8 +26968,8 @@ Mono getNodeRemoteLoginSettingsInternal(String poo * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node on successful completion of {@link Mono}. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node on successful completion of {@link Mono}. */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) @@ -27071,6 +27350,8 @@ PagedFlux listNodeFilesInternal(String poolId, String nodeId) { * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will terminate the Job even if the + * corresponding nodes have not fully processed the termination. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -27717,14 +27998,14 @@ PagedFlux listApplicationsInternal(Integer timeOutInSeconds) { * * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @param starttime The earliest time from which to include metrics. This must be at least two and + * @param startTime The earliest time from which to include metrics. This must be at least two and * a half hours before the current time. If not specified this defaults to the * start time of the last aggregation interval currently available. * @param endtime The latest time from which to include metrics. This must be at least two hours * before the current time. If not specified this defaults to the end time of the * last aggregation interval currently available. * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -27735,15 +28016,15 @@ PagedFlux listApplicationsInternal(Integer timeOutInSeconds) { */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listPoolUsageMetricsInternal(Integer timeOutInSeconds, OffsetDateTime starttime, + PagedFlux listPoolUsageMetricsInternal(Integer timeOutInSeconds, OffsetDateTime startTime, OffsetDateTime endtime, String filter) { // Generated convenience method for listPoolUsageMetricsInternal RequestOptions requestOptions = new RequestOptions(); if (timeOutInSeconds != null) { requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); } - if (starttime != null) { - requestOptions.addQueryParam("startTime", String.valueOf(starttime), false); + if (startTime != null) { + requestOptions.addQueryParam("startTime", String.valueOf(startTime), false); } if (endtime != null) { requestOptions.addQueryParam("endtime", String.valueOf(endtime), false); @@ -27768,12 +28049,12 @@ PagedFlux listPoolUsageMetricsInternal(Integer timeOutInS } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. * * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-pools. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-pools. * @param select An OData $select clause. * @param expand An OData $expand clause. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27831,7 +28112,7 @@ PagedFlux listPoolsInternal(Integer timeOutInSeconds, String filter, * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -27875,7 +28156,7 @@ PagedFlux listSupportedImagesInternal(Integer timeOutInSeco * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -27917,7 +28198,7 @@ PagedFlux listPoolNodeCountsInternal(Integer timeOutInSecon * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs. * @param select An OData $select clause. * @param expand An OData $expand clause. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27976,7 +28257,7 @@ PagedFlux listJobsInternal(Integer timeOutInSeconds, String filter, Li * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. * @param select An OData $select clause. * @param expand An OData $expand clause. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -28043,7 +28324,7 @@ PagedFlux listJobsFromScheduleInternal(String jobScheduleId, Integer t * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. * @param select An OData $select clause. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -28095,7 +28376,7 @@ PagedFlux listJobPreparationAndReleaseT * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. * @param select An OData $select clause. * @param expand An OData $expand clause. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -28158,7 +28439,7 @@ PagedFlux listJobSchedulesInternal(Integer timeOutInSeconds, S * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-tasks. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-tasks. * @param select An OData $select clause. * @param expand An OData $expand clause. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -28218,7 +28499,7 @@ PagedFlux listTasksInternal(String jobId, Integer timeOutInSeconds, S * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-task-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-task-files. * @param recursive Whether to list children of the Task directory. This parameter can be used in * combination with the filter parameter to list specific type of files. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -28267,7 +28548,7 @@ PagedFlux listTaskFilesInternal(String jobId, String taskId, Inte * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. * @param select An OData $select clause. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -28367,7 +28648,7 @@ PagedFlux listNodeExtensionsInternal(String poolId, String * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. * @param recursive Whether to list children of a directory. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -29071,20 +29352,21 @@ Mono disableJobInternal(String jobId, BatchJobDisableContent content) { } /** - * Terminates the specified Job, marking it as completed. + * Creates a Job to the specified Account. * - * When a Terminate Job request is received, the Batch service sets the Job to the - * terminating state. The Batch service then terminates any running Tasks - * associated with the Job and runs any required Job release Tasks. Then the Job - * moves into the completed state. If there are any Tasks in the Job in the active - * state, they will remain in the active state. Once a Job is terminated, new - * Tasks cannot be added and any remaining active Tasks will not be scheduled. + * The Batch service supports two ways to control the work done as part of a Job. + * In the first approach, the user specifies a Job Manager Task. The Batch service + * launches this Task when it is ready to start the Job. The Job Manager Task + * controls all other Tasks that run under this Job, by using the Task APIs. In + * the second approach, the user directly controls the execution of Tasks under an + * active Job, by using the Task APIs. Also note: when naming Jobs, avoid + * including sensitive information such as user names or secret project names. + * This information may appear in telemetry logs accessible to Microsoft Support + * engineers. * - * @param jobId The ID of the Job to terminate. + * @param job The Job to be created. * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @param parameters The options to use for terminating the Job. - * @param requestConditions Specifies HTTP options for conditional requests based on modification time. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -29095,65 +29377,8 @@ Mono disableJobInternal(String jobId, BatchJobDisableContent content) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - Mono terminateJobInternal(String jobId, Integer timeOutInSeconds, BatchJobTerminateContent parameters, - RequestConditions requestConditions) { - // Generated convenience method for terminateJobInternalWithResponse - RequestOptions requestOptions = new RequestOptions(); - OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); - OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); - String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); - String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); - if (timeOutInSeconds != null) { - requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); - } - if (parameters != null) { - requestOptions.setBody(BinaryData.fromObject(parameters)); - } - if (ifModifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifModifiedSince))); - } - if (ifUnmodifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); - } - if (ifMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); - } - if (ifNoneMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); - } - return terminateJobInternalWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono); - } - - /** - * Creates a Job to the specified Account. - * - * The Batch service supports two ways to control the work done as part of a Job. - * In the first approach, the user specifies a Job Manager Task. The Batch service - * launches this Task when it is ready to start the Job. The Job Manager Task - * controls all other Tasks that run under this Job, by using the Task APIs. In - * the second approach, the user directly controls the execution of Tasks under an - * active Job, by using the Task APIs. Also note: when naming Jobs, avoid - * including sensitive information such as user names or secret project names. - * This information may appear in telemetry logs accessible to Microsoft Support - * engineers. - * - * @param job The Job to be created. - * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The - * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - Mono createJobInternal(BatchJobCreateContent job, Integer timeOutInSeconds) { - // Generated convenience method for createJobInternalWithResponse + Mono createJobInternal(BatchJobCreateContent job, Integer timeOutInSeconds) { + // Generated convenience method for createJobInternalWithResponse RequestOptions requestOptions = new RequestOptions(); if (timeOutInSeconds != null) { requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); @@ -29728,4 +29953,521 @@ Mono uploadNodeLogsInternal(String poolId, String BatchAsyncClient(BatchClientImpl serviceClient) { this.serviceClient = serviceClient; } + + /** + * Starts the specified Compute Node. + * + * You can start a Compute Node only if it has been deallocated. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> startNodeInternalWithResponse(String poolId, String nodeId, RequestOptions requestOptions) { + return this.serviceClient.startNodeInternalWithResponseAsync(poolId, nodeId, requestOptions); + } + + /** + * Reinstalls the operating system on the specified Compute Node. + * + * You can reinstall the operating system on a Compute Node only if it is in an + * idle or running state. This API can be invoked only on Pools created with the + * cloud service configuration property. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Content-TypeStringNoThe content type. Allowed values: "application/json; + * odata=minimalmetadata".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     nodeReimageOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
+     * }
+     * }
+     * 
+ * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> reimageNodeInternalWithResponse(String poolId, String nodeId, RequestOptions requestOptions) { + return this.serviceClient.reimageNodeInternalWithResponseAsync(poolId, nodeId, requestOptions); + } + + /** + * Deallocates the specified Compute Node. + * + * You can deallocate a Compute Node only if it is in an idle or running state. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Content-TypeStringNoThe content type. Allowed values: "application/json; + * odata=minimalmetadata".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     nodeDeallocateOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
+     * }
+     * }
+     * 
+ * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> deallocateNodeInternalWithResponse(String poolId, String nodeId, + RequestOptions requestOptions) { + return this.serviceClient.deallocateNodeInternalWithResponseAsync(poolId, nodeId, requestOptions); + } + + /** + * Deletes a Job. + * + * Deleting a Job also deletes all Tasks that are part of that Job, and all Job + * statistics. This also overrides the retention period for Task data; that is, if + * the Job contains Tasks which are still retained on Compute Nodes, the Batch + * services deletes those Tasks' working directories and all their contents. When + * a Delete Job request is received, the Batch service sets the Job to the + * deleting state. All update operations on a Job that is in deleting state will + * fail with status code 409 (Conflict), with additional information indicating + * that the Job is being deleted. + * + * @param jobId The ID of the Job to delete. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param force If true, the server will delete the Job even if the corresponding nodes have not fully processed the + * deletion. The default value is false. + * @param requestConditions Specifies HTTP options for conditional requests based on modification time. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteJobInternal(String jobId, Integer timeOutInSeconds, Boolean force, + RequestConditions requestConditions) { + // Generated convenience method for deleteJobInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); + OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); + String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); + String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (force != null) { + requestOptions.addQueryParam("force", String.valueOf(force), false); + } + if (ifModifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifModifiedSince))); + } + if (ifUnmodifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); + } + if (ifMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); + } + if (ifNoneMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); + } + return deleteJobInternalWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Terminates the specified Job, marking it as completed. + * + * When a Terminate Job request is received, the Batch service sets the Job to the + * terminating state. The Batch service then terminates any running Tasks + * associated with the Job and runs any required Job release Tasks. Then the Job + * moves into the completed state. If there are any Tasks in the Job in the active + * state, they will remain in the active state. Once a Job is terminated, new + * Tasks cannot be added and any remaining active Tasks will not be scheduled. + * + * @param jobId The ID of the Job to terminate. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param force If true, the server will terminate the Job even if the corresponding nodes have not fully processed + * the termination. The default value is false. + * @param parameters The options to use for terminating the Job. + * @param requestConditions Specifies HTTP options for conditional requests based on modification time. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono terminateJobInternal(String jobId, Integer timeOutInSeconds, Boolean force, + BatchJobTerminateContent parameters, RequestConditions requestConditions) { + // Generated convenience method for terminateJobInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); + OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); + String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); + String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (force != null) { + requestOptions.addQueryParam("force", String.valueOf(force), false); + } + if (parameters != null) { + requestOptions.setBody(BinaryData.fromObject(parameters)); + } + if (ifModifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifModifiedSince))); + } + if (ifUnmodifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); + } + if (ifMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); + } + if (ifNoneMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); + } + return terminateJobInternalWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Deletes a Job Schedule from the specified Account. + * + * When you delete a Job Schedule, this also deletes all Jobs and Tasks under that + * schedule. When Tasks are deleted, all the files in their working directories on + * the Compute Nodes are also deleted (the retention period is ignored). The Job + * Schedule statistics are no longer accessible once the Job Schedule is deleted, + * though they are still counted towards Account lifetime statistics. + * + * @param jobScheduleId The ID of the Job Schedule to delete. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param force If true, the server will delete the JobSchedule even if the corresponding nodes have not fully + * processed the deletion. The default value is false. + * @param requestConditions Specifies HTTP options for conditional requests based on modification time. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteJobScheduleInternal(String jobScheduleId, Integer timeOutInSeconds, Boolean force, + RequestConditions requestConditions) { + // Generated convenience method for deleteJobScheduleInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); + OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); + String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); + String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (force != null) { + requestOptions.addQueryParam("force", String.valueOf(force), false); + } + if (ifModifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifModifiedSince))); + } + if (ifUnmodifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); + } + if (ifMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); + } + if (ifNoneMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); + } + return deleteJobScheduleInternalWithResponse(jobScheduleId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Terminates a Job Schedule. + * + * @param jobScheduleId The ID of the Job Schedule to terminates. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param force If true, the server will terminate the JobSchedule even if the corresponding nodes have not fully + * processed the termination. The default value is false. + * @param requestConditions Specifies HTTP options for conditional requests based on modification time. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono terminateJobScheduleInternal(String jobScheduleId, Integer timeOutInSeconds, Boolean force, + RequestConditions requestConditions) { + // Generated convenience method for terminateJobScheduleInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); + OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); + String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); + String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (force != null) { + requestOptions.addQueryParam("force", String.valueOf(force), false); + } + if (ifModifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifModifiedSince))); + } + if (ifUnmodifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); + } + if (ifMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); + } + if (ifNoneMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); + } + return terminateJobScheduleInternalWithResponse(jobScheduleId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Starts the specified Compute Node. + * + * You can start a Compute Node only if it has been deallocated. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono startNodeInternal(String poolId, String nodeId, Integer timeOutInSeconds) { + // Generated convenience method for startNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + return startNodeInternalWithResponse(poolId, nodeId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Starts the specified Compute Node. + * + * You can start a Compute Node only if it has been deallocated. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono startNodeInternal(String poolId, String nodeId) { + // Generated convenience method for startNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + return startNodeInternalWithResponse(poolId, nodeId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Reinstalls the operating system on the specified Compute Node. + * + * You can reinstall the operating system on a Compute Node only if it is in an + * idle or running state. This API can be invoked only on Pools created with the + * cloud service configuration property. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param parameters The options to use for reimaging the Compute Node. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono reimageNodeInternal(String poolId, String nodeId, Integer timeOutInSeconds, + BatchNodeReimageContent parameters) { + // Generated convenience method for reimageNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (parameters != null) { + requestOptions.setBody(BinaryData.fromObject(parameters)); + } + return reimageNodeInternalWithResponse(poolId, nodeId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Reinstalls the operating system on the specified Compute Node. + * + * You can reinstall the operating system on a Compute Node only if it is in an + * idle or running state. This API can be invoked only on Pools created with the + * cloud service configuration property. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono reimageNodeInternal(String poolId, String nodeId) { + // Generated convenience method for reimageNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + return reimageNodeInternalWithResponse(poolId, nodeId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Deallocates the specified Compute Node. + * + * You can deallocate a Compute Node only if it is in an idle or running state. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param parameters The options to use for deallocating the Compute Node. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deallocateNodeInternal(String poolId, String nodeId, Integer timeOutInSeconds, + BatchNodeDeallocateContent parameters) { + // Generated convenience method for deallocateNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (parameters != null) { + requestOptions.setBody(BinaryData.fromObject(parameters)); + } + return deallocateNodeInternalWithResponse(poolId, nodeId, requestOptions).flatMap(FluxUtil::toMono); + } + + /** + * Deallocates the specified Compute Node. + * + * You can deallocate a Compute Node only if it is in an idle or running state. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deallocateNodeInternal(String poolId, String nodeId) { + // Generated convenience method for deallocateNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + return deallocateNodeInternalWithResponse(poolId, nodeId, requestOptions).flatMap(FluxUtil::toMono); + } } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchClient.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchClient.java index 30a1f9ac49c8..cc35577f25de 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchClient.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchClient.java @@ -21,9 +21,11 @@ import com.azure.compute.batch.models.BatchJobTerminateContent; import com.azure.compute.batch.models.BatchJobUpdateContent; import com.azure.compute.batch.models.BatchNode; +import com.azure.compute.batch.models.BatchNodeDeallocateContent; import com.azure.compute.batch.models.BatchNodeDisableSchedulingContent; import com.azure.compute.batch.models.BatchNodeFile; import com.azure.compute.batch.models.BatchNodeRebootContent; +import com.azure.compute.batch.models.BatchNodeReimageContent; import com.azure.compute.batch.models.BatchNodeRemoteLoginSettings; import com.azure.compute.batch.models.BatchNodeRemoveContent; import com.azure.compute.batch.models.BatchNodeUserCreateContent; @@ -3338,7 +3340,7 @@ public Response getApplicationWithResponse(String applicationId, Req * last aggregation interval currently available. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -3489,6 +3491,8 @@ PagedIterable listPoolUsageMetrics(RequestOptions requestOptions) { * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -3525,7 +3529,7 @@ PagedIterable listPoolUsageMetrics(RequestOptions requestOptions) { * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -3553,13 +3557,16 @@ PagedIterable listPoolUsageMetrics(RequestOptions requestOptions) { * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -3618,6 +3625,12 @@ PagedIterable listPoolUsageMetrics(RequestOptions requestOptions) { * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -4018,7 +4031,7 @@ public Response createPoolWithResponse(BinaryData pool, RequestOptions req } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. *

Query Parameters

* * @@ -4031,7 +4044,7 @@ public Response createPoolWithResponse(BinaryData pool, RequestOptions req * applications can be returned. * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-pools. * * * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. *
Query Parameters
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-pools.
$selectList<String>NoAn OData $select clause. In the form of "," * separated string.
$expandList<String>NoAn OData $expand clause. In the form of "," @@ -4062,6 +4075,8 @@ public Response createPoolWithResponse(BinaryData pool, RequestOptions req * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -4098,7 +4113,7 @@ public Response createPoolWithResponse(BinaryData pool, RequestOptions req * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -4126,13 +4141,16 @@ public Response createPoolWithResponse(BinaryData pool, RequestOptions req * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -4216,6 +4234,12 @@ public Response createPoolWithResponse(BinaryData pool, RequestOptions req * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -5133,6 +5157,8 @@ public Response poolExistsWithResponse(String poolId, RequestOptions re * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -5169,7 +5195,7 @@ public Response poolExistsWithResponse(String poolId, RequestOptions re * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -5197,13 +5223,16 @@ public Response poolExistsWithResponse(String poolId, RequestOptions re * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -5287,6 +5316,12 @@ public Response poolExistsWithResponse(String poolId, RequestOptions re * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -5888,6 +5923,9 @@ public Response getPoolWithResponse(String poolId, RequestOptions re *
      * {@code
      * {
+     *     displayName: String (Optional)
+     *     vmSize: String (Optional)
+     *     enableInterNodeCommunication: Boolean (Optional)
      *     startTask (Optional): {
      *         commandLine: String (Required)
      *         containerSettings (Optional): {
@@ -5902,6 +5940,12 @@ public Response getPoolWithResponse(String poolId, RequestOptions re
      *                 }
      *             }
      *             workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional)
+     *             containerHostBatchBindMounts (Optional): [
+     *                  (Optional){
+     *                     source: String(regional/zonal) (Optional)
+     *                     isReadOnly: Boolean (Optional)
+     *                 }
+     *             ]
      *         }
      *         resourceFiles (Optional): [
      *              (Optional){
@@ -5942,7 +5986,197 @@ public Response getPoolWithResponse(String poolId, RequestOptions re
      *             value: String (Required)
      *         }
      *     ]
+     *     virtualMachineConfiguration (Optional): {
+     *         imageReference (Required): {
+     *             publisher: String (Optional)
+     *             offer: String (Optional)
+     *             sku: String (Optional)
+     *             version: String (Optional)
+     *             virtualMachineImageId: String (Optional)
+     *             exactVersion: String (Optional)
+     *             sharedGalleryImageId: String (Optional)
+     *             communityGalleryImageId: String (Optional)
+     *         }
+     *         nodeAgentSKUId: String (Required)
+     *         windowsConfiguration (Optional): {
+     *             enableAutomaticUpdates: Boolean (Optional)
+     *         }
+     *         dataDisks (Optional): [
+     *              (Optional){
+     *                 lun: int (Required)
+     *                 caching: String(none/readonly/readwrite) (Optional)
+     *                 diskSizeGB: int (Required)
+     *                 storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional)
+     *             }
+     *         ]
+     *         licenseType: String (Optional)
+     *         containerConfiguration (Optional): {
+     *             type: String(dockerCompatible/criCompatible) (Required)
+     *             containerImageNames (Optional): [
+     *                 String (Optional)
+     *             ]
+     *             containerRegistries (Optional): [
+     *                 (recursive schema, see above)
+     *             ]
+     *         }
+     *         diskEncryptionConfiguration (Optional): {
+     *             targets (Optional): [
+     *                 String(osdisk/temporarydisk) (Optional)
+     *             ]
+     *         }
+     *         nodePlacementConfiguration (Optional): {
+     *             policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional)
+     *         }
+     *         extensions (Optional): [
+     *              (Optional){
+     *                 name: String (Required)
+     *                 publisher: String (Required)
+     *                 type: String (Required)
+     *                 typeHandlerVersion: String (Optional)
+     *                 autoUpgradeMinorVersion: Boolean (Optional)
+     *                 enableAutomaticUpgrade: Boolean (Optional)
+     *                 settings (Optional): {
+     *                     String: String (Required)
+     *                 }
+     *                 protectedSettings (Optional): {
+     *                     String: String (Required)
+     *                 }
+     *                 provisionAfterExtensions (Optional): [
+     *                     String (Optional)
+     *                 ]
+     *             }
+     *         ]
+     *         osDisk (Optional): {
+     *             ephemeralOSDiskSettings (Optional): {
+     *                 placement: String(cachedisk) (Optional)
+     *             }
+     *             caching: String(none/readonly/readwrite) (Optional)
+     *             diskSizeGB: Integer (Optional)
+     *             managedDisk (Optional): {
+     *                 storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional)
+     *                 securityProfile (Optional): {
+     *                     securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional)
+     *                 }
+     *             }
+     *             writeAcceleratorEnabled: Boolean (Optional)
+     *         }
+     *         securityProfile (Optional): {
+     *             encryptionAtHost: boolean (Required)
+     *             securityType: String(trustedLaunch/confidentialVM) (Required)
+     *             uefiSettings (Required): {
+     *                 secureBootEnabled: Boolean (Optional)
+     *                 vTpmEnabled: Boolean (Optional)
+     *             }
+     *         }
+     *         serviceArtifactReference (Optional): {
+     *             id: String (Required)
+     *         }
+     *     }
      *     targetNodeCommunicationMode: String(default/classic/simplified) (Optional)
+     *     taskSlotsPerNode: Integer (Optional)
+     *     taskSchedulingPolicy (Optional): {
+     *         nodeFillType: String(spread/pack) (Required)
+     *     }
+     *     networkConfiguration (Optional): {
+     *         subnetId: String (Optional)
+     *         dynamicVNetAssignmentScope: String(none/job) (Optional)
+     *         endpointConfiguration (Optional): {
+     *             inboundNATPools (Required): [
+     *                  (Required){
+     *                     name: String (Required)
+     *                     protocol: String(tcp/udp) (Required)
+     *                     backendPort: int (Required)
+     *                     frontendPortRangeStart: int (Required)
+     *                     frontendPortRangeEnd: int (Required)
+     *                     networkSecurityGroupRules (Optional): [
+     *                          (Optional){
+     *                             priority: int (Required)
+     *                             access: String(allow/deny) (Required)
+     *                             sourceAddressPrefix: String (Required)
+     *                             sourcePortRanges (Optional): [
+     *                                 String (Optional)
+     *                             ]
+     *                         }
+     *                     ]
+     *                 }
+     *             ]
+     *         }
+     *         publicIPAddressConfiguration (Optional): {
+     *             provision: String(batchmanaged/usermanaged/nopublicipaddresses) (Optional)
+     *             ipAddressIds (Optional): [
+     *                 String (Optional)
+     *             ]
+     *         }
+     *         enableAcceleratedNetworking: Boolean (Optional)
+     *     }
+     *     resourceTags (Optional): {
+     *         String: String (Required)
+     *     }
+     *     userAccounts (Optional): [
+     *          (Optional){
+     *             name: String (Required)
+     *             password: String (Required)
+     *             elevationLevel: String(nonadmin/admin) (Optional)
+     *             linuxUserConfiguration (Optional): {
+     *                 uid: Integer (Optional)
+     *                 gid: Integer (Optional)
+     *                 sshPrivateKey: String (Optional)
+     *             }
+     *             windowsUserConfiguration (Optional): {
+     *                 loginMode: String(batch/interactive) (Optional)
+     *             }
+     *         }
+     *     ]
+     *     mountConfiguration (Optional): [
+     *          (Optional){
+     *             azureBlobFileSystemConfiguration (Optional): {
+     *                 accountName: String (Required)
+     *                 containerName: String (Required)
+     *                 accountKey: String (Optional)
+     *                 sasKey: String (Optional)
+     *                 blobfuseOptions: String (Optional)
+     *                 relativeMountPath: String (Required)
+     *                 identityReference (Optional): (recursive schema, see identityReference above)
+     *             }
+     *             nfsMountConfiguration (Optional): {
+     *                 source: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *             }
+     *             cifsMountConfiguration (Optional): {
+     *                 username: String (Required)
+     *                 source: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *                 password: String (Required)
+     *             }
+     *             azureFileShareConfiguration (Optional): {
+     *                 accountName: String (Required)
+     *                 azureFileUrl: String (Required)
+     *                 accountKey: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *             }
+     *         }
+     *     ]
+     *     upgradePolicy (Optional): {
+     *         mode: String(automatic/manual/rolling) (Required)
+     *         automaticOSUpgradePolicy (Optional): {
+     *             disableAutomaticRollback: Boolean (Optional)
+     *             enableAutomaticOSUpgrade: Boolean (Optional)
+     *             useRollingUpgradePolicy: Boolean (Optional)
+     *             osRollingUpgradeDeferral: Boolean (Optional)
+     *         }
+     *         rollingUpgradePolicy (Optional): {
+     *             enableCrossZoneUpgrade: Boolean (Optional)
+     *             maxBatchInstancePercent: Integer (Optional)
+     *             maxUnhealthyInstancePercent: Integer (Optional)
+     *             maxUnhealthyUpgradedInstancePercent: Integer (Optional)
+     *             pauseTimeBetweenBatches: Duration (Optional)
+     *             prioritizeUnhealthyInstances: Boolean (Optional)
+     *             rollbackFailedInstancesOnPolicyBreach: Boolean (Optional)
+     *         }
+     *     }
      * }
      * }
      * 
@@ -6854,6 +7088,12 @@ public Response stopPoolResizeWithResponse(String poolId, RequestOptions r * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -7210,7 +7450,7 @@ public Response removeNodesWithResponse(String poolId, BinaryData paramete * applications can be returned.
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images.
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -7226,6 +7466,8 @@ public Response removeNodesWithResponse(String poolId, BinaryData paramete * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * osType: String(linux/windows) (Required) * capabilities (Optional): [ @@ -7342,7 +7584,7 @@ PagedIterable listSupportedImages(RequestOptions requestOptions) { * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -7365,6 +7607,8 @@ PagedIterable listSupportedImages(RequestOptions requestOptions) { * unknown: int (Required) * unusable: int (Required) * waitingForStartTask: int (Required) + * deallocated: int (Required) + * deallocating: int (Required) * total: int (Required) * upgradingOS: int (Required) * } @@ -7486,6 +7730,8 @@ PagedIterable listPoolNodeCounts(RequestOptions requestOptions) { * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will delete the Job even if the + * corresponding nodes have not fully processed the deletion. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -7694,6 +7940,12 @@ public Response deleteJobWithResponse(String jobId, RequestOptions request * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -7810,6 +8062,8 @@ public Response deleteJobWithResponse(String jobId, RequestOptions request * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -7839,7 +8093,7 @@ public Response deleteJobWithResponse(String jobId, RequestOptions request * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -7867,13 +8121,16 @@ public Response deleteJobWithResponse(String jobId, RequestOptions request * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -8022,6 +8279,7 @@ public Response deleteJobWithResponse(String jobId, RequestOptions request * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -8620,6 +8878,8 @@ public Response getJobWithResponse(String jobId, RequestOptions requ * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -8656,7 +8916,7 @@ public Response getJobWithResponse(String jobId, RequestOptions requ * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -8684,13 +8944,16 @@ public Response getJobWithResponse(String jobId, RequestOptions requ * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -8751,6 +9014,12 @@ public Response getJobWithResponse(String jobId, RequestOptions requ * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -8864,6 +9133,10 @@ public Response getJobWithResponse(String jobId, RequestOptions requ * metadata (Optional): [ * (recursive schema, see above) * ] + * networkConfiguration (Optional): { + * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) + * } * } * } * @@ -9298,6 +9571,12 @@ public Response updateJobWithResponse(String jobId, BinaryData job, Reques * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -9414,6 +9693,8 @@ public Response updateJobWithResponse(String jobId, BinaryData job, Reques * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -9443,7 +9724,7 @@ public Response updateJobWithResponse(String jobId, BinaryData job, Reques * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -9471,13 +9752,16 @@ public Response updateJobWithResponse(String jobId, BinaryData job, Reques * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -9626,6 +9910,7 @@ public Response updateJobWithResponse(String jobId, BinaryData job, Reques * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -10523,6 +10808,12 @@ public Response enableJobWithResponse(String jobId, RequestOptions request * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -10639,6 +10930,8 @@ public Response enableJobWithResponse(String jobId, RequestOptions request * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -10668,7 +10961,7 @@ public Response enableJobWithResponse(String jobId, RequestOptions request * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -10696,13 +10989,16 @@ public Response enableJobWithResponse(String jobId, RequestOptions request * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -10851,6 +11147,7 @@ public Response enableJobWithResponse(String jobId, RequestOptions request * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -11272,7 +11569,7 @@ public Response createJobWithResponse(BinaryData job, RequestOptions reque * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -11318,6 +11615,12 @@ public Response createJobWithResponse(BinaryData job, RequestOptions reque * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -11434,6 +11737,8 @@ public Response createJobWithResponse(BinaryData job, RequestOptions reque * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -11463,7 +11768,7 @@ public Response createJobWithResponse(BinaryData job, RequestOptions reque * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -11491,13 +11796,16 @@ public Response createJobWithResponse(BinaryData job, RequestOptions reque * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -11646,6 +11954,7 @@ public Response createJobWithResponse(BinaryData job, RequestOptions reque * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -12184,7 +12493,7 @@ PagedIterable listJobs(RequestOptions requestOptions) { * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -12230,6 +12539,12 @@ PagedIterable listJobs(RequestOptions requestOptions) { * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -12346,6 +12661,8 @@ PagedIterable listJobs(RequestOptions requestOptions) { * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -12375,7 +12692,7 @@ PagedIterable listJobs(RequestOptions requestOptions) { * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -12403,13 +12720,16 @@ PagedIterable listJobs(RequestOptions requestOptions) { * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -12558,6 +12878,7 @@ PagedIterable listJobs(RequestOptions requestOptions) { * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -13106,7 +13427,7 @@ PagedIterable listJobsFromSchedule(String jobScheduleId, RequestOpti * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * @@ -13578,6 +13899,8 @@ public Response jobScheduleExistsWithResponse(String jobScheduleId, Req * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will delete the JobSchedule even if the + * corresponding nodes have not fully processed the deletion. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -13776,6 +14099,7 @@ public Response deleteJobScheduleWithResponse(String jobScheduleId, Reques * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -13797,6 +14121,12 @@ public Response deleteJobScheduleWithResponse(String jobScheduleId, Reques * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -13913,6 +14243,8 @@ public Response deleteJobScheduleWithResponse(String jobScheduleId, Reques * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -13942,7 +14274,7 @@ public Response deleteJobScheduleWithResponse(String jobScheduleId, Reques * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -13970,13 +14302,16 @@ public Response deleteJobScheduleWithResponse(String jobScheduleId, Reques * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -14710,6 +15045,7 @@ public Response getJobScheduleWithResponse(String jobScheduleId, Req * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -14731,6 +15067,12 @@ public Response getJobScheduleWithResponse(String jobScheduleId, Req * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -14847,6 +15189,8 @@ public Response getJobScheduleWithResponse(String jobScheduleId, Req * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -14876,7 +15220,7 @@ public Response getJobScheduleWithResponse(String jobScheduleId, Req * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -14904,13 +15248,16 @@ public Response getJobScheduleWithResponse(String jobScheduleId, Req * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -15594,6 +15941,7 @@ public Response updateJobScheduleWithResponse(String jobScheduleId, Binary * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -15615,6 +15963,12 @@ public Response updateJobScheduleWithResponse(String jobScheduleId, Binary * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -15731,6 +16085,8 @@ public Response updateJobScheduleWithResponse(String jobScheduleId, Binary * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -15760,7 +16116,7 @@ public Response updateJobScheduleWithResponse(String jobScheduleId, Binary * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -15788,13 +16144,16 @@ public Response updateJobScheduleWithResponse(String jobScheduleId, Binary * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -16746,6 +17105,8 @@ public Response enableJobScheduleWithResponse(String jobScheduleId, Reques * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will terminate the JobSchedule even if the + * corresponding nodes have not fully processed the termination. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -16904,6 +17265,7 @@ public Response terminateJobScheduleWithResponse(String jobScheduleId, Req * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -16925,6 +17287,12 @@ public Response terminateJobScheduleWithResponse(String jobScheduleId, Req * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -17041,6 +17409,8 @@ public Response terminateJobScheduleWithResponse(String jobScheduleId, Req * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -17070,7 +17440,7 @@ public Response terminateJobScheduleWithResponse(String jobScheduleId, Req * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -17098,13 +17468,16 @@ public Response terminateJobScheduleWithResponse(String jobScheduleId, Req * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -17677,7 +18050,7 @@ public Response createJobScheduleWithResponse(BinaryData jobSchedule, Requ * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -17715,6 +18088,7 @@ public Response createJobScheduleWithResponse(BinaryData jobSchedule, Requ * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -17736,6 +18110,12 @@ public Response createJobScheduleWithResponse(BinaryData jobSchedule, Requ * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -17852,6 +18232,8 @@ public Response createJobScheduleWithResponse(BinaryData jobSchedule, Requ * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -17881,7 +18263,7 @@ public Response createJobScheduleWithResponse(BinaryData jobSchedule, Requ * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -17909,13 +18291,16 @@ public Response createJobScheduleWithResponse(BinaryData jobSchedule, Requ * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -18637,6 +19022,12 @@ PagedIterable listJobSchedules(RequestOptions requestOptions) { * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -18931,7 +19322,7 @@ public Response createTaskWithResponse(String jobId, BinaryData task, Requ * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-tasks. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-tasks. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -18987,6 +19378,12 @@ public Response createTaskWithResponse(String jobId, BinaryData task, Requ * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -19456,6 +19853,12 @@ PagedIterable listTasks(String jobId, RequestOptions requestOptions) * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -20047,6 +20450,12 @@ public Response deleteTaskWithResponse(String jobId, String taskId, Reques * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -20572,6 +20981,12 @@ public Response getTaskWithResponse(String jobId, String taskId, Req * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -21646,7 +22061,7 @@ public Response getTaskFilePropertiesWithResponse(String jobId, String tas * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-task-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-task-files. * recursiveBooleanNoWhether to list children of the Task directory. This * parameter can be used in * combination with the filter parameter to list specific type of files. @@ -21663,7 +22078,7 @@ public Response getTaskFilePropertiesWithResponse(String jobId, String tas * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -22073,7 +22488,7 @@ public Response replaceNodeUserWithResponse(String poolId, String nodeId, * { * id: String (Optional) * url: String (Optional) - * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional) + * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional) * schedulingState: String(enabled/disabled) (Optional) * stateTransitionTime: OffsetDateTime (Optional) * lastBootTime: OffsetDateTime (Optional) @@ -22134,6 +22549,12 @@ public Response replaceNodeUserWithResponse(String poolId, String nodeId, * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -22207,6 +22628,8 @@ public Response replaceNodeUserWithResponse(String poolId, String nodeId, * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * scaleSetVmResourceId: String (Optional) * } @@ -22499,9 +22922,8 @@ public Response enableNodeSchedulingWithResponse(String poolId, String nod /** * Gets the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node. This API can be - * invoked only on Pools created with the virtual machine configuration property. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node. *

Query Parameters

* * @@ -22531,8 +22953,8 @@ public Response enableNodeSchedulingWithResponse(String poolId, String nod * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node along with {@link Response}. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node along with {@link Response}. */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) @@ -22747,7 +23169,7 @@ public Response uploadNodeLogsWithResponse(String poolId, String nod * applications can be returned. * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. * *
Query Parameters
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool.
$selectList<String>NoAn OData $select clause. In the form of "," * separated string.
@@ -22759,7 +23181,7 @@ public Response uploadNodeLogsWithResponse(String poolId, String nod * { * id: String (Optional) * url: String (Optional) - * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional) + * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional) * schedulingState: String(enabled/disabled) (Optional) * stateTransitionTime: OffsetDateTime (Optional) * lastBootTime: OffsetDateTime (Optional) @@ -22820,6 +23242,12 @@ public Response uploadNodeLogsWithResponse(String poolId, String nod * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -22893,6 +23321,8 @@ public Response uploadNodeLogsWithResponse(String poolId, String nod * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * scaleSetVmResourceId: String (Optional) * } @@ -23803,7 +24233,7 @@ public Response getNodeFilePropertiesWithResponse(String poolId, String no * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. * recursiveBooleanNoWhether to list children of a directory. * * You can add these to a request with {@link RequestOptions#addQueryParam} @@ -23818,7 +24248,7 @@ public Response getNodeFilePropertiesWithResponse(String poolId, String no * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -24040,7 +24470,7 @@ PagedIterable listPoolUsageMetricsInternal() { } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. * * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -24452,58 +24882,6 @@ PagedIterable listPoolNodeCountsInternal() { .mapPage(bodyItemValue -> bodyItemValue.toObject(BatchPoolNodeCounts.class)); } - /** - * Deletes a Job. - * - * Deleting a Job also deletes all Tasks that are part of that Job, and all Job - * statistics. This also overrides the retention period for Task data; that is, if - * the Job contains Tasks which are still retained on Compute Nodes, the Batch - * services deletes those Tasks' working directories and all their contents. When - * a Delete Job request is received, the Batch service sets the Job to the - * deleting state. All update operations on a Job that is in deleting state will - * fail with status code 409 (Conflict), with additional information indicating - * that the Job is being deleted. - * - * @param jobId The ID of the Job to delete. - * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The - * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @param requestConditions Specifies HTTP options for conditional requests based on modification time. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - void deleteJobInternal(String jobId, Integer timeOutInSeconds, RequestConditions requestConditions) { - // Generated convenience method for deleteJobInternalWithResponse - RequestOptions requestOptions = new RequestOptions(); - OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); - OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); - String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); - String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); - if (timeOutInSeconds != null) { - requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); - } - if (ifModifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifModifiedSince))); - } - if (ifUnmodifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); - } - if (ifMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); - } - if (ifNoneMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); - } - deleteJobInternalWithResponse(jobId, requestOptions).getValue(); - } - /** * Deletes a Job. * @@ -24958,56 +25336,6 @@ boolean jobScheduleExistsInternal(String jobScheduleId) { return jobScheduleExistsInternalWithResponse(jobScheduleId, requestOptions).getValue(); } - /** - * Deletes a Job Schedule from the specified Account. - * - * When you delete a Job Schedule, this also deletes all Jobs and Tasks under that - * schedule. When Tasks are deleted, all the files in their working directories on - * the Compute Nodes are also deleted (the retention period is ignored). The Job - * Schedule statistics are no longer accessible once the Job Schedule is deleted, - * though they are still counted towards Account lifetime statistics. - * - * @param jobScheduleId The ID of the Job Schedule to delete. - * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The - * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @param requestConditions Specifies HTTP options for conditional requests based on modification time. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - void deleteJobScheduleInternal(String jobScheduleId, Integer timeOutInSeconds, - RequestConditions requestConditions) { - // Generated convenience method for deleteJobScheduleInternalWithResponse - RequestOptions requestOptions = new RequestOptions(); - OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); - OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); - String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); - String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); - if (timeOutInSeconds != null) { - requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); - } - if (ifModifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifModifiedSince))); - } - if (ifUnmodifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); - } - if (ifMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); - } - if (ifNoneMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); - } - deleteJobScheduleInternalWithResponse(jobScheduleId, requestOptions).getValue(); - } - /** * Deletes a Job Schedule from the specified Account. * @@ -25325,50 +25653,6 @@ void enableJobScheduleInternal(String jobScheduleId) { enableJobScheduleInternalWithResponse(jobScheduleId, requestOptions).getValue(); } - /** - * Terminates a Job Schedule. - * - * @param jobScheduleId The ID of the Job Schedule to terminates. - * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The - * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @param requestConditions Specifies HTTP options for conditional requests based on modification time. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - void terminateJobScheduleInternal(String jobScheduleId, Integer timeOutInSeconds, - RequestConditions requestConditions) { - // Generated convenience method for terminateJobScheduleInternalWithResponse - RequestOptions requestOptions = new RequestOptions(); - OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); - OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); - String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); - String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); - if (timeOutInSeconds != null) { - requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); - } - if (ifModifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifModifiedSince))); - } - if (ifUnmodifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); - } - if (ifMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); - } - if (ifNoneMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); - } - terminateJobScheduleInternalWithResponse(jobScheduleId, requestOptions).getValue(); - } - /** * Terminates a Job Schedule. * @@ -26264,9 +26548,8 @@ void enableNodeSchedulingInternal(String poolId, String nodeId) { /** * Gets the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node. This API can be - * invoked only on Pools created with the virtual machine configuration property. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node. * * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node for which to obtain the remote login settings. @@ -26280,8 +26563,8 @@ void enableNodeSchedulingInternal(String poolId, String nodeId) { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node. */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) @@ -26299,9 +26582,8 @@ BatchNodeRemoteLoginSettings getNodeRemoteLoginSettingsInternal(String poolId, S /** * Gets the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node. This API can be - * invoked only on Pools created with the virtual machine configuration property. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node. * * @param poolId The ID of the Pool that contains the Compute Node. * @param nodeId The ID of the Compute Node for which to obtain the remote login settings. @@ -26313,8 +26595,8 @@ BatchNodeRemoteLoginSettings getNodeRemoteLoginSettingsInternal(String poolId, S * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node. */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) @@ -26654,6 +26936,8 @@ PagedIterable listNodeFilesInternal(String poolId, String nodeId) * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will terminate the Job even if the + * corresponding nodes have not fully processed the termination. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -27286,14 +27570,14 @@ PagedIterable listApplicationsInternal(Integer timeOutInSecond * * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @param starttime The earliest time from which to include metrics. This must be at least two and + * @param startTime The earliest time from which to include metrics. This must be at least two and * a half hours before the current time. If not specified this defaults to the * start time of the last aggregation interval currently available. * @param endtime The latest time from which to include metrics. This must be at least two hours * before the current time. If not specified this defaults to the end time of the * last aggregation interval currently available. * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -27306,14 +27590,14 @@ PagedIterable listApplicationsInternal(Integer timeOutInSecond @Generated @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable listPoolUsageMetricsInternal(Integer timeOutInSeconds, - OffsetDateTime starttime, OffsetDateTime endtime, String filter) { + OffsetDateTime startTime, OffsetDateTime endtime, String filter) { // Generated convenience method for listPoolUsageMetricsInternal RequestOptions requestOptions = new RequestOptions(); if (timeOutInSeconds != null) { requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); } - if (starttime != null) { - requestOptions.addQueryParam("startTime", String.valueOf(starttime), false); + if (startTime != null) { + requestOptions.addQueryParam("startTime", String.valueOf(startTime), false); } if (endtime != null) { requestOptions.addQueryParam("endtime", String.valueOf(endtime), false); @@ -27326,12 +27610,12 @@ PagedIterable listPoolUsageMetricsInternal(Integer timeOu } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. * * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-pools. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-pools. * @param select An OData $select clause. * @param expand An OData $expand clause. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27378,7 +27662,7 @@ PagedIterable listPoolsInternal(Integer timeOutInSeconds, String filt * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -27411,7 +27695,7 @@ PagedIterable listSupportedImagesInternal(Integer timeOutIn * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -27442,7 +27726,7 @@ PagedIterable listPoolNodeCountsInternal(Integer timeOutInS * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs. * @param select An OData $select clause. * @param expand An OData $expand clause. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27490,7 +27774,7 @@ PagedIterable listJobsInternal(Integer timeOutInSeconds, String filter * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. * @param select An OData $select clause. * @param expand An OData $expand clause. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27546,7 +27830,7 @@ PagedIterable listJobsFromScheduleInternal(String jobScheduleId, Integ * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. * @param select An OData $select clause. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -27586,7 +27870,7 @@ PagedIterable listJobPreparationAndRele * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. * @param select An OData $select clause. * @param expand An OData $expand clause. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27638,7 +27922,7 @@ PagedIterable listJobSchedulesInternal(Integer timeOutInSecond * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-tasks. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-tasks. * @param select An OData $select clause. * @param expand An OData $expand clause. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27687,7 +27971,7 @@ PagedIterable listTasksInternal(String jobId, Integer timeOutInSecond * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-task-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-task-files. * @param recursive Whether to list children of the Task directory. This parameter can be used in * combination with the filter parameter to list specific type of files. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -27725,7 +28009,7 @@ PagedIterable listTaskFilesInternal(String jobId, String taskId, * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. * @param select An OData $select clause. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -27803,7 +28087,7 @@ PagedIterable listNodeExtensionsInternal(String poolId, St * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". * @param filter An OData $filter clause. For more information on constructing this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. * @param recursive Whether to list children of a directory. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. @@ -28466,20 +28750,21 @@ void disableJobInternal(String jobId, BatchJobDisableContent content) { } /** - * Terminates the specified Job, marking it as completed. + * Creates a Job to the specified Account. * - * When a Terminate Job request is received, the Batch service sets the Job to the - * terminating state. The Batch service then terminates any running Tasks - * associated with the Job and runs any required Job release Tasks. Then the Job - * moves into the completed state. If there are any Tasks in the Job in the active - * state, they will remain in the active state. Once a Job is terminated, new - * Tasks cannot be added and any remaining active Tasks will not be scheduled. + * The Batch service supports two ways to control the work done as part of a Job. + * In the first approach, the user specifies a Job Manager Task. The Batch service + * launches this Task when it is ready to start the Job. The Job Manager Task + * controls all other Tasks that run under this Job, by using the Task APIs. In + * the second approach, the user directly controls the execution of Tasks under an + * active Job, by using the Task APIs. Also note: when naming Jobs, avoid + * including sensitive information such as user names or secret project names. + * This information may appear in telemetry logs accessible to Microsoft Support + * engineers. * - * @param jobId The ID of the Job to terminate. + * @param job The Job to be created. * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @param parameters The options to use for terminating the Job. - * @param requestConditions Specifies HTTP options for conditional requests based on modification time. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -28489,64 +28774,8 @@ void disableJobInternal(String jobId, BatchJobDisableContent content) { */ @Generated @ServiceMethod(returns = ReturnType.SINGLE) - void terminateJobInternal(String jobId, Integer timeOutInSeconds, BatchJobTerminateContent parameters, - RequestConditions requestConditions) { - // Generated convenience method for terminateJobInternalWithResponse - RequestOptions requestOptions = new RequestOptions(); - OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); - OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); - String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); - String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); - if (timeOutInSeconds != null) { - requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); - } - if (parameters != null) { - requestOptions.setBody(BinaryData.fromObject(parameters)); - } - if (ifModifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifModifiedSince))); - } - if (ifUnmodifiedSince != null) { - requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, - String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); - } - if (ifMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); - } - if (ifNoneMatch != null) { - requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); - } - terminateJobInternalWithResponse(jobId, requestOptions).getValue(); - } - - /** - * Creates a Job to the specified Account. - * - * The Batch service supports two ways to control the work done as part of a Job. - * In the first approach, the user specifies a Job Manager Task. The Batch service - * launches this Task when it is ready to start the Job. The Job Manager Task - * controls all other Tasks that run under this Job, by using the Task APIs. In - * the second approach, the user directly controls the execution of Tasks under an - * active Job, by using the Task APIs. Also note: when naming Jobs, avoid - * including sensitive information such as user names or secret project names. - * This information may appear in telemetry logs accessible to Microsoft Support - * engineers. - * - * @param job The Job to be created. - * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The - * default is 30 seconds. If the value is larger than 30, the default will be used instead.". - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - void createJobInternal(BatchJobCreateContent job, Integer timeOutInSeconds) { - // Generated convenience method for createJobInternalWithResponse + void createJobInternal(BatchJobCreateContent job, Integer timeOutInSeconds) { + // Generated convenience method for createJobInternalWithResponse RequestOptions requestOptions = new RequestOptions(); if (timeOutInSeconds != null) { requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); @@ -29098,4 +29327,509 @@ UploadBatchServiceLogsResult uploadNodeLogsInternal(String poolId, String nodeId BatchClient(BatchClientImpl serviceClient) { this.serviceClient = serviceClient; } + + /** + * Starts the specified Compute Node. + * + * You can start a Compute Node only if it has been deallocated. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Response startNodeInternalWithResponse(String poolId, String nodeId, RequestOptions requestOptions) { + return this.serviceClient.startNodeInternalWithResponse(poolId, nodeId, requestOptions); + } + + /** + * Reinstalls the operating system on the specified Compute Node. + * + * You can reinstall the operating system on a Compute Node only if it is in an + * idle or running state. This API can be invoked only on Pools created with the + * cloud service configuration property. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Content-TypeStringNoThe content type. Allowed values: "application/json; + * odata=minimalmetadata".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     nodeReimageOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
+     * }
+     * }
+     * 
+ * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Response reimageNodeInternalWithResponse(String poolId, String nodeId, RequestOptions requestOptions) { + return this.serviceClient.reimageNodeInternalWithResponse(poolId, nodeId, requestOptions); + } + + /** + * Deallocates the specified Compute Node. + * + * You can deallocate a Compute Node only if it is in an idle or running state. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Content-TypeStringNoThe content type. Allowed values: "application/json; + * odata=minimalmetadata".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     nodeDeallocateOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
+     * }
+     * }
+     * 
+ * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + Response deallocateNodeInternalWithResponse(String poolId, String nodeId, RequestOptions requestOptions) { + return this.serviceClient.deallocateNodeInternalWithResponse(poolId, nodeId, requestOptions); + } + + /** + * Deletes a Job. + * + * Deleting a Job also deletes all Tasks that are part of that Job, and all Job + * statistics. This also overrides the retention period for Task data; that is, if + * the Job contains Tasks which are still retained on Compute Nodes, the Batch + * services deletes those Tasks' working directories and all their contents. When + * a Delete Job request is received, the Batch service sets the Job to the + * deleting state. All update operations on a Job that is in deleting state will + * fail with status code 409 (Conflict), with additional information indicating + * that the Job is being deleted. + * + * @param jobId The ID of the Job to delete. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param force If true, the server will delete the Job even if the corresponding nodes have not fully processed the + * deletion. The default value is false. + * @param requestConditions Specifies HTTP options for conditional requests based on modification time. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + void deleteJobInternal(String jobId, Integer timeOutInSeconds, Boolean force, RequestConditions requestConditions) { + // Generated convenience method for deleteJobInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); + OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); + String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); + String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (force != null) { + requestOptions.addQueryParam("force", String.valueOf(force), false); + } + if (ifModifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifModifiedSince))); + } + if (ifUnmodifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); + } + if (ifMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); + } + if (ifNoneMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); + } + deleteJobInternalWithResponse(jobId, requestOptions).getValue(); + } + + /** + * Terminates the specified Job, marking it as completed. + * + * When a Terminate Job request is received, the Batch service sets the Job to the + * terminating state. The Batch service then terminates any running Tasks + * associated with the Job and runs any required Job release Tasks. Then the Job + * moves into the completed state. If there are any Tasks in the Job in the active + * state, they will remain in the active state. Once a Job is terminated, new + * Tasks cannot be added and any remaining active Tasks will not be scheduled. + * + * @param jobId The ID of the Job to terminate. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param force If true, the server will terminate the Job even if the corresponding nodes have not fully processed + * the termination. The default value is false. + * @param parameters The options to use for terminating the Job. + * @param requestConditions Specifies HTTP options for conditional requests based on modification time. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + void terminateJobInternal(String jobId, Integer timeOutInSeconds, Boolean force, + BatchJobTerminateContent parameters, RequestConditions requestConditions) { + // Generated convenience method for terminateJobInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); + OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); + String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); + String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (force != null) { + requestOptions.addQueryParam("force", String.valueOf(force), false); + } + if (parameters != null) { + requestOptions.setBody(BinaryData.fromObject(parameters)); + } + if (ifModifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifModifiedSince))); + } + if (ifUnmodifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); + } + if (ifMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); + } + if (ifNoneMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); + } + terminateJobInternalWithResponse(jobId, requestOptions).getValue(); + } + + /** + * Deletes a Job Schedule from the specified Account. + * + * When you delete a Job Schedule, this also deletes all Jobs and Tasks under that + * schedule. When Tasks are deleted, all the files in their working directories on + * the Compute Nodes are also deleted (the retention period is ignored). The Job + * Schedule statistics are no longer accessible once the Job Schedule is deleted, + * though they are still counted towards Account lifetime statistics. + * + * @param jobScheduleId The ID of the Job Schedule to delete. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param force If true, the server will delete the JobSchedule even if the corresponding nodes have not fully + * processed the deletion. The default value is false. + * @param requestConditions Specifies HTTP options for conditional requests based on modification time. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + void deleteJobScheduleInternal(String jobScheduleId, Integer timeOutInSeconds, Boolean force, + RequestConditions requestConditions) { + // Generated convenience method for deleteJobScheduleInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); + OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); + String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); + String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (force != null) { + requestOptions.addQueryParam("force", String.valueOf(force), false); + } + if (ifModifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifModifiedSince))); + } + if (ifUnmodifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); + } + if (ifMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); + } + if (ifNoneMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); + } + deleteJobScheduleInternalWithResponse(jobScheduleId, requestOptions).getValue(); + } + + /** + * Terminates a Job Schedule. + * + * @param jobScheduleId The ID of the Job Schedule to terminates. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param force If true, the server will terminate the JobSchedule even if the corresponding nodes have not fully + * processed the termination. The default value is false. + * @param requestConditions Specifies HTTP options for conditional requests based on modification time. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + void terminateJobScheduleInternal(String jobScheduleId, Integer timeOutInSeconds, Boolean force, + RequestConditions requestConditions) { + // Generated convenience method for terminateJobScheduleInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + OffsetDateTime ifModifiedSince = requestConditions == null ? null : requestConditions.getIfModifiedSince(); + OffsetDateTime ifUnmodifiedSince = requestConditions == null ? null : requestConditions.getIfUnmodifiedSince(); + String ifMatch = requestConditions == null ? null : requestConditions.getIfMatch(); + String ifNoneMatch = requestConditions == null ? null : requestConditions.getIfNoneMatch(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (force != null) { + requestOptions.addQueryParam("force", String.valueOf(force), false); + } + if (ifModifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_MODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifModifiedSince))); + } + if (ifUnmodifiedSince != null) { + requestOptions.setHeader(HttpHeaderName.IF_UNMODIFIED_SINCE, + String.valueOf(new DateTimeRfc1123(ifUnmodifiedSince))); + } + if (ifMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_MATCH, ifMatch); + } + if (ifNoneMatch != null) { + requestOptions.setHeader(HttpHeaderName.IF_NONE_MATCH, ifNoneMatch); + } + terminateJobScheduleInternalWithResponse(jobScheduleId, requestOptions).getValue(); + } + + /** + * Starts the specified Compute Node. + * + * You can start a Compute Node only if it has been deallocated. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + void startNodeInternal(String poolId, String nodeId, Integer timeOutInSeconds) { + // Generated convenience method for startNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + startNodeInternalWithResponse(poolId, nodeId, requestOptions).getValue(); + } + + /** + * Starts the specified Compute Node. + * + * You can start a Compute Node only if it has been deallocated. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + void startNodeInternal(String poolId, String nodeId) { + // Generated convenience method for startNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + startNodeInternalWithResponse(poolId, nodeId, requestOptions).getValue(); + } + + /** + * Reinstalls the operating system on the specified Compute Node. + * + * You can reinstall the operating system on a Compute Node only if it is in an + * idle or running state. This API can be invoked only on Pools created with the + * cloud service configuration property. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param parameters The options to use for reimaging the Compute Node. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + void reimageNodeInternal(String poolId, String nodeId, Integer timeOutInSeconds, + BatchNodeReimageContent parameters) { + // Generated convenience method for reimageNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (parameters != null) { + requestOptions.setBody(BinaryData.fromObject(parameters)); + } + reimageNodeInternalWithResponse(poolId, nodeId, requestOptions).getValue(); + } + + /** + * Reinstalls the operating system on the specified Compute Node. + * + * You can reinstall the operating system on a Compute Node only if it is in an + * idle or running state. This API can be invoked only on Pools created with the + * cloud service configuration property. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + void reimageNodeInternal(String poolId, String nodeId) { + // Generated convenience method for reimageNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + reimageNodeInternalWithResponse(poolId, nodeId, requestOptions).getValue(); + } + + /** + * Deallocates the specified Compute Node. + * + * You can deallocate a Compute Node only if it is in an idle or running state. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param timeOutInSeconds The maximum time that the server can spend processing the request, in seconds. The + * default is 30 seconds. If the value is larger than 30, the default will be used instead.". + * @param parameters The options to use for deallocating the Compute Node. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + void deallocateNodeInternal(String poolId, String nodeId, Integer timeOutInSeconds, + BatchNodeDeallocateContent parameters) { + // Generated convenience method for deallocateNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + if (timeOutInSeconds != null) { + requestOptions.addQueryParam("timeOut", String.valueOf(timeOutInSeconds), false); + } + if (parameters != null) { + requestOptions.setBody(BinaryData.fromObject(parameters)); + } + deallocateNodeInternalWithResponse(poolId, nodeId, requestOptions).getValue(); + } + + /** + * Deallocates the specified Compute Node. + * + * You can deallocate a Compute Node only if it is in an idle or running state. + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + void deallocateNodeInternal(String poolId, String nodeId) { + // Generated convenience method for deallocateNodeInternalWithResponse + RequestOptions requestOptions = new RequestOptions(); + deallocateNodeInternalWithResponse(poolId, nodeId, requestOptions).getValue(); + } } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchServiceVersion.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchServiceVersion.java index 8406974884ae..a2cee83c0402 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchServiceVersion.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/BatchServiceVersion.java @@ -11,9 +11,9 @@ */ public enum BatchServiceVersion implements ServiceVersion { /** - * Enum value 2024-02-01.19.0. + * Enum value 2024-07-01.20.0. */ - V2024_02_01_19_0("2024-02-01.19.0"); + V2024_07_01_20_0("2024-07-01.20.0"); private final String version; @@ -35,6 +35,6 @@ public String getVersion() { * @return The latest {@link BatchServiceVersion}. */ public static BatchServiceVersion getLatest() { - return V2024_02_01_19_0; + return V2024_07_01_20_0; } } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/implementation/BatchClientImpl.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/implementation/BatchClientImpl.java index e898dcf7a691..e73098706f1c 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/implementation/BatchClientImpl.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/implementation/BatchClientImpl.java @@ -1414,6 +1414,72 @@ Response rebootNodeInternalSync(@HostParam("endpoint") String endpoint, @PathParam("nodeId") String nodeId, @HeaderParam("Accept") String accept, RequestOptions requestOptions, Context context); + @Post("/pools/{poolId}/nodes/{nodeId}/start") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> startNodeInternal(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("poolId") String poolId, + @PathParam("nodeId") String nodeId, @HeaderParam("Accept") String accept, RequestOptions requestOptions, + Context context); + + @Post("/pools/{poolId}/nodes/{nodeId}/start") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response startNodeInternalSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("poolId") String poolId, + @PathParam("nodeId") String nodeId, @HeaderParam("Accept") String accept, RequestOptions requestOptions, + Context context); + + @Post("/pools/{poolId}/nodes/{nodeId}/reimage") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> reimageNodeInternal(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("poolId") String poolId, + @PathParam("nodeId") String nodeId, @HeaderParam("Accept") String accept, RequestOptions requestOptions, + Context context); + + @Post("/pools/{poolId}/nodes/{nodeId}/reimage") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response reimageNodeInternalSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("poolId") String poolId, + @PathParam("nodeId") String nodeId, @HeaderParam("Accept") String accept, RequestOptions requestOptions, + Context context); + + @Post("/pools/{poolId}/nodes/{nodeId}/deallocate") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Mono> deallocateNodeInternal(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("poolId") String poolId, + @PathParam("nodeId") String nodeId, @HeaderParam("Accept") String accept, RequestOptions requestOptions, + Context context); + + @Post("/pools/{poolId}/nodes/{nodeId}/deallocate") + @ExpectedResponses({ 202 }) + @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) + @UnexpectedResponseExceptionType(value = ResourceNotFoundException.class, code = { 404 }) + @UnexpectedResponseExceptionType(value = ResourceModifiedException.class, code = { 409 }) + @UnexpectedResponseExceptionType(HttpResponseException.class) + Response deallocateNodeInternalSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("poolId") String poolId, + @PathParam("nodeId") String nodeId, @HeaderParam("Accept") String accept, RequestOptions requestOptions, + Context context); + @Post("/pools/{poolId}/nodes/{nodeId}/disablescheduling") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -2334,7 +2400,7 @@ public Response getApplicationInternalWithResponse(String applicatio * last aggregation interval currently available. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -2399,7 +2465,7 @@ private Mono> listPoolUsageMetricsInternalSinglePageAs * last aggregation interval currently available. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -2482,7 +2548,7 @@ public PagedFlux listPoolUsageMetricsInternalAsync(RequestOptions re * last aggregation interval currently available. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -2545,7 +2611,7 @@ private PagedResponse listPoolUsageMetricsInternalSinglePage(Request * last aggregation interval currently available. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-account-usage-metrics. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -2630,6 +2696,8 @@ public PagedIterable listPoolUsageMetricsInternal(RequestOptions req * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -2666,7 +2734,7 @@ public PagedIterable listPoolUsageMetricsInternal(RequestOptions req * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -2694,13 +2762,16 @@ public PagedIterable listPoolUsageMetricsInternal(RequestOptions req * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -2759,6 +2830,12 @@ public PagedIterable listPoolUsageMetricsInternal(RequestOptions req * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -2920,6 +2997,8 @@ public Mono> createPoolInternalWithResponseAsync(BinaryData pool, * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -2956,7 +3035,7 @@ public Mono> createPoolInternalWithResponseAsync(BinaryData pool, * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -2984,13 +3063,16 @@ public Mono> createPoolInternalWithResponseAsync(BinaryData pool, * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -3049,6 +3131,12 @@ public Mono> createPoolInternalWithResponseAsync(BinaryData pool, * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -3180,7 +3268,7 @@ public Response createPoolInternalWithResponse(BinaryData pool, RequestOpt } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. *

Query Parameters

* * @@ -3193,7 +3281,7 @@ public Response createPoolInternalWithResponse(BinaryData pool, RequestOpt * applications can be returned. * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-pools. * * * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. *
Query Parameters
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-pools.
$selectList<String>NoAn OData $select clause. In the form of "," * separated string.
$expandList<String>NoAn OData $expand clause. In the form of "," @@ -3224,6 +3312,8 @@ public Response createPoolInternalWithResponse(BinaryData pool, RequestOpt * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -3260,7 +3350,7 @@ public Response createPoolInternalWithResponse(BinaryData pool, RequestOpt * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -3288,13 +3378,16 @@ public Response createPoolInternalWithResponse(BinaryData pool, RequestOpt * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -3378,6 +3471,12 @@ public Response createPoolInternalWithResponse(BinaryData pool, RequestOpt * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -3547,7 +3646,7 @@ private Mono> listPoolsInternalSinglePageAsync(Request } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. *

Query Parameters

* * @@ -3560,7 +3659,7 @@ private Mono> listPoolsInternalSinglePageAsync(Request * applications can be returned. * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-pools. * * * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. *
Query Parameters
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-pools.
$selectList<String>NoAn OData $select clause. In the form of "," * separated string.
$expandList<String>NoAn OData $expand clause. In the form of "," @@ -3591,6 +3690,8 @@ private Mono> listPoolsInternalSinglePageAsync(Request * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -3627,7 +3728,7 @@ private Mono> listPoolsInternalSinglePageAsync(Request * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -3655,13 +3756,16 @@ private Mono> listPoolsInternalSinglePageAsync(Request * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -3745,6 +3849,12 @@ private Mono> listPoolsInternalSinglePageAsync(Request * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -3932,7 +4042,7 @@ public PagedFlux listPoolsInternalAsync(RequestOptions requestOption } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. *

Query Parameters

* * @@ -3945,7 +4055,7 @@ public PagedFlux listPoolsInternalAsync(RequestOptions requestOption * applications can be returned. * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-pools. * * * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. *
Query Parameters
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-pools.
$selectList<String>NoAn OData $select clause. In the form of "," * separated string.
$expandList<String>NoAn OData $expand clause. In the form of "," @@ -3976,6 +4086,8 @@ public PagedFlux listPoolsInternalAsync(RequestOptions requestOption * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -4012,7 +4124,7 @@ public PagedFlux listPoolsInternalAsync(RequestOptions requestOption * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -4040,13 +4152,16 @@ public PagedFlux listPoolsInternalAsync(RequestOptions requestOption * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -4130,6 +4245,12 @@ public PagedFlux listPoolsInternalAsync(RequestOptions requestOption * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -4297,7 +4418,7 @@ private PagedResponse listPoolsInternalSinglePage(RequestOptions req } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. *

Query Parameters

* * @@ -4310,7 +4431,7 @@ private PagedResponse listPoolsInternalSinglePage(RequestOptions req * applications can be returned. * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-pools. * * * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. *
Query Parameters
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-pools.
$selectList<String>NoAn OData $select clause. In the form of "," * separated string.
$expandList<String>NoAn OData $expand clause. In the form of "," @@ -4341,6 +4462,8 @@ private PagedResponse listPoolsInternalSinglePage(RequestOptions req * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -4377,7 +4500,7 @@ private PagedResponse listPoolsInternalSinglePage(RequestOptions req * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -4405,13 +4528,16 @@ private PagedResponse listPoolsInternalSinglePage(RequestOptions req * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -4495,6 +4621,12 @@ private PagedResponse listPoolsInternalSinglePage(RequestOptions req * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -4976,6 +5108,8 @@ public Response poolExistsInternalWithResponse(String poolId, RequestOp * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -5012,7 +5146,7 @@ public Response poolExistsInternalWithResponse(String poolId, RequestOp * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -5040,13 +5174,16 @@ public Response poolExistsInternalWithResponse(String poolId, RequestOp * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -5130,6 +5267,12 @@ public Response poolExistsInternalWithResponse(String poolId, RequestOp * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -5357,6 +5500,8 @@ public Mono> getPoolInternalWithResponseAsync(String poolId * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -5393,7 +5538,7 @@ public Mono> getPoolInternalWithResponseAsync(String poolId * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -5421,13 +5566,16 @@ public Mono> getPoolInternalWithResponseAsync(String poolId * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -5511,6 +5659,12 @@ public Mono> getPoolInternalWithResponseAsync(String poolId * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -5718,6 +5872,9 @@ public Response getPoolInternalWithResponse(String poolId, RequestOp *
      * {@code
      * {
+     *     displayName: String (Optional)
+     *     vmSize: String (Optional)
+     *     enableInterNodeCommunication: Boolean (Optional)
      *     startTask (Optional): {
      *         commandLine: String (Required)
      *         containerSettings (Optional): {
@@ -5732,6 +5889,12 @@ public Response getPoolInternalWithResponse(String poolId, RequestOp
      *                 }
      *             }
      *             workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional)
+     *             containerHostBatchBindMounts (Optional): [
+     *                  (Optional){
+     *                     source: String(regional/zonal) (Optional)
+     *                     isReadOnly: Boolean (Optional)
+     *                 }
+     *             ]
      *         }
      *         resourceFiles (Optional): [
      *              (Optional){
@@ -5772,113 +5935,312 @@ public Response getPoolInternalWithResponse(String poolId, RequestOp
      *             value: String (Required)
      *         }
      *     ]
-     *     targetNodeCommunicationMode: String(default/classic/simplified) (Optional)
-     * }
-     * }
-     * 
- * - * @param poolId The ID of the Pool to get. - * @param pool The pool properties to update. - * @param requestOptions The options to configure the HTTP request before HTTP client sends it. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updatePoolInternalWithResponseAsync(String poolId, BinaryData pool, - RequestOptions requestOptions) { - final String contentType = "application/json; odata=minimalmetadata"; - final String accept = "application/json"; - return FluxUtil.withContext(context -> service.updatePoolInternal(this.getEndpoint(), - this.getServiceVersion().getVersion(), contentType, poolId, accept, pool, requestOptions, context)); - } - - /** - * Updates the properties of the specified Pool. - * - * This only replaces the Pool properties specified in the request. For example, - * if the Pool has a StartTask associated with it, and a request does not specify - * a StartTask element, then the Pool keeps the existing StartTask. - *

Query Parameters

- * - * - * - * - *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the - * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used - * instead.".
- * You can add these to a request with {@link RequestOptions#addQueryParam} - *

Header Parameters

- * - * - * - * - * - * - * - *
Header Parameters
NameTypeRequiredDescription
If-Modified-SinceOffsetDateTimeNoA timestamp indicating the last modified time - * of the resource known to the - * client. The operation will be performed only if the resource on the service has - * been modified since the specified time.
If-Unmodified-SinceOffsetDateTimeNoA timestamp indicating the last modified - * time of the resource known to the - * client. The operation will be performed only if the resource on the service has - * not been modified since the specified time.
If-MatchStringNoAn ETag value associated with the version of the resource - * known to the client. - * The operation will be performed only if the resource's current ETag on the - * service exactly matches the value specified by the client.
If-None-MatchStringNoAn ETag value associated with the version of the resource - * known to the client. - * The operation will be performed only if the resource's current ETag on the - * service does not match the value specified by the client.
- * You can add these to a request with {@link RequestOptions#addHeader} - *

Request Body Schema

- * - *
-     * {@code
-     * {
-     *     startTask (Optional): {
-     *         commandLine: String (Required)
-     *         containerSettings (Optional): {
-     *             containerRunOptions: String (Optional)
-     *             imageName: String (Required)
-     *             registry (Optional): {
-     *                 username: String (Optional)
-     *                 password: String (Optional)
-     *                 registryServer: String (Optional)
-     *                 identityReference (Optional): {
-     *                     resourceId: String (Optional)
-     *                 }
-     *             }
-     *             workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional)
+     *     virtualMachineConfiguration (Optional): {
+     *         imageReference (Required): {
+     *             publisher: String (Optional)
+     *             offer: String (Optional)
+     *             sku: String (Optional)
+     *             version: String (Optional)
+     *             virtualMachineImageId: String (Optional)
+     *             exactVersion: String (Optional)
+     *             sharedGalleryImageId: String (Optional)
+     *             communityGalleryImageId: String (Optional)
      *         }
-     *         resourceFiles (Optional): [
+     *         nodeAgentSKUId: String (Required)
+     *         windowsConfiguration (Optional): {
+     *             enableAutomaticUpdates: Boolean (Optional)
+     *         }
+     *         dataDisks (Optional): [
      *              (Optional){
-     *                 autoStorageContainerName: String (Optional)
-     *                 storageContainerUrl: String (Optional)
-     *                 httpUrl: String (Optional)
-     *                 blobPrefix: String (Optional)
-     *                 filePath: String (Optional)
-     *                 fileMode: String (Optional)
-     *                 identityReference (Optional): (recursive schema, see identityReference above)
+     *                 lun: int (Required)
+     *                 caching: String(none/readonly/readwrite) (Optional)
+     *                 diskSizeGB: int (Required)
+     *                 storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional)
      *             }
      *         ]
-     *         environmentSettings (Optional): [
+     *         licenseType: String (Optional)
+     *         containerConfiguration (Optional): {
+     *             type: String(dockerCompatible/criCompatible) (Required)
+     *             containerImageNames (Optional): [
+     *                 String (Optional)
+     *             ]
+     *             containerRegistries (Optional): [
+     *                 (recursive schema, see above)
+     *             ]
+     *         }
+     *         diskEncryptionConfiguration (Optional): {
+     *             targets (Optional): [
+     *                 String(osdisk/temporarydisk) (Optional)
+     *             ]
+     *         }
+     *         nodePlacementConfiguration (Optional): {
+     *             policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional)
+     *         }
+     *         extensions (Optional): [
      *              (Optional){
      *                 name: String (Required)
-     *                 value: String (Optional)
+     *                 publisher: String (Required)
+     *                 type: String (Required)
+     *                 typeHandlerVersion: String (Optional)
+     *                 autoUpgradeMinorVersion: Boolean (Optional)
+     *                 enableAutomaticUpgrade: Boolean (Optional)
+     *                 settings (Optional): {
+     *                     String: String (Required)
+     *                 }
+     *                 protectedSettings (Optional): {
+     *                     String: String (Required)
+     *                 }
+     *                 provisionAfterExtensions (Optional): [
+     *                     String (Optional)
+     *                 ]
      *             }
      *         ]
-     *         userIdentity (Optional): {
-     *             username: String (Optional)
-     *             autoUser (Optional): {
-     *                 scope: String(task/pool) (Optional)
-     *                 elevationLevel: String(nonadmin/admin) (Optional)
+     *         osDisk (Optional): {
+     *             ephemeralOSDiskSettings (Optional): {
+     *                 placement: String(cachedisk) (Optional)
+     *             }
+     *             caching: String(none/readonly/readwrite) (Optional)
+     *             diskSizeGB: Integer (Optional)
+     *             managedDisk (Optional): {
+     *                 storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional)
+     *                 securityProfile (Optional): {
+     *                     securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional)
+     *                 }
      *             }
+     *             writeAcceleratorEnabled: Boolean (Optional)
      *         }
-     *         maxTaskRetryCount: Integer (Optional)
-     *         waitForSuccess: Boolean (Optional)
-     *     }
+     *         securityProfile (Optional): {
+     *             encryptionAtHost: boolean (Required)
+     *             securityType: String(trustedLaunch/confidentialVM) (Required)
+     *             uefiSettings (Required): {
+     *                 secureBootEnabled: Boolean (Optional)
+     *                 vTpmEnabled: Boolean (Optional)
+     *             }
+     *         }
+     *         serviceArtifactReference (Optional): {
+     *             id: String (Required)
+     *         }
+     *     }
+     *     targetNodeCommunicationMode: String(default/classic/simplified) (Optional)
+     *     taskSlotsPerNode: Integer (Optional)
+     *     taskSchedulingPolicy (Optional): {
+     *         nodeFillType: String(spread/pack) (Required)
+     *     }
+     *     networkConfiguration (Optional): {
+     *         subnetId: String (Optional)
+     *         dynamicVNetAssignmentScope: String(none/job) (Optional)
+     *         endpointConfiguration (Optional): {
+     *             inboundNATPools (Required): [
+     *                  (Required){
+     *                     name: String (Required)
+     *                     protocol: String(tcp/udp) (Required)
+     *                     backendPort: int (Required)
+     *                     frontendPortRangeStart: int (Required)
+     *                     frontendPortRangeEnd: int (Required)
+     *                     networkSecurityGroupRules (Optional): [
+     *                          (Optional){
+     *                             priority: int (Required)
+     *                             access: String(allow/deny) (Required)
+     *                             sourceAddressPrefix: String (Required)
+     *                             sourcePortRanges (Optional): [
+     *                                 String (Optional)
+     *                             ]
+     *                         }
+     *                     ]
+     *                 }
+     *             ]
+     *         }
+     *         publicIPAddressConfiguration (Optional): {
+     *             provision: String(batchmanaged/usermanaged/nopublicipaddresses) (Optional)
+     *             ipAddressIds (Optional): [
+     *                 String (Optional)
+     *             ]
+     *         }
+     *         enableAcceleratedNetworking: Boolean (Optional)
+     *     }
+     *     resourceTags (Optional): {
+     *         String: String (Required)
+     *     }
+     *     userAccounts (Optional): [
+     *          (Optional){
+     *             name: String (Required)
+     *             password: String (Required)
+     *             elevationLevel: String(nonadmin/admin) (Optional)
+     *             linuxUserConfiguration (Optional): {
+     *                 uid: Integer (Optional)
+     *                 gid: Integer (Optional)
+     *                 sshPrivateKey: String (Optional)
+     *             }
+     *             windowsUserConfiguration (Optional): {
+     *                 loginMode: String(batch/interactive) (Optional)
+     *             }
+     *         }
+     *     ]
+     *     mountConfiguration (Optional): [
+     *          (Optional){
+     *             azureBlobFileSystemConfiguration (Optional): {
+     *                 accountName: String (Required)
+     *                 containerName: String (Required)
+     *                 accountKey: String (Optional)
+     *                 sasKey: String (Optional)
+     *                 blobfuseOptions: String (Optional)
+     *                 relativeMountPath: String (Required)
+     *                 identityReference (Optional): (recursive schema, see identityReference above)
+     *             }
+     *             nfsMountConfiguration (Optional): {
+     *                 source: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *             }
+     *             cifsMountConfiguration (Optional): {
+     *                 username: String (Required)
+     *                 source: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *                 password: String (Required)
+     *             }
+     *             azureFileShareConfiguration (Optional): {
+     *                 accountName: String (Required)
+     *                 azureFileUrl: String (Required)
+     *                 accountKey: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *             }
+     *         }
+     *     ]
+     *     upgradePolicy (Optional): {
+     *         mode: String(automatic/manual/rolling) (Required)
+     *         automaticOSUpgradePolicy (Optional): {
+     *             disableAutomaticRollback: Boolean (Optional)
+     *             enableAutomaticOSUpgrade: Boolean (Optional)
+     *             useRollingUpgradePolicy: Boolean (Optional)
+     *             osRollingUpgradeDeferral: Boolean (Optional)
+     *         }
+     *         rollingUpgradePolicy (Optional): {
+     *             enableCrossZoneUpgrade: Boolean (Optional)
+     *             maxBatchInstancePercent: Integer (Optional)
+     *             maxUnhealthyInstancePercent: Integer (Optional)
+     *             maxUnhealthyUpgradedInstancePercent: Integer (Optional)
+     *             pauseTimeBetweenBatches: Duration (Optional)
+     *             prioritizeUnhealthyInstances: Boolean (Optional)
+     *             rollbackFailedInstancesOnPolicyBreach: Boolean (Optional)
+     *         }
+     *     }
+     * }
+     * }
+     * 
+ * + * @param poolId The ID of the Pool to get. + * @param pool The pool properties to update. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> updatePoolInternalWithResponseAsync(String poolId, BinaryData pool, + RequestOptions requestOptions) { + final String contentType = "application/json; odata=minimalmetadata"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.updatePoolInternal(this.getEndpoint(), + this.getServiceVersion().getVersion(), contentType, poolId, accept, pool, requestOptions, context)); + } + + /** + * Updates the properties of the specified Pool. + * + * This only replaces the Pool properties specified in the request. For example, + * if the Pool has a StartTask associated with it, and a request does not specify + * a StartTask element, then the Pool keeps the existing StartTask. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
If-Modified-SinceOffsetDateTimeNoA timestamp indicating the last modified time + * of the resource known to the + * client. The operation will be performed only if the resource on the service has + * been modified since the specified time.
If-Unmodified-SinceOffsetDateTimeNoA timestamp indicating the last modified + * time of the resource known to the + * client. The operation will be performed only if the resource on the service has + * not been modified since the specified time.
If-MatchStringNoAn ETag value associated with the version of the resource + * known to the client. + * The operation will be performed only if the resource's current ETag on the + * service exactly matches the value specified by the client.
If-None-MatchStringNoAn ETag value associated with the version of the resource + * known to the client. + * The operation will be performed only if the resource's current ETag on the + * service does not match the value specified by the client.
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     displayName: String (Optional)
+     *     vmSize: String (Optional)
+     *     enableInterNodeCommunication: Boolean (Optional)
+     *     startTask (Optional): {
+     *         commandLine: String (Required)
+     *         containerSettings (Optional): {
+     *             containerRunOptions: String (Optional)
+     *             imageName: String (Required)
+     *             registry (Optional): {
+     *                 username: String (Optional)
+     *                 password: String (Optional)
+     *                 registryServer: String (Optional)
+     *                 identityReference (Optional): {
+     *                     resourceId: String (Optional)
+     *                 }
+     *             }
+     *             workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional)
+     *             containerHostBatchBindMounts (Optional): [
+     *                  (Optional){
+     *                     source: String(regional/zonal) (Optional)
+     *                     isReadOnly: Boolean (Optional)
+     *                 }
+     *             ]
+     *         }
+     *         resourceFiles (Optional): [
+     *              (Optional){
+     *                 autoStorageContainerName: String (Optional)
+     *                 storageContainerUrl: String (Optional)
+     *                 httpUrl: String (Optional)
+     *                 blobPrefix: String (Optional)
+     *                 filePath: String (Optional)
+     *                 fileMode: String (Optional)
+     *                 identityReference (Optional): (recursive schema, see identityReference above)
+     *             }
+     *         ]
+     *         environmentSettings (Optional): [
+     *              (Optional){
+     *                 name: String (Required)
+     *                 value: String (Optional)
+     *             }
+     *         ]
+     *         userIdentity (Optional): {
+     *             username: String (Optional)
+     *             autoUser (Optional): {
+     *                 scope: String(task/pool) (Optional)
+     *                 elevationLevel: String(nonadmin/admin) (Optional)
+     *             }
+     *         }
+     *         maxTaskRetryCount: Integer (Optional)
+     *         waitForSuccess: Boolean (Optional)
+     *     }
      *     applicationPackageReferences (Optional): [
      *          (Optional){
      *             applicationId: String (Required)
@@ -5891,7 +6253,197 @@ public Mono> updatePoolInternalWithResponseAsync(String poolId, B
      *             value: String (Required)
      *         }
      *     ]
+     *     virtualMachineConfiguration (Optional): {
+     *         imageReference (Required): {
+     *             publisher: String (Optional)
+     *             offer: String (Optional)
+     *             sku: String (Optional)
+     *             version: String (Optional)
+     *             virtualMachineImageId: String (Optional)
+     *             exactVersion: String (Optional)
+     *             sharedGalleryImageId: String (Optional)
+     *             communityGalleryImageId: String (Optional)
+     *         }
+     *         nodeAgentSKUId: String (Required)
+     *         windowsConfiguration (Optional): {
+     *             enableAutomaticUpdates: Boolean (Optional)
+     *         }
+     *         dataDisks (Optional): [
+     *              (Optional){
+     *                 lun: int (Required)
+     *                 caching: String(none/readonly/readwrite) (Optional)
+     *                 diskSizeGB: int (Required)
+     *                 storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional)
+     *             }
+     *         ]
+     *         licenseType: String (Optional)
+     *         containerConfiguration (Optional): {
+     *             type: String(dockerCompatible/criCompatible) (Required)
+     *             containerImageNames (Optional): [
+     *                 String (Optional)
+     *             ]
+     *             containerRegistries (Optional): [
+     *                 (recursive schema, see above)
+     *             ]
+     *         }
+     *         diskEncryptionConfiguration (Optional): {
+     *             targets (Optional): [
+     *                 String(osdisk/temporarydisk) (Optional)
+     *             ]
+     *         }
+     *         nodePlacementConfiguration (Optional): {
+     *             policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional)
+     *         }
+     *         extensions (Optional): [
+     *              (Optional){
+     *                 name: String (Required)
+     *                 publisher: String (Required)
+     *                 type: String (Required)
+     *                 typeHandlerVersion: String (Optional)
+     *                 autoUpgradeMinorVersion: Boolean (Optional)
+     *                 enableAutomaticUpgrade: Boolean (Optional)
+     *                 settings (Optional): {
+     *                     String: String (Required)
+     *                 }
+     *                 protectedSettings (Optional): {
+     *                     String: String (Required)
+     *                 }
+     *                 provisionAfterExtensions (Optional): [
+     *                     String (Optional)
+     *                 ]
+     *             }
+     *         ]
+     *         osDisk (Optional): {
+     *             ephemeralOSDiskSettings (Optional): {
+     *                 placement: String(cachedisk) (Optional)
+     *             }
+     *             caching: String(none/readonly/readwrite) (Optional)
+     *             diskSizeGB: Integer (Optional)
+     *             managedDisk (Optional): {
+     *                 storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional)
+     *                 securityProfile (Optional): {
+     *                     securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional)
+     *                 }
+     *             }
+     *             writeAcceleratorEnabled: Boolean (Optional)
+     *         }
+     *         securityProfile (Optional): {
+     *             encryptionAtHost: boolean (Required)
+     *             securityType: String(trustedLaunch/confidentialVM) (Required)
+     *             uefiSettings (Required): {
+     *                 secureBootEnabled: Boolean (Optional)
+     *                 vTpmEnabled: Boolean (Optional)
+     *             }
+     *         }
+     *         serviceArtifactReference (Optional): {
+     *             id: String (Required)
+     *         }
+     *     }
      *     targetNodeCommunicationMode: String(default/classic/simplified) (Optional)
+     *     taskSlotsPerNode: Integer (Optional)
+     *     taskSchedulingPolicy (Optional): {
+     *         nodeFillType: String(spread/pack) (Required)
+     *     }
+     *     networkConfiguration (Optional): {
+     *         subnetId: String (Optional)
+     *         dynamicVNetAssignmentScope: String(none/job) (Optional)
+     *         endpointConfiguration (Optional): {
+     *             inboundNATPools (Required): [
+     *                  (Required){
+     *                     name: String (Required)
+     *                     protocol: String(tcp/udp) (Required)
+     *                     backendPort: int (Required)
+     *                     frontendPortRangeStart: int (Required)
+     *                     frontendPortRangeEnd: int (Required)
+     *                     networkSecurityGroupRules (Optional): [
+     *                          (Optional){
+     *                             priority: int (Required)
+     *                             access: String(allow/deny) (Required)
+     *                             sourceAddressPrefix: String (Required)
+     *                             sourcePortRanges (Optional): [
+     *                                 String (Optional)
+     *                             ]
+     *                         }
+     *                     ]
+     *                 }
+     *             ]
+     *         }
+     *         publicIPAddressConfiguration (Optional): {
+     *             provision: String(batchmanaged/usermanaged/nopublicipaddresses) (Optional)
+     *             ipAddressIds (Optional): [
+     *                 String (Optional)
+     *             ]
+     *         }
+     *         enableAcceleratedNetworking: Boolean (Optional)
+     *     }
+     *     resourceTags (Optional): {
+     *         String: String (Required)
+     *     }
+     *     userAccounts (Optional): [
+     *          (Optional){
+     *             name: String (Required)
+     *             password: String (Required)
+     *             elevationLevel: String(nonadmin/admin) (Optional)
+     *             linuxUserConfiguration (Optional): {
+     *                 uid: Integer (Optional)
+     *                 gid: Integer (Optional)
+     *                 sshPrivateKey: String (Optional)
+     *             }
+     *             windowsUserConfiguration (Optional): {
+     *                 loginMode: String(batch/interactive) (Optional)
+     *             }
+     *         }
+     *     ]
+     *     mountConfiguration (Optional): [
+     *          (Optional){
+     *             azureBlobFileSystemConfiguration (Optional): {
+     *                 accountName: String (Required)
+     *                 containerName: String (Required)
+     *                 accountKey: String (Optional)
+     *                 sasKey: String (Optional)
+     *                 blobfuseOptions: String (Optional)
+     *                 relativeMountPath: String (Required)
+     *                 identityReference (Optional): (recursive schema, see identityReference above)
+     *             }
+     *             nfsMountConfiguration (Optional): {
+     *                 source: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *             }
+     *             cifsMountConfiguration (Optional): {
+     *                 username: String (Required)
+     *                 source: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *                 password: String (Required)
+     *             }
+     *             azureFileShareConfiguration (Optional): {
+     *                 accountName: String (Required)
+     *                 azureFileUrl: String (Required)
+     *                 accountKey: String (Required)
+     *                 relativeMountPath: String (Required)
+     *                 mountOptions: String (Optional)
+     *             }
+     *         }
+     *     ]
+     *     upgradePolicy (Optional): {
+     *         mode: String(automatic/manual/rolling) (Required)
+     *         automaticOSUpgradePolicy (Optional): {
+     *             disableAutomaticRollback: Boolean (Optional)
+     *             enableAutomaticOSUpgrade: Boolean (Optional)
+     *             useRollingUpgradePolicy: Boolean (Optional)
+     *             osRollingUpgradeDeferral: Boolean (Optional)
+     *         }
+     *         rollingUpgradePolicy (Optional): {
+     *             enableCrossZoneUpgrade: Boolean (Optional)
+     *             maxBatchInstancePercent: Integer (Optional)
+     *             maxUnhealthyInstancePercent: Integer (Optional)
+     *             maxUnhealthyUpgradedInstancePercent: Integer (Optional)
+     *             pauseTimeBetweenBatches: Duration (Optional)
+     *             prioritizeUnhealthyInstances: Boolean (Optional)
+     *             rollbackFailedInstancesOnPolicyBreach: Boolean (Optional)
+     *         }
+     *     }
      * }
      * }
      * 
@@ -6534,6 +7086,12 @@ public Response stopPoolResizeInternalWithResponse(String poolId, RequestO * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -6631,6 +7189,12 @@ public Mono> replacePoolPropertiesInternalWithResponseAsync(Strin * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -6846,7 +7410,7 @@ public Response removeNodesInternalWithResponse(String poolId, BinaryData * applications can be returned.
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images.
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -6862,6 +7426,8 @@ public Response removeNodesInternalWithResponse(String poolId, BinaryData * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * osType: String(linux/windows) (Required) * capabilities (Optional): [ @@ -6905,7 +7471,7 @@ private Mono> listSupportedImagesInternalSinglePageAsy * applications can be returned.
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images.
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -6921,6 +7487,8 @@ private Mono> listSupportedImagesInternalSinglePageAsy * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * osType: String(linux/windows) (Required) * capabilities (Optional): [ @@ -6982,7 +7550,7 @@ public PagedFlux listSupportedImagesInternalAsync(RequestOptions req * applications can be returned.
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images.
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -6998,6 +7566,8 @@ public PagedFlux listSupportedImagesInternalAsync(RequestOptions req * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * osType: String(linux/windows) (Required) * capabilities (Optional): [ @@ -7039,7 +7609,7 @@ private PagedResponse listSupportedImagesInternalSinglePage(RequestO * applications can be returned.
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images.
* You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -7055,6 +7625,8 @@ private PagedResponse listSupportedImagesInternalSinglePage(RequestO * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * osType: String(linux/windows) (Required) * capabilities (Optional): [ @@ -7119,7 +7691,7 @@ public PagedIterable listSupportedImagesInternal(RequestOptions requ * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -7142,6 +7714,8 @@ public PagedIterable listSupportedImagesInternal(RequestOptions requ * unknown: int (Required) * unusable: int (Required) * waitingForStartTask: int (Required) + * deallocated: int (Required) + * deallocating: int (Required) * total: int (Required) * upgradingOS: int (Required) * } @@ -7184,7 +7758,7 @@ private Mono> listPoolNodeCountsInternalSinglePageAsyn * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -7207,6 +7781,8 @@ private Mono> listPoolNodeCountsInternalSinglePageAsyn * unknown: int (Required) * unusable: int (Required) * waitingForStartTask: int (Required) + * deallocated: int (Required) + * deallocating: int (Required) * total: int (Required) * upgradingOS: int (Required) * } @@ -7267,7 +7843,7 @@ public PagedFlux listPoolNodeCountsInternalAsync(RequestOptions requ * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -7290,6 +7866,8 @@ public PagedFlux listPoolNodeCountsInternalAsync(RequestOptions requ * unknown: int (Required) * unusable: int (Required) * waitingForStartTask: int (Required) + * deallocated: int (Required) + * deallocating: int (Required) * total: int (Required) * upgradingOS: int (Required) * } @@ -7330,7 +7908,7 @@ private PagedResponse listPoolNodeCountsInternalSinglePage(RequestOp * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-support-images. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-support-images. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Response Body Schema

@@ -7353,6 +7931,8 @@ private PagedResponse listPoolNodeCountsInternalSinglePage(RequestOp * unknown: int (Required) * unusable: int (Required) * waitingForStartTask: int (Required) + * deallocated: int (Required) + * deallocating: int (Required) * total: int (Required) * upgradingOS: int (Required) * } @@ -7416,6 +7996,8 @@ public PagedIterable listPoolNodeCountsInternal(RequestOptions reque * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will delete the Job even if the + * corresponding nodes have not fully processed the deletion. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -7474,6 +8056,8 @@ public Mono> deleteJobInternalWithResponseAsync(String jobId, Req * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will delete the Job even if the + * corresponding nodes have not fully processed the deletion. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -7590,6 +8174,12 @@ public Response deleteJobInternalWithResponse(String jobId, RequestOptions * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -7706,6 +8296,8 @@ public Response deleteJobInternalWithResponse(String jobId, RequestOptions * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -7735,7 +8327,7 @@ public Response deleteJobInternalWithResponse(String jobId, RequestOptions * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -7763,13 +8355,16 @@ public Response deleteJobInternalWithResponse(String jobId, RequestOptions * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -7918,6 +8513,7 @@ public Response deleteJobInternalWithResponse(String jobId, RequestOptions * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -8050,6 +8646,12 @@ public Mono> getJobInternalWithResponseAsync(String jobId, * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -8166,6 +8768,8 @@ public Mono> getJobInternalWithResponseAsync(String jobId, * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -8195,7 +8799,7 @@ public Mono> getJobInternalWithResponseAsync(String jobId, * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -8223,13 +8827,16 @@ public Mono> getJobInternalWithResponseAsync(String jobId, * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -8378,6 +8985,7 @@ public Mono> getJobInternalWithResponseAsync(String jobId, * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -8500,6 +9108,8 @@ public Response getJobInternalWithResponse(String jobId, RequestOpti * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -8536,7 +9146,7 @@ public Response getJobInternalWithResponse(String jobId, RequestOpti * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -8564,13 +9174,16 @@ public Response getJobInternalWithResponse(String jobId, RequestOpti * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -8631,6 +9244,12 @@ public Response getJobInternalWithResponse(String jobId, RequestOpti * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -8744,6 +9363,10 @@ public Response getJobInternalWithResponse(String jobId, RequestOpti * metadata (Optional): [ * (recursive schema, see above) * ] + * networkConfiguration (Optional): { + * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) + * } * } * } * @@ -8832,6 +9455,8 @@ public Mono> updateJobInternalWithResponseAsync(String jobId, Bin * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -8868,7 +9493,7 @@ public Mono> updateJobInternalWithResponseAsync(String jobId, Bin * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -8896,13 +9521,16 @@ public Mono> updateJobInternalWithResponseAsync(String jobId, Bin * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -8963,6 +9591,12 @@ public Mono> updateJobInternalWithResponseAsync(String jobId, Bin * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -9076,6 +9710,10 @@ public Mono> updateJobInternalWithResponseAsync(String jobId, Bin * metadata (Optional): [ * (recursive schema, see above) * ] + * networkConfiguration (Optional): { + * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) + * } * } * } * @@ -9173,6 +9811,12 @@ public Response updateJobInternalWithResponse(String jobId, BinaryData job * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -9289,6 +9933,8 @@ public Response updateJobInternalWithResponse(String jobId, BinaryData job * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -9318,7 +9964,7 @@ public Response updateJobInternalWithResponse(String jobId, BinaryData job * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -9346,13 +9992,16 @@ public Response updateJobInternalWithResponse(String jobId, BinaryData job * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -9501,6 +10150,7 @@ public Response updateJobInternalWithResponse(String jobId, BinaryData job * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -9636,6 +10286,12 @@ public Mono> replaceJobInternalWithResponseAsync(String jobId, Bi * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -9752,6 +10408,8 @@ public Mono> replaceJobInternalWithResponseAsync(String jobId, Bi * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -9781,7 +10439,7 @@ public Mono> replaceJobInternalWithResponseAsync(String jobId, Bi * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -9809,13 +10467,16 @@ public Mono> replaceJobInternalWithResponseAsync(String jobId, Bi * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -9964,6 +10625,7 @@ public Mono> replaceJobInternalWithResponseAsync(String jobId, Bi * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -10290,6 +10952,8 @@ public Response enableJobInternalWithResponse(String jobId, RequestOptions * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will terminate the Job even if the + * corresponding nodes have not fully processed the termination. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -10363,6 +11027,8 @@ public Mono> terminateJobInternalWithResponseAsync(String jobId, * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will terminate the Job even if the + * corresponding nodes have not fully processed the termination. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -10472,6 +11138,12 @@ public Response terminateJobInternalWithResponse(String jobId, RequestOpti * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -10588,6 +11260,8 @@ public Response terminateJobInternalWithResponse(String jobId, RequestOpti * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -10617,7 +11291,7 @@ public Response terminateJobInternalWithResponse(String jobId, RequestOpti * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -10645,13 +11319,16 @@ public Response terminateJobInternalWithResponse(String jobId, RequestOpti * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -10800,6 +11477,7 @@ public Response terminateJobInternalWithResponse(String jobId, RequestOpti * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -10876,6 +11554,12 @@ public Mono> createJobInternalWithResponseAsync(BinaryData job, R * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -10992,6 +11676,8 @@ public Mono> createJobInternalWithResponseAsync(BinaryData job, R * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -11021,7 +11707,7 @@ public Mono> createJobInternalWithResponseAsync(BinaryData job, R * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -11049,13 +11735,16 @@ public Mono> createJobInternalWithResponseAsync(BinaryData job, R * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -11204,6 +11893,7 @@ public Mono> createJobInternalWithResponseAsync(BinaryData job, R * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -11242,7 +11932,7 @@ public Response createJobInternalWithResponse(BinaryData job, RequestOptio * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -11288,6 +11978,12 @@ public Response createJobInternalWithResponse(BinaryData job, RequestOptio * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -11404,6 +12100,8 @@ public Response createJobInternalWithResponse(BinaryData job, RequestOptio * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -11433,7 +12131,7 @@ public Response createJobInternalWithResponse(BinaryData job, RequestOptio * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -11461,13 +12159,16 @@ public Response createJobInternalWithResponse(BinaryData job, RequestOptio * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -11616,6 +12317,7 @@ public Response createJobInternalWithResponse(BinaryData job, RequestOptio * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -11689,7 +12391,7 @@ private Mono> listJobsInternalSinglePageAsync(RequestO * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -11735,6 +12437,12 @@ private Mono> listJobsInternalSinglePageAsync(RequestO * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -11851,6 +12559,8 @@ private Mono> listJobsInternalSinglePageAsync(RequestO * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -11880,7 +12590,7 @@ private Mono> listJobsInternalSinglePageAsync(RequestO * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -11908,13 +12618,16 @@ private Mono> listJobsInternalSinglePageAsync(RequestO * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -12063,6 +12776,7 @@ private Mono> listJobsInternalSinglePageAsync(RequestO * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -12154,7 +12868,7 @@ public PagedFlux listJobsInternalAsync(RequestOptions requestOptions * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -12200,6 +12914,12 @@ public PagedFlux listJobsInternalAsync(RequestOptions requestOptions * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -12316,6 +13036,8 @@ public PagedFlux listJobsInternalAsync(RequestOptions requestOptions * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -12345,7 +13067,7 @@ public PagedFlux listJobsInternalAsync(RequestOptions requestOptions * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -12373,13 +13095,16 @@ public PagedFlux listJobsInternalAsync(RequestOptions requestOptions * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -12528,6 +13253,7 @@ public PagedFlux listJobsInternalAsync(RequestOptions requestOptions * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -12599,7 +13325,7 @@ private PagedResponse listJobsInternalSinglePage(RequestOptions requ * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -12645,6 +13371,12 @@ private PagedResponse listJobsInternalSinglePage(RequestOptions requ * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -12761,6 +13493,8 @@ private PagedResponse listJobsInternalSinglePage(RequestOptions requ * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -12790,7 +13524,7 @@ private PagedResponse listJobsInternalSinglePage(RequestOptions requ * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -12818,13 +13552,16 @@ private PagedResponse listJobsInternalSinglePage(RequestOptions requ * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -12973,6 +13710,7 @@ private PagedResponse listJobsInternalSinglePage(RequestOptions requ * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -13064,7 +13802,7 @@ public PagedIterable listJobsInternal(RequestOptions requestOptions) * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -13110,6 +13848,12 @@ public PagedIterable listJobsInternal(RequestOptions requestOptions) * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -13226,6 +13970,8 @@ public PagedIterable listJobsInternal(RequestOptions requestOptions) * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -13255,7 +14001,7 @@ public PagedIterable listJobsInternal(RequestOptions requestOptions) * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -13283,13 +14029,16 @@ public PagedIterable listJobsInternal(RequestOptions requestOptions) * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -13438,6 +14187,7 @@ public PagedIterable listJobsInternal(RequestOptions requestOptions) * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -13513,7 +14263,7 @@ private Mono> listJobsFromScheduleInternalSinglePageAs * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -13559,6 +14309,12 @@ private Mono> listJobsFromScheduleInternalSinglePageAs * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -13675,6 +14431,8 @@ private Mono> listJobsFromScheduleInternalSinglePageAs * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -13704,7 +14462,7 @@ private Mono> listJobsFromScheduleInternalSinglePageAs * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -13732,13 +14490,16 @@ private Mono> listJobsFromScheduleInternalSinglePageAs * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -13887,6 +14648,7 @@ private Mono> listJobsFromScheduleInternalSinglePageAs * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -13980,7 +14742,7 @@ public PagedFlux listJobsFromScheduleInternalAsync(String jobSchedul * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -14026,6 +14788,12 @@ public PagedFlux listJobsFromScheduleInternalAsync(String jobSchedul * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -14142,6 +14910,8 @@ public PagedFlux listJobsFromScheduleInternalAsync(String jobSchedul * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -14171,7 +14941,7 @@ public PagedFlux listJobsFromScheduleInternalAsync(String jobSchedul * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -14199,13 +14969,16 @@ public PagedFlux listJobsFromScheduleInternalAsync(String jobSchedul * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -14354,6 +15127,7 @@ public PagedFlux listJobsFromScheduleInternalAsync(String jobSchedul * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -14427,7 +15201,7 @@ private PagedResponse listJobsFromScheduleInternalSinglePage(String * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-jobs-in-a-job-schedule. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -14473,6 +15247,12 @@ private PagedResponse listJobsFromScheduleInternalSinglePage(String * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -14589,6 +15369,8 @@ private PagedResponse listJobsFromScheduleInternalSinglePage(String * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -14618,7 +15400,7 @@ private PagedResponse listJobsFromScheduleInternalSinglePage(String * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -14646,13 +15428,16 @@ private PagedResponse listJobsFromScheduleInternalSinglePage(String * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -14801,6 +15586,7 @@ private PagedResponse listJobsFromScheduleInternalSinglePage(String * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -14901,7 +15687,7 @@ public PagedIterable listJobsFromScheduleInternal(String jobSchedule * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * @@ -14998,7 +15784,7 @@ private Mono> listJobPreparationAndReleaseTaskStatusIn * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * @@ -15114,7 +15900,7 @@ public PagedFlux listJobPreparationAndReleaseTaskStatusInternalAsync * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * @@ -15210,7 +15996,7 @@ private PagedResponse listJobPreparationAndReleaseTaskStatusInternal * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-preparation-and-release-status. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * @@ -15547,6 +16333,8 @@ public Response jobScheduleExistsInternalWithResponse(String jobSchedul * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will delete the JobSchedule even if the + * corresponding nodes have not fully processed the deletion. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -15603,6 +16391,8 @@ public Mono> deleteJobScheduleInternalWithResponseAsync(String jo * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will delete the JobSchedule even if the + * corresponding nodes have not fully processed the deletion. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -15711,6 +16501,7 @@ public Response deleteJobScheduleInternalWithResponse(String jobScheduleId * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -15732,6 +16523,12 @@ public Response deleteJobScheduleInternalWithResponse(String jobScheduleId * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -15848,6 +16645,8 @@ public Response deleteJobScheduleInternalWithResponse(String jobScheduleId * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -15877,7 +16676,7 @@ public Response deleteJobScheduleInternalWithResponse(String jobScheduleId * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -15905,13 +16704,16 @@ public Response deleteJobScheduleInternalWithResponse(String jobScheduleId * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -16176,6 +16978,7 @@ public Mono> getJobScheduleInternalWithResponseAsync(String * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -16197,6 +17000,12 @@ public Mono> getJobScheduleInternalWithResponseAsync(String * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -16313,6 +17122,8 @@ public Mono> getJobScheduleInternalWithResponseAsync(String * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -16342,7 +17153,7 @@ public Mono> getJobScheduleInternalWithResponseAsync(String * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -16370,13 +17181,16 @@ public Mono> getJobScheduleInternalWithResponseAsync(String * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -16632,6 +17446,7 @@ public Response getJobScheduleInternalWithResponse(String jobSchedul * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -16653,6 +17468,12 @@ public Response getJobScheduleInternalWithResponse(String jobSchedul * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -16769,6 +17590,8 @@ public Response getJobScheduleInternalWithResponse(String jobSchedul * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -16798,7 +17621,7 @@ public Response getJobScheduleInternalWithResponse(String jobSchedul * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -16826,13 +17649,16 @@ public Response getJobScheduleInternalWithResponse(String jobSchedul * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -17067,6 +17893,7 @@ public Mono> updateJobScheduleInternalWithResponseAsync(String jo * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -17088,6 +17915,12 @@ public Mono> updateJobScheduleInternalWithResponseAsync(String jo * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -17204,6 +18037,8 @@ public Mono> updateJobScheduleInternalWithResponseAsync(String jo * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -17233,7 +18068,7 @@ public Mono> updateJobScheduleInternalWithResponseAsync(String jo * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -17261,13 +18096,16 @@ public Mono> updateJobScheduleInternalWithResponseAsync(String jo * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -17511,6 +18349,7 @@ public Response updateJobScheduleInternalWithResponse(String jobScheduleId * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -17532,6 +18371,12 @@ public Response updateJobScheduleInternalWithResponse(String jobScheduleId * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -17648,6 +18493,8 @@ public Response updateJobScheduleInternalWithResponse(String jobScheduleId * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -17677,7 +18524,7 @@ public Response updateJobScheduleInternalWithResponse(String jobScheduleId * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -17705,13 +18552,16 @@ public Response updateJobScheduleInternalWithResponse(String jobScheduleId * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -17980,6 +18830,7 @@ public Mono> replaceJobScheduleInternalWithResponseAsync(String j * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -18001,6 +18852,12 @@ public Mono> replaceJobScheduleInternalWithResponseAsync(String j * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -18117,6 +18974,8 @@ public Mono> replaceJobScheduleInternalWithResponseAsync(String j * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -18146,7 +19005,7 @@ public Mono> replaceJobScheduleInternalWithResponseAsync(String j * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -18174,13 +19033,16 @@ public Mono> replaceJobScheduleInternalWithResponseAsync(String j * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -18589,6 +19451,8 @@ public Response enableJobScheduleInternalWithResponse(String jobScheduleId * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will terminate the JobSchedule even if the + * corresponding nodes have not fully processed the termination. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -18639,6 +19503,8 @@ public Mono> terminateJobScheduleInternalWithResponseAsync(String * timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.". + * forceBooleanNoIf true, the server will terminate the JobSchedule even if the + * corresponding nodes have not fully processed the termination. The default value is false. * * You can add these to a request with {@link RequestOptions#addQueryParam} *

Header Parameters

@@ -18714,6 +19580,7 @@ public Response terminateJobScheduleInternalWithResponse(String jobSchedul * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -18735,6 +19602,12 @@ public Response terminateJobScheduleInternalWithResponse(String jobSchedul * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -18851,6 +19724,8 @@ public Response terminateJobScheduleInternalWithResponse(String jobSchedul * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -18880,7 +19755,7 @@ public Response terminateJobScheduleInternalWithResponse(String jobSchedul * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -18908,13 +19783,16 @@ public Response terminateJobScheduleInternalWithResponse(String jobSchedul * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -19121,6 +19999,7 @@ public Mono> createJobScheduleInternalWithResponseAsync(BinaryDat * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -19142,6 +20021,12 @@ public Mono> createJobScheduleInternalWithResponseAsync(BinaryDat * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -19258,6 +20143,8 @@ public Mono> createJobScheduleInternalWithResponseAsync(BinaryDat * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -19287,7 +20174,7 @@ public Mono> createJobScheduleInternalWithResponseAsync(BinaryDat * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -19315,13 +20202,16 @@ public Mono> createJobScheduleInternalWithResponseAsync(BinaryDat * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -19507,7 +20397,7 @@ public Response createJobScheduleInternalWithResponse(BinaryData jobSchedu * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -19545,6 +20435,7 @@ public Response createJobScheduleInternalWithResponse(BinaryData jobSchedu * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -19566,6 +20457,12 @@ public Response createJobScheduleInternalWithResponse(BinaryData jobSchedu * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -19682,6 +20579,8 @@ public Response createJobScheduleInternalWithResponse(BinaryData jobSchedu * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -19711,7 +20610,7 @@ public Response createJobScheduleInternalWithResponse(BinaryData jobSchedu * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -19739,13 +20638,16 @@ public Response createJobScheduleInternalWithResponse(BinaryData jobSchedu * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -19957,7 +20859,7 @@ private Mono> listJobSchedulesInternalSinglePageAsync( * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -19995,6 +20897,7 @@ private Mono> listJobSchedulesInternalSinglePageAsync( * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -20016,6 +20919,12 @@ private Mono> listJobSchedulesInternalSinglePageAsync( * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -20132,6 +21041,8 @@ private Mono> listJobSchedulesInternalSinglePageAsync( * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -20161,7 +21072,7 @@ private Mono> listJobSchedulesInternalSinglePageAsync( * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -20189,13 +21100,16 @@ private Mono> listJobSchedulesInternalSinglePageAsync( * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -20425,7 +21339,7 @@ public PagedFlux listJobSchedulesInternalAsync(RequestOptions reques * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -20463,6 +21377,7 @@ public PagedFlux listJobSchedulesInternalAsync(RequestOptions reques * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -20484,6 +21399,12 @@ public PagedFlux listJobSchedulesInternalAsync(RequestOptions reques * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -20600,6 +21521,8 @@ public PagedFlux listJobSchedulesInternalAsync(RequestOptions reques * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -20629,7 +21552,7 @@ public PagedFlux listJobSchedulesInternalAsync(RequestOptions reques * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -20657,13 +21580,16 @@ public PagedFlux listJobSchedulesInternalAsync(RequestOptions reques * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -20873,7 +21799,7 @@ private PagedResponse listJobSchedulesInternalSinglePage(RequestOpti * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-job-schedules. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -20911,6 +21837,7 @@ private PagedResponse listJobSchedulesInternalSinglePage(RequestOpti * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -20932,6 +21859,12 @@ private PagedResponse listJobSchedulesInternalSinglePage(RequestOpti * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -21048,6 +21981,8 @@ private PagedResponse listJobSchedulesInternalSinglePage(RequestOpti * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -21077,7 +22012,7 @@ private PagedResponse listJobSchedulesInternalSinglePage(RequestOpti * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -21105,13 +22040,16 @@ private PagedResponse listJobSchedulesInternalSinglePage(RequestOpti * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -21383,6 +22321,12 @@ public PagedIterable listJobSchedulesInternal(RequestOptions request * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -21545,6 +22489,12 @@ public Mono> createTaskInternalWithResponseAsync(String jobId, Bi * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -21668,7 +22618,7 @@ public Response createTaskInternalWithResponse(String jobId, BinaryData ta * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-tasks. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-tasks. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -21724,6 +22674,12 @@ public Response createTaskInternalWithResponse(String jobId, BinaryData ta * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -21897,7 +22853,7 @@ private Mono> listTasksInternalSinglePageAsync(String * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-tasks. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-tasks. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -21953,6 +22909,12 @@ private Mono> listTasksInternalSinglePageAsync(String * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -22143,7 +23105,7 @@ public PagedFlux listTasksInternalAsync(String jobId, RequestOptions * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-tasks. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-tasks. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -22199,6 +23161,12 @@ public PagedFlux listTasksInternalAsync(String jobId, RequestOptions * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -22369,7 +23337,7 @@ private PagedResponse listTasksInternalSinglePage(String jobId, Requ * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-tasks. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-tasks. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * $expandList<String>NoAn OData $expand clause. In the form of "," @@ -22425,6 +23393,12 @@ private PagedResponse listTasksInternalSinglePage(String jobId, Requ * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -22666,6 +23640,12 @@ public PagedIterable listTasksInternal(String jobId, RequestOptions * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -22876,6 +23856,12 @@ public Mono> createTaskCollectionInternalWithResponseAsync( * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -23218,6 +24204,12 @@ public Response deleteTaskInternalWithResponse(String jobId, String taskId * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -23463,6 +24455,12 @@ public Mono> getTaskInternalWithResponseAsync(String jobId, * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -23700,6 +24698,12 @@ public Response getTaskInternalWithResponse(String jobId, String tas * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -23936,6 +24940,12 @@ public Mono> replaceTaskInternalWithResponseAsync(String jobId, S * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -24909,7 +25919,7 @@ public Response getTaskFilePropertiesInternalWithResponse(String jobId, St * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-task-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-task-files. * recursiveBooleanNoWhether to list children of the Task directory. This * parameter can be used in * combination with the filter parameter to list specific type of files. @@ -24926,7 +25936,7 @@ public Response getTaskFilePropertiesInternalWithResponse(String jobId, St * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -24969,7 +25979,7 @@ private Mono> listTaskFilesInternalSinglePageAsync(Str * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-task-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-task-files. * recursiveBooleanNoWhether to list children of the Task directory. This * parameter can be used in * combination with the filter parameter to list specific type of files. @@ -24986,7 +25996,7 @@ private Mono> listTaskFilesInternalSinglePageAsync(Str * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -25048,7 +26058,7 @@ public PagedFlux listTaskFilesInternalAsync(String jobId, String tas * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-task-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-task-files. * recursiveBooleanNoWhether to list children of the Task directory. This * parameter can be used in * combination with the filter parameter to list specific type of files. @@ -25065,7 +26075,7 @@ public PagedFlux listTaskFilesInternalAsync(String jobId, String tas * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -25107,7 +26117,7 @@ private PagedResponse listTaskFilesInternalSinglePage(String jobId, * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-task-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-task-files. * recursiveBooleanNoWhether to list children of the Task directory. This * parameter can be used in * combination with the filter parameter to list specific type of files. @@ -25124,7 +26134,7 @@ private PagedResponse listTaskFilesInternalSinglePage(String jobId, * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -25409,23 +26419,210 @@ public Mono> replaceNodeUserInternalWithResponseAsync(String pool * * * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the machine on which you want to update a user Account. - * @param userName The name of the user Account to update. - * @param content The options to use for updating the user. + * @param nodeId The ID of the machine on which you want to update a user Account. + * @param userName The name of the user Account to update. + * @param content The options to use for updating the user. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response replaceNodeUserInternalWithResponse(String poolId, String nodeId, String userName, + BinaryData content, RequestOptions requestOptions) { + final String contentType = "application/json; odata=minimalmetadata"; + final String accept = "application/json"; + return service.replaceNodeUserInternalSync(this.getEndpoint(), this.getServiceVersion().getVersion(), + contentType, poolId, nodeId, userName, accept, content, requestOptions, Context.NONE); + } + + /** + * Gets information about the specified Compute Node. + *

Query Parameters

+ * + * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
$selectList<String>NoAn OData $select clause. In the form of "," + * separated string.
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     id: String (Optional)
+     *     url: String (Optional)
+     *     state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional)
+     *     schedulingState: String(enabled/disabled) (Optional)
+     *     stateTransitionTime: OffsetDateTime (Optional)
+     *     lastBootTime: OffsetDateTime (Optional)
+     *     allocationTime: OffsetDateTime (Optional)
+     *     ipAddress: String (Optional)
+     *     affinityId: String (Optional)
+     *     vmSize: String (Optional)
+     *     totalTasksRun: Integer (Optional)
+     *     runningTasksCount: Integer (Optional)
+     *     runningTaskSlotsCount: Integer (Optional)
+     *     totalTasksSucceeded: Integer (Optional)
+     *     recentTasks (Optional): [
+     *          (Optional){
+     *             taskUrl: String (Optional)
+     *             jobId: String (Optional)
+     *             taskId: String (Optional)
+     *             subtaskId: Integer (Optional)
+     *             taskState: String(active/preparing/running/completed) (Required)
+     *             executionInfo (Optional): {
+     *                 startTime: OffsetDateTime (Optional)
+     *                 endTime: OffsetDateTime (Optional)
+     *                 exitCode: Integer (Optional)
+     *                 containerInfo (Optional): {
+     *                     containerId: String (Optional)
+     *                     state: String (Optional)
+     *                     error: String (Optional)
+     *                 }
+     *                 failureInfo (Optional): {
+     *                     category: String(usererror/servererror) (Required)
+     *                     code: String (Optional)
+     *                     message: String (Optional)
+     *                     details (Optional): [
+     *                          (Optional){
+     *                             name: String (Optional)
+     *                             value: String (Optional)
+     *                         }
+     *                     ]
+     *                 }
+     *                 retryCount: int (Required)
+     *                 lastRetryTime: OffsetDateTime (Optional)
+     *                 requeueCount: int (Required)
+     *                 lastRequeueTime: OffsetDateTime (Optional)
+     *                 result: String(success/failure) (Optional)
+     *             }
+     *         }
+     *     ]
+     *     startTask (Optional): {
+     *         commandLine: String (Required)
+     *         containerSettings (Optional): {
+     *             containerRunOptions: String (Optional)
+     *             imageName: String (Required)
+     *             registry (Optional): {
+     *                 username: String (Optional)
+     *                 password: String (Optional)
+     *                 registryServer: String (Optional)
+     *                 identityReference (Optional): {
+     *                     resourceId: String (Optional)
+     *                 }
+     *             }
+     *             workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional)
+     *             containerHostBatchBindMounts (Optional): [
+     *                  (Optional){
+     *                     source: String(regional/zonal) (Optional)
+     *                     isReadOnly: Boolean (Optional)
+     *                 }
+     *             ]
+     *         }
+     *         resourceFiles (Optional): [
+     *              (Optional){
+     *                 autoStorageContainerName: String (Optional)
+     *                 storageContainerUrl: String (Optional)
+     *                 httpUrl: String (Optional)
+     *                 blobPrefix: String (Optional)
+     *                 filePath: String (Optional)
+     *                 fileMode: String (Optional)
+     *                 identityReference (Optional): (recursive schema, see identityReference above)
+     *             }
+     *         ]
+     *         environmentSettings (Optional): [
+     *              (Optional){
+     *                 name: String (Required)
+     *                 value: String (Optional)
+     *             }
+     *         ]
+     *         userIdentity (Optional): {
+     *             username: String (Optional)
+     *             autoUser (Optional): {
+     *                 scope: String(task/pool) (Optional)
+     *                 elevationLevel: String(nonadmin/admin) (Optional)
+     *             }
+     *         }
+     *         maxTaskRetryCount: Integer (Optional)
+     *         waitForSuccess: Boolean (Optional)
+     *     }
+     *     startTaskInfo (Optional): {
+     *         state: String(running/completed) (Required)
+     *         startTime: OffsetDateTime (Required)
+     *         endTime: OffsetDateTime (Optional)
+     *         exitCode: Integer (Optional)
+     *         containerInfo (Optional): (recursive schema, see containerInfo above)
+     *         failureInfo (Optional): (recursive schema, see failureInfo above)
+     *         retryCount: int (Required)
+     *         lastRetryTime: OffsetDateTime (Optional)
+     *         result: String(success/failure) (Optional)
+     *     }
+     *     errors (Optional): [
+     *          (Optional){
+     *             code: String (Optional)
+     *             message: String (Optional)
+     *             errorDetails (Optional): [
+     *                 (recursive schema, see above)
+     *             ]
+     *         }
+     *     ]
+     *     isDedicated: Boolean (Optional)
+     *     endpointConfiguration (Optional): {
+     *         inboundEndpoints (Required): [
+     *              (Required){
+     *                 name: String (Required)
+     *                 protocol: String(tcp/udp) (Required)
+     *                 publicIPAddress: String (Required)
+     *                 publicFQDN: String (Required)
+     *                 frontendPort: int (Required)
+     *                 backendPort: int (Required)
+     *             }
+     *         ]
+     *     }
+     *     nodeAgentInfo (Optional): {
+     *         version: String (Required)
+     *         lastUpdateTime: OffsetDateTime (Required)
+     *     }
+     *     virtualMachineInfo (Optional): {
+     *         imageReference (Optional): {
+     *             publisher: String (Optional)
+     *             offer: String (Optional)
+     *             sku: String (Optional)
+     *             version: String (Optional)
+     *             virtualMachineImageId: String (Optional)
+     *             exactVersion: String (Optional)
+     *             sharedGalleryImageId: String (Optional)
+     *             communityGalleryImageId: String (Optional)
+     *         }
+     *         scaleSetVmResourceId: String (Optional)
+     *     }
+     * }
+     * }
+     * 
+ * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to get information about. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @return the {@link Response}. + * @return information about the specified Compute Node along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response replaceNodeUserInternalWithResponse(String poolId, String nodeId, String userName, - BinaryData content, RequestOptions requestOptions) { - final String contentType = "application/json; odata=minimalmetadata"; + public Mono> getNodeInternalWithResponseAsync(String poolId, String nodeId, + RequestOptions requestOptions) { final String accept = "application/json"; - return service.replaceNodeUserInternalSync(this.getEndpoint(), this.getServiceVersion().getVersion(), - contentType, poolId, nodeId, userName, accept, content, requestOptions, Context.NONE); + return FluxUtil.withContext(context -> service.getNodeInternal(this.getEndpoint(), + this.getServiceVersion().getVersion(), poolId, nodeId, accept, requestOptions, context)); } /** @@ -25448,7 +26645,7 @@ public Response replaceNodeUserInternalWithResponse(String poolId, String * { * id: String (Optional) * url: String (Optional) - * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional) + * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional) * schedulingState: String(enabled/disabled) (Optional) * stateTransitionTime: OffsetDateTime (Optional) * lastBootTime: OffsetDateTime (Optional) @@ -25509,6 +26706,12 @@ public Response replaceNodeUserInternalWithResponse(String poolId, String * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -25582,6 +26785,8 @@ public Response replaceNodeUserInternalWithResponse(String poolId, String * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * scaleSetVmResourceId: String (Optional) * } @@ -25596,19 +26801,246 @@ public Response replaceNodeUserInternalWithResponse(String poolId, String * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @return information about the specified Compute Node along with {@link Response} on successful completion of - * {@link Mono}. + * @return information about the specified Compute Node along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getNodeInternalWithResponse(String poolId, String nodeId, + RequestOptions requestOptions) { + final String accept = "application/json"; + return service.getNodeInternalSync(this.getEndpoint(), this.getServiceVersion().getVersion(), poolId, nodeId, + accept, requestOptions, Context.NONE); + } + + /** + * Restarts the specified Compute Node. + * + * You can restart a Compute Node only if it is in an idle or running state. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Content-TypeStringNoThe content type. Allowed values: "application/json; + * odata=minimalmetadata".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     nodeRebootOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
+     * }
+     * }
+     * 
+ * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> rebootNodeInternalWithResponseAsync(String poolId, String nodeId, + RequestOptions requestOptions) { + final String accept = "application/json"; + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + if (requestLocal.getBody() != null && requestLocal.getHeaders().get(HttpHeaderName.CONTENT_TYPE) == null) { + requestLocal.getHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/json; odata=minimalmetadata"); + } + }); + return FluxUtil.withContext(context -> service.rebootNodeInternal(this.getEndpoint(), + this.getServiceVersion().getVersion(), poolId, nodeId, accept, requestOptionsLocal, context)); + } + + /** + * Restarts the specified Compute Node. + * + * You can restart a Compute Node only if it is in an idle or running state. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Content-TypeStringNoThe content type. Allowed values: "application/json; + * odata=minimalmetadata".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     nodeRebootOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
+     * }
+     * }
+     * 
+ * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response rebootNodeInternalWithResponse(String poolId, String nodeId, RequestOptions requestOptions) { + final String accept = "application/json"; + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + if (requestLocal.getBody() != null && requestLocal.getHeaders().get(HttpHeaderName.CONTENT_TYPE) == null) { + requestLocal.getHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/json; odata=minimalmetadata"); + } + }); + return service.rebootNodeInternalSync(this.getEndpoint(), this.getServiceVersion().getVersion(), poolId, nodeId, + accept, requestOptionsLocal, Context.NONE); + } + + /** + * Starts the specified Compute Node. + * + * You can start a Compute Node only if it has been deallocated. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> startNodeInternalWithResponseAsync(String poolId, String nodeId, + RequestOptions requestOptions) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.startNodeInternal(this.getEndpoint(), + this.getServiceVersion().getVersion(), poolId, nodeId, accept, requestOptions, context)); + } + + /** + * Starts the specified Compute Node. + * + * You can start a Compute Node only if it has been deallocated. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response startNodeInternalWithResponse(String poolId, String nodeId, RequestOptions requestOptions) { + final String accept = "application/json"; + return service.startNodeInternalSync(this.getEndpoint(), this.getServiceVersion().getVersion(), poolId, nodeId, + accept, requestOptions, Context.NONE); + } + + /** + * Reinstalls the operating system on the specified Compute Node. + * + * You can reinstall the operating system on a Compute Node only if it is in an + * idle or running state. This API can be invoked only on Pools created with the + * cloud service configuration property. + *

Query Parameters

+ * + * + * + * + *
Query Parameters
NameTypeRequiredDescription
timeOutIntegerNoThe maximum time that the server can spend processing the + * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used + * instead.".
+ * You can add these to a request with {@link RequestOptions#addQueryParam} + *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Content-TypeStringNoThe content type. Allowed values: "application/json; + * odata=minimalmetadata".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     nodeReimageOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
+     * }
+     * }
+     * 
+ * + * @param poolId The ID of the Pool that contains the Compute Node. + * @param nodeId The ID of the Compute Node that you want to restart. + * @param requestOptions The options to configure the HTTP request before HTTP client sends it. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getNodeInternalWithResponseAsync(String poolId, String nodeId, + public Mono> reimageNodeInternalWithResponseAsync(String poolId, String nodeId, RequestOptions requestOptions) { final String accept = "application/json"; - return FluxUtil.withContext(context -> service.getNodeInternal(this.getEndpoint(), - this.getServiceVersion().getVersion(), poolId, nodeId, accept, requestOptions, context)); + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + if (requestLocal.getBody() != null && requestLocal.getHeaders().get(HttpHeaderName.CONTENT_TYPE) == null) { + requestLocal.getHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/json; odata=minimalmetadata"); + } + }); + return FluxUtil.withContext(context -> service.reimageNodeInternal(this.getEndpoint(), + this.getServiceVersion().getVersion(), poolId, nodeId, accept, requestOptionsLocal, context)); } /** - * Gets information about the specified Compute Node. + * Reinstalls the operating system on the specified Compute Node. + * + * You can reinstall the operating system on a Compute Node only if it is in an + * idle or running state. This API can be invoked only on Pools created with the + * cloud service configuration property. *

Query Parameters

* * @@ -25616,179 +27048,52 @@ public Mono> getNodeInternalWithResponseAsync(String poolId * - * *
Query Parameters
timeOutIntegerNoThe maximum time that the server can spend processing the * request, in seconds. The default is 30 seconds. If the value is larger than 30, the default will be used * instead.".
$selectList<String>NoAn OData $select clause. In the form of "," - * separated string.
* You can add these to a request with {@link RequestOptions#addQueryParam} - *

Response Body Schema

+ *

Header Parameters

+ * + * + * + * + *
Header Parameters
NameTypeRequiredDescription
Content-TypeStringNoThe content type. Allowed values: "application/json; + * odata=minimalmetadata".
+ * You can add these to a request with {@link RequestOptions#addHeader} + *

Request Body Schema

* *
      * {@code
      * {
-     *     id: String (Optional)
-     *     url: String (Optional)
-     *     state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional)
-     *     schedulingState: String(enabled/disabled) (Optional)
-     *     stateTransitionTime: OffsetDateTime (Optional)
-     *     lastBootTime: OffsetDateTime (Optional)
-     *     allocationTime: OffsetDateTime (Optional)
-     *     ipAddress: String (Optional)
-     *     affinityId: String (Optional)
-     *     vmSize: String (Optional)
-     *     totalTasksRun: Integer (Optional)
-     *     runningTasksCount: Integer (Optional)
-     *     runningTaskSlotsCount: Integer (Optional)
-     *     totalTasksSucceeded: Integer (Optional)
-     *     recentTasks (Optional): [
-     *          (Optional){
-     *             taskUrl: String (Optional)
-     *             jobId: String (Optional)
-     *             taskId: String (Optional)
-     *             subtaskId: Integer (Optional)
-     *             taskState: String(active/preparing/running/completed) (Required)
-     *             executionInfo (Optional): {
-     *                 startTime: OffsetDateTime (Optional)
-     *                 endTime: OffsetDateTime (Optional)
-     *                 exitCode: Integer (Optional)
-     *                 containerInfo (Optional): {
-     *                     containerId: String (Optional)
-     *                     state: String (Optional)
-     *                     error: String (Optional)
-     *                 }
-     *                 failureInfo (Optional): {
-     *                     category: String(usererror/servererror) (Required)
-     *                     code: String (Optional)
-     *                     message: String (Optional)
-     *                     details (Optional): [
-     *                          (Optional){
-     *                             name: String (Optional)
-     *                             value: String (Optional)
-     *                         }
-     *                     ]
-     *                 }
-     *                 retryCount: int (Required)
-     *                 lastRetryTime: OffsetDateTime (Optional)
-     *                 requeueCount: int (Required)
-     *                 lastRequeueTime: OffsetDateTime (Optional)
-     *                 result: String(success/failure) (Optional)
-     *             }
-     *         }
-     *     ]
-     *     startTask (Optional): {
-     *         commandLine: String (Required)
-     *         containerSettings (Optional): {
-     *             containerRunOptions: String (Optional)
-     *             imageName: String (Required)
-     *             registry (Optional): {
-     *                 username: String (Optional)
-     *                 password: String (Optional)
-     *                 registryServer: String (Optional)
-     *                 identityReference (Optional): {
-     *                     resourceId: String (Optional)
-     *                 }
-     *             }
-     *             workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional)
-     *         }
-     *         resourceFiles (Optional): [
-     *              (Optional){
-     *                 autoStorageContainerName: String (Optional)
-     *                 storageContainerUrl: String (Optional)
-     *                 httpUrl: String (Optional)
-     *                 blobPrefix: String (Optional)
-     *                 filePath: String (Optional)
-     *                 fileMode: String (Optional)
-     *                 identityReference (Optional): (recursive schema, see identityReference above)
-     *             }
-     *         ]
-     *         environmentSettings (Optional): [
-     *              (Optional){
-     *                 name: String (Required)
-     *                 value: String (Optional)
-     *             }
-     *         ]
-     *         userIdentity (Optional): {
-     *             username: String (Optional)
-     *             autoUser (Optional): {
-     *                 scope: String(task/pool) (Optional)
-     *                 elevationLevel: String(nonadmin/admin) (Optional)
-     *             }
-     *         }
-     *         maxTaskRetryCount: Integer (Optional)
-     *         waitForSuccess: Boolean (Optional)
-     *     }
-     *     startTaskInfo (Optional): {
-     *         state: String(running/completed) (Required)
-     *         startTime: OffsetDateTime (Required)
-     *         endTime: OffsetDateTime (Optional)
-     *         exitCode: Integer (Optional)
-     *         containerInfo (Optional): (recursive schema, see containerInfo above)
-     *         failureInfo (Optional): (recursive schema, see failureInfo above)
-     *         retryCount: int (Required)
-     *         lastRetryTime: OffsetDateTime (Optional)
-     *         result: String(success/failure) (Optional)
-     *     }
-     *     errors (Optional): [
-     *          (Optional){
-     *             code: String (Optional)
-     *             message: String (Optional)
-     *             errorDetails (Optional): [
-     *                 (recursive schema, see above)
-     *             ]
-     *         }
-     *     ]
-     *     isDedicated: Boolean (Optional)
-     *     endpointConfiguration (Optional): {
-     *         inboundEndpoints (Required): [
-     *              (Required){
-     *                 name: String (Required)
-     *                 protocol: String(tcp/udp) (Required)
-     *                 publicIPAddress: String (Required)
-     *                 publicFQDN: String (Required)
-     *                 frontendPort: int (Required)
-     *                 backendPort: int (Required)
-     *             }
-     *         ]
-     *     }
-     *     nodeAgentInfo (Optional): {
-     *         version: String (Required)
-     *         lastUpdateTime: OffsetDateTime (Required)
-     *     }
-     *     virtualMachineInfo (Optional): {
-     *         imageReference (Optional): {
-     *             publisher: String (Optional)
-     *             offer: String (Optional)
-     *             sku: String (Optional)
-     *             version: String (Optional)
-     *             virtualMachineImageId: String (Optional)
-     *             exactVersion: String (Optional)
-     *         }
-     *         scaleSetVmResourceId: String (Optional)
-     *     }
+     *     nodeReimageOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
      * }
      * }
      * 
* * @param poolId The ID of the Pool that contains the Compute Node. - * @param nodeId The ID of the Compute Node that you want to get information about. + * @param nodeId The ID of the Compute Node that you want to restart. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @return information about the specified Compute Node along with {@link Response}. + * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getNodeInternalWithResponse(String poolId, String nodeId, - RequestOptions requestOptions) { + public Response reimageNodeInternalWithResponse(String poolId, String nodeId, RequestOptions requestOptions) { final String accept = "application/json"; - return service.getNodeInternalSync(this.getEndpoint(), this.getServiceVersion().getVersion(), poolId, nodeId, - accept, requestOptions, Context.NONE); + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + if (requestLocal.getBody() != null && requestLocal.getHeaders().get(HttpHeaderName.CONTENT_TYPE) == null) { + requestLocal.getHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/json; odata=minimalmetadata"); + } + }); + return service.reimageNodeInternalSync(this.getEndpoint(), this.getServiceVersion().getVersion(), poolId, + nodeId, accept, requestOptionsLocal, Context.NONE); } /** - * Restarts the specified Compute Node. + * Deallocates the specified Compute Node. * - * You can restart a Compute Node only if it is in an idle or running state. + * You can deallocate a Compute Node only if it is in an idle or running state. *

Query Parameters

* * @@ -25811,7 +27116,7 @@ public Response getNodeInternalWithResponse(String poolId, String no *
      * {@code
      * {
-     *     nodeRebootOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
+     *     nodeDeallocateOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
      * }
      * }
      * 
@@ -25826,7 +27131,7 @@ public Response getNodeInternalWithResponse(String poolId, String no * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> rebootNodeInternalWithResponseAsync(String poolId, String nodeId, + public Mono> deallocateNodeInternalWithResponseAsync(String poolId, String nodeId, RequestOptions requestOptions) { final String accept = "application/json"; RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; @@ -25835,14 +27140,14 @@ public Mono> rebootNodeInternalWithResponseAsync(String poolId, S requestLocal.getHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/json; odata=minimalmetadata"); } }); - return FluxUtil.withContext(context -> service.rebootNodeInternal(this.getEndpoint(), + return FluxUtil.withContext(context -> service.deallocateNodeInternal(this.getEndpoint(), this.getServiceVersion().getVersion(), poolId, nodeId, accept, requestOptionsLocal, context)); } /** - * Restarts the specified Compute Node. + * Deallocates the specified Compute Node. * - * You can restart a Compute Node only if it is in an idle or running state. + * You can deallocate a Compute Node only if it is in an idle or running state. *

Query Parameters

*
Query Parameters
* @@ -25865,7 +27170,7 @@ public Mono> rebootNodeInternalWithResponseAsync(String poolId, S *
      * {@code
      * {
-     *     nodeRebootOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
+     *     nodeDeallocateOption: String(requeue/terminate/taskcompletion/retaineddata) (Optional)
      * }
      * }
      * 
@@ -25880,7 +27185,8 @@ public Mono> rebootNodeInternalWithResponseAsync(String poolId, S * @return the {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response rebootNodeInternalWithResponse(String poolId, String nodeId, RequestOptions requestOptions) { + public Response deallocateNodeInternalWithResponse(String poolId, String nodeId, + RequestOptions requestOptions) { final String accept = "application/json"; RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; requestOptionsLocal.addRequestCallback(requestLocal -> { @@ -25888,8 +27194,8 @@ public Response rebootNodeInternalWithResponse(String poolId, String nodeI requestLocal.getHeaders().set(HttpHeaderName.CONTENT_TYPE, "application/json; odata=minimalmetadata"); } }); - return service.rebootNodeInternalSync(this.getEndpoint(), this.getServiceVersion().getVersion(), poolId, nodeId, - accept, requestOptionsLocal, Context.NONE); + return service.deallocateNodeInternalSync(this.getEndpoint(), this.getServiceVersion().getVersion(), poolId, + nodeId, accept, requestOptionsLocal, Context.NONE); } /** @@ -26069,9 +27375,8 @@ public Response enableNodeSchedulingInternalWithResponse(String poolId, St /** * Gets the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node. This API can be - * invoked only on Pools created with the virtual machine configuration property. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node. *

Query Parameters

*
Query Parameters
* @@ -26101,9 +27406,9 @@ public Response enableNodeSchedulingInternalWithResponse(String poolId, St * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node along with {@link Response} on successful completion - * of {@link Mono}. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono> getNodeRemoteLoginSettingsInternalWithResponseAsync(String poolId, String nodeId, @@ -26116,9 +27421,8 @@ public Mono> getNodeRemoteLoginSettingsInternalWithResponse /** * Gets the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node. This API can be - * invoked only on Pools created with the virtual machine configuration property. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node. *

Query Parameters

*
Query Parameters
* @@ -26148,8 +27452,8 @@ public Mono> getNodeRemoteLoginSettingsInternalWithResponse * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return the settings required for remote login to a Compute Node. * - * Before you can remotely login to a Compute Node using the remote login - * settings, you must create a user Account on the Compute Node along with {@link Response}. + * Before you can remotely login to a Compute Node using the remote login settings, + * you must create a user Account on the Compute Node along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Response getNodeRemoteLoginSettingsInternalWithResponse(String poolId, String nodeId, @@ -26301,7 +27605,7 @@ public Response uploadNodeLogsInternalWithResponse(String poolId, St * applications can be returned. * + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. * *
Query Parameters
$filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool.
$selectList<String>NoAn OData $select clause. In the form of "," * separated string.
@@ -26313,7 +27617,7 @@ public Response uploadNodeLogsInternalWithResponse(String poolId, St * { * id: String (Optional) * url: String (Optional) - * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional) + * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional) * schedulingState: String(enabled/disabled) (Optional) * stateTransitionTime: OffsetDateTime (Optional) * lastBootTime: OffsetDateTime (Optional) @@ -26374,6 +27678,12 @@ public Response uploadNodeLogsInternalWithResponse(String poolId, St * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -26447,6 +27757,8 @@ public Response uploadNodeLogsInternalWithResponse(String poolId, St * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * scaleSetVmResourceId: String (Optional) * } @@ -26488,7 +27800,7 @@ private Mono> listNodesInternalSinglePageAsync(String * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * @@ -26500,7 +27812,7 @@ private Mono> listNodesInternalSinglePageAsync(String * { * id: String (Optional) * url: String (Optional) - * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional) + * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional) * schedulingState: String(enabled/disabled) (Optional) * stateTransitionTime: OffsetDateTime (Optional) * lastBootTime: OffsetDateTime (Optional) @@ -26561,6 +27873,12 @@ private Mono> listNodesInternalSinglePageAsync(String * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -26634,6 +27952,8 @@ private Mono> listNodesInternalSinglePageAsync(String * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * scaleSetVmResourceId: String (Optional) * } @@ -26692,7 +28012,7 @@ public PagedFlux listNodesInternalAsync(String poolId, RequestOption * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * @@ -26704,7 +28024,7 @@ public PagedFlux listNodesInternalAsync(String poolId, RequestOption * { * id: String (Optional) * url: String (Optional) - * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional) + * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional) * schedulingState: String(enabled/disabled) (Optional) * stateTransitionTime: OffsetDateTime (Optional) * lastBootTime: OffsetDateTime (Optional) @@ -26765,6 +28085,12 @@ public PagedFlux listNodesInternalAsync(String poolId, RequestOption * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -26838,6 +28164,8 @@ public PagedFlux listNodesInternalAsync(String poolId, RequestOption * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * scaleSetVmResourceId: String (Optional) * } @@ -26876,7 +28204,7 @@ private PagedResponse listNodesInternalSinglePage(String poolId, Req * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-nodes-in-a-pool. * $selectList<String>NoAn OData $select clause. In the form of "," * separated string. * @@ -26888,7 +28216,7 @@ private PagedResponse listNodesInternalSinglePage(String poolId, Req * { * id: String (Optional) * url: String (Optional) - * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional) + * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional) * schedulingState: String(enabled/disabled) (Optional) * stateTransitionTime: OffsetDateTime (Optional) * lastBootTime: OffsetDateTime (Optional) @@ -26949,6 +28277,12 @@ private PagedResponse listNodesInternalSinglePage(String poolId, Req * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -27022,6 +28356,8 @@ private PagedResponse listNodesInternalSinglePage(String poolId, Req * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * scaleSetVmResourceId: String (Optional) * } @@ -27845,7 +29181,7 @@ public Response getNodeFilePropertiesInternalWithResponse(String poolId, S * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. * recursiveBooleanNoWhether to list children of a directory. * * You can add these to a request with {@link RequestOptions#addQueryParam} @@ -27860,7 +29196,7 @@ public Response getNodeFilePropertiesInternalWithResponse(String poolId, S * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -27903,7 +29239,7 @@ private Mono> listNodeFilesInternalSinglePageAsync(Str * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. * recursiveBooleanNoWhether to list children of a directory. * * You can add these to a request with {@link RequestOptions#addQueryParam} @@ -27918,7 +29254,7 @@ private Mono> listNodeFilesInternalSinglePageAsync(Str * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -27980,7 +29316,7 @@ public PagedFlux listNodeFilesInternalAsync(String poolId, String no * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. * recursiveBooleanNoWhether to list children of a directory. * * You can add these to a request with {@link RequestOptions#addQueryParam} @@ -27995,7 +29331,7 @@ public PagedFlux listNodeFilesInternalAsync(String poolId, String no * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -28037,7 +29373,7 @@ private PagedResponse listNodeFilesInternalSinglePage(String poolId, * applications can be returned. * $filterStringNoAn OData $filter clause. For more information on constructing * this filter, see - * https://docs.microsoft.com/en-us/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. + * https://docs.microsoft.com/rest/api/batchservice/odata-filters-in-batch#list-compute-node-files. * recursiveBooleanNoWhether to list children of a directory. * * You can add these to a request with {@link RequestOptions#addQueryParam} @@ -28052,7 +29388,7 @@ private PagedResponse listNodeFilesInternalSinglePage(String poolId, * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -28251,7 +29587,7 @@ private PagedResponse listPoolUsageMetricsInternalNextSinglePage(Str } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. * * Get the next page of items. *

Response Body Schema

@@ -28278,6 +29614,8 @@ private PagedResponse listPoolUsageMetricsInternalNextSinglePage(Str * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -28314,7 +29652,7 @@ private PagedResponse listPoolUsageMetricsInternalNextSinglePage(Str * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -28342,13 +29680,16 @@ private PagedResponse listPoolUsageMetricsInternalNextSinglePage(Str * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -28432,6 +29773,12 @@ private PagedResponse listPoolUsageMetricsInternalNextSinglePage(Str * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -28603,7 +29950,7 @@ private Mono> listPoolsInternalNextSinglePageAsync(Str } /** - * Lists all of the Pools in the specified Account. + * Lists all of the Pools which be mounted. * * Get the next page of items. *

Response Body Schema

@@ -28630,6 +29977,8 @@ private Mono> listPoolsInternalNextSinglePageAsync(Str * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -28666,7 +30015,7 @@ private Mono> listPoolsInternalNextSinglePageAsync(Str * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -28694,13 +30043,16 @@ private Mono> listPoolsInternalNextSinglePageAsync(Str * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -28784,6 +30136,12 @@ private Mono> listPoolsInternalNextSinglePageAsync(Str * imageName: String (Required) * registry (Optional): (recursive schema, see registry above) * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -28968,6 +30326,8 @@ private PagedResponse listPoolsInternalNextSinglePage(String nextLin * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * osType: String(linux/windows) (Required) * capabilities (Optional): [ @@ -29016,6 +30376,8 @@ private Mono> listSupportedImagesInternalNextSinglePag * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * osType: String(linux/windows) (Required) * capabilities (Optional): [ @@ -29067,6 +30429,8 @@ private PagedResponse listSupportedImagesInternalNextSinglePage(Stri * unknown: int (Required) * unusable: int (Required) * waitingForStartTask: int (Required) + * deallocated: int (Required) + * deallocating: int (Required) * total: int (Required) * upgradingOS: int (Required) * } @@ -29117,6 +30481,8 @@ private Mono> listPoolNodeCountsInternalNextSinglePage * unknown: int (Required) * unusable: int (Required) * waitingForStartTask: int (Required) + * deallocated: int (Required) + * deallocating: int (Required) * total: int (Required) * upgradingOS: int (Required) * } @@ -29186,6 +30552,12 @@ private PagedResponse listPoolNodeCountsInternalNextSinglePage(Strin * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -29302,6 +30674,8 @@ private PagedResponse listPoolNodeCountsInternalNextSinglePage(Strin * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -29331,7 +30705,7 @@ private PagedResponse listPoolNodeCountsInternalNextSinglePage(Strin * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -29359,13 +30733,16 @@ private PagedResponse listPoolNodeCountsInternalNextSinglePage(Strin * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -29514,6 +30891,7 @@ private PagedResponse listPoolNodeCountsInternalNextSinglePage(Strin * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -29618,6 +30996,12 @@ private Mono> listJobsInternalNextSinglePageAsync(Stri * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -29734,6 +31118,8 @@ private Mono> listJobsInternalNextSinglePageAsync(Stri * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -29763,7 +31149,7 @@ private Mono> listJobsInternalNextSinglePageAsync(Stri * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -29791,13 +31177,16 @@ private Mono> listJobsInternalNextSinglePageAsync(Stri * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -29946,6 +31335,7 @@ private Mono> listJobsInternalNextSinglePageAsync(Stri * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -30047,6 +31437,12 @@ private PagedResponse listJobsInternalNextSinglePage(String nextLink * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -30163,6 +31559,8 @@ private PagedResponse listJobsInternalNextSinglePage(String nextLink * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -30192,7 +31590,7 @@ private PagedResponse listJobsInternalNextSinglePage(String nextLink * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -30220,13 +31618,16 @@ private PagedResponse listJobsInternalNextSinglePage(String nextLink * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -30375,6 +31776,7 @@ private PagedResponse listJobsInternalNextSinglePage(String nextLink * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -30479,6 +31881,12 @@ private Mono> listJobsFromScheduleInternalNextSinglePa * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -30595,6 +32003,8 @@ private Mono> listJobsFromScheduleInternalNextSinglePa * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -30624,7 +32034,7 @@ private Mono> listJobsFromScheduleInternalNextSinglePa * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -30652,13 +32062,16 @@ private Mono> listJobsFromScheduleInternalNextSinglePa * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -30807,6 +32220,7 @@ private Mono> listJobsFromScheduleInternalNextSinglePa * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * metadata (Optional): [ * (recursive schema, see above) @@ -31050,6 +32464,7 @@ private PagedResponse listJobPreparationAndReleaseTaskStatusInternal * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -31071,6 +32486,12 @@ private PagedResponse listJobPreparationAndReleaseTaskStatusInternal * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -31187,6 +32608,8 @@ private PagedResponse listJobPreparationAndReleaseTaskStatusInternal * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -31216,7 +32639,7 @@ private PagedResponse listJobPreparationAndReleaseTaskStatusInternal * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -31244,13 +32667,16 @@ private PagedResponse listJobPreparationAndReleaseTaskStatusInternal * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -31485,6 +32911,7 @@ private Mono> listJobSchedulesInternalNextSinglePageAs * onTaskFailure: String(noaction/performexitoptionsjobaction) (Optional) * networkConfiguration (Optional): { * subnetId: String (Required) + * skipWithdrawFromVNet: boolean (Required) * } * constraints (Optional): { * maxWallClockTime: Duration (Optional) @@ -31506,6 +32933,12 @@ private Mono> listJobSchedulesInternalNextSinglePageAs * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -31622,6 +33055,8 @@ private Mono> listJobSchedulesInternalNextSinglePageAs * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * nodeAgentSKUId: String (Required) * windowsConfiguration (Optional): { @@ -31651,7 +33086,7 @@ private Mono> listJobSchedulesInternalNextSinglePageAs * ] * } * nodePlacementConfiguration (Optional): { - * policy: String(regional/zonal) (Optional) + * policy: String(Shared/Startup/VfsMounts/Task/JobPrep/Applications) (Optional) * } * extensions (Optional): [ * (Optional){ @@ -31679,13 +33114,16 @@ private Mono> listJobSchedulesInternalNextSinglePageAs * caching: String(none/readonly/readwrite) (Optional) * diskSizeGB: Integer (Optional) * managedDisk (Optional): { - * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Required) + * storageAccountType: String(standard_lrs/premium_lrs/standardssd_lrs) (Optional) + * securityProfile (Optional): { + * securityEncryptionType: String(NonPersistedTPM/VMGuestStateOnly) (Optional) + * } * } * writeAcceleratorEnabled: Boolean (Optional) * } * securityProfile (Optional): { * encryptionAtHost: boolean (Required) - * securityType: String(trustedLaunch) (Required) + * securityType: String(trustedLaunch/confidentialVM) (Required) * uefiSettings (Required): { * secureBootEnabled: Boolean (Optional) * vTpmEnabled: Boolean (Optional) @@ -31936,6 +33374,12 @@ private PagedResponse listJobSchedulesInternalNextSinglePage(String * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -32144,6 +33588,12 @@ private Mono> listTasksInternalNextSinglePageAsync(Str * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -32442,7 +33892,7 @@ private PagedResponse listSubTasksInternalNextSinglePage(String next * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -32484,7 +33934,7 @@ private Mono> listTaskFilesInternalNextSinglePageAsync * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -32522,7 +33972,7 @@ private PagedResponse listTaskFilesInternalNextSinglePage(String nex * { * id: String (Optional) * url: String (Optional) - * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional) + * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional) * schedulingState: String(enabled/disabled) (Optional) * stateTransitionTime: OffsetDateTime (Optional) * lastBootTime: OffsetDateTime (Optional) @@ -32583,6 +34033,12 @@ private PagedResponse listTaskFilesInternalNextSinglePage(String nex * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -32656,6 +34112,8 @@ private PagedResponse listTaskFilesInternalNextSinglePage(String nex * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * scaleSetVmResourceId: String (Optional) * } @@ -32694,7 +34152,7 @@ private Mono> listNodesInternalNextSinglePageAsync(Str * { * id: String (Optional) * url: String (Optional) - * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos) (Optional) + * state: String(idle/rebooting/reimaging/running/unusable/creating/starting/waitingforstarttask/starttaskfailed/unknown/leavingpool/offline/preempted/upgradingos/deallocated/deallocating) (Optional) * schedulingState: String(enabled/disabled) (Optional) * stateTransitionTime: OffsetDateTime (Optional) * lastBootTime: OffsetDateTime (Optional) @@ -32755,6 +34213,12 @@ private Mono> listNodesInternalNextSinglePageAsync(Str * } * } * workingDirectory: String(taskWorkingDirectory/containerImageDefault) (Optional) + * containerHostBatchBindMounts (Optional): [ + * (Optional){ + * source: String(regional/zonal) (Optional) + * isReadOnly: Boolean (Optional) + * } + * ] * } * resourceFiles (Optional): [ * (Optional){ @@ -32828,6 +34292,8 @@ private Mono> listNodesInternalNextSinglePageAsync(Str * version: String (Optional) * virtualMachineImageId: String (Optional) * exactVersion: String (Optional) + * sharedGalleryImageId: String (Optional) + * communityGalleryImageId: String (Optional) * } * scaleSetVmResourceId: String (Optional) * } @@ -32997,7 +34463,7 @@ private PagedResponse listNodeExtensionsInternalNextSinglePage(Strin * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } @@ -33039,7 +34505,7 @@ private Mono> listNodeFilesInternalNextSinglePageAsync * properties (Optional): { * creationTime: OffsetDateTime (Optional) * lastModified: OffsetDateTime (Required) - * contentLength: long (Required) + * contentLength: String (Required) * contentType: String (Optional) * fileMode: String (Optional) * } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/AutomaticOsUpgradePolicy.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/AutomaticOsUpgradePolicy.java index 0258de909c93..27f8c5020723 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/AutomaticOsUpgradePolicy.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/AutomaticOsUpgradePolicy.java @@ -114,8 +114,8 @@ public AutomaticOsUpgradePolicy setOsRollingUpgradeDeferral(Boolean osRollingUpg /* * 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.

If this is set to true for Windows based pools, - * [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchservice/pool/add? - * tabs=HTTP#windowsconfiguration) cannot be set to true. + * [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/rest/api/batchservice/pool/add?tabs= + * HTTP#windowsconfiguration) cannot be set to true. */ @Generated private Boolean enableAutomaticOsUpgrade; @@ -124,7 +124,7 @@ public AutomaticOsUpgradePolicy setOsRollingUpgradeDeferral(Boolean osRollingUpg * Get the enableAutomaticOsUpgrade property: 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/batchservice/pool/add?tabs=HTTP#windowsconfiguration) + * [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/rest/api/batchservice/pool/add?tabs=HTTP#windowsconfiguration) * cannot be set to true. * * @return the enableAutomaticOsUpgrade value. @@ -138,7 +138,7 @@ public Boolean isEnableAutomaticOsUpgrade() { * Set the enableAutomaticOsUpgrade property: 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/batchservice/pool/add?tabs=HTTP#windowsconfiguration) + * [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/rest/api/batchservice/pool/add?tabs=HTTP#windowsconfiguration) * cannot be set to true. * * @param enableAutomaticOsUpgrade the enableAutomaticOsUpgrade value to set. diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJob.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJob.java index 9a9b50c58013..50e0aa3deda0 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJob.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJob.java @@ -191,7 +191,7 @@ public final class BatchJob implements JsonSerializable { private BatchJobExecutionInfo executionInfo; /* - * Resource usage statistics for the entire lifetime of the Job. This property is populated only if the CloudJob was + * Resource usage statistics for the entire lifetime of the Job. This property is populated only if the BatchJob was * retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be * immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 * minutes. @@ -567,7 +567,7 @@ public BatchJobExecutionInfo getExecutionInfo() { /** * Get the stats property: Resource usage statistics for the entire lifetime of the Job. This property is populated - * only if the CloudJob was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. + * only if the BatchJob was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. * The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The * typical delay is about 30 minutes. * diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJobManagerTask.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJobManagerTask.java index 0eebe861c591..df86a647e95d 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJobManagerTask.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJobManagerTask.java @@ -60,7 +60,7 @@ public final class BatchJobManagerTask implements JsonSerializable { String subnetId = null; + boolean skipWithdrawFromVNet = false; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("subnetId".equals(fieldName)) { subnetId = reader.getString(); + } else if ("skipWithdrawFromVNet".equals(fieldName)) { + skipWithdrawFromVNet = reader.getBoolean(); } else { reader.skipChildren(); } } - return new BatchJobNetworkConfiguration(subnetId); + return new BatchJobNetworkConfiguration(subnetId, skipWithdrawFromVNet); }); } + + /* + * Whether to withdraw Compute Nodes from the virtual network to DNC when the job is terminated or deleted. If true, + * nodes will remain joined to the virtual network to DNC. If false, nodes will automatically withdraw when the job + * ends. Defaults to false. + */ + @Generated + private final boolean skipWithdrawFromVNet; + + /** + * Creates an instance of BatchJobNetworkConfiguration class. + * + * @param subnetId the subnetId value to set. + * @param skipWithdrawFromVNet the skipWithdrawFromVNet value to set. + */ + @Generated + public BatchJobNetworkConfiguration(String subnetId, boolean skipWithdrawFromVNet) { + this.subnetId = subnetId; + this.skipWithdrawFromVNet = skipWithdrawFromVNet; + } + + /** + * Get the skipWithdrawFromVNet property: Whether to withdraw Compute Nodes from the virtual network to DNC when the + * job is terminated or deleted. If true, nodes will remain joined to the virtual network to DNC. If false, nodes + * will automatically withdraw when the job ends. Defaults to false. + * + * @return the skipWithdrawFromVNet value. + */ + @Generated + public boolean isSkipWithdrawFromVNet() { + return this.skipWithdrawFromVNet; + } } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJobPreparationTask.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJobPreparationTask.java index 59397214bdc8..66a0263288bd 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJobPreparationTask.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchJobPreparationTask.java @@ -60,7 +60,7 @@ public final class BatchJobPreparationTask implements JsonSerializable writer.writeJson(element)); + jsonWriter.writeJsonField("networkConfiguration", this.networkConfiguration); return jsonWriter.writeEndObject(); } @@ -321,6 +322,9 @@ public static BatchJobUpdateContent fromJson(JsonReader jsonReader) throws IOExc } else if ("metadata".equals(fieldName)) { List metadata = reader.readArray(reader1 -> MetadataItem.fromJson(reader1)); deserializedBatchJobUpdateContent.metadata = metadata; + } else if ("networkConfiguration".equals(fieldName)) { + deserializedBatchJobUpdateContent.networkConfiguration + = BatchJobNetworkConfiguration.fromJson(reader); } else { reader.skipChildren(); } @@ -328,4 +332,32 @@ public static BatchJobUpdateContent fromJson(JsonReader jsonReader) throws IOExc return deserializedBatchJobUpdateContent; }); } + + /* + * The network configuration for the Job. + */ + @Generated + private BatchJobNetworkConfiguration networkConfiguration; + + /** + * Get the networkConfiguration property: The network configuration for the Job. + * + * @return the networkConfiguration value. + */ + @Generated + public BatchJobNetworkConfiguration getNetworkConfiguration() { + return this.networkConfiguration; + } + + /** + * Set the networkConfiguration property: The network configuration for the Job. + * + * @param networkConfiguration the networkConfiguration value to set. + * @return the BatchJobUpdateContent object itself. + */ + @Generated + public BatchJobUpdateContent setNetworkConfiguration(BatchJobNetworkConfiguration networkConfiguration) { + this.networkConfiguration = networkConfiguration; + return this; + } } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeCounts.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeCounts.java index a8212c7deb65..afd2d6a10034 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeCounts.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeCounts.java @@ -241,46 +241,6 @@ public int getTotal() { return this.total; } - /** - * Creates an instance of BatchNodeCounts class. - * - * @param creating the creating value to set. - * @param idle the idle value to set. - * @param offline the offline value to set. - * @param preempted the preempted value to set. - * @param rebooting the rebooting value to set. - * @param reimaging the reimaging value to set. - * @param running the running value to set. - * @param starting the starting value to set. - * @param startTaskFailed the startTaskFailed value to set. - * @param leavingPool the leavingPool value to set. - * @param unknown the unknown value to set. - * @param unusable the unusable value to set. - * @param waitingForStartTask the waitingForStartTask value to set. - * @param total the total value to set. - * @param upgradingOs the upgradingOs value to set. - */ - @Generated - private BatchNodeCounts(int creating, int idle, int offline, int preempted, int rebooting, int reimaging, - int running, int starting, int startTaskFailed, int leavingPool, int unknown, int unusable, - int waitingForStartTask, int total, int upgradingOs) { - this.creating = creating; - this.idle = idle; - this.offline = offline; - this.preempted = preempted; - this.rebooting = rebooting; - this.reimaging = reimaging; - this.running = running; - this.starting = starting; - this.startTaskFailed = startTaskFailed; - this.leavingPool = leavingPool; - this.unknown = unknown; - this.unusable = unusable; - this.waitingForStartTask = waitingForStartTask; - this.total = total; - this.upgradingOs = upgradingOs; - } - /* * The number of Compute Nodes in the upgradingOS state. */ @@ -317,6 +277,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeIntField("unknown", this.unknown); jsonWriter.writeIntField("unusable", this.unusable); jsonWriter.writeIntField("waitingForStartTask", this.waitingForStartTask); + jsonWriter.writeIntField("deallocated", this.deallocated); + jsonWriter.writeIntField("deallocating", this.deallocating); jsonWriter.writeIntField("total", this.total); jsonWriter.writeIntField("upgradingOS", this.upgradingOs); return jsonWriter.writeEndObject(); @@ -347,6 +309,8 @@ public static BatchNodeCounts fromJson(JsonReader jsonReader) throws IOException int unknown = 0; int unusable = 0; int waitingForStartTask = 0; + int deallocated = 0; + int deallocating = 0; int total = 0; int upgradingOs = 0; while (reader.nextToken() != JsonToken.END_OBJECT) { @@ -378,6 +342,10 @@ public static BatchNodeCounts fromJson(JsonReader jsonReader) throws IOException unusable = reader.getInt(); } else if ("waitingForStartTask".equals(fieldName)) { waitingForStartTask = reader.getInt(); + } else if ("deallocated".equals(fieldName)) { + deallocated = reader.getInt(); + } else if ("deallocating".equals(fieldName)) { + deallocating = reader.getInt(); } else if ("total".equals(fieldName)) { total = reader.getInt(); } else if ("upgradingOS".equals(fieldName)) { @@ -387,7 +355,84 @@ public static BatchNodeCounts fromJson(JsonReader jsonReader) throws IOException } } return new BatchNodeCounts(creating, idle, offline, preempted, rebooting, reimaging, running, starting, - startTaskFailed, leavingPool, unknown, unusable, waitingForStartTask, total, upgradingOs); + startTaskFailed, leavingPool, unknown, unusable, waitingForStartTask, deallocated, deallocating, total, + upgradingOs); }); } + + /* + * The number of Compute Nodes in the deallocated state. + */ + @Generated + private final int deallocated; + + /* + * The number of Compute Nodes in the deallocating state. + */ + @Generated + private final int deallocating; + + /** + * Creates an instance of BatchNodeCounts class. + * + * @param creating the creating value to set. + * @param idle the idle value to set. + * @param offline the offline value to set. + * @param preempted the preempted value to set. + * @param rebooting the rebooting value to set. + * @param reimaging the reimaging value to set. + * @param running the running value to set. + * @param starting the starting value to set. + * @param startTaskFailed the startTaskFailed value to set. + * @param leavingPool the leavingPool value to set. + * @param unknown the unknown value to set. + * @param unusable the unusable value to set. + * @param waitingForStartTask the waitingForStartTask value to set. + * @param deallocated the deallocated value to set. + * @param deallocating the deallocating value to set. + * @param total the total value to set. + * @param upgradingOs the upgradingOs value to set. + */ + @Generated + private BatchNodeCounts(int creating, int idle, int offline, int preempted, int rebooting, int reimaging, + int running, int starting, int startTaskFailed, int leavingPool, int unknown, int unusable, + int waitingForStartTask, int deallocated, int deallocating, int total, int upgradingOs) { + this.creating = creating; + this.idle = idle; + this.offline = offline; + this.preempted = preempted; + this.rebooting = rebooting; + this.reimaging = reimaging; + this.running = running; + this.starting = starting; + this.startTaskFailed = startTaskFailed; + this.leavingPool = leavingPool; + this.unknown = unknown; + this.unusable = unusable; + this.waitingForStartTask = waitingForStartTask; + this.deallocated = deallocated; + this.deallocating = deallocating; + this.total = total; + this.upgradingOs = upgradingOs; + } + + /** + * Get the deallocated property: The number of Compute Nodes in the deallocated state. + * + * @return the deallocated value. + */ + @Generated + public int getDeallocated() { + return this.deallocated; + } + + /** + * Get the deallocating property: The number of Compute Nodes in the deallocating state. + * + * @return the deallocating value. + */ + @Generated + public int getDeallocating() { + return this.deallocating; + } } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeDeallocateContent.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeDeallocateContent.java new file mode 100644 index 000000000000..5bbd935e6ff6 --- /dev/null +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeDeallocateContent.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.compute.batch.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Options for deallocating a Compute Node. + */ +@Fluent +public final class BatchNodeDeallocateContent implements JsonSerializable { + /* + * When to deallocate the Compute Node and what to do with currently running Tasks. The default value is requeue. + */ + @Generated + private BatchNodeDeallocateOption nodeDeallocateOption; + + /** + * Creates an instance of BatchNodeDeallocateContent class. + */ + @Generated + public BatchNodeDeallocateContent() { + } + + /** + * Get the nodeDeallocateOption property: When to deallocate the Compute Node and what to do with currently running + * Tasks. The default value is requeue. + * + * @return the nodeDeallocateOption value. + */ + @Generated + public BatchNodeDeallocateOption getNodeDeallocateOption() { + return this.nodeDeallocateOption; + } + + /** + * Set the nodeDeallocateOption property: When to deallocate the Compute Node and what to do with currently running + * Tasks. The default value is requeue. + * + * @param nodeDeallocateOption the nodeDeallocateOption value to set. + * @return the BatchNodeDeallocateContent object itself. + */ + @Generated + public BatchNodeDeallocateContent setNodeDeallocateOption(BatchNodeDeallocateOption nodeDeallocateOption) { + this.nodeDeallocateOption = nodeDeallocateOption; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nodeDeallocateOption", + this.nodeDeallocateOption == null ? null : this.nodeDeallocateOption.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BatchNodeDeallocateContent from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BatchNodeDeallocateContent if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the BatchNodeDeallocateContent. + */ + @Generated + public static BatchNodeDeallocateContent fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BatchNodeDeallocateContent deserializedBatchNodeDeallocateContent = new BatchNodeDeallocateContent(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nodeDeallocateOption".equals(fieldName)) { + deserializedBatchNodeDeallocateContent.nodeDeallocateOption + = BatchNodeDeallocateOption.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedBatchNodeDeallocateContent; + }); + } +} diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeDeallocateOption.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeDeallocateOption.java new file mode 100644 index 000000000000..1c58311c50d8 --- /dev/null +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeDeallocateOption.java @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.compute.batch.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * BatchNodeDeallocateOption enums. + */ +public final class BatchNodeDeallocateOption extends ExpandableStringEnum { + /** + * Terminate running Task processes and requeue the Tasks. The Tasks will run again when a Compute Node is + * available. Deallocate the Compute Node as soon as Tasks have been terminated. + */ + @Generated + public static final BatchNodeDeallocateOption REQUEUE = fromString("requeue"); + + /** + * Terminate running Tasks. The Tasks will be completed with failureInfo indicating that they were terminated, and + * will not run again. Deallocate the Compute Node as soon as Tasks have been terminated. + */ + @Generated + public static final BatchNodeDeallocateOption TERMINATE = fromString("terminate"); + + /** + * Allow currently running Tasks to complete. Schedule no new Tasks while waiting. Deallocate the Compute Node when + * all Tasks have completed. + */ + @Generated + public static final BatchNodeDeallocateOption TASK_COMPLETION = fromString("taskcompletion"); + + /** + * Allow currently running Tasks to complete, then wait for all Task data retention periods to expire. Schedule no + * new Tasks while waiting. Deallocate the Compute Node when all Task retention periods have expired. + */ + @Generated + public static final BatchNodeDeallocateOption RETAINED_DATA = fromString("retaineddata"); + + /** + * Creates a new instance of BatchNodeDeallocateOption value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public BatchNodeDeallocateOption() { + } + + /** + * Creates or finds a BatchNodeDeallocateOption from its string representation. + * + * @param name a name to look for. + * @return the corresponding BatchNodeDeallocateOption. + */ + @Generated + public static BatchNodeDeallocateOption fromString(String name) { + return fromString(name, BatchNodeDeallocateOption.class); + } + + /** + * Gets known BatchNodeDeallocateOption values. + * + * @return known BatchNodeDeallocateOption values. + */ + @Generated + public static Collection values() { + return values(BatchNodeDeallocateOption.class); + } +} diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodePlacementPolicyType.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodePlacementPolicyType.java index ebd4499c7783..8427a84a2141 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodePlacementPolicyType.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodePlacementPolicyType.java @@ -12,18 +12,6 @@ */ public final class BatchNodePlacementPolicyType extends ExpandableStringEnum { - /** - * All nodes in the pool will be allocated in the same region. - */ - @Generated - public static final BatchNodePlacementPolicyType REGIONAL = fromString("regional"); - - /** - * Nodes in the pool will be spread across different availability zones with best effort balancing. - */ - @Generated - public static final BatchNodePlacementPolicyType ZONAL = fromString("zonal"); - /** * Creates a new instance of BatchNodePlacementPolicyType value. * @@ -54,4 +42,40 @@ public static BatchNodePlacementPolicyType fromString(String name) { public static Collection values() { return values(BatchNodePlacementPolicyType.class); } + + /** + * The path for multi-instances task to shared their files. + */ + @Generated + public static final BatchNodePlacementPolicyType SHARED = fromString("Shared"); + + /** + * The path for start task. + */ + @Generated + public static final BatchNodePlacementPolicyType STARTUP = fromString("Startup"); + + /** + * The path contains all virtual file systems are mounted on this node. + */ + @Generated + public static final BatchNodePlacementPolicyType VFS_MOUNTS = fromString("VfsMounts"); + + /** + * The task path. + */ + @Generated + public static final BatchNodePlacementPolicyType TASK = fromString("Task"); + + /** + * The job-prep task path. + */ + @Generated + public static final BatchNodePlacementPolicyType JOB_PREP = fromString("JobPrep"); + + /** + * The applications path. + */ + @Generated + public static final BatchNodePlacementPolicyType APPLICATIONS = fromString("Applications"); } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeReimageContent.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeReimageContent.java new file mode 100644 index 000000000000..b62ba5cfd0ff --- /dev/null +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeReimageContent.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.compute.batch.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Parameters for reimaging an Azure Batch Compute Node. + */ +@Fluent +public final class BatchNodeReimageContent implements JsonSerializable { + /* + * When to reimage the Compute Node and what to do with currently running Tasks. The default value is requeue. + */ + @Generated + private BatchNodeReimageOption nodeReimageOption; + + /** + * Creates an instance of BatchNodeReimageContent class. + */ + @Generated + public BatchNodeReimageContent() { + } + + /** + * Get the nodeReimageOption property: When to reimage the Compute Node and what to do with currently running Tasks. + * The default value is requeue. + * + * @return the nodeReimageOption value. + */ + @Generated + public BatchNodeReimageOption getNodeReimageOption() { + return this.nodeReimageOption; + } + + /** + * Set the nodeReimageOption property: When to reimage the Compute Node and what to do with currently running Tasks. + * The default value is requeue. + * + * @param nodeReimageOption the nodeReimageOption value to set. + * @return the BatchNodeReimageContent object itself. + */ + @Generated + public BatchNodeReimageContent setNodeReimageOption(BatchNodeReimageOption nodeReimageOption) { + this.nodeReimageOption = nodeReimageOption; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nodeReimageOption", + this.nodeReimageOption == null ? null : this.nodeReimageOption.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BatchNodeReimageContent from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BatchNodeReimageContent if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the BatchNodeReimageContent. + */ + @Generated + public static BatchNodeReimageContent fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BatchNodeReimageContent deserializedBatchNodeReimageContent = new BatchNodeReimageContent(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nodeReimageOption".equals(fieldName)) { + deserializedBatchNodeReimageContent.nodeReimageOption + = BatchNodeReimageOption.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedBatchNodeReimageContent; + }); + } +} diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeState.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeState.java index e9b0a9bd53b6..526eb5cd3441 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeState.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeState.java @@ -131,4 +131,16 @@ public static Collection values() { */ @Generated public static final BatchNodeState UPGRADING_OS = fromString("upgradingos"); + + /** + * The Compute Node is deallocated. + */ + @Generated + public static final BatchNodeState DEALLOCATED = fromString("deallocated"); + + /** + * The Compute Node is deallocating. + */ + @Generated + public static final BatchNodeState DEALLOCATING = fromString("deallocating"); } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeUserCreateContent.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeUserCreateContent.java index 574a2a320df4..4a918c1be132 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeUserCreateContent.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchNodeUserCreateContent.java @@ -40,9 +40,8 @@ public final class BatchNodeUserCreateContent implements JsonSerializable { /* - * The password of the Account. The password is required for Windows Compute Nodes (those created with - * 'virtualMachineConfiguration' using a Windows Image reference). For Linux Compute Nodes, the password can - * optionally be specified along with the sshPublicKey property. If omitted, any existing password is removed. + * The password of the Account. The password is required for Windows Compute Nodes. For Linux Compute Nodes, the + * password can optionally be specified along with the sshPublicKey property. If omitted, any existing password is + * removed. */ @Generated private String password; @@ -53,10 +53,9 @@ public BatchNodeUserUpdateContent() { } /** - * Get the password property: The password of the Account. The password is required for Windows Compute Nodes (those - * created with 'virtualMachineConfiguration' using a Windows Image reference). For Linux Compute Nodes, the - * password can optionally be specified along with the sshPublicKey property. If omitted, any existing password is - * removed. + * Get the password property: The password of the Account. The password is required for Windows Compute Nodes. For + * Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property. If omitted, + * any existing password is removed. * * @return the password value. */ @@ -66,10 +65,9 @@ public String getPassword() { } /** - * Set the password property: The password of the Account. The password is required for Windows Compute Nodes (those - * created with 'virtualMachineConfiguration' using a Windows Image reference). For Linux Compute Nodes, the - * password can optionally be specified along with the sshPublicKey property. If omitted, any existing password is - * removed. + * Set the password property: The password of the Account. The password is required for Windows Compute Nodes. For + * Linux Compute Nodes, the password can optionally be specified along with the sshPublicKey property. If omitted, + * any existing password is removed. * * @param password the password value to set. * @return the BatchNodeUserUpdateContent object itself. diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPool.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPool.java index b890a341209c..dc8544bf61c8 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPool.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPool.java @@ -92,8 +92,11 @@ public final class BatchPool implements JsonSerializable { /* * The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about - * available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool - * (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). + * available VM sizes, see Sizes for Virtual Machines (Linux) + * (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines + * (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports + * all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 + * series). */ @Generated private String vmSize; @@ -228,7 +231,7 @@ public final class BatchPool implements JsonSerializable { /* * Utilization and resource usage statistics for the entire lifetime of the Pool. This property is populated only if - * the CloudPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The + * the BatchPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The * statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The * typical delay is about 30 minutes. */ @@ -379,8 +382,11 @@ public OffsetDateTime getAllocationStateTransitionTime() { /** * Get the vmSize property: The size of virtual machines in the Pool. All virtual machines in a Pool are the same - * size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes - * in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). + * size. For information about available VM sizes, see Sizes for Virtual Machines (Linux) + * (https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/) or Sizes for Virtual Machines + * (Windows) (https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/). Batch supports + * all Azure VM sizes except STANDARD_A0 and those with premium storage (STANDARD_GS, STANDARD_DS, and STANDARD_DSV2 + * series). * * @return the vmSize value. */ @@ -601,7 +607,7 @@ public List getMetadata() { /** * Get the stats property: Utilization and resource usage statistics for the entire lifetime of the Pool. This - * property is populated only if the CloudPool was retrieved with an expand clause including the 'stats' attribute; + * property is populated only if the BatchPool was retrieved with an expand clause including the 'stats' attribute; * otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic * roll-up of statistics. The typical delay is about 30 minutes. * diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolEnableAutoScaleContent.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolEnableAutoScaleContent.java index 7b517362945a..86986248f0c7 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolEnableAutoScaleContent.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolEnableAutoScaleContent.java @@ -20,10 +20,12 @@ public final class BatchPoolEnableAutoScaleContent implements JsonSerializable { /* - * The formula for the desired number of Compute Nodes in the Pool. The formula is checked for validity before it is - * applied to the Pool. If the formula is not valid, the Batch service rejects the request with detailed error - * information. For more information about specifying this formula, see Automatically scale Compute Nodes in an - * Azure Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling). + * The formula for the desired number of Compute Nodes in the Pool. The default value is 15 minutes. The minimum and + * maximum value are 5 minutes and 168 hours respectively. If you specify a value less than 5 minutes or greater + * than 168 hours, the Batch service rejects the request with an invalid property value error; if you are calling + * the REST API directly, the HTTP status code is 400 (Bad Request). If you specify a new interval, then the + * existing autoscale evaluation schedule will be stopped and a new autoscale evaluation schedule will be started, + * with its starting time being the time when this request was issued. */ @Generated private String autoScaleFormula; @@ -47,11 +49,12 @@ public BatchPoolEnableAutoScaleContent() { } /** - * Get the autoScaleFormula property: The formula for the desired number of Compute Nodes in the Pool. The formula - * is checked for validity before it is applied to the Pool. If the formula is not valid, the Batch service rejects - * the request with detailed error information. For more information about specifying this formula, see - * Automatically scale Compute Nodes in an Azure Batch Pool - * (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling). + * Get the autoScaleFormula property: The formula for the desired number of Compute Nodes in the Pool. The default + * value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a + * value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid + * property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If you + * specify a new interval, then the existing autoscale evaluation schedule will be stopped and a new autoscale + * evaluation schedule will be started, with its starting time being the time when this request was issued. * * @return the autoScaleFormula value. */ @@ -61,11 +64,12 @@ public String getAutoScaleFormula() { } /** - * Set the autoScaleFormula property: The formula for the desired number of Compute Nodes in the Pool. The formula - * is checked for validity before it is applied to the Pool. If the formula is not valid, the Batch service rejects - * the request with detailed error information. For more information about specifying this formula, see - * Automatically scale Compute Nodes in an Azure Batch Pool - * (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling). + * Set the autoScaleFormula property: The formula for the desired number of Compute Nodes in the Pool. The default + * value is 15 minutes. The minimum and maximum value are 5 minutes and 168 hours respectively. If you specify a + * value less than 5 minutes or greater than 168 hours, the Batch service rejects the request with an invalid + * property value error; if you are calling the REST API directly, the HTTP status code is 400 (Bad Request). If you + * specify a new interval, then the existing autoscale evaluation schedule will be stopped and a new autoscale + * evaluation schedule will be started, with its starting time being the time when this request was issued. * * @param autoScaleFormula the autoScaleFormula value to set. * @return the BatchPoolEnableAutoScaleContent object itself. diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolEvaluateAutoScaleContent.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolEvaluateAutoScaleContent.java index bfb4e03fad90..e8f8aaa55641 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolEvaluateAutoScaleContent.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolEvaluateAutoScaleContent.java @@ -21,7 +21,7 @@ public final class BatchPoolEvaluateAutoScaleContent implements JsonSerializable * The formula for the desired number of Compute Nodes in the Pool. The formula is validated and its results * calculated, but it is not applied to the Pool. To apply the formula to the Pool, 'Enable automatic scaling on a * Pool'. For more information about specifying this formula, see Automatically scale Compute Nodes in an Azure - * Batch Pool (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling). + * Batch Pool (https://azure.microsoft.com/documentation/articles/batch-automatic-scaling). */ @Generated private final String autoScaleFormula; @@ -41,7 +41,7 @@ public BatchPoolEvaluateAutoScaleContent(String autoScaleFormula) { * is validated and its results calculated, but it is not applied to the Pool. To apply the formula to the Pool, * 'Enable automatic scaling on a Pool'. For more information about specifying this formula, see Automatically scale * Compute Nodes in an Azure Batch Pool - * (https://azure.microsoft.com/en-us/documentation/articles/batch-automatic-scaling). + * (https://azure.microsoft.com/documentation/articles/batch-automatic-scaling). * * @return the autoScaleFormula value. */ diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolSpecification.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolSpecification.java index e960bd92667f..0f1baa30836e 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolSpecification.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchPoolSpecification.java @@ -36,9 +36,7 @@ public final class BatchPoolSpecification implements JsonSerializable writer.writeJson(element)); jsonWriter.writeArrayField("metadata", this.metadata, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("virtualMachineConfiguration", this.virtualMachineConfiguration); jsonWriter.writeStringField("targetNodeCommunicationMode", this.targetNodeCommunicationMode == null ? null : this.targetNodeCommunicationMode.toString()); + jsonWriter.writeNumberField("taskSlotsPerNode", this.taskSlotsPerNode); + jsonWriter.writeJsonField("taskSchedulingPolicy", this.taskSchedulingPolicy); + jsonWriter.writeJsonField("networkConfiguration", this.networkConfiguration); + jsonWriter.writeMapField("resourceTags", this.resourceTags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("userAccounts", this.userAccounts, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("mountConfiguration", this.mountConfiguration, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("upgradePolicy", this.upgradePolicy); return jsonWriter.writeEndObject(); } @@ -199,7 +212,14 @@ public static BatchPoolUpdateContent fromJson(JsonReader jsonReader) throws IOEx while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); - if ("startTask".equals(fieldName)) { + if ("displayName".equals(fieldName)) { + deserializedBatchPoolUpdateContent.displayName = reader.getString(); + } else if ("vmSize".equals(fieldName)) { + deserializedBatchPoolUpdateContent.vmSize = reader.getString(); + } else if ("enableInterNodeCommunication".equals(fieldName)) { + deserializedBatchPoolUpdateContent.enableInterNodeCommunication + = reader.getNullable(JsonReader::getBoolean); + } else if ("startTask".equals(fieldName)) { deserializedBatchPoolUpdateContent.startTask = BatchStartTask.fromJson(reader); } else if ("applicationPackageReferences".equals(fieldName)) { List applicationPackageReferences @@ -208,9 +228,31 @@ public static BatchPoolUpdateContent fromJson(JsonReader jsonReader) throws IOEx } else if ("metadata".equals(fieldName)) { List metadata = reader.readArray(reader1 -> MetadataItem.fromJson(reader1)); deserializedBatchPoolUpdateContent.metadata = metadata; + } else if ("virtualMachineConfiguration".equals(fieldName)) { + deserializedBatchPoolUpdateContent.virtualMachineConfiguration + = VirtualMachineConfiguration.fromJson(reader); } else if ("targetNodeCommunicationMode".equals(fieldName)) { deserializedBatchPoolUpdateContent.targetNodeCommunicationMode = BatchNodeCommunicationMode.fromString(reader.getString()); + } else if ("taskSlotsPerNode".equals(fieldName)) { + deserializedBatchPoolUpdateContent.taskSlotsPerNode = reader.getNullable(JsonReader::getInt); + } else if ("taskSchedulingPolicy".equals(fieldName)) { + deserializedBatchPoolUpdateContent.taskSchedulingPolicy + = BatchTaskSchedulingPolicy.fromJson(reader); + } else if ("networkConfiguration".equals(fieldName)) { + deserializedBatchPoolUpdateContent.networkConfiguration = NetworkConfiguration.fromJson(reader); + } else if ("resourceTags".equals(fieldName)) { + Map resourceTags = reader.readMap(reader1 -> reader1.getString()); + deserializedBatchPoolUpdateContent.resourceTags = resourceTags; + } else if ("userAccounts".equals(fieldName)) { + List userAccounts = reader.readArray(reader1 -> UserAccount.fromJson(reader1)); + deserializedBatchPoolUpdateContent.userAccounts = userAccounts; + } else if ("mountConfiguration".equals(fieldName)) { + List mountConfiguration + = reader.readArray(reader1 -> MountConfiguration.fromJson(reader1)); + deserializedBatchPoolUpdateContent.mountConfiguration = mountConfiguration; + } else if ("upgradePolicy".equals(fieldName)) { + deserializedBatchPoolUpdateContent.upgradePolicy = UpgradePolicy.fromJson(reader); } else { reader.skipChildren(); } @@ -218,4 +260,371 @@ public static BatchPoolUpdateContent fromJson(JsonReader jsonReader) throws IOEx return deserializedBatchPoolUpdateContent; }); } + + /* + * The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a + * maximum length of 1024. This field can be updated only when the pool is empty. + */ + @Generated + private String displayName; + + /* + * The size of virtual machines in the Pool. For information about available sizes of virtual machines in Pools, see + * Choose a VM size for Compute Nodes in an Azure Batch Pool + * (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).

This field can be updated only when the + * pool is empty. + */ + @Generated + private String vmSize; + + /* + * Whether the Pool permits direct communication between Compute Nodes. Enabling inter-node communication limits the + * maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the + * Pool not reaching its desired size. The default value is false.

This field can be updated only when + * the pool is empty. + */ + @Generated + private Boolean enableInterNodeCommunication; + + /* + * The virtual machine configuration for the Pool. This property must be specified.

This field can be + * updated only when the pool is empty. + */ + @Generated + private VirtualMachineConfiguration virtualMachineConfiguration; + + /* + * The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The + * default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or + * 256.

This field can be updated only when the pool is empty. + */ + @Generated + private Integer taskSlotsPerNode; + + /* + * How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread.

This field can be updated only when the pool is empty. + */ + @Generated + private BatchTaskSchedulingPolicy taskSchedulingPolicy; + + /* + * The network configuration for the Pool. This field can be updated only when the pool is empty. + */ + @Generated + private NetworkConfiguration networkConfiguration; + + /* + * The user-specified tags associated with the pool. 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'.

This field can be updated only when the pool is empty. + */ + @Generated + private Map resourceTags; + + /* + * The list of user Accounts to be created on each Compute Node in the Pool. This field can be updated only when the + * pool is empty. + */ + @Generated + private List userAccounts; + + /* + * Mount storage using specified file system for the entire lifetime of the pool. Mount the storage using Azure + * fileshare, NFS, CIFS or Blobfuse based file system.

This field can be updated only when the pool is + * empty. + */ + @Generated + private List mountConfiguration; + + /* + * The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling.

This + * field can be updated only when the pool is empty. + */ + @Generated + private UpgradePolicy upgradePolicy; + + /** + * Get the displayName property: The display name for the Pool. The display name need not be unique and can contain + * any Unicode characters up to a maximum length of 1024. This field can be updated only when the pool is empty. + * + * @return the displayName value. + */ + @Generated + public String getDisplayName() { + return this.displayName; + } + + /** + * Set the displayName property: The display name for the Pool. The display name need not be unique and can contain + * any Unicode characters up to a maximum length of 1024. This field can be updated only when the pool is empty. + * + * @param displayName the displayName value to set. + * @return the BatchPoolUpdateContent object itself. + */ + @Generated + public BatchPoolUpdateContent setDisplayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Get the vmSize property: The size of virtual machines in the Pool. For information about available sizes of + * virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool + * (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).<br /><br />This field can be updated + * only when the pool is empty. + * + * @return the vmSize value. + */ + @Generated + public String getVmSize() { + return this.vmSize; + } + + /** + * Set the vmSize property: The size of virtual machines in the Pool. For information about available sizes of + * virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool + * (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).<br /><br />This field can be updated + * only when the pool is empty. + * + * @param vmSize the vmSize value to set. + * @return the BatchPoolUpdateContent object itself. + */ + @Generated + public BatchPoolUpdateContent setVmSize(String vmSize) { + this.vmSize = vmSize; + return this; + } + + /** + * Get the enableInterNodeCommunication property: Whether the Pool permits direct communication between Compute + * Nodes. Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on + * the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is + * false.<br /><br />This field can be updated only when the pool is empty. + * + * @return the enableInterNodeCommunication value. + */ + @Generated + public Boolean isEnableInterNodeCommunication() { + return this.enableInterNodeCommunication; + } + + /** + * Set the enableInterNodeCommunication property: Whether the Pool permits direct communication between Compute + * Nodes. Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on + * the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is + * false.<br /><br />This field can be updated only when the pool is empty. + * + * @param enableInterNodeCommunication the enableInterNodeCommunication value to set. + * @return the BatchPoolUpdateContent object itself. + */ + @Generated + public BatchPoolUpdateContent setEnableInterNodeCommunication(Boolean enableInterNodeCommunication) { + this.enableInterNodeCommunication = enableInterNodeCommunication; + return this; + } + + /** + * Get the virtualMachineConfiguration property: The virtual machine configuration for the Pool. This property must + * be specified.<br /><br />This field can be updated only when the pool is empty. + * + * @return the virtualMachineConfiguration value. + */ + @Generated + public VirtualMachineConfiguration getVirtualMachineConfiguration() { + return this.virtualMachineConfiguration; + } + + /** + * Set the virtualMachineConfiguration property: The virtual machine configuration for the Pool. This property must + * be specified.<br /><br />This field can be updated only when the pool is empty. + * + * @param virtualMachineConfiguration the virtualMachineConfiguration value to set. + * @return the BatchPoolUpdateContent object itself. + */ + @Generated + public BatchPoolUpdateContent + setVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration) { + this.virtualMachineConfiguration = virtualMachineConfiguration; + return this; + } + + /** + * Get the taskSlotsPerNode property: The number of task slots that can be used to run concurrent tasks on a single + * compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores + * of the vmSize of the pool or 256.<br /><br />This field can be updated only when the pool is empty. + * + * @return the taskSlotsPerNode value. + */ + @Generated + public Integer getTaskSlotsPerNode() { + return this.taskSlotsPerNode; + } + + /** + * Set the taskSlotsPerNode property: The number of task slots that can be used to run concurrent tasks on a single + * compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores + * of the vmSize of the pool or 256.<br /><br />This field can be updated only when the pool is empty. + * + * @param taskSlotsPerNode the taskSlotsPerNode value to set. + * @return the BatchPoolUpdateContent object itself. + */ + @Generated + public BatchPoolUpdateContent setTaskSlotsPerNode(Integer taskSlotsPerNode) { + this.taskSlotsPerNode = taskSlotsPerNode; + return this; + } + + /** + * Get the taskSchedulingPolicy property: How Tasks are distributed across Compute Nodes in a Pool. If not + * specified, the default is spread.<br /><br />This field can be updated only when the pool is empty. + * + * @return the taskSchedulingPolicy value. + */ + @Generated + public BatchTaskSchedulingPolicy getTaskSchedulingPolicy() { + return this.taskSchedulingPolicy; + } + + /** + * Set the taskSchedulingPolicy property: How Tasks are distributed across Compute Nodes in a Pool. If not + * specified, the default is spread.<br /><br />This field can be updated only when the pool is empty. + * + * @param taskSchedulingPolicy the taskSchedulingPolicy value to set. + * @return the BatchPoolUpdateContent object itself. + */ + @Generated + public BatchPoolUpdateContent setTaskSchedulingPolicy(BatchTaskSchedulingPolicy taskSchedulingPolicy) { + this.taskSchedulingPolicy = taskSchedulingPolicy; + return this; + } + + /** + * Get the networkConfiguration property: The network configuration for the Pool. This field can be updated only + * when the pool is empty. + * + * @return the networkConfiguration value. + */ + @Generated + public NetworkConfiguration getNetworkConfiguration() { + return this.networkConfiguration; + } + + /** + * Set the networkConfiguration property: The network configuration for the Pool. This field can be updated only + * when the pool is empty. + * + * @param networkConfiguration the networkConfiguration value to set. + * @return the BatchPoolUpdateContent object itself. + */ + @Generated + public BatchPoolUpdateContent setNetworkConfiguration(NetworkConfiguration networkConfiguration) { + this.networkConfiguration = networkConfiguration; + return this; + } + + /** + * Get the resourceTags property: The user-specified tags associated with the pool. 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'.<br /><br />This field can be updated only when + * the pool is empty. + * + * @return the resourceTags value. + */ + @Generated + public Map getResourceTags() { + return this.resourceTags; + } + + /** + * Set the resourceTags property: The user-specified tags associated with the pool. 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'.<br /><br />This field can be updated only when + * the pool is empty. + * + * @param resourceTags the resourceTags value to set. + * @return the BatchPoolUpdateContent object itself. + */ + @Generated + public BatchPoolUpdateContent setResourceTags(Map resourceTags) { + this.resourceTags = resourceTags; + return this; + } + + /** + * Get the userAccounts property: The list of user Accounts to be created on each Compute Node in the Pool. This + * field can be updated only when the pool is empty. + * + * @return the userAccounts value. + */ + @Generated + public List getUserAccounts() { + return this.userAccounts; + } + + /** + * Set the userAccounts property: The list of user Accounts to be created on each Compute Node in the Pool. This + * field can be updated only when the pool is empty. + * + * @param userAccounts the userAccounts value to set. + * @return the BatchPoolUpdateContent object itself. + */ + @Generated + public BatchPoolUpdateContent setUserAccounts(List userAccounts) { + this.userAccounts = userAccounts; + return this; + } + + /** + * Get the mountConfiguration property: Mount storage using specified file system for the entire lifetime of the + * pool. Mount the storage using Azure fileshare, NFS, CIFS or Blobfuse based file system.<br /><br + * />This field can be updated only when the pool is empty. + * + * @return the mountConfiguration value. + */ + @Generated + public List getMountConfiguration() { + return this.mountConfiguration; + } + + /** + * Set the mountConfiguration property: Mount storage using specified file system for the entire lifetime of the + * pool. Mount the storage using Azure fileshare, NFS, CIFS or Blobfuse based file system.<br /><br + * />This field can be updated only when the pool is empty. + * + * @param mountConfiguration the mountConfiguration value to set. + * @return the BatchPoolUpdateContent object itself. + */ + @Generated + public BatchPoolUpdateContent setMountConfiguration(List mountConfiguration) { + this.mountConfiguration = mountConfiguration; + return this; + } + + /** + * Get the upgradePolicy property: The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, + * or rolling.<br /><br />This field can be updated only when the pool is empty. + * + * @return the upgradePolicy value. + */ + @Generated + public UpgradePolicy getUpgradePolicy() { + return this.upgradePolicy; + } + + /** + * Set the upgradePolicy property: The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, + * or rolling.<br /><br />This field can be updated only when the pool is empty. + * + * @param upgradePolicy the upgradePolicy value to set. + * @return the BatchPoolUpdateContent object itself. + */ + @Generated + public BatchPoolUpdateContent setUpgradePolicy(UpgradePolicy upgradePolicy) { + this.upgradePolicy = upgradePolicy; + return this; + } } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchStartTask.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchStartTask.java index 1353d93bb28d..4811aa6b60b6 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchStartTask.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchStartTask.java @@ -36,7 +36,7 @@ public final class BatchStartTask implements JsonSerializable { * features, you should invoke the shell in the command line, for example using "cmd /c MyCommand" in Windows or * "/bin/sh -c MyCommand" in Linux. If the command line refers to file paths, it should use a relative path * (relative to the Task working directory), or use the Batch provided environment variable - * (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables). + * (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables). */ @Generated private final String commandLine; @@ -114,7 +114,7 @@ public BatchStartTask(String commandLine) { * advantage of such features, you should invoke the shell in the command line, for example using "cmd /c MyCommand" * in Windows or "/bin/sh -c MyCommand" in Linux. If the command line refers to file paths, it should use a relative * path (relative to the Task working directory), or use the Batch provided environment variable - * (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables). + * (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables). * * @return the commandLine value. */ diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchTask.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchTask.java index cdc02eb657ea..1f5a0c92f91c 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchTask.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchTask.java @@ -106,7 +106,7 @@ public final class BatchTask implements JsonSerializable { * expansion. If you want to take advantage of such features, you should invoke the shell in the command line, for * example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux. If the command line refers to * file paths, it should use a relative path (relative to the Task working directory), or use the Batch provided - * environment variable (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables). + * environment variable (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables). */ @Generated private String commandLine; @@ -360,7 +360,7 @@ public OffsetDateTime getPreviousStateTransitionTime() { * shell in the command line, for example using "cmd /c MyCommand" in Windows or "/bin/sh -c MyCommand" in Linux. If * the command line refers to file paths, it should use a relative path (relative to the Task working directory), or * use the Batch provided environment variable - * (https://docs.microsoft.com/en-us/azure/batch/batch-compute-node-environment-variables). + * (https://docs.microsoft.com/azure/batch/batch-compute-node-environment-variables). * * @return the commandLine value. */ diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchTaskContainerSettings.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchTaskContainerSettings.java index 11d107c3e1cd..1dedca211bf0 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchTaskContainerSettings.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/BatchTaskContainerSettings.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * The container settings for a Task. @@ -140,6 +141,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("registry", this.registry); jsonWriter.writeStringField("workingDirectory", this.workingDirectory == null ? null : this.workingDirectory.toString()); + jsonWriter.writeArrayField("containerHostBatchBindMounts", this.containerHostBatchBindMounts, + (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -159,6 +162,7 @@ public static BatchTaskContainerSettings fromJson(JsonReader jsonReader) throws String containerRunOptions = null; ContainerRegistryReference registry = null; ContainerWorkingDirectory workingDirectory = null; + List containerHostBatchBindMounts = null; while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); @@ -170,6 +174,9 @@ public static BatchTaskContainerSettings fromJson(JsonReader jsonReader) throws registry = ContainerRegistryReference.fromJson(reader); } else if ("workingDirectory".equals(fieldName)) { workingDirectory = ContainerWorkingDirectory.fromString(reader.getString()); + } else if ("containerHostBatchBindMounts".equals(fieldName)) { + containerHostBatchBindMounts + = reader.readArray(reader1 -> ContainerHostBatchBindMountEntry.fromJson(reader1)); } else { reader.skipChildren(); } @@ -179,6 +186,7 @@ public static BatchTaskContainerSettings fromJson(JsonReader jsonReader) throws deserializedBatchTaskContainerSettings.containerRunOptions = containerRunOptions; deserializedBatchTaskContainerSettings.registry = registry; deserializedBatchTaskContainerSettings.workingDirectory = workingDirectory; + deserializedBatchTaskContainerSettings.containerHostBatchBindMounts = containerHostBatchBindMounts; return deserializedBatchTaskContainerSettings; }); } @@ -195,4 +203,39 @@ public BatchTaskContainerSettings setRegistry(ContainerRegistryReference registr this.registry = registry; return this; } + + /* + * The paths you want to mounted to container task. If this array is null or be not present, container task will + * mount entire temporary disk drive in windows (or AZ_BATCH_NODE_ROOT_DIR in Linux). It won't' mount any data paths + * into container if this array is set as empty. + */ + @Generated + private List containerHostBatchBindMounts; + + /** + * Get the containerHostBatchBindMounts property: The paths you want to mounted to container task. If this array is + * null or be not present, container task will mount entire temporary disk drive in windows (or + * AZ_BATCH_NODE_ROOT_DIR in Linux). It won't' mount any data paths into container if this array is set as empty. + * + * @return the containerHostBatchBindMounts value. + */ + @Generated + public List getContainerHostBatchBindMounts() { + return this.containerHostBatchBindMounts; + } + + /** + * Set the containerHostBatchBindMounts property: The paths you want to mounted to container task. If this array is + * null or be not present, container task will mount entire temporary disk drive in windows (or + * AZ_BATCH_NODE_ROOT_DIR in Linux). It won't' mount any data paths into container if this array is set as empty. + * + * @param containerHostBatchBindMounts the containerHostBatchBindMounts value to set. + * @return the BatchTaskContainerSettings object itself. + */ + @Generated + public BatchTaskContainerSettings + setContainerHostBatchBindMounts(List containerHostBatchBindMounts) { + this.containerHostBatchBindMounts = containerHostBatchBindMounts; + return this; + } } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ContainerHostBatchBindMountEntry.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ContainerHostBatchBindMountEntry.java new file mode 100644 index 000000000000..5b82e487f71c --- /dev/null +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ContainerHostBatchBindMountEntry.java @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.compute.batch.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The entry of path and mount mode you want to mount into task container. + */ +@Fluent +public final class ContainerHostBatchBindMountEntry implements JsonSerializable { + /* + * The path which be mounted to container customer can select. + */ + @Generated + private ContainerHostDataPath source; + + /* + * Mount this source path as read-only mode or not. Default value is false (read/write mode). For Linux, if you + * mount this path as a read/write mode, this does not mean that all users in container have the read/write access + * for the path, it depends on the access in host VM. If this path is mounted read-only, all users within the + * container will not be able to modify the path. + */ + @Generated + private Boolean isReadOnly; + + /** + * Creates an instance of ContainerHostBatchBindMountEntry class. + */ + @Generated + public ContainerHostBatchBindMountEntry() { + } + + /** + * Get the source property: The path which be mounted to container customer can select. + * + * @return the source value. + */ + @Generated + public ContainerHostDataPath getSource() { + return this.source; + } + + /** + * Set the source property: The path which be mounted to container customer can select. + * + * @param source the source value to set. + * @return the ContainerHostBatchBindMountEntry object itself. + */ + @Generated + public ContainerHostBatchBindMountEntry setSource(ContainerHostDataPath source) { + this.source = source; + return this; + } + + /** + * Get the isReadOnly property: Mount this source path as read-only mode or not. Default value is false (read/write + * mode). For Linux, if you mount this path as a read/write mode, this does not mean that all users in container + * have the read/write access for the path, it depends on the access in host VM. If this path is mounted read-only, + * all users within the container will not be able to modify the path. + * + * @return the isReadOnly value. + */ + @Generated + public Boolean isReadOnly() { + return this.isReadOnly; + } + + /** + * Set the isReadOnly property: Mount this source path as read-only mode or not. Default value is false (read/write + * mode). For Linux, if you mount this path as a read/write mode, this does not mean that all users in container + * have the read/write access for the path, it depends on the access in host VM. If this path is mounted read-only, + * all users within the container will not be able to modify the path. + * + * @param isReadOnly the isReadOnly value to set. + * @return the ContainerHostBatchBindMountEntry object itself. + */ + @Generated + public ContainerHostBatchBindMountEntry setIsReadOnly(Boolean isReadOnly) { + this.isReadOnly = isReadOnly; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("source", this.source == null ? null : this.source.toString()); + jsonWriter.writeBooleanField("isReadOnly", this.isReadOnly); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ContainerHostBatchBindMountEntry from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ContainerHostBatchBindMountEntry if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the ContainerHostBatchBindMountEntry. + */ + @Generated + public static ContainerHostBatchBindMountEntry fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ContainerHostBatchBindMountEntry deserializedContainerHostBatchBindMountEntry + = new ContainerHostBatchBindMountEntry(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("source".equals(fieldName)) { + deserializedContainerHostBatchBindMountEntry.source + = ContainerHostDataPath.fromString(reader.getString()); + } else if ("isReadOnly".equals(fieldName)) { + deserializedContainerHostBatchBindMountEntry.isReadOnly + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedContainerHostBatchBindMountEntry; + }); + } +} diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ContainerHostDataPath.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ContainerHostDataPath.java new file mode 100644 index 000000000000..0b1b6dfbc55c --- /dev/null +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ContainerHostDataPath.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.compute.batch.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The paths which will be mounted to container task's container. + */ +public final class ContainerHostDataPath extends ExpandableStringEnum { + /** + * All nodes in the pool will be allocated in the same region. + */ + @Generated + public static final ContainerHostDataPath REGIONAL = fromString("regional"); + + /** + * Nodes in the pool will be spread across different availability zones with best effort balancing. + */ + @Generated + public static final ContainerHostDataPath ZONAL = fromString("zonal"); + + /** + * Creates a new instance of ContainerHostDataPath value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public ContainerHostDataPath() { + } + + /** + * Creates or finds a ContainerHostDataPath from its string representation. + * + * @param name a name to look for. + * @return the corresponding ContainerHostDataPath. + */ + @Generated + public static ContainerHostDataPath fromString(String name) { + return fromString(name, ContainerHostDataPath.class); + } + + /** + * Gets known ContainerHostDataPath values. + * + * @return known ContainerHostDataPath values. + */ + @Generated + public static Collection values() { + return values(ContainerHostDataPath.class); + } +} diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/DiffDiskPlacement.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/DiffDiskPlacement.java index b67cce62b9cb..b58f79b064d1 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/DiffDiskPlacement.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/DiffDiskPlacement.java @@ -8,7 +8,12 @@ import java.util.Collection; /** - * AccessDiffDiskPlacementScope enums. + * Specifies the ephemeral disk placement for operating system disk for all compute nodes (VMs) in the pool. This + * property can be used by user in the request to choose which location the operating system should be in. e.g., cache + * disk space for Ephemeral OS disk provisioning. For more information on Ephemeral OS disk size requirements, please + * refer to Ephemeral OS disk size requirements for Windows VMs at + * https://docs.microsoft.com/azure/virtual-machines/windows/ephemeral-os-disks#size-requirements and Linux VMs at + * https://docs.microsoft.com/azure/virtual-machines/linux/ephemeral-os-disks#size-requirements. */ public final class DiffDiskPlacement extends ExpandableStringEnum { diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/DiffDiskSettings.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/DiffDiskSettings.java index 5188975d84d9..e88eeba062cb 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/DiffDiskSettings.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/DiffDiskSettings.java @@ -22,9 +22,8 @@ public final class DiffDiskSettings implements JsonSerializable { /* - * The list of disk targets Batch Service will encrypt on the compute node. If omitted, no disks on the compute - * nodes in the pool will be encrypted. On Linux pool, only "TemporaryDisk" is supported; on Windows pool, "OsDisk" - * and "TemporaryDisk" must be specified. + * The list of disk targets Batch Service will encrypt on the compute node. The list of disk targets Batch Service + * will encrypt on the compute node. */ @Generated private List targets; @@ -36,9 +35,8 @@ public DiskEncryptionConfiguration() { } /** - * Get the targets property: The list of disk targets Batch Service will encrypt on the compute node. If omitted, no - * disks on the compute nodes in the pool will be encrypted. On Linux pool, only "TemporaryDisk" is supported; on - * Windows pool, "OsDisk" and "TemporaryDisk" must be specified. + * Get the targets property: The list of disk targets Batch Service will encrypt on the compute node. The list of + * disk targets Batch Service will encrypt on the compute node. * * @return the targets value. */ @@ -48,9 +46,8 @@ public List getTargets() { } /** - * Set the targets property: The list of disk targets Batch Service will encrypt on the compute node. If omitted, no - * disks on the compute nodes in the pool will be encrypted. On Linux pool, only "TemporaryDisk" is supported; on - * Windows pool, "OsDisk" and "TemporaryDisk" must be specified. + * Set the targets property: The list of disk targets Batch Service will encrypt on the compute node. The list of + * disk targets Batch Service will encrypt on the compute node. * * @param targets the targets value to set. * @return the DiskEncryptionConfiguration object itself. diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/FileProperties.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/FileProperties.java index ff143b28634d..5e0797385f8b 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/FileProperties.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/FileProperties.java @@ -35,7 +35,7 @@ public final class FileProperties implements JsonSerializable { * The length of the file. */ @Generated - private final long contentLength; + private final String contentLength; /* * The content type of the file. @@ -76,7 +76,7 @@ public OffsetDateTime getLastModified() { * @return the contentLength value. */ @Generated - public long getContentLength() { + public String getContentLength() { return this.contentLength; } @@ -101,18 +101,6 @@ public String getFileMode() { return this.fileMode; } - /** - * Creates an instance of FileProperties class. - * - * @param lastModified the lastModified value to set. - * @param contentLength the contentLength value to set. - */ - @Generated - private FileProperties(OffsetDateTime lastModified, long contentLength) { - this.lastModified = lastModified; - this.contentLength = contentLength; - } - /** * {@inheritDoc} */ @@ -122,7 +110,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("lastModified", this.lastModified == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastModified)); - jsonWriter.writeLongField("contentLength", this.contentLength); + jsonWriter.writeStringField("contentLength", this.contentLength); jsonWriter.writeStringField("creationTime", this.creationTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.creationTime)); jsonWriter.writeStringField("contentType", this.contentType); @@ -182,4 +170,16 @@ public static FileProperties fromJson(JsonReader jsonReader) throws IOException return deserializedFileProperties; }); } + + /** + * Creates an instance of FileProperties class. + * + * @param lastModified the lastModified value to set. + * @param contentLength the contentLength value to set. + */ + @Generated + private FileProperties(OffsetDateTime lastModified, String contentLength) { + this.lastModified = lastModified; + this.contentLength = contentLength; + } } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ImageReference.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ImageReference.java index 049e732e90aa..262e66992d53 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ImageReference.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ImageReference.java @@ -236,6 +236,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("sku", this.sku); jsonWriter.writeStringField("version", this.version); jsonWriter.writeStringField("virtualMachineImageId", this.virtualMachineImageId); + jsonWriter.writeStringField("sharedGalleryImageId", this.sharedGalleryImageId); + jsonWriter.writeStringField("communityGalleryImageId", this.communityGalleryImageId); return jsonWriter.writeEndObject(); } @@ -266,6 +268,10 @@ public static ImageReference fromJson(JsonReader jsonReader) throws IOException deserializedImageReference.virtualMachineImageId = reader.getString(); } else if ("exactVersion".equals(fieldName)) { deserializedImageReference.exactVersion = reader.getString(); + } else if ("sharedGalleryImageId".equals(fieldName)) { + deserializedImageReference.sharedGalleryImageId = reader.getString(); + } else if ("communityGalleryImageId".equals(fieldName)) { + deserializedImageReference.communityGalleryImageId = reader.getString(); } else { reader.skipChildren(); } @@ -273,4 +279,66 @@ public static ImageReference fromJson(JsonReader jsonReader) throws IOException return deserializedImageReference; }); } + + /* + * The shared gallery image unique identifier. This property is mutually exclusive with other properties and can be + * fetched from shared gallery image GET call. + */ + @Generated + private String sharedGalleryImageId; + + /* + * The community gallery image unique identifier. This property is mutually exclusive with other properties and can + * be fetched from community gallery image GET call. + */ + @Generated + private String communityGalleryImageId; + + /** + * Get the sharedGalleryImageId property: The shared gallery image unique identifier. This property is mutually + * exclusive with other properties and can be fetched from shared gallery image GET call. + * + * @return the sharedGalleryImageId value. + */ + @Generated + public String getSharedGalleryImageId() { + return this.sharedGalleryImageId; + } + + /** + * Set the sharedGalleryImageId property: The shared gallery image unique identifier. This property is mutually + * exclusive with other properties and can be fetched from shared gallery image GET call. + * + * @param sharedGalleryImageId the sharedGalleryImageId value to set. + * @return the ImageReference object itself. + */ + @Generated + public ImageReference setSharedGalleryImageId(String sharedGalleryImageId) { + this.sharedGalleryImageId = sharedGalleryImageId; + return this; + } + + /** + * Get the communityGalleryImageId property: The community gallery image unique identifier. This property is + * mutually exclusive with other properties and can be fetched from community gallery image GET call. + * + * @return the communityGalleryImageId value. + */ + @Generated + public String getCommunityGalleryImageId() { + return this.communityGalleryImageId; + } + + /** + * Set the communityGalleryImageId property: The community gallery image unique identifier. This property is + * mutually exclusive with other properties and can be fetched from community gallery image GET call. + * + * @param communityGalleryImageId the communityGalleryImageId value to set. + * @return the ImageReference object itself. + */ + @Generated + public ImageReference setCommunityGalleryImageId(String communityGalleryImageId) { + this.communityGalleryImageId = communityGalleryImageId; + return this; + } } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ManagedDisk.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ManagedDisk.java index 523da39c9c67..b1663c7e5488 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ManagedDisk.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/ManagedDisk.java @@ -3,8 +3,8 @@ // Code generated by Microsoft (R) TypeSpec Code Generator. package com.azure.compute.batch.models; +import com.azure.core.annotation.Fluent; import com.azure.core.annotation.Generated; -import com.azure.core.annotation.Immutable; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,24 +14,14 @@ /** * The managed disk parameters. */ -@Immutable +@Fluent public final class ManagedDisk implements JsonSerializable { /* * The storage account type for managed disk. */ @Generated - private final StorageAccountType storageAccountType; - - /** - * Creates an instance of ManagedDisk class. - * - * @param storageAccountType the storageAccountType value to set. - */ - @Generated - public ManagedDisk(StorageAccountType storageAccountType) { - this.storageAccountType = storageAccountType; - } + private StorageAccountType storageAccountType; /** * Get the storageAccountType property: The storage account type for managed disk. @@ -52,6 +42,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("storageAccountType", this.storageAccountType == null ? null : this.storageAccountType.toString()); + jsonWriter.writeJsonField("securityProfile", this.securityProfile); return jsonWriter.writeEndObject(); } @@ -61,23 +52,71 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { * @param jsonReader The JsonReader being read. * @return An instance of ManagedDisk if the JsonReader was pointing to an instance of it, or null if it was * pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. * @throws IOException If an error occurs while reading the ManagedDisk. */ @Generated public static ManagedDisk fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - StorageAccountType storageAccountType = null; + ManagedDisk deserializedManagedDisk = new ManagedDisk(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("storageAccountType".equals(fieldName)) { - storageAccountType = StorageAccountType.fromString(reader.getString()); + deserializedManagedDisk.storageAccountType = StorageAccountType.fromString(reader.getString()); + } else if ("securityProfile".equals(fieldName)) { + deserializedManagedDisk.securityProfile = VMDiskSecurityProfile.fromJson(reader); } else { reader.skipChildren(); } } - return new ManagedDisk(storageAccountType); + return deserializedManagedDisk; }); } + + /* + * Specifies the security profile settings for the managed disk. + */ + @Generated + private VMDiskSecurityProfile securityProfile; + + /** + * Creates an instance of ManagedDisk class. + */ + @Generated + public ManagedDisk() { + } + + /** + * Set the storageAccountType property: The storage account type for managed disk. + * + * @param storageAccountType the storageAccountType value to set. + * @return the ManagedDisk object itself. + */ + @Generated + public ManagedDisk setStorageAccountType(StorageAccountType storageAccountType) { + this.storageAccountType = storageAccountType; + return this; + } + + /** + * Get the securityProfile property: Specifies the security profile settings for the managed disk. + * + * @return the securityProfile value. + */ + @Generated + public VMDiskSecurityProfile getSecurityProfile() { + return this.securityProfile; + } + + /** + * Set the securityProfile property: Specifies the security profile settings for the managed disk. + * + * @param securityProfile the securityProfile value to set. + * @return the ManagedDisk object itself. + */ + @Generated + public ManagedDisk setSecurityProfile(VMDiskSecurityProfile securityProfile) { + this.securityProfile = securityProfile; + return this; + } } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/NetworkConfiguration.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/NetworkConfiguration.java index 118f94ca213f..bd615230be79 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/NetworkConfiguration.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/NetworkConfiguration.java @@ -18,23 +18,20 @@ public final class NetworkConfiguration implements JsonSerializable { /* - * The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. This is - * of the form - * /subscriptions/{subscription}/resourceGroups/{group}/providers/{provider}/virtualNetworks/{network}/subnets/{ - * subnet}. 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 Compute Nodes in the Pool. If - * the subnet doesn't have enough free IP addresses, the Pool will partially allocate 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 Nodes. This can be verified by checking if the specified VNet - * has any associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied - * by an NSG, then the Batch service will set the state of the Compute Nodes to unusable. For Pools created with - * virtualMachineConfiguration only ARM virtual networks ('Microsoft.Network/virtualNetworks') are supported. 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. Also enable outbound connections to Azure Storage on port - * 443. For more details see: - * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. + * The ARM resource identifier of the virtual network subnet which the Compute Nodes of the Pool will join. 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 Compute Nodes in the Pool. If the subnet + * doesn't have enough free IP addresses, the Pool will partially allocate 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 Nodes. This can be verified by checking if the specified VNet has any + * associated Network Security Groups (NSG). If communication to the Nodes in the specified subnet is denied by an + * NSG, then the Batch service will set the state of the Compute Nodes to unusable. Only ARM virtual networks + * ('Microsoft.Network/virtualNetworks') are supported. If the specified VNet has any associated Network Security + * Groups (NSG), then a few reserved system ports must be enabled for inbound communication. Enable ports 29876 and + * 29877, as well as port 22 for Linux and port 3389 for Windows. Also enable outbound connections to Azure Storage + * on port 443. For more details see: + * https://docs.microsoft.com/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. */ @Generated private String subnetId; @@ -46,15 +43,13 @@ public final class NetworkConfiguration implements JsonSerializable uploadHeaders; @@ -129,8 +129,7 @@ public OutputFileBlobContainerDestination setIdentityReference(BatchNodeIdentity /** * Get the uploadHeaders property: A list of name-value pairs for headers to be used in uploading output files. * These headers will be specified when uploading files to Azure Storage. Official document on allowed headers when - * uploading blobs: - * https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob#request-headers-all-blob-types. + * uploading blobs: https://docs.microsoft.com/rest/api/storageservices/put-blob#request-headers-all-blob-types. * * @return the uploadHeaders value. */ @@ -142,8 +141,7 @@ public List getUploadHeaders() { /** * Set the uploadHeaders property: A list of name-value pairs for headers to be used in uploading output files. * These headers will be specified when uploading files to Azure Storage. Official document on allowed headers when - * uploading blobs: - * https://docs.microsoft.com/en-us/rest/api/storageservices/put-blob#request-headers-all-blob-types. + * uploading blobs: https://docs.microsoft.com/rest/api/storageservices/put-blob#request-headers-all-blob-types. * * @param uploadHeaders the uploadHeaders value to set. * @return the OutputFileBlobContainerDestination object itself. diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityEncryptionTypes.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityEncryptionTypes.java new file mode 100644 index 000000000000..93ba77b2c39b --- /dev/null +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityEncryptionTypes.java @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.compute.batch.models; + +import com.azure.core.annotation.Generated; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * SecurityEncryptionTypes enums. + */ +public final class SecurityEncryptionTypes extends ExpandableStringEnum { + /** + * NonPersistedTPM. + */ + @Generated + public static final SecurityEncryptionTypes NON_PERSISTED_TPM = fromString("NonPersistedTPM"); + + /** + * VMGuestStateOnly. + */ + @Generated + public static final SecurityEncryptionTypes VMGUEST_STATE_ONLY = fromString("VMGuestStateOnly"); + + /** + * Creates a new instance of SecurityEncryptionTypes value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Generated + @Deprecated + public SecurityEncryptionTypes() { + } + + /** + * Creates or finds a SecurityEncryptionTypes from its string representation. + * + * @param name a name to look for. + * @return the corresponding SecurityEncryptionTypes. + */ + @Generated + public static SecurityEncryptionTypes fromString(String name) { + return fromString(name, SecurityEncryptionTypes.class); + } + + /** + * Gets known SecurityEncryptionTypes values. + * + * @return known SecurityEncryptionTypes values. + */ + @Generated + public static Collection values() { + return values(SecurityEncryptionTypes.class); + } +} diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityProfile.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityProfile.java index 6361c8b5bd92..2a01f50ef608 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityProfile.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityProfile.java @@ -20,7 +20,8 @@ public final class SecurityProfile implements JsonSerializable /* * This property can be used by user in the request to enable or disable the Host Encryption for the virtual machine * or virtual machine scale set. This will enable the encryption for all the disks including Resource/Temp disk at - * host itself. + * host itself. For more information on encryption at host requirements, please refer to + * https://learn.microsoft.com/azure/virtual-machines/disk-encryption#supported-vm-sizes. */ @Generated private final boolean encryptionAtHost; @@ -56,7 +57,8 @@ public SecurityProfile(boolean encryptionAtHost, SecurityTypes securityType, Uef /** * Get the encryptionAtHost property: This property can be used by user in the request to enable or disable the Host * Encryption for the virtual machine or virtual machine scale set. This will enable the encryption for all the - * disks including Resource/Temp disk at host itself. + * disks including Resource/Temp disk at host itself. For more information on encryption at host requirements, + * please refer to https://learn.microsoft.com/azure/virtual-machines/disk-encryption#supported-vm-sizes. * * @return the encryptionAtHost value. */ diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityTypes.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityTypes.java index b1273fcfeac6..d53cb622b246 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityTypes.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/SecurityTypes.java @@ -48,4 +48,13 @@ public static SecurityTypes fromString(String name) { public static Collection values() { return values(SecurityTypes.class); } + + /** + * Azure confidential computing offers confidential VMs are for tenants with high security and confidentiality + * requirements. These VMs provide a strong, hardware-enforced boundary to help meet your security needs. You can + * use confidential VMs for migrations without making changes to your code, with the platform protecting your VM's + * state from being read or modified. + */ + @Generated + public static final SecurityTypes CONFIDENTIAL_VM = fromString("confidentialVM"); } diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/UpgradePolicy.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/UpgradePolicy.java index a4756b3e3208..3a9ca4c4a9d4 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/UpgradePolicy.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/UpgradePolicy.java @@ -28,8 +28,7 @@ public final class UpgradePolicy implements JsonSerializable { private final UpgradeMode mode; /* - * The configuration parameters used while performing a rolling upgrade. This property is only supported on Pools - * with the virtualMachineConfiguration property. + * The configuration parameters used while performing a rolling upgrade. */ @Generated private RollingUpgradePolicy rollingUpgradePolicy; @@ -59,8 +58,7 @@ public UpgradeMode getMode() { } /** - * Get the rollingUpgradePolicy property: The configuration parameters used while performing a rolling upgrade. This - * property is only supported on Pools with the virtualMachineConfiguration property. + * Get the rollingUpgradePolicy property: The configuration parameters used while performing a rolling upgrade. * * @return the rollingUpgradePolicy value. */ @@ -70,8 +68,7 @@ public RollingUpgradePolicy getRollingUpgradePolicy() { } /** - * Set the rollingUpgradePolicy property: The configuration parameters used while performing a rolling upgrade. This - * property is only supported on Pools with the virtualMachineConfiguration property. + * Set the rollingUpgradePolicy property: The configuration parameters used while performing a rolling upgrade. * * @param rollingUpgradePolicy the rollingUpgradePolicy value to set. * @return the UpgradePolicy object itself. diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/VMDiskSecurityProfile.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/VMDiskSecurityProfile.java new file mode 100644 index 000000000000..61fefdd5ffb3 --- /dev/null +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/VMDiskSecurityProfile.java @@ -0,0 +1,103 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.compute.batch.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Generated; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Specifies the security profile settings for the managed disk. **Note**: It can only be set for Confidential VMs and + * required when using Confidential VMs. + */ +@Fluent +public final class VMDiskSecurityProfile implements JsonSerializable { + /* + * Specifies the EncryptionType of the managed disk. It is set to VMGuestStateOnly for encryption of just the + * VMGuestState blob, and NonPersistedTPM for not persisting firmware state in the VMGuestState blob. **Note**: It + * can be set for only Confidential VMs and is required when using Confidential VMs. + */ + @Generated + private SecurityEncryptionTypes securityEncryptionType; + + /** + * Creates an instance of VMDiskSecurityProfile class. + */ + @Generated + public VMDiskSecurityProfile() { + } + + /** + * Get the securityEncryptionType property: Specifies the EncryptionType of the managed disk. It is set to + * VMGuestStateOnly for encryption of just the VMGuestState blob, and NonPersistedTPM for not persisting firmware + * state in the VMGuestState blob. **Note**: It can be set for only Confidential VMs and is required when using + * Confidential VMs. + * + * @return the securityEncryptionType value. + */ + @Generated + public SecurityEncryptionTypes getSecurityEncryptionType() { + return this.securityEncryptionType; + } + + /** + * Set the securityEncryptionType property: Specifies the EncryptionType of the managed disk. It is set to + * VMGuestStateOnly for encryption of just the VMGuestState blob, and NonPersistedTPM for not persisting firmware + * state in the VMGuestState blob. **Note**: It can be set for only Confidential VMs and is required when using + * Confidential VMs. + * + * @param securityEncryptionType the securityEncryptionType value to set. + * @return the VMDiskSecurityProfile object itself. + */ + @Generated + public VMDiskSecurityProfile setSecurityEncryptionType(SecurityEncryptionTypes securityEncryptionType) { + this.securityEncryptionType = securityEncryptionType; + return this; + } + + /** + * {@inheritDoc} + */ + @Generated + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("securityEncryptionType", + this.securityEncryptionType == null ? null : this.securityEncryptionType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VMDiskSecurityProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VMDiskSecurityProfile if the JsonReader was pointing to an instance of it, or null if it + * was pointing to JSON null. + * @throws IOException If an error occurs while reading the VMDiskSecurityProfile. + */ + @Generated + public static VMDiskSecurityProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VMDiskSecurityProfile deserializedVMDiskSecurityProfile = new VMDiskSecurityProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("securityEncryptionType".equals(fieldName)) { + deserializedVMDiskSecurityProfile.securityEncryptionType + = SecurityEncryptionTypes.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedVMDiskSecurityProfile; + }); + } +} diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/VirtualMachineConfiguration.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/VirtualMachineConfiguration.java index c6928fe818a2..81628e511d42 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/VirtualMachineConfiguration.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/VirtualMachineConfiguration.java @@ -50,10 +50,9 @@ public final class VirtualMachineConfiguration implements JsonSerializable dataDisks; @@ -175,9 +174,9 @@ public VirtualMachineConfiguration setWindowsConfiguration(WindowsConfiguration * attached, each attached disk is empty. When the Compute Node is removed from the Pool, the disk and all data * associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before * use - for more information see - * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * https://docs.microsoft.com/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux * and - * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. + * https://docs.microsoft.com/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @return the dataDisks value. */ @@ -193,9 +192,9 @@ public List getDataDisks() { * attached, each attached disk is empty. When the Compute Node is removed from the Pool, the disk and all data * associated with it is also deleted. The disk is not formatted after being attached, it must be formatted before * use - for more information see - * https://docs.microsoft.com/en-us/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux + * https://docs.microsoft.com/azure/virtual-machines/linux/classic/attach-disk#initialize-a-new-data-disk-in-linux * and - * https://docs.microsoft.com/en-us/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. + * https://docs.microsoft.com/azure/virtual-machines/windows/attach-disk-ps#add-an-empty-data-disk-to-a-virtual-machine. * * @param dataDisks the dataDisks value to set. * @return the VirtualMachineConfiguration object itself. diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/WindowsUserConfiguration.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/WindowsUserConfiguration.java index b5278f23a18a..32ac8f71207c 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/WindowsUserConfiguration.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/models/WindowsUserConfiguration.java @@ -18,7 +18,7 @@ public final class WindowsUserConfiguration implements JsonSerializable { /* - * The login mode for the user. The default value for VirtualMachineConfiguration Pools is 'batch'. + * The login mode for the user. The default is 'batch'. */ @Generated private LoginMode loginMode; @@ -31,8 +31,7 @@ public WindowsUserConfiguration() { } /** - * Get the loginMode property: The login mode for the user. The default value for VirtualMachineConfiguration Pools - * is 'batch'. + * Get the loginMode property: The login mode for the user. The default is 'batch'. * * @return the loginMode value. */ @@ -42,8 +41,7 @@ public LoginMode getLoginMode() { } /** - * Set the loginMode property: The login mode for the user. The default value for VirtualMachineConfiguration Pools - * is 'batch'. + * Set the loginMode property: The login mode for the user. The default is 'batch'. * * @param loginMode the loginMode value to set. * @return the WindowsUserConfiguration object itself. diff --git a/sdk/batch/azure-compute-batch/src/main/resources/META-INF/azure-compute-batch_apiview_properties.json b/sdk/batch/azure-compute-batch/src/main/resources/META-INF/azure-compute-batch_apiview_properties.json index 2ae3877cfbc2..9b754ae53d92 100644 --- a/sdk/batch/azure-compute-batch/src/main/resources/META-INF/azure-compute-batch_apiview_properties.json +++ b/sdk/batch/azure-compute-batch/src/main/resources/META-INF/azure-compute-batch_apiview_properties.json @@ -1,255 +1,267 @@ { "flavor": "azure", "CrossLanguageDefinitionId": { - "com.azure.compute.batch.BatchAsyncClient": "Azure.Batch.Batch", - "com.azure.compute.batch.BatchAsyncClient.createJobInternal": "Azure.Batch.Batch.createJob", - "com.azure.compute.batch.BatchAsyncClient.createJobInternalWithResponse": "Azure.Batch.Batch.createJob", - "com.azure.compute.batch.BatchAsyncClient.createJobScheduleInternal": "Azure.Batch.Batch.createJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.createJobScheduleInternalWithResponse": "Azure.Batch.Batch.createJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.createNodeUserInternal": "Azure.Batch.Batch.createNodeUser", - "com.azure.compute.batch.BatchAsyncClient.createNodeUserInternalWithResponse": "Azure.Batch.Batch.createNodeUser", - "com.azure.compute.batch.BatchAsyncClient.createPoolInternal": "Azure.Batch.Batch.createPool", - "com.azure.compute.batch.BatchAsyncClient.createPoolInternalWithResponse": "Azure.Batch.Batch.createPool", - "com.azure.compute.batch.BatchAsyncClient.createTaskCollectionInternal": "Azure.Batch.Batch.createTaskCollection", - "com.azure.compute.batch.BatchAsyncClient.createTaskCollectionInternalWithResponse": "Azure.Batch.Batch.createTaskCollection", - "com.azure.compute.batch.BatchAsyncClient.createTaskInternal": "Azure.Batch.Batch.createTask", - "com.azure.compute.batch.BatchAsyncClient.createTaskInternalWithResponse": "Azure.Batch.Batch.createTask", - "com.azure.compute.batch.BatchAsyncClient.deleteJobInternal": "Azure.Batch.Batch.deleteJob", - "com.azure.compute.batch.BatchAsyncClient.deleteJobInternalWithResponse": "Azure.Batch.Batch.deleteJob", - "com.azure.compute.batch.BatchAsyncClient.deleteJobScheduleInternal": "Azure.Batch.Batch.deleteJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.deleteJobScheduleInternalWithResponse": "Azure.Batch.Batch.deleteJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.deleteNodeFileInternal": "Azure.Batch.Batch.deleteNodeFile", - "com.azure.compute.batch.BatchAsyncClient.deleteNodeFileInternalWithResponse": "Azure.Batch.Batch.deleteNodeFile", - "com.azure.compute.batch.BatchAsyncClient.deleteNodeUserInternal": "Azure.Batch.Batch.deleteNodeUser", - "com.azure.compute.batch.BatchAsyncClient.deleteNodeUserInternalWithResponse": "Azure.Batch.Batch.deleteNodeUser", - "com.azure.compute.batch.BatchAsyncClient.deletePoolInternal": "Azure.Batch.Batch.deletePool", - "com.azure.compute.batch.BatchAsyncClient.deletePoolInternalWithResponse": "Azure.Batch.Batch.deletePool", - "com.azure.compute.batch.BatchAsyncClient.deleteTaskFileInternal": "Azure.Batch.Batch.deleteTaskFile", - "com.azure.compute.batch.BatchAsyncClient.deleteTaskFileInternalWithResponse": "Azure.Batch.Batch.deleteTaskFile", - "com.azure.compute.batch.BatchAsyncClient.deleteTaskInternal": "Azure.Batch.Batch.deleteTask", - "com.azure.compute.batch.BatchAsyncClient.deleteTaskInternalWithResponse": "Azure.Batch.Batch.deleteTask", - "com.azure.compute.batch.BatchAsyncClient.disableJobInternal": "Azure.Batch.Batch.disableJob", - "com.azure.compute.batch.BatchAsyncClient.disableJobInternalWithResponse": "Azure.Batch.Batch.disableJob", - "com.azure.compute.batch.BatchAsyncClient.disableJobScheduleInternal": "Azure.Batch.Batch.disableJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.disableJobScheduleInternalWithResponse": "Azure.Batch.Batch.disableJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.disableNodeSchedulingInternal": "Azure.Batch.Batch.disableNodeScheduling", - "com.azure.compute.batch.BatchAsyncClient.disableNodeSchedulingInternalWithResponse": "Azure.Batch.Batch.disableNodeScheduling", - "com.azure.compute.batch.BatchAsyncClient.disablePoolAutoScaleInternal": "Azure.Batch.Batch.disablePoolAutoScale", - "com.azure.compute.batch.BatchAsyncClient.disablePoolAutoScaleInternalWithResponse": "Azure.Batch.Batch.disablePoolAutoScale", - "com.azure.compute.batch.BatchAsyncClient.enableJobInternal": "Azure.Batch.Batch.enableJob", - "com.azure.compute.batch.BatchAsyncClient.enableJobInternalWithResponse": "Azure.Batch.Batch.enableJob", - "com.azure.compute.batch.BatchAsyncClient.enableJobScheduleInternal": "Azure.Batch.Batch.enableJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.enableJobScheduleInternalWithResponse": "Azure.Batch.Batch.enableJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.enableNodeSchedulingInternal": "Azure.Batch.Batch.enableNodeScheduling", - "com.azure.compute.batch.BatchAsyncClient.enableNodeSchedulingInternalWithResponse": "Azure.Batch.Batch.enableNodeScheduling", - "com.azure.compute.batch.BatchAsyncClient.enablePoolAutoScaleInternal": "Azure.Batch.Batch.enablePoolAutoScale", - "com.azure.compute.batch.BatchAsyncClient.enablePoolAutoScaleInternalWithResponse": "Azure.Batch.Batch.enablePoolAutoScale", - "com.azure.compute.batch.BatchAsyncClient.evaluatePoolAutoScaleInternal": "Azure.Batch.Batch.evaluatePoolAutoScale", - "com.azure.compute.batch.BatchAsyncClient.evaluatePoolAutoScaleInternalWithResponse": "Azure.Batch.Batch.evaluatePoolAutoScale", - "com.azure.compute.batch.BatchAsyncClient.getApplicationInternal": "Azure.Batch.Batch.getApplication", - "com.azure.compute.batch.BatchAsyncClient.getApplicationInternalWithResponse": "Azure.Batch.Batch.getApplication", - "com.azure.compute.batch.BatchAsyncClient.getJobInternal": "Azure.Batch.Batch.getJob", - "com.azure.compute.batch.BatchAsyncClient.getJobInternalWithResponse": "Azure.Batch.Batch.getJob", - "com.azure.compute.batch.BatchAsyncClient.getJobScheduleInternal": "Azure.Batch.Batch.getJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.getJobScheduleInternalWithResponse": "Azure.Batch.Batch.getJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.getJobTaskCountsInternal": "Azure.Batch.Batch.getJobTaskCounts", - "com.azure.compute.batch.BatchAsyncClient.getJobTaskCountsInternalWithResponse": "Azure.Batch.Batch.getJobTaskCounts", - "com.azure.compute.batch.BatchAsyncClient.getNodeExtensionInternal": "Azure.Batch.Batch.getNodeExtension", - "com.azure.compute.batch.BatchAsyncClient.getNodeExtensionInternalWithResponse": "Azure.Batch.Batch.getNodeExtension", - "com.azure.compute.batch.BatchAsyncClient.getNodeFileInternal": "Azure.Batch.Batch.getNodeFile", - "com.azure.compute.batch.BatchAsyncClient.getNodeFileInternalWithResponse": "Azure.Batch.Batch.getNodeFile", - "com.azure.compute.batch.BatchAsyncClient.getNodeFilePropertiesInternal": "Azure.Batch.Batch.getNodeFileProperties", - "com.azure.compute.batch.BatchAsyncClient.getNodeFilePropertiesInternalWithResponse": "Azure.Batch.Batch.getNodeFileProperties", - "com.azure.compute.batch.BatchAsyncClient.getNodeInternal": "Azure.Batch.Batch.getNode", - "com.azure.compute.batch.BatchAsyncClient.getNodeInternalWithResponse": "Azure.Batch.Batch.getNode", - "com.azure.compute.batch.BatchAsyncClient.getNodeRemoteLoginSettingsInternal": "Azure.Batch.Batch.getNodeRemoteLoginSettings", - "com.azure.compute.batch.BatchAsyncClient.getNodeRemoteLoginSettingsInternalWithResponse": "Azure.Batch.Batch.getNodeRemoteLoginSettings", - "com.azure.compute.batch.BatchAsyncClient.getPoolInternal": "Azure.Batch.Batch.getPool", - "com.azure.compute.batch.BatchAsyncClient.getPoolInternalWithResponse": "Azure.Batch.Batch.getPool", - "com.azure.compute.batch.BatchAsyncClient.getTaskFileInternal": "Azure.Batch.Batch.getTaskFile", - "com.azure.compute.batch.BatchAsyncClient.getTaskFileInternalWithResponse": "Azure.Batch.Batch.getTaskFile", - "com.azure.compute.batch.BatchAsyncClient.getTaskFilePropertiesInternal": "Azure.Batch.Batch.getTaskFileProperties", - "com.azure.compute.batch.BatchAsyncClient.getTaskFilePropertiesInternalWithResponse": "Azure.Batch.Batch.getTaskFileProperties", - "com.azure.compute.batch.BatchAsyncClient.getTaskInternal": "Azure.Batch.Batch.getTask", - "com.azure.compute.batch.BatchAsyncClient.getTaskInternalWithResponse": "Azure.Batch.Batch.getTask", - "com.azure.compute.batch.BatchAsyncClient.jobScheduleExistsInternal": "Azure.Batch.Batch.jobScheduleExists", - "com.azure.compute.batch.BatchAsyncClient.jobScheduleExistsInternalWithResponse": "Azure.Batch.Batch.jobScheduleExists", - "com.azure.compute.batch.BatchAsyncClient.listApplicationsInternal": "Azure.Batch.Batch.listApplications", - "com.azure.compute.batch.BatchAsyncClient.listJobPreparationAndReleaseTaskStatusInternal": "Azure.Batch.Batch.listJobPreparationAndReleaseTaskStatus", - "com.azure.compute.batch.BatchAsyncClient.listJobSchedulesInternal": "Azure.Batch.Batch.listJobSchedules", - "com.azure.compute.batch.BatchAsyncClient.listJobsFromScheduleInternal": "Azure.Batch.Batch.listJobsFromSchedule", - "com.azure.compute.batch.BatchAsyncClient.listJobsInternal": "Azure.Batch.Batch.listJobs", - "com.azure.compute.batch.BatchAsyncClient.listNodeExtensionsInternal": "Azure.Batch.Batch.listNodeExtensions", - "com.azure.compute.batch.BatchAsyncClient.listNodeFilesInternal": "Azure.Batch.Batch.listNodeFiles", - "com.azure.compute.batch.BatchAsyncClient.listNodesInternal": "Azure.Batch.Batch.listNodes", - "com.azure.compute.batch.BatchAsyncClient.listPoolNodeCountsInternal": "Azure.Batch.Batch.listPoolNodeCounts", - "com.azure.compute.batch.BatchAsyncClient.listPoolUsageMetricsInternal": "Azure.Batch.Batch.listPoolUsageMetrics", - "com.azure.compute.batch.BatchAsyncClient.listPoolsInternal": "Azure.Batch.Batch.listPools", - "com.azure.compute.batch.BatchAsyncClient.listSubTasksInternal": "Azure.Batch.Batch.listSubTasks", - "com.azure.compute.batch.BatchAsyncClient.listSupportedImagesInternal": "Azure.Batch.Batch.listSupportedImages", - "com.azure.compute.batch.BatchAsyncClient.listTaskFilesInternal": "Azure.Batch.Batch.listTaskFiles", - "com.azure.compute.batch.BatchAsyncClient.listTasksInternal": "Azure.Batch.Batch.listTasks", - "com.azure.compute.batch.BatchAsyncClient.poolExistsInternal": "Azure.Batch.Batch.poolExists", - "com.azure.compute.batch.BatchAsyncClient.poolExistsInternalWithResponse": "Azure.Batch.Batch.poolExists", - "com.azure.compute.batch.BatchAsyncClient.reactivateTaskInternal": "Azure.Batch.Batch.reactivateTask", - "com.azure.compute.batch.BatchAsyncClient.reactivateTaskInternalWithResponse": "Azure.Batch.Batch.reactivateTask", - "com.azure.compute.batch.BatchAsyncClient.rebootNodeInternal": "Azure.Batch.Batch.rebootNode", - "com.azure.compute.batch.BatchAsyncClient.rebootNodeInternalWithResponse": "Azure.Batch.Batch.rebootNode", - "com.azure.compute.batch.BatchAsyncClient.removeNodesInternal": "Azure.Batch.Batch.removeNodes", - "com.azure.compute.batch.BatchAsyncClient.removeNodesInternalWithResponse": "Azure.Batch.Batch.removeNodes", - "com.azure.compute.batch.BatchAsyncClient.replaceJobInternal": "Azure.Batch.Batch.replaceJob", - "com.azure.compute.batch.BatchAsyncClient.replaceJobInternalWithResponse": "Azure.Batch.Batch.replaceJob", - "com.azure.compute.batch.BatchAsyncClient.replaceJobScheduleInternal": "Azure.Batch.Batch.replaceJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.replaceJobScheduleInternalWithResponse": "Azure.Batch.Batch.replaceJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.replaceNodeUserInternal": "Azure.Batch.Batch.replaceNodeUser", - "com.azure.compute.batch.BatchAsyncClient.replaceNodeUserInternalWithResponse": "Azure.Batch.Batch.replaceNodeUser", - "com.azure.compute.batch.BatchAsyncClient.replacePoolPropertiesInternal": "Azure.Batch.Batch.replacePoolProperties", - "com.azure.compute.batch.BatchAsyncClient.replacePoolPropertiesInternalWithResponse": "Azure.Batch.Batch.replacePoolProperties", - "com.azure.compute.batch.BatchAsyncClient.replaceTaskInternal": "Azure.Batch.Batch.replaceTask", - "com.azure.compute.batch.BatchAsyncClient.replaceTaskInternalWithResponse": "Azure.Batch.Batch.replaceTask", - "com.azure.compute.batch.BatchAsyncClient.resizePoolInternal": "Azure.Batch.Batch.resizePool", - "com.azure.compute.batch.BatchAsyncClient.resizePoolInternalWithResponse": "Azure.Batch.Batch.resizePool", - "com.azure.compute.batch.BatchAsyncClient.stopPoolResizeInternal": "Azure.Batch.Batch.stopPoolResize", - "com.azure.compute.batch.BatchAsyncClient.stopPoolResizeInternalWithResponse": "Azure.Batch.Batch.stopPoolResize", - "com.azure.compute.batch.BatchAsyncClient.terminateJobInternal": "Azure.Batch.Batch.terminateJob", - "com.azure.compute.batch.BatchAsyncClient.terminateJobInternalWithResponse": "Azure.Batch.Batch.terminateJob", - "com.azure.compute.batch.BatchAsyncClient.terminateJobScheduleInternal": "Azure.Batch.Batch.terminateJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.terminateJobScheduleInternalWithResponse": "Azure.Batch.Batch.terminateJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.terminateTaskInternal": "Azure.Batch.Batch.terminateTask", - "com.azure.compute.batch.BatchAsyncClient.terminateTaskInternalWithResponse": "Azure.Batch.Batch.terminateTask", - "com.azure.compute.batch.BatchAsyncClient.updateJobInternal": "Azure.Batch.Batch.updateJob", - "com.azure.compute.batch.BatchAsyncClient.updateJobInternalWithResponse": "Azure.Batch.Batch.updateJob", - "com.azure.compute.batch.BatchAsyncClient.updateJobScheduleInternal": "Azure.Batch.Batch.updateJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.updateJobScheduleInternalWithResponse": "Azure.Batch.Batch.updateJobSchedule", - "com.azure.compute.batch.BatchAsyncClient.updatePoolInternal": "Azure.Batch.Batch.updatePool", - "com.azure.compute.batch.BatchAsyncClient.updatePoolInternalWithResponse": "Azure.Batch.Batch.updatePool", - "com.azure.compute.batch.BatchAsyncClient.uploadNodeLogsInternal": "Azure.Batch.Batch.uploadNodeLogs", - "com.azure.compute.batch.BatchAsyncClient.uploadNodeLogsInternalWithResponse": "Azure.Batch.Batch.uploadNodeLogs", - "com.azure.compute.batch.BatchClient": "Azure.Batch.Batch", - "com.azure.compute.batch.BatchClient.createJobInternal": "Azure.Batch.Batch.createJob", - "com.azure.compute.batch.BatchClient.createJobInternalWithResponse": "Azure.Batch.Batch.createJob", - "com.azure.compute.batch.BatchClient.createJobScheduleInternal": "Azure.Batch.Batch.createJobSchedule", - "com.azure.compute.batch.BatchClient.createJobScheduleInternalWithResponse": "Azure.Batch.Batch.createJobSchedule", - "com.azure.compute.batch.BatchClient.createNodeUserInternal": "Azure.Batch.Batch.createNodeUser", - "com.azure.compute.batch.BatchClient.createNodeUserInternalWithResponse": "Azure.Batch.Batch.createNodeUser", - "com.azure.compute.batch.BatchClient.createPoolInternal": "Azure.Batch.Batch.createPool", - "com.azure.compute.batch.BatchClient.createPoolInternalWithResponse": "Azure.Batch.Batch.createPool", - "com.azure.compute.batch.BatchClient.createTaskCollectionInternal": "Azure.Batch.Batch.createTaskCollection", - "com.azure.compute.batch.BatchClient.createTaskCollectionInternalWithResponse": "Azure.Batch.Batch.createTaskCollection", - "com.azure.compute.batch.BatchClient.createTaskInternal": "Azure.Batch.Batch.createTask", - "com.azure.compute.batch.BatchClient.createTaskInternalWithResponse": "Azure.Batch.Batch.createTask", - "com.azure.compute.batch.BatchClient.deleteJobInternal": "Azure.Batch.Batch.deleteJob", - "com.azure.compute.batch.BatchClient.deleteJobInternalWithResponse": "Azure.Batch.Batch.deleteJob", - "com.azure.compute.batch.BatchClient.deleteJobScheduleInternal": "Azure.Batch.Batch.deleteJobSchedule", - "com.azure.compute.batch.BatchClient.deleteJobScheduleInternalWithResponse": "Azure.Batch.Batch.deleteJobSchedule", - "com.azure.compute.batch.BatchClient.deleteNodeFileInternal": "Azure.Batch.Batch.deleteNodeFile", - "com.azure.compute.batch.BatchClient.deleteNodeFileInternalWithResponse": "Azure.Batch.Batch.deleteNodeFile", - "com.azure.compute.batch.BatchClient.deleteNodeUserInternal": "Azure.Batch.Batch.deleteNodeUser", - "com.azure.compute.batch.BatchClient.deleteNodeUserInternalWithResponse": "Azure.Batch.Batch.deleteNodeUser", - "com.azure.compute.batch.BatchClient.deletePoolInternal": "Azure.Batch.Batch.deletePool", - "com.azure.compute.batch.BatchClient.deletePoolInternalWithResponse": "Azure.Batch.Batch.deletePool", - "com.azure.compute.batch.BatchClient.deleteTaskFileInternal": "Azure.Batch.Batch.deleteTaskFile", - "com.azure.compute.batch.BatchClient.deleteTaskFileInternalWithResponse": "Azure.Batch.Batch.deleteTaskFile", - "com.azure.compute.batch.BatchClient.deleteTaskInternal": "Azure.Batch.Batch.deleteTask", - "com.azure.compute.batch.BatchClient.deleteTaskInternalWithResponse": "Azure.Batch.Batch.deleteTask", - "com.azure.compute.batch.BatchClient.disableJobInternal": "Azure.Batch.Batch.disableJob", - "com.azure.compute.batch.BatchClient.disableJobInternalWithResponse": "Azure.Batch.Batch.disableJob", - "com.azure.compute.batch.BatchClient.disableJobScheduleInternal": "Azure.Batch.Batch.disableJobSchedule", - "com.azure.compute.batch.BatchClient.disableJobScheduleInternalWithResponse": "Azure.Batch.Batch.disableJobSchedule", - "com.azure.compute.batch.BatchClient.disableNodeSchedulingInternal": "Azure.Batch.Batch.disableNodeScheduling", - "com.azure.compute.batch.BatchClient.disableNodeSchedulingInternalWithResponse": "Azure.Batch.Batch.disableNodeScheduling", - "com.azure.compute.batch.BatchClient.disablePoolAutoScaleInternal": "Azure.Batch.Batch.disablePoolAutoScale", - "com.azure.compute.batch.BatchClient.disablePoolAutoScaleInternalWithResponse": "Azure.Batch.Batch.disablePoolAutoScale", - "com.azure.compute.batch.BatchClient.enableJobInternal": "Azure.Batch.Batch.enableJob", - "com.azure.compute.batch.BatchClient.enableJobInternalWithResponse": "Azure.Batch.Batch.enableJob", - "com.azure.compute.batch.BatchClient.enableJobScheduleInternal": "Azure.Batch.Batch.enableJobSchedule", - "com.azure.compute.batch.BatchClient.enableJobScheduleInternalWithResponse": "Azure.Batch.Batch.enableJobSchedule", - "com.azure.compute.batch.BatchClient.enableNodeSchedulingInternal": "Azure.Batch.Batch.enableNodeScheduling", - "com.azure.compute.batch.BatchClient.enableNodeSchedulingInternalWithResponse": "Azure.Batch.Batch.enableNodeScheduling", - "com.azure.compute.batch.BatchClient.enablePoolAutoScaleInternal": "Azure.Batch.Batch.enablePoolAutoScale", - "com.azure.compute.batch.BatchClient.enablePoolAutoScaleInternalWithResponse": "Azure.Batch.Batch.enablePoolAutoScale", - "com.azure.compute.batch.BatchClient.evaluatePoolAutoScaleInternal": "Azure.Batch.Batch.evaluatePoolAutoScale", - "com.azure.compute.batch.BatchClient.evaluatePoolAutoScaleInternalWithResponse": "Azure.Batch.Batch.evaluatePoolAutoScale", - "com.azure.compute.batch.BatchClient.getApplicationInternal": "Azure.Batch.Batch.getApplication", - "com.azure.compute.batch.BatchClient.getApplicationInternalWithResponse": "Azure.Batch.Batch.getApplication", - "com.azure.compute.batch.BatchClient.getJobInternal": "Azure.Batch.Batch.getJob", - "com.azure.compute.batch.BatchClient.getJobInternalWithResponse": "Azure.Batch.Batch.getJob", - "com.azure.compute.batch.BatchClient.getJobScheduleInternal": "Azure.Batch.Batch.getJobSchedule", - "com.azure.compute.batch.BatchClient.getJobScheduleInternalWithResponse": "Azure.Batch.Batch.getJobSchedule", - "com.azure.compute.batch.BatchClient.getJobTaskCountsInternal": "Azure.Batch.Batch.getJobTaskCounts", - "com.azure.compute.batch.BatchClient.getJobTaskCountsInternalWithResponse": "Azure.Batch.Batch.getJobTaskCounts", - "com.azure.compute.batch.BatchClient.getNodeExtensionInternal": "Azure.Batch.Batch.getNodeExtension", - "com.azure.compute.batch.BatchClient.getNodeExtensionInternalWithResponse": "Azure.Batch.Batch.getNodeExtension", - "com.azure.compute.batch.BatchClient.getNodeFileInternal": "Azure.Batch.Batch.getNodeFile", - "com.azure.compute.batch.BatchClient.getNodeFileInternalWithResponse": "Azure.Batch.Batch.getNodeFile", - "com.azure.compute.batch.BatchClient.getNodeFilePropertiesInternal": "Azure.Batch.Batch.getNodeFileProperties", - "com.azure.compute.batch.BatchClient.getNodeFilePropertiesInternalWithResponse": "Azure.Batch.Batch.getNodeFileProperties", - "com.azure.compute.batch.BatchClient.getNodeInternal": "Azure.Batch.Batch.getNode", - "com.azure.compute.batch.BatchClient.getNodeInternalWithResponse": "Azure.Batch.Batch.getNode", - "com.azure.compute.batch.BatchClient.getNodeRemoteLoginSettingsInternal": "Azure.Batch.Batch.getNodeRemoteLoginSettings", - "com.azure.compute.batch.BatchClient.getNodeRemoteLoginSettingsInternalWithResponse": "Azure.Batch.Batch.getNodeRemoteLoginSettings", - "com.azure.compute.batch.BatchClient.getPoolInternal": "Azure.Batch.Batch.getPool", - "com.azure.compute.batch.BatchClient.getPoolInternalWithResponse": "Azure.Batch.Batch.getPool", - "com.azure.compute.batch.BatchClient.getTaskFileInternal": "Azure.Batch.Batch.getTaskFile", - "com.azure.compute.batch.BatchClient.getTaskFileInternalWithResponse": "Azure.Batch.Batch.getTaskFile", - "com.azure.compute.batch.BatchClient.getTaskFilePropertiesInternal": "Azure.Batch.Batch.getTaskFileProperties", - "com.azure.compute.batch.BatchClient.getTaskFilePropertiesInternalWithResponse": "Azure.Batch.Batch.getTaskFileProperties", - "com.azure.compute.batch.BatchClient.getTaskInternal": "Azure.Batch.Batch.getTask", - "com.azure.compute.batch.BatchClient.getTaskInternalWithResponse": "Azure.Batch.Batch.getTask", - "com.azure.compute.batch.BatchClient.jobScheduleExistsInternal": "Azure.Batch.Batch.jobScheduleExists", - "com.azure.compute.batch.BatchClient.jobScheduleExistsInternalWithResponse": "Azure.Batch.Batch.jobScheduleExists", - "com.azure.compute.batch.BatchClient.listApplicationsInternal": "Azure.Batch.Batch.listApplications", - "com.azure.compute.batch.BatchClient.listJobPreparationAndReleaseTaskStatusInternal": "Azure.Batch.Batch.listJobPreparationAndReleaseTaskStatus", - "com.azure.compute.batch.BatchClient.listJobSchedulesInternal": "Azure.Batch.Batch.listJobSchedules", - "com.azure.compute.batch.BatchClient.listJobsFromScheduleInternal": "Azure.Batch.Batch.listJobsFromSchedule", - "com.azure.compute.batch.BatchClient.listJobsInternal": "Azure.Batch.Batch.listJobs", - "com.azure.compute.batch.BatchClient.listNodeExtensionsInternal": "Azure.Batch.Batch.listNodeExtensions", - "com.azure.compute.batch.BatchClient.listNodeFilesInternal": "Azure.Batch.Batch.listNodeFiles", - "com.azure.compute.batch.BatchClient.listNodesInternal": "Azure.Batch.Batch.listNodes", - "com.azure.compute.batch.BatchClient.listPoolNodeCountsInternal": "Azure.Batch.Batch.listPoolNodeCounts", - "com.azure.compute.batch.BatchClient.listPoolUsageMetricsInternal": "Azure.Batch.Batch.listPoolUsageMetrics", - "com.azure.compute.batch.BatchClient.listPoolsInternal": "Azure.Batch.Batch.listPools", - "com.azure.compute.batch.BatchClient.listSubTasksInternal": "Azure.Batch.Batch.listSubTasks", - "com.azure.compute.batch.BatchClient.listSupportedImagesInternal": "Azure.Batch.Batch.listSupportedImages", - "com.azure.compute.batch.BatchClient.listTaskFilesInternal": "Azure.Batch.Batch.listTaskFiles", - "com.azure.compute.batch.BatchClient.listTasksInternal": "Azure.Batch.Batch.listTasks", - "com.azure.compute.batch.BatchClient.poolExistsInternal": "Azure.Batch.Batch.poolExists", - "com.azure.compute.batch.BatchClient.poolExistsInternalWithResponse": "Azure.Batch.Batch.poolExists", - "com.azure.compute.batch.BatchClient.reactivateTaskInternal": "Azure.Batch.Batch.reactivateTask", - "com.azure.compute.batch.BatchClient.reactivateTaskInternalWithResponse": "Azure.Batch.Batch.reactivateTask", - "com.azure.compute.batch.BatchClient.rebootNodeInternal": "Azure.Batch.Batch.rebootNode", - "com.azure.compute.batch.BatchClient.rebootNodeInternalWithResponse": "Azure.Batch.Batch.rebootNode", - "com.azure.compute.batch.BatchClient.removeNodesInternal": "Azure.Batch.Batch.removeNodes", - "com.azure.compute.batch.BatchClient.removeNodesInternalWithResponse": "Azure.Batch.Batch.removeNodes", - "com.azure.compute.batch.BatchClient.replaceJobInternal": "Azure.Batch.Batch.replaceJob", - "com.azure.compute.batch.BatchClient.replaceJobInternalWithResponse": "Azure.Batch.Batch.replaceJob", - "com.azure.compute.batch.BatchClient.replaceJobScheduleInternal": "Azure.Batch.Batch.replaceJobSchedule", - "com.azure.compute.batch.BatchClient.replaceJobScheduleInternalWithResponse": "Azure.Batch.Batch.replaceJobSchedule", - "com.azure.compute.batch.BatchClient.replaceNodeUserInternal": "Azure.Batch.Batch.replaceNodeUser", - "com.azure.compute.batch.BatchClient.replaceNodeUserInternalWithResponse": "Azure.Batch.Batch.replaceNodeUser", - "com.azure.compute.batch.BatchClient.replacePoolPropertiesInternal": "Azure.Batch.Batch.replacePoolProperties", - "com.azure.compute.batch.BatchClient.replacePoolPropertiesInternalWithResponse": "Azure.Batch.Batch.replacePoolProperties", - "com.azure.compute.batch.BatchClient.replaceTaskInternal": "Azure.Batch.Batch.replaceTask", - "com.azure.compute.batch.BatchClient.replaceTaskInternalWithResponse": "Azure.Batch.Batch.replaceTask", - "com.azure.compute.batch.BatchClient.resizePoolInternal": "Azure.Batch.Batch.resizePool", - "com.azure.compute.batch.BatchClient.resizePoolInternalWithResponse": "Azure.Batch.Batch.resizePool", - "com.azure.compute.batch.BatchClient.stopPoolResizeInternal": "Azure.Batch.Batch.stopPoolResize", - "com.azure.compute.batch.BatchClient.stopPoolResizeInternalWithResponse": "Azure.Batch.Batch.stopPoolResize", - "com.azure.compute.batch.BatchClient.terminateJobInternal": "Azure.Batch.Batch.terminateJob", - "com.azure.compute.batch.BatchClient.terminateJobInternalWithResponse": "Azure.Batch.Batch.terminateJob", - "com.azure.compute.batch.BatchClient.terminateJobScheduleInternal": "Azure.Batch.Batch.terminateJobSchedule", - "com.azure.compute.batch.BatchClient.terminateJobScheduleInternalWithResponse": "Azure.Batch.Batch.terminateJobSchedule", - "com.azure.compute.batch.BatchClient.terminateTaskInternal": "Azure.Batch.Batch.terminateTask", - "com.azure.compute.batch.BatchClient.terminateTaskInternalWithResponse": "Azure.Batch.Batch.terminateTask", - "com.azure.compute.batch.BatchClient.updateJobInternal": "Azure.Batch.Batch.updateJob", - "com.azure.compute.batch.BatchClient.updateJobInternalWithResponse": "Azure.Batch.Batch.updateJob", - "com.azure.compute.batch.BatchClient.updateJobScheduleInternal": "Azure.Batch.Batch.updateJobSchedule", - "com.azure.compute.batch.BatchClient.updateJobScheduleInternalWithResponse": "Azure.Batch.Batch.updateJobSchedule", - "com.azure.compute.batch.BatchClient.updatePoolInternal": "Azure.Batch.Batch.updatePool", - "com.azure.compute.batch.BatchClient.updatePoolInternalWithResponse": "Azure.Batch.Batch.updatePool", - "com.azure.compute.batch.BatchClient.uploadNodeLogsInternal": "Azure.Batch.Batch.uploadNodeLogs", - "com.azure.compute.batch.BatchClient.uploadNodeLogsInternalWithResponse": "Azure.Batch.Batch.uploadNodeLogs", - "com.azure.compute.batch.BatchClientBuilder": "Azure.Batch.Batch", + "com.azure.compute.batch.BatchAsyncClient": "Client.BatchClient", + "com.azure.compute.batch.BatchAsyncClient.createJobInternal": "Client.BatchClient.createJob", + "com.azure.compute.batch.BatchAsyncClient.createJobInternalWithResponse": "Client.BatchClient.createJob", + "com.azure.compute.batch.BatchAsyncClient.createJobScheduleInternal": "Client.BatchClient.createJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.createJobScheduleInternalWithResponse": "Client.BatchClient.createJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.createNodeUserInternal": "Client.BatchClient.createNodeUser", + "com.azure.compute.batch.BatchAsyncClient.createNodeUserInternalWithResponse": "Client.BatchClient.createNodeUser", + "com.azure.compute.batch.BatchAsyncClient.createPoolInternal": "Client.BatchClient.createPool", + "com.azure.compute.batch.BatchAsyncClient.createPoolInternalWithResponse": "Client.BatchClient.createPool", + "com.azure.compute.batch.BatchAsyncClient.createTaskCollectionInternal": "Client.BatchClient.createTaskCollection", + "com.azure.compute.batch.BatchAsyncClient.createTaskCollectionInternalWithResponse": "Client.BatchClient.createTaskCollection", + "com.azure.compute.batch.BatchAsyncClient.createTaskInternal": "Client.BatchClient.createTask", + "com.azure.compute.batch.BatchAsyncClient.createTaskInternalWithResponse": "Client.BatchClient.createTask", + "com.azure.compute.batch.BatchAsyncClient.deallocateNodeInternal": "Client.BatchClient.deallocateNode", + "com.azure.compute.batch.BatchAsyncClient.deallocateNodeInternalWithResponse": "Client.BatchClient.deallocateNode", + "com.azure.compute.batch.BatchAsyncClient.deleteJobInternal": "Client.BatchClient.deleteJob", + "com.azure.compute.batch.BatchAsyncClient.deleteJobInternalWithResponse": "Client.BatchClient.deleteJob", + "com.azure.compute.batch.BatchAsyncClient.deleteJobScheduleInternal": "Client.BatchClient.deleteJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.deleteJobScheduleInternalWithResponse": "Client.BatchClient.deleteJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.deleteNodeFileInternal": "Client.BatchClient.deleteNodeFile", + "com.azure.compute.batch.BatchAsyncClient.deleteNodeFileInternalWithResponse": "Client.BatchClient.deleteNodeFile", + "com.azure.compute.batch.BatchAsyncClient.deleteNodeUserInternal": "Client.BatchClient.deleteNodeUser", + "com.azure.compute.batch.BatchAsyncClient.deleteNodeUserInternalWithResponse": "Client.BatchClient.deleteNodeUser", + "com.azure.compute.batch.BatchAsyncClient.deletePoolInternal": "Client.BatchClient.deletePool", + "com.azure.compute.batch.BatchAsyncClient.deletePoolInternalWithResponse": "Client.BatchClient.deletePool", + "com.azure.compute.batch.BatchAsyncClient.deleteTaskFileInternal": "Client.BatchClient.deleteTaskFile", + "com.azure.compute.batch.BatchAsyncClient.deleteTaskFileInternalWithResponse": "Client.BatchClient.deleteTaskFile", + "com.azure.compute.batch.BatchAsyncClient.deleteTaskInternal": "Client.BatchClient.deleteTask", + "com.azure.compute.batch.BatchAsyncClient.deleteTaskInternalWithResponse": "Client.BatchClient.deleteTask", + "com.azure.compute.batch.BatchAsyncClient.disableJobInternal": "Client.BatchClient.disableJob", + "com.azure.compute.batch.BatchAsyncClient.disableJobInternalWithResponse": "Client.BatchClient.disableJob", + "com.azure.compute.batch.BatchAsyncClient.disableJobScheduleInternal": "Client.BatchClient.disableJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.disableJobScheduleInternalWithResponse": "Client.BatchClient.disableJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.disableNodeSchedulingInternal": "Client.BatchClient.disableNodeScheduling", + "com.azure.compute.batch.BatchAsyncClient.disableNodeSchedulingInternalWithResponse": "Client.BatchClient.disableNodeScheduling", + "com.azure.compute.batch.BatchAsyncClient.disablePoolAutoScaleInternal": "Client.BatchClient.disablePoolAutoScale", + "com.azure.compute.batch.BatchAsyncClient.disablePoolAutoScaleInternalWithResponse": "Client.BatchClient.disablePoolAutoScale", + "com.azure.compute.batch.BatchAsyncClient.enableJobInternal": "Client.BatchClient.enableJob", + "com.azure.compute.batch.BatchAsyncClient.enableJobInternalWithResponse": "Client.BatchClient.enableJob", + "com.azure.compute.batch.BatchAsyncClient.enableJobScheduleInternal": "Client.BatchClient.enableJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.enableJobScheduleInternalWithResponse": "Client.BatchClient.enableJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.enableNodeSchedulingInternal": "Client.BatchClient.enableNodeScheduling", + "com.azure.compute.batch.BatchAsyncClient.enableNodeSchedulingInternalWithResponse": "Client.BatchClient.enableNodeScheduling", + "com.azure.compute.batch.BatchAsyncClient.enablePoolAutoScaleInternal": "Client.BatchClient.enablePoolAutoScale", + "com.azure.compute.batch.BatchAsyncClient.enablePoolAutoScaleInternalWithResponse": "Client.BatchClient.enablePoolAutoScale", + "com.azure.compute.batch.BatchAsyncClient.evaluatePoolAutoScaleInternal": "Client.BatchClient.evaluatePoolAutoScale", + "com.azure.compute.batch.BatchAsyncClient.evaluatePoolAutoScaleInternalWithResponse": "Client.BatchClient.evaluatePoolAutoScale", + "com.azure.compute.batch.BatchAsyncClient.getApplicationInternal": "Client.BatchClient.getApplication", + "com.azure.compute.batch.BatchAsyncClient.getApplicationInternalWithResponse": "Client.BatchClient.getApplication", + "com.azure.compute.batch.BatchAsyncClient.getJobInternal": "Client.BatchClient.getJob", + "com.azure.compute.batch.BatchAsyncClient.getJobInternalWithResponse": "Client.BatchClient.getJob", + "com.azure.compute.batch.BatchAsyncClient.getJobScheduleInternal": "Client.BatchClient.getJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.getJobScheduleInternalWithResponse": "Client.BatchClient.getJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.getJobTaskCountsInternal": "Client.BatchClient.getJobTaskCounts", + "com.azure.compute.batch.BatchAsyncClient.getJobTaskCountsInternalWithResponse": "Client.BatchClient.getJobTaskCounts", + "com.azure.compute.batch.BatchAsyncClient.getNodeExtensionInternal": "Client.BatchClient.getNodeExtension", + "com.azure.compute.batch.BatchAsyncClient.getNodeExtensionInternalWithResponse": "Client.BatchClient.getNodeExtension", + "com.azure.compute.batch.BatchAsyncClient.getNodeFileInternal": "Client.BatchClient.getNodeFile", + "com.azure.compute.batch.BatchAsyncClient.getNodeFileInternalWithResponse": "Client.BatchClient.getNodeFile", + "com.azure.compute.batch.BatchAsyncClient.getNodeFilePropertiesInternal": "Client.BatchClient.getNodeFileProperties", + "com.azure.compute.batch.BatchAsyncClient.getNodeFilePropertiesInternalWithResponse": "Client.BatchClient.getNodeFileProperties", + "com.azure.compute.batch.BatchAsyncClient.getNodeInternal": "Client.BatchClient.getNode", + "com.azure.compute.batch.BatchAsyncClient.getNodeInternalWithResponse": "Client.BatchClient.getNode", + "com.azure.compute.batch.BatchAsyncClient.getNodeRemoteLoginSettingsInternal": "Client.BatchClient.getNodeRemoteLoginSettings", + "com.azure.compute.batch.BatchAsyncClient.getNodeRemoteLoginSettingsInternalWithResponse": "Client.BatchClient.getNodeRemoteLoginSettings", + "com.azure.compute.batch.BatchAsyncClient.getPoolInternal": "Client.BatchClient.getPool", + "com.azure.compute.batch.BatchAsyncClient.getPoolInternalWithResponse": "Client.BatchClient.getPool", + "com.azure.compute.batch.BatchAsyncClient.getTaskFileInternal": "Client.BatchClient.getTaskFile", + "com.azure.compute.batch.BatchAsyncClient.getTaskFileInternalWithResponse": "Client.BatchClient.getTaskFile", + "com.azure.compute.batch.BatchAsyncClient.getTaskFilePropertiesInternal": "Client.BatchClient.getTaskFileProperties", + "com.azure.compute.batch.BatchAsyncClient.getTaskFilePropertiesInternalWithResponse": "Client.BatchClient.getTaskFileProperties", + "com.azure.compute.batch.BatchAsyncClient.getTaskInternal": "Client.BatchClient.getTask", + "com.azure.compute.batch.BatchAsyncClient.getTaskInternalWithResponse": "Client.BatchClient.getTask", + "com.azure.compute.batch.BatchAsyncClient.jobScheduleExistsInternal": "Client.BatchClient.jobScheduleExists", + "com.azure.compute.batch.BatchAsyncClient.jobScheduleExistsInternalWithResponse": "Client.BatchClient.jobScheduleExists", + "com.azure.compute.batch.BatchAsyncClient.listApplicationsInternal": "Client.BatchClient.listApplications", + "com.azure.compute.batch.BatchAsyncClient.listJobPreparationAndReleaseTaskStatusInternal": "Client.BatchClient.listJobPreparationAndReleaseTaskStatus", + "com.azure.compute.batch.BatchAsyncClient.listJobSchedulesInternal": "Client.BatchClient.listJobSchedules", + "com.azure.compute.batch.BatchAsyncClient.listJobsFromScheduleInternal": "Client.BatchClient.listJobsFromSchedule", + "com.azure.compute.batch.BatchAsyncClient.listJobsInternal": "Client.BatchClient.listJobs", + "com.azure.compute.batch.BatchAsyncClient.listNodeExtensionsInternal": "Client.BatchClient.listNodeExtensions", + "com.azure.compute.batch.BatchAsyncClient.listNodeFilesInternal": "Client.BatchClient.listNodeFiles", + "com.azure.compute.batch.BatchAsyncClient.listNodesInternal": "Client.BatchClient.listNodes", + "com.azure.compute.batch.BatchAsyncClient.listPoolNodeCountsInternal": "Client.BatchClient.listPoolNodeCounts", + "com.azure.compute.batch.BatchAsyncClient.listPoolUsageMetricsInternal": "Client.BatchClient.listPoolUsageMetrics", + "com.azure.compute.batch.BatchAsyncClient.listPoolsInternal": "Client.BatchClient.listPools", + "com.azure.compute.batch.BatchAsyncClient.listSubTasksInternal": "Client.BatchClient.listSubTasks", + "com.azure.compute.batch.BatchAsyncClient.listSupportedImagesInternal": "Client.BatchClient.listSupportedImages", + "com.azure.compute.batch.BatchAsyncClient.listTaskFilesInternal": "Client.BatchClient.listTaskFiles", + "com.azure.compute.batch.BatchAsyncClient.listTasksInternal": "Client.BatchClient.listTasks", + "com.azure.compute.batch.BatchAsyncClient.poolExistsInternal": "Client.BatchClient.poolExists", + "com.azure.compute.batch.BatchAsyncClient.poolExistsInternalWithResponse": "Client.BatchClient.poolExists", + "com.azure.compute.batch.BatchAsyncClient.reactivateTaskInternal": "Client.BatchClient.reactivateTask", + "com.azure.compute.batch.BatchAsyncClient.reactivateTaskInternalWithResponse": "Client.BatchClient.reactivateTask", + "com.azure.compute.batch.BatchAsyncClient.rebootNodeInternal": "Client.BatchClient.rebootNode", + "com.azure.compute.batch.BatchAsyncClient.rebootNodeInternalWithResponse": "Client.BatchClient.rebootNode", + "com.azure.compute.batch.BatchAsyncClient.reimageNodeInternal": "Client.BatchClient.reimageNode", + "com.azure.compute.batch.BatchAsyncClient.reimageNodeInternalWithResponse": "Client.BatchClient.reimageNode", + "com.azure.compute.batch.BatchAsyncClient.removeNodesInternal": "Client.BatchClient.removeNodes", + "com.azure.compute.batch.BatchAsyncClient.removeNodesInternalWithResponse": "Client.BatchClient.removeNodes", + "com.azure.compute.batch.BatchAsyncClient.replaceJobInternal": "Client.BatchClient.replaceJob", + "com.azure.compute.batch.BatchAsyncClient.replaceJobInternalWithResponse": "Client.BatchClient.replaceJob", + "com.azure.compute.batch.BatchAsyncClient.replaceJobScheduleInternal": "Client.BatchClient.replaceJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.replaceJobScheduleInternalWithResponse": "Client.BatchClient.replaceJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.replaceNodeUserInternal": "Client.BatchClient.replaceNodeUser", + "com.azure.compute.batch.BatchAsyncClient.replaceNodeUserInternalWithResponse": "Client.BatchClient.replaceNodeUser", + "com.azure.compute.batch.BatchAsyncClient.replacePoolPropertiesInternal": "Client.BatchClient.replacePoolProperties", + "com.azure.compute.batch.BatchAsyncClient.replacePoolPropertiesInternalWithResponse": "Client.BatchClient.replacePoolProperties", + "com.azure.compute.batch.BatchAsyncClient.replaceTaskInternal": "Client.BatchClient.replaceTask", + "com.azure.compute.batch.BatchAsyncClient.replaceTaskInternalWithResponse": "Client.BatchClient.replaceTask", + "com.azure.compute.batch.BatchAsyncClient.resizePoolInternal": "Client.BatchClient.resizePool", + "com.azure.compute.batch.BatchAsyncClient.resizePoolInternalWithResponse": "Client.BatchClient.resizePool", + "com.azure.compute.batch.BatchAsyncClient.startNodeInternal": "Client.BatchClient.startNode", + "com.azure.compute.batch.BatchAsyncClient.startNodeInternalWithResponse": "Client.BatchClient.startNode", + "com.azure.compute.batch.BatchAsyncClient.stopPoolResizeInternal": "Client.BatchClient.stopPoolResize", + "com.azure.compute.batch.BatchAsyncClient.stopPoolResizeInternalWithResponse": "Client.BatchClient.stopPoolResize", + "com.azure.compute.batch.BatchAsyncClient.terminateJobInternal": "Client.BatchClient.terminateJob", + "com.azure.compute.batch.BatchAsyncClient.terminateJobInternalWithResponse": "Client.BatchClient.terminateJob", + "com.azure.compute.batch.BatchAsyncClient.terminateJobScheduleInternal": "Client.BatchClient.terminateJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.terminateJobScheduleInternalWithResponse": "Client.BatchClient.terminateJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.terminateTaskInternal": "Client.BatchClient.terminateTask", + "com.azure.compute.batch.BatchAsyncClient.terminateTaskInternalWithResponse": "Client.BatchClient.terminateTask", + "com.azure.compute.batch.BatchAsyncClient.updateJobInternal": "Client.BatchClient.updateJob", + "com.azure.compute.batch.BatchAsyncClient.updateJobInternalWithResponse": "Client.BatchClient.updateJob", + "com.azure.compute.batch.BatchAsyncClient.updateJobScheduleInternal": "Client.BatchClient.updateJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.updateJobScheduleInternalWithResponse": "Client.BatchClient.updateJobSchedule", + "com.azure.compute.batch.BatchAsyncClient.updatePoolInternal": "Client.BatchClient.updatePool", + "com.azure.compute.batch.BatchAsyncClient.updatePoolInternalWithResponse": "Client.BatchClient.updatePool", + "com.azure.compute.batch.BatchAsyncClient.uploadNodeLogsInternal": "Client.BatchClient.uploadNodeLogs", + "com.azure.compute.batch.BatchAsyncClient.uploadNodeLogsInternalWithResponse": "Client.BatchClient.uploadNodeLogs", + "com.azure.compute.batch.BatchClient": "Client.BatchClient", + "com.azure.compute.batch.BatchClient.createJobInternal": "Client.BatchClient.createJob", + "com.azure.compute.batch.BatchClient.createJobInternalWithResponse": "Client.BatchClient.createJob", + "com.azure.compute.batch.BatchClient.createJobScheduleInternal": "Client.BatchClient.createJobSchedule", + "com.azure.compute.batch.BatchClient.createJobScheduleInternalWithResponse": "Client.BatchClient.createJobSchedule", + "com.azure.compute.batch.BatchClient.createNodeUserInternal": "Client.BatchClient.createNodeUser", + "com.azure.compute.batch.BatchClient.createNodeUserInternalWithResponse": "Client.BatchClient.createNodeUser", + "com.azure.compute.batch.BatchClient.createPoolInternal": "Client.BatchClient.createPool", + "com.azure.compute.batch.BatchClient.createPoolInternalWithResponse": "Client.BatchClient.createPool", + "com.azure.compute.batch.BatchClient.createTaskCollectionInternal": "Client.BatchClient.createTaskCollection", + "com.azure.compute.batch.BatchClient.createTaskCollectionInternalWithResponse": "Client.BatchClient.createTaskCollection", + "com.azure.compute.batch.BatchClient.createTaskInternal": "Client.BatchClient.createTask", + "com.azure.compute.batch.BatchClient.createTaskInternalWithResponse": "Client.BatchClient.createTask", + "com.azure.compute.batch.BatchClient.deallocateNodeInternal": "Client.BatchClient.deallocateNode", + "com.azure.compute.batch.BatchClient.deallocateNodeInternalWithResponse": "Client.BatchClient.deallocateNode", + "com.azure.compute.batch.BatchClient.deleteJobInternal": "Client.BatchClient.deleteJob", + "com.azure.compute.batch.BatchClient.deleteJobInternalWithResponse": "Client.BatchClient.deleteJob", + "com.azure.compute.batch.BatchClient.deleteJobScheduleInternal": "Client.BatchClient.deleteJobSchedule", + "com.azure.compute.batch.BatchClient.deleteJobScheduleInternalWithResponse": "Client.BatchClient.deleteJobSchedule", + "com.azure.compute.batch.BatchClient.deleteNodeFileInternal": "Client.BatchClient.deleteNodeFile", + "com.azure.compute.batch.BatchClient.deleteNodeFileInternalWithResponse": "Client.BatchClient.deleteNodeFile", + "com.azure.compute.batch.BatchClient.deleteNodeUserInternal": "Client.BatchClient.deleteNodeUser", + "com.azure.compute.batch.BatchClient.deleteNodeUserInternalWithResponse": "Client.BatchClient.deleteNodeUser", + "com.azure.compute.batch.BatchClient.deletePoolInternal": "Client.BatchClient.deletePool", + "com.azure.compute.batch.BatchClient.deletePoolInternalWithResponse": "Client.BatchClient.deletePool", + "com.azure.compute.batch.BatchClient.deleteTaskFileInternal": "Client.BatchClient.deleteTaskFile", + "com.azure.compute.batch.BatchClient.deleteTaskFileInternalWithResponse": "Client.BatchClient.deleteTaskFile", + "com.azure.compute.batch.BatchClient.deleteTaskInternal": "Client.BatchClient.deleteTask", + "com.azure.compute.batch.BatchClient.deleteTaskInternalWithResponse": "Client.BatchClient.deleteTask", + "com.azure.compute.batch.BatchClient.disableJobInternal": "Client.BatchClient.disableJob", + "com.azure.compute.batch.BatchClient.disableJobInternalWithResponse": "Client.BatchClient.disableJob", + "com.azure.compute.batch.BatchClient.disableJobScheduleInternal": "Client.BatchClient.disableJobSchedule", + "com.azure.compute.batch.BatchClient.disableJobScheduleInternalWithResponse": "Client.BatchClient.disableJobSchedule", + "com.azure.compute.batch.BatchClient.disableNodeSchedulingInternal": "Client.BatchClient.disableNodeScheduling", + "com.azure.compute.batch.BatchClient.disableNodeSchedulingInternalWithResponse": "Client.BatchClient.disableNodeScheduling", + "com.azure.compute.batch.BatchClient.disablePoolAutoScaleInternal": "Client.BatchClient.disablePoolAutoScale", + "com.azure.compute.batch.BatchClient.disablePoolAutoScaleInternalWithResponse": "Client.BatchClient.disablePoolAutoScale", + "com.azure.compute.batch.BatchClient.enableJobInternal": "Client.BatchClient.enableJob", + "com.azure.compute.batch.BatchClient.enableJobInternalWithResponse": "Client.BatchClient.enableJob", + "com.azure.compute.batch.BatchClient.enableJobScheduleInternal": "Client.BatchClient.enableJobSchedule", + "com.azure.compute.batch.BatchClient.enableJobScheduleInternalWithResponse": "Client.BatchClient.enableJobSchedule", + "com.azure.compute.batch.BatchClient.enableNodeSchedulingInternal": "Client.BatchClient.enableNodeScheduling", + "com.azure.compute.batch.BatchClient.enableNodeSchedulingInternalWithResponse": "Client.BatchClient.enableNodeScheduling", + "com.azure.compute.batch.BatchClient.enablePoolAutoScaleInternal": "Client.BatchClient.enablePoolAutoScale", + "com.azure.compute.batch.BatchClient.enablePoolAutoScaleInternalWithResponse": "Client.BatchClient.enablePoolAutoScale", + "com.azure.compute.batch.BatchClient.evaluatePoolAutoScaleInternal": "Client.BatchClient.evaluatePoolAutoScale", + "com.azure.compute.batch.BatchClient.evaluatePoolAutoScaleInternalWithResponse": "Client.BatchClient.evaluatePoolAutoScale", + "com.azure.compute.batch.BatchClient.getApplicationInternal": "Client.BatchClient.getApplication", + "com.azure.compute.batch.BatchClient.getApplicationInternalWithResponse": "Client.BatchClient.getApplication", + "com.azure.compute.batch.BatchClient.getJobInternal": "Client.BatchClient.getJob", + "com.azure.compute.batch.BatchClient.getJobInternalWithResponse": "Client.BatchClient.getJob", + "com.azure.compute.batch.BatchClient.getJobScheduleInternal": "Client.BatchClient.getJobSchedule", + "com.azure.compute.batch.BatchClient.getJobScheduleInternalWithResponse": "Client.BatchClient.getJobSchedule", + "com.azure.compute.batch.BatchClient.getJobTaskCountsInternal": "Client.BatchClient.getJobTaskCounts", + "com.azure.compute.batch.BatchClient.getJobTaskCountsInternalWithResponse": "Client.BatchClient.getJobTaskCounts", + "com.azure.compute.batch.BatchClient.getNodeExtensionInternal": "Client.BatchClient.getNodeExtension", + "com.azure.compute.batch.BatchClient.getNodeExtensionInternalWithResponse": "Client.BatchClient.getNodeExtension", + "com.azure.compute.batch.BatchClient.getNodeFileInternal": "Client.BatchClient.getNodeFile", + "com.azure.compute.batch.BatchClient.getNodeFileInternalWithResponse": "Client.BatchClient.getNodeFile", + "com.azure.compute.batch.BatchClient.getNodeFilePropertiesInternal": "Client.BatchClient.getNodeFileProperties", + "com.azure.compute.batch.BatchClient.getNodeFilePropertiesInternalWithResponse": "Client.BatchClient.getNodeFileProperties", + "com.azure.compute.batch.BatchClient.getNodeInternal": "Client.BatchClient.getNode", + "com.azure.compute.batch.BatchClient.getNodeInternalWithResponse": "Client.BatchClient.getNode", + "com.azure.compute.batch.BatchClient.getNodeRemoteLoginSettingsInternal": "Client.BatchClient.getNodeRemoteLoginSettings", + "com.azure.compute.batch.BatchClient.getNodeRemoteLoginSettingsInternalWithResponse": "Client.BatchClient.getNodeRemoteLoginSettings", + "com.azure.compute.batch.BatchClient.getPoolInternal": "Client.BatchClient.getPool", + "com.azure.compute.batch.BatchClient.getPoolInternalWithResponse": "Client.BatchClient.getPool", + "com.azure.compute.batch.BatchClient.getTaskFileInternal": "Client.BatchClient.getTaskFile", + "com.azure.compute.batch.BatchClient.getTaskFileInternalWithResponse": "Client.BatchClient.getTaskFile", + "com.azure.compute.batch.BatchClient.getTaskFilePropertiesInternal": "Client.BatchClient.getTaskFileProperties", + "com.azure.compute.batch.BatchClient.getTaskFilePropertiesInternalWithResponse": "Client.BatchClient.getTaskFileProperties", + "com.azure.compute.batch.BatchClient.getTaskInternal": "Client.BatchClient.getTask", + "com.azure.compute.batch.BatchClient.getTaskInternalWithResponse": "Client.BatchClient.getTask", + "com.azure.compute.batch.BatchClient.jobScheduleExistsInternal": "Client.BatchClient.jobScheduleExists", + "com.azure.compute.batch.BatchClient.jobScheduleExistsInternalWithResponse": "Client.BatchClient.jobScheduleExists", + "com.azure.compute.batch.BatchClient.listApplicationsInternal": "Client.BatchClient.listApplications", + "com.azure.compute.batch.BatchClient.listJobPreparationAndReleaseTaskStatusInternal": "Client.BatchClient.listJobPreparationAndReleaseTaskStatus", + "com.azure.compute.batch.BatchClient.listJobSchedulesInternal": "Client.BatchClient.listJobSchedules", + "com.azure.compute.batch.BatchClient.listJobsFromScheduleInternal": "Client.BatchClient.listJobsFromSchedule", + "com.azure.compute.batch.BatchClient.listJobsInternal": "Client.BatchClient.listJobs", + "com.azure.compute.batch.BatchClient.listNodeExtensionsInternal": "Client.BatchClient.listNodeExtensions", + "com.azure.compute.batch.BatchClient.listNodeFilesInternal": "Client.BatchClient.listNodeFiles", + "com.azure.compute.batch.BatchClient.listNodesInternal": "Client.BatchClient.listNodes", + "com.azure.compute.batch.BatchClient.listPoolNodeCountsInternal": "Client.BatchClient.listPoolNodeCounts", + "com.azure.compute.batch.BatchClient.listPoolUsageMetricsInternal": "Client.BatchClient.listPoolUsageMetrics", + "com.azure.compute.batch.BatchClient.listPoolsInternal": "Client.BatchClient.listPools", + "com.azure.compute.batch.BatchClient.listSubTasksInternal": "Client.BatchClient.listSubTasks", + "com.azure.compute.batch.BatchClient.listSupportedImagesInternal": "Client.BatchClient.listSupportedImages", + "com.azure.compute.batch.BatchClient.listTaskFilesInternal": "Client.BatchClient.listTaskFiles", + "com.azure.compute.batch.BatchClient.listTasksInternal": "Client.BatchClient.listTasks", + "com.azure.compute.batch.BatchClient.poolExistsInternal": "Client.BatchClient.poolExists", + "com.azure.compute.batch.BatchClient.poolExistsInternalWithResponse": "Client.BatchClient.poolExists", + "com.azure.compute.batch.BatchClient.reactivateTaskInternal": "Client.BatchClient.reactivateTask", + "com.azure.compute.batch.BatchClient.reactivateTaskInternalWithResponse": "Client.BatchClient.reactivateTask", + "com.azure.compute.batch.BatchClient.rebootNodeInternal": "Client.BatchClient.rebootNode", + "com.azure.compute.batch.BatchClient.rebootNodeInternalWithResponse": "Client.BatchClient.rebootNode", + "com.azure.compute.batch.BatchClient.reimageNodeInternal": "Client.BatchClient.reimageNode", + "com.azure.compute.batch.BatchClient.reimageNodeInternalWithResponse": "Client.BatchClient.reimageNode", + "com.azure.compute.batch.BatchClient.removeNodesInternal": "Client.BatchClient.removeNodes", + "com.azure.compute.batch.BatchClient.removeNodesInternalWithResponse": "Client.BatchClient.removeNodes", + "com.azure.compute.batch.BatchClient.replaceJobInternal": "Client.BatchClient.replaceJob", + "com.azure.compute.batch.BatchClient.replaceJobInternalWithResponse": "Client.BatchClient.replaceJob", + "com.azure.compute.batch.BatchClient.replaceJobScheduleInternal": "Client.BatchClient.replaceJobSchedule", + "com.azure.compute.batch.BatchClient.replaceJobScheduleInternalWithResponse": "Client.BatchClient.replaceJobSchedule", + "com.azure.compute.batch.BatchClient.replaceNodeUserInternal": "Client.BatchClient.replaceNodeUser", + "com.azure.compute.batch.BatchClient.replaceNodeUserInternalWithResponse": "Client.BatchClient.replaceNodeUser", + "com.azure.compute.batch.BatchClient.replacePoolPropertiesInternal": "Client.BatchClient.replacePoolProperties", + "com.azure.compute.batch.BatchClient.replacePoolPropertiesInternalWithResponse": "Client.BatchClient.replacePoolProperties", + "com.azure.compute.batch.BatchClient.replaceTaskInternal": "Client.BatchClient.replaceTask", + "com.azure.compute.batch.BatchClient.replaceTaskInternalWithResponse": "Client.BatchClient.replaceTask", + "com.azure.compute.batch.BatchClient.resizePoolInternal": "Client.BatchClient.resizePool", + "com.azure.compute.batch.BatchClient.resizePoolInternalWithResponse": "Client.BatchClient.resizePool", + "com.azure.compute.batch.BatchClient.startNodeInternal": "Client.BatchClient.startNode", + "com.azure.compute.batch.BatchClient.startNodeInternalWithResponse": "Client.BatchClient.startNode", + "com.azure.compute.batch.BatchClient.stopPoolResizeInternal": "Client.BatchClient.stopPoolResize", + "com.azure.compute.batch.BatchClient.stopPoolResizeInternalWithResponse": "Client.BatchClient.stopPoolResize", + "com.azure.compute.batch.BatchClient.terminateJobInternal": "Client.BatchClient.terminateJob", + "com.azure.compute.batch.BatchClient.terminateJobInternalWithResponse": "Client.BatchClient.terminateJob", + "com.azure.compute.batch.BatchClient.terminateJobScheduleInternal": "Client.BatchClient.terminateJobSchedule", + "com.azure.compute.batch.BatchClient.terminateJobScheduleInternalWithResponse": "Client.BatchClient.terminateJobSchedule", + "com.azure.compute.batch.BatchClient.terminateTaskInternal": "Client.BatchClient.terminateTask", + "com.azure.compute.batch.BatchClient.terminateTaskInternalWithResponse": "Client.BatchClient.terminateTask", + "com.azure.compute.batch.BatchClient.updateJobInternal": "Client.BatchClient.updateJob", + "com.azure.compute.batch.BatchClient.updateJobInternalWithResponse": "Client.BatchClient.updateJob", + "com.azure.compute.batch.BatchClient.updateJobScheduleInternal": "Client.BatchClient.updateJobSchedule", + "com.azure.compute.batch.BatchClient.updateJobScheduleInternalWithResponse": "Client.BatchClient.updateJobSchedule", + "com.azure.compute.batch.BatchClient.updatePoolInternal": "Client.BatchClient.updatePool", + "com.azure.compute.batch.BatchClient.updatePoolInternalWithResponse": "Client.BatchClient.updatePool", + "com.azure.compute.batch.BatchClient.uploadNodeLogsInternal": "Client.BatchClient.uploadNodeLogs", + "com.azure.compute.batch.BatchClient.uploadNodeLogsInternalWithResponse": "Client.BatchClient.uploadNodeLogs", + "com.azure.compute.batch.BatchClientBuilder": "Client.BatchClient", "com.azure.compute.batch.models.AccessScope": "Azure.Batch.AccessScope", "com.azure.compute.batch.models.AffinityInfo": "Azure.Batch.AffinityInfo", "com.azure.compute.batch.models.AllocationState": "Azure.Batch.AllocationState", @@ -299,6 +311,8 @@ "com.azure.compute.batch.models.BatchNodeAgentInfo": "Azure.Batch.BatchNodeAgentInfo", "com.azure.compute.batch.models.BatchNodeCommunicationMode": "Azure.Batch.BatchNodeCommunicationMode", "com.azure.compute.batch.models.BatchNodeCounts": "Azure.Batch.BatchNodeCounts", + "com.azure.compute.batch.models.BatchNodeDeallocateContent": "Azure.Batch.BatchNodeDeallocateContent", + "com.azure.compute.batch.models.BatchNodeDeallocateOption": "Azure.Batch.BatchNodeDeallocateOption", "com.azure.compute.batch.models.BatchNodeDeallocationOption": "Azure.Batch.BatchNodeDeallocationOption", "com.azure.compute.batch.models.BatchNodeDisableSchedulingContent": "Azure.Batch.BatchNodeDisableSchedulingContent", "com.azure.compute.batch.models.BatchNodeDisableSchedulingOption": "Azure.Batch.BatchNodeDisableSchedulingOption", @@ -312,6 +326,8 @@ "com.azure.compute.batch.models.BatchNodePlacementPolicyType": "Azure.Batch.BatchNodePlacementPolicyType", "com.azure.compute.batch.models.BatchNodeRebootContent": "Azure.Batch.BatchNodeRebootContent", "com.azure.compute.batch.models.BatchNodeRebootOption": "Azure.Batch.BatchNodeRebootOption", + "com.azure.compute.batch.models.BatchNodeReimageContent": "Azure.Batch.BatchNodeReimageContent", + "com.azure.compute.batch.models.BatchNodeReimageOption": "Azure.Batch.BatchNodeReimageOption", "com.azure.compute.batch.models.BatchNodeRemoteLoginSettings": "Azure.Batch.BatchNodeRemoteLoginSettings", "com.azure.compute.batch.models.BatchNodeRemoveContent": "Azure.Batch.BatchNodeRemoveContent", "com.azure.compute.batch.models.BatchNodeState": "Azure.Batch.BatchNodeState", @@ -367,6 +383,8 @@ "com.azure.compute.batch.models.CachingType": "Azure.Batch.CachingType", "com.azure.compute.batch.models.CifsMountConfiguration": "Azure.Batch.CifsMountConfiguration", "com.azure.compute.batch.models.ContainerConfiguration": "Azure.Batch.ContainerConfiguration", + "com.azure.compute.batch.models.ContainerHostBatchBindMountEntry": "Azure.Batch.ContainerHostBatchBindMountEntry", + "com.azure.compute.batch.models.ContainerHostDataPath": "Azure.Batch.ContainerHostDataPath", "com.azure.compute.batch.models.ContainerRegistryReference": "Azure.Batch.ContainerRegistryReference", "com.azure.compute.batch.models.ContainerType": "Azure.Batch.ContainerType", "com.azure.compute.batch.models.ContainerWorkingDirectory": "Azure.Batch.ContainerWorkingDirectory", @@ -420,6 +438,7 @@ "com.azure.compute.batch.models.ResourceFile": "Azure.Batch.ResourceFile", "com.azure.compute.batch.models.RollingUpgradePolicy": "Azure.Batch.RollingUpgradePolicy", "com.azure.compute.batch.models.SchedulingState": "Azure.Batch.SchedulingState", + "com.azure.compute.batch.models.SecurityEncryptionTypes": "Azure.Batch.SecurityEncryptionTypes", "com.azure.compute.batch.models.SecurityProfile": "Azure.Batch.SecurityProfile", "com.azure.compute.batch.models.SecurityTypes": "Azure.Batch.SecurityTypes", "com.azure.compute.batch.models.ServiceArtifactReference": "Azure.Batch.ServiceArtifactReference", @@ -433,6 +452,7 @@ "com.azure.compute.batch.models.UserAccount": "Azure.Batch.UserAccount", "com.azure.compute.batch.models.UserAssignedIdentity": "Azure.Batch.UserAssignedIdentity", "com.azure.compute.batch.models.UserIdentity": "Azure.Batch.UserIdentity", + "com.azure.compute.batch.models.VMDiskSecurityProfile": "Azure.Batch.VMDiskSecurityProfile", "com.azure.compute.batch.models.VMExtension": "Azure.Batch.VMExtension", "com.azure.compute.batch.models.VMExtensionInstanceView": "Azure.Batch.VMExtensionInstanceView", "com.azure.compute.batch.models.VirtualMachineConfiguration": "Azure.Batch.VirtualMachineConfiguration", diff --git a/sdk/batch/azure-compute-batch/tsp-location.yaml b/sdk/batch/azure-compute-batch/tsp-location.yaml index 85b60f9c89b7..e991502b92a2 100644 --- a/sdk/batch/azure-compute-batch/tsp-location.yaml +++ b/sdk/batch/azure-compute-batch/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/batch/Azure.Batch -commit: df3cd3e3d50eec1d1da593750e1ea3a4db3f541d +commit: 80c77e79e935d03d9109ebbd0adc786c51576915 repo: Azure/azure-rest-api-specs -cleanup: false +additionalDirectories: