scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of Compute Bulkactions service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the Compute Bulkactions service API instance.
+ */
+ public ComputeBulkactionsManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ String clientVersion = PROPERTIES.getOrDefault(SDK_VERSION, "UnknownVersion");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder.append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.compute.bulkactions")
+ .append("/")
+ .append(clientVersion);
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder.append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.addAll(this.policies.stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new ComputeBulkactionsManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of VirtualMachineBulkOperations.
+ *
+ * @return Resource collection API of VirtualMachineBulkOperations.
+ */
+ public VirtualMachineBulkOperations virtualMachineBulkOperations() {
+ if (this.virtualMachineBulkOperations == null) {
+ this.virtualMachineBulkOperations
+ = new VirtualMachineBulkOperationsImpl(clientObject.getVirtualMachineBulkOperations(), this);
+ }
+ return virtualMachineBulkOperations;
+ }
+
+ /**
+ * Gets the resource collection API of LaunchBulkInstancesOperations. It manages
+ * LocationBasedLaunchBulkInstancesOperation.
+ *
+ * @return Resource collection API of LaunchBulkInstancesOperations.
+ */
+ public LaunchBulkInstancesOperations launchBulkInstancesOperations() {
+ if (this.launchBulkInstancesOperations == null) {
+ this.launchBulkInstancesOperations
+ = new LaunchBulkInstancesOperationsImpl(clientObject.getLaunchBulkInstancesOperations(), this);
+ }
+ return launchBulkInstancesOperations;
+ }
+
+ /**
+ * Gets wrapped service client ComputeBulkactionsManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client ComputeBulkactionsManagementClient.
+ */
+ public ComputeBulkactionsManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ComputeBulkactionsManagementClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ComputeBulkactionsManagementClient.java
new file mode 100644
index 000000000000..bcc03014b35c
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/ComputeBulkactionsManagementClient.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for ComputeBulkactionsManagementClient class.
+ */
+public interface ComputeBulkactionsManagementClient {
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the VirtualMachineBulkOperationsClient object to access its operations.
+ *
+ * @return the VirtualMachineBulkOperationsClient object.
+ */
+ VirtualMachineBulkOperationsClient getVirtualMachineBulkOperations();
+
+ /**
+ * Gets the LaunchBulkInstancesOperationsClient object to access its operations.
+ *
+ * @return the LaunchBulkInstancesOperationsClient object.
+ */
+ LaunchBulkInstancesOperationsClient getLaunchBulkInstancesOperations();
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/LaunchBulkInstancesOperationsClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/LaunchBulkInstancesOperationsClient.java
new file mode 100644
index 000000000000..eb7c0a3628e2
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/LaunchBulkInstancesOperationsClient.java
@@ -0,0 +1,350 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.LocationBasedLaunchBulkInstancesOperationInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.VirtualMachineInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in LaunchBulkInstancesOperationsClient.
+ */
+public interface LaunchBulkInstancesOperationsClient {
+ /**
+ * Gets an instance of LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of LaunchBulkInstancesOperations along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String location,
+ String name, Context context);
+
+ /**
+ * Gets an instance of LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of LaunchBulkInstancesOperations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LocationBasedLaunchBulkInstancesOperationInner get(String resourceGroupName, String location, String name);
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a LaunchBulkInstancesOperation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getOperationStatusWithResponse(String location, String asyncOperationId,
+ Context context);
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a LaunchBulkInstancesOperation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ OperationStatusResultInner getOperationStatus(String location, String asyncOperationId);
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LocationBasedLaunchBulkInstancesOperationInner>
+ beginCreateOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedLaunchBulkInstancesOperationInner resource);
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, LocationBasedLaunchBulkInstancesOperationInner>
+ beginCreateOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedLaunchBulkInstancesOperationInner resource, Context context);
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LocationBasedLaunchBulkInstancesOperationInner createOrUpdate(String resourceGroupName, String location,
+ String name, LocationBasedLaunchBulkInstancesOperationInner resource);
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ LocationBasedLaunchBulkInstancesOperationInner createOrUpdate(String resourceGroupName, String location,
+ String name, LocationBasedLaunchBulkInstancesOperationInner resource, Context context);
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name);
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name,
+ Boolean deleteInstances, Context context);
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String location, String name);
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String location, String name, Boolean deleteInstances, Context context);
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCancel(String resourceGroupName, String location, String name);
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginCancel(String resourceGroupName, String location, String name,
+ Context context);
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String location, String name);
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void cancel(String resourceGroupName, String location, String name, Context context);
+
+ /**
+ * List LaunchBulkInstancesOperation resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName,
+ String location);
+
+ /**
+ * List LaunchBulkInstancesOperation resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName,
+ String location, Context context);
+
+ /**
+ * List LaunchBulkInstancesOperation resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscription(String location);
+
+ /**
+ * List LaunchBulkInstancesOperation resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscription(String location, Context context);
+
+ /**
+ * List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listVirtualMachines(String resourceGroupName, String location, String name);
+
+ /**
+ * List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param filter Filter expression to filter the virtual machines.
+ * @param skiptoken Skip token for pagination. Uses the token from a previous response to fetch the next page of
+ * results.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listVirtualMachines(String resourceGroupName, String location, String name,
+ String filter, String skiptoken, Context context);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/OperationsClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/OperationsClient.java
new file mode 100644
index 000000000000..335609dc1854
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/OperationsClient.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OperationInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
+public interface OperationsClient {
+ /**
+ * List the operations for the provider.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List the operations for the provider.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/VirtualMachineBulkOperationsClient.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/VirtualMachineBulkOperationsClient.java
new file mode 100644
index 000000000000..fb39916f5f69
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/VirtualMachineBulkOperationsClient.java
@@ -0,0 +1,301 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.CancelOperationsResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.CreateResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.DeallocateResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.DeleteResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.GetOperationStatusResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.HibernateResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.ReimageResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.StartResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.models.CancelOperationsContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteCreateContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteDeallocateContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteDeleteContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteHibernateContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteReimageRequest;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteStartContent;
+import com.azure.resourcemanager.compute.bulkactions.models.ExecuteVdiCreateRequest;
+import com.azure.resourcemanager.compute.bulkactions.models.GetOperationStatusContent;
+
+/**
+ * An instance of this class provides access to all the operations defined in VirtualMachineBulkOperationsClient.
+ */
+public interface VirtualMachineBulkOperationsClient {
+ /**
+ * BulkDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon
+ * as Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a deallocate request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkDeallocateOperationWithResponse(String location,
+ ExecuteDeallocateContent requestBody, Context context);
+
+ /**
+ * BulkDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon
+ * as Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a deallocate request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeallocateResourceOperationResponseInner bulkDeallocateOperation(String location,
+ ExecuteDeallocateContent requestBody);
+
+ /**
+ * BulkHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon
+ * as Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a Hibernate request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkHibernateOperationWithResponse(String location,
+ ExecuteHibernateContent requestBody, Context context);
+
+ /**
+ * BulkHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon
+ * as Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a Hibernate request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ HibernateResourceOperationResponseInner bulkHibernateOperation(String location,
+ ExecuteHibernateContent requestBody);
+
+ /**
+ * BulkStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a start request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkStartOperationWithResponse(String location,
+ ExecuteStartContent requestBody, Context context);
+
+ /**
+ * BulkStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a start request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ StartResourceOperationResponseInner bulkStartOperation(String location, ExecuteStartContent requestBody);
+
+ /**
+ * BulkCreate: Execute create operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a create request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkCreateOperationWithResponse(String location,
+ ExecuteCreateContent requestBody, Context context);
+
+ /**
+ * BulkCreate: Execute create operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a create request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CreateResourceOperationResponseInner bulkCreateOperation(String location, ExecuteCreateContent requestBody);
+
+ /**
+ * BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation supports flex properties
+ * to give options on Sku and zone selection.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a create request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkVdiFlexCreateOperationWithResponse(String location,
+ ExecuteVdiCreateRequest requestBody, Context context);
+
+ /**
+ * BulkVdiFlexCreate: Bulk create operation for a batch of virtual machines, this operation supports flex properties
+ * to give options on Sku and zone selection.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a create request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CreateResourceOperationResponseInner bulkVdiFlexCreateOperation(String location,
+ ExecuteVdiCreateRequest requestBody);
+
+ /**
+ * BulkDelete: Execute delete operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a delete request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkDeleteOperationWithResponse(String location,
+ ExecuteDeleteContent requestBody, Context context);
+
+ /**
+ * BulkDelete: Execute delete operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a delete request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeleteResourceOperationResponseInner bulkDeleteOperation(String location, ExecuteDeleteContent requestBody);
+
+ /**
+ * BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual machines.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return this is the response from a get operations status request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkGetOperationsStatusWithResponse(String location,
+ GetOperationStatusContent requestBody, Context context);
+
+ /**
+ * BulkGetOperationsStatus: Polling endpoint to read status of operations performed on virtual machines.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return this is the response from a get operations status request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ GetOperationStatusResponseInner bulkGetOperationsStatus(String location, GetOperationStatusContent requestBody);
+
+ /**
+ * BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return this is the response from a cancel operations request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkCancelOperationsWithResponse(String location,
+ CancelOperationsContent requestBody, Context context);
+
+ /**
+ * BulkCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return this is the response from a cancel operations request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CancelOperationsResponseInner bulkCancelOperations(String location, CancelOperationsContent requestBody);
+
+ /**
+ * BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a reimage request along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response bulkReimageOperationWithResponse(String location,
+ ExecuteReimageRequest requestBody, Context context);
+
+ /**
+ * BulkReimage: Execute reimage operation for a batch of virtual machines, this operation is triggered as soon as
+ * Computeschedule receives it.
+ *
+ * @param location The location name.
+ * @param requestBody The request body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response from a reimage request.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ReimageResourceOperationResponseInner bulkReimageOperation(String location, ExecuteReimageRequest requestBody);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CancelOperationsResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CancelOperationsResponseInner.java
new file mode 100644
index 000000000000..670bf5312da1
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CancelOperationsResponseInner.java
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * This is the response from a cancel operations request.
+ */
+@Immutable
+public final class CancelOperationsResponseInner implements JsonSerializable {
+ /*
+ * An array of resource operations that were successfully cancelled
+ */
+ private List results;
+
+ /**
+ * Creates an instance of CancelOperationsResponseInner class.
+ */
+ private CancelOperationsResponseInner() {
+ }
+
+ /**
+ * Get the results property: An array of resource operations that were successfully cancelled.
+ *
+ * @return the results value.
+ */
+ public List results() {
+ return this.results;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("results", this.results, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CancelOperationsResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CancelOperationsResponseInner 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 CancelOperationsResponseInner.
+ */
+ public static CancelOperationsResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CancelOperationsResponseInner deserializedCancelOperationsResponseInner
+ = new CancelOperationsResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("results".equals(fieldName)) {
+ List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ deserializedCancelOperationsResponseInner.results = results;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCancelOperationsResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CreateResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CreateResourceOperationResponseInner.java
new file mode 100644
index 000000000000..243a0a3db215
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/CreateResourceOperationResponseInner.java
@@ -0,0 +1,131 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response from a create request.
+ */
+@Immutable
+public final class CreateResourceOperationResponseInner
+ implements JsonSerializable {
+ /*
+ * The description of the operation response
+ */
+ private String description;
+
+ /*
+ * The type of resources used in the create request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the create request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the create request if no errors exist
+ */
+ private List results;
+
+ /**
+ * Creates an instance of CreateResourceOperationResponseInner class.
+ */
+ private CreateResourceOperationResponseInner() {
+ }
+
+ /**
+ * Get the description property: The description of the operation response.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the type property: The type of resources used in the create request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the create request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the create request if no errors exist.
+ *
+ * @return the results value.
+ */
+ public List results() {
+ return this.results;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("type", this.type);
+ jsonWriter.writeStringField("location", this.location);
+ jsonWriter.writeArrayField("results", this.results, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of CreateResourceOperationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of CreateResourceOperationResponseInner 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 CreateResourceOperationResponseInner.
+ */
+ public static CreateResourceOperationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ CreateResourceOperationResponseInner deserializedCreateResourceOperationResponseInner
+ = new CreateResourceOperationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedCreateResourceOperationResponseInner.description = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedCreateResourceOperationResponseInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedCreateResourceOperationResponseInner.location = reader.getString();
+ } else if ("results".equals(fieldName)) {
+ List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ deserializedCreateResourceOperationResponseInner.results = results;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedCreateResourceOperationResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeallocateResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeallocateResourceOperationResponseInner.java
new file mode 100644
index 000000000000..52b044c2177b
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeallocateResourceOperationResponseInner.java
@@ -0,0 +1,131 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response from a deallocate request.
+ */
+@Immutable
+public final class DeallocateResourceOperationResponseInner
+ implements JsonSerializable {
+ /*
+ * The description of the operation response
+ */
+ private String description;
+
+ /*
+ * The type of resources used in the deallocate request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the deallocate request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the deallocate request if no errors exist
+ */
+ private List results;
+
+ /**
+ * Creates an instance of DeallocateResourceOperationResponseInner class.
+ */
+ private DeallocateResourceOperationResponseInner() {
+ }
+
+ /**
+ * Get the description property: The description of the operation response.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the type property: The type of resources used in the deallocate request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the deallocate request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the deallocate request if no errors exist.
+ *
+ * @return the results value.
+ */
+ public List results() {
+ return this.results;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("type", this.type);
+ jsonWriter.writeStringField("location", this.location);
+ jsonWriter.writeArrayField("results", this.results, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DeallocateResourceOperationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DeallocateResourceOperationResponseInner 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 DeallocateResourceOperationResponseInner.
+ */
+ public static DeallocateResourceOperationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DeallocateResourceOperationResponseInner deserializedDeallocateResourceOperationResponseInner
+ = new DeallocateResourceOperationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedDeallocateResourceOperationResponseInner.description = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDeallocateResourceOperationResponseInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedDeallocateResourceOperationResponseInner.location = reader.getString();
+ } else if ("results".equals(fieldName)) {
+ List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ deserializedDeallocateResourceOperationResponseInner.results = results;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDeallocateResourceOperationResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeleteResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeleteResourceOperationResponseInner.java
new file mode 100644
index 000000000000..ee8045a9a850
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/DeleteResourceOperationResponseInner.java
@@ -0,0 +1,131 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response from a delete request.
+ */
+@Immutable
+public final class DeleteResourceOperationResponseInner
+ implements JsonSerializable {
+ /*
+ * The description of the operation response
+ */
+ private String description;
+
+ /*
+ * The type of resources used in the delete request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the delete request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the delete request if no errors exist
+ */
+ private List results;
+
+ /**
+ * Creates an instance of DeleteResourceOperationResponseInner class.
+ */
+ private DeleteResourceOperationResponseInner() {
+ }
+
+ /**
+ * Get the description property: The description of the operation response.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the type property: The type of resources used in the delete request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the delete request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the delete request if no errors exist.
+ *
+ * @return the results value.
+ */
+ public List results() {
+ return this.results;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("type", this.type);
+ jsonWriter.writeStringField("location", this.location);
+ jsonWriter.writeArrayField("results", this.results, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of DeleteResourceOperationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of DeleteResourceOperationResponseInner 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 DeleteResourceOperationResponseInner.
+ */
+ public static DeleteResourceOperationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ DeleteResourceOperationResponseInner deserializedDeleteResourceOperationResponseInner
+ = new DeleteResourceOperationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedDeleteResourceOperationResponseInner.description = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedDeleteResourceOperationResponseInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedDeleteResourceOperationResponseInner.location = reader.getString();
+ } else if ("results".equals(fieldName)) {
+ List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ deserializedDeleteResourceOperationResponseInner.results = results;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedDeleteResourceOperationResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/GetOperationStatusResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/GetOperationStatusResponseInner.java
new file mode 100644
index 000000000000..480ac41b6c40
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/GetOperationStatusResponseInner.java
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * This is the response from a get operations status request.
+ */
+@Immutable
+public final class GetOperationStatusResponseInner implements JsonSerializable {
+ /*
+ * An array of resource operations based on their operation ids
+ */
+ private List results;
+
+ /**
+ * Creates an instance of GetOperationStatusResponseInner class.
+ */
+ private GetOperationStatusResponseInner() {
+ }
+
+ /**
+ * Get the results property: An array of resource operations based on their operation ids.
+ *
+ * @return the results value.
+ */
+ public List results() {
+ return this.results;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeArrayField("results", this.results, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of GetOperationStatusResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of GetOperationStatusResponseInner 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 GetOperationStatusResponseInner.
+ */
+ public static GetOperationStatusResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ GetOperationStatusResponseInner deserializedGetOperationStatusResponseInner
+ = new GetOperationStatusResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("results".equals(fieldName)) {
+ List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ deserializedGetOperationStatusResponseInner.results = results;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedGetOperationStatusResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/HibernateResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/HibernateResourceOperationResponseInner.java
new file mode 100644
index 000000000000..d7fd6634c845
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/HibernateResourceOperationResponseInner.java
@@ -0,0 +1,131 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response from a Hibernate request.
+ */
+@Immutable
+public final class HibernateResourceOperationResponseInner
+ implements JsonSerializable {
+ /*
+ * The description of the operation response
+ */
+ private String description;
+
+ /*
+ * The type of resources used in the Hibernate request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the Hibernate request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the Hibernate request if no errors exist
+ */
+ private List results;
+
+ /**
+ * Creates an instance of HibernateResourceOperationResponseInner class.
+ */
+ private HibernateResourceOperationResponseInner() {
+ }
+
+ /**
+ * Get the description property: The description of the operation response.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the type property: The type of resources used in the Hibernate request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the Hibernate request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the Hibernate request if no errors exist.
+ *
+ * @return the results value.
+ */
+ public List results() {
+ return this.results;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("type", this.type);
+ jsonWriter.writeStringField("location", this.location);
+ jsonWriter.writeArrayField("results", this.results, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of HibernateResourceOperationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of HibernateResourceOperationResponseInner 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 HibernateResourceOperationResponseInner.
+ */
+ public static HibernateResourceOperationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ HibernateResourceOperationResponseInner deserializedHibernateResourceOperationResponseInner
+ = new HibernateResourceOperationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedHibernateResourceOperationResponseInner.description = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedHibernateResourceOperationResponseInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedHibernateResourceOperationResponseInner.location = reader.getString();
+ } else if ("results".equals(fieldName)) {
+ List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ deserializedHibernateResourceOperationResponseInner.results = results;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedHibernateResourceOperationResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/LocationBasedLaunchBulkInstancesOperationInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/LocationBasedLaunchBulkInstancesOperationInner.java
new file mode 100644
index 000000000000..fcae773c58d6
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/LocationBasedLaunchBulkInstancesOperationInner.java
@@ -0,0 +1,277 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.LaunchBulkInstancesOperationProperties;
+import com.azure.resourcemanager.compute.bulkactions.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.compute.bulkactions.models.Plan;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Location based LaunchBulkInstancesOperation resource. The location is part of the resource path.
+ */
+@Fluent
+public final class LocationBasedLaunchBulkInstancesOperationInner extends ProxyResource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private LaunchBulkInstancesOperationProperties properties;
+
+ /*
+ * Zones in which the LaunchBulkInstancesOperation is available
+ */
+ private List zones;
+
+ /*
+ * Resource tags.
+ */
+ private Map tags;
+
+ /*
+ * The managed service identities assigned to this resource.
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * Details of the resource plan.
+ */
+ private Plan plan;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /**
+ * Creates an instance of LocationBasedLaunchBulkInstancesOperationInner class.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public LaunchBulkInstancesOperationProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the LocationBasedLaunchBulkInstancesOperationInner object itself.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner
+ withProperties(LaunchBulkInstancesOperationProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the zones property: Zones in which the LaunchBulkInstancesOperation is available.
+ *
+ * @return the zones value.
+ */
+ public List zones() {
+ return this.zones;
+ }
+
+ /**
+ * Set the zones property: Zones in which the LaunchBulkInstancesOperation is available.
+ *
+ * @param zones the zones value to set.
+ * @return the LocationBasedLaunchBulkInstancesOperationInner object itself.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner withZones(List zones) {
+ this.zones = zones;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Resource tags.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Resource tags.
+ *
+ * @param tags the tags value to set.
+ * @return the LocationBasedLaunchBulkInstancesOperationInner object itself.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The managed service identities assigned to this resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The managed service identities assigned to this resource.
+ *
+ * @param identity the identity value to set.
+ * @return the LocationBasedLaunchBulkInstancesOperationInner object itself.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the plan property: Details of the resource plan.
+ *
+ * @return the plan value.
+ */
+ public Plan plan() {
+ return this.plan;
+ }
+
+ /**
+ * Set the plan property: Details of the resource plan.
+ *
+ * @param plan the plan value to set.
+ * @return the LocationBasedLaunchBulkInstancesOperationInner object itself.
+ */
+ public LocationBasedLaunchBulkInstancesOperationInner withPlan(Plan plan) {
+ this.plan = plan;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeJsonField("plan", this.plan);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of LocationBasedLaunchBulkInstancesOperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of LocationBasedLaunchBulkInstancesOperationInner 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 LocationBasedLaunchBulkInstancesOperationInner.
+ */
+ public static LocationBasedLaunchBulkInstancesOperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ LocationBasedLaunchBulkInstancesOperationInner deserializedLocationBasedLaunchBulkInstancesOperationInner
+ = new LocationBasedLaunchBulkInstancesOperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.properties
+ = LaunchBulkInstancesOperationProperties.fromJson(reader);
+ } else if ("zones".equals(fieldName)) {
+ List zones = reader.readArray(reader1 -> reader1.getString());
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.zones = zones;
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.tags = tags;
+ } else if ("identity".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.identity
+ = ManagedServiceIdentity.fromJson(reader);
+ } else if ("plan".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.plan = Plan.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedLocationBasedLaunchBulkInstancesOperationInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedLocationBasedLaunchBulkInstancesOperationInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OperationInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..9dd130a6a639
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OperationInner.java
@@ -0,0 +1,150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ActionType;
+import com.azure.resourcemanager.compute.bulkactions.models.OperationDisplay;
+import com.azure.resourcemanager.compute.bulkactions.models.Origin;
+import java.io.IOException;
+
+/**
+ * REST API Operation
+ *
+ * Details of a REST API operation, returned from the Resource Provider Operations API.
+ */
+@Immutable
+public final class OperationInner implements JsonSerializable {
+ /*
+ * The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action"
+ */
+ private String name;
+
+ /*
+ * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure
+ * Resource Manager/control-plane operations.
+ */
+ private Boolean isDataAction;
+
+ /*
+ * Localized display information for this particular operation.
+ */
+ private OperationDisplay display;
+
+ /*
+ * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default
+ * value is "user,system"
+ */
+ private Origin origin;
+
+ /*
+ * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
+ */
+ private ActionType actionType;
+
+ /**
+ * Creates an instance of OperationInner class.
+ */
+ private OperationInner() {
+ }
+
+ /**
+ * Get the name property: The name of the operation, as per Resource-Based Access Control (RBAC). Examples:
+ * "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action".
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the isDataAction property: Whether the operation applies to data-plane. This is "true" for data-plane
+ * operations and "false" for Azure Resource Manager/control-plane operations.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Get the display property: Localized display information for this particular operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Get the origin property: The intended executor of the operation; as in Resource Based Access Control (RBAC) and
+ * audit logs UX. Default value is "user,system".
+ *
+ * @return the origin value.
+ */
+ public Origin origin() {
+ return this.origin;
+ }
+
+ /**
+ * Get the actionType property: Extensible enum. Indicates the action type. "Internal" refers to actions that are
+ * for internal only APIs.
+ *
+ * @return the actionType value.
+ */
+ public ActionType actionType() {
+ return this.actionType;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("display", this.display);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationInner 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 OperationInner.
+ */
+ public static OperationInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationInner deserializedOperationInner = new OperationInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedOperationInner.name = reader.getString();
+ } else if ("isDataAction".equals(fieldName)) {
+ deserializedOperationInner.isDataAction = reader.getNullable(JsonReader::getBoolean);
+ } else if ("display".equals(fieldName)) {
+ deserializedOperationInner.display = OperationDisplay.fromJson(reader);
+ } else if ("origin".equals(fieldName)) {
+ deserializedOperationInner.origin = Origin.fromString(reader.getString());
+ } else if ("actionType".equals(fieldName)) {
+ deserializedOperationInner.actionType = ActionType.fromString(reader.getString());
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OperationStatusResultInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OperationStatusResultInner.java
new file mode 100644
index 000000000000..a19d691a48e1
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/OperationStatusResultInner.java
@@ -0,0 +1,222 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.util.CoreUtils;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.time.OffsetDateTime;
+import java.time.format.DateTimeFormatter;
+import java.util.List;
+
+/**
+ * The current status of an async operation.
+ */
+@Immutable
+public final class OperationStatusResultInner implements JsonSerializable {
+ /*
+ * Fully qualified ID for the async operation.
+ */
+ private String id;
+
+ /*
+ * Name of the async operation.
+ */
+ private String name;
+
+ /*
+ * Operation status.
+ */
+ private String status;
+
+ /*
+ * Percent of the operation that is complete.
+ */
+ private Double percentComplete;
+
+ /*
+ * The start time of the operation.
+ */
+ private OffsetDateTime startTime;
+
+ /*
+ * The end time of the operation.
+ */
+ private OffsetDateTime endTime;
+
+ /*
+ * The operations list.
+ */
+ private List operations;
+
+ /*
+ * If present, details of the operation error.
+ */
+ private ManagementError error;
+
+ /*
+ * Fully qualified ID of the resource against which the original async operation was started.
+ */
+ private String resourceId;
+
+ /**
+ * Creates an instance of OperationStatusResultInner class.
+ */
+ private OperationStatusResultInner() {
+ }
+
+ /**
+ * Get the id property: Fully qualified ID for the async operation.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: Name of the async operation.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the status property: Operation status.
+ *
+ * @return the status value.
+ */
+ public String status() {
+ return this.status;
+ }
+
+ /**
+ * Get the percentComplete property: Percent of the operation that is complete.
+ *
+ * @return the percentComplete value.
+ */
+ public Double percentComplete() {
+ return this.percentComplete;
+ }
+
+ /**
+ * Get the startTime property: The start time of the operation.
+ *
+ * @return the startTime value.
+ */
+ public OffsetDateTime startTime() {
+ return this.startTime;
+ }
+
+ /**
+ * Get the endTime property: The end time of the operation.
+ *
+ * @return the endTime value.
+ */
+ public OffsetDateTime endTime() {
+ return this.endTime;
+ }
+
+ /**
+ * Get the operations property: The operations list.
+ *
+ * @return the operations value.
+ */
+ public List operations() {
+ return this.operations;
+ }
+
+ /**
+ * Get the error property: If present, details of the operation error.
+ *
+ * @return the error value.
+ */
+ public ManagementError error() {
+ return this.error;
+ }
+
+ /**
+ * Get the resourceId property: Fully qualified ID of the resource against which the original async operation was
+ * started.
+ *
+ * @return the resourceId value.
+ */
+ public String resourceId() {
+ return this.resourceId;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("status", this.status);
+ jsonWriter.writeStringField("id", this.id);
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeNumberField("percentComplete", this.percentComplete);
+ jsonWriter.writeStringField("startTime",
+ this.startTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.startTime));
+ jsonWriter.writeStringField("endTime",
+ this.endTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.endTime));
+ jsonWriter.writeArrayField("operations", this.operations, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeJsonField("error", this.error);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of OperationStatusResultInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of OperationStatusResultInner 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 OperationStatusResultInner.
+ */
+ public static OperationStatusResultInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ OperationStatusResultInner deserializedOperationStatusResultInner = new OperationStatusResultInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("status".equals(fieldName)) {
+ deserializedOperationStatusResultInner.status = reader.getString();
+ } else if ("id".equals(fieldName)) {
+ deserializedOperationStatusResultInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedOperationStatusResultInner.name = reader.getString();
+ } else if ("percentComplete".equals(fieldName)) {
+ deserializedOperationStatusResultInner.percentComplete = reader.getNullable(JsonReader::getDouble);
+ } else if ("startTime".equals(fieldName)) {
+ deserializedOperationStatusResultInner.startTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("endTime".equals(fieldName)) {
+ deserializedOperationStatusResultInner.endTime = reader
+ .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()));
+ } else if ("operations".equals(fieldName)) {
+ List operations
+ = reader.readArray(reader1 -> OperationStatusResultInner.fromJson(reader1));
+ deserializedOperationStatusResultInner.operations = operations;
+ } else if ("error".equals(fieldName)) {
+ deserializedOperationStatusResultInner.error = ManagementError.fromJson(reader);
+ } else if ("resourceId".equals(fieldName)) {
+ deserializedOperationStatusResultInner.resourceId = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedOperationStatusResultInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ReimageResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ReimageResourceOperationResponseInner.java
new file mode 100644
index 000000000000..b9169f30968f
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/ReimageResourceOperationResponseInner.java
@@ -0,0 +1,131 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response from a reimage request.
+ */
+@Immutable
+public final class ReimageResourceOperationResponseInner
+ implements JsonSerializable {
+ /*
+ * The description of the operation response
+ */
+ private String description;
+
+ /*
+ * The type of resources used in the reimage request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the reimage request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the reimage request if no errors exist
+ */
+ private List results;
+
+ /**
+ * Creates an instance of ReimageResourceOperationResponseInner class.
+ */
+ private ReimageResourceOperationResponseInner() {
+ }
+
+ /**
+ * Get the description property: The description of the operation response.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the type property: The type of resources used in the reimage request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the reimage request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the reimage request if no errors exist.
+ *
+ * @return the results value.
+ */
+ public List results() {
+ return this.results;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("type", this.type);
+ jsonWriter.writeStringField("location", this.location);
+ jsonWriter.writeArrayField("results", this.results, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of ReimageResourceOperationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ReimageResourceOperationResponseInner 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 ReimageResourceOperationResponseInner.
+ */
+ public static ReimageResourceOperationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ReimageResourceOperationResponseInner deserializedReimageResourceOperationResponseInner
+ = new ReimageResourceOperationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedReimageResourceOperationResponseInner.description = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedReimageResourceOperationResponseInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedReimageResourceOperationResponseInner.location = reader.getString();
+ } else if ("results".equals(fieldName)) {
+ List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ deserializedReimageResourceOperationResponseInner.results = results;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedReimageResourceOperationResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/StartResourceOperationResponseInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/StartResourceOperationResponseInner.java
new file mode 100644
index 000000000000..0eaa36ea2841
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/StartResourceOperationResponseInner.java
@@ -0,0 +1,131 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The response from a start request.
+ */
+@Immutable
+public final class StartResourceOperationResponseInner
+ implements JsonSerializable {
+ /*
+ * The description of the operation response
+ */
+ private String description;
+
+ /*
+ * The type of resources used in the start request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the start request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the start request if no errors exist
+ */
+ private List results;
+
+ /**
+ * Creates an instance of StartResourceOperationResponseInner class.
+ */
+ private StartResourceOperationResponseInner() {
+ }
+
+ /**
+ * Get the description property: The description of the operation response.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.description;
+ }
+
+ /**
+ * Get the type property: The type of resources used in the start request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the start request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the start request if no errors exist.
+ *
+ * @return the results value.
+ */
+ public List results() {
+ return this.results;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("description", this.description);
+ jsonWriter.writeStringField("type", this.type);
+ jsonWriter.writeStringField("location", this.location);
+ jsonWriter.writeArrayField("results", this.results, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of StartResourceOperationResponseInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of StartResourceOperationResponseInner 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 StartResourceOperationResponseInner.
+ */
+ public static StartResourceOperationResponseInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ StartResourceOperationResponseInner deserializedStartResourceOperationResponseInner
+ = new StartResourceOperationResponseInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("description".equals(fieldName)) {
+ deserializedStartResourceOperationResponseInner.description = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedStartResourceOperationResponseInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedStartResourceOperationResponseInner.location = reader.getString();
+ } else if ("results".equals(fieldName)) {
+ List results = reader.readArray(reader1 -> ResourceOperation.fromJson(reader1));
+ deserializedStartResourceOperationResponseInner.results = results;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedStartResourceOperationResponseInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/VirtualMachineInner.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/VirtualMachineInner.java
new file mode 100644
index 000000000000..7476e6934e26
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/VirtualMachineInner.java
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.compute.bulkactions.models.ApiError;
+import com.azure.resourcemanager.compute.bulkactions.models.VMOperationStatus;
+import java.io.IOException;
+
+/**
+ * A virtual machine launched by a LaunchBulkInstancesOperation.
+ */
+@Immutable
+public final class VirtualMachineInner implements JsonSerializable {
+ /*
+ * The name of the virtual machine.
+ */
+ private String name;
+
+ /*
+ * The compute RP resource id of the virtual machine.
+ * subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}
+ */
+ private String id;
+
+ /*
+ * Type of the virtual machine
+ */
+ private String type;
+
+ /*
+ * Represents the operationStatus of the virtual machine in response to the last operation performed on it by the
+ * LaunchBulkInstancesOperation.
+ */
+ private VMOperationStatus operationStatus;
+
+ /*
+ * Error information when operationStatus is Failed.
+ */
+ private ApiError error;
+
+ /**
+ * Creates an instance of VirtualMachineInner class.
+ */
+ private VirtualMachineInner() {
+ }
+
+ /**
+ * Get the name property: The name of the virtual machine.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the id property: The compute RP resource id of the virtual machine.
+ * subscriptions/{subId}/resourceGroups/{rgName}/providers/Microsoft.Compute/virtualMachines/{vmName}.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the type property: Type of the virtual machine.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the operationStatus property: Represents the operationStatus of the virtual machine in response to the last
+ * operation performed on it by the LaunchBulkInstancesOperation.
+ *
+ * @return the operationStatus value.
+ */
+ public VMOperationStatus operationStatus() {
+ return this.operationStatus;
+ }
+
+ /**
+ * Get the error property: Error information when operationStatus is Failed.
+ *
+ * @return the error value.
+ */
+ public ApiError error() {
+ return this.error;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of VirtualMachineInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of VirtualMachineInner 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 VirtualMachineInner.
+ */
+ public static VirtualMachineInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ VirtualMachineInner deserializedVirtualMachineInner = new VirtualMachineInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("name".equals(fieldName)) {
+ deserializedVirtualMachineInner.name = reader.getString();
+ } else if ("id".equals(fieldName)) {
+ deserializedVirtualMachineInner.id = reader.getString();
+ } else if ("operationStatus".equals(fieldName)) {
+ deserializedVirtualMachineInner.operationStatus = VMOperationStatus.fromString(reader.getString());
+ } else if ("type".equals(fieldName)) {
+ deserializedVirtualMachineInner.type = reader.getString();
+ } else if ("error".equals(fieldName)) {
+ deserializedVirtualMachineInner.error = ApiError.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedVirtualMachineInner;
+ });
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/package-info.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/package-info.java
new file mode 100644
index 000000000000..f9acd2df4080
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/models/package-info.java
@@ -0,0 +1,8 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the inner data models for ComputeBulkactions.
+ */
+package com.azure.resourcemanager.compute.bulkactions.fluent.models;
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/package-info.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/package-info.java
new file mode 100644
index 000000000000..9d235706bbcf
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/fluent/package-info.java
@@ -0,0 +1,8 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the service clients for ComputeBulkactions.
+ */
+package com.azure.resourcemanager.compute.bulkactions.fluent;
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/CancelOperationsResponseImpl.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/CancelOperationsResponseImpl.java
new file mode 100644
index 000000000000..0cf43436f792
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/CancelOperationsResponseImpl.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.CancelOperationsResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.models.CancelOperationsResponse;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.util.Collections;
+import java.util.List;
+
+public final class CancelOperationsResponseImpl implements CancelOperationsResponse {
+ private CancelOperationsResponseInner innerObject;
+
+ private final com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager;
+
+ CancelOperationsResponseImpl(CancelOperationsResponseInner innerObject,
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List results() {
+ List inner = this.innerModel().results();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public CancelOperationsResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/ComputeBulkactionsManagementClientBuilder.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/ComputeBulkactionsManagementClientBuilder.java
new file mode 100644
index 000000000000..0172c5f6bfe0
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/ComputeBulkactionsManagementClientBuilder.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/**
+ * A builder for creating a new instance of the ComputeBulkactionsManagementClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { ComputeBulkactionsManagementClientImpl.class })
+public final class ComputeBulkactionsManagementClientBuilder {
+ /*
+ * Service host
+ */
+ private String endpoint;
+
+ /**
+ * Sets Service host.
+ *
+ * @param endpoint the endpoint value.
+ * @return the ComputeBulkactionsManagementClientBuilder.
+ */
+ public ComputeBulkactionsManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription. The value must be an UUID.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the ComputeBulkactionsManagementClientBuilder.
+ */
+ public ComputeBulkactionsManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the ComputeBulkactionsManagementClientBuilder.
+ */
+ public ComputeBulkactionsManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the ComputeBulkactionsManagementClientBuilder.
+ */
+ public ComputeBulkactionsManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the ComputeBulkactionsManagementClientBuilder.
+ */
+ public ComputeBulkactionsManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the ComputeBulkactionsManagementClientBuilder.
+ */
+ public ComputeBulkactionsManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of ComputeBulkactionsManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of ComputeBulkactionsManagementClientImpl.
+ */
+ public ComputeBulkactionsManagementClientImpl buildClient() {
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline = (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ ComputeBulkactionsManagementClientImpl client = new ComputeBulkactionsManagementClientImpl(localPipeline,
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId);
+ return client;
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/ComputeBulkactionsManagementClientImpl.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/ComputeBulkactionsManagementClientImpl.java
new file mode 100644
index 000000000000..d9cf7c264b11
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/ComputeBulkactionsManagementClientImpl.java
@@ -0,0 +1,340 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.management.polling.SyncPollerFactory;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.compute.bulkactions.fluent.ComputeBulkactionsManagementClient;
+import com.azure.resourcemanager.compute.bulkactions.fluent.LaunchBulkInstancesOperationsClient;
+import com.azure.resourcemanager.compute.bulkactions.fluent.OperationsClient;
+import com.azure.resourcemanager.compute.bulkactions.fluent.VirtualMachineBulkOperationsClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * Initializes a new instance of the ComputeBulkactionsManagementClientImpl type.
+ */
+@ServiceClient(builder = ComputeBulkactionsManagementClientBuilder.class)
+public final class ComputeBulkactionsManagementClientImpl implements ComputeBulkactionsManagementClient {
+ /**
+ * Service host.
+ */
+ private final String endpoint;
+
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /**
+ * Version parameter.
+ */
+ private final String apiVersion;
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /**
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * The HTTP pipeline to send requests through.
+ */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /**
+ * The serializer to serialize an object into a string.
+ */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /**
+ * The default poll interval for long-running operation.
+ */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /**
+ * The OperationsClient object to access its operations.
+ */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /**
+ * The VirtualMachineBulkOperationsClient object to access its operations.
+ */
+ private final VirtualMachineBulkOperationsClient virtualMachineBulkOperations;
+
+ /**
+ * Gets the VirtualMachineBulkOperationsClient object to access its operations.
+ *
+ * @return the VirtualMachineBulkOperationsClient object.
+ */
+ public VirtualMachineBulkOperationsClient getVirtualMachineBulkOperations() {
+ return this.virtualMachineBulkOperations;
+ }
+
+ /**
+ * The LaunchBulkInstancesOperationsClient object to access its operations.
+ */
+ private final LaunchBulkInstancesOperationsClient launchBulkInstancesOperations;
+
+ /**
+ * Gets the LaunchBulkInstancesOperationsClient object to access its operations.
+ *
+ * @return the LaunchBulkInstancesOperationsClient object.
+ */
+ public LaunchBulkInstancesOperationsClient getLaunchBulkInstancesOperations() {
+ return this.launchBulkInstancesOperations;
+ }
+
+ /**
+ * Initializes an instance of ComputeBulkactionsManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param endpoint Service host.
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
+ */
+ ComputeBulkactionsManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.endpoint = endpoint;
+ this.subscriptionId = subscriptionId;
+ this.apiVersion = "2026-04-06-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.virtualMachineBulkOperations = new VirtualMachineBulkOperationsClientImpl(this);
+ this.launchBulkInstancesOperations = new LaunchBulkInstancesOperationsClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ return CoreUtils.mergeContexts(this.getContext(), context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param httpPipeline the http pipeline.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return poller flux for poll result and final result.
+ */
+ public PollerFlux, U> getLroResult(Mono>> activationResponse,
+ HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
+ return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, activationResponse, context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return SyncPoller for poll result and final result.
+ */
+ public SyncPoller, U> getLroResult(Response activationResponse,
+ Type pollResultType, Type finalResultType, Context context) {
+ return SyncPollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, () -> activationResponse, context);
+ }
+
+ /**
+ * Gets the final result, or an error, based on last async poll response.
+ *
+ * @param response the last async poll response.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return the final result, or an error.
+ */
+ public Mono getLroFinalResultOrError(AsyncPollResponse, U> response) {
+ if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) {
+ String errorMessage;
+ ManagementError managementError = null;
+ HttpResponse errorResponse = null;
+ PollResult.Error lroError = response.getValue().getError();
+ if (lroError != null) {
+ errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
+ lroError.getResponseBody());
+
+ errorMessage = response.getValue().getError().getMessage();
+ String errorBody = response.getValue().getError().getResponseBody();
+ if (errorBody != null) {
+ // try to deserialize error body to ManagementError
+ try {
+ managementError = this.getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ if (managementError.getCode() == null || managementError.getMessage() == null) {
+ managementError = null;
+ }
+ } catch (IOException | RuntimeException ioe) {
+ LOGGER.logThrowableAsWarning(ioe);
+ }
+ }
+ } else {
+ // fallback to default error message
+ errorMessage = "Long running operation failed.";
+ }
+ if (managementError == null) {
+ // fallback to default ManagementError
+ managementError = new ManagementError(response.getStatus().toString(), errorMessage);
+ }
+ return Mono.error(new ManagementException(errorMessage, errorResponse, managementError));
+ } else {
+ return response.getFinalResult();
+ }
+ }
+
+ private static final class HttpResponseImpl extends HttpResponse {
+ private final int statusCode;
+
+ private final byte[] responseBody;
+
+ private final HttpHeaders httpHeaders;
+
+ HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) {
+ super(null);
+ this.statusCode = statusCode;
+ this.httpHeaders = httpHeaders;
+ this.responseBody = responseBody == null ? null : responseBody.getBytes(StandardCharsets.UTF_8);
+ }
+
+ public int getStatusCode() {
+ return statusCode;
+ }
+
+ public String getHeaderValue(String s) {
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
+ }
+
+ public HttpHeaders getHeaders() {
+ return httpHeaders;
+ }
+
+ public Flux getBody() {
+ return Flux.just(ByteBuffer.wrap(responseBody));
+ }
+
+ public Mono getBodyAsByteArray() {
+ return Mono.just(responseBody);
+ }
+
+ public Mono getBodyAsString() {
+ return Mono.just(new String(responseBody, StandardCharsets.UTF_8));
+ }
+
+ public Mono getBodyAsString(Charset charset) {
+ return Mono.just(new String(responseBody, charset));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(ComputeBulkactionsManagementClientImpl.class);
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/CreateResourceOperationResponseImpl.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/CreateResourceOperationResponseImpl.java
new file mode 100644
index 000000000000..553fcfa96d3c
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/CreateResourceOperationResponseImpl.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.CreateResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.models.CreateResourceOperationResponse;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.util.Collections;
+import java.util.List;
+
+public final class CreateResourceOperationResponseImpl implements CreateResourceOperationResponse {
+ private CreateResourceOperationResponseInner innerObject;
+
+ private final com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager;
+
+ CreateResourceOperationResponseImpl(CreateResourceOperationResponseInner innerObject,
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String description() {
+ return this.innerModel().description();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public List results() {
+ List inner = this.innerModel().results();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public CreateResourceOperationResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/DeallocateResourceOperationResponseImpl.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/DeallocateResourceOperationResponseImpl.java
new file mode 100644
index 000000000000..58e10b2f9930
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/DeallocateResourceOperationResponseImpl.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.DeallocateResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.models.DeallocateResourceOperationResponse;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.util.Collections;
+import java.util.List;
+
+public final class DeallocateResourceOperationResponseImpl implements DeallocateResourceOperationResponse {
+ private DeallocateResourceOperationResponseInner innerObject;
+
+ private final com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager;
+
+ DeallocateResourceOperationResponseImpl(DeallocateResourceOperationResponseInner innerObject,
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String description() {
+ return this.innerModel().description();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public List results() {
+ List inner = this.innerModel().results();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public DeallocateResourceOperationResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/DeleteResourceOperationResponseImpl.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/DeleteResourceOperationResponseImpl.java
new file mode 100644
index 000000000000..076952e05c9d
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/DeleteResourceOperationResponseImpl.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.DeleteResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.models.DeleteResourceOperationResponse;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.util.Collections;
+import java.util.List;
+
+public final class DeleteResourceOperationResponseImpl implements DeleteResourceOperationResponse {
+ private DeleteResourceOperationResponseInner innerObject;
+
+ private final com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager;
+
+ DeleteResourceOperationResponseImpl(DeleteResourceOperationResponseInner innerObject,
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String description() {
+ return this.innerModel().description();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public List results() {
+ List inner = this.innerModel().results();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public DeleteResourceOperationResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/GetOperationStatusResponseImpl.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/GetOperationStatusResponseImpl.java
new file mode 100644
index 000000000000..419029234e6a
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/GetOperationStatusResponseImpl.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.GetOperationStatusResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.models.GetOperationStatusResponse;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.util.Collections;
+import java.util.List;
+
+public final class GetOperationStatusResponseImpl implements GetOperationStatusResponse {
+ private GetOperationStatusResponseInner innerObject;
+
+ private final com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager;
+
+ GetOperationStatusResponseImpl(GetOperationStatusResponseInner innerObject,
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public List results() {
+ List inner = this.innerModel().results();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public GetOperationStatusResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/HibernateResourceOperationResponseImpl.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/HibernateResourceOperationResponseImpl.java
new file mode 100644
index 000000000000..77d892b275a4
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/HibernateResourceOperationResponseImpl.java
@@ -0,0 +1,52 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.HibernateResourceOperationResponseInner;
+import com.azure.resourcemanager.compute.bulkactions.models.HibernateResourceOperationResponse;
+import com.azure.resourcemanager.compute.bulkactions.models.ResourceOperation;
+import java.util.Collections;
+import java.util.List;
+
+public final class HibernateResourceOperationResponseImpl implements HibernateResourceOperationResponse {
+ private HibernateResourceOperationResponseInner innerObject;
+
+ private final com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager;
+
+ HibernateResourceOperationResponseImpl(HibernateResourceOperationResponseInner innerObject,
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String description() {
+ return this.innerModel().description();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public List results() {
+ List inner = this.innerModel().results();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public HibernateResourceOperationResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/LaunchBulkInstancesOperationsClientImpl.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/LaunchBulkInstancesOperationsClientImpl.java
new file mode 100644
index 000000000000..120c239c6488
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/LaunchBulkInstancesOperationsClientImpl.java
@@ -0,0 +1,1583 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.core.annotation.BodyParam;
+import com.azure.core.annotation.Delete;
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
+import com.azure.core.annotation.Put;
+import com.azure.core.annotation.QueryParam;
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceInterface;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.annotation.UnexpectedResponseExceptionType;
+import com.azure.core.http.rest.PagedFlux;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.PagedResponse;
+import com.azure.core.http.rest.PagedResponseBase;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.RestProxy;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.compute.bulkactions.fluent.LaunchBulkInstancesOperationsClient;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.LocationBasedLaunchBulkInstancesOperationInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.VirtualMachineInner;
+import com.azure.resourcemanager.compute.bulkactions.implementation.models.LaunchBulkInstancesOperationListResult;
+import com.azure.resourcemanager.compute.bulkactions.implementation.models.VirtualMachineListResult;
+import java.nio.ByteBuffer;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in LaunchBulkInstancesOperationsClient.
+ */
+public final class LaunchBulkInstancesOperationsClientImpl implements LaunchBulkInstancesOperationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final LaunchBulkInstancesOperationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ComputeBulkactionsManagementClientImpl client;
+
+ /**
+ * Initializes an instance of LaunchBulkInstancesOperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ LaunchBulkInstancesOperationsClientImpl(ComputeBulkactionsManagementClientImpl client) {
+ this.service = RestProxy.create(LaunchBulkInstancesOperationsService.class, client.getHttpPipeline(),
+ client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ComputeBulkactionsManagementClientLaunchBulkInstancesOperations to be
+ * used by the proxy service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ComputeBulkactionsManagementClientLaunchBulkInstancesOperations")
+ public interface LaunchBulkInstancesOperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/asyncOperations/{asyncOperationId}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getOperationStatus(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @PathParam("asyncOperationId") String asyncOperationId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/asyncOperations/{asyncOperationId}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getOperationStatusSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @PathParam("asyncOperationId") String asyncOperationId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") LocationBasedLaunchBulkInstancesOperationInner resource, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") LocationBasedLaunchBulkInstancesOperationInner resource, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @QueryParam("deleteInstances") Boolean deleteInstances, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @QueryParam("deleteInstances") Boolean deleteInstances, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}/cancel")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> cancel(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}/cancel")
+ @ExpectedResponses({ 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response cancelSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscription(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listBySubscriptionSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}/virtualMachines")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listVirtualMachines(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @QueryParam("$filter") String filter,
+ @QueryParam("$skiptoken") String skiptoken, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/locations/{location}/launchBulkInstancesOperations/{name}/virtualMachines")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listVirtualMachinesSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("location") String location,
+ @PathParam("name") String name, @QueryParam("$filter") String filter,
+ @QueryParam("$skiptoken") String skiptoken, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listBySubscriptionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listVirtualMachinesNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listVirtualMachinesNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Gets an instance of LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of LaunchBulkInstancesOperations along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ getWithResponseAsync(String resourceGroupName, String location, String name) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Gets an instance of LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of LaunchBulkInstancesOperations on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String location,
+ String name) {
+ return getWithResponseAsync(resourceGroupName, location, name).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Gets an instance of LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of LaunchBulkInstancesOperations along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName,
+ String location, String name, Context context) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, location, name, accept, context);
+ }
+
+ /**
+ * Gets an instance of LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return an instance of LaunchBulkInstancesOperations.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LocationBasedLaunchBulkInstancesOperationInner get(String resourceGroupName, String location, String name) {
+ return getWithResponse(resourceGroupName, location, name, Context.NONE).getValue();
+ }
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a LaunchBulkInstancesOperation along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getOperationStatusWithResponseAsync(String location,
+ String asyncOperationId) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getOperationStatus(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, asyncOperationId, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a LaunchBulkInstancesOperation on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getOperationStatusAsync(String location, String asyncOperationId) {
+ return getOperationStatusWithResponseAsync(location, asyncOperationId)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a LaunchBulkInstancesOperation along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getOperationStatusWithResponse(String location, String asyncOperationId,
+ Context context) {
+ final String accept = "application/json";
+ return service.getOperationStatusSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, asyncOperationId, accept, context);
+ }
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param asyncOperationId The async operation id.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the status of a LaunchBulkInstancesOperation.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public OperationStatusResultInner getOperationStatus(String location, String asyncOperationId) {
+ return getOperationStatusWithResponse(location, asyncOperationId, Context.NONE).getValue();
+ }
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based LaunchBulkInstancesOperation resource along with {@link Response} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String location,
+ String name, LocationBasedLaunchBulkInstancesOperationInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, contentType, accept, resource,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based LaunchBulkInstancesOperation resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String location, String name,
+ LocationBasedLaunchBulkInstancesOperationInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, contentType, accept, resource,
+ Context.NONE);
+ }
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based LaunchBulkInstancesOperation resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String location, String name,
+ LocationBasedLaunchBulkInstancesOperationInner resource, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, contentType, accept, resource, context);
+ }
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private
+ PollerFlux, LocationBasedLaunchBulkInstancesOperationInner>
+ beginCreateOrUpdateAsync(String resourceGroupName, String location, String name,
+ LocationBasedLaunchBulkInstancesOperationInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, location, name, resource);
+ return this.client
+ .getLroResult(
+ mono, this.client.getHttpPipeline(), LocationBasedLaunchBulkInstancesOperationInner.class,
+ LocationBasedLaunchBulkInstancesOperationInner.class, this.client.getContext());
+ }
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public
+ SyncPoller, LocationBasedLaunchBulkInstancesOperationInner>
+ beginCreateOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedLaunchBulkInstancesOperationInner resource) {
+ Response response = createOrUpdateWithResponse(resourceGroupName, location, name, resource);
+ return this.client
+ .getLroResult(
+ response, LocationBasedLaunchBulkInstancesOperationInner.class,
+ LocationBasedLaunchBulkInstancesOperationInner.class, Context.NONE);
+ }
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public
+ SyncPoller, LocationBasedLaunchBulkInstancesOperationInner>
+ beginCreateOrUpdate(String resourceGroupName, String location, String name,
+ LocationBasedLaunchBulkInstancesOperationInner resource, Context context) {
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, location, name, resource, context);
+ return this.client
+ .getLroResult(
+ response, LocationBasedLaunchBulkInstancesOperationInner.class,
+ LocationBasedLaunchBulkInstancesOperationInner.class, context);
+ }
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based LaunchBulkInstancesOperation resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName,
+ String location, String name, LocationBasedLaunchBulkInstancesOperationInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, location, name, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LocationBasedLaunchBulkInstancesOperationInner createOrUpdate(String resourceGroupName, String location,
+ String name, LocationBasedLaunchBulkInstancesOperationInner resource) {
+ return beginCreateOrUpdate(resourceGroupName, location, name, resource).getFinalResult();
+ }
+
+ /**
+ * Creates or updates LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param resource Resource create parameters.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return location based LaunchBulkInstancesOperation resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public LocationBasedLaunchBulkInstancesOperationInner createOrUpdate(String resourceGroupName, String location,
+ String name, LocationBasedLaunchBulkInstancesOperationInner resource, Context context) {
+ return beginCreateOrUpdate(resourceGroupName, location, name, resource, context).getFinalResult();
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String location,
+ String name, Boolean deleteInstances) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, deleteInstances, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String location, String name,
+ Boolean deleteInstances) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, deleteInstances, Context.NONE);
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String location, String name,
+ Boolean deleteInstances, Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, deleteInstances, context);
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String location, String name,
+ Boolean deleteInstances) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, location, name, deleteInstances);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String location,
+ String name) {
+ final Boolean deleteInstances = null;
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, location, name, deleteInstances);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name,
+ Boolean deleteInstances) {
+ Response response = deleteWithResponse(resourceGroupName, location, name, deleteInstances);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name) {
+ final Boolean deleteInstances = null;
+ Response response = deleteWithResponse(resourceGroupName, location, name, deleteInstances);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String location, String name,
+ Boolean deleteInstances, Context context) {
+ Response response = deleteWithResponse(resourceGroupName, location, name, deleteInstances, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String location, String name, Boolean deleteInstances) {
+ return beginDeleteAsync(resourceGroupName, location, name, deleteInstances).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String location, String name) {
+ final Boolean deleteInstances = null;
+ return beginDeleteAsync(resourceGroupName, location, name, deleteInstances).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String location, String name) {
+ final Boolean deleteInstances = null;
+ beginDelete(resourceGroupName, location, name, deleteInstances).getFinalResult();
+ }
+
+ /**
+ * Deletes LaunchBulkInstancesOperations.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param deleteInstances When true, deletes all virtual machines created by this BulkAction Operation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String location, String name, Boolean deleteInstances,
+ Context context) {
+ beginDelete(resourceGroupName, location, name, deleteInstances, context).getFinalResult();
+ }
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> cancelWithResponseAsync(String resourceGroupName, String location,
+ String name) {
+ return FluxUtil
+ .withContext(context -> service.cancel(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response cancelWithResponse(String resourceGroupName, String location, String name) {
+ return service.cancelSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, Context.NONE);
+ }
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response cancelWithResponse(String resourceGroupName, String location, String name,
+ Context context) {
+ return service.cancelSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, context);
+ }
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginCancelAsync(String resourceGroupName, String location,
+ String name) {
+ Mono>> mono = cancelWithResponseAsync(resourceGroupName, location, name);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginCancel(String resourceGroupName, String location, String name) {
+ Response response = cancelWithResponse(resourceGroupName, location, name);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginCancel(String resourceGroupName, String location, String name,
+ Context context) {
+ Response response = cancelWithResponse(resourceGroupName, location, name, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono cancelAsync(String resourceGroupName, String location, String name) {
+ return beginCancelAsync(resourceGroupName, location, name).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void cancel(String resourceGroupName, String location, String name) {
+ beginCancel(resourceGroupName, location, name).getFinalResult();
+ }
+
+ /**
+ * Cancels LaunchBulkInstancesOperation instances that have not yet launched.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void cancel(String resourceGroupName, String location, String name, Context context) {
+ beginCancel(resourceGroupName, location, name, context).getFinalResult();
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByResourceGroupSinglePageAsync(String resourceGroupName, String location) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, accept, context))
+ .>map(
+ res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByResourceGroupAsync(String resourceGroupName,
+ String location) {
+ return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, location),
+ nextLink -> listByResourceGroupNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse
+ listByResourceGroupSinglePage(String resourceGroupName, String location) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse
+ listByResourceGroupSinglePage(String resourceGroupName, String location, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName,
+ String location) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, location),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink));
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by resource group.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByResourceGroup(String resourceGroupName,
+ String location, Context context) {
+ return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, location, context),
+ nextLink -> listByResourceGroupNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listBySubscriptionSinglePageAsync(String location) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listBySubscription(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, accept, context))
+ .>map(
+ res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listBySubscriptionAsync(String location) {
+ return new PagedFlux<>(() -> listBySubscriptionSinglePageAsync(location),
+ nextLink -> listBySubscriptionNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse
+ listBySubscriptionSinglePage(String location) {
+ final String accept = "application/json";
+ Response res = service.listBySubscriptionSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listBySubscriptionSinglePage(String location,
+ Context context) {
+ final String accept = "application/json";
+ Response res = service.listBySubscriptionSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listBySubscription(String location) {
+ return new PagedIterable<>(() -> listBySubscriptionSinglePage(location),
+ nextLink -> listBySubscriptionNextSinglePage(nextLink));
+ }
+
+ /**
+ * List LaunchBulkInstancesOperation resources by subscriptionId.
+ *
+ * @param location The location name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listBySubscription(String location,
+ Context context) {
+ return new PagedIterable<>(() -> listBySubscriptionSinglePage(location, context),
+ nextLink -> listBySubscriptionNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param filter Filter expression to filter the virtual machines.
+ * @param skiptoken Skip token for pagination. Uses the token from a previous response to fetch the next page of
+ * results.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listVirtualMachinesSinglePageAsync(String resourceGroupName,
+ String location, String name, String filter, String skiptoken) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listVirtualMachines(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, filter, skiptoken, accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param filter Filter expression to filter the virtual machines.
+ * @param skiptoken Skip token for pagination. Uses the token from a previous response to fetch the next page of
+ * results.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listVirtualMachinesAsync(String resourceGroupName, String location,
+ String name, String filter, String skiptoken) {
+ return new PagedFlux<>(
+ () -> listVirtualMachinesSinglePageAsync(resourceGroupName, location, name, filter, skiptoken),
+ nextLink -> listVirtualMachinesNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listVirtualMachinesAsync(String resourceGroupName, String location,
+ String name) {
+ final String filter = null;
+ final String skiptoken = null;
+ return new PagedFlux<>(
+ () -> listVirtualMachinesSinglePageAsync(resourceGroupName, location, name, filter, skiptoken),
+ nextLink -> listVirtualMachinesNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param filter Filter expression to filter the virtual machines.
+ * @param skiptoken Skip token for pagination. Uses the token from a previous response to fetch the next page of
+ * results.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listVirtualMachinesSinglePage(String resourceGroupName, String location,
+ String name, String filter, String skiptoken) {
+ final String accept = "application/json";
+ Response res = service.listVirtualMachinesSync(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, location, name, filter,
+ skiptoken, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param filter Filter expression to filter the virtual machines.
+ * @param skiptoken Skip token for pagination. Uses the token from a previous response to fetch the next page of
+ * results.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listVirtualMachinesSinglePage(String resourceGroupName, String location,
+ String name, String filter, String skiptoken, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listVirtualMachinesSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, location, name, filter, skiptoken, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listVirtualMachines(String resourceGroupName, String location,
+ String name) {
+ final String filter = null;
+ final String skiptoken = null;
+ return new PagedIterable<>(
+ () -> listVirtualMachinesSinglePage(resourceGroupName, location, name, filter, skiptoken),
+ nextLink -> listVirtualMachinesNextSinglePage(nextLink));
+ }
+
+ /**
+ * List VirtualMachine resources of a LaunchBulkInstancesOperation.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param location The location name.
+ * @param name The name of the LaunchBulkInstancesOperation.
+ * @param filter Filter expression to filter the virtual machines.
+ * @param skiptoken Skip token for pagination. Uses the token from a previous response to fetch the next page of
+ * results.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listVirtualMachines(String resourceGroupName, String location,
+ String name, String filter, String skiptoken, Context context) {
+ return new PagedIterable<>(
+ () -> listVirtualMachinesSinglePage(resourceGroupName, location, name, filter, skiptoken, context),
+ nextLink -> listVirtualMachinesNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listByResourceGroupNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse
+ listByResourceGroupNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse
+ listByResourceGroupNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse} on successful completion
+ * of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ listBySubscriptionNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(
+ res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
+ res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse
+ listBySubscriptionNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of LaunchBulkInstancesOperation resources along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse
+ listBySubscriptionNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation along with {@link PagedResponse} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listVirtualMachinesNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.listVirtualMachinesNext(nextLink, this.client.getEndpoint(), accept, context))
+ .>map(res -> new PagedResponseBase<>(res.getRequest(),
+ res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listVirtualMachinesNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listVirtualMachinesNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a virtual machine list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listVirtualMachinesNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listVirtualMachinesNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/LaunchBulkInstancesOperationsImpl.java b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/LaunchBulkInstancesOperationsImpl.java
new file mode 100644
index 000000000000..7ec58ea463c7
--- /dev/null
+++ b/sdk/compute/azure-resourcemanager-compute-bulkactions/src/main/java/com/azure/resourcemanager/compute/bulkactions/implementation/LaunchBulkInstancesOperationsImpl.java
@@ -0,0 +1,218 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.compute.bulkactions.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.compute.bulkactions.fluent.LaunchBulkInstancesOperationsClient;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.LocationBasedLaunchBulkInstancesOperationInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.compute.bulkactions.fluent.models.VirtualMachineInner;
+import com.azure.resourcemanager.compute.bulkactions.models.LaunchBulkInstancesOperations;
+import com.azure.resourcemanager.compute.bulkactions.models.LocationBasedLaunchBulkInstancesOperation;
+import com.azure.resourcemanager.compute.bulkactions.models.OperationStatusResult;
+import com.azure.resourcemanager.compute.bulkactions.models.VirtualMachine;
+
+public final class LaunchBulkInstancesOperationsImpl implements LaunchBulkInstancesOperations {
+ private static final ClientLogger LOGGER = new ClientLogger(LaunchBulkInstancesOperationsImpl.class);
+
+ private final LaunchBulkInstancesOperationsClient innerClient;
+
+ private final com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager;
+
+ public LaunchBulkInstancesOperationsImpl(LaunchBulkInstancesOperationsClient innerClient,
+ com.azure.resourcemanager.compute.bulkactions.ComputeBulkactionsManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName,
+ String location, String name, Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceGroupName, location, name, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new LocationBasedLaunchBulkInstancesOperationImpl(inner.getValue(), this.manager()));
+ }
+
+ public LocationBasedLaunchBulkInstancesOperation get(String resourceGroupName, String location, String name) {
+ LocationBasedLaunchBulkInstancesOperationInner inner
+ = this.serviceClient().get(resourceGroupName, location, name);
+ if (inner != null) {
+ return new LocationBasedLaunchBulkInstancesOperationImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response getOperationStatusWithResponse(String location, String asyncOperationId,
+ Context context) {
+ Response inner
+ = this.serviceClient().getOperationStatusWithResponse(location, asyncOperationId, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new OperationStatusResultImpl(inner.getValue(), this.manager()));
+ }
+
+ public OperationStatusResult getOperationStatus(String location, String asyncOperationId) {
+ OperationStatusResultInner inner = this.serviceClient().getOperationStatus(location, asyncOperationId);
+ if (inner != null) {
+ return new OperationStatusResultImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String location, String name) {
+ this.serviceClient().delete(resourceGroupName, location, name);
+ }
+
+ public void delete(String resourceGroupName, String location, String name, Boolean deleteInstances,
+ Context context) {
+ this.serviceClient().delete(resourceGroupName, location, name, deleteInstances, context);
+ }
+
+ public void cancel(String resourceGroupName, String location, String name) {
+ this.serviceClient().cancel(resourceGroupName, location, name);
+ }
+
+ public void cancel(String resourceGroupName, String location, String name, Context context) {
+ this.serviceClient().cancel(resourceGroupName, location, name, context);
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName,
+ String location) {
+ PagedIterable inner
+ = this.serviceClient().listByResourceGroup(resourceGroupName, location);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new LocationBasedLaunchBulkInstancesOperationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByResourceGroup(String resourceGroupName,
+ String location, Context context) {
+ PagedIterable inner
+ = this.serviceClient().listByResourceGroup(resourceGroupName, location, context);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new LocationBasedLaunchBulkInstancesOperationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listBySubscription(String location) {
+ PagedIterable inner
+ = this.serviceClient().listBySubscription(location);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new LocationBasedLaunchBulkInstancesOperationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listBySubscription(String location,
+ Context context) {
+ PagedIterable inner
+ = this.serviceClient().listBySubscription(location, context);
+ return ResourceManagerUtils.mapPage(inner,
+ inner1 -> new LocationBasedLaunchBulkInstancesOperationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listVirtualMachines(String resourceGroupName, String location, String name) {
+ PagedIterable inner
+ = this.serviceClient().listVirtualMachines(resourceGroupName, location, name);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new VirtualMachineImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listVirtualMachines(String resourceGroupName, String location, String name,
+ String filter, String skiptoken, Context context) {
+ PagedIterable inner
+ = this.serviceClient().listVirtualMachines(resourceGroupName, location, name, filter, skiptoken, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new VirtualMachineImpl(inner1, this.manager()));
+ }
+
+ public LocationBasedLaunchBulkInstancesOperation getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String location = ResourceManagerUtils.getValueFromIdByName(id, "locations");
+ if (location == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'locations'.", id)));
+ }
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "launchBulkInstancesOperations");
+ if (name == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format(
+ "The resource ID '%s' is not valid. Missing path segment 'launchBulkInstancesOperations'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, location, name, Context.NONE).getValue();
+ }
+
+ public Response