com.azure.resourcemanager
azure-resourcemanager-resources
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/ConfidentialLedgerManager.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/ConfidentialLedgerManager.java
index 70b4fa912e44..f72b276b58b1 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/ConfidentialLedgerManager.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/ConfidentialLedgerManager.java
@@ -11,8 +11,8 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
@@ -41,8 +41,8 @@
import java.util.stream.Collectors;
/**
- * Entry point to ConfidentialLedgerManager. Microsoft Azure Confidential Compute Ledger Control Plane REST API version
- * 2020-12-01-preview.
+ * Entry point to ConfidentialLedgerManager.
+ * Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview.
*/
public final class ConfidentialLedgerManager {
private Operations operations;
@@ -58,18 +58,16 @@ public final class ConfidentialLedgerManager {
private ConfidentialLedgerManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject =
- new ConfidentialLedgerManagementClientBuilder()
- .pipeline(httpPipeline)
- .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
- .subscriptionId(profile.getSubscriptionId())
- .defaultPollInterval(defaultPollInterval)
- .buildClient();
+ this.clientObject = new ConfidentialLedgerManagementClientBuilder().pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
}
/**
* Creates an instance of ConfidentialLedger service API entry point.
- *
+ *
* @param credential the credential to use.
* @param profile the Azure profile for client.
* @return the ConfidentialLedger service API instance.
@@ -82,7 +80,7 @@ public static ConfidentialLedgerManager authenticate(TokenCredential credential,
/**
* Creates an instance of ConfidentialLedger service API entry point.
- *
+ *
* @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
* @param profile the Azure profile for client.
* @return the ConfidentialLedger service API instance.
@@ -95,14 +93,16 @@ public static ConfidentialLedgerManager authenticate(HttpPipeline httpPipeline,
/**
* Gets a Configurable instance that can be used to create ConfidentialLedgerManager with optional configuration.
- *
+ *
* @return the Configurable instance allowing configurations.
*/
public static Configurable configure() {
return new ConfidentialLedgerManager.Configurable();
}
- /** The Configurable allowing configurations to be set. */
+ /**
+ * The Configurable allowing configurations to be set.
+ */
public static final class Configurable {
private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
@@ -174,8 +174,8 @@ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
/**
* Sets the retry options for the HTTP pipeline retry policy.
- *
- * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * 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.
@@ -192,8 +192,8 @@ public Configurable withRetryOptions(RetryOptions retryOptions) {
* @return the configurable object itself.
*/
public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
- this.defaultPollInterval =
- Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ this.defaultPollInterval
+ = Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
if (this.defaultPollInterval.isNegative()) {
throw LOGGER
.logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
@@ -213,15 +213,13 @@ public ConfidentialLedgerManager authenticate(TokenCredential credential, AzureP
Objects.requireNonNull(profile, "'profile' cannot be null.");
StringBuilder userAgentBuilder = new StringBuilder();
- userAgentBuilder
- .append("azsdk-java")
+ userAgentBuilder.append("azsdk-java")
.append("-")
.append("com.azure.resourcemanager.confidentialledger")
.append("/")
- .append("1.0.0-beta.3");
+ .append("1.0.0-beta.4");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
- userAgentBuilder
- .append(" (")
+ userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
.append("; ")
.append(Configuration.getGlobalConfiguration().get("os.name"))
@@ -246,38 +244,28 @@ public ConfidentialLedgerManager authenticate(TokenCredential credential, AzureP
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()));
+ 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 ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
- policies
- .addAll(
- this
- .policies
- .stream()
- .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
- .collect(Collectors.toList()));
+ 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();
+ HttpPipeline httpPipeline = new HttpPipelineBuilder().httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
return new ConfidentialLedgerManager(httpPipeline, profile, defaultPollInterval);
}
}
/**
* Gets the resource collection API of Operations.
- *
+ *
* @return Resource collection API of Operations.
*/
public Operations operations() {
@@ -289,7 +277,7 @@ public Operations operations() {
/**
* Gets the resource collection API of ResourceProviders.
- *
+ *
* @return Resource collection API of ResourceProviders.
*/
public ResourceProviders resourceProviders() {
@@ -301,7 +289,7 @@ public ResourceProviders resourceProviders() {
/**
* Gets the resource collection API of Ledgers. It manages ConfidentialLedger.
- *
+ *
* @return Resource collection API of Ledgers.
*/
public Ledgers ledgers() {
@@ -313,7 +301,7 @@ public Ledgers ledgers() {
/**
* Gets the resource collection API of ManagedCcfs. It manages ManagedCcf.
- *
+ *
* @return Resource collection API of ManagedCcfs.
*/
public ManagedCcfs managedCcfs() {
@@ -324,8 +312,10 @@ public ManagedCcfs managedCcfs() {
}
/**
- * @return Wrapped service client ConfidentialLedgerManagementClient providing direct access to the underlying
- * auto-generated API implementation, based on Azure REST API.
+ * Gets wrapped service client ConfidentialLedgerManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ *
+ * @return Wrapped service client ConfidentialLedgerManagementClient.
*/
public ConfidentialLedgerManagementClient serviceClient() {
return this.clientObject;
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ConfidentialLedgerManagementClient.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ConfidentialLedgerManagementClient.java
index 4ee01b730705..4bfa02bd49e2 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ConfidentialLedgerManagementClient.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ConfidentialLedgerManagementClient.java
@@ -7,67 +7,69 @@
import com.azure.core.http.HttpPipeline;
import java.time.Duration;
-/** The interface for ConfidentialLedgerManagementClient class. */
+/**
+ * The interface for ConfidentialLedgerManagementClient class.
+ */
public interface ConfidentialLedgerManagementClient {
/**
* Gets The ID of the target subscription.
- *
+ *
* @return the subscriptionId value.
*/
String getSubscriptionId();
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
String getEndpoint();
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
String getApiVersion();
/**
* 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 ResourceProvidersClient object to access its operations.
- *
+ *
* @return the ResourceProvidersClient object.
*/
ResourceProvidersClient getResourceProviders();
/**
* Gets the LedgersClient object to access its operations.
- *
+ *
* @return the LedgersClient object.
*/
LedgersClient getLedgers();
/**
* Gets the ManagedCcfsClient object to access its operations.
- *
+ *
* @return the ManagedCcfsClient object.
*/
ManagedCcfsClient getManagedCcfs();
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/LedgersClient.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/LedgersClient.java
index f2dffb960d73..a1900481b154 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/LedgersClient.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/LedgersClient.java
@@ -11,15 +11,21 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.confidentialledger.fluent.models.ConfidentialLedgerBackupResponseInner;
import com.azure.resourcemanager.confidentialledger.fluent.models.ConfidentialLedgerInner;
+import com.azure.resourcemanager.confidentialledger.fluent.models.ConfidentialLedgerRestoreResponseInner;
+import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerBackup;
+import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerRestore;
-/** An instance of this class provides access to all the operations defined in LedgersClient. */
+/**
+ * An instance of this class provides access to all the operations defined in LedgersClient.
+ */
public interface LedgersClient {
/**
* Retrieves information about a Confidential Ledger resource.
- *
- *
Retrieves the properties of a Confidential Ledger.
- *
+ *
+ * Retrieves the properties of a Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param context The context to associate with this operation.
@@ -29,14 +35,14 @@ public interface LedgersClient {
* @return confidential Ledger along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(
- String resourceGroupName, String ledgerName, Context context);
+ Response getByResourceGroupWithResponse(String resourceGroupName, String ledgerName,
+ Context context);
/**
* Retrieves information about a Confidential Ledger resource.
- *
- * Retrieves the properties of a Confidential Ledger.
- *
+ *
+ * Retrieves the properties of a Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -49,9 +55,9 @@ Response getByResourceGroupWithResponse(
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -64,9 +70,9 @@ Response getByResourceGroupWithResponse(
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param context The context to associate with this operation.
@@ -80,9 +86,9 @@ Response getByResourceGroupWithResponse(
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -94,9 +100,9 @@ Response getByResourceGroupWithResponse(
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param context The context to associate with this operation.
@@ -109,9 +115,9 @@ Response getByResourceGroupWithResponse(
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -121,14 +127,14 @@ Response getByResourceGroupWithResponse(
* @return the {@link SyncPoller} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfidentialLedgerInner> beginCreate(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger);
+ SyncPoller, ConfidentialLedgerInner> beginCreate(String resourceGroupName,
+ String ledgerName, ConfidentialLedgerInner confidentialLedger);
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -139,14 +145,14 @@ SyncPoller, ConfidentialLedgerInner> beginCr
* @return the {@link SyncPoller} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfidentialLedgerInner> beginCreate(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context);
+ SyncPoller, ConfidentialLedgerInner> beginCreate(String resourceGroupName,
+ String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context);
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -156,14 +162,14 @@ SyncPoller, ConfidentialLedgerInner> beginCr
* @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfidentialLedgerInner create(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger);
+ ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger);
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -174,14 +180,14 @@ ConfidentialLedgerInner create(
* @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfidentialLedgerInner create(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context);
+ ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger, Context context);
/**
* Update Confidential Ledger properties
- *
- *
Updates properties of Confidential Ledger.
- *
+ *
+ * Updates properties of Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger request body for Updating Ledger.
@@ -191,14 +197,14 @@ ConfidentialLedgerInner create(
* @return the {@link SyncPoller} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfidentialLedgerInner> beginUpdate(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger);
+ SyncPoller, ConfidentialLedgerInner> beginUpdate(String resourceGroupName,
+ String ledgerName, ConfidentialLedgerInner confidentialLedger);
/**
* Update Confidential Ledger properties
- *
- * Updates properties of Confidential Ledger.
- *
+ *
+ * Updates properties of Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger request body for Updating Ledger.
@@ -209,14 +215,14 @@ SyncPoller, ConfidentialLedgerInner> beginUp
* @return the {@link SyncPoller} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfidentialLedgerInner> beginUpdate(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context);
+ SyncPoller, ConfidentialLedgerInner> beginUpdate(String resourceGroupName,
+ String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context);
/**
* Update Confidential Ledger properties
- *
- * Updates properties of Confidential Ledger.
- *
+ *
+ * Updates properties of Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger request body for Updating Ledger.
@@ -226,14 +232,14 @@ SyncPoller, ConfidentialLedgerInner> beginUp
* @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfidentialLedgerInner update(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger);
+ ConfidentialLedgerInner update(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger);
/**
* Update Confidential Ledger properties
- *
- * Updates properties of Confidential Ledger.
- *
+ *
+ * Updates properties of Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger request body for Updating Ledger.
@@ -244,29 +250,29 @@ ConfidentialLedgerInner update(
* @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfidentialLedgerInner update(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context);
+ ConfidentialLedgerInner update(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger, Context context);
/**
* Retrieves information about all Confidential Ledger resources under the given subscription and resource group
- *
- *
Retrieves the properties of all Confidential Ledgers.
- *
+ *
+ * Retrieves the properties of all Confidential Ledgers.
+ *
* @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 object that includes an array of Confidential Ledgers and a possible link for next set as paginated
- * response with {@link PagedIterable}.
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* Retrieves information about all Confidential Ledger resources under the given subscription and resource group
- *
- * Retrieves the properties of all Confidential Ledgers.
- *
+ *
+ * Retrieves the properties of all Confidential Ledgers.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param filter The filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'.
* @param context The context to associate with this operation.
@@ -274,38 +280,182 @@ ConfidentialLedgerInner update(
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return object that includes an array of Confidential Ledgers and a possible link for next set as paginated
- * response with {@link PagedIterable}.
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(
- String resourceGroupName, String filter, Context context);
+ PagedIterable listByResourceGroup(String resourceGroupName, String filter,
+ Context context);
/**
* Retrieves information about all Confidential Ledger resources under the given subscription
- *
- * Retrieves the properties of all Confidential Ledgers.
- *
+ *
+ * Retrieves the properties of all Confidential Ledgers.
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return object that includes an array of Confidential Ledgers and a possible link for next set as paginated
- * response with {@link PagedIterable}.
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Retrieves information about all Confidential Ledger resources under the given subscription
- *
- * Retrieves the properties of all Confidential Ledgers.
- *
+ *
+ * Retrieves the properties of all Confidential Ledgers.
+ *
* @param filter The filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'.
* @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 object that includes an array of Confidential Ledgers and a possible link for next set as paginated
- * response with {@link PagedIterable}.
+ * response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String filter, Context context);
+
+ /**
+ * Performs the backup operation on a Confidential Ledger Resource.
+ *
+ * Backs up a Confidential Ledger Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ledgerName Name of the Confidential Ledger.
+ * @param confidentialLedger Confidential Ledger Backup Request Body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of object representing the backup response of a Confidential Ledger
+ * Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConfidentialLedgerBackupResponseInner>
+ beginBackup(String resourceGroupName, String ledgerName, ConfidentialLedgerBackup confidentialLedger);
+
+ /**
+ * Performs the backup operation on a Confidential Ledger Resource.
+ *
+ * Backs up a Confidential Ledger Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ledgerName Name of the Confidential Ledger.
+ * @param confidentialLedger Confidential Ledger Backup Request Body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of object representing the backup response of a Confidential Ledger
+ * Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConfidentialLedgerBackupResponseInner> beginBackup(
+ String resourceGroupName, String ledgerName, ConfidentialLedgerBackup confidentialLedger, Context context);
+
+ /**
+ * Performs the backup operation on a Confidential Ledger Resource.
+ *
+ * Backs up a Confidential Ledger Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ledgerName Name of the Confidential Ledger.
+ * @param confidentialLedger Confidential Ledger Backup Request Body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object representing the backup response of a Confidential Ledger Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConfidentialLedgerBackupResponseInner backup(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerBackup confidentialLedger);
+
+ /**
+ * Performs the backup operation on a Confidential Ledger Resource.
+ *
+ * Backs up a Confidential Ledger Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ledgerName Name of the Confidential Ledger.
+ * @param confidentialLedger Confidential Ledger Backup Request Body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object representing the backup response of a Confidential Ledger Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConfidentialLedgerBackupResponseInner backup(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerBackup confidentialLedger, Context context);
+
+ /**
+ * Performs the restore operation to spin up a newly restored Confidential Ledger Resource.
+ *
+ * Restores a Confidential Ledger Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ledgerName Name of the Confidential Ledger.
+ * @param confidentialLedger Confidential Ledger Restore Request Body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of object representing the restore response of a Confidential Ledger
+ * Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConfidentialLedgerRestoreResponseInner>
+ beginRestore(String resourceGroupName, String ledgerName, ConfidentialLedgerRestore confidentialLedger);
+
+ /**
+ * Performs the restore operation to spin up a newly restored Confidential Ledger Resource.
+ *
+ * Restores a Confidential Ledger Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ledgerName Name of the Confidential Ledger.
+ * @param confidentialLedger Confidential Ledger Restore Request Body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of object representing the restore response of a Confidential Ledger
+ * Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ConfidentialLedgerRestoreResponseInner> beginRestore(
+ String resourceGroupName, String ledgerName, ConfidentialLedgerRestore confidentialLedger, Context context);
+
+ /**
+ * Performs the restore operation to spin up a newly restored Confidential Ledger Resource.
+ *
+ * Restores a Confidential Ledger Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ledgerName Name of the Confidential Ledger.
+ * @param confidentialLedger Confidential Ledger Restore Request Body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object representing the restore response of a Confidential Ledger Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConfidentialLedgerRestoreResponseInner restore(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerRestore confidentialLedger);
+
+ /**
+ * Performs the restore operation to spin up a newly restored Confidential Ledger Resource.
+ *
+ * Restores a Confidential Ledger Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param ledgerName Name of the Confidential Ledger.
+ * @param confidentialLedger Confidential Ledger Restore Request Body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object representing the restore response of a Confidential Ledger Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ConfidentialLedgerRestoreResponseInner restore(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerRestore confidentialLedger, Context context);
}
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ManagedCcfsClient.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ManagedCcfsClient.java
index 6178943aba66..0a65f53a7008 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ManagedCcfsClient.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ManagedCcfsClient.java
@@ -11,15 +11,21 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.confidentialledger.fluent.models.ManagedCcfBackupResponseInner;
import com.azure.resourcemanager.confidentialledger.fluent.models.ManagedCcfInner;
+import com.azure.resourcemanager.confidentialledger.fluent.models.ManagedCcfRestoreResponseInner;
+import com.azure.resourcemanager.confidentialledger.models.ManagedCcfBackup;
+import com.azure.resourcemanager.confidentialledger.models.ManagedCcfRestore;
-/** An instance of this class provides access to all the operations defined in ManagedCcfsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ManagedCcfsClient.
+ */
public interface ManagedCcfsClient {
/**
* Retrieves information about a Managed CCF resource.
- *
- * Retrieves the properties of a Managed CCF app.
- *
+ *
+ * Retrieves the properties of a Managed CCF app.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @param context The context to associate with this operation.
@@ -33,9 +39,9 @@ public interface ManagedCcfsClient {
/**
* Retrieves information about a Managed CCF resource.
- *
- *
Retrieves the properties of a Managed CCF app.
- *
+ *
+ * Retrieves the properties of a Managed CCF app.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -48,9 +54,9 @@ public interface ManagedCcfsClient {
/**
* Deletes a Managed CCF resource.
- *
- *
Deletes an existing Managed CCF.
- *
+ *
+ * Deletes an existing Managed CCF.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -63,9 +69,9 @@ public interface ManagedCcfsClient {
/**
* Deletes a Managed CCF resource.
- *
- *
Deletes an existing Managed CCF.
- *
+ *
+ * Deletes an existing Managed CCF.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @param context The context to associate with this operation.
@@ -79,9 +85,9 @@ public interface ManagedCcfsClient {
/**
* Deletes a Managed CCF resource.
- *
- *
Deletes an existing Managed CCF.
- *
+ *
+ * Deletes an existing Managed CCF.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -93,9 +99,9 @@ public interface ManagedCcfsClient {
/**
* Deletes a Managed CCF resource.
- *
- *
Deletes an existing Managed CCF.
- *
+ *
+ * Deletes an existing Managed CCF.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @param context The context to associate with this operation.
@@ -108,9 +114,9 @@ public interface ManagedCcfsClient {
/**
* Creates a Managed CCF.
- *
- *
Creates a Managed CCF with the specified Managed CCF parameters.
- *
+ *
+ * Creates a Managed CCF with the specified Managed CCF parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @param managedCcf Managed CCF Create Request Body.
@@ -120,14 +126,14 @@ public interface ManagedCcfsClient {
* @return the {@link SyncPoller} for polling of managed CCF.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ManagedCcfInner> beginCreate(
- String resourceGroupName, String appName, ManagedCcfInner managedCcf);
+ SyncPoller, ManagedCcfInner> beginCreate(String resourceGroupName, String appName,
+ ManagedCcfInner managedCcf);
/**
* Creates a Managed CCF.
- *
- * Creates a Managed CCF with the specified Managed CCF parameters.
- *
+ *
+ * Creates a Managed CCF with the specified Managed CCF parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @param managedCcf Managed CCF Create Request Body.
@@ -138,14 +144,14 @@ SyncPoller, ManagedCcfInner> beginCreate(
* @return the {@link SyncPoller} for polling of managed CCF.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ManagedCcfInner> beginCreate(
- String resourceGroupName, String appName, ManagedCcfInner managedCcf, Context context);
+ SyncPoller, ManagedCcfInner> beginCreate(String resourceGroupName, String appName,
+ ManagedCcfInner managedCcf, Context context);
/**
* Creates a Managed CCF.
- *
- * Creates a Managed CCF with the specified Managed CCF parameters.
- *
+ *
+ * Creates a Managed CCF with the specified Managed CCF parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @param managedCcf Managed CCF Create Request Body.
@@ -159,9 +165,9 @@ SyncPoller, ManagedCcfInner> beginCreate(
/**
* Creates a Managed CCF.
- *
- * Creates a Managed CCF with the specified Managed CCF parameters.
- *
+ *
+ * Creates a Managed CCF with the specified Managed CCF parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @param managedCcf Managed CCF Create Request Body.
@@ -176,26 +182,26 @@ SyncPoller, ManagedCcfInner> beginCreate(
/**
* Update Managed CCF properties
- *
- * Updates properties of Managed CCF.
- *
+ *
+ * Updates properties of Managed CCF.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @param managedCcf Request body for Updating Managed CCF App.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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.
+ * @return the {@link SyncPoller} for polling of managed CCF.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginUpdate(
- String resourceGroupName, String appName, ManagedCcfInner managedCcf);
+ SyncPoller, ManagedCcfInner> beginUpdate(String resourceGroupName, String appName,
+ ManagedCcfInner managedCcf);
/**
* Update Managed CCF properties
- *
- * Updates properties of Managed CCF.
- *
+ *
+ * Updates properties of Managed CCF.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @param managedCcf Request body for Updating Managed CCF App.
@@ -203,32 +209,33 @@ SyncPoller, Void> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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.
+ * @return the {@link SyncPoller} for polling of managed CCF.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginUpdate(
- String resourceGroupName, String appName, ManagedCcfInner managedCcf, Context context);
+ SyncPoller, ManagedCcfInner> beginUpdate(String resourceGroupName, String appName,
+ ManagedCcfInner managedCcf, Context context);
/**
* Update Managed CCF properties
- *
- * Updates properties of Managed CCF.
- *
+ *
+ * Updates properties of Managed CCF.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @param managedCcf Request body for Updating Managed CCF App.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed CCF.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void update(String resourceGroupName, String appName, ManagedCcfInner managedCcf);
+ ManagedCcfInner update(String resourceGroupName, String appName, ManagedCcfInner managedCcf);
/**
* Update Managed CCF properties
- *
- *
Updates properties of Managed CCF.
- *
+ *
+ * Updates properties of Managed CCF.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param appName Name of the Managed CCF.
* @param managedCcf Request body for Updating Managed CCF App.
@@ -236,30 +243,31 @@ SyncPoller, Void> beginUpdate(
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return managed CCF.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void update(String resourceGroupName, String appName, ManagedCcfInner managedCcf, Context context);
+ ManagedCcfInner update(String resourceGroupName, String appName, ManagedCcfInner managedCcf, Context context);
/**
* Retrieves information about all Managed CCF resources under the given subscription and resource group
- *
- * Retrieves the properties of all Managed CCF apps.
- *
+ *
+ * Retrieves the properties of all Managed CCF apps.
+ *
* @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 object that includes an array of Managed CCF and a possible link for next set as paginated response with
- * {@link PagedIterable}.
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName);
/**
* Retrieves information about all Managed CCF resources under the given subscription and resource group
- *
- * Retrieves the properties of all Managed CCF apps.
- *
+ *
+ * Retrieves the properties of all Managed CCF apps.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param filter The filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'.
* @param context The context to associate with this operation.
@@ -267,37 +275,175 @@ SyncPoller, Void> beginUpdate(
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return object that includes an array of Managed CCF and a possible link for next set as paginated response with
- * {@link PagedIterable}.
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByResourceGroup(String resourceGroupName, String filter, Context context);
/**
* Retrieves information about all Managed CCF resources under the given subscription
- *
- * Retrieves the properties of all Managed CCF.
- *
+ *
+ * Retrieves the properties of all Managed CCF.
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return object that includes an array of Managed CCF and a possible link for next set as paginated response with
- * {@link PagedIterable}.
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Retrieves information about all Managed CCF resources under the given subscription
- *
- * Retrieves the properties of all Managed CCF.
- *
+ *
+ * Retrieves the properties of all Managed CCF.
+ *
* @param filter The filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'.
* @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 object that includes an array of Managed CCF and a possible link for next set as paginated response with
- * {@link PagedIterable}.
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String filter, Context context);
+
+ /**
+ * Performs the backup operation on a Managed CCF Resource.
+ *
+ * Backs up a Managed CCF Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appName Name of the Managed CCF.
+ * @param managedCcf Managed CCF Backup Request Body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of object representing the backup response of a Managed CCF Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedCcfBackupResponseInner>
+ beginBackup(String resourceGroupName, String appName, ManagedCcfBackup managedCcf);
+
+ /**
+ * Performs the backup operation on a Managed CCF Resource.
+ *
+ * Backs up a Managed CCF Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appName Name of the Managed CCF.
+ * @param managedCcf Managed CCF Backup Request Body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of object representing the backup response of a Managed CCF Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedCcfBackupResponseInner>
+ beginBackup(String resourceGroupName, String appName, ManagedCcfBackup managedCcf, Context context);
+
+ /**
+ * Performs the backup operation on a Managed CCF Resource.
+ *
+ * Backs up a Managed CCF Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appName Name of the Managed CCF.
+ * @param managedCcf Managed CCF Backup Request Body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object representing the backup response of a Managed CCF Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedCcfBackupResponseInner backup(String resourceGroupName, String appName, ManagedCcfBackup managedCcf);
+
+ /**
+ * Performs the backup operation on a Managed CCF Resource.
+ *
+ * Backs up a Managed CCF Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appName Name of the Managed CCF.
+ * @param managedCcf Managed CCF Backup Request Body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object representing the backup response of a Managed CCF Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedCcfBackupResponseInner backup(String resourceGroupName, String appName, ManagedCcfBackup managedCcf,
+ Context context);
+
+ /**
+ * Performs the restore operation to spin up a newly restored Managed CCF Resource.
+ *
+ * Restores a Managed CCF Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appName Name of the Managed CCF.
+ * @param managedCcf Managed CCF Restore Request Body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of object representing the restore response of a Managed CCF Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedCcfRestoreResponseInner>
+ beginRestore(String resourceGroupName, String appName, ManagedCcfRestore managedCcf);
+
+ /**
+ * Performs the restore operation to spin up a newly restored Managed CCF Resource.
+ *
+ * Restores a Managed CCF Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appName Name of the Managed CCF.
+ * @param managedCcf Managed CCF Restore Request Body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of object representing the restore response of a Managed CCF Resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedCcfRestoreResponseInner>
+ beginRestore(String resourceGroupName, String appName, ManagedCcfRestore managedCcf, Context context);
+
+ /**
+ * Performs the restore operation to spin up a newly restored Managed CCF Resource.
+ *
+ * Restores a Managed CCF Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appName Name of the Managed CCF.
+ * @param managedCcf Managed CCF Restore Request Body.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object representing the restore response of a Managed CCF Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedCcfRestoreResponseInner restore(String resourceGroupName, String appName, ManagedCcfRestore managedCcf);
+
+ /**
+ * Performs the restore operation to spin up a newly restored Managed CCF Resource.
+ *
+ * Restores a Managed CCF Resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param appName Name of the Managed CCF.
+ * @param managedCcf Managed CCF Restore Request Body.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return object representing the restore response of a Managed CCF Resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedCcfRestoreResponseInner restore(String resourceGroupName, String appName, ManagedCcfRestore managedCcf,
+ Context context);
}
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/OperationsClient.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/OperationsClient.java
index 9a5f43772a0f..535ff9a2ca5c 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/OperationsClient.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/OperationsClient.java
@@ -10,32 +10,34 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.confidentialledger.fluent.models.ResourceProviderOperationDefinitionInner;
-/** An instance of this class provides access to all the operations defined in OperationsClient. */
+/**
+ * An instance of this class provides access to all the operations defined in OperationsClient.
+ */
public interface OperationsClient {
/**
* Retrieves a list of available API operations under this Resource Provider.
- *
- * Retrieves a list of available API operations.
- *
+ *
+ * Retrieves a list of available API operations.
+ *
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list containing this Resource Provider's available operations as paginated response with {@link
- * PagedIterable}.
+ * @return list containing this Resource Provider's available operations as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list();
/**
* Retrieves a list of available API operations under this Resource Provider.
- *
- * Retrieves a list of available API operations.
- *
+ *
+ * Retrieves a list of available API operations.
+ *
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return list containing this Resource Provider's available operations as paginated response with {@link
- * PagedIterable}.
+ * @return list containing this Resource Provider's available operations as paginated response with
+ * {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(Context context);
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ResourceProvidersClient.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ResourceProvidersClient.java
index 7691096ec576..b0146514b10d 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ResourceProvidersClient.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/ResourceProvidersClient.java
@@ -11,11 +11,13 @@
import com.azure.resourcemanager.confidentialledger.fluent.models.CheckNameAvailabilityResponseInner;
import com.azure.resourcemanager.confidentialledger.models.CheckNameAvailabilityRequest;
-/** An instance of this class provides access to all the operations defined in ResourceProvidersClient. */
+/**
+ * An instance of this class provides access to all the operations defined in ResourceProvidersClient.
+ */
public interface ResourceProvidersClient {
/**
* To check whether a resource name is available.
- *
+ *
* @param nameAvailabilityRequest Name availability request payload.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -24,12 +26,12 @@ public interface ResourceProvidersClient {
* @return the check availability result along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response checkNameAvailabilityWithResponse(
- CheckNameAvailabilityRequest nameAvailabilityRequest, Context context);
+ Response
+ checkNameAvailabilityWithResponse(CheckNameAvailabilityRequest nameAvailabilityRequest, Context context);
/**
* To check whether a resource name is available.
- *
+ *
* @param nameAvailabilityRequest Name availability request payload.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/CheckNameAvailabilityResponseInner.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/CheckNameAvailabilityResponseInner.java
index 21193c1a986b..9d7511fbb2c9 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/CheckNameAvailabilityResponseInner.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/CheckNameAvailabilityResponseInner.java
@@ -8,7 +8,9 @@
import com.azure.resourcemanager.confidentialledger.models.CheckNameAvailabilityReason;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** The check availability result. */
+/**
+ * The check availability result.
+ */
@Fluent
public final class CheckNameAvailabilityResponseInner {
/*
@@ -29,13 +31,15 @@ public final class CheckNameAvailabilityResponseInner {
@JsonProperty(value = "message")
private String message;
- /** Creates an instance of CheckNameAvailabilityResponseInner class. */
+ /**
+ * Creates an instance of CheckNameAvailabilityResponseInner class.
+ */
public CheckNameAvailabilityResponseInner() {
}
/**
* Get the nameAvailable property: Indicates if the resource name is available.
- *
+ *
* @return the nameAvailable value.
*/
public Boolean nameAvailable() {
@@ -44,7 +48,7 @@ public Boolean nameAvailable() {
/**
* Set the nameAvailable property: Indicates if the resource name is available.
- *
+ *
* @param nameAvailable the nameAvailable value to set.
* @return the CheckNameAvailabilityResponseInner object itself.
*/
@@ -55,7 +59,7 @@ public CheckNameAvailabilityResponseInner withNameAvailable(Boolean nameAvailabl
/**
* Get the reason property: The reason why the given name is not available.
- *
+ *
* @return the reason value.
*/
public CheckNameAvailabilityReason reason() {
@@ -64,7 +68,7 @@ public CheckNameAvailabilityReason reason() {
/**
* Set the reason property: The reason why the given name is not available.
- *
+ *
* @param reason the reason value to set.
* @return the CheckNameAvailabilityResponseInner object itself.
*/
@@ -75,7 +79,7 @@ public CheckNameAvailabilityResponseInner withReason(CheckNameAvailabilityReason
/**
* Get the message property: Detailed reason why the given name is available.
- *
+ *
* @return the message value.
*/
public String message() {
@@ -84,7 +88,7 @@ public String message() {
/**
* Set the message property: Detailed reason why the given name is available.
- *
+ *
* @param message the message value to set.
* @return the CheckNameAvailabilityResponseInner object itself.
*/
@@ -95,7 +99,7 @@ public CheckNameAvailabilityResponseInner withMessage(String message) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ConfidentialLedgerBackupResponseInner.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ConfidentialLedgerBackupResponseInner.java
new file mode 100644
index 000000000000..4ed190770f31
--- /dev/null
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ConfidentialLedgerBackupResponseInner.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confidentialledger.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Object representing the backup response of a Confidential Ledger Resource.
+ */
+@Immutable
+public final class ConfidentialLedgerBackupResponseInner {
+ /*
+ * Response body stating if the ledger is being backed up.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * Creates an instance of ConfidentialLedgerBackupResponseInner class.
+ */
+ public ConfidentialLedgerBackupResponseInner() {
+ }
+
+ /**
+ * Get the message property: Response body stating if the ledger is being backed up.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ConfidentialLedgerInner.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ConfidentialLedgerInner.java
index d1c66d96502d..5dbed69efdfc 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ConfidentialLedgerInner.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ConfidentialLedgerInner.java
@@ -11,12 +11,14 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/** Confidential Ledger. Contains the properties of Confidential Ledger Resource. */
+/**
+ * Confidential Ledger. Contains the properties of Confidential Ledger Resource.
+ */
@Fluent
public final class ConfidentialLedgerInner extends Resource {
/*
* LedgerProperties
- *
+ *
* Properties of Confidential Ledger Resource.
*/
@JsonProperty(value = "properties")
@@ -28,15 +30,17 @@ public final class ConfidentialLedgerInner extends Resource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of ConfidentialLedgerInner class. */
+ /**
+ * Creates an instance of ConfidentialLedgerInner class.
+ */
public ConfidentialLedgerInner() {
}
/**
* Get the properties property: LedgerProperties
- *
- * Properties of Confidential Ledger Resource.
- *
+ *
+ * Properties of Confidential Ledger Resource.
+ *
* @return the properties value.
*/
public LedgerProperties properties() {
@@ -45,9 +49,9 @@ public LedgerProperties properties() {
/**
* Set the properties property: LedgerProperties
- *
- *
Properties of Confidential Ledger Resource.
- *
+ *
+ * Properties of Confidential Ledger Resource.
+ *
* @param properties the properties value to set.
* @return the ConfidentialLedgerInner object itself.
*/
@@ -58,21 +62,25 @@ public ConfidentialLedgerInner withProperties(LedgerProperties properties) {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ConfidentialLedgerInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ConfidentialLedgerInner withTags(Map tags) {
super.withTags(tags);
@@ -81,7 +89,7 @@ public ConfidentialLedgerInner withTags(Map tags) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ConfidentialLedgerRestoreResponseInner.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ConfidentialLedgerRestoreResponseInner.java
new file mode 100644
index 000000000000..5ed92f9f2dd0
--- /dev/null
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ConfidentialLedgerRestoreResponseInner.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confidentialledger.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Object representing the restore response of a Confidential Ledger Resource.
+ */
+@Immutable
+public final class ConfidentialLedgerRestoreResponseInner {
+ /*
+ * Response body stating if the ledger is being restored.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * Creates an instance of ConfidentialLedgerRestoreResponseInner class.
+ */
+ public ConfidentialLedgerRestoreResponseInner() {
+ }
+
+ /**
+ * Get the message property: Response body stating if the ledger is being restored.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ManagedCcfBackupResponseInner.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ManagedCcfBackupResponseInner.java
new file mode 100644
index 000000000000..9900b3036c2a
--- /dev/null
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ManagedCcfBackupResponseInner.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confidentialledger.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Object representing the backup response of a Managed CCF Resource.
+ */
+@Immutable
+public final class ManagedCcfBackupResponseInner {
+ /*
+ * Response body stating if the managed CCF resource is being backed up.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * Creates an instance of ManagedCcfBackupResponseInner class.
+ */
+ public ManagedCcfBackupResponseInner() {
+ }
+
+ /**
+ * Get the message property: Response body stating if the managed CCF resource is being backed up.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ManagedCcfInner.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ManagedCcfInner.java
index 1d4ee44e8949..f545534ed1f2 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ManagedCcfInner.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ManagedCcfInner.java
@@ -11,12 +11,14 @@
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Map;
-/** Managed CCF. Contains the properties of Managed CCF Resource. */
+/**
+ * Managed CCF. Contains the properties of Managed CCF Resource.
+ */
@Fluent
public final class ManagedCcfInner extends Resource {
/*
* ManagedCCFProperties
- *
+ *
* Properties of Managed CCF Resource.
*/
@JsonProperty(value = "properties")
@@ -28,15 +30,17 @@ public final class ManagedCcfInner extends Resource {
@JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
private SystemData systemData;
- /** Creates an instance of ManagedCcfInner class. */
+ /**
+ * Creates an instance of ManagedCcfInner class.
+ */
public ManagedCcfInner() {
}
/**
* Get the properties property: ManagedCCFProperties
- *
- * Properties of Managed CCF Resource.
- *
+ *
+ * Properties of Managed CCF Resource.
+ *
* @return the properties value.
*/
public ManagedCcfProperties properties() {
@@ -45,9 +49,9 @@ public ManagedCcfProperties properties() {
/**
* Set the properties property: ManagedCCFProperties
- *
- *
Properties of Managed CCF Resource.
- *
+ *
+ * Properties of Managed CCF Resource.
+ *
* @param properties the properties value to set.
* @return the ManagedCcfInner object itself.
*/
@@ -58,21 +62,25 @@ public ManagedCcfInner withProperties(ManagedCcfProperties properties) {
/**
* Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
- *
+ *
* @return the systemData value.
*/
public SystemData systemData() {
return this.systemData;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ManagedCcfInner withLocation(String location) {
super.withLocation(location);
return this;
}
- /** {@inheritDoc} */
+ /**
+ * {@inheritDoc}
+ */
@Override
public ManagedCcfInner withTags(Map tags) {
super.withTags(tags);
@@ -81,7 +89,7 @@ public ManagedCcfInner withTags(Map tags) {
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ManagedCcfRestoreResponseInner.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ManagedCcfRestoreResponseInner.java
new file mode 100644
index 000000000000..da17f25c069b
--- /dev/null
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ManagedCcfRestoreResponseInner.java
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confidentialledger.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/**
+ * Object representing the restore response of a Managed CCF Resource.
+ */
+@Immutable
+public final class ManagedCcfRestoreResponseInner {
+ /*
+ * Response body stating if the managed CCF resource is being restored.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * Creates an instance of ManagedCcfRestoreResponseInner class.
+ */
+ public ManagedCcfRestoreResponseInner() {
+ }
+
+ /**
+ * Get the message property: Response body stating if the managed CCF resource is being restored.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ResourceProviderOperationDefinitionInner.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ResourceProviderOperationDefinitionInner.java
index 56a037e59fda..d63c354e546d 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ResourceProviderOperationDefinitionInner.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/ResourceProviderOperationDefinitionInner.java
@@ -8,7 +8,9 @@
import com.azure.resourcemanager.confidentialledger.models.ResourceProviderOperationDisplay;
import com.fasterxml.jackson.annotation.JsonProperty;
-/** Describes the Resource Provider Operation. */
+/**
+ * Describes the Resource Provider Operation.
+ */
@Fluent
public final class ResourceProviderOperationDefinitionInner {
/*
@@ -29,13 +31,15 @@ public final class ResourceProviderOperationDefinitionInner {
@JsonProperty(value = "display")
private ResourceProviderOperationDisplay display;
- /** Creates an instance of ResourceProviderOperationDefinitionInner class. */
+ /**
+ * Creates an instance of ResourceProviderOperationDefinitionInner class.
+ */
public ResourceProviderOperationDefinitionInner() {
}
/**
* Get the name property: Resource provider operation name.
- *
+ *
* @return the name value.
*/
public String name() {
@@ -44,7 +48,7 @@ public String name() {
/**
* Set the name property: Resource provider operation name.
- *
+ *
* @param name the name value to set.
* @return the ResourceProviderOperationDefinitionInner object itself.
*/
@@ -55,7 +59,7 @@ public ResourceProviderOperationDefinitionInner withName(String name) {
/**
* Get the isDataAction property: Indicates whether the operation is data action or not.
- *
+ *
* @return the isDataAction value.
*/
public Boolean isDataAction() {
@@ -64,7 +68,7 @@ public Boolean isDataAction() {
/**
* Set the isDataAction property: Indicates whether the operation is data action or not.
- *
+ *
* @param isDataAction the isDataAction value to set.
* @return the ResourceProviderOperationDefinitionInner object itself.
*/
@@ -75,7 +79,7 @@ public ResourceProviderOperationDefinitionInner withIsDataAction(Boolean isDataA
/**
* Get the display property: Details about the operations.
- *
+ *
* @return the display value.
*/
public ResourceProviderOperationDisplay display() {
@@ -84,7 +88,7 @@ public ResourceProviderOperationDisplay display() {
/**
* Set the display property: Details about the operations.
- *
+ *
* @param display the display value to set.
* @return the ResourceProviderOperationDefinitionInner object itself.
*/
@@ -95,7 +99,7 @@ public ResourceProviderOperationDefinitionInner withDisplay(ResourceProviderOper
/**
* Validates the instance.
- *
+ *
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/package-info.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/package-info.java
index b3b77ca549da..96883961c342 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/package-info.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/models/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the inner data models for ConfidentialLedgerManagementClient. Microsoft Azure Confidential Compute
- * Ledger Control Plane REST API version 2020-12-01-preview.
+ * Package containing the inner data models for ConfidentialLedgerManagementClient.
+ * Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview.
*/
package com.azure.resourcemanager.confidentialledger.fluent.models;
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/package-info.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/package-info.java
index d5062e2caf4e..190001716db3 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/package-info.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/fluent/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the service clients for ConfidentialLedgerManagementClient. Microsoft Azure Confidential Compute
- * Ledger Control Plane REST API version 2020-12-01-preview.
+ * Package containing the service clients for ConfidentialLedgerManagementClient.
+ * Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview.
*/
package com.azure.resourcemanager.confidentialledger.fluent;
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/CheckNameAvailabilityResponseImpl.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/CheckNameAvailabilityResponseImpl.java
index 0b0bff6b7cfc..664c459cf239 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/CheckNameAvailabilityResponseImpl.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/CheckNameAvailabilityResponseImpl.java
@@ -13,8 +13,7 @@ public final class CheckNameAvailabilityResponseImpl implements CheckNameAvailab
private final com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager serviceManager;
- CheckNameAvailabilityResponseImpl(
- CheckNameAvailabilityResponseInner innerObject,
+ CheckNameAvailabilityResponseImpl(CheckNameAvailabilityResponseInner innerObject,
com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerBackupResponseImpl.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerBackupResponseImpl.java
new file mode 100644
index 000000000000..747cced4c87b
--- /dev/null
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerBackupResponseImpl.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confidentialledger.implementation;
+
+import com.azure.resourcemanager.confidentialledger.fluent.models.ConfidentialLedgerBackupResponseInner;
+import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerBackupResponse;
+
+public final class ConfidentialLedgerBackupResponseImpl implements ConfidentialLedgerBackupResponse {
+ private ConfidentialLedgerBackupResponseInner innerObject;
+
+ private final com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager serviceManager;
+
+ ConfidentialLedgerBackupResponseImpl(ConfidentialLedgerBackupResponseInner innerObject,
+ com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String message() {
+ return this.innerModel().message();
+ }
+
+ public ConfidentialLedgerBackupResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerImpl.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerImpl.java
index 619543f9bb33..969486f13479 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerImpl.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerImpl.java
@@ -9,6 +9,10 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.confidentialledger.fluent.models.ConfidentialLedgerInner;
import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedger;
+import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerBackup;
+import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerBackupResponse;
+import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerRestore;
+import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerRestoreResponse;
import com.azure.resourcemanager.confidentialledger.models.LedgerProperties;
import java.util.Collections;
import java.util.Map;
@@ -82,25 +86,21 @@ public ConfidentialLedgerImpl withExistingResourceGroup(String resourceGroupName
}
public ConfidentialLedger create() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getLedgers()
- .create(resourceGroupName, ledgerName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getLedgers()
+ .create(resourceGroupName, ledgerName, this.innerModel(), Context.NONE);
return this;
}
public ConfidentialLedger create(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getLedgers()
- .create(resourceGroupName, ledgerName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient()
+ .getLedgers()
+ .create(resourceGroupName, ledgerName, this.innerModel(), context);
return this;
}
- ConfidentialLedgerImpl(
- String name, com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager serviceManager) {
+ ConfidentialLedgerImpl(String name,
+ com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager serviceManager) {
this.innerObject = new ConfidentialLedgerInner();
this.serviceManager = serviceManager;
this.ledgerName = name;
@@ -111,52 +111,59 @@ public ConfidentialLedgerImpl update() {
}
public ConfidentialLedger apply() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getLedgers()
- .update(resourceGroupName, ledgerName, this.innerModel(), Context.NONE);
+ this.innerObject = serviceManager.serviceClient()
+ .getLedgers()
+ .update(resourceGroupName, ledgerName, this.innerModel(), Context.NONE);
return this;
}
public ConfidentialLedger apply(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getLedgers()
- .update(resourceGroupName, ledgerName, this.innerModel(), context);
+ this.innerObject = serviceManager.serviceClient()
+ .getLedgers()
+ .update(resourceGroupName, ledgerName, this.innerModel(), context);
return this;
}
- ConfidentialLedgerImpl(
- ConfidentialLedgerInner innerObject,
+ ConfidentialLedgerImpl(ConfidentialLedgerInner innerObject,
com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager serviceManager) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
- this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.ledgerName = Utils.getValueFromIdByName(innerObject.id(), "ledgers");
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.ledgerName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "ledgers");
}
public ConfidentialLedger refresh() {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getLedgers()
- .getByResourceGroupWithResponse(resourceGroupName, ledgerName, Context.NONE)
- .getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getLedgers()
+ .getByResourceGroupWithResponse(resourceGroupName, ledgerName, Context.NONE)
+ .getValue();
return this;
}
public ConfidentialLedger refresh(Context context) {
- this.innerObject =
- serviceManager
- .serviceClient()
- .getLedgers()
- .getByResourceGroupWithResponse(resourceGroupName, ledgerName, context)
- .getValue();
+ this.innerObject = serviceManager.serviceClient()
+ .getLedgers()
+ .getByResourceGroupWithResponse(resourceGroupName, ledgerName, context)
+ .getValue();
return this;
}
+ public ConfidentialLedgerBackupResponse backup(ConfidentialLedgerBackup confidentialLedger) {
+ return serviceManager.ledgers().backup(resourceGroupName, ledgerName, confidentialLedger);
+ }
+
+ public ConfidentialLedgerBackupResponse backup(ConfidentialLedgerBackup confidentialLedger, Context context) {
+ return serviceManager.ledgers().backup(resourceGroupName, ledgerName, confidentialLedger, context);
+ }
+
+ public ConfidentialLedgerRestoreResponse restore(ConfidentialLedgerRestore confidentialLedger) {
+ return serviceManager.ledgers().restore(resourceGroupName, ledgerName, confidentialLedger);
+ }
+
+ public ConfidentialLedgerRestoreResponse restore(ConfidentialLedgerRestore confidentialLedger, Context context) {
+ return serviceManager.ledgers().restore(resourceGroupName, ledgerName, confidentialLedger, context);
+ }
+
public ConfidentialLedgerImpl withRegion(Region location) {
this.innerModel().withLocation(location.toString());
return this;
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerManagementClientBuilder.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerManagementClientBuilder.java
index e4bab539b1cc..3890ed977512 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerManagementClientBuilder.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerManagementClientBuilder.java
@@ -14,8 +14,10 @@
import com.azure.core.util.serializer.SerializerAdapter;
import java.time.Duration;
-/** A builder for creating a new instance of the ConfidentialLedgerManagementClientImpl type. */
-@ServiceClientBuilder(serviceClients = {ConfidentialLedgerManagementClientImpl.class})
+/**
+ * A builder for creating a new instance of the ConfidentialLedgerManagementClientImpl type.
+ */
+@ServiceClientBuilder(serviceClients = { ConfidentialLedgerManagementClientImpl.class })
public final class ConfidentialLedgerManagementClientBuilder {
/*
* The ID of the target subscription.
@@ -24,7 +26,7 @@ public final class ConfidentialLedgerManagementClientBuilder {
/**
* Sets The ID of the target subscription.
- *
+ *
* @param subscriptionId the subscriptionId value.
* @return the ConfidentialLedgerManagementClientBuilder.
*/
@@ -40,7 +42,7 @@ public ConfidentialLedgerManagementClientBuilder subscriptionId(String subscript
/**
* Sets server parameter.
- *
+ *
* @param endpoint the endpoint value.
* @return the ConfidentialLedgerManagementClientBuilder.
*/
@@ -56,7 +58,7 @@ public ConfidentialLedgerManagementClientBuilder endpoint(String endpoint) {
/**
* Sets The environment to connect to.
- *
+ *
* @param environment the environment value.
* @return the ConfidentialLedgerManagementClientBuilder.
*/
@@ -72,7 +74,7 @@ public ConfidentialLedgerManagementClientBuilder environment(AzureEnvironment en
/**
* Sets The HTTP pipeline to send requests through.
- *
+ *
* @param pipeline the pipeline value.
* @return the ConfidentialLedgerManagementClientBuilder.
*/
@@ -88,7 +90,7 @@ public ConfidentialLedgerManagementClientBuilder pipeline(HttpPipeline pipeline)
/**
* Sets The default poll interval for long-running operation.
- *
+ *
* @param defaultPollInterval the defaultPollInterval value.
* @return the ConfidentialLedgerManagementClientBuilder.
*/
@@ -104,7 +106,7 @@ public ConfidentialLedgerManagementClientBuilder defaultPollInterval(Duration de
/**
* Sets The serializer to serialize an object into a string.
- *
+ *
* @param serializerAdapter the serializerAdapter value.
* @return the ConfidentialLedgerManagementClientBuilder.
*/
@@ -115,30 +117,22 @@ public ConfidentialLedgerManagementClientBuilder serializerAdapter(SerializerAda
/**
* Builds an instance of ConfidentialLedgerManagementClientImpl with the provided parameters.
- *
+ *
* @return an instance of ConfidentialLedgerManagementClientImpl.
*/
public ConfidentialLedgerManagementClientImpl 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();
- ConfidentialLedgerManagementClientImpl client =
- new ConfidentialLedgerManagementClientImpl(
- localPipeline,
- localSerializerAdapter,
- localDefaultPollInterval,
- localEnvironment,
- subscriptionId,
- localEndpoint);
+ 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();
+ ConfidentialLedgerManagementClientImpl client = new ConfidentialLedgerManagementClientImpl(localPipeline,
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
return client;
}
}
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerManagementClientImpl.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerManagementClientImpl.java
index 5eb3772aad7d..4338031c5a76 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerManagementClientImpl.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerManagementClientImpl.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.confidentialledger.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;
@@ -12,8 +13,8 @@
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.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
@@ -36,123 +37,145 @@
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
-/** Initializes a new instance of the ConfidentialLedgerManagementClientImpl type. */
+/**
+ * Initializes a new instance of the ConfidentialLedgerManagementClientImpl type.
+ */
@ServiceClient(builder = ConfidentialLedgerManagementClientBuilder.class)
public final class ConfidentialLedgerManagementClientImpl implements ConfidentialLedgerManagementClient {
- /** The ID of the target subscription. */
+ /**
+ * The ID of the target subscription.
+ */
private final String subscriptionId;
/**
* Gets The ID of the target subscription.
- *
+ *
* @return the subscriptionId value.
*/
public String getSubscriptionId() {
return this.subscriptionId;
}
- /** server parameter. */
+ /**
+ * server parameter.
+ */
private final String endpoint;
/**
* Gets server parameter.
- *
+ *
* @return the endpoint value.
*/
public String getEndpoint() {
return this.endpoint;
}
- /** Api Version. */
+ /**
+ * Api Version.
+ */
private final String apiVersion;
/**
* Gets Api Version.
- *
+ *
* @return the apiVersion value.
*/
public String getApiVersion() {
return this.apiVersion;
}
- /** The HTTP pipeline to send requests through. */
+ /**
+ * 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. */
+ /**
+ * 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. */
+ /**
+ * 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. */
+ /**
+ * 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 ResourceProvidersClient object to access its operations. */
+ /**
+ * The ResourceProvidersClient object to access its operations.
+ */
private final ResourceProvidersClient resourceProviders;
/**
* Gets the ResourceProvidersClient object to access its operations.
- *
+ *
* @return the ResourceProvidersClient object.
*/
public ResourceProvidersClient getResourceProviders() {
return this.resourceProviders;
}
- /** The LedgersClient object to access its operations. */
+ /**
+ * The LedgersClient object to access its operations.
+ */
private final LedgersClient ledgers;
/**
* Gets the LedgersClient object to access its operations.
- *
+ *
* @return the LedgersClient object.
*/
public LedgersClient getLedgers() {
return this.ledgers;
}
- /** The ManagedCcfsClient object to access its operations. */
+ /**
+ * The ManagedCcfsClient object to access its operations.
+ */
private final ManagedCcfsClient managedCcfs;
/**
* Gets the ManagedCcfsClient object to access its operations.
- *
+ *
* @return the ManagedCcfsClient object.
*/
public ManagedCcfsClient getManagedCcfs() {
@@ -161,7 +184,7 @@ public ManagedCcfsClient getManagedCcfs() {
/**
* Initializes an instance of ConfidentialLedgerManagementClient 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.
@@ -169,19 +192,14 @@ public ManagedCcfsClient getManagedCcfs() {
* @param subscriptionId The ID of the target subscription.
* @param endpoint server parameter.
*/
- ConfidentialLedgerManagementClientImpl(
- HttpPipeline httpPipeline,
- SerializerAdapter serializerAdapter,
- Duration defaultPollInterval,
- AzureEnvironment environment,
- String subscriptionId,
- String endpoint) {
+ ConfidentialLedgerManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2023-01-26-preview";
+ this.apiVersion = "2023-06-28-preview";
this.operations = new OperationsClientImpl(this);
this.resourceProviders = new ResourceProvidersClientImpl(this);
this.ledgers = new LedgersClientImpl(this);
@@ -190,7 +208,7 @@ public ManagedCcfsClient getManagedCcfs() {
/**
* Gets default client context.
- *
+ *
* @return the default client context.
*/
public Context getContext() {
@@ -199,7 +217,7 @@ public Context getContext() {
/**
* Merges default client context with provided context.
- *
+ *
* @param context the context to be merged with default client context.
* @return the merged context.
*/
@@ -209,7 +227,7 @@ public Context mergeContext(Context context) {
/**
* Gets long running operation result.
- *
+ *
* @param activationResponse the response of activation operation.
* @param httpPipeline the http pipeline.
* @param pollResultType type of poll result.
@@ -219,26 +237,15 @@ public Context mergeContext(Context context) {
* @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);
+ 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 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.
@@ -251,19 +258,16 @@ public Mono getLroFinalResultOrError(AsyncPollResponse,
HttpResponse errorResponse = null;
PollResult.Error lroError = response.getValue().getError();
if (lroError != null) {
- errorResponse =
- new HttpResponseImpl(
- lroError.getResponseStatusCode(), lroError.getResponseHeaders(), lroError.getResponseBody());
+ 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);
+ managementError = this.getSerializerAdapter()
+ .deserialize(errorBody, ManagementError.class, SerializerEncoding.JSON);
if (managementError.getCode() == null || managementError.getMessage() == null) {
managementError = null;
}
@@ -304,7 +308,7 @@ public int getStatusCode() {
}
public String getHeaderValue(String s) {
- return httpHeaders.getValue(s);
+ return httpHeaders.getValue(HttpHeaderName.fromString(s));
}
public HttpHeaders getHeaders() {
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerRestoreResponseImpl.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerRestoreResponseImpl.java
new file mode 100644
index 000000000000..f6f6989d8f35
--- /dev/null
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/ConfidentialLedgerRestoreResponseImpl.java
@@ -0,0 +1,32 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.confidentialledger.implementation;
+
+import com.azure.resourcemanager.confidentialledger.fluent.models.ConfidentialLedgerRestoreResponseInner;
+import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerRestoreResponse;
+
+public final class ConfidentialLedgerRestoreResponseImpl implements ConfidentialLedgerRestoreResponse {
+ private ConfidentialLedgerRestoreResponseInner innerObject;
+
+ private final com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager serviceManager;
+
+ ConfidentialLedgerRestoreResponseImpl(ConfidentialLedgerRestoreResponseInner innerObject,
+ com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String message() {
+ return this.innerModel().message();
+ }
+
+ public ConfidentialLedgerRestoreResponseInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/LedgersClientImpl.java b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/LedgersClientImpl.java
index 43287abd0713..601c6faa6185 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/LedgersClientImpl.java
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/src/main/java/com/azure/resourcemanager/confidentialledger/implementation/LedgersClientImpl.java
@@ -14,6 +14,7 @@
import com.azure.core.annotation.HostParam;
import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
+import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
import com.azure.core.annotation.QueryParam;
import com.azure.core.annotation.ReturnType;
@@ -33,23 +34,33 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.confidentialledger.fluent.LedgersClient;
+import com.azure.resourcemanager.confidentialledger.fluent.models.ConfidentialLedgerBackupResponseInner;
import com.azure.resourcemanager.confidentialledger.fluent.models.ConfidentialLedgerInner;
+import com.azure.resourcemanager.confidentialledger.fluent.models.ConfidentialLedgerRestoreResponseInner;
+import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerBackup;
import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerList;
+import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerRestore;
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 LedgersClient. */
+/**
+ * An instance of this class provides access to all the operations defined in LedgersClient.
+ */
public final class LedgersClientImpl implements LedgersClient {
- /** The proxy service used to perform REST calls. */
+ /**
+ * The proxy service used to perform REST calls.
+ */
private final LedgersService service;
- /** The service client containing this operation class. */
+ /**
+ * The service client containing this operation class.
+ */
private final ConfidentialLedgerManagementClientImpl client;
/**
* Initializes an instance of LedgersClientImpl.
- *
+ *
* @param client the instance of the service client containing this operation class.
*/
LedgersClientImpl(ConfidentialLedgerManagementClientImpl client) {
@@ -64,116 +75,103 @@ public final class LedgersClientImpl implements LedgersClient {
@Host("{$host}")
@ServiceInterface(name = "ConfidentialLedgerMa")
public interface LedgersService {
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> getByResourceGroup(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("ledgerName") String ledgerName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Delete(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
- @ExpectedResponses({200, 202, 204})
+ Mono> getByResourceGroup(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ledgerName") String ledgerName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("ledgerName") String ledgerName,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
- @Put(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
- @ExpectedResponses({200, 201})
+ Mono>> delete(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ledgerName") String ledgerName,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> create(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("ledgerName") String ledgerName,
+ Mono>> create(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ledgerName") String ledgerName,
@BodyParam("application/json") ConfidentialLedgerInner confidentialLedger,
- @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Patch(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
- @ExpectedResponses({200, 201})
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @PathParam("ledgerName") String ledgerName,
+ Mono>> update(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ledgerName") String ledgerName,
@BodyParam("application/json") ConfidentialLedgerInner confidentialLedger,
- @HeaderParam("Accept") String accept,
- Context context);
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
- @Get(
- "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers")
- @ExpectedResponses({200})
+ @Headers({ "Content-Type: application/json" })
+ @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers")
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> listByResourceGroup(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @PathParam("resourceGroupName") String resourceGroupName,
- @QueryParam("$filter") String filter,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
+ Mono> listByResourceGroup(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @QueryParam("$filter") String filter,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/ledgers/")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> list(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/backup")
+ @ExpectedResponses({ 200, 202 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono>> backup(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ledgerName") String ledgerName,
+ @BodyParam("application/json") ConfidentialLedgerBackup confidentialLedger,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
+ @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/restore")
+ @ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(
- @HostParam("$host") String endpoint,
- @QueryParam("api-version") String apiVersion,
- @PathParam("subscriptionId") String subscriptionId,
- @QueryParam("$filter") String filter,
- @HeaderParam("Accept") String accept,
- Context context);
-
- @Headers({"Content-Type: application/json"})
+ Mono>> restore(@HostParam("$host") String endpoint,
+ @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("ledgerName") String ledgerName,
+ @BodyParam("application/json") ConfidentialLedgerRestore confidentialLedger,
+ @HeaderParam("Accept") String accept, Context context);
+
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
- @Headers({"Content-Type: application/json"})
+ @Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
- @ExpectedResponses({200})
+ @ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listBySubscriptionNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink,
- @HostParam("$host") String endpoint,
- @HeaderParam("Accept") String accept,
- Context context);
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @HeaderParam("Accept") String accept, Context context);
}
/**
* Retrieves information about a Confidential Ledger resource.
- *
- * Retrieves the properties of a Confidential Ledger.
- *
+ *
+ * Retrieves the properties of a Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -182,19 +180,15 @@ Mono> listBySubscriptionNext(
* @return confidential Ledger along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(
- String resourceGroupName, String ledgerName) {
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String ledgerName) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -205,25 +199,16 @@ private Mono> getByResourceGroupWithResponseAs
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .getByResourceGroup(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- ledgerName,
- accept,
- context))
+ .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Retrieves information about a Confidential Ledger resource.
- *
- * Retrieves the properties of a Confidential Ledger.
- *
+ *
+ * Retrieves the properties of a Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param context The context to associate with this operation.
@@ -233,19 +218,15 @@ private Mono> getByResourceGroupWithResponseAs
* @return confidential Ledger along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono> getByResourceGroupWithResponseAsync(
- String resourceGroupName, String ledgerName, Context context) {
+ private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName,
+ String ledgerName, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -256,22 +237,15 @@ private Mono> getByResourceGroupWithResponseAs
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .getByResourceGroup(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- ledgerName,
- accept,
- context);
+ return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, accept, context);
}
/**
* Retrieves information about a Confidential Ledger resource.
- *
- * Retrieves the properties of a Confidential Ledger.
- *
+ *
+ * Retrieves the properties of a Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -287,9 +261,9 @@ private Mono getByResourceGroupAsync(String resourceGro
/**
* Retrieves information about a Confidential Ledger resource.
- *
- * Retrieves the properties of a Confidential Ledger.
- *
+ *
+ * Retrieves the properties of a Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param context The context to associate with this operation.
@@ -299,16 +273,16 @@ private Mono getByResourceGroupAsync(String resourceGro
* @return confidential Ledger along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public Response getByResourceGroupWithResponse(
- String resourceGroupName, String ledgerName, Context context) {
+ public Response getByResourceGroupWithResponse(String resourceGroupName, String ledgerName,
+ Context context) {
return getByResourceGroupWithResponseAsync(resourceGroupName, ledgerName, context).block();
}
/**
* Retrieves information about a Confidential Ledger resource.
- *
- * Retrieves the properties of a Confidential Ledger.
- *
+ *
+ * Retrieves the properties of a Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -323,9 +297,9 @@ public ConfidentialLedgerInner getByResourceGroup(String resourceGroupName, Stri
/**
* Deletes a Confidential Ledger resource.
- *
- *
Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -336,16 +310,12 @@ public ConfidentialLedgerInner getByResourceGroup(String resourceGroupName, Stri
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> deleteWithResponseAsync(String resourceGroupName, String ledgerName) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -356,25 +326,16 @@ private Mono>> deleteWithResponseAsync(String resource
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .delete(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- ledgerName,
- accept,
- context))
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param context The context to associate with this operation.
@@ -384,19 +345,15 @@ private Mono>> deleteWithResponseAsync(String resource
* @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> deleteWithResponseAsync(
- String resourceGroupName, String ledgerName, Context context) {
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String ledgerName,
+ Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -407,22 +364,15 @@ private Mono>> deleteWithResponseAsync(
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .delete(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- ledgerName,
- accept,
- context);
+ return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, ledgerName, accept, context);
}
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -433,17 +383,15 @@ private Mono>> deleteWithResponseAsync(
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ledgerName) {
Mono>> mono = deleteWithResponseAsync(resourceGroupName, ledgerName);
- return this
- .client
- .getLroResult(
- mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext());
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ this.client.getContext());
}
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param context The context to associate with this operation.
@@ -453,20 +401,19 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup
* @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, Void> beginDeleteAsync(
- String resourceGroupName, String ledgerName, Context context) {
+ private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String ledgerName,
+ Context context) {
context = this.client.mergeContext(context);
Mono>> mono = deleteWithResponseAsync(resourceGroupName, ledgerName, context);
- return this
- .client
- .getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context);
+ return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class,
+ context);
}
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -481,9 +428,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param context The context to associate with this operation.
@@ -493,16 +440,16 @@ public SyncPoller, Void> beginDelete(String resourceGroupName,
* @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(
- String resourceGroupName, String ledgerName, Context context) {
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String ledgerName,
+ Context context) {
return this.beginDeleteAsync(resourceGroupName, ledgerName, context).getSyncPoller();
}
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -517,9 +464,9 @@ private Mono deleteAsync(String resourceGroupName, String ledgerName) {
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param context The context to associate with this operation.
@@ -530,16 +477,15 @@ private Mono deleteAsync(String resourceGroupName, String ledgerName) {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono deleteAsync(String resourceGroupName, String ledgerName, Context context) {
- return beginDeleteAsync(resourceGroupName, ledgerName, context)
- .last()
+ return beginDeleteAsync(resourceGroupName, ledgerName, context).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
* Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -553,9 +499,9 @@ public void delete(String resourceGroupName, String ledgerName) {
/**
* Deletes a Confidential Ledger resource.
- *
- *
Deletes an existing Confidential Ledger.
- *
+ *
+ * Deletes an existing Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param context The context to associate with this operation.
@@ -570,9 +516,9 @@ public void delete(String resourceGroupName, String ledgerName, Context context)
/**
* Creates a Confidential Ledger.
- *
- *
Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -582,19 +528,15 @@ public void delete(String resourceGroupName, String ledgerName, Context context)
* @return confidential Ledger along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
+ private Mono>> createWithResponseAsync(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -611,26 +553,16 @@ private Mono>> createWithResponseAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .create(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- ledgerName,
- confidentialLedger,
- accept,
- context))
+ .withContext(context -> service.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -641,19 +573,15 @@ private Mono>> createWithResponseAsync(
* @return confidential Ledger along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context) {
+ private Mono>> createWithResponseAsync(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -670,23 +598,15 @@ private Mono>> createWithResponseAsync(
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .create(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- ledgerName,
- confidentialLedger,
- accept,
- context);
+ return service.create(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, ledgerName, confidentialLedger, accept, context);
}
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -696,25 +616,20 @@ private Mono>> createWithResponseAsync(
* @return the {@link PollerFlux} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ConfidentialLedgerInner> beginCreateAsync(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
- Mono>> mono =
- createWithResponseAsync(resourceGroupName, ledgerName, confidentialLedger);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- ConfidentialLedgerInner.class,
- ConfidentialLedgerInner.class,
- this.client.getContext());
+ private PollerFlux, ConfidentialLedgerInner>
+ beginCreateAsync(String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
+ Mono>> mono
+ = createWithResponseAsync(resourceGroupName, ledgerName, confidentialLedger);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), ConfidentialLedgerInner.class, ConfidentialLedgerInner.class,
+ this.client.getContext());
}
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -728,23 +643,17 @@ private PollerFlux, ConfidentialLedgerInner>
private PollerFlux, ConfidentialLedgerInner> beginCreateAsync(
String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context) {
context = this.client.mergeContext(context);
- Mono>> mono =
- createWithResponseAsync(resourceGroupName, ledgerName, confidentialLedger, context);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- ConfidentialLedgerInner.class,
- ConfidentialLedgerInner.class,
- context);
+ Mono>> mono
+ = createWithResponseAsync(resourceGroupName, ledgerName, confidentialLedger, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), ConfidentialLedgerInner.class, ConfidentialLedgerInner.class, context);
}
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -754,16 +663,16 @@ private PollerFlux, ConfidentialLedgerInner>
* @return the {@link SyncPoller} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ConfidentialLedgerInner> beginCreate(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
+ public SyncPoller, ConfidentialLedgerInner>
+ beginCreate(String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
return this.beginCreateAsync(resourceGroupName, ledgerName, confidentialLedger).getSyncPoller();
}
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -781,9 +690,9 @@ public SyncPoller, ConfidentialLedgerInner>
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -793,18 +702,17 @@ public SyncPoller, ConfidentialLedgerInner>
* @return confidential Ledger on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
- return beginCreateAsync(resourceGroupName, ledgerName, confidentialLedger)
- .last()
+ private Mono createAsync(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger) {
+ return beginCreateAsync(resourceGroupName, ledgerName, confidentialLedger).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -815,18 +723,17 @@ private Mono createAsync(
* @return confidential Ledger on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context) {
- return beginCreateAsync(resourceGroupName, ledgerName, confidentialLedger, context)
- .last()
+ private Mono createAsync(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger, Context context) {
+ return beginCreateAsync(resourceGroupName, ledgerName, confidentialLedger, context).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -836,16 +743,16 @@ private Mono createAsync(
* @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ConfidentialLedgerInner create(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
+ public ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger) {
return createAsync(resourceGroupName, ledgerName, confidentialLedger).block();
}
/**
* Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
- *
+ *
+ * Creates a Confidential Ledger with the specified ledger parameters.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger Create Request Body.
@@ -856,16 +763,16 @@ public ConfidentialLedgerInner create(
* @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ConfidentialLedgerInner create(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context) {
+ public ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger, Context context) {
return createAsync(resourceGroupName, ledgerName, confidentialLedger, context).block();
}
/**
* Update Confidential Ledger properties
- *
- *
Updates properties of Confidential Ledger.
- *
+ *
+ * Updates properties of Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger request body for Updating Ledger.
@@ -875,19 +782,15 @@ public ConfidentialLedgerInner create(
* @return confidential Ledger along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -904,26 +807,16 @@ private Mono>> updateWithResponseAsync(
}
final String accept = "application/json";
return FluxUtil
- .withContext(
- context ->
- service
- .update(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- ledgerName,
- confidentialLedger,
- accept,
- context))
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
* Update Confidential Ledger properties
- *
- * Updates properties of Confidential Ledger.
- *
+ *
+ * Updates properties of Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger request body for Updating Ledger.
@@ -934,19 +827,15 @@ private Mono>> updateWithResponseAsync(
* @return confidential Ledger along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> updateWithResponseAsync(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context) {
+ private Mono>> updateWithResponseAsync(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger, Context context) {
if (this.client.getEndpoint() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
}
if (this.client.getSubscriptionId() == null) {
- return Mono
- .error(
- new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
}
if (resourceGroupName == null) {
return Mono
@@ -963,23 +852,15 @@ private Mono>> updateWithResponseAsync(
}
final String accept = "application/json";
context = this.client.mergeContext(context);
- return service
- .update(
- this.client.getEndpoint(),
- this.client.getApiVersion(),
- this.client.getSubscriptionId(),
- resourceGroupName,
- ledgerName,
- confidentialLedger,
- accept,
- context);
+ return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(),
+ resourceGroupName, ledgerName, confidentialLedger, accept, context);
}
/**
* Update Confidential Ledger properties
- *
- * Updates properties of Confidential Ledger.
- *
+ *
+ * Updates properties of Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger request body for Updating Ledger.
@@ -989,25 +870,20 @@ private Mono>> updateWithResponseAsync(
* @return the {@link PollerFlux} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- private PollerFlux, ConfidentialLedgerInner> beginUpdateAsync(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
- Mono>> mono =
- updateWithResponseAsync(resourceGroupName, ledgerName, confidentialLedger);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- ConfidentialLedgerInner.class,
- ConfidentialLedgerInner.class,
- this.client.getContext());
+ private PollerFlux, ConfidentialLedgerInner>
+ beginUpdateAsync(String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, ledgerName, confidentialLedger);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), ConfidentialLedgerInner.class, ConfidentialLedgerInner.class,
+ this.client.getContext());
}
/**
* Update Confidential Ledger properties
- *
- * Updates properties of Confidential Ledger.
- *
+ *
+ * Updates properties of Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger request body for Updating Ledger.
@@ -1021,23 +897,17 @@ private PollerFlux, ConfidentialLedgerInner>
private PollerFlux, ConfidentialLedgerInner> beginUpdateAsync(
String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context) {
context = this.client.mergeContext(context);
- Mono>> mono =
- updateWithResponseAsync(resourceGroupName, ledgerName, confidentialLedger, context);
- return this
- .client
- .getLroResult(
- mono,
- this.client.getHttpPipeline(),
- ConfidentialLedgerInner.class,
- ConfidentialLedgerInner.class,
- context);
+ Mono>> mono
+ = updateWithResponseAsync(resourceGroupName, ledgerName, confidentialLedger, context);
+ return this.client.getLroResult(mono,
+ this.client.getHttpPipeline(), ConfidentialLedgerInner.class, ConfidentialLedgerInner.class, context);
}
/**
* Update Confidential Ledger properties
- *
- * Updates properties of Confidential Ledger.
- *
+ *
+ * Updates properties of Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger request body for Updating Ledger.
@@ -1047,16 +917,16 @@ private PollerFlux, ConfidentialLedgerInner>
* @return the {@link SyncPoller} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ConfidentialLedgerInner> beginUpdate(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
+ public SyncPoller, ConfidentialLedgerInner>
+ beginUpdate(String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
return this.beginUpdateAsync(resourceGroupName, ledgerName, confidentialLedger).getSyncPoller();
}
/**
* Update Confidential Ledger properties
- *
- * Updates properties of Confidential Ledger.
- *
+ *
+ * Updates properties of Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger request body for Updating Ledger.
@@ -1074,9 +944,9 @@ public SyncPoller, ConfidentialLedgerInner>
/**
* Update Confidential Ledger properties
- *
- * Updates properties of Confidential Ledger.
- *
+ *
+ * Updates properties of Confidential Ledger.
+ *
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param ledgerName Name of the Confidential Ledger.
* @param confidentialLedger Confidential Ledger request body for Updating Ledger.
@@ -1086,18 +956,17 @@ public SyncPoller, ConfidentialLedgerInner>
* @return confidential Ledger on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
- return beginUpdateAsync(resourceGroupName, ledgerName, confidentialLedger)
- .last()
+ private Mono