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 DigitalAssets service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the DigitalAssets service API instance.
+ */
+ public DigitalAssetsManager 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.digitalassets")
+ .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 DigitalAssetsManager(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 ZkpRollups. It manages ZkpRollup.
+ *
+ * @return Resource collection API of ZkpRollups.
+ */
+ public ZkpRollups zkpRollups() {
+ if (this.zkpRollups == null) {
+ this.zkpRollups = new ZkpRollupsImpl(clientObject.getZkpRollups(), this);
+ }
+ return zkpRollups;
+ }
+
+ /**
+ * Gets the resource collection API of Partitions. It manages Partition.
+ *
+ * @return Resource collection API of Partitions.
+ */
+ public Partitions partitions() {
+ if (this.partitions == null) {
+ this.partitions = new PartitionsImpl(clientObject.getPartitions(), this);
+ }
+ return partitions;
+ }
+
+ /**
+ * Gets wrapped service client DigitalAssetsManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client DigitalAssetsManagementClient.
+ */
+ public DigitalAssetsManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/DigitalAssetsManagementClient.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/DigitalAssetsManagementClient.java
new file mode 100644
index 000000000000..59b3ce3427fe
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/DigitalAssetsManagementClient.java
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/**
+ * The interface for DigitalAssetsManagementClient class.
+ */
+public interface DigitalAssetsManagementClient {
+ /**
+ * 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 ZkpRollupsClient object to access its operations.
+ *
+ * @return the ZkpRollupsClient object.
+ */
+ ZkpRollupsClient getZkpRollups();
+
+ /**
+ * Gets the PartitionsClient object to access its operations.
+ *
+ * @return the PartitionsClient object.
+ */
+ PartitionsClient getPartitions();
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/OperationsClient.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/OperationsClient.java
new file mode 100644
index 000000000000..6cd4706ddf02
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/OperationsClient.java
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.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.digitalassets.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/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/PartitionsClient.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/PartitionsClient.java
new file mode 100644
index 000000000000..8f4d51cd00e3
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/PartitionsClient.java
@@ -0,0 +1,234 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.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.digitalassets.fluent.models.PartitionInner;
+import com.azure.resourcemanager.digitalassets.models.PartitionTagsUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in PartitionsClient.
+ */
+public interface PartitionsClient {
+ /**
+ * Get a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 Partition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String zkpRollupName, String partitionName,
+ Context context);
+
+ /**
+ * Get a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 Partition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PartitionInner get(String resourceGroupName, String zkpRollupName, String partitionName);
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PartitionInner> beginCreateOrUpdate(String resourceGroupName,
+ String zkpRollupName, String partitionName, PartitionInner resource);
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PartitionInner> beginCreateOrUpdate(String resourceGroupName,
+ String zkpRollupName, String partitionName, PartitionInner resource, Context context);
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PartitionInner createOrUpdate(String resourceGroupName, String zkpRollupName, String partitionName,
+ PartitionInner resource);
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PartitionInner createOrUpdate(String resourceGroupName, String zkpRollupName, String partitionName,
+ PartitionInner resource, Context context);
+
+ /**
+ * Update a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName, String zkpRollupName, String partitionName,
+ PartitionTagsUpdate properties, Context context);
+
+ /**
+ * Update a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PartitionInner update(String resourceGroupName, String zkpRollupName, String partitionName,
+ PartitionTagsUpdate properties);
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 zkpRollupName,
+ String partitionName);
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 zkpRollupName, String partitionName,
+ Context context);
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 zkpRollupName, String partitionName);
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 zkpRollupName, String partitionName, Context context);
+
+ /**
+ * List Partition resources by ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 Partition list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByParent(String resourceGroupName, String zkpRollupName);
+
+ /**
+ * List Partition resources by ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 Partition list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByParent(String resourceGroupName, String zkpRollupName, Context context);
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/ZkpRollupsClient.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/ZkpRollupsClient.java
new file mode 100644
index 000000000000..54e18c62f440
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/ZkpRollupsClient.java
@@ -0,0 +1,276 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.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.digitalassets.fluent.models.ZkpRollupInner;
+import com.azure.resourcemanager.digitalassets.models.ZkpRollupUpdate;
+
+/**
+ * An instance of this class provides access to all the operations defined in ZkpRollupsClient.
+ */
+public interface ZkpRollupsClient {
+ /**
+ * Get a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 ZkpRollup along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String zkpRollupName,
+ Context context);
+
+ /**
+ * Get a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ZkpRollupInner getByResourceGroup(String resourceGroupName, String zkpRollupName);
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ZkpRollupInner> beginCreateOrUpdate(String resourceGroupName,
+ String zkpRollupName, ZkpRollupInner resource);
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ZkpRollupInner> beginCreateOrUpdate(String resourceGroupName,
+ String zkpRollupName, ZkpRollupInner resource, Context context);
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ZkpRollupInner createOrUpdate(String resourceGroupName, String zkpRollupName, ZkpRollupInner resource);
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ZkpRollupInner createOrUpdate(String resourceGroupName, String zkpRollupName, ZkpRollupInner resource,
+ Context context);
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ZkpRollupInner> beginUpdate(String resourceGroupName, String zkpRollupName,
+ ZkpRollupUpdate properties);
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ZkpRollupInner> beginUpdate(String resourceGroupName, String zkpRollupName,
+ ZkpRollupUpdate properties, Context context);
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ZkpRollupInner update(String resourceGroupName, String zkpRollupName, ZkpRollupUpdate properties);
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ZkpRollupInner update(String resourceGroupName, String zkpRollupName, ZkpRollupUpdate properties, Context context);
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 zkpRollupName);
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 zkpRollupName, Context context);
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 zkpRollupName);
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 zkpRollupName, Context context);
+
+ /**
+ * List ZkpRollup 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 ZkpRollup list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * List ZkpRollup 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 ZkpRollup list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+
+ /**
+ * List ZkpRollup 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 ZkpRollup list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * List ZkpRollup 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 ZkpRollup list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/OperationInner.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..51eb06c566cd
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/OperationInner.java
@@ -0,0 +1,150 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.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.digitalassets.models.ActionType;
+import com.azure.resourcemanager.digitalassets.models.OperationDisplay;
+import com.azure.resourcemanager.digitalassets.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/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/PartitionInner.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/PartitionInner.java
new file mode 100644
index 000000000000..9161ca99cf67
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/PartitionInner.java
@@ -0,0 +1,181 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.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.digitalassets.models.PartitionProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * A deployable partition of a ZkpRollup.
+ */
+@Fluent
+public final class PartitionInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private PartitionProperties 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 PartitionInner class.
+ */
+ public PartitionInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public PartitionProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the PartitionInner object itself.
+ */
+ public PartitionInner withProperties(PartitionProperties 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 PartitionInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public PartitionInner 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 PartitionInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PartitionInner 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 PartitionInner.
+ */
+ public static PartitionInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PartitionInner deserializedPartitionInner = new PartitionInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPartitionInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPartitionInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPartitionInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedPartitionInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedPartitionInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedPartitionInner.properties = PartitionProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPartitionInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPartitionInner;
+ });
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/ZkpRollupInner.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/ZkpRollupInner.java
new file mode 100644
index 000000000000..ccf8022d1fcc
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/ZkpRollupInner.java
@@ -0,0 +1,210 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.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.digitalassets.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.digitalassets.models.ZkpRollupProperties;
+import java.io.IOException;
+import java.util.Map;
+
+/**
+ * A DigitalAssets ZKP rollup resource.
+ */
+@Fluent
+public final class ZkpRollupInner extends Resource {
+ /*
+ * The resource-specific properties for this resource.
+ */
+ private ZkpRollupProperties 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 ZkpRollupInner class.
+ */
+ public ZkpRollupInner() {
+ }
+
+ /**
+ * Get the properties property: The resource-specific properties for this resource.
+ *
+ * @return the properties value.
+ */
+ public ZkpRollupProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The resource-specific properties for this resource.
+ *
+ * @param properties the properties value to set.
+ * @return the ZkpRollupInner object itself.
+ */
+ public ZkpRollupInner withProperties(ZkpRollupProperties 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 ZkpRollupInner object itself.
+ */
+ public ZkpRollupInner 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 ZkpRollupInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public ZkpRollupInner 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 ZkpRollupInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of ZkpRollupInner 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 ZkpRollupInner.
+ */
+ public static ZkpRollupInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ ZkpRollupInner deserializedZkpRollupInner = new ZkpRollupInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedZkpRollupInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedZkpRollupInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedZkpRollupInner.type = reader.getString();
+ } else if ("location".equals(fieldName)) {
+ deserializedZkpRollupInner.withLocation(reader.getString());
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedZkpRollupInner.withTags(tags);
+ } else if ("properties".equals(fieldName)) {
+ deserializedZkpRollupInner.properties = ZkpRollupProperties.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedZkpRollupInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedZkpRollupInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedZkpRollupInner;
+ });
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/package-info.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/package-info.java
new file mode 100644
index 000000000000..24110977eab0
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/models/package-info.java
@@ -0,0 +1,8 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the inner data models for DigitalAssets.
+ */
+package com.azure.resourcemanager.digitalassets.fluent.models;
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/package-info.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/package-info.java
new file mode 100644
index 000000000000..920f5d880415
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/fluent/package-info.java
@@ -0,0 +1,8 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+/**
+ * Package containing the service clients for DigitalAssets.
+ */
+package com.azure.resourcemanager.digitalassets.fluent;
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/DigitalAssetsManagementClientBuilder.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/DigitalAssetsManagementClientBuilder.java
new file mode 100644
index 000000000000..435a78d813ea
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/DigitalAssetsManagementClientBuilder.java
@@ -0,0 +1,138 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/**
+ * A builder for creating a new instance of the DigitalAssetsManagementClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { DigitalAssetsManagementClientImpl.class })
+public final class DigitalAssetsManagementClientBuilder {
+ /*
+ * Service host
+ */
+ private String endpoint;
+
+ /**
+ * Sets Service host.
+ *
+ * @param endpoint the endpoint value.
+ * @return the DigitalAssetsManagementClientBuilder.
+ */
+ public DigitalAssetsManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets The ID of the target subscription. The value must be an UUID.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the DigitalAssetsManagementClientBuilder.
+ */
+ public DigitalAssetsManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the DigitalAssetsManagementClientBuilder.
+ */
+ public DigitalAssetsManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the DigitalAssetsManagementClientBuilder.
+ */
+ public DigitalAssetsManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the DigitalAssetsManagementClientBuilder.
+ */
+ public DigitalAssetsManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the DigitalAssetsManagementClientBuilder.
+ */
+ public DigitalAssetsManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of DigitalAssetsManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of DigitalAssetsManagementClientImpl.
+ */
+ public DigitalAssetsManagementClientImpl buildClient() {
+ String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
+ AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
+ HttpPipeline localPipeline = (pipeline != null)
+ ? pipeline
+ : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ Duration localDefaultPollInterval
+ = (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30);
+ SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
+ ? serializerAdapter
+ : SerializerFactory.createDefaultManagementSerializerAdapter();
+ DigitalAssetsManagementClientImpl client = new DigitalAssetsManagementClientImpl(localPipeline,
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId);
+ return client;
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/DigitalAssetsManagementClientImpl.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/DigitalAssetsManagementClientImpl.java
new file mode 100644
index 000000000000..340e5c522ee3
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/DigitalAssetsManagementClientImpl.java
@@ -0,0 +1,340 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaderName;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.management.polling.SyncPollerFactory;
+import com.azure.core.util.BinaryData;
+import com.azure.core.util.Context;
+import com.azure.core.util.CoreUtils;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.digitalassets.fluent.DigitalAssetsManagementClient;
+import com.azure.resourcemanager.digitalassets.fluent.OperationsClient;
+import com.azure.resourcemanager.digitalassets.fluent.PartitionsClient;
+import com.azure.resourcemanager.digitalassets.fluent.ZkpRollupsClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/**
+ * Initializes a new instance of the DigitalAssetsManagementClientImpl type.
+ */
+@ServiceClient(builder = DigitalAssetsManagementClientBuilder.class)
+public final class DigitalAssetsManagementClientImpl implements DigitalAssetsManagementClient {
+ /**
+ * Service host.
+ */
+ private final String endpoint;
+
+ /**
+ * Gets Service host.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /**
+ * Version parameter.
+ */
+ private final String apiVersion;
+
+ /**
+ * Gets Version parameter.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /**
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * The HTTP pipeline to send requests through.
+ */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /**
+ * The serializer to serialize an object into a string.
+ */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /**
+ * The default poll interval for long-running operation.
+ */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /**
+ * The OperationsClient object to access its operations.
+ */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /**
+ * The ZkpRollupsClient object to access its operations.
+ */
+ private final ZkpRollupsClient zkpRollups;
+
+ /**
+ * Gets the ZkpRollupsClient object to access its operations.
+ *
+ * @return the ZkpRollupsClient object.
+ */
+ public ZkpRollupsClient getZkpRollups() {
+ return this.zkpRollups;
+ }
+
+ /**
+ * The PartitionsClient object to access its operations.
+ */
+ private final PartitionsClient partitions;
+
+ /**
+ * Gets the PartitionsClient object to access its operations.
+ *
+ * @return the PartitionsClient object.
+ */
+ public PartitionsClient getPartitions() {
+ return this.partitions;
+ }
+
+ /**
+ * Initializes an instance of DigitalAssetsManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param endpoint Service host.
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
+ */
+ DigitalAssetsManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.endpoint = endpoint;
+ this.subscriptionId = subscriptionId;
+ this.apiVersion = "2025-09-01-preview";
+ this.operations = new OperationsClientImpl(this);
+ this.zkpRollups = new ZkpRollupsClientImpl(this);
+ this.partitions = new PartitionsClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ return CoreUtils.mergeContexts(this.getContext(), context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param httpPipeline the http pipeline.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return poller flux for poll result and final result.
+ */
+ public PollerFlux, U> getLroResult(Mono>> activationResponse,
+ HttpPipeline httpPipeline, Type pollResultType, Type finalResultType, Context context) {
+ return PollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, activationResponse, context);
+ }
+
+ /**
+ * Gets long running operation result.
+ *
+ * @param activationResponse the response of activation operation.
+ * @param pollResultType type of poll result.
+ * @param finalResultType type of final result.
+ * @param context the context shared by all requests.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return SyncPoller for poll result and final result.
+ */
+ public SyncPoller, U> getLroResult(Response activationResponse,
+ Type pollResultType, Type finalResultType, Context context) {
+ return SyncPollerFactory.create(serializerAdapter, httpPipeline, pollResultType, finalResultType,
+ defaultPollInterval, () -> activationResponse, context);
+ }
+
+ /**
+ * Gets the final result, or an error, based on last async poll response.
+ *
+ * @param response the last async poll response.
+ * @param type of poll result.
+ * @param type of final result.
+ * @return the final result, or an error.
+ */
+ public Mono getLroFinalResultOrError(AsyncPollResponse, U> response) {
+ if (response.getStatus() != LongRunningOperationStatus.SUCCESSFULLY_COMPLETED) {
+ String errorMessage;
+ ManagementError managementError = null;
+ HttpResponse errorResponse = null;
+ PollResult.Error lroError = response.getValue().getError();
+ if (lroError != null) {
+ errorResponse = new HttpResponseImpl(lroError.getResponseStatusCode(), lroError.getResponseHeaders(),
+ lroError.getResponseBody());
+
+ errorMessage = response.getValue().getError().getMessage();
+ String errorBody = response.getValue().getError().getResponseBody();
+ if (errorBody != null) {
+ // try to deserialize error body to ManagementError
+ try {
+ managementError = this.getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
+ if (managementError.getCode() == null || managementError.getMessage() == null) {
+ managementError = null;
+ }
+ } catch (IOException | RuntimeException ioe) {
+ LOGGER.logThrowableAsWarning(ioe);
+ }
+ }
+ } else {
+ // fallback to default error message
+ errorMessage = "Long running operation failed.";
+ }
+ if (managementError == null) {
+ // fallback to default ManagementError
+ managementError = new ManagementError(response.getStatus().toString(), errorMessage);
+ }
+ return Mono.error(new ManagementException(errorMessage, errorResponse, managementError));
+ } else {
+ return response.getFinalResult();
+ }
+ }
+
+ private static final class HttpResponseImpl extends HttpResponse {
+ private final int statusCode;
+
+ private final byte[] responseBody;
+
+ private final HttpHeaders httpHeaders;
+
+ HttpResponseImpl(int statusCode, HttpHeaders httpHeaders, String responseBody) {
+ super(null);
+ this.statusCode = statusCode;
+ this.httpHeaders = httpHeaders;
+ this.responseBody = responseBody == null ? new byte[0] : responseBody.getBytes(StandardCharsets.UTF_8);
+ }
+
+ public int getStatusCode() {
+ return statusCode;
+ }
+
+ public String getHeaderValue(String s) {
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
+ }
+
+ public HttpHeaders getHeaders() {
+ return httpHeaders;
+ }
+
+ public Flux getBody() {
+ return Flux.just(ByteBuffer.wrap(responseBody));
+ }
+
+ public Mono getBodyAsByteArray() {
+ return Mono.just(responseBody);
+ }
+
+ public Mono getBodyAsString() {
+ return Mono.just(new String(responseBody, StandardCharsets.UTF_8));
+ }
+
+ public Mono getBodyAsString(Charset charset) {
+ return Mono.just(new String(responseBody, charset));
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(DigitalAssetsManagementClientImpl.class);
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/OperationImpl.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/OperationImpl.java
new file mode 100644
index 000000000000..dcbff86ed3cb
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/OperationImpl.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.implementation;
+
+import com.azure.resourcemanager.digitalassets.fluent.models.OperationInner;
+import com.azure.resourcemanager.digitalassets.models.ActionType;
+import com.azure.resourcemanager.digitalassets.models.Operation;
+import com.azure.resourcemanager.digitalassets.models.OperationDisplay;
+import com.azure.resourcemanager.digitalassets.models.Origin;
+
+public final class OperationImpl implements Operation {
+ private OperationInner innerObject;
+
+ private final com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager;
+
+ OperationImpl(OperationInner innerObject,
+ com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public Boolean isDataAction() {
+ return this.innerModel().isDataAction();
+ }
+
+ public OperationDisplay display() {
+ return this.innerModel().display();
+ }
+
+ public Origin origin() {
+ return this.innerModel().origin();
+ }
+
+ public ActionType actionType() {
+ return this.innerModel().actionType();
+ }
+
+ public OperationInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.digitalassets.DigitalAssetsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/OperationsClientImpl.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/OperationsClientImpl.java
new file mode 100644
index 000000000000..e440198ba634
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/OperationsClientImpl.java
@@ -0,0 +1,242 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.implementation;
+
+import com.azure.core.annotation.ExpectedResponses;
+import com.azure.core.annotation.Get;
+import com.azure.core.annotation.HeaderParam;
+import com.azure.core.annotation.Headers;
+import com.azure.core.annotation.Host;
+import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.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.util.Context;
+import com.azure.core.util.FluxUtil;
+import com.azure.resourcemanager.digitalassets.fluent.OperationsClient;
+import com.azure.resourcemanager.digitalassets.fluent.models.OperationInner;
+import com.azure.resourcemanager.digitalassets.implementation.models.OperationListResult;
+import reactor.core.publisher.Mono;
+
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
+public final class OperationsClientImpl implements OperationsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final OperationsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final DigitalAssetsManagementClientImpl client;
+
+ /**
+ * Initializes an instance of OperationsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ OperationsClientImpl(DigitalAssetsManagementClientImpl client) {
+ this.service
+ = RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DigitalAssetsManagementClientOperations to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "DigitalAssetsManagementClientOperations")
+ public interface OperationsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.DigitalAssets/operations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/providers/Microsoft.DigitalAssets/operations")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listNext(@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 listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink,
+ @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listSinglePageAsync() {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(
+ context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), 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 the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listAsync() {
+ return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage() {
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listSinglePage(Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list() {
+ return new PagedIterable<>(() -> listSinglePage(), nextLink -> listNextSinglePage(nextLink));
+ }
+
+ /**
+ * List the operations for the provider.
+ *
+ * @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 list of REST API operations supported by an Azure Resource Provider as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable list(Context context) {
+ return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse} on
+ * successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listNextSinglePageAsync(String nextLink) {
+ final String accept = "application/json";
+ return FluxUtil.withContext(context -> service.listNext(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 a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return a list of REST API operations supported by an Azure Resource Provider along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/OperationsImpl.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/OperationsImpl.java
new file mode 100644
index 000000000000..face08d3c591
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/OperationsImpl.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.digitalassets.fluent.OperationsClient;
+import com.azure.resourcemanager.digitalassets.fluent.models.OperationInner;
+import com.azure.resourcemanager.digitalassets.models.Operation;
+import com.azure.resourcemanager.digitalassets.models.Operations;
+
+public final class OperationsImpl implements Operations {
+ private static final ClientLogger LOGGER = new ClientLogger(OperationsImpl.class);
+
+ private final OperationsClient innerClient;
+
+ private final com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager;
+
+ public OperationsImpl(OperationsClient innerClient,
+ com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public PagedIterable list() {
+ PagedIterable inner = this.serviceClient().list();
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable list(Context context) {
+ PagedIterable inner = this.serviceClient().list(context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new OperationImpl(inner1, this.manager()));
+ }
+
+ private OperationsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.digitalassets.DigitalAssetsManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/PartitionImpl.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/PartitionImpl.java
new file mode 100644
index 000000000000..026af92f4fe8
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/PartitionImpl.java
@@ -0,0 +1,189 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.digitalassets.fluent.models.PartitionInner;
+import com.azure.resourcemanager.digitalassets.models.Partition;
+import com.azure.resourcemanager.digitalassets.models.PartitionProperties;
+import com.azure.resourcemanager.digitalassets.models.PartitionTagsUpdate;
+import java.util.Collections;
+import java.util.Map;
+
+public final class PartitionImpl implements Partition, Partition.Definition, Partition.Update {
+ private PartitionInner innerObject;
+
+ private final com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public PartitionProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public PartitionInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.digitalassets.DigitalAssetsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String zkpRollupName;
+
+ private String partitionName;
+
+ private PartitionTagsUpdate updateProperties;
+
+ public PartitionImpl withExistingZkpRollup(String resourceGroupName, String zkpRollupName) {
+ this.resourceGroupName = resourceGroupName;
+ this.zkpRollupName = zkpRollupName;
+ return this;
+ }
+
+ public Partition create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getPartitions()
+ .createOrUpdate(resourceGroupName, zkpRollupName, partitionName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public Partition create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getPartitions()
+ .createOrUpdate(resourceGroupName, zkpRollupName, partitionName, this.innerModel(), context);
+ return this;
+ }
+
+ PartitionImpl(String name, com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager) {
+ this.innerObject = new PartitionInner();
+ this.serviceManager = serviceManager;
+ this.partitionName = name;
+ }
+
+ public PartitionImpl update() {
+ this.updateProperties = new PartitionTagsUpdate();
+ return this;
+ }
+
+ public Partition apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getPartitions()
+ .updateWithResponse(resourceGroupName, zkpRollupName, partitionName, updateProperties, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Partition apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getPartitions()
+ .updateWithResponse(resourceGroupName, zkpRollupName, partitionName, updateProperties, context)
+ .getValue();
+ return this;
+ }
+
+ PartitionImpl(PartitionInner innerObject,
+ com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "resourceGroupName");
+ this.zkpRollupName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "zkpRollupName");
+ this.partitionName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "partitionName");
+ }
+
+ public Partition refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getPartitions()
+ .getWithResponse(resourceGroupName, zkpRollupName, partitionName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Partition refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getPartitions()
+ .getWithResponse(resourceGroupName, zkpRollupName, partitionName, context)
+ .getValue();
+ return this;
+ }
+
+ public PartitionImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public PartitionImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public PartitionImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateProperties.withTags(tags);
+ return this;
+ }
+ }
+
+ public PartitionImpl withProperties(PartitionProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel() == null || this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/PartitionsClientImpl.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/PartitionsClientImpl.java
new file mode 100644
index 000000000000..bb14287e68c6
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/PartitionsClientImpl.java
@@ -0,0 +1,868 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.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.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.digitalassets.fluent.PartitionsClient;
+import com.azure.resourcemanager.digitalassets.fluent.models.PartitionInner;
+import com.azure.resourcemanager.digitalassets.implementation.models.PartitionListResult;
+import com.azure.resourcemanager.digitalassets.models.PartitionTagsUpdate;
+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 PartitionsClient.
+ */
+public final class PartitionsClientImpl implements PartitionsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final PartitionsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final DigitalAssetsManagementClientImpl client;
+
+ /**
+ * Initializes an instance of PartitionsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ PartitionsClientImpl(DigitalAssetsManagementClientImpl client) {
+ this.service
+ = RestProxy.create(PartitionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DigitalAssetsManagementClientPartitions to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "DigitalAssetsManagementClientPartitions")
+ public interface PartitionsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> get(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @PathParam("partitionName") String partitionName, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @PathParam("partitionName") String partitionName, @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @PathParam("partitionName") String partitionName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") PartitionInner resource,
+ Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @PathParam("partitionName") String partitionName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") PartitionInner resource,
+ Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @PathParam("partitionName") String partitionName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") PartitionTagsUpdate properties,
+ Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @PathParam("partitionName") String partitionName, @HeaderParam("Content-Type") String contentType,
+ @HeaderParam("Accept") String accept, @BodyParam("application/json") PartitionTagsUpdate properties,
+ Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @PathParam("partitionName") String partitionName, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @PathParam("partitionName") String partitionName, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByParent(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByParentSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @HeaderParam("Accept") String accept, 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 Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 Partition along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getWithResponseAsync(String resourceGroupName, String zkpRollupName,
+ String partitionName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, partitionName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 Partition on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getAsync(String resourceGroupName, String zkpRollupName, String partitionName) {
+ return getWithResponseAsync(resourceGroupName, zkpRollupName, partitionName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 Partition along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getWithResponse(String resourceGroupName, String zkpRollupName,
+ String partitionName, Context context) {
+ final String accept = "application/json";
+ return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, zkpRollupName, partitionName, accept, context);
+ }
+
+ /**
+ * Get a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 Partition.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PartitionInner get(String resourceGroupName, String zkpRollupName, String partitionName) {
+ return getWithResponse(resourceGroupName, zkpRollupName, partitionName, Context.NONE).getValue();
+ }
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String zkpRollupName, String partitionName, PartitionInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, partitionName, contentType, accept,
+ resource, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String zkpRollupName,
+ String partitionName, PartitionInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, partitionName, contentType, accept,
+ resource, Context.NONE);
+ }
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String zkpRollupName,
+ String partitionName, PartitionInner resource, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, partitionName, contentType, accept,
+ resource, context);
+ }
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, PartitionInner> beginCreateOrUpdateAsync(String resourceGroupName,
+ String zkpRollupName, String partitionName, PartitionInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, zkpRollupName, partitionName, resource);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ PartitionInner.class, PartitionInner.class, this.client.getContext());
+ }
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, PartitionInner> beginCreateOrUpdate(String resourceGroupName,
+ String zkpRollupName, String partitionName, PartitionInner resource) {
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, zkpRollupName, partitionName, resource);
+ return this.client.getLroResult(response, PartitionInner.class,
+ PartitionInner.class, Context.NONE);
+ }
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, PartitionInner> beginCreateOrUpdate(String resourceGroupName,
+ String zkpRollupName, String partitionName, PartitionInner resource, Context context) {
+ Response response
+ = createOrUpdateWithResponse(resourceGroupName, zkpRollupName, partitionName, resource, context);
+ return this.client.getLroResult(response, PartitionInner.class,
+ PartitionInner.class, context);
+ }
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String zkpRollupName,
+ String partitionName, PartitionInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, zkpRollupName, partitionName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PartitionInner createOrUpdate(String resourceGroupName, String zkpRollupName, String partitionName,
+ PartitionInner resource) {
+ return beginCreateOrUpdate(resourceGroupName, zkpRollupName, partitionName, resource).getFinalResult();
+ }
+
+ /**
+ * Creates or replaces a partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PartitionInner createOrUpdate(String resourceGroupName, String zkpRollupName, String partitionName,
+ PartitionInner resource, Context context) {
+ return beginCreateOrUpdate(resourceGroupName, zkpRollupName, partitionName, resource, context).getFinalResult();
+ }
+
+ /**
+ * Update a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup along with {@link Response} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(String resourceGroupName, String zkpRollupName,
+ String partitionName, PartitionTagsUpdate properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, partitionName, contentType, accept,
+ properties, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String zkpRollupName, String partitionName,
+ PartitionTagsUpdate properties) {
+ return updateWithResponseAsync(resourceGroupName, zkpRollupName, partitionName, properties)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Update a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(String resourceGroupName, String zkpRollupName,
+ String partitionName, PartitionTagsUpdate properties, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, partitionName, contentType, accept,
+ properties, context);
+ }
+
+ /**
+ * Update a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @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 a deployable partition of a ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public PartitionInner update(String resourceGroupName, String zkpRollupName, String partitionName,
+ PartitionTagsUpdate properties) {
+ return updateWithResponse(resourceGroupName, zkpRollupName, partitionName, properties, Context.NONE).getValue();
+ }
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String zkpRollupName,
+ String partitionName) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, partitionName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String zkpRollupName,
+ String partitionName) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, partitionName, Context.NONE);
+ }
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response deleteWithResponse(String resourceGroupName, String zkpRollupName,
+ String partitionName, Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, partitionName, context);
+ }
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link PollerFlux} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String zkpRollupName,
+ String partitionName) {
+ Mono>> mono
+ = deleteWithResponseAsync(resourceGroupName, zkpRollupName, partitionName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String zkpRollupName,
+ String partitionName) {
+ Response response = deleteWithResponse(resourceGroupName, zkpRollupName, partitionName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String zkpRollupName,
+ String partitionName, Context context) {
+ Response response = deleteWithResponse(resourceGroupName, zkpRollupName, partitionName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return A {@link Mono} that completes when a successful response is received.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono deleteAsync(String resourceGroupName, String zkpRollupName, String partitionName) {
+ return beginDeleteAsync(resourceGroupName, zkpRollupName, partitionName).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String zkpRollupName, String partitionName) {
+ beginDelete(resourceGroupName, zkpRollupName, partitionName).getFinalResult();
+ }
+
+ /**
+ * Delete a Partition.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup resource.
+ * @param partitionName The name of the partition.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public void delete(String resourceGroupName, String zkpRollupName, String partitionName, Context context) {
+ beginDelete(resourceGroupName, zkpRollupName, partitionName, context).getFinalResult();
+ }
+
+ /**
+ * List Partition resources by ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 Partition list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> listByParentSinglePageAsync(String resourceGroupName,
+ String zkpRollupName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.listByParent(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, 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 Partition resources by ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 Partition list operation as paginated response with {@link PagedFlux}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ private PagedFlux listByParentAsync(String resourceGroupName, String zkpRollupName) {
+ return new PagedFlux<>(() -> listByParentSinglePageAsync(resourceGroupName, zkpRollupName),
+ nextLink -> listByParentNextSinglePageAsync(nextLink));
+ }
+
+ /**
+ * List Partition resources by ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 Partition list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByParentSinglePage(String resourceGroupName, String zkpRollupName) {
+ final String accept = "application/json";
+ Response res
+ = service.listByParentSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List Partition resources by ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 Partition list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByParentSinglePage(String resourceGroupName, String zkpRollupName,
+ Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByParentSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * List Partition resources by ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 Partition list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByParent(String resourceGroupName, String zkpRollupName) {
+ return new PagedIterable<>(() -> listByParentSinglePage(resourceGroupName, zkpRollupName),
+ nextLink -> listByParentNextSinglePage(nextLink));
+ }
+
+ /**
+ * List Partition resources by ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 Partition list operation as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ public PagedIterable listByParent(String resourceGroupName, String zkpRollupName, Context context) {
+ return new PagedIterable<>(() -> listByParentSinglePage(resourceGroupName, zkpRollupName, context),
+ nextLink -> listByParentNextSinglePage(nextLink, context));
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Partition 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 Partition list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByParentNextSinglePage(String nextLink) {
+ final String accept = "application/json";
+ Response res
+ = service.listByParentNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+
+ /**
+ * Get the next page of items.
+ *
+ * @param nextLink The URL to get the next list of items.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response of a Partition list operation along with {@link PagedResponse}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private PagedResponse listByParentNextSinglePage(String nextLink, Context context) {
+ final String accept = "application/json";
+ Response res
+ = service.listByParentNextSync(nextLink, this.client.getEndpoint(), accept, context);
+ return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(),
+ res.getValue().nextLink(), null);
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/PartitionsImpl.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/PartitionsImpl.java
new file mode 100644
index 000000000000..a17eb426dfaf
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/PartitionsImpl.java
@@ -0,0 +1,177 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.implementation;
+
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.SimpleResponse;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.digitalassets.fluent.PartitionsClient;
+import com.azure.resourcemanager.digitalassets.fluent.models.PartitionInner;
+import com.azure.resourcemanager.digitalassets.models.Partition;
+import com.azure.resourcemanager.digitalassets.models.Partitions;
+
+public final class PartitionsImpl implements Partitions {
+ private static final ClientLogger LOGGER = new ClientLogger(PartitionsImpl.class);
+
+ private final PartitionsClient innerClient;
+
+ private final com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager;
+
+ public PartitionsImpl(PartitionsClient innerClient,
+ com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager) {
+ this.innerClient = innerClient;
+ this.serviceManager = serviceManager;
+ }
+
+ public Response getWithResponse(String resourceGroupName, String zkpRollupName, String partitionName,
+ Context context) {
+ Response inner
+ = this.serviceClient().getWithResponse(resourceGroupName, zkpRollupName, partitionName, context);
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new PartitionImpl(inner.getValue(), this.manager()));
+ }
+
+ public Partition get(String resourceGroupName, String zkpRollupName, String partitionName) {
+ PartitionInner inner = this.serviceClient().get(resourceGroupName, zkpRollupName, partitionName);
+ if (inner != null) {
+ return new PartitionImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public void delete(String resourceGroupName, String zkpRollupName, String partitionName) {
+ this.serviceClient().delete(resourceGroupName, zkpRollupName, partitionName);
+ }
+
+ public void delete(String resourceGroupName, String zkpRollupName, String partitionName, Context context) {
+ this.serviceClient().delete(resourceGroupName, zkpRollupName, partitionName, context);
+ }
+
+ public PagedIterable listByParent(String resourceGroupName, String zkpRollupName) {
+ PagedIterable inner = this.serviceClient().listByParent(resourceGroupName, zkpRollupName);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new PartitionImpl(inner1, this.manager()));
+ }
+
+ public PagedIterable listByParent(String resourceGroupName, String zkpRollupName, Context context) {
+ PagedIterable inner
+ = this.serviceClient().listByParent(resourceGroupName, zkpRollupName, context);
+ return ResourceManagerUtils.mapPage(inner, inner1 -> new PartitionImpl(inner1, this.manager()));
+ }
+
+ public Partition getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "resourceGroupName");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String zkpRollupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "zkpRollupName");
+ if (zkpRollupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'zkpRollups'.", id)));
+ }
+ String partitionName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "partitionName");
+ if (partitionName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'partitions'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, zkpRollupName, partitionName, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "resourceGroupName");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String zkpRollupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "zkpRollupName");
+ if (zkpRollupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'zkpRollups'.", id)));
+ }
+ String partitionName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "partitionName");
+ if (partitionName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'partitions'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, zkpRollupName, partitionName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "resourceGroupName");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String zkpRollupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "zkpRollupName");
+ if (zkpRollupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'zkpRollups'.", id)));
+ }
+ String partitionName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "partitionName");
+ if (partitionName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'partitions'.", id)));
+ }
+ this.delete(resourceGroupName, zkpRollupName, partitionName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "resourceGroupName");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String zkpRollupName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "zkpRollupName");
+ if (zkpRollupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'zkpRollups'.", id)));
+ }
+ String partitionName = ResourceManagerUtils.getValueFromIdByParameterName(id,
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}/partitions/{partitionName}",
+ "partitionName");
+ if (partitionName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'partitions'.", id)));
+ }
+ this.delete(resourceGroupName, zkpRollupName, partitionName, context);
+ }
+
+ private PartitionsClient serviceClient() {
+ return this.innerClient;
+ }
+
+ private com.azure.resourcemanager.digitalassets.DigitalAssetsManager manager() {
+ return this.serviceManager;
+ }
+
+ public PartitionImpl define(String name) {
+ return new PartitionImpl(name, this.manager());
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/ResourceManagerUtils.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/ResourceManagerUtils.java
new file mode 100644
index 000000000000..c669b13bdbbd
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/ResourceManagerUtils.java
@@ -0,0 +1,177 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.implementation;
+
+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 java.util.Arrays;
+import java.util.Iterator;
+import java.util.function.Function;
+import java.util.stream.Collectors;
+import java.util.stream.Stream;
+import reactor.core.publisher.Flux;
+
+final class ResourceManagerUtils {
+ private ResourceManagerUtils() {
+ }
+
+ static String getValueFromIdByParameterName(String id, String pathTemplate, String parameterName) {
+ if (id == null || pathTemplate == null || parameterName == null) {
+ return null;
+ }
+ String[] idSegments = id.split("/", -1);
+ String[] pathSegments = pathTemplate.split("/", -1);
+ int idStart = idSegments[0].isEmpty() ? 1 : 0;
+ int pathStart = pathSegments[0].isEmpty() ? 1 : 0;
+ if (idStart == idSegments.length || pathStart == pathSegments.length) {
+ return null;
+ }
+ for (int i = idStart; i < idSegments.length; ++i) {
+ if (idSegments[i].isEmpty()) {
+ return null;
+ }
+ }
+ String parameterPlaceholder = "{" + parameterName + "}";
+ String value = null;
+ int idIndex = idSegments.length - 1;
+ for (int pathIndex = pathSegments.length - 1; pathIndex >= pathStart; --pathIndex, --idIndex) {
+ String pathSegment = pathSegments[pathIndex];
+ boolean isParameter = pathSegment.startsWith("{") && pathSegment.endsWith("}");
+ if (pathIndex == pathStart && isParameter) {
+ // A leading scope can span multiple segments, or be empty for tenant resources.
+ if (pathSegment.equalsIgnoreCase(parameterPlaceholder)) {
+ value = String.join("/", Arrays.copyOfRange(idSegments, idStart, idIndex + 1));
+ }
+ idIndex = idStart;
+ } else if (idIndex < idStart) {
+ return null;
+ } else if (!isParameter && !pathSegment.equalsIgnoreCase(idSegments[idIndex])) {
+ return null;
+ } else if (pathSegment.equalsIgnoreCase(parameterPlaceholder)) {
+ value = idSegments[idIndex];
+ }
+ }
+ return idIndex < idStart ? value : null;
+ }
+
+ static PagedIterable mapPage(PagedIterable pageIterable, Function mapper) {
+ return new PagedIterableImpl<>(pageIterable, mapper);
+ }
+
+ private static final class PagedIterableImpl extends PagedIterable {
+
+ private final PagedIterable pagedIterable;
+ private final Function mapper;
+ private final Function, PagedResponse> pageMapper;
+
+ private PagedIterableImpl(PagedIterable pagedIterable, Function mapper) {
+ super(PagedFlux.create(() -> (continuationToken, pageSize) -> Flux
+ .fromStream(pagedIterable.streamByPage().map(getPageMapper(mapper)))));
+ this.pagedIterable = pagedIterable;
+ this.mapper = mapper;
+ this.pageMapper = getPageMapper(mapper);
+ }
+
+ private static Function, PagedResponse> getPageMapper(Function mapper) {
+ return page -> new PagedResponseBase(page.getRequest(), page.getStatusCode(), page.getHeaders(),
+ page.getElements().stream().map(mapper).collect(Collectors.toList()), page.getContinuationToken(),
+ null);
+ }
+
+ @Override
+ public Stream stream() {
+ return pagedIterable.stream().map(mapper);
+ }
+
+ @Override
+ public Stream> streamByPage() {
+ return pagedIterable.streamByPage().map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken) {
+ return pagedIterable.streamByPage(continuationToken).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(int preferredPageSize) {
+ return pagedIterable.streamByPage(preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Stream> streamByPage(String continuationToken, int preferredPageSize) {
+ return pagedIterable.streamByPage(continuationToken, preferredPageSize).map(pageMapper);
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl<>(pagedIterable.iterator(), mapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage() {
+ return new IterableImpl<>(pagedIterable.iterableByPage(), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(int preferredPageSize) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(preferredPageSize), pageMapper);
+ }
+
+ @Override
+ public Iterable> iterableByPage(String continuationToken, int preferredPageSize) {
+ return new IterableImpl<>(pagedIterable.iterableByPage(continuationToken, preferredPageSize), pageMapper);
+ }
+ }
+
+ private static final class IteratorImpl implements Iterator {
+
+ private final Iterator iterator;
+ private final Function mapper;
+
+ private IteratorImpl(Iterator iterator, Function mapper) {
+ this.iterator = iterator;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public boolean hasNext() {
+ return iterator.hasNext();
+ }
+
+ @Override
+ public S next() {
+ return mapper.apply(iterator.next());
+ }
+
+ @Override
+ public void remove() {
+ iterator.remove();
+ }
+ }
+
+ private static final class IterableImpl implements Iterable {
+
+ private final Iterable iterable;
+ private final Function mapper;
+
+ private IterableImpl(Iterable iterable, Function mapper) {
+ this.iterable = iterable;
+ this.mapper = mapper;
+ }
+
+ @Override
+ public Iterator iterator() {
+ return new IteratorImpl<>(iterable.iterator(), mapper);
+ }
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/ZkpRollupImpl.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/ZkpRollupImpl.java
new file mode 100644
index 000000000000..5c00d0f98e48
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/ZkpRollupImpl.java
@@ -0,0 +1,203 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.digitalassets.fluent.models.ZkpRollupInner;
+import com.azure.resourcemanager.digitalassets.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.digitalassets.models.ZkpRollup;
+import com.azure.resourcemanager.digitalassets.models.ZkpRollupIdentityUpdate;
+import com.azure.resourcemanager.digitalassets.models.ZkpRollupPatchProperties;
+import com.azure.resourcemanager.digitalassets.models.ZkpRollupProperties;
+import com.azure.resourcemanager.digitalassets.models.ZkpRollupUpdate;
+import java.util.Collections;
+import java.util.Map;
+
+public final class ZkpRollupImpl implements ZkpRollup, ZkpRollup.Definition, ZkpRollup.Update {
+ private ZkpRollupInner innerObject;
+
+ private final com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public ZkpRollupProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
+ public ZkpRollupInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.digitalassets.DigitalAssetsManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String zkpRollupName;
+
+ private ZkpRollupUpdate updateProperties;
+
+ public ZkpRollupImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public ZkpRollup create() {
+ this.innerObject = serviceManager.serviceClient()
+ .getZkpRollups()
+ .createOrUpdate(resourceGroupName, zkpRollupName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public ZkpRollup create(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getZkpRollups()
+ .createOrUpdate(resourceGroupName, zkpRollupName, this.innerModel(), context);
+ return this;
+ }
+
+ ZkpRollupImpl(String name, com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager) {
+ this.innerObject = new ZkpRollupInner();
+ this.serviceManager = serviceManager;
+ this.zkpRollupName = name;
+ }
+
+ public ZkpRollupImpl update() {
+ this.updateProperties = new ZkpRollupUpdate();
+ return this;
+ }
+
+ public ZkpRollup apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getZkpRollups()
+ .update(resourceGroupName, zkpRollupName, updateProperties, Context.NONE);
+ return this;
+ }
+
+ public ZkpRollup apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getZkpRollups()
+ .update(resourceGroupName, zkpRollupName, updateProperties, context);
+ return this;
+ }
+
+ ZkpRollupImpl(ZkpRollupInner innerObject,
+ com.azure.resourcemanager.digitalassets.DigitalAssetsManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}",
+ "resourceGroupName");
+ this.zkpRollupName = ResourceManagerUtils.getValueFromIdByParameterName(innerObject.id(),
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}",
+ "zkpRollupName");
+ }
+
+ public ZkpRollup refresh() {
+ this.innerObject = serviceManager.serviceClient()
+ .getZkpRollups()
+ .getByResourceGroupWithResponse(resourceGroupName, zkpRollupName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public ZkpRollup refresh(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getZkpRollups()
+ .getByResourceGroupWithResponse(resourceGroupName, zkpRollupName, context)
+ .getValue();
+ return this;
+ }
+
+ public ZkpRollupImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public ZkpRollupImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public ZkpRollupImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateProperties.withTags(tags);
+ return this;
+ }
+ }
+
+ public ZkpRollupImpl withProperties(ZkpRollupProperties properties) {
+ this.innerModel().withProperties(properties);
+ return this;
+ }
+
+ public ZkpRollupImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
+ return this;
+ }
+
+ public ZkpRollupImpl withIdentity(ZkpRollupIdentityUpdate identity) {
+ this.updateProperties.withIdentity(identity);
+ return this;
+ }
+
+ public ZkpRollupImpl withProperties(ZkpRollupPatchProperties properties) {
+ this.updateProperties.withProperties(properties);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel() == null || this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/ZkpRollupsClientImpl.java b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/ZkpRollupsClientImpl.java
new file mode 100644
index 000000000000..25d5535d2cfe
--- /dev/null
+++ b/sdk/digitalassets/azure-resourcemanager-digitalassets/src/main/java/com/azure/resourcemanager/digitalassets/implementation/ZkpRollupsClientImpl.java
@@ -0,0 +1,1113 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
+
+package com.azure.resourcemanager.digitalassets.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.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.digitalassets.fluent.ZkpRollupsClient;
+import com.azure.resourcemanager.digitalassets.fluent.models.ZkpRollupInner;
+import com.azure.resourcemanager.digitalassets.implementation.models.ZkpRollupListResult;
+import com.azure.resourcemanager.digitalassets.models.ZkpRollupUpdate;
+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 ZkpRollupsClient.
+ */
+public final class ZkpRollupsClientImpl implements ZkpRollupsClient {
+ /**
+ * The proxy service used to perform REST calls.
+ */
+ private final ZkpRollupsService service;
+
+ /**
+ * The service client containing this operation class.
+ */
+ private final DigitalAssetsManagementClientImpl client;
+
+ /**
+ * Initializes an instance of ZkpRollupsClientImpl.
+ *
+ * @param client the instance of the service client containing this operation class.
+ */
+ ZkpRollupsClientImpl(DigitalAssetsManagementClientImpl client) {
+ this.service
+ = RestProxy.create(ZkpRollupsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
+ this.client = client;
+ }
+
+ /**
+ * The interface defining all the services for DigitalAssetsManagementClientZkpRollups to be used by the proxy
+ * service to perform REST calls.
+ */
+ @Host("{endpoint}")
+ @ServiceInterface(name = "DigitalAssetsManagementClientZkpRollups")
+ public interface ZkpRollupsService {
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> getByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response getByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> createOrUpdate(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ZkpRollupInner resource, Context context);
+
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}")
+ @ExpectedResponses({ 200, 201 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response createOrUpdateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ZkpRollupInner resource, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> update(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ZkpRollupUpdate properties, Context context);
+
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response updateSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ZkpRollupUpdate properties, Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> delete(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ Context context);
+
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups/{zkpRollupName}")
+ @ExpectedResponses({ 202, 204 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response deleteSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("zkpRollupName") String zkpRollupName,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroup(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DigitalAssets/zkpRollups")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept,
+ Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DigitalAssets/zkpRollups")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.DigitalAssets/zkpRollups")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listSync(@HostParam("endpoint") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listByResourceGroupNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listByResourceGroupNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> listBySubscriptionNext(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Get("{nextLink}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Response listBySubscriptionNextSync(
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
+ }
+
+ /**
+ * Get a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 ZkpRollup along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String zkpRollupName) {
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Get a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 ZkpRollup on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono getByResourceGroupAsync(String resourceGroupName, String zkpRollupName) {
+ return getByResourceGroupWithResponseAsync(resourceGroupName, zkpRollupName)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Get a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 ZkpRollup along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response getByResourceGroupWithResponse(String resourceGroupName, String zkpRollupName,
+ Context context) {
+ final String accept = "application/json";
+ return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, accept, context);
+ }
+
+ /**
+ * Get a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 ZkpRollup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ZkpRollupInner getByResourceGroup(String resourceGroupName, String zkpRollupName) {
+ return getByResourceGroupWithResponse(resourceGroupName, zkpRollupName, Context.NONE).getValue();
+ }
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName,
+ String zkpRollupName, ZkpRollupInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, contentType, accept, resource,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String zkpRollupName,
+ ZkpRollupInner resource) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, contentType, accept, resource,
+ Context.NONE);
+ }
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response createOrUpdateWithResponse(String resourceGroupName, String zkpRollupName,
+ ZkpRollupInner resource, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, contentType, accept, resource, context);
+ }
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ZkpRollupInner> beginCreateOrUpdateAsync(String resourceGroupName,
+ String zkpRollupName, ZkpRollupInner resource) {
+ Mono>> mono
+ = createOrUpdateWithResponseAsync(resourceGroupName, zkpRollupName, resource);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ ZkpRollupInner.class, ZkpRollupInner.class, this.client.getContext());
+ }
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ZkpRollupInner> beginCreateOrUpdate(String resourceGroupName,
+ String zkpRollupName, ZkpRollupInner resource) {
+ Response response = createOrUpdateWithResponse(resourceGroupName, zkpRollupName, resource);
+ return this.client.getLroResult(response, ZkpRollupInner.class,
+ ZkpRollupInner.class, Context.NONE);
+ }
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ZkpRollupInner> beginCreateOrUpdate(String resourceGroupName,
+ String zkpRollupName, ZkpRollupInner resource, Context context) {
+ Response response = createOrUpdateWithResponse(resourceGroupName, zkpRollupName, resource, context);
+ return this.client.getLroResult(response, ZkpRollupInner.class,
+ ZkpRollupInner.class, context);
+ }
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono createOrUpdateAsync(String resourceGroupName, String zkpRollupName,
+ ZkpRollupInner resource) {
+ return beginCreateOrUpdateAsync(resourceGroupName, zkpRollupName, resource).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ZkpRollupInner createOrUpdate(String resourceGroupName, String zkpRollupName, ZkpRollupInner resource) {
+ return beginCreateOrUpdate(resourceGroupName, zkpRollupName, resource).getFinalResult();
+ }
+
+ /**
+ * Creates or replaces a ZKP rollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ZkpRollupInner createOrUpdate(String resourceGroupName, String zkpRollupName, ZkpRollupInner resource,
+ Context context) {
+ return beginCreateOrUpdate(resourceGroupName, zkpRollupName, resource, context).getFinalResult();
+ }
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String zkpRollupName,
+ ZkpRollupUpdate properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, contentType, accept, properties,
+ context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String zkpRollupName,
+ ZkpRollupUpdate properties) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, contentType, accept, properties,
+ Context.NONE);
+ }
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Response updateWithResponse(String resourceGroupName, String zkpRollupName,
+ ZkpRollupUpdate properties, Context context) {
+ final String contentType = "application/json";
+ final String accept = "application/json";
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, contentType, accept, properties,
+ context);
+ }
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ private PollerFlux, ZkpRollupInner> beginUpdateAsync(String resourceGroupName,
+ String zkpRollupName, ZkpRollupUpdate properties) {
+ Mono>> mono = updateWithResponseAsync(resourceGroupName, zkpRollupName, properties);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(),
+ ZkpRollupInner.class, ZkpRollupInner.class, this.client.getContext());
+ }
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ZkpRollupInner> beginUpdate(String resourceGroupName,
+ String zkpRollupName, ZkpRollupUpdate properties) {
+ Response response = updateWithResponse(resourceGroupName, zkpRollupName, properties);
+ return this.client.getLroResult(response, ZkpRollupInner.class,
+ ZkpRollupInner.class, Context.NONE);
+ }
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ public SyncPoller, ZkpRollupInner> beginUpdate(String resourceGroupName,
+ String zkpRollupName, ZkpRollupUpdate properties, Context context) {
+ Response response = updateWithResponse(resourceGroupName, zkpRollupName, properties, context);
+ return this.client.getLroResult(response, ZkpRollupInner.class,
+ ZkpRollupInner.class, context);
+ }
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName, String zkpRollupName,
+ ZkpRollupUpdate properties) {
+ return beginUpdateAsync(resourceGroupName, zkpRollupName, properties).last()
+ .flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ZkpRollupInner update(String resourceGroupName, String zkpRollupName, ZkpRollupUpdate properties) {
+ return beginUpdate(resourceGroupName, zkpRollupName, properties).getFinalResult();
+ }
+
+ /**
+ * Updates rollup tags, identity attachments or configuration. Metadata-only updates complete synchronously.
+ * Configuration changes reconcile the rollup and existing partition asynchronously, preserving checkpoints and
+ * discovered contracts.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 a DigitalAssets ZKP rollup resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public ZkpRollupInner update(String resourceGroupName, String zkpRollupName, ZkpRollupUpdate properties,
+ Context context) {
+ return beginUpdate(resourceGroupName, zkpRollupName, properties, context).getFinalResult();
+ }
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 resourceGroupName, String zkpRollupName) {
+ return FluxUtil
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 resourceGroupName, String zkpRollupName) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, Context.NONE);
+ }
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 resourceGroupName, String zkpRollupName, Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, zkpRollupName, context);
+ }
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 resourceGroupName, String zkpRollupName) {
+ Mono>> mono = deleteWithResponseAsync(resourceGroupName, zkpRollupName);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
+ }
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 resourceGroupName, String zkpRollupName) {
+ Response response = deleteWithResponse(resourceGroupName, zkpRollupName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ }
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 resourceGroupName, String zkpRollupName,
+ Context context) {
+ Response response = deleteWithResponse(resourceGroupName, zkpRollupName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
+ }
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 resourceGroupName, String zkpRollupName) {
+ return beginDeleteAsync(resourceGroupName, zkpRollupName).last().flatMap(this.client::getLroFinalResultOrError);
+ }
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 resourceGroupName, String zkpRollupName) {
+ beginDelete(resourceGroupName, zkpRollupName).getFinalResult();
+ }
+
+ /**
+ * Delete a ZkpRollup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param zkpRollupName The name of the ZKP rollup 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 resourceGroupName, String zkpRollupName, Context context) {
+ beginDelete(resourceGroupName, zkpRollupName, context).getFinalResult();
+ }
+
+ /**
+ * List ZkpRollup 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 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 ZkpRollup list operation along with {@link PagedResponse} on successful completion of
+ * {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono