From 0019f8a986664e330375f8b7d04f05c80be1b96d Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 13 Feb 2023 07:52:54 +0000 Subject: [PATCH] CodeGen from PR 22573 in Azure/azure-rest-api-specs Merge 059a8c256947f09c8c0dda940e98aa94ab7b7d0a into 7628df586f53463e7182758c00b670ffde26077c --- .../CHANGELOG.md | 4 +- .../README.md | 25 +- .../SAMPLE.md | 156 +++---- .../AppConfigurationManager.java | 2 +- .../fluent/ConfigurationStoresClient.java | 44 +- .../fluent/KeyValuesClient.java | 64 +-- .../fluent/OperationsClient.java | 26 +- .../PrivateEndpointConnectionsClient.java | 32 +- .../fluent/PrivateLinkResourcesClient.java | 12 +- .../fluent/models/ApiKeyInner.java | 7 +- .../models/ConfigurationStoreInner.java | 4 + .../models/ConfigurationStoreProperties.java | 16 +- ...rationStorePropertiesUpdateParameters.java | 10 +- .../DeletedConfigurationStoreInner.java | 8 +- .../DeletedConfigurationStoreProperties.java | 4 + .../fluent/models/KeyValueInner.java | 4 + .../fluent/models/KeyValueProperties.java | 22 +- .../models/NameAvailabilityStatusInner.java | 7 +- .../models/OperationDefinitionInner.java | 4 + .../PrivateEndpointConnectionInner.java | 4 + .../PrivateEndpointConnectionProperties.java | 7 +- .../models/PrivateLinkResourceInner.java | 8 +- .../models/PrivateLinkResourceProperties.java | 4 + ...pConfigurationManagementClientBuilder.java | 34 +- .../ConfigurationStoreImpl.java | 10 +- .../ConfigurationStoresClientImpl.java | 103 +++-- .../ConfigurationStoresImpl.java | 58 +-- .../implementation/KeyValuesClientImpl.java | 402 ++---------------- .../implementation/KeyValuesImpl.java | 32 +- .../implementation/OperationsClientImpl.java | 47 +- .../implementation/OperationsImpl.java | 42 +- .../PrivateEndpointConnectionsClientImpl.java | 80 ++-- .../PrivateEndpointConnectionsImpl.java | 22 +- .../PrivateLinkResourcesClientImpl.java | 24 +- .../PrivateLinkResourcesImpl.java | 18 +- .../models/ActionsRequired.java | 11 +- .../models/ApiKeyListResult.java | 4 + .../CheckNameAvailabilityParameters.java | 4 + .../models/ConfigurationResourceType.java | 11 +- .../models/ConfigurationStore.java | 10 +- .../models/ConfigurationStoreListResult.java | 4 + .../ConfigurationStoreUpdateParameters.java | 4 + .../models/ConfigurationStores.java | 44 +- .../models/ConnectionStatus.java | 11 +- .../appconfiguration/models/CreateMode.java | 6 +- .../DeletedConfigurationStoreListResult.java | 4 + .../models/EncryptionProperties.java | 4 + .../appconfiguration/models/IdentityType.java | 14 +- .../models/KeyValueListResult.java | 77 ---- .../appconfiguration/models/KeyValues.java | 42 +- .../models/KeyVaultProperties.java | 4 + .../models/LogSpecification.java | 4 + .../models/MetricDimension.java | 4 + .../models/MetricSpecification.java | 10 +- .../models/OperationDefinitionDisplay.java | 4 + .../models/OperationDefinitionListResult.java | 4 + .../models/OperationProperties.java | 4 + .../appconfiguration/models/Operations.java | 26 +- .../models/PrivateEndpoint.java | 4 + .../PrivateEndpointConnectionListResult.java | 4 + .../PrivateEndpointConnectionReference.java | 4 + .../models/PrivateEndpointConnections.java | 16 +- .../models/PrivateLinkResourceListResult.java | 4 + .../models/PrivateLinkResources.java | 12 +- .../PrivateLinkServiceConnectionState.java | 7 +- .../models/ProvisioningState.java | 11 +- .../models/PublicNetworkAccess.java | 11 +- .../models/RegenerateKeyParameters.java | 4 + .../models/ResourceIdentity.java | 21 +- .../models/ServiceSpecification.java | 4 + .../appconfiguration/models/Sku.java | 4 + .../appconfiguration/models/UserIdentity.java | 4 + .../ConfigurationStoresDeleteSamples.java | 4 +- ...rationStoresGetByResourceGroupSamples.java | 6 +- .../ConfigurationStoresGetDeletedSamples.java | 4 +- ...ationStoresListByResourceGroupSamples.java | 4 +- ...ConfigurationStoresListDeletedSamples.java | 4 +- .../ConfigurationStoresListKeysSamples.java | 4 +- .../ConfigurationStoresListSamples.java | 4 +- ...onfigurationStoresPurgeDeletedSamples.java | 4 +- ...nfigurationStoresRegenerateKeySamples.java | 6 +- .../ConfigurationStoresUpdateSamples.java | 7 +- .../generated/KeyValuesDeleteSamples.java | 4 +- .../generated/KeyValuesGetSamples.java | 6 +- ...ValuesListByConfigurationStoreSamples.java | 23 - ...perationsCheckNameAvailabilitySamples.java | 5 +- .../generated/OperationsListSamples.java | 20 + ...sRegionalCheckNameAvailabilitySamples.java | 5 +- ...pointConnectionsCreateOrUpdateSamples.java | 20 +- ...ivateEndpointConnectionsDeleteSamples.java | 6 +- .../PrivateEndpointConnectionsGetSamples.java | 4 +- ...ctionsListByConfigurationStoreSamples.java | 6 +- .../PrivateLinkResourcesGetSamples.java | 4 +- ...ourcesListByConfigurationStoreSamples.java | 6 +- 94 files changed, 814 insertions(+), 1108 deletions(-) delete mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValueListResult.java delete mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesListByConfigurationStoreSamples.java create mode 100644 sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListSamples.java diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md index 7bf928544d70e..1b3b6b2de3c6c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/CHANGELOG.md @@ -1,6 +1,8 @@ # Release History -## 1.0.0-beta.7 (Unreleased) +## 1.0.0-beta.1 (2023-02-13) + +- Azure Resource Manager AppConfiguration client library for Java. This package contains Microsoft Azure SDK for AppConfiguration Management SDK. Package tag package-2022-05-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Features Added diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md index a320d92ddf7bc..77fa8cf8bd762 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/README.md @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-appconfiguration - 1.0.0-beta.6 + 1.0.0-beta.7 ``` [//]: # ({x-version-update-end}) @@ -41,19 +41,19 @@ Various documentation is available to help you get started 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. +[Azure Identity][azure_identity] and [Azure Core Netty HTTP][azure_core_http_netty] packages provide the default implementation. ### Authentication -By default, Azure Active Directory token authentication depends on correct configure of following environment variables. +By default, Azure Active Directory token authentication depends on correct configuration of the 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`. +In addition, Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment variable. -With above configuration, `azure` client can be authenticated by following code: +With above configuration, `azure` client can be authenticated using the following code: ```java AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); @@ -83,13 +83,13 @@ See [API design][design] for general introduction on design and key concepts on ## Contributing -For details on contributing to this repository, see the [contributing guide](https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md). +For details on contributing to this repository, see the [contributing guide][cg]. -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 +This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit . + +When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA. + +This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For more information see the [Code of Conduct FAQ][coc_faq] or contact with any additional questions or comments. [survey]: https://microsoft.qualtrics.com/jfe/form/SV_ehN0lIk2FKEBkwd?Q_CHL=DOCS @@ -100,3 +100,6 @@ For details on contributing to this repository, see the [contributing guide](htt [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 +[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md +[coc]: https://opensource.microsoft.com/codeofconduct/ +[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/SAMPLE.md b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/SAMPLE.md index 5e7ee3ad635e7..1b18b3920eb74 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/SAMPLE.md +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/SAMPLE.md @@ -20,11 +20,11 @@ - [CreateOrUpdate](#keyvalues_createorupdate) - [Delete](#keyvalues_delete) - [Get](#keyvalues_get) -- [ListByConfigurationStore](#keyvalues_listbyconfigurationstore) ## Operations - [CheckNameAvailability](#operations_checknameavailability) +- [List](#operations_list) - [RegionalCheckNameAvailability](#operations_regionalchecknameavailability) ## PrivateEndpointConnections @@ -133,8 +133,6 @@ public final class ConfigurationStoresCreateSamples { ### ConfigurationStores_Delete ```java -import com.azure.core.util.Context; - /** Samples for ConfigurationStores Delete. */ public final class ConfigurationStoresDeleteSamples { /* @@ -147,7 +145,7 @@ public final class ConfigurationStoresDeleteSamples { */ public static void configurationStoresDelete( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().delete("myResourceGroup", "contoso", Context.NONE); + manager.configurationStores().delete("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } ``` @@ -155,8 +153,6 @@ public final class ConfigurationStoresDeleteSamples { ### ConfigurationStores_GetByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for ConfigurationStores GetByResourceGroup. */ public final class ConfigurationStoresGetByResourceGroupSamples { /* @@ -169,7 +165,9 @@ public final class ConfigurationStoresGetByResourceGroupSamples { */ public static void configurationStoresGet( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE); + manager + .configurationStores() + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } ``` @@ -177,8 +175,6 @@ public final class ConfigurationStoresGetByResourceGroupSamples { ### ConfigurationStores_GetDeleted ```java -import com.azure.core.util.Context; - /** Samples for ConfigurationStores GetDeleted. */ public final class ConfigurationStoresGetDeletedSamples { /* @@ -191,7 +187,7 @@ public final class ConfigurationStoresGetDeletedSamples { */ public static void deletedConfigurationStoresGet( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().getDeletedWithResponse("westus", "contoso", Context.NONE); + manager.configurationStores().getDeletedWithResponse("westus", "contoso", com.azure.core.util.Context.NONE); } } ``` @@ -199,8 +195,6 @@ public final class ConfigurationStoresGetDeletedSamples { ### ConfigurationStores_List ```java -import com.azure.core.util.Context; - /** Samples for ConfigurationStores List. */ public final class ConfigurationStoresListSamples { /* @@ -213,7 +207,7 @@ public final class ConfigurationStoresListSamples { */ public static void configurationStoresList( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().list(null, Context.NONE); + manager.configurationStores().list(null, com.azure.core.util.Context.NONE); } } ``` @@ -221,8 +215,6 @@ public final class ConfigurationStoresListSamples { ### ConfigurationStores_ListByResourceGroup ```java -import com.azure.core.util.Context; - /** Samples for ConfigurationStores ListByResourceGroup. */ public final class ConfigurationStoresListByResourceGroupSamples { /* @@ -235,7 +227,7 @@ public final class ConfigurationStoresListByResourceGroupSamples { */ public static void configurationStoresListByResourceGroup( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().listByResourceGroup("myResourceGroup", null, Context.NONE); + manager.configurationStores().listByResourceGroup("myResourceGroup", null, com.azure.core.util.Context.NONE); } } ``` @@ -243,8 +235,6 @@ public final class ConfigurationStoresListByResourceGroupSamples { ### ConfigurationStores_ListDeleted ```java -import com.azure.core.util.Context; - /** Samples for ConfigurationStores ListDeleted. */ public final class ConfigurationStoresListDeletedSamples { /* @@ -257,7 +247,7 @@ public final class ConfigurationStoresListDeletedSamples { */ public static void deletedConfigurationStoresList( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().listDeleted(Context.NONE); + manager.configurationStores().listDeleted(com.azure.core.util.Context.NONE); } } ``` @@ -265,8 +255,6 @@ public final class ConfigurationStoresListDeletedSamples { ### ConfigurationStores_ListKeys ```java -import com.azure.core.util.Context; - /** Samples for ConfigurationStores ListKeys. */ public final class ConfigurationStoresListKeysSamples { /* @@ -279,7 +267,7 @@ public final class ConfigurationStoresListKeysSamples { */ public static void configurationStoresListKeys( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().listKeys("myResourceGroup", "contoso", null, Context.NONE); + manager.configurationStores().listKeys("myResourceGroup", "contoso", null, com.azure.core.util.Context.NONE); } } ``` @@ -287,8 +275,6 @@ public final class ConfigurationStoresListKeysSamples { ### ConfigurationStores_PurgeDeleted ```java -import com.azure.core.util.Context; - /** Samples for ConfigurationStores PurgeDeleted. */ public final class ConfigurationStoresPurgeDeletedSamples { /* @@ -301,7 +287,7 @@ public final class ConfigurationStoresPurgeDeletedSamples { */ public static void purgeADeletedConfigurationStore( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().purgeDeleted("westus", "contoso", Context.NONE); + manager.configurationStores().purgeDeleted("westus", "contoso", com.azure.core.util.Context.NONE); } } ``` @@ -309,7 +295,6 @@ public final class ConfigurationStoresPurgeDeletedSamples { ### ConfigurationStores_RegenerateKey ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters; /** Samples for ConfigurationStores RegenerateKey. */ @@ -327,7 +312,10 @@ public final class ConfigurationStoresRegenerateKeySamples { manager .configurationStores() .regenerateKeyWithResponse( - "myResourceGroup", "contoso", new RegenerateKeyParameters().withId("439AD01B4BE67DB1"), Context.NONE); + "myResourceGroup", + "contoso", + new RegenerateKeyParameters().withId("439AD01B4BE67DB1"), + com.azure.core.util.Context.NONE); } } ``` @@ -335,7 +323,6 @@ public final class ConfigurationStoresRegenerateKeySamples { ### ConfigurationStores_Update ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.appconfiguration.models.ConfigurationStore; import com.azure.resourcemanager.appconfiguration.models.IdentityType; import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity; @@ -359,7 +346,7 @@ public final class ConfigurationStoresUpdateSamples { ConfigurationStore resource = manager .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE) + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) .getValue(); resource.update().withSku(new Sku().withName("Standard")).withDisableLocalAuth(true).apply(); } @@ -377,7 +364,7 @@ public final class ConfigurationStoresUpdateSamples { ConfigurationStore resource = manager .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE) + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("Category", "Marketing")).withSku(new Sku().withName("Standard")).apply(); } @@ -395,7 +382,7 @@ public final class ConfigurationStoresUpdateSamples { ConfigurationStore resource = manager .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE) + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) .getValue(); resource .update() @@ -467,8 +454,6 @@ public final class KeyValuesCreateOrUpdateSamples { ### KeyValues_Delete ```java -import com.azure.core.util.Context; - /** Samples for KeyValues Delete. */ public final class KeyValuesDeleteSamples { /* @@ -480,7 +465,7 @@ public final class KeyValuesDeleteSamples { * @param manager Entry point to AppConfigurationManager. */ public static void keyValuesDelete(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.keyValues().delete("myResourceGroup", "contoso", "myKey$myLabel", Context.NONE); + manager.keyValues().delete("myResourceGroup", "contoso", "myKey$myLabel", com.azure.core.util.Context.NONE); } } ``` @@ -488,8 +473,6 @@ public final class KeyValuesDeleteSamples { ### KeyValues_Get ```java -import com.azure.core.util.Context; - /** Samples for KeyValues Get. */ public final class KeyValuesGetSamples { /* @@ -501,29 +484,9 @@ public final class KeyValuesGetSamples { * @param manager Entry point to AppConfigurationManager. */ public static void keyValuesGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.keyValues().getWithResponse("myResourceGroup", "contoso", "myKey$myLabel", Context.NONE); - } -} -``` - -### KeyValues_ListByConfigurationStore - -```java -import com.azure.core.util.Context; - -/** Samples for KeyValues ListByConfigurationStore. */ -public final class KeyValuesListByConfigurationStoreSamples { - /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresListKeyValues.json - */ - /** - * Sample code: KeyValues_ListByConfigurationStore. - * - * @param manager Entry point to AppConfigurationManager. - */ - public static void keyValuesListByConfigurationStore( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.keyValues().listByConfigurationStore("myResourceGroup", "contoso", null, Context.NONE); + manager + .keyValues() + .getWithResponse("myResourceGroup", "contoso", "myKey$myLabel", com.azure.core.util.Context.NONE); } } ``` @@ -531,7 +494,6 @@ public final class KeyValuesListByConfigurationStoreSamples { ### Operations_CheckNameAvailability ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType; @@ -553,7 +515,7 @@ public final class OperationsCheckNameAvailabilitySamples { new CheckNameAvailabilityParameters() .withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -572,7 +534,26 @@ public final class OperationsCheckNameAvailabilitySamples { new CheckNameAvailabilityParameters() .withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), - Context.NONE); + com.azure.core.util.Context.NONE); + } +} +``` + +### Operations_List + +```java +/** Samples for Operations List. */ +public final class OperationsListSamples { + /* + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/OperationsList.json + */ + /** + * Sample code: Operations_List. + * + * @param manager Entry point to AppConfigurationManager. + */ + public static void operationsList(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.operations().list(null, com.azure.core.util.Context.NONE); } } ``` @@ -580,7 +561,6 @@ public final class OperationsCheckNameAvailabilitySamples { ### Operations_RegionalCheckNameAvailability ```java -import com.azure.core.util.Context; import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType; @@ -603,7 +583,7 @@ public final class OperationsRegionalCheckNameAvailabilitySamples { new CheckNameAvailabilityParameters() .withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -623,7 +603,7 @@ public final class OperationsRegionalCheckNameAvailabilitySamples { new CheckNameAvailabilityParameters() .withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), - Context.NONE); + com.azure.core.util.Context.NONE); } } ``` @@ -632,29 +612,33 @@ public final class OperationsRegionalCheckNameAvailabilitySamples { ```java import com.azure.resourcemanager.appconfiguration.models.ConnectionStatus; +import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnection; import com.azure.resourcemanager.appconfiguration.models.PrivateLinkServiceConnectionState; /** Samples for PrivateEndpointConnections CreateOrUpdate. */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresCreatePrivateEndpointConnection.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json */ /** - * Sample code: PrivateEndpointConnection_CreateOrUpdate. + * Sample code: PrivateEndpointConnection_Update. * * @param manager Entry point to AppConfigurationManager. */ - public static void privateEndpointConnectionCreateOrUpdate( + public static void privateEndpointConnectionUpdate( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateEndpointConnections() - .define("myConnection") - .withExistingConfigurationStore("myResourceGroup", "contoso") + PrivateEndpointConnection resource = + manager + .privateEndpointConnections() + .getWithResponse("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE) + .getValue(); + resource + .update() .withPrivateLinkServiceConnectionState( new PrivateLinkServiceConnectionState() .withStatus(ConnectionStatus.APPROVED) .withDescription("Auto-Approved")) - .create(); + .apply(); } } ``` @@ -662,8 +646,6 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { ### PrivateEndpointConnections_Delete ```java -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* @@ -676,7 +658,9 @@ public final class PrivateEndpointConnectionsDeleteSamples { */ public static void privateEndpointConnectionsDelete( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.privateEndpointConnections().delete("myResourceGroup", "contoso", "myConnection", Context.NONE); + manager + .privateEndpointConnections() + .delete("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE); } } ``` @@ -684,8 +668,6 @@ public final class PrivateEndpointConnectionsDeleteSamples { ### PrivateEndpointConnections_Get ```java -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* @@ -700,7 +682,7 @@ public final class PrivateEndpointConnectionsGetSamples { com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager .privateEndpointConnections() - .getWithResponse("myResourceGroup", "contoso", "myConnection", Context.NONE); + .getWithResponse("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE); } } ``` @@ -708,8 +690,6 @@ public final class PrivateEndpointConnectionsGetSamples { ### PrivateEndpointConnections_ListByConfigurationStore ```java -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections ListByConfigurationStore. */ public final class PrivateEndpointConnectionsListByConfigurationStoreSamples { /* @@ -722,7 +702,9 @@ public final class PrivateEndpointConnectionsListByConfigurationStoreSamples { */ public static void privateEndpointConnectionList( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.privateEndpointConnections().listByConfigurationStore("myResourceGroup", "contoso", Context.NONE); + manager + .privateEndpointConnections() + .listByConfigurationStore("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } ``` @@ -730,8 +712,6 @@ public final class PrivateEndpointConnectionsListByConfigurationStoreSamples { ### PrivateLinkResources_Get ```java -import com.azure.core.util.Context; - /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { /* @@ -746,7 +726,7 @@ public final class PrivateLinkResourcesGetSamples { com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager .privateLinkResources() - .getWithResponse("myResourceGroup", "contoso", "configurationStores", Context.NONE); + .getWithResponse("myResourceGroup", "contoso", "configurationStores", com.azure.core.util.Context.NONE); } } ``` @@ -754,8 +734,6 @@ public final class PrivateLinkResourcesGetSamples { ### PrivateLinkResources_ListByConfigurationStore ```java -import com.azure.core.util.Context; - /** Samples for PrivateLinkResources ListByConfigurationStore. */ public final class PrivateLinkResourcesListByConfigurationStoreSamples { /* @@ -768,7 +746,9 @@ public final class PrivateLinkResourcesListByConfigurationStoreSamples { */ public static void privateLinkResourcesListGroupIds( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.privateLinkResources().listByConfigurationStore("myResourceGroup", "contoso", Context.NONE); + manager + .privateLinkResources() + .listByConfigurationStore("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } ``` diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java index aab3326a05b45..bc0ef410c9627 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/AppConfigurationManager.java @@ -219,7 +219,7 @@ public AppConfigurationManager authenticate(TokenCredential credential, AzurePro .append("-") .append("com.azure.resourcemanager.appconfiguration") .append("/") - .append("1.0.0-beta.6"); + .append("1.0.0-beta.1"); if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) { userAgentBuilder .append(" (") diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java index 41e27f2d94058..cb4972b4e297a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/ConfigurationStoresClient.java @@ -78,28 +78,28 @@ PagedIterable listByResourceGroup( * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. + * @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 properties of the specified configuration store. + * @return the properties of the specified configuration store along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ConfigurationStoreInner getByResourceGroup(String resourceGroupName, String configStoreName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String configStoreName, Context context); /** * Gets the properties of the specified configuration store. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. - * @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 properties of the specified configuration store along with {@link Response}. + * @return the properties of the specified configuration store. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse( - String resourceGroupName, String configStoreName, Context context); + ConfigurationStoreInner getByResourceGroup(String resourceGroupName, String configStoreName); /** * Creates a configuration store with the specified parameters. @@ -330,14 +330,18 @@ PagedIterable listKeys( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access 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 an API key used for authenticating with a configuration store endpoint. + * @return an API key used for authenticating with a configuration store endpoint along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - ApiKeyInner regenerateKey( - String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters); + Response regenerateKeyWithResponse( + String resourceGroupName, + String configStoreName, + RegenerateKeyParameters regenerateKeyParameters, + Context context); /** * Regenerates an access key for the specified configuration store. @@ -345,18 +349,14 @@ ApiKeyInner regenerateKey( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access 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 an API key used for authenticating with a configuration store endpoint along with {@link Response}. + * @return an API key used for authenticating with a configuration store endpoint. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response regenerateKeyWithResponse( - String resourceGroupName, - String configStoreName, - RegenerateKeyParameters regenerateKeyParameters, - Context context); + ApiKeyInner regenerateKey( + String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters); /** * Gets information about the deleted configuration stores in a subscription. @@ -387,28 +387,28 @@ Response regenerateKeyWithResponse( * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a deleted Azure app configuration store. + * @return a deleted Azure app configuration store along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - DeletedConfigurationStoreInner getDeleted(String location, String configStoreName); + Response getDeletedWithResponse( + String location, String configStoreName, Context context); /** * Gets a deleted Azure app configuration store. * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a deleted Azure app configuration store along with {@link Response}. + * @return a deleted Azure app configuration store. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getDeletedWithResponse( - String location, String configStoreName, Context context); + DeletedConfigurationStoreInner getDeleted(String location, String configStoreName); /** * Permanently deletes the specified configuration store. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java index 5115374be5539..ac185501d864c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/KeyValuesClient.java @@ -6,7 +6,6 @@ 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; @@ -16,35 +15,21 @@ /** An instance of this class provides access to all the operations defined in KeyValuesClient. */ public interface KeyValuesClient { /** - * Lists the key-values for a given configuration store. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 result of a request to list key-values as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName); - - /** - * Lists the key-values for a given configuration store. + * Gets the properties of the specified key-value. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. - * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. + * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is + * optional. * @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 result of a request to list key-values as paginated response with {@link PagedIterable}. + * @return the properties of the specified key-value along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByConfigurationStore( - String resourceGroupName, String configStoreName, String skipToken, Context context); + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse( + String resourceGroupName, String configStoreName, String keyValueName, Context context); /** * Gets the properties of the specified key-value. @@ -62,21 +47,26 @@ PagedIterable listByConfigurationStore( KeyValueInner get(String resourceGroupName, String configStoreName, String keyValueName); /** - * Gets the properties of the specified key-value. + * Creates a key-value. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is * optional. + * @param keyValueParameters The parameters for creating a key-value. * @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 properties of the specified key-value along with {@link Response}. + * @return the key-value resource along with all resource properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String configStoreName, String keyValueName, Context context); + Response createOrUpdateWithResponse( + String resourceGroupName, + String configStoreName, + String keyValueName, + KeyValueInner keyValueParameters, + Context context); /** * Creates a key-value. @@ -93,28 +83,6 @@ Response getWithResponse( @ServiceMethod(returns = ReturnType.SINGLE) KeyValueInner createOrUpdate(String resourceGroupName, String configStoreName, String keyValueName); - /** - * Creates a key-value. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. - * @param keyValueParameters The parameters for creating a key-value. - * @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-value resource along with all resource properties along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response createOrUpdateWithResponse( - String resourceGroupName, - String configStoreName, - String keyValueName, - KeyValueInner keyValueParameters, - Context context); - /** * Deletes a key-value. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java index ce3f18ade2534..102a8a4ca2169 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/OperationsClient.java @@ -19,27 +19,27 @@ public interface OperationsClient { * Checks whether the configuration store name is available for use. * * @param checkNameAvailabilityParameters The object containing information for the availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name. + * @return the result of a request to check the availability of a resource name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - NameAvailabilityStatusInner checkNameAvailability(CheckNameAvailabilityParameters checkNameAvailabilityParameters); + Response checkNameAvailabilityWithResponse( + CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context); /** * Checks whether the configuration store name is available for use. * * @param checkNameAvailabilityParameters The object containing information for the availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name along with {@link Response}. + * @return the result of a request to check the availability of a resource name. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response checkNameAvailabilityWithResponse( - CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context); + NameAvailabilityStatusInner checkNameAvailability(CheckNameAvailabilityParameters checkNameAvailabilityParameters); /** * Lists the operations available from this provider. @@ -73,27 +73,27 @@ Response checkNameAvailabilityWithResponse( * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name. + * @return the result of a request to check the availability of a resource name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - NameAvailabilityStatusInner regionalCheckNameAvailability( - String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters); + Response regionalCheckNameAvailabilityWithResponse( + String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context); /** * Checks whether the configuration store name is available for use. * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name along with {@link Response}. + * @return the result of a request to check the availability of a resource name. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response regionalCheckNameAvailabilityWithResponse( - String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context); + NameAvailabilityStatusInner regionalCheckNameAvailability( + String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java index 72a18fcc3788a..0a92340eb6035 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateEndpointConnectionsClient.java @@ -50,14 +50,16 @@ PagedIterable listByConfigurationStore( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. + * @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 configuration store. + * @return the specified private endpoint connection associated with the configuration store along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionInner get( - String resourceGroupName, String configStoreName, String privateEndpointConnectionName); + Response getWithResponse( + String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context); /** * Gets the specified private endpoint connection associated with the configuration store. @@ -65,19 +67,19 @@ PrivateEndpointConnectionInner get( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. - * @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 configuration store along with {@link - * Response}. + * @return the specified private endpoint connection associated with the configuration store. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context); + PrivateEndpointConnectionInner get( + String resourceGroupName, String configStoreName, String privateEndpointConnectionName); /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -96,7 +98,9 @@ SyncPoller, PrivateEndpointConnection PrivateEndpointConnectionInner privateEndpointConnection); /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -117,7 +121,9 @@ SyncPoller, PrivateEndpointConnection Context context); /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -136,7 +142,9 @@ PrivateEndpointConnectionInner createOrUpdate( PrivateEndpointConnectionInner privateEndpointConnection); /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java index 6e7019935a2e8..c11541741e8a1 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/PrivateLinkResourcesClient.java @@ -49,13 +49,15 @@ PagedIterable listByConfigurationStore( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private link resource that need to be created for a configuration store. + * @return a private link resource that need to be created for a configuration store along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateLinkResourceInner get(String resourceGroupName, String configStoreName, String groupName); + Response getWithResponse( + String resourceGroupName, String configStoreName, String groupName, Context context); /** * Gets a private link resource that need to be created for a configuration store. @@ -63,13 +65,11 @@ PagedIterable listByConfigurationStore( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private link resource that need to be created for a configuration store along with {@link Response}. + * @return a private link resource that need to be created for a configuration store. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse( - String resourceGroupName, String configStoreName, String groupName, Context context); + PrivateLinkResourceInner get(String resourceGroupName, String configStoreName, String groupName); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java index f97010380cdc0..d5e7279b7b5fc 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ApiKeyInner.java @@ -30,8 +30,7 @@ public final class ApiKeyInner { private String value; /* - * A connection string that can be used by supporting clients for - * authentication. + * A connection string that can be used by supporting clients for authentication. */ @JsonProperty(value = "connectionString", access = JsonProperty.Access.WRITE_ONLY) private String connectionString; @@ -48,6 +47,10 @@ public final class ApiKeyInner { @JsonProperty(value = "readOnly", access = JsonProperty.Access.WRITE_ONLY) private Boolean readOnly; + /** Creates an instance of ApiKeyInner class. */ + public ApiKeyInner() { + } + /** * Get the id property: The key ID. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java index 1e346662e12a8..2888ffc9cbb11 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreInner.java @@ -50,6 +50,10 @@ public final class ConfigurationStoreInner extends Resource { @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY) private SystemData systemData; + /** Creates an instance of ConfigurationStoreInner class. */ + public ConfigurationStoreInner() { + } + /** * Get the identity property: The managed identity information, if configured. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java index e7f726b93e5a3..1a73d53100d53 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStoreProperties.java @@ -42,15 +42,13 @@ public final class ConfigurationStoreProperties { private EncryptionProperties encryption; /* - * The list of private endpoint connections that are set up for this - * resource. + * The list of private endpoint connections that are set up for this resource. */ @JsonProperty(value = "privateEndpointConnections", access = JsonProperty.Access.WRITE_ONLY) private List privateEndpointConnections; /* - * Control permission for data plane traffic coming from public networks - * while private endpoint is enabled. + * Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; @@ -62,15 +60,13 @@ public final class ConfigurationStoreProperties { private Boolean disableLocalAuth; /* - * The amount of time in days that the configuration store will be retained - * when it is soft deleted. + * The amount of time in days that the configuration store will be retained when it is soft deleted. */ @JsonProperty(value = "softDeleteRetentionInDays") private Integer softDeleteRetentionInDays; /* - * Property specifying whether protection against purge is enabled for this - * configuration store. + * Property specifying whether protection against purge is enabled for this configuration store. */ @JsonProperty(value = "enablePurgeProtection") private Boolean enablePurgeProtection; @@ -81,6 +77,10 @@ public final class ConfigurationStoreProperties { @JsonProperty(value = "createMode") private CreateMode createMode; + /** Creates an instance of ConfigurationStoreProperties class. */ + public ConfigurationStoreProperties() { + } + /** * Get the provisioningState property: The provisioning state of the configuration store. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java index 2809774b9b87d..2c9a7fe23dbf3 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/ConfigurationStorePropertiesUpdateParameters.java @@ -25,19 +25,21 @@ public final class ConfigurationStorePropertiesUpdateParameters { private Boolean disableLocalAuth; /* - * Control permission for data plane traffic coming from public networks - * while private endpoint is enabled. + * Control permission for data plane traffic coming from public networks while private endpoint is enabled. */ @JsonProperty(value = "publicNetworkAccess") private PublicNetworkAccess publicNetworkAccess; /* - * Property specifying whether protection against purge is enabled for this - * configuration store. + * Property specifying whether protection against purge is enabled for this configuration store. */ @JsonProperty(value = "enablePurgeProtection") private Boolean enablePurgeProtection; + /** Creates an instance of ConfigurationStorePropertiesUpdateParameters class. */ + public ConfigurationStorePropertiesUpdateParameters() { + } + /** * Get the encryption property: The encryption settings of the configuration store. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java index e50602a179dfc..a5b6218c397cf 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreInner.java @@ -4,13 +4,13 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; import java.time.OffsetDateTime; import java.util.Map; /** Deleted configuration store information with extended details. */ -@Fluent +@Immutable public final class DeletedConfigurationStoreInner { /* * The resource ID for the deleted configuration store. @@ -36,6 +36,10 @@ public final class DeletedConfigurationStoreInner { @JsonProperty(value = "properties") private DeletedConfigurationStoreProperties innerProperties; + /** Creates an instance of DeletedConfigurationStoreInner class. */ + public DeletedConfigurationStoreInner() { + } + /** * Get the id property: The resource ID for the deleted configuration store. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java index 24f185418e4f8..7bad42461fbdb 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/DeletedConfigurationStoreProperties.java @@ -50,6 +50,10 @@ public final class DeletedConfigurationStoreProperties { @JsonProperty(value = "purgeProtectionEnabled", access = JsonProperty.Access.WRITE_ONLY) private Boolean purgeProtectionEnabled; + /** Creates an instance of DeletedConfigurationStoreProperties class. */ + public DeletedConfigurationStoreProperties() { + } + /** * Get the configurationStoreId property: The resource id of the original configuration store. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java index e76c7987221c5..ed9138c2b7e19 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueInner.java @@ -19,6 +19,10 @@ public final class KeyValueInner extends ProxyResource { @JsonProperty(value = "properties") private KeyValueProperties innerProperties; + /** Creates an instance of KeyValueInner class. */ + public KeyValueInner() { + } + /** * Get the innerProperties property: All key-value properties. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java index 62d885476f2b3..3bce903610fdb 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/KeyValueProperties.java @@ -15,16 +15,14 @@ public final class KeyValueProperties { /* * The primary identifier of a key-value. - * The key is used in unison with the label to uniquely identify a - * key-value. + * The key is used in unison with the label to uniquely identify a key-value. */ @JsonProperty(value = "key", access = JsonProperty.Access.WRITE_ONLY) private String key; /* * A value used to group key-values. - * The label is used in unison with the key to uniquely identify a - * key-value. + * The label is used in unison with the key to uniquely identify a key-value. */ @JsonProperty(value = "label", access = JsonProperty.Access.WRITE_ONLY) private String label; @@ -37,22 +35,19 @@ public final class KeyValueProperties { /* * The content type of the key-value's value. - * Providing a proper content-type can enable transformations of values - * when they are retrieved by applications. + * Providing a proper content-type can enable transformations of values when they are retrieved by applications. */ @JsonProperty(value = "contentType") private String contentType; /* - * An ETag indicating the state of a key-value within a configuration - * store. + * An ETag indicating the state of a key-value within a configuration store. */ @JsonProperty(value = "eTag", access = JsonProperty.Access.WRITE_ONLY) private String etag; /* - * The last time a modifying operation was performed on the given - * key-value. + * The last time a modifying operation was performed on the given key-value. */ @JsonProperty(value = "lastModified", access = JsonProperty.Access.WRITE_ONLY) private OffsetDateTime lastModified; @@ -65,13 +60,16 @@ public final class KeyValueProperties { private Boolean locked; /* - * A dictionary of tags that can help identify what a key-value may be - * applicable for. + * A dictionary of tags that can help identify what a key-value may be applicable for. */ @JsonProperty(value = "tags") @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of KeyValueProperties class. */ + public KeyValueProperties() { + } + /** * Get the key property: The primary identifier of a key-value. The key is used in unison with the label to uniquely * identify a key-value. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java index 9f38acb515ad7..f2e029e3cc067 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/NameAvailabilityStatusInner.java @@ -17,8 +17,7 @@ public final class NameAvailabilityStatusInner { private Boolean nameAvailable; /* - * If any, the error message that provides more detail for the reason that - * the name is not available. + * If any, the error message that provides more detail for the reason that the name is not available. */ @JsonProperty(value = "message", access = JsonProperty.Access.WRITE_ONLY) private String message; @@ -29,6 +28,10 @@ public final class NameAvailabilityStatusInner { @JsonProperty(value = "reason", access = JsonProperty.Access.WRITE_ONLY) private String reason; + /** Creates an instance of NameAvailabilityStatusInner class. */ + public NameAvailabilityStatusInner() { + } + /** * Get the nameAvailable property: The value indicating whether the resource name is available. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java index 2721d615fbec7..13a1b553b42e0 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/OperationDefinitionInner.java @@ -42,6 +42,10 @@ public final class OperationDefinitionInner { @JsonProperty(value = "properties") private OperationProperties properties; + /** Creates an instance of OperationDefinitionInner class. */ + public OperationDefinitionInner() { + } + /** * Get the name property: Operation name: {provider}/{resource}/{operation}. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java index 02b775cd04f7e..479d27655917f 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionInner.java @@ -20,6 +20,10 @@ public final class PrivateEndpointConnectionInner extends ProxyResource { @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties innerProperties; + /** Creates an instance of PrivateEndpointConnectionInner class. */ + public PrivateEndpointConnectionInner() { + } + /** * Get the innerProperties property: The properties of a private endpoint. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java index c2db41e99fe0d..b2bd87f6b18ac 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateEndpointConnectionProperties.java @@ -27,12 +27,15 @@ public final class PrivateEndpointConnectionProperties { private PrivateEndpoint privateEndpoint; /* - * A collection of information about the state of the connection between - * service consumer and provider. + * A collection of information about the state of the connection between service consumer and provider. */ @JsonProperty(value = "privateLinkServiceConnectionState", required = true) private PrivateLinkServiceConnectionState privateLinkServiceConnectionState; + /** Creates an instance of PrivateEndpointConnectionProperties class. */ + public PrivateEndpointConnectionProperties() { + } + /** * Get the provisioningState property: The provisioning status of the private endpoint connection. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java index ad65c4811ddcc..7df32c9421853 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceInner.java @@ -4,12 +4,12 @@ package com.azure.resourcemanager.appconfiguration.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; /** A resource that supports private link capabilities. */ -@Fluent +@Immutable public final class PrivateLinkResourceInner { /* * The resource ID. @@ -35,6 +35,10 @@ public final class PrivateLinkResourceInner { @JsonProperty(value = "properties") private PrivateLinkResourceProperties innerProperties; + /** Creates an instance of PrivateLinkResourceInner class. */ + public PrivateLinkResourceInner() { + } + /** * Get the id property: The resource ID. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java index ad787bdb6154f..b51547cb4ab33 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/fluent/models/PrivateLinkResourceProperties.java @@ -29,6 +29,10 @@ public final class PrivateLinkResourceProperties { @JsonProperty(value = "requiredZoneNames", access = JsonProperty.Access.WRITE_ONLY) private List requiredZoneNames; + /** Creates an instance of PrivateLinkResourceProperties class. */ + public PrivateLinkResourceProperties() { + } + /** * Get the groupId property: The private link resource group id. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java index 234a26b9136f1..2feef4e71cc6d 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/AppConfigurationManagementClientBuilder.java @@ -119,24 +119,26 @@ public AppConfigurationManagementClientBuilder serializerAdapter(SerializerAdapt * @return an instance of AppConfigurationManagementClientImpl. */ public AppConfigurationManagementClientImpl 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(); - } + String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com"; + AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE; + HttpPipeline localPipeline = + (pipeline != null) + ? pipeline + : new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build(); + Duration localDefaultPollInterval = + (defaultPollInterval != null) ? defaultPollInterval : Duration.ofSeconds(30); + SerializerAdapter localSerializerAdapter = + (serializerAdapter != null) + ? serializerAdapter + : SerializerFactory.createDefaultManagementSerializerAdapter(); AppConfigurationManagementClientImpl client = new AppConfigurationManagementClientImpl( - pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint); + localPipeline, + localSerializerAdapter, + localDefaultPollInterval, + localEnvironment, + subscriptionId, + localEndpoint); return client; } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java index 414cc20935124..b13ff769dabd8 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoreImpl.java @@ -230,17 +230,17 @@ public PagedIterable listKeys(String skipToken, Context context) { return serviceManager.configurationStores().listKeys(resourceGroupName, configStoreName, skipToken, context); } - public ApiKey regenerateKey(RegenerateKeyParameters regenerateKeyParameters) { + public Response regenerateKeyWithResponse( + RegenerateKeyParameters regenerateKeyParameters, Context context) { return serviceManager .configurationStores() - .regenerateKey(resourceGroupName, configStoreName, regenerateKeyParameters); + .regenerateKeyWithResponse(resourceGroupName, configStoreName, regenerateKeyParameters, context); } - public Response regenerateKeyWithResponse( - RegenerateKeyParameters regenerateKeyParameters, Context context) { + public ApiKey regenerateKey(RegenerateKeyParameters regenerateKeyParameters) { return serviceManager .configurationStores() - .regenerateKeyWithResponse(resourceGroupName, configStoreName, regenerateKeyParameters, context); + .regenerateKey(resourceGroupName, configStoreName, regenerateKeyParameters); } public ConfigurationStoreImpl withRegion(Region location) { diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java index c7077165961e3..9cabb163c8726 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresClientImpl.java @@ -71,7 +71,7 @@ public final class ConfigurationStoresClientImpl implements ConfigurationStoresC */ @Host("{$host}") @ServiceInterface(name = "AppConfigurationMana") - private interface ConfigurationStoresService { + public interface ConfigurationStoresService { @Headers({"Content-Type: application/json"}) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/configurationStores") @ExpectedResponses({200}) @@ -772,14 +772,16 @@ private Mono getByResourceGroupAsync(String resourceGro * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the specified configuration store. + * @return the properties of the specified configuration store along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ConfigurationStoreInner getByResourceGroup(String resourceGroupName, String configStoreName) { - return getByResourceGroupAsync(resourceGroupName, configStoreName).block(); + public Response getByResourceGroupWithResponse( + String resourceGroupName, String configStoreName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, configStoreName, context).block(); } /** @@ -787,16 +789,14 @@ public ConfigurationStoreInner getByResourceGroup(String resourceGroupName, Stri * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the specified configuration store along with {@link Response}. + * @return the properties of the specified configuration store. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse( - String resourceGroupName, String configStoreName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, configStoreName, context).block(); + public ConfigurationStoreInner getByResourceGroup(String resourceGroupName, String configStoreName) { + return getByResourceGroupWithResponse(resourceGroupName, configStoreName, Context.NONE).getValue(); } /** @@ -991,7 +991,7 @@ private PollerFlux, ConfigurationStoreInner> @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, ConfigurationStoreInner> beginCreate( String resourceGroupName, String configStoreName, ConfigurationStoreInner configStoreCreationParameters) { - return beginCreateAsync(resourceGroupName, configStoreName, configStoreCreationParameters).getSyncPoller(); + return this.beginCreateAsync(resourceGroupName, configStoreName, configStoreCreationParameters).getSyncPoller(); } /** @@ -1012,7 +1012,8 @@ public SyncPoller, ConfigurationStoreInner> String configStoreName, ConfigurationStoreInner configStoreCreationParameters, Context context) { - return beginCreateAsync(resourceGroupName, configStoreName, configStoreCreationParameters, context) + return this + .beginCreateAsync(resourceGroupName, configStoreName, configStoreCreationParameters, context) .getSyncPoller(); } @@ -1243,7 +1244,7 @@ private PollerFlux, Void> beginDeleteAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String configStoreName) { - return beginDeleteAsync(resourceGroupName, configStoreName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, configStoreName).getSyncPoller(); } /** @@ -1260,7 +1261,7 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String configStoreName, Context context) { - return beginDeleteAsync(resourceGroupName, configStoreName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, configStoreName, context).getSyncPoller(); } /** @@ -1525,7 +1526,7 @@ public SyncPoller, ConfigurationStoreInner> String resourceGroupName, String configStoreName, ConfigurationStoreUpdateParameters configStoreUpdateParameters) { - return beginUpdateAsync(resourceGroupName, configStoreName, configStoreUpdateParameters).getSyncPoller(); + return this.beginUpdateAsync(resourceGroupName, configStoreName, configStoreUpdateParameters).getSyncPoller(); } /** @@ -1546,7 +1547,8 @@ public SyncPoller, ConfigurationStoreInner> String configStoreName, ConfigurationStoreUpdateParameters configStoreUpdateParameters, Context context) { - return beginUpdateAsync(resourceGroupName, configStoreName, configStoreUpdateParameters, context) + return this + .beginUpdateAsync(resourceGroupName, configStoreName, configStoreUpdateParameters, context) .getSyncPoller(); } @@ -1998,15 +2000,20 @@ private Mono regenerateKeyAsync( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access key. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an API key used for authenticating with a configuration store endpoint. + * @return an API key used for authenticating with a configuration store endpoint along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ApiKeyInner regenerateKey( - String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters) { - return regenerateKeyAsync(resourceGroupName, configStoreName, regenerateKeyParameters).block(); + public Response regenerateKeyWithResponse( + String resourceGroupName, + String configStoreName, + RegenerateKeyParameters regenerateKeyParameters, + Context context) { + return regenerateKeyWithResponseAsync(resourceGroupName, configStoreName, regenerateKeyParameters, context) + .block(); } /** @@ -2015,20 +2022,16 @@ public ApiKeyInner regenerateKey( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access key. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return an API key used for authenticating with a configuration store endpoint along with {@link Response}. + * @return an API key used for authenticating with a configuration store endpoint. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response regenerateKeyWithResponse( - String resourceGroupName, - String configStoreName, - RegenerateKeyParameters regenerateKeyParameters, - Context context) { - return regenerateKeyWithResponseAsync(resourceGroupName, configStoreName, regenerateKeyParameters, context) - .block(); + public ApiKeyInner regenerateKey( + String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters) { + return regenerateKeyWithResponse(resourceGroupName, configStoreName, regenerateKeyParameters, Context.NONE) + .getValue(); } /** @@ -2294,14 +2297,16 @@ private Mono getDeletedAsync(String location, St * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a deleted Azure app configuration store. + * @return a deleted Azure app configuration store along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public DeletedConfigurationStoreInner getDeleted(String location, String configStoreName) { - return getDeletedAsync(location, configStoreName).block(); + public Response getDeletedWithResponse( + String location, String configStoreName, Context context) { + return getDeletedWithResponseAsync(location, configStoreName, context).block(); } /** @@ -2309,16 +2314,14 @@ public DeletedConfigurationStoreInner getDeleted(String location, String configS * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a deleted Azure app configuration store along with {@link Response}. + * @return a deleted Azure app configuration store. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getDeletedWithResponse( - String location, String configStoreName, Context context) { - return getDeletedWithResponseAsync(location, configStoreName, context).block(); + public DeletedConfigurationStoreInner getDeleted(String location, String configStoreName) { + return getDeletedWithResponse(location, configStoreName, Context.NONE).getValue(); } /** @@ -2466,7 +2469,7 @@ private PollerFlux, Void> beginPurgeDeletedAsync( */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginPurgeDeleted(String location, String configStoreName) { - return beginPurgeDeletedAsync(location, configStoreName).getSyncPoller(); + return this.beginPurgeDeletedAsync(location, configStoreName).getSyncPoller(); } /** @@ -2483,7 +2486,7 @@ public SyncPoller, Void> beginPurgeDeleted(String location, Str @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginPurgeDeleted( String location, String configStoreName, Context context) { - return beginPurgeDeletedAsync(location, configStoreName, context).getSyncPoller(); + return this.beginPurgeDeletedAsync(location, configStoreName, context).getSyncPoller(); } /** @@ -2551,7 +2554,8 @@ public void purgeDeleted(String location, String configStoreName, Context contex /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2587,7 +2591,8 @@ private Mono> listNextSinglePageAsync(Str /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2624,7 +2629,8 @@ private Mono> listNextSinglePageAsync(Str /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2661,7 +2667,8 @@ private Mono> listByResourceGroupNextSing /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2699,7 +2706,8 @@ private Mono> listByResourceGroupNextSing /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2735,7 +2743,8 @@ private Mono> listKeysNextSinglePageAsync(String next /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. @@ -2772,7 +2781,8 @@ private Mono> listKeysNextSinglePageAsync(String next /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -2808,7 +2818,8 @@ private Mono> listDeletedNextSingl /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java index f284e5e84a75d..ce41fa377799b 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/ConfigurationStoresImpl.java @@ -55,15 +55,6 @@ public PagedIterable listByResourceGroup( return Utils.mapPage(inner, inner1 -> new ConfigurationStoreImpl(inner1, this.manager())); } - public ConfigurationStore getByResourceGroup(String resourceGroupName, String configStoreName) { - ConfigurationStoreInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, configStoreName); - if (inner != null) { - return new ConfigurationStoreImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getByResourceGroupWithResponse( String resourceGroupName, String configStoreName, Context context) { Response inner = @@ -79,6 +70,15 @@ public Response getByResourceGroupWithResponse( } } + public ConfigurationStore getByResourceGroup(String resourceGroupName, String configStoreName) { + ConfigurationStoreInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, configStoreName); + if (inner != null) { + return new ConfigurationStoreImpl(inner, this.manager()); + } else { + return null; + } + } + public void deleteByResourceGroup(String resourceGroupName, String configStoreName) { this.serviceClient().delete(resourceGroupName, configStoreName); } @@ -99,17 +99,6 @@ public PagedIterable listKeys( return Utils.mapPage(inner, inner1 -> new ApiKeyImpl(inner1, this.manager())); } - public ApiKey regenerateKey( - String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters) { - ApiKeyInner inner = - this.serviceClient().regenerateKey(resourceGroupName, configStoreName, regenerateKeyParameters); - if (inner != null) { - return new ApiKeyImpl(inner, this.manager()); - } else { - return null; - } - } - public Response regenerateKeyWithResponse( String resourceGroupName, String configStoreName, @@ -130,6 +119,17 @@ public Response regenerateKeyWithResponse( } } + public ApiKey regenerateKey( + String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters) { + ApiKeyInner inner = + this.serviceClient().regenerateKey(resourceGroupName, configStoreName, regenerateKeyParameters); + if (inner != null) { + return new ApiKeyImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable listDeleted() { PagedIterable inner = this.serviceClient().listDeleted(); return Utils.mapPage(inner, inner1 -> new DeletedConfigurationStoreImpl(inner1, this.manager())); @@ -140,15 +140,6 @@ public PagedIterable listDeleted(Context context) { return Utils.mapPage(inner, inner1 -> new DeletedConfigurationStoreImpl(inner1, this.manager())); } - public DeletedConfigurationStore getDeleted(String location, String configStoreName) { - DeletedConfigurationStoreInner inner = this.serviceClient().getDeleted(location, configStoreName); - if (inner != null) { - return new DeletedConfigurationStoreImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getDeletedWithResponse( String location, String configStoreName, Context context) { Response inner = @@ -164,6 +155,15 @@ public Response getDeletedWithResponse( } } + public DeletedConfigurationStore getDeleted(String location, String configStoreName) { + DeletedConfigurationStoreInner inner = this.serviceClient().getDeleted(location, configStoreName); + if (inner != null) { + return new DeletedConfigurationStoreImpl(inner, this.manager()); + } else { + return null; + } + } + public void purgeDeleted(String location, String configStoreName) { this.serviceClient().purgeDeleted(location, configStoreName); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java index 3d1438d30a15e..20b77f76b5925 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesClientImpl.java @@ -19,10 +19,6 @@ import com.azure.core.annotation.ServiceInterface; import com.azure.core.annotation.ServiceMethod; import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; @@ -33,7 +29,6 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.appconfiguration.fluent.KeyValuesClient; import com.azure.resourcemanager.appconfiguration.fluent.models.KeyValueInner; -import com.azure.resourcemanager.appconfiguration.models.KeyValueListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -63,23 +58,7 @@ public final class KeyValuesClientImpl implements KeyValuesClient { */ @Host("{$host}") @ServiceInterface(name = "AppConfigurationMana") - private interface KeyValuesService { - @Headers({"Content-Type: application/json"}) - @Get( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration" - + "/configurationStores/{configStoreName}/keyValues") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByConfigurationStore( - @HostParam("$host") String endpoint, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("configStoreName") String configStoreName, - @QueryParam("api-version") String apiVersion, - @QueryParam("$skipToken") String skipToken, - @HeaderParam("Accept") String accept, - Context context); - + public interface KeyValuesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration" @@ -128,238 +107,6 @@ Mono>> delete( @PathParam("keyValueName") String keyValueName, @HeaderParam("Accept") String accept, Context context); - - @Headers({"Content-Type: application/json"}) - @Get("{nextLink}") - @ExpectedResponses({200}) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByConfigurationStoreNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, - @HostParam("$host") String endpoint, - @HeaderParam("Accept") String accept, - Context context); - } - - /** - * Lists the key-values for a given configuration store. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list key-values along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByConfigurationStoreSinglePageAsync( - String resourceGroupName, String configStoreName, String skipToken) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (configStoreName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configStoreName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> - service - .listByConfigurationStore( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - configStoreName, - this.client.getApiVersion(), - skipToken, - accept, - context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists the key-values for a given configuration store. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list key-values along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByConfigurationStoreSinglePageAsync( - String resourceGroupName, String configStoreName, String skipToken, Context context) { - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (configStoreName == null) { - return Mono - .error(new IllegalArgumentException("Parameter configStoreName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByConfigurationStore( - this.client.getEndpoint(), - this.client.getSubscriptionId(), - resourceGroupName, - configStoreName, - this.client.getApiVersion(), - skipToken, - accept, - context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } - - /** - * Lists the key-values for a given configuration store. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list key-values as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByConfigurationStoreAsync( - String resourceGroupName, String configStoreName, String skipToken) { - return new PagedFlux<>( - () -> listByConfigurationStoreSinglePageAsync(resourceGroupName, configStoreName, skipToken), - nextLink -> listByConfigurationStoreNextSinglePageAsync(nextLink)); - } - - /** - * Lists the key-values for a given configuration store. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list key-values as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByConfigurationStoreAsync(String resourceGroupName, String configStoreName) { - final String skipToken = null; - return new PagedFlux<>( - () -> listByConfigurationStoreSinglePageAsync(resourceGroupName, configStoreName, skipToken), - nextLink -> listByConfigurationStoreNextSinglePageAsync(nextLink)); - } - - /** - * Lists the key-values for a given configuration store. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list key-values as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByConfigurationStoreAsync( - String resourceGroupName, String configStoreName, String skipToken, Context context) { - return new PagedFlux<>( - () -> listByConfigurationStoreSinglePageAsync(resourceGroupName, configStoreName, skipToken, context), - nextLink -> listByConfigurationStoreNextSinglePageAsync(nextLink, context)); - } - - /** - * Lists the key-values for a given configuration store. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list key-values as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName) { - final String skipToken = null; - return new PagedIterable<>(listByConfigurationStoreAsync(resourceGroupName, configStoreName, skipToken)); - } - - /** - * Lists the key-values for a given configuration store. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list key-values as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByConfigurationStore( - String resourceGroupName, String configStoreName, String skipToken, Context context) { - return new PagedIterable<>( - listByConfigurationStoreAsync(resourceGroupName, configStoreName, skipToken, context)); } /** @@ -497,14 +244,16 @@ private Mono getAsync(String resourceGroupName, String configStor * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is * optional. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the specified key-value. + * @return the properties of the specified key-value along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public KeyValueInner get(String resourceGroupName, String configStoreName, String keyValueName) { - return getAsync(resourceGroupName, configStoreName, keyValueName).block(); + public Response getWithResponse( + String resourceGroupName, String configStoreName, String keyValueName, Context context) { + return getWithResponseAsync(resourceGroupName, configStoreName, keyValueName, context).block(); } /** @@ -514,16 +263,14 @@ public KeyValueInner get(String resourceGroupName, String configStoreName, Strin * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is * optional. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the properties of the specified key-value along with {@link Response}. + * @return the properties of the specified key-value. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String configStoreName, String keyValueName, Context context) { - return getWithResponseAsync(resourceGroupName, configStoreName, keyValueName, context).block(); + public KeyValueInner get(String resourceGroupName, String configStoreName, String keyValueName) { + return getWithResponse(resourceGroupName, configStoreName, keyValueName, Context.NONE).getValue(); } /** @@ -657,7 +404,6 @@ private Mono> createOrUpdateWithResponseAsync( * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is * optional. - * @param keyValueParameters The parameters for creating a key-value. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -665,7 +411,8 @@ private Mono> createOrUpdateWithResponseAsync( */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono createOrUpdateAsync( - String resourceGroupName, String configStoreName, String keyValueName, KeyValueInner keyValueParameters) { + String resourceGroupName, String configStoreName, String keyValueName) { + final KeyValueInner keyValueParameters = null; return createOrUpdateWithResponseAsync(resourceGroupName, configStoreName, keyValueName, keyValueParameters) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -677,17 +424,23 @@ private Mono createOrUpdateAsync( * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is * optional. + * @param keyValueParameters The parameters for creating a key-value. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the key-value resource along with all resource properties on successful completion of {@link Mono}. + * @return the key-value resource along with all resource properties along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync( - String resourceGroupName, String configStoreName, String keyValueName) { - final KeyValueInner keyValueParameters = null; - return createOrUpdateWithResponseAsync(resourceGroupName, configStoreName, keyValueName, keyValueParameters) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Response createOrUpdateWithResponse( + String resourceGroupName, + String configStoreName, + String keyValueName, + KeyValueInner keyValueParameters, + Context context) { + return createOrUpdateWithResponseAsync( + resourceGroupName, configStoreName, keyValueName, keyValueParameters, context) + .block(); } /** @@ -705,33 +458,9 @@ private Mono createOrUpdateAsync( @ServiceMethod(returns = ReturnType.SINGLE) public KeyValueInner createOrUpdate(String resourceGroupName, String configStoreName, String keyValueName) { final KeyValueInner keyValueParameters = null; - return createOrUpdateAsync(resourceGroupName, configStoreName, keyValueName, keyValueParameters).block(); - } - - /** - * Creates a key-value. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is - * optional. - * @param keyValueParameters The parameters for creating a key-value. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the key-value resource along with all resource properties along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response createOrUpdateWithResponse( - String resourceGroupName, - String configStoreName, - String keyValueName, - KeyValueInner keyValueParameters, - Context context) { - return createOrUpdateWithResponseAsync( - resourceGroupName, configStoreName, keyValueName, keyValueParameters, context) - .block(); + return createOrUpdateWithResponse( + resourceGroupName, configStoreName, keyValueName, keyValueParameters, Context.NONE) + .getValue(); } /** @@ -904,7 +633,7 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String configStoreName, String keyValueName) { - return beginDeleteAsync(resourceGroupName, configStoreName, keyValueName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, configStoreName, keyValueName).getSyncPoller(); } /** @@ -923,7 +652,7 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String configStoreName, String keyValueName, Context context) { - return beginDeleteAsync(resourceGroupName, configStoreName, keyValueName, context).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, configStoreName, keyValueName, context).getSyncPoller(); } /** @@ -998,79 +727,4 @@ public void delete(String resourceGroupName, String configStoreName, String keyV public void delete(String resourceGroupName, String configStoreName, String keyValueName, Context context) { deleteAsync(resourceGroupName, configStoreName, keyValueName, context).block(); } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list key-values along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByConfigurationStoreNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByConfigurationStoreNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The nextLink parameter. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to list key-values along with {@link PagedResponse} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByConfigurationStoreNextSinglePageAsync( - String nextLink, Context context) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono - .error( - new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByConfigurationStoreNext(nextLink, this.client.getEndpoint(), accept, context) - .map( - res -> - new PagedResponseBase<>( - res.getRequest(), - res.getStatusCode(), - res.getHeaders(), - res.getValue().value(), - res.getValue().nextLink(), - null)); - } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java index 021d2161b0d4f..bd01280881e95 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/KeyValuesImpl.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.appconfiguration.implementation; -import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; @@ -28,28 +27,6 @@ public KeyValuesImpl( this.serviceManager = serviceManager; } - public PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName) { - PagedIterable inner = - this.serviceClient().listByConfigurationStore(resourceGroupName, configStoreName); - return Utils.mapPage(inner, inner1 -> new KeyValueImpl(inner1, this.manager())); - } - - public PagedIterable listByConfigurationStore( - String resourceGroupName, String configStoreName, String skipToken, Context context) { - PagedIterable inner = - this.serviceClient().listByConfigurationStore(resourceGroupName, configStoreName, skipToken, context); - return Utils.mapPage(inner, inner1 -> new KeyValueImpl(inner1, this.manager())); - } - - public KeyValue get(String resourceGroupName, String configStoreName, String keyValueName) { - KeyValueInner inner = this.serviceClient().get(resourceGroupName, configStoreName, keyValueName); - if (inner != null) { - return new KeyValueImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String configStoreName, String keyValueName, Context context) { Response inner = @@ -65,6 +42,15 @@ public Response getWithResponse( } } + public KeyValue get(String resourceGroupName, String configStoreName, String keyValueName) { + KeyValueInner inner = this.serviceClient().get(resourceGroupName, configStoreName, keyValueName); + if (inner != null) { + return new KeyValueImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String configStoreName, String keyValueName) { this.serviceClient().delete(resourceGroupName, configStoreName, keyValueName); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java index 0090ad809a96a..4d51b638532f8 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsClientImpl.java @@ -59,7 +59,7 @@ public final class OperationsClientImpl implements OperationsClient { */ @Host("{$host}") @ServiceInterface(name = "AppConfigurationMana") - private interface OperationsService { + public interface OperationsService { @Headers({"Content-Type: application/json"}) @Post("/subscriptions/{subscriptionId}/providers/Microsoft.AppConfiguration/checkNameAvailability") @ExpectedResponses({200}) @@ -224,31 +224,31 @@ private Mono checkNameAvailabilityAsync( * Checks whether the configuration store name is available for use. * * @param checkNameAvailabilityParameters The object containing information for the availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name. + * @return the result of a request to check the availability of a resource name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NameAvailabilityStatusInner checkNameAvailability( - CheckNameAvailabilityParameters checkNameAvailabilityParameters) { - return checkNameAvailabilityAsync(checkNameAvailabilityParameters).block(); + public Response checkNameAvailabilityWithResponse( + CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) { + return checkNameAvailabilityWithResponseAsync(checkNameAvailabilityParameters, context).block(); } /** * Checks whether the configuration store name is available for use. * * @param checkNameAvailabilityParameters The object containing information for the availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name along with {@link Response}. + * @return the result of a request to check the availability of a resource name. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkNameAvailabilityWithResponse( - CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) { - return checkNameAvailabilityWithResponseAsync(checkNameAvailabilityParameters, context).block(); + public NameAvailabilityStatusInner checkNameAvailability( + CheckNameAvailabilityParameters checkNameAvailabilityParameters) { + return checkNameAvailabilityWithResponse(checkNameAvailabilityParameters, Context.NONE).getValue(); } /** @@ -533,15 +533,17 @@ private Mono regionalCheckNameAvailabilityAsync( * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name. + * @return the result of a request to check the availability of a resource name along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public NameAvailabilityStatusInner regionalCheckNameAvailability( - String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters) { - return regionalCheckNameAvailabilityAsync(location, checkNameAvailabilityParameters).block(); + public Response regionalCheckNameAvailabilityWithResponse( + String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) { + return regionalCheckNameAvailabilityWithResponseAsync(location, checkNameAvailabilityParameters, context) + .block(); } /** @@ -549,23 +551,23 @@ public NameAvailabilityStatusInner regionalCheckNameAvailability( * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name along with {@link Response}. + * @return the result of a request to check the availability of a resource name. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response regionalCheckNameAvailabilityWithResponse( - String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) { - return regionalCheckNameAvailabilityWithResponseAsync(location, checkNameAvailabilityParameters, context) - .block(); + public NameAvailabilityStatusInner regionalCheckNameAvailability( + String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters) { + return regionalCheckNameAvailabilityWithResponse(location, checkNameAvailabilityParameters, Context.NONE) + .getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -601,7 +603,8 @@ private Mono> listNextSinglePageAsync(St /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java index 6019c87cead45..3515cb0b44d5a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/OperationsImpl.java @@ -31,16 +31,6 @@ public OperationsImpl( this.serviceManager = serviceManager; } - public NameAvailabilityStatus checkNameAvailability( - CheckNameAvailabilityParameters checkNameAvailabilityParameters) { - NameAvailabilityStatusInner inner = this.serviceClient().checkNameAvailability(checkNameAvailabilityParameters); - if (inner != null) { - return new NameAvailabilityStatusImpl(inner, this.manager()); - } else { - return null; - } - } - public Response checkNameAvailabilityWithResponse( CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) { Response inner = @@ -56,6 +46,16 @@ public Response checkNameAvailabilityWithResponse( } } + public NameAvailabilityStatus checkNameAvailability( + CheckNameAvailabilityParameters checkNameAvailabilityParameters) { + NameAvailabilityStatusInner inner = this.serviceClient().checkNameAvailability(checkNameAvailabilityParameters); + if (inner != null) { + return new NameAvailabilityStatusImpl(inner, this.manager()); + } else { + return null; + } + } + public PagedIterable list() { PagedIterable inner = this.serviceClient().list(); return Utils.mapPage(inner, inner1 -> new OperationDefinitionImpl(inner1, this.manager())); @@ -66,17 +66,6 @@ public PagedIterable list(String skipToken, Context context return Utils.mapPage(inner, inner1 -> new OperationDefinitionImpl(inner1, this.manager())); } - public NameAvailabilityStatus regionalCheckNameAvailability( - String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters) { - NameAvailabilityStatusInner inner = - this.serviceClient().regionalCheckNameAvailability(location, checkNameAvailabilityParameters); - if (inner != null) { - return new NameAvailabilityStatusImpl(inner, this.manager()); - } else { - return null; - } - } - public Response regionalCheckNameAvailabilityWithResponse( String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context) { Response inner = @@ -94,6 +83,17 @@ public Response regionalCheckNameAvailabilityWithRespons } } + public NameAvailabilityStatus regionalCheckNameAvailability( + String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters) { + NameAvailabilityStatusInner inner = + this.serviceClient().regionalCheckNameAvailability(location, checkNameAvailabilityParameters); + if (inner != null) { + return new NameAvailabilityStatusImpl(inner, this.manager()); + } else { + return null; + } + } + private OperationsClient serviceClient() { return this.innerClient; } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java index 3c619651955ec..a0d39044cbc30 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsClientImpl.java @@ -65,7 +65,7 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi */ @Host("{$host}") @ServiceInterface(name = "AppConfigurationMana") - private interface PrivateEndpointConnectionsService { + public interface PrivateEndpointConnectionsService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration" @@ -466,15 +466,17 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the configuration store. + * @return the specified private endpoint connection associated with the configuration store along with {@link + * Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionInner get( - String resourceGroupName, String configStoreName, String privateEndpointConnectionName) { - return getAsync(resourceGroupName, configStoreName, privateEndpointConnectionName).block(); + public Response getWithResponse( + String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context) { + return getWithResponseAsync(resourceGroupName, configStoreName, privateEndpointConnectionName, context).block(); } /** @@ -483,21 +485,22 @@ public PrivateEndpointConnectionInner get( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the specified private endpoint connection associated with the configuration store along with {@link - * Response}. + * @return the specified private endpoint connection associated with the configuration store. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context) { - return getWithResponseAsync(resourceGroupName, configStoreName, privateEndpointConnectionName, context).block(); + public PrivateEndpointConnectionInner get( + String resourceGroupName, String configStoreName, String privateEndpointConnectionName) { + return getWithResponse(resourceGroupName, configStoreName, privateEndpointConnectionName, Context.NONE) + .getValue(); } /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -567,7 +570,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -636,7 +641,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -668,7 +675,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -703,7 +712,9 @@ private Mono>> createOrUpdateWithResponseAsync( } /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -720,13 +731,16 @@ public SyncPoller, PrivateEndpointCon String configStoreName, String privateEndpointConnectionName, PrivateEndpointConnectionInner privateEndpointConnection) { - return beginCreateOrUpdateAsync( + return this + .beginCreateOrUpdateAsync( resourceGroupName, configStoreName, privateEndpointConnectionName, privateEndpointConnection) .getSyncPoller(); } /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -745,13 +759,16 @@ public SyncPoller, PrivateEndpointCon String privateEndpointConnectionName, PrivateEndpointConnectionInner privateEndpointConnection, Context context) { - return beginCreateOrUpdateAsync( + return this + .beginCreateOrUpdateAsync( resourceGroupName, configStoreName, privateEndpointConnectionName, privateEndpointConnection, context) .getSyncPoller(); } /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -775,7 +792,9 @@ private Mono createOrUpdateAsync( } /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -801,7 +820,9 @@ private Mono createOrUpdateAsync( } /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -824,7 +845,9 @@ public PrivateEndpointConnectionInner createOrUpdate( } /** - * Update the state of the specified private endpoint connection associated with the configuration store. + * Update the state of the specified private endpoint connection associated with the configuration store. This + * operation cannot be used to create a private endpoint connection. Private endpoint connections must be created + * with the Network resource provider. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. @@ -1019,7 +1042,7 @@ private PollerFlux, Void> beginDeleteAsync( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String configStoreName, String privateEndpointConnectionName) { - return beginDeleteAsync(resourceGroupName, configStoreName, privateEndpointConnectionName).getSyncPoller(); + return this.beginDeleteAsync(resourceGroupName, configStoreName, privateEndpointConnectionName).getSyncPoller(); } /** @@ -1037,7 +1060,8 @@ public SyncPoller, Void> beginDelete( @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete( String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context) { - return beginDeleteAsync(resourceGroupName, configStoreName, privateEndpointConnectionName, context) + return this + .beginDeleteAsync(resourceGroupName, configStoreName, privateEndpointConnectionName, context) .getSyncPoller(); } @@ -1115,7 +1139,8 @@ public void delete( /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -1153,7 +1178,8 @@ private Mono> listByConfigurationS /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java index eb33acc0dd365..7b752de63afcb 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateEndpointConnectionsImpl.java @@ -42,17 +42,6 @@ public PagedIterable listByConfigurationStore( return Utils.mapPage(inner, inner1 -> new PrivateEndpointConnectionImpl(inner1, this.manager())); } - public PrivateEndpointConnection get( - String resourceGroupName, String configStoreName, String privateEndpointConnectionName) { - PrivateEndpointConnectionInner inner = - this.serviceClient().get(resourceGroupName, configStoreName, privateEndpointConnectionName); - if (inner != null) { - return new PrivateEndpointConnectionImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context) { Response inner = @@ -70,6 +59,17 @@ public Response getWithResponse( } } + public PrivateEndpointConnection get( + String resourceGroupName, String configStoreName, String privateEndpointConnectionName) { + PrivateEndpointConnectionInner inner = + this.serviceClient().get(resourceGroupName, configStoreName, privateEndpointConnectionName); + if (inner != null) { + return new PrivateEndpointConnectionImpl(inner, this.manager()); + } else { + return null; + } + } + public void delete(String resourceGroupName, String configStoreName, String privateEndpointConnectionName) { this.serviceClient().delete(resourceGroupName, configStoreName, privateEndpointConnectionName); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java index 14640ff3a36f6..2d255cf8f6d1e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesClientImpl.java @@ -56,7 +56,7 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource */ @Host("{$host}") @ServiceInterface(name = "AppConfigurationMana") - private interface PrivateLinkResourcesService { + public interface PrivateLinkResourcesService { @Headers({"Content-Type: application/json"}) @Get( "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration" @@ -422,14 +422,16 @@ private Mono getAsync( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private link resource that need to be created for a configuration store. + * @return a private link resource that need to be created for a configuration store along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateLinkResourceInner get(String resourceGroupName, String configStoreName, String groupName) { - return getAsync(resourceGroupName, configStoreName, groupName).block(); + public Response getWithResponse( + String resourceGroupName, String configStoreName, String groupName, Context context) { + return getWithResponseAsync(resourceGroupName, configStoreName, groupName, context).block(); } /** @@ -438,22 +440,21 @@ public PrivateLinkResourceInner get(String resourceGroupName, String configStore * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private link resource that need to be created for a configuration store along with {@link Response}. + * @return a private link resource that need to be created for a configuration store. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse( - String resourceGroupName, String configStoreName, String groupName, Context context) { - return getWithResponseAsync(resourceGroupName, configStoreName, groupName, context).block(); + public PrivateLinkResourceInner get(String resourceGroupName, String configStoreName, String groupName) { + return getWithResponse(resourceGroupName, configStoreName, groupName, Context.NONE).getValue(); } /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. @@ -490,7 +491,8 @@ private Mono> listByConfigurationStoreNe /** * Get the next page of items. * - * @param nextLink The nextLink parameter. + * @param nextLink The URL to get the next list of items + *

