diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt
index a7c9929c035a8..65d1a1a313fc2 100644
--- a/eng/versioning/version_client.txt
+++ b/eng/versioning/version_client.txt
@@ -340,6 +340,7 @@ com.azure.resourcemanager:azure-resourcemanager-servicelinker;1.0.0-beta.1;1.0.0
com.azure.resourcemanager:azure-resourcemanager-appcontainers;1.0.0-beta.2;1.0.0-beta.3
com.azure.resourcemanager:azure-resourcemanager-scvmm;1.0.0-beta.1;1.0.0-beta.2
com.azure.resourcemanager:azure-resourcemanager-hardwaresecuritymodules;1.0.0-beta.1;1.0.0-beta.2
+com.azure.resourcemanager:azure-resourcemanager-keyvault-generated;1.0.0-beta.1;1.0.0-beta.1
com.azure.tools:azure-sdk-archetype;1.0.0;1.0.0
com.azure.tools:azure-sdk-build-tool;1.0.0-beta.1;1.0.0-beta.2
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/CHANGELOG.md b/sdk/keyvault/azure-resourcemanager-keyvault-generated/CHANGELOG.md
new file mode 100644
index 0000000000000..12052c04c9aff
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Release History
+
+## 1.0.0-beta.1 (2022-05-12)
+
+- Azure Resource Manager KeyVault client library for Java. This package contains Microsoft Azure SDK for KeyVault Management SDK. The Azure management API provides a RESTful set of web services that interact with Azure Key Vault. Package tag package-preview-2021-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/README.md b/sdk/keyvault/azure-resourcemanager-keyvault-generated/README.md
new file mode 100644
index 0000000000000..00239a4bf5b6e
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/README.md
@@ -0,0 +1,102 @@
+# Azure Resource Manager KeyVault client library for Java
+
+Azure Resource Manager KeyVault client library for Java.
+
+This package contains Microsoft Azure SDK for KeyVault Management SDK. The Azure management API provides a RESTful set of web services that interact with Azure Key Vault. Package tag package-preview-2021-11. 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
+
+We're always working on improving our products and the way we communicate with our users. So we'd love to learn what's working and how we can do better.
+
+If you haven't already, please take a few minutes to [complete this short survey][survey] we have put together.
+
+Thank you in advance for your collaboration. We really appreciate your time!
+
+## Documentation
+
+Various documentation is available to help you get started
+
+- [API reference documentation][docs]
+
+## Getting started
+
+### Prerequisites
+
+- [Java Development Kit (JDK)][jdk] with version 8 or above
+- [Azure Subscription][azure_subscription]
+
+### Adding the package to your product
+
+[//]: # ({x-version-update-start;com.azure.resourcemanager:azure-resourcemanager-keyvault-generated;current})
+```xml
+
+ com.azure.resourcemanager
+ azure-resourcemanager-keyvault-generated
+ 1.0.0-beta.1
+
+```
+[//]: # ({x-version-update-end})
+
+### Include the recommended packages
+
+Azure Management Libraries require a `TokenCredential` implementation for authentication and an `HttpClient` implementation for HTTP client.
+
+[Azure Identity][azure_identity] package and [Azure Core Netty HTTP][azure_core_http_netty] package provide the default implementation.
+
+### Authentication
+
+By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
+
+- `AZURE_CLIENT_ID` for Azure client ID.
+- `AZURE_TENANT_ID` for Azure tenant ID.
+- `AZURE_CLIENT_SECRET` or `AZURE_CLIENT_CERTIFICATE_PATH` for client secret or client certificate.
+
+In addition, Azure subscription ID can be configured via environment variable `AZURE_SUBSCRIPTION_ID`.
+
+With above configuration, `azure` client can be authenticated by following code:
+
+```java
+AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
+TokenCredential credential = new DefaultAzureCredentialBuilder()
+ .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
+ .build();
+KeyVaultManager manager = KeyVaultManager
+ .authenticate(credential, profile);
+```
+
+The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
+
+See [Authentication][authenticate] for more options.
+
+## Key concepts
+
+See [API design][design] for general introduction on design and key concepts on Azure Management Libraries.
+
+## Examples
+
+[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/keyvault/azure-resourcemanager-keyvault-generated/SAMPLE.md)
+
+
+## Troubleshooting
+
+## Next steps
+
+## Contributing
+
+For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md).
+
+1. Fork it
+1. Create your feature branch (`git checkout -b my-new-feature`)
+1. Commit your changes (`git commit -am 'Add some feature'`)
+1. Push to the branch (`git push origin my-new-feature`)
+1. Create new Pull Request
+
+
+[survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS
+[docs]: https://azure.github.io/azure-sdk-for-java/
+[jdk]: https://docs.microsoft.com/java/azure/jdk/
+[azure_subscription]: https://azure.microsoft.com/free/
+[azure_identity]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/identity/azure-identity
+[azure_core_http_netty]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/core/azure-core-http-netty
+[authenticate]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/AUTH.md
+[design]: https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/resourcemanager/docs/DESIGN.md
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/SAMPLE.md b/sdk/keyvault/azure-resourcemanager-keyvault-generated/SAMPLE.md
new file mode 100644
index 0000000000000..85afedc341af7
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/SAMPLE.md
@@ -0,0 +1,1288 @@
+# Code snippets and samples
+
+
+## Keys
+
+- [CreateIfNotExist](#keys_createifnotexist)
+- [Get](#keys_get)
+- [GetVersion](#keys_getversion)
+- [List](#keys_list)
+- [ListVersions](#keys_listversions)
+
+## ManagedHsms
+
+- [CreateOrUpdate](#managedhsms_createorupdate)
+- [Delete](#managedhsms_delete)
+- [GetByResourceGroup](#managedhsms_getbyresourcegroup)
+- [GetDeleted](#managedhsms_getdeleted)
+- [List](#managedhsms_list)
+- [ListByResourceGroup](#managedhsms_listbyresourcegroup)
+- [ListDeleted](#managedhsms_listdeleted)
+- [PurgeDeleted](#managedhsms_purgedeleted)
+- [Update](#managedhsms_update)
+
+## MhsmPrivateEndpointConnections
+
+- [Delete](#mhsmprivateendpointconnections_delete)
+- [Get](#mhsmprivateendpointconnections_get)
+- [ListByResource](#mhsmprivateendpointconnections_listbyresource)
+- [Put](#mhsmprivateendpointconnections_put)
+
+## MhsmPrivateLinkResources
+
+- [ListByMhsmResource](#mhsmprivatelinkresources_listbymhsmresource)
+
+## Operations
+
+- [List](#operations_list)
+
+## PrivateEndpointConnections
+
+- [Delete](#privateendpointconnections_delete)
+- [Get](#privateendpointconnections_get)
+- [ListByResource](#privateendpointconnections_listbyresource)
+- [Put](#privateendpointconnections_put)
+
+## PrivateLinkResources
+
+- [ListByVault](#privatelinkresources_listbyvault)
+
+## Secrets
+
+- [CreateOrUpdate](#secrets_createorupdate)
+- [Get](#secrets_get)
+- [List](#secrets_list)
+- [Update](#secrets_update)
+
+## Vaults
+
+- [CheckNameAvailability](#vaults_checknameavailability)
+- [CreateOrUpdate](#vaults_createorupdate)
+- [Delete](#vaults_delete)
+- [GetByResourceGroup](#vaults_getbyresourcegroup)
+- [GetDeleted](#vaults_getdeleted)
+- [List](#vaults_list)
+- [ListByResourceGroup](#vaults_listbyresourcegroup)
+- [ListBySubscription](#vaults_listbysubscription)
+- [ListDeleted](#vaults_listdeleted)
+- [PurgeDeleted](#vaults_purgedeleted)
+- [Update](#vaults_update)
+- [UpdateAccessPolicy](#vaults_updateaccesspolicy)
+### Keys_CreateIfNotExist
+
+```java
+import com.azure.resourcemanager.keyvault.generated.fluent.models.KeyProperties;
+import com.azure.resourcemanager.keyvault.generated.models.JsonWebKeyType;
+
+/** Samples for Keys CreateIfNotExist. */
+public final class KeysCreateIfNotExistSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/createKey.json
+ */
+ /**
+ * Sample code: Create a key.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void createAKey(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .keys()
+ .define("sample-key-name")
+ .withExistingVault("sample-group", "sample-vault-name")
+ .withProperties(new KeyProperties().withKty(JsonWebKeyType.RSA))
+ .create();
+ }
+}
+```
+
+### Keys_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Keys Get. */
+public final class KeysGetSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getKey.json
+ */
+ /**
+ * Sample code: Get a key.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void getAKey(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.keys().getWithResponse("sample-group", "sample-vault-name", "sample-key-name", Context.NONE);
+ }
+}
+```
+
+### Keys_GetVersion
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Keys GetVersion. */
+public final class KeysGetVersionSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getKeyVersion.json
+ */
+ /**
+ * Sample code: Get a key version.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void getAKeyVersion(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .keys()
+ .getVersionWithResponse(
+ "sample-group",
+ "sample-vault-name",
+ "sample-key-name",
+ "fd618d9519b74f9aae94ade66b876acc",
+ Context.NONE);
+ }
+}
+```
+
+### Keys_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Keys List. */
+public final class KeysListSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listKeys.json
+ */
+ /**
+ * Sample code: List keys in the vault.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listKeysInTheVault(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.keys().list("sample-group", "sample-vault-name", Context.NONE);
+ }
+}
+```
+
+### Keys_ListVersions
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Keys ListVersions. */
+public final class KeysListVersionsSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listKeyVersions.json
+ */
+ /**
+ * Sample code: List key versions in the vault.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listKeyVersionsInTheVault(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.keys().listVersions("sample-group", "sample-vault-name", "sample-key-name", Context.NONE);
+ }
+}
+```
+
+### ManagedHsms_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.keyvault.generated.models.ManagedHsmProperties;
+import com.azure.resourcemanager.keyvault.generated.models.ManagedHsmSku;
+import com.azure.resourcemanager.keyvault.generated.models.ManagedHsmSkuFamily;
+import com.azure.resourcemanager.keyvault.generated.models.ManagedHsmSkuName;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.UUID;
+
+/** Samples for ManagedHsms CreateOrUpdate. */
+public final class ManagedHsmsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_CreateOrUpdate.json
+ */
+ /**
+ * Sample code: Create a new managed HSM Pool or update an existing managed HSM Pool.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void createANewManagedHSMPoolOrUpdateAnExistingManagedHSMPool(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .managedHsms()
+ .define("hsm1")
+ .withRegion("westus")
+ .withExistingResourceGroup("hsm-group")
+ .withTags(mapOf("Dept", "hsm", "Environment", "dogfood"))
+ .withSku(new ManagedHsmSku().withFamily(ManagedHsmSkuFamily.B).withName(ManagedHsmSkuName.STANDARD_B1))
+ .withProperties(
+ new ManagedHsmProperties()
+ .withTenantId(UUID.fromString("00000000-0000-0000-0000-000000000000"))
+ .withInitialAdminObjectIds(Arrays.asList("00000000-0000-0000-0000-000000000000"))
+ .withEnableSoftDelete(true)
+ .withSoftDeleteRetentionInDays(90)
+ .withEnablePurgeProtection(true))
+ .create();
+ }
+
+ @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;
+ }
+}
+```
+
+### ManagedHsms_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedHsms Delete. */
+public final class ManagedHsmsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_Delete.json
+ */
+ /**
+ * Sample code: Delete a managed HSM Pool.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void deleteAManagedHSMPool(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.managedHsms().delete("hsm-group", "hsm1", Context.NONE);
+ }
+}
+```
+
+### ManagedHsms_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedHsms GetByResourceGroup. */
+public final class ManagedHsmsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_Get.json
+ */
+ /**
+ * Sample code: Retrieve a managed HSM Pool.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void retrieveAManagedHSMPool(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.managedHsms().getByResourceGroupWithResponse("hsm-group", "hsm1", Context.NONE);
+ }
+}
+```
+
+### ManagedHsms_GetDeleted
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedHsms GetDeleted. */
+public final class ManagedHsmsGetDeletedSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/DeletedManagedHsm_Get.json
+ */
+ /**
+ * Sample code: Retrieve a deleted managed HSM.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void retrieveADeletedManagedHSM(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.managedHsms().getDeletedWithResponse("hsm1", "westus", Context.NONE);
+ }
+}
+```
+
+### ManagedHsms_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedHsms List. */
+public final class ManagedHsmsListSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_ListBySubscription.json
+ */
+ /**
+ * Sample code: List managed HSM Pools in a subscription.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listManagedHSMPoolsInASubscription(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.managedHsms().list(null, Context.NONE);
+ }
+}
+```
+
+### ManagedHsms_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedHsms ListByResourceGroup. */
+public final class ManagedHsmsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_ListByResourceGroup.json
+ */
+ /**
+ * Sample code: List managed HSM Pools in a resource group.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listManagedHSMPoolsInAResourceGroup(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.managedHsms().listByResourceGroup("hsm-group", null, Context.NONE);
+ }
+}
+```
+
+### ManagedHsms_ListDeleted
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedHsms ListDeleted. */
+public final class ManagedHsmsListDeletedSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/DeletedManagedHsm_List.json
+ */
+ /**
+ * Sample code: List deleted managed HSMs in the specified subscription.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listDeletedManagedHSMsInTheSpecifiedSubscription(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.managedHsms().listDeleted(Context.NONE);
+ }
+}
+```
+
+### ManagedHsms_PurgeDeleted
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for ManagedHsms PurgeDeleted. */
+public final class ManagedHsmsPurgeDeletedSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/DeletedManagedHsm_Purge.json
+ */
+ /**
+ * Sample code: Purge a managed HSM Pool.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void purgeAManagedHSMPool(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.managedHsms().purgeDeleted("hsm1", "westus", Context.NONE);
+ }
+}
+```
+
+### ManagedHsms_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.keyvault.generated.models.ManagedHsm;
+import java.util.HashMap;
+import java.util.Map;
+
+/** Samples for ManagedHsms Update. */
+public final class ManagedHsmsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_Update.json
+ */
+ /**
+ * Sample code: Update an existing managed HSM Pool.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void updateAnExistingManagedHSMPool(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ ManagedHsm resource =
+ manager.managedHsms().getByResourceGroupWithResponse("hsm-group", "hsm1", Context.NONE).getValue();
+ resource.update().withTags(mapOf("Dept", "hsm", "Environment", "dogfood", "Slice", "A")).apply();
+ }
+
+ @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;
+ }
+}
+```
+
+### MhsmPrivateEndpointConnections_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MhsmPrivateEndpointConnections Delete. */
+public final class MhsmPrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_deletePrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: ManagedHsmDeletePrivateEndpointConnection.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void managedHsmDeletePrivateEndpointConnection(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.mhsmPrivateEndpointConnections().delete("sample-group", "sample-mhsm", "sample-pec", Context.NONE);
+ }
+}
+```
+
+### MhsmPrivateEndpointConnections_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MhsmPrivateEndpointConnections Get. */
+public final class MhsmPrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_getPrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: ManagedHsmGetPrivateEndpointConnection.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void managedHsmGetPrivateEndpointConnection(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .mhsmPrivateEndpointConnections()
+ .getWithResponse("sample-group", "sample-mhsm", "sample-pec", Context.NONE);
+ }
+}
+```
+
+### MhsmPrivateEndpointConnections_ListByResource
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MhsmPrivateEndpointConnections ListByResource. */
+public final class MhsmPrivateEndpointConnectionsListByResourceSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_ListPrivateEndpointConnectionsByResource.json
+ */
+ /**
+ * Sample code: List managed HSM Pools in a subscription.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listManagedHSMPoolsInASubscription(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.mhsmPrivateEndpointConnections().listByResource("sample-group", "sample-mhsm", Context.NONE);
+ }
+}
+```
+
+### MhsmPrivateEndpointConnections_Put
+
+```java
+import com.azure.resourcemanager.keyvault.generated.models.MhsmPrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateEndpointServiceConnectionStatus;
+
+/** Samples for MhsmPrivateEndpointConnections Put. */
+public final class MhsmPrivateEndpointConnectionsPutSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_putPrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: ManagedHsmPutPrivateEndpointConnection.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void managedHsmPutPrivateEndpointConnection(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .mhsmPrivateEndpointConnections()
+ .define("sample-pec")
+ .withRegion((String) null)
+ .withExistingManagedHSM("sample-group", "sample-mhsm")
+ .withPrivateLinkServiceConnectionState(
+ new MhsmPrivateLinkServiceConnectionState()
+ .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
+ .withDescription("My name is Joe and I'm approving this."))
+ .create();
+ }
+}
+```
+
+### MhsmPrivateLinkResources_ListByMhsmResource
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for MhsmPrivateLinkResources ListByMhsmResource. */
+public final class MhsmPrivateLinkResourcesListByMhsmResourceSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/ManagedHsm_listPrivateLinkResources.json
+ */
+ /**
+ * Sample code: KeyVaultListPrivateLinkResources.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void keyVaultListPrivateLinkResources(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.mhsmPrivateLinkResources().listByMhsmResourceWithResponse("sample-group", "sample-mhsm", Context.NONE);
+ }
+}
+```
+
+### Operations_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Operations List. */
+public final class OperationsListSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listOperations.json
+ */
+ /**
+ * Sample code: Lists available Rest API operations.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listsAvailableRestAPIOperations(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.operations().list(Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Delete. */
+public final class PrivateEndpointConnectionsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/deletePrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: KeyVaultDeletePrivateEndpointConnection.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void keyVaultDeletePrivateEndpointConnection(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.privateEndpointConnections().delete("sample-group", "sample-vault", "sample-pec", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections Get. */
+public final class PrivateEndpointConnectionsGetSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getPrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: KeyVaultGetPrivateEndpointConnection.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void keyVaultGetPrivateEndpointConnection(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .privateEndpointConnections()
+ .getWithResponse("sample-group", "sample-vault", "sample-pec", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_ListByResource
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateEndpointConnections ListByResource. */
+public final class PrivateEndpointConnectionsListByResourceSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listPrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: KeyVaultListPrivateEndpointConnection.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void keyVaultListPrivateEndpointConnection(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.privateEndpointConnections().listByResource("sample-group", "sample-vault", Context.NONE);
+ }
+}
+```
+
+### PrivateEndpointConnections_Put
+
+```java
+import com.azure.resourcemanager.keyvault.generated.models.PrivateEndpointServiceConnectionStatus;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateLinkServiceConnectionState;
+
+/** Samples for PrivateEndpointConnections Put. */
+public final class PrivateEndpointConnectionsPutSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/putPrivateEndpointConnection.json
+ */
+ /**
+ * Sample code: KeyVaultPutPrivateEndpointConnection.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void keyVaultPutPrivateEndpointConnection(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .privateEndpointConnections()
+ .define("sample-pec")
+ .withRegion((String) null)
+ .withExistingVault("sample-group", "sample-vault")
+ .withEtag("")
+ .withPrivateLinkServiceConnectionState(
+ new PrivateLinkServiceConnectionState()
+ .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
+ .withDescription("My name is Joe and I'm approving this."))
+ .create();
+ }
+}
+```
+
+### PrivateLinkResources_ListByVault
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for PrivateLinkResources ListByVault. */
+public final class PrivateLinkResourcesListByVaultSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listPrivateLinkResources.json
+ */
+ /**
+ * Sample code: KeyVaultListPrivateLinkResources.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void keyVaultListPrivateLinkResources(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.privateLinkResources().listByVaultWithResponse("sample-group", "sample-vault", Context.NONE);
+ }
+}
+```
+
+### Secrets_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.keyvault.generated.models.SecretProperties;
+
+/** Samples for Secrets CreateOrUpdate. */
+public final class SecretsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/createSecret.json
+ */
+ /**
+ * Sample code: Create a secret.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void createASecret(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .secrets()
+ .define("secret-name")
+ .withExistingVault("sample-group", "sample-vault")
+ .withProperties(new SecretProperties().withValue("secret-value"))
+ .create();
+ }
+}
+```
+
+### Secrets_Get
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Secrets Get. */
+public final class SecretsGetSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getSecret.json
+ */
+ /**
+ * Sample code: Get a secret.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void getASecret(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.secrets().getWithResponse("sample-group", "sample-vault", "secret-name", Context.NONE);
+ }
+}
+```
+
+### Secrets_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Secrets List. */
+public final class SecretsListSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listSecrets.json
+ */
+ /**
+ * Sample code: List secrets in the vault.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listSecretsInTheVault(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.secrets().list("sample-group", "sample-vault", null, Context.NONE);
+ }
+}
+```
+
+### Secrets_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.keyvault.generated.models.Secret;
+import com.azure.resourcemanager.keyvault.generated.models.SecretPatchProperties;
+
+/** Samples for Secrets Update. */
+public final class SecretsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/updateSecret.json
+ */
+ /**
+ * Sample code: Update a secret.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void updateASecret(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ Secret resource =
+ manager.secrets().getWithResponse("sample-group", "sample-vault", "secret-name", Context.NONE).getValue();
+ resource.update().withProperties(new SecretPatchProperties().withValue("secret-value2")).apply();
+ }
+}
+```
+
+### Vaults_CheckNameAvailability
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.keyvault.generated.models.VaultCheckNameAvailabilityParameters;
+
+/** Samples for Vaults CheckNameAvailability. */
+public final class VaultsCheckNameAvailabilitySamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/checkVaultNameAvailability.json
+ */
+ /**
+ * Sample code: Validate a vault name.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void validateAVaultName(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .vaults()
+ .checkNameAvailabilityWithResponse(
+ new VaultCheckNameAvailabilityParameters().withName("sample-vault"), Context.NONE);
+ }
+}
+```
+
+### Vaults_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.keyvault.generated.models.AccessPolicyEntry;
+import com.azure.resourcemanager.keyvault.generated.models.CertificatePermissions;
+import com.azure.resourcemanager.keyvault.generated.models.IpRule;
+import com.azure.resourcemanager.keyvault.generated.models.KeyPermissions;
+import com.azure.resourcemanager.keyvault.generated.models.NetworkRuleAction;
+import com.azure.resourcemanager.keyvault.generated.models.NetworkRuleBypassOptions;
+import com.azure.resourcemanager.keyvault.generated.models.NetworkRuleSet;
+import com.azure.resourcemanager.keyvault.generated.models.Permissions;
+import com.azure.resourcemanager.keyvault.generated.models.SecretPermissions;
+import com.azure.resourcemanager.keyvault.generated.models.Sku;
+import com.azure.resourcemanager.keyvault.generated.models.SkuFamily;
+import com.azure.resourcemanager.keyvault.generated.models.SkuName;
+import com.azure.resourcemanager.keyvault.generated.models.VaultProperties;
+import com.azure.resourcemanager.keyvault.generated.models.VirtualNetworkRule;
+import java.util.Arrays;
+import java.util.UUID;
+
+/** Samples for Vaults CreateOrUpdate. */
+public final class VaultsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/createVaultWithNetworkAcls.json
+ */
+ /**
+ * Sample code: Create or update a vault with network acls.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void createOrUpdateAVaultWithNetworkAcls(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .vaults()
+ .define("sample-vault")
+ .withRegion("westus")
+ .withExistingResourceGroup("sample-resource-group")
+ .withProperties(
+ new VaultProperties()
+ .withTenantId(UUID.fromString("00000000-0000-0000-0000-000000000000"))
+ .withSku(new Sku().withFamily(SkuFamily.A).withName(SkuName.STANDARD))
+ .withEnabledForDeployment(true)
+ .withEnabledForDiskEncryption(true)
+ .withEnabledForTemplateDeployment(true)
+ .withNetworkAcls(
+ new NetworkRuleSet()
+ .withBypass(NetworkRuleBypassOptions.AZURE_SERVICES)
+ .withDefaultAction(NetworkRuleAction.DENY)
+ .withIpRules(
+ Arrays
+ .asList(
+ new IpRule().withValue("124.56.78.91"),
+ new IpRule().withValue("'10.91.4.0/24'")))
+ .withVirtualNetworkRules(
+ Arrays
+ .asList(
+ new VirtualNetworkRule()
+ .withId(
+ "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1")))))
+ .create();
+ }
+
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/createVault.json
+ */
+ /**
+ * Sample code: Create a new vault or update an existing vault.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void createANewVaultOrUpdateAnExistingVault(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .vaults()
+ .define("sample-vault")
+ .withRegion("westus")
+ .withExistingResourceGroup("sample-resource-group")
+ .withProperties(
+ new VaultProperties()
+ .withTenantId(UUID.fromString("00000000-0000-0000-0000-000000000000"))
+ .withSku(new Sku().withFamily(SkuFamily.A).withName(SkuName.STANDARD))
+ .withAccessPolicies(
+ Arrays
+ .asList(
+ new AccessPolicyEntry()
+ .withTenantId(UUID.fromString("00000000-0000-0000-0000-000000000000"))
+ .withObjectId("00000000-0000-0000-0000-000000000000")
+ .withPermissions(
+ new Permissions()
+ .withKeys(
+ Arrays
+ .asList(
+ KeyPermissions.ENCRYPT,
+ KeyPermissions.DECRYPT,
+ KeyPermissions.WRAP_KEY,
+ KeyPermissions.UNWRAP_KEY,
+ KeyPermissions.SIGN,
+ KeyPermissions.VERIFY,
+ KeyPermissions.GET,
+ KeyPermissions.LIST,
+ KeyPermissions.CREATE,
+ KeyPermissions.UPDATE,
+ KeyPermissions.IMPORT,
+ KeyPermissions.DELETE,
+ KeyPermissions.BACKUP,
+ KeyPermissions.RESTORE,
+ KeyPermissions.RECOVER,
+ KeyPermissions.PURGE))
+ .withSecrets(
+ Arrays
+ .asList(
+ SecretPermissions.GET,
+ SecretPermissions.LIST,
+ SecretPermissions.SET,
+ SecretPermissions.DELETE,
+ SecretPermissions.BACKUP,
+ SecretPermissions.RESTORE,
+ SecretPermissions.RECOVER,
+ SecretPermissions.PURGE))
+ .withCertificates(
+ Arrays
+ .asList(
+ CertificatePermissions.GET,
+ CertificatePermissions.LIST,
+ CertificatePermissions.DELETE,
+ CertificatePermissions.CREATE,
+ CertificatePermissions.IMPORT,
+ CertificatePermissions.UPDATE,
+ CertificatePermissions.MANAGECONTACTS,
+ CertificatePermissions.GETISSUERS,
+ CertificatePermissions.LISTISSUERS,
+ CertificatePermissions.SETISSUERS,
+ CertificatePermissions.DELETEISSUERS,
+ CertificatePermissions.MANAGEISSUERS,
+ CertificatePermissions.RECOVER,
+ CertificatePermissions.PURGE)))))
+ .withEnabledForDeployment(true)
+ .withEnabledForDiskEncryption(true)
+ .withEnabledForTemplateDeployment(true)
+ .withPublicNetworkAccess("Enabled"))
+ .create();
+ }
+}
+```
+
+### Vaults_Delete
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Vaults Delete. */
+public final class VaultsDeleteSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/deleteVault.json
+ */
+ /**
+ * Sample code: Delete a vault.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void deleteAVault(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.vaults().deleteWithResponse("sample-resource-group", "sample-vault", Context.NONE);
+ }
+}
+```
+
+### Vaults_GetByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Vaults GetByResourceGroup. */
+public final class VaultsGetByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getVault.json
+ */
+ /**
+ * Sample code: Retrieve a vault.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void retrieveAVault(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.vaults().getByResourceGroupWithResponse("sample-resource-group", "sample-vault", Context.NONE);
+ }
+}
+```
+
+### Vaults_GetDeleted
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Vaults GetDeleted. */
+public final class VaultsGetDeletedSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/getDeletedVault.json
+ */
+ /**
+ * Sample code: Retrieve a deleted vault.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void retrieveADeletedVault(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.vaults().getDeletedWithResponse("sample-vault", "westus", Context.NONE);
+ }
+}
+```
+
+### Vaults_List
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Vaults List. */
+public final class VaultsListSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listVault.json
+ */
+ /**
+ * Sample code: List vaults in the specified subscription.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listVaultsInTheSpecifiedSubscription(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.vaults().list(1, Context.NONE);
+ }
+}
+```
+
+### Vaults_ListByResourceGroup
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Vaults ListByResourceGroup. */
+public final class VaultsListByResourceGroupSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listVaultByResourceGroup.json
+ */
+ /**
+ * Sample code: List vaults in the specified resource group.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listVaultsInTheSpecifiedResourceGroup(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.vaults().listByResourceGroup("sample-group", 1, Context.NONE);
+ }
+}
+```
+
+### Vaults_ListBySubscription
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Vaults ListBySubscription. */
+public final class VaultsListBySubscriptionSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listVaultBySubscription.json
+ */
+ /**
+ * Sample code: List vaults in the specified subscription.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listVaultsInTheSpecifiedSubscription(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.vaults().listBySubscription(1, Context.NONE);
+ }
+}
+```
+
+### Vaults_ListDeleted
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Vaults ListDeleted. */
+public final class VaultsListDeletedSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/listDeletedVaults.json
+ */
+ /**
+ * Sample code: List deleted vaults in the specified subscription.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void listDeletedVaultsInTheSpecifiedSubscription(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.vaults().listDeleted(Context.NONE);
+ }
+}
+```
+
+### Vaults_PurgeDeleted
+
+```java
+import com.azure.core.util.Context;
+
+/** Samples for Vaults PurgeDeleted. */
+public final class VaultsPurgeDeletedSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/purgeDeletedVault.json
+ */
+ /**
+ * Sample code: Purge a deleted vault.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void purgeADeletedVault(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager.vaults().purgeDeleted("sample-vault", "westus", Context.NONE);
+ }
+}
+```
+
+### Vaults_Update
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.keyvault.generated.models.AccessPolicyEntry;
+import com.azure.resourcemanager.keyvault.generated.models.CertificatePermissions;
+import com.azure.resourcemanager.keyvault.generated.models.KeyPermissions;
+import com.azure.resourcemanager.keyvault.generated.models.Permissions;
+import com.azure.resourcemanager.keyvault.generated.models.SecretPermissions;
+import com.azure.resourcemanager.keyvault.generated.models.Sku;
+import com.azure.resourcemanager.keyvault.generated.models.SkuFamily;
+import com.azure.resourcemanager.keyvault.generated.models.SkuName;
+import com.azure.resourcemanager.keyvault.generated.models.Vault;
+import com.azure.resourcemanager.keyvault.generated.models.VaultPatchProperties;
+import java.util.Arrays;
+import java.util.UUID;
+
+/** Samples for Vaults Update. */
+public final class VaultsUpdateSamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/updateVault.json
+ */
+ /**
+ * Sample code: Update an existing vault.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void updateAnExistingVault(com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ Vault resource =
+ manager
+ .vaults()
+ .getByResourceGroupWithResponse("sample-resource-group", "sample-vault", Context.NONE)
+ .getValue();
+ resource
+ .update()
+ .withProperties(
+ new VaultPatchProperties()
+ .withTenantId(UUID.fromString("00000000-0000-0000-0000-000000000000"))
+ .withSku(new Sku().withFamily(SkuFamily.A).withName(SkuName.STANDARD))
+ .withAccessPolicies(
+ Arrays
+ .asList(
+ new AccessPolicyEntry()
+ .withTenantId(UUID.fromString("00000000-0000-0000-0000-000000000000"))
+ .withObjectId("00000000-0000-0000-0000-000000000000")
+ .withPermissions(
+ new Permissions()
+ .withKeys(
+ Arrays
+ .asList(
+ KeyPermissions.ENCRYPT,
+ KeyPermissions.DECRYPT,
+ KeyPermissions.WRAP_KEY,
+ KeyPermissions.UNWRAP_KEY,
+ KeyPermissions.SIGN,
+ KeyPermissions.VERIFY,
+ KeyPermissions.GET,
+ KeyPermissions.LIST,
+ KeyPermissions.CREATE,
+ KeyPermissions.UPDATE,
+ KeyPermissions.IMPORT,
+ KeyPermissions.DELETE,
+ KeyPermissions.BACKUP,
+ KeyPermissions.RESTORE,
+ KeyPermissions.RECOVER,
+ KeyPermissions.PURGE))
+ .withSecrets(
+ Arrays
+ .asList(
+ SecretPermissions.GET,
+ SecretPermissions.LIST,
+ SecretPermissions.SET,
+ SecretPermissions.DELETE,
+ SecretPermissions.BACKUP,
+ SecretPermissions.RESTORE,
+ SecretPermissions.RECOVER,
+ SecretPermissions.PURGE))
+ .withCertificates(
+ Arrays
+ .asList(
+ CertificatePermissions.GET,
+ CertificatePermissions.LIST,
+ CertificatePermissions.DELETE,
+ CertificatePermissions.CREATE,
+ CertificatePermissions.IMPORT,
+ CertificatePermissions.UPDATE,
+ CertificatePermissions.MANAGECONTACTS,
+ CertificatePermissions.GETISSUERS,
+ CertificatePermissions.LISTISSUERS,
+ CertificatePermissions.SETISSUERS,
+ CertificatePermissions.DELETEISSUERS,
+ CertificatePermissions.MANAGEISSUERS,
+ CertificatePermissions.RECOVER,
+ CertificatePermissions.PURGE)))))
+ .withEnabledForDeployment(true)
+ .withEnabledForDiskEncryption(true)
+ .withEnabledForTemplateDeployment(true)
+ .withPublicNetworkAccess("Enabled"))
+ .apply();
+ }
+}
+```
+
+### Vaults_UpdateAccessPolicy
+
+```java
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.VaultAccessPolicyParametersInner;
+import com.azure.resourcemanager.keyvault.generated.models.AccessPolicyEntry;
+import com.azure.resourcemanager.keyvault.generated.models.AccessPolicyUpdateKind;
+import com.azure.resourcemanager.keyvault.generated.models.CertificatePermissions;
+import com.azure.resourcemanager.keyvault.generated.models.KeyPermissions;
+import com.azure.resourcemanager.keyvault.generated.models.Permissions;
+import com.azure.resourcemanager.keyvault.generated.models.SecretPermissions;
+import com.azure.resourcemanager.keyvault.generated.models.VaultAccessPolicyProperties;
+import java.util.Arrays;
+import java.util.UUID;
+
+/** Samples for Vaults UpdateAccessPolicy. */
+public final class VaultsUpdateAccessPolicySamples {
+ /*
+ * x-ms-original-file: specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-11-01-preview/examples/updateAccessPoliciesAdd.json
+ */
+ /**
+ * Sample code: Add an access policy, or update an access policy with new permissions.
+ *
+ * @param manager Entry point to KeyVaultManager.
+ */
+ public static void addAnAccessPolicyOrUpdateAnAccessPolicyWithNewPermissions(
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager) {
+ manager
+ .vaults()
+ .updateAccessPolicyWithResponse(
+ "sample-group",
+ "sample-vault",
+ AccessPolicyUpdateKind.ADD,
+ new VaultAccessPolicyParametersInner()
+ .withProperties(
+ new VaultAccessPolicyProperties()
+ .withAccessPolicies(
+ Arrays
+ .asList(
+ new AccessPolicyEntry()
+ .withTenantId(UUID.fromString("00000000-0000-0000-0000-000000000000"))
+ .withObjectId("00000000-0000-0000-0000-000000000000")
+ .withPermissions(
+ new Permissions()
+ .withKeys(Arrays.asList(KeyPermissions.ENCRYPT))
+ .withSecrets(Arrays.asList(SecretPermissions.GET))
+ .withCertificates(Arrays.asList(CertificatePermissions.GET)))))),
+ Context.NONE);
+ }
+}
+```
+
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/pom.xml b/sdk/keyvault/azure-resourcemanager-keyvault-generated/pom.xml
new file mode 100644
index 0000000000000..af5da6e1e3ff7
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/pom.xml
@@ -0,0 +1,55 @@
+
+ 4.0.0
+
+ com.azure
+ azure-client-sdk-parent
+ 1.7.0
+ ../../parents/azure-client-sdk-parent
+
+
+ com.azure.resourcemanager
+ azure-resourcemanager-keyvault-generated
+ 1.0.0-beta.1
+ jar
+
+ Microsoft Azure SDK for KeyVault Management
+ This package contains Microsoft Azure SDK for KeyVault Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. The Azure management API provides a RESTful set of web services that interact with Azure Key Vault. Package tag package-preview-2021-11.
+ https://github.com/Azure/azure-sdk-for-java
+
+
+
+ The MIT License (MIT)
+ http://opensource.org/licenses/MIT
+ repo
+
+
+
+
+ https://github.com/Azure/azure-sdk-for-java
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ scm:git:git@github.com:Azure/azure-sdk-for-java.git
+ HEAD
+
+
+
+ microsoft
+ Microsoft
+
+
+
+ UTF-8
+ true
+
+
+
+ com.azure
+ azure-core
+ 1.28.0
+
+
+ com.azure
+ azure-core-management
+ 1.6.0
+
+
+
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/KeyVaultManager.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/KeyVaultManager.java
new file mode 100644
index 0000000000000..d9bcfebe253e3
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/KeyVaultManager.java
@@ -0,0 +1,416 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated;
+
+import com.azure.core.credential.TokenCredential;
+import com.azure.core.http.HttpClient;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.HttpPipelinePosition;
+import com.azure.core.http.policy.AddDatePolicy;
+import com.azure.core.http.policy.AddHeadersFromContextPolicy;
+import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.HttpPipelinePolicy;
+import com.azure.core.http.policy.HttpPolicyProviders;
+import com.azure.core.http.policy.RequestIdPolicy;
+import com.azure.core.http.policy.RetryOptions;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
+import com.azure.core.management.profile.AzureProfile;
+import com.azure.core.util.Configuration;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.keyvault.generated.fluent.KeyVaultManagementClient;
+import com.azure.resourcemanager.keyvault.generated.implementation.KeyVaultManagementClientBuilder;
+import com.azure.resourcemanager.keyvault.generated.implementation.KeysImpl;
+import com.azure.resourcemanager.keyvault.generated.implementation.ManagedHsmsImpl;
+import com.azure.resourcemanager.keyvault.generated.implementation.MhsmPrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.keyvault.generated.implementation.MhsmPrivateLinkResourcesImpl;
+import com.azure.resourcemanager.keyvault.generated.implementation.OperationsImpl;
+import com.azure.resourcemanager.keyvault.generated.implementation.PrivateEndpointConnectionsImpl;
+import com.azure.resourcemanager.keyvault.generated.implementation.PrivateLinkResourcesImpl;
+import com.azure.resourcemanager.keyvault.generated.implementation.SecretsImpl;
+import com.azure.resourcemanager.keyvault.generated.implementation.VaultsImpl;
+import com.azure.resourcemanager.keyvault.generated.models.Keys;
+import com.azure.resourcemanager.keyvault.generated.models.ManagedHsms;
+import com.azure.resourcemanager.keyvault.generated.models.MhsmPrivateEndpointConnections;
+import com.azure.resourcemanager.keyvault.generated.models.MhsmPrivateLinkResources;
+import com.azure.resourcemanager.keyvault.generated.models.Operations;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateEndpointConnections;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateLinkResources;
+import com.azure.resourcemanager.keyvault.generated.models.Secrets;
+import com.azure.resourcemanager.keyvault.generated.models.Vaults;
+import java.time.Duration;
+import java.time.temporal.ChronoUnit;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Objects;
+import java.util.stream.Collectors;
+
+/**
+ * Entry point to KeyVaultManager. The Azure management API provides a RESTful set of web services that interact with
+ * Azure Key Vault.
+ */
+public final class KeyVaultManager {
+ private Keys keys;
+
+ private Vaults vaults;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private ManagedHsms managedHsms;
+
+ private MhsmPrivateEndpointConnections mhsmPrivateEndpointConnections;
+
+ private MhsmPrivateLinkResources mhsmPrivateLinkResources;
+
+ private Operations operations;
+
+ private Secrets secrets;
+
+ private final KeyVaultManagementClient clientObject;
+
+ private KeyVaultManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ this.clientObject =
+ new KeyVaultManagementClientBuilder()
+ .pipeline(httpPipeline)
+ .endpoint(profile.getEnvironment().getResourceManagerEndpoint())
+ .subscriptionId(profile.getSubscriptionId())
+ .defaultPollInterval(defaultPollInterval)
+ .buildClient();
+ }
+
+ /**
+ * Creates an instance of KeyVault service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the KeyVault service API instance.
+ */
+ public static KeyVaultManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return configure().authenticate(credential, profile);
+ }
+
+ /**
+ * Creates an instance of KeyVault service API entry point.
+ *
+ * @param httpPipeline the {@link HttpPipeline} configured with Azure authentication credential.
+ * @param profile the Azure profile for client.
+ * @return the KeyVault service API instance.
+ */
+ public static KeyVaultManager authenticate(HttpPipeline httpPipeline, AzureProfile profile) {
+ Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+ return new KeyVaultManager(httpPipeline, profile, null);
+ }
+
+ /**
+ * Gets a Configurable instance that can be used to create KeyVaultManager with optional configuration.
+ *
+ * @return the Configurable instance allowing configurations.
+ */
+ public static Configurable configure() {
+ return new KeyVaultManager.Configurable();
+ }
+
+ /** The Configurable allowing configurations to be set. */
+ public static final class Configurable {
+ private static final ClientLogger LOGGER = new ClientLogger(Configurable.class);
+
+ private HttpClient httpClient;
+ private HttpLogOptions httpLogOptions;
+ private final List policies = new ArrayList<>();
+ private final List scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ *
This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of KeyVault service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the KeyVault service API instance.
+ */
+ public KeyVaultManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.keyvault.generated")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new KeyVaultManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of Keys.
+ *
+ * @return Resource collection API of Keys.
+ */
+ public Keys keys() {
+ if (this.keys == null) {
+ this.keys = new KeysImpl(clientObject.getKeys(), this);
+ }
+ return keys;
+ }
+
+ /**
+ * Gets the resource collection API of Vaults.
+ *
+ * @return Resource collection API of Vaults.
+ */
+ public Vaults vaults() {
+ if (this.vaults == null) {
+ this.vaults = new VaultsImpl(clientObject.getVaults(), this);
+ }
+ return vaults;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections =
+ new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedHsms.
+ *
+ * @return Resource collection API of ManagedHsms.
+ */
+ public ManagedHsms managedHsms() {
+ if (this.managedHsms == null) {
+ this.managedHsms = new ManagedHsmsImpl(clientObject.getManagedHsms(), this);
+ }
+ return managedHsms;
+ }
+
+ /**
+ * Gets the resource collection API of MhsmPrivateEndpointConnections.
+ *
+ * @return Resource collection API of MhsmPrivateEndpointConnections.
+ */
+ public MhsmPrivateEndpointConnections mhsmPrivateEndpointConnections() {
+ if (this.mhsmPrivateEndpointConnections == null) {
+ this.mhsmPrivateEndpointConnections =
+ new MhsmPrivateEndpointConnectionsImpl(clientObject.getMhsmPrivateEndpointConnections(), this);
+ }
+ return mhsmPrivateEndpointConnections;
+ }
+
+ /**
+ * Gets the resource collection API of MhsmPrivateLinkResources.
+ *
+ * @return Resource collection API of MhsmPrivateLinkResources.
+ */
+ public MhsmPrivateLinkResources mhsmPrivateLinkResources() {
+ if (this.mhsmPrivateLinkResources == null) {
+ this.mhsmPrivateLinkResources =
+ new MhsmPrivateLinkResourcesImpl(clientObject.getMhsmPrivateLinkResources(), this);
+ }
+ return mhsmPrivateLinkResources;
+ }
+
+ /**
+ * 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 Secrets.
+ *
+ * @return Resource collection API of Secrets.
+ */
+ public Secrets secrets() {
+ if (this.secrets == null) {
+ this.secrets = new SecretsImpl(clientObject.getSecrets(), this);
+ }
+ return secrets;
+ }
+
+ /**
+ * @return Wrapped service client KeyVaultManagementClient providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
+ */
+ public KeyVaultManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/KeyVaultManagementClient.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/KeyVaultManagementClient.java
new file mode 100644
index 0000000000000..34dd320600db2
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/KeyVaultManagementClient.java
@@ -0,0 +1,110 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for KeyVaultManagementClient class. */
+public interface KeyVaultManagementClient {
+ /**
+ * Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the KeysClient object to access its operations.
+ *
+ * @return the KeysClient object.
+ */
+ KeysClient getKeys();
+
+ /**
+ * Gets the VaultsClient object to access its operations.
+ *
+ * @return the VaultsClient object.
+ */
+ VaultsClient getVaults();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the ManagedHsmsClient object to access its operations.
+ *
+ * @return the ManagedHsmsClient object.
+ */
+ ManagedHsmsClient getManagedHsms();
+
+ /**
+ * Gets the MhsmPrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the MhsmPrivateEndpointConnectionsClient object.
+ */
+ MhsmPrivateEndpointConnectionsClient getMhsmPrivateEndpointConnections();
+
+ /**
+ * Gets the MhsmPrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the MhsmPrivateLinkResourcesClient object.
+ */
+ MhsmPrivateLinkResourcesClient getMhsmPrivateLinkResources();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the SecretsClient object to access its operations.
+ *
+ * @return the SecretsClient object.
+ */
+ SecretsClient getSecrets();
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/KeysClient.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/KeysClient.java
new file mode 100644
index 0000000000000..f0b367e40590b
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/KeysClient.java
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.KeyInner;
+import com.azure.resourcemanager.keyvault.generated.models.KeyCreateParameters;
+
+/** An instance of this class provides access to all the operations defined in KeysClient. */
+public interface KeysClient {
+ /**
+ * Creates the first version of a new key if it does not exist. If it already exists, then the existing key is
+ * returned without any write operations being performed. This API does not create subsequent versions, and does not
+ * update existing keys.
+ *
+ * @param resourceGroupName The name of the resource group which contains the specified key vault.
+ * @param vaultName The name of the key vault which contains the key to be created.
+ * @param keyName The name of the key to be created.
+ * @param parameters The parameters used to create the specified key.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the key resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ KeyInner createIfNotExist(
+ String resourceGroupName, String vaultName, String keyName, KeyCreateParameters parameters);
+
+ /**
+ * Creates the first version of a new key if it does not exist. If it already exists, then the existing key is
+ * returned without any write operations being performed. This API does not create subsequent versions, and does not
+ * update existing keys.
+ *
+ * @param resourceGroupName The name of the resource group which contains the specified key vault.
+ * @param vaultName The name of the key vault which contains the key to be created.
+ * @param keyName The name of the key to be created.
+ * @param parameters The parameters used to create the specified key.
+ * @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 key resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createIfNotExistWithResponse(
+ String resourceGroupName, String vaultName, String keyName, KeyCreateParameters parameters, Context context);
+
+ /**
+ * Gets the current version of the specified key from the specified key vault.
+ *
+ * @param resourceGroupName The name of the resource group which contains the specified key vault.
+ * @param vaultName The name of the vault which contains the key to be retrieved.
+ * @param keyName The name of the key to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the current version of the specified key from the specified key vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ KeyInner get(String resourceGroupName, String vaultName, String keyName);
+
+ /**
+ * Gets the current version of the specified key from the specified key vault.
+ *
+ * @param resourceGroupName The name of the resource group which contains the specified key vault.
+ * @param vaultName The name of the vault which contains the key to be retrieved.
+ * @param keyName The name of the key to be retrieved.
+ * @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 current version of the specified key from the specified key vault along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String vaultName, String keyName, Context context);
+
+ /**
+ * Lists the keys in the specified key vault.
+ *
+ * @param resourceGroupName The name of the resource group which contains the specified key vault.
+ * @param vaultName The name of the vault which contains the keys to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the page of keys as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String vaultName);
+
+ /**
+ * Lists the keys in the specified key vault.
+ *
+ * @param resourceGroupName The name of the resource group which contains the specified key vault.
+ * @param vaultName The name of the vault which contains the keys to be retrieved.
+ * @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 page of keys as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String vaultName, Context context);
+
+ /**
+ * Gets the specified version of the specified key in the specified key vault.
+ *
+ * @param resourceGroupName The name of the resource group which contains the specified key vault.
+ * @param vaultName The name of the vault which contains the key version to be retrieved.
+ * @param keyName The name of the key version to be retrieved.
+ * @param keyVersion The version of the key to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified version of the specified key in the specified key vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ KeyInner getVersion(String resourceGroupName, String vaultName, String keyName, String keyVersion);
+
+ /**
+ * Gets the specified version of the specified key in the specified key vault.
+ *
+ * @param resourceGroupName The name of the resource group which contains the specified key vault.
+ * @param vaultName The name of the vault which contains the key version to be retrieved.
+ * @param keyName The name of the key version to be retrieved.
+ * @param keyVersion The version of the key to be retrieved.
+ * @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 specified version of the specified key in the specified key vault along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getVersionWithResponse(
+ String resourceGroupName, String vaultName, String keyName, String keyVersion, Context context);
+
+ /**
+ * Lists the versions of the specified key in the specified key vault.
+ *
+ * @param resourceGroupName The name of the resource group which contains the specified key vault.
+ * @param vaultName The name of the vault which contains the key versions to be retrieved.
+ * @param keyName The name of the key versions to be retrieved.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the page of keys as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listVersions(String resourceGroupName, String vaultName, String keyName);
+
+ /**
+ * Lists the versions of the specified key in the specified key vault.
+ *
+ * @param resourceGroupName The name of the resource group which contains the specified key vault.
+ * @param vaultName The name of the vault which contains the key versions to be retrieved.
+ * @param keyName The name of the key versions to be retrieved.
+ * @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 page of keys as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listVersions(String resourceGroupName, String vaultName, String keyName, Context context);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/ManagedHsmsClient.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/ManagedHsmsClient.java
new file mode 100644
index 0000000000000..c5e9ef8b8113a
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/ManagedHsmsClient.java
@@ -0,0 +1,395 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.DeletedManagedHsmInner;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.ManagedHsmInner;
+
+/** An instance of this class provides access to all the operations defined in ManagedHsmsClient. */
+public interface ManagedHsmsClient {
+ /**
+ * Create or update a managed HSM Pool in the specified subscription.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param parameters Parameters to create or update the managed HSM Pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException 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 resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedHsmInner> beginCreateOrUpdate(
+ String resourceGroupName, String name, ManagedHsmInner parameters);
+
+ /**
+ * Create or update a managed HSM Pool in the specified subscription.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param parameters Parameters to create or update the managed HSM Pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException 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 resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedHsmInner> beginCreateOrUpdate(
+ String resourceGroupName, String name, ManagedHsmInner parameters, Context context);
+
+ /**
+ * Create or update a managed HSM Pool in the specified subscription.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param parameters Parameters to create or update the managed HSM Pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedHsmInner createOrUpdate(String resourceGroupName, String name, ManagedHsmInner parameters);
+
+ /**
+ * Create or update a managed HSM Pool in the specified subscription.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param parameters Parameters to create or update the managed HSM Pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedHsmInner createOrUpdate(String resourceGroupName, String name, ManagedHsmInner parameters, Context context);
+
+ /**
+ * Update a managed HSM Pool in the specified subscription.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param parameters Parameters to patch the managed HSM Pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException 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 resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedHsmInner> beginUpdate(
+ String resourceGroupName, String name, ManagedHsmInner parameters);
+
+ /**
+ * Update a managed HSM Pool in the specified subscription.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param parameters Parameters to patch the managed HSM Pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException 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 resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, ManagedHsmInner> beginUpdate(
+ String resourceGroupName, String name, ManagedHsmInner parameters, Context context);
+
+ /**
+ * Update a managed HSM Pool in the specified subscription.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param parameters Parameters to patch the managed HSM Pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedHsmInner update(String resourceGroupName, String name, ManagedHsmInner parameters);
+
+ /**
+ * Update a managed HSM Pool in the specified subscription.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param parameters Parameters to patch the managed HSM Pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedHsmInner update(String resourceGroupName, String name, ManagedHsmInner parameters, Context context);
+
+ /**
+ * Deletes the specified managed HSM Pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name The name of the managed HSM Pool to delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String name);
+
+ /**
+ * Deletes the specified managed HSM Pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name The name of the managed HSM Pool to delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String name, Context context);
+
+ /**
+ * Deletes the specified managed HSM Pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name The name of the managed HSM Pool to delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name);
+
+ /**
+ * Deletes the specified managed HSM Pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name The name of the managed HSM Pool to delete.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String name, Context context);
+
+ /**
+ * Gets the specified managed HSM Pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name The name of the managed HSM Pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified managed HSM Pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ManagedHsmInner getByResourceGroup(String resourceGroupName, String name);
+
+ /**
+ * Gets the specified managed HSM Pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name The name of the managed HSM Pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified managed HSM Pool along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String name, Context context);
+
+ /**
+ * The List operation gets information about the managed HSM Pools associated with the subscription and within the
+ * specified resource group.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of managed HSM Pools as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * The List operation gets information about the managed HSM Pools associated with the subscription and within the
+ * specified resource group.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param top Maximum number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of managed HSM Pools as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Integer top, Context context);
+
+ /**
+ * The List operation gets information about the managed HSM Pools associated with the subscription.
+ *
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of managed HSM Pools as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * The List operation gets information about the managed HSM Pools associated with the subscription.
+ *
+ * @param top Maximum number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of managed HSM Pools as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Integer top, Context context);
+
+ /**
+ * The List operation gets information about the deleted managed HSMs associated with the subscription.
+ *
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of deleted managed HSM Pools as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDeleted();
+
+ /**
+ * The List operation gets information about the deleted managed HSMs associated with the subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of deleted managed HSM Pools as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDeleted(Context context);
+
+ /**
+ * Gets the specified deleted managed HSM.
+ *
+ * @param name The name of the deleted managed HSM.
+ * @param location The location of the deleted managed HSM.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified deleted managed HSM.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeletedManagedHsmInner getDeleted(String name, String location);
+
+ /**
+ * Gets the specified deleted managed HSM.
+ *
+ * @param name The name of the deleted managed HSM.
+ * @param location The location of the deleted managed HSM.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified deleted managed HSM along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDeletedWithResponse(String name, String location, Context context);
+
+ /**
+ * Permanently deletes the specified managed HSM.
+ *
+ * @param name The name of the soft-deleted managed HSM.
+ * @param location The location of the soft-deleted managed HSM.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginPurgeDeleted(String name, String location);
+
+ /**
+ * Permanently deletes the specified managed HSM.
+ *
+ * @param name The name of the soft-deleted managed HSM.
+ * @param location The location of the soft-deleted managed HSM.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginPurgeDeleted(String name, String location, Context context);
+
+ /**
+ * Permanently deletes the specified managed HSM.
+ *
+ * @param name The name of the soft-deleted managed HSM.
+ * @param location The location of the soft-deleted managed HSM.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void purgeDeleted(String name, String location);
+
+ /**
+ * Permanently deletes the specified managed HSM.
+ *
+ * @param name The name of the soft-deleted managed HSM.
+ * @param location The location of the soft-deleted managed HSM.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void purgeDeleted(String name, String location, Context context);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/MhsmPrivateEndpointConnectionsClient.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/MhsmPrivateEndpointConnectionsClient.java
new file mode 100644
index 0000000000000..396da31fce8c6
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/MhsmPrivateEndpointConnectionsClient.java
@@ -0,0 +1,193 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.MhsmPrivateEndpointConnectionInner;
+import com.azure.resourcemanager.keyvault.generated.models.MhsmPrivateEndpointConnectionsPutResponse;
+
+/** An instance of this class provides access to all the operations defined in MhsmPrivateEndpointConnectionsClient. */
+public interface MhsmPrivateEndpointConnectionsClient {
+ /**
+ * The List operation gets information about the private endpoint connections associated with the managed HSM Pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of private endpoint connections associated with a managed HSM Pools as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResource(String resourceGroupName, String name);
+
+ /**
+ * The List operation gets information about the private endpoint connections associated with the managed HSM Pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of private endpoint connections associated with a managed HSM Pools as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResource(
+ String resourceGroupName, String name, Context context);
+
+ /**
+ * Gets the specified private endpoint connection associated with the managed HSM Pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
+ * pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified private endpoint connection associated with the managed HSM Pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MhsmPrivateEndpointConnectionInner get(String resourceGroupName, String name, String privateEndpointConnectionName);
+
+ /**
+ * Gets the specified private endpoint connection associated with the managed HSM Pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
+ * pool.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.resourcemanager.keyvault.generated.models.ErrorException thrown if the request is rejected by
+ * server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified private endpoint connection associated with the managed HSM Pool along with {@link
+ * Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String name, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Updates the specified private endpoint connection associated with the managed hsm pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
+ * pool.
+ * @param properties The intended state of private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MhsmPrivateEndpointConnectionInner put(
+ String resourceGroupName,
+ String name,
+ String privateEndpointConnectionName,
+ MhsmPrivateEndpointConnectionInner properties);
+
+ /**
+ * Updates the specified private endpoint connection associated with the managed hsm pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
+ * pool.
+ * @param properties The intended state of private endpoint connection.
+ * @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 private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MhsmPrivateEndpointConnectionsPutResponse putWithResponse(
+ String resourceGroupName,
+ String name,
+ String privateEndpointConnectionName,
+ MhsmPrivateEndpointConnectionInner properties,
+ Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the managed hsm pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
+ * pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MhsmPrivateEndpointConnectionInner> beginDelete(
+ String resourceGroupName, String name, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the managed hsm pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
+ * pool.
+ * @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 private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, MhsmPrivateEndpointConnectionInner> beginDelete(
+ String resourceGroupName, String name, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the managed hsm pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
+ * pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MhsmPrivateEndpointConnectionInner delete(
+ String resourceGroupName, String name, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the managed hsm pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the managed hsm
+ * pool.
+ * @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 private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MhsmPrivateEndpointConnectionInner delete(
+ String resourceGroupName, String name, String privateEndpointConnectionName, Context context);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/MhsmPrivateLinkResourcesClient.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/MhsmPrivateLinkResourcesClient.java
new file mode 100644
index 0000000000000..61232ba050f46
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/MhsmPrivateLinkResourcesClient.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.MhsmPrivateLinkResourceListResultInner;
+
+/** An instance of this class provides access to all the operations defined in MhsmPrivateLinkResourcesClient. */
+public interface MhsmPrivateLinkResourcesClient {
+ /**
+ * Gets the private link resources supported for the managed hsm pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources supported for the managed hsm pool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ MhsmPrivateLinkResourceListResultInner listByMhsmResource(String resourceGroupName, String name);
+
+ /**
+ * Gets the private link resources supported for the managed hsm pool.
+ *
+ * @param resourceGroupName Name of the resource group that contains the managed HSM pool.
+ * @param name Name of the managed HSM Pool.
+ * @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 private link resources supported for the managed hsm pool along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listByMhsmResourceWithResponse(
+ String resourceGroupName, String name, Context context);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/OperationsClient.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/OperationsClient.java
new file mode 100644
index 0000000000000..d052731fcdc26
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/OperationsClient.java
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in OperationsClient. */
+public interface OperationsClient {
+ /**
+ * Lists all of the available Key Vault Rest API operations.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Storage operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Lists all of the available Key Vault Rest API operations.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Storage operations as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/PrivateEndpointConnectionsClient.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/PrivateEndpointConnectionsClient.java
new file mode 100644
index 0000000000000..cf4cf0501161d
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/PrivateEndpointConnectionsClient.java
@@ -0,0 +1,179 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.PrivateEndpointConnectionInner;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateEndpointConnectionsPutResponse;
+
+/** An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */
+public interface PrivateEndpointConnectionsClient {
+ /**
+ * Gets the specified private endpoint connection associated with the key vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified private endpoint connection associated with the key vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner get(
+ String resourceGroupName, String vaultName, String privateEndpointConnectionName);
+
+ /**
+ * Gets the specified private endpoint connection associated with the key vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key vault.
+ * @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 specified private endpoint connection associated with the key vault along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String vaultName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Updates the specified private endpoint connection associated with the key vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key vault.
+ * @param properties The intended state of private endpoint connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner put(
+ String resourceGroupName,
+ String vaultName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner properties);
+
+ /**
+ * Updates the specified private endpoint connection associated with the key vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key vault.
+ * @param properties The intended state of private endpoint connection.
+ * @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 private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionsPutResponse putWithResponse(
+ String resourceGroupName,
+ String vaultName,
+ String privateEndpointConnectionName,
+ PrivateEndpointConnectionInner properties,
+ Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the key vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginDelete(
+ String resourceGroupName, String vaultName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the key vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key vault.
+ * @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 private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, PrivateEndpointConnectionInner> beginDelete(
+ String resourceGroupName, String vaultName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the key vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner delete(
+ String resourceGroupName, String vaultName, String privateEndpointConnectionName);
+
+ /**
+ * Deletes the specified private endpoint connection associated with the key vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @param privateEndpointConnectionName Name of the private endpoint connection associated with the key vault.
+ * @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 private endpoint connection resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateEndpointConnectionInner delete(
+ String resourceGroupName, String vaultName, String privateEndpointConnectionName, Context context);
+
+ /**
+ * The List operation gets information about the private endpoint connections associated with the vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of private endpoint connections as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResource(String resourceGroupName, String vaultName);
+
+ /**
+ * The List operation gets information about the private endpoint connections associated with the vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of private endpoint connections as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResource(
+ String resourceGroupName, String vaultName, Context context);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/PrivateLinkResourcesClient.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/PrivateLinkResourcesClient.java
new file mode 100644
index 0000000000000..32a63770a98ca
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/PrivateLinkResourcesClient.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.PrivateLinkResourceListResultInner;
+
+/** An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */
+public interface PrivateLinkResourcesClient {
+ /**
+ * Gets the private link resources supported for the key vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the private link resources supported for the key vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ PrivateLinkResourceListResultInner listByVault(String resourceGroupName, String vaultName);
+
+ /**
+ * Gets the private link resources supported for the key vault.
+ *
+ * @param resourceGroupName Name of the resource group that contains the key vault.
+ * @param vaultName The name of the key vault.
+ * @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 private link resources supported for the key vault along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listByVaultWithResponse(
+ String resourceGroupName, String vaultName, Context context);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/SecretsClient.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/SecretsClient.java
new file mode 100644
index 0000000000000..37f00fd2a039d
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/SecretsClient.java
@@ -0,0 +1,156 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.SecretInner;
+import com.azure.resourcemanager.keyvault.generated.models.SecretCreateOrUpdateParameters;
+import com.azure.resourcemanager.keyvault.generated.models.SecretPatchParameters;
+
+/** An instance of this class provides access to all the operations defined in SecretsClient. */
+public interface SecretsClient {
+ /**
+ * Create or update a secret in a key vault in the specified subscription. NOTE: This API is intended for internal
+ * use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName Name of the vault.
+ * @param secretName Name of the secret.
+ * @param parameters Parameters to create or update the secret.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SecretInner createOrUpdate(
+ String resourceGroupName, String vaultName, String secretName, SecretCreateOrUpdateParameters parameters);
+
+ /**
+ * Create or update a secret in a key vault in the specified subscription. NOTE: This API is intended for internal
+ * use in ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName Name of the vault.
+ * @param secretName Name of the secret.
+ * @param parameters Parameters to create or update the secret.
+ * @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 resource information with extended details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createOrUpdateWithResponse(
+ String resourceGroupName,
+ String vaultName,
+ String secretName,
+ SecretCreateOrUpdateParameters parameters,
+ Context context);
+
+ /**
+ * Update a secret in the specified subscription. NOTE: This API is intended for internal use in ARM deployments.
+ * Users should use the data-plane REST service for interaction with vault secrets.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName Name of the vault.
+ * @param secretName Name of the secret.
+ * @param parameters Parameters to patch the secret.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SecretInner update(String resourceGroupName, String vaultName, String secretName, SecretPatchParameters parameters);
+
+ /**
+ * Update a secret in the specified subscription. NOTE: This API is intended for internal use in ARM deployments.
+ * Users should use the data-plane REST service for interaction with vault secrets.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName Name of the vault.
+ * @param secretName Name of the secret.
+ * @param parameters Parameters to patch the secret.
+ * @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 resource information with extended details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName,
+ String vaultName,
+ String secretName,
+ SecretPatchParameters parameters,
+ Context context);
+
+ /**
+ * Gets the specified secret. NOTE: This API is intended for internal use in ARM deployments. Users should use the
+ * data-plane REST service for interaction with vault secrets.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName The name of the vault.
+ * @param secretName The name of the secret.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified secret.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ SecretInner get(String resourceGroupName, String vaultName, String secretName);
+
+ /**
+ * Gets the specified secret. NOTE: This API is intended for internal use in ARM deployments. Users should use the
+ * data-plane REST service for interaction with vault secrets.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName The name of the vault.
+ * @param secretName The name of the secret.
+ * @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 specified secret along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String vaultName, String secretName, Context context);
+
+ /**
+ * The List operation gets information about the secrets in a vault. NOTE: This API is intended for internal use in
+ * ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName The name of the vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of secrets as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String vaultName);
+
+ /**
+ * The List operation gets information about the secrets in a vault. NOTE: This API is intended for internal use in
+ * ARM deployments. Users should use the data-plane REST service for interaction with vault secrets.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName The name of the vault.
+ * @param top Maximum number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of secrets as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String vaultName, Integer top, Context context);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/VaultsClient.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/VaultsClient.java
new file mode 100644
index 0000000000000..60924d3a64d6f
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/VaultsClient.java
@@ -0,0 +1,410 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.Resource;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.DeletedVaultInner;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.VaultAccessPolicyParametersInner;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.VaultInner;
+import com.azure.resourcemanager.keyvault.generated.models.AccessPolicyUpdateKind;
+import com.azure.resourcemanager.keyvault.generated.models.VaultCheckNameAvailabilityParameters;
+import com.azure.resourcemanager.keyvault.generated.models.VaultCreateOrUpdateParameters;
+import com.azure.resourcemanager.keyvault.generated.models.VaultPatchParameters;
+
+/** An instance of this class provides access to all the operations defined in VaultsClient. */
+public interface VaultsClient {
+ /**
+ * Create or update a key vault in the specified subscription.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the server belongs.
+ * @param vaultName Name of the vault.
+ * @param parameters Parameters to create or update the vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException 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 resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VaultInner> beginCreateOrUpdate(
+ String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters);
+
+ /**
+ * Create or update a key vault in the specified subscription.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the server belongs.
+ * @param vaultName Name of the vault.
+ * @param parameters Parameters to create or update the vault.
+ * @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 resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, VaultInner> beginCreateOrUpdate(
+ String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters, Context context);
+
+ /**
+ * Create or update a key vault in the specified subscription.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the server belongs.
+ * @param vaultName Name of the vault.
+ * @param parameters Parameters to create or update the vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VaultInner createOrUpdate(String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters);
+
+ /**
+ * Create or update a key vault in the specified subscription.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the server belongs.
+ * @param vaultName Name of the vault.
+ * @param parameters Parameters to create or update the vault.
+ * @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 resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VaultInner createOrUpdate(
+ String resourceGroupName, String vaultName, VaultCreateOrUpdateParameters parameters, Context context);
+
+ /**
+ * Update a key vault in the specified subscription.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the server belongs.
+ * @param vaultName Name of the vault.
+ * @param parameters Parameters to patch the vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return resource information with extended details.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VaultInner update(String resourceGroupName, String vaultName, VaultPatchParameters parameters);
+
+ /**
+ * Update a key vault in the specified subscription.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the server belongs.
+ * @param vaultName Name of the vault.
+ * @param parameters Parameters to patch the vault.
+ * @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 resource information with extended details along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(
+ String resourceGroupName, String vaultName, VaultPatchParameters parameters, Context context);
+
+ /**
+ * Deletes the specified Azure key vault.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName The name of the vault to delete.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String vaultName);
+
+ /**
+ * Deletes the specified Azure key vault.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName The name of the vault to delete.
+ * @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 Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response deleteWithResponse(String resourceGroupName, String vaultName, Context context);
+
+ /**
+ * Gets the specified Azure key vault.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName The name of the vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Azure key vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VaultInner getByResourceGroup(String resourceGroupName, String vaultName);
+
+ /**
+ * Gets the specified Azure key vault.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName The name of the vault.
+ * @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 specified Azure key vault along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(String resourceGroupName, String vaultName, Context context);
+
+ /**
+ * Update access policies in a key vault in the specified subscription.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName Name of the vault.
+ * @param operationKind Name of the operation.
+ * @param parameters Access policy to merge into the vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return parameters for updating the access policy in a vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VaultAccessPolicyParametersInner updateAccessPolicy(
+ String resourceGroupName,
+ String vaultName,
+ AccessPolicyUpdateKind operationKind,
+ VaultAccessPolicyParametersInner parameters);
+
+ /**
+ * Update access policies in a key vault in the specified subscription.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param vaultName Name of the vault.
+ * @param operationKind Name of the operation.
+ * @param parameters Access policy to merge into the vault.
+ * @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 parameters for updating the access policy in a vault along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateAccessPolicyWithResponse(
+ String resourceGroupName,
+ String vaultName,
+ AccessPolicyUpdateKind operationKind,
+ VaultAccessPolicyParametersInner parameters,
+ Context context);
+
+ /**
+ * The List operation gets information about the vaults associated with the subscription and within the specified
+ * resource group.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of vaults as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * The List operation gets information about the vaults associated with the subscription and within the specified
+ * resource group.
+ *
+ * @param resourceGroupName The name of the Resource Group to which the vault belongs.
+ * @param top Maximum number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of vaults as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Integer top, Context context);
+
+ /**
+ * The List operation gets information about the vaults associated with the subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of vaults as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscription();
+
+ /**
+ * The List operation gets information about the vaults associated with the subscription.
+ *
+ * @param top Maximum number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of vaults as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listBySubscription(Integer top, Context context);
+
+ /**
+ * Gets information about the deleted vaults in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return information about the deleted vaults in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDeleted();
+
+ /**
+ * Gets information about the deleted vaults in a subscription.
+ *
+ * @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 information about the deleted vaults in a subscription as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDeleted(Context context);
+
+ /**
+ * Gets the deleted Azure key vault.
+ *
+ * @param vaultName The name of the vault.
+ * @param location The location of the deleted vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the deleted Azure key vault.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeletedVaultInner getDeleted(String vaultName, String location);
+
+ /**
+ * Gets the deleted Azure key vault.
+ *
+ * @param vaultName The name of the vault.
+ * @param location The location of the deleted vault.
+ * @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 deleted Azure key vault along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDeletedWithResponse(String vaultName, String location, Context context);
+
+ /**
+ * Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
+ *
+ * @param vaultName The name of the soft-deleted vault.
+ * @param location The location of the soft-deleted vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginPurgeDeleted(String vaultName, String location);
+
+ /**
+ * Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
+ *
+ * @param vaultName The name of the soft-deleted vault.
+ * @param location The location of the soft-deleted vault.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginPurgeDeleted(String vaultName, String location, Context context);
+
+ /**
+ * Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
+ *
+ * @param vaultName The name of the soft-deleted vault.
+ * @param location The location of the soft-deleted vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void purgeDeleted(String vaultName, String location);
+
+ /**
+ * Permanently deletes the specified vault. aka Purges the deleted Azure key vault.
+ *
+ * @param vaultName The name of the soft-deleted vault.
+ * @param location The location of the soft-deleted vault.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void purgeDeleted(String vaultName, String location, Context context);
+
+ /**
+ * The List operation gets information about the vaults associated with the subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of vault resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * The List operation gets information about the vaults associated with the subscription.
+ *
+ * @param top Maximum number of results to return.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return list of vault resources as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Integer top, Context context);
+
+ /**
+ * Checks that the vault name is valid and is not already in use.
+ *
+ * @param vaultName The name of the vault.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the CheckNameAvailability operation response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CheckNameAvailabilityResultInner checkNameAvailability(VaultCheckNameAvailabilityParameters vaultName);
+
+ /**
+ * Checks that the vault name is valid and is not already in use.
+ *
+ * @param vaultName The name of the vault.
+ * @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 CheckNameAvailability operation response along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response checkNameAvailabilityWithResponse(
+ VaultCheckNameAvailabilityParameters vaultName, Context context);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/CheckNameAvailabilityResultInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/CheckNameAvailabilityResultInner.java
new file mode 100644
index 0000000000000..363cc3f142a3d
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/CheckNameAvailabilityResultInner.java
@@ -0,0 +1,71 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Immutable;
+import com.azure.resourcemanager.keyvault.generated.models.Reason;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The CheckNameAvailability operation response. */
+@Immutable
+public final class CheckNameAvailabilityResultInner {
+ /*
+ * A boolean value that indicates whether the name is available for you to
+ * use. If true, the name is available. If false, the name has already been
+ * taken or is invalid and cannot be used.
+ */
+ @JsonProperty(value = "nameAvailable", access = JsonProperty.Access.WRITE_ONLY)
+ private Boolean nameAvailable;
+
+ /*
+ * The reason that a vault name could not be used. The Reason element is
+ * only returned if NameAvailable is false.
+ */
+ @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY)
+ private Reason reason;
+
+ /*
+ * An error message explaining the Reason value in more detail.
+ */
+ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY)
+ private String message;
+
+ /**
+ * Get the nameAvailable property: A boolean value that indicates whether the name is available for you to use. If
+ * true, the name is available. If false, the name has already been taken or is invalid and cannot be used.
+ *
+ * @return the nameAvailable value.
+ */
+ public Boolean nameAvailable() {
+ return this.nameAvailable;
+ }
+
+ /**
+ * Get the reason property: The reason that a vault name could not be used. The Reason element is only returned if
+ * NameAvailable is false.
+ *
+ * @return the reason value.
+ */
+ public Reason reason() {
+ return this.reason;
+ }
+
+ /**
+ * Get the message property: An error message explaining the Reason value in more detail.
+ *
+ * @return the message value.
+ */
+ public String message() {
+ return this.message;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/DeletedManagedHsmInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/DeletedManagedHsmInner.java
new file mode 100644
index 0000000000000..fd824d16dde96
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/DeletedManagedHsmInner.java
@@ -0,0 +1,95 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.keyvault.generated.models.DeletedManagedHsmProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** The DeletedManagedHsm model. */
+@Fluent
+public final class DeletedManagedHsmInner {
+ /*
+ * The Azure Resource Manager resource ID for the deleted managed HSM Pool.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /*
+ * The name of the managed HSM Pool.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * The resource type of the managed HSM Pool.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /*
+ * Properties of the deleted managed HSM
+ */
+ @JsonProperty(value = "properties")
+ private DeletedManagedHsmProperties properties;
+
+ /**
+ * Get the id property: The Azure Resource Manager resource ID for the deleted managed HSM Pool.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the managed HSM Pool.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The resource type of the managed HSM Pool.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the properties property: Properties of the deleted managed HSM.
+ *
+ * @return the properties value.
+ */
+ public DeletedManagedHsmProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the deleted managed HSM.
+ *
+ * @param properties the properties value to set.
+ * @return the DeletedManagedHsmInner object itself.
+ */
+ public DeletedManagedHsmInner withProperties(DeletedManagedHsmProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/DeletedVaultInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/DeletedVaultInner.java
new file mode 100644
index 0000000000000..69c34425f4219
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/DeletedVaultInner.java
@@ -0,0 +1,95 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.keyvault.generated.models.DeletedVaultProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Deleted vault information with extended details. */
+@Fluent
+public final class DeletedVaultInner {
+ /*
+ * The resource ID for the deleted key vault.
+ */
+ @JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
+ private String id;
+
+ /*
+ * The name of the key vault.
+ */
+ @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
+ private String name;
+
+ /*
+ * The resource type of the key vault.
+ */
+ @JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
+ private String type;
+
+ /*
+ * Properties of the vault
+ */
+ @JsonProperty(value = "properties")
+ private DeletedVaultProperties properties;
+
+ /**
+ * Get the id property: The resource ID for the deleted key vault.
+ *
+ * @return the id value.
+ */
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the key vault.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The resource type of the key vault.
+ *
+ * @return the type value.
+ */
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the properties property: Properties of the vault.
+ *
+ * @return the properties value.
+ */
+ public DeletedVaultProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the vault.
+ *
+ * @param properties the properties value to set.
+ * @return the DeletedVaultInner object itself.
+ */
+ public DeletedVaultInner withProperties(DeletedVaultProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/KeyInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/KeyInner.java
new file mode 100644
index 0000000000000..abf69a43471e7
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/KeyInner.java
@@ -0,0 +1,251 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.keyvault.generated.models.JsonWebKeyCurveName;
+import com.azure.resourcemanager.keyvault.generated.models.JsonWebKeyOperation;
+import com.azure.resourcemanager.keyvault.generated.models.JsonWebKeyType;
+import com.azure.resourcemanager.keyvault.generated.models.KeyAttributes;
+import com.azure.resourcemanager.keyvault.generated.models.KeyReleasePolicy;
+import com.azure.resourcemanager.keyvault.generated.models.RotationPolicy;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** The key resource. */
+@Fluent
+public final class KeyInner extends Resource {
+ /*
+ * The properties of the key.
+ */
+ @JsonProperty(value = "properties", required = true)
+ private KeyProperties innerProperties = new KeyProperties();
+
+ /**
+ * Get the innerProperties property: The properties of the key.
+ *
+ * @return the innerProperties value.
+ */
+ private KeyProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public KeyInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public KeyInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the attributes property: The attributes of the key.
+ *
+ * @return the attributes value.
+ */
+ public KeyAttributes attributes() {
+ return this.innerProperties() == null ? null : this.innerProperties().attributes();
+ }
+
+ /**
+ * Set the attributes property: The attributes of the key.
+ *
+ * @param attributes the attributes value to set.
+ * @return the KeyInner object itself.
+ */
+ public KeyInner withAttributes(KeyAttributes attributes) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new KeyProperties();
+ }
+ this.innerProperties().withAttributes(attributes);
+ return this;
+ }
+
+ /**
+ * Get the kty property: The type of the key. For valid values, see JsonWebKeyType.
+ *
+ * @return the kty value.
+ */
+ public JsonWebKeyType kty() {
+ return this.innerProperties() == null ? null : this.innerProperties().kty();
+ }
+
+ /**
+ * Set the kty property: The type of the key. For valid values, see JsonWebKeyType.
+ *
+ * @param kty the kty value to set.
+ * @return the KeyInner object itself.
+ */
+ public KeyInner withKty(JsonWebKeyType kty) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new KeyProperties();
+ }
+ this.innerProperties().withKty(kty);
+ return this;
+ }
+
+ /**
+ * Get the keyOps property: The keyOps property.
+ *
+ * @return the keyOps value.
+ */
+ public List keyOps() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyOps();
+ }
+
+ /**
+ * Set the keyOps property: The keyOps property.
+ *
+ * @param keyOps the keyOps value to set.
+ * @return the KeyInner object itself.
+ */
+ public KeyInner withKeyOps(List keyOps) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new KeyProperties();
+ }
+ this.innerProperties().withKeyOps(keyOps);
+ return this;
+ }
+
+ /**
+ * Get the keySize property: The key size in bits. For example: 2048, 3072, or 4096 for RSA.
+ *
+ * @return the keySize value.
+ */
+ public Integer keySize() {
+ return this.innerProperties() == null ? null : this.innerProperties().keySize();
+ }
+
+ /**
+ * Set the keySize property: The key size in bits. For example: 2048, 3072, or 4096 for RSA.
+ *
+ * @param keySize the keySize value to set.
+ * @return the KeyInner object itself.
+ */
+ public KeyInner withKeySize(Integer keySize) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new KeyProperties();
+ }
+ this.innerProperties().withKeySize(keySize);
+ return this;
+ }
+
+ /**
+ * Get the curveName property: The elliptic curve name. For valid values, see JsonWebKeyCurveName.
+ *
+ * @return the curveName value.
+ */
+ public JsonWebKeyCurveName curveName() {
+ return this.innerProperties() == null ? null : this.innerProperties().curveName();
+ }
+
+ /**
+ * Set the curveName property: The elliptic curve name. For valid values, see JsonWebKeyCurveName.
+ *
+ * @param curveName the curveName value to set.
+ * @return the KeyInner object itself.
+ */
+ public KeyInner withCurveName(JsonWebKeyCurveName curveName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new KeyProperties();
+ }
+ this.innerProperties().withCurveName(curveName);
+ return this;
+ }
+
+ /**
+ * Get the keyUri property: The URI to retrieve the current version of the key.
+ *
+ * @return the keyUri value.
+ */
+ public String keyUri() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyUri();
+ }
+
+ /**
+ * Get the keyUriWithVersion property: The URI to retrieve the specific version of the key.
+ *
+ * @return the keyUriWithVersion value.
+ */
+ public String keyUriWithVersion() {
+ return this.innerProperties() == null ? null : this.innerProperties().keyUriWithVersion();
+ }
+
+ /**
+ * Get the rotationPolicy property: Key rotation policy in response. It will be used for both output and input.
+ * Omitted if empty.
+ *
+ * @return the rotationPolicy value.
+ */
+ public RotationPolicy rotationPolicy() {
+ return this.innerProperties() == null ? null : this.innerProperties().rotationPolicy();
+ }
+
+ /**
+ * Set the rotationPolicy property: Key rotation policy in response. It will be used for both output and input.
+ * Omitted if empty.
+ *
+ * @param rotationPolicy the rotationPolicy value to set.
+ * @return the KeyInner object itself.
+ */
+ public KeyInner withRotationPolicy(RotationPolicy rotationPolicy) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new KeyProperties();
+ }
+ this.innerProperties().withRotationPolicy(rotationPolicy);
+ return this;
+ }
+
+ /**
+ * Get the releasePolicy property: Key release policy in response. It will be used for both output and input.
+ * Omitted if empty.
+ *
+ * @return the releasePolicy value.
+ */
+ public KeyReleasePolicy releasePolicy() {
+ return this.innerProperties() == null ? null : this.innerProperties().releasePolicy();
+ }
+
+ /**
+ * Set the releasePolicy property: Key release policy in response. It will be used for both output and input.
+ * Omitted if empty.
+ *
+ * @param releasePolicy the releasePolicy value to set.
+ * @return the KeyInner object itself.
+ */
+ public KeyInner withReleasePolicy(KeyReleasePolicy releasePolicy) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new KeyProperties();
+ }
+ this.innerProperties().withReleasePolicy(releasePolicy);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property innerProperties in model KeyInner"));
+ } else {
+ innerProperties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(KeyInner.class);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/KeyProperties.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/KeyProperties.java
new file mode 100644
index 0000000000000..919f2499cf583
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/KeyProperties.java
@@ -0,0 +1,254 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.keyvault.generated.models.JsonWebKeyCurveName;
+import com.azure.resourcemanager.keyvault.generated.models.JsonWebKeyOperation;
+import com.azure.resourcemanager.keyvault.generated.models.JsonWebKeyType;
+import com.azure.resourcemanager.keyvault.generated.models.KeyAttributes;
+import com.azure.resourcemanager.keyvault.generated.models.KeyReleasePolicy;
+import com.azure.resourcemanager.keyvault.generated.models.RotationPolicy;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** The properties of the key. */
+@Fluent
+public final class KeyProperties {
+ /*
+ * The attributes of the key.
+ */
+ @JsonProperty(value = "attributes")
+ private KeyAttributes attributes;
+
+ /*
+ * The type of the key. For valid values, see JsonWebKeyType.
+ */
+ @JsonProperty(value = "kty")
+ private JsonWebKeyType kty;
+
+ /*
+ * The keyOps property.
+ */
+ @JsonProperty(value = "keyOps")
+ private List keyOps;
+
+ /*
+ * The key size in bits. For example: 2048, 3072, or 4096 for RSA.
+ */
+ @JsonProperty(value = "keySize")
+ private Integer keySize;
+
+ /*
+ * The elliptic curve name. For valid values, see JsonWebKeyCurveName.
+ */
+ @JsonProperty(value = "curveName")
+ private JsonWebKeyCurveName curveName;
+
+ /*
+ * The URI to retrieve the current version of the key.
+ */
+ @JsonProperty(value = "keyUri", access = JsonProperty.Access.WRITE_ONLY)
+ private String keyUri;
+
+ /*
+ * The URI to retrieve the specific version of the key.
+ */
+ @JsonProperty(value = "keyUriWithVersion", access = JsonProperty.Access.WRITE_ONLY)
+ private String keyUriWithVersion;
+
+ /*
+ * Key rotation policy in response. It will be used for both output and
+ * input. Omitted if empty
+ */
+ @JsonProperty(value = "rotationPolicy")
+ private RotationPolicy rotationPolicy;
+
+ /*
+ * Key release policy in response. It will be used for both output and
+ * input. Omitted if empty
+ */
+ @JsonProperty(value = "release_policy")
+ private KeyReleasePolicy releasePolicy;
+
+ /**
+ * Get the attributes property: The attributes of the key.
+ *
+ * @return the attributes value.
+ */
+ public KeyAttributes attributes() {
+ return this.attributes;
+ }
+
+ /**
+ * Set the attributes property: The attributes of the key.
+ *
+ * @param attributes the attributes value to set.
+ * @return the KeyProperties object itself.
+ */
+ public KeyProperties withAttributes(KeyAttributes attributes) {
+ this.attributes = attributes;
+ return this;
+ }
+
+ /**
+ * Get the kty property: The type of the key. For valid values, see JsonWebKeyType.
+ *
+ * @return the kty value.
+ */
+ public JsonWebKeyType kty() {
+ return this.kty;
+ }
+
+ /**
+ * Set the kty property: The type of the key. For valid values, see JsonWebKeyType.
+ *
+ * @param kty the kty value to set.
+ * @return the KeyProperties object itself.
+ */
+ public KeyProperties withKty(JsonWebKeyType kty) {
+ this.kty = kty;
+ return this;
+ }
+
+ /**
+ * Get the keyOps property: The keyOps property.
+ *
+ * @return the keyOps value.
+ */
+ public List keyOps() {
+ return this.keyOps;
+ }
+
+ /**
+ * Set the keyOps property: The keyOps property.
+ *
+ * @param keyOps the keyOps value to set.
+ * @return the KeyProperties object itself.
+ */
+ public KeyProperties withKeyOps(List keyOps) {
+ this.keyOps = keyOps;
+ return this;
+ }
+
+ /**
+ * Get the keySize property: The key size in bits. For example: 2048, 3072, or 4096 for RSA.
+ *
+ * @return the keySize value.
+ */
+ public Integer keySize() {
+ return this.keySize;
+ }
+
+ /**
+ * Set the keySize property: The key size in bits. For example: 2048, 3072, or 4096 for RSA.
+ *
+ * @param keySize the keySize value to set.
+ * @return the KeyProperties object itself.
+ */
+ public KeyProperties withKeySize(Integer keySize) {
+ this.keySize = keySize;
+ return this;
+ }
+
+ /**
+ * Get the curveName property: The elliptic curve name. For valid values, see JsonWebKeyCurveName.
+ *
+ * @return the curveName value.
+ */
+ public JsonWebKeyCurveName curveName() {
+ return this.curveName;
+ }
+
+ /**
+ * Set the curveName property: The elliptic curve name. For valid values, see JsonWebKeyCurveName.
+ *
+ * @param curveName the curveName value to set.
+ * @return the KeyProperties object itself.
+ */
+ public KeyProperties withCurveName(JsonWebKeyCurveName curveName) {
+ this.curveName = curveName;
+ return this;
+ }
+
+ /**
+ * Get the keyUri property: The URI to retrieve the current version of the key.
+ *
+ * @return the keyUri value.
+ */
+ public String keyUri() {
+ return this.keyUri;
+ }
+
+ /**
+ * Get the keyUriWithVersion property: The URI to retrieve the specific version of the key.
+ *
+ * @return the keyUriWithVersion value.
+ */
+ public String keyUriWithVersion() {
+ return this.keyUriWithVersion;
+ }
+
+ /**
+ * Get the rotationPolicy property: Key rotation policy in response. It will be used for both output and input.
+ * Omitted if empty.
+ *
+ * @return the rotationPolicy value.
+ */
+ public RotationPolicy rotationPolicy() {
+ return this.rotationPolicy;
+ }
+
+ /**
+ * Set the rotationPolicy property: Key rotation policy in response. It will be used for both output and input.
+ * Omitted if empty.
+ *
+ * @param rotationPolicy the rotationPolicy value to set.
+ * @return the KeyProperties object itself.
+ */
+ public KeyProperties withRotationPolicy(RotationPolicy rotationPolicy) {
+ this.rotationPolicy = rotationPolicy;
+ return this;
+ }
+
+ /**
+ * Get the releasePolicy property: Key release policy in response. It will be used for both output and input.
+ * Omitted if empty.
+ *
+ * @return the releasePolicy value.
+ */
+ public KeyReleasePolicy releasePolicy() {
+ return this.releasePolicy;
+ }
+
+ /**
+ * Set the releasePolicy property: Key release policy in response. It will be used for both output and input.
+ * Omitted if empty.
+ *
+ * @param releasePolicy the releasePolicy value to set.
+ * @return the KeyProperties object itself.
+ */
+ public KeyProperties withReleasePolicy(KeyReleasePolicy releasePolicy) {
+ this.releasePolicy = releasePolicy;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (attributes() != null) {
+ attributes().validate();
+ }
+ if (rotationPolicy() != null) {
+ rotationPolicy().validate();
+ }
+ if (releasePolicy() != null) {
+ releasePolicy().validate();
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/ManagedHsmInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/ManagedHsmInner.java
new file mode 100644
index 0000000000000..1d9d3a9377f4c
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/ManagedHsmInner.java
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.keyvault.generated.models.ManagedHsmProperties;
+import com.azure.resourcemanager.keyvault.generated.models.ManagedHsmResource;
+import com.azure.resourcemanager.keyvault.generated.models.ManagedHsmSku;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Resource information with extended details. */
+@Fluent
+public final class ManagedHsmInner extends ManagedHsmResource {
+ /*
+ * Properties of the managed HSM
+ */
+ @JsonProperty(value = "properties")
+ private ManagedHsmProperties properties;
+
+ /**
+ * Get the properties property: Properties of the managed HSM.
+ *
+ * @return the properties value.
+ */
+ public ManagedHsmProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the managed HSM.
+ *
+ * @param properties the properties value to set.
+ * @return the ManagedHsmInner object itself.
+ */
+ public ManagedHsmInner withProperties(ManagedHsmProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ManagedHsmInner withSku(ManagedHsmSku sku) {
+ super.withSku(sku);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ManagedHsmInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public ManagedHsmInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (properties() != null) {
+ properties().validate();
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateEndpointConnectionInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateEndpointConnectionInner.java
new file mode 100644
index 0000000000000..b23928dc18727
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateEndpointConnectionInner.java
@@ -0,0 +1,165 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.keyvault.generated.models.ManagedHsmResource;
+import com.azure.resourcemanager.keyvault.generated.models.ManagedHsmSku;
+import com.azure.resourcemanager.keyvault.generated.models.MhsmPrivateEndpoint;
+import com.azure.resourcemanager.keyvault.generated.models.MhsmPrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateEndpointConnectionProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Private endpoint connection resource. */
+@Fluent
+public final class MhsmPrivateEndpointConnectionInner extends ManagedHsmResource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private MhsmPrivateEndpointConnectionProperties innerProperties;
+
+ /*
+ * Modified whenever there is a change in the state of private endpoint
+ * connection.
+ */
+ @JsonProperty(value = "etag")
+ private String etag;
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private MhsmPrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the etag property: Modified whenever there is a change in the state of private endpoint connection.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Set the etag property: Modified whenever there is a change in the state of private endpoint connection.
+ *
+ * @param etag the etag value to set.
+ * @return the MhsmPrivateEndpointConnectionInner object itself.
+ */
+ public MhsmPrivateEndpointConnectionInner withEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public MhsmPrivateEndpointConnectionInner withSku(ManagedHsmSku sku) {
+ super.withSku(sku);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public MhsmPrivateEndpointConnectionInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public MhsmPrivateEndpointConnectionInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the privateEndpoint property: Properties of the private endpoint object.
+ *
+ * @return the privateEndpoint value.
+ */
+ public MhsmPrivateEndpoint privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
+ }
+
+ /**
+ * Set the privateEndpoint property: Properties of the private endpoint object.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the MhsmPrivateEndpointConnectionInner object itself.
+ */
+ public MhsmPrivateEndpointConnectionInner withPrivateEndpoint(MhsmPrivateEndpoint privateEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MhsmPrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: Approval state of the private link connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public MhsmPrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Approval state of the private link connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the MhsmPrivateEndpointConnectionInner object itself.
+ */
+ public MhsmPrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ MhsmPrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MhsmPrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the private endpoint connection.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Set the provisioningState property: Provisioning state of the private endpoint connection.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the MhsmPrivateEndpointConnectionInner object itself.
+ */
+ public MhsmPrivateEndpointConnectionInner withProvisioningState(
+ PrivateEndpointConnectionProvisioningState provisioningState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new MhsmPrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withProvisioningState(provisioningState);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ @Override
+ public void validate() {
+ super.validate();
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateEndpointConnectionProperties.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateEndpointConnectionProperties.java
new file mode 100644
index 0000000000000..d431245b94b21
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateEndpointConnectionProperties.java
@@ -0,0 +1,109 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.keyvault.generated.models.MhsmPrivateEndpoint;
+import com.azure.resourcemanager.keyvault.generated.models.MhsmPrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateEndpointConnectionProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of the private endpoint connection resource. */
+@Fluent
+public final class MhsmPrivateEndpointConnectionProperties {
+ /*
+ * Properties of the private endpoint object.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private MhsmPrivateEndpoint privateEndpoint;
+
+ /*
+ * Approval state of the private link connection.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState")
+ private MhsmPrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * Provisioning state of the private endpoint connection.
+ */
+ @JsonProperty(value = "provisioningState")
+ private PrivateEndpointConnectionProvisioningState provisioningState;
+
+ /**
+ * Get the privateEndpoint property: Properties of the private endpoint object.
+ *
+ * @return the privateEndpoint value.
+ */
+ public MhsmPrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: Properties of the private endpoint object.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the MhsmPrivateEndpointConnectionProperties object itself.
+ */
+ public MhsmPrivateEndpointConnectionProperties withPrivateEndpoint(MhsmPrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: Approval state of the private link connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public MhsmPrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Approval state of the private link connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the MhsmPrivateEndpointConnectionProperties object itself.
+ */
+ public MhsmPrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
+ MhsmPrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the private endpoint connection.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: Provisioning state of the private endpoint connection.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the MhsmPrivateEndpointConnectionProperties object itself.
+ */
+ public MhsmPrivateEndpointConnectionProperties withProvisioningState(
+ PrivateEndpointConnectionProvisioningState provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() != null) {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateLinkResourceListResultInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateLinkResourceListResultInner.java
new file mode 100644
index 0000000000000..4f8fa9a2beb79
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateLinkResourceListResultInner.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.keyvault.generated.models.MhsmPrivateLinkResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A list of private link resources. */
+@Fluent
+public final class MhsmPrivateLinkResourceListResultInner {
+ /*
+ * Array of private link resources
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: Array of private link resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of private link resources.
+ *
+ * @param value the value value to set.
+ * @return the MhsmPrivateLinkResourceListResultInner object itself.
+ */
+ public MhsmPrivateLinkResourceListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateLinkResourceProperties.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateLinkResourceProperties.java
new file mode 100644
index 0000000000000..f96f91b7055e6
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/MhsmPrivateLinkResourceProperties.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of a private link resource. */
+@Fluent
+public final class MhsmPrivateLinkResourceProperties {
+ /*
+ * Group identifier of private link resource.
+ */
+ @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
+ private String groupId;
+
+ /*
+ * Required member names of private link resource.
+ */
+ @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
+ private List requiredMembers;
+
+ /*
+ * Required DNS zone names of the the private link resource.
+ */
+ @JsonProperty(value = "requiredZoneNames")
+ private List requiredZoneNames;
+
+ /**
+ * Get the groupId property: Group identifier of private link resource.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the requiredMembers property: Required member names of private link resource.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Get the requiredZoneNames property: Required DNS zone names of the the private link resource.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: Required DNS zone names of the the private link resource.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the MhsmPrivateLinkResourceProperties object itself.
+ */
+ public MhsmPrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/OperationInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/OperationInner.java
new file mode 100644
index 0000000000000..31507a70c5b3b
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/OperationInner.java
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.keyvault.generated.models.OperationDisplay;
+import com.azure.resourcemanager.keyvault.generated.models.ServiceSpecification;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Key Vault REST API operation definition. */
+@Fluent
+public final class OperationInner {
+ /*
+ * Operation name: {provider}/{resource}/{operation}
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Display metadata associated with the operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /*
+ * The origin of operations.
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /*
+ * Properties of operation, include metric specifications.
+ */
+ @JsonProperty(value = "properties")
+ private OperationProperties innerOperationProperties;
+
+ /*
+ * Property to specify whether the action is a data action.
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /**
+ * Get the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @param name the name value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the display property: Display metadata associated with the operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Display metadata associated with the operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: The origin of operations.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: The origin of operations.
+ *
+ * @param origin the origin value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Get the innerOperationProperties property: Properties of operation, include metric specifications.
+ *
+ * @return the innerOperationProperties value.
+ */
+ private OperationProperties innerOperationProperties() {
+ return this.innerOperationProperties;
+ }
+
+ /**
+ * Get the isDataAction property: Property to specify whether the action is a data action.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: Property to specify whether the action is a data action.
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Get the serviceSpecification property: One property of operation, include metric specifications.
+ *
+ * @return the serviceSpecification value.
+ */
+ public ServiceSpecification serviceSpecification() {
+ return this.innerOperationProperties() == null ? null : this.innerOperationProperties().serviceSpecification();
+ }
+
+ /**
+ * Set the serviceSpecification property: One property of operation, include metric specifications.
+ *
+ * @param serviceSpecification the serviceSpecification value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withServiceSpecification(ServiceSpecification serviceSpecification) {
+ if (this.innerOperationProperties() == null) {
+ this.innerOperationProperties = new OperationProperties();
+ }
+ this.innerOperationProperties().withServiceSpecification(serviceSpecification);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ if (innerOperationProperties() != null) {
+ innerOperationProperties().validate();
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/OperationProperties.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/OperationProperties.java
new file mode 100644
index 0000000000000..41d5e36971931
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/OperationProperties.java
@@ -0,0 +1,50 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.keyvault.generated.models.ServiceSpecification;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of operation, include metric specifications. */
+@Fluent
+public final class OperationProperties {
+ /*
+ * One property of operation, include metric specifications.
+ */
+ @JsonProperty(value = "serviceSpecification")
+ private ServiceSpecification serviceSpecification;
+
+ /**
+ * Get the serviceSpecification property: One property of operation, include metric specifications.
+ *
+ * @return the serviceSpecification value.
+ */
+ public ServiceSpecification serviceSpecification() {
+ return this.serviceSpecification;
+ }
+
+ /**
+ * Set the serviceSpecification property: One property of operation, include metric specifications.
+ *
+ * @param serviceSpecification the serviceSpecification value to set.
+ * @return the OperationProperties object itself.
+ */
+ public OperationProperties withServiceSpecification(ServiceSpecification serviceSpecification) {
+ this.serviceSpecification = serviceSpecification;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (serviceSpecification() != null) {
+ serviceSpecification().validate();
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateEndpointConnectionInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateEndpointConnectionInner.java
new file mode 100644
index 0000000000000..e2741e0866e42
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateEndpointConnectionInner.java
@@ -0,0 +1,155 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateEndpoint;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Private endpoint connection resource. */
+@Fluent
+public final class PrivateEndpointConnectionInner extends Resource {
+ /*
+ * Resource properties.
+ */
+ @JsonProperty(value = "properties")
+ private PrivateEndpointConnectionProperties innerProperties;
+
+ /*
+ * Modified whenever there is a change in the state of private endpoint
+ * connection.
+ */
+ @JsonProperty(value = "etag")
+ private String etag;
+
+ /**
+ * Get the innerProperties property: Resource properties.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the etag property: Modified whenever there is a change in the state of private endpoint connection.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Set the etag property: Modified whenever there is a change in the state of private endpoint connection.
+ *
+ * @param etag the etag value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withEtag(String etag) {
+ this.etag = etag;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public PrivateEndpointConnectionInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public PrivateEndpointConnectionInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the privateEndpoint property: Properties of the private endpoint object.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
+ }
+
+ /**
+ * Set the privateEndpoint property: Properties of the private endpoint object.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateEndpoint(privateEndpoint);
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: Approval state of the private link connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.innerProperties() == null ? null : this.innerProperties().privateLinkServiceConnectionState();
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Approval state of the private link connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withPrivateLinkServiceConnectionState(privateLinkServiceConnectionState);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the private endpoint connection.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Set the provisioningState property: Provisioning state of the private endpoint connection.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner withProvisioningState(
+ PrivateEndpointConnectionProvisioningState provisioningState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withProvisioningState(provisioningState);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateEndpointConnectionProperties.java
new file mode 100644
index 0000000000000..b7507ebd49518
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateEndpointConnectionProperties.java
@@ -0,0 +1,109 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateEndpoint;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateEndpointConnectionProvisioningState;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateLinkServiceConnectionState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Properties of the private endpoint connection resource. */
+@Fluent
+public final class PrivateEndpointConnectionProperties {
+ /*
+ * Properties of the private endpoint object.
+ */
+ @JsonProperty(value = "privateEndpoint")
+ private PrivateEndpoint privateEndpoint;
+
+ /*
+ * Approval state of the private link connection.
+ */
+ @JsonProperty(value = "privateLinkServiceConnectionState")
+ private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
+
+ /*
+ * Provisioning state of the private endpoint connection.
+ */
+ @JsonProperty(value = "provisioningState")
+ private PrivateEndpointConnectionProvisioningState provisioningState;
+
+ /**
+ * Get the privateEndpoint property: Properties of the private endpoint object.
+ *
+ * @return the privateEndpoint value.
+ */
+ public PrivateEndpoint privateEndpoint() {
+ return this.privateEndpoint;
+ }
+
+ /**
+ * Set the privateEndpoint property: Properties of the private endpoint object.
+ *
+ * @param privateEndpoint the privateEndpoint value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ this.privateEndpoint = privateEndpoint;
+ return this;
+ }
+
+ /**
+ * Get the privateLinkServiceConnectionState property: Approval state of the private link connection.
+ *
+ * @return the privateLinkServiceConnectionState value.
+ */
+ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
+ return this.privateLinkServiceConnectionState;
+ }
+
+ /**
+ * Set the privateLinkServiceConnectionState property: Approval state of the private link connection.
+ *
+ * @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withPrivateLinkServiceConnectionState(
+ PrivateLinkServiceConnectionState privateLinkServiceConnectionState) {
+ this.privateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: Provisioning state of the private endpoint connection.
+ *
+ * @return the provisioningState value.
+ */
+ public PrivateEndpointConnectionProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Set the provisioningState property: Provisioning state of the private endpoint connection.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties withProvisioningState(
+ PrivateEndpointConnectionProvisioningState provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (privateEndpoint() != null) {
+ privateEndpoint().validate();
+ }
+ if (privateLinkServiceConnectionState() != null) {
+ privateLinkServiceConnectionState().validate();
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateLinkResourceListResultInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateLinkResourceListResultInner.java
new file mode 100644
index 0000000000000..e45020e3fb06f
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateLinkResourceListResultInner.java
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.keyvault.generated.models.PrivateLinkResource;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** A list of private link resources. */
+@Fluent
+public final class PrivateLinkResourceListResultInner {
+ /*
+ * Array of private link resources
+ */
+ @JsonProperty(value = "value")
+ private List value;
+
+ /**
+ * Get the value property: Array of private link resources.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: Array of private link resources.
+ *
+ * @param value the value value to set.
+ * @return the PrivateLinkResourceListResultInner object itself.
+ */
+ public PrivateLinkResourceListResultInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateLinkResourceProperties.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateLinkResourceProperties.java
new file mode 100644
index 0000000000000..47176853f90a2
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/PrivateLinkResourceProperties.java
@@ -0,0 +1,77 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Properties of a private link resource. */
+@Fluent
+public final class PrivateLinkResourceProperties {
+ /*
+ * Group identifier of private link resource.
+ */
+ @JsonProperty(value = "groupId", access = JsonProperty.Access.WRITE_ONLY)
+ private String groupId;
+
+ /*
+ * Required member names of private link resource.
+ */
+ @JsonProperty(value = "requiredMembers", access = JsonProperty.Access.WRITE_ONLY)
+ private List requiredMembers;
+
+ /*
+ * Required DNS zone names of the the private link resource.
+ */
+ @JsonProperty(value = "requiredZoneNames")
+ private List requiredZoneNames;
+
+ /**
+ * Get the groupId property: Group identifier of private link resource.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.groupId;
+ }
+
+ /**
+ * Get the requiredMembers property: Required member names of private link resource.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.requiredMembers;
+ }
+
+ /**
+ * Get the requiredZoneNames property: Required DNS zone names of the the private link resource.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.requiredZoneNames;
+ }
+
+ /**
+ * Set the requiredZoneNames property: Required DNS zone names of the the private link resource.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withRequiredZoneNames(List requiredZoneNames) {
+ this.requiredZoneNames = requiredZoneNames;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/SecretInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/SecretInner.java
new file mode 100644
index 0000000000000..65b18992f52a0
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/SecretInner.java
@@ -0,0 +1,73 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.keyvault.generated.models.SecretProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Resource information with extended details. */
+@Fluent
+public final class SecretInner extends Resource {
+ /*
+ * Properties of the secret
+ */
+ @JsonProperty(value = "properties", required = true)
+ private SecretProperties properties;
+
+ /**
+ * Get the properties property: Properties of the secret.
+ *
+ * @return the properties value.
+ */
+ public SecretProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the secret.
+ *
+ * @param properties the properties value to set.
+ * @return the SecretInner object itself.
+ */
+ public SecretInner withProperties(SecretProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SecretInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public SecretInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property properties in model SecretInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(SecretInner.class);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/VaultAccessPolicyParametersInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/VaultAccessPolicyParametersInner.java
new file mode 100644
index 0000000000000..9f03a8bc643bc
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/VaultAccessPolicyParametersInner.java
@@ -0,0 +1,74 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.keyvault.generated.models.VaultAccessPolicyProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Parameters for updating the access policy in a vault. */
+@Fluent
+public final class VaultAccessPolicyParametersInner extends ProxyResource {
+ /*
+ * The resource type of the access policy.
+ */
+ @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
+ private String location;
+
+ /*
+ * Properties of the access policy
+ */
+ @JsonProperty(value = "properties", required = true)
+ private VaultAccessPolicyProperties properties;
+
+ /**
+ * Get the location property: The resource type of the access policy.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Get the properties property: Properties of the access policy.
+ *
+ * @return the properties value.
+ */
+ public VaultAccessPolicyProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the access policy.
+ *
+ * @param properties the properties value to set.
+ * @return the VaultAccessPolicyParametersInner object itself.
+ */
+ public VaultAccessPolicyParametersInner withProperties(VaultAccessPolicyProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException(
+ "Missing required property properties in model VaultAccessPolicyParametersInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(VaultAccessPolicyParametersInner.class);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/VaultInner.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/VaultInner.java
new file mode 100644
index 0000000000000..d4f50767e1a64
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/VaultInner.java
@@ -0,0 +1,89 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.resourcemanager.keyvault.generated.models.VaultProperties;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.Map;
+
+/** Resource information with extended details. */
+@Fluent
+public final class VaultInner extends Resource {
+ /*
+ * System metadata for the key vault.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /*
+ * Properties of the vault
+ */
+ @JsonProperty(value = "properties", required = true)
+ private VaultProperties properties;
+
+ /**
+ * Get the systemData property: System metadata for the key vault.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the properties property: Properties of the vault.
+ *
+ * @return the properties value.
+ */
+ public VaultProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Properties of the vault.
+ *
+ * @param properties the properties value to set.
+ * @return the VaultInner object itself.
+ */
+ public VaultInner withProperties(VaultProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public VaultInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public VaultInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER
+ .logExceptionAsError(
+ new IllegalArgumentException("Missing required property properties in model VaultInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(VaultInner.class);
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/package-info.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/package-info.java
new file mode 100644
index 0000000000000..b8b64813b1fe5
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/models/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the inner data models for KeyVaultManagementClient. The Azure management API provides a RESTful
+ * set of web services that interact with Azure Key Vault.
+ */
+package com.azure.resourcemanager.keyvault.generated.fluent.models;
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/package-info.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/package-info.java
new file mode 100644
index 0000000000000..701bc9105a453
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/fluent/package-info.java
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the service clients for KeyVaultManagementClient. The Azure management API provides a RESTful set
+ * of web services that interact with Azure Key Vault.
+ */
+package com.azure.resourcemanager.keyvault.generated.fluent;
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/CheckNameAvailabilityResultImpl.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/CheckNameAvailabilityResultImpl.java
new file mode 100644
index 0000000000000..d0d72a84f82c6
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/CheckNameAvailabilityResultImpl.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.implementation;
+
+import com.azure.resourcemanager.keyvault.generated.fluent.models.CheckNameAvailabilityResultInner;
+import com.azure.resourcemanager.keyvault.generated.models.CheckNameAvailabilityResult;
+import com.azure.resourcemanager.keyvault.generated.models.Reason;
+
+public final class CheckNameAvailabilityResultImpl implements CheckNameAvailabilityResult {
+ private CheckNameAvailabilityResultInner innerObject;
+
+ private final com.azure.resourcemanager.keyvault.generated.KeyVaultManager serviceManager;
+
+ CheckNameAvailabilityResultImpl(
+ CheckNameAvailabilityResultInner innerObject,
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public Boolean nameAvailable() {
+ return this.innerModel().nameAvailable();
+ }
+
+ public Reason reason() {
+ return this.innerModel().reason();
+ }
+
+ public String message() {
+ return this.innerModel().message();
+ }
+
+ public CheckNameAvailabilityResultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/DeletedManagedHsmImpl.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/DeletedManagedHsmImpl.java
new file mode 100644
index 0000000000000..9d4d5a26c43c3
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/DeletedManagedHsmImpl.java
@@ -0,0 +1,46 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.implementation;
+
+import com.azure.resourcemanager.keyvault.generated.fluent.models.DeletedManagedHsmInner;
+import com.azure.resourcemanager.keyvault.generated.models.DeletedManagedHsm;
+import com.azure.resourcemanager.keyvault.generated.models.DeletedManagedHsmProperties;
+
+public final class DeletedManagedHsmImpl implements DeletedManagedHsm {
+ private DeletedManagedHsmInner innerObject;
+
+ private final com.azure.resourcemanager.keyvault.generated.KeyVaultManager serviceManager;
+
+ DeletedManagedHsmImpl(
+ DeletedManagedHsmInner innerObject,
+ com.azure.resourcemanager.keyvault.generated.KeyVaultManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public DeletedManagedHsmProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public DeletedManagedHsmInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/DeletedVaultImpl.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/DeletedVaultImpl.java
new file mode 100644
index 0000000000000..d1f9a7c920015
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/DeletedVaultImpl.java
@@ -0,0 +1,45 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.implementation;
+
+import com.azure.resourcemanager.keyvault.generated.fluent.models.DeletedVaultInner;
+import com.azure.resourcemanager.keyvault.generated.models.DeletedVault;
+import com.azure.resourcemanager.keyvault.generated.models.DeletedVaultProperties;
+
+public final class DeletedVaultImpl implements DeletedVault {
+ private DeletedVaultInner innerObject;
+
+ private final com.azure.resourcemanager.keyvault.generated.KeyVaultManager serviceManager;
+
+ DeletedVaultImpl(
+ DeletedVaultInner innerObject, com.azure.resourcemanager.keyvault.generated.KeyVaultManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public DeletedVaultProperties properties() {
+ return this.innerModel().properties();
+ }
+
+ public DeletedVaultInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/KeyImpl.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/KeyImpl.java
new file mode 100644
index 0000000000000..2b9a6aaf8f6c5
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/KeyImpl.java
@@ -0,0 +1,185 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.KeyInner;
+import com.azure.resourcemanager.keyvault.generated.fluent.models.KeyProperties;
+import com.azure.resourcemanager.keyvault.generated.models.JsonWebKeyCurveName;
+import com.azure.resourcemanager.keyvault.generated.models.JsonWebKeyOperation;
+import com.azure.resourcemanager.keyvault.generated.models.JsonWebKeyType;
+import com.azure.resourcemanager.keyvault.generated.models.Key;
+import com.azure.resourcemanager.keyvault.generated.models.KeyAttributes;
+import com.azure.resourcemanager.keyvault.generated.models.KeyCreateParameters;
+import com.azure.resourcemanager.keyvault.generated.models.KeyReleasePolicy;
+import com.azure.resourcemanager.keyvault.generated.models.RotationPolicy;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+
+public final class KeyImpl implements Key, Key.Definition {
+ private KeyInner innerObject;
+
+ private final com.azure.resourcemanager.keyvault.generated.KeyVaultManager serviceManager;
+
+ KeyImpl(KeyInner innerObject, com.azure.resourcemanager.keyvault.generated.KeyVaultManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public KeyAttributes attributes() {
+ return this.innerModel().attributes();
+ }
+
+ public JsonWebKeyType kty() {
+ return this.innerModel().kty();
+ }
+
+ public List keyOps() {
+ List inner = this.innerModel().keyOps();
+ if (inner != null) {
+ return Collections.unmodifiableList(inner);
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public Integer keySize() {
+ return this.innerModel().keySize();
+ }
+
+ public JsonWebKeyCurveName curveName() {
+ return this.innerModel().curveName();
+ }
+
+ public String keyUri() {
+ return this.innerModel().keyUri();
+ }
+
+ public String keyUriWithVersion() {
+ return this.innerModel().keyUriWithVersion();
+ }
+
+ public RotationPolicy rotationPolicy() {
+ return this.innerModel().rotationPolicy();
+ }
+
+ public KeyReleasePolicy releasePolicy() {
+ return this.innerModel().releasePolicy();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public KeyInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.keyvault.generated.KeyVaultManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String vaultName;
+
+ private String keyName;
+
+ private KeyCreateParameters createParameters;
+
+ public KeyImpl withExistingVault(String resourceGroupName, String vaultName) {
+ this.resourceGroupName = resourceGroupName;
+ this.vaultName = vaultName;
+ return this;
+ }
+
+ public Key create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getKeys()
+ .createIfNotExistWithResponse(resourceGroupName, vaultName, keyName, createParameters, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Key create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getKeys()
+ .createIfNotExistWithResponse(resourceGroupName, vaultName, keyName, createParameters, context)
+ .getValue();
+ return this;
+ }
+
+ KeyImpl(String name, com.azure.resourcemanager.keyvault.generated.KeyVaultManager serviceManager) {
+ this.innerObject = new KeyInner();
+ this.serviceManager = serviceManager;
+ this.keyName = name;
+ this.createParameters = new KeyCreateParameters();
+ }
+
+ public Key refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getKeys()
+ .getWithResponse(resourceGroupName, vaultName, keyName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public Key refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getKeys()
+ .getWithResponse(resourceGroupName, vaultName, keyName, context)
+ .getValue();
+ return this;
+ }
+
+ public KeyImpl withProperties(KeyProperties properties) {
+ this.createParameters.withProperties(properties);
+ return this;
+ }
+
+ public KeyImpl withTags(Map tags) {
+ this.createParameters.withTags(tags);
+ return this;
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/KeyVaultManagementClientBuilder.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/KeyVaultManagementClientBuilder.java
new file mode 100644
index 0000000000000..8e816a321c75b
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/KeyVaultManagementClientBuilder.java
@@ -0,0 +1,145 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the KeyVaultManagementClientImpl type. */
+@ServiceClientBuilder(serviceClients = {KeyVaultManagementClientImpl.class})
+public final class KeyVaultManagementClientBuilder {
+ /*
+ * Subscription credentials which uniquely identify Microsoft Azure
+ * subscription. The subscription ID forms part of the URI for every
+ * service call.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the KeyVaultManagementClientBuilder.
+ */
+ public KeyVaultManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the KeyVaultManagementClientBuilder.
+ */
+ public KeyVaultManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the KeyVaultManagementClientBuilder.
+ */
+ public KeyVaultManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the KeyVaultManagementClientBuilder.
+ */
+ public KeyVaultManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the KeyVaultManagementClientBuilder.
+ */
+ public KeyVaultManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the KeyVaultManagementClientBuilder.
+ */
+ public KeyVaultManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of KeyVaultManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of KeyVaultManagementClientImpl.
+ */
+ public KeyVaultManagementClientImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ KeyVaultManagementClientImpl client =
+ new KeyVaultManagementClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/KeyVaultManagementClientImpl.java b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/KeyVaultManagementClientImpl.java
new file mode 100644
index 0000000000000..f832ec022ce6c
--- /dev/null
+++ b/sdk/keyvault/azure-resourcemanager-keyvault-generated/src/main/java/com/azure/resourcemanager/keyvault/generated/implementation/KeyVaultManagementClientImpl.java
@@ -0,0 +1,410 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.keyvault.generated.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.keyvault.generated.fluent.KeyVaultManagementClient;
+import com.azure.resourcemanager.keyvault.generated.fluent.KeysClient;
+import com.azure.resourcemanager.keyvault.generated.fluent.ManagedHsmsClient;
+import com.azure.resourcemanager.keyvault.generated.fluent.MhsmPrivateEndpointConnectionsClient;
+import com.azure.resourcemanager.keyvault.generated.fluent.MhsmPrivateLinkResourcesClient;
+import com.azure.resourcemanager.keyvault.generated.fluent.OperationsClient;
+import com.azure.resourcemanager.keyvault.generated.fluent.PrivateEndpointConnectionsClient;
+import com.azure.resourcemanager.keyvault.generated.fluent.PrivateLinkResourcesClient;
+import com.azure.resourcemanager.keyvault.generated.fluent.SecretsClient;
+import com.azure.resourcemanager.keyvault.generated.fluent.VaultsClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the KeyVaultManagementClientImpl type. */
+@ServiceClient(builder = KeyVaultManagementClientBuilder.class)
+public final class KeyVaultManagementClientImpl implements KeyVaultManagementClient {
+ /**
+ * Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of
+ * the URI for every service call.
+ */
+ private final String subscriptionId;
+
+ /**
+ * Gets Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms
+ * part of the URI for every service call.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The KeysClient object to access its operations. */
+ private final KeysClient keys;
+
+ /**
+ * Gets the KeysClient object to access its operations.
+ *
+ * @return the KeysClient object.
+ */
+ public KeysClient getKeys() {
+ return this.keys;
+ }
+
+ /** The VaultsClient object to access its operations. */
+ private final VaultsClient vaults;
+
+ /**
+ * Gets the VaultsClient object to access its operations.
+ *
+ * @return the VaultsClient object.
+ */
+ public VaultsClient getVaults() {
+ return this.vaults;
+ }
+
+ /** The PrivateEndpointConnectionsClient object to access its operations. */
+ private final PrivateEndpointConnectionsClient privateEndpointConnections;
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /** The PrivateLinkResourcesClient object to access its operations. */
+ private final PrivateLinkResourcesClient privateLinkResources;
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ public PrivateLinkResourcesClient getPrivateLinkResources() {
+ return this.privateLinkResources;
+ }
+
+ /** The ManagedHsmsClient object to access its operations. */
+ private final ManagedHsmsClient managedHsms;
+
+ /**
+ * Gets the ManagedHsmsClient object to access its operations.
+ *
+ * @return the ManagedHsmsClient object.
+ */
+ public ManagedHsmsClient getManagedHsms() {
+ return this.managedHsms;
+ }
+
+ /** The MhsmPrivateEndpointConnectionsClient object to access its operations. */
+ private final MhsmPrivateEndpointConnectionsClient mhsmPrivateEndpointConnections;
+
+ /**
+ * Gets the MhsmPrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the MhsmPrivateEndpointConnectionsClient object.
+ */
+ public MhsmPrivateEndpointConnectionsClient getMhsmPrivateEndpointConnections() {
+ return this.mhsmPrivateEndpointConnections;
+ }
+
+ /** The MhsmPrivateLinkResourcesClient object to access its operations. */
+ private final MhsmPrivateLinkResourcesClient mhsmPrivateLinkResources;
+
+ /**
+ * Gets the MhsmPrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the MhsmPrivateLinkResourcesClient object.
+ */
+ public MhsmPrivateLinkResourcesClient getMhsmPrivateLinkResources() {
+ return this.mhsmPrivateLinkResources;
+ }
+
+ /** The OperationsClient object to access its operations. */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /** The SecretsClient object to access its operations. */
+ private final SecretsClient secrets;
+
+ /**
+ * Gets the SecretsClient object to access its operations.
+ *
+ * @return the SecretsClient object.
+ */
+ public SecretsClient getSecrets() {
+ return this.secrets;
+ }
+
+ /**
+ * Initializes an instance of KeyVaultManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription. The
+ * subscription ID forms part of the URI for every service call.
+ * @param endpoint server parameter.
+ */
+ KeyVaultManagementClientImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2021-11-01-preview";
+ this.keys = new KeysClientImpl(this);
+ this.vaults = new VaultsClientImpl(this);
+ this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
+ this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
+ this.managedHsms = new ManagedHsmsClientImpl(this);
+ this.mhsmPrivateEndpointConnections = new MhsmPrivateEndpointConnectionsClientImpl(this);
+ this.mhsmPrivateLinkResources = new MhsmPrivateLinkResourcesClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
+ this.secrets = new SecretsClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ for (Map.Entry