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.computebulkactions")
+ .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 BulkActions. It manages LocationBasedLaunchBulkInstancesOperation.
+ *
+ * @return Resource collection API of BulkActions.
+ */
+ public BulkActions bulkActions() {
+ if (this.bulkActions == null) {
+ this.bulkActions = new BulkActionsImpl(clientObject.getBulkActions(), this);
+ }
+ return bulkActions;
+ }
+
+ /**
+ * 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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/BulkActionsClient.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/BulkActionsClient.java
new file mode 100644
index 000000000000..71948f51f04d
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/BulkActionsClient.java
@@ -0,0 +1,574 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computebulkactions.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.computebulkactions.fluent.models.CancelOperationsResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.CreateResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.DeallocateResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.DeleteResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.GetOperationStatusResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.HibernateResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.LocationBasedLaunchBulkInstancesOperationInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.StartResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.VirtualMachineInner;
+import com.azure.resourcemanager.computebulkactions.models.CancelOperationsRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteCreateRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteDeallocateRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteDeleteRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteHibernateRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteStartRequest;
+import com.azure.resourcemanager.computebulkactions.models.GetOperationStatusRequest;
+
+/**
+ * An instance of this class provides access to all the operations defined in BulkActionsClient.
+ */
+public interface BulkActionsClient {
+ /**
+ * 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 id 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 id, Context context);
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param id 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 id);
+
+ /**
+ * 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 type.
+ */
+ @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 type.
+ */
+ @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 type.
+ */
+ @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 type.
+ */
+ @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);
+
+ /**
+ * VirtualMachinesExecuteDeallocate: 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 virtualMachinesExecuteDeallocateWithResponse(String location,
+ ExecuteDeallocateRequest requestBody, Context context);
+
+ /**
+ * VirtualMachinesExecuteDeallocate: 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 virtualMachinesExecuteDeallocate(String location,
+ ExecuteDeallocateRequest requestBody);
+
+ /**
+ * VirtualMachinesExecuteHibernate: 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 virtualMachinesExecuteHibernateWithResponse(String location,
+ ExecuteHibernateRequest requestBody, Context context);
+
+ /**
+ * VirtualMachinesExecuteHibernate: 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 virtualMachinesExecuteHibernate(String location,
+ ExecuteHibernateRequest requestBody);
+
+ /**
+ * VirtualMachinesExecuteStart: 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 virtualMachinesExecuteStartWithResponse(String location,
+ ExecuteStartRequest requestBody, Context context);
+
+ /**
+ * VirtualMachinesExecuteStart: 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 virtualMachinesExecuteStart(String location, ExecuteStartRequest requestBody);
+
+ /**
+ * VirtualMachinesExecuteCreate: 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 virtualMachinesExecuteCreateWithResponse(String location,
+ ExecuteCreateRequest requestBody, Context context);
+
+ /**
+ * VirtualMachinesExecuteCreate: 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 virtualMachinesExecuteCreate(String location,
+ ExecuteCreateRequest requestBody);
+
+ /**
+ * VirtualMachinesExecuteDelete: 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 virtualMachinesExecuteDeleteWithResponse(String location,
+ ExecuteDeleteRequest requestBody, Context context);
+
+ /**
+ * VirtualMachinesExecuteDelete: 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 virtualMachinesExecuteDelete(String location,
+ ExecuteDeleteRequest requestBody);
+
+ /**
+ * VirtualMachinesGetOperationStatus: 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 virtualMachinesGetOperationStatusWithResponse(String location,
+ GetOperationStatusRequest requestBody, Context context);
+
+ /**
+ * VirtualMachinesGetOperationStatus: 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 virtualMachinesGetOperationStatus(String location,
+ GetOperationStatusRequest requestBody);
+
+ /**
+ * VirtualMachinesCancelOperations: 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 virtualMachinesCancelOperationsWithResponse(String location,
+ CancelOperationsRequest requestBody, Context context);
+
+ /**
+ * VirtualMachinesCancelOperations: 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 virtualMachinesCancelOperations(String location, CancelOperationsRequest requestBody);
+}
diff --git a/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/ComputeBulkActionsManagementClient.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/ComputeBulkActionsManagementClient.java
new file mode 100644
index 000000000000..8783f67cda22
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/ComputeBulkActionsManagementClient.java
@@ -0,0 +1,62 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computebulkactions.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 BulkActionsClient object to access its operations.
+ *
+ * @return the BulkActionsClient object.
+ */
+ BulkActionsClient getBulkActions();
+}
diff --git a/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/OperationsClient.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/OperationsClient.java
new file mode 100644
index 000000000000..a862a4b4b023
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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.computebulkactions.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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/CancelOperationsResponseInner.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/CancelOperationsResponseInner.java
new file mode 100644
index 000000000000..6a6105fc864e
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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.computebulkactions.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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/CreateResourceOperationResponseInner.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/CreateResourceOperationResponseInner.java
new file mode 100644
index 000000000000..131c152f31f9
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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.computebulkactions.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 request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the request.
+ */
+ 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 request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the request.
+ *
+ * @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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/DeallocateResourceOperationResponseInner.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/DeallocateResourceOperationResponseInner.java
new file mode 100644
index 000000000000..0bbc4ea20486
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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.computebulkactions.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 request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the request.
+ */
+ 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 request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the request.
+ *
+ * @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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/DeleteResourceOperationResponseInner.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/DeleteResourceOperationResponseInner.java
new file mode 100644
index 000000000000..d074d9cf6fc4
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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.computebulkactions.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 request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the request.
+ */
+ 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 request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the request.
+ *
+ * @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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/GetOperationStatusResponseInner.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/GetOperationStatusResponseInner.java
new file mode 100644
index 000000000000..6d13af88838c
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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.computebulkactions.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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/HibernateResourceOperationResponseInner.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/HibernateResourceOperationResponseInner.java
new file mode 100644
index 000000000000..ce309cfaa076
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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.computebulkactions.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 request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the request.
+ */
+ 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 request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the request.
+ *
+ * @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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/LocationBasedLaunchBulkInstancesOperationInner.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/LocationBasedLaunchBulkInstancesOperationInner.java
new file mode 100644
index 000000000000..e71f9edbfed7
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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.computebulkactions.models.LaunchBulkInstancesOperationProperties;
+import com.azure.resourcemanager.computebulkactions.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.computebulkactions.models.Plan;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Location based type.
+ */
+@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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/OperationInner.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..144886359139
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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.computebulkactions.models.ActionType;
+import com.azure.resourcemanager.computebulkactions.models.OperationDisplay;
+import com.azure.resourcemanager.computebulkactions.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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/OperationStatusResultInner.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/OperationStatusResultInner.java
new file mode 100644
index 000000000000..b2d41fb025ba
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/StartResourceOperationResponseInner.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/StartResourceOperationResponseInner.java
new file mode 100644
index 000000000000..3c5b639241da
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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.computebulkactions.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 request eg virtual machines
+ */
+ private String type;
+
+ /*
+ * The location of the request eg westus
+ */
+ private String location;
+
+ /*
+ * The results from the request.
+ */
+ 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 request eg virtual machines.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the location property: The location of the request eg westus.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the results property: The results from the request.
+ *
+ * @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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/VirtualMachineInner.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/VirtualMachineInner.java
new file mode 100644
index 000000000000..8325bd9652f4
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/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.computebulkactions.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.computebulkactions.models.ApiError;
+import com.azure.resourcemanager.computebulkactions.models.VMOperationStatus;
+import java.io.IOException;
+
+/**
+ * An instant Fleet's virtual machine.
+ */
+@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;
+
+ /*
+ * This represents the operationStatus of the virtual machine in response to the last operation that was performed
+ * on it by Azure Fleet resource.
+ */
+ 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: This represents the operationStatus of the virtual machine in response to the
+ * last operation that was performed on it by Azure Fleet resource.
+ *
+ * @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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/package-info.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/package-info.java
new file mode 100644
index 000000000000..4c4d8a2c5aae
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/models/package-info.java
@@ -0,0 +1,9 @@
+// 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.
+ * Microsoft.ComputeBulkActions Resource Provider management API.
+ */
+package com.azure.resourcemanager.computebulkactions.fluent.models;
diff --git a/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/package-info.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/package-info.java
new file mode 100644
index 000000000000..4d0d1b8b4a96
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/fluent/package-info.java
@@ -0,0 +1,9 @@
+// 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.
+ * Microsoft.ComputeBulkActions Resource Provider management API.
+ */
+package com.azure.resourcemanager.computebulkactions.fluent;
diff --git a/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/implementation/BulkActionsClientImpl.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/implementation/BulkActionsClientImpl.java
new file mode 100644
index 000000000000..74df4dc9a250
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/implementation/BulkActionsClientImpl.java
@@ -0,0 +1,2269 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computebulkactions.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.computebulkactions.fluent.BulkActionsClient;
+import com.azure.resourcemanager.computebulkactions.fluent.models.CancelOperationsResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.CreateResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.DeallocateResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.DeleteResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.GetOperationStatusResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.HibernateResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.LocationBasedLaunchBulkInstancesOperationInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.StartResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.VirtualMachineInner;
+import com.azure.resourcemanager.computebulkactions.implementation.models.LaunchBulkInstancesOperationListResult;
+import com.azure.resourcemanager.computebulkactions.implementation.models.VirtualMachineListResult;
+import com.azure.resourcemanager.computebulkactions.models.CancelOperationsRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteCreateRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteDeallocateRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteDeleteRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteHibernateRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteStartRequest;
+import com.azure.resourcemanager.computebulkactions.models.GetOperationStatusRequest;
+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 BulkActionsClient.
+ */
+public final class BulkActionsClientImpl implements BulkActionsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final BulkActionsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final ComputeBulkActionsManagementClientImpl client;
+
+ /**
+ * Initializes an instance of BulkActionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ BulkActionsClientImpl(ComputeBulkActionsManagementClientImpl client) {
+ this.service
+ = RestProxy.create(BulkActionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for ComputeBulkActionsManagementClientBulkActions to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ComputeBulkActionsManagementClientBulkActions")
+ public interface BulkActionsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeBulkActions/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.ComputeBulkActions/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.ComputeBulkActions/locations/{location}/operations/{id}")
+ @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("id") String id, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/operations/{id}")
+ @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("id") String id, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ComputeBulkActions/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.ComputeBulkActions/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.ComputeBulkActions/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.ComputeBulkActions/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.ComputeBulkActions/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.ComputeBulkActions/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.ComputeBulkActions/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.ComputeBulkActions/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.ComputeBulkActions/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.ComputeBulkActions/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.ComputeBulkActions/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.ComputeBulkActions/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);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesExecuteDeallocate")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> virtualMachinesExecuteDeallocate(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecuteDeallocateRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesExecuteDeallocate")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response virtualMachinesExecuteDeallocateSync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecuteDeallocateRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesExecuteHibernate")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> virtualMachinesExecuteHibernate(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecuteHibernateRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesExecuteHibernate")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response virtualMachinesExecuteHibernateSync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecuteHibernateRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesExecuteStart")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> virtualMachinesExecuteStart(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecuteStartRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesExecuteStart")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response virtualMachinesExecuteStartSync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecuteStartRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesExecuteCreate")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> virtualMachinesExecuteCreate(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecuteCreateRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesExecuteCreate")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response virtualMachinesExecuteCreateSync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecuteCreateRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesExecuteDelete")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> virtualMachinesExecuteDelete(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecuteDeleteRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesExecuteDelete")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response virtualMachinesExecuteDeleteSync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ExecuteDeleteRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesGetOperationStatus")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> virtualMachinesGetOperationStatus(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") GetOperationStatusRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesGetOperationStatus")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response virtualMachinesGetOperationStatusSync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") GetOperationStatusRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesCancelOperations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> virtualMachinesCancelOperations(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") CancelOperationsRequest requestBody, Context context);
+
+ @Post("/subscriptions/{subscriptionId}/providers/Microsoft.ComputeBulkActions/locations/{location}/virtualMachinesCancelOperations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response virtualMachinesCancelOperationsSync(
+ @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion,
+ @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") CancelOperationsRequest requestBody, 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 id 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 id) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getOperationStatus(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, id, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param id 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 id) {
+ return getOperationStatusWithResponseAsync(location, id).flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param id 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 id,
+ Context context) {
+ final String accept = "application/json";
+ return service.getOperationStatusSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, id, accept, context);
+ }
+
+ /**
+ * Get the status of a LaunchBulkInstancesOperation.
+ *
+ * @param location The location name.
+ * @param id 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 id) {
+ return getOperationStatusWithResponse(location, id, 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 type 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 type 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 type 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 type.
+ */
+ @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 type.
+ */
+ @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 type.
+ */
+ @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 type 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 type.
+ */
+ @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 type.
+ */
+ @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));
+ }
+
+ /**
+ * VirtualMachinesExecuteDeallocate: 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 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} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ virtualMachinesExecuteDeallocateWithResponseAsync(String location, ExecuteDeallocateRequest requestBody) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.virtualMachinesExecuteDeallocate(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), location, contentType, accept,
+ requestBody, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * VirtualMachinesExecuteDeallocate: 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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono virtualMachinesExecuteDeallocateAsync(String location,
+ ExecuteDeallocateRequest requestBody) {
+ return virtualMachinesExecuteDeallocateWithResponseAsync(location, requestBody)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * VirtualMachinesExecuteDeallocate: 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 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)
+ public Response virtualMachinesExecuteDeallocateWithResponse(
+ String location, ExecuteDeallocateRequest requestBody, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.virtualMachinesExecuteDeallocateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, contentType, accept, requestBody, context);
+ }
+
+ /**
+ * VirtualMachinesExecuteDeallocate: 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 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)
+ public DeallocateResourceOperationResponseInner virtualMachinesExecuteDeallocate(String location,
+ ExecuteDeallocateRequest requestBody) {
+ return virtualMachinesExecuteDeallocateWithResponse(location, requestBody, Context.NONE).getValue();
+ }
+
+ /**
+ * VirtualMachinesExecuteHibernate: 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 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} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ virtualMachinesExecuteHibernateWithResponseAsync(String location, ExecuteHibernateRequest requestBody) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.virtualMachinesExecuteHibernate(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), location, contentType, accept,
+ requestBody, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * VirtualMachinesExecuteHibernate: 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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono virtualMachinesExecuteHibernateAsync(String location,
+ ExecuteHibernateRequest requestBody) {
+ return virtualMachinesExecuteHibernateWithResponseAsync(location, requestBody)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * VirtualMachinesExecuteHibernate: 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 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)
+ public Response virtualMachinesExecuteHibernateWithResponse(
+ String location, ExecuteHibernateRequest requestBody, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.virtualMachinesExecuteHibernateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, contentType, accept, requestBody, context);
+ }
+
+ /**
+ * VirtualMachinesExecuteHibernate: 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 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)
+ public HibernateResourceOperationResponseInner virtualMachinesExecuteHibernate(String location,
+ ExecuteHibernateRequest requestBody) {
+ return virtualMachinesExecuteHibernateWithResponse(location, requestBody, Context.NONE).getValue();
+ }
+
+ /**
+ * VirtualMachinesExecuteStart: 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 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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ virtualMachinesExecuteStartWithResponseAsync(String location, ExecuteStartRequest requestBody) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.virtualMachinesExecuteStart(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, contentType, accept, requestBody, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * VirtualMachinesExecuteStart: 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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono virtualMachinesExecuteStartAsync(String location,
+ ExecuteStartRequest requestBody) {
+ return virtualMachinesExecuteStartWithResponseAsync(location, requestBody)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * VirtualMachinesExecuteStart: 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 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)
+ public Response virtualMachinesExecuteStartWithResponse(String location,
+ ExecuteStartRequest requestBody, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.virtualMachinesExecuteStartSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, contentType, accept, requestBody, context);
+ }
+
+ /**
+ * VirtualMachinesExecuteStart: 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 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)
+ public StartResourceOperationResponseInner virtualMachinesExecuteStart(String location,
+ ExecuteStartRequest requestBody) {
+ return virtualMachinesExecuteStartWithResponse(location, requestBody, Context.NONE).getValue();
+ }
+
+ /**
+ * VirtualMachinesExecuteCreate: 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 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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ virtualMachinesExecuteCreateWithResponseAsync(String location, ExecuteCreateRequest requestBody) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.virtualMachinesExecuteCreate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, contentType, accept, requestBody, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * VirtualMachinesExecuteCreate: 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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono virtualMachinesExecuteCreateAsync(String location,
+ ExecuteCreateRequest requestBody) {
+ return virtualMachinesExecuteCreateWithResponseAsync(location, requestBody)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * VirtualMachinesExecuteCreate: 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 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)
+ public Response virtualMachinesExecuteCreateWithResponse(String location,
+ ExecuteCreateRequest requestBody, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.virtualMachinesExecuteCreateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, contentType, accept, requestBody, context);
+ }
+
+ /**
+ * VirtualMachinesExecuteCreate: 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 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)
+ public CreateResourceOperationResponseInner virtualMachinesExecuteCreate(String location,
+ ExecuteCreateRequest requestBody) {
+ return virtualMachinesExecuteCreateWithResponse(location, requestBody, Context.NONE).getValue();
+ }
+
+ /**
+ * VirtualMachinesExecuteDelete: 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 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} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ virtualMachinesExecuteDeleteWithResponseAsync(String location, ExecuteDeleteRequest requestBody) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.virtualMachinesExecuteDelete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, contentType, accept, requestBody, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * VirtualMachinesExecuteDelete: 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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono virtualMachinesExecuteDeleteAsync(String location,
+ ExecuteDeleteRequest requestBody) {
+ return virtualMachinesExecuteDeleteWithResponseAsync(location, requestBody)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * VirtualMachinesExecuteDelete: 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 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)
+ public Response virtualMachinesExecuteDeleteWithResponse(String location,
+ ExecuteDeleteRequest requestBody, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.virtualMachinesExecuteDeleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, contentType, accept, requestBody, context);
+ }
+
+ /**
+ * VirtualMachinesExecuteDelete: 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 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)
+ public DeleteResourceOperationResponseInner virtualMachinesExecuteDelete(String location,
+ ExecuteDeleteRequest requestBody) {
+ return virtualMachinesExecuteDeleteWithResponse(location, requestBody, Context.NONE).getValue();
+ }
+
+ /**
+ * VirtualMachinesGetOperationStatus: 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 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} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ virtualMachinesGetOperationStatusWithResponseAsync(String location, GetOperationStatusRequest requestBody) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.virtualMachinesGetOperationStatus(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), location, contentType, accept,
+ requestBody, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * VirtualMachinesGetOperationStatus: 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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono virtualMachinesGetOperationStatusAsync(String location,
+ GetOperationStatusRequest requestBody) {
+ return virtualMachinesGetOperationStatusWithResponseAsync(location, requestBody)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * VirtualMachinesGetOperationStatus: 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 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)
+ public Response virtualMachinesGetOperationStatusWithResponse(String location,
+ GetOperationStatusRequest requestBody, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.virtualMachinesGetOperationStatusSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, contentType, accept, requestBody, context);
+ }
+
+ /**
+ * VirtualMachinesGetOperationStatus: 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 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)
+ public GetOperationStatusResponseInner virtualMachinesGetOperationStatus(String location,
+ GetOperationStatusRequest requestBody) {
+ return virtualMachinesGetOperationStatusWithResponse(location, requestBody, Context.NONE).getValue();
+ }
+
+ /**
+ * VirtualMachinesCancelOperations: 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 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} on successful
+ * completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>
+ virtualMachinesCancelOperationsWithResponseAsync(String location, CancelOperationsRequest requestBody) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.virtualMachinesCancelOperations(this.client.getEndpoint(),
+ this.client.getApiVersion(), this.client.getSubscriptionId(), location, contentType, accept,
+ requestBody, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * VirtualMachinesCancelOperations: 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 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 on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono virtualMachinesCancelOperationsAsync(String location,
+ CancelOperationsRequest requestBody) {
+ return virtualMachinesCancelOperationsWithResponseAsync(location, requestBody)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * VirtualMachinesCancelOperations: 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 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)
+ public Response virtualMachinesCancelOperationsWithResponse(String location,
+ CancelOperationsRequest requestBody, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.virtualMachinesCancelOperationsSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), location, contentType, accept, requestBody, context);
+ }
+
+ /**
+ * VirtualMachinesCancelOperations: 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 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)
+ public CancelOperationsResponseInner virtualMachinesCancelOperations(String location,
+ CancelOperationsRequest requestBody) {
+ return virtualMachinesCancelOperationsWithResponse(location, requestBody, Context.NONE).getValue();
+ }
+
+ /**
+ * 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/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/implementation/BulkActionsImpl.java b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/implementation/BulkActionsImpl.java
new file mode 100644
index 000000000000..876bcfd8ecd8
--- /dev/null
+++ b/sdk/computebulkactions/azure-resourcemanager-computebulkactions/src/main/java/com/azure/resourcemanager/computebulkactions/implementation/BulkActionsImpl.java
@@ -0,0 +1,407 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.computebulkactions.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.computebulkactions.fluent.BulkActionsClient;
+import com.azure.resourcemanager.computebulkactions.fluent.models.CancelOperationsResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.CreateResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.DeallocateResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.DeleteResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.GetOperationStatusResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.HibernateResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.LocationBasedLaunchBulkInstancesOperationInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.OperationStatusResultInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.StartResourceOperationResponseInner;
+import com.azure.resourcemanager.computebulkactions.fluent.models.VirtualMachineInner;
+import com.azure.resourcemanager.computebulkactions.models.BulkActions;
+import com.azure.resourcemanager.computebulkactions.models.CancelOperationsRequest;
+import com.azure.resourcemanager.computebulkactions.models.CancelOperationsResponse;
+import com.azure.resourcemanager.computebulkactions.models.CreateResourceOperationResponse;
+import com.azure.resourcemanager.computebulkactions.models.DeallocateResourceOperationResponse;
+import com.azure.resourcemanager.computebulkactions.models.DeleteResourceOperationResponse;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteCreateRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteDeallocateRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteDeleteRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteHibernateRequest;
+import com.azure.resourcemanager.computebulkactions.models.ExecuteStartRequest;
+import com.azure.resourcemanager.computebulkactions.models.GetOperationStatusRequest;
+import com.azure.resourcemanager.computebulkactions.models.GetOperationStatusResponse;
+import com.azure.resourcemanager.computebulkactions.models.HibernateResourceOperationResponse;
+import com.azure.resourcemanager.computebulkactions.models.LocationBasedLaunchBulkInstancesOperation;
+import com.azure.resourcemanager.computebulkactions.models.OperationStatusResult;
+import com.azure.resourcemanager.computebulkactions.models.StartResourceOperationResponse;
+import com.azure.resourcemanager.computebulkactions.models.VirtualMachine;
+
+public final class BulkActionsImpl implements BulkActions {
+ private static final ClientLogger LOGGER = new ClientLogger(BulkActionsImpl.class);
+
+ private final BulkActionsClient innerClient;
+
+ private final com.azure.resourcemanager.computebulkactions.ComputeBulkActionsManager serviceManager;
+
+ public BulkActionsImpl(BulkActionsClient innerClient,
+ com.azure.resourcemanager.computebulkactions.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);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new LocationBasedLaunchBulkInstancesOperationImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ 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 id, Context context) {
+ Response inner
+ = this.serviceClient().getOperationStatusWithResponse(location, id, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new OperationStatusResultImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public OperationStatusResult getOperationStatus(String location, String id) {
+ OperationStatusResultInner inner = this.serviceClient().getOperationStatus(location, id);
+ 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 Response virtualMachinesExecuteDeallocateWithResponse(String location,
+ ExecuteDeallocateRequest requestBody, Context context) {
+ Response inner
+ = this.serviceClient().virtualMachinesExecuteDeallocateWithResponse(location, requestBody, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new DeallocateResourceOperationResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public DeallocateResourceOperationResponse virtualMachinesExecuteDeallocate(String location,
+ ExecuteDeallocateRequest requestBody) {
+ DeallocateResourceOperationResponseInner inner
+ = this.serviceClient().virtualMachinesExecuteDeallocate(location, requestBody);
+ if (inner != null) {
+ return new DeallocateResourceOperationResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response virtualMachinesExecuteHibernateWithResponse(String location,
+ ExecuteHibernateRequest requestBody, Context context) {
+ Response inner
+ = this.serviceClient().virtualMachinesExecuteHibernateWithResponse(location, requestBody, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new HibernateResourceOperationResponseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public HibernateResourceOperationResponse virtualMachinesExecuteHibernate(String location,
+ ExecuteHibernateRequest requestBody) {
+ HibernateResourceOperationResponseInner inner
+ = this.serviceClient().virtualMachinesExecuteHibernate(location, requestBody);
+ if (inner != null) {
+ return new HibernateResourceOperationResponseImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Response virtualMachinesExecuteStartWithResponse(String location,
+ ExecuteStartRequest requestBody, Context context) {
+ Response