diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md b/sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md index d6508a1260fa..123b0cc6f8b0 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/CHANGELOG.md @@ -1,14 +1,126 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.2 (2025-05-06) -### Features Added +- Azure Resource Manager Connected Cache client library for Java. This package contains Microsoft Azure SDK for Connected Cache Management SDK. Microsoft Connected Cache Rest Api version 2023-05-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.EnterpriseCustomerOperations` was removed + +#### `models.CacheNodePreviewResource$DefinitionStages` was removed + +#### `models.CacheNodesOperations` was removed + +#### `models.CycleType` was removed + +#### `models.EnterprisePreviewResource$Update` was removed + +#### `models.EnterprisePreviewResource$UpdateStages` was removed + +#### `models.CacheNodePreviewResource$UpdateStages` was removed + +#### `models.EnterprisePreviewResource` was removed + +#### `models.CacheNodePreviewResource` was removed + +#### `models.CacheNodeOldResponse` was removed + +#### `implementation.models.CacheNodePreviewResourceListResult` was removed + +#### `implementation.models.EnterprisePreviewResourceListResult` was removed + +#### `models.EnterprisePreviewResource$Definition` was removed + +#### `models.CacheNodePreviewResource$Definition` was removed + +#### `models.CacheNodePreviewResource$Update` was removed + +#### `models.EnterprisePreviewResource$DefinitionStages` was removed + +#### `models.AdditionalCustomerProperties` was modified + +* `peeringDbLastUpdateTime()` was removed + +#### `ConnectedCacheManager` was modified + +* `enterpriseCustomerOperations()` was removed +* `cacheNodesOperations()` was removed + +#### `models.AdditionalCacheNodeProperties` was modified + +* `withUpdateCycleType(models.CycleType)` was removed +* `proxyUrl()` was removed +* `updateCycleType()` was removed +* `withProxyUrl(java.lang.String)` was removed + +### Features Added + +* `models.MccCacheNodeTlsCertificate` was added + +* `models.MccIssue` was added + +* `models.MccCacheNodeAutoUpdateInfo` was added + +* `models.MccCacheNodeAutoUpdateHistoryProperties` was added + +* `models.MccCacheNodeIssueHistory` was added + +* `models.MccCacheNodeAutoUpdateHistory` was added + +* `models.MccCacheNodeTlsCertificateHistory` was added + +* `models.MccCacheNodeIssueHistoryProperties` was added + +* `models.MccCacheNodeTlsCertificateProperties` was added + +#### `models.CacheNodeInstallProperties` was modified + +* `tlsCertificateProvisioningKey()` was added +* `driveConfiguration()` was added +* `proxyUrlConfiguration()` was added + +#### `models.IspCacheNodeResource` was modified + +* `getCacheNodeMccIssueDetailsHistory()` was added +* `getCacheNodeMccIssueDetailsHistoryWithResponse(com.azure.core.util.Context)` was added +* `getCacheNodeAutoUpdateHistory()` was added +* `getCacheNodeAutoUpdateHistoryWithResponse(com.azure.core.util.Context)` was added + +#### `models.IspCacheNodesOperations` was modified + +* `getCacheNodeAutoUpdateHistory(java.lang.String,java.lang.String,java.lang.String)` was added +* `getCacheNodeMccIssueDetailsHistory(java.lang.String,java.lang.String,java.lang.String)` was added +* `getCacheNodeMccIssueDetailsHistoryWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `getCacheNodeAutoUpdateHistoryWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added + +#### `models.EnterpriseMccCacheNodesOperations` was modified + +* `getCacheNodeAutoUpdateHistory(java.lang.String,java.lang.String,java.lang.String)` was added +* `getCacheNodeTlsCertificateHistoryWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `getCacheNodeTlsCertificateHistory(java.lang.String,java.lang.String,java.lang.String)` was added +* `getCacheNodeMccIssueDetailsHistory(java.lang.String,java.lang.String,java.lang.String)` was added +* `getCacheNodeAutoUpdateHistoryWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `getCacheNodeMccIssueDetailsHistoryWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added + +#### `models.AdditionalCacheNodeProperties` was modified + +* `issuesList()` was added +* `withCreationMethod(java.lang.Integer)` was added +* `creationMethod()` was added +* `tlsStatus()` was added +* `lastAutoUpdateInfo()` was added +* `currentTlsCertificate()` was added +* `issuesCount()` was added + +#### `models.EnterpriseMccCacheNodeResource` was modified -### Other Changes +* `getCacheNodeAutoUpdateHistoryWithResponse(com.azure.core.util.Context)` was added +* `getCacheNodeAutoUpdateHistory()` was added +* `getCacheNodeTlsCertificateHistory()` was added +* `getCacheNodeMccIssueDetailsHistoryWithResponse(com.azure.core.util.Context)` was added +* `getCacheNodeMccIssueDetailsHistory()` was added +* `getCacheNodeTlsCertificateHistoryWithResponse(com.azure.core.util.Context)` was added ## 1.0.0-beta.1 (2024-11-21) diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/README.md b/sdk/connectedcache/azure-resourcemanager-connectedcache/README.md index 65ca414b6872..23e0fb9ab1d3 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/README.md +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/README.md @@ -52,7 +52,7 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code: ```java -AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE); +AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD); TokenCredential credential = new DefaultAzureCredentialBuilder() .authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint()) .build(); @@ -60,7 +60,7 @@ ConnectedCacheManager manager = ConnectedCacheManager .authenticate(credential, profile); ``` -The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise. +The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise. See [Authentication][authenticate] for more options. @@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m [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/connectedcache/azure-resourcemanager-connectedcache/SAMPLE.md b/sdk/connectedcache/azure-resourcemanager-connectedcache/SAMPLE.md index 3bcca7bd45a1..115112ffdaa2 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/SAMPLE.md +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/SAMPLE.md @@ -1,30 +1,15 @@ # Code snippets and samples -## CacheNodesOperations - -- [CreateorUpdate](#cachenodesoperations_createorupdate) -- [Delete](#cachenodesoperations_delete) -- [GetByResourceGroup](#cachenodesoperations_getbyresourcegroup) -- [List](#cachenodesoperations_list) -- [ListByResourceGroup](#cachenodesoperations_listbyresourcegroup) -- [Update](#cachenodesoperations_update) - -## EnterpriseCustomerOperations - -- [CreateOrUpdate](#enterprisecustomeroperations_createorupdate) -- [Delete](#enterprisecustomeroperations_delete) -- [GetByResourceGroup](#enterprisecustomeroperations_getbyresourcegroup) -- [List](#enterprisecustomeroperations_list) -- [ListByResourceGroup](#enterprisecustomeroperations_listbyresourcegroup) -- [Update](#enterprisecustomeroperations_update) - ## EnterpriseMccCacheNodesOperations - [CreateOrUpdate](#enterprisemcccachenodesoperations_createorupdate) - [Delete](#enterprisemcccachenodesoperations_delete) - [Get](#enterprisemcccachenodesoperations_get) +- [GetCacheNodeAutoUpdateHistory](#enterprisemcccachenodesoperations_getcachenodeautoupdatehistory) - [GetCacheNodeInstallDetails](#enterprisemcccachenodesoperations_getcachenodeinstalldetails) +- [GetCacheNodeMccIssueDetailsHistory](#enterprisemcccachenodesoperations_getcachenodemccissuedetailshistory) +- [GetCacheNodeTlsCertificateHistory](#enterprisemcccachenodesoperations_getcachenodetlscertificatehistory) - [ListByEnterpriseMccCustomerResource](#enterprisemcccachenodesoperations_listbyenterprisemcccustomerresource) - [Update](#enterprisemcccachenodesoperations_update) @@ -43,7 +28,9 @@ - [Delete](#ispcachenodesoperations_delete) - [Get](#ispcachenodesoperations_get) - [GetBgpCidrs](#ispcachenodesoperations_getbgpcidrs) +- [GetCacheNodeAutoUpdateHistory](#ispcachenodesoperations_getcachenodeautoupdatehistory) - [GetCacheNodeInstallDetails](#ispcachenodesoperations_getcachenodeinstalldetails) +- [GetCacheNodeMccIssueDetailsHistory](#ispcachenodesoperations_getcachenodemccissuedetailshistory) - [ListByIspCustomerResource](#ispcachenodesoperations_listbyispcustomerresource) - [Update](#ispcachenodesoperations_update) @@ -59,371 +46,285 @@ ## Operations - [List](#operations_list) -### CacheNodesOperations_CreateorUpdate +### EnterpriseMccCacheNodesOperations_CreateOrUpdate ```java -import com.azure.core.management.exception.ManagementError; -import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; -import java.util.HashMap; -import java.util.Map; - /** - * Samples for CacheNodesOperations CreateorUpdate. + * Samples for IspCacheNodesOperations GetBgpCidrs. */ -public final class CacheNodesOperationsCreateorUpdateSamples { +public final class IspCacheNodesOperationsGetBgpCidrsSamples { /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_CreateorUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json */ /** - * Sample code: CacheNodesOperations_CreateorUpdate. + * Sample code: IspCacheNodes resource BgpCidrs details - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void - cacheNodesOperationsCreateorUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.cacheNodesOperations() - .define("lwrsyhvfpcfrwrim") - .withRegion("westus") - .withExistingResourceGroup("rgConnectedCache") - .withTags(mapOf("key8256", "fakeTokenPlaceholder")) - .withProperties(new CacheNodeOldResponse().withStatusCode("fakeTokenPlaceholder") - .withStatusText("bjnsrpzaofjntleoesjwammgbi") - .withStatusDetails("quuziibkwtgf") - .withError(new ManagementError())) - .create(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + public static void ispCacheNodesResourceBgpCidrsDetailsGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .getBgpCidrsWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); } } ``` -### CacheNodesOperations_Delete +### EnterpriseMccCacheNodesOperations_Delete ```java /** - * Samples for CacheNodesOperations Delete. + * Samples for IspCustomers GetByResourceGroup. */ -public final class CacheNodesOperationsDeleteSamples { +public final class IspCustomersGetByResourceGroupSamples { /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_Get_MaximumSet_Gen.json */ /** - * Sample code: CacheNodesOperations_Delete. + * Sample code: IspCustomers Get - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void - cacheNodesOperationsDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.cacheNodesOperations() - .deleteByResourceGroupWithResponse("rgConnectedCache", - "otvtvhmovthjwzjzbsqkbnmpcmmeianpqxmmaspvdczmrenquxigrtuarmlcmvsnaclhcbw", + public static void ispCustomersGetGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "cmcjfueweicolcjkwmsuvcj", com.azure.core.util.Context.NONE); } } ``` -### CacheNodesOperations_GetByResourceGroup +### EnterpriseMccCacheNodesOperations_Get ```java /** - * Samples for CacheNodesOperations GetByResourceGroup. + * Samples for EnterpriseMccCacheNodesOperations ListByEnterpriseMccCustomerResource. */ -public final class CacheNodesOperationsGetByResourceGroupSamples { +public final class EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples { /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Get_MaximumSet_Gen.json + * x-ms-original-file: + * 2024-11-30-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json */ /** - * Sample code: CacheNodesOperations_Get. + * Sample code: EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource. * * @param manager Entry point to ConnectedCacheManager. */ - public static void cacheNodesOperationsGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.cacheNodesOperations() - .getByResourceGroupWithResponse("rgConnectedCache", "nqoxkgorhuzbhjwcegymzqbeydzjupemekt", - com.azure.core.util.Context.NONE); + public static void enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .listByEnterpriseMccCustomerResource("rgConnectedCache", "syjjjzk", com.azure.core.util.Context.NONE); } } ``` -### CacheNodesOperations_List +### EnterpriseMccCacheNodesOperations_GetCacheNodeAutoUpdateHistory ```java /** - * Samples for CacheNodesOperations List. + * Samples for Operations List. */ -public final class CacheNodesOperationsListSamples { +public final class OperationsListSamples { /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/Operations_List_MaximumSet_Gen.json */ /** - * Sample code: CacheNodes Private Preview(Legacy) resource List by Subscription - generated by [MaximumSet] rule. + * Sample code: List the operations for the provider - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void cacheNodesPrivatePreviewLegacyResourceListBySubscriptionGeneratedByMaximumSetRule( + public static void listTheOperationsForTheProviderGeneratedByMaximumSetRule( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.cacheNodesOperations().list(com.azure.core.util.Context.NONE); + manager.operations().list(com.azure.core.util.Context.NONE); } } ``` -### CacheNodesOperations_ListByResourceGroup +### EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails ```java /** - * Samples for CacheNodesOperations ListByResourceGroup. + * Samples for EnterpriseMccCustomers List. */ -public final class CacheNodesOperationsListByResourceGroupSamples { +public final class EnterpriseMccCustomersListSamples { /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: CacheNodes Private Preview(Legacy) Get Operation List by Resource group - generated by [MaximumSet] - * rule. + * Sample code: EnterpriseMccCustomers_ListBySubscription. * * @param manager Entry point to ConnectedCacheManager. */ - public static void cacheNodesPrivatePreviewLegacyGetOperationListByResourceGroupGeneratedByMaximumSetRule( + public static void enterpriseMccCustomersListBySubscription( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.cacheNodesOperations().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); + manager.enterpriseMccCustomers().list(com.azure.core.util.Context.NONE); } } ``` -### CacheNodesOperations_Update +### EnterpriseMccCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory ```java -import com.azure.resourcemanager.connectedcache.models.CacheNodePreviewResource; -import java.util.HashMap; -import java.util.Map; - /** - * Samples for CacheNodesOperations Update. + * Samples for EnterpriseMccCacheNodesOperations GetCacheNodeTlsCertificateHistory. */ -public final class CacheNodesOperationsUpdateSamples { +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeTlsCertificateHistorySamples { /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Update_MaximumSet_Gen.json + * x-ms-original-file: + * 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeTlsCertificateHistory_MaximumSet_Gen.json */ /** - * Sample code: CacheNodes Private Preview(Legacy) Update Operation - generated by [MaximumSet] rule. + * Sample code: EnterpriseMccCacheNodesOperations_GetCacheNodeTlsCertificateHistory_MaximumSet. * * @param manager Entry point to ConnectedCacheManager. */ - public static void cacheNodesPrivatePreviewLegacyUpdateOperationGeneratedByMaximumSetRule( + public static void enterpriseMccCacheNodesOperationsGetCacheNodeTlsCertificateHistoryMaximumSet( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - CacheNodePreviewResource resource = manager.cacheNodesOperations() - .getByResourceGroupWithResponse("rgConnectedCache", "wlrwpdbcv", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key5032", "fakeTokenPlaceholder")).apply(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + manager.enterpriseMccCacheNodesOperations() + .getCacheNodeTlsCertificateHistoryWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); } } ``` -### EnterpriseCustomerOperations_CreateOrUpdate +### EnterpriseMccCacheNodesOperations_GetCacheNodeTlsCertificateHistory ```java -import com.azure.core.management.exception.ManagementError; -import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; -import java.util.HashMap; -import java.util.Map; - /** - * Samples for EnterpriseCustomerOperations CreateOrUpdate. + * Samples for EnterpriseMccCustomers Delete. */ -public final class EnterpriseCustomerOperationsCreateOrUpdateSamples { +public final class EnterpriseMccCustomersDeleteSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseCustomerOperations_CreateOrUpdate. + * Sample code: EnterpriseMccCustomers_Delete. * * @param manager Entry point to ConnectedCacheManager. */ - public static void enterpriseCustomerOperationsCreateOrUpdate( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseCustomerOperations() - .define("l") - .withRegion("zdzhhkjyogrqxwihkifnmeyhwpujbr") - .withExistingResourceGroup("rgConnectedCache") - .withTags(mapOf("key4215", "fakeTokenPlaceholder")) - .withProperties(new CacheNodeOldResponse().withStatusCode("fakeTokenPlaceholder") - .withStatusText("bs") - .withStatusDetails("lhwvcz") - .withError(new ManagementError())) - .create(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + public static void + enterpriseMccCustomersDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers().delete("rgConnectedCache", "zktb", com.azure.core.util.Context.NONE); } } ``` -### EnterpriseCustomerOperations_Delete +### EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource ```java /** - * Samples for EnterpriseCustomerOperations Delete. + * Samples for EnterpriseMccCustomers GetByResourceGroup. */ -public final class EnterpriseCustomerOperationsDeleteSamples { +public final class EnterpriseMccCustomersGetByResourceGroupSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseCustomerOperations_Delete. + * Sample code: EnterpriseMccCustomers_Get. * * @param manager Entry point to ConnectedCacheManager. */ public static void - enterpriseCustomerOperationsDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseCustomerOperations() - .deleteByResourceGroupWithResponse("rgConnectedCache", - "jeubxmhiaihcusgnahblvvckbdcetacvqgwbohlrqucodtlwuyefpejskvamgrdnwgucziodcfpjhqy", + enterpriseMccCustomersGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "pvilvqkofbjbykupeewgvzlmjao", com.azure.core.util.Context.NONE); } } ``` -### EnterpriseCustomerOperations_GetByResourceGroup +### EnterpriseMccCacheNodesOperations_Update ```java /** - * Samples for EnterpriseCustomerOperations GetByResourceGroup. + * Samples for IspCacheNodesOperations GetCacheNodeAutoUpdateHistory. */ -public final class EnterpriseCustomerOperationsGetByResourceGroupSamples { +public final class IspCacheNodesOperationsGetCacheNodeAutoUpdateHistorySamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_GetCacheNodeAutoUpdateHistory_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseCustomerOperations_Get. + * Sample code: IspCacheNodesOperations_GetCacheNodeAutoUpdateHistory_MaximumSet. * * @param manager Entry point to ConnectedCacheManager. */ - public static void - enterpriseCustomerOperationsGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseCustomerOperations() - .getByResourceGroupWithResponse("rgConnectedCache", "MCCTPTest2", com.azure.core.util.Context.NONE); + public static void ispCacheNodesOperationsGetCacheNodeAutoUpdateHistoryMaximumSet( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .getCacheNodeAutoUpdateHistoryWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); } } ``` -### EnterpriseCustomerOperations_List +### EnterpriseMccCustomers_CreateOrUpdate ```java /** - * Samples for EnterpriseCustomerOperations List. + * Samples for IspCacheNodesOperations ListByIspCustomerResource. */ -public final class EnterpriseCustomerOperationsListSamples { +public final class IspCacheNodesOperationsListByIspCustomerResourceSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseCustomerOperations_ListBySubscription. + * Sample code: IspCacheNodesOperations_ListByIspCustomerResource. * * @param manager Entry point to ConnectedCacheManager. */ - public static void enterpriseCustomerOperationsListBySubscription( + public static void ispCacheNodesOperationsListByIspCustomerResource( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseCustomerOperations().list(com.azure.core.util.Context.NONE); + manager.ispCacheNodesOperations() + .listByIspCustomerResource("rgConnectedCache", "MccRPTest1", com.azure.core.util.Context.NONE); } } ``` -### EnterpriseCustomerOperations_ListByResourceGroup +### EnterpriseMccCustomers_Delete ```java /** - * Samples for EnterpriseCustomerOperations ListByResourceGroup. + * Samples for IspCustomers List. */ -public final class EnterpriseCustomerOperationsListByResourceGroupSamples { +public final class IspCustomersListSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseCustomerOperations_ListByResourceGroup. + * Sample code: ispCustomer List by Subscription - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void enterpriseCustomerOperationsListByResourceGroup( + public static void ispCustomerListBySubscriptionGeneratedByMaximumSetRule( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseCustomerOperations() - .listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); + manager.ispCustomers().list(com.azure.core.util.Context.NONE); } } ``` -### EnterpriseCustomerOperations_Update +### EnterpriseMccCustomers_GetByResourceGroup ```java -import com.azure.resourcemanager.connectedcache.models.EnterprisePreviewResource; -import java.util.HashMap; -import java.util.Map; - /** - * Samples for EnterpriseCustomerOperations Update. + * Samples for EnterpriseMccCustomers ListByResourceGroup. */ -public final class EnterpriseCustomerOperationsUpdateSamples { +public final class EnterpriseMccCustomersListByResourceGroupSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseCustomerOperations_Update. + * Sample code: EnterpriseMccCustomers_ListByResourceGroup. * * @param manager Entry point to ConnectedCacheManager. */ - public static void - enterpriseCustomerOperationsUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - EnterprisePreviewResource resource = manager.enterpriseCustomerOperations() - .getByResourceGroupWithResponse("rgConnectedCache", "MCCTPTest2", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + public static void enterpriseMccCustomersListByResourceGroup( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); } } ``` -### EnterpriseMccCacheNodesOperations_CreateOrUpdate +### EnterpriseMccCustomers_List ```java import com.azure.core.management.exception.ManagementError; @@ -438,56 +339,54 @@ import java.util.HashMap; import java.util.Map; /** - * Samples for EnterpriseMccCacheNodesOperations CreateOrUpdate. + * Samples for IspCacheNodesOperations CreateOrUpdate. */ -public final class EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples { +public final class IspCacheNodesOperationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: Creates an enterpriseMccCacheNode resource - generated by [MaximumSet] rule. + * Sample code: IspCacheNodesOperations_CreateOrUpdate. * * @param manager Entry point to ConnectedCacheManager. */ - public static void createsAnEnterpriseMccCacheNodeResourceGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseMccCacheNodesOperations() - .define("fgduqdovidpemlnmhelomffuafdrbgaasqznvrdkbvspfzsnrhncdtqquhijhdpwyzwleukqldpceyxqhqlftqrr") + public static void + ispCacheNodesOperationsCreateOrUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .define("cabakm") .withRegion("westus") - .withExistingEnterpriseMccCustomer("rgConnectedCache", "nhdkvstdrrtsxxuz") - .withTags(mapOf("key259", "fakeTokenPlaceholder")) + .withExistingIspCustomer("rgConnectedCache", "zpqzbmanlljgmkrthtydrtneavhlnlqkdmviq") + .withTags(mapOf("key4171", "fakeTokenPlaceholder")) .withProperties(new CacheNodeProperty() - .withCacheNode(new CacheNodeEntity().withFullyQualifiedResourceId("yeinlleavzbehelhsucb") - .withCustomerName("zsklcocjfjhkcpmzyefzkwamdzc") - .withIpAddress("gbfkdhloyphnpnhemwrcrxlk") - .withCustomerIndex("vafvezmelfgmjsrccjukrhppljvipg") - .withCacheNodeId("fmrjefyddfn") - .withCacheNodeName("qppvqxliajjfoalzjbgmxggr") - .withCustomerAsn(25) + .withCacheNode(new CacheNodeEntity().withFullyQualifiedResourceId("hskxkpbiqbrbjiwdzrxndru") + .withCustomerName("xwyqk") + .withIpAddress("voctagljcwqgcpnionqdcbjk") + .withCustomerIndex("qtoiglqaswivmkjhzogburcxtszmek") + .withCacheNodeId("xjzffjftwcgsehanoxsl") + .withCacheNodeName("mfjxb") + .withCustomerAsn(4) .withIsEnabled(true) - .withMaxAllowableEgressInMbps(27) + .withMaxAllowableEgressInMbps(29) .withIsEnterpriseManaged(true) .withCidrCsv(Arrays.asList("nlqlvrthafvvljuupcbcw")) .withShouldMigrate(true) - .withCidrSelectionType(11)) - .withAdditionalCacheNodeProperties(new AdditionalCacheNodeProperties() - .withCacheNodePropertiesDetailsIssuesList(Arrays.asList("ennbzfpuszgalzpawmwicaofqcwcj")) - .withDriveConfiguration( - Arrays.asList(new CacheNodeDriveConfiguration().withPhysicalPath("pcbkezoofhamkycot") - .withSizeInGb(14) - .withCacheNumber(11) - .withNginxMapping("cirlpkpuxg"))) - .withBgpConfiguration(new BgpConfiguration().withAsnToIpAddressMapping("fjbggfvumrn")) - .withProxyUrlConfiguration(new ProxyUrlConfiguration().withProxyUrl("hplstyg")) - .withProxyUrl("ihkzxlzvpcywtzrogupqozkdud") - .withOptionalProperty1("ph") - .withOptionalProperty2("soqqgpgcbhb") - .withOptionalProperty3("fpnycrbagptsujiotnjfuhlm") - .withOptionalProperty4("gesqugrxvhxlxxyvatgrautxwlmxsf") - .withOptionalProperty5("zknjgzpaqtvdqjydd")) + .withCidrSelectionType(4)) + .withAdditionalCacheNodeProperties( + new AdditionalCacheNodeProperties().withCacheNodePropertiesDetailsIssuesList(Arrays.asList("ex")) + .withDriveConfiguration(Arrays.asList(new CacheNodeDriveConfiguration().withPhysicalPath("/mcc") + .withSizeInGb(500) + .withCacheNumber(1) + .withNginxMapping("lijygenjq"))) + .withBgpConfiguration(new BgpConfiguration().withAsnToIpAddressMapping("pafcimhoog")) + .withProxyUrlConfiguration(new ProxyUrlConfiguration().withProxyUrl("hplstyg")) + .withOptionalProperty1("hvpmt") + .withOptionalProperty2("talanelmsgxvksrzoeeontqkjzbpv") + .withOptionalProperty3("bxkoxq") + .withOptionalProperty4("pqlkcekupusoc") + .withOptionalProperty5("nyvvmrjigqdufzjdvazdca")) .withStatusCode("fakeTokenPlaceholder") .withStatusText("Success") - .withStatusDetails("lgljxmyyoakw") + .withStatusDetails("djruqvptzxak") .withError(new ManagementError())) .create(); } @@ -506,150 +405,81 @@ public final class EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples { } ``` -### EnterpriseMccCacheNodesOperations_Delete +### EnterpriseMccCustomers_ListByResourceGroup ```java /** - * Samples for EnterpriseMccCacheNodesOperations Delete. + * Samples for IspCacheNodesOperations GetCacheNodeInstallDetails. */ -public final class EnterpriseMccCacheNodesOperationsDeleteSamples { +public final class IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseMccCacheNodesOperations Delete Operation - generated by [MaximumSet] rule. + * Sample code: ispCacheNode resource get install details - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void enterpriseMccCacheNodesOperationsDeleteOperationGeneratedByMaximumSetRule( + public static void ispCacheNodeResourceGetInstallDetailsGeneratedByMaximumSetRule( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseMccCacheNodesOperations() - .delete("rgConnectedCache", "hsincngmssuzeyispnufqwinpopadvhsbsemisguxgovwdjwviqexocelijvuyr", - "vwtrhdoxvkrunpliwcao", com.azure.core.util.Context.NONE); + manager.ispCacheNodesOperations() + .getCacheNodeInstallDetailsWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); } } ``` -### EnterpriseMccCacheNodesOperations_Get +### EnterpriseMccCustomers_Update ```java /** - * Samples for EnterpriseMccCacheNodesOperations Get. + * Samples for IspCacheNodesOperations Get. */ -public final class EnterpriseMccCacheNodesOperationsGetSamples { +public final class IspCacheNodesOperationsGetSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json */ /** - * Sample code: Gets enterpriseMccCacheNode resource information of an enterprise mcc customer parent resource - - * generated by [MaximumSet] rule. + * Sample code: IspCacheNodes Get resource - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void - getsEnterpriseMccCacheNodeResourceInformationOfAnEnterpriseMccCustomerParentResourceGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseMccCacheNodesOperations() - .getWithResponse("rgConnectedCache", "cygqjgtcetihsajgyqwwrbclssqsvhgltrboemcqqtpoxdbhykqxblaihmrumyhbsx", - "fqxfadsultwjfzdwlqkvneakfsbyhratytmssmiukpbnus", com.azure.core.util.Context.NONE); - } -} -``` - -### EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails - -```java -/** - * Samples for EnterpriseMccCacheNodesOperations GetCacheNodeInstallDetails. - */ -public final class EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples { - /* - * x-ms-original-file: - * 2023-05-01-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json - */ - /** - * Sample code: Gets required properties for enterprise Mcc CacheNode resource install key details - generated by - * [MaximumSet] rule. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void - getsRequiredPropertiesForEnterpriseMccCacheNodeResourceInstallKeyDetailsGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseMccCacheNodesOperations() - .getCacheNodeInstallDetailsWithResponse("rgConnectedCache", "fzwxcjmdpxxzayecabqqlh", - "ccexmqqttritxvtctivraso", com.azure.core.util.Context.NONE); - } -} -``` - -### EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource - -```java -/** - * Samples for EnterpriseMccCacheNodesOperations ListByEnterpriseMccCustomerResource. - */ -public final class EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples { - /* - * x-ms-original-file: - * 2023-05-01-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json - */ - /** - * Sample code: EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void enterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResource( + public static void ispCacheNodesGetResourceGeneratedByMaximumSetRule( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseMccCacheNodesOperations() - .listByEnterpriseMccCustomerResource("rgConnectedCache", "syjjjzk", com.azure.core.util.Context.NONE); + manager.ispCacheNodesOperations() + .getWithResponse("rgConnectedCache", + "sgtqjsitdrskmgyrrkntszwrrjjkretscpjgaezraucvcwececlelcsorfunrnvxyxcsrg", "lbsziwmudcjnwnwy", + com.azure.core.util.Context.NONE); } } ``` -### EnterpriseMccCacheNodesOperations_Update +### IspCacheNodesOperations_CreateOrUpdate ```java -import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodeResource; -import java.util.HashMap; -import java.util.Map; - /** - * Samples for EnterpriseMccCacheNodesOperations Update. + * Samples for IspCacheNodesOperations GetCacheNodeMccIssueDetailsHistory. */ -public final class EnterpriseMccCacheNodesOperationsUpdateSamples { +public final class IspCacheNodesOperationsGetCacheNodeMccIssueDetailsHistorySamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json + * x-ms-original-file: + * 2024-11-30-preview/IspCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseMccCacheNodesOperations Update - generated by [MaximumSet] rule. + * Sample code: IspCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory_MaximumSet. * * @param manager Entry point to ConnectedCacheManager. */ - public static void enterpriseMccCacheNodesOperationsUpdateGeneratedByMaximumSetRule( + public static void ispCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryMaximumSet( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - EnterpriseMccCacheNodeResource resource = manager.enterpriseMccCacheNodesOperations() - .getWithResponse("rgConnectedCache", "qanjqtvrxzjkljdysdjvdiqcxkttskpdzykzuefhbhz", - "kllmlvazrcxmfjfozulzqnsgvspgwmhogcafvauchunlgfr", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + manager.ispCacheNodesOperations() + .getCacheNodeMccIssueDetailsHistoryWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); } } ``` -### EnterpriseMccCustomers_CreateOrUpdate +### IspCacheNodesOperations_Delete ```java import com.azure.resourcemanager.connectedcache.models.AdditionalCustomerProperties; @@ -661,24 +491,24 @@ import java.util.HashMap; import java.util.Map; /** - * Samples for EnterpriseMccCustomers CreateOrUpdate. + * Samples for IspCustomers CreateOrUpdate. */ -public final class EnterpriseMccCustomersCreateOrUpdateSamples { +public final class IspCustomersCreateOrUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseMccCustomers_CreateOrUpdate. + * Sample code: ispCustomer CreateOrUpdate - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void - enterpriseMccCustomersCreateOrUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseMccCustomers() - .define("MccRPTest1") + public static void ispCustomerCreateOrUpdateGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCustomers() + .define("MccRPTest2") .withRegion("westus") .withExistingResourceGroup("rgConnectedCache") - .withTags(mapOf("key3379", "fakeTokenPlaceholder")) + .withTags(mapOf("key1878", "fakeTokenPlaceholder")) .withProperties(new CustomerProperty() .withCustomer(new CustomerEntity().withFullyQualifiedResourceId("uqsbtgae") .withCustomerName("mkpzynfqihnjfdbaqbqwyhd") @@ -723,121 +553,181 @@ public final class EnterpriseMccCustomersCreateOrUpdateSamples { } ``` -### EnterpriseMccCustomers_Delete +### IspCacheNodesOperations_Get ```java +import com.azure.resourcemanager.connectedcache.models.IspCustomerResource; +import java.util.HashMap; +import java.util.Map; + /** - * Samples for EnterpriseMccCustomers Delete. + * Samples for IspCustomers Update. */ -public final class EnterpriseMccCustomersDeleteSamples { +public final class IspCustomersUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_Update_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseMccCustomers_Delete. + * Sample code: ispCustomer Update details - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void - enterpriseMccCustomersDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseMccCustomers().delete("rgConnectedCache", "zktb", com.azure.core.util.Context.NONE); + public static void ispCustomerUpdateDetailsGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + IspCustomerResource resource = manager.ispCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "MccRPTest2", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); + } + + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; } } ``` -### EnterpriseMccCustomers_GetByResourceGroup +### IspCacheNodesOperations_GetBgpCidrs ```java /** - * Samples for EnterpriseMccCustomers GetByResourceGroup. + * Samples for IspCacheNodesOperations Delete. */ -public final class EnterpriseMccCustomersGetByResourceGroupSamples { +public final class IspCacheNodesOperationsDeleteSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseMccCustomers_Get. + * Sample code: IspCacheNodes delete Operation - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void - enterpriseMccCustomersGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseMccCustomers() - .getByResourceGroupWithResponse("rgConnectedCache", "pvilvqkofbjbykupeewgvzlmjao", + public static void ispCacheNodesDeleteOperationGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .delete("rgConnectedCache", "lvpcosvbfxtpzscakewx", + "wsiruvexelltpbouqxvsogqpxdizcwqwfowybncvjunlakjwcpgmqbdbgzjrsmxlkczxnsxfonhnqqa", com.azure.core.util.Context.NONE); } } ``` -### EnterpriseMccCustomers_List +### IspCacheNodesOperations_GetCacheNodeAutoUpdateHistory ```java /** - * Samples for EnterpriseMccCustomers List. + * Samples for EnterpriseMccCacheNodesOperations Delete. */ -public final class EnterpriseMccCustomersListSamples { +public final class EnterpriseMccCacheNodesOperationsDeleteSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseMccCustomers_ListBySubscription. + * Sample code: EnterpriseMccCacheNodesOperations Delete Operation - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void enterpriseMccCustomersListBySubscription( + public static void enterpriseMccCacheNodesOperationsDeleteOperationGeneratedByMaximumSetRule( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseMccCustomers().list(com.azure.core.util.Context.NONE); + manager.enterpriseMccCacheNodesOperations() + .delete("rgConnectedCache", "hsincngmssuzeyispnufqwinpopadvhsbsemisguxgovwdjwviqexocelijvuyr", + "vwtrhdoxvkrunpliwcao", com.azure.core.util.Context.NONE); } } ``` -### EnterpriseMccCustomers_ListByResourceGroup +### IspCacheNodesOperations_GetCacheNodeInstallDetails ```java /** - * Samples for EnterpriseMccCustomers ListByResourceGroup. + * Samples for EnterpriseMccCacheNodesOperations GetCacheNodeInstallDetails. */ -public final class EnterpriseMccCustomersListByResourceGroupSamples { +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: + * 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseMccCustomers_ListByResourceGroup. + * Sample code: Gets required properties for enterprise Mcc CacheNode resource install key details - generated by + * [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void enterpriseMccCustomersListByResourceGroup( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseMccCustomers().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); + public static void + getsRequiredPropertiesForEnterpriseMccCacheNodeResourceInstallKeyDetailsGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .getCacheNodeInstallDetailsWithResponse("rgConnectedCache", "fzwxcjmdpxxzayecabqqlh", + "ccexmqqttritxvtctivraso", com.azure.core.util.Context.NONE); } } ``` -### EnterpriseMccCustomers_Update +### IspCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory ```java -import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCustomerResource; +import com.azure.resourcemanager.connectedcache.models.AdditionalCustomerProperties; +import com.azure.resourcemanager.connectedcache.models.CustomerEntity; +import com.azure.resourcemanager.connectedcache.models.CustomerProperty; +import com.azure.resourcemanager.connectedcache.models.CustomerTransitState; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; /** - * Samples for EnterpriseMccCustomers Update. + * Samples for EnterpriseMccCustomers CreateOrUpdate. */ -public final class EnterpriseMccCustomersUpdateSamples { +public final class EnterpriseMccCustomersCreateOrUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: EnterpriseMccCustomers_Update. + * Sample code: EnterpriseMccCustomers_CreateOrUpdate. * * @param manager Entry point to ConnectedCacheManager. */ public static void - enterpriseMccCustomersUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - EnterpriseMccCustomerResource resource = manager.enterpriseMccCustomers() - .getByResourceGroupWithResponse("rgConnectedCache", "MccRPTest1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key1878", "fakeTokenPlaceholder")).apply(); + enterpriseMccCustomersCreateOrUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCustomers() + .define("MccRPTest1") + .withRegion("westus") + .withExistingResourceGroup("rgConnectedCache") + .withTags(mapOf("key3379", "fakeTokenPlaceholder")) + .withProperties(new CustomerProperty() + .withCustomer(new CustomerEntity().withFullyQualifiedResourceId("uqsbtgae") + .withCustomerName("mkpzynfqihnjfdbaqbqwyhd") + .withContactEmail("xquos") + .withContactPhone("vue") + .withContactName("wxyqjoyoscmvimgwhpitxky") + .withIsEntitled(true) + .withReleaseVersion(20) + .withClientTenantId("fproidkpgvpdnac") + .withIsEnterpriseManaged(true) + .withShouldMigrate(true) + .withResendSignupCode(true) + .withVerifySignupCode(true) + .withVerifySignupPhrase("tprjvttkgmrqlsyicnidhm")) + .withAdditionalCustomerProperties(new AdditionalCustomerProperties().withCustomerEmail("zdjgibsidydyzm") + .withCustomerTransitAsn("habgklnxqzmozqpazoyejwiphezpi") + .withCustomerTransitState(CustomerTransitState.fromString("voblixkxfejbmhxilb")) + .withCustomerAsn("hgrelgnrtdkleisnepfolu") + .withCustomerEntitlementSkuId("b") + .withCustomerEntitlementSkuGuid("rvzmdpxyflgqetvpwupnfaxsweiiz") + .withCustomerEntitlementSkuName("waaqfijr") + .withCustomerEntitlementExpiration(OffsetDateTime.parse("2024-01-30T00:54:04.773Z")) + .withOptionalProperty1("qhmwxza") + .withOptionalProperty2("l") + .withOptionalProperty3("mblwwvbie") + .withOptionalProperty4("vzuek") + .withOptionalProperty5("fzjodscdfcdr"))) + .create(); } // Use "Map.of" if available @@ -854,7 +744,7 @@ public final class EnterpriseMccCustomersUpdateSamples { } ``` -### IspCacheNodesOperations_CreateOrUpdate +### IspCacheNodesOperations_ListByIspCustomerResource ```java import com.azure.core.management.exception.ManagementError; @@ -869,55 +759,55 @@ import java.util.HashMap; import java.util.Map; /** - * Samples for IspCacheNodesOperations CreateOrUpdate. + * Samples for EnterpriseMccCacheNodesOperations CreateOrUpdate. */ -public final class IspCacheNodesOperationsCreateOrUpdateSamples { +public final class EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json */ /** - * Sample code: IspCacheNodesOperations_CreateOrUpdate. + * Sample code: Creates an enterpriseMccCacheNode resource - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void - ispCacheNodesOperationsCreateOrUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.ispCacheNodesOperations() - .define("cabakm") + public static void createsAnEnterpriseMccCacheNodeResourceGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .define("fgduqdovidpemlnmhelomffuafdrbgaasqznvrdkbvspfzsnrhncdtqquhijhdpwyzwleukqldpceyxqhqlftqrr") .withRegion("westus") - .withExistingIspCustomer("rgConnectedCache", "zpqzbmanlljgmkrthtydrtneavhlnlqkdmviq") - .withTags(mapOf("key4171", "fakeTokenPlaceholder")) + .withExistingEnterpriseMccCustomer("rgConnectedCache", "nhdkvstdrrtsxxuz") + .withTags(mapOf("key259", "fakeTokenPlaceholder")) .withProperties(new CacheNodeProperty() - .withCacheNode(new CacheNodeEntity().withFullyQualifiedResourceId("hskxkpbiqbrbjiwdzrxndru") - .withCustomerName("xwyqk") - .withIpAddress("voctagljcwqgcpnionqdcbjk") - .withCustomerIndex("qtoiglqaswivmkjhzogburcxtszmek") - .withCacheNodeId("xjzffjftwcgsehanoxsl") - .withCacheNodeName("mfjxb") - .withCustomerAsn(4) + .withCacheNode(new CacheNodeEntity().withFullyQualifiedResourceId("yeinlleavzbehelhsucb") + .withCustomerName("zsklcocjfjhkcpmzyefzkwamdzc") + .withIpAddress("gbfkdhloyphnpnhemwrcrxlk") + .withCustomerIndex("vafvezmelfgmjsrccjukrhppljvipg") + .withCacheNodeId("fmrjefyddfn") + .withCacheNodeName("qppvqxliajjfoalzjbgmxggr") + .withCustomerAsn(25) .withIsEnabled(true) - .withMaxAllowableEgressInMbps(29) + .withMaxAllowableEgressInMbps(27) .withIsEnterpriseManaged(true) .withCidrCsv(Arrays.asList("nlqlvrthafvvljuupcbcw")) .withShouldMigrate(true) - .withCidrSelectionType(4)) - .withAdditionalCacheNodeProperties( - new AdditionalCacheNodeProperties().withCacheNodePropertiesDetailsIssuesList(Arrays.asList("ex")) - .withDriveConfiguration(Arrays.asList(new CacheNodeDriveConfiguration().withPhysicalPath("/mcc") - .withSizeInGb(500) - .withCacheNumber(1) - .withNginxMapping("lijygenjq"))) - .withBgpConfiguration(new BgpConfiguration().withAsnToIpAddressMapping("pafcimhoog")) - .withProxyUrlConfiguration(new ProxyUrlConfiguration().withProxyUrl("hplstyg")) - .withProxyUrl("qhux") - .withOptionalProperty1("hvpmt") - .withOptionalProperty2("talanelmsgxvksrzoeeontqkjzbpv") - .withOptionalProperty3("bxkoxq") - .withOptionalProperty4("pqlkcekupusoc") - .withOptionalProperty5("nyvvmrjigqdufzjdvazdca")) + .withCidrSelectionType(11)) + .withAdditionalCacheNodeProperties(new AdditionalCacheNodeProperties() + .withCacheNodePropertiesDetailsIssuesList(Arrays.asList("ennbzfpuszgalzpawmwicaofqcwcj")) + .withDriveConfiguration( + Arrays.asList(new CacheNodeDriveConfiguration().withPhysicalPath("pcbkezoofhamkycot") + .withSizeInGb(14) + .withCacheNumber(11) + .withNginxMapping("cirlpkpuxg"))) + .withBgpConfiguration(new BgpConfiguration().withAsnToIpAddressMapping("fjbggfvumrn")) + .withProxyUrlConfiguration(new ProxyUrlConfiguration().withProxyUrl("hplstyg")) + .withOptionalProperty1("ph") + .withOptionalProperty2("soqqgpgcbhb") + .withOptionalProperty3("fpnycrbagptsujiotnjfuhlm") + .withOptionalProperty4("gesqugrxvhxlxxyvatgrautxwlmxsf") + .withOptionalProperty5("zknjgzpaqtvdqjydd")) .withStatusCode("fakeTokenPlaceholder") .withStatusText("Success") - .withStatusDetails("djruqvptzxak") + .withStatusDetails("lgljxmyyoakw") .withError(new ManagementError())) .create(); } @@ -936,226 +826,171 @@ public final class IspCacheNodesOperationsCreateOrUpdateSamples { } ``` -### IspCacheNodesOperations_Delete +### IspCacheNodesOperations_Update ```java /** - * Samples for IspCacheNodesOperations Delete. + * Samples for EnterpriseMccCacheNodesOperations GetCacheNodeAutoUpdateHistory. */ -public final class IspCacheNodesOperationsDeleteSamples { +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeAutoUpdateHistorySamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json + * x-ms-original-file: + * 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeAutoUpdateHistory_MaximumSet_Gen.json */ /** - * Sample code: IspCacheNodes delete Operation - generated by [MaximumSet] rule. + * Sample code: EnterpriseMccCacheNodesOperations_GetCacheNodeAutoUpdateHistory_MaximumSet. * * @param manager Entry point to ConnectedCacheManager. */ - public static void ispCacheNodesDeleteOperationGeneratedByMaximumSetRule( + public static void enterpriseMccCacheNodesOperationsGetCacheNodeAutoUpdateHistoryMaximumSet( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.ispCacheNodesOperations() - .delete("rgConnectedCache", "lvpcosvbfxtpzscakewx", - "wsiruvexelltpbouqxvsogqpxdizcwqwfowybncvjunlakjwcpgmqbdbgzjrsmxlkczxnsxfonhnqqa", + manager.enterpriseMccCacheNodesOperations() + .getCacheNodeAutoUpdateHistoryWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", com.azure.core.util.Context.NONE); } } ``` -### IspCacheNodesOperations_Get +### IspCustomers_CreateOrUpdate ```java +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCustomerResource; +import java.util.HashMap; +import java.util.Map; + /** - * Samples for IspCacheNodesOperations Get. + * Samples for EnterpriseMccCustomers Update. */ -public final class IspCacheNodesOperationsGetSamples { +public final class EnterpriseMccCustomersUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json */ /** - * Sample code: IspCacheNodes Get resource - generated by [MaximumSet] rule. + * Sample code: EnterpriseMccCustomers_Update. * * @param manager Entry point to ConnectedCacheManager. */ - public static void ispCacheNodesGetResourceGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.ispCacheNodesOperations() - .getWithResponse("rgConnectedCache", - "sgtqjsitdrskmgyrrkntszwrrjjkretscpjgaezraucvcwececlelcsorfunrnvxyxcsrg", "lbsziwmudcjnwnwy", - com.azure.core.util.Context.NONE); + public static void + enterpriseMccCustomersUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + EnterpriseMccCustomerResource resource = manager.enterpriseMccCustomers() + .getByResourceGroupWithResponse("rgConnectedCache", "MccRPTest1", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1878", "fakeTokenPlaceholder")).apply(); } -} -``` -### IspCacheNodesOperations_GetBgpCidrs - -```java -/** - * Samples for IspCacheNodesOperations GetBgpCidrs. - */ -public final class IspCacheNodesOperationsGetBgpCidrsSamples { - /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json - */ - /** - * Sample code: IspCacheNodes resource BgpCidrs details - generated by [MaximumSet] rule. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void ispCacheNodesResourceBgpCidrsDetailsGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.ispCacheNodesOperations() - .getBgpCidrsWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", - com.azure.core.util.Context.NONE); + // Use "Map.of" if available + @SuppressWarnings("unchecked") + private static Map mapOf(Object... inputs) { + Map map = new HashMap<>(); + for (int i = 0; i < inputs.length; i += 2) { + String key = (String) inputs[i]; + T value = (T) inputs[i + 1]; + map.put(key, value); + } + return map; } } ``` -### IspCacheNodesOperations_GetCacheNodeInstallDetails +### IspCustomers_Delete ```java /** - * Samples for IspCacheNodesOperations GetCacheNodeInstallDetails. + * Samples for EnterpriseMccCacheNodesOperations Get. */ -public final class IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples { +public final class EnterpriseMccCacheNodesOperationsGetSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json */ /** - * Sample code: ispCacheNode resource get install details - generated by [MaximumSet] rule. + * Sample code: Gets enterpriseMccCacheNode resource information of an enterprise mcc customer parent resource - + * generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void ispCacheNodeResourceGetInstallDetailsGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.ispCacheNodesOperations() - .getCacheNodeInstallDetailsWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", - com.azure.core.util.Context.NONE); + public static void + getsEnterpriseMccCacheNodeResourceInformationOfAnEnterpriseMccCustomerParentResourceGeneratedByMaximumSetRule( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .getWithResponse("rgConnectedCache", "cygqjgtcetihsajgyqwwrbclssqsvhgltrboemcqqtpoxdbhykqxblaihmrumyhbsx", + "fqxfadsultwjfzdwlqkvneakfsbyhratytmssmiukpbnus", com.azure.core.util.Context.NONE); } } ``` -### IspCacheNodesOperations_ListByIspCustomerResource +### IspCustomers_GetByResourceGroup ```java /** - * Samples for IspCacheNodesOperations ListByIspCustomerResource. + * Samples for IspCustomers ListByResourceGroup. */ -public final class IspCacheNodesOperationsListByIspCustomerResourceSamples { +public final class IspCustomersListByResourceGroupSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json */ /** - * Sample code: IspCacheNodesOperations_ListByIspCustomerResource. + * Sample code: IspCustomers resource List by Resource group - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void ispCacheNodesOperationsListByIspCustomerResource( + public static void ispCustomersResourceListByResourceGroupGeneratedByMaximumSetRule( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.ispCacheNodesOperations() - .listByIspCustomerResource("rgConnectedCache", "MccRPTest1", com.azure.core.util.Context.NONE); + manager.ispCustomers().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); } } ``` -### IspCacheNodesOperations_Update +### IspCustomers_List ```java -import com.azure.resourcemanager.connectedcache.models.IspCacheNodeResource; -import java.util.HashMap; -import java.util.Map; - /** - * Samples for IspCacheNodesOperations Update. + * Samples for EnterpriseMccCacheNodesOperations GetCacheNodeMccIssueDetailsHistory. */ -public final class IspCacheNodesOperationsUpdateSamples { +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeMccIssueDetailsHistorySamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json + * x-ms-original-file: + * 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory_MaximumSet_Gen.json */ /** - * Sample code: IspCacheNodesOperations_Update. + * Sample code: EnterpriseMccCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory_MaximumSet. * * @param manager Entry point to ConnectedCacheManager. */ - public static void - ispCacheNodesOperationsUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - IspCacheNodeResource resource = manager.ispCacheNodesOperations() - .getWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; + public static void enterpriseMccCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryMaximumSet( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .getCacheNodeMccIssueDetailsHistoryWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); } } ``` -### IspCustomers_CreateOrUpdate +### IspCustomers_ListByResourceGroup ```java -import com.azure.resourcemanager.connectedcache.models.AdditionalCustomerProperties; -import com.azure.resourcemanager.connectedcache.models.CustomerEntity; -import com.azure.resourcemanager.connectedcache.models.CustomerProperty; -import com.azure.resourcemanager.connectedcache.models.CustomerTransitState; -import java.time.OffsetDateTime; +import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodeResource; import java.util.HashMap; import java.util.Map; /** - * Samples for IspCustomers CreateOrUpdate. + * Samples for EnterpriseMccCacheNodesOperations Update. */ -public final class IspCustomersCreateOrUpdateSamples { +public final class EnterpriseMccCacheNodesOperationsUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json */ /** - * Sample code: ispCustomer CreateOrUpdate - generated by [MaximumSet] rule. + * Sample code: EnterpriseMccCacheNodesOperations Update - generated by [MaximumSet] rule. * * @param manager Entry point to ConnectedCacheManager. */ - public static void ispCustomerCreateOrUpdateGeneratedByMaximumSetRule( + public static void enterpriseMccCacheNodesOperationsUpdateGeneratedByMaximumSetRule( com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.ispCustomers() - .define("MccRPTest2") - .withRegion("westus") - .withExistingResourceGroup("rgConnectedCache") - .withTags(mapOf("key1878", "fakeTokenPlaceholder")) - .withProperties(new CustomerProperty() - .withCustomer(new CustomerEntity().withFullyQualifiedResourceId("uqsbtgae") - .withCustomerName("mkpzynfqihnjfdbaqbqwyhd") - .withContactEmail("xquos") - .withContactPhone("vue") - .withContactName("wxyqjoyoscmvimgwhpitxky") - .withIsEntitled(true) - .withReleaseVersion(20) - .withClientTenantId("fproidkpgvpdnac") - .withIsEnterpriseManaged(true) - .withShouldMigrate(true) - .withResendSignupCode(true) - .withVerifySignupCode(true) - .withVerifySignupPhrase("tprjvttkgmrqlsyicnidhm")) - .withAdditionalCustomerProperties(new AdditionalCustomerProperties().withCustomerEmail("zdjgibsidydyzm") - .withCustomerTransitAsn("habgklnxqzmozqpazoyejwiphezpi") - .withCustomerTransitState(CustomerTransitState.fromString("voblixkxfejbmhxilb")) - .withCustomerAsn("hgrelgnrtdkleisnepfolu") - .withCustomerEntitlementSkuId("b") - .withCustomerEntitlementSkuGuid("rvzmdpxyflgqetvpwupnfaxsweiiz") - .withCustomerEntitlementSkuName("waaqfijr") - .withCustomerEntitlementExpiration(OffsetDateTime.parse("2024-01-30T00:54:04.773Z")) - .withOptionalProperty1("qhmwxza") - .withOptionalProperty2("l") - .withOptionalProperty3("mblwwvbie") - .withOptionalProperty4("vzuek") - .withOptionalProperty5("fzjodscdfcdr"))) - .create(); + EnterpriseMccCacheNodeResource resource = manager.enterpriseMccCacheNodesOperations() + .getWithResponse("rgConnectedCache", "qanjqtvrxzjkljdysdjvdiqcxkttskpdzykzuefhbhz", + "kllmlvazrcxmfjfozulzqnsgvspgwmhogcafvauchunlgfr", com.azure.core.util.Context.NONE) + .getValue(); + resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); } // Use "Map.of" if available @@ -1172,7 +1007,7 @@ public final class IspCustomersCreateOrUpdateSamples { } ``` -### IspCustomers_Delete +### IspCustomers_Update ```java /** @@ -1180,7 +1015,7 @@ public final class IspCustomersCreateOrUpdateSamples { */ public final class IspCustomersDeleteSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_Delete_MaximumSet_Gen.json */ /** * Sample code: IspCustomers Delete - generated by [MaximumSet] rule. @@ -1196,97 +1031,29 @@ public final class IspCustomersDeleteSamples { } ``` -### IspCustomers_GetByResourceGroup - -```java -/** - * Samples for IspCustomers GetByResourceGroup. - */ -public final class IspCustomersGetByResourceGroupSamples { - /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_Get_MaximumSet_Gen.json - */ - /** - * Sample code: IspCustomers Get - generated by [MaximumSet] rule. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void ispCustomersGetGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.ispCustomers() - .getByResourceGroupWithResponse("rgConnectedCache", "cmcjfueweicolcjkwmsuvcj", - com.azure.core.util.Context.NONE); - } -} -``` - -### IspCustomers_List - -```java -/** - * Samples for IspCustomers List. - */ -public final class IspCustomersListSamples { - /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json - */ - /** - * Sample code: ispCustomer List by Subscription - generated by [MaximumSet] rule. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void ispCustomerListBySubscriptionGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.ispCustomers().list(com.azure.core.util.Context.NONE); - } -} -``` - -### IspCustomers_ListByResourceGroup - -```java -/** - * Samples for IspCustomers ListByResourceGroup. - */ -public final class IspCustomersListByResourceGroupSamples { - /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json - */ - /** - * Sample code: IspCustomers resource List by Resource group - generated by [MaximumSet] rule. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void ispCustomersResourceListByResourceGroupGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.ispCustomers().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); - } -} -``` - -### IspCustomers_Update +### Operations_List ```java -import com.azure.resourcemanager.connectedcache.models.IspCustomerResource; +import com.azure.resourcemanager.connectedcache.models.IspCacheNodeResource; import java.util.HashMap; import java.util.Map; /** - * Samples for IspCustomers Update. + * Samples for IspCacheNodesOperations Update. */ -public final class IspCustomersUpdateSamples { +public final class IspCacheNodesOperationsUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json */ /** - * Sample code: ispCustomer Update details - generated by [MaximumSet] rule. + * Sample code: IspCacheNodesOperations_Update. * * @param manager Entry point to ConnectedCacheManager. */ - public static void ispCustomerUpdateDetailsGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - IspCustomerResource resource = manager.ispCustomers() - .getByResourceGroupWithResponse("rgConnectedCache", "MccRPTest2", com.azure.core.util.Context.NONE) + public static void + ispCacheNodesOperationsUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + IspCacheNodeResource resource = manager.ispCacheNodesOperations() + .getWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", com.azure.core.util.Context.NONE) .getValue(); resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); } @@ -1305,25 +1072,3 @@ public final class IspCustomersUpdateSamples { } ``` -### Operations_List - -```java -/** - * Samples for Operations List. - */ -public final class OperationsListSamples { - /* - * x-ms-original-file: 2023-05-01-preview/Operations_List_MaximumSet_Gen.json - */ - /** - * Sample code: List the operations for the provider - generated by [MaximumSet] rule. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void listTheOperationsForTheProviderGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.operations().list(com.azure.core.util.Context.NONE); - } -} -``` - diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml b/sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml index dac72cef94e6..d647d27b5d86 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/pom.xml @@ -46,7 +46,6 @@ 0 0 true - false diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/ConnectedCacheManager.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/ConnectedCacheManager.java index d8a335d28ef7..f7b9f2b44f12 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/ConnectedCacheManager.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/ConnectedCacheManager.java @@ -25,16 +25,12 @@ import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.connectedcache.fluent.ConnectedCacheManagementClient; -import com.azure.resourcemanager.connectedcache.implementation.CacheNodesOperationsImpl; import com.azure.resourcemanager.connectedcache.implementation.ConnectedCacheManagementClientBuilder; -import com.azure.resourcemanager.connectedcache.implementation.EnterpriseCustomerOperationsImpl; import com.azure.resourcemanager.connectedcache.implementation.EnterpriseMccCacheNodesOperationsImpl; import com.azure.resourcemanager.connectedcache.implementation.EnterpriseMccCustomersImpl; import com.azure.resourcemanager.connectedcache.implementation.IspCacheNodesOperationsImpl; import com.azure.resourcemanager.connectedcache.implementation.IspCustomersImpl; import com.azure.resourcemanager.connectedcache.implementation.OperationsImpl; -import com.azure.resourcemanager.connectedcache.models.CacheNodesOperations; -import com.azure.resourcemanager.connectedcache.models.EnterpriseCustomerOperations; import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodesOperations; import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCustomers; import com.azure.resourcemanager.connectedcache.models.IspCacheNodesOperations; @@ -55,10 +51,6 @@ public final class ConnectedCacheManager { private Operations operations; - private EnterpriseCustomerOperations enterpriseCustomerOperations; - - private CacheNodesOperations cacheNodesOperations; - private IspCustomers ispCustomers; private IspCacheNodesOperations ispCacheNodesOperations; @@ -294,31 +286,6 @@ public Operations operations() { return operations; } - /** - * Gets the resource collection API of EnterpriseCustomerOperations. It manages EnterprisePreviewResource. - * - * @return Resource collection API of EnterpriseCustomerOperations. - */ - public EnterpriseCustomerOperations enterpriseCustomerOperations() { - if (this.enterpriseCustomerOperations == null) { - this.enterpriseCustomerOperations - = new EnterpriseCustomerOperationsImpl(clientObject.getEnterpriseCustomerOperations(), this); - } - return enterpriseCustomerOperations; - } - - /** - * Gets the resource collection API of CacheNodesOperations. It manages CacheNodePreviewResource. - * - * @return Resource collection API of CacheNodesOperations. - */ - public CacheNodesOperations cacheNodesOperations() { - if (this.cacheNodesOperations == null) { - this.cacheNodesOperations = new CacheNodesOperationsImpl(clientObject.getCacheNodesOperations(), this); - } - return cacheNodesOperations; - } - /** * Gets the resource collection API of IspCustomers. It manages IspCustomerResource. * diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/CacheNodesOperationsClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/CacheNodesOperationsClient.java deleted file mode 100644 index b94dbd4ac4bc..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/CacheNodesOperationsClient.java +++ /dev/null @@ -1,222 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; -import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; - -/** - * An instance of this class provides access to all the operations defined in CacheNodesOperationsClient. - */ -public interface CacheNodesOperationsClient { - /** - * Retrieves the properties of a cacheNodes. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, - String customerResourceName, Context context); - - /** - * Retrieves the properties of a cacheNodes. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CacheNodePreviewResourceInner getByResourceGroup(String resourceGroupName, String customerResourceName); - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this - * type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CacheNodePreviewResourceInner> beginCreateorUpdate( - String resourceGroupName, String customerResourceName, CacheNodePreviewResourceInner resource); - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this - * type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, CacheNodePreviewResourceInner> beginCreateorUpdate( - String resourceGroupName, String customerResourceName, CacheNodePreviewResourceInner resource, Context context); - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CacheNodePreviewResourceInner createorUpdate(String resourceGroupName, String customerResourceName, - CacheNodePreviewResourceInner resource); - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CacheNodePreviewResourceInner createorUpdate(String resourceGroupName, String customerResourceName, - CacheNodePreviewResourceInner resource, Context context); - - /** - * Deletes an existing cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String customerResourceName, Context context); - - /** - * Deletes an existing cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String customerResourceName); - - /** - * updates an existing Cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse(String resourceGroupName, String customerResourceName, - ConnectedCachePatchResource properties, Context context); - - /** - * updates an existing Cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CacheNodePreviewResourceInner update(String resourceGroupName, String customerResourceName, - ConnectedCachePatchResource properties); - - /** - * Retrieves the properties of all ConnectedCache. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Retrieves the properties of all ConnectedCache. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/ConnectedCacheManagementClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/ConnectedCacheManagementClient.java index 4a115fe922c0..649720d2f6b5 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/ConnectedCacheManagementClient.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/ConnectedCacheManagementClient.java @@ -53,20 +53,6 @@ public interface ConnectedCacheManagementClient { */ OperationsClient getOperations(); - /** - * Gets the EnterpriseCustomerOperationsClient object to access its operations. - * - * @return the EnterpriseCustomerOperationsClient object. - */ - EnterpriseCustomerOperationsClient getEnterpriseCustomerOperations(); - - /** - * Gets the CacheNodesOperationsClient object to access its operations. - * - * @return the CacheNodesOperationsClient object. - */ - CacheNodesOperationsClient getCacheNodesOperations(); - /** * Gets the IspCustomersClient object to access its operations. * diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseCustomerOperationsClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseCustomerOperationsClient.java deleted file mode 100644 index 192d69d7a1e0..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseCustomerOperationsClient.java +++ /dev/null @@ -1,219 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; -import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; - -/** - * An instance of this class provides access to all the operations defined in EnterpriseCustomerOperationsClient. - */ -public interface EnterpriseCustomerOperationsClient { - /** - * Retrieves the properties of a Enterprise customer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, - String customerResourceName, Context context); - - /** - * Retrieves the properties of a Enterprise customer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - EnterprisePreviewResourceInner getByResourceGroup(String resourceGroupName, String customerResourceName); - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, EnterprisePreviewResourceInner> beginCreateOrUpdate( - String resourceGroupName, String customerResourceName, EnterprisePreviewResourceInner resource); - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, EnterprisePreviewResourceInner> beginCreateOrUpdate( - String resourceGroupName, String customerResourceName, EnterprisePreviewResourceInner resource, - Context context); - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - EnterprisePreviewResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, - EnterprisePreviewResourceInner resource); - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - EnterprisePreviewResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, - EnterprisePreviewResourceInner resource, Context context); - - /** - * updates an existing enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response updateWithResponse(String resourceGroupName, String customerResourceName, - ConnectedCachePatchResource properties, Context context); - - /** - * updates an existing enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - EnterprisePreviewResourceInner update(String resourceGroupName, String customerResourceName, - ConnectedCachePatchResource properties); - - /** - * Deletes an existing customer Enterprise resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response deleteWithResponse(String resourceGroupName, String customerResourceName, Context context); - - /** - * Deletes an existing customer Enterprise resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String customerResourceName); - - /** - * Retrieves the properties of all ConnectedCache enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Retrieves the properties of all ConnectedCache enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCacheNodesOperationsClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCacheNodesOperationsClient.java index 57c4e3e1d6b1..12c903b44960 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCacheNodesOperationsClient.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/EnterpriseMccCacheNodesOperationsClient.java @@ -12,7 +12,10 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeAutoUpdateHistoryInner; import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeIssueHistoryInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeTlsCertificateHistoryInner; import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; /** @@ -273,4 +276,97 @@ Response getCacheNodeInstallDetailsWithResponse @ServiceMethod(returns = ReturnType.SINGLE) MccCacheNodeInstallDetailsInner getCacheNodeInstallDetails(String resourceGroupName, String customerResourceName, String cacheNodeResourceName); + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getCacheNodeAutoUpdateHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MccCacheNodeAutoUpdateHistoryInner getCacheNodeAutoUpdateHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getCacheNodeMccIssueDetailsHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MccCacheNodeIssueHistoryInner getCacheNodeMccIssueDetailsHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName); + + /** + * This api gets ispCacheNode resource tls certificate histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource Tls certificate history details along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getCacheNodeTlsCertificateHistoryWithResponse( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource tls certificate histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource Tls certificate history details. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MccCacheNodeTlsCertificateHistoryInner getCacheNodeTlsCertificateHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName); } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCacheNodesOperationsClient.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCacheNodesOperationsClient.java index 03d473d54b84..a5bb51f84f67 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCacheNodesOperationsClient.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/IspCacheNodesOperationsClient.java @@ -12,8 +12,10 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.connectedcache.fluent.models.IspCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeAutoUpdateHistoryInner; import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeBgpCidrDetailsInner; import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeIssueHistoryInner; import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; /** @@ -302,4 +304,66 @@ Response getCacheNodeInstallDetailsWithResponse @ServiceMethod(returns = ReturnType.SINGLE) MccCacheNodeInstallDetailsInner getCacheNodeInstallDetails(String resourceGroupName, String customerResourceName, String cacheNodeResourceName); + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getCacheNodeAutoUpdateHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MccCacheNodeAutoUpdateHistoryInner getCacheNodeAutoUpdateHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getCacheNodeMccIssueDetailsHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MccCacheNodeIssueHistoryInner getCacheNodeMccIssueDetailsHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName); } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterprisePreviewResourceInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeAutoUpdateHistoryInner.java similarity index 57% rename from sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterprisePreviewResourceInner.java rename to sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeAutoUpdateHistoryInner.java index a650e300f0e3..a4084d264b4a 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/EnterprisePreviewResourceInner.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeAutoUpdateHistoryInner.java @@ -4,26 +4,25 @@ package com.azure.resourcemanager.connectedcache.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeAutoUpdateHistoryProperties; import java.io.IOException; import java.util.Map; /** - * ConnectedCache Resource. Represents the high level Nodes needed to provision CacheNode and customer resources used in - * private preview. + * Mcc cache node resource auto update history. */ -@Fluent -public final class EnterprisePreviewResourceInner extends Resource { +@Immutable +public final class MccCacheNodeAutoUpdateHistoryInner extends Resource { /* - * The resource-specific properties for this resource. + * Mcc cache node resource auto update history properties. */ - private CacheNodeOldResponse properties; + private MccCacheNodeAutoUpdateHistoryProperties properties; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -46,31 +45,20 @@ public final class EnterprisePreviewResourceInner extends Resource { private String id; /** - * Creates an instance of EnterprisePreviewResourceInner class. + * Creates an instance of MccCacheNodeAutoUpdateHistoryInner class. */ - public EnterprisePreviewResourceInner() { + private MccCacheNodeAutoUpdateHistoryInner() { } /** - * Get the properties property: The resource-specific properties for this resource. + * Get the properties property: Mcc cache node resource auto update history properties. * * @return the properties value. */ - public CacheNodeOldResponse properties() { + public MccCacheNodeAutoUpdateHistoryProperties properties() { return this.properties; } - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the EnterprisePreviewResourceInner object itself. - */ - public EnterprisePreviewResourceInner withProperties(CacheNodeOldResponse properties) { - this.properties = properties; - return this; - } - /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * @@ -110,24 +98,6 @@ public String id() { return this.id; } - /** - * {@inheritDoc} - */ - @Override - public EnterprisePreviewResourceInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public EnterprisePreviewResourceInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Validates the instance. * @@ -152,43 +122,44 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of EnterprisePreviewResourceInner from the JsonReader. + * Reads an instance of MccCacheNodeAutoUpdateHistoryInner from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of EnterprisePreviewResourceInner if the JsonReader was pointing to an instance of it, or + * @return An instance of MccCacheNodeAutoUpdateHistoryInner if the JsonReader was pointing to an instance of it, or * null if it was pointing to JSON null. * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the EnterprisePreviewResourceInner. + * @throws IOException If an error occurs while reading the MccCacheNodeAutoUpdateHistoryInner. */ - public static EnterprisePreviewResourceInner fromJson(JsonReader jsonReader) throws IOException { + public static MccCacheNodeAutoUpdateHistoryInner fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - EnterprisePreviewResourceInner deserializedEnterprisePreviewResourceInner - = new EnterprisePreviewResourceInner(); + MccCacheNodeAutoUpdateHistoryInner deserializedMccCacheNodeAutoUpdateHistoryInner + = new MccCacheNodeAutoUpdateHistoryInner(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedEnterprisePreviewResourceInner.id = reader.getString(); + deserializedMccCacheNodeAutoUpdateHistoryInner.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedEnterprisePreviewResourceInner.name = reader.getString(); + deserializedMccCacheNodeAutoUpdateHistoryInner.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedEnterprisePreviewResourceInner.type = reader.getString(); + deserializedMccCacheNodeAutoUpdateHistoryInner.type = reader.getString(); } else if ("location".equals(fieldName)) { - deserializedEnterprisePreviewResourceInner.withLocation(reader.getString()); + deserializedMccCacheNodeAutoUpdateHistoryInner.withLocation(reader.getString()); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedEnterprisePreviewResourceInner.withTags(tags); + deserializedMccCacheNodeAutoUpdateHistoryInner.withTags(tags); } else if ("properties".equals(fieldName)) { - deserializedEnterprisePreviewResourceInner.properties = CacheNodeOldResponse.fromJson(reader); + deserializedMccCacheNodeAutoUpdateHistoryInner.properties + = MccCacheNodeAutoUpdateHistoryProperties.fromJson(reader); } else if ("systemData".equals(fieldName)) { - deserializedEnterprisePreviewResourceInner.systemData = SystemData.fromJson(reader); + deserializedMccCacheNodeAutoUpdateHistoryInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedEnterprisePreviewResourceInner; + return deserializedMccCacheNodeAutoUpdateHistoryInner; }); } } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/CacheNodePreviewResourceInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeIssueHistoryInner.java similarity index 62% rename from sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/CacheNodePreviewResourceInner.java rename to sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeIssueHistoryInner.java index 7a83c447e94f..ab6de59ffe65 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/CacheNodePreviewResourceInner.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeIssueHistoryInner.java @@ -4,25 +4,25 @@ package com.azure.resourcemanager.connectedcache.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.Resource; import com.azure.core.management.SystemData; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeIssueHistoryProperties; import java.io.IOException; import java.util.Map; /** - * Concrete tracked resource types can be created by aliasing this type using a specific property type. + * Mcc cache node resource issue history. */ -@Fluent -public final class CacheNodePreviewResourceInner extends Resource { +@Immutable +public final class MccCacheNodeIssueHistoryInner extends Resource { /* - * The resource-specific properties for this resource. + * Mcc cache node resource issue history properties. */ - private CacheNodeOldResponse properties; + private MccCacheNodeIssueHistoryProperties properties; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -45,31 +45,20 @@ public final class CacheNodePreviewResourceInner extends Resource { private String id; /** - * Creates an instance of CacheNodePreviewResourceInner class. + * Creates an instance of MccCacheNodeIssueHistoryInner class. */ - public CacheNodePreviewResourceInner() { + private MccCacheNodeIssueHistoryInner() { } /** - * Get the properties property: The resource-specific properties for this resource. + * Get the properties property: Mcc cache node resource issue history properties. * * @return the properties value. */ - public CacheNodeOldResponse properties() { + public MccCacheNodeIssueHistoryProperties properties() { return this.properties; } - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the CacheNodePreviewResourceInner object itself. - */ - public CacheNodePreviewResourceInner withProperties(CacheNodeOldResponse properties) { - this.properties = properties; - return this; - } - /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * @@ -109,24 +98,6 @@ public String id() { return this.id; } - /** - * {@inheritDoc} - */ - @Override - public CacheNodePreviewResourceInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public CacheNodePreviewResourceInner withTags(Map tags) { - super.withTags(tags); - return this; - } - /** * Validates the instance. * @@ -151,43 +122,44 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of CacheNodePreviewResourceInner from the JsonReader. + * Reads an instance of MccCacheNodeIssueHistoryInner from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of CacheNodePreviewResourceInner if the JsonReader was pointing to an instance of it, or null + * @return An instance of MccCacheNodeIssueHistoryInner if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the CacheNodePreviewResourceInner. + * @throws IOException If an error occurs while reading the MccCacheNodeIssueHistoryInner. */ - public static CacheNodePreviewResourceInner fromJson(JsonReader jsonReader) throws IOException { + public static MccCacheNodeIssueHistoryInner fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - CacheNodePreviewResourceInner deserializedCacheNodePreviewResourceInner - = new CacheNodePreviewResourceInner(); + MccCacheNodeIssueHistoryInner deserializedMccCacheNodeIssueHistoryInner + = new MccCacheNodeIssueHistoryInner(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedCacheNodePreviewResourceInner.id = reader.getString(); + deserializedMccCacheNodeIssueHistoryInner.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedCacheNodePreviewResourceInner.name = reader.getString(); + deserializedMccCacheNodeIssueHistoryInner.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedCacheNodePreviewResourceInner.type = reader.getString(); + deserializedMccCacheNodeIssueHistoryInner.type = reader.getString(); } else if ("location".equals(fieldName)) { - deserializedCacheNodePreviewResourceInner.withLocation(reader.getString()); + deserializedMccCacheNodeIssueHistoryInner.withLocation(reader.getString()); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedCacheNodePreviewResourceInner.withTags(tags); + deserializedMccCacheNodeIssueHistoryInner.withTags(tags); } else if ("properties".equals(fieldName)) { - deserializedCacheNodePreviewResourceInner.properties = CacheNodeOldResponse.fromJson(reader); + deserializedMccCacheNodeIssueHistoryInner.properties + = MccCacheNodeIssueHistoryProperties.fromJson(reader); } else if ("systemData".equals(fieldName)) { - deserializedCacheNodePreviewResourceInner.systemData = SystemData.fromJson(reader); + deserializedMccCacheNodeIssueHistoryInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedCacheNodePreviewResourceInner; + return deserializedMccCacheNodeIssueHistoryInner; }); } } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeTlsCertificateHistoryInner.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeTlsCertificateHistoryInner.java new file mode 100644 index 000000000000..f5444a6b8c57 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/fluent/models/MccCacheNodeTlsCertificateHistoryInner.java @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeTlsCertificateProperties; +import java.io.IOException; +import java.util.Map; + +/** + * Mcc cache node resource Tls certificate history details. + */ +@Immutable +public final class MccCacheNodeTlsCertificateHistoryInner extends Resource { + /* + * Mcc cache node resource Tls certificate details. + */ + private MccCacheNodeTlsCertificateProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of MccCacheNodeTlsCertificateHistoryInner class. + */ + private MccCacheNodeTlsCertificateHistoryInner() { + } + + /** + * Get the properties property: Mcc cache node resource Tls certificate details. + * + * @return the properties value. + */ + public MccCacheNodeTlsCertificateProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MccCacheNodeTlsCertificateHistoryInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MccCacheNodeTlsCertificateHistoryInner if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the MccCacheNodeTlsCertificateHistoryInner. + */ + public static MccCacheNodeTlsCertificateHistoryInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MccCacheNodeTlsCertificateHistoryInner deserializedMccCacheNodeTlsCertificateHistoryInner + = new MccCacheNodeTlsCertificateHistoryInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificateHistoryInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificateHistoryInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificateHistoryInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificateHistoryInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedMccCacheNodeTlsCertificateHistoryInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificateHistoryInner.properties + = MccCacheNodeTlsCertificateProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificateHistoryInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMccCacheNodeTlsCertificateHistoryInner; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodePreviewResourceImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodePreviewResourceImpl.java deleted file mode 100644 index c7222d6852dc..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodePreviewResourceImpl.java +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.implementation; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; -import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; -import com.azure.resourcemanager.connectedcache.models.CacheNodePreviewResource; -import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; -import java.util.Collections; -import java.util.Map; - -public final class CacheNodePreviewResourceImpl - implements CacheNodePreviewResource, CacheNodePreviewResource.Definition, CacheNodePreviewResource.Update { - private CacheNodePreviewResourceInner innerObject; - - private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public CacheNodeOldResponse properties() { - return this.innerModel().properties(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public CacheNodePreviewResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String customerResourceName; - - private ConnectedCachePatchResource updateProperties; - - public CacheNodePreviewResourceImpl withExistingResourceGroup(String resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - public CacheNodePreviewResource create() { - this.innerObject = serviceManager.serviceClient() - .getCacheNodesOperations() - .createorUpdate(resourceGroupName, customerResourceName, this.innerModel(), Context.NONE); - return this; - } - - public CacheNodePreviewResource create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getCacheNodesOperations() - .createorUpdate(resourceGroupName, customerResourceName, this.innerModel(), context); - return this; - } - - CacheNodePreviewResourceImpl(String name, - com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { - this.innerObject = new CacheNodePreviewResourceInner(); - this.serviceManager = serviceManager; - this.customerResourceName = name; - } - - public CacheNodePreviewResourceImpl update() { - this.updateProperties = new ConnectedCachePatchResource(); - return this; - } - - public CacheNodePreviewResource apply() { - this.innerObject = serviceManager.serviceClient() - .getCacheNodesOperations() - .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, Context.NONE) - .getValue(); - return this; - } - - public CacheNodePreviewResource apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getCacheNodesOperations() - .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, context) - .getValue(); - return this; - } - - CacheNodePreviewResourceImpl(CacheNodePreviewResourceInner innerObject, - com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.customerResourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "cacheNodes"); - } - - public CacheNodePreviewResource refresh() { - this.innerObject = serviceManager.serviceClient() - .getCacheNodesOperations() - .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE) - .getValue(); - return this; - } - - public CacheNodePreviewResource refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getCacheNodesOperations() - .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context) - .getValue(); - return this; - } - - public CacheNodePreviewResourceImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public CacheNodePreviewResourceImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public CacheNodePreviewResourceImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateProperties.withTags(tags); - return this; - } - } - - public CacheNodePreviewResourceImpl withProperties(CacheNodeOldResponse properties) { - this.innerModel().withProperties(properties); - return this; - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsClientImpl.java deleted file mode 100644 index ee08b41b95d9..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsClientImpl.java +++ /dev/null @@ -1,1140 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.connectedcache.fluent.CacheNodesOperationsClient; -import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; -import com.azure.resourcemanager.connectedcache.implementation.models.CacheNodePreviewResourceListResult; -import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in CacheNodesOperationsClient. - */ -public final class CacheNodesOperationsClientImpl implements CacheNodesOperationsClient { - /** - * The proxy service used to perform REST calls. - */ - private final CacheNodesOperationsService service; - - /** - * The service client containing this operation class. - */ - private final ConnectedCacheManagementClientImpl client; - - /** - * Initializes an instance of CacheNodesOperationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - CacheNodesOperationsClientImpl(ConnectedCacheManagementClientImpl client) { - this.service = RestProxy.create(CacheNodesOperationsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for ConnectedCacheManagementClientCacheNodesOperations to be used by the - * proxy service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "ConnectedCacheManage") - public interface CacheNodesOperationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createorUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customerResourceName") String customerResourceName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") CacheNodePreviewResourceInner resource, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes/{customerResourceName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customerResourceName") String customerResourceName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ConnectedCachePatchResource properties, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/cacheNodes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/cacheNodes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Retrieves the properties of a cacheNodes. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String customerResourceName) { - 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Retrieves the properties of a cacheNodes. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String customerResourceName, 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context); - } - - /** - * Retrieves the properties of a cacheNodes. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, - String customerResourceName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Retrieves the properties of a cacheNodes. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String customerResourceName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName, context).block(); - } - - /** - * Retrieves the properties of a cacheNodes. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CacheNodePreviewResourceInner getByResourceGroup(String resourceGroupName, String customerResourceName) { - return getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createorUpdateWithResponseAsync(String resourceGroupName, - String customerResourceName, CacheNodePreviewResourceInner resource) { - 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createorUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createorUpdateWithResponseAsync(String resourceGroupName, - String customerResourceName, CacheNodePreviewResourceInner resource, 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createorUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, - context); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of concrete tracked resource types can be created by aliasing this - * type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, CacheNodePreviewResourceInner> - beginCreateorUpdateAsync(String resourceGroupName, String customerResourceName, - CacheNodePreviewResourceInner resource) { - Mono>> mono - = createorUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), CacheNodePreviewResourceInner.class, CacheNodePreviewResourceInner.class, - this.client.getContext()); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of concrete tracked resource types can be created by aliasing this - * type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, CacheNodePreviewResourceInner> - beginCreateorUpdateAsync(String resourceGroupName, String customerResourceName, - CacheNodePreviewResourceInner resource, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createorUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), CacheNodePreviewResourceInner.class, CacheNodePreviewResourceInner.class, - context); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this - * type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, CacheNodePreviewResourceInner> beginCreateorUpdate( - String resourceGroupName, String customerResourceName, CacheNodePreviewResourceInner resource) { - return this.beginCreateorUpdateAsync(resourceGroupName, customerResourceName, resource).getSyncPoller(); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of concrete tracked resource types can be created by aliasing this - * type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, CacheNodePreviewResourceInner> beginCreateorUpdate( - String resourceGroupName, String customerResourceName, CacheNodePreviewResourceInner resource, - Context context) { - return this.beginCreateorUpdateAsync(resourceGroupName, customerResourceName, resource, context) - .getSyncPoller(); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createorUpdateAsync(String resourceGroupName, - String customerResourceName, CacheNodePreviewResourceInner resource) { - return beginCreateorUpdateAsync(resourceGroupName, customerResourceName, resource).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createorUpdateAsync(String resourceGroupName, - String customerResourceName, CacheNodePreviewResourceInner resource, Context context) { - return beginCreateorUpdateAsync(resourceGroupName, customerResourceName, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CacheNodePreviewResourceInner createorUpdate(String resourceGroupName, String customerResourceName, - CacheNodePreviewResourceInner resource) { - return createorUpdateAsync(resourceGroupName, customerResourceName, resource).block(); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CacheNodePreviewResourceInner createorUpdate(String resourceGroupName, String customerResourceName, - CacheNodePreviewResourceInner resource, Context context) { - return createorUpdateAsync(resourceGroupName, customerResourceName, resource, context).block(); - } - - /** - * Deletes an existing cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String customerResourceName) { - 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes an existing cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String customerResourceName, - 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, customerResourceName, accept, context); - } - - /** - * Deletes an existing cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String customerResourceName) { - return deleteWithResponseAsync(resourceGroupName, customerResourceName).flatMap(ignored -> Mono.empty()); - } - - /** - * Deletes an existing cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String customerResourceName, Context context) { - return deleteWithResponseAsync(resourceGroupName, customerResourceName, context).block(); - } - - /** - * Deletes an existing cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String customerResourceName) { - deleteWithResponse(resourceGroupName, customerResourceName, Context.NONE); - } - - /** - * updates an existing Cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, - String customerResourceName, ConnectedCachePatchResource properties) { - 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, - properties, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * updates an existing Cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, - String customerResourceName, ConnectedCachePatchResource properties, 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, customerResourceName, contentType, accept, properties, context); - } - - /** - * updates an existing Cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type on - * successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String customerResourceName, - ConnectedCachePatchResource properties) { - return updateWithResponseAsync(resourceGroupName, customerResourceName, properties) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * updates an existing Cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(String resourceGroupName, - String customerResourceName, ConnectedCachePatchResource properties, Context context) { - return updateWithResponseAsync(resourceGroupName, customerResourceName, properties, context).block(); - } - - /** - * updates an existing Cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CacheNodePreviewResourceInner update(String resourceGroupName, String customerResourceName, - ConnectedCachePatchResource properties) { - return updateWithResponse(resourceGroupName, customerResourceName, properties, Context.NONE).getValue(); - } - - /** - * Retrieves the properties of all ConnectedCache. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, 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())); - } - - /** - * Retrieves the properties of all ConnectedCache. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, 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.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Retrieves the properties of all ConnectedCache. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - - /** - * Retrieves the properties of all ConnectedCache. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, - Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); - } - - /** - * Retrieves the properties of all ConnectedCache. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } - - /** - * Retrieves the properties of all ConnectedCache. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), 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())); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(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.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, - context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(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.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(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.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(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.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(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.listBySubscriptionNext(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/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsImpl.java deleted file mode 100644 index 3be4246de955..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/CacheNodesOperationsImpl.java +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.connectedcache.fluent.CacheNodesOperationsClient; -import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; -import com.azure.resourcemanager.connectedcache.models.CacheNodePreviewResource; -import com.azure.resourcemanager.connectedcache.models.CacheNodesOperations; - -public final class CacheNodesOperationsImpl implements CacheNodesOperations { - private static final ClientLogger LOGGER = new ClientLogger(CacheNodesOperationsImpl.class); - - private final CacheNodesOperationsClient innerClient; - - private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; - - public CacheNodesOperationsImpl(CacheNodesOperationsClient innerClient, - com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getByResourceGroupWithResponse(String resourceGroupName, - String customerResourceName, Context context) { - Response inner - = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new CacheNodePreviewResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public CacheNodePreviewResource getByResourceGroup(String resourceGroupName, String customerResourceName) { - CacheNodePreviewResourceInner inner - = this.serviceClient().getByResourceGroup(resourceGroupName, customerResourceName); - if (inner != null) { - return new CacheNodePreviewResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response deleteByResourceGroupWithResponse(String resourceGroupName, String customerResourceName, - Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, customerResourceName, context); - } - - public void deleteByResourceGroup(String resourceGroupName, String customerResourceName) { - this.serviceClient().delete(resourceGroupName, customerResourceName); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner - = this.serviceClient().listByResourceGroup(resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new CacheNodePreviewResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new CacheNodePreviewResourceImpl(inner1, this.manager())); - } - - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new CacheNodePreviewResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new CacheNodePreviewResourceImpl(inner1, this.manager())); - } - - public CacheNodePreviewResource getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "cacheNodes"); - if (customerResourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'cacheNodes'.", id))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "cacheNodes"); - if (customerResourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'cacheNodes'.", id))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "cacheNodes"); - if (customerResourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'cacheNodes'.", id))); - } - this.deleteByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "cacheNodes"); - if (customerResourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'cacheNodes'.", id))); - } - return this.deleteByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); - } - - private CacheNodesOperationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { - return this.serviceManager; - } - - public CacheNodePreviewResourceImpl define(String name) { - return new CacheNodePreviewResourceImpl(name, this.manager()); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientImpl.java index 19432e4ef912..2cf1b0ab6dc5 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientImpl.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/ConnectedCacheManagementClientImpl.java @@ -23,9 +23,7 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.connectedcache.fluent.CacheNodesOperationsClient; import com.azure.resourcemanager.connectedcache.fluent.ConnectedCacheManagementClient; -import com.azure.resourcemanager.connectedcache.fluent.EnterpriseCustomerOperationsClient; import com.azure.resourcemanager.connectedcache.fluent.EnterpriseMccCacheNodesOperationsClient; import com.azure.resourcemanager.connectedcache.fluent.EnterpriseMccCustomersClient; import com.azure.resourcemanager.connectedcache.fluent.IspCacheNodesOperationsClient; @@ -143,34 +141,6 @@ public OperationsClient getOperations() { return this.operations; } - /** - * The EnterpriseCustomerOperationsClient object to access its operations. - */ - private final EnterpriseCustomerOperationsClient enterpriseCustomerOperations; - - /** - * Gets the EnterpriseCustomerOperationsClient object to access its operations. - * - * @return the EnterpriseCustomerOperationsClient object. - */ - public EnterpriseCustomerOperationsClient getEnterpriseCustomerOperations() { - return this.enterpriseCustomerOperations; - } - - /** - * The CacheNodesOperationsClient object to access its operations. - */ - private final CacheNodesOperationsClient cacheNodesOperations; - - /** - * Gets the CacheNodesOperationsClient object to access its operations. - * - * @return the CacheNodesOperationsClient object. - */ - public CacheNodesOperationsClient getCacheNodesOperations() { - return this.cacheNodesOperations; - } - /** * The IspCustomersClient object to access its operations. */ @@ -244,10 +214,8 @@ public EnterpriseMccCacheNodesOperationsClient getEnterpriseMccCacheNodesOperati this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2023-05-01-preview"; + this.apiVersion = "2024-11-30-preview"; this.operations = new OperationsClientImpl(this); - this.enterpriseCustomerOperations = new EnterpriseCustomerOperationsClientImpl(this); - this.cacheNodesOperations = new CacheNodesOperationsClientImpl(this); this.ispCustomers = new IspCustomersClientImpl(this); this.ispCacheNodesOperations = new IspCacheNodesOperationsClientImpl(this); this.enterpriseMccCustomers = new EnterpriseMccCustomersClientImpl(this); diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsClientImpl.java deleted file mode 100644 index bb3bffc86700..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsClientImpl.java +++ /dev/null @@ -1,1126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.connectedcache.fluent.EnterpriseCustomerOperationsClient; -import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; -import com.azure.resourcemanager.connectedcache.implementation.models.EnterprisePreviewResourceListResult; -import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in EnterpriseCustomerOperationsClient. - */ -public final class EnterpriseCustomerOperationsClientImpl implements EnterpriseCustomerOperationsClient { - /** - * The proxy service used to perform REST calls. - */ - private final EnterpriseCustomerOperationsService service; - - /** - * The service client containing this operation class. - */ - private final ConnectedCacheManagementClientImpl client; - - /** - * Initializes an instance of EnterpriseCustomerOperationsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - EnterpriseCustomerOperationsClientImpl(ConnectedCacheManagementClientImpl client) { - this.service = RestProxy.create(EnterpriseCustomerOperationsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for ConnectedCacheManagementClientEnterpriseCustomerOperations to be used - * by the proxy service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "ConnectedCacheManage") - public interface EnterpriseCustomerOperationsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customerResourceName") String customerResourceName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") EnterprisePreviewResourceInner resource, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customerResourceName") String customerResourceName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ConnectedCachePatchResource properties, Context context); - - @Headers({ "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers/{customerResourceName}") - @ExpectedResponses({ 200, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("customerResourceName") String customerResourceName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseCustomers") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ConnectedCache/enterpriseCustomers") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Retrieves the properties of a Enterprise customer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String customerResourceName) { - 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Retrieves the properties of a Enterprise customer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String customerResourceName, 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context); - } - - /** - * Retrieves the properties of a Enterprise customer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, - String customerResourceName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Retrieves the properties of a Enterprise customer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String customerResourceName, Context context) { - return getByResourceGroupWithResponseAsync(resourceGroupName, customerResourceName, context).block(); - } - - /** - * Retrieves the properties of a Enterprise customer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public EnterprisePreviewResourceInner getByResourceGroup(String resourceGroupName, String customerResourceName) { - return getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String customerResourceName, EnterprisePreviewResourceInner resource) { - 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String customerResourceName, EnterprisePreviewResourceInner resource, 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - if (resource == null) { - return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); - } else { - resource.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, resource, - context); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, EnterprisePreviewResourceInner> - beginCreateOrUpdateAsync(String resourceGroupName, String customerResourceName, - EnterprisePreviewResourceInner resource) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), EnterprisePreviewResourceInner.class, EnterprisePreviewResourceInner.class, - this.client.getContext()); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, EnterprisePreviewResourceInner> - beginCreateOrUpdateAsync(String resourceGroupName, String customerResourceName, - EnterprisePreviewResourceInner resource, Context context) { - context = this.client.mergeContext(context); - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, customerResourceName, resource, context); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), EnterprisePreviewResourceInner.class, EnterprisePreviewResourceInner.class, - context); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, EnterprisePreviewResourceInner> beginCreateOrUpdate( - String resourceGroupName, String customerResourceName, EnterprisePreviewResourceInner resource) { - return this.beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource).getSyncPoller(); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, EnterprisePreviewResourceInner> beginCreateOrUpdate( - String resourceGroupName, String customerResourceName, EnterprisePreviewResourceInner resource, - Context context) { - return this.beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource, context) - .getSyncPoller(); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, - String customerResourceName, EnterprisePreviewResourceInner resource) { - return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, - String customerResourceName, EnterprisePreviewResourceInner resource, Context context) { - return beginCreateOrUpdateAsync(resourceGroupName, customerResourceName, resource, context).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public EnterprisePreviewResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, - EnterprisePreviewResourceInner resource) { - return createOrUpdateAsync(resourceGroupName, customerResourceName, resource).block(); - } - - /** - * Creates a cacheNodes with the specified create parameters. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public EnterprisePreviewResourceInner createOrUpdate(String resourceGroupName, String customerResourceName, - EnterprisePreviewResourceInner resource, Context context) { - return createOrUpdateAsync(resourceGroupName, customerResourceName, resource, context).block(); - } - - /** - * updates an existing enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, - String customerResourceName, ConnectedCachePatchResource properties) { - 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, contentType, accept, - properties, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * updates an existing enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> updateWithResponseAsync(String resourceGroupName, - String customerResourceName, ConnectedCachePatchResource properties, 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - if (properties == null) { - return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); - } else { - properties.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, customerResourceName, contentType, accept, properties, context); - } - - /** - * updates an existing enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String customerResourceName, - ConnectedCachePatchResource properties) { - return updateWithResponseAsync(resourceGroupName, customerResourceName, properties) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * updates an existing enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateWithResponse(String resourceGroupName, - String customerResourceName, ConnectedCachePatchResource properties, Context context) { - return updateWithResponseAsync(resourceGroupName, customerResourceName, properties, context).block(); - } - - /** - * updates an existing enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param properties The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public EnterprisePreviewResourceInner update(String resourceGroupName, String customerResourceName, - ConnectedCachePatchResource properties) { - return updateWithResponse(resourceGroupName, customerResourceName, properties, Context.NONE).getValue(); - } - - /** - * Deletes an existing customer Enterprise resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String customerResourceName) { - 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, customerResourceName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Deletes an existing customer Enterprise resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> deleteWithResponseAsync(String resourceGroupName, String customerResourceName, - 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 (customerResourceName == null) { - return Mono - .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, customerResourceName, accept, context); - } - - /** - * Deletes an existing customer Enterprise resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String customerResourceName) { - return deleteWithResponseAsync(resourceGroupName, customerResourceName).flatMap(ignored -> Mono.empty()); - } - - /** - * Deletes an existing customer Enterprise resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response deleteWithResponse(String resourceGroupName, String customerResourceName, Context context) { - return deleteWithResponseAsync(resourceGroupName, customerResourceName, context).block(); - } - - /** - * Deletes an existing customer Enterprise resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String customerResourceName) { - deleteWithResponse(resourceGroupName, customerResourceName, Context.NONE); - } - - /** - * Retrieves the properties of all ConnectedCache enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, 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())); - } - - /** - * Retrieves the properties of all ConnectedCache enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName, 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.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Retrieves the properties of all ConnectedCache enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - - /** - * Retrieves the properties of all ConnectedCache enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName, - Context context) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); - } - - /** - * Retrieves the properties of all ConnectedCache enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); - } - - /** - * Retrieves the properties of all ConnectedCache enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, - Context context) { - return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), 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())); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(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.")); - } - final String accept = "application/json"; - context = this.client.mergeContext(context); - return service - .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, - context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync(Context context) { - return new PagedFlux<>(() -> listSinglePageAsync(context), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(listAsync()); - } - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(listAsync(context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupNextSinglePageAsync(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.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(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.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) - .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - res.getValue().value(), res.getValue().nextLink(), null)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(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.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(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.listBySubscriptionNext(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/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsImpl.java deleted file mode 100644 index faa777dceeb7..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseCustomerOperationsImpl.java +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.connectedcache.fluent.EnterpriseCustomerOperationsClient; -import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; -import com.azure.resourcemanager.connectedcache.models.EnterpriseCustomerOperations; -import com.azure.resourcemanager.connectedcache.models.EnterprisePreviewResource; - -public final class EnterpriseCustomerOperationsImpl implements EnterpriseCustomerOperations { - private static final ClientLogger LOGGER = new ClientLogger(EnterpriseCustomerOperationsImpl.class); - - private final EnterpriseCustomerOperationsClient innerClient; - - private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; - - public EnterpriseCustomerOperationsImpl(EnterpriseCustomerOperationsClient innerClient, - com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getByResourceGroupWithResponse(String resourceGroupName, - String customerResourceName, Context context) { - Response inner - = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); - if (inner != null) { - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new EnterprisePreviewResourceImpl(inner.getValue(), this.manager())); - } else { - return null; - } - } - - public EnterprisePreviewResource getByResourceGroup(String resourceGroupName, String customerResourceName) { - EnterprisePreviewResourceInner inner - = this.serviceClient().getByResourceGroup(resourceGroupName, customerResourceName); - if (inner != null) { - return new EnterprisePreviewResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response deleteByResourceGroupWithResponse(String resourceGroupName, String customerResourceName, - Context context) { - return this.serviceClient().deleteWithResponse(resourceGroupName, customerResourceName, context); - } - - public void deleteByResourceGroup(String resourceGroupName, String customerResourceName) { - this.serviceClient().delete(resourceGroupName, customerResourceName); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner - = this.serviceClient().listByResourceGroup(resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new EnterprisePreviewResourceImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new EnterprisePreviewResourceImpl(inner1, this.manager())); - } - - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new EnterprisePreviewResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new EnterprisePreviewResourceImpl(inner1, this.manager())); - } - - public EnterprisePreviewResource getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseCustomers"); - if (customerResourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'enterpriseCustomers'.", id))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE).getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseCustomers"); - if (customerResourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'enterpriseCustomers'.", id))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseCustomers"); - if (customerResourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'enterpriseCustomers'.", id))); - } - this.deleteByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE); - } - - public Response deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String customerResourceName = ResourceManagerUtils.getValueFromIdByName(id, "enterpriseCustomers"); - if (customerResourceName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'enterpriseCustomers'.", id))); - } - return this.deleteByResourceGroupWithResponse(resourceGroupName, customerResourceName, context); - } - - private EnterpriseCustomerOperationsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { - return this.serviceManager; - } - - public EnterprisePreviewResourceImpl define(String name) { - return new EnterprisePreviewResourceImpl(name, this.manager()); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodeResourceImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodeResourceImpl.java index 055a253cd86c..1af45cc7133f 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodeResourceImpl.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodeResourceImpl.java @@ -12,7 +12,10 @@ import com.azure.resourcemanager.connectedcache.models.CacheNodeProperty; import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodeResource; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeAutoUpdateHistory; import com.azure.resourcemanager.connectedcache.models.MccCacheNodeInstallDetails; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeIssueHistory; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeTlsCertificateHistory; import java.util.Collections; import java.util.Map; @@ -173,6 +176,39 @@ public MccCacheNodeInstallDetails getCacheNodeInstallDetails() { .getCacheNodeInstallDetails(resourceGroupName, customerResourceName, cacheNodeResourceName); } + public Response getCacheNodeAutoUpdateHistoryWithResponse(Context context) { + return serviceManager.enterpriseMccCacheNodesOperations() + .getCacheNodeAutoUpdateHistoryWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + context); + } + + public MccCacheNodeAutoUpdateHistory getCacheNodeAutoUpdateHistory() { + return serviceManager.enterpriseMccCacheNodesOperations() + .getCacheNodeAutoUpdateHistory(resourceGroupName, customerResourceName, cacheNodeResourceName); + } + + public Response getCacheNodeMccIssueDetailsHistoryWithResponse(Context context) { + return serviceManager.enterpriseMccCacheNodesOperations() + .getCacheNodeMccIssueDetailsHistoryWithResponse(resourceGroupName, customerResourceName, + cacheNodeResourceName, context); + } + + public MccCacheNodeIssueHistory getCacheNodeMccIssueDetailsHistory() { + return serviceManager.enterpriseMccCacheNodesOperations() + .getCacheNodeMccIssueDetailsHistory(resourceGroupName, customerResourceName, cacheNodeResourceName); + } + + public Response getCacheNodeTlsCertificateHistoryWithResponse(Context context) { + return serviceManager.enterpriseMccCacheNodesOperations() + .getCacheNodeTlsCertificateHistoryWithResponse(resourceGroupName, customerResourceName, + cacheNodeResourceName, context); + } + + public MccCacheNodeTlsCertificateHistory getCacheNodeTlsCertificateHistory() { + return serviceManager.enterpriseMccCacheNodesOperations() + .getCacheNodeTlsCertificateHistory(resourceGroupName, customerResourceName, cacheNodeResourceName); + } + public EnterpriseMccCacheNodeResourceImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsClientImpl.java index 9caac8b8afd0..aa392cca64e3 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsClientImpl.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsClientImpl.java @@ -35,7 +35,10 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.connectedcache.fluent.EnterpriseMccCacheNodesOperationsClient; import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeAutoUpdateHistoryInner; import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeIssueHistoryInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeTlsCertificateHistoryInner; import com.azure.resourcemanager.connectedcache.implementation.models.EnterpriseMccCacheNodeResourceListResult; import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; import java.nio.ByteBuffer; @@ -141,6 +144,42 @@ Mono> getCacheNodeInstallDetails( @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}/getCacheNodeAutoUpdateHistory") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getCacheNodeAutoUpdateHistory( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}/getCacheNodeMccIssueDetailsHistory") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getCacheNodeMccIssueDetailsHistory( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/enterpriseMccCustomers/{customerResourceName}/enterpriseMccCacheNodes/{cacheNodeResourceName}/getCacheNodeTlsCertificateHistory") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getCacheNodeTlsCertificateHistory( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -1250,6 +1289,429 @@ public MccCacheNodeInstallDetailsInner getCacheNodeInstallDetails(String resourc Context.NONE).getValue(); } + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeAutoUpdateHistoryWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + 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 (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getCacheNodeAutoUpdateHistory(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, customerResourceName, + cacheNodeResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeAutoUpdateHistoryWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, 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 (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getCacheNodeAutoUpdateHistory(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context); + } + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getCacheNodeAutoUpdateHistoryAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeAutoUpdateHistoryWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getCacheNodeAutoUpdateHistoryWithResponse( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context) { + return getCacheNodeAutoUpdateHistoryWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName, context).block(); + } + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MccCacheNodeAutoUpdateHistoryInner getCacheNodeAutoUpdateHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeAutoUpdateHistoryWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + Context.NONE).getValue(); + } + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeMccIssueDetailsHistoryWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + 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 (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getCacheNodeMccIssueDetailsHistory(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, customerResourceName, + cacheNodeResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeMccIssueDetailsHistoryWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, 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 (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getCacheNodeMccIssueDetailsHistory(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context); + } + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getCacheNodeMccIssueDetailsHistoryAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeMccIssueDetailsHistoryWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getCacheNodeMccIssueDetailsHistoryWithResponse( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context) { + return getCacheNodeMccIssueDetailsHistoryWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName, context).block(); + } + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MccCacheNodeIssueHistoryInner getCacheNodeMccIssueDetailsHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeMccIssueDetailsHistoryWithResponse(resourceGroupName, customerResourceName, + cacheNodeResourceName, Context.NONE).getValue(); + } + + /** + * This api gets ispCacheNode resource tls certificate histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource Tls certificate history details along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeTlsCertificateHistoryWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + 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 (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getCacheNodeTlsCertificateHistory(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, customerResourceName, + cacheNodeResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets ispCacheNode resource tls certificate histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource Tls certificate history details along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeTlsCertificateHistoryWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, 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 (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getCacheNodeTlsCertificateHistory(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context); + } + + /** + * This api gets ispCacheNode resource tls certificate histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource Tls certificate history details on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getCacheNodeTlsCertificateHistoryAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeTlsCertificateHistoryWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api gets ispCacheNode resource tls certificate histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource Tls certificate history details along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getCacheNodeTlsCertificateHistoryWithResponse( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context) { + return getCacheNodeTlsCertificateHistoryWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName, context).block(); + } + + /** + * This api gets ispCacheNode resource tls certificate histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource Tls certificate history details. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MccCacheNodeTlsCertificateHistoryInner getCacheNodeTlsCertificateHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeTlsCertificateHistoryWithResponse(resourceGroupName, customerResourceName, + cacheNodeResourceName, Context.NONE).getValue(); + } + /** * Get the next page of items. * diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsImpl.java index 7650a2f61b76..01c756f321fd 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsImpl.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterpriseMccCacheNodesOperationsImpl.java @@ -11,10 +11,16 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.connectedcache.fluent.EnterpriseMccCacheNodesOperationsClient; import com.azure.resourcemanager.connectedcache.fluent.models.EnterpriseMccCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeAutoUpdateHistoryInner; import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeIssueHistoryInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeTlsCertificateHistoryInner; import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodeResource; import com.azure.resourcemanager.connectedcache.models.EnterpriseMccCacheNodesOperations; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeAutoUpdateHistory; import com.azure.resourcemanager.connectedcache.models.MccCacheNodeInstallDetails; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeIssueHistory; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeTlsCertificateHistory; public final class EnterpriseMccCacheNodesOperationsImpl implements EnterpriseMccCacheNodesOperations { private static final ClientLogger LOGGER = new ClientLogger(EnterpriseMccCacheNodesOperationsImpl.class); @@ -101,6 +107,78 @@ public MccCacheNodeInstallDetails getCacheNodeInstallDetails(String resourceGrou } } + public Response getCacheNodeAutoUpdateHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + Response inner = this.serviceClient() + .getCacheNodeAutoUpdateHistoryWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new MccCacheNodeAutoUpdateHistoryImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public MccCacheNodeAutoUpdateHistory getCacheNodeAutoUpdateHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + MccCacheNodeAutoUpdateHistoryInner inner = this.serviceClient() + .getCacheNodeAutoUpdateHistory(resourceGroupName, customerResourceName, cacheNodeResourceName); + if (inner != null) { + return new MccCacheNodeAutoUpdateHistoryImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getCacheNodeMccIssueDetailsHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + Response inner = this.serviceClient() + .getCacheNodeMccIssueDetailsHistoryWithResponse(resourceGroupName, customerResourceName, + cacheNodeResourceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new MccCacheNodeIssueHistoryImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public MccCacheNodeIssueHistory getCacheNodeMccIssueDetailsHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + MccCacheNodeIssueHistoryInner inner = this.serviceClient() + .getCacheNodeMccIssueDetailsHistory(resourceGroupName, customerResourceName, cacheNodeResourceName); + if (inner != null) { + return new MccCacheNodeIssueHistoryImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getCacheNodeTlsCertificateHistoryWithResponse( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context) { + Response inner = this.serviceClient() + .getCacheNodeTlsCertificateHistoryWithResponse(resourceGroupName, customerResourceName, + cacheNodeResourceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new MccCacheNodeTlsCertificateHistoryImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public MccCacheNodeTlsCertificateHistory getCacheNodeTlsCertificateHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + MccCacheNodeTlsCertificateHistoryInner inner = this.serviceClient() + .getCacheNodeTlsCertificateHistory(resourceGroupName, customerResourceName, cacheNodeResourceName); + if (inner != null) { + return new MccCacheNodeTlsCertificateHistoryImpl(inner, this.manager()); + } else { + return null; + } + } + public EnterpriseMccCacheNodeResource getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterprisePreviewResourceImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterprisePreviewResourceImpl.java deleted file mode 100644 index 36f68913a31c..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/EnterprisePreviewResourceImpl.java +++ /dev/null @@ -1,181 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.implementation; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; -import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; -import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; -import com.azure.resourcemanager.connectedcache.models.EnterprisePreviewResource; -import java.util.Collections; -import java.util.Map; - -public final class EnterprisePreviewResourceImpl - implements EnterprisePreviewResource, EnterprisePreviewResource.Definition, EnterprisePreviewResource.Update { - private EnterprisePreviewResourceInner innerObject; - - private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public CacheNodeOldResponse properties() { - return this.innerModel().properties(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public EnterprisePreviewResourceInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String customerResourceName; - - private ConnectedCachePatchResource updateProperties; - - public EnterprisePreviewResourceImpl withExistingResourceGroup(String resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - public EnterprisePreviewResource create() { - this.innerObject = serviceManager.serviceClient() - .getEnterpriseCustomerOperations() - .createOrUpdate(resourceGroupName, customerResourceName, this.innerModel(), Context.NONE); - return this; - } - - public EnterprisePreviewResource create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getEnterpriseCustomerOperations() - .createOrUpdate(resourceGroupName, customerResourceName, this.innerModel(), context); - return this; - } - - EnterprisePreviewResourceImpl(String name, - com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { - this.innerObject = new EnterprisePreviewResourceInner(); - this.serviceManager = serviceManager; - this.customerResourceName = name; - } - - public EnterprisePreviewResourceImpl update() { - this.updateProperties = new ConnectedCachePatchResource(); - return this; - } - - public EnterprisePreviewResource apply() { - this.innerObject = serviceManager.serviceClient() - .getEnterpriseCustomerOperations() - .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, Context.NONE) - .getValue(); - return this; - } - - public EnterprisePreviewResource apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getEnterpriseCustomerOperations() - .updateWithResponse(resourceGroupName, customerResourceName, updateProperties, context) - .getValue(); - return this; - } - - EnterprisePreviewResourceImpl(EnterprisePreviewResourceInner innerObject, - com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.customerResourceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "enterpriseCustomers"); - } - - public EnterprisePreviewResource refresh() { - this.innerObject = serviceManager.serviceClient() - .getEnterpriseCustomerOperations() - .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, Context.NONE) - .getValue(); - return this; - } - - public EnterprisePreviewResource refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getEnterpriseCustomerOperations() - .getByResourceGroupWithResponse(resourceGroupName, customerResourceName, context) - .getValue(); - return this; - } - - public EnterprisePreviewResourceImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public EnterprisePreviewResourceImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public EnterprisePreviewResourceImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateProperties.withTags(tags); - return this; - } - } - - public EnterprisePreviewResourceImpl withProperties(CacheNodeOldResponse properties) { - this.innerModel().withProperties(properties); - return this; - } - - private boolean isInCreateMode() { - return this.innerModel().id() == null; - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodeResourceImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodeResourceImpl.java index 8e8087626dec..97e2932d9e35 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodeResourceImpl.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodeResourceImpl.java @@ -12,8 +12,10 @@ import com.azure.resourcemanager.connectedcache.models.CacheNodeProperty; import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; import com.azure.resourcemanager.connectedcache.models.IspCacheNodeResource; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeAutoUpdateHistory; import com.azure.resourcemanager.connectedcache.models.MccCacheNodeBgpCidrDetails; import com.azure.resourcemanager.connectedcache.models.MccCacheNodeInstallDetails; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeIssueHistory; import java.util.Collections; import java.util.Map; @@ -181,6 +183,28 @@ public MccCacheNodeInstallDetails getCacheNodeInstallDetails() { .getCacheNodeInstallDetails(resourceGroupName, customerResourceName, cacheNodeResourceName); } + public Response getCacheNodeAutoUpdateHistoryWithResponse(Context context) { + return serviceManager.ispCacheNodesOperations() + .getCacheNodeAutoUpdateHistoryWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + context); + } + + public MccCacheNodeAutoUpdateHistory getCacheNodeAutoUpdateHistory() { + return serviceManager.ispCacheNodesOperations() + .getCacheNodeAutoUpdateHistory(resourceGroupName, customerResourceName, cacheNodeResourceName); + } + + public Response getCacheNodeMccIssueDetailsHistoryWithResponse(Context context) { + return serviceManager.ispCacheNodesOperations() + .getCacheNodeMccIssueDetailsHistoryWithResponse(resourceGroupName, customerResourceName, + cacheNodeResourceName, context); + } + + public MccCacheNodeIssueHistory getCacheNodeMccIssueDetailsHistory() { + return serviceManager.ispCacheNodesOperations() + .getCacheNodeMccIssueDetailsHistory(resourceGroupName, customerResourceName, cacheNodeResourceName); + } + public IspCacheNodeResourceImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsClientImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsClientImpl.java index 6c511eb0a548..0912f4e68cd3 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsClientImpl.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsClientImpl.java @@ -35,8 +35,10 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.connectedcache.fluent.IspCacheNodesOperationsClient; import com.azure.resourcemanager.connectedcache.fluent.models.IspCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeAutoUpdateHistoryInner; import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeBgpCidrDetailsInner; import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeIssueHistoryInner; import com.azure.resourcemanager.connectedcache.implementation.models.IspCacheNodeResourceListResult; import com.azure.resourcemanager.connectedcache.models.ConnectedCachePatchResource; import java.nio.ByteBuffer; @@ -152,6 +154,30 @@ Mono> getCacheNodeInstallDetails( @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}/getCacheNodeAutoUpdateHistory") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getCacheNodeAutoUpdateHistory( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedCache/ispCustomers/{customerResourceName}/ispCacheNodes/{cacheNodeResourceName}/getCacheNodeMccIssueDetailsHistory") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getCacheNodeMccIssueDetailsHistory( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("customerResourceName") String customerResourceName, + @PathParam("cacheNodeResourceName") String cacheNodeResourceName, @HeaderParam("Accept") String accept, + Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -1395,6 +1421,288 @@ public MccCacheNodeInstallDetailsInner getCacheNodeInstallDetails(String resourc Context.NONE).getValue(); } + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeAutoUpdateHistoryWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + 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 (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getCacheNodeAutoUpdateHistory(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, customerResourceName, + cacheNodeResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeAutoUpdateHistoryWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, 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 (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getCacheNodeAutoUpdateHistory(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context); + } + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getCacheNodeAutoUpdateHistoryAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeAutoUpdateHistoryWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getCacheNodeAutoUpdateHistoryWithResponse( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context) { + return getCacheNodeAutoUpdateHistoryWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName, context).block(); + } + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MccCacheNodeAutoUpdateHistoryInner getCacheNodeAutoUpdateHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeAutoUpdateHistoryWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + Context.NONE).getValue(); + } + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeMccIssueDetailsHistoryWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName) { + 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 (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getCacheNodeMccIssueDetailsHistory(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, customerResourceName, + cacheNodeResourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getCacheNodeMccIssueDetailsHistoryWithResponseAsync( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, 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 (customerResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter customerResourceName is required and cannot be null.")); + } + if (cacheNodeResourceName == null) { + return Mono + .error(new IllegalArgumentException("Parameter cacheNodeResourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getCacheNodeMccIssueDetailsHistory(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, customerResourceName, cacheNodeResourceName, accept, + context); + } + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getCacheNodeMccIssueDetailsHistoryAsync(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeMccIssueDetailsHistoryWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getCacheNodeMccIssueDetailsHistoryWithResponse( + String resourceGroupName, String customerResourceName, String cacheNodeResourceName, Context context) { + return getCacheNodeMccIssueDetailsHistoryWithResponseAsync(resourceGroupName, customerResourceName, + cacheNodeResourceName, context).block(); + } + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MccCacheNodeIssueHistoryInner getCacheNodeMccIssueDetailsHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + return getCacheNodeMccIssueDetailsHistoryWithResponse(resourceGroupName, customerResourceName, + cacheNodeResourceName, Context.NONE).getValue(); + } + /** * Get the next page of items. * diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsImpl.java index 582fbdbd96a9..3a782051266d 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsImpl.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/IspCacheNodesOperationsImpl.java @@ -11,12 +11,16 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.connectedcache.fluent.IspCacheNodesOperationsClient; import com.azure.resourcemanager.connectedcache.fluent.models.IspCacheNodeResourceInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeAutoUpdateHistoryInner; import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeBgpCidrDetailsInner; import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeInstallDetailsInner; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeIssueHistoryInner; import com.azure.resourcemanager.connectedcache.models.IspCacheNodeResource; import com.azure.resourcemanager.connectedcache.models.IspCacheNodesOperations; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeAutoUpdateHistory; import com.azure.resourcemanager.connectedcache.models.MccCacheNodeBgpCidrDetails; import com.azure.resourcemanager.connectedcache.models.MccCacheNodeInstallDetails; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeIssueHistory; public final class IspCacheNodesOperationsImpl implements IspCacheNodesOperations { private static final ClientLogger LOGGER = new ClientLogger(IspCacheNodesOperationsImpl.class); @@ -124,6 +128,54 @@ public MccCacheNodeInstallDetails getCacheNodeInstallDetails(String resourceGrou } } + public Response getCacheNodeAutoUpdateHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + Response inner = this.serviceClient() + .getCacheNodeAutoUpdateHistoryWithResponse(resourceGroupName, customerResourceName, cacheNodeResourceName, + context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new MccCacheNodeAutoUpdateHistoryImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public MccCacheNodeAutoUpdateHistory getCacheNodeAutoUpdateHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + MccCacheNodeAutoUpdateHistoryInner inner = this.serviceClient() + .getCacheNodeAutoUpdateHistory(resourceGroupName, customerResourceName, cacheNodeResourceName); + if (inner != null) { + return new MccCacheNodeAutoUpdateHistoryImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getCacheNodeMccIssueDetailsHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context) { + Response inner = this.serviceClient() + .getCacheNodeMccIssueDetailsHistoryWithResponse(resourceGroupName, customerResourceName, + cacheNodeResourceName, context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new MccCacheNodeIssueHistoryImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public MccCacheNodeIssueHistory getCacheNodeMccIssueDetailsHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName) { + MccCacheNodeIssueHistoryInner inner = this.serviceClient() + .getCacheNodeMccIssueDetailsHistory(resourceGroupName, customerResourceName, cacheNodeResourceName); + if (inner != null) { + return new MccCacheNodeIssueHistoryImpl(inner, this.manager()); + } else { + return null; + } + } + public IspCacheNodeResource getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeAutoUpdateHistoryImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeAutoUpdateHistoryImpl.java new file mode 100644 index 000000000000..ef62d59f5e03 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeAutoUpdateHistoryImpl.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeAutoUpdateHistoryInner; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeAutoUpdateHistory; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeAutoUpdateHistoryProperties; +import java.util.Collections; +import java.util.Map; + +public final class MccCacheNodeAutoUpdateHistoryImpl implements MccCacheNodeAutoUpdateHistory { + private MccCacheNodeAutoUpdateHistoryInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + MccCacheNodeAutoUpdateHistoryImpl(MccCacheNodeAutoUpdateHistoryInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public MccCacheNodeAutoUpdateHistoryProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public MccCacheNodeAutoUpdateHistoryInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeIssueHistoryImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeIssueHistoryImpl.java new file mode 100644 index 000000000000..a291c98e5fed --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeIssueHistoryImpl.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeIssueHistoryInner; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeIssueHistory; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeIssueHistoryProperties; +import java.util.Collections; +import java.util.Map; + +public final class MccCacheNodeIssueHistoryImpl implements MccCacheNodeIssueHistory { + private MccCacheNodeIssueHistoryInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + MccCacheNodeIssueHistoryImpl(MccCacheNodeIssueHistoryInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public MccCacheNodeIssueHistoryProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public MccCacheNodeIssueHistoryInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeTlsCertificateHistoryImpl.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeTlsCertificateHistoryImpl.java new file mode 100644 index 000000000000..3e5b1af170c1 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/MccCacheNodeTlsCertificateHistoryImpl.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeTlsCertificateHistoryInner; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeTlsCertificateHistory; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeTlsCertificateProperties; +import java.util.Collections; +import java.util.Map; + +public final class MccCacheNodeTlsCertificateHistoryImpl implements MccCacheNodeTlsCertificateHistory { + private MccCacheNodeTlsCertificateHistoryInner innerObject; + + private final com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager; + + MccCacheNodeTlsCertificateHistoryImpl(MccCacheNodeTlsCertificateHistoryInner innerObject, + com.azure.resourcemanager.connectedcache.ConnectedCacheManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public String location() { + return this.innerModel().location(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public MccCacheNodeTlsCertificateProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public MccCacheNodeTlsCertificateHistoryInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/CacheNodePreviewResourceListResult.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/CacheNodePreviewResourceListResult.java deleted file mode 100644 index 63738274974c..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/CacheNodePreviewResourceListResult.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a CacheNodePreviewResource list operation. - */ -@Immutable -public final class CacheNodePreviewResourceListResult implements JsonSerializable { - /* - * The CacheNodePreviewResource items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of CacheNodePreviewResourceListResult class. - */ - private CacheNodePreviewResourceListResult() { - } - - /** - * Get the value property: The CacheNodePreviewResource items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model CacheNodePreviewResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CacheNodePreviewResourceListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CacheNodePreviewResourceListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CacheNodePreviewResourceListResult if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the CacheNodePreviewResourceListResult. - */ - public static CacheNodePreviewResourceListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CacheNodePreviewResourceListResult deserializedCacheNodePreviewResourceListResult - = new CacheNodePreviewResourceListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> CacheNodePreviewResourceInner.fromJson(reader1)); - deserializedCacheNodePreviewResourceListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedCacheNodePreviewResourceListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedCacheNodePreviewResourceListResult; - }); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterprisePreviewResourceListResult.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterprisePreviewResourceListResult.java deleted file mode 100644 index 3ea5e4a5176d..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/implementation/models/EnterprisePreviewResourceListResult.java +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a EnterprisePreviewResource list operation. - */ -@Immutable -public final class EnterprisePreviewResourceListResult - implements JsonSerializable { - /* - * The EnterprisePreviewResource items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of EnterprisePreviewResourceListResult class. - */ - private EnterprisePreviewResourceListResult() { - } - - /** - * Get the value property: The EnterprisePreviewResource items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model EnterprisePreviewResourceListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EnterprisePreviewResourceListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EnterprisePreviewResourceListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EnterprisePreviewResourceListResult if the JsonReader was pointing to an instance of it, - * or null if it was pointing to JSON null. - * @throws IllegalStateException If the deserialized JSON object was missing any required properties. - * @throws IOException If an error occurs while reading the EnterprisePreviewResourceListResult. - */ - public static EnterprisePreviewResourceListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EnterprisePreviewResourceListResult deserializedEnterprisePreviewResourceListResult - = new EnterprisePreviewResourceListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> EnterprisePreviewResourceInner.fromJson(reader1)); - deserializedEnterprisePreviewResourceListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedEnterprisePreviewResourceListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedEnterprisePreviewResourceListResult; - }); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCacheNodeProperties.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCacheNodeProperties.java index d9f350d26483..6fa5b7f1c49a 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCacheNodeProperties.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCacheNodeProperties.java @@ -25,6 +25,26 @@ public final class AdditionalCacheNodeProperties implements JsonSerializable cacheNodePropertiesDetailsIssuesList; + /* + * current cache node issue list. + */ + private List issuesList; + + /* + * Number of cache node issues. + */ + private Integer issuesCount; + + /* + * cache node current tls certificate. + */ + private MccCacheNodeTlsCertificate currentTlsCertificate; + + /* + * cache node last auto update information. + */ + private MccCacheNodeAutoUpdateInfo lastAutoUpdateInfo; + /* * Cache node resource aggregated status details. */ @@ -81,11 +101,6 @@ public final class AdditionalCacheNodeProperties implements JsonSerializable cacheNodePropertiesDetailsIssuesList() { return this; } + /** + * Get the issuesList property: current cache node issue list. + * + * @return the issuesList value. + */ + public List issuesList() { + return this.issuesList; + } + + /** + * Get the issuesCount property: Number of cache node issues. + * + * @return the issuesCount value. + */ + public Integer issuesCount() { + return this.issuesCount; + } + + /** + * Get the currentTlsCertificate property: cache node current tls certificate. + * + * @return the currentTlsCertificate value. + */ + public MccCacheNodeTlsCertificate currentTlsCertificate() { + return this.currentTlsCertificate; + } + + /** + * Get the lastAutoUpdateInfo property: cache node last auto update information. + * + * @return the lastAutoUpdateInfo value. + */ + public MccCacheNodeAutoUpdateInfo lastAutoUpdateInfo() { + return this.lastAutoUpdateInfo; + } + /** * Get the aggregatedStatusDetails property: Cache node resource aggregated status details. * @@ -338,26 +394,6 @@ public AdditionalCacheNodeProperties withProxyUrlConfiguration(ProxyUrlConfigura return this; } - /** - * Get the proxyUrl property: Cache node resource Mcc proxy Url. - * - * @return the proxyUrl value. - */ - public String proxyUrl() { - return this.proxyUrl; - } - - /** - * Set the proxyUrl property: Cache node resource Mcc proxy Url. - * - * @param proxyUrl the proxyUrl value to set. - * @return the AdditionalCacheNodeProperties object itself. - */ - public AdditionalCacheNodeProperties withProxyUrl(String proxyUrl) { - this.proxyUrl = proxyUrl; - return this; - } - /** * Get the isProxyRequired property: Cache node resource requires a proxy. * @@ -398,26 +434,6 @@ public AdditionalCacheNodeProperties withOsType(OsType osType) { return this; } - /** - * Get the updateCycleType property: Update Cycle Type. - * - * @return the updateCycleType value. - */ - public CycleType updateCycleType() { - return this.updateCycleType; - } - - /** - * Set the updateCycleType property: Update Cycle Type. - * - * @param updateCycleType the updateCycleType value to set. - * @return the AdditionalCacheNodeProperties object itself. - */ - public AdditionalCacheNodeProperties withUpdateCycleType(CycleType updateCycleType) { - this.updateCycleType = updateCycleType; - return this; - } - /** * Get the autoUpdateVersion property: Auto update or fast update version. * @@ -543,6 +559,35 @@ public OffsetDateTime autoUpdateLastTriggeredDateTime() { return this.autoUpdateLastTriggeredDateTime; } + /** + * Get the creationMethod property: Resource creation method of mcc cache node resource, cli or portal. + * + * @return the creationMethod value. + */ + public Integer creationMethod() { + return this.creationMethod; + } + + /** + * Set the creationMethod property: Resource creation method of mcc cache node resource, cli or portal. + * + * @param creationMethod the creationMethod value to set. + * @return the AdditionalCacheNodeProperties object itself. + */ + public AdditionalCacheNodeProperties withCreationMethod(Integer creationMethod) { + this.creationMethod = creationMethod; + return this; + } + + /** + * Get the tlsStatus property: Cache node tls certificate status. + * + * @return the tlsStatus value. + */ + public String tlsStatus() { + return this.tlsStatus; + } + /** * Get the optionalProperty1 property: Optional property #1 of Mcc response object. * @@ -649,6 +694,12 @@ public AdditionalCacheNodeProperties withOptionalProperty5(String optionalProper * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (currentTlsCertificate() != null) { + currentTlsCertificate().validate(); + } + if (lastAutoUpdateInfo() != null) { + lastAutoUpdateInfo().validate(); + } if (driveConfiguration() != null) { driveConfiguration().forEach(e -> e.validate()); } @@ -672,18 +723,16 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeJson(element)); jsonWriter.writeJsonField("bgpConfiguration", this.bgpConfiguration); jsonWriter.writeJsonField("proxyUrlConfiguration", this.proxyUrlConfiguration); - jsonWriter.writeStringField("proxyUrl", this.proxyUrl); jsonWriter.writeStringField("isProxyRequired", this.isProxyRequired == null ? null : this.isProxyRequired.toString()); jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString()); - jsonWriter.writeStringField("updateCycleType", - this.updateCycleType == null ? null : this.updateCycleType.toString()); jsonWriter.writeStringField("autoUpdateVersion", this.autoUpdateVersion); jsonWriter.writeStringField("updateInfoDetails", this.updateInfoDetails); jsonWriter.writeStringField("updateRequestedDateTime", this.updateRequestedDateTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.updateRequestedDateTime)); + jsonWriter.writeNumberField("creationMethod", this.creationMethod); jsonWriter.writeStringField("optionalProperty1", this.optionalProperty1); jsonWriter.writeStringField("optionalProperty2", this.optionalProperty2); jsonWriter.writeStringField("optionalProperty3", this.optionalProperty3); @@ -713,6 +762,17 @@ public static AdditionalCacheNodeProperties fromJson(JsonReader jsonReader) thro = reader.readArray(reader1 -> reader1.getString()); deserializedAdditionalCacheNodeProperties.cacheNodePropertiesDetailsIssuesList = cacheNodePropertiesDetailsIssuesList; + } else if ("issuesList".equals(fieldName)) { + List issuesList = reader.readArray(reader1 -> reader1.getString()); + deserializedAdditionalCacheNodeProperties.issuesList = issuesList; + } else if ("issuesCount".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.issuesCount = reader.getNullable(JsonReader::getInt); + } else if ("currentTlsCertificate".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.currentTlsCertificate + = MccCacheNodeTlsCertificate.fromJson(reader); + } else if ("lastAutoUpdateInfo".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.lastAutoUpdateInfo + = MccCacheNodeAutoUpdateInfo.fromJson(reader); } else if ("aggregatedStatusDetails".equals(fieldName)) { deserializedAdditionalCacheNodeProperties.aggregatedStatusDetails = reader.getString(); } else if ("aggregatedStatusText".equals(fieldName)) { @@ -740,16 +800,11 @@ public static AdditionalCacheNodeProperties fromJson(JsonReader jsonReader) thro } else if ("proxyUrlConfiguration".equals(fieldName)) { deserializedAdditionalCacheNodeProperties.proxyUrlConfiguration = ProxyUrlConfiguration.fromJson(reader); - } else if ("proxyUrl".equals(fieldName)) { - deserializedAdditionalCacheNodeProperties.proxyUrl = reader.getString(); } else if ("isProxyRequired".equals(fieldName)) { deserializedAdditionalCacheNodeProperties.isProxyRequired = ProxyRequired.fromString(reader.getString()); } else if ("osType".equals(fieldName)) { deserializedAdditionalCacheNodeProperties.osType = OsType.fromString(reader.getString()); - } else if ("updateCycleType".equals(fieldName)) { - deserializedAdditionalCacheNodeProperties.updateCycleType - = CycleType.fromString(reader.getString()); } else if ("autoUpdateVersion".equals(fieldName)) { deserializedAdditionalCacheNodeProperties.autoUpdateVersion = reader.getString(); } else if ("updateInfoDetails".equals(fieldName)) { @@ -774,6 +829,10 @@ public static AdditionalCacheNodeProperties fromJson(JsonReader jsonReader) thro } else if ("autoUpdateLastTriggeredDateTime".equals(fieldName)) { deserializedAdditionalCacheNodeProperties.autoUpdateLastTriggeredDateTime = reader .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("creationMethod".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.creationMethod = reader.getNullable(JsonReader::getInt); + } else if ("tlsStatus".equals(fieldName)) { + deserializedAdditionalCacheNodeProperties.tlsStatus = reader.getString(); } else if ("optionalProperty1".equals(fieldName)) { deserializedAdditionalCacheNodeProperties.optionalProperty1 = reader.getString(); } else if ("optionalProperty2".equals(fieldName)) { diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCustomerProperties.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCustomerProperties.java index f35a3970d6a1..4ddc49ba9ace 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCustomerProperties.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/AdditionalCustomerProperties.java @@ -19,11 +19,6 @@ */ @Fluent public final class AdditionalCustomerProperties implements JsonSerializable { - /* - * Customer resource last PeeringDB update timestamp. - */ - private OffsetDateTime peeringDbLastUpdateTime; - /* * Customer resource cache efficiency. */ @@ -180,15 +175,6 @@ public final class AdditionalCustomerProperties implements JsonSerializable CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("customerPropertiesOverviewCacheEfficiency".equals(fieldName)) { + if ("customerPropertiesOverviewCacheEfficiency".equals(fieldName)) { deserializedAdditionalCustomerProperties.customerPropertiesOverviewCacheEfficiency = reader.getNullable(JsonReader::getDouble); } else if ("customerPropertiesOverviewAverageEgressMbps".equals(fieldName)) { diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeInstallProperties.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeInstallProperties.java index 91ebf57083f5..9ca33cb542df 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeInstallProperties.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeInstallProperties.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * Mcc cache node resource install script properties. @@ -41,6 +42,21 @@ public final class CacheNodeInstallProperties implements JsonSerializable driveConfiguration; + + /* + * proxyUrl configuration of the cache node + */ + private ProxyUrlConfiguration proxyUrlConfiguration; + /** * Creates an instance of CacheNodeInstallProperties class. */ @@ -92,12 +108,45 @@ public String registrationKey() { return this.registrationKey; } + /** + * Get the tlsCertificateProvisioningKey property: Mcc Tls certificate provisioning key. + * + * @return the tlsCertificateProvisioningKey value. + */ + public String tlsCertificateProvisioningKey() { + return this.tlsCertificateProvisioningKey; + } + + /** + * Get the driveConfiguration property: Cache node resource drive configurations. + * + * @return the driveConfiguration value. + */ + public List driveConfiguration() { + return this.driveConfiguration; + } + + /** + * Get the proxyUrlConfiguration property: proxyUrl configuration of the cache node. + * + * @return the proxyUrlConfiguration value. + */ + public ProxyUrlConfiguration proxyUrlConfiguration() { + return this.proxyUrlConfiguration; + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (driveConfiguration() != null) { + driveConfiguration().forEach(e -> e.validate()); + } + if (proxyUrlConfiguration() != null) { + proxyUrlConfiguration().validate(); + } } /** @@ -108,6 +157,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("customerId", this.customerId); jsonWriter.writeStringField("cacheNodeId", this.cacheNodeId); + jsonWriter.writeArrayField("driveConfiguration", this.driveConfiguration, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("proxyUrlConfiguration", this.proxyUrlConfiguration); return jsonWriter.writeEndObject(); } @@ -136,6 +188,15 @@ public static CacheNodeInstallProperties fromJson(JsonReader jsonReader) throws deserializedCacheNodeInstallProperties.secondaryAccountKey = reader.getString(); } else if ("registrationKey".equals(fieldName)) { deserializedCacheNodeInstallProperties.registrationKey = reader.getString(); + } else if ("tlsCertificateProvisioningKey".equals(fieldName)) { + deserializedCacheNodeInstallProperties.tlsCertificateProvisioningKey = reader.getString(); + } else if ("driveConfiguration".equals(fieldName)) { + List driveConfiguration + = reader.readArray(reader1 -> CacheNodeDriveConfiguration.fromJson(reader1)); + deserializedCacheNodeInstallProperties.driveConfiguration = driveConfiguration; + } else if ("proxyUrlConfiguration".equals(fieldName)) { + deserializedCacheNodeInstallProperties.proxyUrlConfiguration + = ProxyUrlConfiguration.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeOldResponse.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeOldResponse.java deleted file mode 100644 index 429e10dd89ec..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodeOldResponse.java +++ /dev/null @@ -1,211 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.exception.ManagementError; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Model representing Cache Node for ConnectedCache resource. - */ -@Fluent -public final class CacheNodeOldResponse implements JsonSerializable { - /* - * The provisioned state of the resource - */ - private ProvisioningState provisioningState; - - /* - * statusCode used to get code details of Mcc response object - */ - private String statusCode; - - /* - * statusText used to get status details in string format of Mcc response object - */ - private String statusText; - - /* - * statusDetails used to get inner details of Mcc response object - */ - private String statusDetails; - - /* - * status of the HTTP error code - */ - private String status; - - /* - * The error details - */ - private ManagementError error; - - /** - * Creates an instance of CacheNodeOldResponse class. - */ - public CacheNodeOldResponse() { - } - - /** - * Get the provisioningState property: The provisioned state of the resource. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the statusCode property: statusCode used to get code details of Mcc response object. - * - * @return the statusCode value. - */ - public String statusCode() { - return this.statusCode; - } - - /** - * Set the statusCode property: statusCode used to get code details of Mcc response object. - * - * @param statusCode the statusCode value to set. - * @return the CacheNodeOldResponse object itself. - */ - public CacheNodeOldResponse withStatusCode(String statusCode) { - this.statusCode = statusCode; - return this; - } - - /** - * Get the statusText property: statusText used to get status details in string format of Mcc response object. - * - * @return the statusText value. - */ - public String statusText() { - return this.statusText; - } - - /** - * Set the statusText property: statusText used to get status details in string format of Mcc response object. - * - * @param statusText the statusText value to set. - * @return the CacheNodeOldResponse object itself. - */ - public CacheNodeOldResponse withStatusText(String statusText) { - this.statusText = statusText; - return this; - } - - /** - * Get the statusDetails property: statusDetails used to get inner details of Mcc response object. - * - * @return the statusDetails value. - */ - public String statusDetails() { - return this.statusDetails; - } - - /** - * Set the statusDetails property: statusDetails used to get inner details of Mcc response object. - * - * @param statusDetails the statusDetails value to set. - * @return the CacheNodeOldResponse object itself. - */ - public CacheNodeOldResponse withStatusDetails(String statusDetails) { - this.statusDetails = statusDetails; - return this; - } - - /** - * Get the status property: status of the HTTP error code. - * - * @return the status value. - */ - public String status() { - return this.status; - } - - /** - * Get the error property: The error details. - * - * @return the error value. - */ - public ManagementError error() { - return this.error; - } - - /** - * Set the error property: The error details. - * - * @param error the error value to set. - * @return the CacheNodeOldResponse object itself. - */ - public CacheNodeOldResponse withError(ManagementError error) { - this.error = error; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("statusCode", this.statusCode); - jsonWriter.writeStringField("statusText", this.statusText); - jsonWriter.writeStringField("statusDetails", this.statusDetails); - jsonWriter.writeJsonField("error", this.error); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CacheNodeOldResponse from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CacheNodeOldResponse if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. - * @throws IOException If an error occurs while reading the CacheNodeOldResponse. - */ - public static CacheNodeOldResponse fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CacheNodeOldResponse deserializedCacheNodeOldResponse = new CacheNodeOldResponse(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedCacheNodeOldResponse.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("statusCode".equals(fieldName)) { - deserializedCacheNodeOldResponse.statusCode = reader.getString(); - } else if ("statusText".equals(fieldName)) { - deserializedCacheNodeOldResponse.statusText = reader.getString(); - } else if ("statusDetails".equals(fieldName)) { - deserializedCacheNodeOldResponse.statusDetails = reader.getString(); - } else if ("status".equals(fieldName)) { - deserializedCacheNodeOldResponse.status = reader.getString(); - } else if ("error".equals(fieldName)) { - deserializedCacheNodeOldResponse.error = ManagementError.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedCacheNodeOldResponse; - }); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodePreviewResource.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodePreviewResource.java deleted file mode 100644 index 10e1adb6b071..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodePreviewResource.java +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.models; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner; -import java.util.Map; - -/** - * An immutable client-side representation of CacheNodePreviewResource. - */ -public interface CacheNodePreviewResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - CacheNodeOldResponse properties(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.CacheNodePreviewResourceInner object. - * - * @return the inner object. - */ - CacheNodePreviewResourceInner innerModel(); - - /** - * The entirety of the CacheNodePreviewResource definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { - } - - /** - * The CacheNodePreviewResource definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the CacheNodePreviewResource definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the CacheNodePreviewResource definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(String location); - } - - /** - * The stage of the CacheNodePreviewResource definition allowing to specify parent resource. - */ - interface WithResourceGroup { - /** - * Specifies resourceGroupName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @return the next definition stage. - */ - WithCreate withExistingResourceGroup(String resourceGroupName); - } - - /** - * The stage of the CacheNodePreviewResource definition which contains all the minimum required properties for - * the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - CacheNodePreviewResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - CacheNodePreviewResource create(Context context); - } - - /** - * The stage of the CacheNodePreviewResource definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the CacheNodePreviewResource definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(CacheNodeOldResponse properties); - } - } - - /** - * Begins update for the CacheNodePreviewResource resource. - * - * @return the stage of resource update. - */ - CacheNodePreviewResource.Update update(); - - /** - * The template for CacheNodePreviewResource update. - */ - interface Update extends UpdateStages.WithTags { - /** - * Executes the update request. - * - * @return the updated resource. - */ - CacheNodePreviewResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - CacheNodePreviewResource apply(Context context); - } - - /** - * The CacheNodePreviewResource update stages. - */ - interface UpdateStages { - /** - * The stage of the CacheNodePreviewResource update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - CacheNodePreviewResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - CacheNodePreviewResource refresh(Context context); -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodesOperations.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodesOperations.java deleted file mode 100644 index 4912e3212017..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CacheNodesOperations.java +++ /dev/null @@ -1,168 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.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 CacheNodesOperations. - */ -public interface CacheNodesOperations { - /** - * Retrieves the properties of a cacheNodes. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response}. - */ - Response getByResourceGroupWithResponse(String resourceGroupName, - String customerResourceName, Context context); - - /** - * Retrieves the properties of a cacheNodes. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type. - */ - CacheNodePreviewResource getByResourceGroup(String resourceGroupName, String customerResourceName); - - /** - * Deletes an existing cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByResourceGroupWithResponse(String resourceGroupName, String customerResourceName, - Context context); - - /** - * Deletes an existing cache Node. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteByResourceGroup(String resourceGroupName, String customerResourceName); - - /** - * Retrieves the properties of all ConnectedCache. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Retrieves the properties of all ConnectedCache. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a CacheNodePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(Context context); - - /** - * Retrieves the properties of a cacheNodes. - * - * @param id the resource ID. - * @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 concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response}. - */ - CacheNodePreviewResource getById(String id); - - /** - * Retrieves the properties of a cacheNodes. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return concrete tracked resource types can be created by aliasing this type using a specific property type along - * with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Deletes an existing cache Node. - * - * @param id the resource ID. - * @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. - */ - void deleteById(String id); - - /** - * Deletes an existing cache Node. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new CacheNodePreviewResource resource. - * - * @param name resource name. - * @return the first stage of the new CacheNodePreviewResource definition. - */ - CacheNodePreviewResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CycleType.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CycleType.java deleted file mode 100644 index 49101a5392c9..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/CycleType.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Update Cycle type. - */ -public final class CycleType extends ExpandableStringEnum { - /** - * customer selection of preview update install mcc on their physical vm. - */ - public static final CycleType PREVIEW = fromString("Preview"); - - /** - * customer selection of slow update to install mcc on their physical vm. - */ - public static final CycleType SLOW = fromString("Slow"); - - /** - * customer selection of fast / auto update to install mcc on their physical vm. - */ - public static final CycleType FAST = fromString("Fast"); - - /** - * Creates a new instance of CycleType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public CycleType() { - } - - /** - * Creates or finds a CycleType from its string representation. - * - * @param name a name to look for. - * @return the corresponding CycleType. - */ - public static CycleType fromString(String name) { - return fromString(name, CycleType.class); - } - - /** - * Gets known CycleType values. - * - * @return known CycleType values. - */ - public static Collection values() { - return values(CycleType.class); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseCustomerOperations.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseCustomerOperations.java deleted file mode 100644 index 44d16fefab10..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseCustomerOperations.java +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.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 EnterpriseCustomerOperations. - */ -public interface EnterpriseCustomerOperations { - /** - * Retrieves the properties of a Enterprise customer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response}. - */ - Response getByResourceGroupWithResponse(String resourceGroupName, - String customerResourceName, Context context); - - /** - * Retrieves the properties of a Enterprise customer. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource. - */ - EnterprisePreviewResource getByResourceGroup(String resourceGroupName, String customerResourceName); - - /** - * Deletes an existing customer Enterprise resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByResourceGroupWithResponse(String resourceGroupName, String customerResourceName, - Context context); - - /** - * Deletes an existing customer Enterprise resource. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param customerResourceName Name of the Customer resource. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void deleteByResourceGroup(String resourceGroupName, String customerResourceName); - - /** - * Retrieves the properties of all ConnectedCache enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * Retrieves the properties of all ConnectedCache enterpriseCustomers. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * Retrieves the properties of all ConnectedCaches. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a EnterprisePreviewResource list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable list(Context context); - - /** - * Retrieves the properties of a Enterprise customer. - * - * @param id the resource ID. - * @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 connectedCache Resource along with {@link Response}. - */ - EnterprisePreviewResource getById(String id); - - /** - * Retrieves the properties of a Enterprise customer. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return connectedCache Resource along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Deletes an existing customer Enterprise resource. - * - * @param id the resource ID. - * @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. - */ - void deleteById(String id); - - /** - * Deletes an existing customer Enterprise resource. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link Response}. - */ - Response deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new EnterprisePreviewResource resource. - * - * @param name resource name. - * @return the first stage of the new EnterprisePreviewResource definition. - */ - EnterprisePreviewResource.DefinitionStages.Blank define(String name); -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodeResource.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodeResource.java index e835e4a675c7..a0c476c6fe08 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodeResource.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodeResource.java @@ -271,4 +271,64 @@ interface WithTags { * @return mcc cache node resource all install details. */ MccCacheNodeInstallDetails getCacheNodeInstallDetails(); + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @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 mcc cache node resource auto update history along with {@link Response}. + */ + Response getCacheNodeAutoUpdateHistoryWithResponse(Context context); + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @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 mcc cache node resource auto update history. + */ + MccCacheNodeAutoUpdateHistory getCacheNodeAutoUpdateHistory(); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @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 mcc cache node resource issue history along with {@link Response}. + */ + Response getCacheNodeMccIssueDetailsHistoryWithResponse(Context context); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @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 mcc cache node resource issue history. + */ + MccCacheNodeIssueHistory getCacheNodeMccIssueDetailsHistory(); + + /** + * This api gets ispCacheNode resource tls certificate histrory information. + * + * @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 mcc cache node resource Tls certificate history details along with {@link Response}. + */ + Response getCacheNodeTlsCertificateHistoryWithResponse(Context context); + + /** + * This api gets ispCacheNode resource tls certificate histrory information. + * + * @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 mcc cache node resource Tls certificate history details. + */ + MccCacheNodeTlsCertificateHistory getCacheNodeTlsCertificateHistory(); } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodesOperations.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodesOperations.java index 40e26622e79e..44a3d02ada82 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodesOperations.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterpriseMccCacheNodesOperations.java @@ -124,6 +124,93 @@ Response getCacheNodeInstallDetailsWithResponse(Stri MccCacheNodeInstallDetails getCacheNodeInstallDetails(String resourceGroupName, String customerResourceName, String cacheNodeResourceName); + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history along with {@link Response}. + */ + Response getCacheNodeAutoUpdateHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history. + */ + MccCacheNodeAutoUpdateHistory getCacheNodeAutoUpdateHistory(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history along with {@link Response}. + */ + Response getCacheNodeMccIssueDetailsHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history. + */ + MccCacheNodeIssueHistory getCacheNodeMccIssueDetailsHistory(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + + /** + * This api gets ispCacheNode resource tls certificate histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource Tls certificate history details along with {@link Response}. + */ + Response getCacheNodeTlsCertificateHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource tls certificate histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource Tls certificate history details. + */ + MccCacheNodeTlsCertificateHistory getCacheNodeTlsCertificateHistory(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName); + /** * This api gets ispCacheNode resource information. * diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterprisePreviewResource.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterprisePreviewResource.java deleted file mode 100644 index 68c2bbe0fa71..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/EnterprisePreviewResource.java +++ /dev/null @@ -1,252 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.models; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner; -import java.util.Map; - -/** - * An immutable client-side representation of EnterprisePreviewResource. - */ -public interface EnterprisePreviewResource { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - CacheNodeOldResponse properties(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.EnterprisePreviewResourceInner object. - * - * @return the inner object. - */ - EnterprisePreviewResourceInner innerModel(); - - /** - * The entirety of the EnterprisePreviewResource definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { - } - - /** - * The EnterprisePreviewResource definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the EnterprisePreviewResource definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the EnterprisePreviewResource definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(String location); - } - - /** - * The stage of the EnterprisePreviewResource definition allowing to specify parent resource. - */ - interface WithResourceGroup { - /** - * Specifies resourceGroupName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @return the next definition stage. - */ - WithCreate withExistingResourceGroup(String resourceGroupName); - } - - /** - * The stage of the EnterprisePreviewResource definition which contains all the minimum required properties for - * the resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - EnterprisePreviewResource create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - EnterprisePreviewResource create(Context context); - } - - /** - * The stage of the EnterprisePreviewResource definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the EnterprisePreviewResource definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(CacheNodeOldResponse properties); - } - } - - /** - * Begins update for the EnterprisePreviewResource resource. - * - * @return the stage of resource update. - */ - EnterprisePreviewResource.Update update(); - - /** - * The template for EnterprisePreviewResource update. - */ - interface Update extends UpdateStages.WithTags { - /** - * Executes the update request. - * - * @return the updated resource. - */ - EnterprisePreviewResource apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - EnterprisePreviewResource apply(Context context); - } - - /** - * The EnterprisePreviewResource update stages. - */ - interface UpdateStages { - /** - * The stage of the EnterprisePreviewResource update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - EnterprisePreviewResource refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - EnterprisePreviewResource refresh(Context context); -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodeResource.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodeResource.java index ea587816adcd..b025e2d7d5d3 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodeResource.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodeResource.java @@ -292,4 +292,44 @@ interface WithTags { * @return mcc cache node resource all install details. */ MccCacheNodeInstallDetails getCacheNodeInstallDetails(); + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @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 mcc cache node resource auto update history along with {@link Response}. + */ + Response getCacheNodeAutoUpdateHistoryWithResponse(Context context); + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @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 mcc cache node resource auto update history. + */ + MccCacheNodeAutoUpdateHistory getCacheNodeAutoUpdateHistory(); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @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 mcc cache node resource issue history along with {@link Response}. + */ + Response getCacheNodeMccIssueDetailsHistoryWithResponse(Context context); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @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 mcc cache node resource issue history. + */ + MccCacheNodeIssueHistory getCacheNodeMccIssueDetailsHistory(); } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodesOperations.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodesOperations.java index 399bfbb3d595..46198650fe04 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodesOperations.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/IspCacheNodesOperations.java @@ -151,6 +151,64 @@ Response getCacheNodeInstallDetailsWithResponse(Stri MccCacheNodeInstallDetails getCacheNodeInstallDetails(String resourceGroupName, String customerResourceName, String cacheNodeResourceName); + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history along with {@link Response}. + */ + Response getCacheNodeAutoUpdateHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource auto update histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource auto update history. + */ + MccCacheNodeAutoUpdateHistory getCacheNodeAutoUpdateHistory(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history along with {@link Response}. + */ + Response getCacheNodeMccIssueDetailsHistoryWithResponse(String resourceGroupName, + String customerResourceName, String cacheNodeResourceName, Context context); + + /** + * This api gets ispCacheNode resource issues details histrory information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param customerResourceName Name of the Customer resource. + * @param cacheNodeResourceName Name of the ConnectedCache resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mcc cache node resource issue history. + */ + MccCacheNodeIssueHistory getCacheNodeMccIssueDetailsHistory(String resourceGroupName, String customerResourceName, + String cacheNodeResourceName); + /** * This api gets ispCacheNode resource information. * diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeAutoUpdateHistory.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeAutoUpdateHistory.java new file mode 100644 index 000000000000..93bf6a5568dc --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeAutoUpdateHistory.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeAutoUpdateHistoryInner; +import java.util.Map; + +/** + * An immutable client-side representation of MccCacheNodeAutoUpdateHistory. + */ +public interface MccCacheNodeAutoUpdateHistory { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: Mcc cache node resource auto update history properties. + * + * @return the properties value. + */ + MccCacheNodeAutoUpdateHistoryProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeAutoUpdateHistoryInner object. + * + * @return the inner object. + */ + MccCacheNodeAutoUpdateHistoryInner innerModel(); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeAutoUpdateHistoryProperties.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeAutoUpdateHistoryProperties.java new file mode 100644 index 000000000000..4c5f071ab589 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeAutoUpdateHistoryProperties.java @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Mcc cache node resource auto update history properties. + */ +@Immutable +public final class MccCacheNodeAutoUpdateHistoryProperties + implements JsonSerializable { + /* + * Mcc customer resource Id. + */ + private String customerId; + + /* + * Mcc cache node resource Id. + */ + private String cacheNodeId; + + /* + * Cache node resource auto update history information. + */ + private List autoUpdateHistory; + + /** + * Creates an instance of MccCacheNodeAutoUpdateHistoryProperties class. + */ + private MccCacheNodeAutoUpdateHistoryProperties() { + } + + /** + * Get the customerId property: Mcc customer resource Id. + * + * @return the customerId value. + */ + public String customerId() { + return this.customerId; + } + + /** + * Get the cacheNodeId property: Mcc cache node resource Id. + * + * @return the cacheNodeId value. + */ + public String cacheNodeId() { + return this.cacheNodeId; + } + + /** + * Get the autoUpdateHistory property: Cache node resource auto update history information. + * + * @return the autoUpdateHistory value. + */ + public List autoUpdateHistory() { + return this.autoUpdateHistory; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (autoUpdateHistory() != null) { + autoUpdateHistory().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("autoUpdateHistory", this.autoUpdateHistory, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MccCacheNodeAutoUpdateHistoryProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MccCacheNodeAutoUpdateHistoryProperties if the JsonReader was pointing to an instance of + * it, or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the MccCacheNodeAutoUpdateHistoryProperties. + */ + public static MccCacheNodeAutoUpdateHistoryProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MccCacheNodeAutoUpdateHistoryProperties deserializedMccCacheNodeAutoUpdateHistoryProperties + = new MccCacheNodeAutoUpdateHistoryProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("customerId".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateHistoryProperties.customerId = reader.getString(); + } else if ("cacheNodeId".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateHistoryProperties.cacheNodeId = reader.getString(); + } else if ("autoUpdateHistory".equals(fieldName)) { + List autoUpdateHistory + = reader.readArray(reader1 -> MccCacheNodeAutoUpdateInfo.fromJson(reader1)); + deserializedMccCacheNodeAutoUpdateHistoryProperties.autoUpdateHistory = autoUpdateHistory; + } else { + reader.skipChildren(); + } + } + + return deserializedMccCacheNodeAutoUpdateHistoryProperties; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeAutoUpdateInfo.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeAutoUpdateInfo.java new file mode 100644 index 000000000000..d6ea4a87fd1b --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeAutoUpdateInfo.java @@ -0,0 +1,343 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * Mcc cache node resource auto update properties. + */ +@Immutable +public final class MccCacheNodeAutoUpdateInfo implements JsonSerializable { + /* + * Auto update image uri before update. + */ + private String imageUriBeforeUpdate; + + /* + * Auto update image uri targetted to update. + */ + private String imageUriTargeted; + + /* + * Auto update image uri at Terminal. + */ + private String imageUriTerminal; + + /* + * Auto update Ring Type. + */ + private Integer autoUpdateRingType; + + /* + * Auto update image uri after update. + */ + private OffsetDateTime movedToTerminalStateDateTime; + + /* + * Auto update image uri before update. + */ + private Integer ruleRequestedWeek; + + /* + * Auto update image uri after update. + */ + private Integer ruleRequestedDay; + + /* + * Auto update entity created datetime. + */ + private OffsetDateTime createdDateTimeUtc; + + /* + * Auto update entity last updated datetime. + */ + private OffsetDateTime updatedRegistryDateTimeUtc; + + /* + * This text describing the purpose of the plan of auto update. + */ + private String planChangeLogText; + + /* + * Auto update last applied status. + */ + private Integer autoUpdateLastAppliedStatus; + + /* + * Auto update last applied status text. + */ + private String autoUpdateLastAppliedStatusText; + + /* + * Auto update last applied detailed status text. + */ + private String autoUpdateLastAppliedStatusDetailedText; + + /* + * Auto update planId. + */ + private Long planId; + + /* + * Auto update time to go live date time. + */ + private String timeToGoLiveDateTime; + + /* + * Auto update rule requested minute. + */ + private String ruleRequestedMinute; + + /* + * Auto update rule requested hour. + */ + private String ruleRequestedHour; + + /** + * Creates an instance of MccCacheNodeAutoUpdateInfo class. + */ + private MccCacheNodeAutoUpdateInfo() { + } + + /** + * Get the imageUriBeforeUpdate property: Auto update image uri before update. + * + * @return the imageUriBeforeUpdate value. + */ + public String imageUriBeforeUpdate() { + return this.imageUriBeforeUpdate; + } + + /** + * Get the imageUriTargeted property: Auto update image uri targetted to update. + * + * @return the imageUriTargeted value. + */ + public String imageUriTargeted() { + return this.imageUriTargeted; + } + + /** + * Get the imageUriTerminal property: Auto update image uri at Terminal. + * + * @return the imageUriTerminal value. + */ + public String imageUriTerminal() { + return this.imageUriTerminal; + } + + /** + * Get the autoUpdateRingType property: Auto update Ring Type. + * + * @return the autoUpdateRingType value. + */ + public Integer autoUpdateRingType() { + return this.autoUpdateRingType; + } + + /** + * Get the movedToTerminalStateDateTime property: Auto update image uri after update. + * + * @return the movedToTerminalStateDateTime value. + */ + public OffsetDateTime movedToTerminalStateDateTime() { + return this.movedToTerminalStateDateTime; + } + + /** + * Get the ruleRequestedWeek property: Auto update image uri before update. + * + * @return the ruleRequestedWeek value. + */ + public Integer ruleRequestedWeek() { + return this.ruleRequestedWeek; + } + + /** + * Get the ruleRequestedDay property: Auto update image uri after update. + * + * @return the ruleRequestedDay value. + */ + public Integer ruleRequestedDay() { + return this.ruleRequestedDay; + } + + /** + * Get the createdDateTimeUtc property: Auto update entity created datetime. + * + * @return the createdDateTimeUtc value. + */ + public OffsetDateTime createdDateTimeUtc() { + return this.createdDateTimeUtc; + } + + /** + * Get the updatedRegistryDateTimeUtc property: Auto update entity last updated datetime. + * + * @return the updatedRegistryDateTimeUtc value. + */ + public OffsetDateTime updatedRegistryDateTimeUtc() { + return this.updatedRegistryDateTimeUtc; + } + + /** + * Get the planChangeLogText property: This text describing the purpose of the plan of auto update. + * + * @return the planChangeLogText value. + */ + public String planChangeLogText() { + return this.planChangeLogText; + } + + /** + * Get the autoUpdateLastAppliedStatus property: Auto update last applied status. + * + * @return the autoUpdateLastAppliedStatus value. + */ + public Integer autoUpdateLastAppliedStatus() { + return this.autoUpdateLastAppliedStatus; + } + + /** + * Get the autoUpdateLastAppliedStatusText property: Auto update last applied status text. + * + * @return the autoUpdateLastAppliedStatusText value. + */ + public String autoUpdateLastAppliedStatusText() { + return this.autoUpdateLastAppliedStatusText; + } + + /** + * Get the autoUpdateLastAppliedStatusDetailedText property: Auto update last applied detailed status text. + * + * @return the autoUpdateLastAppliedStatusDetailedText value. + */ + public String autoUpdateLastAppliedStatusDetailedText() { + return this.autoUpdateLastAppliedStatusDetailedText; + } + + /** + * Get the planId property: Auto update planId. + * + * @return the planId value. + */ + public Long planId() { + return this.planId; + } + + /** + * Get the timeToGoLiveDateTime property: Auto update time to go live date time. + * + * @return the timeToGoLiveDateTime value. + */ + public String timeToGoLiveDateTime() { + return this.timeToGoLiveDateTime; + } + + /** + * Get the ruleRequestedMinute property: Auto update rule requested minute. + * + * @return the ruleRequestedMinute value. + */ + public String ruleRequestedMinute() { + return this.ruleRequestedMinute; + } + + /** + * Get the ruleRequestedHour property: Auto update rule requested hour. + * + * @return the ruleRequestedHour value. + */ + public String ruleRequestedHour() { + return this.ruleRequestedHour; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MccCacheNodeAutoUpdateInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MccCacheNodeAutoUpdateInfo if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the MccCacheNodeAutoUpdateInfo. + */ + public static MccCacheNodeAutoUpdateInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MccCacheNodeAutoUpdateInfo deserializedMccCacheNodeAutoUpdateInfo = new MccCacheNodeAutoUpdateInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("imageUriBeforeUpdate".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.imageUriBeforeUpdate = reader.getString(); + } else if ("imageUriTargeted".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.imageUriTargeted = reader.getString(); + } else if ("imageUriTerminal".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.imageUriTerminal = reader.getString(); + } else if ("autoUpdateRingType".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.autoUpdateRingType = reader.getNullable(JsonReader::getInt); + } else if ("movedToTerminalStateDateTime".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.movedToTerminalStateDateTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("ruleRequestedWeek".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.ruleRequestedWeek = reader.getNullable(JsonReader::getInt); + } else if ("ruleRequestedDay".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.ruleRequestedDay = reader.getNullable(JsonReader::getInt); + } else if ("createdDateTimeUtc".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.createdDateTimeUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("updatedRegistryDateTimeUtc".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.updatedRegistryDateTimeUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("planChangeLogText".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.planChangeLogText = reader.getString(); + } else if ("autoUpdateLastAppliedStatus".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.autoUpdateLastAppliedStatus + = reader.getNullable(JsonReader::getInt); + } else if ("autoUpdateLastAppliedStatusText".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.autoUpdateLastAppliedStatusText = reader.getString(); + } else if ("autoUpdateLastAppliedStatusDetailedText".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.autoUpdateLastAppliedStatusDetailedText = reader.getString(); + } else if ("planId".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.planId = reader.getNullable(JsonReader::getLong); + } else if ("timeToGoLiveDateTime".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.timeToGoLiveDateTime = reader.getString(); + } else if ("ruleRequestedMinute".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.ruleRequestedMinute = reader.getString(); + } else if ("ruleRequestedHour".equals(fieldName)) { + deserializedMccCacheNodeAutoUpdateInfo.ruleRequestedHour = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMccCacheNodeAutoUpdateInfo; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeIssueHistory.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeIssueHistory.java new file mode 100644 index 000000000000..a51e994890bb --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeIssueHistory.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeIssueHistoryInner; +import java.util.Map; + +/** + * An immutable client-side representation of MccCacheNodeIssueHistory. + */ +public interface MccCacheNodeIssueHistory { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: Mcc cache node resource issue history properties. + * + * @return the properties value. + */ + MccCacheNodeIssueHistoryProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeIssueHistoryInner object. + * + * @return the inner object. + */ + MccCacheNodeIssueHistoryInner innerModel(); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeIssueHistoryProperties.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeIssueHistoryProperties.java new file mode 100644 index 000000000000..67f12cfd1988 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeIssueHistoryProperties.java @@ -0,0 +1,121 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Mcc cache node resource issue history properties. + */ +@Immutable +public final class MccCacheNodeIssueHistoryProperties implements JsonSerializable { + /* + * Mcc customer resource Id. + */ + private String customerId; + + /* + * Mcc cache node resource Id. + */ + private String cacheNodeId; + + /* + * Cache node resource issue details history. + */ + private List mccIssueHistory; + + /** + * Creates an instance of MccCacheNodeIssueHistoryProperties class. + */ + private MccCacheNodeIssueHistoryProperties() { + } + + /** + * Get the customerId property: Mcc customer resource Id. + * + * @return the customerId value. + */ + public String customerId() { + return this.customerId; + } + + /** + * Get the cacheNodeId property: Mcc cache node resource Id. + * + * @return the cacheNodeId value. + */ + public String cacheNodeId() { + return this.cacheNodeId; + } + + /** + * Get the mccIssueHistory property: Cache node resource issue details history. + * + * @return the mccIssueHistory value. + */ + public List mccIssueHistory() { + return this.mccIssueHistory; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (mccIssueHistory() != null) { + mccIssueHistory().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("mccIssueHistory", this.mccIssueHistory, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MccCacheNodeIssueHistoryProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MccCacheNodeIssueHistoryProperties if the JsonReader was pointing to an instance of it, or + * null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the MccCacheNodeIssueHistoryProperties. + */ + public static MccCacheNodeIssueHistoryProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MccCacheNodeIssueHistoryProperties deserializedMccCacheNodeIssueHistoryProperties + = new MccCacheNodeIssueHistoryProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("customerId".equals(fieldName)) { + deserializedMccCacheNodeIssueHistoryProperties.customerId = reader.getString(); + } else if ("cacheNodeId".equals(fieldName)) { + deserializedMccCacheNodeIssueHistoryProperties.cacheNodeId = reader.getString(); + } else if ("mccIssueHistory".equals(fieldName)) { + List mccIssueHistory = reader.readArray(reader1 -> MccIssue.fromJson(reader1)); + deserializedMccCacheNodeIssueHistoryProperties.mccIssueHistory = mccIssueHistory; + } else { + reader.skipChildren(); + } + } + + return deserializedMccCacheNodeIssueHistoryProperties; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeTlsCertificate.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeTlsCertificate.java new file mode 100644 index 000000000000..54d187bad17d --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeTlsCertificate.java @@ -0,0 +1,181 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * Mcc cache node resource Tls certificate details. + */ +@Immutable +public final class MccCacheNodeTlsCertificate implements JsonSerializable { + /* + * Mcc cache node Tls certificate status. + */ + private String actionRequired; + + /* + * Mcc cache node Tls certificate file name. + */ + private String certificateFileName; + + /* + * Mcc cache node Tls certificate thumbprint. + */ + private String thumbprint; + + /* + * Mcc cache node Tls certificate expiry date. + */ + private OffsetDateTime expiryDate; + + /* + * Mcc cache node Tls certificate not before date. + */ + private OffsetDateTime notBeforeDate; + + /* + * Mcc cache node Tls certificate subject name. + */ + private String subject; + + /* + * Mcc cache node Tls certificate subject alternate name. + */ + private String subjectAltName; + + /** + * Creates an instance of MccCacheNodeTlsCertificate class. + */ + private MccCacheNodeTlsCertificate() { + } + + /** + * Get the actionRequired property: Mcc cache node Tls certificate status. + * + * @return the actionRequired value. + */ + public String actionRequired() { + return this.actionRequired; + } + + /** + * Get the certificateFileName property: Mcc cache node Tls certificate file name. + * + * @return the certificateFileName value. + */ + public String certificateFileName() { + return this.certificateFileName; + } + + /** + * Get the thumbprint property: Mcc cache node Tls certificate thumbprint. + * + * @return the thumbprint value. + */ + public String thumbprint() { + return this.thumbprint; + } + + /** + * Get the expiryDate property: Mcc cache node Tls certificate expiry date. + * + * @return the expiryDate value. + */ + public OffsetDateTime expiryDate() { + return this.expiryDate; + } + + /** + * Get the notBeforeDate property: Mcc cache node Tls certificate not before date. + * + * @return the notBeforeDate value. + */ + public OffsetDateTime notBeforeDate() { + return this.notBeforeDate; + } + + /** + * Get the subject property: Mcc cache node Tls certificate subject name. + * + * @return the subject value. + */ + public String subject() { + return this.subject; + } + + /** + * Get the subjectAltName property: Mcc cache node Tls certificate subject alternate name. + * + * @return the subjectAltName value. + */ + public String subjectAltName() { + return this.subjectAltName; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MccCacheNodeTlsCertificate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MccCacheNodeTlsCertificate if the JsonReader was pointing to an instance of it, or null if + * it was pointing to JSON null. + * @throws IOException If an error occurs while reading the MccCacheNodeTlsCertificate. + */ + public static MccCacheNodeTlsCertificate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MccCacheNodeTlsCertificate deserializedMccCacheNodeTlsCertificate = new MccCacheNodeTlsCertificate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("actionRequired".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificate.actionRequired = reader.getString(); + } else if ("certificateFileName".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificate.certificateFileName = reader.getString(); + } else if ("thumbprint".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificate.thumbprint = reader.getString(); + } else if ("expiryDate".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificate.expiryDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("notBeforeDate".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificate.notBeforeDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("subject".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificate.subject = reader.getString(); + } else if ("subjectAltName".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificate.subjectAltName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMccCacheNodeTlsCertificate; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeTlsCertificateHistory.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeTlsCertificateHistory.java new file mode 100644 index 000000000000..bab30390fe3a --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeTlsCertificateHistory.java @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeTlsCertificateHistoryInner; +import java.util.Map; + +/** + * An immutable client-side representation of MccCacheNodeTlsCertificateHistory. + */ +public interface MccCacheNodeTlsCertificateHistory { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the location property: The geo-location where the resource lives. + * + * @return the location value. + */ + String location(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the properties property: Mcc cache node resource Tls certificate details. + * + * @return the properties value. + */ + MccCacheNodeTlsCertificateProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeTlsCertificateHistoryInner + * object. + * + * @return the inner object. + */ + MccCacheNodeTlsCertificateHistoryInner innerModel(); +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeTlsCertificateProperties.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeTlsCertificateProperties.java new file mode 100644 index 000000000000..b6894004d4d8 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccCacheNodeTlsCertificateProperties.java @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Mcc cache node resource auto update properties. + */ +@Immutable +public final class MccCacheNodeTlsCertificateProperties + implements JsonSerializable { + /* + * Mcc customer resource Id. + */ + private String customerId; + + /* + * Mcc cache node resource Id. + */ + private String cacheNodeId; + + /* + * Cache node resource tls certificate history details. + */ + private List tlsCertificateHistory; + + /** + * Creates an instance of MccCacheNodeTlsCertificateProperties class. + */ + private MccCacheNodeTlsCertificateProperties() { + } + + /** + * Get the customerId property: Mcc customer resource Id. + * + * @return the customerId value. + */ + public String customerId() { + return this.customerId; + } + + /** + * Get the cacheNodeId property: Mcc cache node resource Id. + * + * @return the cacheNodeId value. + */ + public String cacheNodeId() { + return this.cacheNodeId; + } + + /** + * Get the tlsCertificateHistory property: Cache node resource tls certificate history details. + * + * @return the tlsCertificateHistory value. + */ + public List tlsCertificateHistory() { + return this.tlsCertificateHistory; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (tlsCertificateHistory() != null) { + tlsCertificateHistory().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("tlsCertificateHistory", this.tlsCertificateHistory, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MccCacheNodeTlsCertificateProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MccCacheNodeTlsCertificateProperties if the JsonReader was pointing to an instance of it, + * or null if it was pointing to JSON null. + * @throws IOException If an error occurs while reading the MccCacheNodeTlsCertificateProperties. + */ + public static MccCacheNodeTlsCertificateProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MccCacheNodeTlsCertificateProperties deserializedMccCacheNodeTlsCertificateProperties + = new MccCacheNodeTlsCertificateProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("customerId".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificateProperties.customerId = reader.getString(); + } else if ("cacheNodeId".equals(fieldName)) { + deserializedMccCacheNodeTlsCertificateProperties.cacheNodeId = reader.getString(); + } else if ("tlsCertificateHistory".equals(fieldName)) { + List tlsCertificateHistory + = reader.readArray(reader1 -> MccCacheNodeTlsCertificate.fromJson(reader1)); + deserializedMccCacheNodeTlsCertificateProperties.tlsCertificateHistory = tlsCertificateHistory; + } else { + reader.skipChildren(); + } + } + + return deserializedMccCacheNodeTlsCertificateProperties; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccIssue.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccIssue.java new file mode 100644 index 000000000000..e6bd091f342d --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/java/com/azure/resourcemanager/connectedcache/models/MccIssue.java @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; + +/** + * Mcc cache node resource issue properties. + */ +@Immutable +public final class MccIssue implements JsonSerializable { + /* + * Mcc cache node issue type. + */ + private String mccIssueType; + + /* + * Mcc cache node issues toastString. + */ + private String toastString; + + /* + * Mcc cache node issue detail string. + */ + private String detailString; + + /* + * Mcc cache node issue related help link. + */ + private String helpLink; + + /* + * Mcc cache node issue start date. + */ + private OffsetDateTime issueStartDate; + + /* + * Mcc cache node issue end date. + */ + private OffsetDateTime issueEndDate; + + /** + * Creates an instance of MccIssue class. + */ + private MccIssue() { + } + + /** + * Get the mccIssueType property: Mcc cache node issue type. + * + * @return the mccIssueType value. + */ + public String mccIssueType() { + return this.mccIssueType; + } + + /** + * Get the toastString property: Mcc cache node issues toastString. + * + * @return the toastString value. + */ + public String toastString() { + return this.toastString; + } + + /** + * Get the detailString property: Mcc cache node issue detail string. + * + * @return the detailString value. + */ + public String detailString() { + return this.detailString; + } + + /** + * Get the helpLink property: Mcc cache node issue related help link. + * + * @return the helpLink value. + */ + public String helpLink() { + return this.helpLink; + } + + /** + * Get the issueStartDate property: Mcc cache node issue start date. + * + * @return the issueStartDate value. + */ + public OffsetDateTime issueStartDate() { + return this.issueStartDate; + } + + /** + * Get the issueEndDate property: Mcc cache node issue end date. + * + * @return the issueEndDate value. + */ + public OffsetDateTime issueEndDate() { + return this.issueEndDate; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MccIssue from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MccIssue if the JsonReader was pointing to an instance of it, or null if it was pointing + * to JSON null. + * @throws IOException If an error occurs while reading the MccIssue. + */ + public static MccIssue fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MccIssue deserializedMccIssue = new MccIssue(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("mccIssueType".equals(fieldName)) { + deserializedMccIssue.mccIssueType = reader.getString(); + } else if ("toastString".equals(fieldName)) { + deserializedMccIssue.toastString = reader.getString(); + } else if ("detailString".equals(fieldName)) { + deserializedMccIssue.detailString = reader.getString(); + } else if ("helpLink".equals(fieldName)) { + deserializedMccIssue.helpLink = reader.getString(); + } else if ("issueStartDate".equals(fieldName)) { + deserializedMccIssue.issueStartDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("issueEndDate".equals(fieldName)) { + deserializedMccIssue.issueEndDate = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedMccIssue; + }); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/proxy-config.json b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/proxy-config.json index 9e528bbbac33..6498e4665a9b 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/proxy-config.json +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-connectedcache/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.connectedcache.implementation.CacheNodesOperationsClientImpl$CacheNodesOperationsService"],["com.azure.resourcemanager.connectedcache.implementation.EnterpriseCustomerOperationsClientImpl$EnterpriseCustomerOperationsService"],["com.azure.resourcemanager.connectedcache.implementation.EnterpriseMccCacheNodesOperationsClientImpl$EnterpriseMccCacheNodesOperationsService"],["com.azure.resourcemanager.connectedcache.implementation.EnterpriseMccCustomersClientImpl$EnterpriseMccCustomersService"],["com.azure.resourcemanager.connectedcache.implementation.IspCacheNodesOperationsClientImpl$IspCacheNodesOperationsService"],["com.azure.resourcemanager.connectedcache.implementation.IspCustomersClientImpl$IspCustomersService"],["com.azure.resourcemanager.connectedcache.implementation.OperationsClientImpl$OperationsService"]] \ No newline at end of file +[["com.azure.resourcemanager.connectedcache.implementation.EnterpriseMccCacheNodesOperationsClientImpl$EnterpriseMccCacheNodesOperationsService"],["com.azure.resourcemanager.connectedcache.implementation.EnterpriseMccCustomersClientImpl$EnterpriseMccCustomersService"],["com.azure.resourcemanager.connectedcache.implementation.IspCacheNodesOperationsClientImpl$IspCacheNodesOperationsService"],["com.azure.resourcemanager.connectedcache.implementation.IspCustomersClientImpl$IspCustomersService"],["com.azure.resourcemanager.connectedcache.implementation.OperationsClientImpl$OperationsService"]] \ No newline at end of file diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsCreateorUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsCreateorUpdateSamples.java deleted file mode 100644 index 591a293e1cd7..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsCreateorUpdateSamples.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -import com.azure.core.management.exception.ManagementError; -import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for CacheNodesOperations CreateorUpdate. - */ -public final class CacheNodesOperationsCreateorUpdateSamples { - /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_CreateorUpdate_MaximumSet_Gen.json - */ - /** - * Sample code: CacheNodesOperations_CreateorUpdate. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void - cacheNodesOperationsCreateorUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.cacheNodesOperations() - .define("lwrsyhvfpcfrwrim") - .withRegion("westus") - .withExistingResourceGroup("rgConnectedCache") - .withTags(mapOf("key8256", "fakeTokenPlaceholder")) - .withProperties(new CacheNodeOldResponse().withStatusCode("fakeTokenPlaceholder") - .withStatusText("bjnsrpzaofjntleoesjwammgbi") - .withStatusDetails("quuziibkwtgf") - .withError(new ManagementError())) - .create(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteSamples.java deleted file mode 100644 index 15ca5f9ef236..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -/** - * Samples for CacheNodesOperations Delete. - */ -public final class CacheNodesOperationsDeleteSamples { - /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Delete_MaximumSet_Gen.json - */ - /** - * Sample code: CacheNodesOperations_Delete. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void - cacheNodesOperationsDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.cacheNodesOperations() - .deleteByResourceGroupWithResponse("rgConnectedCache", - "otvtvhmovthjwzjzbsqkbnmpcmmeianpqxmmaspvdczmrenquxigrtuarmlcmvsnaclhcbw", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsGetByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsGetByResourceGroupSamples.java deleted file mode 100644 index 725f4c8a0bdf..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsGetByResourceGroupSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -/** - * Samples for CacheNodesOperations GetByResourceGroup. - */ -public final class CacheNodesOperationsGetByResourceGroupSamples { - /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Get_MaximumSet_Gen.json - */ - /** - * Sample code: CacheNodesOperations_Get. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void cacheNodesOperationsGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.cacheNodesOperations() - .getByResourceGroupWithResponse("rgConnectedCache", "nqoxkgorhuzbhjwcegymzqbeydzjupemekt", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListByResourceGroupSamples.java deleted file mode 100644 index 9233eed9b43e..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListByResourceGroupSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -/** - * Samples for CacheNodesOperations ListByResourceGroup. - */ -public final class CacheNodesOperationsListByResourceGroupSamples { - /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListByResourceGroup_MaximumSet_Gen.json - */ - /** - * Sample code: CacheNodes Private Preview(Legacy) Get Operation List by Resource group - generated by [MaximumSet] - * rule. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void cacheNodesPrivatePreviewLegacyGetOperationListByResourceGroupGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.cacheNodesOperations().listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListSamples.java deleted file mode 100644 index 0b506b425180..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsListSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -/** - * Samples for CacheNodesOperations List. - */ -public final class CacheNodesOperationsListSamples { - /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_ListBySubscription_MaximumSet_Gen.json - */ - /** - * Sample code: CacheNodes Private Preview(Legacy) resource List by Subscription - generated by [MaximumSet] rule. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void cacheNodesPrivatePreviewLegacyResourceListBySubscriptionGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.cacheNodesOperations().list(com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsUpdateSamples.java deleted file mode 100644 index ddd1cbc83c29..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsUpdateSamples.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -import com.azure.resourcemanager.connectedcache.models.CacheNodePreviewResource; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for CacheNodesOperations Update. - */ -public final class CacheNodesOperationsUpdateSamples { - /* - * x-ms-original-file: 2023-05-01-preview/CacheNodesOperations_Update_MaximumSet_Gen.json - */ - /** - * Sample code: CacheNodes Private Preview(Legacy) Update Operation - generated by [MaximumSet] rule. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void cacheNodesPrivatePreviewLegacyUpdateOperationGeneratedByMaximumSetRule( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - CacheNodePreviewResource resource = manager.cacheNodesOperations() - .getByResourceGroupWithResponse("rgConnectedCache", "wlrwpdbcv", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key5032", "fakeTokenPlaceholder")).apply(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsCreateOrUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsCreateOrUpdateSamples.java deleted file mode 100644 index 6a993fcf502e..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsCreateOrUpdateSamples.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -import com.azure.core.management.exception.ManagementError; -import com.azure.resourcemanager.connectedcache.models.CacheNodeOldResponse; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for EnterpriseCustomerOperations CreateOrUpdate. - */ -public final class EnterpriseCustomerOperationsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_CreateOrUpdate_MaximumSet_Gen.json - */ - /** - * Sample code: EnterpriseCustomerOperations_CreateOrUpdate. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void enterpriseCustomerOperationsCreateOrUpdate( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseCustomerOperations() - .define("l") - .withRegion("zdzhhkjyogrqxwihkifnmeyhwpujbr") - .withExistingResourceGroup("rgConnectedCache") - .withTags(mapOf("key4215", "fakeTokenPlaceholder")) - .withProperties(new CacheNodeOldResponse().withStatusCode("fakeTokenPlaceholder") - .withStatusText("bs") - .withStatusDetails("lhwvcz") - .withError(new ManagementError())) - .create(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteSamples.java deleted file mode 100644 index 0727ed9efe47..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -/** - * Samples for EnterpriseCustomerOperations Delete. - */ -public final class EnterpriseCustomerOperationsDeleteSamples { - /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Delete_MaximumSet_Gen.json - */ - /** - * Sample code: EnterpriseCustomerOperations_Delete. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void - enterpriseCustomerOperationsDelete(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseCustomerOperations() - .deleteByResourceGroupWithResponse("rgConnectedCache", - "jeubxmhiaihcusgnahblvvckbdcetacvqgwbohlrqucodtlwuyefpejskvamgrdnwgucziodcfpjhqy", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsGetByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsGetByResourceGroupSamples.java deleted file mode 100644 index 48a6c8f8c927..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsGetByResourceGroupSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -/** - * Samples for EnterpriseCustomerOperations GetByResourceGroup. - */ -public final class EnterpriseCustomerOperationsGetByResourceGroupSamples { - /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Get_MaximumSet_Gen.json - */ - /** - * Sample code: EnterpriseCustomerOperations_Get. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void - enterpriseCustomerOperationsGet(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseCustomerOperations() - .getByResourceGroupWithResponse("rgConnectedCache", "MCCTPTest2", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListByResourceGroupSamples.java deleted file mode 100644 index 1a9058c03e72..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListByResourceGroupSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -/** - * Samples for EnterpriseCustomerOperations ListByResourceGroup. - */ -public final class EnterpriseCustomerOperationsListByResourceGroupSamples { - /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListByResourceGroup_MaximumSet_Gen.json - */ - /** - * Sample code: EnterpriseCustomerOperations_ListByResourceGroup. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void enterpriseCustomerOperationsListByResourceGroup( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseCustomerOperations() - .listByResourceGroup("rgConnectedCache", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListSamples.java deleted file mode 100644 index 3df596fc81b8..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsListSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -/** - * Samples for EnterpriseCustomerOperations List. - */ -public final class EnterpriseCustomerOperationsListSamples { - /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_ListBySubscription_MaximumSet_Gen.json - */ - /** - * Sample code: EnterpriseCustomerOperations_ListBySubscription. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void enterpriseCustomerOperationsListBySubscription( - com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - manager.enterpriseCustomerOperations().list(com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsUpdateSamples.java deleted file mode 100644 index ae65216672ff..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsUpdateSamples.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -import com.azure.resourcemanager.connectedcache.models.EnterprisePreviewResource; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for EnterpriseCustomerOperations Update. - */ -public final class EnterpriseCustomerOperationsUpdateSamples { - /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseCustomerOperations_Update_MaximumSet_Gen.json - */ - /** - * Sample code: EnterpriseCustomerOperations_Update. - * - * @param manager Entry point to ConnectedCacheManager. - */ - public static void - enterpriseCustomerOperationsUpdate(com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { - EnterprisePreviewResource resource = manager.enterpriseCustomerOperations() - .getByResourceGroupWithResponse("rgConnectedCache", "MCCTPTest2", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("key1653", "fakeTokenPlaceholder")).apply(); - } - - // Use "Map.of" if available - @SuppressWarnings("unchecked") - private static Map mapOf(Object... inputs) { - Map map = new HashMap<>(); - for (int i = 0; i < inputs.length; i += 2) { - String key = (String) inputs[i]; - T value = (T) inputs[i + 1]; - map.put(key, value); - } - return map; - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples.java index 9de2a6406669..39399ddca37f 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples.java @@ -20,7 +20,7 @@ */ public final class EnterpriseMccCacheNodesOperationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: Creates an enterpriseMccCacheNode resource - generated by [MaximumSet] rule. @@ -57,7 +57,6 @@ public static void createsAnEnterpriseMccCacheNodeResourceGeneratedByMaximumSetR .withNginxMapping("cirlpkpuxg"))) .withBgpConfiguration(new BgpConfiguration().withAsnToIpAddressMapping("fjbggfvumrn")) .withProxyUrlConfiguration(new ProxyUrlConfiguration().withProxyUrl("hplstyg")) - .withProxyUrl("ihkzxlzvpcywtzrogupqozkdud") .withOptionalProperty1("ph") .withOptionalProperty2("soqqgpgcbhb") .withOptionalProperty3("fpnycrbagptsujiotnjfuhlm") diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsDeleteSamples.java index e20ae75b5dec..68c09cbd067e 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsDeleteSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class EnterpriseMccCacheNodesOperationsDeleteSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_Delete_MaximumSet_Gen.json */ /** * Sample code: EnterpriseMccCacheNodesOperations Delete Operation - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeAutoUpdateHistorySamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeAutoUpdateHistorySamples.java new file mode 100644 index 000000000000..aab8339e6d4f --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeAutoUpdateHistorySamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseMccCacheNodesOperations GetCacheNodeAutoUpdateHistory. + */ +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeAutoUpdateHistorySamples { + /* + * x-ms-original-file: + * 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeAutoUpdateHistory_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCacheNodesOperations_GetCacheNodeAutoUpdateHistory_MaximumSet. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCacheNodesOperationsGetCacheNodeAutoUpdateHistoryMaximumSet( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .getCacheNodeAutoUpdateHistoryWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java index 28b4c4b982e8..7129774056b7 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java @@ -10,7 +10,7 @@ public final class EnterpriseMccCacheNodesOperationsGetCacheNodeInstallDetailsSamples { /* * x-ms-original-file: - * 2023-05-01-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + * 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json */ /** * Sample code: Gets required properties for enterprise Mcc CacheNode resource install key details - generated by diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeMccIssueDetailsHistorySamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeMccIssueDetailsHistorySamples.java new file mode 100644 index 000000000000..ad5904dc8177 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeMccIssueDetailsHistorySamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseMccCacheNodesOperations GetCacheNodeMccIssueDetailsHistory. + */ +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeMccIssueDetailsHistorySamples { + /* + * x-ms-original-file: + * 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory_MaximumSet. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryMaximumSet( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .getCacheNodeMccIssueDetailsHistoryWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeTlsCertificateHistorySamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeTlsCertificateHistorySamples.java new file mode 100644 index 000000000000..01799c7582c2 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeTlsCertificateHistorySamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for EnterpriseMccCacheNodesOperations GetCacheNodeTlsCertificateHistory. + */ +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeTlsCertificateHistorySamples { + /* + * x-ms-original-file: + * 2024-11-30-preview/EnterpriseMccCacheNodesOperations_GetCacheNodeTlsCertificateHistory_MaximumSet_Gen.json + */ + /** + * Sample code: EnterpriseMccCacheNodesOperations_GetCacheNodeTlsCertificateHistory_MaximumSet. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void enterpriseMccCacheNodesOperationsGetCacheNodeTlsCertificateHistoryMaximumSet( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.enterpriseMccCacheNodesOperations() + .getCacheNodeTlsCertificateHistoryWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetSamples.java index 7bebee30a71a..f27c630f677a 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetSamples.java @@ -9,7 +9,7 @@ */ public final class EnterpriseMccCacheNodesOperationsGetSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_Get_MaximumSet_Gen.json */ /** * Sample code: Gets enterpriseMccCacheNode resource information of an enterprise mcc customer parent resource - diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples.java index f3583c90862f..b8883f6fb90b 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples.java @@ -10,7 +10,7 @@ public final class EnterpriseMccCacheNodesOperationsListByEnterpriseMccCustomerResourceSamples { /* * x-ms-original-file: - * 2023-05-01-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json + * 2024-11-30-preview/EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource_MaximumSet_Gen.json */ /** * Sample code: EnterpriseMccCacheNodesOperations_ListByEnterpriseMccCustomerResource. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsUpdateSamples.java index 53e6202e4c58..085b3d329dc2 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsUpdateSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class EnterpriseMccCacheNodesOperationsUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCacheNodesOperations_Update_MaximumSet_Gen.json */ /** * Sample code: EnterpriseMccCacheNodesOperations Update - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersCreateOrUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersCreateOrUpdateSamples.java index 77264103e2ee..9426bf5df8ca 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersCreateOrUpdateSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersCreateOrUpdateSamples.java @@ -17,7 +17,7 @@ */ public final class EnterpriseMccCustomersCreateOrUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: EnterpriseMccCustomers_CreateOrUpdate. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersDeleteSamples.java index 08e7bb01569f..e6972246e765 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersDeleteSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class EnterpriseMccCustomersDeleteSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_Delete_MaximumSet_Gen.json */ /** * Sample code: EnterpriseMccCustomers_Delete. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersGetByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersGetByResourceGroupSamples.java index fa2fce903c6f..8eff5f4646c9 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersGetByResourceGroupSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class EnterpriseMccCustomersGetByResourceGroupSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_Get_MaximumSet_Gen.json */ /** * Sample code: EnterpriseMccCustomers_Get. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListByResourceGroupSamples.java index e8d83e783c06..df89b465089c 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListByResourceGroupSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class EnterpriseMccCustomersListByResourceGroupSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: EnterpriseMccCustomers_ListByResourceGroup. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListSamples.java index 9f24dec58dc0..7531f912e732 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersListSamples.java @@ -9,7 +9,7 @@ */ public final class EnterpriseMccCustomersListSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: EnterpriseMccCustomers_ListBySubscription. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersUpdateSamples.java index a24ece9768d8..a39d14165105 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersUpdateSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCustomersUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class EnterpriseMccCustomersUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/EnterpriseMccCustomers_Update_MaximumSet_Gen.json */ /** * Sample code: EnterpriseMccCustomers_Update. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsCreateOrUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsCreateOrUpdateSamples.java index 14da67f1ee84..e9825c089139 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsCreateOrUpdateSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsCreateOrUpdateSamples.java @@ -20,7 +20,7 @@ */ public final class IspCacheNodesOperationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: IspCacheNodesOperations_CreateOrUpdate. @@ -56,7 +56,6 @@ public final class IspCacheNodesOperationsCreateOrUpdateSamples { .withNginxMapping("lijygenjq"))) .withBgpConfiguration(new BgpConfiguration().withAsnToIpAddressMapping("pafcimhoog")) .withProxyUrlConfiguration(new ProxyUrlConfiguration().withProxyUrl("hplstyg")) - .withProxyUrl("qhux") .withOptionalProperty1("hvpmt") .withOptionalProperty2("talanelmsgxvksrzoeeontqkjzbpv") .withOptionalProperty3("bxkoxq") diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsDeleteSamples.java index 1eb990dbce28..eb565c4e2a43 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsDeleteSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class IspCacheNodesOperationsDeleteSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_Delete_MaximumSet_Gen.json */ /** * Sample code: IspCacheNodes delete Operation - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsSamples.java index de8e6e2e888a..622a717a348d 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsSamples.java @@ -9,7 +9,7 @@ */ public final class IspCacheNodesOperationsGetBgpCidrsSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_GetBgpCidrs_MaximumSet_Gen.json */ /** * Sample code: IspCacheNodes resource BgpCidrs details - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeAutoUpdateHistorySamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeAutoUpdateHistorySamples.java new file mode 100644 index 000000000000..d3a27c2f8cdb --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeAutoUpdateHistorySamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for IspCacheNodesOperations GetCacheNodeAutoUpdateHistory. + */ +public final class IspCacheNodesOperationsGetCacheNodeAutoUpdateHistorySamples { + /* + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_GetCacheNodeAutoUpdateHistory_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodesOperations_GetCacheNodeAutoUpdateHistory_MaximumSet. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodesOperationsGetCacheNodeAutoUpdateHistoryMaximumSet( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .getCacheNodeAutoUpdateHistoryWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java index 174a87de9458..c35731d04142 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples.java @@ -9,7 +9,7 @@ */ public final class IspCacheNodesOperationsGetCacheNodeInstallDetailsSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_GetCacheNodeInstallDetails_MaximumSet_Gen.json */ /** * Sample code: ispCacheNode resource get install details - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeMccIssueDetailsHistorySamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeMccIssueDetailsHistorySamples.java new file mode 100644 index 000000000000..e37d4559601c --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeMccIssueDetailsHistorySamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +/** + * Samples for IspCacheNodesOperations GetCacheNodeMccIssueDetailsHistory. + */ +public final class IspCacheNodesOperationsGetCacheNodeMccIssueDetailsHistorySamples { + /* + * x-ms-original-file: + * 2024-11-30-preview/IspCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory_MaximumSet_Gen.json + */ + /** + * Sample code: IspCacheNodesOperations_GetCacheNodeMccIssueDetailsHistory_MaximumSet. + * + * @param manager Entry point to ConnectedCacheManager. + */ + public static void ispCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryMaximumSet( + com.azure.resourcemanager.connectedcache.ConnectedCacheManager manager) { + manager.ispCacheNodesOperations() + .getCacheNodeMccIssueDetailsHistoryWithResponse("rgConnectedCache", "MccRPTest1", "MCCCachenode1", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetSamples.java index 6e26135f0606..3cf307fe786b 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetSamples.java @@ -9,7 +9,7 @@ */ public final class IspCacheNodesOperationsGetSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_Get_MaximumSet_Gen.json */ /** * Sample code: IspCacheNodes Get resource - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsListByIspCustomerResourceSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsListByIspCustomerResourceSamples.java index c3d3569dc047..66ddac4497b9 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsListByIspCustomerResourceSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsListByIspCustomerResourceSamples.java @@ -9,7 +9,7 @@ */ public final class IspCacheNodesOperationsListByIspCustomerResourceSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_ListByIspCustomerResource_MaximumSet_Gen.json */ /** * Sample code: IspCacheNodesOperations_ListByIspCustomerResource. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsUpdateSamples.java index 3aef46f9ca0c..cd3c84c4c14c 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsUpdateSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class IspCacheNodesOperationsUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCacheNodesOperations_Update_MaximumSet_Gen.json */ /** * Sample code: IspCacheNodesOperations_Update. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersCreateOrUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersCreateOrUpdateSamples.java index aa95ff0b50ad..b1fe357e4483 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersCreateOrUpdateSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersCreateOrUpdateSamples.java @@ -17,7 +17,7 @@ */ public final class IspCustomersCreateOrUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: ispCustomer CreateOrUpdate - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersDeleteSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersDeleteSamples.java index 48a9c03ec103..bafb6c6c8c22 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersDeleteSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class IspCustomersDeleteSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_Delete_MaximumSet_Gen.json */ /** * Sample code: IspCustomers Delete - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersGetByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersGetByResourceGroupSamples.java index 26647ec7979f..98f55bdf1ffd 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersGetByResourceGroupSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class IspCustomersGetByResourceGroupSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_Get_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_Get_MaximumSet_Gen.json */ /** * Sample code: IspCustomers Get - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListByResourceGroupSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListByResourceGroupSamples.java index 367cc46e6dc5..14054da9e869 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListByResourceGroupSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class IspCustomersListByResourceGroupSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: IspCustomers resource List by Resource group - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListSamples.java index 3cce6d9bad79..2de1eb2bfc3a 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersListSamples.java @@ -9,7 +9,7 @@ */ public final class IspCustomersListSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: ispCustomer List by Subscription - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersUpdateSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersUpdateSamples.java index df85a8c8cfd9..74340326dc41 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersUpdateSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/IspCustomersUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class IspCustomersUpdateSamples { /* - * x-ms-original-file: 2023-05-01-preview/IspCustomers_Update_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/IspCustomers_Update_MaximumSet_Gen.json */ /** * Sample code: ispCustomer Update details - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/OperationsListSamples.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/OperationsListSamples.java index 14df17e50d8d..00ffb809495b 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/OperationsListSamples.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/samples/java/com/azure/resourcemanager/connectedcache/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2023-05-01-preview/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2024-11-30-preview/Operations_List_MaximumSet_Gen.json */ /** * Sample code: List the operations for the provider - generated by [MaximumSet] rule. diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpCidrsConfigurationTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpCidrsConfigurationTests.java index 062834737048..c3b13a4f86f3 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpCidrsConfigurationTests.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpCidrsConfigurationTests.java @@ -11,6 +11,6 @@ public final class BgpCidrsConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BgpCidrsConfiguration model - = BinaryData.fromString("{\"bgpCidrs\":[\"aos\"]}").toObject(BgpCidrsConfiguration.class); + = BinaryData.fromString("{\"bgpCidrs\":[\"baiuebbaumny\"]}").toObject(BgpCidrsConfiguration.class); } } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpConfigurationTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpConfigurationTests.java index 3d157336bde8..bb028e3a2420 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpConfigurationTests.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/BgpConfigurationTests.java @@ -12,14 +12,14 @@ public final class BgpConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BgpConfiguration model - = BinaryData.fromString("{\"asnToIpAddressMapping\":\"yegu\"}").toObject(BgpConfiguration.class); - Assertions.assertEquals("yegu", model.asnToIpAddressMapping()); + = BinaryData.fromString("{\"asnToIpAddressMapping\":\"yhxdeoejzicwi\"}").toObject(BgpConfiguration.class); + Assertions.assertEquals("yhxdeoejzicwi", model.asnToIpAddressMapping()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BgpConfiguration model = new BgpConfiguration().withAsnToIpAddressMapping("yegu"); + BgpConfiguration model = new BgpConfiguration().withAsnToIpAddressMapping("yhxdeoejzicwi"); model = BinaryData.fromObject(model).toObject(BgpConfiguration.class); - Assertions.assertEquals("yegu", model.asnToIpAddressMapping()); + Assertions.assertEquals("yhxdeoejzicwi", model.asnToIpAddressMapping()); } } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeDriveConfigurationTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeDriveConfigurationTests.java index 0bda663ed61f..c4b289d661ae 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeDriveConfigurationTests.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeDriveConfigurationTests.java @@ -11,25 +11,26 @@ public final class CacheNodeDriveConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - CacheNodeDriveConfiguration model = BinaryData.fromString( - "{\"physicalPath\":\"bdlwtgrhpdjpj\",\"sizeInGb\":1984471736,\"cacheNumber\":1012728769,\"nginxMapping\":\"zj\"}") + CacheNodeDriveConfiguration model = BinaryData + .fromString( + "{\"physicalPath\":\"c\",\"sizeInGb\":1616487247,\"cacheNumber\":1971484471,\"nginxMapping\":\"pyd\"}") .toObject(CacheNodeDriveConfiguration.class); - Assertions.assertEquals("bdlwtgrhpdjpj", model.physicalPath()); - Assertions.assertEquals(1984471736, model.sizeInGb()); - Assertions.assertEquals(1012728769, model.cacheNumber()); - Assertions.assertEquals("zj", model.nginxMapping()); + Assertions.assertEquals("c", model.physicalPath()); + Assertions.assertEquals(1616487247, model.sizeInGb()); + Assertions.assertEquals(1971484471, model.cacheNumber()); + Assertions.assertEquals("pyd", model.nginxMapping()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CacheNodeDriveConfiguration model = new CacheNodeDriveConfiguration().withPhysicalPath("bdlwtgrhpdjpj") - .withSizeInGb(1984471736) - .withCacheNumber(1012728769) - .withNginxMapping("zj"); + CacheNodeDriveConfiguration model = new CacheNodeDriveConfiguration().withPhysicalPath("c") + .withSizeInGb(1616487247) + .withCacheNumber(1971484471) + .withNginxMapping("pyd"); model = BinaryData.fromObject(model).toObject(CacheNodeDriveConfiguration.class); - Assertions.assertEquals("bdlwtgrhpdjpj", model.physicalPath()); - Assertions.assertEquals(1984471736, model.sizeInGb()); - Assertions.assertEquals(1012728769, model.cacheNumber()); - Assertions.assertEquals("zj", model.nginxMapping()); + Assertions.assertEquals("c", model.physicalPath()); + Assertions.assertEquals(1616487247, model.sizeInGb()); + Assertions.assertEquals(1971484471, model.cacheNumber()); + Assertions.assertEquals("pyd", model.nginxMapping()); } } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeEntityTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeEntityTests.java index 1df8b19080cc..48b22bbe4028 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeEntityTests.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodeEntityTests.java @@ -14,66 +14,66 @@ public final class CacheNodeEntityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CacheNodeEntity model = BinaryData.fromString( - "{\"fullyQualifiedResourceId\":\"xaxcfjpgddtocjjx\",\"customerId\":\"pmouexhdz\",\"customerName\":\"bqe\",\"ipAddress\":\"nxqbzvddn\",\"customerIndex\":\"ndei\",\"cacheNodeId\":\"twnpzaoqvuhrhcf\",\"cacheNodeName\":\"yd\",\"customerAsn\":1726993489,\"isEnabled\":true,\"maxAllowableEgressInMbps\":553941063,\"maxAllowableProbability\":74.24029426474767,\"xCid\":\"pyeicxm\",\"isEnterpriseManaged\":false,\"createAsyncOperationId\":\"q\",\"deleteAsyncOperationId\":\"khixuigdtopbo\",\"clientTenantId\":\"og\",\"category\":\"e\",\"releaseVersion\":35431541,\"lastSyncWithAzureTimestamp\":\"2021-01-02T08:53:50Z\",\"lastUpdatedTimestamp\":\"2021-01-27T21:23:24Z\",\"synchWithAzureAttemptsCount\":247953507,\"containerConfigurations\":\"yvvtpgvdfgio\",\"cidrCsv\":[\"tutqxlngxlefgug\",\"xkrxdqmi\",\"tthzrvqd\",\"abhjybi\"],\"cidrCsvLastUpdateTime\":\"2021-05-29T13:44:30Z\",\"bgpCidrCsvLastUpdateTime\":\"2021-09-28T08:30:32Z\",\"bgpLastReportedTime\":\"2021-05-21T18:09:19Z\",\"bgpReviewStateText\":\"wska\",\"bgpReviewState\":\"Approved\",\"bgpReviewFeedback\":\"zlcuiywgqywgndrv\",\"bgpNumberOfTimesUpdated\":2138839355,\"bgpNumberOfRecords\":19075135,\"bgpCidrBlocksCount\":523315995,\"bgpAddressSpace\":1097246502,\"shouldMigrate\":true,\"bgpFileBytesTruncated\":485990541,\"cidrSelectionType\":776269865,\"isFrozen\":false,\"reviewState\":1827981696,\"reviewStateText\":\"vmmcoofs\",\"reviewFeedback\":\"zevgb\",\"configurationState\":\"NotConfigured_Ip\",\"configurationStateText\":\"abcypmivk\",\"addressSpace\":1951754582,\"workerConnections\":1120920412,\"workerConnectionsLastUpdatedDateTime\":\"2021-05-22T10:28:24Z\",\"containerResyncTrigger\":1916526415,\"imageUri\":\"fnba\",\"fullyQualifiedDomainName\":\"ionle\",\"autoUpdateRingType\":\"Fast\",\"autoUpdateRequestedWeek\":1013324715,\"autoUpdateRequestedDay\":853562932,\"autoUpdateRequestedTime\":\"xdpnqbqq\"}") + "{\"fullyQualifiedResourceId\":\"gnzscxaqwo\",\"customerId\":\"hcbonqvpkvlr\",\"customerName\":\"jease\",\"ipAddress\":\"heoflokeyyienjbd\",\"customerIndex\":\"tgrhpdjpjumas\",\"cacheNodeId\":\"zj\",\"cacheNodeName\":\"yegu\",\"customerAsn\":285130790,\"isEnabled\":true,\"maxAllowableEgressInMbps\":1163750271,\"maxAllowableProbability\":8.031827791444979,\"xCid\":\"zvdudgwdslfhotwm\",\"isEnterpriseManaged\":true,\"createAsyncOperationId\":\"wlbjnpgacftade\",\"deleteAsyncOperationId\":\"nltyfsoppusuesnz\",\"clientTenantId\":\"ej\",\"category\":\"vorxzdmohct\",\"releaseVersion\":1095350861,\"lastSyncWithAzureTimestamp\":\"2021-09-06T08:59:32Z\",\"lastUpdatedTimestamp\":\"2021-02-11T14:48:18Z\",\"synchWithAzureAttemptsCount\":1222672575,\"containerConfigurations\":\"nvowgujju\",\"cidrCsv\":[\"kcglhslaz\",\"dyggdtjixhbku\"],\"cidrCsvLastUpdateTime\":\"2020-12-23T07:48:17Z\",\"bgpCidrCsvLastUpdateTime\":\"2021-02-13T10:06:52Z\",\"bgpLastReportedTime\":\"2021-11-08T12:34:04Z\",\"bgpReviewStateText\":\"menevfyexfwh\",\"bgpReviewState\":\"AttentionRequired\",\"bgpReviewFeedback\":\"bvyvdcsity\",\"bgpNumberOfTimesUpdated\":1750107554,\"bgpNumberOfRecords\":1611277697,\"bgpCidrBlocksCount\":1553066482,\"bgpAddressSpace\":1602339472,\"shouldMigrate\":true,\"bgpFileBytesTruncated\":113034311,\"cidrSelectionType\":1860942440,\"isFrozen\":false,\"reviewState\":230831104,\"reviewStateText\":\"vhezrkgqhcj\",\"reviewFeedback\":\"fovgmkqsleyyvxy\",\"configurationState\":\"Configured\",\"configurationStateText\":\"cattpngjcrcczsq\",\"addressSpace\":1452431495,\"workerConnections\":1112494803,\"workerConnectionsLastUpdatedDateTime\":\"2021-01-08T07:37:25Z\",\"containerResyncTrigger\":243553198,\"imageUri\":\"ysou\",\"fullyQualifiedDomainName\":\"e\",\"autoUpdateRingType\":\"Fast\",\"autoUpdateRequestedWeek\":389510865,\"autoUpdateRequestedDay\":996084293,\"autoUpdateRequestedTime\":\"fhyhltrpmopjmcma\"}") .toObject(CacheNodeEntity.class); - Assertions.assertEquals("xaxcfjpgddtocjjx", model.fullyQualifiedResourceId()); - Assertions.assertEquals("bqe", model.customerName()); - Assertions.assertEquals("nxqbzvddn", model.ipAddress()); - Assertions.assertEquals("ndei", model.customerIndex()); - Assertions.assertEquals("twnpzaoqvuhrhcf", model.cacheNodeId()); - Assertions.assertEquals("yd", model.cacheNodeName()); - Assertions.assertEquals(1726993489, model.customerAsn()); - Assertions.assertEquals(true, model.isEnabled()); - Assertions.assertEquals(553941063, model.maxAllowableEgressInMbps()); - Assertions.assertEquals(false, model.isEnterpriseManaged()); - Assertions.assertEquals("tutqxlngxlefgug", model.cidrCsv().get(0)); - Assertions.assertEquals(true, model.shouldMigrate()); - Assertions.assertEquals(776269865, model.cidrSelectionType()); - Assertions.assertEquals("ionle", model.fullyQualifiedDomainName()); + Assertions.assertEquals("gnzscxaqwo", model.fullyQualifiedResourceId()); + Assertions.assertEquals("jease", model.customerName()); + Assertions.assertEquals("heoflokeyyienjbd", model.ipAddress()); + Assertions.assertEquals("tgrhpdjpjumas", model.customerIndex()); + Assertions.assertEquals("zj", model.cacheNodeId()); + Assertions.assertEquals("yegu", model.cacheNodeName()); + Assertions.assertEquals(285130790, model.customerAsn()); + Assertions.assertTrue(model.isEnabled()); + Assertions.assertEquals(1163750271, model.maxAllowableEgressInMbps()); + Assertions.assertTrue(model.isEnterpriseManaged()); + Assertions.assertEquals("kcglhslaz", model.cidrCsv().get(0)); + Assertions.assertTrue(model.shouldMigrate()); + Assertions.assertEquals(1860942440, model.cidrSelectionType()); + Assertions.assertEquals("e", model.fullyQualifiedDomainName()); Assertions.assertEquals(AutoUpdateRingType.FAST, model.autoUpdateRingType()); - Assertions.assertEquals(1013324715, model.autoUpdateRequestedWeek()); - Assertions.assertEquals(853562932, model.autoUpdateRequestedDay()); - Assertions.assertEquals("xdpnqbqq", model.autoUpdateRequestedTime()); + Assertions.assertEquals(389510865, model.autoUpdateRequestedWeek()); + Assertions.assertEquals(996084293, model.autoUpdateRequestedDay()); + Assertions.assertEquals("fhyhltrpmopjmcma", model.autoUpdateRequestedTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CacheNodeEntity model = new CacheNodeEntity().withFullyQualifiedResourceId("xaxcfjpgddtocjjx") - .withCustomerName("bqe") - .withIpAddress("nxqbzvddn") - .withCustomerIndex("ndei") - .withCacheNodeId("twnpzaoqvuhrhcf") - .withCacheNodeName("yd") - .withCustomerAsn(1726993489) + CacheNodeEntity model = new CacheNodeEntity().withFullyQualifiedResourceId("gnzscxaqwo") + .withCustomerName("jease") + .withIpAddress("heoflokeyyienjbd") + .withCustomerIndex("tgrhpdjpjumas") + .withCacheNodeId("zj") + .withCacheNodeName("yegu") + .withCustomerAsn(285130790) .withIsEnabled(true) - .withMaxAllowableEgressInMbps(553941063) - .withIsEnterpriseManaged(false) - .withCidrCsv(Arrays.asList("tutqxlngxlefgug", "xkrxdqmi", "tthzrvqd", "abhjybi")) + .withMaxAllowableEgressInMbps(1163750271) + .withIsEnterpriseManaged(true) + .withCidrCsv(Arrays.asList("kcglhslaz", "dyggdtjixhbku")) .withShouldMigrate(true) - .withCidrSelectionType(776269865) - .withFullyQualifiedDomainName("ionle") + .withCidrSelectionType(1860942440) + .withFullyQualifiedDomainName("e") .withAutoUpdateRingType(AutoUpdateRingType.FAST) - .withAutoUpdateRequestedWeek(1013324715) - .withAutoUpdateRequestedDay(853562932) - .withAutoUpdateRequestedTime("xdpnqbqq"); + .withAutoUpdateRequestedWeek(389510865) + .withAutoUpdateRequestedDay(996084293) + .withAutoUpdateRequestedTime("fhyhltrpmopjmcma"); model = BinaryData.fromObject(model).toObject(CacheNodeEntity.class); - Assertions.assertEquals("xaxcfjpgddtocjjx", model.fullyQualifiedResourceId()); - Assertions.assertEquals("bqe", model.customerName()); - Assertions.assertEquals("nxqbzvddn", model.ipAddress()); - Assertions.assertEquals("ndei", model.customerIndex()); - Assertions.assertEquals("twnpzaoqvuhrhcf", model.cacheNodeId()); - Assertions.assertEquals("yd", model.cacheNodeName()); - Assertions.assertEquals(1726993489, model.customerAsn()); - Assertions.assertEquals(true, model.isEnabled()); - Assertions.assertEquals(553941063, model.maxAllowableEgressInMbps()); - Assertions.assertEquals(false, model.isEnterpriseManaged()); - Assertions.assertEquals("tutqxlngxlefgug", model.cidrCsv().get(0)); - Assertions.assertEquals(true, model.shouldMigrate()); - Assertions.assertEquals(776269865, model.cidrSelectionType()); - Assertions.assertEquals("ionle", model.fullyQualifiedDomainName()); + Assertions.assertEquals("gnzscxaqwo", model.fullyQualifiedResourceId()); + Assertions.assertEquals("jease", model.customerName()); + Assertions.assertEquals("heoflokeyyienjbd", model.ipAddress()); + Assertions.assertEquals("tgrhpdjpjumas", model.customerIndex()); + Assertions.assertEquals("zj", model.cacheNodeId()); + Assertions.assertEquals("yegu", model.cacheNodeName()); + Assertions.assertEquals(285130790, model.customerAsn()); + Assertions.assertTrue(model.isEnabled()); + Assertions.assertEquals(1163750271, model.maxAllowableEgressInMbps()); + Assertions.assertTrue(model.isEnterpriseManaged()); + Assertions.assertEquals("kcglhslaz", model.cidrCsv().get(0)); + Assertions.assertTrue(model.shouldMigrate()); + Assertions.assertEquals(1860942440, model.cidrSelectionType()); + Assertions.assertEquals("e", model.fullyQualifiedDomainName()); Assertions.assertEquals(AutoUpdateRingType.FAST, model.autoUpdateRingType()); - Assertions.assertEquals(1013324715, model.autoUpdateRequestedWeek()); - Assertions.assertEquals(853562932, model.autoUpdateRequestedDay()); - Assertions.assertEquals("xdpnqbqq", model.autoUpdateRequestedTime()); + Assertions.assertEquals(389510865, model.autoUpdateRequestedWeek()); + Assertions.assertEquals(996084293, model.autoUpdateRequestedDay()); + Assertions.assertEquals("fhyhltrpmopjmcma", model.autoUpdateRequestedTime()); } } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteByResourceGroupWithResponseMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 2befcc217b6f..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/CacheNodesOperationsDeleteByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.connectedcache.ConnectedCacheManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class CacheNodesOperationsDeleteByResourceGroupWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ConnectedCacheManager manager = ConnectedCacheManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.cacheNodesOperations() - .deleteByResourceGroupWithResponse("wpucwwfvovbv", "euecivyhzceuoj", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ConnectedCachePatchResourceTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ConnectedCachePatchResourceTests.java index 663349bf533e..f06627c2483c 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ConnectedCachePatchResourceTests.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ConnectedCachePatchResourceTests.java @@ -13,18 +13,18 @@ public final class ConnectedCachePatchResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ConnectedCachePatchResource model - = BinaryData.fromString("{\"tags\":{\"ifpikxwczby\":\"fcbjysagithxqha\",\"rkxvdum\":\"cnpqxuhivyqniwby\"}}") - .toObject(ConnectedCachePatchResource.class); - Assertions.assertEquals("fcbjysagithxqha", model.tags().get("ifpikxwczby")); + ConnectedCachePatchResource model = BinaryData.fromString( + "{\"tags\":{\"qfpjk\":\"np\",\"nmayhuybb\":\"lxofpdvhpfxxypin\",\"inuvamiheogn\":\"podepoo\",\"usivye\":\"rxzxtheo\"}}") + .toObject(ConnectedCachePatchResource.class); + Assertions.assertEquals("np", model.tags().get("qfpjk")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ConnectedCachePatchResource model = new ConnectedCachePatchResource() - .withTags(mapOf("ifpikxwczby", "fcbjysagithxqha", "rkxvdum", "cnpqxuhivyqniwby")); + ConnectedCachePatchResource model = new ConnectedCachePatchResource().withTags( + mapOf("qfpjk", "np", "nmayhuybb", "lxofpdvhpfxxypin", "inuvamiheogn", "podepoo", "usivye", "rxzxtheo")); model = BinaryData.fromObject(model).toObject(ConnectedCachePatchResource.class); - Assertions.assertEquals("fcbjysagithxqha", model.tags().get("ifpikxwczby")); + Assertions.assertEquals("np", model.tags().get("qfpjk")); } // Use "Map.of" if available diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteByResourceGroupWithResponseMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteByResourceGroupWithResponseMockTests.java deleted file mode 100644 index b787cbac30d3..000000000000 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseCustomerOperationsDeleteByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.connectedcache.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.connectedcache.ConnectedCacheManager; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class EnterpriseCustomerOperationsDeleteByResourceGroupWithResponseMockTests { - @Test - public void testDeleteWithResponse() throws Exception { - String responseStr = "{}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - ConnectedCacheManager manager = ConnectedCacheManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - manager.enterpriseCustomerOperations() - .deleteByResourceGroupWithResponse("aofmxagkvtme", "mqkrhahvljuahaqu", com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeAutoUpdateHistoryWithResponseMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeAutoUpdateHistoryWithResponseMockTests.java new file mode 100644 index 000000000000..d6c299b0c398 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeAutoUpdateHistoryWithResponseMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.connectedcache.ConnectedCacheManager; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeAutoUpdateHistory; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeAutoUpdateHistoryWithResponseMockTests { + @Test + public void testGetCacheNodeAutoUpdateHistoryWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"customerId\":\"uycvuzhyrmewip\",\"cacheNodeId\":\"ekdxuku\",\"autoUpdateHistory\":[{\"imageUriBeforeUpdate\":\"jxundxgketwzh\",\"imageUriTargeted\":\"jhfjmhvvmuvgpm\",\"imageUriTerminal\":\"eqsx\",\"autoUpdateRingType\":2036869225,\"movedToTerminalStateDateTime\":\"2021-05-19T22:03:11Z\",\"ruleRequestedWeek\":837522232,\"ruleRequestedDay\":1911590455,\"createdDateTimeUtc\":\"2021-03-10T08:15:44Z\",\"updatedRegistryDateTimeUtc\":\"2021-12-07T19:13:24Z\",\"planChangeLogText\":\"bhu\",\"autoUpdateLastAppliedStatus\":1639205644,\"autoUpdateLastAppliedStatusText\":\"hyuemslyn\",\"autoUpdateLastAppliedStatusDetailedText\":\"yrpfoobrlttymsj\",\"planId\":949909037057787789,\"timeToGoLiveDateTime\":\"nfwqzdzgtilaxhn\",\"ruleRequestedMinute\":\"qlyvijo\",\"ruleRequestedHour\":\"iv\"},{\"imageUriBeforeUpdate\":\"oyzunbixxr\",\"imageUriTargeted\":\"kvcpwpgclr\",\"imageUriTerminal\":\"vtsoxf\",\"autoUpdateRingType\":452552513,\"movedToTerminalStateDateTime\":\"2021-06-22T22:32:01Z\",\"ruleRequestedWeek\":27132642,\"ruleRequestedDay\":1600333305,\"createdDateTimeUtc\":\"2021-09-18T14:40:44Z\",\"updatedRegistryDateTimeUtc\":\"2021-03-30T12:42:21Z\",\"planChangeLogText\":\"pdnqqskawaoqvmmb\",\"autoUpdateLastAppliedStatus\":538705263,\"autoUpdateLastAppliedStatusText\":\"rtql\",\"autoUpdateLastAppliedStatusDetailedText\":\"megni\",\"planId\":5642937888477682307,\"timeToGoLiveDateTime\":\"lzyqd\",\"ruleRequestedMinute\":\"eg\",\"ruleRequestedHour\":\"alzxwhcan\"},{\"imageUriBeforeUpdate\":\"moy\",\"imageUriTargeted\":\"lwigdivbkbx\",\"imageUriTerminal\":\"mf\",\"autoUpdateRingType\":1845604298,\"movedToTerminalStateDateTime\":\"2021-03-28T18:59:20Z\",\"ruleRequestedWeek\":1690246024,\"ruleRequestedDay\":1901948402,\"createdDateTimeUtc\":\"2021-07-24T05:02:38Z\",\"updatedRegistryDateTimeUtc\":\"2021-03-07T00:19:30Z\",\"planChangeLogText\":\"uxakjsqzhzbezk\",\"autoUpdateLastAppliedStatus\":1554739985,\"autoUpdateLastAppliedStatusText\":\"idxas\",\"autoUpdateLastAppliedStatusDetailedText\":\"ddyvvjskgfmo\",\"planId\":1998990753742020932,\"timeToGoLiveDateTime\":\"qgatjeaahhvjhhn\",\"ruleRequestedMinute\":\"zybbj\",\"ruleRequestedHour\":\"dj\"},{\"imageUriBeforeUpdate\":\"yxkyxvx\",\"imageUriTargeted\":\"blbjedn\",\"imageUriTerminal\":\"lageuaulxun\",\"autoUpdateRingType\":1584096460,\"movedToTerminalStateDateTime\":\"2021-09-27T06:19:05Z\",\"ruleRequestedWeek\":36826137,\"ruleRequestedDay\":1476296254,\"createdDateTimeUtc\":\"2021-09-29T01:40:14Z\",\"updatedRegistryDateTimeUtc\":\"2021-04-02T07:56:28Z\",\"planChangeLogText\":\"svxeizzgwklnsr\",\"autoUpdateLastAppliedStatus\":106461667,\"autoUpdateLastAppliedStatusText\":\"ycxcktpiym\",\"autoUpdateLastAppliedStatusDetailedText\":\"teeammxqiekkkzd\",\"planId\":2620355279236222215,\"timeToGoLiveDateTime\":\"doj\",\"ruleRequestedMinute\":\"xv\",\"ruleRequestedHour\":\"refdee\"}]},\"location\":\"ecuijpxtxs\",\"tags\":{\"vit\":\"rtujwsawddjibab\",\"ecdmdqbwpy\":\"tvtzeexavoxtfg\",\"gsfjac\":\"q\"},\"id\":\"slhhxudbxv\",\"name\":\"d\",\"type\":\"tnsi\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + ConnectedCacheManager manager = ConnectedCacheManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + MccCacheNodeAutoUpdateHistory response = manager.enterpriseMccCacheNodesOperations() + .getCacheNodeAutoUpdateHistoryWithResponse("a", "cqusr", "vetnwsdtutn", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("ecuijpxtxs", response.location()); + Assertions.assertEquals("rtujwsawddjibab", response.tags().get("vit")); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryWithResponseMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryWithResponseMockTests.java new file mode 100644 index 000000000000..3e99afeb7c35 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryWithResponseMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.connectedcache.ConnectedCacheManager; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeIssueHistory; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryWithResponseMockTests { + @Test + public void testGetCacheNodeMccIssueDetailsHistoryWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"customerId\":\"lpagzrcx\",\"cacheNodeId\":\"ilcfxwmdboxd\",\"mccIssueHistory\":[{\"mccIssueType\":\"tufqobrjlnacgc\",\"toastString\":\"knh\",\"detailString\":\"izvy\",\"helpLink\":\"rzvul\",\"issueStartDate\":\"2021-02-20T05:38:09Z\",\"issueEndDate\":\"2021-10-17T17:53:02Z\"},{\"mccIssueType\":\"anokqgu\",\"toastString\":\"jqnv\",\"detailString\":\"oylaxxul\",\"helpLink\":\"isdos\",\"issueStartDate\":\"2021-04-13T22:50:17Z\",\"issueEndDate\":\"2021-11-02T19:20:35Z\"},{\"mccIssueType\":\"g\",\"toastString\":\"whryvycytdcl\",\"detailString\":\"ccknfnwmbtmvp\",\"helpLink\":\"jdhttzaefedxi\",\"issueStartDate\":\"2021-09-29T04:01:44Z\",\"issueEndDate\":\"2021-05-03T20:49:03Z\"},{\"mccIssueType\":\"k\",\"toastString\":\"rjdqnsdfzp\",\"detailString\":\"tg\",\"helpLink\":\"lkdghr\",\"issueStartDate\":\"2021-06-21T21:21:50Z\",\"issueEndDate\":\"2021-08-06T06:49:46Z\"}]},\"location\":\"wxezwzhok\",\"tags\":{\"ehgpp\":\"nhhtql\",\"csheafidltugsr\":\"pifhpfeoajvgcxtx\",\"h\":\"smkss\",\"egprhptil\":\"iftxfkf\"},\"id\":\"ucb\",\"name\":\"qtgdqohmcwsl\",\"type\":\"riz\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + ConnectedCacheManager manager = ConnectedCacheManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + MccCacheNodeIssueHistory response = manager.enterpriseMccCacheNodesOperations() + .getCacheNodeMccIssueDetailsHistoryWithResponse("ud", "z", "mes", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("wxezwzhok", response.location()); + Assertions.assertEquals("nhhtql", response.tags().get("ehgpp")); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeTlsCertificateHistoryWithResponseMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeTlsCertificateHistoryWithResponseMockTests.java new file mode 100644 index 000000000000..04829abeba7f --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/EnterpriseMccCacheNodesOperationsGetCacheNodeTlsCertificateHistoryWithResponseMockTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.connectedcache.ConnectedCacheManager; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeTlsCertificateHistory; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class EnterpriseMccCacheNodesOperationsGetCacheNodeTlsCertificateHistoryWithResponseMockTests { + @Test + public void testGetCacheNodeTlsCertificateHistoryWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"customerId\":\"nkjpdnjzha\",\"cacheNodeId\":\"ylhjlm\",\"tlsCertificateHistory\":[{\"actionRequired\":\"primr\",\"certificateFileName\":\"pteecjme\",\"thumbprint\":\"ls\",\"expiryDate\":\"2021-03-15T14:52:41Z\",\"notBeforeDate\":\"2021-10-17T18:13:46Z\",\"subject\":\"wxdzaumweoohgu\",\"subjectAltName\":\"uzboyjathw\"}]},\"location\":\"olbaemwmdx\",\"tags\":{\"xveabf\":\"wjscjpah\",\"qcttadijaeukmrsi\":\"xnmwmqtibxyijddt\",\"eqw\":\"ekpndzaapmudq\",\"bu\":\"gp\"},\"id\":\"qwyxebeybpm\",\"name\":\"znrtffyaqit\",\"type\":\"hheioqaqhvseuf\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + ConnectedCacheManager manager = ConnectedCacheManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + MccCacheNodeTlsCertificateHistory response = manager.enterpriseMccCacheNodesOperations() + .getCacheNodeTlsCertificateHistoryWithResponse("tpwb", "a", "llibphbqzmizak", + com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("olbaemwmdx", response.location()); + Assertions.assertEquals("wjscjpah", response.tags().get("xveabf")); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsWithResponseMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsWithResponseMockTests.java index 7e178d66b943..3aedfc066614 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsWithResponseMockTests.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetBgpCidrsWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class IspCacheNodesOperationsGetBgpCidrsWithResponseMockTests { @Test public void testGetBgpCidrsWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"bgpCidrs\":[\"luicpdggkzzlvmbm\",\"axmodfvuef\",\"wsbpfvm\"]},\"location\":\"hrfou\",\"tags\":{\"wiyzvqtmnubexkp\":\"aakc\",\"mquxvypo\":\"ksmond\"},\"id\":\"gkopkwhojvpajqgx\",\"name\":\"smocmbq\",\"type\":\"qvmkcxo\"}"; + = "{\"properties\":{\"bgpCidrs\":[\"j\",\"lwuenvrkp\"]},\"location\":\"uaibrebqaaysj\",\"tags\":{\"zlwfffiakp\":\"qtnqtt\",\"tmmjihyeozph\":\"pqqmted\"},\"id\":\"wau\",\"name\":\"qncygupkvi\",\"type\":\"mdscwxqupev\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +31,10 @@ public void testGetBgpCidrsWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); MccCacheNodeBgpCidrDetails response = manager.ispCacheNodesOperations() - .getBgpCidrsWithResponse("xcxrsl", "mutwuoe", "rpkhjwn", com.azure.core.util.Context.NONE) + .getBgpCidrsWithResponse("jjoqkagf", "sxtta", "gzxnfaazpxdtnk", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("hrfou", response.location()); - Assertions.assertEquals("aakc", response.tags().get("wiyzvqtmnubexkp")); + Assertions.assertEquals("uaibrebqaaysj", response.location()); + Assertions.assertEquals("qtnqtt", response.tags().get("zlwfffiakp")); } } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeAutoUpdateHistoryWithResponseMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeAutoUpdateHistoryWithResponseMockTests.java new file mode 100644 index 000000000000..218b22bfcf66 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeAutoUpdateHistoryWithResponseMockTests.java @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.connectedcache.ConnectedCacheManager; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeAutoUpdateHistory; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class IspCacheNodesOperationsGetCacheNodeAutoUpdateHistoryWithResponseMockTests { + @Test + public void testGetCacheNodeAutoUpdateHistoryWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"customerId\":\"ihwqknfdntwjchr\",\"cacheNodeId\":\"oihxumwctondzjlu\",\"autoUpdateHistory\":[{\"imageUriBeforeUpdate\":\"lwg\",\"imageUriTargeted\":\"tsbwtovvtgse\",\"imageUriTerminal\":\"qfi\",\"autoUpdateRingType\":257068718,\"movedToTerminalStateDateTime\":\"2021-09-27T18:06:02Z\",\"ruleRequestedWeek\":757625911,\"ruleRequestedDay\":2046119653,\"createdDateTimeUtc\":\"2021-08-16T11:52:22Z\",\"updatedRegistryDateTimeUtc\":\"2021-01-02T14:34:14Z\",\"planChangeLogText\":\"twqmsniffcdmqnr\",\"autoUpdateLastAppliedStatus\":678890206,\"autoUpdateLastAppliedStatusText\":\"ijnkrxfrdd\",\"autoUpdateLastAppliedStatusDetailedText\":\"ratiz\",\"planId\":429069097738507709,\"timeToGoLiveDateTime\":\"sxiftozq\",\"ruleRequestedMinute\":\"hftwesgog\",\"ruleRequestedHour\":\"honnxkrlgnyhmos\"},{\"imageUriBeforeUpdate\":\"kkgthr\",\"imageUriTargeted\":\"hxjbdhqxvc\",\"imageUriTerminal\":\"frpdsofbshrns\",\"autoUpdateRingType\":1330323698,\"movedToTerminalStateDateTime\":\"2021-12-07T07:05:16Z\",\"ruleRequestedWeek\":333268682,\"ruleRequestedDay\":1290029311,\"createdDateTimeUtc\":\"2020-12-29T08:45:04Z\",\"updatedRegistryDateTimeUtc\":\"2021-03-19T01:34:54Z\",\"planChangeLogText\":\"unvjsrtkfawnopq\",\"autoUpdateLastAppliedStatus\":610729333,\"autoUpdateLastAppliedStatusText\":\"zirtxdyuxzejntps\",\"autoUpdateLastAppliedStatusDetailedText\":\"gioilqu\",\"planId\":6255358176857067581,\"timeToGoLiveDateTime\":\"tqmieox\",\"ruleRequestedMinute\":\"ggufhyaomtb\",\"ruleRequestedHour\":\"havgrvk\"}]},\"location\":\"ovjzhpjbibgjmfx\",\"tags\":{\"xnbkfezzxscyhwzd\":\"fcluyov\",\"omvzzbtd\":\"irujbz\",\"yujviylwdshfssn\":\"qvpn\",\"rymsgaojfmw\":\"bgye\"},\"id\":\"cotmr\",\"name\":\"hirctymoxoftpipi\",\"type\":\"yczuhxacpq\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + ConnectedCacheManager manager = ConnectedCacheManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + MccCacheNodeAutoUpdateHistory response = manager.ispCacheNodesOperations() + .getCacheNodeAutoUpdateHistoryWithResponse("ncu", "doiwi", "thtywub", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("ovjzhpjbibgjmfx", response.location()); + Assertions.assertEquals("fcluyov", response.tags().get("xnbkfezzxscyhwzd")); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryWithResponseMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryWithResponseMockTests.java new file mode 100644 index 000000000000..5a4fd659a302 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/IspCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryWithResponseMockTests.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.connectedcache.ConnectedCacheManager; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeIssueHistory; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class IspCacheNodesOperationsGetCacheNodeMccIssueDetailsHistoryWithResponseMockTests { + @Test + public void testGetCacheNodeMccIssueDetailsHistoryWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"customerId\":\"i\",\"cacheNodeId\":\"nhn\",\"mccIssueHistory\":[{\"mccIssueType\":\"fq\",\"toastString\":\"gxmrhublwp\",\"detailString\":\"sutrgjup\",\"helpLink\":\"utpwoqhihejqgw\",\"issueStartDate\":\"2021-03-21T20:16:43Z\",\"issueEndDate\":\"2021-06-25T01:59:21Z\"},{\"mccIssueType\":\"tcypsxjvfoim\",\"toastString\":\"slirciz\",\"detailString\":\"vydfceacvlhvygdy\",\"helpLink\":\"umrtwnawjsl\",\"issueStartDate\":\"2021-11-14T12:50:10Z\",\"issueEndDate\":\"2021-06-28T20:11:56Z\"},{\"mccIssueType\":\"gcyztsfmznbae\",\"toastString\":\"hchqnrnrpx\",\"detailString\":\"uwrykqgaifmvikl\",\"helpLink\":\"dvk\",\"issueStartDate\":\"2021-01-06T00:18:15Z\",\"issueEndDate\":\"2021-04-25T06:44:31Z\"}]},\"location\":\"nxcvds\",\"tags\":{\"fzg\":\"jivolvtnov\",\"jltduceam\":\"mjdftu\",\"ejwcwwqiok\":\"mczuo\"},\"id\":\"ssxmojms\",\"name\":\"p\",\"type\":\"jpr\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + ConnectedCacheManager manager = ConnectedCacheManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + MccCacheNodeIssueHistory response = manager.ispCacheNodesOperations() + .getCacheNodeMccIssueDetailsHistoryWithResponse("lihhyuspskasdvlm", "wdgzxulucv", "amrsreuzv", + com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("nxcvds", response.location()); + Assertions.assertEquals("jivolvtnov", response.tags().get("fzg")); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeAutoUpdateHistoryInnerTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeAutoUpdateHistoryInnerTests.java new file mode 100644 index 000000000000..6d39c719baa1 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeAutoUpdateHistoryInnerTests.java @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeAutoUpdateHistoryInner; +import org.junit.jupiter.api.Assertions; + +public final class MccCacheNodeAutoUpdateHistoryInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MccCacheNodeAutoUpdateHistoryInner model = BinaryData.fromString( + "{\"properties\":{\"customerId\":\"togt\",\"cacheNodeId\":\"upqsx\",\"autoUpdateHistory\":[{\"imageUriBeforeUpdate\":\"cykvceo\",\"imageUriTargeted\":\"ilovnot\",\"imageUriTerminal\":\"jfcn\",\"autoUpdateRingType\":197964626,\"movedToTerminalStateDateTime\":\"2021-07-23T19:08:12Z\",\"ruleRequestedWeek\":949474495,\"ruleRequestedDay\":898184523,\"createdDateTimeUtc\":\"2021-11-28T19:08:57Z\",\"updatedRegistryDateTimeUtc\":\"2020-12-23T07:25:08Z\",\"planChangeLogText\":\"ywpnvjt\",\"autoUpdateLastAppliedStatus\":1564311717,\"autoUpdateLastAppliedStatusText\":\"rmclfplphoxu\",\"autoUpdateLastAppliedStatusDetailedText\":\"rpabg\",\"planId\":6796703751467974651,\"timeToGoLiveDateTime\":\"jta\",\"ruleRequestedMinute\":\"ugxywpmueef\",\"ruleRequestedHour\":\"wfqkquj\"},{\"imageUriBeforeUpdate\":\"suyonobglaocq\",\"imageUriTargeted\":\"ccm\",\"imageUriTerminal\":\"udxytlmoyrx\",\"autoUpdateRingType\":2130871697,\"movedToTerminalStateDateTime\":\"2021-07-05T08:36:14Z\",\"ruleRequestedWeek\":397011465,\"ruleRequestedDay\":1705865903,\"createdDateTimeUtc\":\"2021-05-21T05:23:51Z\",\"updatedRegistryDateTimeUtc\":\"2021-01-02T19:09:23Z\",\"planChangeLogText\":\"hl\",\"autoUpdateLastAppliedStatus\":291050041,\"autoUpdateLastAppliedStatusText\":\"hckfrlhrx\",\"autoUpdateLastAppliedStatusDetailedText\":\"kyv\",\"planId\":1245497822937083948,\"timeToGoLiveDateTime\":\"uzbpzkafku\",\"ruleRequestedMinute\":\"crnwbmeh\",\"ruleRequestedHour\":\"eyvjusrtslhspkde\"},{\"imageUriBeforeUpdate\":\"aofmxagkvtme\",\"imageUriTargeted\":\"qkrhahvljua\",\"imageUriTerminal\":\"quhcdhmduala\",\"autoUpdateRingType\":552039222,\"movedToTerminalStateDateTime\":\"2021-05-16T16:57:57Z\",\"ruleRequestedWeek\":792525510,\"ruleRequestedDay\":1087061022,\"createdDateTimeUtc\":\"2021-05-19T03:14:54Z\",\"updatedRegistryDateTimeUtc\":\"2021-02-27T12:21:31Z\",\"planChangeLogText\":\"gvxp\",\"autoUpdateLastAppliedStatus\":1879031505,\"autoUpdateLastAppliedStatusText\":\"zlfmisgwbnbbeld\",\"autoUpdateLastAppliedStatusDetailedText\":\"k\",\"planId\":2514005563573922649,\"timeToGoLiveDateTime\":\"ourqhakau\",\"ruleRequestedMinute\":\"shsfwxosowzxcu\",\"ruleRequestedHour\":\"cjooxdjebwpucwwf\"},{\"imageUriBeforeUpdate\":\"vbvmeu\",\"imageUriTargeted\":\"ivyhzceuojgjrwju\",\"imageUriTerminal\":\"otwmcdyt\",\"autoUpdateRingType\":663876246,\"movedToTerminalStateDateTime\":\"2021-01-14T13:52:52Z\",\"ruleRequestedWeek\":207982498,\"ruleRequestedDay\":1725876914,\"createdDateTimeUtc\":\"2021-07-17T08:49:22Z\",\"updatedRegistryDateTimeUtc\":\"2021-05-01T01:26:28Z\",\"planChangeLogText\":\"gxhnisk\",\"autoUpdateLastAppliedStatus\":1319341047,\"autoUpdateLastAppliedStatusText\":\"py\",\"autoUpdateLastAppliedStatusDetailedText\":\"klwndnhjdauwhv\",\"planId\":8550144632866513257,\"timeToGoLiveDateTime\":\"tdhxujznbmpowuwp\",\"ruleRequestedMinute\":\"qlveualupjmkh\",\"ruleRequestedHour\":\"obbc\"}]},\"location\":\"s\",\"tags\":{\"fgb\":\"riplrbpbewtg\",\"wxzvlvqhjkb\":\"c\",\"iebwwaloayqcgwrt\":\"gibtnm\",\"zg\":\"j\"},\"id\":\"yzm\",\"name\":\"txon\",\"type\":\"mtsavjcbpwxqp\"}") + .toObject(MccCacheNodeAutoUpdateHistoryInner.class); + Assertions.assertEquals("s", model.location()); + Assertions.assertEquals("riplrbpbewtg", model.tags().get("fgb")); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeAutoUpdateHistoryPropertiesTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeAutoUpdateHistoryPropertiesTests.java new file mode 100644 index 000000000000..3fb0ddaef932 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeAutoUpdateHistoryPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeAutoUpdateHistoryProperties; + +public final class MccCacheNodeAutoUpdateHistoryPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MccCacheNodeAutoUpdateHistoryProperties model = BinaryData.fromString( + "{\"customerId\":\"knftguvriuh\",\"cacheNodeId\":\"wmdyvxqtay\",\"autoUpdateHistory\":[{\"imageUriBeforeUpdate\":\"ro\",\"imageUriTargeted\":\"bexrmcq\",\"imageUriTerminal\":\"ycnojvknmefqsg\",\"autoUpdateRingType\":488274582,\"movedToTerminalStateDateTime\":\"2021-11-22T14:09:07Z\",\"ruleRequestedWeek\":2048055130,\"ruleRequestedDay\":1125430045,\"createdDateTimeUtc\":\"2021-09-29T06:33:19Z\",\"updatedRegistryDateTimeUtc\":\"2021-04-21T18:37:49Z\",\"planChangeLogText\":\"zcjrvxdjzlmwlx\",\"autoUpdateLastAppliedStatus\":413444138,\"autoUpdateLastAppliedStatusText\":\"fhzovawjvzunluth\",\"autoUpdateLastAppliedStatusDetailedText\":\"prnxipeil\",\"planId\":7813618899616430195,\"timeToGoLiveDateTime\":\"e\",\"ruleRequestedMinute\":\"dultskz\",\"ruleRequestedHour\":\"tdzumveekgpw\"}]}") + .toObject(MccCacheNodeAutoUpdateHistoryProperties.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeAutoUpdateInfoTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeAutoUpdateInfoTests.java new file mode 100644 index 000000000000..21428f4c11fc --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeAutoUpdateInfoTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeAutoUpdateInfo; + +public final class MccCacheNodeAutoUpdateInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MccCacheNodeAutoUpdateInfo model = BinaryData.fromString( + "{\"imageUriBeforeUpdate\":\"bzoggigrx\",\"imageUriTargeted\":\"ur\",\"imageUriTerminal\":\"xxjnspydptk\",\"autoUpdateRingType\":1482419493,\"movedToTerminalStateDateTime\":\"2021-12-09T16:13:48Z\",\"ruleRequestedWeek\":766027408,\"ruleRequestedDay\":1110747875,\"createdDateTimeUtc\":\"2021-02-16T10:50:56Z\",\"updatedRegistryDateTimeUtc\":\"2021-04-09T12:14:42Z\",\"planChangeLogText\":\"ukbldngkpo\",\"autoUpdateLastAppliedStatus\":655680628,\"autoUpdateLastAppliedStatusText\":\"z\",\"autoUpdateLastAppliedStatusDetailedText\":\"o\",\"planId\":7699505413324678544,\"timeToGoLiveDateTime\":\"jnpiucgyg\",\"ruleRequestedMinute\":\"qzntypm\",\"ruleRequestedHour\":\"p\"}") + .toObject(MccCacheNodeAutoUpdateInfo.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeBgpCidrDetailsInnerTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeBgpCidrDetailsInnerTests.java index 5db90b9e1c16..ce27864e3637 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeBgpCidrDetailsInnerTests.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeBgpCidrDetailsInnerTests.java @@ -12,9 +12,9 @@ public final class MccCacheNodeBgpCidrDetailsInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MccCacheNodeBgpCidrDetailsInner model = BinaryData.fromString( - "{\"properties\":{\"bgpCidrs\":[\"t\",\"pnpulexxbczwtru\"]},\"location\":\"qzbqjvsov\",\"tags\":{\"hzdobpxjmflbvvnc\":\"kacspkw\",\"rsa\":\"rkcciwwzjuqk\"},\"id\":\"iwkuofos\",\"name\":\"ghsauuimjmvxied\",\"type\":\"ugidyjrr\"}") + "{\"properties\":{\"bgpCidrs\":[\"zabglcuhxwt\"]},\"location\":\"yqiklbbovplwzb\",\"tags\":{\"ukkfplgmgs\":\"yuguosvmkfssx\"},\"id\":\"nkjzkdeslpvlop\",\"name\":\"i\",\"type\":\"ighxpk\"}") .toObject(MccCacheNodeBgpCidrDetailsInner.class); - Assertions.assertEquals("qzbqjvsov", model.location()); - Assertions.assertEquals("kacspkw", model.tags().get("hzdobpxjmflbvvnc")); + Assertions.assertEquals("yqiklbbovplwzb", model.location()); + Assertions.assertEquals("yuguosvmkfssx", model.tags().get("ukkfplgmgs")); } } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeIssueHistoryInnerTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeIssueHistoryInnerTests.java new file mode 100644 index 000000000000..cc457b9d317a --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeIssueHistoryInnerTests.java @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeIssueHistoryInner; +import org.junit.jupiter.api.Assertions; + +public final class MccCacheNodeIssueHistoryInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MccCacheNodeIssueHistoryInner model = BinaryData.fromString( + "{\"properties\":{\"customerId\":\"hkfpbs\",\"cacheNodeId\":\"ofd\",\"mccIssueHistory\":[{\"mccIssueType\":\"sd\",\"toastString\":\"ouwaboekqvkeln\",\"detailString\":\"vbxwyjsflhh\",\"helpLink\":\"aln\",\"issueStartDate\":\"2021-03-25T19:19:56Z\",\"issueEndDate\":\"2021-11-13T16:49:46Z\"},{\"mccIssueType\":\"yaw\",\"toastString\":\"yaqcslyjpkiidz\",\"detailString\":\"xznelixhnrztf\",\"helpLink\":\"hb\",\"issueStartDate\":\"2021-09-08T07:53:31Z\",\"issueEndDate\":\"2021-06-25T15:29:39Z\"},{\"mccIssueType\":\"aulppggd\",\"toastString\":\"napnyiropuhpigv\",\"detailString\":\"ylgqgitxmedjvcsl\",\"helpLink\":\"qwwncw\",\"issueStartDate\":\"2021-09-15T03:16:23Z\",\"issueEndDate\":\"2021-03-30T03:40:31Z\"}]},\"location\":\"trmgucnapkte\",\"tags\":{\"pfqbuaceopzf\":\"lwptfdy\",\"lzdahzxctobgbkdm\":\"rhhuaopppcqeqx\"},\"id\":\"izpost\",\"name\":\"grcfb\",\"type\":\"nrmfqjhhk\"}") + .toObject(MccCacheNodeIssueHistoryInner.class); + Assertions.assertEquals("trmgucnapkte", model.location()); + Assertions.assertEquals("lwptfdy", model.tags().get("pfqbuaceopzf")); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeIssueHistoryPropertiesTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeIssueHistoryPropertiesTests.java new file mode 100644 index 000000000000..d9fb0ef428ac --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeIssueHistoryPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeIssueHistoryProperties; + +public final class MccCacheNodeIssueHistoryPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MccCacheNodeIssueHistoryProperties model = BinaryData.fromString( + "{\"customerId\":\"pvjymjhxxjyng\",\"cacheNodeId\":\"ivkrtsw\",\"mccIssueHistory\":[{\"mccIssueType\":\"vszjfauvjfdxxi\",\"toastString\":\"tvtc\",\"detailString\":\"qtdo\",\"helpLink\":\"cbxvwvxyslqbh\",\"issueStartDate\":\"2021-02-23T20:11:15Z\",\"issueEndDate\":\"2021-01-17T13:22:14Z\"},{\"mccIssueType\":\"ytkblmpew\",\"toastString\":\"fbkrvrnsvs\",\"detailString\":\"johxcrsb\",\"helpLink\":\"vasrruvwb\",\"issueStartDate\":\"2021-03-04T21:23:46Z\",\"issueEndDate\":\"2021-08-12T15:23:33Z\"}]}") + .toObject(MccCacheNodeIssueHistoryProperties.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeTlsCertificateHistoryInnerTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeTlsCertificateHistoryInnerTests.java new file mode 100644 index 000000000000..adb667542d12 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeTlsCertificateHistoryInnerTests.java @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.fluent.models.MccCacheNodeTlsCertificateHistoryInner; +import org.junit.jupiter.api.Assertions; + +public final class MccCacheNodeTlsCertificateHistoryInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MccCacheNodeTlsCertificateHistoryInner model = BinaryData.fromString( + "{\"properties\":{\"customerId\":\"njhf\",\"cacheNodeId\":\"wmszkk\",\"tlsCertificateHistory\":[{\"actionRequired\":\"eyfkzikfja\",\"certificateFileName\":\"eaivxwczel\",\"thumbprint\":\"irels\",\"expiryDate\":\"2021-01-23T17:50:30Z\",\"notBeforeDate\":\"2021-09-24T09:17:18Z\",\"subject\":\"abfatkl\",\"subjectAltName\":\"xbjhwuaanozjosph\"},{\"actionRequired\":\"ulpjr\",\"certificateFileName\":\"ag\",\"thumbprint\":\"vimjwos\",\"expiryDate\":\"2020-12-23T18:35:53Z\",\"notBeforeDate\":\"2021-01-07T09:14:38Z\",\"subject\":\"skfc\",\"subjectAltName\":\"qumiek\"}]},\"location\":\"zzikhlyfjhdg\",\"tags\":{\"eqidbqfatpx\":\"ebdunyg\",\"cyjmoadsuvarmy\":\"lr\",\"hhyxxrw\":\"dmjsjqb\"},\"id\":\"yc\",\"name\":\"duhpk\",\"type\":\"kgymareqnajxqug\"}") + .toObject(MccCacheNodeTlsCertificateHistoryInner.class); + Assertions.assertEquals("zzikhlyfjhdg", model.location()); + Assertions.assertEquals("ebdunyg", model.tags().get("eqidbqfatpx")); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeTlsCertificatePropertiesTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeTlsCertificatePropertiesTests.java new file mode 100644 index 000000000000..26574063b57f --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeTlsCertificatePropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeTlsCertificateProperties; + +public final class MccCacheNodeTlsCertificatePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MccCacheNodeTlsCertificateProperties model = BinaryData.fromString( + "{\"customerId\":\"ky\",\"cacheNodeId\":\"beddgssofw\",\"tlsCertificateHistory\":[{\"actionRequired\":\"alkrmn\",\"certificateFileName\":\"jpxac\",\"thumbprint\":\"udfnbyxba\",\"expiryDate\":\"2021-12-06T14:29:26Z\",\"notBeforeDate\":\"2020-12-27T23:27:21Z\",\"subject\":\"ayffim\",\"subjectAltName\":\"rtuzqogs\"},{\"actionRequired\":\"nevfdnw\",\"certificateFileName\":\"mewzsyyc\",\"thumbprint\":\"zsoibjudpfrxtr\",\"expiryDate\":\"2021-01-08T14:01:25Z\",\"notBeforeDate\":\"2021-02-11T18:30:37Z\",\"subject\":\"tdwkqbrq\",\"subjectAltName\":\"paxh\"},{\"actionRequired\":\"iilivpdtiirqtd\",\"certificateFileName\":\"axoruzfgsquy\",\"thumbprint\":\"rxxle\",\"expiryDate\":\"2021-08-27T15:19:39Z\",\"notBeforeDate\":\"2021-10-30T02:05:22Z\",\"subject\":\"jezwlwnw\",\"subjectAltName\":\"qlcvydy\"},{\"actionRequired\":\"tdooaoj\",\"certificateFileName\":\"iodkooebwnujhem\",\"thumbprint\":\"bvdkcrodtjin\",\"expiryDate\":\"2021-03-22T21:04:29Z\",\"notBeforeDate\":\"2021-06-03T21:25:15Z\",\"subject\":\"kacjvefkdlfo\",\"subjectAltName\":\"ggkfpagaowpul\"}]}") + .toObject(MccCacheNodeTlsCertificateProperties.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeTlsCertificateTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeTlsCertificateTests.java new file mode 100644 index 000000000000..177c7c38b7b3 --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccCacheNodeTlsCertificateTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.MccCacheNodeTlsCertificate; + +public final class MccCacheNodeTlsCertificateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MccCacheNodeTlsCertificate model = BinaryData.fromString( + "{\"actionRequired\":\"npc\",\"certificateFileName\":\"ocohslkevleg\",\"thumbprint\":\"fbuhfmvfaxkffe\",\"expiryDate\":\"2021-05-15T04:16:32Z\",\"notBeforeDate\":\"2020-12-30T10:59:09Z\",\"subject\":\"m\",\"subjectAltName\":\"yvshxmz\"}") + .toObject(MccCacheNodeTlsCertificate.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccIssueTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccIssueTests.java new file mode 100644 index 000000000000..3e21c72f097f --- /dev/null +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/MccIssueTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.connectedcache.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.connectedcache.models.MccIssue; + +public final class MccIssueTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MccIssue model = BinaryData.fromString( + "{\"mccIssueType\":\"bcgjbirxbp\",\"toastString\":\"srfbjfdtwss\",\"detailString\":\"ftpvjzbexil\",\"helpLink\":\"nfqqnvwp\",\"issueStartDate\":\"2021-08-13T08:01:40Z\",\"issueEndDate\":\"2021-06-07T17:58:08Z\"}") + .toObject(MccIssue.class); + } +} diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationsListMockTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationsListMockTests.java index 2058d1de2cc2..f0e35f95a8ee 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationsListMockTests.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"mgyudxytlmoyrxv\",\"isDataAction\":false,\"display\":{\"provider\":\"pz\",\"resource\":\"xhdzhlrqjbhckf\",\"operation\":\"hrxsbk\",\"description\":\"pycanuzbpz\"},\"origin\":\"user,system\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"blylsyxkqjnsj\",\"isDataAction\":false,\"display\":{\"provider\":\"agxsdszuemps\",\"resource\":\"kfzbeyvpnqicvi\",\"operation\":\"kjj\",\"description\":\"xrbuukzclew\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ProxyUrlConfigurationTests.java b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ProxyUrlConfigurationTests.java index 09bb88ed8cab..f1ac45d0fcab 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ProxyUrlConfigurationTests.java +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/src/test/java/com/azure/resourcemanager/connectedcache/generated/ProxyUrlConfigurationTests.java @@ -12,14 +12,14 @@ public final class ProxyUrlConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProxyUrlConfiguration model - = BinaryData.fromString("{\"proxyUrl\":\"hb\"}").toObject(ProxyUrlConfiguration.class); - Assertions.assertEquals("hb", model.proxyUrl()); + = BinaryData.fromString("{\"proxyUrl\":\"jttgzf\"}").toObject(ProxyUrlConfiguration.class); + Assertions.assertEquals("jttgzf", model.proxyUrl()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProxyUrlConfiguration model = new ProxyUrlConfiguration().withProxyUrl("hb"); + ProxyUrlConfiguration model = new ProxyUrlConfiguration().withProxyUrl("jttgzf"); model = BinaryData.fromObject(model).toObject(ProxyUrlConfiguration.class); - Assertions.assertEquals("hb", model.proxyUrl()); + Assertions.assertEquals("jttgzf", model.proxyUrl()); } } diff --git a/sdk/connectedcache/azure-resourcemanager-connectedcache/tsp-location.yaml b/sdk/connectedcache/azure-resourcemanager-connectedcache/tsp-location.yaml index e35643801e31..6fac69b32ce8 100644 --- a/sdk/connectedcache/azure-resourcemanager-connectedcache/tsp-location.yaml +++ b/sdk/connectedcache/azure-resourcemanager-connectedcache/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/connectedcache/ConnectedCache.Management -commit: 6f175c9c006269a1d0f1928fbc768cacc6ac379a +commit: f14642c9375a921ee4e28bf53232647354120a0f repo: Azure/azure-rest-api-specs additionalDirectories: