1111import com.azure.compute.batch.models.BatchApplication;
1212import com.azure.compute.batch.models.BatchCertificate;
1313import com.azure.compute.batch.models.BatchClientParallelOptions;
14+ import com.azure.compute.batch.models.BatchCreateTaskCollectionResult;
1415import com.azure.compute.batch.models.BatchJob;
1516import com.azure.compute.batch.models.BatchJobCreateContent;
1617import com.azure.compute.batch.models.BatchJobDisableContent;
4546import com.azure.compute.batch.models.BatchSubtask;
4647import com.azure.compute.batch.models.BatchSupportedImage;
4748import com.azure.compute.batch.models.BatchTask;
48- import com.azure.compute.batch.models.BatchTaskAddCollectionResult;
4949import com.azure.compute.batch.models.BatchTaskCountsResult;
5050import com.azure.compute.batch.models.BatchTaskCreateContent;
5151import com.azure.compute.batch.models.BatchTaskGroup;
9090import com.azure.compute.batch.models.GetBatchTaskFileOptions;
9191import com.azure.compute.batch.models.GetBatchTaskFilePropertiesOptions;
9292import com.azure.compute.batch.models.GetBatchTaskOptions;
93- import com.azure.compute.batch.models.GetCertificateResponse;
9493import com.azure.compute.batch.models.ListBatchApplicationsOptions;
9594import com.azure.compute.batch.models.ListBatchCertificatesOptions;
9695import com.azure.compute.batch.models.ListBatchJobPreparationAndReleaseTaskStatusOptions;
@@ -5790,6 +5789,9 @@ public Mono<Response<Void>> deleteCertificateWithResponse(String thumbprintAlgor
57905789 * }
57915790 * ]
57925791 * }
5792+ * data: String (Required)
5793+ * certificateFormat: String(pfx/cer) (Optional)
5794+ * password: String (Optional)
57935795 * }
57945796 * }
57955797 * </pre>
@@ -8991,8 +8993,8 @@ public PagedFlux<BinaryData> listTasks(String jobId, RequestOptions requestOptio
89918993 * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401.
89928994 * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
89938995 * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
8994- * @return the result of adding a collection of Tasks to a Job along with {@link Response} on successful completion
8995- * of {@link Mono}.
8996+ * @return the result of creating a collection of Tasks to a Job along with {@link Response} on successful
8997+ * completion of {@link Mono}.
89968998 */
89978999 @Generated
89989000 @ServiceMethod(returns = ReturnType.SINGLE)
@@ -13699,7 +13701,7 @@ public Mono<Void> deleteCertificate(String thumbprintAlgorithm, String thumbprin
1369913701 */
1370013702 @Generated
1370113703 @ServiceMethod(returns = ReturnType.SINGLE)
13702- public Mono<GetCertificateResponse > getCertificate(String thumbprintAlgorithm, String thumbprint,
13704+ public Mono<BatchCertificate > getCertificate(String thumbprintAlgorithm, String thumbprint,
1370313705 GetBatchCertificateOptions options) {
1370413706 // Generated convenience method for getCertificateWithResponse
1370513707 RequestOptions requestOptions = new RequestOptions();
@@ -13716,7 +13718,7 @@ public Mono<GetCertificateResponse> getCertificate(String thumbprintAlgorithm, S
1371613718 false);
1371713719 }
1371813720 return getCertificateWithResponse(thumbprintAlgorithm, thumbprint, requestOptions).flatMap(FluxUtil::toMono)
13719- .map(protocolMethodData -> protocolMethodData.toObject(GetCertificateResponse .class));
13721+ .map(protocolMethodData -> protocolMethodData.toObject(BatchCertificate .class));
1372013722 }
1372113723
1372213724 /**
@@ -13734,11 +13736,11 @@ public Mono<GetCertificateResponse> getCertificate(String thumbprintAlgorithm, S
1373413736 */
1373513737 @Generated
1373613738 @ServiceMethod(returns = ReturnType.SINGLE)
13737- public Mono<GetCertificateResponse > getCertificate(String thumbprintAlgorithm, String thumbprint) {
13739+ public Mono<BatchCertificate > getCertificate(String thumbprintAlgorithm, String thumbprint) {
1373813740 // Generated convenience method for getCertificateWithResponse
1373913741 RequestOptions requestOptions = new RequestOptions();
1374013742 return getCertificateWithResponse(thumbprintAlgorithm, thumbprint, requestOptions).flatMap(FluxUtil::toMono)
13741- .map(protocolMethodData -> protocolMethodData.toObject(GetCertificateResponse .class));
13743+ .map(protocolMethodData -> protocolMethodData.toObject(BatchCertificate .class));
1374213744 }
1374313745
1374413746 /**
@@ -14646,11 +14648,11 @@ public PagedFlux<BatchTask> listTasks(String jobId) {
1464614648 * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
1464714649 * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
1464814650 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
14649- * @return the result of adding a collection of Tasks to a Job on successful completion of {@link Mono}.
14651+ * @return the result of creating a collection of Tasks to a Job on successful completion of {@link Mono}.
1465014652 */
1465114653 @Generated
1465214654 @ServiceMethod(returns = ReturnType.SINGLE)
14653- public Mono<BatchTaskAddCollectionResult > createTaskCollection(String jobId, BatchTaskGroup taskCollection,
14655+ public Mono<BatchCreateTaskCollectionResult > createTaskCollection(String jobId, BatchTaskGroup taskCollection,
1465414656 CreateBatchTaskCollectionOptions options) {
1465514657 // Generated convenience method for createTaskCollectionWithResponse
1465614658 RequestOptions requestOptions = new RequestOptions();
@@ -14660,7 +14662,7 @@ public Mono<BatchTaskAddCollectionResult> createTaskCollection(String jobId, Bat
1466014662 }
1466114663 return createTaskCollectionWithResponse(jobId, BinaryData.fromObject(taskCollection), requestOptions)
1466214664 .flatMap(FluxUtil::toMono)
14663- .map(protocolMethodData -> protocolMethodData.toObject(BatchTaskAddCollectionResult .class));
14665+ .map(protocolMethodData -> protocolMethodData.toObject(BatchCreateTaskCollectionResult .class));
1466414666 }
1466514667
1466614668 /**
@@ -14689,16 +14691,16 @@ public Mono<BatchTaskAddCollectionResult> createTaskCollection(String jobId, Bat
1468914691 * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404.
1469014692 * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409.
1469114693 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
14692- * @return the result of adding a collection of Tasks to a Job on successful completion of {@link Mono}.
14694+ * @return the result of creating a collection of Tasks to a Job on successful completion of {@link Mono}.
1469314695 */
1469414696 @Generated
1469514697 @ServiceMethod(returns = ReturnType.SINGLE)
14696- public Mono<BatchTaskAddCollectionResult > createTaskCollection(String jobId, BatchTaskGroup taskCollection) {
14698+ public Mono<BatchCreateTaskCollectionResult > createTaskCollection(String jobId, BatchTaskGroup taskCollection) {
1469714699 // Generated convenience method for createTaskCollectionWithResponse
1469814700 RequestOptions requestOptions = new RequestOptions();
1469914701 return createTaskCollectionWithResponse(jobId, BinaryData.fromObject(taskCollection), requestOptions)
1470014702 .flatMap(FluxUtil::toMono)
14701- .map(protocolMethodData -> protocolMethodData.toObject(BatchTaskAddCollectionResult .class));
14703+ .map(protocolMethodData -> protocolMethodData.toObject(BatchCreateTaskCollectionResult .class));
1470214704 }
1470314705
1470414706 /**
0 commit comments