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 Virtual Enclaves service API entry point.
- *
- * @param credential the credential to use.
- * @param profile the Azure profile for client.
- * @return the Virtual Enclaves service API instance.
- */
- public VirtualEnclavesManager 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.virtualenclaves")
- .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 VirtualEnclavesManager(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 Workloads. It manages WorkloadResource.
- *
- * @return Resource collection API of Workloads.
- */
- public Workloads workloads() {
- if (this.workloads == null) {
- this.workloads = new WorkloadsImpl(clientObject.getWorkloads(), this);
- }
- return workloads;
- }
-
- /**
- * Gets the resource collection API of VirtualEnclaves. It manages EnclaveResource.
- *
- * @return Resource collection API of VirtualEnclaves.
- */
- public VirtualEnclaves virtualEnclaves() {
- if (this.virtualEnclaves == null) {
- this.virtualEnclaves = new VirtualEnclavesImpl(clientObject.getVirtualEnclaves(), this);
- }
- return virtualEnclaves;
- }
-
- /**
- * Gets the resource collection API of Communities. It manages CommunityResource.
- *
- * @return Resource collection API of Communities.
- */
- public Communities communities() {
- if (this.communities == null) {
- this.communities = new CommunitiesImpl(clientObject.getCommunities(), this);
- }
- return communities;
- }
-
- /**
- * Gets the resource collection API of TransitHubs. It manages TransitHubResource.
- *
- * @return Resource collection API of TransitHubs.
- */
- public TransitHubs transitHubs() {
- if (this.transitHubs == null) {
- this.transitHubs = new TransitHubsImpl(clientObject.getTransitHubs(), this);
- }
- return transitHubs;
- }
-
- /**
- * Gets the resource collection API of EnclaveConnections. It manages EnclaveConnectionResource.
- *
- * @return Resource collection API of EnclaveConnections.
- */
- public EnclaveConnections enclaveConnections() {
- if (this.enclaveConnections == null) {
- this.enclaveConnections = new EnclaveConnectionsImpl(clientObject.getEnclaveConnections(), this);
- }
- return enclaveConnections;
- }
-
- /**
- * Gets the resource collection API of EnclaveEndpoints. It manages EnclaveEndpointResource.
- *
- * @return Resource collection API of EnclaveEndpoints.
- */
- public EnclaveEndpoints enclaveEndpoints() {
- if (this.enclaveEndpoints == null) {
- this.enclaveEndpoints = new EnclaveEndpointsImpl(clientObject.getEnclaveEndpoints(), this);
- }
- return enclaveEndpoints;
- }
-
- /**
- * Gets the resource collection API of CommunityEndpoints. It manages CommunityEndpointResource.
- *
- * @return Resource collection API of CommunityEndpoints.
- */
- public CommunityEndpoints communityEndpoints() {
- if (this.communityEndpoints == null) {
- this.communityEndpoints = new CommunityEndpointsImpl(clientObject.getCommunityEndpoints(), this);
- }
- return communityEndpoints;
- }
-
- /**
- * Gets the resource collection API of Approvals. It manages ApprovalResource.
- *
- * @return Resource collection API of Approvals.
- */
- public Approvals approvals() {
- if (this.approvals == null) {
- this.approvals = new ApprovalsImpl(clientObject.getApprovals(), this);
- }
- return approvals;
- }
-
- /**
- * Gets wrapped service client VirtualEnclavesManagementClient providing direct access to the underlying
- * auto-generated API implementation, based on Azure REST API.
- *
- * @return Wrapped service client VirtualEnclavesManagementClient.
- */
- public VirtualEnclavesManagementClient serviceClient() {
- return this.clientObject;
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/ApprovalsClient.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/ApprovalsClient.java
deleted file mode 100644
index f7c7cf0548f2..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/ApprovalsClient.java
+++ /dev/null
@@ -1,309 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.virtualenclaves.fluent.models.ApprovalActionResponseInner;
-import com.azure.resourcemanager.virtualenclaves.fluent.models.ApprovalResourceInner;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalActionRequest;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalPatchModel;
-
-/**
- * An instance of this class provides access to all the operations defined in ApprovalsClient.
- */
-public interface ApprovalsClient {
- /**
- * Get a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 ApprovalResource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceUri, String approvalName, Context context);
-
- /**
- * Get a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 ApprovalResource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalResourceInner get(String resourceUri, String approvalName);
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalResourceInner> beginCreateOrUpdate(String resourceUri,
- String approvalName, ApprovalResourceInner resource);
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalResourceInner> beginCreateOrUpdate(String resourceUri,
- String approvalName, ApprovalResourceInner resource, Context context);
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalResourceInner createOrUpdate(String resourceUri, String approvalName, ApprovalResourceInner resource);
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalResourceInner createOrUpdate(String resourceUri, String approvalName, ApprovalResourceInner resource,
- Context context);
-
- /**
- * List ApprovalResource resources by parent.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @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 ApprovalResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByParent(String resourceUri);
-
- /**
- * List ApprovalResource resources by parent.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @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 ApprovalResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByParent(String resourceUri, Context context);
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalResourceInner> beginUpdate(String resourceUri,
- String approvalName, ApprovalPatchModel properties);
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalResourceInner> beginUpdate(String resourceUri,
- String approvalName, ApprovalPatchModel properties, Context context);
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalResourceInner update(String resourceUri, String approvalName, ApprovalPatchModel properties);
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalResourceInner update(String resourceUri, String approvalName, ApprovalPatchModel properties,
- Context context);
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName);
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName, Context context);
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName);
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName, Context context);
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner>
- beginNotifyInitiator(String resourceUri, String approvalName, ApprovalActionRequest body);
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner>
- beginNotifyInitiator(String resourceUri, String approvalName, ApprovalActionRequest body, Context context);
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner notifyInitiator(String resourceUri, String approvalName, ApprovalActionRequest body);
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner notifyInitiator(String resourceUri, String approvalName, ApprovalActionRequest body,
- Context context);
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/CommunitiesClient.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/CommunitiesClient.java
deleted file mode 100644
index 22e4644b0c68..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/CommunitiesClient.java
+++ /dev/null
@@ -1,304 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.virtualenclaves.fluent.models.CheckAddressSpaceAvailabilityResponseInner;
-import com.azure.resourcemanager.virtualenclaves.fluent.models.CommunityResourceInner;
-import com.azure.resourcemanager.virtualenclaves.models.CheckAddressSpaceAvailabilityRequest;
-import com.azure.resourcemanager.virtualenclaves.models.CommunityPatchModel;
-
-/**
- * An instance of this class provides access to all the operations defined in CommunitiesClient.
- */
-public interface CommunitiesClient {
- /**
- * Get a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 CommunityResource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String communityName,
- Context context);
-
- /**
- * Get a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 CommunityResource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CommunityResourceInner getByResourceGroup(String resourceGroupName, String communityName);
-
- /**
- * Create a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 community Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CommunityResourceInner> beginCreateOrUpdate(String resourceGroupName,
- String communityName, CommunityResourceInner resource);
-
- /**
- * Create a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 community Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CommunityResourceInner> beginCreateOrUpdate(String resourceGroupName,
- String communityName, CommunityResourceInner resource, Context context);
-
- /**
- * Create a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 community Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CommunityResourceInner createOrUpdate(String resourceGroupName, String communityName,
- CommunityResourceInner resource);
-
- /**
- * Create a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 community Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CommunityResourceInner createOrUpdate(String resourceGroupName, String communityName,
- CommunityResourceInner resource, Context context);
-
- /**
- * Update a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param properties The resource properties to be updated.
- * @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 community Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CommunityResourceInner> beginUpdate(String resourceGroupName,
- String communityName, CommunityPatchModel properties);
-
- /**
- * Update a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param properties The resource properties to be updated.
- * @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 community Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CommunityResourceInner> beginUpdate(String resourceGroupName,
- String communityName, CommunityPatchModel properties, Context context);
-
- /**
- * Update a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param properties The resource properties to be updated.
- * @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 community Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CommunityResourceInner update(String resourceGroupName, String communityName, CommunityPatchModel properties);
-
- /**
- * Update a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param properties The resource properties to be updated.
- * @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 community Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CommunityResourceInner update(String resourceGroupName, String communityName, CommunityPatchModel properties,
- Context context);
-
- /**
- * Delete a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 communityName);
-
- /**
- * Delete a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 communityName, Context context);
-
- /**
- * Delete a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 communityName);
-
- /**
- * Delete a CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 communityName, Context context);
-
- /**
- * List CommunityResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 CommunityResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List CommunityResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 CommunityResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * List CommunityResource resources by subscription ID.
- *
- * @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 CommunityResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List CommunityResource resources by subscription 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 response of a CommunityResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Checks that the IP Address Space to be allocated for this Community is available.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param checkAddressSpaceAvailabilityRequest Check IP Address Space 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 response of availability of the requested address space along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response checkAddressSpaceAvailabilityWithResponse(
- String resourceGroupName, String communityName,
- CheckAddressSpaceAvailabilityRequest checkAddressSpaceAvailabilityRequest, Context context);
-
- /**
- * Checks that the IP Address Space to be allocated for this Community is available.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param checkAddressSpaceAvailabilityRequest Check IP Address Space 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 response of availability of the requested address space.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CheckAddressSpaceAvailabilityResponseInner checkAddressSpaceAvailability(String resourceGroupName,
- String communityName, CheckAddressSpaceAvailabilityRequest checkAddressSpaceAvailabilityRequest);
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/CommunityEndpointsClient.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/CommunityEndpointsClient.java
deleted file mode 100644
index e2dd784065b3..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/CommunityEndpointsClient.java
+++ /dev/null
@@ -1,440 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.virtualenclaves.fluent.models.ApprovalActionResponseInner;
-import com.azure.resourcemanager.virtualenclaves.fluent.models.CommunityEndpointResourceInner;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalCallbackRequest;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalDeletionCallbackRequest;
-import com.azure.resourcemanager.virtualenclaves.models.CommunityEndpointPatchModel;
-
-/**
- * An instance of this class provides access to all the operations defined in CommunityEndpointsClient.
- */
-public interface CommunityEndpointsClient {
- /**
- * Get a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @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 CommunityEndpointResource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String communityName,
- String communityEndpointName, Context context);
-
- /**
- * Get a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @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 CommunityEndpointResource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CommunityEndpointResourceInner get(String resourceGroupName, String communityName, String communityEndpointName);
-
- /**
- * Create a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @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 communityEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CommunityEndpointResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String communityName, String communityEndpointName,
- CommunityEndpointResourceInner resource);
-
- /**
- * Create a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @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 communityEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CommunityEndpointResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String communityName, String communityEndpointName,
- CommunityEndpointResourceInner resource, Context context);
-
- /**
- * Create a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @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 communityEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CommunityEndpointResourceInner createOrUpdate(String resourceGroupName, String communityName,
- String communityEndpointName, CommunityEndpointResourceInner resource);
-
- /**
- * Create a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @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 communityEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CommunityEndpointResourceInner createOrUpdate(String resourceGroupName, String communityName,
- String communityEndpointName, CommunityEndpointResourceInner resource, Context context);
-
- /**
- * Update a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param properties The resource properties to be updated.
- * @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 communityEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CommunityEndpointResourceInner> beginUpdate(
- String resourceGroupName, String communityName, String communityEndpointName,
- CommunityEndpointPatchModel properties);
-
- /**
- * Update a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param properties The resource properties to be updated.
- * @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 communityEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, CommunityEndpointResourceInner> beginUpdate(
- String resourceGroupName, String communityName, String communityEndpointName,
- CommunityEndpointPatchModel properties, Context context);
-
- /**
- * Update a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param properties The resource properties to be updated.
- * @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 communityEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CommunityEndpointResourceInner update(String resourceGroupName, String communityName, String communityEndpointName,
- CommunityEndpointPatchModel properties);
-
- /**
- * Update a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param properties The resource properties to be updated.
- * @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 communityEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- CommunityEndpointResourceInner update(String resourceGroupName, String communityName, String communityEndpointName,
- CommunityEndpointPatchModel properties, Context context);
-
- /**
- * Delete a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @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 communityName,
- String communityEndpointName);
-
- /**
- * Delete a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @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 communityName,
- String communityEndpointName, Context context);
-
- /**
- * Delete a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @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 communityName, String communityEndpointName);
-
- /**
- * Delete a CommunityEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @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 communityName, String communityEndpointName, Context context);
-
- /**
- * List CommunityEndpointResource resources by CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 CommunityEndpointResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCommunityResource(String resourceGroupName,
- String communityName);
-
- /**
- * List CommunityEndpointResource resources by CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 CommunityEndpointResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCommunityResource(String resourceGroupName,
- String communityName, Context context);
-
- /**
- * List CommunityEndpointResource resources by subscription ID.
- *
- * @param communityName The name of the communityResource Resource.
- * @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 CommunityEndpointResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription(String communityName);
-
- /**
- * List CommunityEndpointResource resources by subscription ID.
- *
- * @param communityName The name of the communityResource Resource.
- * @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 CommunityEndpointResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription(String communityName, Context context);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalCreation(
- String resourceGroupName, String communityName, String communityEndpointName, ApprovalCallbackRequest body);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalCreation(
- String resourceGroupName, String communityName, String communityEndpointName, ApprovalCallbackRequest body,
- Context context);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalCreation(String resourceGroupName, String communityName,
- String communityEndpointName, ApprovalCallbackRequest body);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalCreation(String resourceGroupName, String communityName,
- String communityEndpointName, ApprovalCallbackRequest body, Context context);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalDeletion(
- String resourceGroupName, String communityName, String communityEndpointName,
- ApprovalDeletionCallbackRequest body);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalDeletion(
- String resourceGroupName, String communityName, String communityEndpointName,
- ApprovalDeletionCallbackRequest body, Context context);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalDeletion(String resourceGroupName, String communityName,
- String communityEndpointName, ApprovalDeletionCallbackRequest body);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param communityEndpointName The name of the Community Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalDeletion(String resourceGroupName, String communityName,
- String communityEndpointName, ApprovalDeletionCallbackRequest body, Context context);
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/EnclaveConnectionsClient.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/EnclaveConnectionsClient.java
deleted file mode 100644
index 519de93396dc..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/EnclaveConnectionsClient.java
+++ /dev/null
@@ -1,405 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.virtualenclaves.fluent.models.ApprovalActionResponseInner;
-import com.azure.resourcemanager.virtualenclaves.fluent.models.EnclaveConnectionResourceInner;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalCallbackRequest;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalDeletionCallbackRequest;
-import com.azure.resourcemanager.virtualenclaves.models.EnclaveConnectionPatchModel;
-
-/**
- * An instance of this class provides access to all the operations defined in EnclaveConnectionsClient.
- */
-public interface EnclaveConnectionsClient {
- /**
- * Get a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @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 EnclaveConnectionResource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName,
- String enclaveConnectionName, Context context);
-
- /**
- * Get a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @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 EnclaveConnectionResource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveConnectionResourceInner getByResourceGroup(String resourceGroupName, String enclaveConnectionName);
-
- /**
- * Create a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @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 enclaveConnection Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveConnectionResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String enclaveConnectionName, EnclaveConnectionResourceInner resource);
-
- /**
- * Create a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @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 enclaveConnection Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveConnectionResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String enclaveConnectionName, EnclaveConnectionResourceInner resource,
- Context context);
-
- /**
- * Create a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @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 enclaveConnection Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveConnectionResourceInner createOrUpdate(String resourceGroupName, String enclaveConnectionName,
- EnclaveConnectionResourceInner resource);
-
- /**
- * Create a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @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 enclaveConnection Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveConnectionResourceInner createOrUpdate(String resourceGroupName, String enclaveConnectionName,
- EnclaveConnectionResourceInner resource, Context context);
-
- /**
- * Update a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param properties The resource properties to be updated.
- * @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 enclaveConnection Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveConnectionResourceInner>
- beginUpdate(String resourceGroupName, String enclaveConnectionName, EnclaveConnectionPatchModel properties);
-
- /**
- * Update a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param properties The resource properties to be updated.
- * @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 enclaveConnection Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveConnectionResourceInner> beginUpdate(
- String resourceGroupName, String enclaveConnectionName, EnclaveConnectionPatchModel properties,
- Context context);
-
- /**
- * Update a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param properties The resource properties to be updated.
- * @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 enclaveConnection Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveConnectionResourceInner update(String resourceGroupName, String enclaveConnectionName,
- EnclaveConnectionPatchModel properties);
-
- /**
- * Update a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param properties The resource properties to be updated.
- * @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 enclaveConnection Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveConnectionResourceInner update(String resourceGroupName, String enclaveConnectionName,
- EnclaveConnectionPatchModel properties, Context context);
-
- /**
- * Delete a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @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 enclaveConnectionName);
-
- /**
- * Delete a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @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 enclaveConnectionName,
- Context context);
-
- /**
- * Delete a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @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 enclaveConnectionName);
-
- /**
- * Delete a EnclaveConnectionResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @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 enclaveConnectionName, Context context);
-
- /**
- * List EnclaveConnectionResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 EnclaveConnectionResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List EnclaveConnectionResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 EnclaveConnectionResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * List EnclaveConnectionResource resources by subscription ID.
- *
- * @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 EnclaveConnectionResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List EnclaveConnectionResource resources by subscription 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 response of a EnclaveConnectionResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalCreation(
- String resourceGroupName, String enclaveConnectionName, ApprovalCallbackRequest body);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalCreation(
- String resourceGroupName, String enclaveConnectionName, ApprovalCallbackRequest body, Context context);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalCreation(String resourceGroupName, String enclaveConnectionName,
- ApprovalCallbackRequest body);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalCreation(String resourceGroupName, String enclaveConnectionName,
- ApprovalCallbackRequest body, Context context);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalDeletion(
- String resourceGroupName, String enclaveConnectionName, ApprovalDeletionCallbackRequest body);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalDeletion(
- String resourceGroupName, String enclaveConnectionName, ApprovalDeletionCallbackRequest body, Context context);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalDeletion(String resourceGroupName, String enclaveConnectionName,
- ApprovalDeletionCallbackRequest body);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param enclaveConnectionName The name of the Enclave Connection Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalDeletion(String resourceGroupName, String enclaveConnectionName,
- ApprovalDeletionCallbackRequest body, Context context);
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/EnclaveEndpointsClient.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/EnclaveEndpointsClient.java
deleted file mode 100644
index 21c6230adf2d..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/EnclaveEndpointsClient.java
+++ /dev/null
@@ -1,440 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.virtualenclaves.fluent.models.ApprovalActionResponseInner;
-import com.azure.resourcemanager.virtualenclaves.fluent.models.EnclaveEndpointResourceInner;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalCallbackRequest;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalDeletionCallbackRequest;
-import com.azure.resourcemanager.virtualenclaves.models.EnclaveEndpointPatchModel;
-
-/**
- * An instance of this class provides access to all the operations defined in EnclaveEndpointsClient.
- */
-public interface EnclaveEndpointsClient {
- /**
- * Get a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @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 EnclaveEndpointResource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String virtualEnclaveName,
- String enclaveEndpointName, Context context);
-
- /**
- * Get a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @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 EnclaveEndpointResource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveEndpointResourceInner get(String resourceGroupName, String virtualEnclaveName, String enclaveEndpointName);
-
- /**
- * Create a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @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 enclaveEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveEndpointResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String virtualEnclaveName, String enclaveEndpointName,
- EnclaveEndpointResourceInner resource);
-
- /**
- * Create a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @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 enclaveEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveEndpointResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String virtualEnclaveName, String enclaveEndpointName,
- EnclaveEndpointResourceInner resource, Context context);
-
- /**
- * Create a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @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 enclaveEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveEndpointResourceInner createOrUpdate(String resourceGroupName, String virtualEnclaveName,
- String enclaveEndpointName, EnclaveEndpointResourceInner resource);
-
- /**
- * Create a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @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 enclaveEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveEndpointResourceInner createOrUpdate(String resourceGroupName, String virtualEnclaveName,
- String enclaveEndpointName, EnclaveEndpointResourceInner resource, Context context);
-
- /**
- * Update a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param properties The resource properties to be updated.
- * @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 enclaveEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveEndpointResourceInner> beginUpdate(
- String resourceGroupName, String virtualEnclaveName, String enclaveEndpointName,
- EnclaveEndpointPatchModel properties);
-
- /**
- * Update a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param properties The resource properties to be updated.
- * @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 enclaveEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveEndpointResourceInner> beginUpdate(
- String resourceGroupName, String virtualEnclaveName, String enclaveEndpointName,
- EnclaveEndpointPatchModel properties, Context context);
-
- /**
- * Update a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param properties The resource properties to be updated.
- * @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 enclaveEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveEndpointResourceInner update(String resourceGroupName, String virtualEnclaveName, String enclaveEndpointName,
- EnclaveEndpointPatchModel properties);
-
- /**
- * Update a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param properties The resource properties to be updated.
- * @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 enclaveEndpoint Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveEndpointResourceInner update(String resourceGroupName, String virtualEnclaveName, String enclaveEndpointName,
- EnclaveEndpointPatchModel properties, Context context);
-
- /**
- * Delete a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @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 virtualEnclaveName,
- String enclaveEndpointName);
-
- /**
- * Delete a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @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 virtualEnclaveName,
- String enclaveEndpointName, Context context);
-
- /**
- * Delete a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @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 virtualEnclaveName, String enclaveEndpointName);
-
- /**
- * Delete a EnclaveEndpointResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @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 virtualEnclaveName, String enclaveEndpointName, Context context);
-
- /**
- * List EnclaveEndpointResource resources by EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 EnclaveEndpointResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByEnclaveResource(String resourceGroupName,
- String virtualEnclaveName);
-
- /**
- * List EnclaveEndpointResource resources by EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 EnclaveEndpointResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByEnclaveResource(String resourceGroupName,
- String virtualEnclaveName, Context context);
-
- /**
- * List EnclaveEndpointResource resources by subscription ID.
- *
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 EnclaveEndpointResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription(String virtualEnclaveName);
-
- /**
- * List EnclaveEndpointResource resources by subscription ID.
- *
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 EnclaveEndpointResource list operation as paginated response with
- * {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription(String virtualEnclaveName, Context context);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalCreation(
- String resourceGroupName, String virtualEnclaveName, String enclaveEndpointName, ApprovalCallbackRequest body);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalCreation(
- String resourceGroupName, String virtualEnclaveName, String enclaveEndpointName, ApprovalCallbackRequest body,
- Context context);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalCreation(String resourceGroupName, String virtualEnclaveName,
- String enclaveEndpointName, ApprovalCallbackRequest body);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalCreation(String resourceGroupName, String virtualEnclaveName,
- String enclaveEndpointName, ApprovalCallbackRequest body, Context context);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalDeletion(
- String resourceGroupName, String virtualEnclaveName, String enclaveEndpointName,
- ApprovalDeletionCallbackRequest body);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalDeletion(
- String resourceGroupName, String virtualEnclaveName, String enclaveEndpointName,
- ApprovalDeletionCallbackRequest body, Context context);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalDeletion(String resourceGroupName, String virtualEnclaveName,
- String enclaveEndpointName, ApprovalDeletionCallbackRequest body);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param enclaveEndpointName The name of the Enclave Endpoint Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalDeletion(String resourceGroupName, String virtualEnclaveName,
- String enclaveEndpointName, ApprovalDeletionCallbackRequest body, Context context);
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/OperationsClient.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/OperationsClient.java
deleted file mode 100644
index b499869abb11..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/OperationsClient.java
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.virtualenclaves.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/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/TransitHubsClient.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/TransitHubsClient.java
deleted file mode 100644
index ba33c1aa6ddb..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/TransitHubsClient.java
+++ /dev/null
@@ -1,294 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.virtualenclaves.fluent.models.TransitHubResourceInner;
-import com.azure.resourcemanager.virtualenclaves.models.TransitHubPatchModel;
-
-/**
- * An instance of this class provides access to all the operations defined in TransitHubsClient.
- */
-public interface TransitHubsClient {
- /**
- * Get a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @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 TransitHubResource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String communityName,
- String transitHubName, Context context);
-
- /**
- * Get a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @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 TransitHubResource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- TransitHubResourceInner get(String resourceGroupName, String communityName, String transitHubName);
-
- /**
- * Create a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @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 transitHub Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, TransitHubResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String communityName, String transitHubName, TransitHubResourceInner resource);
-
- /**
- * Create a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @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 transitHub Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, TransitHubResourceInner> beginCreateOrUpdate(
- String resourceGroupName, String communityName, String transitHubName, TransitHubResourceInner resource,
- Context context);
-
- /**
- * Create a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @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 transitHub Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- TransitHubResourceInner createOrUpdate(String resourceGroupName, String communityName, String transitHubName,
- TransitHubResourceInner resource);
-
- /**
- * Create a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @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 transitHub Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- TransitHubResourceInner createOrUpdate(String resourceGroupName, String communityName, String transitHubName,
- TransitHubResourceInner resource, Context context);
-
- /**
- * Update a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @param properties The resource properties to be updated.
- * @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 transitHub Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, TransitHubResourceInner> beginUpdate(String resourceGroupName,
- String communityName, String transitHubName, TransitHubPatchModel properties);
-
- /**
- * Update a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @param properties The resource properties to be updated.
- * @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 transitHub Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, TransitHubResourceInner> beginUpdate(String resourceGroupName,
- String communityName, String transitHubName, TransitHubPatchModel properties, Context context);
-
- /**
- * Update a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @param properties The resource properties to be updated.
- * @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 transitHub Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- TransitHubResourceInner update(String resourceGroupName, String communityName, String transitHubName,
- TransitHubPatchModel properties);
-
- /**
- * Update a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @param properties The resource properties to be updated.
- * @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 transitHub Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- TransitHubResourceInner update(String resourceGroupName, String communityName, String transitHubName,
- TransitHubPatchModel properties, Context context);
-
- /**
- * Delete a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @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 communityName,
- String transitHubName);
-
- /**
- * Delete a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @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 communityName,
- String transitHubName, Context context);
-
- /**
- * Delete a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @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 communityName, String transitHubName);
-
- /**
- * Delete a TransitHubResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @param transitHubName The name of the TransitHub Resource.
- * @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 communityName, String transitHubName, Context context);
-
- /**
- * List TransitHubResource resources by CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 TransitHubResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCommunityResource(String resourceGroupName, String communityName);
-
- /**
- * List TransitHubResource resources by CommunityResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param communityName The name of the communityResource Resource.
- * @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 TransitHubResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByCommunityResource(String resourceGroupName, String communityName,
- Context context);
-
- /**
- * List TransitHubResource resources by subscription ID.
- *
- * @param communityName The name of the communityResource Resource.
- * @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 TransitHubResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription(String communityName);
-
- /**
- * List TransitHubResource resources by subscription ID.
- *
- * @param communityName The name of the communityResource Resource.
- * @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 TransitHubResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription(String communityName, Context context);
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/VirtualEnclavesClient.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/VirtualEnclavesClient.java
deleted file mode 100644
index 26cd11cdb458..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/VirtualEnclavesClient.java
+++ /dev/null
@@ -1,399 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.virtualenclaves.fluent.models.ApprovalActionResponseInner;
-import com.azure.resourcemanager.virtualenclaves.fluent.models.EnclaveResourceInner;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalCallbackRequest;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalDeletionCallbackRequest;
-import com.azure.resourcemanager.virtualenclaves.models.VirtualEnclavePatchModel;
-
-/**
- * An instance of this class provides access to all the operations defined in VirtualEnclavesClient.
- */
-public interface VirtualEnclavesClient {
- /**
- * Get a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 EnclaveResource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String virtualEnclaveName,
- Context context);
-
- /**
- * Get a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 EnclaveResource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveResourceInner getByResourceGroup(String resourceGroupName, String virtualEnclaveName);
-
- /**
- * Create a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 virtual Enclave Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveResourceInner> beginCreateOrUpdate(String resourceGroupName,
- String virtualEnclaveName, EnclaveResourceInner resource);
-
- /**
- * Create a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 virtual Enclave Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveResourceInner> beginCreateOrUpdate(String resourceGroupName,
- String virtualEnclaveName, EnclaveResourceInner resource, Context context);
-
- /**
- * Create a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 virtual Enclave Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveResourceInner createOrUpdate(String resourceGroupName, String virtualEnclaveName,
- EnclaveResourceInner resource);
-
- /**
- * Create a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 virtual Enclave Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveResourceInner createOrUpdate(String resourceGroupName, String virtualEnclaveName,
- EnclaveResourceInner resource, Context context);
-
- /**
- * Update a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param properties The resource properties to be updated.
- * @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 virtual Enclave Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveResourceInner> beginUpdate(String resourceGroupName,
- String virtualEnclaveName, VirtualEnclavePatchModel properties);
-
- /**
- * Update a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param properties The resource properties to be updated.
- * @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 virtual Enclave Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, EnclaveResourceInner> beginUpdate(String resourceGroupName,
- String virtualEnclaveName, VirtualEnclavePatchModel properties, Context context);
-
- /**
- * Update a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param properties The resource properties to be updated.
- * @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 virtual Enclave Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveResourceInner update(String resourceGroupName, String virtualEnclaveName,
- VirtualEnclavePatchModel properties);
-
- /**
- * Update a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param properties The resource properties to be updated.
- * @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 virtual Enclave Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- EnclaveResourceInner update(String resourceGroupName, String virtualEnclaveName,
- VirtualEnclavePatchModel properties, Context context);
-
- /**
- * Delete a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 virtualEnclaveName);
-
- /**
- * Delete a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 virtualEnclaveName,
- Context context);
-
- /**
- * Delete a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 virtualEnclaveName);
-
- /**
- * Delete a EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 virtualEnclaveName, Context context);
-
- /**
- * List EnclaveResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 EnclaveResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
-
- /**
- * List EnclaveResource resources by resource group.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @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 EnclaveResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, Context context);
-
- /**
- * List EnclaveResource resources by subscription ID.
- *
- * @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 EnclaveResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
-
- /**
- * List EnclaveResource resources by subscription 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 response of a EnclaveResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(Context context);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner>
- beginHandleApprovalCreation(String resourceGroupName, String virtualEnclaveName, ApprovalCallbackRequest body);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalCreation(
- String resourceGroupName, String virtualEnclaveName, ApprovalCallbackRequest body, Context context);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalCreation(String resourceGroupName, String virtualEnclaveName,
- ApprovalCallbackRequest body);
-
- /**
- * Callback that triggers on approval state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalCreation(String resourceGroupName, String virtualEnclaveName,
- ApprovalCallbackRequest body, Context context);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalDeletion(
- String resourceGroupName, String virtualEnclaveName, ApprovalDeletionCallbackRequest body);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ApprovalActionResponseInner> beginHandleApprovalDeletion(
- String resourceGroupName, String virtualEnclaveName, ApprovalDeletionCallbackRequest body, Context context);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalDeletion(String resourceGroupName, String virtualEnclaveName,
- ApprovalDeletionCallbackRequest body);
-
- /**
- * Callback that triggers on approval deletion state change.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- ApprovalActionResponseInner handleApprovalDeletion(String resourceGroupName, String virtualEnclaveName,
- ApprovalDeletionCallbackRequest body, Context context);
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/VirtualEnclavesManagementClient.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/VirtualEnclavesManagementClient.java
deleted file mode 100644
index c30b4cb4ce98..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/VirtualEnclavesManagementClient.java
+++ /dev/null
@@ -1,111 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.fluent;
-
-import com.azure.core.http.HttpPipeline;
-import java.time.Duration;
-
-/**
- * The interface for VirtualEnclavesManagementClient class.
- */
-public interface VirtualEnclavesManagementClient {
- /**
- * 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 WorkloadsClient object to access its operations.
- *
- * @return the WorkloadsClient object.
- */
- WorkloadsClient getWorkloads();
-
- /**
- * Gets the VirtualEnclavesClient object to access its operations.
- *
- * @return the VirtualEnclavesClient object.
- */
- VirtualEnclavesClient getVirtualEnclaves();
-
- /**
- * Gets the CommunitiesClient object to access its operations.
- *
- * @return the CommunitiesClient object.
- */
- CommunitiesClient getCommunities();
-
- /**
- * Gets the TransitHubsClient object to access its operations.
- *
- * @return the TransitHubsClient object.
- */
- TransitHubsClient getTransitHubs();
-
- /**
- * Gets the EnclaveConnectionsClient object to access its operations.
- *
- * @return the EnclaveConnectionsClient object.
- */
- EnclaveConnectionsClient getEnclaveConnections();
-
- /**
- * Gets the EnclaveEndpointsClient object to access its operations.
- *
- * @return the EnclaveEndpointsClient object.
- */
- EnclaveEndpointsClient getEnclaveEndpoints();
-
- /**
- * Gets the CommunityEndpointsClient object to access its operations.
- *
- * @return the CommunityEndpointsClient object.
- */
- CommunityEndpointsClient getCommunityEndpoints();
-
- /**
- * Gets the ApprovalsClient object to access its operations.
- *
- * @return the ApprovalsClient object.
- */
- ApprovalsClient getApprovals();
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/WorkloadsClient.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/WorkloadsClient.java
deleted file mode 100644
index fb9097be03c3..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/WorkloadsClient.java
+++ /dev/null
@@ -1,293 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.virtualenclaves.fluent.models.WorkloadResourceInner;
-import com.azure.resourcemanager.virtualenclaves.models.WorkloadPatchModel;
-
-/**
- * An instance of this class provides access to all the operations defined in WorkloadsClient.
- */
-public interface WorkloadsClient {
- /**
- * Get a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @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 WorkloadResource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String virtualEnclaveName,
- String workloadName, Context context);
-
- /**
- * Get a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @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 WorkloadResource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadResourceInner get(String resourceGroupName, String virtualEnclaveName, String workloadName);
-
- /**
- * Create a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @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 workload Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadResourceInner> beginCreateOrUpdate(String resourceGroupName,
- String virtualEnclaveName, String workloadName, WorkloadResourceInner resource);
-
- /**
- * Create a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @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 workload Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadResourceInner> beginCreateOrUpdate(String resourceGroupName,
- String virtualEnclaveName, String workloadName, WorkloadResourceInner resource, Context context);
-
- /**
- * Create a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @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 workload Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadResourceInner createOrUpdate(String resourceGroupName, String virtualEnclaveName, String workloadName,
- WorkloadResourceInner resource);
-
- /**
- * Create a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @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 workload Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadResourceInner createOrUpdate(String resourceGroupName, String virtualEnclaveName, String workloadName,
- WorkloadResourceInner resource, Context context);
-
- /**
- * Update a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @param properties The resource properties to be updated.
- * @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 workload Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadResourceInner> beginUpdate(String resourceGroupName,
- String virtualEnclaveName, String workloadName, WorkloadPatchModel properties);
-
- /**
- * Update a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @param properties The resource properties to be updated.
- * @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 workload Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkloadResourceInner> beginUpdate(String resourceGroupName,
- String virtualEnclaveName, String workloadName, WorkloadPatchModel properties, Context context);
-
- /**
- * Update a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @param properties The resource properties to be updated.
- * @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 workload Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadResourceInner update(String resourceGroupName, String virtualEnclaveName, String workloadName,
- WorkloadPatchModel properties);
-
- /**
- * Update a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @param properties The resource properties to be updated.
- * @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 workload Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkloadResourceInner update(String resourceGroupName, String virtualEnclaveName, String workloadName,
- WorkloadPatchModel properties, Context context);
-
- /**
- * Delete a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @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 virtualEnclaveName,
- String workloadName);
-
- /**
- * Delete a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @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 virtualEnclaveName,
- String workloadName, Context context);
-
- /**
- * Delete a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @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 virtualEnclaveName, String workloadName);
-
- /**
- * Delete a WorkloadResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @param workloadName The name of the workloadResource Resource.
- * @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 virtualEnclaveName, String workloadName, Context context);
-
- /**
- * List WorkloadResource resources by EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 WorkloadResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByEnclaveResource(String resourceGroupName, String virtualEnclaveName);
-
- /**
- * List WorkloadResource resources by EnclaveResource.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 WorkloadResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByEnclaveResource(String resourceGroupName, String virtualEnclaveName,
- Context context);
-
- /**
- * List WorkloadResource resources by subscription ID.
- *
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 WorkloadResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription(String virtualEnclaveName);
-
- /**
- * List WorkloadResource resources by subscription ID.
- *
- * @param virtualEnclaveName The name of the enclaveResource Resource.
- * @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 WorkloadResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listBySubscription(String virtualEnclaveName, Context context);
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/ApprovalActionResponseInner.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/ApprovalActionResponseInner.java
deleted file mode 100644
index 1ed54abc165b..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/ApprovalActionResponseInner.java
+++ /dev/null
@@ -1,75 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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 java.io.IOException;
-
-/**
- * Response body after handling of approvalCallbackRequest.
- */
-@Immutable
-public final class ApprovalActionResponseInner implements JsonSerializable {
- /*
- * Confirmation message indicating the result of the operation.
- */
- private String message;
-
- /**
- * Creates an instance of ApprovalActionResponseInner class.
- */
- private ApprovalActionResponseInner() {
- }
-
- /**
- * Get the message property: Confirmation message indicating the result of the operation.
- *
- * @return the message value.
- */
- public String message() {
- return this.message;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("message", this.message);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ApprovalActionResponseInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ApprovalActionResponseInner 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 ApprovalActionResponseInner.
- */
- public static ApprovalActionResponseInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ApprovalActionResponseInner deserializedApprovalActionResponseInner = new ApprovalActionResponseInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("message".equals(fieldName)) {
- deserializedApprovalActionResponseInner.message = reader.getString();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedApprovalActionResponseInner;
- });
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/ApprovalResourceInner.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/ApprovalResourceInner.java
deleted file mode 100644
index b00b53d85188..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/ApprovalResourceInner.java
+++ /dev/null
@@ -1,155 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.virtualenclaves.models.ApprovalProperties;
-import java.io.IOException;
-
-/**
- * Approval Model Resource.
- */
-@Fluent
-public final class ApprovalResourceInner extends ProxyResource {
- /*
- * The resource-specific properties for this resource.
- */
- private ApprovalProperties properties;
-
- /*
- * 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 ApprovalResourceInner class.
- */
- public ApprovalResourceInner() {
- }
-
- /**
- * Get the properties property: The resource-specific properties for this resource.
- *
- * @return the properties value.
- */
- public ApprovalProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: The resource-specific properties for this resource.
- *
- * @param properties the properties value to set.
- * @return the ApprovalResourceInner object itself.
- */
- public ApprovalResourceInner withProperties(ApprovalProperties properties) {
- this.properties = properties;
- 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);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of ApprovalResourceInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of ApprovalResourceInner 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 ApprovalResourceInner.
- */
- public static ApprovalResourceInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- ApprovalResourceInner deserializedApprovalResourceInner = new ApprovalResourceInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedApprovalResourceInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedApprovalResourceInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedApprovalResourceInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedApprovalResourceInner.properties = ApprovalProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedApprovalResourceInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedApprovalResourceInner;
- });
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/CheckAddressSpaceAvailabilityResponseInner.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/CheckAddressSpaceAvailabilityResponseInner.java
deleted file mode 100644
index 9df2eb9e4165..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/CheckAddressSpaceAvailabilityResponseInner.java
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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 java.io.IOException;
-
-/**
- * Response of availability of the requested address space.
- */
-@Immutable
-public final class CheckAddressSpaceAvailabilityResponseInner
- implements JsonSerializable {
- /*
- * Boolean representing whether the address space is available.
- */
- private boolean value;
-
- /**
- * Creates an instance of CheckAddressSpaceAvailabilityResponseInner class.
- */
- private CheckAddressSpaceAvailabilityResponseInner() {
- }
-
- /**
- * Get the value property: Boolean representing whether the address space is available.
- *
- * @return the value value.
- */
- public boolean value() {
- return this.value;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeBooleanField("value", this.value);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of CheckAddressSpaceAvailabilityResponseInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of CheckAddressSpaceAvailabilityResponseInner 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 CheckAddressSpaceAvailabilityResponseInner.
- */
- public static CheckAddressSpaceAvailabilityResponseInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- CheckAddressSpaceAvailabilityResponseInner deserializedCheckAddressSpaceAvailabilityResponseInner
- = new CheckAddressSpaceAvailabilityResponseInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("value".equals(fieldName)) {
- deserializedCheckAddressSpaceAvailabilityResponseInner.value = reader.getBoolean();
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedCheckAddressSpaceAvailabilityResponseInner;
- });
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/CommunityEndpointResourceInner.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/CommunityEndpointResourceInner.java
deleted file mode 100644
index e9c4da3ebe61..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/CommunityEndpointResourceInner.java
+++ /dev/null
@@ -1,183 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-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.virtualenclaves.models.CommunityEndpointProperties;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * CommunityEndpoint Model Resource.
- */
-@Fluent
-public final class CommunityEndpointResourceInner extends Resource {
- /*
- * The resource-specific properties for this resource.
- */
- private CommunityEndpointProperties properties;
-
- /*
- * 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 CommunityEndpointResourceInner class.
- */
- public CommunityEndpointResourceInner() {
- }
-
- /**
- * Get the properties property: The resource-specific properties for this resource.
- *
- * @return the properties value.
- */
- public CommunityEndpointProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: The resource-specific properties for this resource.
- *
- * @param properties the properties value to set.
- * @return the CommunityEndpointResourceInner object itself.
- */
- public CommunityEndpointResourceInner withProperties(CommunityEndpointProperties properties) {
- this.properties = properties;
- 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 CommunityEndpointResourceInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public CommunityEndpointResourceInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of CommunityEndpointResourceInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of CommunityEndpointResourceInner 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 CommunityEndpointResourceInner.
- */
- public static CommunityEndpointResourceInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- CommunityEndpointResourceInner deserializedCommunityEndpointResourceInner
- = new CommunityEndpointResourceInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedCommunityEndpointResourceInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedCommunityEndpointResourceInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedCommunityEndpointResourceInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedCommunityEndpointResourceInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedCommunityEndpointResourceInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedCommunityEndpointResourceInner.properties
- = CommunityEndpointProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedCommunityEndpointResourceInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedCommunityEndpointResourceInner;
- });
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/CommunityResourceInner.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/CommunityResourceInner.java
deleted file mode 100644
index 0dfcd330a616..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/CommunityResourceInner.java
+++ /dev/null
@@ -1,210 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-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.virtualenclaves.models.CommunityProperties;
-import com.azure.resourcemanager.virtualenclaves.models.ManagedServiceIdentity;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * Community Model Resource.
- */
-@Fluent
-public final class CommunityResourceInner extends Resource {
- /*
- * The resource-specific properties for this resource.
- */
- private CommunityProperties properties;
-
- /*
- * The managed service identities assigned to this resource.
- */
- private ManagedServiceIdentity identity;
-
- /*
- * 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 CommunityResourceInner class.
- */
- public CommunityResourceInner() {
- }
-
- /**
- * Get the properties property: The resource-specific properties for this resource.
- *
- * @return the properties value.
- */
- public CommunityProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: The resource-specific properties for this resource.
- *
- * @param properties the properties value to set.
- * @return the CommunityResourceInner object itself.
- */
- public CommunityResourceInner withProperties(CommunityProperties properties) {
- this.properties = properties;
- 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 CommunityResourceInner object itself.
- */
- public CommunityResourceInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
- 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 CommunityResourceInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public CommunityResourceInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeJsonField("identity", this.identity);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of CommunityResourceInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of CommunityResourceInner 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 CommunityResourceInner.
- */
- public static CommunityResourceInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- CommunityResourceInner deserializedCommunityResourceInner = new CommunityResourceInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedCommunityResourceInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedCommunityResourceInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedCommunityResourceInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedCommunityResourceInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedCommunityResourceInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedCommunityResourceInner.properties = CommunityProperties.fromJson(reader);
- } else if ("identity".equals(fieldName)) {
- deserializedCommunityResourceInner.identity = ManagedServiceIdentity.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedCommunityResourceInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedCommunityResourceInner;
- });
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/EnclaveConnectionResourceInner.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/EnclaveConnectionResourceInner.java
deleted file mode 100644
index dc2a3790000a..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/EnclaveConnectionResourceInner.java
+++ /dev/null
@@ -1,183 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-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.virtualenclaves.models.EnclaveConnectionProperties;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * EnclaveConnection Model Resource.
- */
-@Fluent
-public final class EnclaveConnectionResourceInner extends Resource {
- /*
- * The resource-specific properties for this resource.
- */
- private EnclaveConnectionProperties properties;
-
- /*
- * 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 EnclaveConnectionResourceInner class.
- */
- public EnclaveConnectionResourceInner() {
- }
-
- /**
- * Get the properties property: The resource-specific properties for this resource.
- *
- * @return the properties value.
- */
- public EnclaveConnectionProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: The resource-specific properties for this resource.
- *
- * @param properties the properties value to set.
- * @return the EnclaveConnectionResourceInner object itself.
- */
- public EnclaveConnectionResourceInner withProperties(EnclaveConnectionProperties properties) {
- this.properties = properties;
- 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 EnclaveConnectionResourceInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public EnclaveConnectionResourceInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of EnclaveConnectionResourceInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of EnclaveConnectionResourceInner 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 EnclaveConnectionResourceInner.
- */
- public static EnclaveConnectionResourceInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- EnclaveConnectionResourceInner deserializedEnclaveConnectionResourceInner
- = new EnclaveConnectionResourceInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedEnclaveConnectionResourceInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedEnclaveConnectionResourceInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedEnclaveConnectionResourceInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedEnclaveConnectionResourceInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedEnclaveConnectionResourceInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedEnclaveConnectionResourceInner.properties
- = EnclaveConnectionProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedEnclaveConnectionResourceInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedEnclaveConnectionResourceInner;
- });
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/EnclaveEndpointResourceInner.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/EnclaveEndpointResourceInner.java
deleted file mode 100644
index 16b59895be51..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/EnclaveEndpointResourceInner.java
+++ /dev/null
@@ -1,181 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-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.virtualenclaves.models.EnclaveEndpointProperties;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * EnclaveEndpoint Model Resource.
- */
-@Fluent
-public final class EnclaveEndpointResourceInner extends Resource {
- /*
- * The resource-specific properties for this resource.
- */
- private EnclaveEndpointProperties properties;
-
- /*
- * 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 EnclaveEndpointResourceInner class.
- */
- public EnclaveEndpointResourceInner() {
- }
-
- /**
- * Get the properties property: The resource-specific properties for this resource.
- *
- * @return the properties value.
- */
- public EnclaveEndpointProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: The resource-specific properties for this resource.
- *
- * @param properties the properties value to set.
- * @return the EnclaveEndpointResourceInner object itself.
- */
- public EnclaveEndpointResourceInner withProperties(EnclaveEndpointProperties properties) {
- this.properties = properties;
- 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 EnclaveEndpointResourceInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public EnclaveEndpointResourceInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of EnclaveEndpointResourceInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of EnclaveEndpointResourceInner 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 EnclaveEndpointResourceInner.
- */
- public static EnclaveEndpointResourceInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- EnclaveEndpointResourceInner deserializedEnclaveEndpointResourceInner = new EnclaveEndpointResourceInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedEnclaveEndpointResourceInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedEnclaveEndpointResourceInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedEnclaveEndpointResourceInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedEnclaveEndpointResourceInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedEnclaveEndpointResourceInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedEnclaveEndpointResourceInner.properties = EnclaveEndpointProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedEnclaveEndpointResourceInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedEnclaveEndpointResourceInner;
- });
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/EnclaveResourceInner.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/EnclaveResourceInner.java
deleted file mode 100644
index af3ee42946a4..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/EnclaveResourceInner.java
+++ /dev/null
@@ -1,210 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-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.virtualenclaves.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.virtualenclaves.models.VirtualEnclaveProperties;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * Virtual Enclave Model Resource.
- */
-@Fluent
-public final class EnclaveResourceInner extends Resource {
- /*
- * The resource-specific properties for this resource.
- */
- private VirtualEnclaveProperties properties;
-
- /*
- * The managed service identities assigned to this resource.
- */
- private ManagedServiceIdentity identity;
-
- /*
- * 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 EnclaveResourceInner class.
- */
- public EnclaveResourceInner() {
- }
-
- /**
- * Get the properties property: The resource-specific properties for this resource.
- *
- * @return the properties value.
- */
- public VirtualEnclaveProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: The resource-specific properties for this resource.
- *
- * @param properties the properties value to set.
- * @return the EnclaveResourceInner object itself.
- */
- public EnclaveResourceInner withProperties(VirtualEnclaveProperties properties) {
- this.properties = properties;
- 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 EnclaveResourceInner object itself.
- */
- public EnclaveResourceInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
- 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 EnclaveResourceInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public EnclaveResourceInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeJsonField("identity", this.identity);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of EnclaveResourceInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of EnclaveResourceInner 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 EnclaveResourceInner.
- */
- public static EnclaveResourceInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- EnclaveResourceInner deserializedEnclaveResourceInner = new EnclaveResourceInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedEnclaveResourceInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedEnclaveResourceInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedEnclaveResourceInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedEnclaveResourceInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedEnclaveResourceInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedEnclaveResourceInner.properties = VirtualEnclaveProperties.fromJson(reader);
- } else if ("identity".equals(fieldName)) {
- deserializedEnclaveResourceInner.identity = ManagedServiceIdentity.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedEnclaveResourceInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedEnclaveResourceInner;
- });
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/OperationInner.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/OperationInner.java
deleted file mode 100644
index c83128505535..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/OperationInner.java
+++ /dev/null
@@ -1,150 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.virtualenclaves.models.ActionType;
-import com.azure.resourcemanager.virtualenclaves.models.OperationDisplay;
-import com.azure.resourcemanager.virtualenclaves.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/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/TransitHubResourceInner.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/TransitHubResourceInner.java
deleted file mode 100644
index ee77ad4d0537..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/TransitHubResourceInner.java
+++ /dev/null
@@ -1,181 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-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.virtualenclaves.models.TransitHubProperties;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * TransitHub Model Resource.
- */
-@Fluent
-public final class TransitHubResourceInner extends Resource {
- /*
- * The resource-specific properties for this resource.
- */
- private TransitHubProperties properties;
-
- /*
- * 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 TransitHubResourceInner class.
- */
- public TransitHubResourceInner() {
- }
-
- /**
- * Get the properties property: The resource-specific properties for this resource.
- *
- * @return the properties value.
- */
- public TransitHubProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: The resource-specific properties for this resource.
- *
- * @param properties the properties value to set.
- * @return the TransitHubResourceInner object itself.
- */
- public TransitHubResourceInner withProperties(TransitHubProperties properties) {
- this.properties = properties;
- 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 TransitHubResourceInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public TransitHubResourceInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of TransitHubResourceInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of TransitHubResourceInner 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 TransitHubResourceInner.
- */
- public static TransitHubResourceInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- TransitHubResourceInner deserializedTransitHubResourceInner = new TransitHubResourceInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedTransitHubResourceInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedTransitHubResourceInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedTransitHubResourceInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedTransitHubResourceInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedTransitHubResourceInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedTransitHubResourceInner.properties = TransitHubProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedTransitHubResourceInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedTransitHubResourceInner;
- });
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/WorkloadResourceInner.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/WorkloadResourceInner.java
deleted file mode 100644
index 1df6ed7dca26..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/WorkloadResourceInner.java
+++ /dev/null
@@ -1,181 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.core.management.Resource;
-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.virtualenclaves.models.WorkloadProperties;
-import java.io.IOException;
-import java.util.Map;
-
-/**
- * Workload Model Resource.
- */
-@Fluent
-public final class WorkloadResourceInner extends Resource {
- /*
- * The resource-specific properties for this resource.
- */
- private WorkloadProperties properties;
-
- /*
- * 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 WorkloadResourceInner class.
- */
- public WorkloadResourceInner() {
- }
-
- /**
- * Get the properties property: The resource-specific properties for this resource.
- *
- * @return the properties value.
- */
- public WorkloadProperties properties() {
- return this.properties;
- }
-
- /**
- * Set the properties property: The resource-specific properties for this resource.
- *
- * @param properties the properties value to set.
- * @return the WorkloadResourceInner object itself.
- */
- public WorkloadResourceInner withProperties(WorkloadProperties properties) {
- this.properties = properties;
- 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 WorkloadResourceInner withLocation(String location) {
- super.withLocation(location);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public WorkloadResourceInner withTags(Map tags) {
- super.withTags(tags);
- return this;
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeStringField("location", location());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeJsonField("properties", this.properties);
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of WorkloadResourceInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of WorkloadResourceInner 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 WorkloadResourceInner.
- */
- public static WorkloadResourceInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- WorkloadResourceInner deserializedWorkloadResourceInner = new WorkloadResourceInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("id".equals(fieldName)) {
- deserializedWorkloadResourceInner.id = reader.getString();
- } else if ("name".equals(fieldName)) {
- deserializedWorkloadResourceInner.name = reader.getString();
- } else if ("type".equals(fieldName)) {
- deserializedWorkloadResourceInner.type = reader.getString();
- } else if ("location".equals(fieldName)) {
- deserializedWorkloadResourceInner.withLocation(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedWorkloadResourceInner.withTags(tags);
- } else if ("properties".equals(fieldName)) {
- deserializedWorkloadResourceInner.properties = WorkloadProperties.fromJson(reader);
- } else if ("systemData".equals(fieldName)) {
- deserializedWorkloadResourceInner.systemData = SystemData.fromJson(reader);
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedWorkloadResourceInner;
- });
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/package-info.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/package-info.java
deleted file mode 100644
index 22472d3a9b2b..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/models/package-info.java
+++ /dev/null
@@ -1,9 +0,0 @@
-// 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 VirtualEnclavesManagementClient.
- * Microsoft Mission Resource Provider management API.
- */
-package com.azure.resourcemanager.virtualenclaves.fluent.models;
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/package-info.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/package-info.java
deleted file mode 100644
index 9f8b7b12eaa7..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/fluent/package-info.java
+++ /dev/null
@@ -1,9 +0,0 @@
-// 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 VirtualEnclavesManagementClient.
- * Microsoft Mission Resource Provider management API.
- */
-package com.azure.resourcemanager.virtualenclaves.fluent;
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/implementation/ApprovalActionResponseImpl.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/implementation/ApprovalActionResponseImpl.java
deleted file mode 100644
index 66705e5c7aa4..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/implementation/ApprovalActionResponseImpl.java
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.implementation;
-
-import com.azure.resourcemanager.virtualenclaves.fluent.models.ApprovalActionResponseInner;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalActionResponse;
-
-public final class ApprovalActionResponseImpl implements ApprovalActionResponse {
- private ApprovalActionResponseInner innerObject;
-
- private final com.azure.resourcemanager.virtualenclaves.VirtualEnclavesManager serviceManager;
-
- ApprovalActionResponseImpl(ApprovalActionResponseInner innerObject,
- com.azure.resourcemanager.virtualenclaves.VirtualEnclavesManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
- public String message() {
- return this.innerModel().message();
- }
-
- public ApprovalActionResponseInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.virtualenclaves.VirtualEnclavesManager manager() {
- return this.serviceManager;
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/implementation/ApprovalResourceImpl.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/implementation/ApprovalResourceImpl.java
deleted file mode 100644
index 2657514fccdb..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/implementation/ApprovalResourceImpl.java
+++ /dev/null
@@ -1,144 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.implementation;
-
-import com.azure.core.management.SystemData;
-import com.azure.core.util.Context;
-import com.azure.resourcemanager.virtualenclaves.fluent.models.ApprovalResourceInner;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalActionRequest;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalActionResponse;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalPatchModel;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalPatchProperties;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalProperties;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalResource;
-
-public final class ApprovalResourceImpl
- implements ApprovalResource, ApprovalResource.Definition, ApprovalResource.Update {
- private ApprovalResourceInner innerObject;
-
- private final com.azure.resourcemanager.virtualenclaves.VirtualEnclavesManager serviceManager;
-
- public String id() {
- return this.innerModel().id();
- }
-
- public String name() {
- return this.innerModel().name();
- }
-
- public String type() {
- return this.innerModel().type();
- }
-
- public ApprovalProperties properties() {
- return this.innerModel().properties();
- }
-
- public SystemData systemData() {
- return this.innerModel().systemData();
- }
-
- public ApprovalResourceInner innerModel() {
- return this.innerObject;
- }
-
- private com.azure.resourcemanager.virtualenclaves.VirtualEnclavesManager manager() {
- return this.serviceManager;
- }
-
- private String resourceUri;
-
- private String approvalName;
-
- private ApprovalPatchModel updateProperties;
-
- public ApprovalResourceImpl withExistingResourceUri(String resourceUri) {
- this.resourceUri = resourceUri;
- return this;
- }
-
- public ApprovalResource create() {
- this.innerObject = serviceManager.serviceClient()
- .getApprovals()
- .createOrUpdate(resourceUri, approvalName, this.innerModel(), Context.NONE);
- return this;
- }
-
- public ApprovalResource create(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getApprovals()
- .createOrUpdate(resourceUri, approvalName, this.innerModel(), context);
- return this;
- }
-
- ApprovalResourceImpl(String name, com.azure.resourcemanager.virtualenclaves.VirtualEnclavesManager serviceManager) {
- this.innerObject = new ApprovalResourceInner();
- this.serviceManager = serviceManager;
- this.approvalName = name;
- }
-
- public ApprovalResourceImpl update() {
- this.updateProperties = new ApprovalPatchModel();
- return this;
- }
-
- public ApprovalResource apply() {
- this.innerObject = serviceManager.serviceClient()
- .getApprovals()
- .update(resourceUri, approvalName, updateProperties, Context.NONE);
- return this;
- }
-
- public ApprovalResource apply(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getApprovals()
- .update(resourceUri, approvalName, updateProperties, context);
- return this;
- }
-
- ApprovalResourceImpl(ApprovalResourceInner innerObject,
- com.azure.resourcemanager.virtualenclaves.VirtualEnclavesManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- this.resourceUri = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
- "/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}", "resourceUri");
- this.approvalName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
- "/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}", "approvalName");
- }
-
- public ApprovalResource refresh() {
- this.innerObject = serviceManager.serviceClient()
- .getApprovals()
- .getWithResponse(resourceUri, approvalName, Context.NONE)
- .getValue();
- return this;
- }
-
- public ApprovalResource refresh(Context context) {
- this.innerObject = serviceManager.serviceClient()
- .getApprovals()
- .getWithResponse(resourceUri, approvalName, context)
- .getValue();
- return this;
- }
-
- public ApprovalActionResponse notifyInitiator(ApprovalActionRequest body) {
- return serviceManager.approvals().notifyInitiator(resourceUri, approvalName, body);
- }
-
- public ApprovalActionResponse notifyInitiator(ApprovalActionRequest body, Context context) {
- return serviceManager.approvals().notifyInitiator(resourceUri, approvalName, body, context);
- }
-
- public ApprovalResourceImpl withProperties(ApprovalProperties properties) {
- this.innerModel().withProperties(properties);
- return this;
- }
-
- public ApprovalResourceImpl withProperties(ApprovalPatchProperties properties) {
- this.updateProperties.withProperties(properties);
- return this;
- }
-}
diff --git a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/implementation/ApprovalsClientImpl.java b/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/implementation/ApprovalsClientImpl.java
deleted file mode 100644
index ea150ddf26c5..000000000000
--- a/sdk/virtualenclaves/azure-resourcemanager-virtualenclaves/src/main/java/com/azure/resourcemanager/virtualenclaves/implementation/ApprovalsClientImpl.java
+++ /dev/null
@@ -1,1107 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-// Code generated by Microsoft (R) TypeSpec Code Generator.
-
-package com.azure.resourcemanager.virtualenclaves.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.Patch;
-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.virtualenclaves.fluent.ApprovalsClient;
-import com.azure.resourcemanager.virtualenclaves.fluent.models.ApprovalActionResponseInner;
-import com.azure.resourcemanager.virtualenclaves.fluent.models.ApprovalResourceInner;
-import com.azure.resourcemanager.virtualenclaves.implementation.models.ApprovalResourceListResult;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalActionRequest;
-import com.azure.resourcemanager.virtualenclaves.models.ApprovalPatchModel;
-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 ApprovalsClient.
- */
-public final class ApprovalsClientImpl implements ApprovalsClient {
- /**
- * The proxy service used to perform REST calls.
- */
- private final ApprovalsService service;
-
- /**
- * The service client containing this operation class.
- */
- private final VirtualEnclavesManagementClientImpl client;
-
- /**
- * Initializes an instance of ApprovalsClientImpl.
- *
- * @param client the instance of the service client containing this operation class.
- */
- ApprovalsClientImpl(VirtualEnclavesManagementClientImpl client) {
- this.service
- = RestProxy.create(ApprovalsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
- this.client = client;
- }
-
- /**
- * The interface defining all the services for VirtualEnclavesManagementClientApprovals to be used by the proxy
- * service to perform REST calls.
- */
- @Host("{endpoint}")
- @ServiceInterface(name = "VirtualEnclavesManagementClientApprovals")
- public interface ApprovalsService {
- @Headers({ "Content-Type: application/json" })
- @Get("/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> get(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @PathParam("approvalName") String approvalName, @HeaderParam("Accept") String accept, Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Response getSync(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @PathParam("approvalName") String approvalName, @HeaderParam("Accept") String accept, Context context);
-
- @Put("/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @PathParam("approvalName") String approvalName, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ApprovalResourceInner resource,
- Context context);
-
- @Put("/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}")
- @ExpectedResponses({ 200, 201 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @PathParam("approvalName") String approvalName, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ApprovalResourceInner resource,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/{resourceUri}/providers/Microsoft.Mission/approvals")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByParent(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri, @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("/{resourceUri}/providers/Microsoft.Mission/approvals")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Response listByParentSync(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri, @HeaderParam("Accept") String accept,
- Context context);
-
- @Patch("/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @PathParam("approvalName") String approvalName, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ApprovalPatchModel properties,
- Context context);
-
- @Patch("/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Response updateSync(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @PathParam("approvalName") String approvalName, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ApprovalPatchModel properties,
- Context context);
-
- @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
- @Delete("/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}")
- @ExpectedResponses({ 202, 204 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @PathParam("approvalName") String approvalName, Context context);
-
- @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
- @Delete("/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}")
- @ExpectedResponses({ 202, 204 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Response deleteSync(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @PathParam("approvalName") String approvalName, Context context);
-
- @Post("/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}/notifyInitiator")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> notifyInitiator(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @PathParam("approvalName") String approvalName, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ApprovalActionRequest body,
- Context context);
-
- @Post("/{resourceUri}/providers/Microsoft.Mission/approvals/{approvalName}/notifyInitiator")
- @ExpectedResponses({ 200, 202 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Response notifyInitiatorSync(@HostParam("endpoint") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam(value = "resourceUri", encoded = true) String resourceUri,
- @PathParam("approvalName") String approvalName, @HeaderParam("Content-Type") String contentType,
- @HeaderParam("Accept") String accept, @BodyParam("application/json") ApprovalActionRequest body,
- Context context);
-
- @Headers({ "Content-Type: application/json" })
- @Get("{nextLink}")
- @ExpectedResponses({ 200 })
- @UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByParentNext(
- @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 listByParentNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
- @HeaderParam("Accept") String accept, Context context);
- }
-
- /**
- * Get a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 ApprovalResource along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getWithResponseAsync(String resourceUri, String approvalName) {
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
- approvalName, accept, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Get a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 ApprovalResource on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono getAsync(String resourceUri, String approvalName) {
- return getWithResponseAsync(resourceUri, approvalName).flatMap(res -> Mono.justOrEmpty(res.getValue()));
- }
-
- /**
- * Get a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 a ApprovalResource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public Response getWithResponse(String resourceUri, String approvalName, Context context) {
- final String accept = "application/json";
- return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, approvalName,
- accept, context);
- }
-
- /**
- * Get a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 ApprovalResource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApprovalResourceInner get(String resourceUri, String approvalName) {
- return getWithResponse(resourceUri, approvalName, Context.NONE).getValue();
- }
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createOrUpdateWithResponseAsync(String resourceUri, String approvalName,
- ApprovalResourceInner resource) {
- final String contentType = "application/json";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
- resourceUri, approvalName, contentType, accept, resource, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Response createOrUpdateWithResponse(String resourceUri, String approvalName,
- ApprovalResourceInner resource) {
- final String contentType = "application/json";
- final String accept = "application/json";
- return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
- approvalName, contentType, accept, resource, Context.NONE);
- }
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Response createOrUpdateWithResponse(String resourceUri, String approvalName,
- ApprovalResourceInner resource, Context context) {
- final String contentType = "application/json";
- final String accept = "application/json";
- return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
- approvalName, contentType, accept, resource, context);
- }
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ApprovalResourceInner>
- beginCreateOrUpdateAsync(String resourceUri, String approvalName, ApprovalResourceInner resource) {
- Mono>> mono = createOrUpdateWithResponseAsync(resourceUri, approvalName, resource);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), ApprovalResourceInner.class, ApprovalResourceInner.class,
- this.client.getContext());
- }
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ApprovalResourceInner> beginCreateOrUpdate(String resourceUri,
- String approvalName, ApprovalResourceInner resource) {
- Response response = createOrUpdateWithResponse(resourceUri, approvalName, resource);
- return this.client.getLroResult(response,
- ApprovalResourceInner.class, ApprovalResourceInner.class, Context.NONE);
- }
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ApprovalResourceInner> beginCreateOrUpdate(String resourceUri,
- String approvalName, ApprovalResourceInner resource, Context context) {
- Response response = createOrUpdateWithResponse(resourceUri, approvalName, resource, context);
- return this.client.getLroResult(response,
- ApprovalResourceInner.class, ApprovalResourceInner.class, context);
- }
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createOrUpdateAsync(String resourceUri, String approvalName,
- ApprovalResourceInner resource) {
- return beginCreateOrUpdateAsync(resourceUri, approvalName, resource).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApprovalResourceInner createOrUpdate(String resourceUri, String approvalName,
- ApprovalResourceInner resource) {
- return beginCreateOrUpdate(resourceUri, approvalName, resource).getFinalResult();
- }
-
- /**
- * Create a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApprovalResourceInner createOrUpdate(String resourceUri, String approvalName, ApprovalResourceInner resource,
- Context context) {
- return beginCreateOrUpdate(resourceUri, approvalName, resource, context).getFinalResult();
- }
-
- /**
- * List ApprovalResource resources by parent.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @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 ApprovalResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByParentSinglePageAsync(String resourceUri) {
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByParent(this.client.getEndpoint(), this.client.getApiVersion(),
- resourceUri, 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 ApprovalResource resources by parent.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @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 ApprovalResource list operation as paginated response with {@link PagedFlux}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- private PagedFlux listByParentAsync(String resourceUri) {
- return new PagedFlux<>(() -> listByParentSinglePageAsync(resourceUri),
- nextLink -> listByParentNextSinglePageAsync(nextLink));
- }
-
- /**
- * List ApprovalResource resources by parent.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @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 ApprovalResource list operation along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listByParentSinglePage(String resourceUri) {
- final String accept = "application/json";
- Response res = service.listByParentSync(this.client.getEndpoint(),
- this.client.getApiVersion(), resourceUri, accept, Context.NONE);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
- }
-
- /**
- * List ApprovalResource resources by parent.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @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 ApprovalResource list operation along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listByParentSinglePage(String resourceUri, Context context) {
- final String accept = "application/json";
- Response res = service.listByParentSync(this.client.getEndpoint(),
- this.client.getApiVersion(), resourceUri, accept, context);
- return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
- res.getValue().nextLink(), null);
- }
-
- /**
- * List ApprovalResource resources by parent.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @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 ApprovalResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByParent(String resourceUri) {
- return new PagedIterable<>(() -> listByParentSinglePage(resourceUri),
- nextLink -> listByParentNextSinglePage(nextLink));
- }
-
- /**
- * List ApprovalResource resources by parent.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @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 ApprovalResource list operation as paginated response with {@link PagedIterable}.
- */
- @ServiceMethod(returns = ReturnType.COLLECTION)
- public PagedIterable listByParent(String resourceUri, Context context) {
- return new PagedIterable<>(() -> listByParentSinglePage(resourceUri, context),
- nextLink -> listByParentNextSinglePage(nextLink, context));
- }
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource along with {@link Response} on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(String resourceUri, String approvalName,
- ApprovalPatchModel properties) {
- final String contentType = "application/json";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
- approvalName, contentType, accept, properties, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Response updateWithResponse(String resourceUri, String approvalName,
- ApprovalPatchModel properties) {
- final String contentType = "application/json";
- final String accept = "application/json";
- return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, approvalName,
- contentType, accept, properties, Context.NONE);
- }
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Response updateWithResponse(String resourceUri, String approvalName,
- ApprovalPatchModel properties, Context context) {
- final String contentType = "application/json";
- final String accept = "application/json";
- return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, approvalName,
- contentType, accept, properties, context);
- }
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ApprovalResourceInner> beginUpdateAsync(String resourceUri,
- String approvalName, ApprovalPatchModel properties) {
- Mono>> mono = updateWithResponseAsync(resourceUri, approvalName, properties);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), ApprovalResourceInner.class, ApprovalResourceInner.class,
- this.client.getContext());
- }
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ApprovalResourceInner> beginUpdate(String resourceUri,
- String approvalName, ApprovalPatchModel properties) {
- Response response = updateWithResponse(resourceUri, approvalName, properties);
- return this.client.getLroResult(response,
- ApprovalResourceInner.class, ApprovalResourceInner.class, Context.NONE);
- }
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ApprovalResourceInner> beginUpdate(String resourceUri,
- String approvalName, ApprovalPatchModel properties, Context context) {
- Response response = updateWithResponse(resourceUri, approvalName, properties, context);
- return this.client.getLroResult(response,
- ApprovalResourceInner.class, ApprovalResourceInner.class, context);
- }
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceUri, String approvalName,
- ApprovalPatchModel properties) {
- return beginUpdateAsync(resourceUri, approvalName, properties).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApprovalResourceInner update(String resourceUri, String approvalName, ApprovalPatchModel properties) {
- return beginUpdate(resourceUri, approvalName, properties).getFinalResult();
- }
-
- /**
- * Update a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param properties The resource properties to be updated.
- * @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 approval Model Resource.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApprovalResourceInner update(String resourceUri, String approvalName, ApprovalPatchModel properties,
- Context context) {
- return beginUpdate(resourceUri, approvalName, properties, context).getFinalResult();
- }
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName) {
- return FluxUtil
- .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
- approvalName, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName) {
- return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, approvalName,
- Context.NONE);
- }
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName, Context context) {
- return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri, approvalName,
- context);
- }
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName) {
- Mono>> mono = deleteWithResponseAsync(resourceUri, approvalName);
- return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
- this.client.getContext());
- }
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName) {
- Response response = deleteWithResponse(resourceUri, approvalName);
- return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
- }
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName, Context context) {
- Response response = deleteWithResponse(resourceUri, approvalName, context);
- return this.client.getLroResult(response, Void.class, Void.class, context);
- }
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName) {
- return beginDeleteAsync(resourceUri, approvalName).last().flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName) {
- beginDelete(resourceUri, approvalName).getFinalResult();
- }
-
- /**
- * Delete a ApprovalResource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @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 resourceUri, String approvalName, Context context) {
- beginDelete(resourceUri, approvalName, context).getFinalResult();
- }
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest along with {@link Response} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> notifyInitiatorWithResponseAsync(String resourceUri, String approvalName,
- ApprovalActionRequest body) {
- final String contentType = "application/json";
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.notifyInitiator(this.client.getEndpoint(), this.client.getApiVersion(),
- resourceUri, approvalName, contentType, accept, body, context))
- .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
- }
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Response notifyInitiatorWithResponse(String resourceUri, String approvalName,
- ApprovalActionRequest body) {
- final String contentType = "application/json";
- final String accept = "application/json";
- return service.notifyInitiatorSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
- approvalName, contentType, accept, body, Context.NONE);
- }
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest along with {@link Response}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Response notifyInitiatorWithResponse(String resourceUri, String approvalName,
- ApprovalActionRequest body, Context context) {
- final String contentType = "application/json";
- final String accept = "application/json";
- return service.notifyInitiatorSync(this.client.getEndpoint(), this.client.getApiVersion(), resourceUri,
- approvalName, contentType, accept, body, context);
- }
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ApprovalActionResponseInner>
- beginNotifyInitiatorAsync(String resourceUri, String approvalName, ApprovalActionRequest body) {
- Mono>> mono = notifyInitiatorWithResponseAsync(resourceUri, approvalName, body);
- return this.client.getLroResult(mono,
- this.client.getHttpPipeline(), ApprovalActionResponseInner.class, ApprovalActionResponseInner.class,
- this.client.getContext());
- }
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ApprovalActionResponseInner>
- beginNotifyInitiator(String resourceUri, String approvalName, ApprovalActionRequest body) {
- Response response = notifyInitiatorWithResponse(resourceUri, approvalName, body);
- return this.client.getLroResult(response,
- ApprovalActionResponseInner.class, ApprovalActionResponseInner.class, Context.NONE);
- }
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ApprovalActionResponseInner>
- beginNotifyInitiator(String resourceUri, String approvalName, ApprovalActionRequest body, Context context) {
- Response response = notifyInitiatorWithResponse(resourceUri, approvalName, body, context);
- return this.client.getLroResult(response,
- ApprovalActionResponseInner.class, ApprovalActionResponseInner.class, context);
- }
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest on successful completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono notifyInitiatorAsync(String resourceUri, String approvalName,
- ApprovalActionRequest body) {
- return beginNotifyInitiatorAsync(resourceUri, approvalName, body).last()
- .flatMap(this.client::getLroFinalResultOrError);
- }
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApprovalActionResponseInner notifyInitiator(String resourceUri, String approvalName,
- ApprovalActionRequest body) {
- return beginNotifyInitiator(resourceUri, approvalName, body).getFinalResult();
- }
-
- /**
- * Upon receiving approval or rejection from approver, this facilitates actions on approval resource.
- *
- * @param resourceUri The fully qualified Azure Resource manager identifier of the resource.
- * @param approvalName The name of the approvals resource.
- * @param body The content of the action request.
- * @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 response body after handling of approvalCallbackRequest.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- public ApprovalActionResponseInner notifyInitiator(String resourceUri, String approvalName,
- ApprovalActionRequest body, Context context) {
- return beginNotifyInitiator(resourceUri, approvalName, body, context).getFinalResult();
- }
-
- /**
- * 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 ApprovalResource list operation along with {@link PagedResponse} on successful
- * completion of {@link Mono}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> listByParentNextSinglePageAsync(String nextLink) {
- final String accept = "application/json";
- return FluxUtil
- .withContext(context -> service.listByParentNext(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 ApprovalResource list operation along with {@link PagedResponse}.
- */
- @ServiceMethod(returns = ReturnType.SINGLE)
- private PagedResponse listByParentNextSinglePage(String nextLink) {
- final String accept = "application/json";
- Response