The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java index 6c41a2190be8d..df0cb29750eea 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/implementation/PrivateLinkResourcesImpl.java @@ -42,15 +42,6 @@ public PagedIterable listByConfigurationStore( return Utils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); } - public PrivateLinkResource get(String resourceGroupName, String configStoreName, String groupName) { - PrivateLinkResourceInner inner = this.serviceClient().get(resourceGroupName, configStoreName, groupName); - if (inner != null) { - return new PrivateLinkResourceImpl(inner, this.manager()); - } else { - return null; - } - } - public Response getWithResponse( String resourceGroupName, String configStoreName, String groupName, Context context) { Response inner = @@ -66,6 +57,15 @@ public Response getWithResponse( } } + public PrivateLinkResource get(String resourceGroupName, String configStoreName, String groupName) { + PrivateLinkResourceInner inner = this.serviceClient().get(resourceGroupName, configStoreName, groupName); + if (inner != null) { + return new PrivateLinkResourceImpl(inner, this.manager()); + } else { + return null; + } + } + private PrivateLinkResourcesClient serviceClient() { return this.innerClient; } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java index 8aa0e839a7241..d5c22ce64f3c1 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ActionsRequired.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ActionsRequired. */ +/** Any action that is required beyond basic workflow (approve/ reject/ disconnect). */ public final class ActionsRequired extends ExpandableStringEnum { /** Static value None for ActionsRequired. */ public static final ActionsRequired NONE = fromString("None"); @@ -16,6 +16,15 @@ public final class ActionsRequired extends ExpandableStringEnum /** Static value Recreate for ActionsRequired. */ public static final ActionsRequired RECREATE = fromString("Recreate"); + /** + * Creates a new instance of ActionsRequired value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ActionsRequired() { + } + /** * Creates or finds a ActionsRequired from its string representation. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java index 723bff208d2ba..fd657aa841c91 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ApiKeyListResult.java @@ -24,6 +24,10 @@ public final class ApiKeyListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of ApiKeyListResult class. */ + public ApiKeyListResult() { + } + /** * Get the value property: The collection value. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java index 47b5f65abfbde..af002421c0698 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/CheckNameAvailabilityParameters.java @@ -23,6 +23,10 @@ public final class CheckNameAvailabilityParameters { @JsonProperty(value = "type", required = true) private ConfigurationResourceType type; + /** Creates an instance of CheckNameAvailabilityParameters class. */ + public CheckNameAvailabilityParameters() { + } + /** * Get the name property: The name to check for availability. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java index 7eb2a8f2476f1..879606df206ac 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationResourceType.java @@ -8,12 +8,21 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ConfigurationResourceType. */ +/** The resource type to check for name availability. */ public final class ConfigurationResourceType extends ExpandableStringEnum { /** Static value Microsoft.AppConfiguration/configurationStores for ConfigurationResourceType. */ public static final ConfigurationResourceType MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES = fromString("Microsoft.AppConfiguration/configurationStores"); + /** + * Creates a new instance of ConfigurationResourceType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ConfigurationResourceType() { + } + /** * Creates or finds a ConfigurationResourceType from its string representation. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java index c82a1148eb780..e050ac4dcc306 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStore.java @@ -492,22 +492,22 @@ interface WithEnablePurgeProtection { * Regenerates an access key for the specified configuration store. * * @param regenerateKeyParameters The parameters for regenerating an access 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 an API key used for authenticating with a configuration store endpoint. + * @return an API key used for authenticating with a configuration store endpoint along with {@link Response}. */ - ApiKey regenerateKey(RegenerateKeyParameters regenerateKeyParameters); + Response regenerateKeyWithResponse(RegenerateKeyParameters regenerateKeyParameters, Context context); /** * Regenerates an access key for the specified configuration store. * * @param regenerateKeyParameters The parameters for regenerating an access 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 an API key used for authenticating with a configuration store endpoint along with {@link Response}. + * @return an API key used for authenticating with a configuration store endpoint. */ - Response regenerateKeyWithResponse(RegenerateKeyParameters regenerateKeyParameters, Context context); + ApiKey regenerateKey(RegenerateKeyParameters regenerateKeyParameters); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java index f382f98545c3f..5b6225407ae6e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreListResult.java @@ -24,6 +24,10 @@ public final class ConfigurationStoreListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of ConfigurationStoreListResult class. */ + public ConfigurationStoreListResult() { + } + /** * Get the value property: The collection value. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java index fe725fb65b679..e2a99b4350c4c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStoreUpdateParameters.java @@ -38,6 +38,10 @@ public final class ConfigurationStoreUpdateParameters { @JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS) private Map tags; + /** Creates an instance of ConfigurationStoreUpdateParameters class. */ + public ConfigurationStoreUpdateParameters() { + } + /** * Get the innerProperties property: The properties for updating a configuration store. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java index fc611ba59e07a..441ce96fd92da 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConfigurationStores.java @@ -64,26 +64,26 @@ public interface ConfigurationStores { * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. + * @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 properties of the specified configuration store. + * @return the properties of the specified configuration store along with {@link Response}. */ - ConfigurationStore getByResourceGroup(String resourceGroupName, String configStoreName); + Response getByResourceGroupWithResponse( + String resourceGroupName, String configStoreName, Context context); /** * Gets the properties of the specified configuration store. * * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. - * @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 properties of the specified configuration store along with {@link Response}. + * @return the properties of the specified configuration store. */ - Response getByResourceGroupWithResponse( - String resourceGroupName, String configStoreName, Context context); + ConfigurationStore getByResourceGroup(String resourceGroupName, String configStoreName); /** * Deletes a configuration store. @@ -142,13 +142,17 @@ Response getByResourceGroupWithResponse( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access 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 an API key used for authenticating with a configuration store endpoint. + * @return an API key used for authenticating with a configuration store endpoint along with {@link Response}. */ - ApiKey regenerateKey( - String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters); + Response regenerateKeyWithResponse( + String resourceGroupName, + String configStoreName, + RegenerateKeyParameters regenerateKeyParameters, + Context context); /** * Regenerates an access key for the specified configuration store. @@ -156,17 +160,13 @@ ApiKey regenerateKey( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param regenerateKeyParameters The parameters for regenerating an access 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 an API key used for authenticating with a configuration store endpoint along with {@link Response}. + * @return an API key used for authenticating with a configuration store endpoint. */ - Response regenerateKeyWithResponse( - String resourceGroupName, - String configStoreName, - RegenerateKeyParameters regenerateKeyParameters, - Context context); + ApiKey regenerateKey( + String resourceGroupName, String configStoreName, RegenerateKeyParameters regenerateKeyParameters); /** * Gets information about the deleted configuration stores in a subscription. @@ -195,26 +195,26 @@ Response regenerateKeyWithResponse( * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a deleted Azure app configuration store. + * @return a deleted Azure app configuration store along with {@link Response}. */ - DeletedConfigurationStore getDeleted(String location, String configStoreName); + Response getDeletedWithResponse( + String location, String configStoreName, Context context); /** * Gets a deleted Azure app configuration store. * * @param location The location in which uniqueness will be verified. * @param configStoreName The name of the configuration store. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a deleted Azure app configuration store along with {@link Response}. + * @return a deleted Azure app configuration store. */ - Response getDeletedWithResponse( - String location, String configStoreName, Context context); + DeletedConfigurationStore getDeleted(String location, String configStoreName); /** * Permanently deletes the specified configuration store. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java index ddfac302230f0..34120f28e73dc 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ConnectionStatus.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ConnectionStatus. */ +/** The private link service connection status. */ public final class ConnectionStatus extends ExpandableStringEnum { /** Static value Pending for ConnectionStatus. */ public static final ConnectionStatus PENDING = fromString("Pending"); @@ -22,6 +22,15 @@ public final class ConnectionStatus extends ExpandableStringEnum { /** Static value None for IdentityType. */ public static final IdentityType NONE = fromString("None"); @@ -22,6 +25,15 @@ public final class IdentityType extends ExpandableStringEnum { /** Static value SystemAssigned, UserAssigned for IdentityType. */ public static final IdentityType SYSTEM_ASSIGNED_USER_ASSIGNED = fromString("SystemAssigned, UserAssigned"); + /** + * Creates a new instance of IdentityType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public IdentityType() { + } + /** * Creates or finds a IdentityType from its string representation. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValueListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValueListResult.java deleted file mode 100644 index 8e8036197b7e5..0000000000000 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValueListResult.java +++ /dev/null @@ -1,77 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appconfiguration.models; - -import com.azure.core.annotation.Fluent; -import com.azure.resourcemanager.appconfiguration.fluent.models.KeyValueInner; -import com.fasterxml.jackson.annotation.JsonProperty; -import java.util.List; - -/** The result of a request to list key-values. */ -@Fluent -public final class KeyValueListResult { - /* - * The collection value. - */ - @JsonProperty(value = "value") - private List value; - - /* - * The URI that can be used to request the next set of paged results. - */ - @JsonProperty(value = "nextLink") - private String nextLink; - - /** - * Get the value property: The collection value. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Set the value property: The collection value. - * - * @param value the value value to set. - * @return the KeyValueListResult object itself. - */ - public KeyValueListResult withValue(List value) { - this.value = value; - return this; - } - - /** - * Get the nextLink property: The URI that can be used to request the next set of paged results. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Set the nextLink property: The URI that can be used to request the next set of paged results. - * - * @param nextLink the nextLink value to set. - * @return the KeyValueListResult object itself. - */ - public KeyValueListResult withNextLink(String nextLink) { - this.nextLink = nextLink; - 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/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java index 4a52c8bf7a6db..174491c40d04a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyValues.java @@ -4,41 +4,11 @@ package com.azure.resourcemanager.appconfiguration.models; -import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; /** Resource collection API of KeyValues. */ public interface KeyValues { - /** - * Lists the key-values for a given configuration store. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.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 result of a request to list key-values as paginated response with {@link PagedIterable}. - */ - PagedIterable listByConfigurationStore(String resourceGroupName, String configStoreName); - - /** - * Lists the key-values for a given configuration store. - * - * @param resourceGroupName The name of the resource group to which the container registry belongs. - * @param configStoreName The name of the configuration store. - * @param skipToken A skip token is used to continue retrieving items after an operation returns a partial result. - * If a previous response contains a nextLink element, the value of the nextLink element will include a - * skipToken parameter that specifies a starting point to use for subsequent calls. - * @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 result of a request to list key-values as paginated response with {@link PagedIterable}. - */ - PagedIterable listByConfigurationStore( - String resourceGroupName, String configStoreName, String skipToken, Context context); - /** * Gets the properties of the specified key-value. * @@ -46,12 +16,14 @@ PagedIterable listByConfigurationStore( * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is * optional. + * @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 properties of the specified key-value. + * @return the properties of the specified key-value along with {@link Response}. */ - KeyValue get(String resourceGroupName, String configStoreName, String keyValueName); + Response getWithResponse( + String resourceGroupName, String configStoreName, String keyValueName, Context context); /** * Gets the properties of the specified key-value. @@ -60,14 +32,12 @@ PagedIterable listByConfigurationStore( * @param configStoreName The name of the configuration store. * @param keyValueName Identifier of key and label combination. Key and label are joined by $ character. Label is * optional. - * @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 properties of the specified key-value along with {@link Response}. + * @return the properties of the specified key-value. */ - Response getWithResponse( - String resourceGroupName, String configStoreName, String keyValueName, Context context); + KeyValue get(String resourceGroupName, String configStoreName, String keyValueName); /** * Deletes a key-value. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java index 13a95008f4ee5..cc359b18b6685 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/KeyVaultProperties.java @@ -22,6 +22,10 @@ public final class KeyVaultProperties { @JsonProperty(value = "identityClientId") private String identityClientId; + /** Creates an instance of KeyVaultProperties class. */ + public KeyVaultProperties() { + } + /** * Get the keyIdentifier property: The URI of the key vault key used to encrypt data. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java index 99174ec98fc74..c610779ce22e0 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/LogSpecification.java @@ -28,6 +28,10 @@ public final class LogSpecification { @JsonProperty(value = "blobDuration") private String blobDuration; + /** Creates an instance of LogSpecification class. */ + public LogSpecification() { + } + /** * Get the name property: Name of the log. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java index 61b1c0e44687e..6fa515df4a3c3 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricDimension.java @@ -28,6 +28,10 @@ public final class MetricDimension { @JsonProperty(value = "internalName") private String internalName; + /** Creates an instance of MetricDimension class. */ + public MetricDimension() { + } + /** * Get the name property: Name of the dimension. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java index 4111e70b3e072..b27167f4cb320 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/MetricSpecification.java @@ -36,8 +36,7 @@ public final class MetricSpecification { private String unit; /* - * Only provide one value for this field. Valid values: Average, Minimum, - * Maximum, Total, Count. + * Only provide one value for this field. Valid values: Average, Minimum, Maximum, Total, Count. */ @JsonProperty(value = "aggregationType") private String aggregationType; @@ -55,12 +54,15 @@ public final class MetricSpecification { private List dimensions; /* - * Optional. If set to true, then zero will be returned for time duration - * where no metric is emitted/published. + * Optional. If set to true, then zero will be returned for time duration where no metric is emitted/published. */ @JsonProperty(value = "fillGapWithZero") private Boolean fillGapWithZero; + /** Creates an instance of MetricSpecification class. */ + public MetricSpecification() { + } + /** * Get the name property: Name of the metric. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java index 7075f5bb7756f..5cd85d86ad3f5 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionDisplay.java @@ -34,6 +34,10 @@ public final class OperationDefinitionDisplay { @JsonProperty(value = "description") private String description; + /** Creates an instance of OperationDefinitionDisplay class. */ + public OperationDefinitionDisplay() { + } + /** * Get the provider property: The resource provider name: Microsoft App Configuration.". * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java index b9b8405dfddc9..c055051163fe1 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationDefinitionListResult.java @@ -24,6 +24,10 @@ public final class OperationDefinitionListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of OperationDefinitionListResult class. */ + public OperationDefinitionListResult() { + } + /** * Get the value property: The collection value. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java index 1fd82f6de31d6..4e7673de43e71 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/OperationProperties.java @@ -16,6 +16,10 @@ public final class OperationProperties { @JsonProperty(value = "serviceSpecification") private ServiceSpecification serviceSpecification; + /** Creates an instance of OperationProperties class. */ + public OperationProperties() { + } + /** * Get the serviceSpecification property: Service specifications of the operation. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java index 602132fe1a4d2..30b53f49bf497 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Operations.java @@ -14,25 +14,25 @@ public interface Operations { * Checks whether the configuration store name is available for use. * * @param checkNameAvailabilityParameters The object containing information for the availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name. + * @return the result of a request to check the availability of a resource name along with {@link Response}. */ - NameAvailabilityStatus checkNameAvailability(CheckNameAvailabilityParameters checkNameAvailabilityParameters); + Response checkNameAvailabilityWithResponse( + CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context); /** * Checks whether the configuration store name is available for use. * * @param checkNameAvailabilityParameters The object containing information for the availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name along with {@link Response}. + * @return the result of a request to check the availability of a resource name. */ - Response checkNameAvailabilityWithResponse( - CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context); + NameAvailabilityStatus checkNameAvailability(CheckNameAvailabilityParameters checkNameAvailabilityParameters); /** * Lists the operations available from this provider. @@ -64,25 +64,25 @@ Response checkNameAvailabilityWithResponse( * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name. + * @return the result of a request to check the availability of a resource name along with {@link Response}. */ - NameAvailabilityStatus regionalCheckNameAvailability( - String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters); + Response regionalCheckNameAvailabilityWithResponse( + String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context); /** * Checks whether the configuration store name is available for use. * * @param location The location in which uniqueness will be verified. * @param checkNameAvailabilityParameters The object containing information for the availability request. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the result of a request to check the availability of a resource name along with {@link Response}. + * @return the result of a request to check the availability of a resource name. */ - Response regionalCheckNameAvailabilityWithResponse( - String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters, Context context); + NameAvailabilityStatus regionalCheckNameAvailability( + String location, CheckNameAvailabilityParameters checkNameAvailabilityParameters); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java index b84684d0aa4dc..7a62f227e538d 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpoint.java @@ -16,6 +16,10 @@ public final class PrivateEndpoint { @JsonProperty(value = "id") private String id; + /** Creates an instance of PrivateEndpoint class. */ + public PrivateEndpoint() { + } + /** * Get the id property: The resource Id for private endpoint. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java index caa1a8c07f34b..7f78bca1336b0 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionListResult.java @@ -24,6 +24,10 @@ public final class PrivateEndpointConnectionListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of PrivateEndpointConnectionListResult class. */ + public PrivateEndpointConnectionListResult() { + } + /** * Get the value property: The collection value. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java index 9d174bda8e0ee..078faebad9ef5 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnectionReference.java @@ -35,6 +35,10 @@ public final class PrivateEndpointConnectionReference { @JsonProperty(value = "properties") private PrivateEndpointConnectionProperties innerProperties; + /** Creates an instance of PrivateEndpointConnectionReference class. */ + public PrivateEndpointConnectionReference() { + } + /** * Get the id property: The resource ID. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java index 35b5a5538aaf4..78083e32b47c3 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateEndpointConnections.java @@ -42,13 +42,15 @@ PagedIterable listByConfigurationStore( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. + * @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 configuration store. + * @return the specified private endpoint connection associated with the configuration store along with {@link + * Response}. */ - PrivateEndpointConnection get( - String resourceGroupName, String configStoreName, String privateEndpointConnectionName); + Response getWithResponse( + String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context); /** * Gets the specified private endpoint connection associated with the configuration store. @@ -56,15 +58,13 @@ PrivateEndpointConnection get( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param privateEndpointConnectionName Private endpoint connection name. - * @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 configuration store along with {@link - * Response}. + * @return the specified private endpoint connection associated with the configuration store. */ - Response getWithResponse( - String resourceGroupName, String configStoreName, String privateEndpointConnectionName, Context context); + PrivateEndpointConnection get( + String resourceGroupName, String configStoreName, String privateEndpointConnectionName); /** * Deletes a private endpoint connection. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java index 209486459b9f6..8780076621e70 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResourceListResult.java @@ -24,6 +24,10 @@ public final class PrivateLinkResourceListResult { @JsonProperty(value = "nextLink") private String nextLink; + /** Creates an instance of PrivateLinkResourceListResult class. */ + public PrivateLinkResourceListResult() { + } + /** * Get the value property: The collection value. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java index e3a8463334526..f348493d3587c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkResources.java @@ -44,12 +44,14 @@ PagedIterable listByConfigurationStore( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private link resource that need to be created for a configuration store. + * @return a private link resource that need to be created for a configuration store along with {@link Response}. */ - PrivateLinkResource get(String resourceGroupName, String configStoreName, String groupName); + Response getWithResponse( + String resourceGroupName, String configStoreName, String groupName, Context context); /** * Gets a private link resource that need to be created for a configuration store. @@ -57,12 +59,10 @@ PagedIterable listByConfigurationStore( * @param resourceGroupName The name of the resource group to which the container registry belongs. * @param configStoreName The name of the configuration store. * @param groupName The name of the private link resource group. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private link resource that need to be created for a configuration store along with {@link Response}. + * @return a private link resource that need to be created for a configuration store. */ - Response getWithResponse( - String resourceGroupName, String configStoreName, String groupName, Context context); + PrivateLinkResource get(String resourceGroupName, String configStoreName, String groupName); } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java index 52e0fe1e207be..95a645e6ab25a 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/PrivateLinkServiceConnectionState.java @@ -23,12 +23,15 @@ public final class PrivateLinkServiceConnectionState { private String description; /* - * Any action that is required beyond basic workflow (approve/ reject/ - * disconnect) + * Any action that is required beyond basic workflow (approve/ reject/ disconnect) */ @JsonProperty(value = "actionsRequired", access = JsonProperty.Access.WRITE_ONLY) private ActionsRequired actionsRequired; + /** Creates an instance of PrivateLinkServiceConnectionState class. */ + public PrivateLinkServiceConnectionState() { + } + /** * Get the status property: The private link service connection status. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java index ea590e17a0333..9006ba2c82329 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ProvisioningState.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import java.util.Collection; -/** Defines values for ProvisioningState. */ +/** The provisioning state of the configuration store. */ public final class ProvisioningState extends ExpandableStringEnum { /** Static value Creating for ProvisioningState. */ public static final ProvisioningState CREATING = fromString("Creating"); @@ -28,6 +28,15 @@ public final class ProvisioningState extends ExpandableStringEnum { /** Static value Enabled for PublicNetworkAccess. */ public static final PublicNetworkAccess ENABLED = fromString("Enabled"); @@ -16,6 +16,15 @@ public final class PublicNetworkAccess extends ExpandableStringEnum userAssignedIdentities; /* - * The principal id of the identity. This property will only be provided - * for a system-assigned identity. + * The principal id of the identity. This property will only be provided for a system-assigned identity. */ @JsonProperty(value = "principalId", access = JsonProperty.Access.WRITE_ONLY) private String principalId; /* - * The tenant id associated with the resource's identity. This property - * will only be provided for a system-assigned identity. + * The tenant id associated with the resource's identity. This property will only be provided for a system-assigned + * identity. */ @JsonProperty(value = "tenantId", access = JsonProperty.Access.WRITE_ONLY) private String tenantId; + /** Creates an instance of ResourceIdentity class. */ + public ResourceIdentity() { + } + /** * Get the type property: The type of managed identity used. The type 'SystemAssigned, UserAssigned' includes both * an implicitly created identity and a set of user-assigned identities. The type 'None' will remove any identities. diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java index 3990e716a5d0a..ddf7c1f1edab7 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/ServiceSpecification.java @@ -23,6 +23,10 @@ public final class ServiceSpecification { @JsonProperty(value = "metricSpecifications") private List metricSpecifications; + /** Creates an instance of ServiceSpecification class. */ + public ServiceSpecification() { + } + /** * Get the logSpecifications property: Specifications of the Log for Azure Monitoring. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java index cd8dbd8c5c778..22920fc8122fb 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/Sku.java @@ -17,6 +17,10 @@ public final class Sku { @JsonProperty(value = "name", required = true) private String name; + /** Creates an instance of Sku class. */ + public Sku() { + } + /** * Get the name property: The SKU name of the configuration store. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java index 2ec45c2b5354f..6dc6c2b494a2d 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/main/java/com/azure/resourcemanager/appconfiguration/models/UserIdentity.java @@ -22,6 +22,10 @@ public class UserIdentity { @JsonProperty(value = "clientId", access = JsonProperty.Access.WRITE_ONLY) private String clientId; + /** Creates an instance of UserIdentity class. */ + public UserIdentity() { + } + /** * Get the principalId property: The principal ID of the user-assigned identity. * diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java index 028a88f0af82e..c45b0abbdf81e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for ConfigurationStores Delete. */ public final class ConfigurationStoresDeleteSamples { /* @@ -18,6 +16,6 @@ public final class ConfigurationStoresDeleteSamples { */ public static void configurationStoresDelete( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().delete("myResourceGroup", "contoso", Context.NONE); + manager.configurationStores().delete("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java index a3a5e4ab80a3b..92a2ad7856951 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for ConfigurationStores GetByResourceGroup. */ public final class ConfigurationStoresGetByResourceGroupSamples { /* @@ -18,6 +16,8 @@ public final class ConfigurationStoresGetByResourceGroupSamples { */ public static void configurationStoresGet( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE); + manager + .configurationStores() + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java index f0e0d6f1a012b..39663fec70161 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresGetDeletedSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for ConfigurationStores GetDeleted. */ public final class ConfigurationStoresGetDeletedSamples { /* @@ -18,6 +16,6 @@ public final class ConfigurationStoresGetDeletedSamples { */ public static void deletedConfigurationStoresGet( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().getDeletedWithResponse("westus", "contoso", Context.NONE); + manager.configurationStores().getDeletedWithResponse("westus", "contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java index 615ef9fe0d105..1ad6844c6148c 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListByResourceGroupSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for ConfigurationStores ListByResourceGroup. */ public final class ConfigurationStoresListByResourceGroupSamples { /* @@ -18,6 +16,6 @@ public final class ConfigurationStoresListByResourceGroupSamples { */ public static void configurationStoresListByResourceGroup( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().listByResourceGroup("myResourceGroup", null, Context.NONE); + manager.configurationStores().listByResourceGroup("myResourceGroup", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java index 2dfefc4126d33..d81a747f75bdc 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListDeletedSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for ConfigurationStores ListDeleted. */ public final class ConfigurationStoresListDeletedSamples { /* @@ -18,6 +16,6 @@ public final class ConfigurationStoresListDeletedSamples { */ public static void deletedConfigurationStoresList( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().listDeleted(Context.NONE); + manager.configurationStores().listDeleted(com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java index a6464c19c4e0b..d71b5d6694563 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListKeysSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for ConfigurationStores ListKeys. */ public final class ConfigurationStoresListKeysSamples { /* @@ -18,6 +16,6 @@ public final class ConfigurationStoresListKeysSamples { */ public static void configurationStoresListKeys( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().listKeys("myResourceGroup", "contoso", null, Context.NONE); + manager.configurationStores().listKeys("myResourceGroup", "contoso", null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java index 2a2176a7041db..0e5cdd1551ca2 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresListSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for ConfigurationStores List. */ public final class ConfigurationStoresListSamples { /* @@ -18,6 +16,6 @@ public final class ConfigurationStoresListSamples { */ public static void configurationStoresList( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().list(null, Context.NONE); + manager.configurationStores().list(null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java index efedb3a1c53fa..e76e774b03d15 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresPurgeDeletedSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for ConfigurationStores PurgeDeleted. */ public final class ConfigurationStoresPurgeDeletedSamples { /* @@ -18,6 +16,6 @@ public final class ConfigurationStoresPurgeDeletedSamples { */ public static void purgeADeletedConfigurationStore( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.configurationStores().purgeDeleted("westus", "contoso", Context.NONE); + manager.configurationStores().purgeDeleted("westus", "contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java index 36f5c18c11263..5f811792a7d04 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresRegenerateKeySamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.appconfiguration.models.RegenerateKeyParameters; /** Samples for ConfigurationStores RegenerateKey. */ @@ -22,6 +21,9 @@ public static void configurationStoresRegenerateKey( manager .configurationStores() .regenerateKeyWithResponse( - "myResourceGroup", "contoso", new RegenerateKeyParameters().withId("439AD01B4BE67DB1"), Context.NONE); + "myResourceGroup", + "contoso", + new RegenerateKeyParameters().withId("439AD01B4BE67DB1"), + com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java index d2e5d69b1998f..a4db24f564e42 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/ConfigurationStoresUpdateSamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.appconfiguration.models.ConfigurationStore; import com.azure.resourcemanager.appconfiguration.models.IdentityType; import com.azure.resourcemanager.appconfiguration.models.ResourceIdentity; @@ -28,7 +27,7 @@ public static void configurationStoresUpdateDisableLocalAuth( ConfigurationStore resource = manager .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE) + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) .getValue(); resource.update().withSku(new Sku().withName("Standard")).withDisableLocalAuth(true).apply(); } @@ -46,7 +45,7 @@ public static void configurationStoresUpdate( ConfigurationStore resource = manager .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE) + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("Category", "Marketing")).withSku(new Sku().withName("Standard")).apply(); } @@ -64,7 +63,7 @@ public static void configurationStoresUpdateWithIdentity( ConfigurationStore resource = manager .configurationStores() - .getByResourceGroupWithResponse("myResourceGroup", "contoso", Context.NONE) + .getByResourceGroupWithResponse("myResourceGroup", "contoso", com.azure.core.util.Context.NONE) .getValue(); resource .update() diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java index d28acb01abb0b..52043fc4e7c18 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for KeyValues Delete. */ public final class KeyValuesDeleteSamples { /* @@ -17,6 +15,6 @@ public final class KeyValuesDeleteSamples { * @param manager Entry point to AppConfigurationManager. */ public static void keyValuesDelete(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.keyValues().delete("myResourceGroup", "contoso", "myKey$myLabel", Context.NONE); + manager.keyValues().delete("myResourceGroup", "contoso", "myKey$myLabel", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java index 1e6a4e041ec84..4387b4f3efcee 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for KeyValues Get. */ public final class KeyValuesGetSamples { /* @@ -17,6 +15,8 @@ public final class KeyValuesGetSamples { * @param manager Entry point to AppConfigurationManager. */ public static void keyValuesGet(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.keyValues().getWithResponse("myResourceGroup", "contoso", "myKey$myLabel", Context.NONE); + manager + .keyValues() + .getWithResponse("myResourceGroup", "contoso", "myKey$myLabel", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesListByConfigurationStoreSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesListByConfigurationStoreSamples.java deleted file mode 100644 index b836b7c93c2c2..0000000000000 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/KeyValuesListByConfigurationStoreSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) AutoRest Code Generator. - -package com.azure.resourcemanager.appconfiguration.generated; - -import com.azure.core.util.Context; - -/** Samples for KeyValues ListByConfigurationStore. */ -public final class KeyValuesListByConfigurationStoreSamples { - /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresListKeyValues.json - */ - /** - * Sample code: KeyValues_ListByConfigurationStore. - * - * @param manager Entry point to AppConfigurationManager. - */ - public static void keyValuesListByConfigurationStore( - com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.keyValues().listByConfigurationStore("myResourceGroup", "contoso", null, Context.NONE); - } -} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java index 5bcdb3cd31624..b77a3d6de09a1 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsCheckNameAvailabilitySamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType; @@ -26,7 +25,7 @@ public static void configurationStoresCheckNameAvailable( new CheckNameAvailabilityParameters() .withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -45,6 +44,6 @@ public static void configurationStoresCheckNameNotAvailable( new CheckNameAvailabilityParameters() .withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListSamples.java new file mode 100644 index 0000000000000..892f2f3c24cbe --- /dev/null +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsListSamples.java @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) AutoRest Code Generator. + +package com.azure.resourcemanager.appconfiguration.generated; + +/** Samples for Operations List. */ +public final class OperationsListSamples { + /* + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/OperationsList.json + */ + /** + * Sample code: Operations_List. + * + * @param manager Entry point to AppConfigurationManager. + */ + public static void operationsList(com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { + manager.operations().list(null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java index eff06ea1f5ed9..6da8280b7394e 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/OperationsRegionalCheckNameAvailabilitySamples.java @@ -4,7 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; import com.azure.resourcemanager.appconfiguration.models.CheckNameAvailabilityParameters; import com.azure.resourcemanager.appconfiguration.models.ConfigurationResourceType; @@ -27,7 +26,7 @@ public static void configurationStoresCheckNameAvailable( new CheckNameAvailabilityParameters() .withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), - Context.NONE); + com.azure.core.util.Context.NONE); } /* @@ -47,6 +46,6 @@ public static void configurationStoresCheckNameNotAvailable( new CheckNameAvailabilityParameters() .withName("contoso") .withType(ConfigurationResourceType.MICROSOFT_APP_CONFIGURATION_CONFIGURATION_STORES), - Context.NONE); + com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java index 625980d28dbe7..bab001dc33ca1 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsCreateOrUpdateSamples.java @@ -5,28 +5,32 @@ package com.azure.resourcemanager.appconfiguration.generated; import com.azure.resourcemanager.appconfiguration.models.ConnectionStatus; +import com.azure.resourcemanager.appconfiguration.models.PrivateEndpointConnection; import com.azure.resourcemanager.appconfiguration.models.PrivateLinkServiceConnectionState; /** Samples for PrivateEndpointConnections CreateOrUpdate. */ public final class PrivateEndpointConnectionsCreateOrUpdateSamples { /* - * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresCreatePrivateEndpointConnection.json + * x-ms-original-file: specification/appconfiguration/resource-manager/Microsoft.AppConfiguration/stable/2022-05-01/examples/ConfigurationStoresUpdatePrivateEndpointConnection.json */ /** - * Sample code: PrivateEndpointConnection_CreateOrUpdate. + * Sample code: PrivateEndpointConnection_Update. * * @param manager Entry point to AppConfigurationManager. */ - public static void privateEndpointConnectionCreateOrUpdate( + public static void privateEndpointConnectionUpdate( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager - .privateEndpointConnections() - .define("myConnection") - .withExistingConfigurationStore("myResourceGroup", "contoso") + PrivateEndpointConnection resource = + manager + .privateEndpointConnections() + .getWithResponse("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE) + .getValue(); + resource + .update() .withPrivateLinkServiceConnectionState( new PrivateLinkServiceConnectionState() .withStatus(ConnectionStatus.APPROVED) .withDescription("Auto-Approved")) - .create(); + .apply(); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java index ae30efa1e6adc..fe953ad6782c0 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections Delete. */ public final class PrivateEndpointConnectionsDeleteSamples { /* @@ -18,6 +16,8 @@ public final class PrivateEndpointConnectionsDeleteSamples { */ public static void privateEndpointConnectionsDelete( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.privateEndpointConnections().delete("myResourceGroup", "contoso", "myConnection", Context.NONE); + manager + .privateEndpointConnections() + .delete("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java index 6e39a5e9ebee8..44bbae3e504a0 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections Get. */ public final class PrivateEndpointConnectionsGetSamples { /* @@ -20,6 +18,6 @@ public static void privateEndpointConnectionGetConnection( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager .privateEndpointConnections() - .getWithResponse("myResourceGroup", "contoso", "myConnection", Context.NONE); + .getWithResponse("myResourceGroup", "contoso", "myConnection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java index dfba5864d0df4..560afd1851690 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateEndpointConnectionsListByConfigurationStoreSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for PrivateEndpointConnections ListByConfigurationStore. */ public final class PrivateEndpointConnectionsListByConfigurationStoreSamples { /* @@ -18,6 +16,8 @@ public final class PrivateEndpointConnectionsListByConfigurationStoreSamples { */ public static void privateEndpointConnectionList( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.privateEndpointConnections().listByConfigurationStore("myResourceGroup", "contoso", Context.NONE); + manager + .privateEndpointConnections() + .listByConfigurationStore("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java index d369a80e8bcfc..0e9fb47639b23 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesGetSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for PrivateLinkResources Get. */ public final class PrivateLinkResourcesGetSamples { /* @@ -20,6 +18,6 @@ public static void privateLinkResourcesGet( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { manager .privateLinkResources() - .getWithResponse("myResourceGroup", "contoso", "configurationStores", Context.NONE); + .getWithResponse("myResourceGroup", "contoso", "configurationStores", com.azure.core.util.Context.NONE); } } diff --git a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java index ee7f619b33050..758dbae942760 100644 --- a/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java +++ b/sdk/appconfiguration/azure-resourcemanager-appconfiguration/src/samples/java/com/azure/resourcemanager/appconfiguration/generated/PrivateLinkResourcesListByConfigurationStoreSamples.java @@ -4,8 +4,6 @@ package com.azure.resourcemanager.appconfiguration.generated; -import com.azure.core.util.Context; - /** Samples for PrivateLinkResources ListByConfigurationStore. */ public final class PrivateLinkResourcesListByConfigurationStoreSamples { /* @@ -18,6 +16,8 @@ public final class PrivateLinkResourcesListByConfigurationStoreSamples { */ public static void privateLinkResourcesListGroupIds( com.azure.resourcemanager.appconfiguration.AppConfigurationManager manager) { - manager.privateLinkResources().listByConfigurationStore("myResourceGroup", "contoso", Context.NONE); + manager + .privateLinkResources() + .listByConfigurationStore("myResourceGroup", "contoso", com.azure.core.util.Context.NONE); } }