diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/CHANGELOG.md b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/CHANGELOG.md
index acdcbec66a2e..13e52a98196f 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/CHANGELOG.md
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/CHANGELOG.md
@@ -1,14 +1,84 @@
# Release History
-## 1.1.0-beta.2 (Unreleased)
+## 1.1.0-beta.2 (2026-03-04)
-### Features Added
+- Azure Resource Manager ConfidentialLedger client library for Java. This package contains Microsoft Azure SDK for ConfidentialLedger Management SDK. Microsoft Azure Confidential Compute Ledger Managed CCF Control Plane REST API version 2025-06-10-preview. Package api-version 2025-06-10-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.ConfidentialLedgerList` was removed
-### Other Changes
+#### `models.ManagedCcfList` was removed
+
+#### `models.ResourceProviderOperationList` was removed
+
+#### `models.MemberIdentityCertificate` was modified
+
+* `java.lang.Object tags()` -> `com.azure.core.util.BinaryData tags()`
+* `validate()` was removed
+* `withTags(java.lang.Object)` was removed
+
+#### `models.AadBasedSecurityPrincipal` was modified
+
+* `validate()` was removed
+
+#### `models.ManagedCcfRestore` was modified
+
+* `validate()` was removed
+
+#### `models.ManagedCcfBackup` was modified
+
+* `validate()` was removed
+
+#### `models.ConfidentialLedgerBackup` was modified
+
+* `validate()` was removed
+
+#### `models.CertBasedSecurityPrincipal` was modified
+
+* `validate()` was removed
+
+#### `models.CheckNameAvailabilityRequest` was modified
+
+* `validate()` was removed
+
+#### `models.LedgerProperties` was modified
+
+* `validate()` was removed
+* `withEnclavePlatform(models.EnclavePlatform)` was removed
+
+#### `models.ManagedCcfProperties` was modified
+
+* `withEnclavePlatform(models.EnclavePlatform)` was removed
+* `validate()` was removed
+
+#### `models.ConfidentialLedgerRestore` was modified
+
+* `validate()` was removed
+
+#### `models.ResourceProviderOperationDisplay` was modified
+
+* `ResourceProviderOperationDisplay()` was changed to private access
+* `withProvider(java.lang.String)` was removed
+* `withResource(java.lang.String)` was removed
+* `withOperation(java.lang.String)` was removed
+* `validate()` was removed
+* `withDescription(java.lang.String)` was removed
+
+#### `models.DeploymentType` was modified
+
+* `validate()` was removed
+
+### Features Added
+
+#### `models.MemberIdentityCertificate` was modified
+
+* `withTags(com.azure.core.util.BinaryData)` was added
+
+#### `models.LedgerProperties` was modified
+
+* `scittConfiguration()` was added
+* `withScittConfiguration(java.lang.String)` was added
## 1.1.0-beta.1 (2025-05-15)
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/README.md b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/README.md
index 89d83195c45f..317b88061040 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/README.md
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager ConfidentialLedger client library for Java.
-This package contains Microsoft Azure SDK for ConfidentialLedger Management SDK. Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview. Package tag package-preview-2024-09. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for ConfidentialLedger Management SDK. Microsoft Azure Confidential Compute Ledger Managed CCF Control Plane REST API version 2025-06-10-preview. Package api-version 2025-06-10-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-confidentialledger
- 1.1.0-beta.1
+ 1.1.0-beta.2
```
[//]: # ({x-version-update-end})
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/SAMPLE.md b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/SAMPLE.md
index 98cc916510f0..9939e16af032 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/SAMPLE.md
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/SAMPLE.md
@@ -12,17 +12,6 @@
- [Restore](#ledger_restore)
- [Update](#ledger_update)
-## ManagedCcf
-
-- [Backup](#managedccf_backup)
-- [Create](#managedccf_create)
-- [Delete](#managedccf_delete)
-- [GetByResourceGroup](#managedccf_getbyresourcegroup)
-- [List](#managedccf_list)
-- [ListByResourceGroup](#managedccf_listbyresourcegroup)
-- [Restore](#managedccf_restore)
-- [Update](#managedccf_update)
-
## Operations
- [List](#operations_list)
@@ -32,30 +21,6 @@
- [CheckNameAvailability](#resourceprovider_checknameavailability)
### Ledger_Backup
-```java
-/**
- * Samples for Ledger ListByResourceGroup.
- */
-public final class LedgerListByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ConfidentialLedger_List.json
- */
- /**
- * Sample code: ConfidentialLedgerList.
- *
- * @param manager Entry point to ConfidentialLedgerManager.
- */
- public static void
- confidentialLedgerList(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.ledgers().listByResourceGroup("DummyResourceGroupName", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Ledger_Create
-
```java
import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerBackup;
@@ -64,9 +29,7 @@ import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerBac
*/
public final class LedgerBackupSamples {
/*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ConfidentialLedger_Backup.json
+ * x-ms-original-file: 2025-06-10-preview/ConfidentialLedger_Backup.json
*/
/**
* Sample code: ConfidentialLedgerBackup.
@@ -83,52 +46,53 @@ public final class LedgerBackupSamples {
}
```
-### Ledger_Delete
+### Ledger_Create
```java
-import com.azure.core.management.serializer.SerializerFactory;
-import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.confidentialledger.models.DeploymentType;
-import com.azure.resourcemanager.confidentialledger.models.LanguageRuntime;
-import com.azure.resourcemanager.confidentialledger.models.ManagedCcfProperties;
-import com.azure.resourcemanager.confidentialledger.models.MemberIdentityCertificate;
-import java.io.IOException;
+import com.azure.resourcemanager.confidentialledger.models.AadBasedSecurityPrincipal;
+import com.azure.resourcemanager.confidentialledger.models.CertBasedSecurityPrincipal;
+import com.azure.resourcemanager.confidentialledger.models.LedgerProperties;
+import com.azure.resourcemanager.confidentialledger.models.LedgerRoleName;
+import com.azure.resourcemanager.confidentialledger.models.LedgerSku;
+import com.azure.resourcemanager.confidentialledger.models.LedgerType;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for ManagedCcf Create.
+ * Samples for Ledger Create.
*/
-public final class ManagedCcfCreateSamples {
+public final class LedgerCreateSamples {
/*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ManagedCCF_Create.json
+ * x-ms-original-file: 2025-06-10-preview/ConfidentialLedger_Create.json
*/
/**
- * Sample code: ManagedCCFCreate.
+ * Sample code: ConfidentialLedgerCreate.
*
* @param manager Entry point to ConfidentialLedgerManager.
*/
- public static void managedCCFCreate(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager)
- throws IOException {
- manager.managedCcfs()
- .define("DummyMccfAppName")
+ public static void
+ confidentialLedgerCreate(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
+ manager.ledgers()
+ .define("DummyLedgerName")
.withRegion("EastUS")
.withExistingResourceGroup("DummyResourceGroupName")
.withTags(mapOf("additionalProps1", "additional properties"))
- .withProperties(new ManagedCcfProperties()
- .withMemberIdentityCertificates(Arrays.asList(new MemberIdentityCertificate().withCertificate(
+ .withProperties(new LedgerProperties().withLedgerType(LedgerType.PUBLIC)
+ .withLedgerSku(LedgerSku.STANDARD)
+ .withAadBasedSecurityPrincipals(Arrays
+ .asList(new AadBasedSecurityPrincipal().withPrincipalId("34621747-6fc8-4771-a2eb-72f31c461f2e")
+ .withTenantId("bce123b9-2b7b-4975-8360-5ca0b9b1cd08")
+ .withLedgerRoleName(LedgerRoleName.ADMINISTRATOR)))
+ .withCertBasedSecurityPrincipals(Arrays.asList(new CertBasedSecurityPrincipal().withCert(
"-----BEGIN CERTIFICATE-----MIIBsjCCATigAwIBAgIUZWIbyG79TniQLd2UxJuU74tqrKcwCgYIKoZIzj0EAwMwEDEOMAwGA1UEAwwFdXNlcjAwHhcNMjEwMzE2MTgwNjExWhcNMjIwMzE2MTgwNjExWjAQMQ4wDAYDVQQDDAV1c2VyMDB2MBAGByqGSM49AgEGBSuBBAAiA2IABBiWSo/j8EFit7aUMm5lF+lUmCu+IgfnpFD+7QMgLKtxRJ3aGSqgS/GpqcYVGddnODtSarNE/HyGKUFUolLPQ5ybHcouUk0kyfA7XMeSoUA4lBz63Wha8wmXo+NdBRo39qNTMFEwHQYDVR0OBBYEFPtuhrwgGjDFHeUUT4nGsXaZn69KMB8GA1UdIwQYMBaAFPtuhrwgGjDFHeUUT4nGsXaZn69KMA8GA1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwMDaAAwZQIxAOnozm2CyqRwSSQLls5r+mUHRGRyXHXwYtM4Dcst/VEZdmS9fqvHRCHbjUlO/+HNfgIwMWZ4FmsjD3wnPxONOm9YdVn/PRD7SsPRPbOjwBiE4EBGaHDsLjYAGDSGi7NJnSkA-----END CERTIFICATE-----")
- .withEncryptionkey("fakeTokenPlaceholder")
- .withTags(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"additionalProps1\":\"additional properties\"}", Object.class,
- SerializerEncoding.JSON))))
- .withDeploymentType(new DeploymentType().withLanguageRuntime(LanguageRuntime.CPP)
- .withAppSourceUri(
- "https://myaccount.blob.core.windows.net/storage/mccfsource?sv=2022-02-11%st=2022-03-11"))
- .withNodeCount(5))
+ .withLedgerRoleName(LedgerRoleName.READER)))
+ .withHostLevel("Info")
+ .withMaxBodySizeInMb(1)
+ .withSubjectName("CN=CCF Node")
+ .withNodeCount(3)
+ .withWriteLBAddressPrefix("write")
+ .withWorkerThreads(0))
.create();
}
@@ -146,138 +110,7 @@ public final class ManagedCcfCreateSamples {
}
```
-### Ledger_GetByResourceGroup
-
-```java
-/**
- * Samples for ManagedCcf ListByResourceGroup.
- */
-public final class ManagedCcfListByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ManagedCCF_List.json
- */
- /**
- * Sample code: ManagedCCFList.
- *
- * @param manager Entry point to ConfidentialLedgerManager.
- */
- public static void managedCCFList(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.managedCcfs().listByResourceGroup("DummyResourceGroupName", null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Ledger_List
-
-```java
-import com.azure.resourcemanager.confidentialledger.models.ManagedCcfBackup;
-
-/**
- * Samples for ManagedCcf Backup.
- */
-public final class ManagedCcfBackupSamples {
- /*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ManagedCCF_Backup.json
- */
- /**
- * Sample code: ManagedCCFBackup.
- *
- * @param manager Entry point to ConfidentialLedgerManager.
- */
- public static void
- managedCCFBackup(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.managedCcfs()
- .backup("DummyResourceGroupName", "DummyMccfAppName",
- new ManagedCcfBackup().withRestoreRegion("EastUS").withUri("DummySASUri"),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Ledger_ListByResourceGroup
-
-```java
-/**
- * Samples for Operations List.
- */
-public final class OperationsListSamples {
- /*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/Operations_Get.json
- */
- /**
- * Sample code: OperationsGet.
- *
- * @param manager Entry point to ConfidentialLedgerManager.
- */
- public static void operationsGet(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.operations().list(com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Ledger_Restore
-
-```java
-import com.azure.resourcemanager.confidentialledger.models.ManagedCcfRestore;
-
-/**
- * Samples for ManagedCcf Restore.
- */
-public final class ManagedCcfRestoreSamples {
- /*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ManagedCCF_Restore.json
- */
- /**
- * Sample code: ManagedCCFRestore.
- *
- * @param manager Entry point to ConfidentialLedgerManager.
- */
- public static void
- managedCCFRestore(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.managedCcfs()
- .restore("DummyResourceGroupName", "DummyMccfAppName",
- new ManagedCcfRestore().withFileShareName("DummyFileShareName")
- .withRestoreRegion("EastUS")
- .withUri("DummySASUri"),
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### Ledger_Update
-
-```java
-/**
- * Samples for ManagedCcf GetByResourceGroup.
- */
-public final class ManagedCcfGetByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ManagedCCF_Get.json
- */
- /**
- * Sample code: ManagedCCFGet.
- *
- * @param manager Entry point to ConfidentialLedgerManager.
- */
- public static void managedCCFGet(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.managedCcfs()
- .getByResourceGroupWithResponse("DummyResourceGroupName", "DummyMccfAppName",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### ManagedCcf_Backup
+### Ledger_Delete
```java
/**
@@ -285,9 +118,7 @@ public final class ManagedCcfGetByResourceGroupSamples {
*/
public final class LedgerDeleteSamples {
/*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ConfidentialLedger_Delete.json
+ * x-ms-original-file: 2025-06-10-preview/ConfidentialLedger_Delete.json
*/
/**
* Sample code: ConfidentialLedgerDelete.
@@ -301,136 +132,104 @@ public final class LedgerDeleteSamples {
}
```
-### ManagedCcf_Create
+### Ledger_GetByResourceGroup
```java
/**
- * Samples for ManagedCcf List.
+ * Samples for Ledger GetByResourceGroup.
*/
-public final class ManagedCcfListSamples {
+public final class LedgerGetByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ManagedCCF_ListBySub.json
+ * x-ms-original-file: 2025-06-10-preview/ConfidentialLedger_Get.json
*/
/**
- * Sample code: ManagedCCFListBySub.
+ * Sample code: ConfidentialLedgerGet.
*
* @param manager Entry point to ConfidentialLedgerManager.
*/
public static void
- managedCCFListBySub(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.managedCcfs().list(null, com.azure.core.util.Context.NONE);
+ confidentialLedgerGet(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
+ manager.ledgers()
+ .getByResourceGroupWithResponse("DummyResourceGroupName", "DummyLedgerName",
+ com.azure.core.util.Context.NONE);
}
}
```
-### ManagedCcf_Delete
+### Ledger_List
```java
-import com.azure.resourcemanager.confidentialledger.models.DeploymentType;
-import com.azure.resourcemanager.confidentialledger.models.LanguageRuntime;
-import com.azure.resourcemanager.confidentialledger.models.ManagedCcf;
-import com.azure.resourcemanager.confidentialledger.models.ManagedCcfProperties;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for ManagedCcf Update.
+ * Samples for Ledger List.
*/
-public final class ManagedCcfUpdateSamples {
+public final class LedgerListSamples {
/*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ManagedCCF_Update.json
+ * x-ms-original-file: 2025-06-10-preview/ConfidentialLedger_ListBySub.json
*/
/**
- * Sample code: ManagedCCFUpdate.
+ * Sample code: ConfidentialLedgerListBySub.
*
* @param manager Entry point to ConfidentialLedgerManager.
*/
public static void
- managedCCFUpdate(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- ManagedCcf resource = manager.managedCcfs()
- .getByResourceGroupWithResponse("DummyResourceGroupName", "DummyMccfAppName",
- com.azure.core.util.Context.NONE)
- .getValue();
- resource.update()
- .withTags(mapOf("additionalProps1", "additional properties"))
- .withProperties(new ManagedCcfProperties()
- .withDeploymentType(new DeploymentType().withLanguageRuntime(LanguageRuntime.CPP)
- .withAppSourceUri(
- "https://myaccount.blob.core.windows.net/storage/mccfsource?sv=2022-02-11%st=2022-03-11")))
- .apply();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
+ confidentialLedgerListBySub(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
+ manager.ledgers().list(null, com.azure.core.util.Context.NONE);
}
}
```
-### ManagedCcf_GetByResourceGroup
+### Ledger_ListByResourceGroup
```java
-import com.azure.resourcemanager.confidentialledger.models.CheckNameAvailabilityRequest;
-
/**
- * Samples for ResourceProvider CheckNameAvailability.
+ * Samples for Ledger ListByResourceGroup.
*/
-public final class ResourceProviderCheckNameAvailabilitySamples {
+public final class LedgerListByResourceGroupSamples {
/*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/CheckNameAvailability.json
+ * x-ms-original-file: 2025-06-10-preview/ConfidentialLedger_List.json
*/
/**
- * Sample code: CheckNameAvailability.
+ * Sample code: ConfidentialLedgerList.
*
* @param manager Entry point to ConfidentialLedgerManager.
*/
public static void
- checkNameAvailability(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.resourceProviders()
- .checkNameAvailabilityWithResponse(new CheckNameAvailabilityRequest().withName("sample-name")
- .withType("Microsoft.ConfidentialLedger/ledgers"), com.azure.core.util.Context.NONE);
+ confidentialLedgerList(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
+ manager.ledgers().listByResourceGroup("DummyResourceGroupName", null, com.azure.core.util.Context.NONE);
}
}
```
-### ManagedCcf_List
+### Ledger_Restore
```java
+import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerRestore;
+
/**
- * Samples for Ledger List.
+ * Samples for Ledger Restore.
*/
-public final class LedgerListSamples {
+public final class LedgerRestoreSamples {
/*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ConfidentialLedger_ListBySub.json
+ * x-ms-original-file: 2025-06-10-preview/ConfidentialLedger_Restore.json
*/
/**
- * Sample code: ConfidentialLedgerListBySub.
+ * Sample code: ConfidentialLedgerRestore.
*
* @param manager Entry point to ConfidentialLedgerManager.
*/
public static void
- confidentialLedgerListBySub(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.ledgers().list(null, com.azure.core.util.Context.NONE);
+ confidentialLedgerRestore(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
+ manager.ledgers()
+ .restore("DummyResourceGroupName", "DummyLedgerName",
+ new ConfidentialLedgerRestore().withFileShareName("DummyFileShareName")
+ .withRestoreRegion("EastUS")
+ .withUri("DummySASUri"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### ManagedCcf_ListByResourceGroup
+### Ledger_Update
```java
import com.azure.resourcemanager.confidentialledger.models.AadBasedSecurityPrincipal;
@@ -448,9 +247,7 @@ import java.util.Map;
*/
public final class LedgerUpdateSamples {
/*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ConfidentialLedger_Update.json
+ * x-ms-original-file: 2025-06-10-preview/ConfidentialLedger_Update.json
*/
/**
* Sample code: ConfidentialLedgerUpdate.
@@ -472,74 +269,10 @@ public final class LedgerUpdateSamples {
.withLedgerRoleName(LedgerRoleName.ADMINISTRATOR)))
.withCertBasedSecurityPrincipals(Arrays.asList(new CertBasedSecurityPrincipal().withCert(
"-----BEGIN CERTIFICATE-----\nMIIDUjCCAjqgAwIBAgIQJ2IrDBawSkiAbkBYmiAopDANBgkqhkiG9w0BAQsFADAmMSQwIgYDVQQDExtTeW50aGV0aWNzIExlZGdlciBVc2VyIENlcnQwHhcNMjAwOTIzMjIxODQ2WhcNMjEwOTIzMjIyODQ2WjAmMSQwIgYDVQQDExtTeW50aGV0aWNzIExlZGdlciBVc2VyIENlcnQwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCX2s/Eu4q/eQ63N+Ugeg5oAciZua/YCJr41c/696szvSY7Zg1SNJlW88/nbz70+QpO55OmqlEE3QCU+T0Vl/h0Gf//n1PYcoBbTGUnYEmV+fTTHict6rFiEwrGJ62tvcpYgwapInSLyEeUzjki0zhOLJ1OfRnYd1eGnFVMpE5aVjiS8Q5dmTEUyd51EIprGE8RYAW9aeWSwTH7gjHUsRlJnHKcdhaK/v5QKJnNu5bzPFUcpC0ZBcizoMPAtroLAD4B68Jl0z3op18MgZe6lRrVoWuxfqnk5GojuB/Vu8ohAZKoFhQ6NB6r+LL2AUs+Zr7Bt26IkEdR178n9JMEA4gHAgMBAAGjfDB6MA4GA1UdDwEB/wQEAwIFoDAJBgNVHRMEAjAAMB0GA1UdJQQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjAfBgNVHSMEGDAWgBS/a7PU9iOfOKEyZCp11Oen5VSuuDAdBgNVHQ4EFgQUv2uz1PYjnzihMmQqddTnp+VUrrgwDQYJKoZIhvcNAQELBQADggEBAF5q2fDwnse8egXhfaJCqqM969E9gSacqFmASpoDJPRPEX7gqoO7v1ww7nqRtRDoRiBvo/yNk7jlSAkRN3nRRnZLZZ3MYQdmCr4FGyIqRg4Y94+nja+Du9pDD761rxRktMVPSOaAVM/E5DQvscDlPvlPYe9mkcrLCE4DXYpiMmLT8Tm55LJJq5m07dVDgzAIR1L/hmEcbK0pnLgzciMtMLxGO2udnyyW/UW9WxnjvrrD2JluTHH9mVbb+XQP1oFtlRBfH7aui1ZgWfKvxrdP4zdK9QoWSUvRux3TLsGmHRBjBMtqYDY3y5mB+aNjLelvWpeVb0m2aOSVXynrLwNCAVA=\n-----END CERTIFICATE-----")
- .withLedgerRoleName(LedgerRoleName.READER))))
- .apply();
- }
-
- // Use "Map.of" if available
- @SuppressWarnings("unchecked")
- private static Map mapOf(Object... inputs) {
- Map map = new HashMap<>();
- for (int i = 0; i < inputs.length; i += 2) {
- String key = (String) inputs[i];
- T value = (T) inputs[i + 1];
- map.put(key, value);
- }
- return map;
- }
-}
-```
-
-### ManagedCcf_Restore
-
-```java
-import com.azure.resourcemanager.confidentialledger.models.AadBasedSecurityPrincipal;
-import com.azure.resourcemanager.confidentialledger.models.CertBasedSecurityPrincipal;
-import com.azure.resourcemanager.confidentialledger.models.LedgerProperties;
-import com.azure.resourcemanager.confidentialledger.models.LedgerRoleName;
-import com.azure.resourcemanager.confidentialledger.models.LedgerSku;
-import com.azure.resourcemanager.confidentialledger.models.LedgerType;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
-/**
- * Samples for Ledger Create.
- */
-public final class LedgerCreateSamples {
- /*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ConfidentialLedger_Create.json
- */
- /**
- * Sample code: ConfidentialLedgerCreate.
- *
- * @param manager Entry point to ConfidentialLedgerManager.
- */
- public static void
- confidentialLedgerCreate(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.ledgers()
- .define("DummyLedgerName")
- .withRegion("EastUS")
- .withExistingResourceGroup("DummyResourceGroupName")
- .withTags(mapOf("additionalProps1", "additional properties"))
- .withProperties(new LedgerProperties().withLedgerType(LedgerType.PUBLIC)
- .withLedgerSku(LedgerSku.STANDARD)
- .withAadBasedSecurityPrincipals(Arrays
- .asList(new AadBasedSecurityPrincipal().withPrincipalId("34621747-6fc8-4771-a2eb-72f31c461f2e")
- .withTenantId("bce123b9-2b7b-4975-8360-5ca0b9b1cd08")
- .withLedgerRoleName(LedgerRoleName.ADMINISTRATOR)))
- .withCertBasedSecurityPrincipals(Arrays.asList(new CertBasedSecurityPrincipal().withCert(
- "-----BEGIN CERTIFICATE-----MIIBsjCCATigAwIBAgIUZWIbyG79TniQLd2UxJuU74tqrKcwCgYIKoZIzj0EAwMwEDEOMAwGA1UEAwwFdXNlcjAwHhcNMjEwMzE2MTgwNjExWhcNMjIwMzE2MTgwNjExWjAQMQ4wDAYDVQQDDAV1c2VyMDB2MBAGByqGSM49AgEGBSuBBAAiA2IABBiWSo/j8EFit7aUMm5lF+lUmCu+IgfnpFD+7QMgLKtxRJ3aGSqgS/GpqcYVGddnODtSarNE/HyGKUFUolLPQ5ybHcouUk0kyfA7XMeSoUA4lBz63Wha8wmXo+NdBRo39qNTMFEwHQYDVR0OBBYEFPtuhrwgGjDFHeUUT4nGsXaZn69KMB8GA1UdIwQYMBaAFPtuhrwgGjDFHeUUT4nGsXaZn69KMA8GA1UdEwEB/wQFMAMBAf8wCgYIKoZIzj0EAwMDaAAwZQIxAOnozm2CyqRwSSQLls5r+mUHRGRyXHXwYtM4Dcst/VEZdmS9fqvHRCHbjUlO/+HNfgIwMWZ4FmsjD3wnPxONOm9YdVn/PRD7SsPRPbOjwBiE4EBGaHDsLjYAGDSGi7NJnSkA-----END CERTIFICATE-----")
.withLedgerRoleName(LedgerRoleName.READER)))
- .withHostLevel("Info")
- .withMaxBodySizeInMb(1)
- .withSubjectName("CN=CCF Node")
- .withNodeCount(3)
- .withWriteLBAddressPrefix("write")
- .withWorkerThreads(0))
- .create();
+ .withScittConfiguration(
+ "{\r\n \"configuration\": {\r\n \"policy\": {\r\n \"policyScript\": \"export function apply(phdr) { if (!phdr.issuer) {return 'Issuer not found'} else if (phdr.issuer !== 'did:x509:0:sha256:HnwZ4lezuxq/GVcl/Sk7YWW170qAD0DZBLXilXet0jg=::eku:1.3.6.1.4.1.311.10.3.13') { return 'Invalid issuer'; } return true; }\"\r\n },\r\n \"authentication\": {\r\n \"allowUnauthenticated\": false,\r\n \"jwt\": {\r\n \"requiredClaims\": {\r\n \"aud\": \"scitt\",\r\n \"iss\": \"https://authserver.com/\",\r\n \"http://unique.claim/department_id\": \"654987\"\r\n }\r\n }\r\n }\r\n }\r\n }"))
+ .apply();
}
// Use "Map.of" if available
@@ -556,59 +289,23 @@ public final class LedgerCreateSamples {
}
```
-### ManagedCcf_Update
-
-```java
-/**
- * Samples for Ledger GetByResourceGroup.
- */
-public final class LedgerGetByResourceGroupSamples {
- /*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ConfidentialLedger_Get.json
- */
- /**
- * Sample code: ConfidentialLedgerGet.
- *
- * @param manager Entry point to ConfidentialLedgerManager.
- */
- public static void
- confidentialLedgerGet(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.ledgers()
- .getByResourceGroupWithResponse("DummyResourceGroupName", "DummyLedgerName",
- com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Operations_List
```java
-import com.azure.resourcemanager.confidentialledger.models.ConfidentialLedgerRestore;
-
/**
- * Samples for Ledger Restore.
+ * Samples for Operations List.
*/
-public final class LedgerRestoreSamples {
+public final class OperationsListSamples {
/*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ConfidentialLedger_Restore.json
+ * x-ms-original-file: 2025-06-10-preview/Operations_Get.json
*/
/**
- * Sample code: ConfidentialLedgerRestore.
+ * Sample code: OperationsGet.
*
* @param manager Entry point to ConfidentialLedgerManager.
*/
- public static void
- confidentialLedgerRestore(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.ledgers()
- .restore("DummyResourceGroupName", "DummyLedgerName",
- new ConfidentialLedgerRestore().withFileShareName("DummyFileShareName")
- .withRestoreRegion("EastUS")
- .withUri("DummySASUri"),
- com.azure.core.util.Context.NONE);
+ public static void operationsGet(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
+ manager.operations().list(com.azure.core.util.Context.NONE);
}
}
```
@@ -616,23 +313,25 @@ public final class LedgerRestoreSamples {
### ResourceProvider_CheckNameAvailability
```java
+import com.azure.resourcemanager.confidentialledger.models.CheckNameAvailabilityRequest;
+
/**
- * Samples for ManagedCcf Delete.
+ * Samples for ResourceProvider CheckNameAvailability.
*/
-public final class ManagedCcfDeleteSamples {
+public final class ResourceProviderCheckNameAvailabilitySamples {
/*
- * x-ms-original-file:
- * specification/confidentialledger/resource-manager/Microsoft.ConfidentialLedger/preview/2024-09-19-preview/
- * examples/ManagedCCF_Delete.json
+ * x-ms-original-file: 2025-06-10-preview/CheckNameAvailability.json
*/
/**
- * Sample code: ConfidentialLedgerDelete.
+ * Sample code: CheckNameAvailability.
*
* @param manager Entry point to ConfidentialLedgerManager.
*/
public static void
- confidentialLedgerDelete(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
- manager.managedCcfs().delete("DummyResourceGroupName", "DummyMccfAppName", com.azure.core.util.Context.NONE);
+ checkNameAvailability(com.azure.resourcemanager.confidentialledger.ConfidentialLedgerManager manager) {
+ manager.resourceProviders()
+ .checkNameAvailabilityWithResponse(new CheckNameAvailabilityRequest().withName("sample-name")
+ .withType("Microsoft.ConfidentialLedger/ledgers"), com.azure.core.util.Context.NONE);
}
}
```
diff --git a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/pom.xml b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/pom.xml
index 4b92b77f2d75..b6382709a254 100644
--- a/sdk/confidentialledger/azure-resourcemanager-confidentialledger/pom.xml
+++ b/sdk/confidentialledger/azure-resourcemanager-confidentialledger/pom.xml
@@ -1,9 +1,9 @@
-
+
4.0.0
com.azure
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for ConfidentialLedger Management
- This package contains Microsoft Azure SDK for ConfidentialLedger Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview. Package tag package-preview-2024-09.
+ This package contains Microsoft Azure SDK for ConfidentialLedger Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft Azure Confidential Compute Ledger Managed CCF Control Plane REST API version 2025-06-10-preview. Package api-version 2025-06-10-preview.
https://github.com/Azure/azure-sdk-for-java
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 159b0fc7895e..9f38787eae1a 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger;
@@ -44,13 +44,13 @@
/**
* Entry point to ConfidentialLedgerManager.
- * Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview.
+ * Microsoft Azure Confidential Compute Ledger Managed CCF Control Plane REST API version 2025-06-10-preview.
*/
public final class ConfidentialLedgerManager {
- private Operations operations;
-
private ResourceProviders resourceProviders;
+ private Operations operations;
+
private Ledgers ledgers;
private ManagedCcfs managedCcfs;
@@ -270,18 +270,6 @@ public ConfidentialLedgerManager authenticate(TokenCredential credential, AzureP
}
}
- /**
- * Gets the resource collection API of Operations.
- *
- * @return Resource collection API of Operations.
- */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
/**
* Gets the resource collection API of ResourceProviders.
*
@@ -294,6 +282,18 @@ public ResourceProviders resourceProviders() {
return resourceProviders;
}
+ /**
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
/**
* Gets the resource collection API of Ledgers. It manages ConfidentialLedger.
*
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 4bfa02bd49e2..0724862098ff 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.fluent;
@@ -12,26 +12,26 @@
*/
public interface ConfidentialLedgerManagementClient {
/**
- * Gets The ID of the target subscription.
- *
- * @return the subscriptionId value.
- */
- String getSubscriptionId();
-
- /**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
String getEndpoint();
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
String getApiVersion();
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
/**
* Gets The HTTP pipeline to send requests through.
*
@@ -47,18 +47,18 @@ public interface ConfidentialLedgerManagementClient {
Duration getDefaultPollInterval();
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the ResourceProvidersClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the ResourceProvidersClient object.
*/
- OperationsClient getOperations();
+ ResourceProvidersClient getResourceProviders();
/**
- * Gets the ResourceProvidersClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the ResourceProvidersClient object.
+ * @return the OperationsClient object.
*/
- ResourceProvidersClient getResourceProviders();
+ OperationsClient getOperations();
/**
* Gets the LedgersClient object to access its operations.
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 a1900481b154..82d7e539088e 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.fluent;
@@ -22,8 +22,6 @@
*/
public interface LedgersClient {
/**
- * Retrieves information about a Confidential Ledger resource.
- *
* Retrieves the properties of a Confidential Ledger.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -39,8 +37,6 @@ Response getByResourceGroupWithResponse(String resource
Context context);
/**
- * Retrieves information about a Confidential Ledger resource.
- *
* Retrieves the properties of a Confidential Ledger.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -54,90 +50,88 @@ Response getByResourceGroupWithResponse(String resource
ConfidentialLedgerInner getByResourceGroup(String resourceGroupName, String ledgerName);
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String ledgerName);
+ SyncPoller, ConfidentialLedgerInner> beginCreate(String resourceGroupName,
+ String ledgerName, ConfidentialLedgerInner confidentialLedger);
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String ledgerName, Context context);
+ SyncPoller, ConfidentialLedgerInner> beginCreate(String resourceGroupName,
+ String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context);
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String ledgerName);
+ ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger);
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @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 confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String ledgerName, Context context);
+ ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger, Context context);
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfidentialLedgerInner> beginCreate(String resourceGroupName,
+ SyncPoller, ConfidentialLedgerInner> beginUpdate(String resourceGroupName,
String ledgerName, ConfidentialLedgerInner confidentialLedger);
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @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.
@@ -145,34 +139,30 @@ SyncPoller, ConfidentialLedgerInner> beginCr
* @return the {@link SyncPoller} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfidentialLedgerInner> beginCreate(String resourceGroupName,
+ SyncPoller, ConfidentialLedgerInner> beginUpdate(String resourceGroupName,
String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context);
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner update(String resourceGroupName, String ledgerName,
ConfidentialLedgerInner confidentialLedger);
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @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.
@@ -180,82 +170,62 @@ ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
* @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner update(String resourceGroupName, String ledgerName,
ConfidentialLedgerInner confidentialLedger, Context context);
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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 confidential Ledger.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfidentialLedgerInner> beginUpdate(String resourceGroupName,
- String ledgerName, ConfidentialLedgerInner confidentialLedger);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String ledgerName);
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @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 confidential Ledger.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ConfidentialLedgerInner> beginUpdate(String resourceGroupName,
- String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String ledgerName, Context context);
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfidentialLedgerInner update(String resourceGroupName, String ledgerName,
- ConfidentialLedgerInner confidentialLedger);
+ void delete(String resourceGroupName, String ledgerName);
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @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 confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ConfidentialLedgerInner update(String resourceGroupName, String ledgerName,
- ConfidentialLedgerInner confidentialLedger, Context context);
+ void delete(String resourceGroupName, String ledgerName, Context context);
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription and resource group
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -269,8 +239,6 @@ ConfidentialLedgerInner update(String resourceGroupName, String ledgerName,
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.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -287,8 +255,6 @@ PagedIterable listByResourceGroup(String resourceGroupN
Context context);
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -300,8 +266,6 @@ PagedIterable listByResourceGroup(String resourceGroupN
PagedIterable list();
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param filter The filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'.
@@ -316,8 +280,6 @@ PagedIterable listByResourceGroup(String resourceGroupN
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.
@@ -326,16 +288,13 @@ PagedIterable listByResourceGroup(String resourceGroupN
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@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.
@@ -345,16 +304,13 @@ PagedIterable listByResourceGroup(String resourceGroupN
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@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.
@@ -363,15 +319,13 @@ SyncPoller, ConfidentialLedger
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return the response.
*/
@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.
@@ -381,15 +335,13 @@ ConfidentialLedgerBackupResponseInner backup(String resourceGroupName, String le
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return the response.
*/
@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.
@@ -398,16 +350,13 @@ ConfidentialLedgerBackupResponseInner backup(String resourceGroupName, String le
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@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.
@@ -417,16 +366,13 @@ ConfidentialLedgerBackupResponseInner backup(String resourceGroupName, String le
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@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.
@@ -435,15 +381,13 @@ SyncPoller, ConfidentialLedge
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return the response.
*/
@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.
@@ -453,7 +397,7 @@ ConfidentialLedgerRestoreResponseInner restore(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ConfidentialLedgerRestoreResponseInner restore(String resourceGroupName, String ledgerName,
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 0a65f53a7008..e539f9f988fa 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.fluent;
@@ -22,8 +22,6 @@
*/
public interface ManagedCcfsClient {
/**
- * Retrieves information about a Managed CCF resource.
- *
* Retrieves the properties of a Managed CCF app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -38,8 +36,6 @@ public interface ManagedCcfsClient {
Response getByResourceGroupWithResponse(String resourceGroupName, String appName, Context context);
/**
- * Retrieves information about a Managed CCF resource.
- *
* Retrieves the properties of a Managed CCF app.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -53,90 +49,86 @@ public interface ManagedCcfsClient {
ManagedCcfInner getByResourceGroup(String resourceGroupName, String appName);
/**
- * Deletes a Managed CCF resource.
- *
- * Deletes an existing Managed CCF.
+ * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException 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> beginDelete(String resourceGroupName, String appName);
+ SyncPoller, ManagedCcfInner> beginCreate(String resourceGroupName, String appName,
+ ManagedCcfInner managedCCF);
/**
- * Deletes a Managed CCF resource.
- *
- * Deletes an existing Managed CCF.
+ * 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.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of managed CCF.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String appName, Context context);
+ SyncPoller, ManagedCcfInner> beginCreate(String resourceGroupName, String appName,
+ ManagedCcfInner managedCCF, Context context);
/**
- * Deletes a Managed CCF resource.
- *
- * Deletes an existing Managed CCF.
+ * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.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 delete(String resourceGroupName, String appName);
+ ManagedCcfInner create(String resourceGroupName, String appName, ManagedCcfInner managedCCF);
/**
- * Deletes a Managed CCF resource.
- *
- * Deletes an existing Managed CCF.
+ * 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.
* @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 managed CCF.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String appName, Context context);
+ ManagedCcfInner create(String resourceGroupName, String appName, ManagedCcfInner managedCCF, Context context);
/**
- * Creates a Managed CCF.
- *
- * Creates a Managed CCF with the specified Managed CCF parameters.
+ * 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 Managed CCF Create Request Body.
+ * @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 managed CCF.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ManagedCcfInner> beginCreate(String resourceGroupName, String appName,
- ManagedCcfInner managedCcf);
+ SyncPoller, ManagedCcfInner> beginUpdate(String resourceGroupName, String appName,
+ ManagedCcfInner managedCCF);
/**
- * Creates a Managed CCF.
- *
- * Creates a Managed CCF with the specified Managed CCF parameters.
+ * 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 Managed CCF Create Request Body.
+ * @param managedCCF Request body for Updating Managed CCF App.
* @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.
@@ -144,33 +136,29 @@ SyncPoller, ManagedCcfInner> beginCreate(String reso
* @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> beginUpdate(String resourceGroupName, String appName,
+ ManagedCcfInner managedCCF, Context context);
/**
- * Creates a Managed CCF.
- *
- * Creates a Managed CCF with the specified Managed CCF parameters.
+ * 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 Managed CCF Create Request Body.
+ * @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)
- ManagedCcfInner create(String resourceGroupName, String appName, ManagedCcfInner managedCcf);
+ ManagedCcfInner update(String resourceGroupName, String appName, ManagedCcfInner managedCCF);
/**
- * Creates a Managed CCF.
- *
- * Creates a Managed CCF with the specified Managed CCF parameters.
+ * 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 Managed CCF Create Request Body.
+ * @param managedCCF Request body for Updating Managed CCF App.
* @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.
@@ -178,79 +166,61 @@ SyncPoller, ManagedCcfInner> beginCreate(String reso
* @return managed CCF.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ManagedCcfInner create(String resourceGroupName, String appName, ManagedCcfInner managedCcf, Context context);
+ ManagedCcfInner update(String resourceGroupName, String appName, ManagedCcfInner managedCCF, Context context);
/**
- * Update Managed CCF properties
- *
- * Updates properties of 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 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 managed CCF.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ManagedCcfInner> beginUpdate(String resourceGroupName, String appName,
- ManagedCcfInner managedCcf);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String appName);
/**
- * Update Managed CCF properties
- *
- * Updates properties of 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 managedCcf Request body for Updating Managed CCF App.
* @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 managed CCF.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, ManagedCcfInner> beginUpdate(String resourceGroupName, String appName,
- ManagedCcfInner managedCcf, Context context);
+ SyncPoller, Void> beginDelete(String resourceGroupName, String appName, Context context);
/**
- * Update Managed CCF properties
- *
- * Updates properties of 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 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)
- ManagedCcfInner update(String resourceGroupName, String appName, ManagedCcfInner managedCcf);
+ void delete(String resourceGroupName, String appName);
/**
- * Update Managed CCF properties
- *
- * Updates properties of 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 managedCcf Request body for Updating Managed CCF App.
* @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 managed CCF.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ManagedCcfInner update(String resourceGroupName, String appName, ManagedCcfInner managedCcf, Context context);
+ void delete(String resourceGroupName, String appName, Context context);
/**
- * Retrieves information about all Managed CCF resources under the given subscription and resource group
- *
* Retrieves the properties of all Managed CCF apps.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -264,8 +234,6 @@ SyncPoller, ManagedCcfInner> beginUpdate(String reso
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.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -281,8 +249,6 @@ SyncPoller, ManagedCcfInner> beginUpdate(String reso
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.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -294,8 +260,6 @@ SyncPoller, ManagedCcfInner> beginUpdate(String reso
PagedIterable list();
/**
- * Retrieves information about all Managed CCF resources under the given subscription
- *
* Retrieves the properties of all Managed CCF.
*
* @param filter The filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'.
@@ -310,140 +274,124 @@ SyncPoller, ManagedCcfInner> beginUpdate(String reso
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.
+ * @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ManagedCcfBackupResponseInner>
- beginBackup(String resourceGroupName, String appName, ManagedCcfBackup managedCcf);
+ 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 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ManagedCcfBackupResponseInner>
- beginBackup(String resourceGroupName, String appName, ManagedCcfBackup managedCcf, Context context);
+ 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.
+ * @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.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ManagedCcfBackupResponseInner backup(String resourceGroupName, String appName, ManagedCcfBackup managedCcf);
+ 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 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.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ManagedCcfBackupResponseInner backup(String resourceGroupName, String appName, ManagedCcfBackup managedCcf,
+ 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.
+ * @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ManagedCcfRestoreResponseInner>
- beginRestore(String resourceGroupName, String appName, ManagedCcfRestore managedCcf);
+ 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 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, ManagedCcfRestoreResponseInner>
- beginRestore(String resourceGroupName, String appName, ManagedCcfRestore managedCcf, Context context);
+ 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.
+ * @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.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ManagedCcfRestoreResponseInner restore(String resourceGroupName, String appName, ManagedCcfRestore managedCcf);
+ 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 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.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- ManagedCcfRestoreResponseInner restore(String resourceGroupName, String appName, ManagedCcfRestore managedCcf,
+ 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 535ff9a2ca5c..75d1b1323dd7 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.fluent;
@@ -15,9 +15,7 @@
*/
public interface OperationsClient {
/**
- * Retrieves a list of available API operations under this Resource Provider.
- *
- * Retrieves a list of available API operations.
+ * List the operations for the provider.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -28,9 +26,7 @@ public interface OperationsClient {
PagedIterable list();
/**
- * Retrieves a list of available API operations under this Resource Provider.
- *
- * Retrieves a list of available API operations.
+ * List the operations for the provider.
*
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
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 b0146514b10d..b1ae788e2fc1 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.fluent;
@@ -18,7 +18,7 @@ public interface ResourceProvidersClient {
/**
* To check whether a resource name is available.
*
- * @param nameAvailabilityRequest Name availability request payload.
+ * @param nameAvailabilityRequest The request body.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -32,7 +32,7 @@ public interface ResourceProvidersClient {
/**
* To check whether a resource name is available.
*
- * @param nameAvailabilityRequest Name availability request payload.
+ * @param nameAvailabilityRequest The request body.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
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 0ecada728141..75524d62a8d5 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
@@ -1,10 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.fluent.models;
-import com.azure.core.annotation.Fluent;
+import com.azure.core.annotation.Immutable;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -15,7 +15,7 @@
/**
* The check availability result.
*/
-@Fluent
+@Immutable
public final class CheckNameAvailabilityResponseInner implements JsonSerializable {
/*
* Indicates if the resource name is available.
@@ -28,14 +28,14 @@ public final class CheckNameAvailabilityResponseInner implements JsonSerializabl
private CheckNameAvailabilityReason reason;
/*
- * Detailed reason why the given name is available.
+ * Detailed reason why the given name is not available.
*/
private String message;
/**
* Creates an instance of CheckNameAvailabilityResponseInner class.
*/
- public CheckNameAvailabilityResponseInner() {
+ private CheckNameAvailabilityResponseInner() {
}
/**
@@ -47,17 +47,6 @@ public Boolean nameAvailable() {
return this.nameAvailable;
}
- /**
- * Set the nameAvailable property: Indicates if the resource name is available.
- *
- * @param nameAvailable the nameAvailable value to set.
- * @return the CheckNameAvailabilityResponseInner object itself.
- */
- public CheckNameAvailabilityResponseInner withNameAvailable(Boolean nameAvailable) {
- this.nameAvailable = nameAvailable;
- return this;
- }
-
/**
* Get the reason property: The reason why the given name is not available.
*
@@ -68,18 +57,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.
- */
- public CheckNameAvailabilityResponseInner withReason(CheckNameAvailabilityReason reason) {
- this.reason = reason;
- return this;
- }
-
- /**
- * Get the message property: Detailed reason why the given name is available.
+ * Get the message property: Detailed reason why the given name is not available.
*
* @return the message value.
*/
@@ -87,25 +65,6 @@ public String message() {
return this.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.
- */
- public CheckNameAvailabilityResponseInner withMessage(String message) {
- this.message = message;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
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
index 6f19139e33aa..d9550e3f23b8 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.fluent.models;
@@ -25,7 +25,7 @@ public final class ConfidentialLedgerBackupResponseInner
/**
* Creates an instance of ConfidentialLedgerBackupResponseInner class.
*/
- public ConfidentialLedgerBackupResponseInner() {
+ private ConfidentialLedgerBackupResponseInner() {
}
/**
@@ -37,14 +37,6 @@ public String message() {
return this.message;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
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 b9bff945a29e..288b5fa3ce17 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.fluent.models;
@@ -127,17 +127,6 @@ public ConfidentialLedgerInner withTags(Map tags) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
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
index 7b5e99637d5e..f12ecce1a264 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.fluent.models;
@@ -25,7 +25,7 @@ public final class ConfidentialLedgerRestoreResponseInner
/**
* Creates an instance of ConfidentialLedgerRestoreResponseInner class.
*/
- public ConfidentialLedgerRestoreResponseInner() {
+ private ConfidentialLedgerRestoreResponseInner() {
}
/**
@@ -37,14 +37,6 @@ public String message() {
return this.message;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- }
-
/**
* {@inheritDoc}
*/
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
index 319840d92641..cf9769cf6cc5 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.fluent.models;
@@ -24,7 +24,7 @@ public final class ManagedCcfBackupResponseInner implements JsonSerializable tags) {
return this;
}
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (properties() != null) {
- properties().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
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
index c7fb5b5ba588..7f44061c4027 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.fluent.models;
@@ -24,7 +24,7 @@ public final class ManagedCcfRestoreResponseInner implements JsonSerializable {
/*
@@ -36,7 +36,7 @@ public final class ResourceProviderOperationDefinitionInner
/**
* Creates an instance of ResourceProviderOperationDefinitionInner class.
*/
- public ResourceProviderOperationDefinitionInner() {
+ private ResourceProviderOperationDefinitionInner() {
}
/**
@@ -48,17 +48,6 @@ public String name() {
return this.name;
}
- /**
- * Set the name property: Resource provider operation name.
- *
- * @param name the name value to set.
- * @return the ResourceProviderOperationDefinitionInner object itself.
- */
- public ResourceProviderOperationDefinitionInner withName(String name) {
- this.name = name;
- return this;
- }
-
/**
* Get the isDataAction property: Indicates whether the operation is data action or not.
*
@@ -68,17 +57,6 @@ public Boolean isDataAction() {
return this.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.
- */
- public ResourceProviderOperationDefinitionInner withIsDataAction(Boolean isDataAction) {
- this.isDataAction = isDataAction;
- return this;
- }
-
/**
* Get the display property: Details about the operations.
*
@@ -88,28 +66,6 @@ public ResourceProviderOperationDisplay display() {
return this.display;
}
- /**
- * Set the display property: Details about the operations.
- *
- * @param display the display value to set.
- * @return the ResourceProviderOperationDefinitionInner object itself.
- */
- public ResourceProviderOperationDefinitionInner withDisplay(ResourceProviderOperationDisplay display) {
- this.display = display;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (display() != null) {
- display().validate();
- }
- }
-
/**
* {@inheritDoc}
*/
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 96883961c342..faa3bb8dd9ae 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
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
* Package containing the inner data models for ConfidentialLedgerManagementClient.
- * Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview.
+ * Microsoft Azure Confidential Compute Ledger Managed CCF Control Plane REST API version 2025-06-10-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 190001716db3..cda6e6203ed3 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
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
/**
* Package containing the service clients for ConfidentialLedgerManagementClient.
- * Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-12-01-preview.
+ * Microsoft Azure Confidential Compute Ledger Managed CCF Control Plane REST API version 2025-06-10-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 664c459cf239..32b74fa5abb6 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.implementation;
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
index 747cced4c87b..3be624ca66fe 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.implementation;
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 969486f13479..4c84a7d4d6d7 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.implementation;
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 3890ed977512..4593b9fe046c 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.implementation;
@@ -20,34 +20,34 @@
@ServiceClientBuilder(serviceClients = { ConfidentialLedgerManagementClientImpl.class })
public final class ConfidentialLedgerManagementClientBuilder {
/*
- * The ID of the target subscription.
+ * Service host
*/
- private String subscriptionId;
+ private String endpoint;
/**
- * Sets The ID of the target subscription.
+ * Sets Service host.
*
- * @param subscriptionId the subscriptionId value.
+ * @param endpoint the endpoint value.
* @return the ConfidentialLedgerManagementClientBuilder.
*/
- public ConfidentialLedgerManagementClientBuilder subscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
+ public ConfidentialLedgerManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
return this;
}
/*
- * server parameter
+ * The ID of the target subscription. The value must be an UUID.
*/
- private String endpoint;
+ private String subscriptionId;
/**
- * Sets server parameter.
+ * Sets The ID of the target subscription. The value must be an UUID.
*
- * @param endpoint the endpoint value.
+ * @param subscriptionId the subscriptionId value.
* @return the ConfidentialLedgerManagementClientBuilder.
*/
- public ConfidentialLedgerManagementClientBuilder endpoint(String endpoint) {
- this.endpoint = endpoint;
+ public ConfidentialLedgerManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
return this;
}
@@ -132,7 +132,7 @@ public ConfidentialLedgerManagementClientImpl buildClient() {
? serializerAdapter
: SerializerFactory.createDefaultManagementSerializerAdapter();
ConfidentialLedgerManagementClientImpl client = new ConfidentialLedgerManagementClientImpl(localPipeline,
- localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
+ localSerializerAdapter, localDefaultPollInterval, localEnvironment, localEndpoint, this.subscriptionId);
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 84c8b961cda7..6f0208195e5d 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.implementation;
@@ -46,26 +46,12 @@
@ServiceClient(builder = ConfidentialLedgerManagementClientBuilder.class)
public final class ConfidentialLedgerManagementClientImpl implements ConfidentialLedgerManagementClient {
/**
- * 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.
+ * Service host.
*/
private final String endpoint;
/**
- * Gets server parameter.
+ * Gets Service host.
*
* @return the endpoint value.
*/
@@ -74,12 +60,12 @@ public String getEndpoint() {
}
/**
- * Api Version.
+ * Version parameter.
*/
private final String apiVersion;
/**
- * Gets Api Version.
+ * Gets Version parameter.
*
* @return the apiVersion value.
*/
@@ -87,6 +73,20 @@ public String getApiVersion() {
return this.apiVersion;
}
+ /**
+ * The ID of the target subscription. The value must be an UUID.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets The ID of the target subscription. The value must be an UUID.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
/**
* The HTTP pipeline to send requests through.
*/
@@ -130,31 +130,31 @@ public Duration getDefaultPollInterval() {
}
/**
- * The OperationsClient object to access its operations.
+ * The ResourceProvidersClient object to access its operations.
*/
- private final OperationsClient operations;
+ private final ResourceProvidersClient resourceProviders;
/**
- * Gets the OperationsClient object to access its operations.
+ * Gets the ResourceProvidersClient object to access its operations.
*
- * @return the OperationsClient object.
+ * @return the ResourceProvidersClient object.
*/
- public OperationsClient getOperations() {
- return this.operations;
+ public ResourceProvidersClient getResourceProviders() {
+ return this.resourceProviders;
}
/**
- * The ResourceProvidersClient object to access its operations.
+ * The OperationsClient object to access its operations.
*/
- private final ResourceProvidersClient resourceProviders;
+ private final OperationsClient operations;
/**
- * Gets the ResourceProvidersClient object to access its operations.
+ * Gets the OperationsClient object to access its operations.
*
- * @return the ResourceProvidersClient object.
+ * @return the OperationsClient object.
*/
- public ResourceProvidersClient getResourceProviders() {
- return this.resourceProviders;
+ public OperationsClient getOperations() {
+ return this.operations;
}
/**
@@ -192,19 +192,19 @@ public ManagedCcfsClient getManagedCcfs() {
* @param serializerAdapter The serializer to serialize an object into a string.
* @param defaultPollInterval The default poll interval for long-running operation.
* @param environment The Azure environment.
- * @param subscriptionId The ID of the target subscription.
- * @param endpoint server parameter.
+ * @param endpoint Service host.
+ * @param subscriptionId The ID of the target subscription. The value must be an UUID.
*/
ConfidentialLedgerManagementClientImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
- Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) {
+ Duration defaultPollInterval, AzureEnvironment environment, String endpoint, String subscriptionId) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
- this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2024-09-19-preview";
- this.operations = new OperationsClientImpl(this);
+ this.subscriptionId = subscriptionId;
+ this.apiVersion = "2025-06-10-preview";
this.resourceProviders = new ResourceProvidersClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
this.ledgers = new LedgersClientImpl(this);
this.managedCcfs = new ManagedCcfsClientImpl(this);
}
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
index f6f6989d8f35..0bd05544415a 100644
--- 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.implementation;
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 dad0f11f86ef..b6a777558b14 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
@@ -1,6 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-// Code generated by Microsoft (R) AutoRest Code Generator.
+// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.resourcemanager.confidentialledger.implementation;
@@ -32,15 +32,14 @@
import com.azure.core.util.BinaryData;
import com.azure.core.util.Context;
import com.azure.core.util.FluxUtil;
-import com.azure.core.util.logging.ClientLogger;
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.implementation.models.ConfidentialLedgerList;
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;
@@ -74,14 +73,14 @@ public final class LedgersClientImpl implements LedgersClient {
* The interface defining all the services for ConfidentialLedgerManagementClientLedgers to be used by the proxy
* service to perform REST calls.
*/
- @Host("{$host}")
- @ServiceInterface(name = "ConfidentialLedgerMa")
+ @Host("{endpoint}")
+ @ServiceInterface(name = "ConfidentialLedgerManagementClientLedgers")
public interface LedgersService {
@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,
+ Mono> getByResourceGroup(@HostParam("endpoint") 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);
@@ -90,74 +89,70 @@ Mono> getByResourceGroup(@HostParam("$host") S
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response getByResourceGroupSync(@HostParam("$host") String endpoint,
+ Response getByResourceGroupSync(@HostParam("endpoint") 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 })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> delete(@HostParam("$host") String endpoint,
+ Mono>> create(@HostParam("endpoint") 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);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ConfidentialLedgerInner confidentialLedger, Context context);
- @Headers({ "Content-Type: application/json" })
- @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
- @ExpectedResponses({ 200, 202, 204 })
+ @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
+ @ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response deleteSync(@HostParam("$host") String endpoint,
+ Response createSync(@HostParam("endpoint") 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);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ConfidentialLedgerInner confidentialLedger, Context context);
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> create(@HostParam("$host") String endpoint,
+ Mono>> update(@HostParam("endpoint") 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("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ConfidentialLedgerInner confidentialLedger, Context context);
- @Headers({ "Content-Type: application/json" })
- @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
@ExpectedResponses({ 200, 201 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response createSync(@HostParam("$host") String endpoint,
+ Response updateSync(@HostParam("endpoint") 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("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ConfidentialLedgerInner confidentialLedger, Context context);
- @Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
- @ExpectedResponses({ 200, 201 })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono>> update(@HostParam("$host") String endpoint,
+ Mono>> delete(@HostParam("endpoint") 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);
+ Context context);
- @Headers({ "Content-Type: application/json" })
- @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
- @ExpectedResponses({ 200, 201 })
+ @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" })
+ @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}")
+ @ExpectedResponses({ 200, 202, 204 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response updateSync(@HostParam("$host") String endpoint,
+ Response deleteSync(@HostParam("endpoint") 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);
+ Context context);
@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,
+ Mono> listByResourceGroup(@HostParam("endpoint") 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);
@@ -166,73 +161,69 @@ Mono> listByResourceGroup(@HostParam("$host") S
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listByResourceGroupSync(@HostParam("$host") String endpoint,
+ Response listByResourceGroupSync(@HostParam("endpoint") 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/")
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/ledgers")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Mono> list(@HostParam("$host") String endpoint,
+ Mono> list(@HostParam("endpoint") 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" })
- @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/ledgers/")
+ @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/ledgers")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response listSync(@HostParam("$host") String endpoint,
+ Response listSync(@HostParam("endpoint") 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,
+ Mono>> backup(@HostParam("endpoint") 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);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ConfidentialLedgerBackup confidentialLedger, Context context);
- @Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/backup")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response backupSync(@HostParam("$host") String endpoint,
+ Response backupSync(@HostParam("endpoint") 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);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ConfidentialLedgerBackup confidentialLedger, 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>> restore(@HostParam("$host") String endpoint,
+ Mono>> restore(@HostParam("endpoint") 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);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ConfidentialLedgerRestore confidentialLedger, Context context);
- @Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/restore")
@ExpectedResponses({ 200, 202 })
@UnexpectedResponseExceptionType(ManagementException.class)
- Response restoreSync(@HostParam("$host") String endpoint,
+ Response restoreSync(@HostParam("endpoint") 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);
+ @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept,
+ @BodyParam("application/json") ConfidentialLedgerRestore confidentialLedger, Context context);
@Headers({ "Content-Type: application/json" })
@Get("{nextLink}")
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listByResourceGroupNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -240,7 +231,7 @@ Mono> listByResourceGroupNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listByResourceGroupNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -248,7 +239,7 @@ Response listByResourceGroupNextSync(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Mono> listBySubscriptionNext(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@@ -256,13 +247,11 @@ Mono> listBySubscriptionNext(
@ExpectedResponses({ 200 })
@UnexpectedResponseExceptionType(ManagementException.class)
Response listBySubscriptionNextSync(
- @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("$host") String endpoint,
+ @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint,
@HeaderParam("Accept") String accept, Context context);
}
/**
- * Retrieves information about a Confidential Ledger resource.
- *
* Retrieves the properties of a Confidential Ledger.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -275,21 +264,6 @@ Response listBySubscriptionNextSync(
@ServiceMethod(returns = ReturnType.SINGLE)
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."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -298,8 +272,6 @@ private Mono> getByResourceGroupWithResponseAs
}
/**
- * Retrieves information about a Confidential Ledger resource.
- *
* Retrieves the properties of a Confidential Ledger.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -316,8 +288,6 @@ private Mono getByResourceGroupAsync(String resourceGro
}
/**
- * Retrieves information about a Confidential Ledger resource.
- *
* Retrieves the properties of a Confidential Ledger.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -331,32 +301,12 @@ private Mono getByResourceGroupAsync(String resourceGro
@ServiceMethod(returns = ReturnType.SINGLE)
public Response getByResourceGroupWithResponse(String resourceGroupName, String ledgerName,
Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
final String accept = "application/json";
return service.getByResourceGroupSync(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.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -372,320 +322,234 @@ public ConfidentialLedgerInner getByResourceGroup(String resourceGroupName, Stri
}
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link Response} on successful completion of {@link Mono}.
+ * @return confidential Ledger along with {@link Response} on successful completion of {@link Mono}.
*/
@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."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
+ private Mono>> createWithResponseAsync(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger) {
+ final String contentType = "application/json";
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.create(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body along with {@link Response}.
+ * @return confidential Ledger along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Response deleteWithResponse(String resourceGroupName, String ledgerName) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
+ private Response createWithResponse(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger) {
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, accept, Context.NONE);
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ Context.NONE);
}
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the response body along with {@link Response}.
+ * @return confidential Ledger along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Response deleteWithResponse(String resourceGroupName, String ledgerName, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
+ private Response createWithResponse(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger, Context context) {
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, accept, context);
+ return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ context);
}
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of long-running operation.
+ * @return the {@link PollerFlux} for polling of confidential Ledger.
*/
@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,
+ 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());
}
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String ledgerName) {
- Response response = deleteWithResponse(resourceGroupName, ledgerName);
- return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
+ public SyncPoller, ConfidentialLedgerInner>
+ beginCreate(String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
+ Response response = createWithResponse(resourceGroupName, ledgerName, confidentialLedger);
+ return this.client.getLroResult(response,
+ ConfidentialLedgerInner.class, ConfidentialLedgerInner.class, Context.NONE);
}
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of long-running operation.
+ * @return the {@link SyncPoller} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, Void> beginDelete(String resourceGroupName, String ledgerName,
- Context context) {
- Response response = deleteWithResponse(resourceGroupName, ledgerName, context);
- return this.client.getLroResult(response, Void.class, Void.class, context);
+ public SyncPoller, ConfidentialLedgerInner> beginCreate(
+ String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context) {
+ Response response = createWithResponse(resourceGroupName, ledgerName, confidentialLedger, context);
+ return this.client.getLroResult(response,
+ ConfidentialLedgerInner.class, ConfidentialLedgerInner.class, context);
}
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return A {@link Mono} that completes when a successful response is received.
+ * @return confidential Ledger on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono deleteAsync(String resourceGroupName, String ledgerName) {
- return beginDeleteAsync(resourceGroupName, ledgerName).last().flatMap(this.client::getLroFinalResultOrError);
+ private Mono createAsync(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger) {
+ return beginCreateAsync(resourceGroupName, ledgerName, confidentialLedger).last()
+ .flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String ledgerName) {
- beginDelete(resourceGroupName, ledgerName).getFinalResult();
+ public ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger) {
+ return beginCreate(resourceGroupName, ledgerName, confidentialLedger).getFinalResult();
}
/**
- * Deletes a Confidential Ledger resource.
- *
- * Deletes an existing Confidential Ledger.
+ * 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.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public void delete(String resourceGroupName, String ledgerName, Context context) {
- beginDelete(resourceGroupName, ledgerName, context).getFinalResult();
+ public ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ ConfidentialLedgerInner confidentialLedger, Context context) {
+ return beginCreate(resourceGroupName, ledgerName, confidentialLedger, context).getFinalResult();
}
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return confidential Ledger along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>> createWithResponseAsync(String resourceGroupName, String ledgerName,
+ 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."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
+ final String contentType = "application/json";
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.update(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return confidential Ledger along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Response createWithResponse(String resourceGroupName, String ledgerName,
+ private Response updateWithResponse(String resourceGroupName, String ledgerName,
ConfidentialLedgerInner confidentialLedger) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, Context.NONE);
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ Context.NONE);
}
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -693,45 +557,21 @@ private Response createWithResponse(String resourceGroupName, String
* @return confidential Ledger along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Response createWithResponse(String resourceGroupName, String ledgerName,
+ private Response updateWithResponse(String resourceGroupName, String ledgerName,
ConfidentialLedgerInner confidentialLedger, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
- return service.createSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, context);
+ return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ context);
}
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -739,22 +579,20 @@ private Response createWithResponse(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ConfidentialLedgerInner>
- beginCreateAsync(String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
+ beginUpdateAsync(String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
Mono>> mono
- = createWithResponseAsync(resourceGroupName, ledgerName, confidentialLedger);
+ = updateWithResponseAsync(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.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -762,20 +600,18 @@ private Response createWithResponse(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ConfidentialLedgerInner>
- beginCreate(String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
- Response response = createWithResponse(resourceGroupName, ledgerName, confidentialLedger);
+ beginUpdate(String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
+ Response response = updateWithResponse(resourceGroupName, ledgerName, confidentialLedger);
return this.client.getLroResult(response,
ConfidentialLedgerInner.class, ConfidentialLedgerInner.class, Context.NONE);
}
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -783,60 +619,54 @@ private Response createWithResponse(String resourceGroupName, String
* @return the {@link SyncPoller} for polling of confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ConfidentialLedgerInner> beginCreate(
+ public SyncPoller, ConfidentialLedgerInner> beginUpdate(
String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context) {
- Response response = createWithResponse(resourceGroupName, ledgerName, confidentialLedger, context);
+ Response response = updateWithResponse(resourceGroupName, ledgerName, confidentialLedger, context);
return this.client.getLroResult(response,
ConfidentialLedgerInner.class, ConfidentialLedgerInner.class, context);
}
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return confidential Ledger on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono createAsync(String resourceGroupName, String ledgerName,
+ private Mono updateAsync(String resourceGroupName, String ledgerName,
ConfidentialLedgerInner confidentialLedger) {
- return beginCreateAsync(resourceGroupName, ledgerName, confidentialLedger).last()
+ return beginUpdateAsync(resourceGroupName, ledgerName, confidentialLedger).last()
.flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ public ConfidentialLedgerInner update(String resourceGroupName, String ledgerName,
ConfidentialLedgerInner confidentialLedger) {
- return beginCreate(resourceGroupName, ledgerName, confidentialLedger).getFinalResult();
+ return beginUpdate(resourceGroupName, ledgerName, confidentialLedger).getFinalResult();
}
/**
- * Creates a Confidential Ledger.
- *
- * Creates a Confidential Ledger with the specified ledger parameters.
+ * 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 Create Request Body.
+ * @param confidentialLedger Confidential Ledger request body for Updating Ledger.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -844,274 +674,158 @@ public ConfidentialLedgerInner create(String resourceGroupName, String ledgerNam
* @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ConfidentialLedgerInner create(String resourceGroupName, String ledgerName,
+ public ConfidentialLedgerInner update(String resourceGroupName, String ledgerName,
ConfidentialLedgerInner confidentialLedger, Context context) {
- return beginCreate(resourceGroupName, ledgerName, confidentialLedger, context).getFinalResult();
+ return beginUpdate(resourceGroupName, ledgerName, confidentialLedger, context).getFinalResult();
}
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return confidential Ledger along with {@link Response} on successful completion of {@link Mono}.
+ * @return the {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- 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."));
- }
- if (this.client.getSubscriptionId() == null) {
- return Mono.error(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
- final String accept = "application/json";
+ private Mono>> deleteWithResponseAsync(String resourceGroupName, String ledgerName) {
return FluxUtil
- .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, context))
+ .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return confidential Ledger along with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Response updateWithResponse(String resourceGroupName, String ledgerName,
- ConfidentialLedgerInner confidentialLedger) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
- final String accept = "application/json";
- return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, Context.NONE);
+ private Response deleteWithResponse(String resourceGroupName, String ledgerName) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, Context.NONE);
}
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return confidential Ledger along with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Response updateWithResponse(String resourceGroupName, String ledgerName,
- ConfidentialLedgerInner confidentialLedger, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
- final String accept = "application/json";
- return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, context);
+ private Response deleteWithResponse(String resourceGroupName, String ledgerName, Context context) {
+ return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(),
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, context);
}
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of confidential Ledger.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@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,
+ 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());
}
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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 confidential Ledger.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ConfidentialLedgerInner>
- beginUpdate(String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger) {
- Response response = updateWithResponse(resourceGroupName, ledgerName, confidentialLedger);
- return this.client.getLroResult(response,
- ConfidentialLedgerInner.class, ConfidentialLedgerInner.class, Context.NONE);
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String ledgerName) {
+ Response response = deleteWithResponse(resourceGroupName, ledgerName);
+ return this.client.getLroResult(response, Void.class, Void.class, Context.NONE);
}
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link SyncPoller} for polling of confidential Ledger.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- public SyncPoller, ConfidentialLedgerInner> beginUpdate(
- String resourceGroupName, String ledgerName, ConfidentialLedgerInner confidentialLedger, Context context) {
- Response response = updateWithResponse(resourceGroupName, ledgerName, confidentialLedger, context);
- return this.client.getLroResult(response,
- ConfidentialLedgerInner.class, ConfidentialLedgerInner.class, context);
+ public SyncPoller, Void> beginDelete(String resourceGroupName, String ledgerName,
+ Context context) {
+ Response response = deleteWithResponse(resourceGroupName, ledgerName, context);
+ return this.client.getLroResult(response, Void.class, Void.class, context);
}
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return confidential Ledger on successful completion of {@link Mono}.
+ * @return A {@link Mono} that completes when a successful response is received.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono updateAsync(String resourceGroupName, String ledgerName,
- ConfidentialLedgerInner confidentialLedger) {
- return beginUpdateAsync(resourceGroupName, ledgerName, confidentialLedger).last()
- .flatMap(this.client::getLroFinalResultOrError);
+ private Mono deleteAsync(String resourceGroupName, String ledgerName) {
+ return beginDeleteAsync(resourceGroupName, ledgerName).last().flatMap(this.client::getLroFinalResultOrError);
}
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ConfidentialLedgerInner update(String resourceGroupName, String ledgerName,
- ConfidentialLedgerInner confidentialLedger) {
- return beginUpdate(resourceGroupName, ledgerName, confidentialLedger).getFinalResult();
+ public void delete(String resourceGroupName, String ledgerName) {
+ beginDelete(resourceGroupName, ledgerName).getFinalResult();
}
/**
- * Update Confidential Ledger properties
- *
- * Updates properties of 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 confidentialLedger Confidential Ledger request body for Updating Ledger.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return confidential Ledger.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public ConfidentialLedgerInner update(String resourceGroupName, String ledgerName,
- ConfidentialLedgerInner confidentialLedger, Context context) {
- return beginUpdate(resourceGroupName, ledgerName, confidentialLedger, context).getFinalResult();
+ public void delete(String resourceGroupName, String ledgerName, Context context) {
+ beginDelete(resourceGroupName, ledgerName, context).getFinalResult();
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription and resource group
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1125,18 +839,6 @@ public ConfidentialLedgerInner update(String resourceGroupName, String ledgerNam
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName,
String filter) {
- if (this.client.getEndpoint() == 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."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -1147,8 +849,6 @@ private Mono> listByResourceGroupSinglePa
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription and resource group
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1166,8 +866,6 @@ private PagedFlux listByResourceGroupAsync(String resou
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription and resource group
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1185,8 +883,6 @@ private PagedFlux listByResourceGroupAsync(String resou
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription and resource group
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1200,20 +896,6 @@ private PagedFlux listByResourceGroupAsync(String resou
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listByResourceGroupSinglePage(String resourceGroupName,
String filter) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
final String accept = "application/json";
Response res
= service.listByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -1223,8 +905,6 @@ private PagedResponse listByResourceGroupSinglePage(Str
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription and resource group
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1239,20 +919,6 @@ private PagedResponse listByResourceGroupSinglePage(Str
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listByResourceGroupSinglePage(String resourceGroupName,
String filter, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
final String accept = "application/json";
Response res = service.listByResourceGroupSync(this.client.getEndpoint(),
this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, filter, accept, context);
@@ -1261,8 +927,6 @@ private PagedResponse listByResourceGroupSinglePage(Str
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription and resource group
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1280,8 +944,6 @@ public PagedIterable listByResourceGroup(String resourc
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription and resource group
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
@@ -1301,8 +963,6 @@ public PagedIterable listByResourceGroup(String resourc
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param filter The filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'.
@@ -1314,14 +974,6 @@ public PagedIterable listByResourceGroup(String resourc
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(String filter) {
- if (this.client.getEndpoint() == 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."));
- }
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(),
@@ -1332,8 +984,6 @@ private Mono> listSinglePageAsync(String
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param filter The filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'.
@@ -1350,8 +1000,6 @@ private PagedFlux listAsync(String filter) {
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @throws ManagementException thrown if the request is rejected by server.
@@ -1367,8 +1015,6 @@ private PagedFlux listAsync() {
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param filter The filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'.
@@ -1380,16 +1026,6 @@ private PagedFlux listAsync() {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listSinglePage(String filter) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
final String accept = "application/json";
Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), filter, accept, Context.NONE);
@@ -1398,8 +1034,6 @@ private PagedResponse listSinglePage(String filter) {
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param filter The filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'.
@@ -1412,16 +1046,6 @@ private PagedResponse listSinglePage(String filter) {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private PagedResponse listSinglePage(String filter, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
final String accept = "application/json";
Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(),
this.client.getSubscriptionId(), filter, accept, context);
@@ -1430,8 +1054,6 @@ private PagedResponse listSinglePage(String filter, Con
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @throws ManagementException thrown if the request is rejected by server.
@@ -1447,8 +1069,6 @@ public PagedIterable list() {
}
/**
- * Retrieves information about all Confidential Ledger resources under the given subscription
- *
* Retrieves the properties of all Confidential Ledgers.
*
* @param filter The filter to apply on the list operation. eg. $filter=ledgerType eq 'Public'.
@@ -1466,8 +1086,6 @@ public PagedIterable list(String filter, Context contex
}
/**
- * 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.
@@ -1476,43 +1094,21 @@ public PagedIterable list(String filter, Context contex
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 along with {@link Response} on
- * successful completion of {@link Mono}.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> backupWithResponseAsync(String resourceGroupName, String ledgerName,
ConfidentialLedgerBackup confidentialLedger) {
- if (this.client.getEndpoint() == 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."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.backup(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, context))
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * 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.
@@ -1521,43 +1117,19 @@ private Mono>> backupWithResponseAsync(String resource
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return object representing the backup response of a Confidential Ledger Resource along with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Response backupWithResponse(String resourceGroupName, String ledgerName,
ConfidentialLedgerBackup confidentialLedger) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
return service.backupSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, Context.NONE);
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ Context.NONE);
}
/**
- * 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.
@@ -1567,43 +1139,19 @@ private Response backupWithResponse(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 along with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Response backupWithResponse(String resourceGroupName, String ledgerName,
ConfidentialLedgerBackup confidentialLedger, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
return service.backupSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, context);
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ 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.
@@ -1612,8 +1160,7 @@ private Response backupWithResponse(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of object representing the backup response of a Confidential Ledger
- * Resource.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ConfidentialLedgerBackupResponseInner>
@@ -1626,8 +1173,6 @@ private Response backupWithResponse(String resourceGroupName, String
}
/**
- * 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.
@@ -1636,8 +1181,7 @@ private Response backupWithResponse(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ConfidentialLedgerBackupResponseInner>
@@ -1649,8 +1193,6 @@ private Response backupWithResponse(String resourceGroupName, String
}
/**
- * 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.
@@ -1660,8 +1202,7 @@ private Response backupWithResponse(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ConfidentialLedgerBackupResponseInner>
@@ -1674,8 +1215,6 @@ private Response backupWithResponse(String resourceGroupName, String
}
/**
- * 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.
@@ -1684,8 +1223,7 @@ private Response backupWithResponse(String resourceGroupName, String
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 on successful completion of
- * {@link Mono}.
+ * @return the response body on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono backupAsync(String resourceGroupName, String ledgerName,
@@ -1695,8 +1233,6 @@ private Mono backupAsync(String resourceG
}
/**
- * 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.
@@ -1705,7 +1241,7 @@ private Mono backupAsync(String resourceG
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public ConfidentialLedgerBackupResponseInner backup(String resourceGroupName, String ledgerName,
@@ -1714,8 +1250,6 @@ public ConfidentialLedgerBackupResponseInner backup(String resourceGroupName, St
}
/**
- * 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.
@@ -1725,7 +1259,7 @@ public ConfidentialLedgerBackupResponseInner backup(String resourceGroupName, St
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
public ConfidentialLedgerBackupResponseInner backup(String resourceGroupName, String ledgerName,
@@ -1734,8 +1268,6 @@ public ConfidentialLedgerBackupResponseInner backup(String resourceGroupName, St
}
/**
- * 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.
@@ -1744,43 +1276,21 @@ public ConfidentialLedgerBackupResponseInner backup(String resourceGroupName, St
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 along with {@link Response} on
- * successful completion of {@link Mono}.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> restoreWithResponseAsync(String resourceGroupName, String ledgerName,
ConfidentialLedgerRestore confidentialLedger) {
- if (this.client.getEndpoint() == 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."));
- }
- if (resourceGroupName == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- return Mono.error(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- return Mono
- .error(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
return FluxUtil
.withContext(context -> service.restore(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, context))
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ context))
.contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
}
/**
- * 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.
@@ -1789,43 +1299,19 @@ private Mono>> restoreWithResponseAsync(String resourc
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 along with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Response restoreWithResponse(String resourceGroupName, String ledgerName,
ConfidentialLedgerRestore confidentialLedger) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
return service.restoreSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, Context.NONE);
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ Context.NONE);
}
/**
- * 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.
@@ -1835,43 +1321,19 @@ private Response restoreWithResponse(String resourceGroupName, Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws 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 along with {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Response restoreWithResponse(String resourceGroupName, String ledgerName,
ConfidentialLedgerRestore confidentialLedger, Context context) {
- if (this.client.getEndpoint() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getEndpoint() is required and cannot be null."));
- }
- if (this.client.getSubscriptionId() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Parameter this.client.getSubscriptionId() is required and cannot be null."));
- }
- if (resourceGroupName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
- }
- if (ledgerName == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter ledgerName is required and cannot be null."));
- }
- if (confidentialLedger == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException("Parameter confidentialLedger is required and cannot be null."));
- } else {
- confidentialLedger.validate();
- }
+ final String contentType = "application/json";
final String accept = "application/json";
return service.restoreSync(this.client.getEndpoint(), this.client.getApiVersion(),
- this.client.getSubscriptionId(), resourceGroupName, ledgerName, confidentialLedger, accept, context);
+ this.client.getSubscriptionId(), resourceGroupName, ledgerName, contentType, accept, confidentialLedger,
+ 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.
@@ -1880,8 +1342,7 @@ private Response restoreWithResponse(String resourceGroupName, Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
- * @return the {@link PollerFlux} for polling of object representing the restore response of a Confidential Ledger
- * Resource.
+ * @return the {@link PollerFlux} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, ConfidentialLedgerRestoreResponseInner>
@@ -1894,8 +1355,6 @@ private Response restoreWithResponse(String resourceGroupName, Strin
}
/**
- * 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.
@@ -1904,8 +1363,7 @@ private Response restoreWithResponse(String resourceGroupName, Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, ConfidentialLedgerRestoreResponseInner>
@@ -1917,8 +1375,6 @@ private Response restoreWithResponse(String resourceGroupName, Strin
}
/**
- * 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.
@@ -1928,8 +1384,7 @@ private Response restoreWithResponse(String resourceGroupName, Strin
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException 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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller